/* LuckyPot design system.
   A dense "pro terminal" layout set in a private-bank register: a display serif for figures and
   headings, Inter for reading, a mono only for data and small labels. Champagne on warm black.
   Dark theme only. */

/* ------------------------------------------------------------------ tokens */
:root {
  color-scheme: dark;

  /* colour: surfaces (warm near-black, lifted in small steps) */
  --bg: #0b0907;
  --bg-1: #100d0a;          /* panels */
  --bg-2: #15110d;          /* raised: menus, inputs */
  --bg-3: #1b1611;          /* hover */
  /* colour: text */
  --ivory: #f1eadb;
  --ivory-2: #d4cbb9;
  --muted: #a1988a;         /* 7:1 on --bg-1 */
  --faint: #877e6e;         /* 4.7:1 on --bg-1: small labels */
  --ghost: #4d463b;         /* decorative only, never text */
  /* colour: accents */
  --gold: #cfb27a;
  --gold-2: #e7d2a3;
  --gold-3: #8c7750;
  --gold-bg: rgba(207, 178, 122, .08);
  --gold-glow: rgba(231, 210, 163, .45);
  /* colour: emerald, the clover in the logo. A second accent after gold, used sparingly and always
     for the same things: money in your pocket (paid, won), live, and the logo's own glow. */
  --emerald: #2bc45e;
  --emerald-2: #1fa84a;
  --emerald-3: #0e7a35;     /* deep */
  --emerald-bg: rgba(43, 196, 94, .08);
  --emerald-line: rgba(43, 196, 94, .34);
  --emerald-glow: rgba(43, 196, 94, .24);
  --paid: #6ccf8c;          /* emerald, lifted for text: 10:1 on --bg-1 */
  --paid-bg: rgba(43, 196, 94, .1);
  --warn: #e3b866;
  --bad: #e39a86;
  --bad-bg: rgba(227, 154, 134, .1);
  --bad-strong: #e2543c;     /* the early-unlock burn: unmissable red */
  --bad-ink: #ff8b76;
  --bad-bg-strong: rgba(226, 84, 60, .14);
  /* colour: meaning (refined jewel tones, all >= 4.5:1 on the dark base) */
  --epic: #e7d2a3;          /* gold */
  --big: #8fb0dc;           /* sapphire */
  --big-bg: rgba(143, 176, 220, .1);
  --lucky: #6cc7c9;         /* aqua: kept clear of the emerald "paid" accent */
  --lucky-bg: rgba(108, 199, 201, .1);
  --jackpot: #cf95e0;       /* violet-magenta */
  --jackpot-2: #a86cc4;
  --jackpot-bg: rgba(207, 149, 224, .12);
  --heat: #e3825a;          /* ember */
  --heat-2: #c9573a;
  /* colour: hairlines */
  --line: rgba(207, 178, 122, .13);
  --line-2: rgba(207, 178, 122, .26);
  --line-3: rgba(241, 234, 219, .065);

  /* type */
  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --fs-label: 10.5px;       /* mono labels */
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 14px;
  --fs-md: 16px;
  --fs-lg: 20px;
  --fs-xl: 28px;
  --fs-2xl: 40px;
  --fs-3xl: 56px;
  --fs-display: clamp(104px, 10.5vw, 184px);
  --track-label: .12em;
  --track-caps: .18em;

  /* space: 8px grid (4px half-step) */
  --s-0: 4px;
  --s-1: 8px;
  --s-2: 12px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 32px;
  --s-6: 48px;
  --s-7: 64px;

  /* shape */
  --r-1: 2px;
  --r-2: 4px;
  --r-3: 8px;
  --r-pill: 999px;
  --bw: 1px;

  /* elevation */
  --e-1: 0 1px 0 rgba(241, 234, 219, .025) inset;
  --e-2: 0 16px 40px rgba(0, 0, 0, .45), 0 1px 0 rgba(241, 234, 219, .04) inset;
  --e-3: 0 28px 80px rgba(0, 0, 0, .6), 0 1px 0 rgba(241, 234, 219, .05) inset;

  /* motion */
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --t-1: .15s;
  --t-2: .35s;
  --t-3: .8s;

  /* layout */
  --max: 1560px;
  --gut: 24px;
  --side: 404px;
  --hdr-h: 64px;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { background: var(--bg); color: var(--ivory); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); font-size: var(--fs-base); line-height: 1.55;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(207, 168, 98, .075), transparent 70%),
    radial-gradient(900px 600px at -10% 70%, rgba(150, 96, 52, .045), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; }
ol, ul { list-style: none; }
code { font-family: var(--mono); font-size: .92em; color: var(--gold-2); }
::selection { background: rgba(207, 178, 122, .3); color: var(--ivory); }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; border-radius: var(--r-1); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.boot { padding: var(--s-6); color: var(--muted); font-family: var(--serif); font-size: var(--fs-lg); }
.boot a { color: var(--gold-2); border-bottom: var(--bw) solid rgba(231, 210, 163, .4); }

/* type helpers */
.serif { font-family: var(--serif); font-weight: 400; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.lbl {
  font-family: var(--mono); font-size: var(--fs-label); font-weight: 500; line-height: 1.3;
  letter-spacing: var(--track-label); text-transform: uppercase; color: var(--faint);
}
.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.muted { color: var(--muted); }
.gold { color: var(--gold-2); }
.paid-text { color: var(--paid); }
.ok { color: var(--paid); font-weight: 600; }
.bad { color: var(--bad); font-weight: 600; }
em { font-style: italic; }
h1 em, h2 em, h3 em, .lede em, .tiers-foot em { color: var(--gold-2); }

/* ------------------------------------------------------------------ primitives */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-1);
  height: 40px; padding: 0 var(--s-4); border-radius: var(--r-pill); border: var(--bw) solid transparent;
  font-size: 11.5px; font-weight: 500; letter-spacing: var(--track-caps); text-transform: uppercase; white-space: nowrap;
  transition: background var(--t-2) var(--ease), border-color var(--t-2) var(--ease), color var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease);
}
.btn.sm { height: 32px; padding: 0 var(--s-3); font-size: 10.5px; letter-spacing: .14em; }
.btn.block { display: flex; width: 100%; }
.btn.solid { background: var(--ivory); color: #17120b; }
.btn.solid:hover:not(:disabled) { background: #fff; box-shadow: 0 0 0 5px var(--emerald-bg), 0 0 26px var(--emerald-glow); }
.btn.solid:focus-visible { box-shadow: 0 0 0 5px var(--emerald-bg), 0 0 26px var(--emerald-glow); }
.btn.line { border-color: var(--line-2); color: var(--ivory); }
.btn.line:hover:not(:disabled) { border-color: var(--gold); background: var(--gold-bg); }
.btn:disabled { opacity: .42; }
.link-quiet {
  display: inline-flex; align-items: center; gap: var(--s-0); padding: 2px 0;
  font-size: var(--fs-xs); letter-spacing: .04em; color: var(--gold-2);
  border-bottom: var(--bw) solid rgba(231, 210, 163, .28); transition: border-color var(--t-2), color var(--t-2);
}
.link-quiet:hover { color: #fff; border-color: var(--gold-2); }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--muted); transition: color var(--t-1), background var(--t-1); }
.icon-btn:hover { color: var(--ivory); background: var(--bg-3); }
.ext:hover, .tx-link:hover { color: var(--gold-2); }
.tx-link { display: inline-flex; align-items: center; gap: 2px; font-family: var(--mono); font-size: 11px; color: var(--faint); transition: color var(--t-1); }
.tx-icon { display: inline-grid; place-items: center; width: 22px; height: 22px; color: var(--faint); border-radius: var(--r-1); transition: color var(--t-1); }
.tx-icon:hover { color: var(--gold-2); }

.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-pill);
  border: var(--bw) solid var(--line-2); font-family: var(--mono); font-size: 11px; color: var(--ivory-2); white-space: nowrap;
}
.pill > i { width: 6px; height: 6px; border-radius: 50%; background: var(--paid); box-shadow: 0 0 0 3px var(--paid-bg); flex: none; }
.pill.paid { color: var(--paid); border-color: rgba(43, 196, 94, .3); background: var(--paid-bg); }
.pill.gold { color: var(--gold-2); border-color: rgba(207, 178, 122, .36); background: var(--gold-bg); }
.pill.gold > i { background: var(--gold); box-shadow: 0 0 0 3px var(--gold-bg); }
.pill.live > i { background: var(--emerald); box-shadow: 0 0 0 3px var(--emerald-bg), 0 0 8px var(--emerald-glow); animation: pulse 2.4s ease-in-out infinite; }
.pill.net.down > i { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-bg); }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(43, 196, 94, 0), 0 0 10px var(--emerald-glow); } }

.tier-tag {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: var(--r-1);
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  color: var(--muted); border: var(--bw) solid var(--line);
}
.tier-tag.t-epic { color: var(--epic); border-color: rgba(231, 210, 163, .45); background: rgba(231, 210, 163, .06); }
.tier-tag.t-big { color: var(--big); border-color: rgba(143, 176, 220, .42); background: var(--big-bg); }
.tier-tag.t-lucky { color: var(--lucky); border-color: rgba(108, 199, 201, .4); background: var(--lucky-bg); }
.tier-tag.t-jackpot { color: #1c0f22; background: var(--jackpot); border-color: var(--jackpot); font-weight: 600; }
.pay { font-family: var(--mono); font-size: 11px; white-space: nowrap; }
.pay.paid { color: var(--paid); }
.pay.claim { color: var(--warn); }

/* ticking numbers */
.tick-wrap { display: inline-block; }
.tick { display: inline-block; animation: tick .7s var(--ease) both; }
@keyframes tick { from { opacity: .15; transform: translateY(-.22em); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ header */
.hdr {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 9, 7, .82); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: var(--bw) solid var(--line);
}
.hdr-in { display: flex; align-items: center; gap: var(--s-5); height: var(--hdr-h); max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.brand { display: flex; align-items: center; gap: var(--s-2); flex: none; color: var(--gold); border-radius: var(--r-2); }
.logo-mark {
  flex: none; display: block; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .45), 0 0 14px rgba(43, 196, 94, .16), 0 0 5px rgba(231, 196, 110, .16);
  transition: box-shadow var(--t-2) var(--ease);
}
.brand:hover .logo-mark, .brand:focus-visible .logo-mark { box-shadow: 0 0 0 1px rgba(0, 0, 0, .45), 0 0 20px rgba(43, 196, 94, .3), 0 0 6px rgba(231, 196, 110, .24); }
.wordmark { font-family: var(--serif); font-size: 25px; line-height: 1; letter-spacing: .005em; color: var(--ivory); }
.wordmark i { color: var(--gold-2); }
.wordmark.sm { font-size: 20px; }
.nav { display: flex; align-self: stretch; gap: var(--s-1); }
.nav button {
  position: relative; padding: 0 var(--s-2); font-size: 11.5px; font-weight: 500; letter-spacing: var(--track-caps);
  text-transform: uppercase; color: var(--muted); transition: color var(--t-2);
}
.nav button::after {
  content: ""; position: absolute; left: var(--s-2); right: var(--s-2); bottom: -1px; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.nav button:hover { color: var(--ivory); }
.nav button.on { color: var(--ivory); }
.nav button.on::after, .nav button:hover::after { transform: scaleX(1); }
.hdr-r { margin-left: auto; display: flex; align-items: center; gap: var(--s-1); min-width: 0; }

.wallet { position: relative; }
.wallet-btn {
  display: inline-flex; align-items: center; gap: var(--s-1); height: 36px; padding: 0 var(--s-2) 0 var(--s-1);
  border: var(--bw) solid var(--line-2); border-radius: var(--r-pill); transition: border-color var(--t-2), background var(--t-2);
}
.wallet-btn:hover, .wallet-btn[aria-expanded="true"] { border-color: var(--gold); background: var(--gold-bg); }
.wallet-btn.wrong { border-color: rgba(227, 154, 134, .5); }
.w-name { font-size: var(--fs-sm); font-weight: 500; }
.w-addr { font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); }
.w-warn { width: 7px; height: 7px; border-radius: 50%; background: var(--bad); }
.avatar { flex: none; border-radius: 50%; }
.lbl-short { display: none; }
.menu {
  position: absolute; right: 0; top: calc(100% + var(--s-1)); z-index: 60; width: 288px; padding: var(--s-1);
  background: var(--bg-2); border: var(--bw) solid var(--line-2); border-radius: var(--r-3); box-shadow: var(--e-3);
  animation: rise .25s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.menu > button, .menu > a {
  display: flex; align-items: center; gap: var(--s-2); width: 100%; padding: var(--s-1) var(--s-2); border-radius: var(--r-2);
  text-align: left; font-size: var(--fs-sm); color: var(--ivory-2);
}
.menu > button:hover, .menu > a:hover, .menu > button:focus-visible { background: var(--bg-3); color: var(--ivory); }
.menu-label { padding: var(--s-1) var(--s-2); font-family: var(--mono); font-size: var(--fs-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--faint); }
.menu-note { padding: var(--s-2); margin-top: var(--s-0); border-top: var(--bw) solid var(--line); font-size: var(--fs-xs); color: var(--muted); }
.menu-empty { padding: var(--s-1) var(--s-2); font-size: var(--fs-sm); color: var(--muted); }
.menu-links { display: flex; gap: var(--s-3); margin-top: var(--s-1); }
.menu-links a { display: inline-flex; align-items: center; gap: 2px; color: var(--gold-2); }
.menu-account { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-1) var(--s-2) var(--s-2); margin-bottom: var(--s-0); border-bottom: var(--bw) solid var(--line); }
.m-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.m-meta b { font-weight: 500; color: var(--ivory); }
.m-meta span { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.m-check { color: var(--gold-2); margin-left: auto; }
.w-icon { border-radius: var(--r-2); flex: none; }
.w-icon.generic { display: inline-grid; place-items: center; background: var(--bg-3); color: var(--gold-2); }

.notice {
  display: flex; align-items: center; justify-content: center; gap: var(--s-2); flex-wrap: wrap; min-height: 30px; padding: 4px var(--gut);
  font-size: var(--fs-xs); color: var(--muted); border-bottom: var(--bw) solid var(--line); background: rgba(16, 13, 10, .7);
}
.notice b { font-family: var(--mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--gold); }
.notice.warn { color: var(--ivory-2); background: rgba(227, 184, 102, .07); }
.notice.alert { color: var(--ivory-2); background: var(--bad-bg); }
.notice.alert b { color: var(--bad); }

/* stats strip */
.strip { border-bottom: var(--bw) solid var(--line); background: rgba(16, 13, 10, .6); }
.strip-in {
  display: flex; align-items: center; height: 38px; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut);
  overflow: hidden; white-space: nowrap;
}
.strip-in > div { display: flex; align-items: baseline; gap: var(--s-1); padding: 0 var(--s-3); line-height: 16px; }
.strip-in > div + div { border-left: var(--bw) solid var(--line); }
.strip-in > div:first-child { padding-left: 0; }
.strip-in b { font-weight: 500; font-size: var(--fs-xs); color: var(--ivory); }
.state {
  display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 8px; border-radius: var(--r-pill);
  font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase;
  border: var(--bw) solid rgba(43, 196, 94, .32); color: var(--paid); background: var(--paid-bg);
}
.state i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.state.drawing { color: var(--gold-2); border-color: rgba(207, 178, 122, .4); background: var(--gold-bg); }
.state.drawing i { animation: blink 1.4s ease-in-out infinite; }
.state.paused { color: var(--warn); border-color: rgba(227, 184, 102, .35); background: rgba(227, 184, 102, .07); }
.state.waiting { color: var(--ivory-2); border-color: var(--line-2); background: transparent; }
@keyframes blink { 50% { opacity: .3; } }

/* ------------------------------------------------------------------ layout */
.shell { max-width: var(--max); margin: 0 auto; padding: var(--s-4) var(--gut) var(--s-6); }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) var(--side); gap: var(--s-3); align-items: start; }
.col { display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; }
.cols > .trust { grid-column: 1 / -1; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }

.panel {
  position: relative; min-width: 0; overflow: hidden;
  background: linear-gradient(180deg, rgba(22, 18, 13, .92), rgba(15, 12, 9, .92));
  border: var(--bw) solid var(--line); border-radius: var(--r-2); box-shadow: var(--e-1);
}
.ph {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-2);
  min-height: 48px; padding: var(--s-1) var(--s-3); border-bottom: var(--bw) solid var(--line);
}
.ph h2 {
  font-family: var(--mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--track-label);
  text-transform: uppercase; color: var(--ivory-2);
}
.ph-aside { display: flex; align-items: center; gap: var(--s-1); min-width: 0; }
.ph-foot {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); flex-wrap: wrap;
  padding: var(--s-2) var(--s-3); border-top: var(--bw) solid var(--line); margin-top: auto;
}
.pad { padding: var(--s-3); }
.pad-x { padding-left: var(--s-3); padding-right: var(--s-3); }
.empty { padding: var(--s-5) var(--s-3); text-align: center; color: var(--muted); font-family: var(--serif); font-size: var(--fs-lg); }
.note { margin-top: var(--s-2); font-size: var(--fs-xs); color: var(--muted); }
.note.warn { color: var(--warn); }
.hint { margin-top: var(--s-2); font-size: var(--fs-xs); color: var(--faint); }
.prose { color: var(--ivory-2); line-height: 1.65; }
.prose + .prose { padding-top: 0; }

/* page heads (Position, Activity, Verify) */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) 0 var(--s-5); }
.page-head h1 { margin-top: var(--s-2); font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5vw, 68px); line-height: .98; letter-spacing: -.01em; }
.page-head .lede { margin-top: var(--s-3); max-width: 680px; color: var(--muted); font-size: var(--fs-md); }

/* ------------------------------------------------------------------ draws: hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 272px; }
.countdown { position: relative; padding: var(--s-5) var(--s-5) var(--s-4); border-right: var(--bw) solid var(--line); min-width: 0; }
.countdown::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 70% at 10% 0%, rgba(207, 168, 98, .09), transparent 60%),
    linear-gradient(rgba(241, 234, 219, .018) 1px, transparent 1px) 0 0 / 100% 32px,
    linear-gradient(90deg, rgba(241, 234, 219, .018) 1px, transparent 1px) 0 0 / 32px 100%;
  -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 85%); mask-image: linear-gradient(180deg, #000 20%, transparent 85%);
}
.countdown > * { position: relative; }
.cd-label {
  display: flex; align-items: center; gap: var(--s-3);
  font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1; color: var(--gold-2);
}
.cd-label::after { content: ""; width: 48px; height: 1px; background: var(--gold-3); }
.cd {
  display: flex; align-items: baseline; margin: var(--s-3) 0 var(--s-5) -.04em; min-height: .95em;
  font-family: var(--serif); font-size: var(--fs-display); line-height: .9; letter-spacing: -.02em;
  font-variant-numeric: lining-nums; white-space: nowrap; color: var(--ivory);
}
.digits { display: inline-flex; align-items: baseline; }
.digits .d { display: inline-block; width: .5em; text-align: center; animation: tick .7s var(--ease) both; }
.digits .colon { display: inline-block; width: .3em; text-align: center; font-size: .72em; color: var(--gold); opacity: .85; transform: translateY(-.1em); }
.cd-words { font-style: italic; font-size: .62em; line-height: 1.45; color: var(--ivory); }
.cd.drawing .cd-words { color: var(--gold-2); }
/* a draw waiting for a worthwhile pool: words, calm, wrapping */
.cd.waiting { min-height: 0; white-space: normal; }
.cd.waiting .cd-words { display: block; max-width: 13em; font-size: clamp(34px, 3.4vw, 58px); line-height: 1.12; letter-spacing: -.01em; color: var(--ivory-2); text-wrap: balance; }
.ell i { font-style: normal; animation: ell 1.6s ease-in-out infinite; }
.ell i:nth-child(2) { animation-delay: .2s; }
.ell i:nth-child(3) { animation-delay: .4s; }
@keyframes ell { 0%, 100% { opacity: .2; } 40% { opacity: 1; } }
.cycle { position: relative; height: 1px; max-width: 640px; margin-bottom: var(--s-2); background: var(--line-3); }
.cycle i { position: absolute; left: 0; top: 0; height: 1px; background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); transition: width 1s linear; }
.cycle i::after {
  content: ""; position: absolute; right: -3px; top: -3px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-2); box-shadow: 0 0 16px 2px var(--gold-glow);
}
.cycle.drawing i::after { animation: glow 1.8s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 4px 0 rgba(231, 210, 163, .25); } }
.cycle-l {
  display: flex; justify-content: space-between; gap: var(--s-2); max-width: 640px;
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint);
}
.countdown .lede { margin-top: var(--s-5); max-width: 600px; font-family: var(--serif); font-size: clamp(22px, 1.9vw, 28px); line-height: 1.28; color: var(--ivory); }
.hero-cta { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-4); }

.hero-tiers { display: flex; flex-direction: column; min-width: 0; }
.tiers { flex: 1; display: flex; flex-direction: column; }
.hero-tiers .tiers li { flex: 1; align-content: center; }
.tiers li {
  display: grid; grid-template-columns: 36px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: var(--s-1);
  padding: var(--s-3); border-bottom: var(--bw) solid var(--line-3);
}
.t-num { grid-row: span 2; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--gold-3); line-height: 1.6; }
.t-name { font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1; color: var(--ivory-2); }
.t-epic .t-name { color: var(--gold-2); }
.t-note { margin-top: 6px; font-family: var(--mono); font-size: var(--fs-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--faint); }
.tiers-foot { padding: var(--s-3); font-family: var(--serif); font-size: 19px; line-height: 1.3; color: var(--ivory-2); }

/* entry cutoff: secondary to the countdown */
.cutoff { display: flex; align-items: baseline; gap: 6px var(--s-2); flex-wrap: wrap; max-width: 640px; margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--ivory-2); }
.cutoff b { font-weight: 500; color: var(--gold-2); }
.co-sub { color: var(--muted); }
.co-sub::before { content: "·"; margin-right: var(--s-2); color: var(--gold-3); }
.co-mark { display: inline-grid; place-items: center; width: 14px; height: 14px; align-self: center; color: var(--gold-2); animation: co-in .6s var(--ease) both; }
.co-dot { width: 6px; height: 6px; transform: rotate(45deg); border: var(--bw) solid var(--gold); }
.cutoff.is-closed { color: var(--muted); }
.run-btn { font-size: var(--fs-sm); }
.run-btn:disabled { opacity: .42; cursor: default; }
@keyframes co-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.lock-hint { display: flex; align-items: center; gap: var(--s-1); flex-wrap: wrap; margin: var(--s-1) 0 var(--s-2); font-size: var(--fs-sm); color: var(--ivory-2); }
.lock-hint b { font-weight: 500; color: var(--gold-2); }

/* live pools (hero) */
.pools-hero { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; margin-top: var(--s-4); border-top: var(--bw) solid var(--line-2); }
.pools-hero > div { min-width: 0; padding: var(--s-3) var(--s-3) 36px 0; }
.pools-hero > div + div { padding-left: var(--s-4); border-left: var(--bw) solid var(--line); }
.pools-note { grid-column: 1 / -1; padding-top: var(--s-1); border-top: var(--bw) dashed var(--line-3); font-size: 11px; letter-spacing: .04em; color: var(--faint); }
.live-eth { position: relative; display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.le-num { display: inline-flex; align-items: baseline; }
.le-num i { font-style: normal; display: inline-block; text-align: center; }
.le-num i.n { width: .54em; }
.le-num i.p { width: .26em; }
.pf { display: flex; margin-top: var(--s-1); font-family: var(--serif); font-size: clamp(40px, 3.8vw, 58px); line-height: 1; letter-spacing: -.01em; color: var(--ivory); }
.pf small { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--faint); }
.pf.gold .le-num { color: var(--gold-2); }
.le-strip .le-num i.n { width: .62em; }
.le-strip .le-num i.p { width: .4em; }
.le-strip small { font-size: 9.5px; color: var(--faint); letter-spacing: .08em; }
.delta {
  position: absolute; left: 0; top: calc(100% + 6px); padding: 1px 7px; border-radius: var(--r-pill);
  font-family: var(--mono); font-size: 11px; letter-spacing: .02em; white-space: nowrap;
  animation: delta-life 3s var(--ease) both;
}
.delta.up { color: var(--paid); background: var(--paid-bg); border: var(--bw) solid rgba(43, 196, 94, .28); }
.pf.gold .delta.up { color: var(--gold-2); background: var(--gold-bg); border-color: rgba(207, 178, 122, .32); }
.delta.down { color: var(--faint); border: var(--bw) solid var(--line); }
@keyframes delta-life { 0% { opacity: 0; transform: translateY(-3px); } 10% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; } }
/* dollar figures (the live feed's ETH/USD): the dollars big in the serif, the ETH small in mono underneath,
   with the change chip beside it */
.live-usd { flex-direction: column; align-items: flex-start; gap: 8px; }
.lu-top { display: inline-flex; align-items: baseline; }
.lu-approx { margin-right: .12em; font-size: .5em; color: var(--faint); }
.le-num i.c { width: auto; margin-right: .02em; }
.live-usd .le-num i.n { width: .5em; }
.live-usd .le-num i.p { width: .22em; }
.lu-eth { display: inline-flex; align-items: center; gap: var(--s-1); min-height: 20px; font-family: var(--mono); font-size: 12px; line-height: 1.2; letter-spacing: .02em; color: var(--muted); }
.live-usd .delta { position: relative; top: auto; left: auto; }
.usd-note { font-size: 11px; line-height: 1.45; color: var(--faint); }

/* ------------------------------------------------------------------ draws: position card */
.position-card { display: flex; flex-direction: column; }
.figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: var(--bw) solid var(--line); }
.figs.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.figs > div { padding: var(--s-3); min-width: 0; }
.figs > div + div { border-left: var(--bw) solid var(--line); }
.fig {
  margin-top: var(--s-1); font-family: var(--serif); font-size: var(--fs-3xl); line-height: 1; letter-spacing: -.01em;
  font-variant-numeric: lining-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fig.gold { color: var(--gold-2); }
.fig sup { position: relative; top: .1em; margin-left: 2px; font-size: .42em; vertical-align: top; color: var(--gold); }
.figs.small .fig { font-size: var(--fs-2xl); }
.figs.three .fig { font-size: 44px; }
.fig-l { display: block; margin-top: 6px; font-size: var(--fs-xs); color: var(--muted); }
.share { padding: var(--s-2) var(--s-3); border-bottom: var(--bw) solid var(--line); }
.share .row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-2); }
.share .row .mono { font-size: var(--fs-xs); color: var(--ivory-2); }
.bar { display: flex; height: 3px; margin: var(--s-1) 0 2px; background: var(--line-3); border-radius: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); transition: width var(--t-3) var(--ease); }
.bar i.pale { background: rgba(207, 178, 122, .32); }
.kv { padding: var(--s-0) var(--s-3); }
.kv li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-2); padding: 10px 0; border-bottom: var(--bw) dashed var(--line-3); font-size: var(--fs-sm); color: var(--muted); }
.kv li:last-child { border-bottom: 0; }
.kv b { font-weight: 500; font-size: 12.5px; color: var(--ivory); text-align: right; }
.kv.flush { padding: var(--s-2) 0 0; }
.claim-row, .callout, .nudge {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); flex-wrap: wrap;
  margin: 0 var(--s-3) var(--s-3); padding: var(--s-2) var(--s-3); border-radius: var(--r-2);
  border: var(--bw) solid rgba(207, 178, 122, .3); background: var(--gold-bg); font-size: var(--fs-sm); color: var(--ivory-2);
}
.nudge { border-color: var(--line); background: transparent; color: var(--muted); }
.callout { margin-top: var(--s-3); }
.gate { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); padding: var(--s-5) var(--s-3); }
.gate p { max-width: 320px; font-family: var(--serif); font-size: 24px; line-height: 1.2; color: var(--ivory); }

/* ------------------------------------------------------------------ draws: tape */
.tape { display: flex; flex-direction: column; }
.tape-h, .trow {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) 56px 64px 46px 18px; align-items: center; gap: 6px;
  padding: 0 var(--s-3); white-space: nowrap;
}
.tape-h { height: 30px; border-bottom: var(--bw) solid var(--line); }
.tape-h span { font-family: var(--mono); font-size: 10px; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--faint); }
.tape-h .r { text-align: right; }
.trow {
  position: relative; height: 38px; overflow: hidden;
  font-family: var(--mono); font-size: var(--fs-xs); font-variant-numeric: tabular-nums;
  border-bottom: var(--bw) solid var(--line-3); transition: background var(--t-2);
}
.trow:hover { background: rgba(27, 22, 17, .7); }
.trow .tm { color: var(--faint); }
.trow .ad { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--ivory); }
.trow .ad > a, .trow .ad > span { overflow: hidden; text-overflow: ellipsis; }
.trow .am { text-align: right; color: var(--ivory); }
.trow .tx { display: flex; justify-content: flex-end; }
.trow.me .ad > :last-child { color: var(--gold-2); font-weight: 500; }
.trow.jp { background: linear-gradient(90deg, rgba(207, 149, 224, .16), rgba(207, 149, 224, .02) 75%); box-shadow: inset 2px 0 0 var(--jackpot); }
.trow.jp .am { color: var(--jackpot); }
/* a new win: slides in, then a soft gold light sweeps across once */
.trow.fresh { animation: row-in .6s var(--ease) var(--delay, 0ms) both; }
.trow.fresh::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(231, 210, 163, 0) 30%, rgba(231, 210, 163, .2) 50%, rgba(231, 210, 163, 0) 70%, transparent 100%);
  transform: translateX(-100%); animation: sweep 1.6s var(--ease-io) calc(var(--delay, 0ms) + .25s) both;
}
@keyframes row-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes sweep { 0% { transform: translateX(-100%); opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(100%); opacity: 0; } }

/* ------------------------------------------------------------------ draws: jackpot, how, trust */
.jp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.jp-l { position: relative; display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-4); border-right: var(--bw) solid var(--line); }
.jp-l h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 3.6vw, 52px); line-height: 1; letter-spacing: -.01em; }
.jp-l p { max-width: 380px; color: var(--ivory-2); }
.kv2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: auto; border-top: var(--bw) solid var(--line); }
.kv2 > div { padding-top: var(--s-2); min-width: 0; }
.kv2 > div + div { padding-left: var(--s-3); border-left: var(--bw) solid var(--line); }
.kv2 b { display: block; margin-top: var(--s-0); font-weight: 500; font-size: var(--fs-sm); color: var(--ivory); }
/* right: the live jackpot figure over a slowly turning engraved rosette (no odds on this page) */
.jp-r { position: relative; display: grid; place-items: center; min-height: 260px; padding: var(--s-4); overflow: hidden;
  background: radial-gradient(60% 60% at 50% 50%, rgba(207, 178, 122, .07), transparent 70%); }
.guilloche {
  position: absolute; left: 50%; top: 50%; width: 560px; height: 560px; transform: translate(-50%, -50%);
  color: var(--gold); opacity: .16; pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); mask-image: radial-gradient(closest-side, #000 55%, transparent);
}
.guilloche g { transform-origin: 490px 490px; animation: spin 240s linear infinite; }
.jp-figure { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--s-1); text-align: center; padding-bottom: var(--s-3); }
.jp-figure .pf { font-size: clamp(44px, 4.4vw, 64px); }
.jp-figure .delta { left: 50%; transform: translateX(-50%); animation-name: delta-life-c; }
.jp-figure .link-quiet { margin-top: var(--s-3); }
@keyframes delta-life-c { 0% { opacity: 0; } 10% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; } }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { padding: var(--s-4); min-width: 0; }
.steps li + li { border-left: var(--bw) solid var(--line); }
.rn { display: flex; align-items: center; gap: var(--s-2); font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--gold); }
.rn::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.steps h3 { margin: var(--s-3) 0 var(--s-1); font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; }
.steps p { color: var(--muted); font-size: var(--fs-sm); }
.steps p b { color: var(--ivory-2); font-weight: 500; }

.trust {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap;
  padding: var(--s-3) 0; border-top: var(--bw) solid var(--line); border-bottom: var(--bw) solid var(--line); margin-top: var(--s-2);
}
.trust ul { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.trust li { display: flex; align-items: center; gap: var(--s-2); font-family: var(--serif); font-size: 21px; color: var(--ivory-2); }
.trust li::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); border: var(--bw) solid var(--gold); flex: none; }

.foot {
  display: grid; grid-template-columns: minmax(0, 1.2fr) auto auto; align-items: start; gap: var(--s-3) var(--s-5);
  margin-top: var(--s-6); padding-top: var(--s-4); border-top: var(--bw) solid var(--line);
}
.f-brand p { max-width: 460px; margin-top: var(--s-1); font-size: var(--fs-xs); color: var(--faint); }
.f-token { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.f-addr { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 var(--s-2); border: var(--bw) solid var(--line-2); border-radius: var(--r-pill); font-size: var(--fs-xs); color: var(--ivory-2); transition: border-color var(--t-1), color var(--t-1); }
.f-addr:hover { border-color: var(--gold); color: var(--ivory); }
.f-links { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.link-plain { font-size: 11.5px; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--muted); transition: color var(--t-1); }
.link-plain:hover { color: var(--ivory); }
.f-icon { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: var(--bw) solid var(--line-2); color: var(--ivory-2); transition: border-color var(--t-1), color var(--t-1); }
.f-icon:hover { border-color: var(--gold); color: var(--gold-2); }
.f-legal { grid-column: 1 / -1; padding-top: var(--s-2); border-top: var(--bw) dashed var(--line-3); font-size: 11px; color: var(--faint); }

/* ------------------------------------------------------------------ position tab */
.field-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--s-1); }
.input {
  display: flex; align-items: center; gap: var(--s-1); height: 48px; padding: 0 var(--s-1) 0 var(--s-3); margin-bottom: var(--s-2);
  background: var(--bg-2); border: var(--bw) solid var(--line-2); border-radius: var(--r-2); transition: border-color var(--t-2);
}
.input:focus-within { border-color: var(--gold); }
.input input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; font-family: var(--mono); font-size: var(--fs-md); color: var(--ivory); }
.input .unit { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.chip-btn {
  height: 30px; padding: 0 var(--s-2); border-radius: var(--r-1); border: var(--bw) solid var(--line-2);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-2);
}
.chip-btn:hover:not(:disabled) { background: var(--gold-bg); }
.chip-btn:disabled { opacity: .4; }
.sim-amount { display: flex; align-items: baseline; gap: var(--s-1); margin: var(--s-1) 0 var(--s-2); }
.sim-amount .serif { font-size: 44px; line-height: 1; }
.sim-amount small { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.range { width: 100%; height: 20px; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--gold) var(--fill), var(--line-2) var(--fill)); }
.range::-moz-range-track { height: 2px; background: linear-gradient(90deg, var(--gold) var(--fill), var(--line-2) var(--fill)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -6px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 4px var(--gold-bg), 0 0 14px var(--gold-glow); }
.range::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--gold-2); }
.range-scale { display: flex; justify-content: space-between; margin-bottom: var(--s-3); font-family: var(--mono); font-size: 10px; color: var(--faint); }
.sim .figs { border: var(--bw) solid var(--line); border-radius: var(--r-2); }
.mini-wins { padding: var(--s-1) var(--s-3) var(--s-2); }
.mini-wins li { display: grid; grid-template-columns: 64px auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-1); padding: 8px 0; border-bottom: var(--bw) dashed var(--line-3); font-size: var(--fs-xs); }
.mini-wins li:last-child { border-bottom: 0; }
.mini-wins li > :nth-child(3) { text-align: right; }
.bullets { padding: var(--s-2) var(--s-3) var(--s-3); }
.bullets li { position: relative; padding: 8px 0 8px var(--s-4); color: var(--ivory-2); font-size: var(--fs-sm); border-bottom: var(--bw) dashed var(--line-3); }
.bullets li:last-child { border-bottom: 0; }
.bullets li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 5px; height: 5px; transform: rotate(45deg); border: var(--bw) solid var(--gold); }

/* ------------------------------------------------------------------ activity tab */
.ledger-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: var(--s-3); border-top: var(--bw) solid var(--line-2); border-bottom: var(--bw) solid var(--line); }
.ledger-stats > div { padding: var(--s-3) var(--s-3) var(--s-3) 0; min-width: 0; }
.ledger-stats > div + div { padding-left: var(--s-3); border-left: var(--bw) solid var(--line); }
.ledger-stats b { display: block; margin-top: var(--s-1); font-size: var(--fs-2xl); line-height: 1; overflow: hidden; text-overflow: ellipsis; }
.filters { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; padding: var(--s-2) var(--s-3); border-bottom: var(--bw) solid var(--line); }
.seg { display: inline-flex; padding: 2px; border: var(--bw) solid var(--line-2); border-radius: var(--r-pill); }
.seg button { height: 28px; padding: 0 var(--s-2); border-radius: var(--r-pill); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); transition: background var(--t-1), color var(--t-1); }
.seg button:hover { color: var(--ivory); }
.seg button[aria-pressed="true"] { background: var(--ivory); color: #17120b; }
.sel select, .search input {
  height: 34px; padding: 0 var(--s-2); background: var(--bg-2); border: var(--bw) solid var(--line-2); border-radius: var(--r-2);
  font-size: var(--fs-xs); color: var(--ivory-2); outline: none;
}
.sel select:focus-visible, .search input:focus { border-color: var(--gold); }
.search { display: inline-flex; align-items: center; gap: var(--s-1); flex: 1; min-width: 180px; max-width: 320px; color: var(--faint); }
.search input { flex: 1; min-width: 0; font-family: var(--mono); }
.switch { display: inline-flex; align-items: center; gap: var(--s-1); margin-left: auto; font-size: var(--fs-xs); color: var(--ivory-2); cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { position: relative; width: 32px; height: 18px; border-radius: var(--r-pill); border: var(--bw) solid var(--line-2); transition: background var(--t-2); }
.switch .track::after { content: ""; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--muted); transition: transform var(--t-2) var(--ease), background var(--t-2); }
.switch input:checked + .track { background: var(--gold-bg); border-color: var(--gold); }
.switch input:checked + .track::after { transform: translateX(14px); background: var(--gold-2); }
.switch input:focus-visible + .track { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.sync-note { display: flex; align-items: center; gap: var(--s-1); padding: var(--s-1) var(--s-3); font-size: var(--fs-xs); color: var(--muted); border-bottom: var(--bw) solid var(--line); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  height: 34px; padding: 0 var(--s-3); text-align: left; white-space: nowrap;
  font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--faint);
  border-bottom: var(--bw) solid var(--line);
}
td { height: 46px; padding: 0 var(--s-3); border-bottom: var(--bw) solid var(--line-3); white-space: nowrap; font-size: var(--fs-sm); }
th.r, td.r { text-align: right; }
table.ledger tbody tr { transition: background var(--t-1); }
table.ledger tbody tr:hover { background: rgba(27, 22, 17, .7); }
table.ledger td.amt { font-family: var(--serif); font-size: 21px; font-variant-numeric: lining-nums tabular-nums; }
table.ledger td.amt small { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--faint); }
table.ledger tr.jp td { background: var(--jackpot-bg); }
table.ledger tr.jp td:first-child { box-shadow: inset 2px 0 0 var(--jackpot); }
table.ledger tr.jp td.amt { color: var(--jackpot); }
table.ledger tr.me .ad > :last-child { color: var(--gold-2); }
table.ledger tr.void td { color: var(--faint); font-style: italic; font-family: var(--serif); font-size: 16px; }
table.ledger tr.void td.mono { font-style: normal; font-family: var(--mono); font-size: var(--fs-sm); }
td .ad { display: inline-flex; align-items: center; gap: var(--s-1); font-family: var(--mono); font-size: var(--fs-xs); }
.more { display: flex; justify-content: center; padding: var(--s-3); }

/* ------------------------------------------------------------------ verify tab */
.help { border-color: rgba(207, 178, 122, .4); margin-bottom: var(--s-3); }
.help p + p, .help p + .btn { margin-top: var(--s-2); }
.help .btn { margin-top: var(--s-2); }
.row-actions { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.sel select { min-width: 150px; font-family: var(--mono); }
.formula { font-size: var(--fs-sm); line-height: 1.7; }
.vlog { margin: 0 var(--s-3) var(--s-3); border: var(--bw) solid var(--line); border-radius: var(--r-2); background: rgba(8, 6, 5, .55); }
.vlog-bar { display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 var(--s-2); border-bottom: var(--bw) solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--muted); }
.vlog-body { padding: var(--s-2) var(--s-2) var(--s-1); font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--ivory-2); }
.vl { display: flex; gap: var(--s-1); padding: 3px 0; }
.vl > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.vl .pr { color: var(--gold-3); flex: none; }
.vl.k, .vlog .k { color: var(--faint); }
.vl.break > span:last-child { word-break: break-all; }
.vlog .table-wrap { margin: var(--s-1) 0; border: var(--bw) solid var(--line-3); border-radius: var(--r-1); }
table.verify th, table.verify td { height: 32px; padding: 0 var(--s-1); font-size: 12px; }
table.verify th:first-child, table.verify td:first-child { padding-left: var(--s-2); }
table.verify th:last-child, table.verify td:last-child { padding-right: var(--s-2); }
.contracts li { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); padding: var(--s-2) var(--s-3); border-bottom: var(--bw) solid var(--line-3); }
.contracts li:last-child { border-bottom: 0; }
.contracts li > div { display: flex; flex-direction: column; min-width: 0; }
.contracts b { font-weight: 500; font-size: var(--fs-sm); }
.contracts span { font-size: var(--fs-xs); color: var(--muted); }
.contracts .mono { font-size: var(--fs-xs); color: var(--ivory-2); display: inline-flex; align-items: center; gap: 2px; flex: none; }
.contracts + .note { padding-bottom: var(--s-3); }

.flow { padding-bottom: var(--s-3); }
.flow-bar { display: flex; gap: 3px; height: 10px; margin: var(--s-1) 0 var(--s-3); }
.flow-bar i { display: block; border-radius: 1px; }
.f-pons { --c: #6f675a; }
.f-cases { --c: var(--gold-2); }
.f-jackpot { --c: var(--gold); }
.f-ops { --c: #9aa39a; }
.flow-bar i { background: var(--c); }
.flow-legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); }
.fl-top { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--ivory); }
.fl-top i { width: 8px; height: 8px; border-radius: 1px; background: var(--c); }
.fl-top .mono { margin-left: auto; font-size: var(--fs-xs); color: var(--ivory-2); }
.flow-legend p { margin-top: var(--s-0); font-size: var(--fs-xs); color: var(--faint); }
.pools { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border-top: var(--bw) solid var(--line); }
.pools > div { padding: var(--s-3); border-right: var(--bw) solid var(--line-3); border-bottom: var(--bw) solid var(--line-3); min-width: 0; }
.pools b { display: block; margin: var(--s-1) 0 var(--s-0); font-size: 32px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pools b small { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--faint); }
.pools .jp b { color: var(--gold-2); }
.pools p { font-size: var(--fs-xs); color: var(--muted); }

.status-card { max-width: 640px; margin: var(--s-6) auto; padding: var(--s-5); }
.status-card h2 { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.05; margin-bottom: var(--s-2); }
.status-card p + p { margin-top: var(--s-2); }
.code-block { margin-top: var(--s-3); padding: var(--s-3); overflow-x: auto; background: rgba(8, 6, 5, .6); border: var(--bw) solid var(--line); border-radius: var(--r-2); font-family: var(--mono); font-size: var(--fs-xs); color: var(--ivory-2); }
.skel { border-radius: var(--r-2); border: var(--bw) solid var(--line-3); background: linear-gradient(90deg, rgba(241, 234, 219, .02), rgba(241, 234, 219, .05), rgba(241, 234, 219, .02)) 0 0 / 200% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ------------------------------------------------------------------ overlays */
.toast-host { position: fixed; left: 50%; bottom: var(--s-4); z-index: 80; transform: translateX(-50%); pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast {
  display: flex; align-items: center; gap: var(--s-2); padding: 10px var(--s-3); pointer-events: auto;
  background: var(--bg-2); border: var(--bw) solid var(--line-2); border-radius: var(--r-3); box-shadow: var(--e-3);
  font-size: var(--fs-sm); color: var(--ivory-2); animation: rise .3s var(--ease) both;
}
.t-ico { display: inline-grid; place-items: center; color: var(--gold-2); flex: none; }
.toast.ok .t-ico { color: var(--paid); }
.toast.bad { border-color: rgba(227, 154, 134, .45); }
.toast.bad .t-ico { color: var(--bad); }
.devbar.open ~ .toast-host { bottom: 72px; }
/* with your own result panel open at bottom right, centre the toasts in the space left of it */
@media (max-width: 1240px) and (min-width: 761px) {
  .win-panel ~ .win-toasts { left: calc((100% - 344px - var(--gut)) / 2); }
}
.toast-link { display: inline-flex; align-items: center; gap: 2px; margin-left: var(--s-1); font-family: var(--mono); font-size: 11px; color: var(--gold-2); white-space: nowrap; }

/* win toasts: bottom centre, stacking upward, clear of the tx toast and the dev toolbar */
.win-toasts {
  position: fixed; left: 50%; bottom: 80px; z-index: 70; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: var(--s-1); pointer-events: none;
  max-width: calc(100vw - 32px);
}
.devbar.open ~ .win-toasts { bottom: 128px; }
.win-toast {
  position: relative; display: flex; align-items: center; gap: var(--s-2); padding: 10px var(--s-3) 10px var(--s-2);
  background: rgba(19, 15, 11, .97); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border: var(--bw) solid var(--line-2); border-radius: var(--r-pill);
  box-shadow: 0 0 0 6px rgba(11, 9, 7, .55), 0 18px 48px rgba(0, 0, 0, .6);
  font-size: var(--fs-sm); color: var(--ivory-2); white-space: nowrap;
  animation: toast-life var(--life, 5600ms) var(--ease) var(--delay, 0ms) both;
}
.win-toast:not(.is-jp) { border-color: var(--emerald-line); box-shadow: 0 0 0 6px rgba(11, 9, 7, .55), 0 18px 48px rgba(0, 0, 0, .6), 0 0 28px rgba(43, 196, 94, .12); }
.win-toast b { font-weight: 500; color: var(--paid); }
.win-toast.is-jp { border-color: rgba(207, 149, 224, .6); }
.win-toast.is-jp b { color: var(--jackpot); }
@keyframes toast-life {
  0% { opacity: 0; transform: translateY(10px); }
  8% { opacity: 1; transform: none; }
  88% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-6px); }
}

.win-panel {
  position: fixed; right: var(--gut); bottom: var(--s-4); z-index: 75; width: 344px; padding: var(--s-3) var(--s-4) var(--s-4);
  overflow: hidden; background: linear-gradient(180deg, #1a150f, #120e0a); border: var(--bw) solid rgba(207, 178, 122, .45);
  border-radius: var(--r-2); box-shadow: var(--e-3), 0 0 0 1px rgba(0, 0, 0, .4);
  animation: panel-in .7s var(--ease) both;
}
.win-panel:not(.is-jp) { box-shadow: var(--e-3), 0 0 0 1px rgba(0, 0, 0, .4), 0 0 56px rgba(43, 196, 94, .12), inset 0 0 60px rgba(43, 196, 94, .06); }
.win-panel::before { content: ""; position: absolute; inset: 6px; border: var(--bw) solid var(--line-3); border-radius: var(--r-1); pointer-events: none; }
.win-panel.is-jp { border-color: rgba(207, 149, 224, .7); box-shadow: var(--e-3), 0 0 48px rgba(207, 149, 224, .14); }
.win-panel.is-jp .wp-kicker { color: var(--jackpot); }
.wp-sweep { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgba(231, 210, 163, .16) 50%, transparent 70%); transform: translateX(-100%); animation: sweep 2s var(--ease-io) .35s both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.wp-head { position: relative; display: flex; align-items: center; justify-content: space-between; margin-right: -8px; }
.wp-kicker { position: relative; margin-top: var(--s-2); font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1; color: var(--paid); }
.wp-amount { position: relative; display: flex; align-items: baseline; gap: var(--s-1); margin-top: var(--s-1); font-family: var(--serif); font-weight: 400; font-size: 58px; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.wp-amount small { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.wp-tiers { position: relative; display: flex; gap: 6px; margin-top: var(--s-2); }
.wp-status { position: relative; display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-3); padding-top: var(--s-2); border-top: var(--bw) solid var(--line); font-size: var(--fs-sm); }
.win-panel > .btn { position: relative; margin-top: var(--s-3); }

/* dev toolbar (local demo only): a discreet pill that unfolds into one row of controls */
.devbar { position: fixed; left: var(--s-3); bottom: var(--s-3); z-index: 65; display: flex; align-items: center; gap: var(--s-1); max-width: calc(100vw - 32px); }
.dev-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 var(--s-2); flex: none;
  background: rgba(21, 17, 13, .92); border: var(--bw) solid var(--line-2); border-radius: var(--r-pill);
  font-family: var(--mono); font-size: 11px; color: var(--muted); transition: color var(--t-1), border-color var(--t-1);
}
.dev-pill:hover, .devbar.open .dev-pill { color: var(--gold-2); border-color: var(--gold-3); }
.dev-tools {
  display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; padding: 5px var(--s-1);
  background: rgba(21, 17, 13, .96); border: var(--bw) solid var(--line-2); border-radius: var(--r-3); box-shadow: var(--e-2);
  animation: rise .25s var(--ease) both;
}
.dev-g { display: inline-flex; align-items: center; gap: 4px; }
.dev-g .lbl { margin: 0 2px 0 4px; }
.dev-g button { height: 24px; padding: 0 8px; border: var(--bw) solid var(--line); border-radius: var(--r-1); font-family: var(--mono); font-size: 11px; color: var(--ivory-2); }
.dev-g button:hover:not(:disabled) { border-color: var(--gold-3); color: var(--gold-2); }
.dev-g button:disabled { opacity: .4; }

/* ------------------------------------------------------------------ draws (v8: one hero, calmer) */
.draws2 { display: grid; grid-template-columns: minmax(0, 1fr) var(--side); grid-template-areas: "hero side" "lower lower"; gap: var(--card-gap); align-items: start; }
:root { --card-pad: var(--s-5); --card-gap: var(--s-5); }
/* One card rule for every module on Draws (hero, position, draw tape, the section below the fold,
   the away note): same background, border, radius and padding. Inside a card, rows are separated
   by hairlines only, never by nested boxes. */
.card2, .hero2, .pos-card, .side2 .tape, .lower, .away {
  position: relative; min-width: 0; overflow: hidden; padding: var(--card-pad);
  border: var(--bw) solid var(--line); border-radius: var(--r-3);
  background: radial-gradient(90% 70% at 0% 0%, rgba(207, 168, 98, .07), transparent 60%), linear-gradient(180deg, rgba(22, 18, 13, .82), rgba(15, 12, 9, .6));
  box-shadow: var(--e-1);
}
.hero2 { grid-area: hero; isolation: isolate; }
/* a soft emerald light behind the countdown, breathing very slowly (still with reduced motion) */
.hero2::before {
  content: ""; position: absolute; z-index: -1; left: -12%; top: -18%; width: 78%; height: 92%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(43, 196, 94, .085), rgba(43, 196, 94, .03) 55%, transparent);
  animation: em-breathe 9s ease-in-out infinite;
}
@keyframes em-breathe { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
/* Key cards keep their gold hairline; where it meets the bottom-right corner, a faint emerald edge
   light (an inner line plus a soft glow, masked to fade out along both edges). */
.howto { position: relative; }
.hero2::after, .pos-card::after, .howto::after, #lock::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(34% 46% at 100% 100%, rgba(43, 196, 94, .06), transparent 72%);
  box-shadow: inset -1px -1px 0 rgba(43, 196, 94, .34);
  -webkit-mask-image: radial-gradient(55% 75% at 100% 100%, #000, transparent 72%); mask-image: radial-gradient(55% 75% at 100% 100%, #000, transparent 72%);
}
.hero2 > .hero-sweep, .hero2 > .hero-shimmer { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero2 .countdown { padding: 0; border: 0; }
.hero2 .countdown::before { inset: calc(-1 * var(--card-pad)); }
.hero2 .cycle, .hero2 .cycle-l { max-width: none; }
.hero2 .cd { margin-bottom: var(--s-4); }
.side2 { grid-area: side; display: flex; flex-direction: column; gap: var(--card-gap); min-width: 0; }
/* Balanced columns (side by side only): the right column takes exactly the hero's height (height 0
   keeps it from growing the row; min-height fills the row), and the draw tape fills what is left,
   scrolling inside. When the reel makes the hero taller, the tape simply shows more rows. */
@media (min-width: 981px) {
  .draws2 .side2 { align-self: stretch; height: 0; min-height: 100%; }
  .side2 .tape { flex: 1 1 auto; min-height: 300px; }
  .side2 .tape .tape-rows {
    flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent);
  }
}
.hero2 .hero-cta { margin-top: var(--s-5); }

/* pools and jackpot heat */
.pools2 { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--s-5); margin-top: var(--s-5); padding-top: var(--s-4); border-top: var(--bw) solid var(--line); }
.pools2 .pools-note { grid-column: 1 / -1; margin-top: calc(-1 * var(--s-2)); font-size: 11px; color: var(--faint); }
.pool-prize, .pool-jack { position: relative; min-width: 0; }
.pool-sub { margin-top: var(--s-4); font-size: var(--fs-xs); color: var(--muted); }
.pool-jack { padding: var(--s-3) var(--s-4) var(--s-3); margin: calc(-1 * var(--s-3)) 0 0; border-radius: var(--r-3); overflow: hidden;
  background: radial-gradient(80% 90% at 80% 10%, rgba(207, 149, 224, .1), transparent 65%); transition: background 1.2s var(--ease); }
.pool-jack .guilloche { left: auto; right: -200px; top: 50%; width: 460px; height: 460px; transform: translateY(-50%); color: var(--jackpot); opacity: .12; }
.pj-in { position: relative; }
.pj-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); }
.pj-any { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--jackpot); }
.pf.jack .le-num { color: #ecc9f4; }
.pf.jack .delta.up { color: var(--jackpot); background: var(--jackpot-bg); border-color: rgba(207, 149, 224, .32); }
/* paid to winners so far: the trust stat, under the two pools (emerald: money paid out) */
.paid2 { display: flex; flex-direction: column; gap: 6px; margin-top: var(--s-4); padding-top: var(--s-4); border-top: var(--bw) solid var(--line); }
.paid2-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px var(--s-3); }
.pf.paid { margin-top: 0; font-size: clamp(32px, 2.8vw, 44px); }
.pf.paid .le-num { color: var(--paid); }
.paid2:has(.live-eth:not(.live-usd) .delta) { padding-bottom: 26px; }
.paid2-to { font-family: var(--serif); font-size: 18px; color: var(--muted); }
.paid2-to b { font-weight: 400; color: var(--ivory-2); }
.paid2 .usd-note { margin-top: 2px; }
.heat { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-4); }
.heat-bar { position: relative; flex: 1; height: 4px; border-radius: 2px; background: rgba(241, 234, 219, .08); overflow: hidden; }
.heat-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; transition: width 1.2s var(--ease);
  background: linear-gradient(90deg, var(--gold) 0%, #e8a64f 45%, var(--heat) 75%, var(--heat-2) 100%); background-size: 400px 100%; }
.heat-val { font-size: var(--fs-xs); color: var(--ivory-2); min-width: 3.2em; text-align: right; }
.heat-ref { margin-top: 4px; font-size: 11px; color: var(--faint); }
.heat-facts { margin-top: var(--s-2); }
.heat-facts li { position: relative; padding: 3px 0 3px var(--s-3); font-size: var(--fs-sm); color: var(--ivory-2); }
.heat-facts li::before { content: ""; position: absolute; left: 1px; top: 11px; width: 5px; height: 5px; transform: rotate(45deg); border: var(--bw) solid var(--jackpot); }
.heat-note { margin-top: var(--s-2); font-size: 11px; color: var(--faint); }
.heat-warm .heat-val { color: #e8b26a; }
.heat-hot .heat-val { color: var(--heat); }
.heat-hot { background: radial-gradient(80% 90% at 80% 10%, rgba(227, 130, 90, .14), transparent 65%); }
.heat-hot .heat-facts li::before { border-color: var(--heat); }
/* at high heat, a slow ember glow breathes around the jackpot (opacity only) */
.heat-hot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 70px rgba(201, 87, 58, .2); animation: ember 4.5s ease-in-out infinite; }
@keyframes ember { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

/* your position, compact and unboxed */
/* (position card: the card rule above) */
.pc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-2); }
.pc-head .lbl { color: var(--ivory-2); }
.pc-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.pc-figs .fig { margin: 0; font-size: 48px; }
.pc-status { margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--muted); }
.pos-card .claim-row { margin: var(--s-3) 0 0; padding: var(--s-2) 0 0; border: 0; border-top: var(--bw) solid var(--line); border-radius: 0; background: none; }
.pos-card .gate { padding: var(--s-2) 0 var(--s-3); }
.pos-card .gate p { font-size: 20px; }
.side2 .tape .ph { min-height: 0; padding: 0 0 var(--s-2); }
.side2 .tape .tape-h, .side2 .tape .trow { padding: 0; }
.side2 .tape .trow .ad .avatar { display: none; } /* the reel shows the marks; the feed keeps the address whole */
.side2 .tape .ph-foot { padding: var(--s-3) 0 0; }
.side2 .tape .empty { padding: var(--s-4) 0; }

/* below the fold: unboxed */
.lower { grid-area: lower; }
.lower-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.lower-grid > div + div { padding-left: var(--s-5); border-left: var(--bw) solid var(--line-3); }
.lower-grid .lbl { margin-bottom: var(--s-3); color: var(--gold); }
.tiers2 li { display: flex; align-items: center; gap: var(--s-2); padding: 6px 0; font-size: var(--fs-sm); color: var(--muted); }
.lower-h { font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.lower-p { margin-top: var(--s-2); color: var(--muted); font-size: var(--fs-sm); line-height: 1.65; }
.lower-p em { color: var(--gold-2); }
.steps2 li { display: flex; gap: var(--s-2); padding: 6px 0; font-size: var(--fs-sm); color: var(--muted); }
.steps2 b { color: var(--ivory-2); font-weight: 500; }
.steps2 .rn { flex: none; width: 26px; font-family: var(--serif); font-style: italic; color: var(--gold); }
.steps2 .rn::after { content: none; }
.trust2 { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-5); padding-top: var(--s-4); border-top: var(--bw) solid var(--line-3); }
.trust2 ul { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.trust2 li { display: flex; align-items: center; gap: var(--s-2); font-family: var(--serif); font-size: 20px; color: var(--ivory-2); }
.trust2 li::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); border: var(--bw) solid var(--gold); }

/* ------------------------------------------------------------------ the draw moment */
.hero { position: relative; }
.hero > .hero-sweep, .hero > .hero-shimmer { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
/* last seconds: the digits warm and brighten, and one thin gold line crosses the hero */
.cd .digits { position: relative; isolation: isolate; transition: color 1.2s var(--ease); }
.cd .digits::before {
  content: ""; position: absolute; inset: -18% -8%; z-index: -1; opacity: 0; transition: opacity 1.2s var(--ease);
  background: radial-gradient(50% 50% at 50% 55%, rgba(231, 196, 128, .22), transparent 70%);
}
.cd.final .digits { color: #f7e6c0; }
.cd.final .digits::before { opacity: 1; }
.hero-sweep { overflow: hidden; }
.hero-sweep::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold-2) 30%, var(--gold-2) 70%, transparent);
  box-shadow: 0 0 14px 1px rgba(231, 210, 163, .45); opacity: 0;
  animation: hero-sweep 1.6s var(--ease-io) .1s both;
}
@keyframes hero-sweep { 0% { transform: translateX(0); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateX(calc(100vw)); opacity: 0; } }
/* drawing: a slow, soft shimmer across the whole hero */
.hero-shimmer { overflow: hidden; }
.hero-shimmer::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 60%;
  background: linear-gradient(100deg, transparent, rgba(231, 210, 163, .07) 45%, rgba(231, 210, 163, .11) 50%, rgba(231, 210, 163, .07) 55%, transparent);
  animation: shimmer-x 3.6s var(--ease-io) infinite;
}
@keyframes shimmer-x { from { transform: translateX(0); } to { transform: translateX(270%); } }

/* the jackpot roll (phase 2 of the draw moment): entered wallets and "Try again" tiles fly past a
   fixed gold pointer, ease out and land on the chain's result */
.reel-view {
  position: relative; height: 112px; overflow: hidden;
  background: linear-gradient(180deg, rgba(10, 8, 6, .55), rgba(20, 16, 12, .35));
  border-top: var(--bw) solid var(--line-2); border-bottom: var(--bw) solid var(--line-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.reel-track { position: absolute; left: 0; top: 0; bottom: 0; display: flex; align-items: center; will-change: transform; }
.reel-tile {
  flex: none; display: flex; align-items: center; justify-content: center; gap: 12px; width: 204px; height: 76px; margin: 0 6px;
  border: var(--bw) solid var(--line-2); border-radius: 38px; background: linear-gradient(180deg, #1c1711, #120e0a);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35), 0 1px 0 rgba(241, 234, 219, .05) inset;
  font-size: 15px; color: var(--ivory); transition: opacity .8s var(--ease), border-color .6s var(--ease), box-shadow .6s var(--ease);
}
.reel-tile .avatar { flex: none; }
.reel-tile.you { border-color: rgba(207, 178, 122, .6); color: var(--gold-2); }
.reel-tile.win { border-color: var(--jackpot); color: #fff; background: linear-gradient(180deg, #2a1830, #170e1b); box-shadow: 0 0 0 4px rgba(207, 149, 224, .16), 0 0 40px rgba(207, 149, 224, .35); }
.reel-pointer { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: linear-gradient(180deg, var(--gold-2), #fff3d6 50%, var(--gold-2)); box-shadow: 0 0 14px 2px rgba(231, 210, 163, .55), 0 0 40px rgba(231, 210, 163, .25); }
.reel-pointer::before, .reel-pointer::after { content: ""; position: absolute; left: -6px; border: 7px solid transparent; }
.reel-pointer::before { top: 0; border-top: 9px solid var(--gold-2); }
.reel-pointer::after { bottom: 0; border-bottom: 9px solid var(--gold-2); }
.reel-msg { min-height: 1.4em; margin-top: var(--s-2); font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--ivory-2); }
.reel-fx { position: absolute; width: 0; height: 0; overflow: hidden; }
.jroll { margin: var(--s-3) 0 var(--s-4); animation: jroll-in .3s var(--ease) both; }
.jroll.leaving { animation: jroll-out .45s var(--ease) both; }
@keyframes jroll-in { from { opacity: 0; } }
@keyframes jroll-out { to { opacity: 0; } }
.jroll-meta { margin-bottom: var(--s-2); font-size: var(--fs-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--faint); }
.reel-tile.try { flex-direction: column; gap: 3px; border-color: var(--line); background: linear-gradient(180deg, #16120e, #0d0a08); box-shadow: 0 1px 0 rgba(241, 234, 219, .03) inset; }
.try-t { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1; color: var(--muted); }
.try-s { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.jroll.landed .reel-tile { opacity: .34; }
.jroll.landed .reel-tile.win, .jroll.landed .reel-tile.try.land { opacity: 1; }
.reel-tile.try.land { border-color: rgba(231, 210, 163, .75); box-shadow: 0 0 0 4px rgba(231, 210, 163, .08), 0 0 34px rgba(231, 210, 163, .2); }
.reel-tile.try.land .try-t { color: var(--ivory); }
.jroll:not(.landed) .reel-msg { color: var(--faint); }
.jroll.hit.landed .reel-msg { color: var(--jackpot); }
.jroll.still .reel-msg { padding-top: var(--s-1); border-top: var(--bw) solid var(--line-2); }
.reel-odds { margin-top: 2px; font-size: 11px; color: var(--faint); }
.jroll .reel-pointer { transition: background .5s var(--ease), box-shadow .5s var(--ease); }
.jroll.landed .reel-pointer { background: transparent; box-shadow: none; } /* the arrowheads stay; the line clears the landed tile */
.countdown.rolling .cd-label { color: #e6c3f1; }
.countdown.rolling .cd-label::after { background: var(--jackpot-2); }

/* trust stat, on top of the draw tape */

/* a summary toast when a draw has many winners */
.win-toast.summary { padding-left: var(--s-3); }
.wt-mark { width: 7px; height: 7px; transform: rotate(45deg); border: var(--bw) solid var(--emerald); box-shadow: 0 0 6px var(--emerald-glow); flex: none; }

/* your own win: a gentle radial light burst behind the amount */
.wp-burst {
  position: absolute; left: -20%; top: 10%; width: 110%; aspect-ratio: 1; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgba(231, 210, 163, .22), rgba(43, 196, 94, .1) 50%, transparent 72%);
  animation: burst 2.4s var(--ease) .15s both;
}
.win-panel.is-jp .wp-burst { background: radial-gradient(closest-side, rgba(231, 210, 163, .26), rgba(207, 178, 122, .08) 55%, transparent 72%); }
@keyframes burst { 0% { opacity: 0; transform: scale(.4); } 35% { opacity: 1; } 100% { opacity: .35; transform: scale(1.15); } }
.wp-actions { position: relative; display: flex; align-items: center; gap: var(--s-1); flex-wrap: wrap; margin-top: var(--s-3); }

/* the jackpot moment */
.jp-moment { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: var(--s-4); cursor: pointer; }
.jpm-dim { position: absolute; inset: 0; background: rgba(6, 5, 4, .86); backdrop-filter: blur(10px) saturate(.8); -webkit-backdrop-filter: blur(10px) saturate(.8); animation: fade-in .6s var(--ease) both; }
.jpm-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.jpm-bloom {
  position: absolute; left: 50%; top: 50%; width: min(1100px, 160vw); aspect-ratio: 1; margin: calc(min(1100px, 160vw) / -2) 0 0 calc(min(1100px, 160vw) / -2);
  background: radial-gradient(closest-side, rgba(247, 226, 178, .4), rgba(207, 149, 224, .24) 32%, rgba(140, 70, 170, .2) 54%, transparent 72%);
  animation: bloom 2.8s var(--ease) both; pointer-events: none;
}
.jpm-body { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--s-2); text-align: center; animation: rise-in 1s var(--ease) .25s both; }
.jpm-title { font-family: var(--serif); font-weight: 400; font-size: clamp(72px, 13vw, 168px); line-height: .9; letter-spacing: .06em; text-transform: uppercase; color: #f0d7f5; text-shadow: 0 0 60px rgba(207, 149, 224, .35); }
.jpm-amount { display: flex; align-items: baseline; gap: var(--s-1); font-family: var(--serif); font-size: clamp(48px, 7vw, 88px); line-height: 1; font-variant-numeric: tabular-nums lining-nums; color: var(--ivory); }
.jpm-amount small { font-family: var(--mono); font-size: 13px; letter-spacing: .16em; color: var(--muted); }
.jpm-who { font-family: var(--serif); font-size: 22px; color: var(--ivory-2); }
.jpm-who b { font-weight: 400; color: var(--jackpot); }
.jpm-eyebrow { color: var(--jackpot) !important; }
.jp-moment .btn { margin-top: var(--s-3); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes bloom { 0% { opacity: 0; transform: scale(.2); } 45% { opacity: 1; } 100% { opacity: .75; transform: scale(1); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.jp-moment.still .jpm-bloom { display: none; }

/* leaders */
.serif-h { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; }
.leaders { margin-bottom: var(--s-4); }
.leaders-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; margin: 0 0 var(--s-3); }
.lb li {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto auto 22px; align-items: center; gap: var(--s-2);
  min-height: 46px; padding: 0 var(--s-3); border-bottom: var(--bw) solid var(--line-3);
}
.lb li:last-child { border-bottom: 0; }
.lb-rank { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--gold-3); }
.lb .ad { display: flex; align-items: center; gap: var(--s-1); min-width: 0; font-family: var(--mono); font-size: var(--fs-xs); }
.lb .ad > :last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-meta { display: inline-flex; align-items: center; gap: var(--s-1); font-size: 11px; }
.lb-amt { font-family: var(--serif); font-size: 22px; text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.lb-amt small { margin-left: 4px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; color: var(--faint); }
.lb li:first-child .lb-amt { color: var(--gold-2); }
.lb li.jp .lb-amt { color: var(--jackpot); }
.lb li.me { background: rgba(207, 178, 122, .06); box-shadow: inset 2px 0 0 var(--gold); }
.lb li.me .ad > :last-child { color: var(--gold-2); }
.rec { display: inline-flex; align-items: center; gap: var(--s-2); }
.tx-link.share { color: var(--gold-2); }

/* notifications toggle */
.notify-row { padding: var(--s-2) var(--s-3) var(--s-3); border-top: var(--bw) solid var(--line); }
.notify-row .switch { margin-left: 0; }
.notify-row .note { margin-top: 6px; }

/* FAQ */
.faq { margin-top: var(--s-6); }
.faq-list { border-top: var(--bw) solid var(--line-2); }
.faq-item { border-bottom: var(--bw) solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-1);
  list-style: none; cursor: pointer; font-family: var(--serif); font-size: 24px; line-height: 1.2; color: var(--ivory);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold-2); }
.faq-item summary .icon { flex: none; color: var(--gold-3); transition: transform var(--t-2) var(--ease); }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-a { max-width: 780px; padding: 0 var(--s-1) var(--s-4); color: var(--ivory-2); line-height: 1.7; }
.faq-a p + p { margin-top: var(--s-2); }

/* sound toggle */
.sound-btn { width: 34px; height: 34px; border: var(--bw) solid var(--line-2); }
.sound-btn.on { color: var(--gold-2); border-color: rgba(207, 178, 122, .45); }

/* while you were away */
.away { margin-bottom: var(--card-gap); animation: rise .5s var(--ease) both; }
.away-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); }
.away-sum { display: flex; align-items: baseline; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-1); font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.05; }
.away-sum i { font-style: normal; color: var(--gold-3); }
.away-sum small { font-size: 20px; color: var(--gold-2); }
.away-rows { margin-top: var(--s-2); border-top: var(--bw) solid var(--line); }
.away-rows li { display: grid; grid-template-columns: 64px auto minmax(0, 1fr) auto auto auto; align-items: center; gap: var(--s-2); min-height: 38px; border-bottom: var(--bw) dashed var(--line-3); font-size: var(--fs-xs); }
.away-amt { font-family: var(--serif); font-size: 19px; text-align: right; }
.away-amt small { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; color: var(--faint); }
.away-foot { display: flex; align-items: center; justify-content: flex-end; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-2); }
.away-foot .muted { margin-right: auto; font-size: var(--fs-xs); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1280px) {
  :root { --side: 372px; }
  .hero { grid-template-columns: 1fr; }
  .countdown { border-right: 0; border-bottom: var(--bw) solid var(--line); }
  .hero-tiers .tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-tiers .tiers li + li { border-left: var(--bw) solid var(--line-3); }
  .strip-in > .s-opt { display: none; }
  .trow .ad .avatar { display: none; }
}
@media (max-width: 1180px) {
  .pools2 { grid-template-columns: 1fr; gap: var(--s-4); }
  .pool-jack { margin: 0; }
  .lower-grid { grid-template-columns: 1fr 1fr; }
  .lower-grid > div:nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-left: 0; padding-top: var(--s-4); border-top: var(--bw) solid var(--line-3); }
}
@media (max-width: 980px) {
  .draws2 { grid-template-columns: 1fr; grid-template-areas: "hero" "side" "lower"; gap: var(--card-gap); }
}
@media (max-width: 1100px) {
  .hdr-in { gap: var(--s-3); }
  .pill.blk { display: none; }
  .jp-grid { grid-template-columns: 1fr; }
  .jp-r { min-height: 220px; }
  .jp-l { border-right: 0; border-bottom: var(--bw) solid var(--line); }
  .flow-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .cols { display: flex; flex-direction: column; }
  .cols > .col { display: contents; }
  .draws > .col > *, .draws > .trust { width: 100%; }
  .o-hero { order: 1; } .o-pos { order: 2; } .o-tape { order: 3; } .o-jack { order: 4; } .o-how { order: 5; } .o-trust { order: 6; }
  .pos-layout > .col > *, .verify-layout > .col > * { width: 100%; }
  .strip-in > div:nth-child(n+6) { display: none; }
  .ledger-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger-stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .ledger-stats > div:nth-child(n+3) { border-top: var(--bw) solid var(--line); }
}
@media (max-width: 760px) {
  :root { --gut: 16px; --hdr-h: 56px; }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .hdr { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(11, 9, 7, .97); }
  .hdr-in { gap: var(--s-2); }
  .wordmark { font-size: 22px; }
  .logo-mark { width: 36px; height: 36px; }
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: calc(60px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom); gap: 0; justify-content: space-around;
    background: rgba(11, 9, 7, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: var(--bw) solid var(--line);
  }
  .nav button { flex: 1; font-size: 10.5px; letter-spacing: .14em; }
  .nav button::after { top: -1px; bottom: auto; }
  .pill.net { display: none; }
  .w-name { display: none; }
  .lbl-full { display: none; }
  .lbl-short { display: inline; }
  .notice { padding: 4px var(--gut); }
  .strip-in { gap: 0; }
  .strip-in > div { padding: 0 10px; }
  .strip-in > div:nth-child(n+5) { display: none; }
  .shell { padding: var(--s-2) var(--s-2) var(--s-5); }
  .cols, .col { gap: var(--s-2); }
  .countdown { padding: var(--s-4) var(--s-3) var(--s-3); }
  .cd-label { font-size: 24px; }
  .cd { font-size: clamp(88px, 29vw, 136px); margin: var(--s-2) 0 var(--s-4); }
  .cycle-l { font-size: 9.5px; letter-spacing: .12em; }
  .cycle-l.open .c2, .cycle-l.drawing .c1, .cycle-l.waiting .c2 { display: none; }
  .cycle-l.drawing { justify-content: flex-end; }
  .n-long { display: none; }
  :root { --card-pad: var(--s-3); --card-gap: var(--s-3); }
  .pools2 { margin-top: var(--s-4); }
  .pool-jack { padding: var(--s-3); }
  .pc-figs .fig { font-size: 40px; }
  .lower-grid { grid-template-columns: 1fr; gap: var(--s-4); }
  .lower-grid > div + div { padding-left: 0; border-left: 0; padding-top: var(--s-4); border-top: var(--bw) solid var(--line-3); }
  .trust2 ul { flex-direction: column; }
  .away-sum { font-size: 28px; }
  .away-rows li { grid-template-columns: 52px auto minmax(0, 1fr) auto; }
  .away-rows li > :nth-child(4), .away-rows li > :nth-child(5) { display: none; }
  .cutoff { font-size: var(--fs-xs); }
  .co-sub { flex-basis: 100%; padding-left: 20px; }
  .co-sub::before { content: none; }
  .countdown .lede { margin-top: var(--s-4); font-size: 21px; }
  .pf { font-size: 36px; }
  .pools-hero > div + div { padding-left: var(--s-3); }
  .delta { font-size: 10px; }
  .hero-cta { gap: var(--s-3); }
  .hero-tiers .tiers { grid-template-columns: 1fr; }
  .hero-tiers .tiers li { grid-template-columns: 32px minmax(0, 1fr) auto; grid-template-rows: auto; align-items: baseline; padding: var(--s-2) var(--s-3); }
  .hero-tiers .tiers li + li { border-left: 0; }
  .t-num { grid-row: auto; }
  .t-name { font-size: 26px; }
  .t-note { margin-top: 0; }
  .fig { font-size: 48px; }
  .figs.three { grid-template-columns: 1fr 1fr; }
  .figs.three > div:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: var(--bw) solid var(--line); }
  .tape-h, .trow { grid-template-columns: 30px minmax(0, 1fr) 56px 68px 22px; padding: 0 var(--s-2); gap: 6px; }
  .tape-h span:nth-child(5), .trow .st { display: none; }
  .trow .ad .avatar { display: none; }
  .jp-l, .jp-r { padding: var(--s-3); }
  .steps { grid-template-columns: 1fr; }
  .steps li + li { border-left: 0; border-top: var(--bw) solid var(--line); }
  .steps li { padding: var(--s-3); }
  .steps h3 { font-size: 30px; margin-top: var(--s-2); }
  .trust ul { flex-direction: column; gap: var(--s-1); }
  .trust li { font-size: 19px; }
  .two { grid-template-columns: 1fr; gap: var(--s-2); }
  .page-head { padding: var(--s-3) var(--s-1) var(--s-4); }
  .page-head .lede { font-size: var(--fs-base); }
  .filters { gap: var(--s-1); }
  .seg { width: 100%; }
  .seg button { flex: 1; padding: 0 4px; font-size: 10px; letter-spacing: .06em; }
  .search { max-width: none; }
  .switch { margin-left: 0; }
  /* the win history table becomes stacked rows */
  table.ledger thead { display: none; }
  table.ledger, table.ledger tbody { display: block; }
  table.ledger tr { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "ad ad ad amt" "draw tier st tx"; align-items: center; gap: 4px var(--s-2); padding: var(--s-2) var(--s-3); border-bottom: var(--bw) solid var(--line-3); }
  table.ledger td { display: block; height: auto; padding: 0; border: 0; }
  table.ledger td:nth-child(1) { grid-area: draw; font-size: 11px; color: var(--faint); }
  table.ledger td:nth-child(2) { display: none; }
  table.ledger td:nth-child(3) { grid-area: ad; min-width: 0; }
  table.ledger td:nth-child(4) { grid-area: tier; }
  table.ledger td:nth-child(5) { grid-area: amt; }
  table.ledger td:nth-child(6) { grid-area: st; justify-self: end; }
  table.ledger td:nth-child(7) { grid-area: tx; }
  table.ledger tr.void { display: block; }
  table.ledger tr.void td { display: inline; }
  table.ledger tr.void td + td { display: block; margin-top: 2px; white-space: normal; }
  table.ledger tr.jp td { background: none; }
  table.ledger tr.jp { background: rgba(207, 178, 122, .07); box-shadow: inset 2px 0 0 var(--gold); }
  table.ledger tr.jp td:first-child { box-shadow: none; }
  .ledger-stats b { font-size: 30px; }
  .flow-legend { grid-template-columns: 1fr; gap: var(--s-2); }
  .pools { grid-template-columns: 1fr; }
  .vlog { margin: 0 var(--s-2) var(--s-2); }
  .vlog-body { font-size: 11px; }
  table.verify th:nth-child(2), table.verify td:nth-child(2), table.verify th:nth-child(5), table.verify td:nth-child(5) { display: none; }
  .win-toasts { left: var(--s-2); right: var(--s-2); bottom: calc(68px + env(safe-area-inset-bottom)); transform: none; align-items: stretch; max-width: none; }
  .devbar ~ .win-toasts, .devbar.open ~ .win-toasts { bottom: calc(106px + env(safe-area-inset-bottom)); }
  .win-toasts:not(:empty) ~ .toast-host { bottom: calc(150px + env(safe-area-inset-bottom)); }
  .win-panel ~ .win-toasts { display: none; }
  .win-toast { white-space: normal; border-radius: var(--r-3); }
  .win-panel { left: var(--s-2); right: var(--s-2); bottom: calc(68px + env(safe-area-inset-bottom)); width: auto; }
  .toast-host { bottom: calc(72px + env(safe-area-inset-bottom)); }
  .devbar { bottom: calc(68px + env(safe-area-inset-bottom)); left: var(--s-2); }
  .foot { margin-top: var(--s-5); grid-template-columns: 1fr; }
  .lb li { grid-template-columns: 22px minmax(0, 1fr) auto 18px; padding: 0 var(--s-2); }
  .lb-meta { display: none; }
  .lb-amt { font-size: 19px; }
  .serif-h { font-size: 32px; }
  .faq-item summary { font-size: 20px; }
  .reel-view { height: 88px; }
  .reel-tile { width: 140px; height: 60px; margin: 0 5px; gap: 8px; font-size: 12px; border-radius: 30px; }
  .reel-tile .avatar { width: 24px; height: 24px; }
  .try-t { font-size: 16px; }
  .try-s { font-size: 8.5px; }
  .reel-msg { font-size: 20px; }
}
@media (max-width: 380px) {
  .hdr-in { padding: 0 12px; }
  .logo-mark { width: 32px; height: 32px; }
  .wordmark { font-size: 20px; }
  .strip-in > div:nth-child(4) { display: none; }
}

/* ------------------------------------------------------------------ audit fixes: alerts, launch, claims, checks */
.notice.long { padding-top: 7px; padding-bottom: 7px; }
.notice .n-body { max-width: 78ch; text-align: center; line-height: 1.5; }
.notice .n-body b, .notice .n-body .mono { font-family: var(--mono); font-size: inherit; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ivory); }
.notice .n-body a { color: var(--ivory); border-bottom: var(--bw) solid var(--line-2); }
.notice.alert { border-bottom-color: rgba(227, 154, 134, .35); }
.bad-text { color: var(--bad); }
.cd-day { align-self: center; margin-right: .35em; font-style: italic; font-size: .3em; line-height: 1; color: var(--gold-2); }
.heat-facts li.hf-roll { display: flex; flex-direction: column; gap: 1px; }
.hf-note { font-size: 11px; color: var(--faint); }
.claim-box { margin: 0 var(--s-3) var(--s-3); }
.claim-box .claim-row { margin: 0; }
.pos-card .claim-box { margin: 0; }
.claim-alt { margin-top: var(--s-2); color: var(--muted); border-bottom-color: var(--line-2); }
.claim-to { display: flex; flex-direction: column; gap: var(--s-2); margin-top: var(--s-2); padding: var(--s-2) var(--s-3) var(--s-3); border: var(--bw) solid var(--line); border-radius: var(--r-2); }
.claim-to .input input { font-size: 13px; }
.claim-to .note { margin-top: 0; }
.vl.is-bad, .vl.is-bad .k { color: var(--bad); }
.stale-alert { margin: 2px 0 6px; padding: 6px 8px; border: var(--bw) solid rgba(227, 154, 134, .45); border-radius: var(--r-1); background: var(--bad-bg); color: var(--bad); font-family: var(--sans); font-size: 12.5px; line-height: 1.5; }
.stale-alert .pr { color: var(--bad); font-weight: 600; }
.status-card.wiring h2 { color: var(--bad); }
.status-card.wiring .bullets { padding: 0; margin: var(--s-3) 0; }
.mono-wrap { font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ v10: relay alert, claims, activation, void reasons */
/* The last draw wasn't paid: a red bar at the top of Draws, with the one action that fixes it. */
.relay-alert {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-3);
  margin-bottom: var(--card-gap); padding: var(--s-3) var(--s-4);
  border: var(--bw) solid rgba(227, 154, 134, .5); border-radius: var(--r-3);
  background: radial-gradient(70% 160% at 0% 0%, rgba(227, 120, 96, .16), transparent 70%), linear-gradient(180deg, rgba(56, 22, 16, .6), rgba(28, 12, 9, .6));
  box-shadow: 0 1px 0 rgba(241, 234, 219, .03) inset, 0 14px 40px rgba(110, 28, 14, .2);
}
.ra-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--bad);
  border: var(--bw) solid rgba(227, 154, 134, .38); background: rgba(227, 154, 134, .12); animation: ra-pulse 2.4s ease-in-out infinite;
}
@keyframes ra-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(227, 154, 134, .28); } 60% { box-shadow: 0 0 0 8px rgba(227, 154, 134, 0); } }
.ra-body { min-width: 0; }
.ra-h { font-family: var(--serif); font-size: 25px; line-height: 1.15; color: var(--ivory); }
.ra-h b { font-weight: 400; color: #f3b3a1; }
.ra-why { margin-top: 4px; font-size: var(--fs-sm); color: var(--ivory-2); }
.ra-count { display: inline-block; margin-left: var(--s-1); padding: 0 7px; border: var(--bw) solid rgba(227, 154, 134, .38); border-radius: var(--r-pill); font-size: 11px; color: var(--bad); white-space: nowrap; }
.btn.ra-btn { background: var(--bad); color: #1d0d09; }
.btn.ra-btn:hover:not(:disabled) { background: #f2b6a5; box-shadow: 0 0 0 6px rgba(227, 154, 134, .12); }
.pill.bad-pill { color: var(--bad); border-color: rgba(227, 154, 134, .4); background: var(--bad-bg); }
/* matured but not activated: the one button that makes sure of the next draw */
.activate-row b { font-weight: 500; color: var(--ivory); }
.callout.activate-row, .pos-card .claim-row.activate-row {
  margin-top: var(--s-3); padding: var(--s-2) var(--s-3); border: var(--bw) solid rgba(207, 178, 122, .55); border-radius: var(--r-2);
  background: linear-gradient(180deg, rgba(207, 178, 122, .13), rgba(207, 178, 122, .06));
}
.activate-row > span { flex: 1 1 220px; line-height: 1.5; }
/* voided draws say why */
table.ledger tr.void td { white-space: normal; line-height: 1.45; padding-top: 10px; padding-bottom: 10px; }
.void-tag {
  display: inline-block; margin-right: var(--s-2); padding: 1px 7px; border: var(--bw) solid rgba(227, 184, 102, .35); border-radius: var(--r-1);
  font-family: var(--mono); font-style: normal; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--warn); vertical-align: 2px;
}
/* claims (Activity): where claimed ETH went, ClaimedTo included */
.claims-panel { margin-top: var(--s-3); }
.claims-note { padding-bottom: var(--s-2); font-size: var(--fs-sm); }
.claims-list li {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto minmax(0, max-content) 22px; align-items: center; gap: var(--s-3);
  min-height: 46px; padding: 0 var(--s-3); border-top: var(--bw) solid var(--line-3);
}
.claims-list .tm { font-size: 11px; }
.claims-list .ad { display: flex; align-items: center; gap: var(--s-1); min-width: 0; font-family: var(--mono); font-size: var(--fs-xs); }
.cl-amt { font-family: var(--serif); font-size: 21px; text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.cl-amt small { margin-left: 4px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; color: var(--faint); }
.cl-to { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-family: var(--mono); font-size: var(--fs-xs); white-space: nowrap; }
.claims-list li.away-to .cl-to { color: var(--gold-2); }
.cl-arrow { color: var(--gold); }
.claims-list li.me { background: rgba(207, 178, 122, .06); box-shadow: inset 2px 0 0 var(--gold); }
@media (max-width: 760px) {
  .relay-alert { grid-template-columns: auto minmax(0, 1fr); gap: var(--s-2) var(--s-3); padding: var(--s-3); }
  .ra-mark { width: 34px; height: 34px; }
  .ra-h { font-size: 20px; }
  .btn.ra-btn { grid-column: 1 / -1; width: 100%; }
  .claims-list li { grid-template-columns: minmax(0, 1fr) auto 18px; gap: 2px var(--s-2); padding: var(--s-1) var(--s-2); }
  .claims-list .tm { display: none; }
  .claims-list .cl-to { grid-column: 1 / 2; grid-row: 2; }
  .claims-list .lb-tx { grid-column: 3; grid-row: 1; }
}

/* ------------------------------------------------------------------ how it works (top of Draws) */
.howto {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-3) var(--s-5);
  margin-bottom: var(--card-gap); padding: var(--s-4) var(--card-pad);
  border: var(--bw) solid var(--line); border-radius: var(--r-3);
  background: linear-gradient(180deg, rgba(22, 18, 13, .82), rgba(15, 12, 9, .6)); box-shadow: var(--e-1);
}
.howto-h { color: var(--gold); white-space: nowrap; }
.howto-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); counter-reset: none; }
.howto-steps li { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: start; gap: 2px var(--s-2); min-width: 0; }
.howto-ic {
  grid-row: 1 / span 2; display: grid; place-items: center; width: 34px; height: 34px;
  border: var(--bw) solid var(--line-2); border-radius: 50%; color: var(--gold-2); background: var(--gold-bg);
}
.howto-n {
  position: absolute; top: -4px; left: 24px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: var(--r-pill);
  font-family: var(--mono); font-size: 9.5px; font-weight: 500; line-height: 16px; text-align: center; color: #05230f;
  background: linear-gradient(180deg, #4fd67c, var(--emerald-2)); box-shadow: 0 0 0 2px var(--bg-1), 0 0 10px var(--emerald-glow);
}
.howto-steps p { font-size: var(--fs-sm); line-height: 1.45; color: var(--muted); }
.howto-steps b { display: block; font-family: var(--serif); font-size: var(--fs-lg); font-weight: 400; line-height: 1.15; color: var(--ivory); }
.howto-cta { display: flex; flex-direction: column; gap: var(--s-1); }
.howto-cta .btn { white-space: nowrap; }
@media (max-width: 1240px) {
  .howto { grid-template-columns: minmax(0, 1fr) auto; }
  .howto-h { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .howto { grid-template-columns: minmax(0, 1fr); }
  .howto-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
  .howto-cta { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .howto { padding: var(--s-3); gap: var(--s-3); margin-bottom: var(--s-3); }
  .howto-steps b { font-size: var(--fs-md); }
  .howto-steps p { font-size: var(--fs-xs); }
  .howto-cta .btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 380px) {
  .howto-steps { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ last jackpot bar (top of Draws) */
.jp-bar {
  position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-4);
  margin-bottom: var(--s-3); padding: 9px var(--s-3) 9px var(--s-2);
  border: var(--bw) solid rgba(207, 178, 122, .34); border-radius: var(--r-3);
  background: linear-gradient(90deg, rgba(207, 149, 224, .11), rgba(207, 149, 224, .03) 38%, rgba(207, 178, 122, .035));
  box-shadow: var(--e-1), inset 2px 0 0 var(--jackpot);
}
.jb-main, .jb-meta { display: flex; flex-wrap: wrap; align-items: center; min-width: 0; }
.jb-main { gap: var(--s-2); }
.jb-meta { flex: 1 1 auto; gap: 2px var(--s-2); font-size: var(--fs-sm); color: var(--ivory-2); }
.jb-ic {
  display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%;
  color: var(--jackpot); border: var(--bw) solid rgba(207, 149, 224, .38); background: var(--jackpot-bg);
}
.jb-lbl { color: var(--gold); white-space: nowrap; }
.jb-amt { font-family: var(--serif); font-size: var(--fs-lg); line-height: 1; color: #ecc9f4; white-space: nowrap; font-variant-numeric: tabular-nums; }
.jb-amt small { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.jb-who { white-space: nowrap; }
.jb-who .addr { font-family: var(--mono); font-size: var(--fs-xs); color: var(--ivory); }
.jb-who b { font-weight: 500; color: var(--jackpot); }
.jb-when { font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }
.jb-meta > span + span::before { content: "·"; margin-right: var(--s-2); color: var(--gold-3); }
.jb-tx { margin-left: auto; white-space: nowrap; }
.jb-tx.tx-link { font-size: var(--fs-xs); color: var(--gold-2); }
.jb-tx.tx-link:hover { color: #fff; }
.jb-tx .jb-short { display: none; }
/* under an hour old: a faint light passes along the bar now and then (none with reduced motion) */
.jp-bar.fresh::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(231, 210, 163, .09) 45%, rgba(207, 149, 224, .08) 55%, transparent);
  animation: jb-shimmer 7s var(--ease-io) 1.2s infinite;
}
@keyframes jb-shimmer { 0% { transform: translateX(0); } 38%, 100% { transform: translateX(350%); } }
@media (max-width: 760px) {
  .jp-bar { gap: 6px var(--s-2); padding: var(--s-2); }
  .jb-meta { flex-basis: 100%; padding-left: 32px; font-size: var(--fs-xs); }
  .jb-amt { font-size: var(--fs-md); }
  .jb-tx .jb-long { display: none; }
  .jb-tx .jb-short { display: inline; }
}

/* ------------------------------------------------------------------ early-unlock fee */
.btn.danger { background: var(--bad-strong); color: #fff; border-color: var(--bad-strong); }
.btn.danger:hover:not(:disabled) { background: #d4452f; box-shadow: 0 0 0 6px rgba(226, 84, 60, .12); }
.burn-warn, .fee-box, .fee-confirm {
  margin: var(--s-3) 0; padding: var(--s-3); border-radius: var(--r-2); font-size: var(--fs-sm); line-height: 1.5; color: var(--ivory-2);
}
.burn-warn p + p, .fee-box p + p, .fee-confirm p + p { margin-top: var(--s-1); }
.burn-warn, .fee-box.burn, .fee-confirm { border: 2px solid var(--bad-strong); background: var(--bad-bg-strong); }
.burn-h, .fee-h { display: flex; align-items: center; gap: var(--s-1); font-weight: 600; font-size: var(--fs-md); line-height: 1.3; color: var(--bad-ink); }
.burn-h svg, .fee-h svg { flex: none; }
.burn-rule { font-family: var(--serif); font-size: var(--fs-lg); line-height: 1.25; color: var(--ivory); }
.burn-warn b, .fee-box b, .fee-confirm b { color: var(--ivory); font-weight: 600; }
.burn-after { padding-top: var(--s-1); border-top: var(--bw) dashed rgba(226, 84, 60, .35); }
.burn-ack {
  display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-2); padding: var(--s-2); cursor: pointer;
  border-radius: var(--r-2); background: rgba(0, 0, 0, .22); font-weight: 600; color: var(--ivory);
}
.burn-ack input { flex: none; width: 18px; height: 18px; accent-color: var(--bad-strong); cursor: pointer; }
.fee-kv { margin-top: var(--s-1); }
.fee-kv li { display: flex; justify-content: space-between; gap: var(--s-2); padding: 6px 0; border-bottom: var(--bw) dashed rgba(226, 84, 60, .3); }
.fee-kv li:last-child { border-bottom: 0; }
.fee-next { font-size: var(--fs-xs); color: var(--ivory-2); }
.fee-box.waived { border: var(--bw) solid var(--line-2); background: rgba(241, 234, 219, .04); }
.fee-box.waived .fee-h { color: var(--ivory); }
.fee-box.free { border: var(--bw) solid rgba(43, 196, 94, .35); background: var(--paid-bg); }
.fee-box.free .fee-h { color: var(--paid); font-size: var(--fs-sm); }
.fc-btns { display: flex; justify-content: flex-end; gap: var(--s-1); flex-wrap: wrap; margin-top: var(--s-2); }
/* A free unlock only because the draws are paused: confirmed too, in neutral colours. */
.fee-confirm.waived { border: var(--bw) solid var(--line-2); background: rgba(241, 234, 219, .04); }
.fee-confirm.waived .fee-h { color: var(--ivory); }
/* The re-quote right before sending found another fee: shown again before anything is sent. */
.fee-changed { margin-bottom: var(--s-2); padding: 6px 8px; border-radius: var(--r-1); background: rgba(0, 0, 0, .25); color: var(--warn); font-weight: 600; }

/* ------------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .trow.fresh::after, .wp-sweep { display: none; }
  .win-toast, .delta { animation: none !important; }
  .hero-sweep, .hero-shimmer, .wp-burst, .jpm-bloom, .jp-bar.fresh::after { display: none; }
  .heat-hot::after { animation: none; opacity: .8; }
  .reel-view { display: none; }
  .ra-mark { animation: none; }
  .hero2::before { animation: none; opacity: .85; }
}
