/* Degen Den provably fair checker. Phone first: one column, real-size controls; wider screens get two. */

@font-face { font-family: 'Bebas'; src: url(/fonts/bebas-neue-latin.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bebas'; src: url(/fonts/bebas-neue-latin-ext.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; src: url(/fonts/montserrat-latin.woff2) format('woff2'); font-weight: 500 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; src: url(/fonts/montserrat-latin-ext.woff2) format('woff2'); font-weight: 500 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+A720-A7FF; }

:root {
  --bg: #07070a;
  --bg-2: #0e0d12;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --red: #d1121c;
  --red-hi: #ff2b37;
  --gold: #e2b65c;
  --gold-hi: #f6dc97;
  --ink: #f4efe4;
  --muted: #a59d8e;
  --dim: #6f695f;
  --win: #2fd17a;
  --lose: #ff4652;
  --wait: #e2b65c;
  --blurple: #5865f2;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
  --r: 18px;
  --card-w: 58px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 500 15px/1.6 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.glow {
  position: absolute; inset: 0 0 auto 0; height: 900px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% -5%, rgba(209, 18, 28, 0.32), transparent 70%),
    radial-gradient(ellipse 40% 35% at 85% 10%, rgba(226, 182, 92, 0.10), transparent 70%),
    radial-gradient(ellipse 40% 35% at 10% 25%, rgba(209, 18, 28, 0.10), transparent 70%);
}
a { color: var(--gold-hi); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre { font-family: var(--mono); font-size: 0.86em; }
code { background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--gold-hi); white-space: nowrap; }
pre code { white-space: pre; border: 0; background: none; padding: 0; color: var(--ink); }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h2 { font: 400 clamp(38px, 6vw, 58px)/0.95 'Bebas', sans-serif; letter-spacing: 1.5px; }
h3 { font: 800 15px/1.3 'Montserrat', sans-serif; letter-spacing: 0.2px; }
b { font-weight: 800; }

/* ------------------------------------- header ------------------------------------- */

.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px;
  padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  background: rgba(7, 7, 10, 0.78);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; }
.brand img { width: 40px; height: auto; filter: drop-shadow(0 2px 8px rgba(209, 18, 28, 0.45)); }
.brand-name { font: 400 25px/1 'Bebas', sans-serif; letter-spacing: 2px; }
.brand-name b { color: var(--red-hi); font-weight: 400; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--muted); font-weight: 700; font-size: 13px; padding: 8px 12px; border-radius: 10px; text-decoration: none; }
.nav a:hover { color: var(--ink); background: var(--panel-2); }
@media (max-width: 820px) { .nav { display: none; } .top .btn-discord { margin-left: auto; } }

/* ------------------------------------- buttons ------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  font: 800 14px/1 'Montserrat', sans-serif; letter-spacing: 0.3px; color: #fff; cursor: pointer;
  text-decoration: none !important; white-space: nowrap; transition: transform 0.12s, filter 0.12s, background 0.12s;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:focus-visible, input:focus-visible, select:focus-visible, .chip:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.btn-red { background: linear-gradient(180deg, #ef1f2b, #b30d16); box-shadow: 0 8px 24px -8px rgba(209, 18, 28, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-red:hover { filter: brightness(1.1); }
.btn-discord { background: var(--blurple); box-shadow: 0 8px 22px -10px rgba(88, 101, 242, 0.9); }
.btn-discord:hover { filter: brightness(1.1); }
.btn-discord .dc { width: 21px; height: 16px; }
.btn-discord.big { min-height: 54px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn-discord.big .dc { width: 26px; height: 20px; }
.btn-ghost { background: var(--panel-2); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-small { min-height: 34px; padding: 0 12px; font-size: 12px; border-radius: 9px; }
.copy { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 7px; font: 700 11px/1 'Montserrat', sans-serif; padding: 5px 8px; cursor: pointer; flex: none; }
.copy:hover { color: var(--ink); border-color: var(--line-2); }
.copy.done { color: var(--win); border-color: rgba(47, 209, 122, 0.5); }

/* --------------------------------------- hero --------------------------------------- */

main { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)); }
.hero { padding: clamp(40px, 9vw, 96px) 0 34px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  font: 800 12px/1 'Montserrat', sans-serif; letter-spacing: 2.2px; text-transform: uppercase; color: var(--gold);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--win); box-shadow: 0 0 0 4px rgba(47, 209, 122, 0.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(47, 209, 122, 0.05); } }
.hero h1 { font: 400 clamp(60px, 13vw, 128px)/0.88 'Bebas', sans-serif; letter-spacing: 2px; }
.hl { background: linear-gradient(180deg, #ff4b55 10%, #c50f19 90%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 30px rgba(209, 18, 28, 0.45)); }
.lede { max-width: 640px; margin: 22px auto 0; color: #cfc7b8; font-size: clamp(15px, 2.2vw, 17px); }
.lookup {
  display: flex; gap: 10px; max-width: 560px; margin: 30px auto 0; padding: 8px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-2); border-radius: 16px;
  box-shadow: 0 20px 60px -30px rgba(209, 18, 28, 0.7);
}
.lookup input[type='text'] {
  flex: 1; min-width: 0; height: 52px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--ink);
  font: 700 19px/1 var(--mono); letter-spacing: 1px; outline: none;
}
.lookup input::placeholder { color: var(--dim); font: 600 15px/1 'Montserrat', sans-serif; letter-spacing: 0; }
.lookup .btn { min-height: 52px; padding: 0 22px; font-size: 15px; }
@media (max-width: 480px) { .lookup { flex-direction: column; } .lookup input[type='text'] { flex: none; text-align: center; } .lookup .btn { width: 100%; } .eyebrow { letter-spacing: 1.4px; font-size: 11px; } }
.hint { color: var(--muted); font-size: 13px; margin: 14px 0 0; }
.proof-strip { list-style: none; margin: 40px auto 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 860px; }
.proof-strip li { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 10px; }
.proof-strip b { display: block; font: 400 30px/1 'Bebas', sans-serif; letter-spacing: 1px; color: var(--gold-hi); }
.proof-strip span { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); line-height: 1.35; }
@media (max-width: 640px) { .proof-strip { grid-template-columns: repeat(2, 1fr); } }

/* -------------------------------------- blocks -------------------------------------- */

.block { padding: 64px 0 8px; scroll-margin-top: 70px; }
.block-head { text-align: center; max-width: 700px; margin: 0 auto 26px; }
.block-head .sub { color: var(--muted); margin: 12px 0 0; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.two > *, .checker-grid > *, .steps > li { min-width: 0; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }
.math p { color: #cfc7b8; margin: 10px 0 0; }
.math h3 { margin-bottom: 10px; }
.math pre { margin: 0; padding: 14px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; line-height: 1.55; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: s; }
.steps li { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 18px 18px; }
.steps .n {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 12px;
  font: 400 26px/1 'Bebas', sans-serif; color: #fff; background: linear-gradient(180deg, #ef1f2b, #a10c14);
  box-shadow: 0 8px 20px -8px rgba(209, 18, 28, 0.8);
}
.steps p { color: #cfc7b8; font-size: 14px; margin: 8px 0 0; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

details.per-game { margin-top: 14px; }
details.per-game summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; align-items: center; justify-content: space-between; }
details.per-game summary::-webkit-details-marker { display: none; }
details.per-game summary::after { content: '+'; font: 400 26px/1 'Bebas', sans-serif; color: var(--gold); }
details.per-game[open] summary::after { content: '−'; }
.per-game dl { margin: 16px 0 0; display: grid; grid-template-columns: 170px 1fr; gap: 10px 18px; }
.per-game dt { font-weight: 800; color: var(--gold-hi); }
.per-game dd { margin: 0; color: #cfc7b8; font-size: 14px; }
@media (max-width: 560px) { .per-game dl { grid-template-columns: 1fr; gap: 2px; } .per-game dd { margin-bottom: 10px; } }

/* --------------------------------------- result --------------------------------------- */

.result { margin: 10px auto 0; max-width: 960px; scroll-margin-top: 80px; animation: rise 0.35s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.verdict {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: var(--panel-2); position: relative; overflow: hidden;
}
.verdict .icon { flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font: 900 26px/1 'Montserrat', sans-serif; }
.verdict h2 { font-size: clamp(30px, 5vw, 44px); }
.verdict p { margin: 4px 0 0; color: #cfc7b8; font-size: 14px; }
.verdict.ok { border-color: rgba(47, 209, 122, 0.45); background: linear-gradient(90deg, rgba(47, 209, 122, 0.16), rgba(47, 209, 122, 0.03)); }
.verdict.ok .icon { background: var(--win); color: #04130b; box-shadow: 0 0 0 6px rgba(47, 209, 122, 0.15), 0 0 40px rgba(47, 209, 122, 0.5); }
.verdict.bad { border-color: rgba(255, 70, 82, 0.5); background: linear-gradient(90deg, rgba(255, 70, 82, 0.18), rgba(255, 70, 82, 0.03)); }
.verdict.bad .icon { background: var(--lose); color: #1a0305; }
.verdict.wait { border-color: rgba(226, 182, 92, 0.45); background: linear-gradient(90deg, rgba(226, 182, 92, 0.14), rgba(226, 182, 92, 0.03)); }
.verdict.wait .icon { background: var(--wait); color: #1d1405; }
.verdict .meta { margin-left: auto; text-align: right; color: var(--muted); font-size: 12px; line-height: 1.5; }
.verdict .meta b { display: block; color: var(--ink); font: 700 16px/1.2 var(--mono); letter-spacing: 1px; }
@media (max-width: 600px) { .verdict { flex-wrap: wrap; } .verdict .meta { margin-left: 70px; text-align: left; } }

.checks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.checks li {
  display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
  animation: rise 0.35s ease-out both;
}
.checks li:nth-child(2) { animation-delay: 0.12s; }
.checks li:nth-child(3) { animation-delay: 0.24s; }
.checks .mark { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 14px; }
.checks .yes .mark { background: rgba(47, 209, 122, 0.16); color: var(--win); border: 1px solid rgba(47, 209, 122, 0.5); }
.checks .no .mark { background: rgba(255, 70, 82, 0.16); color: var(--lose); border: 1px solid rgba(255, 70, 82, 0.5); }
.checks .later .mark { background: rgba(226, 182, 92, 0.12); color: var(--wait); border: 1px solid rgba(226, 182, 92, 0.4); }
.checks b { display: block; }
.checks .detail { color: var(--muted); font-size: 13px; margin-top: 4px; overflow-wrap: anywhere; }
.checks .detail code { white-space: normal; overflow-wrap: anywhere; }

.summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.summary div { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.summary span { display: block; font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.summary b { display: block; font: 400 26px/1.1 'Bebas', sans-serif; letter-spacing: 0.8px; margin-top: 4px; }
.summary .pos { color: var(--win); }
.summary .neg { color: var(--lose); }
@media (max-width: 600px) { .summary { grid-template-columns: 1fr 1fr; } }

.stage { margin-top: 12px; padding: 22px 18px; border-radius: var(--r); border: 1px solid var(--line);
  background: radial-gradient(ellipse 80% 90% at 50% 0%, rgba(150, 28, 44, 0.22), transparent 70%), var(--bg-2); overflow: hidden; }
.stage-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 14px; }
.stage-title h3 { font: 400 26px/1 'Bebas', sans-serif; letter-spacing: 1.2px; color: var(--gold-hi); }
.stage-title span { color: var(--muted); font-size: 12px; text-align: right; }

.seed-list { display: grid; gap: 8px; margin-top: 12px; }
.seed-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.seed-row span { font-size: 12px; color: var(--muted); font-weight: 700; }
.seed-row code { white-space: normal; overflow-wrap: anywhere; background: none; border: 0; padding: 0; color: var(--ink); font-size: 12.5px; }
@media (max-width: 600px) { .seed-row { grid-template-columns: 1fr auto; } .seed-row span { grid-column: 1 / -1; } }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

details.under { margin-top: 12px; }
details.under > summary { cursor: pointer; font-weight: 800; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.under > summary::-webkit-details-marker { display: none; }
details.under > summary::after { content: '+'; font: 400 24px/1 'Bebas', sans-serif; color: var(--gold); }
details.under[open] > summary { border-radius: 14px 14px 0 0; }
details.under[open] > summary::after { content: '−'; }
.under-body { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; padding: 14px 16px; background: rgba(0, 0, 0, 0.25); }
.explain { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.explain li { display: grid; grid-template-columns: minmax(110px, 190px) 1fr; gap: 12px; font-size: 13px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.explain li:last-child { border-bottom: 0; }
.explain li > span:first-child { color: var(--muted); font-weight: 700; }
.explain li > span:last-child { font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; }
@media (max-width: 560px) { .explain li { grid-template-columns: 1fr; gap: 2px; } }
.raw { display: grid; gap: 10px; }
.raw-round { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--panel); }
.raw-round .msg { font-size: 12px; color: var(--muted); }
.raw-round .msg code { white-space: normal; overflow-wrap: anywhere; }
.raw-hex { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.raw-hex div { font-family: var(--mono); font-size: 11.5px; background: rgba(0, 0, 0, 0.3); border-radius: 8px; padding: 6px 8px; }
.raw-hex div i { font-style: normal; display: block; color: var(--gold-hi); }
.raw-hex div small { color: var(--dim); }
@media (max-width: 560px) { .raw-hex { grid-template-columns: repeat(2, 1fr); } }
.note { color: var(--muted); font-size: 13px; margin: 10px 0 0; }

/* -------------------------------------- checker -------------------------------------- */

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 auto 16px; max-width: 900px; }
.chip {
  border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer;
  font: 700 13px/1 'Montserrat', sans-serif; padding: 10px 13px; border-radius: 999px; transition: all 0.12s;
}
.chip:hover { color: var(--ink); border-color: var(--line-2); }
.chip[aria-selected='true'] { color: #fff; border-color: transparent; background: linear-gradient(180deg, #ef1f2b, #a10c14); box-shadow: 0 6px 18px -8px rgba(209, 18, 28, 0.9); }
.chip .live { font-size: 9px; letter-spacing: 1px; color: var(--gold-hi); margin-left: 5px; vertical-align: 2px; }
.checker-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 860px) { .checker-grid { grid-template-columns: 1fr; } }
.seeds { display: grid; gap: 14px; position: sticky; top: 76px; }
@media (max-width: 860px) { .seeds { position: static; } }
.seeds label, .params label { display: grid; gap: 6px; font-size: 12px; font-weight: 800; color: var(--ink); letter-spacing: 0.3px; }
.seeds small { color: var(--dim); font-weight: 600; }
input[type='text'], input[type='number'], select {
  width: 100%; height: 44px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line-2);
  background: rgba(0, 0, 0, 0.35); color: var(--ink); font: 600 13px/1 var(--mono); outline: none;
}
select { font-family: 'Montserrat', sans-serif; font-weight: 700; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; background-size: 5px 5px; background-repeat: no-repeat; }
input:focus, select:focus { border-color: var(--gold); }
input[type='number']::-webkit-inner-spin-button { -webkit-appearance: none; }
input[type='number'] { -moz-appearance: textfield; }
.stepper { display: grid; grid-template-columns: 44px 1fr 44px; gap: 6px; }
.stepper input { text-align: center; font-size: 16px; }
.step { border: 1px solid var(--line-2); background: var(--panel-2); color: var(--ink); border-radius: 11px; font: 800 20px/1 'Montserrat', sans-serif; cursor: pointer; }
.step:hover { background: rgba(255, 255, 255, 0.1); }
.params { display: grid; gap: 12px; }
.params .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.params .six { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.row-btns { display: flex; gap: 8px; }
.row-btns .btn { flex: 1; min-height: 40px; font-size: 13px; }
.commit { font-size: 12px; color: var(--muted); margin-top: -6px; overflow-wrap: anywhere; }
.commit code { white-space: normal; overflow-wrap: anywhere; font-size: 11.5px; }
.commit .ok { color: var(--win); font-weight: 800; }
.commit .bad { color: var(--lose); font-weight: 800; }
.out { min-height: 320px; }
.out .empty { display: grid; place-items: center; min-height: 280px; text-align: center; color: var(--dim); font-weight: 700; padding: 20px; }
.out .err { color: var(--lose); font-weight: 700; }

/* ------------------------------------- the games ------------------------------------- */

.cards { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-end; }
.card { width: var(--card-w); aspect-ratio: 5 / 7; border-radius: 7px; background: #fff center / cover no-repeat; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.8); position: relative; flex: none; }
.card.back { background-image: url(/cards/back.webp); }
.card .tag { position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%); font: 700 10px/1 var(--mono); color: var(--dim); white-space: nowrap; }
.card.dim { filter: grayscale(0.7) brightness(0.55); }
.card.glowc { box-shadow: 0 0 0 2px var(--gold), 0 0 24px rgba(226, 182, 92, 0.5); }
.hands { display: grid; gap: 22px; }
.hand-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.hand-row .who { min-width: 92px; }
.who b { display: block; font: 400 22px/1 'Bebas', sans-serif; letter-spacing: 1px; }
.who span { font-size: 12px; color: var(--muted); }
.pill { display: inline-block; font: 800 11px/1 'Montserrat', sans-serif; letter-spacing: 0.8px; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--ink); }
.pill.win { color: var(--win); border-color: rgba(47, 209, 122, 0.5); background: rgba(47, 209, 122, 0.1); }
.pill.lose { color: var(--lose); border-color: rgba(255, 70, 82, 0.45); background: rgba(255, 70, 82, 0.08); }
.pill.push { color: #d4d4d4; }
.pill.gold { color: var(--gold-hi); border-color: rgba(226, 182, 92, 0.5); background: rgba(226, 182, 92, 0.1); }
.big-num { font: 400 clamp(64px, 14vw, 120px)/0.9 'Bebas', sans-serif; letter-spacing: 2px; text-align: center; }
.big-num.win { color: var(--win); text-shadow: 0 0 40px rgba(47, 209, 122, 0.35); }
.big-num.lose { color: var(--lose); text-shadow: 0 0 40px rgba(255, 70, 82, 0.3); }
.center-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 8px; }
.versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; justify-items: center; }
.versus .vs { font: 400 30px/1 'Bebas', sans-serif; color: var(--dim); }
.side { text-align: center; display: grid; gap: 10px; justify-items: center; }
.side .label { font: 400 26px/1 'Bebas', sans-serif; letter-spacing: 1.5px; }
.side .total { font: 400 46px/1 'Bebas', sans-serif; }
.side.won .label, .side.won .total { color: var(--win); }

.grid-board { display: grid; gap: 7px; margin: 0 auto; }
.tile { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; font-size: clamp(16px, 4vw, 26px); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); position: relative; }
.tile.mine { background: radial-gradient(circle, rgba(255, 70, 82, 0.35), rgba(255, 70, 82, 0.08)); border-color: rgba(255, 70, 82, 0.5); }
.tile.gem { background: radial-gradient(circle, rgba(47, 209, 122, 0.35), rgba(47, 209, 122, 0.08)); border-color: rgba(47, 209, 122, 0.5); }
.tile.picked { box-shadow: 0 0 0 2px var(--gold); }
.tile.faint { opacity: 0.45; }
.tile .k { position: absolute; top: 3px; left: 5px; font: 700 9px/1 var(--mono); color: var(--dim); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 12px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; font-style: normal; }

.svgbox { width: 100%; max-width: 560px; margin: 0 auto; display: block; }
.svgbox text { font-family: 'Montserrat', sans-serif; }

.strip { display: flex; justify-content: center; gap: 4px; margin-top: 14px; overflow: hidden; }
.pocket { flex: none; width: 34px; height: 46px; border-radius: 7px; display: grid; place-items: center; font: 400 20px/1 'Bebas', sans-serif; color: #fff; opacity: 0.55; }
.pocket.red { background: #b5121b; }
.pocket.black { background: #1b1a20; border: 1px solid var(--line-2); }
.pocket.green { background: #14833f; }
.pocket.here { opacity: 1; transform: scale(1.18); box-shadow: 0 0 0 2px var(--gold), 0 0 24px rgba(226, 182, 92, 0.55); margin: 0 6px; }
.ball { width: 120px; height: 120px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font: 400 64px/1 'Bebas', sans-serif; color: #fff; box-shadow: inset 0 -10px 30px rgba(0, 0, 0, 0.4), 0 10px 40px -10px rgba(0, 0, 0, 0.8); }
.ball.red { background: radial-gradient(circle at 35% 30%, #ff3a44, #9c0d14); }
.ball.black { background: radial-gradient(circle at 35% 30%, #4a4852, #111015); }
.ball.green { background: radial-gradient(circle at 35% 30%, #34c06a, #0f6a33); }

.dicebar { position: relative; height: 18px; border-radius: 999px; margin: 36px 4px 30px; background: var(--lose); }
.dicebar .zone { position: absolute; top: 0; bottom: 0; background: var(--win); }
.dicebar .marker { position: absolute; top: -34px; transform: translateX(-50%); display: grid; justify-items: center; }
.dicebar .marker b { font: 400 22px/1 'Bebas', sans-serif; background: #fff; color: #111; border-radius: 7px; padding: 4px 7px 2px; }
.dicebar .marker::after { content: ''; width: 3px; height: 34px; background: #fff; border-radius: 2px; margin-top: 2px; }
.dicebar .ticks { position: absolute; left: 0; right: 0; top: 24px; display: flex; justify-content: space-between; font: 700 11px/1 var(--mono); color: var(--dim); }

.dice-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.roll { display: grid; justify-items: center; gap: 6px; padding: 10px 10px 8px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.roll .pair { display: flex; gap: 5px; }
.roll small { font: 700 11px/1 var(--mono); color: var(--muted); }
.roll.point { border-color: rgba(226, 182, 92, 0.6); }
.roll.end { border-color: var(--line-2); background: var(--panel-2); }
.die { width: 34px; height: 34px; border-radius: 8px; background: #f4efe4; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 5px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18); }
.die i { width: 6px; height: 6px; border-radius: 50%; background: #16151a; align-self: center; justify-self: center; }

.keno { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; max-width: 520px; margin: 0 auto; }
.kn { aspect-ratio: 1; border-radius: 9px; display: grid; place-items: center; font: 400 20px/1 'Bebas', sans-serif; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--muted); position: relative; }
.kn.pick { border-color: var(--gold); color: var(--gold-hi); }
.kn.drawn { background: rgba(255, 255, 255, 0.14); color: var(--ink); }
.kn.hit { background: radial-gradient(circle, rgba(47, 209, 122, 0.55), rgba(47, 209, 122, 0.15)); border-color: var(--win); color: #fff; }
.kn .ord { position: absolute; top: 2px; right: 4px; font: 700 8px/1 var(--mono); color: var(--muted); }
button.kn { cursor: pointer; }

.race { display: grid; gap: 8px; }
.horse { display: grid; grid-template-columns: 34px 34px 1fr auto; gap: 10px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.horse .place { font: 400 24px/1 'Bebas', sans-serif; color: var(--muted); text-align: center; }
.horse.first { border-color: rgba(226, 182, 92, 0.6); background: linear-gradient(90deg, rgba(226, 182, 92, 0.16), transparent); }
.horse.first .place { color: var(--gold-hi); }
.cloth { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; font: 400 20px/1 'Bebas', sans-serif; }
.horse .nm b { display: block; }
.horse .nm span { font-size: 12px; color: var(--muted); }
.horse .bet { font-size: 12px; font-weight: 800; color: var(--gold-hi); }

.levels { display: grid; gap: 6px; max-width: 360px; margin: 0 auto; }
.level { display: grid; gap: 6px; }
.level .tile { aspect-ratio: 2.2 / 1; font-size: 18px; }
.lvl-row { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: center; }
.lvl-row > span { font: 700 11px/1 var(--mono); color: var(--dim); text-align: right; }

.hilo-row { display: flex; flex-wrap: wrap; gap: 6px 4px; align-items: center; }
.hilo-step { display: grid; justify-items: center; gap: 2px; min-width: 34px; }
.hilo-step b { font-size: 16px; line-height: 1; }
.hilo-step small { font: 700 9px/1 'Montserrat', sans-serif; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted); }
.hilo-step.won b { color: var(--win); }
.hilo-step.lost b { color: var(--lose); }

.play-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.play-btns .btn { min-height: 38px; padding: 0 14px; font-size: 13px; }
.play-btns .btn:disabled { opacity: 0.35; cursor: not-allowed; }
.stream { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--card-w), 1fr)); gap: 24px 6px; margin-top: 8px; padding-bottom: 14px; }

/* ---------------------------------------- call ---------------------------------------- */

.cta {
  display: flex; align-items: center; gap: 30px; margin: 70px 0 30px; padding: 30px;
  border-radius: 24px; border: 1px solid rgba(209, 18, 28, 0.4);
  background: radial-gradient(ellipse 70% 120% at 0% 50%, rgba(209, 18, 28, 0.28), transparent 70%), var(--bg-2);
}
.cta img { width: 140px; height: auto; flex: none; filter: drop-shadow(0 10px 30px rgba(209, 18, 28, 0.5)); }
.cta p { color: #cfc7b8; margin: 10px 0 18px; max-width: 560px; }
@media (max-width: 640px) { .cta { flex-direction: column; text-align: center; padding: 26px 18px; } .cta img { width: 110px; } }

.foot { position: relative; z-index: 1; text-align: center; color: var(--muted); font-size: 13px; padding: 30px 16px 50px; border-top: 1px solid var(--line); }
.foot p { margin: 6px 0; }
.foot .small { color: var(--dim); font-size: 12px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; background: #1b1a20; border: 1px solid var(--line-2); padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: 13px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); animation: rise 0.25s ease-out; }
.spin { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, 0.3); border-top-color: #fff; border-radius: 50%; animation: turn 0.8s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
