/* Zero Fucks Games
   The brand is black ink on white. Words run wide, numbers run tall.
   One shape (the rounded square of the mark) and one angle (its slash, 32.4°).
   Colour only ever comes from the games themselves. */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: swap;
  src: url(/fonts/archivo-latin.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: 'Archivo'; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: swap;
  src: url(/fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #ffffff;
  --ink: #000000;
  --fog: #efefed;      /* quiet surfaces */
  --rule: #cfcfcb;     /* dividers */
  --mute: #66665f;     /* secondary text */
  --alarm: #d1001f;    /* errors only */
  /* colours used inside slabs (the inverted blocks) */
  --slab-mute: #b5b5b5;
  --slab-dim: #9a9a9a;
  --slab-soft: #cfcfcf;
  --slab-field: #1a1a1a;
  --slab-line: #444444;
  --slab-chip: #262626;
  --slab-alarm: #ff6a7d;
  --logo: none;          /* filter for black artwork sitting on the page */
  --logo-on-slab: invert(1);

  --font: 'Archivo', 'Arial Black', Arial, sans-serif;
  --angle: -32.4deg;
  --r-big: 36px;       /* the mark's corner */
  --r: 14px;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 80px; --s9: 128px;
}


/* night: the brand inverted — black page, white slabs, white logo */
:root[data-theme="dark"] {
  --paper: #000000; --ink: #ffffff;
  --fog: #161616; --rule: #333331; --mute: #a3a39c; --alarm: #ff5468;
  --slab-mute: #555550; --slab-dim: #6b6b66; --slab-soft: #3a3a37;
  --slab-field: #f1f1ef; --slab-line: #c4c4c0; --slab-chip: #e6e6e3; --slab-alarm: #c4001d;
  --logo: invert(1); --logo-on-slab: none;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #000000; --ink: #ffffff;
    --fog: #161616; --rule: #333331; --mute: #a3a39c; --alarm: #ff5468;
    --slab-mute: #555550; --slab-dim: #6b6b66; --slab-soft: #3a3a37;
    --slab-field: #f1f1ef; --slab-line: #c4c4c0; --slab-chip: #e6e6e3; --slab-alarm: #c4001d;
    --logo: invert(1); --logo-on-slab: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 450 17px/1.5 var(--font); font-variation-settings: 'wdth' 100;
  min-height: 100vh; display: flex; flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.dark :focus-visible, .slab :focus-visible { outline-color: var(--paper); }
p { margin: 0 0 var(--s3); }
h1, h2, h3 { margin: 0; font-weight: 900; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--s5); }
main { flex: 1; width: 100%; }
main:focus { outline: none; }

/* the two voices */
.wide { font-variation-settings: 'wdth' 125; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; line-height: .9; }
.tall { font-variation-settings: 'wdth' 62; font-weight: 900; line-height: .85; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: var(--s2) var(--s3); z-index: 10; }
.skip:focus { left: var(--s3); }
.sim-banner { background: var(--ink); color: var(--paper); text-align: center; font-size: 14px; padding: 7px var(--s4); }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); padding-top: var(--s5); padding-bottom: var(--s5); }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: var(--s5); font-weight: 600; font-size: 15px; }
.nav > a { text-decoration: none; }
.nav > a:hover { text-decoration: underline; }
.who { display: inline-flex; align-items: center; gap: var(--s2); text-decoration: none; padding: 9px 14px; border-radius: var(--r); background: var(--fog); }
.who:hover { background: var(--rule); }

/* buttons */
.btn {
  appearance: none; border: 0; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  font: 800 16px/1 var(--font); font-variation-settings: 'wdth' 112;
  background: var(--ink); color: var(--paper);
  padding: 16px 22px; border-radius: var(--r); transition: transform .35s cubic-bezier(.2,.7,.2,1), background-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.inv { background: var(--paper); color: var(--ink); }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.small { font-size: 14px; padding: 10px 14px; border-radius: 11px; }
.btn.big { font-size: 19px; padding: 20px 28px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* fields */
.field {
  font: 500 17px/1.2 var(--font); color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink); border-radius: var(--r); padding: 14px 16px; width: 100%; min-width: 0;
}
.slab .field { background: var(--slab-field); color: var(--paper); border-color: var(--slab-line); }
.slab .field:focus { border-color: var(--paper); outline: none; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.row { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: stretch; }
.row > .field { flex: 1 1 240px; }
.err { color: var(--alarm); font-weight: 700; margin-top: var(--s3); }
.slab .err { color: var(--slab-alarm); }
.ok { font-weight: 700; margin-top: var(--s3); }

/* status chip */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 99px; background: var(--fog); white-space: nowrap; }
.chip.open { background: var(--ink); color: var(--paper); }
.chip.open::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.6s steps(2) infinite; }
.slab .chip { background: var(--slab-chip); color: var(--slab-mute); }
.slab .chip.open { background: var(--paper); color: var(--ink); }
@keyframes blink { 50% { opacity: .2; } }

/* ---------- the slab: black rounded square, cut by the slash ---------- */
.slab {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink); color: var(--paper); border-radius: var(--r-big);
}
.slab { --cut: var(--ink); }

@media (prefers-reduced-motion: reduce) { .chip.open::before { animation: none; } }

/* ---------- home ---------- */
.hero { padding-top: var(--s6); }
.hero h1 { font-size: clamp(48px, 9.4vw, 148px); max-width: 12ch; }
.hero-meta { display: flex; justify-content: space-between; align-items: end; gap: var(--s6); flex-wrap: wrap; margin: var(--s6) 0 var(--s7); }
.hero-meta p { max-width: 44ch; font-size: 19px; margin: 0; }
.tally { display: flex; gap: var(--s7); }
.tally div { font-size: 56px; }
.tally .lbl { display: block; font: 600 14px/1.3 var(--font); letter-spacing: 0; color: var(--mute); margin-top: 6px; }

.live { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s6); padding: var(--s7); min-height: 380px; }
.live .prize { font-size: clamp(120px, 17vw, 260px); }
.live .side { display: flex; flex-direction: column; justify-content: space-between; gap: var(--s5); }
.live h2 { font-size: clamp(26px, 2.6vw, 38px); font-variation-settings: 'wdth' 125; text-transform: uppercase; line-height: 1; margin: var(--s3) 0 var(--s2); }
.live .split { color: var(--slab-mute); font-size: 17px; }
.live .clock { font-size: 64px; }
.live .clock small { color: var(--slab-dim); }
.live-empty { padding: var(--s7); }
.live-empty h2 { font-size: clamp(30px, 4vw, 52px); max-width: 16ch; }

.clock { white-space: nowrap; }
.clock small { font: 700 .32em/1 var(--font); letter-spacing: 0; margin: 0 .35em 0 .08em; vertical-align: .9em; }

.section { margin-top: var(--s9); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s5); flex-wrap: wrap; margin-bottom: var(--s6); }
.section-head h2 { font-size: clamp(40px, 6vw, 88px); }
.section-head p { color: var(--mute); max-width: 40ch; margin: 0; }

/* giveaway rows */
.rows { border-top: 3px solid var(--ink); }
.grow {
  display: grid; grid-template-columns: 200px minmax(0, 1fr) 150px 170px; gap: var(--s5); align-items: center;
  padding: var(--s5) var(--s4); border-bottom: 1px solid var(--rule); text-decoration: none;
  border-radius: 0; transition: background-color .35s ease, color .35s ease, border-radius .35s ease;
}
.grow:hover { background: var(--ink); color: var(--paper); border-radius: var(--r); }
.grow:hover .chip { background: var(--paper); color: var(--ink); }
.grow:hover .meta { color: var(--slab-mute); }
.grow .amt { font-size: 76px; }
.grow h3 { font-size: 22px; font-variation-settings: 'wdth' 112; font-weight: 800; line-height: 1.1; margin-bottom: 6px; }
.grow .meta { color: var(--mute); font-size: 15px; }
.grow .when { font-weight: 700; font-size: 15px; text-align: right; }
.grow .when .clock { font: 900 30px/1 var(--font); font-variation-settings: 'wdth' 62; }
.grow .state { text-align: right; }

/* drops */
.drops { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s5); }
.drop { text-decoration: none; display: block; }
.drop .art { position: relative; aspect-ratio: 408 / 546; border-radius: var(--r-big); overflow: hidden; background: var(--fog); }
.drop .art img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.drop:hover .art img { transform: scale(1.03); }
.drop .num { display: flex; justify-content: space-between; align-items: baseline; margin: var(--s3) 0 2px; }
.drop .num b { font-size: 40px; }
.drop .num span { font-size: 14px; font-weight: 700; color: var(--mute); }
.drop h3 { font-size: 20px; font-weight: 800; font-variation-settings: 'wdth' 112; }
.drop.next .art { display: grid; place-items: center; background: var(--fog); }
.drop.next .art img { width: 46%; height: auto; opacity: .16; }

/* steps */
.how { margin-top: var(--s9); padding: var(--s8) var(--s7); }
.how h2 { font-size: clamp(40px, 6vw, 88px); margin-bottom: var(--s7); position: relative; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); counter-reset: s; position: relative; }
.steps li { counter-increment: s; color: var(--slab-mute); }
.steps li::before { content: counter(s); display: block; font: 900 120px/.8 var(--font); font-variation-settings: 'wdth' 62; color: var(--paper); margin-bottom: var(--s4); }
.steps strong { display: block; color: var(--paper); font-size: 22px; font-variation-settings: 'wdth' 112; margin-bottom: var(--s2); }

/* ---------- giveaway page ---------- */
.gpage { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: var(--s7); padding-top: var(--s6); align-items: start; }
.gpage h1 { font-size: clamp(40px, 6vw, 92px); margin: var(--s4) 0 var(--s5); }
.gpage .prize { font-size: clamp(110px, 15vw, 220px); }
.gpage .split { font-size: 19px; color: var(--mute); margin-top: var(--s2); }
.facts { display: grid; grid-template-columns: 130px 1fr; gap: var(--s3) var(--s5); margin: var(--s6) 0 0; padding-top: var(--s5); border-top: 3px solid var(--ink); }
.facts dt { color: var(--mute); font-weight: 600; }
.facts dd { margin: 0; font-weight: 600; }
.panel-act { position: sticky; top: var(--s5); padding: var(--s6); }
.panel-act h3 { font-size: 26px; font-variation-settings: 'wdth' 118; text-transform: uppercase; line-height: 1; margin-bottom: var(--s3); }
.panel-act p { color: var(--slab-mute); }
.panel-act .clock { font-size: 56px; display: block; margin: var(--s2) 0 var(--s5); }
.panel-act .clock small { color: var(--slab-dim); }
.panel-act .btn { width: 100%; }
.panel-act form { display: grid; gap: var(--s2); }
.done-mark { font-size: 64px; line-height: .9; margin-bottom: var(--s3); }

.block { margin-top: var(--s8); }
.block h2 { font-size: clamp(30px, 3.4vw, 46px); margin-bottom: var(--s4); }
.table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th { text-align: left; font-weight: 700; font-size: 13px; color: var(--mute); padding: 10px 12px 10px 0; border-bottom: 3px solid var(--ink); }
.table td { padding: 13px 12px 13px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.table .n { font-variant-numeric: tabular-nums; }
.table .actions { display: flex; gap: var(--s2); justify-content: flex-end; flex-wrap: wrap; }
.table .first td { font-weight: 800; }
.scroll { overflow-x: auto; }
.hash { font: 500 13px/1.6 ui-monospace, Menlo, Consolas, monospace; word-break: break-all; color: var(--mute); background: var(--fog); padding: var(--s4); border-radius: var(--r); }
.back { display: inline-block; margin-top: var(--s7); font-weight: 700; }

/* ---------- narrow pages (login, me, fair, admin) ---------- */
.narrow { max-width: 760px; padding-top: var(--s6); }
.narrow h1 { font-size: clamp(42px, 7vw, 96px); margin-bottom: var(--s5); }
.narrow .lede { font-size: 19px; max-width: 46ch; margin-bottom: var(--s6); }
.card { padding: var(--s6); }
.card h2 { font-size: 26px; font-variation-settings: 'wdth' 118; text-transform: uppercase; margin-bottom: var(--s4); }
.card p, .card li { color: var(--slab-mute); }
.target { display: flex; align-items: baseline; gap: var(--s3); flex-wrap: wrap; margin: var(--s2) 0 var(--s4); }
.target .tall { font-size: clamp(110px, 20vw, 200px); }
.target .x { font-size: 48px; font-weight: 900; color: var(--slab-dim); }
.howto { padding-left: 1.3em; margin: 0 0 var(--s5); }
.howto li { margin-bottom: var(--s2); }
.sites { display: inline-flex; padding: 4px; border-radius: var(--r); background: var(--slab-chip); margin-bottom: var(--s4); }
.sites button { font: 700 15px/1 var(--font); background: transparent; color: var(--slab-mute); border: 0; padding: 11px 16px; border-radius: 10px; cursor: pointer; }
.sites button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.verified { font-size: clamp(56px, 10vw, 110px); margin: var(--s4) 0; }

.steps-fair { padding-left: 1.3em; margin: 0 0 var(--s7); }
.steps-fair li { margin-bottom: var(--s3); }
.form-light { display: grid; gap: var(--s4); }
.match { font-size: 22px; font-weight: 900; font-variation-settings: 'wdth' 118; text-transform: uppercase; margin-top: var(--s4); }
.match.bad { color: var(--alarm); }

/* admin */
.admin { padding-top: var(--s5); }
.admin h1 { font-size: clamp(42px, 6vw, 84px); margin-bottom: var(--s6); }
.box { border: 2px solid var(--ink); border-radius: var(--r-big); padding: var(--s6); margin-bottom: var(--s6); }
.box h2 { font-size: 30px; margin-bottom: var(--s5); }
.stats { display: flex; gap: var(--s7); flex-wrap: wrap; align-items: end; }
.stats div { font-size: 72px; }
.stats span { display: block; font: 600 14px/1.3 var(--font); letter-spacing: 0; color: var(--mute); margin-top: 6px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.check { display: inline-flex; gap: var(--s2); align-items: center; font-weight: 600; margin-right: var(--s4); }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
select.field { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.out { font: 500 14px/1.5 ui-monospace, Menlo, Consolas, monospace; background: var(--fog); padding: var(--s4); border-radius: var(--r); word-break: break-all; margin-top: var(--s4); }

/* footer & toast */
.foot { margin-top: var(--s9); border-top: 3px solid var(--ink); }
.foot-mark { width: 100%; height: auto; display: block; }
.foot-in { display: grid; grid-template-columns: 120px 1fr; gap: var(--s6); padding-top: var(--s7); padding-bottom: var(--s7); align-items: start; }
.foot p { max-width: 60ch; margin: 0 0 var(--s2); font-weight: 600; }
.foot .fine { color: var(--mute); font-weight: 450; font-size: 15px; }
.foot-links { display: flex; gap: var(--s5); margin-top: var(--s4) !important; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); padding: 14px 20px; border-radius: var(--r); font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .35s ease, transform .45s cubic-bezier(.2,.8,.2,1); max-width: calc(100% - 32px); z-index: 20; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .live { grid-template-columns: 1fr; padding: var(--s6); }
  .gpage { grid-template-columns: 1fr; }
  .panel-act { position: static; }
  .grow { grid-template-columns: 150px minmax(0, 1fr) 130px; }
  .grow .state { display: none; }
  .grow .amt { font-size: 60px; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 var(--s4); }
  .nav > a { display: none; }
  .brand img { height: 30px; }
  .hero h1 { font-size: 15vw; }
  .tally { gap: var(--s5); }
  .tally div { font-size: 44px; }
  .live { padding: var(--s5); border-radius: 26px; }
  .live .clock { font-size: 48px; }
  .top { padding-top: var(--s4); padding-bottom: var(--s4); }
  .hero { padding-top: var(--s4); }
  .section { margin-top: var(--s8); }
  .grow { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); padding: var(--s5) var(--s2); }
  .grow .amt { font-size: 56px; }
  .grow .when { text-align: left; }
  .grow .when br { display: none; }
  .grow .when .clock { font-size: 24px; margin-left: 6px; }
  .grow .state { display: none; }
  .drops { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
  .drop .art { border-radius: 22px; }
  .drop .num b { font-size: 30px; }
  .how { margin-top: var(--s8); }
  .how { padding: var(--s7) var(--s5); border-radius: 26px; }
  .steps { grid-template-columns: 1fr; }
  .steps li::before { font-size: 88px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: var(--s3); }
  .card, .panel-act, .box { padding: var(--s5); }
  .foot-in { grid-template-columns: 64px 1fr; gap: var(--s4); }
  .stats div { font-size: 52px; }
}

/* ---------- motion ---------- */
/* slot reels: every digit spins and lands, left to right */
.reel { display: inline-block; height: .92em; overflow: hidden; vertical-align: top; }
.reel > span { display: block; transition: transform var(--dur, 1.4s) cubic-bezier(.16,.84,.3,1.08); will-change: transform; }
.reel > span > b { display: block; height: .92em; line-height: .92em; font-weight: inherit; }
.reel-txt { display: inline-block; height: .92em; line-height: .92em; vertical-align: top; }

/* headline lines rise out of a mask on first load */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rise { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.rise > span { display: inline-block; transform: translateY(105%); animation: rise .8s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--i) * 90ms + 60ms); }
@keyframes rise { to { transform: none; } }

/* live ticker */
.ticker { background: var(--ink); color: var(--paper); overflow: hidden; margin-top: var(--s7); white-space: nowrap; position: relative; }
.ticker-track { display: inline-flex; gap: var(--s6); padding: 16px 0; animation: tick var(--len, 60s) linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; text-decoration: none; }
.ticker-item img { width: 18px; height: auto; filter: var(--logo-on-slab); }
.ticker-item b { font-weight: 900; font-variation-settings: 'wdth' 112; }
.ticker-item .won { background: var(--paper); color: var(--ink); border-radius: 6px; padding: 2px 7px; font-weight: 900; }
.ticker-item .dim { color: var(--slab-dim); }
@keyframes tick { to { transform: translateX(-50%); } }

/* the mark keeps turning on the next-drop tile */
.drop.next .art img { animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* new entry bump */
.bump { animation: bump .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes bump { 40% { transform: scale(1.08); } }

/* clock seconds tick */
.clock .s { display: inline-block; }
.clock .s.tickd { animation: secs .35s ease-out; }
@keyframes secs { from { transform: translateY(-18%); opacity: .4; } }

@media (prefers-reduced-motion: reduce) {
  .reel > span { transition: none; }
  .rise > span { animation: none; transform: none; }
  .ticker-track { animation: none; }
  .drop.next .art img, .bump, .clock .s.tickd { animation: none; }
}

/* ---------- day / night ---------- */
.brand img, .foot-mark, .drop.next .art img { filter: var(--logo); }
.slab strong { color: var(--paper); }
.slab .btn.sub { background: var(--slab-chip); color: var(--paper); }
.theme {
  appearance: none; border: 0; cursor: pointer; width: 44px; height: 44px; border-radius: var(--r);
  background: var(--fog); color: var(--ink); display: inline-grid; place-items: center; transition: background .15s;
}
.theme:hover { background: var(--rule); }
.theme svg { width: 22px; height: 22px; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
:root[data-theme="dark"] .theme svg { transform: rotate(180deg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme svg { transform: rotate(180deg); } }
body { transition: background-color .4s ease, color .4s ease; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------- follow us on Stake ---------- */
.follow { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s7); align-items: center;
  border: 3px solid var(--ink); border-radius: var(--r-big); padding: var(--s7); }
.follow h2 { font-size: clamp(36px, 5vw, 76px); margin-bottom: var(--s4); }
.follow p { font-size: 18px; max-width: 46ch; }
.follow-btns { display: flex; gap: var(--s3); flex-wrap: wrap; margin: var(--s5) 0 var(--s4); }
.follow-note { font-size: 16px !important; margin: 0; line-height: 1.9; }
.follow-note .chip { margin-right: 8px; vertical-align: 1px; }
.follow-art { text-align: center; }
.follow-amt { font-size: clamp(140px, 18vw, 260px); }
.follow-art .lbl { font-weight: 700; color: var(--mute); margin-top: var(--s2); }
.follow-art img { width: 60%; margin: 0 auto; filter: var(--logo); animation: spin 18s linear infinite; }
.free-pill { text-decoration: none !important; font-weight: 800; font-size: 14px; padding: 9px 13px; border-radius: 11px;
  box-shadow: inset 0 0 0 2px var(--ink); white-space: nowrap; }
.free-pill:hover { background: var(--ink); color: var(--paper); }
.free-pill[hidden] { display: none !important; }
@media (max-width: 1000px) { .follow { grid-template-columns: 1fr; padding: var(--s6); } .follow-art { text-align: left; } .follow-amt { font-size: 140px; } }
@media (max-width: 680px) {
  .nav > a.free-pill { display: inline-block; }
  .follow { padding: var(--s5); border-radius: 26px; }
  .follow-btns .btn { width: 100%; }
  .follow-art { order: -1; }
  .follow-amt { font-size: 110px; }
}
@media (prefers-reduced-motion: reduce) { .follow-art img { animation: none; } }

.short { display: none; }
.toast { box-shadow: 0 0 0 2px var(--paper); }
#account .btn, .who { white-space: nowrap; }
@media (max-width: 680px) {
  .nav { gap: var(--s2); }
  .short { display: inline; } .long { display: none; }
  .theme { width: 40px; height: 40px; }
  .free-pill { padding: 8px 10px; font-size: 13px; }
}
@media (max-width: 360px) { .brand img { height: 24px; } }

/* ---------- the slash from the logo ----------
   A white bar in difference mode: on a black slab it reads white, on a white slab (night) it reads black —
   either way it looks like the gap in the mark and keeps whatever it crosses legible. */
.slab.cut::after {
  content: ''; position: absolute; z-index: 3; pointer-events: none;
  left: -15%; right: -15%; top: var(--cut-y, 60%); height: clamp(10px, 1.1vw, 16px);
  background: #fff; mix-blend-mode: difference;
  transform: translateY(-50%) rotate(var(--angle));
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.2s cubic-bezier(.65,0,.35,1) .2s;
}
.slab.cut.in::after { clip-path: inset(0 0 0 0); }
.live.cut { --cut-y: 64%; }
.how.cut { --cut-y: 70%; }
.panel-act.cut { --cut-y: 92%; }
.card.cut { --cut-y: 90%; }

/* ---------- smoother motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
  .reveal.in { opacity: 1; transform: none; }
  .grow .amt, .grow h3 { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
  .grow:hover .amt { transform: translateX(8px); }
  .grow:hover h3 { transform: translateX(4px); }
  .live .btn { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
  .live:hover .btn { transform: translateX(6px); }
  .follow-btns .btn:hover, .btn.big:hover { transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) { .slab.cut::after { clip-path: none; transition: none; } }

/* soft edges on the live ticker */
.ticker { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }

/* page-to-page transition (View Transitions); the header stays put */
:root.vt-page .top { view-transition-name: top; }
:root.vt-page::view-transition-old(root) { animation: vt-out .32s cubic-bezier(.4,0,1,1) both; }
:root.vt-page::view-transition-new(root) { animation: vt-in .6s cubic-bezier(0,0,.2,1) .05s both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-14px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(22px); } }

/* ---------- grand prize block (e.g. the Rolex) ---------- */
.prize-slab { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s6); align-items: center;
  padding: var(--s7); margin-bottom: var(--s6); text-decoration: none; min-height: 560px; }
.prize-slab.cut { --cut-y: 78%; }
.pz-copy { position: relative; z-index: 4; }
.pz-tags { display: flex; gap: var(--s2); margin-bottom: var(--s4); }
.slab .chip.pz-tag { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--slab-line); }
.prize-slab h2 { font-size: clamp(40px, 5.6vw, 92px); line-height: .92; margin-bottom: var(--s4); }
.pz-name { color: var(--slab-mute); font-size: 18px; margin-bottom: var(--s5); }
.pz-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s5); margin: 0 0 var(--s5); max-width: 460px; }
.pz-facts dt { font-size: 13px; font-weight: 600; color: var(--slab-dim); }
.pz-facts dd { margin: 2px 0 0; font-weight: 800; font-size: 18px; font-variation-settings: 'wdth' 112; }
.pz-clock { margin-bottom: var(--s5); }
.pz-clock .lbl { display: block; font-size: 13px; font-weight: 600; color: var(--slab-dim); margin-bottom: 4px; }
.pz-clock .clock { font-size: 56px; }
.pz-clock .clock small { color: var(--slab-dim); }
.pz-art { position: relative; z-index: 4; display: grid; place-items: center; min-height: 460px; }
.pz-art img { position: relative; width: min(100%, 440px); height: auto; filter: drop-shadow(0 40px 50px rgba(0,0,0,.55)); }
.pz-glow { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.22), rgba(255,255,255,0)); }
:root[data-theme="dark"] .pz-glow { background: radial-gradient(closest-side, rgba(0,0,0,.12), rgba(0,0,0,0)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pz-glow { background: radial-gradient(closest-side, rgba(0,0,0,.12), rgba(0,0,0,0)); } }
@media (prefers-reduced-motion: no-preference) {
  .pz-art img { animation: float 6s ease-in-out infinite; }
  .pz-glow { animation: breathe 6s ease-in-out infinite; }
  .prize-slab .btn { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
  .prize-slab:hover .btn { transform: translateX(6px); }
}
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-16px) rotate(1.5deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.06); opacity: 1; } }

.gp-prize { display: flex; align-items: center; gap: var(--s5); margin: var(--s4) 0 var(--s2); }
.gp-prize > div { min-width: 0; }
.gp-prize img { width: 180px; flex: none; height: auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,.35)); }
.gp-name { font-size: clamp(24px, 2.4vw, 38px); line-height: 1.05; overflow-wrap: break-word; margin-bottom: var(--s2); }

@media (max-width: 1000px) {
  .prize-slab { grid-template-columns: 1fr; padding: var(--s6); min-height: 0; }
  .pz-art { order: -1; min-height: 300px; }
  .prize-slab.cut { --cut-y: 24%; }
  .pz-art img { width: min(70%, 320px); }
}
@media (max-width: 680px) {
  .prize-slab { padding: var(--s5); border-radius: 26px; }
  .pz-clock .clock { font-size: 44px; }
  .prize-slab.cut { --cut-y: 20%; }
  .gp-prize { flex-direction: column; align-items: flex-start; }
  .gp-prize img { width: 140px; }
}
