/* FaucetPay Verify - styled with FaucetPay's design tokens (granite + white + electric blue). */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../assets/fonts/inter-latin-wght-normal.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --bg: #14161a;
  --bg-2: #181b21;
  --surface: #1b1e23;
  --surface-2: #232730;
  --elevated: #2c313b;
  --text: #ffffff;
  --text-2: #ced3dc;
  --dim: #8b919c;
  --mute: #5a606b;
  --border: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.04);
  --glass: rgba(20, 22, 26, 0.85);
  --blue: #5b8def;
  --blue-2: #4773d8;
  --blue-soft: #84a7f5;
  --blue-on: #0a1330;
  --success: #4ade80;
  --warning: #f5b75e;
  --danger: #ef4444;
  --success-bg: rgba(74, 222, 128, 0.10);
  --warning-bg: rgba(245, 183, 94, 0.10);
  --danger-bg: rgba(239, 68, 68, 0.12);
  --blue-bg: rgba(91, 141, 239, 0.12);
  --shadow-raised: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-floating: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  --glow-brand: 0 0 0 1px rgba(91, 141, 239, 0.30) inset, 0 0 14px rgba(91, 141, 239, 0.35);
  --ring-blue: 0 0 0 3px rgba(91, 141, 239, 0.25);
  --r-sm: 6px;
  --r-md: 9px;
  --r-lg: 12px;
  --r-xl: 16px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', 'JetBrains Mono', Menlo, Consolas, 'Liberation Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-soft); }
h1, h2, h3 { color: var(--text); margin: 0; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0 0 0.75em; }
p:last-child { margin-bottom: 0; }
code, .mono { font-family: var(--mono); font-variant-ligatures: none; }
b { color: var(--text); font-weight: 600; }
.muted { color: var(--dim); }
.small { font-size: 13px; }
.good { color: var(--success); }
.bad { color: var(--danger); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--blue); color: var(--blue-on); padding: 6px 12px; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

.glow {
  position: absolute; inset: 0 0 auto 0; height: 760px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(600px 340px at 18% 0%, rgba(91, 141, 239, 0.16), transparent 70%),
    radial-gradient(520px 320px at 88% 8%, rgba(70, 181, 249, 0.10), transparent 70%);
}
main, .topbar, .footer { position: relative; z-index: 1; }

/* ---- top bar ---- */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border-soft); }
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 27px; width: auto; }
.brand-tag { font-size: 12px; font-weight: 600; color: var(--blue); background: var(--blue-bg); border: 1px solid rgba(91, 141, 239, 0.25); padding: 2px 9px; border-radius: 999px; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { color: var(--text-2); font-size: 14px; font-weight: 500; padding: 7px 11px; border-radius: var(--r-md); transition: background 150ms var(--ease), color 150ms var(--ease); }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.topbar-cta { margin-left: auto; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1;
  padding: 10px 16px; border-radius: var(--r-md); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; color: var(--text);
  transition: background 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease), transform 150ms var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--blue); color: var(--blue-on); box-shadow: 0 6px 18px rgba(91, 141, 239, 0.28); }
.btn-primary:hover:not(:disabled) { background: var(--blue-soft); color: var(--blue-on); }
.btn-outline { background: rgba(91, 141, 239, 0.08); color: var(--blue); border-color: rgba(91, 141, 239, 0.3); }
.btn-outline:hover:not(:disabled) { background: rgba(91, 141, 239, 0.16); border-color: rgba(91, 141, 239, 0.5); color: var(--blue-soft); }
.btn-ghost { background: var(--surface-2); color: var(--text-2); border-color: var(--border); }
.btn-ghost:hover:not(:disabled) { background: var(--elevated); color: var(--text); }
.btn-ghost.copied { color: var(--success); border-color: rgba(74, 222, 128, 0.35); }
.btn-sm { font-size: 13px; padding: 7px 11px; }
.btn-lg { font-size: 15px; padding: 13px 20px; }

/* ---- hero ---- */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 56px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--success); background: var(--success-bg); border: 1px solid rgba(74, 222, 128, 0.25); padding: 4px 11px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 5.2vw, 56px); font-weight: 750; letter-spacing: -0.035em; line-height: 1.05; }
.grad { background: linear-gradient(90deg, #84a7f5, #46b5f9 60%, #4ade80); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 17.5px; margin: 20px 0 28px; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.trust li { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--text-2); }
.trust .icon { color: var(--blue); }

.seal { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 22px; box-shadow: var(--shadow-floating); }
.seal-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-2); margin-bottom: 8px; font-size: 13.5px; }
.seal-k { color: var(--dim); }
.seal-v { color: var(--text); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.seal-v.locked { color: var(--warning); font-family: var(--font); }
.seal-arrow { display: flex; justify-content: center; color: var(--blue); margin: 6px 0; }
.seal-result { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; border-radius: var(--r-lg); background: var(--blue-bg); border: 1px solid rgba(91, 141, 239, 0.3); }
.seal-result span { color: var(--blue-soft); font-weight: 600; font-size: 13px; }
.seal-result b { font-size: 30px; font-weight: 750; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.seal-ok { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; font-size: 13px; color: var(--success); font-weight: 600; }

/* ---- sections ---- */
.section { padding-top: 56px; padding-bottom: 24px; }
.section-head { margin-bottom: 26px; max-width: 720px; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.eyebrow .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--mute); }
.section h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 720; }
.section .lead { margin-top: 10px; font-size: 16px; color: var(--text-2); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 22px; box-shadow: var(--shadow-raised); }
.num { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--blue-bg); color: var(--blue); font-size: 13px; font-weight: 700; border: 1px solid rgba(91, 141, 239, 0.3); }

.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step-top { display: flex; align-items: center; justify-content: space-between; color: var(--blue); margin-bottom: 14px; }
.step h3 { font-size: 16.5px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-2); }

/* ---- demo ---- */
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; overflow: hidden; }
.demo-step { display: flex; gap: 14px; padding: 22px; border-bottom: 1px solid var(--border-soft); }
.demo-step:nth-child(odd) { border-right: 1px solid var(--border-soft); }
.demo-step > div { min-width: 0; flex: 1; }
.demo-step h3 { font-size: 16px; margin: 2px 0 12px; }
.demo-label { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dim); margin: 10px 0 5px; }
.demo-secret, .demo-hash { display: block; padding: 9px 11px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); font-size: 12.5px; word-break: break-all; color: var(--text); min-height: 38px; }
.demo-secret .locked { display: inline-flex; align-items: center; gap: 6px; color: var(--warning); }
.demo-secret code.fake { color: var(--danger); }
.demo input { width: 100%; }
.demo-rolls { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; max-height: 190px; overflow: auto; }
.demo-rolls li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 11px; border-radius: var(--r-md); background: var(--surface-2); font-size: 13.5px; }
.demo-rolls li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-rolls b { font-variant-numeric: tabular-nums; }
.demo-check { margin-top: 14px; padding: 14px; border-radius: var(--r-lg); border: 1px solid; }
.demo-check.ok { background: var(--success-bg); border-color: rgba(74, 222, 128, 0.3); }
.demo-check.bad { background: var(--danger-bg); border-color: rgba(239, 68, 68, 0.35); }
.demo-check-head { display: flex; gap: 9px; align-items: flex-start; margin-bottom: 8px; }
.demo-check.ok .demo-check-head .icon { color: var(--success); flex: none; }
.demo-check.bad .demo-check-head .icon { color: var(--danger); flex: none; }
.demo-lines { list-style: none; padding: 0; margin: 8px 0 0; font-size: 13px; display: grid; gap: 3px; }
.demo-lines li { display: flex; gap: 6px; align-items: center; }
.row-gap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---- gotchas ---- */
.gotchas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gotcha-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-md); background: var(--blue-bg); color: var(--blue); border: 1px solid rgba(91, 141, 239, 0.25); margin-bottom: 14px; }
.gotcha h3 { font-size: 15.5px; margin-bottom: 7px; }
.gotcha p { font-size: 13.5px; }

/* ---- games ---- */
.game-group { margin-bottom: 26px; }
.group-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.group-head h3 { font-size: 15px; }
.games-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.game-card {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
  transition: background 150ms var(--ease), border-color 150ms var(--ease), transform 150ms var(--ease);
}
.game-card:hover { background: var(--surface-2); border-color: rgba(91, 141, 239, 0.35); transform: translateY(-1px); color: var(--text-2); }
.game-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: var(--r-md); background: rgba(91, 141, 239, 0.08); color: var(--blue); border: 1px solid var(--border-soft); }
.game-icon.big { width: 56px; height: 56px; border-radius: var(--r-lg); box-shadow: var(--glow-brand); }
.game-card-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.game-name { display: flex; align-items: center; gap: 5px; color: var(--text); font-weight: 600; font-size: 14.5px; }
.game-name .ext { color: var(--dim); }
.game-blurb { font-size: 12.5px; line-height: 1.4; color: var(--dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.game-card .chev { color: var(--mute); flex: none; }

/* ---- FAQ ---- */
.faq { display: grid; gap: 8px; max-width: 860px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 18px; cursor: pointer; color: var(--text); font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { color: var(--dim); transition: transform 200ms var(--ease); flex: none; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-a { padding: 0 18px 16px; font-size: 14.5px; }
.code-block { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 14px; overflow-x: auto; font-family: var(--mono); font-size: 12.5px; color: var(--text); margin: 8px 0 0; }

/* ---- game page ---- */
.game-page { padding-top: 26px; padding-bottom: 40px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--dim); margin-bottom: 18px; }
.back:hover { color: var(--text); }
.game-head { display: flex; gap: 18px; align-items: center; margin-bottom: 24px; }
.game-head h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 750; }
.game-head .lead { margin: 4px 0 0; font-size: 15.5px; }
.game-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.card-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--blue); }
.card-title h2 { font-size: 17px; }

.where { background: var(--bg-2); border: 1px solid var(--border-soft); border-radius: var(--r-lg); padding: 10px 14px; margin-bottom: 16px; }
.where summary { cursor: pointer; display: flex; align-items: center; gap: 7px; color: var(--blue); font-weight: 600; font-size: 14px; list-style: none; }
.where summary::-webkit-details-marker { display: none; }
.where[open] summary { margin-bottom: 8px; }
.where-list { margin: 0 0 8px; padding-left: 20px; font-size: 14px; display: grid; gap: 6px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.field { display: flex; flex-direction: column; gap: 5px; grid-column: span 2; min-width: 0; }
.field:has(select), .field:has(input[inputmode="numeric"]) { grid-column: span 1; }
.field-label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dim); }
.field-label .opt { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--mute); font-size: 11.5px; }
.field-help { font-size: 12.5px; color: var(--mute); }
input[type="text"], select {
  width: 100%; font: inherit; font-size: 14px; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 10px 12px; outline: none; transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
input.mono { font-family: var(--mono); font-size: 13px; }
input::placeholder { color: var(--mute); }
input:focus, select:focus { border-color: var(--blue); box-shadow: var(--ring-blue); }
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%); background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.result-card { position: sticky; top: 78px; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 38px 16px; color: var(--dim); border: 1px dashed var(--border); border-radius: var(--r-lg); }
.empty .icon { color: var(--blue); margin-bottom: 6px; }
.empty p { margin: 0; }
.headline { padding: 16px 18px; border-radius: var(--r-lg); background: var(--blue-bg); border: 1px solid rgba(91, 141, 239, 0.28); margin-bottom: 14px; }
.headline-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--blue-soft); }
.headline-value { font-size: clamp(26px, 3.6vw, 36px); font-weight: 760; color: var(--text); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.15; margin-top: 4px; word-break: break-word; }
.headline-value.good { color: var(--success); }
.headline-value.bad { color: var(--danger); }
.headline-sub { font-size: 13.5px; color: var(--text-2); margin-top: 2px; }
.visual { margin-bottom: 14px; }
.match-note { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); background: var(--bg-2); border-radius: var(--r-md); padding: 10px 12px; }
.match-note .icon { color: var(--success); flex: none; margin-top: 2px; }

.seed-check, .chain-proof { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px; margin-bottom: 14px; background: var(--bg-2); }
.check-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.check-head > div { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.check-head .icon { flex: none; margin-top: 2px; }
.check-head.ok .icon, .check-head.ok b { color: var(--success); }
.check-head.bad .icon, .check-head.bad b { color: var(--danger); }
.check-head.neutral .icon { color: var(--blue); }
.kv { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.kv .k { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dim); }
.code-row { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 6px 6px 6px 11px; }
.code-row code { flex: 1; min-width: 0; font-size: 12.5px; color: var(--text); word-break: break-all; }

.chain-head { display: flex; gap: 8px; align-items: center; color: var(--text); margin-bottom: 4px; }
.chain-head .icon { color: var(--blue); }
.chain-proof .row-gap { margin-top: 12px; }
.progress { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 12px; }
.progress-fill { height: 100%; width: 0; background: var(--blue); transition: width 120ms linear; }
.progress.ok .progress-fill { background: var(--success); }
.progress.bad .progress-fill { background: var(--danger); }
.chain-status { margin-top: 10px; display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; }
.chain-status .icon { flex: none; margin-top: 2px; }
.chain-status.ok { color: var(--success); }
.chain-status.ok span { color: var(--text-2); }
.chain-status.bad { color: var(--danger); }

.math { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 12px 14px; margin-bottom: 14px; }
.math summary { cursor: pointer; display: flex; align-items: center; gap: 7px; color: var(--text); font-weight: 600; font-size: 14px; list-style: none; }
.math summary::-webkit-details-marker { display: none; }
.math[open] summary { margin-bottom: 8px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.steps li { counter-increment: s; position: relative; padding: 9px 11px 9px 40px; background: var(--surface-2); border-radius: var(--r-md); }
.steps li::before { content: counter(s); position: absolute; left: 11px; top: 9px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); color: var(--dim); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.step-t { font-size: 13px; font-weight: 600; color: var(--text); word-break: break-word; }
.step-v { display: block; font-size: 12.5px; color: var(--blue-soft); word-break: break-all; margin-top: 2px; }
.step-d { font-size: 12.5px; color: var(--dim); margin-top: 2px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.recipe { margin-top: 16px; }
.recipe .card-title { color: var(--blue); }
.recipe-list { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 8px; font-size: 14.5px; }
.recipe .muted a { word-break: break-all; }
.alert { display: flex; gap: 8px; align-items: flex-start; padding: 11px 13px; border-radius: var(--r-md); font-size: 14px; margin-bottom: 12px; }
.alert.bad { background: var(--danger-bg); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }
.alert .icon { flex: none; margin-top: 2px; }
.narrow { max-width: 640px; }
.narrow .lead { margin: 0 0 18px; }

/* ---- visuals ---- */
.gauge { padding: 30px 4px 4px; }
.gauge-track { position: relative; height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--surface-2), var(--elevated)); }
.gauge-marker { position: absolute; top: 50%; width: 18px; height: 18px; margin-left: -9px; margin-top: -9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(91, 141, 239, 0.25); }
.gauge-marker span { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--blue); color: var(--blue-on); font-weight: 700; font-size: 12px; padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.gauge-scale { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--mute); margin-top: 8px; margin-bottom: 8px; }

.roulette { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pocket { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; font-weight: 800; color: #fff; border: 4px solid rgba(255, 255, 255, 0.15); box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.3); }
.pocket.red { background: #d63a3a; }
.pocket.black { background: #20232a; }
.pocket.green { background: #17a34a; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.chip.good { color: var(--success); border-color: rgba(74, 222, 128, 0.3); background: var(--success-bg); }
.chip.bad { color: var(--danger); border-color: rgba(239, 68, 68, 0.3); background: var(--danger-bg); }

.plinko-svg { width: 100%; height: auto; }
.peg { fill: var(--dim); }
.ball-path { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; opacity: 0.85; }
.ball { fill: #f5b75e; stroke: #fff; stroke-width: 1.5; }
.plinko-slots { display: flex; gap: 3px; margin-top: 4px; }
.slot { flex: 1; min-width: 0; text-align: center; font-size: 10px; font-weight: 700; padding: 5px 0; border-radius: 4px; background: var(--surface-2); color: var(--dim); overflow: hidden; }
.slot.up { color: var(--warning); }
.slot.hit { background: var(--blue); color: var(--blue-on); }

.gems { display: flex; gap: 10px; flex-wrap: wrap; }
.gem-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; color: var(--dim); }
.gem { width: 54px; height: 54px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35)); }

.tower { display: grid; gap: 6px; }
.tower-row { display: flex; gap: 6px; align-items: center; }
.row-n { width: 18px; font-size: 11.5px; color: var(--mute); text-align: right; flex: none; }
.tile { flex: 1; display: grid; place-items: center; height: 36px; border-radius: var(--r-md); border: 1px solid; }
.tile.safe { background: var(--success-bg); border-color: rgba(74, 222, 128, 0.3); color: var(--success); }
.tile.trap { background: var(--danger-bg); border-color: rgba(239, 68, 68, 0.35); color: var(--danger); }
.mines-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-width: 340px; }
.mines-grid .tile { height: auto; aspect-ratio: 1; }

.cells { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.cells.lanes { grid-template-columns: repeat(10, 1fr); }
.cell { display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--r-sm); font-size: 12.5px; font-weight: 700; border: 1px solid var(--border); background: var(--surface-2); color: var(--dim); font-variant-numeric: tabular-nums; }
.cell.safe { background: var(--success-bg); border-color: rgba(74, 222, 128, 0.3); color: var(--success); }
.cell.trap { background: var(--danger-bg); border-color: rgba(239, 68, 68, 0.35); color: var(--danger); }
.cell.first { box-shadow: 0 0 0 2px var(--danger); }

.cards { display: flex; gap: 8px; }
.cards.wrap, .hand .cards { flex-wrap: wrap; }
.hand { margin-bottom: 12px; }
.hand-l { font-size: 12px; font-weight: 600; color: var(--dim); margin-bottom: 6px; }
.pcard { width: 46px; height: 64px; border-radius: 7px; background: #f8f8f6; color: #1d2027; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35); flex: none; }
.pcard.red { color: #d63a3a; }
.pcard-rank { font-size: 17px; font-weight: 800; }
.pcard-suit { font-size: 20px; margin-top: 2px; }
.hilo-step { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.hilo-step .chip { font-size: 11px; padding: 1px 7px; }

.packs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.pack-card { display: flex; flex-direction: column; gap: 4px; padding: 12px 8px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--border); text-align: center; min-width: 0; }
.pack-tier { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.pack-no { font-size: 12px; color: var(--dim); }
.pack-mult { font-size: 18px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.pack-odds { font-size: 11px; color: var(--mute); }
.tier-common .pack-tier { color: #9ca3af; }
.tier-uncommon .pack-tier { color: var(--success); }
.tier-rare { border-color: rgba(91, 141, 239, 0.4); }
.tier-rare .pack-tier { color: var(--blue); }
.tier-super_rare { border-color: rgba(139, 92, 246, 0.5); }
.tier-super_rare .pack-tier { color: #a78bfa; }
.tier-epic { border-color: rgba(236, 72, 153, 0.5); background: rgba(236, 72, 153, 0.08); }
.tier-epic .pack-tier { color: #f472b6; }
.tier-legendary { border-color: rgba(245, 183, 94, 0.6); background: rgba(245, 183, 94, 0.1); }
.tier-legendary .pack-tier { color: var(--warning); }

.snakes-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-bottom: 12px; }
.sq { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 8px 2px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); min-height: 64px; text-align: center; }
.sq b { font-size: 15px; }
.sq small { font-size: 10.5px; color: var(--dim); }
.sq i { font-style: normal; font-size: 10px; font-weight: 700; color: var(--blue-on); background: var(--blue); border-radius: 4px; padding: 0 5px; margin-top: 2px; }
.sq.empty { background: transparent; border-color: transparent; }
.sq.start { border-color: rgba(91, 141, 239, 0.35); }
.sq.snake { background: var(--danger-bg); border-color: rgba(239, 68, 68, 0.3); }
.sq.snake small { color: var(--danger); }
.sq.hit { box-shadow: 0 0 0 2px var(--blue); }
.roll-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.roll-list li { display: flex; align-items: center; gap: 6px; font-size: 13.5px; flex-wrap: wrap; }
.die { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 5px; background: #f8f8f6; color: #1d2027; font-weight: 800; font-size: 13px; }

.balls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.balls .ball { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; font-size: 19px; font-weight: 800; color: #1d2027; background: radial-gradient(circle at 35% 30%, #fff, #e8e2d2 55%, #c9bea3); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35); }
.balls .ball.jackpot { background: radial-gradient(circle at 35% 30%, #ffe7b3, #f5b75e 55%, #c98a2c); }
.balls .plus { color: var(--dim); font-weight: 700; font-size: 20px; }

.chart { width: 100%; height: auto; background: var(--bg-2); border-radius: var(--r-lg); border: 1px solid var(--border-soft); }
.chart-base { stroke: var(--mute); stroke-dasharray: 4 4; }
.chart-area { fill: rgba(74, 222, 128, 0.10); }
.chart-line { fill: none; stroke: var(--success); stroke-width: 2; stroke-linejoin: round; }
.chart-rug { fill: var(--danger); stroke: #fff; stroke-width: 1.5; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.stat { background: var(--surface-2); border-radius: var(--r-md); padding: 8px 10px; min-width: 0; }
.stat-l { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.stat-v { font-size: 14px; color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dim); padding: 8px 12px; background: var(--bg-2); }
.table td { padding: 7px 12px; border-top: 1px solid var(--border-soft); white-space: nowrap; }
.table .r { text-align: right; }
.table td.good { color: var(--success); font-weight: 700; }
code.trunc { display: inline-block; max-width: 230px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; color: var(--text-2); font-size: 12px; }

/* ---- footer ---- */
.footer { margin-top: 64px; border-top: 1px solid var(--border-soft); background: var(--bg-2); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 36px; }
.footer-brand img { height: 24px; width: auto; margin-bottom: 10px; opacity: 0.9; }
.footer-brand p { font-size: 13.5px; color: var(--dim); max-width: 420px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; font-size: 14px; }
.footer-links a { color: var(--text-2); }
.footer-links a:hover { color: var(--text); }
.noscript { padding: 80px 20px; }

/* ---- responsive ---- */
@media (max-width: 1020px) {
  .steps-grid, .gotchas { grid-template-columns: repeat(2, 1fr); }
  .games-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; gap: 32px; }
  .game-grid { grid-template-columns: minmax(0, 1fr); }
  .result-card { position: static; }
  .demo { grid-template-columns: 1fr; }
  .demo-step:nth-child(odd) { border-right: 0; }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .container { padding: 0 14px; }
  .steps-grid, .gotchas, .games-grid { grid-template-columns: 1fr; }
  .card { padding: 16px; }
  .fields { grid-template-columns: 1fr; }
  .field, .field:has(select), .field:has(input[inputmode="numeric"]) { grid-column: span 1; }
  .packs { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cells, .cells.lanes { grid-template-columns: repeat(5, 1fr); }
  .game-head { gap: 12px; }
  .game-icon.big { width: 46px; height: 46px; }
  .brand img { height: 23px; }
  .topbar-inner { gap: 12px; }
  .demo-step { padding: 16px; }
  .pcard { width: 40px; height: 56px; }
  code.trunc { max-width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}
