/* Prizzly — tokens */
@font-face { font-family: 'Bricolage Grotesque'; src: url('/fonts/bricolage.woff2') format('woff2-variations'), url('/fonts/bricolage.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Lexend'; src: url('/fonts/lexend.woff2') format('woff2-variations'), url('/fonts/lexend.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible Mono'; src: url('/fonts/atkinson-mono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --paper: #F3F0FF;      /* lavender ticket paper */
  --ink: #24153F;        /* grape ink */
  --ink-2: #4A3F6B;      /* secondary text, 8:1 on paper */
  --honey: #FFC233;      /* prize gold, primary action */
  --gum: #FF4F95;        /* bubblegum: celebration, promos */
  --mint: #19C2A0;       /* verified, success */
  --lilac: #CDBDFF;
  --blush: #FFD3E4;
  --mintlight: #C9F3E8;
  --white: #FFFFFF;
  --link: #4B2FC9;
  --danger: #B3122E;
  --focus: #4B2FC9;
  --display: 'Bricolage Grotesque', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --body: 'Lexend', 'Segoe UI', system-ui, sans-serif;
  --mono: 'Atkinson Hyperlegible Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4.5rem;
  --line: 2.5px solid var(--ink);
  --stick: 4px 4px 0 var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 var(--body); letter-spacing: -.005em; }
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; letter-spacing: -.015em; margin: 0 0 var(--s3); font-variation-settings: 'opsz' 48; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 var(--s4); }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 60ch; }
.small { font-size: .9rem; }
.muted { color: var(--ink-2); }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: .02em; }
.break { word-break: break-all; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--honey); padding: var(--s2) var(--s4); border: var(--line); z-index: 99; }
.skip:focus { left: 8px; }
.warn { color: var(--danger); }

/* ---------- chrome ---------- */
.demo-banner { background: var(--ink); color: var(--white); text-align: center; font-size: .92rem; padding: .45rem var(--s4); }
.demo-banner a { color: var(--honey); }
.site-head { display: flex; align-items: center; gap: var(--s5); padding: var(--s4) clamp(var(--s4), 4vw, var(--s7)); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .5rem; font: 800 1.6rem var(--display); color: var(--ink); text-decoration: none; letter-spacing: -.03em; }
.site-head nav ul { display: flex; gap: clamp(.85rem, 1.3vw, 1.5rem); list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-head nav a { color: var(--ink); font-weight: 700; text-decoration: none; padding: .3rem 0; border-bottom: 3px solid transparent; }
.site-head nav a:hover, .site-head nav a[aria-current] { border-bottom-color: var(--gum); }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s4); }
.cart-link { color: var(--ink); font-weight: 700; text-decoration: none; }
.badge { display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; border-radius: 999px; background: var(--gum); color: var(--ink); font-size: .8rem; border: 2px solid var(--ink); }
main { padding: var(--s5) clamp(var(--s4), 4vw, var(--s7)) var(--s8); max-width: 1240px; margin: 0 auto; }
main:focus { outline: none; }
.site-foot { border-top: var(--line); background: var(--white); padding: var(--s7) clamp(var(--s4), 4vw, var(--s7)) var(--s5); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s6); max-width: 1240px; margin: 0 auto; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.foot-brand { display: flex; gap: .5rem; align-items: center; font: 800 1.3rem var(--display); }
.foot-legal { max-width: 1240px; margin: var(--s5) auto 0; color: var(--ink-2); }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; font: 600 1rem var(--body); color: var(--ink); background: var(--white);
  border: var(--line); border-radius: 999px; padding: .62em 1.2em; text-decoration: none; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); transition: transform .08s, box-shadow .08s; }
.btn:hover { background: #fffbea; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-primary { background: var(--honey); }
.btn-primary:hover { background: #ffcf5c; }
.btn-danger { background: var(--blush); color: var(--danger); }
.btn-small { font-size: .9rem; padding: .35em .85em; box-shadow: 2px 2px 0 var(--ink); }
.btn-block { width: 100%; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; cursor: pointer; }
.field { display: grid; gap: .3rem; margin-bottom: var(--s4); }
.field label, fieldset legend { font-weight: 700; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=datetime-local], input[type=url], input[type=tel], input:not([type]), select, textarea {
  font: inherit; color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 10px; padding: .55em .75em; width: 100%; max-width: 32rem; }
textarea { min-height: 8rem; }
.hint { font-size: .9rem; color: var(--ink-2); margin: 0; }
.check { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: var(--s3); line-height: 1.5; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--ink); flex: none; }
.check-text { flex: 1 1 auto; min-width: 0; }
.stack { display: grid; gap: var(--s2); max-width: 34rem; }
.narrow { max-width: 26rem; }
.inline { display: inline-flex; gap: var(--s2); align-items: flex-end; flex-wrap: wrap; margin: 0 var(--s2) var(--s2) 0; }
.inline .field { margin: 0; }
fieldset { border: 2px solid var(--ink); border-radius: 14px; padding: var(--s4) var(--s5); margin: 0 0 var(--s5); }

/* ---------- small parts ---------- */
.flash { border: var(--line); border-radius: 14px; padding: var(--s3) var(--s4); margin-bottom: var(--s5); background: var(--white); }
.flash-ok { background: var(--mintlight); }
.flash-error { background: var(--blush); }
.flash-info { background: #FFF6D6; }
.pill { display: inline-block; font: 700 .78rem var(--body); padding: .12em .65em; border-radius: 999px; border: 2px solid var(--ink); background: var(--white); vertical-align: middle; white-space: nowrap; }
.pill-open { background: var(--mintlight); } .pill-scheduled { background: var(--lilac); } .pill-paused { background: var(--honey); }
.pill-frozen { background: var(--gum); } .pill-completed { background: var(--white); } .pill-cancelled { background: #E4E0EE; } .pill-draft { border-style: dashed; }
.pill-bad { background: var(--blush); } .pill-warn { background: var(--honey); } .pill-info { background: var(--lilac); } .pill-role { background: var(--honey); }
.empty { color: var(--ink-2); font-style: italic; }
.empty-state { text-align: center; max-width: 34rem; margin: var(--s7) auto; }
.empty-state .prizz { display: block; margin: 0 auto var(--s4); }
.small-empty { margin: var(--s4) 0; text-align: left; display: flex; gap: var(--s4); align-items: center; }
.small-empty .prizz { margin: 0; }
.panel { background: var(--white); border: 2px solid var(--ink); border-radius: 18px; padding: var(--s5); margin-bottom: var(--s5); }
.panel > :last-child { margin-bottom: 0; }
.callout { border: var(--line); border-radius: 18px; background: #FFF6D6; padding: var(--s4) var(--s5); margin-bottom: var(--s5); }
.callout-warn { background: var(--blush); }
.callout > p:last-child { margin-bottom: 0; }
.mail-bounce { margin: var(--s3) 0 0; }
.mail-note { margin: var(--s2) 0 var(--s4); }
.crumbs { font-size: .92rem; margin-bottom: var(--s4); color: var(--ink-2); }
.page-head { margin-bottom: var(--s6); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); margin: var(--s8) 0 var(--s5); }
.section-head h2 { margin: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); }
.table-wrap { overflow-x: auto; margin-bottom: var(--s5); border: 2px solid var(--ink); border-radius: 14px; background: var(--white); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid #DDD6F3; vertical-align: top; }
th { background: #EAE5FF; font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
caption { text-align: left; font-weight: 700; padding: var(--s2) var(--s3); }
pre.code { background: var(--ink); color: #F3F0FF; padding: var(--s4); border-radius: 14px; overflow-x: auto; font: 500 .88rem/1.5 var(--mono); }
details > summary { cursor: pointer; font-weight: 700; margin: var(--s3) 0; }

/* ---------- the ticket: Prizzly's signature element ---------- */
.ticket { --stub: var(--honey); display: grid; grid-template-columns: minmax(0, 1fr) 15.5rem; background: var(--white); border: var(--line); border-radius: 22px; box-shadow: var(--stick); overflow: hidden; position: relative; }
.ticket-scheduled { --stub: var(--mint); }
.ticket-capped { --stub: #FF9CC4; }
.ticket-multi { --stub: var(--lilac); }
.ticket-pot { --stub: #8FD8FF; }
.ticket-main { padding: var(--s5) var(--s5) var(--s4); min-width: 0; }
.ticket-stub { background: var(--stub); border-left: 3px dashed var(--ink); padding: var(--s5) var(--s4) var(--s4); position: relative; display: flex; flex-direction: column; gap: var(--s3); }
.ticket-stub::before, .ticket-stub::after { content: ''; position: absolute; left: -16px; width: 28px; height: 28px; border-radius: 50%; background: var(--paper); border: var(--line); }
.ticket-stub::before { top: -16px; } .ticket-stub::after { bottom: -16px; }
.ticket-kind { font-weight: 700; font-size: .92rem; color: var(--ink-2); margin-bottom: var(--s2); display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.ticket-title { font-size: 1.6rem; margin-bottom: var(--s2); }
.ticket-title a { color: var(--ink); text-decoration: none; }
.ticket-title a:hover { text-decoration: underline; }
.ticket-prize { margin-bottom: var(--s3); }
.prize-amount { display: block; font: 800 clamp(1.9rem, 3vw, 2.4rem)/1 var(--display); letter-spacing: -.03em; font-variation-settings: 'opsz' 96; }
.prize-detail { color: var(--ink-2); font-size: .95rem; }
.ticket-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); margin: 0; }
.ticket-facts dt { font-size: .8rem; color: var(--ink-2); }
.ticket-facts dd { margin: 0; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.ticket-facts dd small { display: block; font-weight: 400; color: var(--ink-2); font-size: .82rem; }
.ticket-promo { display: inline-block; margin: var(--s3) 0 0; background: var(--gum); border: 2px solid var(--ink); border-radius: 8px; padding: .1rem .5rem; font-weight: 700; font-size: .85rem; transform: rotate(-1.5deg); }
.stub-code { font: 500 .95rem var(--mono); margin: 0; opacity: .75; }
.stub-count { font-weight: 700; margin: 0; }
.ticket-stub .btn { margin-top: auto; }
.ticket-hero { grid-template-columns: minmax(0, 1fr) 13.5rem; }
.ticket-hero .ticket-title { font-size: 1.9rem; }
.ticket-hero .prize-amount { font-size: clamp(2.6rem, 5vw, 3.6rem); }
.ticket-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 34rem), 1fr)); gap: var(--s6) var(--s5); }

.price del { color: var(--ink-2); font-weight: 400; margin-right: .2em; }
.price ins { text-decoration: none; background: var(--gum); padding: 0 .3em; border-radius: 6px; }
.price-lg { font: 800 1.6rem var(--display); }
.promo-note { background: #FFE3EE; border: 2px solid var(--ink); border-radius: 12px; padding: var(--s2) var(--s3); display: inline-block; }
.meter { height: 18px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); overflow: hidden; }
.meter-fill { height: 100%; width: var(--pct); min-width: 4px; background: repeating-linear-gradient(-45deg, var(--gum) 0 9px, #FF7DB1 9px 18px); border-right: 2px solid var(--ink); }
.meter-legend { margin-top: var(--s2); }

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.18fr); gap: var(--s7); align-items: center; padding: var(--s5) 0 var(--s7); }
.hero-title { font-size: clamp(3rem, 8vw, 6.2rem); line-height: .9; letter-spacing: -.045em; font-weight: 800; margin-bottom: var(--s5); font-variation-settings: 'opsz' 96; }
.four-answers { list-style: none; padding: 0; margin: var(--s5) 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s5); }
.four-answers li { border-top: 3px solid var(--ink); padding-top: var(--s3); font-size: .98rem; }
.four-answers strong { display: block; font-family: var(--display); font-size: 1.12rem; }
.hero-ticket { position: relative; padding-top: 96px; }
.hero-ticket .ticket { position: relative; z-index: 1; }
.hero-bear { position: absolute; right: calc(13.5rem + 1.5rem); top: 0; z-index: 0; transform: rotate(-7deg); }
.how { margin-top: var(--s7); }
.steps { list-style: none; padding: 0; margin: var(--s5) 0 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: var(--line); background: var(--honey); font: 800 1.3rem var(--display); margin-bottom: var(--s3); }
.steps-prose { grid-template-columns: 1fr; max-width: 44rem; }
.steps-prose li { display: grid; grid-template-columns: 3.4rem 1fr; }
.steps-prose li::before { grid-row: span 2; }
.trust { margin-top: var(--s8); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); }
.trust-grid > div { border-top: 3px solid var(--ink); padding-top: var(--s4); }
.result-list { list-style: none; padding: 0; display: grid; gap: var(--s3); }

/* ---------- catalog ---------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s4); align-items: flex-end; margin-bottom: var(--s6); }
.filters .field { margin: 0; min-width: 10rem; }
.filters .check { margin: 0 0 .6rem; }

/* ---------- draw page ---------- */
.draw-layout { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: var(--s6); align-items: start; }
.big-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); margin: var(--s5) 0; }
.big-facts > div { border-top: 3px solid var(--ink); padding-top: var(--s3); }
.big-facts dt { color: var(--ink-2); font-size: .9rem; }
.big-facts dd { margin: 0; font: 800 1.55rem/1.15 var(--display); }
.big-facts dd .sub { display: block; font: 400 .92rem var(--body); color: var(--ink-2); margin-top: .25rem; }
.rules-list li { margin-bottom: var(--s2); }
.buy-box { position: sticky; top: var(--s4); }
.stub-tall { border: var(--line); border-radius: 22px; box-shadow: var(--stick); background: var(--honey); padding: var(--s5); border-left-style: solid; }
.stub-tall::before, .stub-tall::after { display: none; }
.buy-price { font-size: 1rem; }
.ok-note { background: var(--mintlight); border: 2px solid var(--ink); border-radius: 10px; padding: var(--s2) var(--s3); }

/* ---------- live room ---------- */
.live-head { display: flex; justify-content: space-between; gap: var(--s5); align-items: flex-start; }
.live-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); margin: var(--s5) 0 var(--s4); }
.live-stats > div { border-top: 3px solid var(--ink); padding-top: var(--s2); }
.ls-label { display: block; color: var(--ink-2); font-size: .9rem; }
.ls-value { display: block; font: 800 2.2rem/1.1 var(--display); font-variant-numeric: tabular-nums; }
.ls-small { font-size: 1.3rem; }
.stage { margin-top: var(--s6); background: var(--ink); color: var(--paper); border-radius: 26px; padding: var(--s6); min-height: 18rem; }
.stage a:not(.btn) { color: var(--honey); }
.stage .mono { color: var(--honey); }
.joke { font-style: italic; opacity: .85; }
.reveal-in { font: 800 1.6rem var(--display); }
.drum { background: var(--honey); border: 3px solid var(--paper); border-radius: 18px; padding: var(--s5); text-align: center; margin: var(--s4) 0; overflow: hidden; }
.drum-window { font: 500 clamp(1.4rem, 4.5vw, 2.6rem) var(--mono); color: var(--ink); letter-spacing: .04em; display: inline-block; }
.winners { list-style: none; padding: 0; display: grid; gap: var(--s3); }
.winners li { background: var(--paper); color: var(--ink); border-radius: 14px; padding: var(--s3) var(--s4); font-weight: 700; }
.winners .mono { color: var(--ink); font-size: 1.2rem; }
.winner-pop { animation: pop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- results & verify ---------- */
.winner-cards { display: flex; flex-wrap: wrap; gap: var(--s5); margin: var(--s5) 0; }
.winner-card { background: var(--honey); border: var(--line); border-radius: 22px; box-shadow: var(--stick); padding: var(--s5); min-width: 16rem; }
.wc-rank { font-weight: 700; margin: 0; }
.wc-id { font-size: 1.5rem; margin: var(--s2) 0; }
.wc-prize { font: 800 1.8rem var(--display); margin: 0 0 var(--s2); }
.proof { display: grid; gap: 0; margin: 0; }
.proof > div { display: grid; grid-template-columns: 15rem 1fr; gap: var(--s4); padding: var(--s3) 0; border-bottom: 1px solid #DDD6F3; }
.proof > div:last-child { border-bottom: 0; }
.proof dt { font-weight: 700; }
.proof dd { margin: 0; }
.verify-head { display: flex; gap: var(--s5); align-items: center; margin-bottom: var(--s5); }
.checks { list-style: none; padding: 0; display: grid; gap: var(--s3); margin-bottom: var(--s5); }
.checks li { border: 2px solid var(--ink); border-radius: 14px; padding: var(--s3) var(--s4); background: var(--white); }
.checks li::before { content: '○ '; font-weight: 800; }
.checks li.pass { background: var(--mintlight); } .checks li.pass::before { content: '✓ '; }
.checks li.fail { background: var(--blush); } .checks li.fail::before { content: '✗ '; }
.checks li.run::before { content: '… '; }
.checks .detail { display: block; font-size: .88rem; margin-top: .3rem; overflow-wrap: anywhere; }
.verify-out { margin: var(--s5) 0; }
.mine { margin-top: var(--s7); }

/* ---------- cart / pay / track ---------- */
.cart-total { margin-top: var(--s5); max-width: 40rem; }
.total { font-size: 1.3rem; }
.pay-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s6); align-items: start; }
.pay-box { background: var(--white); border: var(--line); border-radius: 22px; box-shadow: var(--stick); padding: var(--s5); }
.pay-steps li { margin-bottom: var(--s2); }
.amount { font: 800 1.5rem var(--display); }
.address { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; background: var(--paper); border: 2px dashed var(--ink); border-radius: 12px; padding: var(--s3); font-size: 1.05rem; }
.qr { margin: var(--s4) 0; width: 220px; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; background: #fff; }
.qr svg { display: block; width: 100%; height: auto; }
.ticket-ids { list-style: none; padding: 0; display: grid; gap: var(--s2); }
.ticket-ids .mono { background: var(--honey); border: 2px solid var(--ink); border-radius: 8px; padding: .05rem .45rem; }
.live-status { font-weight: 700; background: var(--mintlight); border: 2px solid var(--ink); border-radius: 12px; padding: var(--s3); }
.demo-wallet { margin-top: var(--s5); border: 2px dashed var(--ink); border-radius: 16px; padding: var(--s4); background: #FFF6D6; }
.demo-buttons { display: flex; flex-wrap: wrap; gap: var(--s2); }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { display: grid; grid-template-columns: 1.6rem 1fr; gap: var(--s3); padding-bottom: var(--s4); position: relative; }
.timeline li::after { content: ''; position: absolute; left: .72rem; top: 1.4rem; bottom: 0; border-left: 2px dashed var(--ink); }
.timeline li:last-child::after { display: none; }
.tl-dot { width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--white); margin-top: .2rem; }
.timeline li.done .tl-dot { background: var(--mint); }
.tl-label { font-weight: 700; margin: 0; }
.tl-time, .tl-detail { margin: 0; font-size: .9rem; color: var(--ink-2); }

/* ---------- auth / account ---------- */
.auth { max-width: 28rem; margin: var(--s6) auto; background: var(--white); border: var(--line); border-radius: 22px; box-shadow: var(--stick); padding: var(--s6); }
.account { display: grid; gap: var(--s5); }
.tabs { display: flex; flex-wrap: wrap; gap: var(--s2); border-bottom: var(--line); padding-bottom: var(--s3); align-items: center; }
.tabs a { padding: .35rem .8rem; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 700; border: 2px solid transparent; }
.tabs a[aria-current] { background: var(--honey); border-color: var(--ink); }
.tabs form { margin-left: auto; }
.checklist { list-style: none; padding: 0; display: grid; gap: var(--s2); }
.checklist li::before { content: '○ '; font-weight: 800; }
.checklist li.ok::before { content: '✓ '; color: #0E7A63; }
.mini-tickets { list-style: none; padding: 0; display: grid; gap: var(--s2); }
.win-row { display: flex; justify-content: space-between; gap: var(--s4); align-items: center; border: 2px solid var(--ink); border-radius: 16px; background: var(--white); padding: var(--s4); margin-bottom: var(--s3); flex-wrap: wrap; }
.msg { border-left: 4px solid var(--lilac); padding-left: var(--s3); margin-bottom: var(--s3); }
.msg-staff { border-left-color: var(--mint); }

/* ---------- prose pages ---------- */
.prose { max-width: 46rem; }
.prose h2 { margin-top: var(--s6); }
.prose li { margin-bottom: var(--s2); }

/* ---------- admin (quieter) ---------- */
.admin-body main { max-width: none; padding-top: var(--s4); }
.admin { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: var(--s6); }
.admin-nav { font-size: .95rem; }
.admin-nav ul { list-style: none; padding: 0; margin: 0 0 var(--s4); }
.admin-nav a { display: block; padding: .28rem .6rem; border-radius: 8px; color: var(--ink); text-decoration: none; }
.admin-nav a[aria-current] { background: var(--ink); color: var(--paper); }
.admin-nav a:hover:not([aria-current]) { background: #E6E0FF; }
.nav-group { font-weight: 700; color: var(--ink-2); margin: var(--s4) 0 var(--s1) .6rem; font-size: .85rem; }
.admin-who { font-size: .88rem; word-break: break-all; }
.warn-link { color: var(--danger); font-weight: 700; }
.admin-main h1 { font-size: 2rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: var(--s3); margin: var(--s4) 0 var(--s6); }
.kpis > div { background: var(--white); border: 2px solid var(--ink); border-radius: 12px; padding: var(--s3) var(--s4); }
.kpis span { display: block; font-size: .85rem; color: var(--ink-2); }
.kpis strong { font: 800 1.4rem var(--display); font-variant-numeric: tabular-nums; }
.attention { list-style: none; padding: 0; display: grid; gap: var(--s2); }
.attention li { background: var(--white); border: 2px solid var(--ink); border-radius: 10px; padding: var(--s2) var(--s3); }
.template-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.draw-wizard fieldset { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 0 var(--s5); }
.draw-wizard fieldset legend { font-family: var(--display); font-size: 1.2rem; }
.sim-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0 var(--s4); }
.sim-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.sim-ok { color: #0E7A63; font-weight: 700; } .sim-bad { color: var(--danger); font-weight: 700; }
.report-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.demo-tools { margin-top: var(--s4); padding: var(--s3); border: 2px dashed var(--ink); border-radius: 12px; background: #FFF6D6; }
.tagline { font-size: .85rem; }

/* ---------- responsive ---------- */
/* ---------- v2: wallet, Open Pot, prize history, signup rules, admin mode ---------- */
.wallet-pill { font: 800 .95rem var(--display); color: var(--ink); text-decoration: none; background: var(--mintlight); border: 2px solid var(--ink); border-radius: 999px; padding: .2em .75em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wallet-pill:hover { background: var(--white); }
.wallet-lock { font: 700 .75rem var(--body); color: var(--ink-2); }
.balance-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: var(--s3); margin: var(--s3) 0 var(--s5); }
.bal { background: var(--white); border: 2px solid var(--ink); border-radius: 16px; padding: var(--s3) var(--s4); display: grid; gap: .1rem; }
.bal span { font-size: .85rem; color: var(--ink-2); font-weight: 700; }
.bal strong { font: 800 1.7rem var(--display); font-variant-numeric: tabular-nums; }
.bal small { font-size: .82rem; color: var(--ink-2); }
.bal-main { background: var(--mintlight); box-shadow: var(--stick); }
.wallet-cols { align-items: start; }
.amt-in { color: #0B6B55; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.amt-out { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tx-short { white-space: nowrap; }
.recovery-codes { columns: 2; font-size: 1.05rem; background: var(--white); border: 2px dashed var(--ink); border-radius: 12px; padding: var(--s3) var(--s5); }
.auth-wide { max-width: 40rem; }
.rules-box { border: 2px solid var(--ink); border-radius: 16px; background: #FFF6D6; padding: var(--s4) var(--s5); margin: var(--s2) 0; }
.rules-box h2 { font-size: 1.2rem; margin-bottom: var(--s2); }
.rules-short { margin: 0 0 var(--s3); padding-left: 1.3rem; display: grid; gap: .35rem; font-size: .93rem; }
.agreements { margin: 0; }
.agreements .check { margin-bottom: var(--s2); }
.pot-sim { background: linear-gradient(180deg, #E5F7FF, var(--white) 55%); }
.sim-controls { display: grid; gap: .3rem; margin: var(--s3) 0; }
.sim-controls label { font-weight: 700; }
.sim-controls output { font: 800 1.1rem var(--display); }
.sim-controls input[type=range] { width: 100%; max-width: 32rem; accent-color: var(--ink); }
.sim-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: var(--s2); margin: 0 0 var(--s3); }
.sim-out > div { border: 2px solid var(--ink); border-radius: 12px; padding: var(--s2) var(--s3); background: var(--white); }
.sim-out dt { font-size: .8rem; color: var(--ink-2); font-weight: 700; }
.sim-out dd { margin: 0; font: 800 1.15rem var(--display); font-variant-numeric: tabular-nums; }
.sim-out .sim-prize { background: var(--honey); grid-column: span 2; }
.sim-out .sim-prize dd { font-size: 1.6rem; }
.prize-history { list-style: none; padding: 0; margin: 0 0 var(--s4); border-left: 3px solid var(--ink); }
.prize-history li { position: relative; padding: 0 0 var(--s3) var(--s4); }
.prize-history li::before { content: ''; position: absolute; left: -.55rem; top: .3rem; width: .8rem; height: .8rem; border-radius: 50%; border: 2px solid var(--ink); background: var(--white); }
.prize-history li.ph-good::before { background: var(--mint); } .prize-history li.ph-warn::before { background: var(--honey); } .prize-history li.ph-bad::before { background: var(--gum); }
.ph-title { font-weight: 700; margin: 0; } .ph-time { font-size: .8rem; color: var(--ink-2); margin: 0; } .ph-detail { font-size: .92rem; margin: .15rem 0 0; }
.kpi-good { background: var(--mintlight) !important; } .kpi-bad { background: var(--blush) !important; }
.pill-mode-demo { background: var(--lilac); } .pill-mode-testnet { background: #BFEAFF; } .pill-mode-mainnet { background: var(--gum); color: var(--ink); }
.mode-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: var(--s3); margin: var(--s3) 0; }
.mode-card { border: 2px solid var(--ink); border-radius: 14px; padding: var(--s3) var(--s4); background: var(--white); }
.mode-card.mode-mainnet { background: #FFF0F5; }
.switch-box { border-top: 2px dashed var(--ink); margin-top: var(--s4); padding-top: var(--s4); }
.readiness { list-style: none; padding: 0; display: grid; gap: var(--s2); }
.readiness li { border: 2px solid var(--ink); border-radius: 10px; padding: var(--s2) var(--s3); background: var(--white); }
.readiness li.ok { background: var(--mintlight); } .readiness li.bad { background: var(--blush); } .readiness li.warn { background: #FFF6D6; }

@media (max-width: 980px) {
  .hero, .draw-layout, .pay-layout, .two-col, .admin { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .buy-box { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .hero-ticket { padding-top: 56px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .site-head { gap: var(--s3); }
  .site-head nav { order: 3; width: 100%; }
  .site-head nav ul { gap: var(--s4); }
  .ticket, .ticket-hero { grid-template-columns: 1fr; }
  .ticket-stub { border-left: 0; border-top: 3px dashed var(--ink); }
  .ticket-stub::before { top: -16px; left: -16px; }
  .ticket-stub::after { top: -16px; bottom: auto; left: auto; right: -16px; }
  .ticket-facts, .big-facts, .four-answers { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .live-stats { grid-template-columns: 1fr 1fr; }
  .proof > div { grid-template-columns: 1fr; gap: var(--s1); }
  .live-head .prizz { display: none; }
  .hero-bear { width: 104px; height: 104px; right: 12%; }
  .hero-ticket { padding-top: 76px; }
  .stage { padding: var(--s5) var(--s4); }
}
/* ---------- emails: sign-up opt-in, Email studio ---------- */
.optin { background: var(--paper); border: 2px dashed var(--ink-2); border-radius: 14px; padding: var(--s3) var(--s4) var(--s1); margin: var(--s2) 0 var(--s3); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; margin: var(--s3) 0; }
.btn-row form { margin: 0; }
.lede-small { font-size: 1.05rem; color: var(--ink-2); max-width: 70ch; }
.studio-tabs { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s5); }
.studio-tabs a { color: var(--ink); text-decoration: none; font-weight: 700; padding: .4rem .95rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); }
.studio-tabs a[aria-current] { background: var(--honey); box-shadow: 2px 2px 0 var(--ink); }
.studio-group { margin-bottom: var(--s6); }
.studio-group h2 { margin-bottom: var(--s1); }
.studio-edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--s6); align-items: start; }
.studio-edit textarea { min-height: 9rem; }
.preview-col { position: sticky; top: var(--s4); }
.preview-col a[aria-current] { font-weight: 800; color: var(--ink); text-decoration: none; border-bottom: 3px solid var(--gum); }
.email-preview { display: block; width: 100%; height: min(80vh, 1100px); border: 2px solid var(--ink); border-radius: 18px; background: var(--paper); box-shadow: var(--stick); transition: width .2s ease; }
.pv-toggle { width: 1.1rem; height: 1.1rem; margin: 0 .4rem var(--s2) 0; vertical-align: middle; accent-color: var(--ink); }
.pv-label { display: inline-block; margin-bottom: var(--s2); font-weight: 700; cursor: pointer; }
.pv-toggle:checked ~ .email-preview { width: 390px; max-width: 100%; margin-inline: auto; border-radius: 28px; }
@media (prefers-reduced-motion: reduce) { .email-preview { transition: none; } }
.vars { margin: var(--s2) 0; }
.vars summary { cursor: pointer; font-weight: 700; }
.vars ul { list-style: none; padding: 0; margin: var(--s2) 0 0; columns: 2; column-gap: var(--s5); }
.vars li { break-inside: avoid; margin-bottom: .3rem; }
.vars code { font-family: var(--mono); font-size: .85rem; background: var(--paper); border: 1px solid var(--lilac); border-radius: 6px; padding: 0 .3em; }
.stack.wide { max-width: none; }
.stack.wide .two-col { gap: var(--s4); align-items: start; }
.engine-run { margin-top: var(--s3); align-items: center; }
.studio-after { margin-top: var(--s4); align-items: start; }
.stack.wide fieldset.panel { margin: 0; }
.tpl-table { table-layout: fixed; }
.tpl-table th:nth-child(1) { width: 23%; }
.tpl-table th:nth-child(2) { width: 45%; }
.tpl-table th:nth-child(3) { width: 12%; }
.tpl-table th:nth-child(4) { width: 12%; }
.tpl-table th:nth-child(5) { width: 8%; }
.tpl-table .pill { white-space: nowrap; }
.pill-always { background: transparent; border-style: dashed; }
.rule-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: var(--s4); }
.rule-grid .rule { margin: 0; padding: var(--s4); }
.rule h3 { font-size: 1.1rem; margin-bottom: var(--s2); }
.rule h3 .check { margin: 0; }
fieldset.panel legend { font: 800 1.05rem var(--display); padding: 0 .4rem; }
.how-sends h3 { margin-top: 0; }
.how-sends ul { margin: 0; padding-left: 1.1rem; display: grid; gap: var(--s1); }
@media (max-width: 900px) { .tpl-table { table-layout: auto; } .studio-edit { grid-template-columns: 1fr; } .preview-col { position: static; } .vars ul { columns: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- 3.0: Web3 hub, notifications, rewards, token ---------- */
.soon { display: inline-block; font: 700 .68rem/1 var(--body); padding: .28em .55em; border-radius: 999px; background: var(--gum); color: var(--ink); border: 2px solid var(--ink); vertical-align: .15em; letter-spacing: .02em; }
.soon-lg { font-size: .85rem; padding: .35em .8em; }
.ticker { font: 700 .5em var(--mono); background: var(--white); border: 2px solid var(--ink); border-radius: 10px; padding: .1em .45em; vertical-align: .35em; }
.kicker-pill { display: inline-block; font-weight: 700; background: var(--mintlight); border: 2px solid var(--ink); border-radius: 999px; padding: .15em .8em; margin-bottom: var(--s3); }

/* bell + dropdown */
.bell-wrap { position: relative; }
.bell { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: var(--line); background: var(--white); box-shadow: 2px 2px 0 var(--ink); }
.bell:hover { background: #fffbea; }
.bell-badge { position: absolute; top: -8px; right: -10px; font-weight: 700; padding: 0 .3em; }
.bell-badge[hidden] { display: none; }
.bell-pop { position: absolute; right: 0; top: calc(100% + 10px); width: min(380px, 92vw); background: var(--white); border: var(--line); border-radius: 18px; box-shadow: var(--stick); z-index: 60; overflow: hidden; }
.bell-pop-head { display: flex; justify-content: space-between; align-items: center; padding: var(--s3) var(--s4); border-bottom: 2px solid var(--ink); background: var(--paper); }
.bell-list { list-style: none; margin: 0; padding: 0; max-height: min(60vh, 420px); overflow-y: auto; }
.bell-list li { border-bottom: 1px solid var(--lilac); }
.bell-list a { display: grid; gap: .1rem; padding: var(--s3) var(--s4); color: var(--ink); text-decoration: none; }
.bell-list a:hover { background: #fffbea; }
.bell-list li.unread a { border-left: 5px solid var(--gum); padding-left: calc(var(--s4) - 5px); background: #FFF7FB; }
.bl-meta { font-size: .78rem; color: var(--ink-2); }
.bl-title { font-weight: 700; line-height: 1.3; }
.bl-amount { font: 500 .85rem var(--mono); }
.bell-empty { padding: var(--s4); color: var(--ink-2); font-size: .92rem; }
.bell-all { display: block; text-align: center; padding: var(--s3); font-weight: 700; background: var(--paper); border-top: 2px solid var(--ink); }
.tab-badge { margin-left: .2em; font-size: .72rem; }
.tab-badge[hidden] { display: none; }

/* toasts (non-blocking alerts) */
.toasts { position: fixed; right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); display: grid; gap: var(--s2); z-index: 80; width: min(360px, calc(100vw - 24px)); pointer-events: none; }
.toast { pointer-events: auto; display: grid; grid-template-columns: 1fr auto auto; gap: var(--s3); align-items: center; background: var(--white); border: var(--line); border-radius: 16px; box-shadow: var(--stick); padding: var(--s3) var(--s4); animation: toast-in .25s ease-out; }
.toast p { margin: 0; line-height: 1.3; }
.toast-kicker { display: block; font-size: .75rem; color: var(--ink-2); }
.toast button { border: 0; background: none; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink); }
.toast-still { animation: none; }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* dashboard */
.dash-head { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.dash-head h1 { margin: 0; }
.dash-head p { margin: 0; }
.dash-actions { margin-left: auto; display: flex; gap: var(--s3); flex-wrap: wrap; }
.attention-list { display: grid; gap: var(--s3); margin: var(--s5) 0; }
.att { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "t c" "x c"; gap: 0 var(--s4); align-items: center; padding: var(--s3) var(--s4); border: var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; background: var(--white); box-shadow: 3px 3px 0 var(--ink); }
.att strong { grid-area: t; }
.att > span:not(.att-cta) { grid-area: x; color: var(--ink-2); font-size: .92rem; }
.att-cta { grid-area: c; font-weight: 700; white-space: nowrap; text-decoration: underline; }
.att-gold { background: #FFF1C2; }
.att-warn { background: var(--blush); }
.att-info { background: var(--white); }
.att-ok { background: var(--mintlight); }
.dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); margin: var(--s5) 0; }
.dash-card { display: grid; align-content: start; gap: .2rem; padding: var(--s4) var(--s5); background: var(--white); border: 2px solid var(--ink); border-radius: 18px; color: var(--ink); text-decoration: none; min-height: 128px; transition: transform .08s; }
.dash-card:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.dc-label { font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.dc-big { font: 800 2rem/1.1 var(--display); }
.dc-big small { font-size: .55em; }
.dc-mid { font-size: 1.15rem; }
.dc-sub { font-size: .85rem; color: var(--ink-2); line-height: 1.35; }
.dc-balance { background: var(--honey); }
.dc-balance .dc-sub, .dc-balance .dc-label { color: var(--ink); }
.dc-alert { background: #FFF1C2; }
.dash-list { list-style: none; padding: 0; margin: 0 0 var(--s4); display: grid; gap: var(--s2); }
.dash-list li { display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: baseline; padding: var(--s2) 0; border-bottom: 1px solid var(--lilac); }
.dash-list li.unread { position: relative; padding-left: 16px; }
.dash-list li.unread a { font-weight: 700; }
.dash-list li.unread::before { content: ''; position: absolute; left: 0; top: calc(var(--s2) + .55em); width: 8px; height: 8px; border-radius: 50%; background: var(--gum); border: 1.5px solid var(--ink); }

/* profile */
.avatar { flex: none; }
.avatar-pick { display: flex; flex-wrap: wrap; gap: var(--s3); border: 0; padding: 0; margin: 0 0 var(--s4); }
.avatar-pick legend { margin-bottom: var(--s2); }
.avatar-opt { position: relative; cursor: pointer; border-radius: 50%; }
.avatar-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.avatar-opt input:checked + svg, .avatar-opt input:checked + span { outline: 4px solid var(--gum); outline-offset: 2px; border-radius: 50%; }
.avatar-opt input:focus-visible + svg, .avatar-opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.avatar-none span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 2px dashed var(--ink-2); font-size: .8rem; }
.public-card { display: flex; gap: var(--s4); align-items: center; background: var(--white); border: var(--line); border-radius: 18px; box-shadow: var(--stick); padding: var(--s4) var(--s5); margin-bottom: var(--s4); }
.public-card p { margin: 0; }
.pc-name { font: 800 1.4rem var(--display); }
.facts-list { display: grid; gap: var(--s2); margin: 0 0 var(--s4); }
.facts-list > div { display: grid; grid-template-columns: 11rem 1fr; gap: var(--s3); padding: var(--s2) 0; border-bottom: 1px solid var(--lilac); }
.facts-list dt { font-weight: 700; }
.facts-list dd { margin: 0; }
.wide-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s6); }

/* settings */
.jump { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin-bottom: var(--s5); font-weight: 700; }
.link-list { list-style: none; padding: 0; display: grid; gap: var(--s2); }
.link-list li { padding: var(--s2) 0; border-bottom: 1px solid var(--lilac); }

/* notification centre */
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s4); }
.chips a { display: inline-flex; gap: .35em; align-items: center; padding: .3rem .8rem; border: 2px solid var(--ink); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; background: var(--white); }
.chips a[aria-current] { background: var(--honey); }
.chips .chip-toggle { margin-left: auto; }
.nt-list { list-style: none; padding: 0; margin: 0 0 var(--s4); display: grid; gap: var(--s3); }
.nt { display: grid; grid-template-columns: auto 1fr; gap: var(--s3); background: var(--white); border: 2px solid var(--ink); border-radius: 16px; padding: var(--s3) var(--s4); }
.nt.unread { border-left: 8px solid var(--gum); box-shadow: 3px 3px 0 var(--ink); }
.nt-pick { padding-top: .2rem; }
.nt-pick input { width: 1.15rem; height: 1.15rem; }
.nt-body p { margin: 0 0 .3rem; }
.nt-meta { font-size: .8rem; color: var(--ink-2); }
.nt-title { font-weight: 700; font-size: 1.05rem; }
.nt.unread .nt-title a { color: var(--ink); }
.nt-text { color: var(--ink-2); }
.nt-amount { font: 500 .95rem var(--mono); }

/* rewards */
.pts { font-weight: 700; white-space: nowrap; }
.pts-in { color: #0B7A63; }
.pts-out { color: var(--danger); }
.pts-pending { color: var(--ink-2); }
.examples { display: grid; gap: var(--s3); margin: 0; }
.examples > div { padding: var(--s3) var(--s4); background: var(--paper); border-radius: 14px; border: 2px solid var(--ink); }
.examples dt { font-weight: 700; }
.examples dd { margin: .2rem 0 0; }
.token-teaser { background: #FFF7FB; }

/* connected wallets */
.w3 { display: grid; gap: var(--s3); }
.w3-links { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.w3-links:empty { display: none; }
.w3-links li { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.w3-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); border: 2px solid var(--ink); flex: none; display: inline-block; }
.w3-dot.bad { background: var(--gum); }
.w3-choose { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s3); }
.w3-wallet img { border-radius: 6px; }
.w3-wallet { display: inline-flex; align-items: center; gap: .5rem; }
.w3-wc.btn-primary img { filter: none; background: var(--white); border-radius: 6px; padding: 1px; }
.w3-alt { margin: var(--s2) 0 var(--s3); }
.w3-alt > summary { cursor: pointer; font-weight: 600; }
.w3-alt[open] > summary { margin-bottom: var(--s2); }
@media (max-width: 560px) { .w3-wc.btn-primary { flex: 1 1 100%; justify-content: center; } }
.kyc-steps ol { padding-left: 1.3rem; display: grid; gap: var(--s2); margin-bottom: var(--s3); }
.w3-step { font-weight: 700; margin-bottom: var(--s2); }
.w3-account { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; padding: var(--s3) var(--s4); background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; margin-bottom: var(--s3); }
.w3-account .linkish { margin-left: auto; }
.w3-form { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: end; margin-bottom: var(--s3); }
.w3-form label { display: grid; gap: .2rem; font-weight: 700; }
.w3-form input, .w3-form select { min-width: 7rem; }
.w3-dest { border: 0; padding: 0; margin: 0; display: flex; gap: var(--s3); flex-wrap: wrap; }
.w3-dest legend { font-weight: 700; margin-bottom: .2rem; }
.w3-dest label { font-weight: 500; display: inline-flex; gap: .3rem; }
.w3-quote dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2) var(--s4); margin: 0 0 var(--s3); padding: var(--s4); border: 2px solid var(--ink); border-radius: 14px; background: var(--white); }
.w3-quote dt { font-size: .8rem; color: var(--ink-2); }
.w3-quote dd { margin: 0; overflow-wrap: anywhere; }
.w3-status { padding: var(--s3) var(--s4); border-radius: 12px; border: 2px solid var(--ink); background: var(--paper); }
.w3-verified { background: var(--mintlight); }
.w3-failed, .w3-cancelled { background: var(--blush); }
.w3-msg.warn { color: var(--danger); font-weight: 600; }
.w3-msg.ok { color: #0B7A63; font-weight: 600; }
.w3-deeplinks { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s3); }

/* checkout and order */
.checkout-form { display: grid; gap: var(--s3); }
.pay-options { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.pay-options legend { margin-bottom: var(--s2); font-family: var(--display); font-size: 1.15rem; }
.pay-opt { display: grid; grid-template-columns: auto 1fr; gap: var(--s3); align-items: start; padding: var(--s3) var(--s4); border: 2px solid var(--ink); border-radius: 14px; background: var(--white); cursor: pointer; }
.pay-opt:has(input:checked) { background: #FFF1C2; box-shadow: 3px 3px 0 var(--ink); }
.pay-opt input { margin-top: .35rem; width: 1.1rem; height: 1.1rem; }
.pay-opt > span { display: grid; gap: .15rem; }
.you-pay { font-size: 1.05rem; }
.pay-method { border: 2px solid var(--ink); border-radius: 16px; background: var(--white); padding: var(--s3) var(--s4); margin-bottom: var(--s3); }
.pay-method[open] { box-shadow: 3px 3px 0 var(--ink); }
.pay-method > summary { cursor: pointer; padding: var(--s2) 0; }
.pay-attempts { display: grid; gap: var(--s2); margin-bottom: var(--s3); }
.pay-attempt { margin: 0; padding: var(--s2) var(--s3); border-radius: 12px; border: 2px solid var(--ink); background: var(--paper); }
.pay-attempt.pay-verified { background: var(--mintlight); }
.pay-attempt.pay-failed { background: var(--blush); }

/* token page */
.token-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.disclaimer p { font-size: 1rem; }
.alloc-bar { display: flex; height: 34px; border: var(--line); border-radius: 999px; overflow: hidden; margin: var(--s3) 0 var(--s4); box-shadow: 3px 3px 0 var(--ink); }
.alloc-bar span { width: var(--w); background: var(--c); border-right: 2px solid var(--ink); }
.alloc-bar span:last-child { border-right: 0; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; background: var(--c); border: 2px solid var(--ink); margin-right: .45em; vertical-align: -2px; }
.total-row td { border-top: 2px solid var(--ink); }
.now-panel { background: var(--mintlight); }
.later-panel { background: var(--paper); border-style: dashed; }
.illustration h3 { margin-top: var(--s5); }

/* admin: countries */
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .2rem var(--s4); max-height: 420px; overflow-y: auto; border: 2px solid var(--ink); border-radius: 14px; padding: var(--s3); background: var(--white); margin-bottom: var(--s3); }
.country-row { display: flex; gap: .4rem; align-items: center; font-size: .92rem; }
.country-row[hidden] { display: none; }
.impact { margin: 0 0 var(--s3); }

@media (max-width: 980px) {
  .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wide-facts { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; padding-bottom: var(--s2); }
  .tabs a { white-space: nowrap; flex: none; }
  .dash-grid { grid-template-columns: 1fr 1fr; gap: var(--s3); }
  .dash-card { padding: var(--s3); min-height: 110px; }
  .dc-big { font-size: 1.6rem; }
  .dash-actions { margin-left: 0; width: 100%; }
  .att { grid-template-columns: 1fr; grid-template-areas: "t" "x" "c"; }
  .facts-list > div { grid-template-columns: 1fr; gap: 0; }
  .w3-quote dl { grid-template-columns: 1fr; }
  .bell-pop { position: fixed; left: 8px; right: 8px; width: auto; top: 64px; }
  .chips .chip-toggle { margin-left: 0; }
  .head-actions { gap: var(--s3); }
}
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } .dash-card { transition: none; } }
.kpis small { display: block; font-size: .8rem; color: var(--ink-2); margin-top: .15rem; line-height: 1.35; }
input[type=search] { font: inherit; color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 12px; padding: .6em .8em; width: 100%; }
.fdv-table td:not(:first-child) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.fdv-table .fdv-row td { border-bottom: 0; padding-bottom: .2rem; }
.fdv-table .fdv-why td { padding-top: 0; color: var(--ink-2); }

/* ===================== 3.1: analytics, affiliates, draw proofs, phones ===================== */
/* Admin menu folds away on phones and tablets */
.nav-check { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.nav-toggle { display: none; }
/* Phone tables: each row is a card, each cell names its column. Nothing pushes the page sideways. */
@media (max-width: 640px) {
  .table-stack { border: 0; background: transparent; overflow: visible; }
  .table-stack table.rt, .table-stack table.rt > tbody, .table-stack table.rt tr, .table-stack table.rt td { display: block; width: 100%; }
  .table-stack table.rt { table-layout: auto; }
  .table-stack table.rt > thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-stack table.rt > caption { display: block; padding: 0 0 var(--s2); }
  .table-stack table.rt tr { background: var(--white); border: 2px solid var(--ink); border-radius: 14px; margin-bottom: var(--s3); padding: var(--s1) var(--s3); }
  .table-stack table.rt td { display: grid; grid-template-columns: minmax(6.5rem, 36%) minmax(0, 1fr); gap: var(--s3); padding: .45rem 0; border-bottom: 1px solid #ECE8FA; overflow-wrap: anywhere; }
  .table-stack table.rt td::before { content: attr(data-label); font-weight: 700; font-size: .84rem; color: var(--ink-2); }
  .table-stack table.rt td[data-label=""] { grid-template-columns: minmax(0, 1fr); }
  .table-stack table.rt td[data-label=""]::before { display: none; }
  .table-stack table.rt td[data-label=""]:empty { display: none; }
  .table-stack table.rt tr td:last-child { border-bottom: 0; }
  .table-stack table.rt td .inline, .table-stack table.rt td form { margin: 0; }
  .tpl-table th:nth-child(n) { width: auto; }
}
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; margin: 0 0 var(--s3); }
  .admin-side .admin-nav { display: none; border: 2px solid var(--ink); border-radius: 14px; background: var(--white); padding: var(--s3); margin-bottom: var(--s4); }
  .nav-check:checked ~ .admin-nav { display: block; }
  .nav-check:focus-visible + .nav-toggle { outline: 3px solid var(--focus); outline-offset: 3px; }
  .admin-nav ul { columns: 2; column-gap: var(--s4); }
  .admin-main h1 { font-size: 1.7rem; }
}
.mono, .break, .proof dd { overflow-wrap: anywhere; }
.pre-wrap { white-space: pre-wrap; }

/* Admin → Analytics */
.an-filters .field { min-width: 9.5rem; flex: 1 1 9.5rem; }
.an-filters > .field:first-child { min-width: 12.5rem; flex-basis: 12.5rem; }
.an-filters input[type=date] { min-width: 0; width: 100%; }
.an-filters .field input, .an-filters .field select { max-width: none; }
.an-range { margin: 0 0 var(--s4); }
.funnel { list-style: none; padding: 0; margin: 0 0 var(--s4); display: grid; gap: var(--s4); }
.fn-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); flex-wrap: wrap; }
.fn-label { font: 700 1.05rem var(--display); }
.fn-count strong { font: 800 1.45rem var(--display); font-variant-numeric: tabular-nums; }
.fn-track { height: 22px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); overflow: hidden; margin: .3rem 0 .25rem; }
.fn-bar { height: 100%; width: var(--w); background: var(--lilac); border-right: 2px solid var(--ink); }
.fn-bar-1 { background: #B9A6FF; } .fn-bar-2 { background: var(--honey); } .fn-bar-3 { background: var(--mint); }
.fn-bar[style*="--w:0%"] { border-right: 0; }
.fn-rate { margin: 0; color: var(--ink-2); }
.an-worst { background: #FFF6D6; border: 2px solid var(--ink); border-radius: 14px; padding: var(--s3) var(--s4); }
.an-left { list-style: none; padding: 0; margin: 0 0 var(--s3); display: grid; gap: var(--s2); }
.an-left li { position: relative; border: 2px solid var(--ink); border-radius: 12px; padding: .5rem .8rem; overflow: hidden; background: var(--white); }
.an-left-bar { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--blush); }
.an-left-text { position: relative; }
.spark { margin: 0 0 var(--s4); }
.spark-head { display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin-bottom: .25rem; }
.spark-svg { display: block; width: 100%; height: 56px; background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; }
.spark-svg .sp-bar { fill: var(--ink); } .spark-svg .sp-none { fill: #E4E0EE; }
.spark-axis { display: flex; justify-content: space-between; margin-top: -.4rem; }
.an-defs summary { font-size: 1.1rem; }

/* Affiliate program */
.aff-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s5); align-items: center; margin-bottom: var(--s6); }
.aff-rule { background: var(--mintlight); border: 2px solid var(--ink); border-radius: 14px; padding: var(--s3) var(--s4); max-width: 60ch; }
.aff-steps li { margin-bottom: var(--s2); }
.aff-example { background: #FFF6D6; }
.aff-form fieldset.panel { margin-bottom: var(--s4); }
.social-row { display: grid; grid-template-columns: minmax(8rem, 12rem) minmax(8rem, 1fr) minmax(10rem, 1.4fr); gap: 0 var(--s3); align-items: end; border: 2px dashed var(--lilac); border-radius: 12px; padding: var(--s3); margin: 0 0 var(--s3); }
.social-row .field { margin-bottom: var(--s2); }
.social-row .field input, .social-row .field select { max-width: none; }
.social-remove { grid-column: 1 / -1; justify-self: start; }
.aff-status { border-width: 2.5px; }
.aff-status-approved { background: var(--mintlight); } .aff-status-info_requested { background: #FFF6D6; } .aff-status-declined { background: var(--blush); }
.aff-thread { list-style: none; padding: 0; margin: var(--s3) 0; display: grid; gap: var(--s2); }
.msg { border: 2px solid var(--ink); border-radius: 12px; padding: var(--s2) var(--s3); background: var(--white); max-width: 46rem; }
.msg p { margin: 0 0 .2rem; } .msg-staff { background: #F1ECFF; } .msg-applicant { margin-left: auto; background: var(--white); }
.aff-link-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-bottom: var(--s3); }
.aff-url, .aff-code { background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; padding: .35rem .6rem; font-size: 1rem; overflow-wrap: anywhere; }
.aff-code { font-size: 1.2rem; letter-spacing: .06em; }
.aff-qr svg { width: 180px; height: 180px; border: 2px solid var(--ink); border-radius: 12px; }
.review-actions { align-items: start; }
.ref-log { margin: .3rem 0 0; padding-left: 1.1rem; }

/* Draw proofs */
.proof-panel h2 { margin-bottom: var(--s2); }
.proof-steps { list-style: none; padding: 0; margin: var(--s3) 0; display: grid; gap: var(--s2); }
.proof-steps li { border: 2px solid var(--ink); border-radius: 12px; padding: var(--s2) var(--s3); background: var(--white); }
.proof-steps li p { margin: 0 0 .25rem; }
.proof-steps .ps-done { background: var(--mintlight); } .proof-steps .ps-wait { background: #FFF6D6; } .proof-steps .ps-todo { background: var(--paper); border-style: dashed; }
.ps-title { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.sim-note { margin: var(--s2) 0 var(--s3); }
.ok-note { color: #0C6B57; font-weight: 600; }
.proof-panel pre.code { max-height: 22rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.mine-out { font-weight: 600; margin-top: var(--s2); }

/* Orders on phones: wallet-app hand-off, payments on their way */
.inapp-note { background: var(--mintlight); }
.inflight { background: var(--mintlight); margin: var(--s2) 0 var(--s4); }
.app-pay { margin: var(--s3) 0 var(--s1); }
.app-pay-help, .handoff-help { margin-top: var(--s1); }
.free-tix select { max-width: 20rem; }
.resume-note a { font-weight: 700; }
.w3-deeplinks { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s2) 0; }

@media (max-width: 640px) {
  .aff-hero { grid-template-columns: 1fr; }
  .aff-hero .prizz { display: none; }
  .social-row { grid-template-columns: 1fr; }
  .msg-applicant { margin-left: var(--s4); }
  .fn-count strong { font-size: 1.25rem; }
  .an-filters { gap: var(--s3); }
  .an-filters .field { flex-basis: 40%; min-width: 0; }
  .an-filters > .field:first-child { flex-basis: 100%; min-width: 0; }
  .verify-head .prizz { display: none; }
  .aff-url { flex: 1 1 100%; font-size: .9rem; }
  .admin-nav ul { columns: 1; }
  .proof-steps li { padding: var(--s2); }
  .w3-deeplinks .btn { flex: 1 1 100%; }
  .btn-row .btn { flex: 1 1 auto; }
}

/* ---------- 4.0: one account menu on every page (players and staff) ---------- */
.signin-link { color: var(--ink); font-weight: 700; text-decoration: none; }
.signin-link:hover { text-decoration: underline; }
.acct-menu { position: relative; }
.acct-menu > summary { list-style: none; cursor: pointer; user-select: none; }
.acct-menu > summary::-webkit-details-marker { display: none; }
.acct-btn .avatar { margin: -.2em 0; }
.acct-btn .caret { width: 0; height: 0; border-left: .3em solid transparent; border-right: .3em solid transparent; border-top: .38em solid currentColor; margin-left: .1em; transition: transform .15s; }
.acct-menu[open] .caret { transform: rotate(180deg); }
.acct-pop { position: absolute; right: 0; top: calc(100% + .5rem); z-index: 40; min-width: 15rem; max-width: min(20rem, calc(100vw - 1.5rem)); background: var(--white); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); padding: var(--s3); }
.acct-who { margin: 0 0 var(--s2); padding-bottom: var(--s2); border-bottom: 1px solid #ECE8FA; display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
.acct-email { font-weight: 700; overflow-wrap: anywhere; font-size: .9rem; }
.acct-pop ul { list-style: none; margin: 0; padding: 0; }
.acct-pop li a { display: block; padding: .45rem .5rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.acct-pop li a:hover, .acct-pop li a[aria-current] { background: var(--lilac); }
.acct-pop form { margin: var(--s2) 0 0; padding-top: var(--s2); border-top: 1px solid #ECE8FA; }
.acct-pop .signout { display: block; width: 100%; text-align: left; padding: .45rem .5rem; font-weight: 700; color: var(--danger); text-decoration: none; }
.auth-alt { margin-top: var(--s5); }
.admin-account { margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid #ECE8FA; }
.admin-account form { margin: 0; }
.admin-account .linkish { font-weight: 700; padding: .3rem .75rem; }
@media (max-width: 640px) {
  .acct-pop { min-width: 0; width: min(20rem, calc(100vw - 1.5rem)); }
  .head-actions .btn-primary { padding: .35em .7em; }
}
/* ---------- 4.0: discount codes in the cart ---------- */
.discount-box { border: 2px dashed var(--ink); border-radius: 14px; padding: var(--s3) var(--s4); margin: var(--s3) 0; background: var(--white); }
.discount-box label { font-weight: 700; display: block; margin-bottom: .35rem; }
.discount-row { display: flex; gap: var(--s2); flex-wrap: wrap; }
.discount-row input { flex: 1 1 10rem; min-width: 0; font: inherit; text-transform: uppercase; letter-spacing: .04em; border: 2px solid var(--ink); border-radius: 12px; padding: .5em .7em; }
.discount-box p { margin: 0 0 .35rem; }
.discount-ok { border-style: solid; background: var(--mintlight); }
.discount-warn { background: #FFF6D6; }
.discount-amount { font: 800 1.15rem var(--display); }
.discount-box form { margin: 0; }
.narrow-wide { max-width: 44rem; }
.inline-num, .check .inline-num { width: 5.5rem; height: auto; display: inline-block; padding: .2em .4em; margin: 0 .25rem; font: inherit; border: 2px solid var(--ink); border-radius: 8px; background: var(--white); }
.cap-form { display: flex; align-items: flex-end; gap: var(--s3); flex-wrap: wrap; }
.cap-form .field { margin: 0; max-width: 18rem; }

/* ---------- Wallet Partners (4.0) ---------- */
.brand-tag { font: 700 .78rem var(--body); letter-spacing: 0; padding: .15em .6em; border: 2px solid var(--ink); border-radius: 999px; background: var(--mintlight); margin-left: .15rem; align-self: center; }
.partner-head nav a[aria-current] { border-bottom-color: var(--mint); }
.program-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s3) var(--s5); flex-wrap: wrap; border: 2px solid var(--ink); border-radius: 16px; background: var(--mintlight); padding: var(--s2) var(--s4); margin: 0 0 var(--s5); }
.program-links { display: flex; align-items: center; gap: var(--s2) var(--s4); flex-wrap: wrap; min-width: 0; }
.program-name { font: 800 1rem var(--display); }
.program-bar ul { display: flex; gap: var(--s4); list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.program-bar ul a { color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 3px solid transparent; padding: .2rem 0; }
.program-bar ul a:hover, .program-bar ul a[aria-current] { border-bottom-color: var(--mint); }
.program-actions { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.h-small { font-size: 1.15rem; margin-top: var(--s5); }
.field-error { color: var(--danger); font-weight: 600; margin: 0 0 var(--s3); }
.field-label { font-weight: 700; margin: var(--s3) 0 var(--s2); }
.code-input { width: 6.5rem !important; }

/* the partner header's account button, and grid columns that may shrink (long links, selects, code) */
.acct-initial { display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 999px; background: var(--mintlight); border: 2px solid var(--ink); font-size: .75rem; font-weight: 800; margin: -.2em 0; }
.acct-label { max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin > *, .docs > *, .wp-hero > *, .wp-split > *, .wp-editor > *, .wp-funnel > *, .wp-pay-grid > *, .two-col > * { min-width: 0; }
.partner-app a, .docs-body p, .wp-doc { overflow-wrap: anywhere; }
.wp-demo-panel[hidden] { display: none; }

/* the program page */
.wp-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--s7); align-items: start; margin: var(--s4) 0 var(--s8); }
.wp-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 16ch; }
.wp-kicker { display: inline-block; font-weight: 700; color: var(--ink-2); border-bottom: 3px solid var(--mint); margin-bottom: var(--s4); }
.wp-demo { display: grid; gap: var(--s3); justify-items: center; }
.wp-demo-tabs { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: center; }
.wp-demo-tabs button { font: 700 .88rem var(--body); color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: .35rem .8rem; cursor: pointer; }
.wp-demo-tabs button[aria-selected="true"] { background: var(--honey); box-shadow: 2px 2px 0 var(--ink); }
.wp-demo-panel { display: grid; justify-items: center; gap: var(--s2); }
.wp-demo-note { max-width: 22rem; text-align: center; color: var(--ink-2); min-height: 3em; }
.wp-section { margin: var(--s8) 0; }
.wp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--s4); }
.wp-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); margin: var(--s7) 0; }
.wp-steps, .docs-steps { padding-left: 1.3rem; display: grid; gap: var(--s3); }
.wp-checks { list-style: none; padding: 0; display: grid; gap: var(--s3); }
.wp-checks li { padding-left: 1.9rem; position: relative; }
.wp-checks li::before { content: ''; position: absolute; left: 0; top: .2rem; width: 1.2rem; height: 1.2rem; border: 2px solid var(--ink); border-radius: 6px; background: var(--mintlight) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%2324153F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }
.wp-fee { background: var(--white); border: var(--line); border-radius: 22px; box-shadow: var(--stick); padding: var(--s6); }
.wp-flow { counter-reset: flow; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: var(--s3); }
.wp-flow li { counter-increment: flow; border: 2px solid var(--ink); border-radius: 14px; background: var(--white); padding: var(--s3) var(--s4); }
.wp-flow li::before { content: counter(flow); display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--honey); font: 800 1rem var(--display); margin-bottom: var(--s2); }
.wp-sample { display: flex; flex-wrap: wrap; gap: var(--s6); justify-content: center; margin: var(--s5) 0 var(--s6); }

/* the phone preview (a fictional wallet) */
.pz-phone { --pz-accent: #5B3FD6; width: 18.5rem; margin: 0; }
.pz-phone figcaption { font-size: .88rem; color: var(--ink-2); text-align: center; margin-top: var(--s2); max-width: 18.5rem; }
.pz-screen { border: 3px solid var(--ink); border-radius: 34px; background: #F7F6FB; box-shadow: var(--stick); overflow: hidden; min-height: 33rem; display: flex; flex-direction: column; }
.pz-status { display: flex; justify-content: space-between; font: 600 .75rem var(--body); padding: .55rem 1.2rem .2rem; color: #F3F0FF; background: #1F2430; }
.pz-wallet { background: #1F2430; color: #F3F0FF; padding: .4rem 1.2rem 1rem; }
.pz-wname { font: 700 .85rem var(--body); margin: 0; opacity: .8; }
.pz-balance { font: 800 1.7rem var(--display); margin: .1rem 0 .6rem; }
.pz-balance small { font-size: .8rem; font-weight: 600; opacity: .8; }
.pz-actions { display: flex; gap: .4rem; }
.pz-actions span { flex: 1; text-align: center; font: 600 .72rem var(--body); padding: .35rem 0; border-radius: 10px; background: rgba(255,255,255,.12); }
.pz-slot { padding: .9rem .9rem 1rem; flex: 1; }
.pz-slot-title { font: 800 1rem var(--display); margin: 0 0 .5rem; display: grid; }
.pz-slot-title small { font: 500 .74rem var(--body); color: #5B5770; }
.pz-card { background: #fff; border: 1.5px solid #D9D5E8; border-left: 5px solid var(--pz-accent); border-radius: 14px; padding: .7rem .8rem; display: grid; gap: .25rem; }
.pz-format { font: 600 .68rem var(--body); color: #5B5770; margin: 0; }
.pz-title { font: 800 .98rem var(--display); margin: 0; letter-spacing: -.01em; }
.pz-prize { font: 800 1.25rem var(--display); margin: 0; color: var(--pz-accent); display: flex; gap: .35rem; align-items: baseline; flex-wrap: wrap; }
.pz-prize span { font: 600 .7rem var(--body); color: #5B5770; }
.pz-meta { display: flex; flex-wrap: wrap; gap: .25rem .8rem; margin: 0; }
.pz-meta div { display: grid; }
.pz-meta dt { font: 500 .64rem var(--body); color: #5B5770; }
.pz-meta dd { margin: 0; font: 700 .78rem var(--body); font-variant-numeric: tabular-nums; }
.pz-cta { justify-self: start; margin-top: .25rem; font: 700 .78rem var(--body); color: #fff; background: var(--pz-accent); border-radius: 999px; padding: .32rem .85rem; }
.pz-big .pz-prize { font-size: 1.6rem; }
.pz-big { padding: .9rem 1rem; }
.pz-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: .55rem; overflow-x: auto; padding-bottom: .3rem; scroll-snap-type: x mandatory; }
.pz-carousel .pz-card { scroll-snap-align: start; }
.pz-list { display: grid; gap: .45rem; }
.pz-row { grid-template-columns: 1fr auto; align-items: center; }
.pz-row .pz-format, .pz-row .pz-meta { grid-column: 1; }
.pz-row .pz-prize { font-size: 1rem; }
.pz-row .pz-cta { grid-column: 2; grid-row: 1 / span 4; align-self: center; margin: 0; }
.pz-announce { position: relative; }
.pz-x { position: absolute; top: .35rem; right: .45rem; width: 1.6rem; height: 1.6rem; border-radius: 999px; border: 1.5px solid #D9D5E8; background: #fff; font-size: 1rem; line-height: 1; cursor: default; color: #1F2430; }
.pz-empty { font: 600 .85rem var(--body); text-align: center; padding: 1.2rem .5rem; border: 1.5px dashed #C9C4DB; border-radius: 14px; color: #5B5770; }
.pz-hidden { font: 500 .78rem var(--body); text-align: center; color: #8A85A0; padding: 1.2rem .5rem; }
.pz-by { font: 500 .66rem var(--body); color: #8A85A0; margin: .6rem 0 0; text-align: center; }
.pz-dark .pz-screen { background: #12151C; }
.pz-dark .pz-card { background: #1F2430; border-color: #343A4A; color: #F3F0FF; border-left-color: var(--pz-accent); }
.pz-dark .pz-format, .pz-dark .pz-meta dt, .pz-dark .pz-prize span, .pz-dark .pz-slot-title small { color: #A9A4C0; }
.pz-dark .pz-slot-title { color: #F3F0FF; }
.pz-dark .pz-x { background: #1F2430; border-color: #343A4A; color: #F3F0FF; }
/* 4.1: the sample wallet's number picker (a static picture of its bottom sheet) */
.pz-has-sheet { position: relative; background: #5d6070; }
.pz-sheet { background: #fff; border-radius: 20px 20px 0 0; margin-top: auto; padding: .8rem .8rem 1rem; display: grid; gap: .4rem; }
.pz-sheet-title { font: 800 1.05rem var(--display); color: var(--pz-accent); margin: 0; }
.pz-sheet-status { font: 700 .78rem var(--body); margin: 0; }
.pz-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .25rem; }
.pz-num { aspect-ratio: 1; display: grid; place-items: center; border-radius: 999px; border: 1.5px solid #D9D5E8; font: 700 .66rem var(--body); font-variant-numeric: tabular-nums; }
.pz-num.on { background: var(--pz-accent); border-color: var(--pz-accent); color: #fff; }
.pz-sheet-line { margin: 0; font: 600 .72rem var(--mono, ui-monospace, monospace); background: #F7F6FB; border-radius: 8px; padding: .3rem .5rem; }
.pz-cta-wide { justify-self: stretch; text-align: center; padding: .5rem .85rem; }

/* docs */
.docs { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: var(--s7); align-items: start; }
.docs-toc { position: sticky; top: var(--s4); font-size: .92rem; }
.docs-toc ul { list-style: none; padding: 0; margin: 0 0 var(--s4); display: grid; gap: .15rem; }
.docs-toc a { color: var(--ink); text-decoration: none; display: block; padding: .2rem .6rem; border-radius: 8px; }
.docs-toc a:hover { background: #E6E0FF; }
.docs-body { max-width: 52rem; }
.docs-body h2 { margin-top: var(--s7); scroll-margin-top: var(--s4); }
.docs-body h3 { scroll-margin-top: var(--s4); }
.docs-body code { font-family: var(--mono); font-size: .88em; background: #EAE5FF; padding: .05em .3em; border-radius: 5px; }
.docs-body pre.code code { background: none; padding: 0; font-size: inherit; color: inherit; white-space: pre; }
.docs-op { border-top: 2px solid var(--ink); padding-top: var(--s3); margin-top: var(--s5); }
.docs-method { font: 800 .8rem var(--mono); padding: .15em .5em; border: 2px solid var(--ink); border-radius: 6px; vertical-align: middle; }
.docs-get { background: var(--mintlight); } .docs-post { background: var(--honey); }
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.3rem; margin-top: var(--s5); }

/* company workspace */
.partner-app .admin-who strong { font-size: 1rem; }
.wp-progress { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; margin: var(--s3) 0 var(--s5); }
.wp-progress li { font: 600 .85rem var(--body); padding: .35rem .8rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); }
.wp-progress li.done { background: var(--mintlight); }
.wp-progress li.now { background: var(--honey); box-shadow: 2px 2px 0 var(--ink); }
.wp-progress li.todo { border-style: dashed; color: var(--ink-2); }
.wp-ready { list-style: none; padding: 0; display: grid; gap: var(--s2); }
.wp-ready li { padding-left: 1.8rem; position: relative; }
.wp-ready li::before { position: absolute; left: 0; top: .05rem; font-weight: 800; width: 1.3rem; height: 1.3rem; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 999px; font-size: .75rem; }
.wp-ready li.ok::before { content: '✓'; background: var(--mintlight); }
.wp-ready li.todo::before { content: ''; background: var(--white); border-style: dashed; }
.wp-app .panel { margin-bottom: var(--s4); }
.wp-listing { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: var(--s3); }
.wp-listing .field { margin-bottom: var(--s2); }
.wp-markets { max-height: 15rem; overflow: auto; border: 2px solid var(--ink); border-radius: 12px; background: var(--white); padding: var(--s2) var(--s3); columns: 2 13rem; }
.wp-markets.short { max-height: 11rem; }
.wp-markets .check { break-inside: avoid; margin-bottom: .35rem; }
.wp-filter { margin-bottom: var(--s2); max-width: 20rem !important; }
.wp-contact { border-top: 1px solid #DDD6F3; padding-top: var(--s3); margin-top: var(--s3); }
.wp-upload { display: grid; gap: var(--s2); max-width: 34rem; }
.wp-app-actions { position: sticky; bottom: 0; background: var(--paper); padding: var(--s3) 0; border-top: 2px solid var(--ink); }
.wp-editor { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--s6); align-items: start; }
.wp-preview-col { position: sticky; top: var(--s4); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); justify-items: start; }
.wp-preview-col > * { min-width: 0; max-width: 100%; }
.wp-preview-col .panel { width: 100%; padding: var(--s4); margin: 0; }
.wp-draws { list-style: none; padding: 0; margin: 0 0 var(--s4); display: grid; gap: var(--s2); }
.wp-draws li { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr) auto auto; gap: var(--s3); align-items: center; border: 2px solid var(--ink); border-radius: 12px; background: var(--white); padding: var(--s2) var(--s3); }
.wp-draws li .check { margin: 0; }
.wp-pos input { width: 3.6rem; padding: .35em .4em; }
.wp-move { display: flex; gap: .3rem; }
.wp-secret code { font-size: 1rem; background: var(--white); border: 2px solid var(--ink); border-radius: 8px; padding: .35rem .5rem; display: inline-block; }
.wp-funnel { display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--s4); }
.wp-src { font-weight: 700; margin: 0; }
.wp-funnel .kpis { margin-top: var(--s2); }
.wp-filters { margin-bottom: var(--s4); }
.wp-invoice-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s3); }
.wp-pay-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s5); align-items: start; }
.wp-addr { font-size: 1rem; }
.wp-checklist { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: var(--s3); margin-bottom: var(--s5); }
.wp-check-item { border: 2px solid var(--ink); border-radius: 14px; background: var(--white); padding: var(--s3) var(--s4); }
.wp-check-item h3 { font-size: 1.05rem; }
.inline-radios { display: flex; gap: var(--s4); border: 0; padding: 0; margin: 0; }
.wp-thread { list-style: none; padding: 0; display: grid; gap: var(--s3); }
.wp-thread li { border: 2px solid var(--ink); border-radius: 14px; padding: var(--s3) var(--s4); background: var(--white); max-width: 44rem; }
.wp-thread li.from-us { background: var(--mintlight); margin-left: var(--s6); }
.wp-thread li p:last-child { margin: 0; white-space: pre-wrap; }

/* invoice and receipt documents */
.doc-body main { max-width: 52rem; }
.wp-doc { background: var(--white); border: var(--line); border-radius: 18px; padding: var(--s6); }
.wp-doc-head { display: flex; justify-content: space-between; gap: var(--s5); border-bottom: 2px solid var(--ink); padding-bottom: var(--s4); margin-bottom: var(--s5); }
.brand-doc { font: 800 1.4rem var(--display); margin: 0; }
.wp-doc-id { text-align: right; }
.wp-doc-id h1 { font-size: 1.8rem; margin: 0; }
.wp-doc-id p { margin: 0; }
.wp-doc-lines { margin: var(--s5) 0; border: 2px solid var(--ink); }
.wp-paid { display: inline-block; border: 2px solid var(--ink); border-radius: 10px; padding: .3rem .8rem; background: var(--mintlight); }
.wp-doc-lines { table-layout: fixed; }
.wp-doc-lines th:last-child, .wp-doc-lines td:last-child { width: 9.5rem; }
.wp-doc-lines .num { text-align: right; white-space: nowrap; }
@media print {
  .site-head, .site-foot, .demo-banner, .no-print, .skip, .flash { display: none !important; }
  body, main { background: #fff; padding: 0; }
  .wp-doc { border: 0; padding: 0; }
}

/* hosted checkout entry */
.go-wrap { max-width: 40rem; margin: var(--s5) auto; }
.go-from { display: inline-block; border: 2px solid var(--ink); border-radius: 999px; padding: .3rem .9rem; background: var(--mintlight); font-weight: 600; }
.go-picks { list-style: none; margin: 0; padding: 0; font-variant-numeric: tabular-nums; }
.go-picks li + li { margin-top: .15rem; }
.partner-return .btn { margin-left: var(--s2); }

@media (max-width: 900px) {
  .wp-hero, .wp-split, .docs, .wp-editor, .wp-funnel { grid-template-columns: minmax(0, 1fr); }
  .docs-toc { position: static; }
  .wp-preview-col { position: static; justify-items: center; }
  .wp-pay-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .program-bar { padding: var(--s2) var(--s3); gap: var(--s2); }
  .program-name { display: none; }
  .program-bar ul { gap: var(--s1) var(--s4); }
  .program-actions { width: 100%; justify-content: space-between; flex-wrap: nowrap; gap: var(--s2); }
  .program-actions .signin-link { font-size: .92rem; white-space: nowrap; }
  .program-actions .btn { font-size: .9rem; white-space: nowrap; }
  .wp-listing { grid-template-columns: 1fr; gap: 0; }
  .wp-draws li { grid-template-columns: 3.8rem minmax(0, 1fr); }
  .wp-draws li .wp-move, .wp-draws li .check { grid-column: 2; }
  .wp-thread li.from-us { margin-left: var(--s4); }
  .pz-phone { width: min(18.5rem, 100%); }
  .wp-doc { padding: var(--s4); }
  .wp-doc-head { flex-direction: column; }
  .wp-doc-id { text-align: left; }
  .brand-tag { display: none; }
}

/* ---------- 4.1: Daily Draws and Pick Your Numbers ---------- */
/* Each game has its own ball colour. Numbers sit on a white disc, like real lottery balls, so they stay
   readable on every colour. */
.g-mint { --ball: #0FA37F; --glow: #7CF5CF; --tint: #E3FAF3; --deep: #05392B; }
.g-violet { --ball: #6A3FE0; --glow: #B9A3FF; --tint: #EEE8FF; --deep: #1E0B57; }
.g-gold { --ball: #E2A400; --glow: #FFE08A; --tint: #FFF4D1; --deep: #3D2A00; }
.g-coral { --ball: #F25F5C; --glow: #FFB4A9; --tint: #FFE7E4; --deep: #4A0E0D; }
.g-ocean { --ball: #1F7AE0; --glow: #9CCBFF; --tint: #E3F0FF; --deep: #082A52; }
.ball { --size: 2.6rem; display: inline-grid; place-items: center; width: var(--size); height: var(--size); flex: none; border-radius: 50%; border: 2.5px solid var(--ink);
  background: radial-gradient(circle at 50% 52%, #fff 0 43%, transparent 44%), radial-gradient(circle at 34% 28%, var(--glow, #FFE08A) 0, var(--ball, var(--honey)) 64%, color-mix(in srgb, var(--ball, var(--honey)) 70%, #000) 100%);
  color: var(--ink); font: 800 calc(var(--size) * .4)/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; box-shadow: 2px 2px 0 var(--ink); }
.ball.is-off { background: var(--white); color: var(--ink-2); border-style: dashed; box-shadow: none; }
.ball-sm { --size: 2rem; border-width: 2px; box-shadow: 1px 1px 0 var(--ink); }
.ball-lg { --size: 3.3rem; }
.ball-xl { --size: clamp(3.1rem, 8.5vw, 4.4rem); border-width: 3px; }
.balls { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin: 0; padding: 0; list-style: none; }
.balls-tight { gap: .3rem; }
.big-ball { --size: 4.4rem; }
.game-badge { display: inline-flex; align-items: center; gap: .55rem; font: 800 1.05rem var(--display); }
.game-badge .ball { --size: 2.2rem; }

/* Family switcher shared by /draws, /daily, /numbers and the results list */
.family-tabs { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s5); padding: 0; list-style: none; }
.family-tabs a { display: inline-block; color: var(--ink); text-decoration: none; font-weight: 700; padding: .4rem 1rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); }
.family-tabs a[aria-current] { background: var(--honey); box-shadow: 2px 2px 0 var(--ink); }

/* Game cards: a playslip with the game's colour band (homepage, /numbers) */
.game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: var(--s5); }
.game-card { background: var(--white); border: var(--line); border-radius: 22px; box-shadow: var(--stick); overflow: hidden; display: flex; flex-direction: column; }
.game-card-band { background: var(--tint); border-bottom: 2.5px solid var(--ink); padding: var(--s4) var(--s5); display: flex; align-items: center; gap: var(--s3); position: relative; }
.game-card-band::after { content: ''; position: absolute; inset: auto 0 -2px 0; height: 10px; background: radial-gradient(circle at 6px 10px, var(--paper) 5px, transparent 5.5px) 0 0 / 22px 10px repeat-x; }
.game-card-band h3 { margin: 0; font-size: 1.5rem; }
.game-card-band h3 a { color: var(--ink); text-decoration: none; }
.game-card-band .tag { margin-left: auto; font-size: .8rem; font-weight: 700; border: 2px solid var(--ink); border-radius: 999px; padding: .05rem .6rem; background: var(--white); }
.game-card-body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); flex: 1; }
.game-card-jackpot { margin: 0; }
.game-card-jackpot > strong { display: block; font: 800 clamp(1.9rem, 3.8vw, 2.5rem)/1 var(--display); letter-spacing: -.03em; }
.game-card-jackpot > span { font-size: .88rem; color: var(--ink-2); }
.game-facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2) var(--s4); margin: 0; }
.game-facts dt { font-size: .78rem; color: var(--ink-2); }
.game-facts dd { margin: 0; font-weight: 650; font-size: .95rem; line-height: 1.3; }
.game-card .btn { margin-top: auto; }
.mbw { display: inline-block; background: var(--gum); border: 2px solid var(--ink); border-radius: 8px; padding: 0 .45rem; font-weight: 800; font-size: .8rem; transform: rotate(-2deg); }

/* The game page: selector + side panel */
.game-hero { background: var(--tint); border: var(--line); border-radius: 26px; box-shadow: var(--stick); padding: var(--s5) var(--s6); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s5); align-items: center; margin-bottom: var(--s6); }
.game-hero h1 { margin: 0 0 var(--s2); }
.game-hero .lede { margin: 0 0 var(--s3); }
.jackpot-box { background: var(--white); border: var(--line); border-radius: 18px; padding: var(--s4) var(--s5); }
.jackpot-box .label { font-weight: 700; font-size: .85rem; color: var(--ink-2); margin: 0; }
.jackpot-box .amount { font: 800 clamp(2.3rem, 5vw, 3.4rem)/1.02 var(--display); letter-spacing: -.035em; margin: .15rem 0 .3rem; }
.jackpot-box .note { font-size: .85rem; color: var(--ink-2); margin: 0; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: var(--s6); align-items: start; }
.selector { background: var(--white); border: var(--line); border-radius: 22px; padding: var(--s5); }
.selector-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s2) var(--s4); margin-bottom: var(--s4); }
.selector-head h2 { margin: 0; }
.pick-count { font-weight: 700; }
.pick-count[data-full] { color: var(--deep); }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(2.85rem, 1fr)); gap: .55rem; margin: 0 0 var(--s4); }
.pick-ball { aspect-ratio: 1; width: 100%; min-height: 2.75rem; border-radius: 50%; border: 2px solid var(--ink); background: var(--white); color: var(--ink); font: 750 1.05rem var(--display); font-variant-numeric: tabular-nums; cursor: pointer; padding: 0; display: grid; place-items: center; transition: transform .12s ease; }
.pick-ball:hover { background: var(--tint); }
.pick-ball[aria-pressed="true"] { background: radial-gradient(circle at 50% 52%, #fff 0 40%, transparent 41%), radial-gradient(circle at 34% 28%, var(--glow) 0, var(--ball) 64%); border-width: 2.5px; box-shadow: 2px 2px 0 var(--ink); transform: scale(1.06); }
.pick-ball:disabled { opacity: .38; cursor: not-allowed; }
.pick-ball.pop { animation: pick-pop .28s ease; }
@keyframes pick-pop { 0% { transform: scale(.82); } 60% { transform: scale(1.16); } 100% { transform: scale(1.06); } }
.pick-tools { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.lines { list-style: none; padding: 0; margin: var(--s4) 0 0; display: grid; gap: var(--s2); }
.line { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; border: 2px solid var(--ink); border-radius: 14px; padding: .5rem .75rem; background: var(--paper); }
.line[aria-current="true"] { background: var(--tint); box-shadow: 2px 2px 0 var(--ink); }
.line-name { font: 800 1rem var(--display); min-width: 4.6rem; }
.line .balls { flex: 1; min-width: 0; }
.line .slot-empty { --size: 2rem; display: inline-block; width: var(--size); height: var(--size); border-radius: 50%; border: 2px dashed var(--ink-2); }
.line-actions { display: flex; gap: var(--s2); margin-left: auto; }
.qp { font-size: .72rem; font-weight: 800; border: 1.5px solid var(--ink); border-radius: 6px; padding: 0 .3rem; background: var(--honey); }
.buy-bar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; justify-content: space-between; margin-top: var(--s4); padding: var(--s3) var(--s4); background: var(--ink); color: var(--white); border-radius: 16px; }
.buy-bar strong { font: 800 1.2rem var(--display); }
.buy-bar .btn { box-shadow: 2px 2px 0 var(--honey); }
.side-stack { display: grid; gap: var(--s5); }
.tier-table td:first-child, .tier-table th:first-child { white-space: nowrap; }
.tier-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.est { font-size: .78rem; font-weight: 700; color: var(--ink-2); border: 1.5px dashed var(--ink-2); border-radius: 6px; padding: 0 .3rem; white-space: nowrap; }
.funded { font-size: .78rem; font-weight: 700; border: 1.5px solid var(--ink); border-radius: 6px; padding: 0 .3rem; background: var(--mintlight); white-space: nowrap; }

/* Review before paying */
.slip { background: var(--white); border: var(--line); border-radius: 24px; box-shadow: var(--stick); padding: var(--s5) var(--s6); max-width: 54rem; }
.slip-head { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; justify-content: space-between; border-bottom: 3px dashed var(--ink); padding-bottom: var(--s4); margin-bottom: var(--s4); }
.slip-lines { list-style: none; padding: 0; margin: 0 0 var(--s4); display: grid; gap: var(--s2); }
.slip-lines li { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.slip-total { display: flex; justify-content: space-between; align-items: baseline; font: 800 1.35rem var(--display); border-top: 2px solid var(--ink); padding-top: var(--s3); margin-top: var(--s3); }
.slip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); margin: var(--s4) 0; }
.slip-grid > div { border: 2px solid var(--ink); border-radius: 14px; padding: var(--s3) var(--s4); background: var(--paper); }
.slip-grid h3 { font-size: 1rem; margin-bottom: var(--s2); }
.slip-grid p { margin: 0; }

/* The live draw: a lottery machine on a dark stage */
.stage41 { --glow: #FFE08A; position: relative; isolation: isolate; color: var(--white); background: var(--ink); background: radial-gradient(130% 85% at 50% -5%, color-mix(in srgb, var(--glow) 42%, var(--ink)) 0%, color-mix(in srgb, var(--ball) 22%, var(--ink)) 38%, var(--ink) 72%);
  border: var(--line); border-radius: 30px; box-shadow: var(--stick); overflow: hidden; padding: var(--s5) var(--s5) var(--s6); margin-bottom: var(--s6); }
.stage41::before { content: ''; position: absolute; inset: -30% -10% auto; height: 120%; z-index: -1; opacity: 0; pointer-events: none;
  background: conic-gradient(from 180deg at 50% 0%, transparent 0deg 160deg, color-mix(in srgb, var(--glow) 45%, transparent) 172deg, transparent 184deg 360deg); transition: opacity .8s ease; }
.stage41[data-phase="drawing"]::before, .stage41[data-phase="starting"]::before, .stage41[data-phase="revealing"]::before { opacity: 1; animation: sweep 6s ease-in-out infinite alternate; }
@keyframes sweep { from { transform: rotate(-18deg); } to { transform: rotate(18deg); } }
.stage41.flash { animation: flash .5s ease-out; }
@keyframes flash { 0% { filter: brightness(1.55) saturate(1.2); } 100% { filter: none; } }
.stage-top { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; justify-content: space-between; margin-bottom: var(--s4); }
.stage-top h1 { color: var(--white); margin: 0; font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
.stage-top .pill { color: var(--ink); }
.stage-controls { display: flex; gap: var(--s2); flex-wrap: wrap; }
.stage-btn { font: 700 .9rem var(--body); color: var(--white); background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.75); border-radius: 999px; padding: .35rem .9rem; cursor: pointer; }
.stage-btn[aria-pressed="true"] { background: var(--honey); color: var(--ink); border-color: var(--honey); }
.stage-btn:focus-visible { outline-color: var(--honey); }
.stage-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5); align-items: center; }
.machine { position: relative; display: grid; justify-items: center; }
.globe { position: relative; width: min(100%, 21rem); aspect-ratio: 1; border-radius: 50%; border: 3px solid rgba(255,255,255,.8);
  background: radial-gradient(circle at 30% 24%, rgba(255,255,255,.38), transparent 34%), radial-gradient(circle at 50% 60%, rgba(255,255,255,.06), rgba(255,255,255,.02) 70%);
  box-shadow: inset -14px -18px 40px rgba(0,0,0,.35), inset 10px 12px 30px rgba(255,255,255,.12), 0 0 70px color-mix(in srgb, var(--glow) 45%, transparent); overflow: hidden; }
.globe canvas { width: 100%; height: 100%; display: block; }
.globe::after { content: ''; position: absolute; inset: 7% 52% 56% 12%; border-radius: 50%; background: linear-gradient(160deg, rgba(255,255,255,.55), transparent 70%); pointer-events: none; }
.chute { width: 3.4rem; height: 1.6rem; margin-top: -4px; background: linear-gradient(#fff3, #fff1); border: 3px solid rgba(255,255,255,.8); border-top: 0; border-radius: 0 0 14px 14px; }
.stand { width: 62%; max-width: 14rem; height: 1.4rem; margin-top: .4rem; background: linear-gradient(#ffffff30, #ffffff10); border: 3px solid rgba(255,255,255,.65); border-radius: 12px 12px 4px 4px; }
.stage-info { min-width: 0; }
.phase-label { font: 700 .95rem var(--body); color: var(--glow); margin: 0 0 var(--s2); }
.clock { font: 800 clamp(2.6rem, 8.5vw, 4.8rem)/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.03em; margin: 0 0 var(--s2); color: var(--white); }
.clock small { display: block; font: 600 .95rem var(--body); letter-spacing: 0; color: rgba(255,255,255,.8); margin-top: .5rem; }
.stage-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); margin: var(--s4) 0 0; }
.stage-facts dt { font-size: .78rem; color: rgba(255,255,255,.72); }
.stage-facts dd { margin: 0; font: 800 1.15rem var(--display); color: var(--white); }
.tray { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(.35rem, 1.6vw, .75rem); margin: var(--s5) 0 0; padding: var(--s3) var(--s3); background: rgba(0,0,0,.22); border: 2px solid rgba(255,255,255,.35); border-radius: 999px; }
.tray-slot { --size: clamp(2.6rem, 8.5vw, 3.9rem); width: var(--size); height: var(--size); border-radius: 50%; border: 2.5px dashed rgba(255,255,255,.45); display: grid; place-items: center; color: rgba(255,255,255,.55); font: 700 .8rem var(--body); }
.tray-slot .ball { --size: inherit; width: 100%; height: 100%; border-color: var(--ink); box-shadow: 0 6px 18px color-mix(in srgb, var(--glow) 55%, transparent); }
.tray-slot .ball.drop { animation: drop-in .9s cubic-bezier(.2,.8,.25,1.25); }
@keyframes drop-in { 0% { transform: translateY(-160%) scale(.55) rotate(-160deg); opacity: 0; } 55% { transform: translateY(8%) scale(1.08) rotate(10deg); opacity: 1; } 75% { transform: translateY(-6%) scale(.97); } 100% { transform: none; } }
.stage-note { margin: var(--s4) 0 0; text-align: center; color: rgba(255,255,255,.85); }
.stage-note a { color: var(--honey); }
.stage-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); margin-top: var(--s4); }
.stage-actions .btn { box-shadow: 2px 2px 0 var(--honey); }
.stage41 .notice { background: var(--blush); color: var(--ink); border: 2px solid var(--ink); border-radius: 12px; padding: .5rem .8rem; margin: var(--s3) 0 0; }
.my-tix { display: grid; gap: var(--s2); padding: 0; margin: 0; }
.my-tix li { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s2) var(--s3); align-items: center; border: 2px solid var(--ink); border-radius: 14px; padding: .55rem .8rem; background: var(--white); }
.my-tix li.won { background: #FFF4D1; box-shadow: 2px 2px 0 var(--ink); }
.my-tix .tid { font-family: var(--mono); font-size: .85rem; color: var(--ink-2); }
.my-tix .res { font-weight: 800; text-align: right; }
.my-tix .ball.hit { animation: hit .5s ease; }
@keyframes hit { 0% { transform: scale(1); } 40% { transform: scale(1.25) rotate(-8deg); } 100% { transform: scale(1); } }
.tier-results td.num, .tier-results th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tier-results tr.hit { background: #FFF4D1; }
.result-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s4); align-items: center; background: var(--tint); border: var(--line); border-radius: 24px; padding: var(--s5); box-shadow: var(--stick); margin-bottom: var(--s5); }
.result-hero h1 { margin: 0 0 var(--s2); }
.order-note { font-size: .88rem; color: var(--ink-2); margin: var(--s2) 0 0; }
.check-list { list-style: none; padding: 0; display: grid; gap: var(--s2); }
.check-list li { border: 2px solid var(--ink); border-radius: 12px; padding: .5rem .8rem; background: var(--white); }
.check-list li.ok { background: var(--mintlight); } .check-list li.bad { background: var(--blush); } .check-list li.wait { background: var(--paper); }
@media (max-width: 980px) {
  .game-layout, .game-hero, .stage-grid { grid-template-columns: 1fr; }
  .stage-grid .machine { order: -1; }
}
@media (max-width: 640px) {
  .game-hero { padding: var(--s4); }
  .selector { padding: var(--s4); }
  .pick-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .45rem; }
  .stage41 { padding: var(--s4) var(--s3) var(--s5); border-radius: 22px; }
  .stage-facts { grid-template-columns: 1fr 1fr; }
  .globe { width: min(100%, 17rem); }
  .slip { padding: var(--s4); }
  .result-hero { grid-template-columns: 1fr; }
  .line-name { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pick-ball, .pick-ball.pop, .tray-slot .ball.drop, .my-tix .ball.hit, .stage41.flash { animation: none !important; transition: none !important; }
  .stage41::before { animation: none !important; }
}
.game-layout > *, .game-hero > *, .stage-grid > * { min-width: 0; }
.buy-bar { position: static; }
@media (max-width: 980px) { .buy-bar { position: sticky; bottom: .5rem; box-shadow: 0 6px 24px rgba(36,21,63,.35); } }
.tier-table td, .tier-table th { vertical-align: top; }
.side-stack > *, .two-col > * { min-width: 0; }
.tier-table th, .tier-table td { padding: .5rem .6rem; }
@media (max-width: 640px) {
  .line { gap: var(--s2) var(--s3); }
  .line .balls { flex: 1 1 100%; order: 3; }
  .line .qp { order: 2; }
  .buy-bar { padding: var(--s2) var(--s3); gap: var(--s2); flex-wrap: nowrap; }
  .buy-bar strong { font-size: 1.05rem; }
  .buy-bar .btn { padding: .45em .9em; font-size: .95rem; white-space: nowrap; }
}
@media (max-width: 640px) { .slip-grid { grid-template-columns: 1fr; } }
/* The hidden attribute always wins (buttons and links that are shown later by scripts). */
[hidden] { display: none !important; }
.tray-slot.filled, .tray-slot:has(.ball) { border-color: transparent; }
@media (max-width: 980px) {
  /* Phones and tablets: before the draw the clock comes first; from the draw on, the machine and the tray of
     drawn balls sit together at the top, so every ball is seen landing. */
  .stage41 { display: flex; flex-direction: column; }
  .stage-grid { display: contents; }
  .stage41 .stage-top { order: 0; }
  .stage41 .stage-info { order: 1; }
  .stage41 .machine { order: 2; margin-top: var(--s4); }
  .stage41 .tray { order: 3; margin-top: var(--s3); }
  .stage41 .stage-note { order: 4; }
  .stage41 .stage-actions { order: 6; }
  .stage41:is([data-phase="drawing"], [data-phase="starting"], [data-phase="revealing"], [data-phase="done"], [data-phase="delayed"]) .stage-info { order: 5; margin-top: var(--s4); }
  .stage41:is([data-phase="drawing"], [data-phase="starting"], [data-phase="revealing"], [data-phase="done"], [data-phase="delayed"]) .machine { margin-top: 0; }
  .globe { width: min(100%, 15rem); }
}

.clock .balls .ball { --size: clamp(2.6rem, 6vw, 3.6rem); }
.clock .balls { margin-bottom: .25rem; }

/* 4.1.2: search guides (home, results, glossary) */
.home-guide, .results-guide { margin-top: var(--s8); }
.home-guide h2, .results-guide h2 { margin-top: 0; }
.glossary-index { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); font-weight: 600; }
.glossary dt { font-weight: 700; margin-top: var(--s5); scroll-margin-top: 5rem; }
.glossary dd { margin: var(--s1) 0 0; }
.readiness { list-style: none; padding: 0; margin: 0; }
.readiness li { margin: var(--s3) 0; }

/* ---------- "Why 0.00?" explanations (4.1.7) ---------- */
/* The amount is the trigger: hover or keyboard focus on a computer, tap on a phone. /js/common.js places the
   card on screen (position: fixed, so cards with overflow: hidden don't clip it). */
.why { display: inline; }
.why-btn { display: inline-flex; align-items: center; gap: .28em; margin: 0; padding: 0; border: 0; border-radius: 6px; background: none;
  font: inherit; letter-spacing: inherit; line-height: inherit; color: inherit; text-align: inherit; cursor: help; -webkit-tap-highlight-color: transparent; }
.why-amt { text-decoration: underline dotted color-mix(in srgb, var(--ink) 50%, transparent); text-decoration-thickness: max(2px, .055em); text-underline-offset: .14em; }
.why-mark { flex: none; display: inline-grid; place-items: center; width: clamp(1.15rem, .5em, 1.5rem); height: clamp(1.15rem, .5em, 1.5rem); border-radius: 50%;
  background: var(--honey); border: 2px solid var(--ink); box-shadow: 1.5px 1.5px 0 var(--ink); color: var(--ink);
  font: 800 .74rem/1 var(--body); letter-spacing: 0; font-variation-settings: normal; transition: background-color .12s; }
.why-btn:hover .why-mark, .why.is-open .why-mark { background: var(--gum); }
.why-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.why-pop { display: none; position: fixed; z-index: 80; top: 0; left: 0; width: min(20rem, calc(100vw - 24px)); padding: .8rem .95rem .85rem;
  background: var(--white); color: var(--ink); border: var(--line); border-radius: 16px; box-shadow: var(--stick);
  font: 400 .9rem/1.45 var(--body); letter-spacing: -.003em; font-variation-settings: normal; text-align: left; white-space: normal; text-transform: none; cursor: auto; }
.why.is-open .why-pop { display: block; animation: why-in .14s ease-out; }
.why-pop::before { content: ''; position: absolute; top: -8px; left: calc(var(--arrow, 1.5rem) - 7px); width: 12px; height: 12px; background: var(--white);
  border-left: var(--line); border-top: var(--line); border-top-left-radius: 3px; transform: rotate(45deg); }
.why-pop.why-up::before { top: auto; bottom: -8px; transform: rotate(225deg); }
.why-pop .why-head { display: block; margin: 0 0 .3rem; font: 800 1.08rem/1.15 var(--display); letter-spacing: -.01em; color: var(--ink); }
.why-pop .why-body { display: block; font-size: .9rem; color: var(--ink); }
.why-pop .why-rows { display: grid; gap: .25rem; margin: .65rem 0 .55rem; padding: .5rem .65rem; background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; }
.why-pop .why-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); font-size: .84rem; color: var(--ink); }
.why-pop .why-row strong { display: inline; font: 700 .86rem/1.3 var(--body); font-variant-numeric: tabular-nums; letter-spacing: 0; white-space: nowrap; color: var(--ink); }
.why-pop .why-foot { display: block; font-size: .82rem; color: var(--ink-2); }
.why-pop time { white-space: nowrap; }
@keyframes why-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.foot-tz { max-width: 1240px; margin: var(--s5) auto 0; color: var(--ink-2); }
.foot-tz + .foot-legal { margin-top: var(--s2); }
@media (prefers-reduced-motion: reduce) { .why.is-open .why-pop { animation: none; } .why-mark { transition: none; } }
@media print { .why-mark, .why-pop { display: none !important; } }

/* ---------- 4.1.8: Apple Pay, Google Pay and cards through MoonPay ---------- */
.card-panel { margin-top: var(--s6); }
.card-cols { align-items: start; }
.card-buy { display: grid; gap: var(--s4); }
.card-buy > * { margin: 0; }
.cb-methods { display: flex; flex-wrap: wrap; gap: var(--s2); }
.cb-chip { font: 700 .82rem var(--body); padding: .2em .75em; border: 2px solid var(--ink); border-radius: 8px; background: var(--white); }
.cb-amounts { display: flex; flex-wrap: wrap; gap: var(--s2); border: 0; padding: 0; margin: 0; }
.cb-amounts legend { margin-bottom: var(--s2); padding: 0; }
.cb-amount { position: relative; }
.cb-amount input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cb-amount span { display: inline-block; min-width: 4.5rem; text-align: center; font: 800 1.15rem var(--display); padding: .45em .9em; border: var(--line); border-radius: 12px; background: var(--white); }
.cb-amount input:checked + span { background: var(--honey); box-shadow: 3px 3px 0 var(--ink); }
.cb-amount input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.cb-other input { max-width: 12rem; font: 700 1.1rem var(--body); }
.cb-fees { margin: 0; border: var(--line); border-radius: 14px; background: var(--white); overflow: hidden; transition: opacity .15s; }
.card-buy[aria-busy="true"] .cb-fees { opacity: .6; }
.cb-fees > div { display: flex; justify-content: space-between; gap: var(--s3); padding: var(--s2) var(--s4); border-bottom: 1px solid var(--lilac); }
.cb-fees > div:last-child { border-bottom: 0; }
.cb-fees dt { color: var(--ink-2); }
.cb-fees dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.cb-fees .cb-get { background: var(--mintlight); }
.cb-fees .cb-get dt, .cb-fees .cb-total dt { color: var(--ink); font-weight: 700; }
.cb-fees .cb-total { border-top: var(--line); }
.cb-fees .cb-total dd { font: 800 1.2rem var(--display); }
.cb-source { margin: var(--s2) 0 0; }
.cb-kyc { margin-bottom: 0; }
.cb-kyc p { font-size: .95rem; }
.cb-sandbox { justify-self: start; }
.cb-side h3 { margin-top: 0; }
.cb-teaser { font-weight: 600; }
.cb-list-h { margin-top: var(--s5); font-size: 1.05rem; }
.cb-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.cb-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); padding: var(--s2) var(--s3); border: 2px solid var(--ink); border-radius: 10px; background: var(--white); font-size: .92rem; }
.cb-list .cb-completed { background: var(--mintlight); }
.cb-list .cb-failed { background: var(--blush); }
#pay-card .card-buy { margin-top: var(--s3); }
@media (max-width: 760px) { .card-cols { grid-template-columns: 1fr; } }
