@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:400 800;font-display:swap;src:url(/fonts/bricolage-grotesque-normal-400-800-latin-ext.776f6dcaf0.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:400 800;font-display:swap;src:url(/fonts/bricolage-grotesque-normal-400-800-latin.a79fdb52d4.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Instrument Sans';font-style:italic;font-weight:400 500;font-display:swap;src:url(/fonts/instrument-sans-italic-400-500-latin-ext.2c2d6eb042.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Instrument Sans';font-style:italic;font-weight:400 500;font-display:swap;src:url(/fonts/instrument-sans-italic-400-500-latin.77210cdde0.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/instrument-sans-normal-400-700-latin-ext.c4fcfea41f.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/instrument-sans-normal-400-700-latin.2ee17598a9.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/jetbrains-mono-normal-500-latin-ext.db5ff4db83.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/jetbrains-mono-normal-500-latin.83c005d49d.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/jetbrains-mono-normal-700-latin-ext.db5ff4db83.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/jetbrains-mono-normal-700-latin.83c005d49d.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
/* Srujana 2026 — public site. Mobile first: base targets ~360px, min-width queries scale up. */
:root {
  --paper: #F5F0E6;
  --paper-2: #ECE4D3;
  --paper-3: #E2D8C3;
  --ink: #17140F;
  --ink-2: #4E473C;
  --rule: rgba(23, 20, 15, 0.14);
  --saffron: #FF5B1F;
  --blue: #2E5BFF;
  --mint: #19B47E;
  --sun: #FFC83D;
  --pink: #FF9BBB;
  --red: #C8321E;

  --display: "Bricolage Grotesque", ui-sans-serif, sans-serif;
  --body: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --spring: linear(0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.723 12.9%, 0.938 16.7%, 1.017 19.4%, 1.067, 1.099 24.3%, 1.108 26%, 1.1, 1.077 30.9%, 1.006 39.2%, 0.99 43%, 0.983 46.3%, 0.99 54.5%, 1 66.7%, 1);
  --g: 16px;
  --max: 1160px;
  --r: 22px;

  /* fixed values that never flip with the theme */
  --k: #17140F;
  --cream: #F5F0E6;
  /* theme roles (light defaults; dark values below) */
  --bg: #F5F0E6;
  --card: #FBF8F1;
  --line: #17140F;
  --shade: #17140F;
  --hi: #17140F;
  --nav-bg: rgba(245, 240, 230, 0.86);
  --dot: rgba(23, 20, 15, 0.16);
  --navy: #1F2D6B;
  --good: #0B5C40;
  --bad-bg: #FFD9CF; --bad-fg: #6B1A0E;
  --info-bg: #DCE5FF;
  --warn-bg: #FFF1C9;
  color-scheme: light;
}

/* Dark theme: follows the system unless the visitor picked one (data-theme on <html>). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15130F; --paper-2: #211E19; --paper-3: #302B24;
    --ink: #F3EDE1; --ink-2: #B9B0A0; --rule: rgba(243, 237, 225, 0.15);
    --red: #FF7A5C;
    --bg: #15130F; --card: #1D1A16; --line: #CFC6B6; --shade: #000; --hi: #F3EDE1;
    --nav-bg: rgba(21, 19, 15, 0.82); --dot: rgba(243, 237, 225, 0.09);
    --navy: #AFBBF2; --good: #4FD9A4;
    --bad-bg: #3B1A12; --bad-fg: #FFB7A3; --info-bg: #1D2552; --warn-bg: #3A2F12;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #15130F; --paper-2: #211E19; --paper-3: #302B24;
  --ink: #F3EDE1; --ink-2: #B9B0A0; --rule: rgba(243, 237, 225, 0.15);
  --red: #FF7A5C;
  --bg: #15130F; --card: #1D1A16; --line: #CFC6B6; --shade: #000; --hi: #F3EDE1;
  --nav-bg: rgba(21, 19, 15, 0.82); --dot: rgba(243, 237, 225, 0.09);
  --navy: #AFBBF2; --good: #4FD9A4;
  --bad-bg: #3B1A12; --bad-fg: #FFB7A3; --info-bg: #1D2552; --warn-bg: #3A2F12;
  color-scheme: dark;
}
/* Coloured objects (cards, tiles, tickets, scenes) keep their daylight inks in the dark theme,
   like printed things under a lamp. Only the page around them changes. */
.cart, .day, .quiz, .crew-card, .q-match, .pick-card, .ticket, .avatar, .tile, .detail-hero, .scene, .jackpot, .prize-flag, .ticket-top, .win-card, .win-count, .win-flag, .more-card {
  --ink: #17140F; --ink-2: #4E473C; --paper: #F5F0E6; --paper-2: #ECE4D3; --paper-3: #E2D8C3;
  --rule: rgba(23, 20, 15, 0.14); --line: #17140F; --shade: #17140F; --card: #FBF8F1;
}

/* while the theme flips, nothing animates its colours on its own */
.theme-switching *, .theme-switching *::before, .theme-switching *::after { transition: none !important; }
/* theme switch transition: a circle grows out of the toggle (capable desktops only, see theme.js) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: reveal 560ms var(--ease-in-out); }
@keyframes reveal { from { clip-path: circle(0 at var(--tx, 50%) var(--ty, 0)); } to { clip-path: circle(var(--tr, 150vmax) at var(--tx, 50%) var(--ty, 0)); } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 76px; background: var(--paper); scrollbar-color: var(--ink-2) var(--paper-2); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: clip; min-height: 100dvh; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -0.03em; }
h2 { font-size: clamp(2.3rem, 10vw, 4.4rem); font-weight: 800; line-height: 0.95; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--sun); color: var(--k); }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.small { font-size: 13px; color: var(--ink-2); }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 99; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.noscript { margin: 24px var(--g); padding: 16px; border-radius: 14px; background: var(--sun); font-weight: 600; }

/* palette helpers */
.c-saffron { background: var(--saffron); color: var(--k); --c: var(--saffron); }
.c-blue { background: var(--blue); color: var(--cream); --c: var(--blue); }
.c-mint { background: var(--mint); color: var(--k); --c: var(--mint); }
.c-sun { background: var(--sun); color: var(--k); --c: var(--sun); }
.c-pink { background: var(--pink); color: var(--k); --c: var(--pink); }
.c-ink { background: var(--k); color: var(--cream); --c: var(--k); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--line);
  font: 700 16px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 140ms var(--ease-out), background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-line { background: transparent; color: var(--ink); }
.btn-ghost { border-color: transparent; background: var(--paper-2); }
@media (hover: hover) and (pointer: fine) {
  .btn-ink:not(:disabled):hover { background: var(--saffron); border-color: var(--saffron); color: var(--k); }
  .btn-line:not(:disabled):hover { background: var(--ink); color: var(--paper); }
  .btn-ghost:not(:disabled):hover { background: var(--paper-3); }
}
.chip-btn { border: 2px solid var(--line); background: var(--paper); border-radius: 999px; min-height: 36px; padding: 0 14px; font-weight: 600; font-size: 14px; cursor: pointer; transition: transform 140ms var(--ease-out); touch-action: manipulation; }
.chip-btn:active { transform: scale(0.96); }
.chip-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); display: grid; place-items: center; cursor: pointer; font-size: 16px; transition: transform 140ms var(--ease-out); }
.icon-btn:active { transform: scale(0.94); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) var(--g) 10px;
  background: var(--nav-bg); backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border-bottom: 1.5px solid transparent; transition: border-color 200ms ease;
}
.nav[data-stuck] { border-bottom-color: var(--rule); }
.nav-home { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.nav-cu { width: 118px; display: none; }
.nav-sep { display: none; width: 1.5px; height: 26px; background: var(--rule); flex: none; }
.nav-end { display: flex; align-items: center; gap: 8px; }

/* the Bindu mark: one stroke S that starts from a saffron point */
.mark { display: block; flex: none; overflow: visible; }
.mark-s { fill: none; stroke: currentColor; stroke-width: 24; }
.mark-dot { fill: var(--saffron); }
.lockup { display: flex; align-items: center; gap: 9px; color: var(--ink); }
.lockup .mark { width: 30px; height: 30px; }
.wordmark { font: 800 21px/1 var(--display); letter-spacing: 0.01em; }
.lockup .mark-dot { transform-box: fill-box; transform-origin: center; transition: transform 300ms var(--spring); }
@media (hover: hover) and (pointer: fine) { .nav-home:hover .mark-dot { transform: translate(6px, -6px) scale(1.15); } }

/* only-light / only-dark swap images that have no single colour version (the CU logo) */
:root[data-theme="light"] .only-dark, :root[data-theme="dark"] .only-light { display: none !important; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .only-dark { display: none !important; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .only-light { display: none !important; } }

/* theme toggle */
.theme-btn { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 2px solid var(--line); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: transform 140ms var(--ease-out), background-color 160ms ease; touch-action: manipulation; }
.theme-btn:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) { .theme-btn:hover { background: var(--paper-2); } }
.theme-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .moon { display: none; }
  :root:not([data-theme="light"]) .theme-btn .sun { display: block; }
}

/* ---------- hero toybox ---------- */
.hero { max-width: var(--max); margin: 0 auto; padding: 12px var(--g) 8px; display: grid; gap: 22px; }
.toybox {
  position: relative; overflow: hidden; isolation: isolate;
  height: clamp(270px, 78vw, 520px); border-radius: 28px; border: 2.5px solid var(--line);
  background:
    radial-gradient(circle at 1px 1px, var(--dot) 1px, transparent 0) 0 0 / 22px 22px,
    var(--paper-2);
  touch-action: pan-y;
}
.toys { position: absolute; inset: 0; }
.toy { user-select: none; -webkit-user-select: none; -webkit-user-drag: none; cursor: grab; }
.toy:active { cursor: grabbing; }
.tile { --t: 60px; display: grid; place-items: center; width: var(--t); height: var(--t); border-radius: calc(var(--t) * 0.22); font: 800 calc(var(--t) * 0.64)/1 var(--display); letter-spacing: -0.04em; border: 2.5px solid var(--line); box-shadow: 0 3px 0 var(--shade); }
/* Static lockup: what you see without JavaScript, with reduced motion, or before physics starts */
.toy-static { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4%; padding: 24px; pointer-events: none; color: var(--ink); }
.toy-static .mark { width: min(46vw, 260px); height: auto; aspect-ratio: 1; }
.toy-static .toy-pill { position: static; }
.toy-static .wordmark { font-size: clamp(32px, 9vw, 60px); }
.toybox.physics .toy-static { display: none; }
/* With JS on, hold the static lockup back briefly so it doesn't flash before the pieces fly in. */
.js .toybox:not(.physics):not(.static) .toy-static { animation: appear 300ms ease 2.2s both; }
@keyframes appear { from { opacity: 0; } }
.toybox:not(.physics) > .toys > .toy-pill { display: none; }
.toy-static-row { display: flex; align-items: center; gap: 12px; }
.toy-static .toy-pill { padding: 0.32em 0.7em; --pf: clamp(16px, 4.4vw, 26px); }
/* Physics pieces. Only the painted shape takes the pointer, so swiping empty space still scrolls. */
.toybox.physics .toy { position: absolute; left: 0; top: 0; will-change: transform; }
.piece { overflow: visible; pointer-events: none; color: var(--ink); }
.piece > * { pointer-events: visiblePainted; touch-action: none; }
.piece .p-ink { fill: currentColor; }
.piece .p-dot { fill: var(--saffron); }
.toy-pill { display: grid; place-items: center; border-radius: 999px; background: var(--ink); color: var(--paper); font: 700 var(--pf, 22px)/1 var(--mono); letter-spacing: -0.03em; touch-action: none; }
.bindu { border-radius: 50%; touch-action: none; }
.bindu.c-saffron, .bindu.c-blue, .bindu.c-mint, .bindu.c-sun, .bindu.c-pink { box-shadow: inset 0 -3px 0 rgba(23,20,15,0.18); }
.bindu.born { animation: born 420ms var(--spring) both; }
@keyframes born { from { scale: 0; } }
.toy-word { position: absolute; left: 0; top: 0; width: max-content; white-space: nowrap; font: 800 var(--wf, 40px)/1 var(--display); letter-spacing: 0.02em; color: var(--ink); opacity: 0; translate: 0 10px; transition: opacity 420ms ease, translate 520ms var(--ease-out); pointer-events: none; }
.toybox[data-built] .toy-word { opacity: 1; translate: 0 0; }
.toy-hint { position: absolute; left: 14px; top: 12px; font: 600 13px/1 var(--mono); color: var(--ink-2); display: flex; align-items: center; gap: 8px; pointer-events: none; transition: opacity 300ms ease; }
.toy-hint::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--saffron); box-shadow: 0 0 0 0 rgba(255,91,31,0.6); animation: ping 1.6s ease-out infinite; }
.toy-hint[data-gone] { opacity: 0; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(255,91,31,0); } 100% { box-shadow: 0 0 0 0 rgba(255,91,31,0); } }
.toy-tools { position: absolute; right: 10px; top: 8px; display: flex; gap: 6px; }

.hero-copy { display: grid; gap: 18px; }
.hero-big { font: 800 clamp(2.5rem, 11vw, 4.6rem)/0.92 var(--display); letter-spacing: -0.045em; }
.hero-big span { display: inline-block; padding: 0 0.12em; margin-left: -0.12em; border-radius: 0.14em; }
.hl-1 { background: var(--sun); color: var(--k); transform: rotate(-1.5deg); }
.hl-2 { background: var(--blue); color: var(--cream); transform: rotate(1deg); margin-top: 0.06em; }
.lede { font: 500 clamp(1.25rem, 5.2vw, 1.75rem)/1.28 var(--display); letter-spacing: -0.015em; max-width: 34ch; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, auto); gap: 8px; justify-content: start; }
.facts li { display: grid; padding: 10px 14px; border-radius: 16px; background: var(--paper-2); border: 1.5px solid var(--rule); }
.facts b { font: 800 17px/1.2 var(--display); letter-spacing: -0.02em; }
.facts b.mono { font: 700 16px/1.25 var(--mono); }
.facts span { font-size: 13px; color: var(--ink-2); }
/* the prize sticker at the top of the hero copy */
.prize-flag { justify-self: start; display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 12px; border-radius: 20px; background: var(--sun); color: var(--ink); border: 2.5px solid var(--line); box-shadow: 0 4px 0 var(--shade); text-decoration: none; transform: rotate(-2deg); transition: transform 300ms var(--spring), box-shadow 200ms var(--ease-out); }
.prize-flag:active { transform: rotate(-2deg) translateY(3px); box-shadow: 0 1px 0 var(--shade); }
@media (hover: hover) and (pointer: fine) { .prize-flag:hover { transform: rotate(1deg) scale(1.03); } }
.prize-flag .coin { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--k); color: var(--sun); display: grid; place-items: center; font: 800 21px/1 var(--display); }
.prize-flag b { display: block; font: 700 clamp(1.7rem, 7.4vw, 2.5rem)/1 var(--mono); letter-spacing: -0.05em; }
.prize-flag small { display: block; font: 700 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
:root[data-theme="dark"] .jackpot, :root[data-theme="dark"] .cart.c-ink, :root[data-theme="dark"] .pick-card.c-ink { box-shadow: 0 0 0 1.5px rgba(243, 237, 225, 0.22); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .jackpot, :root:not([data-theme="light"]) .cart.c-ink, :root:not([data-theme="light"]) .pick-card.c-ink { box-shadow: 0 0 0 1.5px rgba(243, 237, 225, 0.22); } }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-row .btn { flex: 1 1 auto; }

/* ---------- ticker ---------- */
.ticker { margin-top: 28px; background: var(--ink); color: var(--paper); overflow: hidden; transform: rotate(-1.2deg); margin-inline: -8px; }
.ticker-track { display: flex; width: max-content; animation: marquee 44s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; gap: 18px; padding: 14px 9px; font: 800 clamp(18px, 4.6vw, 26px)/1 var(--display); letter-spacing: -0.02em; white-space: nowrap; }
.ticker-track i { width: 14px; height: 14px; border-radius: 4px; transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }
.ticker[data-paused] .ticker-track { animation-play-state: paused; }

/* ---------- sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 72px var(--g) 0; }
.sec-head { display: grid; gap: 10px; margin-bottom: 24px; }
.sec-head p { color: var(--ink-2); font-size: 17px; }

/* ---------- cartridges ---------- */
.carts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; grid-auto-flow: dense; }
.cart { border-radius: var(--r); border: 2.5px solid var(--line); box-shadow: 0 4px 0 var(--shade); overflow: hidden; transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
.cart.wide { grid-column: span 2; }
.cart-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; padding: 10px 12px 14px; gap: 6px; touch-action: manipulation; }
.cart:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--shade); }
@media (hover: hover) and (pointer: fine) { .cart:hover { transform: translateY(-3px) rotate(-0.6deg); box-shadow: 0 7px 0 var(--shade); } }
.scene { width: 100%; height: auto; max-height: 130px; color: var(--ink); overflow: visible; }
.cart.wide .scene { max-height: 150px; }
.cart-text { display: grid; gap: 4px; margin-top: auto; }
.cart-name { font: 800 clamp(20px, 5.4vw, 30px)/1 var(--display); letter-spacing: -0.03em; }
.cart-blurb { font-size: 14px; line-height: 1.35; opacity: 0.86; display: none; }
.cart.wide .cart-blurb { display: block; }
.cart-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.cart-meta span { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: rgba(245,240,230,0.55); color: var(--ink); }
.c-ink .cart-meta span, .c-blue .cart-meta span { background: rgba(245,240,230,0.18); color: var(--paper); }
.cart-meta .mono { font-family: var(--mono); }

/* scene fills/strokes */
.f-paper { fill: var(--paper); } .f-ink { fill: var(--ink); } .f-sun { fill: var(--sun); } .f-mint { fill: var(--mint); } .f-saffron { fill: var(--saffron); } .f-blue { fill: var(--blue); } .f-pink { fill: var(--pink); }
.s-ink { stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.s-paper { stroke: var(--paper); stroke-width: 3; stroke-linecap: round; fill: none; }
.op { opacity: 0.4; }
.scene .type rect { fill: var(--ink); transform-box: fill-box; transform-origin: left center; }
.scene .cursor { fill: var(--saffron); }
.scene .hand { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; transform-origin: 168px 24px; }
.scene .dots circle { fill: var(--ink); }
.scene .cube { transform-box: fill-box; transform-origin: center bottom; }
.scene .bot { transform: translateX(-50px); }
.scene .wheel { transform-box: fill-box; transform-origin: center; }
.scene .bug { transform: translate(40px, 30px); cursor: pointer; }
.scene .bug-body { transform-box: fill-box; transform-origin: center; transition: transform 160ms var(--ease-out); }
.scene .bug.squashed .bug-body { transform: scale(1.4, 0.15); }
.scene .spot { opacity: 0.55; }
.scene .rocket, .scene .coins circle { transform-box: fill-box; }
.scene .bars rect { transform-box: fill-box; transform-origin: center bottom; }
.scene .clap { transform-box: fill-box; transform-origin: 0% 100%; }
.scene .knight { transform: translate(64px, 52px); }

.play .type rect { animation: typing 2.8s var(--ease-out) infinite; }
.play .type rect:nth-child(2) { animation-delay: 0.25s; } .play .type rect:nth-child(3) { animation-delay: 0.5s; } .play .type rect:nth-child(4) { animation-delay: 0.75s; }
@keyframes typing { 0% { transform: scaleX(0); } 30%, 85% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
.play .cursor { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.play .hand { animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(-360deg); } }
.play .dots circle { animation: hop 1.2s var(--ease-in-out) infinite; }
.play .dots circle:nth-child(2) { animation-delay: 0.15s; } .play .dots circle:nth-child(3) { animation-delay: 0.3s; }
@keyframes hop { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }
.play .cube { animation: pop 2.4s var(--spring) infinite; }
@keyframes pop { 0%, 30% { transform: scale(0.6); opacity: 0; } 45%, 90% { transform: scale(1); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
.play .bot { animation: drive 4.2s linear infinite; }
@keyframes drive { 0% { transform: translate(-50px, 0); } 38% { transform: translate(52px, 0); } 46% { transform: translate(74px, -16px) rotate(-8deg); } 54% { transform: translate(98px, 0) rotate(4deg); } 58% { transform: translate(108px, 0); } 100% { transform: translate(214px, 0); } }
.play .wheel { animation: roll 0.5s linear infinite; }
@keyframes roll { to { transform: rotate(360deg); } }
.play .bug { animation: crawl 6s var(--ease-in-out) infinite; }
@keyframes crawl { 0% { transform: translate(40px, 30px) rotate(90deg); } 25% { transform: translate(140px, 46px) rotate(100deg); } 50% { transform: translate(120px, 78px) rotate(200deg); } 75% { transform: translate(56px, 94px) rotate(260deg); } 100% { transform: translate(40px, 30px) rotate(450deg); } }
.play .bug.squashed { animation-play-state: paused; }
.play .rocket { animation: bob 2.6s var(--ease-in-out) infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.play .flame { animation: blink 0.25s steps(1) infinite; }
.play .coins circle { animation: twinkle 2s ease-in-out infinite; }
.play .coins circle:nth-child(2) { animation-delay: 0.6s; } .play .coins circle:nth-child(3) { animation-delay: 1.1s; }
@keyframes twinkle { 50% { transform: translateY(-6px); opacity: 0.5; } }
.play .bars rect { animation: grow 3s var(--ease-out) infinite; }
.play .bars rect:nth-child(2) { animation-delay: 0.15s; } .play .bars rect:nth-child(3) { animation-delay: 0.3s; } .play .bars rect:nth-child(4) { animation-delay: 0.45s; }
@keyframes grow { 0% { transform: scaleY(0); } 35%, 90% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.play .clap { animation: clap 1.8s var(--ease-in-out) infinite; }
@keyframes clap { 0%, 100% { transform: rotate(0deg); } 20% { transform: rotate(-24deg); } 32% { transform: rotate(0deg); } }
.play .knight { animation: knight 3.6s var(--ease-in-out) infinite; }
@keyframes knight { 0%, 18% { transform: translate(64px, 52px); } 30%, 48% { transform: translate(112px, 30px); } 60%, 78% { transform: translate(136px, 74px); } 90%, 100% { transform: translate(64px, 52px); } }

/* ---------- quiz ---------- */
.quiz { color: var(--ink); border-radius: 28px; border: 2.5px solid var(--line); background: var(--sun); padding: 24px 18px; box-shadow: 0 5px 0 var(--shade); display: grid; gap: 18px; }
.quiz h2 { font-size: clamp(2rem, 8vw, 3.2rem); }
.quiz-stage { display: grid; gap: 12px; }
.q-progress { display: flex; gap: 6px; }
.q-progress i { height: 6px; flex: 1; border-radius: 3px; background: rgba(23,20,15,0.18); transition: background-color 200ms ease; }
.q-progress i[data-on] { background: var(--ink); }
.q-title { font: 700 clamp(1.3rem, 5vw, 1.8rem)/1.2 var(--display); letter-spacing: -0.02em; }
.q-opts { display: grid; gap: 8px; }
.q-opt { text-align: left; padding: 16px 18px; border-radius: 18px; border: 2.5px solid var(--line); background: var(--paper); font: 600 17px/1.3 var(--body); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; box-shadow: 0 3px 0 var(--shade); transition: transform 140ms var(--ease-out), box-shadow 140ms var(--ease-out), background-color 160ms ease; touch-action: manipulation; }
.q-opt:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--shade); }
@media (hover: hover) and (pointer: fine) { .q-opt:hover { background: var(--paper-2); } }
.q-anim { animation: qin 360ms var(--ease-out) both; }
@keyframes qin { from { opacity: 0; transform: translateX(16px); } }
.q-result { display: grid; gap: 14px; }
.q-match { border-radius: 22px; border: 2.5px solid var(--line); padding: 18px; display: grid; gap: 6px; box-shadow: 0 4px 0 var(--shade); }
.q-match .small, .ticket-top .small { color: inherit; opacity: 0.85; }
.q-match b { font: 800 clamp(1.8rem, 8vw, 2.6rem)/1 var(--display); letter-spacing: -0.03em; }
.q-also { font-size: 15px; }

/* ---------- jackpot ---------- */
.jackpot { border-radius: 28px; background: var(--ink); color: var(--paper); padding: 26px 18px; display: grid; gap: 16px; }
.jackpot-label { font: 600 14px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--sun); }
.jackpot-num { font: 700 clamp(3rem, 15vw, 7.5rem)/1 var(--mono); letter-spacing: -0.05em; display: flex; align-items: flex-start; overflow: hidden; height: 1em; }
.jackpot-num .dg { display: inline-block; height: 1em; line-height: 1; overflow: hidden; }
.jackpot-num .dg > span > span { display: block; height: 1em; line-height: 1; }
.jackpot-num .dg span { display: flex; flex-direction: column; transition: transform 1.6s var(--ease-out); }
.pool-bar { display: flex; height: 44px; border-radius: 12px; overflow: hidden; border: 2px solid var(--paper); gap: 2px; background: var(--paper); }
.seg { flex: 0 0 var(--w); min-width: 6px; transition: filter 160ms ease, flex-basis 1.2s var(--ease-out); }
.seg:focus-visible { outline-offset: -4px; }
@media (hover: hover) and (pointer: fine) { .seg:hover { filter: brightness(1.15); } }
.pool-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 6px; }
.pool-legend li { display: flex; align-items: center; gap: 10px; font-size: 15px; padding: 6px 0; border-bottom: 1px solid rgba(245,240,230,0.14); }
.pool-legend i { width: 14px; height: 14px; border-radius: 4px; flex: none; border: 1.5px solid var(--paper); }
.pool-legend b { margin-left: auto; font-weight: 500; }

/* ---------- days ---------- */
.days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.day { border-radius: 22px; border: 2.5px solid var(--line); box-shadow: 0 4px 0 var(--shade); display: grid; justify-items: center; padding: 14px 6px; }
.day:nth-child(1) { transform: rotate(-3deg); } .day:nth-child(3) { transform: rotate(3deg); }
.day b { font: 800 clamp(3.4rem, 17vw, 7rem)/0.9 var(--display); letter-spacing: -0.05em; }
.day span { font: 700 14px/1.4 var(--mono); text-transform: uppercase; }
.countdown { margin-top: 22px; text-align: center; font: 700 clamp(1.3rem, 5vw, 1.8rem)/1.2 var(--display); }
.countdown b { display: inline-block; padding: 2px 12px; border-radius: 12px; background: var(--k); color: var(--sun); font-family: var(--mono); }

/* ---------- crew band ---------- */
.crew-card { color: var(--ink); position: relative; overflow: hidden; border-radius: 28px; border: 2.5px solid var(--line); background: var(--pink); padding: 26px 18px 28px; display: grid; gap: 14px; justify-items: start; box-shadow: 0 5px 0 var(--shade); }
.crew-card h2 { font-size: clamp(2rem, 9vw, 3.6rem); max-width: 14ch; position: relative; z-index: 1; }
.crew-card p { max-width: 42ch; font-size: 17px; position: relative; z-index: 1; }
.crew-card .btn { position: relative; z-index: 1; }
.crew-art { position: absolute; right: -22px; bottom: -48px; width: 124px; opacity: 0.9; transform: rotate(-12deg); }

/* ---------- venue ---------- */
.venue h2 { margin-bottom: 20px; }
.venue-grid { display: grid; gap: 18px; }
.map { width: 100%; height: auto; border-radius: 22px; border: 2.5px solid var(--line); background: var(--paper-2); }
.map .road { fill: none; stroke: var(--paper-3); stroke-width: 14; stroke-linecap: round; }
.map .route { fill: none; stroke: var(--saffron); stroke-width: 4; stroke-dasharray: 0.02 0.015; stroke-linecap: round; }
.map.play .route { animation: march 18s linear infinite; }
@keyframes march { to { stroke-dashoffset: -1; } }
.map-t { font: 600 11px var(--mono); fill: var(--ink-2); }
address { font-style: normal; line-height: 1.6; color: var(--ink-2); margin-bottom: 16px; }
address b { display: block; color: var(--ink); font: 800 1.3rem/1.2 var(--display); letter-spacing: -0.02em; margin-bottom: 4px; }

/* ---------- rulebook ---------- */
.rulebook { border-top: 2.5px solid var(--line); }
.rule { border-bottom: 1.5px solid var(--rule); }
.rule summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 16px 2px; cursor: pointer; touch-action: manipulation; }
.rule summary::-webkit-details-marker { display: none; }
.rule-dot { width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--line); flex: none; transition: transform 300ms var(--spring); }
.rule[open] .rule-dot { transform: rotate(45deg); }
.rule-name { font: 700 20px/1.2 var(--display); letter-spacing: -0.02em; }
.rule-pool { margin-left: auto; font-size: 15px; color: var(--ink-2); }
.rule-body { padding: 0 2px 24px; }
.rule-body h4, .sheet-body h4 { margin: 22px 0 10px; font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-2); }
.rule-theme { font: 600 18px/1.4 var(--display); letter-spacing: -0.01em; }
.tag { display: inline-block; font: 700 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; padding: 5px 8px; border-radius: 6px; background: var(--ink); color: var(--paper); vertical-align: 3px; margin-right: 4px; }
.chips { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--paper-2); border: 1.5px solid var(--rule); }
.dash { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.dash li { position: relative; padding-left: 22px; max-width: 70ch; }
.dash li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--saffron)); border: 1.5px solid var(--line); transform: rotate(45deg) scale(0.7); }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bars li { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; }
.bars b { font: 700 14px/1 var(--mono); }
.bars i { grid-column: 1 / -1; height: 10px; border-radius: 5px; background: var(--paper-2); border: 1.5px solid var(--line); position: relative; overflow: hidden; }
.bars i::after { content: ""; position: absolute; inset: 0; width: var(--w); background: var(--c, var(--saffron)); border-right: 1.5px solid var(--line); }
.prizes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.prizes li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--paper-2); }
.prizes li:first-child { color: var(--k); background: var(--sun); border: 2px solid var(--line); }
.prizes li:first-child b { font-size: 19px; }
.rule-cta { margin-top: 22px; }
.c-saffron-edge { --c: var(--saffron); } .c-blue-edge { --c: var(--blue); } .c-mint-edge { --c: var(--mint); } .c-sun-edge { --c: var(--sun); } .c-pink-edge { --c: var(--pink); } .c-ink-edge { --c: var(--ink-2); }

/* ---------- sheet (dialog) ---------- */
.sheet {
  border: 0; padding: 0; margin: 0; width: 100%; max-width: 100%; max-height: 92dvh; inset: auto 0 0 0;
  border-radius: 26px 26px 0 0; background: var(--paper); color: var(--ink); border-top: 2.5px solid var(--line);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(100%); transition: transform 420ms var(--ease-drawer), overlay 420ms allow-discrete, display 420ms allow-discrete;
}
.sheet:not([open]) { display: none; }
.sheet[open] { transform: translateY(0); }
@starting-style { .sheet[open] { transform: translateY(100%); } }
.sheet::backdrop { background: rgba(23, 20, 15, 0); transition: background-color 300ms ease, overlay 300ms allow-discrete, display 300ms allow-discrete; }
.sheet[open]::backdrop { background: rgba(23, 20, 15, 0.45); }
@starting-style { .sheet[open]::backdrop { background: rgba(23, 20, 15, 0); } }
.sheet.dragging { transition: none; }
.sheet-grip { flex: none; height: 26px; display: grid; place-items: center; cursor: grab; touch-action: none; }
.sheet-grip::before { content: ""; width: 44px; height: 5px; border-radius: 3px; background: var(--paper-3); }
.sheet-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 var(--g) 12px; border-bottom: 1.5px solid var(--rule); }
.sheet-head h3 { font: 800 clamp(1.6rem, 7vw, 2.4rem)/1 var(--display); }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 4px var(--g) calc(28px + env(safe-area-inset-bottom)); }
.sheet-body .scene { max-height: 160px; margin: 8px 0; border-radius: 18px; padding: 8px; }

/* ---------- mobile register dock ---------- */
.dock { position: fixed; z-index: 25; left: var(--g); right: var(--g); bottom: calc(12px + env(safe-area-inset-bottom)); min-height: 56px; box-shadow: 0 8px 24px -8px rgba(23,20,15,0.5); transform: translateY(160%); transition: transform 360ms var(--ease-out); }
.dock[data-show] { transform: translateY(0); }

/* ---------- footer ---------- */
.foot { margin-top: 96px; padding: 32px var(--g) calc(96px + env(safe-area-inset-bottom)); border-top: 2.5px solid var(--line); background: var(--paper-2); display: grid; gap: 22px; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; max-width: var(--max); width: 100%; margin: 0 auto; }
.foot-cu { width: 170px; }
.foot-brand { text-decoration: none; gap: 12px; margin-right: auto; }
.foot-brand .mark { width: 46px; height: 46px; }
.foot-brand .wordmark { font-size: 34px; }
.foot-year { font: 700 15px/1 var(--mono); padding: 5px 9px; border-radius: 999px; background: var(--ink); color: var(--paper); align-self: center; }
.foot-iic { display: flex; align-items: center; gap: 10px; font: 700 14px/1.2 var(--body); color: var(--navy); }
.foot-iic img { width: 32px; }
.foot-iic small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-2); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; max-width: var(--max); width: 100%; margin: 0 auto; font-weight: 600; }
.foot-note { max-width: var(--max); width: 100%; margin: 0 auto; font-size: 13px; color: var(--ink-2); }

/* ---------- toast ---------- */
.toast { width: max-content; position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 90; max-width: calc(100vw - 32px); padding: 13px 18px; border-radius: 14px; background: var(--ink); color: var(--paper); font-weight: 600; box-shadow: 0 10px 30px -8px rgba(23,20,15,0.55); transform: translate(-50%, 160%); transition: transform 240ms var(--ease-out); pointer-events: none; }
.toast[data-show] { transform: translate(-50%, 0); transition: transform 420ms var(--spring); }
.toast.bad { background: var(--red); }

/* ---------- 404 ---------- */
.nf { min-height: 60dvh; display: grid; place-content: center; justify-items: center; gap: 22px; padding: 40px var(--g); text-align: center; }
.nf-tiles { display: flex; gap: 8px; }
.nf-tiles .tile { --t: 84px; }
.nf h1 { font-size: clamp(1.8rem, 7vw, 2.8rem); }

/* ================= forms (register, invite, crew, ticket) ================= */
.form-page { max-width: 720px; margin: 0 auto; padding: 18px var(--g) 0; }
.f-head { display: grid; gap: 10px; margin: 8px 0 22px; }
.f-head h1 { font-size: clamp(2.2rem, 10vw, 3.6rem); font-weight: 800; line-height: 0.95; }
.f-head p { color: var(--ink-2); font-size: 17px; }
.steps { display: flex; gap: 6px; margin-bottom: 18px; }
.steps i { height: 8px; flex: 1; border-radius: 4px; background: var(--paper-3); transition: background-color 240ms ease; }
.steps i[data-on] { background: var(--ink); }
.steps i[data-now] { background: var(--saffron); }
.card { background: var(--card); border: 2.5px solid var(--line); border-radius: 24px; padding: 20px 16px; box-shadow: 0 5px 0 var(--shade); display: grid; gap: 18px; }
.card h2 { font-size: clamp(1.6rem, 7vw, 2.2rem); line-height: 1; }
.card .hint { color: var(--ink-2); margin-top: -10px; }
.step-in { animation: stepin 380ms var(--ease-out) both; }
@keyframes stepin { from { opacity: 0; transform: translateX(18px); } }
.field { display: grid; gap: 6px; }
.field > label, .field > .label { font-weight: 700; font-size: 15px; }
.field .opt { font-weight: 400; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--paper);
  font-size: 16px; /* 16px stops iOS zooming on focus */ transition: border-color 160ms ease, box-shadow 160ms ease;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(46, 91, 255, 0.18); }
.field[data-err] .input, .field[data-err] .select, .field[data-err] .textarea { border-color: var(--red); }
.err { color: var(--red); font-size: 14px; font-weight: 600; display: none; }
.field[data-err] .err, .err[data-show] { display: block; }
.row2 { display: grid; gap: 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--paper-2); cursor: pointer; font-size: 15px; line-height: 1.4; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pick-opt { position: relative; }
.pick-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick-card { display: grid; gap: 4px; min-height: 92px; padding: 12px; border-radius: 18px; border: 2.5px solid var(--line); align-content: end; transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out); box-shadow: 0 3px 0 var(--shade); }
.pick-card b { font: 800 18px/1.05 var(--display); letter-spacing: -0.02em; }
.pick-card small { font-size: 12px; font-weight: 600; opacity: 0.85; }
.pick-opt input:checked + .pick-card { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 6px 0 var(--shade), 0 0 0 3px var(--bg), 0 0 0 6px var(--hi); }
.pick-opt input:focus-visible + .pick-card { outline: 3px solid var(--blue); outline-offset: 4px; }
.pick-opt input:disabled + .pick-card { opacity: 0.4; filter: grayscale(0.6); }
.badge { justify-self: start; font: 700 11px/1 var(--mono); text-transform: uppercase; padding: 4px 7px; border-radius: 6px; background: var(--ink); color: var(--paper); }
.chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.chipset label { position: relative; }
.chipset input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chipset span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--paper); font-weight: 600; font-size: 15px; transition: background-color 140ms ease, transform 140ms var(--ease-out); }
.chipset input:checked + span { background: var(--ink); color: var(--paper); }
.chipset input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }
.chipset input:active + span { transform: scale(0.96); }
.members { display: grid; gap: 12px; }
.member { border-radius: 18px; border: 2px solid var(--line); padding: 14px; display: grid; gap: 12px; background: var(--paper); animation: memin 420ms var(--spring) both; }
@keyframes memin { from { opacity: 0; transform: scale(0.94) translateY(8px); } }
.member-head { display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font: 800 18px/1 var(--display); border: 2px solid var(--line); flex: none; }
.member-head b { font: 700 17px/1.1 var(--display); }
.member-head .icon-btn { margin-left: auto; width: 36px; height: 36px; font-size: 14px; }
.team-strip { display: flex; gap: 6px; flex-wrap: wrap; }
.team-strip .avatar { animation: memin 420ms var(--spring) both; }
.f-nav { display: flex; gap: 10px; justify-content: space-between; }
.f-nav .btn { flex: 1; }
.review { display: grid; gap: 4px; padding: 14px; border-radius: 16px; background: var(--paper-2); font-size: 15px; }
.review b { font-family: var(--display); font-size: 18px; letter-spacing: -0.02em; }
.banner { padding: 14px 16px; border-radius: 16px; border: 2px solid var(--line); font-weight: 600; }
.banner.warn { background: var(--sun); color: var(--k); }
.banner.bad { background: var(--bad-bg); border-color: var(--red); color: var(--bad-fg); }
.banner.info { background: var(--info-bg); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ticket */
.ticket { position: relative; border-radius: 26px; border: 2.5px solid var(--line); background: var(--paper); box-shadow: 0 6px 0 var(--shade); overflow: hidden; animation: ticketin 700ms var(--spring) both; }
@keyframes ticketin { from { opacity: 0; transform: translateY(30px) rotate(-3deg) scale(0.96); } }
.ticket-top { padding: 18px; display: grid; gap: 6px; }
.ticket-top .t-event { font: 800 clamp(1.8rem, 8vw, 2.6rem)/1 var(--display); letter-spacing: -0.03em; }
.ticket-top .t-team { font-size: 17px; font-weight: 600; }
.ticket-cut { height: 0; border-top: 2.5px dashed var(--line); margin: 0 18px; position: relative; }
.ticket-cut::before, .ticket-cut::after { content: ""; position: absolute; top: -15px; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); border: 2.5px solid var(--line); }
.ticket-cut::before { left: -34px; } .ticket-cut::after { right: -34px; }
.ticket-bottom { padding: 18px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.qr { width: 132px; height: 132px; border-radius: 12px; background: #fff; padding: 8px; border: 2px solid var(--line); image-rendering: pixelated; }
.t-ref { font: 700 clamp(1.15rem, 5vw, 1.5rem)/1.1 var(--mono); letter-spacing: -0.02em; word-break: break-all; }
.t-status { justify-self: start; font: 700 12px/1 var(--mono); text-transform: uppercase; padding: 6px 9px; border-radius: 8px; border: 2px solid var(--line); }
.t-status { color: var(--k); } .t-status.confirmed { background: var(--mint); } .t-status.waitlisted { background: var(--sun); } .t-status.pending { background: #DCE5FF; } .t-status.rejected, .t-status.cancelled { background: #FFD9CF; }
.t-info { display: grid; gap: 8px; }
.t-info small { color: var(--ink-2); font-size: 13px; }
.after { display: grid; gap: 10px; margin-top: 18px; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 80; overflow: hidden; }
.confetti i { position: absolute; top: -40px; width: 16px; height: 16px; border-radius: 4px; border: 2px solid var(--line); animation: fall var(--d, 1.8s) var(--ease-in-out) forwards; }
@keyframes fall { to { transform: translate(var(--x, 0), 110vh) rotate(var(--r, 540deg)); } }

/* ================= larger screens ================= */
@media (min-width: 600px) {
  :root { --g: 28px; }
  .toybox { height: min(60svh, 520px); }
  .row2 { grid-template-columns: 1fr 1fr; }
  .card { padding: 28px; }
  .pick { grid-template-columns: repeat(3, 1fr); }
  .cta-row .btn { flex: 0 0 auto; }
  .pool-legend { grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .dock { display: none; }
  .foot { padding-bottom: 40px; }
  .nav-cu, .nav-sep { display: block; }
  .wordmark { font-size: 23px; }
}
@media (min-width: 900px) {
  :root { --g: 40px; }
  .hero { grid-template-columns: 1.35fr 1fr; align-items: end; padding-top: 20px; gap: 36px; }
  .toybox { height: min(66svh, 560px); }
  .hero-copy { padding-bottom: 12px; }
  .carts { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .cart.tall { grid-row: span 2; }
  .cart.tall .scene { max-height: none; margin-block: auto; }
  .cart-blurb { display: block; }
  .sec-head { grid-template-columns: 1fr auto; align-items: end; }
  .jackpot { padding: 40px; }
  .quiz { padding: 36px; }
  .q-opts { grid-template-columns: 1fr 1fr; }
  .crew-card { padding: 44px; }
  .crew-art { width: 280px; right: 30px; bottom: -50px; }
  .venue-grid { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 36px; }
  .sheet { inset: 0; margin: auto; width: min(720px, 92vw); max-height: 86dvh; border-radius: 26px; border: 2.5px solid var(--line); box-shadow: 0 8px 0 var(--shade); transform: translateY(24px) scale(0.98); opacity: 0; transition: transform 300ms var(--ease-out), opacity 200ms ease, overlay 300ms allow-discrete, display 300ms allow-discrete; }
  .sheet[open] { transform: none; opacity: 1; }
  @starting-style { .sheet[open] { transform: translateY(24px) scale(0.98); opacity: 0; } }
  .sheet-grip { display: none; }
  .sheet-head { padding-top: 18px; }
  .nav-cu { width: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .ticker-track { animation: none; }
  .play * { animation: none !important; }
}

/* ---------- winners: countdown, then the podium ---------- */
.win-count { border-radius: 28px; background: var(--k); color: var(--cream); padding: 26px 18px; display: grid; gap: 16px; justify-items: start; }
.win-count .jackpot-label { color: var(--sun); }
.win-digits { display: grid; grid-template-columns: repeat(4, auto); gap: 8px clamp(10px, 4vw, 34px); }
.win-digits b { display: block; font: 700 clamp(2.6rem, 12vw, 6rem)/1 var(--mono); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.win-digits span { font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.7; }
.win-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.win-card { border-radius: 24px; border: 2.5px solid var(--line); box-shadow: 0 4px 0 var(--shade); padding: 18px; display: grid; gap: 12px; align-content: start; animation: winin 620ms var(--spring) both; }
.win-card:nth-child(2) { animation-delay: 80ms; } .win-card:nth-child(3) { animation-delay: 160ms; } .win-card:nth-child(4) { animation-delay: 240ms; }
.win-card:nth-child(5) { animation-delay: 320ms; } .win-card:nth-child(6) { animation-delay: 400ms; } .win-card:nth-child(n+7) { animation-delay: 480ms; }
@keyframes winin { from { opacity: 0; transform: translateY(24px) rotate(-2deg) scale(0.96); } }
.win-card h3 { font: 800 clamp(1.4rem, 5.4vw, 1.9rem)/1 var(--display); letter-spacing: -0.03em; }
.win-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.win-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(245, 240, 230, 0.6); color: var(--k); }
.c-ink .win-list li, .c-blue .win-list li { background: rgba(245, 240, 230, 0.14); color: var(--cream); }
.win-place { grid-row: span 2; font: 700 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; padding: 7px 8px; border-radius: 8px; background: var(--k); color: var(--sun); max-width: 10.5em; line-height: 1.25; text-align: center; }
.c-ink .win-place { background: var(--sun); color: var(--k); }
.win-name { font: 800 17px/1.2 var(--display); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.win-list li:first-child .win-name { font-size: 21px; }
.win-inst { grid-column: 2; font-size: 13px; opacity: 0.85; }
.win-amt { grid-row: span 2; grid-column: 3; font: 700 14px/1 var(--mono); }
.win-flag { justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; background: var(--mint); color: var(--ink); border: 2.5px solid var(--line); box-shadow: 0 3px 0 var(--shade); font: 800 16px/1.2 var(--display); text-decoration: none; animation: winin 620ms var(--spring) both; }
.win-flag::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--k); box-shadow: 0 0 0 0 rgba(23,20,15,0.5); animation: ping 1.6s ease-out infinite; }
@media (min-width: 700px) { .win-grid { grid-template-columns: repeat(2, 1fr); } .win-count { padding: 40px; } }
@media (min-width: 1000px) { .win-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- organisers' notice bar ---------- */
.notice { position: relative; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px var(--g); background: var(--info-bg); color: var(--ink); font-weight: 600; font-size: 15px; border-bottom: 1.5px solid var(--rule); }
.notice p { flex: 1; max-width: var(--max); margin: 0 auto; }
.notice.tone-important { background: var(--sun); color: var(--k); }
.notice a { font-weight: 700; }
.notice-x { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; }

/* ---------- coordinators ---------- */
.coords { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.coords li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.coord-links { display: inline-flex; flex-wrap: wrap; gap: 10px; font-size: 14px; }
.contact-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
.contact-card { border-radius: 18px; border: 1.5px solid var(--rule); background: var(--card); padding: 14px 16px; display: grid; gap: 10px; align-content: start; border-left: 6px solid var(--c, var(--saffron)); }
.contact-ev { display: inline-flex; align-items: center; gap: 10px; font: 800 18px/1.2 var(--display); letter-spacing: -0.02em; text-decoration: none; }
.contact-ev .rule-dot { width: 14px; height: 14px; }

/* ---------- about + FAQ ---------- */
.about-grid { display: grid; gap: 28px; }
.about-text { display: grid; gap: 14px; font-size: 17px; max-width: 62ch; align-content: start; }
.about-text h2 { margin-bottom: 6px; }
.faq { display: grid; align-content: start; }
.faq h2 { font-size: clamp(1.8rem, 7vw, 2.6rem); margin-bottom: 12px; }
.faq-item { border-top: 1.5px solid var(--rule); }
.faq-item:last-child { border-bottom: 1.5px solid var(--rule); }
.faq-item summary { list-style: none; cursor: pointer; padding: 14px 34px 14px 2px; font: 700 17px/1.3 var(--display); position: relative; touch-action: manipulation; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 700 22px/1 var(--mono); transition: transform 200ms var(--ease-out); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 2px 16px; color: var(--ink-2); max-width: 62ch; }

/* ---------- event pages ---------- */
.ev-main { max-width: 900px; margin: 0 auto; padding: 14px var(--g) 0; display: grid; gap: 18px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ink-2); }
.crumbs a { color: inherit; }
.ev-hero { display: grid; gap: 12px; padding: 22px 18px 16px; }
.ev-hero:hover, .ev-hero:active { transform: none; box-shadow: 0 4px 0 var(--shade); }
.ev-kicker { font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.85; }
.ev-hero h1 { font: 800 clamp(2.6rem, 11vw, 4.8rem)/0.92 var(--display); letter-spacing: -0.04em; }
.ev-blurb { font: 500 clamp(1.15rem, 4.6vw, 1.5rem)/1.3 var(--display); max-width: 30ch; }
.ev-hero .scene { max-height: 190px; }
.ev-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ev-article { padding: 4px 2px 0; }
.more-events h2 { font-size: clamp(1.8rem, 7vw, 2.6rem); margin: 28px 0 14px; }
.more-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.more-card { display: grid; gap: 4px; height: 100%; padding: 14px; border-radius: 18px; border: 2.5px solid var(--line); box-shadow: 0 3px 0 var(--shade); text-decoration: none; transition: transform 160ms var(--ease-out); }
.more-card b { font: 800 18px/1.1 var(--display); letter-spacing: -0.02em; }
.more-card span { font-size: 13px; font-weight: 600; opacity: 0.85; }
@media (hover: hover) and (pointer: fine) { .more-card:hover { transform: translateY(-2px) rotate(-0.5deg); } }
.rule-cta { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 700px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .ev-hero { grid-template-columns: 1.2fr 1fr; align-items: end; padding: 32px; }
  .more-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .about-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; }
  .contact-grid { grid-template-columns: repeat(4, 1fr); }
}

/* long college emails wrap instead of pushing the page sideways */
.coords li, .coord-links a, .contact-card, address { overflow-wrap: anywhere; min-width: 0; }
.w-100{--w:100%}.w-75{--w:75%}.w-25{--w:25%}.w-50{--w:50%}.w-59{--w:59%}.w-6{--w:6%}.w-17{--w:17%}.w-3{--w:3%}