:root {
  --bg: #323437; --main: #e2b714; --caret: #e2b714; --sub: #646669;
  --sub-alt: #2c2e31; --sub-alt-2: #38393c; --text: #d1d0c5; --error: #ca4754;
  --r: 10px;
  --font: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display: 'Lexend Deca', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* flag emojis for systems without them (Windows). Only downloaded when a flag is shown. */
@font-face {
  font-family: 'Twemoji Country Flags';
  unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
  src: url('/fonts/TwemojiCountryFlags.woff2') format('woff2');
  font-display: swap;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 15px; line-height: 1.5;
  transition: background-color .25s, color .25s;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: default; }
svg { display: block; }
a { color: var(--sub); }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--main); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */
.top { display: flex; align-items: center; gap: 12px; padding: 20px 0 10px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--display); font-size: 26px; letter-spacing: -.03em; line-height: 1.05; }
.logo b { color: var(--main); font-weight: 400; }
.logo-icon { width: 30px; height: 30px; fill: none; stroke: var(--main); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.logo-stack { display: flex; flex-direction: column; gap: 3px; }
.logo-home { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font); font-size: 12.5px; letter-spacing: 0; color: var(--sub); line-height: 1.1; transition: color .15s; }
.logo-home i { font-style: normal; display: inline-block; transition: transform .15s var(--ease), color .15s; }
.logo:hover .logo-home { color: var(--text); }
.logo:hover .logo-home i { transform: translateX(-2px); color: var(--main); }
.top-actions { display: flex; gap: 4px; margin-left: auto; }
.icon-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; color: var(--sub); text-decoration: none; font-size: 15px; white-space: nowrap; flex-shrink: 0; transition: color .15s, background-color .15s; }
.top-actions > * { flex-shrink: 0; }
.icon-btn svg { flex-shrink: 0; }
.th-chip { flex-shrink: 0; }
@media (max-width: 1024px) {
  .top { flex-wrap: wrap; }
  .th-chip { flex-shrink: 1; }
  .th-chip { order: 3; width: 100%; justify-content: center; }
  .top-actions .icon-btn { padding: 8px; }
}
.icon-btn:hover { color: var(--text); background: var(--sub-alt); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.th-chip {
  display: inline-flex; align-items: center; gap: 8px; min-width: 0;
  padding: 6px 12px; border-radius: 999px; font-size: 13px;
  background: var(--sub-alt); color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .15s, background-color .15s;
}
.th-chip:hover { color: var(--text); }
.th-chip b { color: var(--main); font-weight: 500; }
.th-chip.live { background: var(--main); color: var(--bg); }
.th-chip.live b { color: var(--bg); }
.th-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.th-chip.live .dot { animation: blink 1.2s infinite; }

/* ---------- segmented controls ---------- */
.seg, .mode { display: inline-flex; padding: 4px; gap: 4px; background: var(--sub-alt); border-radius: calc(var(--r) + 4px); }
.seg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--r); color: var(--sub); white-space: nowrap;
  transition: color .15s, background-color .15s, transform .1s;
}
.seg-btn:hover { color: var(--text); }
.seg-btn:active { transform: scale(.97); }
.seg-btn.on { background: var(--main); color: var(--bg); }
.seg-sm .seg-btn { padding: 6px 12px; font-size: 13px; }

.page-title { margin: 6px 0 0; text-align: center; font-size: 12px; font-weight: 400; letter-spacing: .08em; color: var(--sub); }
.page-title + .mode { margin-top: 10px; }
.mode { display: flex; width: fit-content; margin: 18px auto 0; }
.mode .seg-btn { padding: 12px 22px; font-size: 15px; }
.spark { width: 16px; height: 16px; fill: currentColor; }
.mode-hint { text-align: center; color: var(--sub); font-size: 13px; margin: 10px 0 0; min-height: 20px; }
.mode-hint b { color: var(--main); font-weight: 500; }

/* ---------- stage / chest ---------- */
.stage { display: flex; flex-direction: column; align-items: center; padding: 8px 0 4px; }
.chest {
  --glow: var(--main);
  width: 230px; max-width: 62vw; aspect-ratio: 220 / 190; border-radius: 24px;
  transition: transform .15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.chest:hover { transform: translateY(-3px) scale(1.02); }
.chest:active { transform: scale(.96); }
.chest svg { width: 100%; height: 100%; overflow: visible; }
.c-shadow { fill: var(--sub); opacity: .2; }
/* treasure-hunt chest: warm gold, nudged toward each theme's accent so it belongs on every theme */
.chest {
  --gold: color-mix(in srgb, #f2bf3a 86%, var(--main));
  --gold-hi: color-mix(in srgb, #ffe38c 86%, var(--main));
  --gold-lo: color-mix(in srgb, #c88a1c 86%, var(--main));
  --ink: color-mix(in srgb, #3a2406 82%, var(--bg));
  --bone: color-mix(in srgb, #f6f1e4 90%, var(--bg));
  --gem: #b678ff;          /* same purple as the vehicle treasure */
  --eye: #ff4f78;          /* ruby eyes, close to the jam-track pink */
  --chain: color-mix(in srgb, #cfd2da 78%, var(--sub));
}
.k-gold { fill: url(#ckGold); }
.k-lid { fill: url(#ckLid); }
.k-lo { fill: var(--gold-lo); }
.k-rivet circle { fill: var(--gold-hi); stroke: var(--ink); stroke-width: 1.2; }
.k-line { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }
.k-gloss { fill: none; stroke: var(--gold-hi); stroke-width: 4; stroke-linecap: round; opacity: .75; }
.k-gem { fill: var(--gem); stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; }
.k-shine { fill: #fff; opacity: .75; }
.k-bone { fill: var(--bone); stroke: var(--ink); stroke-width: 3.2; stroke-linejoin: round; }
.k-teeth { fill: none; stroke: var(--ink); stroke-width: 2; }
.k-eye { fill: var(--eye); stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; }
.k-nose { fill: var(--ink); }
.k-chain-b, .k-chain { fill: none; stroke-linecap: round; stroke-dasharray: 7 3.6; }
.k-chain-b { stroke: var(--ink); stroke-width: 7; }
.k-chain { stroke: var(--chain); stroke-width: 3.6; }
.chest.rapid .k-eye, .chest.win .k-eye { animation: eye-glint .5s ease-in-out infinite alternate; }
@keyframes eye-glint { to { fill: color-mix(in srgb, var(--eye) 60%, #fff); } }
.c-fx { color: var(--glow); }
.c-glow { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.5); }
.c-rays path { stroke: var(--glow); stroke-width: 5; stroke-linecap: round; fill: none; }
.c-rays { opacity: 0; transform-box: view-box; transform-origin: 110px 92px; }
.c-lid { transform-box: view-box; transform-origin: 110px 102px; }
.c-base, .c-lock { transform-box: view-box; transform-origin: 110px 170px; }

.chest.pop .c-lid { animation: lid-open .7s var(--ease); }
.chest.pop .c-base, .chest.pop .c-lock { animation: squash .7s var(--ease); }
.chest.pop .c-glow { animation: glow .9s ease-out; }
.chest.win .c-rays { animation: rays 1s ease-out; }
.chest.win .c-glow { animation: glow-big 1.1s ease-out; }

.chest.rapid .c-lid { animation: lid-flutter var(--flutter, .12s) ease-in-out infinite alternate; }
.chest.rapid .c-base, .chest.rapid .c-lock { animation: jiggle calc(var(--flutter, .12s) * 2) ease-in-out infinite; }
.chest.rapid .c-glow { opacity: .25; transform: scale(.85); }
.chest.rapid.win .c-glow { animation: glow-big 1.1s ease-out; }

@keyframes lid-open {
  0% { transform: none; }
  30% { transform: translateY(-30px) rotate(-7deg) scaleY(.9); }
  65% { transform: translateY(-26px) rotate(-5deg) scaleY(.92); }
  100% { transform: none; }
}
@keyframes squash { 0%,100% { transform: none; } 15% { transform: scale(1.04, .94); } 35% { transform: scale(.98, 1.03); } }
@keyframes glow { 0% { opacity: 0; transform: scale(.4); } 35% { opacity: .55; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.1); } }
@keyframes glow-big { 0% { opacity: 0; transform: scale(.4); } 25% { opacity: 1; transform: scale(1.1); } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes rays { 0% { opacity: 0; transform: scale(.6) rotate(0); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(1.25) rotate(25deg); } }
@keyframes lid-flutter { from { transform: none; } to { transform: translateY(-14px) rotate(-3deg); } }
@keyframes jiggle { 0%,100% { transform: none; } 50% { transform: scale(1.02, .97); } }
@keyframes blink { 50% { opacity: .3; } }

.result { margin: 6px 0 0; min-height: 24px; color: var(--sub); text-align: center; font-size: 15px; }
.result b { font-weight: 500; }
.result.flash { animation: result-in .35s var(--ease); }
@keyframes result-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.counter { display: flex; flex-direction: column; align-items: center; margin-top: 14px; }
.counter-num {
  font-family: var(--display); font-weight: 400; color: var(--main);
  font-size: clamp(40px, 10vw, 64px); line-height: 1; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.counter-label { color: var(--sub); font-size: 13px; margin-top: 8px; }
.sub-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 8px 0 0; color: var(--sub); font-size: 13px; }
.sub-stats b { color: var(--text); font-weight: 500; }

.muted { color: var(--sub); }

/* ---------- haul ---------- */
.haul { margin-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.haul-head { display: flex; gap: 14px; align-items: baseline; font-size: 12px; color: var(--sub); }
.haul-head > span:first-child { text-transform: uppercase; letter-spacing: .08em; }
.haul-head b { color: var(--text); font-weight: 500; }
.haul-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 58px; }
.tile-icon {
  position: relative; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  color: var(--sub); border: 2px dashed color-mix(in srgb, var(--sub) 55%, transparent);
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.tile-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .6; transition: opacity .3s; }
.tile-label { font-size: 11px; color: var(--sub); transition: color .3s; }
.tile.got .tile-icon { background: var(--c); border: 2px solid var(--c); color: #141414; box-shadow: 0 6px 18px -8px var(--c); }
.tile.got .tile-icon svg { opacity: 1; }
.tile.got .tile-label { color: var(--text); }
.tile.pop .tile-icon { animation: tile-pop .55s var(--ease); }
@keyframes tile-pop { 0% { transform: scale(.7); } 45% { transform: scale(1.18) rotate(-5deg); } 100% { transform: none; } }
.tile-badge {
  position: absolute; top: -8px; right: -10px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  font-size: 11px; font-weight: 500; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums;
  background: var(--text); color: var(--bg);
}
.tile-badge:empty { display: none; }

/* real item pictures */
.has-img { overflow: hidden; }
.has-img img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.tile-icon.has-img { overflow: visible; }
.tile-icon.has-img img { border-radius: 11px; filter: grayscale(1); opacity: .35; transition: filter .35s, opacity .35s; }
.tile.got .tile-icon.has-img img { filter: none; opacity: 1; }
.p-icon.has-img img { transition: transform .25s var(--ease); }
.prize:hover .p-icon.has-img img { transform: scale(1.08); }

/* ---------- bubbles ---------- */
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; contain: strict; }
.bub {
  position: absolute; left: 0; top: 0; width: var(--s); height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%;
  border: 1.5px solid var(--c);
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.7) 0 16%, transparent 19%), color-mix(in srgb, var(--c) 22%, transparent);
  opacity: 0; will-change: transform, opacity;
  animation: bub var(--d) cubic-bezier(.15, .7, .3, 1) forwards;
}
@keyframes bub {
  0% { opacity: 0; transform: translate(var(--x0), var(--y0)) scale(.3); }
  15% { opacity: .85; }
  70% { opacity: .6; }
  100% { opacity: 0; transform: translate(calc(var(--x0) + var(--dx)), calc(var(--y0) + var(--dy))) scale(1); }
}

/* ---------- controls ---------- */
.controls { display: flex; align-items: flex-end; justify-content: center; flex-wrap: wrap; gap: 14px 18px; margin: 26px 0 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: calc(var(--r) + 4px); font-size: 16px; font-weight: 500;
  transition: background-color .15s, color .15s, transform .1s, opacity .15s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; }
.btn-main { background: var(--main); color: var(--bg); min-width: 150px; }
.btn-main svg { fill: currentColor; }
.btn-main:hover { filter: brightness(1.08); }
.btn-main .i-pause { display: none; }
.btn-main.running { background: var(--sub-alt); color: var(--main); }
.btn-main.running .i-play { display: none; }
.btn-main.running .i-pause { display: block; }
.btn-ghost { background: var(--sub-alt); color: var(--sub); }
.btn-ghost:hover { color: var(--text); }
.btn-ghost svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-ghost.confirm { background: var(--error); color: var(--bg); }
#resetBtn { width: 136px; padding: 0 16px; }
#resetBtn.confirm svg { animation: spin-back .5s var(--ease); }
@keyframes spin-back { from { transform: rotate(0); } to { transform: rotate(-360deg); } }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-sm svg { width: 16px; height: 16px; }

.speed { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.speed-label { color: var(--sub); font-size: 12px; }
.speed .seg { height: 52px; align-items: stretch; }
.speed .seg-btn { min-width: 44px; padding: 0 10px; }

.hunt-bar {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px;
  margin: 18px auto 0; width: fit-content; max-width: 100%;
  padding: 10px 16px; border-radius: var(--r); background: var(--sub-alt); color: var(--sub); font-size: 13px;
}
.hunt-bar b { color: var(--text); font-weight: 500; }
.hunt-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--main); animation: blink 1s infinite; }
.link-btn { color: var(--main); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- cards ---------- */
.card { margin-top: 30px; background: var(--sub-alt); border-radius: calc(var(--r) + 6px); overflow: hidden; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding: 16px 20px 12px; }
.card-head h2 { margin: 0; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--sub); }
.card-note { color: var(--sub); font-size: 12px; }

/* ---------- about the odds (plain text for people and search engines) ---------- */
.about-body { padding: 0 20px 18px; font-size: 13px; line-height: 1.65; color: var(--sub); }
.about-body p { margin: 0 0 12px; }
.about-body b { color: var(--text); font-weight: 500; }
.about-body a { color: var(--main); text-underline-offset: 3px; }
.odds-mini { width: 100%; margin: 4px 0 14px; border-collapse: collapse; font-size: 12.5px; }
.odds-mini caption { text-align: left; padding-bottom: 6px; color: var(--sub); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.odds-mini th, .odds-mini td { padding: 7px 10px; text-align: left; border-top: 1px solid color-mix(in srgb, var(--sub) 22%, transparent); font-weight: 400; }
.odds-mini thead th { color: var(--sub); font-size: 11px; border-top: 0; }
.odds-mini tbody th { color: var(--text); }
.odds-mini td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.about details { border-top: 1px solid color-mix(in srgb, var(--sub) 22%, transparent); }
.about summary { cursor: pointer; padding: 11px 0; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.about summary::-webkit-details-marker { display: none; }
.about summary::after { content: '+'; color: var(--sub); transition: transform .2s var(--ease); }
.about details[open] summary::after { transform: rotate(45deg); }
.about details p { margin: 0 0 12px; }
@media (max-width: 640px) {
  .about-body { padding: 0 14px 14px; }
  .odds-mini th, .odds-mini td { padding: 7px 6px; }
  .odds-mini td { white-space: normal; }
}
.card-head h2 + .sel { margin-right: auto; }
.sel {
  height: 32px; padding: 0 30px 0 12px; border: 0; border-radius: 8px; font: inherit; font-size: 12px;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center / 14px;
  color: var(--text); cursor: pointer; appearance: none; -webkit-appearance: none; max-width: 100%;
}
.sel:focus-visible { outline: 2px solid var(--main); }
.p-type { color: var(--sub); font-size: 12px; margin-left: 6px; }
.card-note b { color: var(--main); font-weight: 500; }

/* prizes */
.prizes { list-style: none; margin: 0; padding: 0 8px 8px; }
.prize {
  display: grid; grid-template-columns: 44px 1fr auto auto; align-items: center; gap: 14px;
  padding: 12px; border-radius: var(--r);
  transition: background-color .15s;
}
.prize:hover { background: var(--bg); }
.p-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c);
  transition: background-color .25s, color .25s, transform .25s;
}
.p-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.prize.got .p-icon { background: var(--c); color: #141414; }
.prize.just .p-icon { animation: bump .6s var(--ease); }
@keyframes bump { 30% { transform: scale(1.25) rotate(-6deg); } }
.p-main { min-width: 0; }
.p-name { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-bar { height: 4px; margin: 7px 0 6px; border-radius: 4px; background: var(--bg); overflow: hidden; }
.p-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--sub); transition: width .2s linear; }
.prize.got .p-bar i { background: var(--c); }
.p-cap { color: var(--sub); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-cap b { color: var(--text); font-weight: 500; }
.p-cap .lucky { color: var(--main); }
.p-odds { text-align: right; white-space: nowrap; }
.p-odd { display: block; color: var(--text); font-variant-numeric: tabular-nums; }
.p-odd small { color: var(--sub); font-size: 12px; }
.p-mult { display: inline-block; margin-top: 2px; padding: 0 6px; border-radius: 6px; font-size: 11px; background: var(--main); color: var(--bg); }
.p-mult:empty { display: none; }
.p-was { display: block; font-size: 11px; color: var(--sub); text-decoration: line-through; }
.p-was:empty { display: none; }
.p-go {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 10px;
  background: var(--bg); color: var(--sub); font-size: 13px; white-space: nowrap;
  transition: color .15s, background-color .15s;
}
.p-go svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.p-go:hover:not(:disabled) { color: var(--bg); background: var(--main); }
.p-go.hunting { color: var(--bg); background: var(--main); }
.p-go.hunting svg { animation: spin 1.2s linear infinite; }
.p-go:disabled { color: var(--c); background: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

/* feed */
.feed { list-style: none; margin: 0; padding: 0 8px 10px; max-height: 320px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--sub) transparent; }
.feed li { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 8px; font-size: 14px; }
.feed li.new { animation: result-in .35s var(--ease); }
.feed .f-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.feed .f-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed .f-luck { color: var(--sub); font-size: 12px; margin-left: 8px; }
.feed .f-at { color: var(--sub); font-size: 12px; font-variant-numeric: tabular-nums; }
.feed .empty { display: block; color: var(--sub); text-align: center; padding: 18px 12px 22px; }

/* ---------- footer ---------- */
.foot { padding: 34px 0 40px; color: var(--sub); font-size: 12px; text-align: center; }
.keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
kbd { font: inherit; padding: 2px 6px; border-radius: 5px; background: var(--sub-alt); color: var(--text); }
.legal { margin: 18px auto 0; max-width: 560px; opacity: .8; }

/* ---------- toasts ---------- */
.toasts { position: fixed; z-index: 50; top: 16px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast {
  display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px; background: var(--sub-alt); color: var(--text);
  box-shadow: 0 10px 30px rgba(0,0,0,.25); border-left: 4px solid var(--c);
  animation: toast-in .4s var(--ease); pointer-events: auto;
}
.toast.out { animation: toast-out .3s ease-in forwards; }
.toast .p-icon { width: 40px; height: 40px; background: var(--c); color: #141414; }
.toast small { display: block; color: var(--sub); font-size: 12px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-10px) scale(.96); } }

/* ---------- modals ---------- */
.modal {
  width: min(560px, calc(100% - 32px)); max-height: min(86vh, 900px); padding: 0;
  border: 0; border-radius: 18px; background: var(--bg); color: var(--text);
  box-shadow: 0 30px 80px rgba(0,0,0,.45); overflow: hidden;
}
.modal[open] { display: flex; flex-direction: column; animation: modal-in .25s var(--ease); }
.modal::backdrop { background: rgba(0,0,0,.55); backdrop-filter: blur(2px); }
.modal-wide { width: min(980px, calc(100% - 32px)); }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 16px; border-bottom: 1px solid var(--sub-alt); }
.modal-head h2 { margin: 0 0 0 4px; font-size: 16px; font-weight: 500; }
.modal-x { margin-left: auto; }
.modal-body { padding: 4px 20px 20px; overflow-y: auto; }

.search { flex: 1 1 220px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 10px; background: var(--sub-alt); color: var(--sub); }
.search svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; flex: none; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--text); font: inherit; outline: none; }
.search input::placeholder { color: var(--sub); }

.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; padding: 16px; overflow-y: auto; }
.theme {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 34px 0 12px; border-radius: 10px; font-size: 14px;
  background: var(--tbg); color: var(--tmain);
  transition: transform .12s var(--ease), box-shadow .12s;
  box-shadow: inset 0 0 0 1px rgba(127,127,127,.15);
}
.theme span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.theme:hover { transform: translateY(-2px); }
.theme .dots { position: absolute; right: 10px; display: flex; gap: 3px; opacity: 0; transition: opacity .15s; }
.theme .dots i { width: 7px; height: 7px; border-radius: 50%; }
.theme:hover .dots, .theme.on .dots { opacity: 1; }
.theme.on { box-shadow: 0 0 0 3px var(--text); }
.theme-empty { grid-column: 1 / -1; text-align: center; color: var(--sub); padding: 30px; }

.set-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--sub-alt); }
.set-row:last-child { border-bottom: 0; }
.set-col { flex-direction: column; align-items: stretch; }
.set-col .btn { align-self: flex-start; }
.set-text h3 { margin: 0; font-size: 14px; font-weight: 500; color: var(--text); }
.set-text p { margin: 4px 0 0; font-size: 12px; color: var(--sub); }
.num {
  width: 90px; height: 38px; padding: 0 12px; border: 0; border-radius: 10px;
  background: var(--sub-alt); color: var(--text); font: inherit; text-align: right; outline: none;
}
.num:focus { box-shadow: 0 0 0 2px var(--main); }
.odds-table { font-size: 13px; }
.odds-head, .odds-row { display: grid; grid-template-columns: 1fr 120px 110px; gap: 8px; align-items: center; }
.odds-head { color: var(--sub); font-size: 11px; padding: 0 0 6px; }
.odds-head span:not(:first-child) { text-align: right; }
.odds-row { padding: 4px 0; }
.odds-row .num { width: 100%; height: 34px; }
.odds-row label { display: flex; align-items: center; gap: 8px; min-width: 0; }
.odds-row label i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.odds-row label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- tooltips (instant, themed) ---------- */
.tip {
  position: fixed; left: 0; top: 0; z-index: 100; max-width: 260px; pointer-events: none;
  padding: 7px 10px; border-radius: 9px; font-size: 12px; line-height: 1.45;
  background: var(--text); color: var(--bg);
  box-shadow: 0 10px 28px -10px rgba(0,0,0,.45);
  animation: tip-in .12s var(--ease);
}
.tip::after {
  content: ''; position: absolute; left: var(--ax, 50%); bottom: -5px; width: 10px; height: 10px;
  margin-left: -5px; background: inherit; transform: rotate(45deg); border-radius: 2px;
}
.tip.below::after { bottom: auto; top: -5px; }
@keyframes tip-in { from { opacity: 0; } }
.tip.rich { padding: 10px; width: 240px; background: var(--sub-alt); color: var(--text); border: 1px solid color-mix(in srgb, var(--sub) 30%, transparent); }
.tip.rich::after { border-right: 1px solid color-mix(in srgb, var(--sub) 30%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--sub) 30%, transparent); }
.tip.rich.below::after { border: 0; border-left: 1px solid color-mix(in srgb, var(--sub) 30%, transparent); border-top: 1px solid color-mix(in srgb, var(--sub) 30%, transparent); }
.tip-rich { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center; }
.tip-pic {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; overflow: hidden;
  background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c);
}
.tip-rich.got .tip-pic { background: var(--c); color: #141414; }
.tip-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tip-rich:not(.got) .tip-pic img { filter: grayscale(1); opacity: .5; }
.tip-pic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tip-type { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--sub); }
.tip-name { font-size: 13px; font-weight: 500; line-height: 1.3; margin: 1px 0 3px; }
.tip-status { font-size: 12px; color: var(--sub); }
.tip-status b { color: var(--text); font-weight: 500; }
.tip-hi { color: var(--c); }
.tip-rich:not(.got) .tip-hi { color: var(--main); }
.tip-dim { color: var(--sub); }
.tip-list { list-style: none; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid color-mix(in srgb, var(--sub) 25%, transparent); }
.tip-list li { display: flex; justify-content: space-between; gap: 10px; padding: 1px 0; color: var(--sub); }
.tip-list b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- online now & tools switcher ---------- */
.flag { font-family: 'Twemoji Country Flags', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; font-size: 18px; line-height: 1; }
.online-wrap, .tools-wrap { position: relative; display: flex; }
.tools-btn[aria-expanded="true"] { color: var(--text); background: var(--sub-alt); }
.tools-badge {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; font-size: 11px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums;
  background: color-mix(in srgb, var(--main) 18%, var(--sub-alt)); color: var(--main);
}
.tools-pop {
  position: absolute; z-index: 32; top: calc(100% + 8px); right: 0; width: 340px;
  padding: 10px; border-radius: 16px; background: var(--sub-alt); color: var(--text);
  border: 1px solid color-mix(in srgb, var(--sub) 22%, transparent);
  box-shadow: 0 18px 44px -12px rgba(0,0,0,.38); animation: modal-in .18s var(--ease);
}
.tools-pop::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.tools-pop-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 8px 8px; font-size: 11px; color: var(--sub); text-transform: uppercase; letter-spacing: .08em;
}
.tools-pop-head a { color: var(--main); text-decoration: none; text-transform: none; letter-spacing: 0; font-size: 12px; }
.tools-pop-head a:hover { text-decoration: underline; }
.tools-pop-list { display: flex; flex-direction: column; gap: 4px; }
.tp-item {
  display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px;
  padding: 8px; border-radius: 12px; text-decoration: none; color: var(--text);
  transition: background-color .15s, transform .15s var(--ease);
}
.tp-item:hover { background: var(--bg); }
.tp-item.is-here { background: color-mix(in srgb, var(--bg) 55%, transparent); }
.tp-art {
  width: 42px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--bg); color: var(--text); overflow: hidden;
}
.tp-item:hover .tp-art { background: var(--sub-alt); }
.tp-art svg { width: 36px; height: 30px; transition: transform .25s var(--ease); }
.tp-item:hover .tp-art svg { transform: rotate(-4deg) scale(1.06); }
.tp-soon {
  margin-top: 2px; border: 1.5px dashed color-mix(in srgb, var(--sub) 45%, transparent);
  background: transparent; cursor: default;
}
.tp-soon:hover { background: transparent; }
.tp-soon .tp-title { color: var(--sub); font-weight: 400; }
.tp-art-soon { background: transparent !important; color: var(--sub); font-size: 18px; }
.tp-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tp-title { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--text); }
.tp-sub { font-size: 11.5px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-tag, .tp-here {
  font-style: normal; font-size: 10px; font-weight: 500; padding: 1px 6px; border-radius: 5px; line-height: 1.3;
}
.tp-tag { background: var(--main); color: var(--bg); }
.tp-here { background: color-mix(in srgb, var(--sub) 22%, transparent); color: var(--sub); }
.tp-arrow { font-size: 13px; color: var(--sub); padding-right: 4px; transition: color .15s, transform .15s var(--ease); }
.tp-item:hover .tp-arrow { color: var(--main); transform: translateX(2px); }

/* ---------- sibling tool card (bottom cross-discovery) ---------- */
.more-tool {
  display: grid; grid-template-columns: 76px 1fr auto; align-items: center; gap: 16px;
  margin-top: 22px; padding: 16px 20px; border-radius: calc(var(--r) + 6px);
  background: var(--sub-alt); color: var(--text); text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--sub) 18%, transparent);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.more-tool:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--main) 45%, transparent);
  box-shadow: 0 14px 30px -18px rgba(0,0,0,.38);
}
.more-art {
  width: 76px; height: 64px; border-radius: var(--r); display: grid; place-items: center;
  background: var(--bg);
}
.more-art svg { width: 64px; transition: transform .3s var(--ease); }
.more-tool:hover .more-art svg { transform: rotate(-4deg) scale(1.06); }
.more-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.more-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--sub); }
.more-title { display: flex; align-items: center; gap: 7px; font-size: 16px; font-weight: 500; color: var(--text); }
.more-tag {
  font-style: normal; font-size: 10.5px; padding: 1px 7px; border-radius: 6px;
  background: var(--main); color: var(--bg); line-height: 1.35;
}
.more-desc { font-size: 12.5px; line-height: 1.5; color: var(--sub); }
.more-go {
  padding: 8px 14px; border-radius: 10px; background: var(--bg); color: var(--sub);
  font-size: 13px; white-space: nowrap; transition: background-color .15s, color .15s;
}
.more-tool:hover .more-go { background: var(--main); color: var(--bg); }
.online-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 8px;
  color: var(--sub); font-size: 13px; transition: color .15s, background-color .15s;
}
.online-chip:hover, .online-chip[aria-expanded="true"] { color: var(--text); background: var(--sub-alt); }
.online-chip b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #3ecf6e; }
.live-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
.online-pop {
  position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; width: 260px;
  padding: 8px; border-radius: 14px; background: var(--sub-alt); color: var(--text);
  border: 1px solid color-mix(in srgb, var(--sub) 22%, transparent);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.35); animation: modal-in .18s var(--ease);
}
.online-pop::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; } /* hover bridge */
.online-pop-head { display: flex; justify-content: space-between; padding: 6px 8px 6px; font-size: 11px; color: var(--sub); text-transform: uppercase; letter-spacing: .08em; }
.online-pop-head b { color: var(--text); font-weight: 500; }
.online-sub-head { padding: 8px 8px 4px; font-size: 10px; color: var(--sub); text-transform: uppercase; letter-spacing: .08em; border-top: 1px solid color-mix(in srgb, var(--sub) 20%, transparent); margin-top: 4px; }
.online-pages .online-sub-head:first-child { margin-top: 0; padding-top: 6px; }
.op-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 8px; font-size: 12.5px; text-decoration: none; color: var(--text); }
.op-row:hover { background: var(--bg); }
.op-row.is-zero { opacity: .55; }
.op-name i { font-style: normal; font-size: 10px; padding: 1px 5px; border-radius: 4px; background: color-mix(in srgb, var(--sub) 22%, transparent); color: var(--sub); margin-left: 4px; }
.op-flags { display: inline-flex; gap: 3px; }
.op-flags .flag { font-size: 14px; }
.op-row b { font-weight: 500; font-variant-numeric: tabular-nums; }
.online-list { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow-y: auto; scrollbar-width: thin; }
.online-list li { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: 13px; }
.online-list li:hover { background: var(--bg); }
.online-list .c-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.online-list b { font-weight: 500; font-variant-numeric: tabular-nums; }
.toast.toast-plain .p-icon { background: transparent; border: 2px solid var(--c); color: var(--c); }

/* ---------- floating comments ---------- */
/* "side whispers": a note glides in from the screen edge, rests, then glides back out */
.cm {
  position: fixed; z-index: 44; opacity: 0; will-change: transform, opacity;
  display: flex; flex-direction: column; gap: 2px; padding: 9px 13px 10px;
  background: color-mix(in srgb, var(--sub-alt) 88%, transparent); color: var(--text);
  font-size: 12px; line-height: 1.4; overflow-wrap: anywhere;
  box-shadow: 0 8px 22px -14px rgba(0,0,0,.35);
}
.cm.left { border-radius: 4px 14px 14px 14px; }
.cm.right { border-radius: 14px 4px 14px 14px; }
.cm.narrow { font-size: 11.5px; }
.cm-who { display: flex; align-items: center; gap: 5px; color: var(--sub); font-size: 11px; }
.cm-who .flag { font-size: 12px; }
.cm.mine { background: color-mix(in srgb, var(--main) 16%, var(--sub-alt)); }
.cm-heart { color: #ff5c8a; letter-spacing: -1px; }
.cm-report {
  position: absolute; top: 4px; right: 6px; width: 20px; height: 20px; border-radius: 6px;
  font-size: 11px; color: var(--sub); opacity: 0; transition: opacity .15s, background-color .15s;
}
.cm:hover { padding-right: 30px; }
.cm:hover .cm-report { opacity: 1; }
.cm-report:hover { background: var(--bg); color: var(--error); }

.cm-fab {
  position: fixed; z-index: 45; right: 18px; bottom: 18px; width: 46px; height: 46px;
  border-radius: 15px 4px 15px 15px;
  display: grid; place-items: center; color: var(--sub); background: var(--sub-alt); opacity: .88;
  border: 1px solid color-mix(in srgb, var(--sub) 22%, transparent);
  box-shadow: 0 8px 22px -12px rgba(0,0,0,.35); transition: opacity .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.cm-fab:hover, .cm-fab.on { opacity: 1; color: var(--text); border-color: color-mix(in srgb, var(--main) 45%, transparent); transform: translateY(-2px); }
.cm-fab svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* periodic hand-drawn ink hint: 1) draws curved arrow, 2) writes "leave a floating / comment", 3) rests & fades */
.cm-sketch {
  position: fixed; z-index: 44; right: 14px; bottom: 60px; width: 198px; height: 110px;
  pointer-events: none; opacity: 0;
}
.cm-sketch svg {
  width: 100%; height: 100%; overflow: visible;
  fill: none; stroke: var(--sub); stroke-width: 1.22; stroke-linecap: round; stroke-linejoin: round;
}
.cm-sketch path { stroke-dasharray: 1 2; stroke-dashoffset: 1; opacity: 0; }
.cm-sketch.draw { animation: hw-cycle 9.2s ease forwards; }
.cm-sketch.draw .hw-s1 { animation: hw-ink .42s cubic-bezier(.25,.1,.25,1) .05s forwards; }
.cm-sketch.draw .hw-s2 { animation: hw-ink .18s ease-out .52s forwards; }
.cm-sketch.draw .hw-w1 { animation: hw-ink .58s cubic-bezier(.3,.15,.3,1) .86s forwards; }
.cm-sketch.draw .hw-w2 { animation: hw-ink .16s ease-out 1.56s forwards; }
.cm-sketch.draw .hw-w3 { animation: hw-ink .76s cubic-bezier(.25,.15,.25,1) 1.84s forwards; }
.cm-sketch.draw .hw-w3b { animation: hw-ink .14s ease-out 2.65s forwards; }
.cm-sketch.draw .hw-w4 { animation: hw-ink .72s cubic-bezier(.25,.15,.25,1) 2.94s forwards; }
.cm-sketch.draw .hw-w5 { animation: hw-ink .13s ease-out 3.72s forwards; }
@keyframes hw-ink {
  0% { stroke-dashoffset: 1; opacity: 0; }
  8% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes hw-cycle {
  0%, 88% { opacity: .88; transform: none; }
  100% { opacity: 0; transform: translateY(2px); }
}
.cm-panel {
  position: fixed; z-index: 46; right: 18px; bottom: 70px; width: min(320px, calc(100vw - 36px));
  padding: 14px; border-radius: 16px; background: var(--sub-alt); color: var(--text);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.4); animation: modal-in .2s var(--ease);
}
.cm-p-title { margin: 0 0 10px; font-size: 13px; font-weight: 500; }
.cm-p-note { margin: 8px 0 0; font-size: 11px; color: var(--sub); }
.cm-form { display: flex; flex-direction: column; gap: 8px; }
.cm-send-row { display: flex; gap: 8px; }
.cm-send-row .cm-send { flex: none; width: auto; min-width: 0; height: 36px; padding: 0 16px; }
.cm-name-row { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--sub); }
.cm-name-row span { width: 34px; flex: none; }
.cm-input, .cm-name {
  flex: 1; min-width: 0; height: 36px; padding: 0 12px; border: 0; border-radius: 10px; outline: none;
  background: var(--bg); color: var(--text); font: inherit; font-size: 13px;
}
.cm-name { height: 30px; font-size: 12px; }
.cm-input:focus, .cm-name:focus { box-shadow: 0 0 0 2px var(--main); }
.cm-p-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 11px; color: var(--sub); }
.cm-err { color: var(--error); }

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .top { padding-top: 14px; flex-wrap: wrap; }
  .th-chip { order: 3; width: 100%; justify-content: center; }
  .logo { font-size: 22px; }
  .logo-home { font-size: 11.5px; }
  .mode { width: 100%; }
  .mode .seg-btn { flex: 1; padding: 12px 8px; font-size: 14px; }
  .controls { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
  .controls .speed { grid-column: 1 / -1; grid-row: 1; width: 100%; }
  .speed .seg { width: 100%; height: 46px; }
  .speed .seg-btn { flex: 1; min-width: 0; padding: 0 2px; font-size: 12px; }
  .btn { height: 52px; }
  .btn-main { width: 100%; }
  .card-head { padding: 14px 14px 10px; }
  .prizes { padding: 0 4px 6px; }
  .prize { grid-template-columns: 40px 1fr auto; gap: 4px 12px; padding: 10px; }
  .p-icon { width: 40px; height: 40px; }
  .p-go { grid-column: 2 / -1; justify-self: start; height: 32px; }
  .p-name, .p-cap { white-space: normal; }
  .p-type { display: block; margin: 2px 0 0; }
  .haul-tiles { gap: 6px; flex-wrap: nowrap; }
  .tile { width: 42px; }
  .tile-icon { width: 42px; height: 42px; border-radius: 12px; }
  .tile-icon svg { width: 19px; height: 19px; }
  .tile-label { font-size: 10px; }
  .tile-badge { right: -6px; }
  .card-head h2 + .sel { order: 3; width: 100%; margin: 4px 0 0; }
  .top-actions { gap: 0; }
  .icon-btn { padding: 8px; }
  .online-pop { right: -90px; }
  .tools-pop { right: -90px; width: min(300px, calc(100vw - 24px)); }
  .more-tool { grid-template-columns: 60px 1fr; padding: 14px; gap: 12px; }
  .more-art { width: 60px; height: 54px; }
  .more-art svg { width: 52px; }
  .more-go { grid-column: 2; justify-self: start; padding: 6px 12px; font-size: 12px; }
  .cm-fab { right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 13px 4px 13px 13px; }
  .cm-sketch { right: 10px; bottom: 48px; width: 156px; height: 86px; }
  .cm-panel { right: 12px; bottom: 60px; }
  .p-name { line-height: 1.3; }
  .toasts { top: 10px; }
  .toast { padding: 10px 12px; grid-template-columns: 34px 1fr; }
  .toast .p-icon { width: 34px; height: 34px; }
  .toast:nth-child(n+3) { display: none; }
  .p-odds { grid-column: 3; grid-row: 1; }
  .odds-head, .odds-row { grid-template-columns: 1fr 96px 70px; }
  .keys { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
