/* VALBLOX launch countdown. One static page, no build step, no external requests.
   Colours are the VALBLOX tokens (brand/viking/tokens.css, site/valblox/styles.css). The plates are the site's own
   chamfered construction (styles.css "chamfered plates"): the element is the iron rim, ::before the top/bottom bands,
   ::after the face cut from true insets; the board is a heavy plate (Norse notch, forged rim), the buttons light ones.
   The mascot is drawn in rig units on one 152 x 172 canvas (tools/mascot.py); the board's top edge is the canvas
   line y = 130, so every layer lines up from --mw alone. */

@font-face { font-family: "GoldenSmile"; src: url("assets/fonts/GoldenSmile.otf") format("opentype"); font-display: block; }
@font-face { font-family: "Skranji"; src: url("assets/fonts/Skranji.ttf") format("truetype"); font-display: block; }

:root {
  --page: #191F2A; --deep: #141B28; --hero-dark: #131A24; --track: #1B212C;
  --raised-a: #303B50; --raised-b: #283041; --acc-a: #2B333F; --acc-b: #212832;
  --rim-iron: #10151D; --iron-hi2: #4B5B71; --iron-hi1: #323E4F; --iron-lo1: #10151D; --iron-lo2: #0A0E14;
  --muted: #96A1B6; --muted-2: #AAB6CB; --white: #FFFFFF; --ink: #091019;
  --lilac: #8FD4F3; --lilac-rgb: 143, 212, 243; --lilac-light: #B9E8FE; --lilac-lighter: #E0F5FF;
  --gold: #EAB670; --gold-rgb: 234, 182, 112;
  --green: #58FFC3; --green-rgb: 88, 255, 195; --green-2-rgb: 18, 221, 141; --green-bevel: 54, 158, 140; --green-deep: #1A2629;
  --salmon: #FE9C8F; --salmon-rgb: 254, 156, 143;
  --hi: 58, 69, 86; --lo: 19, 23, 31; --gold-hi: 143, 119, 86; --gold-lo: 39, 30, 18;
  --raised: linear-gradient(180deg, var(--raised-a) 0%, var(--raised-b) 100%);
  --bz0: #FDE4C4; --bz1: #F4CD9A; --bz2: #EAB771; --bz3: #C6944C; --bz4: #996E30; --bz5: #64471A;

  /* layout: everything on the board scales from its width; the mascot from --mw */
  --bw: min(calc(100vw - 32px), 720px);
  --mw: clamp(150px, min(calc(var(--bw) * .52), 30vh), 300px);
  --cell-w: calc(var(--bw) * .0965);
  --cell-h: calc(var(--cell-w) * 1.4);
  --gap: calc(var(--bw) * .011);
  --sep: calc(var(--bw) * .034);
}

* { box-sizing: border-box; }
html { background: var(--deep); color-scheme: dark; }
html, body { margin: 0; }
body {
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow-x: clip;
  background: var(--deep); color: var(--muted);
  font-family: "GoldenSmile", system-ui, sans-serif; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
p, h1 { margin: 0; font-weight: 400; }
[hidden] { display: none !important; }
.ic { width: 20px; height: 20px; flex: none; }

/* ---------------------------------------------------------------- sky: the loader's fjord + slow square snow */
.sky {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(70% 55% at 50% 48%, rgba(20, 27, 40, 0) 0%, rgba(20, 27, 40, .55) 100%),
    url("assets/3d/bg-loader.webp") center 58% / cover no-repeat,
    var(--deep);
}
.snow { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-aspect-ratio: 4/5) {
  /* portrait: keep the fjord's two shores in, the lake under the board */
  .sky { background:
    radial-gradient(90% 60% at 50% 50%, rgba(20, 27, 40, 0) 0%, rgba(20, 27, 40, .5) 100%),
    url("assets/3d/bg-loader.webp") 50% 72% / auto 78vh no-repeat,
    linear-gradient(180deg, #0B111C 0%, #0D1421 55%, #0C1320 100%); }
}

/* ---------------------------------------------------------------- chamfered plates (styles.css construction) */
.pl, .btn, .cd-board, .cd-cell, .cd-field, .cd-ok__plate {
  --c: 8px; --rw: 1px; --rim: var(--rim-iron); --n: 4px;
  --bt: rgba(var(--hi), .36); --bb: rgba(var(--lo), .56); --face: var(--raised); --glow: none;
  --cap-c: 6px; --cap-n: 1px;
  --k: min(var(--c), var(--cap-c)); --kn: min(var(--n), var(--cap-n));
  --ci: calc(var(--k) - var(--rw) * 0.4142);
  --na: calc(var(--ci) + var(--kn) * 0.4142); --nb: calc(var(--ci) + var(--kn) * 1.4142);
  position: relative; isolation: isolate; border: 0; background: var(--rim);
  clip-path: polygon(var(--k) 0, calc(100% - var(--k)) 0, 100% var(--k), 100% calc(100% - var(--k)),
                     calc(100% - var(--k)) 100%, var(--k) 100%, 0 calc(100% - var(--k)), 0 var(--k));
}
.pl::before, .pl::after, .btn::before, .btn::after, .cd-board::before, .cd-board::after, .cd-cell::before, .cd-cell::after,
.cd-field::before, .cd-field::after, .cd-ok__plate::before, .cd-ok__plate::after {
  content: ""; position: absolute; inset: var(--rw); pointer-events: none;
}
.pl::before, .btn::before, .cd-board::before, .cd-cell::before, .cd-field::before, .cd-ok__plate::before {
  z-index: -2; background: linear-gradient(var(--bt) 0 50%, var(--bb) 50% 100%), var(--face);
  clip-path: polygon(var(--ci) 0, calc(100% - var(--ci)) 0, 100% var(--ci), 100% calc(100% - var(--ci)),
                     calc(100% - var(--ci)) 100%, var(--ci) 100%, 0 calc(100% - var(--ci)), 0 var(--ci));
}
.pl::after, .btn::after, .cd-board::after, .cd-cell::after, .cd-field::after, .cd-ok__plate::after {
  z-index: -1; background: var(--face); box-shadow: var(--glow);
  clip-path: polygon(var(--na) var(--kn), calc(100% - var(--na)) var(--kn), 100% var(--nb), 100% calc(100% - var(--nb)),
                     calc(100% - var(--na)) calc(100% - var(--kn)), var(--na) calc(100% - var(--kn)), 0 calc(100% - var(--nb)), 0 var(--nb));
}

/* ---------------------------------------------------------------- buttons (styles.css .btn, gold, frost) */
.btn {
  --cap-n: 2px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 22px 4px;
  font-size: 14px; letter-spacing: 1.12px; color: var(--muted); text-transform: uppercase; white-space: nowrap;
  transition: filter .15s;
}
@media (prefers-reduced-motion: no-preference) { .btn { transition: filter .15s, transform 80ms; } }
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: translateY(1px); filter: brightness(.94); }
.btn:focus-visible { outline: 2px solid var(--lilac-light); outline-offset: 2px; --rim: var(--lilac); --glow: inset 0 0 14px rgba(var(--lilac-rgb), .35); }
.btn--gold {
  color: var(--gold); --rim: #2A2114;
  --bt: rgba(var(--gold-hi), .36); --bb: rgba(var(--gold-lo), .56);
  --face: linear-gradient(rgba(var(--gold-rgb), .36) 0%, rgba(var(--gold-rgb), 0) 100%), linear-gradient(var(--acc-a) 0%, var(--acc-b) 100%);
  --glow: inset 0 0 20px rgba(var(--gold-rgb), .24);
}
.btn--frost {
  color: var(--lilac-light); --rim: #0F1C26;
  --bt: rgba(56, 144, 179, .36); --bb: rgba(var(--lo), .56);
  --face: linear-gradient(rgba(var(--lilac-rgb), .22) 0%, rgba(var(--lilac-rgb), 0) 100%), linear-gradient(var(--acc-a) 0%, var(--acc-b) 100%);
  --glow: inset 0 0 20px rgba(var(--lilac-rgb), .2);
}
.btn .ic { width: 19px; height: 19px; }

/* ---------------------------------------------------------------- page column */
.cd {
  position: relative; z-index: 1; flex: 1 0 auto; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: clamp(18px, 4.2vh, 52px) 16px clamp(14px, 2.6vh, 30px);
}

/* the stacked lockup; its shield turns once the rendered loop plays (countdown.js, as site.js does it).
   Shield box in lockup units: 52.5,0 95x95 of 200x134 */
.cd-brand { position: relative; width: clamp(118px, 17vh, 184px); }
.cd-brand__lockup { width: 100%; height: auto; }
.cd-brand__shield { position: absolute; left: 26.25%; top: 0; width: 47.5%; height: 70.9%; pointer-events: none; opacity: 0; }
.cd-brand.has-loop .cd-brand__shield { opacity: 1; }

/* kicker, flanked by the knotwork divider like the site's section heads (.h-div) */
.cd-kicker {
  position: relative; display: flex; align-items: center; justify-content: center; gap: clamp(8px, 1.4vw, 16px);
  margin-top: clamp(10px, 2.2vh, 22px); max-width: 100%;
  font-size: clamp(19px, min(3.4vw, 4.6vh), 40px); line-height: 1.15; letter-spacing: .5px; text-align: center;
  color: var(--lilac-light); text-transform: uppercase; text-shadow: 0 2px 0 rgba(0, 0, 0, .3);
}
.cd-kicker::before, .cd-kicker::after {
  content: ""; width: clamp(38px, 6vw, 76px); aspect-ratio: 76 / 14; flex: none; margin-top: -.08em;
  background: url("assets/img/divider-frost.svg") right center / contain no-repeat;
}
.cd-kicker::after { transform: scaleX(-1); }
.cd-kicker__t { display: block; white-space: nowrap; }
[data-state="live"] .cd-kicker { color: var(--green); }
[data-state="live"] .cd-kicker::before, [data-state="live"] .cd-kicker::after { filter: hue-rotate(-40deg) saturate(1.2); }

/* ---------------------------------------------------------------- stage: mascot behind, board, hands in front */
/* the top margin is the headroom for the LIVE jump (he rises 9% of his box, his horns lead) */
.cd-stage { position: relative; display: flex; flex-direction: column; align-items: center; margin-top: calc(var(--mw) * .06); }
/* the mascot's box is cut at the board's top edge (canvas y 130 = 75.58% of 172), with room above for the LIVE
   jump and the raised fists; the board overlaps the box from that line down */
.cd-mascot {
  position: relative; z-index: 1; width: var(--mw); aspect-ratio: 152 / 172; pointer-events: none;
  margin-bottom: calc(var(--mw) * -42 / 152);
  clip-path: polygon(-60% -90%, 160% -90%, 160% calc(75.58% + 3px), -60% calc(75.58% + 3px));
}
.cd-mascot__rig { position: absolute; inset: 0; will-change: transform; }
.cd-mascot__rig img, .cd-hands img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cd-mascot__blink { opacity: 0; }
.cd-mascot.is-blink .cd-mascot__blink { opacity: 1; }
.cd-mascot__live { opacity: 0; }
[data-state="live"] .cd-mascot__peek, [data-state="live"] .cd-mascot__blink { opacity: 0; }
[data-state="live"] .cd-mascot__live { opacity: 1; }
[data-state="live"] .cd-mascot__rig { transform: translateY(-9%); }
.cd-hands {
  position: absolute; z-index: 3; top: 0; left: 50%; width: var(--mw); aspect-ratio: 152 / 172;
  transform: translateX(-50%); pointer-events: none;
}
[data-state="live"] .cd-hands { visibility: hidden; }

/* the board: a heavy plate with a forged rim, the frost edge line along its top like the home hero */
.cd-board {
  z-index: 2; width: var(--bw);
  --c: calc(var(--bw) * .032); --n: 6px; --rw: 2px; --cap-c: 100px; --cap-n: 100px;
  --bt: rgba(var(--hi), .24); --bb: rgba(var(--lo), .56);
  --face:
    radial-gradient(60% 120% at 50% -30%, rgba(var(--lilac-rgb), .1) 0%, rgba(var(--lilac-rgb), 0) 100%),
    linear-gradient(180deg, #283244 0%, #212A38 55%, #1D2532 100%);
  background:
    linear-gradient(var(--iron-hi2) 0 0) 0 0 / 50% var(--c) no-repeat,
    linear-gradient(var(--iron-hi2) 0 0) 100% 0 / 50% var(--rw) no-repeat,
    linear-gradient(var(--iron-hi1) 0 0) 100% var(--rw) / 50% calc(var(--c) - var(--rw)) no-repeat,
    linear-gradient(var(--iron-hi1) 0 0) 0 var(--c) / 50% calc(100% - 2 * var(--c)) no-repeat,
    linear-gradient(var(--iron-lo2) 0 0) 0 100% / 50% var(--rw) no-repeat,
    linear-gradient(var(--iron-lo2) 0 0) 100% 100% / 50% var(--c) no-repeat,
    var(--iron-lo1);
  /* the top padding keeps the slots clear of his fingers (they hang 0.153 of --mw below the ledge, outline in) */
  padding: max(calc(var(--bw) * .036), calc(var(--mw) * .158 + 2px)) calc(var(--bw) * .04) calc(var(--bw) * .026);
}
.cd-board__edge {
  position: absolute; z-index: 2; left: 18%; right: 18%; top: 2px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgba(var(--lilac-rgb), 0) 0%, rgb(var(--lilac-rgb)) 50%, rgba(var(--lilac-rgb), 0) 100%);
  box-shadow: 0 0 6px 1px rgba(var(--lilac-rgb), .35);
}
[data-state="live"] .cd-board__edge {
  background: linear-gradient(90deg, rgba(var(--green-rgb), 0) 0%, rgb(var(--green-rgb)) 50%, rgba(var(--green-rgb), 0) 100%);
  box-shadow: 0 0 6px 1px rgba(var(--green-rgb), .35);
}
.cd-board__units { display: flex; align-items: flex-start; justify-content: space-between; perspective: 600px; }
.cd-unit { display: flex; flex-direction: column; align-items: center; flex: none; }
.cd-cells { display: flex; gap: var(--gap); }

/* a digit's slot: a well cut into the board (inverted bands: shadowed top, lit lip at the bottom) */
.cd-cell {
  display: block; width: var(--cell-w); height: var(--cell-h);
  --c: calc(var(--cell-w) * .14); --n: 3px; --cap-c: 12px; --cap-n: 2px;
  --bt: rgba(var(--lo), .9); --bb: rgba(var(--hi), .55);
  --face: linear-gradient(180deg, #121925 0%, #18202D 50%, #141B27 100%);
}
/* the reel window: glyphs roll through it; drum shading in flat bands, darker toward the top and bottom */
.cd-reel { position: absolute; inset: 3px 2px; overflow: hidden; }
.cd-reel::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(9, 13, 20, .62) 0 7%, rgba(9, 13, 20, .3) 7% 15%, rgba(9, 13, 20, 0) 15% 83%,
    rgba(9, 13, 20, .28) 83% 92%, rgba(9, 13, 20, .58) 92% 100%);
}
.cd-glyph {
  position: absolute; left: 0; right: 0; top: 50%; height: 1em; margin-top: -.45em;
  font-family: "Skranji", sans-serif; font-weight: 700; font-size: calc(var(--cell-w) * 1.22); line-height: 1;
  text-align: center; color: #DAE6EF;
  /* the wordmark's light in hard bands: a brighter cap, the face, a cooler lower facet; then its wall and ink */
  background: linear-gradient(180deg, #F6FAFD 0 21%, #DAE6EF 21% 60%, #B9CADA 60% 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 .045em 0 #3B475A) drop-shadow(0 .03em 0 rgba(9, 16, 25, .85));
  will-change: transform;
}

/* separators: two bronze rivets at the height of the slots */
.cd-sep { width: var(--sep); height: var(--cell-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--cell-h) * .2); flex: none; }
.cd-sep i {
  display: block; width: clamp(6px, calc(var(--bw) * .016), 12px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, var(--bz0) 0 16%, var(--bz2) 17% 52%, var(--bz3) 53% 72%, var(--bz4) 73% 100%);
  box-shadow: 0 0 0 1.5px var(--ink), 0 2px 0 1.5px rgba(9, 16, 25, .5);
}

.cd-label {
  margin-top: calc(var(--bw) * .016);
  font-size: clamp(10px, calc(var(--bw) * .021), 15px); line-height: 1; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-2); text-shadow: 0 2px 0 rgba(0, 0, 0, .3);
}
.cd-label__short { display: none; }
@media (max-width: 520px) { .cd-label__long { display: none; } .cd-label__short { display: inline; } }

/* LIVE: the word stamped into the board where the slots were */
.cd-live { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.cd-live__word {
  display: block; padding-bottom: .04em;
  font-family: "Skranji", sans-serif; font-weight: 700; font-size: calc(var(--cell-h) * 1.08); line-height: 1;
  letter-spacing: .06em; text-transform: uppercase;
  background: linear-gradient(180deg, #E9FFF6 0 22%, #8CF5CF 22% 60%, #45DDA8 60% 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 .045em 0 #1E8466) drop-shadow(0 .03em 0 rgba(9, 16, 25, .9));
}
[data-state="live"] .cd-board__units { visibility: hidden; }

/* ---------------------------------------------------------------- below the board */
.cd-when {
  margin-top: clamp(12px, 2.4vh, 22px); max-width: var(--bw); text-align: center;
  font-family: "Skranji", sans-serif; font-size: clamp(13px, 1.9vh, 16px); line-height: 1.35; letter-spacing: .5px;
  color: var(--muted); text-shadow: 0 2px 0 rgba(0, 0, 0, .3);
}
.cd-when__t { display: inline-block; color: var(--white); white-space: nowrap; }
.cd-enter { margin-top: clamp(14px, 2.4vh, 22px); height: 56px; padding: 0 30px 5px; font-size: 17px; letter-spacing: 1.4px; --c: 12px; }
.cd-enter .ic { width: 24px; height: 24px; }
.cd-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(14px, 2.6vh, 24px); }
[data-state="live"] .cd-links { margin-top: 14px; }
[data-state="live"] .cd-link--x { /* the gate is the call now; the follow drops to a plain stone */
  color: var(--muted); --rim: var(--rim-iron); --bt: rgba(var(--hi), .36); --bb: rgba(var(--lo), .56); --face: var(--raised); --glow: none;
}

/* ---------------------------------------------------------------- launch email signup (countdown.js)
   Its space is held from the first paint (.is-pending: invisible), so showing it never moves the board; countdown.js
   removes it when Supabase is not configured, and it is gone in the LIVE state. The form body and the success
   message share one grid cell and only swap visibility: every state has the same height. */
.cd-join { position: relative; width: min(100%, 470px); margin-top: clamp(12px, 2.2vh, 20px); }
.cd-join.is-pending { visibility: hidden; }
[data-state="live"] .cd-join { display: none; }
.cd-join:not([hidden]) ~ .cd-links { margin-top: clamp(6px, 1.2vh, 12px); }
.cd-join__cell { display: grid; }
.cd-join__body, .cd-ok { grid-area: 1 / 1; min-width: 0; }
.cd-ok { visibility: hidden; display: flex; flex-direction: column; }
.cd-join.is-done .cd-join__body { visibility: hidden; }
.cd-join.is-done .cd-ok { visibility: visible; }
.cd-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* the field: a recessed well (the site's .minput), the gold button set into it */
.cd-field {
  --c: 11px; --n: 4px; --rim: var(--rim-iron); --bt: rgba(5, 8, 12, .5); --bb: rgba(var(--hi), .34);
  --face: linear-gradient(180deg, #19202B 0%, #1D2531 100%);
  height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 6px 0 14px; min-width: 0;
}
.cd-field:focus-within { --rim: rgba(var(--lilac-rgb), .8); --glow: inset 0 0 12px rgba(var(--lilac-rgb), .18); }
.cd-field.is-err { --rim: rgba(var(--salmon-rgb), .75); --glow: inset 0 0 12px rgba(var(--salmon-rgb), .12); }
.cd-field > .ic { width: 18px; height: 18px; color: var(--muted); }
.cd-field input {
  flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0 0 2px; border: 0; border-radius: 0; background: transparent; outline: 0;
  color: var(--white); caret-color: var(--lilac-light);
  font-family: "Skranji", sans-serif; font-size: 15px; letter-spacing: .5px; line-height: 46px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cd-field input::placeholder { color: var(--muted); opacity: .62; }
.cd-field input:-webkit-autofill { -webkit-text-fill-color: var(--white); -webkit-box-shadow: 0 0 0 40px #1B222E inset; }
.cd-field input[readonly] { color: var(--muted-2); }
.cd-field .cd-join__go { flex: none; display: inline-grid; height: 36px; margin: 0; padding: 0 15px 3px; font-family: inherit; font-size: 13px; letter-spacing: 1.04px; cursor: pointer; }
.cd-join__go:disabled { cursor: default; }
.cd-join__lab { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; }
.cd-join__lab--busy, .cd-join.is-busy .cd-join__lab { visibility: hidden; }
.cd-join.is-busy .cd-join__lab--busy { visibility: visible; }
/* "Sending" + three square dots that fill in one by one (stepped from countdown.js, like the snow's flakes) */
.cd-join__lab--busy i { width: 3px; height: 3px; margin: 0 0 1px 3px; align-self: flex-end; background: currentColor; visibility: hidden; }
.cd-join[data-dots="1"] .cd-join__lab--busy i:nth-child(-n+1),
.cd-join[data-dots="2"] .cd-join__lab--busy i:nth-child(-n+2),
.cd-join[data-dots="3"] .cd-join__lab--busy i { visibility: inherit; }

/* the consent tick (the login page's age box) */
.cd-agree { display: flex; justify-content: center; margin-top: 10px; }
.cd-agree__l {
  position: relative; display: flex; align-items: flex-start; gap: 10px; cursor: pointer; text-align: left;
  font-family: "Skranji", sans-serif; font-size: 14px; line-height: 21px; letter-spacing: .3px; color: var(--muted);
}
.cd-agree__l input { position: absolute; z-index: 1; left: 0; top: 0; width: 22px; height: 22px; margin: 0; opacity: 0; cursor: pointer; }
.cd-agree__box {
  flex: none; width: 22px; height: 22px; display: grid; place-items: center; color: transparent;
  background: linear-gradient(180deg, #19202B 0%, #1D2531 100%); box-shadow: inset 0 2px 0 rgba(5, 8, 12, .55), inset 0 0 0 1px #333C4B;
  clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px);
}
.cd-agree__box .ic { width: 14px; height: 14px; }
.cd-agree__l input:checked + .cd-agree__box { color: #0F2A21; background: linear-gradient(180deg, #8DFFD6 0 50%, var(--green) 50% 100%); box-shadow: none; }
.cd-agree__l:hover .cd-agree__box { box-shadow: inset 0 2px 0 rgba(5, 8, 12, .55), inset 0 0 0 1px #4A5568; }
.cd-agree__l:has(input:focus-visible) { outline: 2px solid var(--lilac); outline-offset: 4px; }
.cd-agree__l:has(input:disabled) { cursor: default; }
.cd-agree.is-err .cd-agree__box { box-shadow: inset 0 2px 0 rgba(5, 8, 12, .55), inset 0 0 0 1px var(--salmon); }
.cd-agree__l a { color: var(--lilac); text-decoration: underline; text-underline-offset: 2px; }
.cd-agree__l a:hover { color: var(--lilac-lighter); }

/* one line, always held: a message never changes the height */
.cd-join__msg {
  height: 18px; margin-top: 4px; overflow: hidden; text-align: center; white-space: nowrap; text-overflow: ellipsis;
  font-family: "Skranji", sans-serif; font-size: 13px; line-height: 18px; letter-spacing: .3px; color: var(--salmon);
}

/* the success: the field's well turns into a green-rimmed plate with the tick stamped in */
.cd-ok__plate {
  --c: 11px; --n: 4px; --rim: rgba(var(--green-rgb), .55); --bt: rgba(5, 8, 12, .5); --bb: rgba(var(--hi), .34);
  --face: linear-gradient(180deg, rgba(var(--green-rgb), .1) 0%, rgba(var(--green-rgb), 0) 100%), linear-gradient(180deg, #19202B 0%, #1D2531 100%);
  --glow: inset 0 0 14px rgba(var(--green-rgb), .14);
  min-height: 48px; margin: 0; display: flex; align-items: center; justify-content: center; gap: 11px; padding: 6px 14px 8px;
}
.cd-ok__stamp {
  flex: none; width: 24px; height: 24px; display: grid; place-items: center; color: #0F2A21;
  background: linear-gradient(180deg, #8DFFD6 0 50%, var(--green) 50% 100%);
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
}
.cd-ok__stamp .ic { width: 15px; height: 15px; }
.cd-ok__t { font-family: "Skranji", sans-serif; font-size: 15px; line-height: 20px; letter-spacing: .4px; color: var(--white); outline: 0; }
.cd-ok__t b { font-weight: 400; color: var(--green); }
.cd-agree__l > span:last-child, .cd-ok__t, .cd-ok__sub { text-wrap: balance; }
.cd-ok__sub {
  margin: 10px 0 0; text-align: center;
  font-family: "Skranji", sans-serif; font-size: 13px; line-height: 21px; letter-spacing: .3px; color: var(--muted);
}

/* the honeypot: off-screen, out of the tab order and hidden from readers; a person never fills it */
.cd-join__hp { position: absolute; left: -10000px; top: 0; width: 1px; height: 1px; overflow: hidden; }

/* with the signup shown on a laptop-height screen, the column gives back the form's height from its own air (page
   padding, the lockup, the gaps under the board) so it still fits one screen. The mascot and the board keep their
   size; without the form (no Supabase config) nothing here applies. */
@media (max-height: 960px) {
  .cd:has(.cd-join:not([hidden])) { padding-top: clamp(14px, 2.8vh, 40px); padding-bottom: clamp(8px, 1.2vh, 20px); }
  .cd:has(.cd-join:not([hidden])) .cd-brand { width: clamp(112px, 15.5vh, 172px); }
  .cd-join { margin-top: clamp(10px, 1.6vh, 16px); }
  .cd-join:not([hidden]) ~ .cd-links { margin-top: clamp(4px, .8vh, 10px); }
}

.cd-foot { position: relative; z-index: 1; padding: 0 16px clamp(14px, 2.4vh, 24px); }
.cd-foot p {
  max-width: 620px; margin: 0 auto; text-align: center;
  font-family: "Skranji", sans-serif; font-size: 12px; line-height: 17px; letter-spacing: .52px; color: #6C7689;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .24);
}

/* loot thrown at the reveal (countdown.js): from behind the board, over the sky but under all the copy and buttons;
   fixed and clipped so it never adds a scrollbar */
.cd-loot { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.cd-loot img { position: absolute; left: 0; top: 0; will-change: transform; }

/* before the intro has set its first frame (class set inline in <head>, removed by countdown.js or after 3s) */
.cd-pre .cd-mascot__rig, .cd-pre .cd-hands, .cd-pre .cd-glyph { visibility: hidden; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 520px) {
  .cd-board { --n: 4px; }
  .cd-reel { inset: 2px 1px; }
  .btn { height: 44px; padding: 0 18px 4px; font-size: 13px; }
  .cd-enter { height: 52px; font-size: 16px; padding: 0 26px 5px; }
  .cd-agree__l { font-size: 13px; line-height: 20px; }
  .cd-ok__t { font-size: 14px; line-height: 18px; }
  .cd-ok__sub { line-height: 20px; }
}
@media (max-width: 359px) {
  .cd-kicker::before, .cd-kicker::after { width: 28px; }
  .cd-links { gap: 10px; }
  .cd-field { padding-left: 12px; }
  .cd-field > .ic { display: none; }
  .cd-field .cd-join__go { padding: 0 12px 3px; }
}
/* short landscape screens: let the column breathe less */
@media (max-height: 640px) and (min-aspect-ratio: 4/3) {
  :root { --bw: min(calc(100vw - 32px), 600px); }
}
