/* waitlist.kinidentity.com: the founders' waitlist for Kin ID.
   Light and dark, following the device (or the toggle). Mostly ink and paper: Kin green is an
   accent only (the mark, live dots, "yours" ticks). Geist with Instrument
   Serif italic and Geist Mono labels. Logical properties so right-to-left languages lay out right. */

@font-face { font-family: 'Geist'; font-weight: 300 700; font-display: swap; src: url(/fonts/geist-normal-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: 'Geist'; font-weight: 300 700; font-display: swap; src: url(/fonts/geist-normal-latin-ext.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; font-weight: 300 700; font-display: swap; src: url(/fonts/geist-mono-normal-latin.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-italic-latin.woff2) format('woff2'); }

/* ---------- Themes ---------- */
:root {
  --bg: #fafaf9;
  --bg-2: #f3f3f1;
  --surface: #ffffff;
  --soft: #f0f0ee;
  --soft-2: #e6e6e3;
  --line: rgba(10, 10, 10, 0.07);
  --line-2: rgba(10, 10, 10, 0.13);
  --ink: #0a0a0a;
  --on-ink: #ffffff;
  --text-2: #57574f;
  --text-3: #8a8a84;
  --accent: #16a34a;
  --red: #dc2626;
  --sh: 0 1px 2px rgba(10, 10, 10, 0.04), 0 12px 32px -16px rgba(10, 10, 10, 0.12);
  --sh-card: 0 0 0 1px rgba(10, 10, 10, 0.06), 0 1px 2px rgba(10, 10, 10, 0.05), 0 10px 24px -14px rgba(10, 10, 10, 0.14);
  --grid: rgba(10, 10, 10, 0.045);
  --glow: rgba(10, 10, 10, 0.035);
  /* The card */
  --card-ink: #0a0a0a;
  --card-ink-2: rgba(10, 10, 10, 0.5);
  --card-edge: rgba(255, 255, 255, 0.9);
  --card-fallback: linear-gradient(130deg, #f7f7f5, #e4e4e0 45%, #fbfbfa 70%, #dededa);
  --r: 14px;
  --r-lg: 22px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --serif: 'Instrument Serif', Georgia, serif;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --bg: #09090a;
  --bg-2: #0f0f11;
  --surface: #131315;
  --soft: #1a1a1d;
  --soft-2: #242428;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --ink: #f4f4f2;
  --on-ink: #0a0a0a;
  --text-2: #a1a19c;
  --text-3: #6f6f6a;
  --accent: #4ade80;
  --red: #f87171;
  --sh: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  --sh-card: 0 0 0 1px rgba(255, 255, 255, 0.07);
  --grid: rgba(255, 255, 255, 0.04);
  --glow: rgba(255, 255, 255, 0.05);
  --card-ink: #f4f4f2;
  --card-ink-2: rgba(244, 244, 242, 0.5);
  --card-edge: rgba(255, 255, 255, 0.1);
  --card-fallback: linear-gradient(130deg, #19191c, #0d0d0f 45%, #222226 70%, #121214);
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* Nothing (like a badge swung off to the side) may make the page wider than the screen. */
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  min-block-size: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
::selection { background: var(--ink); color: var(--bg); }

/* The faint grid, fading out downwards. */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(800px 420px at 50% -120px, var(--glow), transparent 70%),
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 72px 72px;
  mask-image: linear-gradient(#000, rgba(0, 0, 0, 0.5) 50%, transparent 90%);
}

/* ---------- Header ---------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-inline-size: 1120px;
  margin-inline: auto;
  padding: 20px 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; text-decoration: none; }
.brand-mark { display: grid; place-items: center; inline-size: 30px; block-size: 30px; border-radius: 9px; background: var(--ink); color: var(--bg); }
.brand-mark svg { inline-size: 18px; block-size: 18px; }
.top-links { display: flex; align-items: center; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  block-size: 38px;
  padding-inline: 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--sh);
  transition: background 0.2s var(--ease);
}
.chip:hover { background: var(--soft); }
.chip svg { inline-size: 14px; block-size: 14px; }
.theme { inline-size: 38px; padding: 0; justify-content: center; }
.theme svg { inline-size: 17px; block-size: 17px; }
.theme .sun { display: none; }
:root[data-theme='dark'] .theme .sun { display: block; }
:root[data-theme='dark'] .theme .moon { display: none; }

main { max-inline-size: 1120px; margin-inline: auto; padding-inline: 24px; }

/* ---------- The badge: a Kin ID on a lanyard (pearl in light, graphite in dark) ---------- */
.stage {
  --bh: clamp(300px, 46vh, 420px);
  --bw: calc(var(--bh) * 0.66);
  position: relative;
  block-size: calc(var(--bh) + 64px);
  user-select: none;
  -webkit-user-select: none;
}
/* The strap is drawn over the whole window, so it can hang from the top of the page. */
.strap { position: fixed; inset: 0; inline-size: 100vw; block-size: 100vh; pointer-events: none; z-index: 1; }
.top { position: relative; z-index: 3; }
.badge {
  --gx: 50%;
  --gy: 30%;
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  inline-size: var(--bw);
  block-size: var(--bh);
  z-index: 2;
  transform-origin: 50% 0;
  touch-action: none;
  cursor: grab;
  container-type: size;
  outline: none;
  opacity: 0;
}
.badge.ready { opacity: 1; transition: opacity 0.4s var(--ease); }
/* The badge's outer edge and shadow sit behind both faces (the faces themselves are clipped). */
.badge::before { content: ''; position: absolute; inset: 0; border-radius: 6cqw; box-shadow: var(--sh-card); pointer-events: none; }
.badge:focus-visible .face { box-shadow: inset 0 0 0 1px var(--card-edge), 0 0 0 3px var(--bg), 0 0 0 5px var(--ink); }
.badge-flip { position: relative; inline-size: 100%; block-size: 100%; transform-style: preserve-3d; -webkit-transform-style: preserve-3d; }
.face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  border-radius: 6cqw;
  overflow: hidden;
  color: var(--card-ink);
  background: var(--card-fallback);
  box-shadow: inset 0 0 0 1px var(--card-edge);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  isolation: isolate;
  /* Safari ignores overflow + border-radius inside a 3D scene (the flip), so the texture would
     poke out at the corners; clip-path's rounded inset holds everywhere. */
  clip-path: inset(0 round 6cqw);
  -webkit-clip-path: inset(0 round 6cqw);
}
/* Safari hides a face's back side only when the face has its own 3D transform. */
.front { transform: rotateY(0deg) translateZ(0.1px); }
.badge-flip[data-side='front'] .back, .badge-flip[data-side='back'] .front { visibility: hidden; }
.back { transform: rotateY(180deg) translateZ(0.1px); background: var(--surface); }
.card-fluid { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; z-index: -2; border-radius: inherit; clip-path: inset(0 round 6cqw); }
.card-glare {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(90cqw circle at var(--gx) var(--gy), rgba(255, 255, 255, 0.35), transparent 50%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}
/* The slot the clip goes through. */
.hole { position: absolute; inset-block-start: 4.2cqh; inset-inline-start: 50%; translate: -50% 0; inline-size: 16cqw; block-size: 3.2cqw; border-radius: 99px; background: var(--bg); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--line-2); }
.card-row { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.badge-top { padding: 12cqh 7.5cqw 0; }
.card-brand { display: inline-flex; align-items: center; gap: 2.4cqw; font-weight: 600; font-size: 5.6cqw; letter-spacing: -0.02em; }
.card-brand svg { inline-size: 6.4cqw; block-size: 6.4cqw; color: var(--accent); }
.card-label, .card-foot small, .badge-role { font-family: var(--mono); font-size: 3.5cqw; letter-spacing: 0.14em; text-transform: uppercase; color: var(--card-ink-2); }
.card-label { padding-block-start: 1cqw; }
.badge-mid { flex: 1; display: grid; align-content: center; justify-items: center; gap: 3cqw; padding-inline: 7cqw; text-align: center; min-inline-size: 0; }
.card-name {
  margin: 0;
  max-inline-size: 100%;
  font-weight: 600;
  font-size: 15cqw;
  letter-spacing: -0.05em;
  line-height: 1.05;
  white-space: nowrap;
}
.card-name .at { color: var(--card-ink-2); font-weight: 400; }
.card-name.empty #card-handle { color: var(--card-ink-2); }
.card-name.pop { animation: pop 0.35s var(--spring); }
.badge-role { margin: 0; }
.card-foot { align-items: end; padding: 0 7.5cqw 5cqw; font-family: var(--mono); font-size: 3.6cqw; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.35; }
.card-foot span { display: grid; gap: 1.2cqw; }
.card-foot .end { text-align: end; }
.card-foot b { font-size: 7cqw; font-weight: 500; letter-spacing: -0.02em; line-height: 1; text-transform: none; }
.badge-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; block-size: 11cqw; padding-inline: 7.5cqw; background: var(--ink); color: var(--bg); font-family: var(--mono); font-size: 3.5cqw; letter-spacing: 0.08em; }
.badge-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge-bar svg { flex: none; inline-size: 4.6cqw; block-size: 4.6cqw; color: var(--accent); }
/* Back: the QR to your invite link and your numbers. */
.back-qr { display: grid; place-items: center; padding: 6cqw 0 0; }
.qr { inline-size: 50cqw; aspect-ratio: 1; padding: 4.5cqw; border-radius: 5cqw; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(0, 0, 0, 0.06); }
.qr svg { display: block; inline-size: 100%; block-size: 100%; }
.back-cap { margin: 3.5cqw 7cqw 0; text-align: center; font-size: 4.2cqw; color: var(--text-2); line-height: 1.3; }
.back-stats { margin: auto 7.5cqw 4cqw; display: grid; gap: 1.6cqw; }
.back-stats div { display: flex; justify-content: space-between; gap: 8px; padding-block-start: 1.6cqw; border-block-start: 1px solid var(--line); }
.back-stats dt { font-family: var(--mono); font-size: 3.3cqw; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.back-stats dd { margin: 0; font-size: 4.2cqw; font-weight: 600; font-variant-numeric: tabular-nums; }
.back .badge-bar { margin-block-start: auto; }
.back-stats:not([hidden]) + .badge-bar { margin-block-start: 0; }
.badge-hint { position: absolute; inset-inline: 0; margin: 0; text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); pointer-events: none; }

@keyframes pop { 40% { transform: scale(1.04); } }

/* ---------- Panels ---------- */
.panel { max-inline-size: 640px; margin-inline: auto; text-align: center; padding-block: clamp(24px, 4vw, 36px) 0; }
body[data-state='dash'] .landing, body:not([data-state='dash']) .dash { display: none; }
h1 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 64px);
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
h1 em { font-size: 1.08em; color: var(--text-2); }
.sub { margin: 16px auto 0; max-inline-size: 30em; color: var(--text-2); font-size: clamp(16px, 2vw, 18px); text-wrap: pretty; }
.eyebrow { margin: 0 0 12px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }

.inviter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-block-start: 20px;
  padding: 5px 16px 5px 5px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: var(--sh);
  font-size: 14px;
  color: var(--text-2);
}
.inviter img { border-radius: 50%; background: var(--soft); }
.inviter p { margin: 0; }
.inviter b { font-weight: 600; color: var(--ink); }
.inviter b:last-child { color: var(--accent); }

/* The name field and the button (dim until the name is free). */
.reserve { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 10px; margin-block-start: 24px; }
.field input { cursor: text; }
.field {
  display: flex;
  align-items: center;
  gap: 2px;
  inline-size: min(560px, 100%);
  block-size: 64px;
  padding-inline: 20px 7px;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  background: var(--surface);
  box-shadow: var(--sh);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px var(--line); }
.field.bad { border-color: var(--red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 15%, transparent); }
.field-at { color: var(--text-3); font-size: 20px; }
.field input { flex: 1; min-inline-size: 0; border: 0; background: none; outline: none; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.field input::placeholder { color: var(--text-3); font-weight: 400; }
.field-state { inline-size: 22px; block-size: 22px; display: grid; place-items: center; margin-inline-end: 10px; }
/* The button sits inside the field, at its end. */
/* Concentric corners: the field's radius minus the 7px gap around the button. */
.field .go { flex: none; block-size: 50px; padding-inline: 20px 18px; font-size: 15px; border-radius: calc(var(--r) - 4px); }
.go-short { display: none; }
.field:has(input:focus) { cursor: text; }
.field-state svg { inline-size: 18px; block-size: 18px; color: var(--accent); }
.field-state.busy::after { content: ''; inline-size: 14px; block-size: 14px; border-radius: 50%; border: 2px solid var(--line-2); border-block-start-color: var(--ink); animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.hint { margin: 0; min-block-size: 21px; font-size: 14px; color: var(--text-3); }
.hint.ok { color: var(--accent); }
.hint.bad { color: var(--red); }

/* Buttons: ink on paper (white on black in dark). */
.go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  block-size: 52px;
  padding-inline: 26px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.2s var(--spring), opacity 0.2s var(--ease), background 0.2s var(--ease);
}
.go svg { inline-size: 16px; block-size: 16px; transition: transform 0.2s var(--ease); }
.go:hover:not(:disabled) { transform: translateY(-1px); opacity: 0.88; }
.go:hover:not(:disabled) svg { transform: translate(2px, -2px); }
.go:active:not(:disabled) { transform: scale(0.97); }
.go:disabled { background: var(--soft-2); color: var(--text-3); cursor: not-allowed; }
.go.busy span::after { content: '…'; }
.go-sm { block-size: 42px; padding-inline: 18px; font-size: 15px; }
.go-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.go-ghost:hover:not(:disabled) { background: var(--soft); opacity: 1; }
.go-ghost:disabled { background: transparent; color: var(--text-3); border-color: var(--line); }

.ticker {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 24px 0 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-3);
}
.ticker li { display: inline-flex; align-items: center; gap: 7px; }
.ticker li::before { content: ''; inline-size: 6px; block-size: 6px; border-radius: 50%; background: var(--accent); animation: live 2.4s ease-in-out infinite; }
@keyframes live { 50% { opacity: 0.35; } }
.ticker b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.ticker b i { font-style: normal; color: var(--text-3); margin-inline-start: 1px; }

/* ---------- The Founders Pool strip ---------- */
.pool { margin: 28px auto 0; padding: 16px; max-inline-size: 560px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh); }
.pool-head { margin: 0 0 12px; font-size: 13px; color: var(--text-2); }
.pool-head span { margin-inline-end: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.ladder { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ladder li { position: relative; display: grid; gap: 2px; padding: 10px 8px; border-radius: 12px; background: var(--bg-2); border: 1px solid transparent; }
.ladder span { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.ladder b { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; }
.ladder b::after { content: ' $KIN'; font-size: 11px; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.ladder li.now { background: var(--surface); border-color: var(--ink); }
.ladder li.now::before { content: ''; position: absolute; inset-block-start: 9px; inset-inline-end: 9px; inline-size: 6px; block-size: 6px; border-radius: 50%; background: var(--accent); }
.ladder li.past { opacity: 0.35; }
.pool-more { margin: 12px 0 0; font-size: 13px; color: var(--text-3); }
.pool-more b { color: var(--ink); font-weight: 500; }

/* ---------- Dashboard ---------- */
.place { font-size: clamp(44px, 8vw, 80px); }
.place .mute { color: var(--text-3); font-family: var(--serif); font-style: italic; font-weight: 400; }
.place b { font-weight: 600; font-variant-numeric: tabular-nums; }
.around { margin: 14px 0 0; color: var(--text-2); font-size: 17px; }
.around b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.flagged { margin: 20px auto 0; padding: 12px 16px; border-radius: var(--r); background: color-mix(in srgb, #eab308 12%, transparent); border: 1px solid color-mix(in srgb, #eab308 30%, transparent); font-size: 14px; text-align: start; }
.tiles { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; margin-block-start: 28px; text-align: start; }
.tile { display: grid; gap: 4px; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh); }
.tile small { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.tile b { font-size: clamp(34px, 5vw, 44px); font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.tile span { font-size: 13px; color: var(--text-3); }
.tile-kin b::after { content: ' $KIN'; font-size: 0.4em; letter-spacing: 0; font-weight: 500; color: var(--text-3); }

.block { margin-block-start: 10px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh); text-align: start; }
.block h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.block p { margin: 4px 0 0; color: var(--text-2); font-size: 14px; }
.block-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.block-row + .tasks { margin-block-start: 16px; }
.link-row { display: flex; gap: 8px; margin-block-start: 16px; }
.link-row input { flex: 1; min-inline-size: 0; block-size: 42px; padding-inline: 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); font-family: var(--mono); font-size: 14px; outline: none; }
.shares { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 12px; }
.share { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); font-size: 14px; font-weight: 500; text-decoration: none; transition: background 0.2s var(--ease), transform 0.2s var(--spring); }
.share:hover { background: var(--soft-2); }
.share:active { transform: scale(0.97); }
/* Brand logos: each on its own colour (set by app.js as --c and --on). */
.logo { flex: none; display: grid; place-items: center; inline-size: 26px; block-size: 26px; border-radius: 50%; background: var(--c, var(--soft-2)); color: var(--on, #fff); box-shadow: inset 0 0 0 1px var(--line); }
.logo svg { inline-size: 14px; block-size: 14px; fill: currentColor; }
.logo-more { background: var(--soft-2); color: var(--text-2); }
.milestone { margin-block-start: 20px; }
.milestone-text { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--text-2); margin-block-end: 8px; }
.milestone-text b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.bar { block-size: 6px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.bar i { display: block; block-size: 100%; inline-size: 0; border-radius: inherit; background: var(--ink); transition: inline-size 0.9s var(--ease); }
.tasks { display: flex; flex-wrap: wrap; gap: 8px; }
.task { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; text-decoration: none; transition: background 0.2s var(--ease); }
.task:hover { background: var(--soft); }
.task .logo { inline-size: 24px; block-size: 24px; }
.task .logo svg { inline-size: 13px; block-size: 13px; }
.task b { font-family: var(--mono); font-size: 12px; color: var(--text-3); font-weight: 500; }
.task.done { opacity: 0.5; }
.task.done .logo { filter: grayscale(1); }
.task.done b { color: var(--accent); }
.friends { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.friends li { padding: 6px 12px; border-radius: 999px; background: var(--bg-2); font-size: 13px; }
.friends li.held { opacity: 0.5; }
.badge-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-block: 4px 14px; }
.badge-actions .go svg { inline-size: 17px; block-size: 17px; }
.dash-side .badge-actions { justify-content: center; }
.textlink { margin-block-start: 22px; border: 0; background: none; color: var(--text-3); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.textlink:hover { color: var(--text-2); }

/* ---------- Footer ---------- */
.foot { max-inline-size: 760px; margin: 48px auto 0; padding: 20px 24px 32px; border-block-start: 1px solid var(--line); text-align: center; }
.foot p { margin: 0 0 12px; font-size: 12px; color: var(--text-3); text-wrap: pretty; }
.foot nav { display: flex; justify-content: center; gap: 20px; font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ---------- Sign-in sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.sheet-scrim { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2); animation: fade 0.3s var(--ease); }
.sheet-body {
  position: relative;
  inline-size: min(440px, 100%);
  max-block-size: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 28px 24px 24px;
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.35);
  animation: up 0.45s var(--spring);
}
.sheet-body h2 { margin: 0; font-size: 25px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.15; padding-inline-end: 36px; }
.sheet-body h2 span { color: var(--text-2); }
.sheet-sub { margin: 8px 0 0; color: var(--text-2); font-size: 14px; }
.sheet-x { position: absolute; inset-block-start: 16px; inset-inline-end: 16px; inline-size: 34px; block-size: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--soft); }
.sheet-x svg { inline-size: 15px; block-size: 15px; }
.providers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-block-start: 22px; }
.providers button { display: flex; align-items: center; justify-content: center; gap: 10px; block-size: 48px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 500; font-size: 15px; transition: background 0.2s var(--ease), transform 0.2s var(--spring); }
.providers button:hover { background: var(--soft); }
.providers button:active { transform: scale(0.97); }
.providers button:disabled { opacity: 0.5; cursor: wait; }
.providers svg { inline-size: 20px; block-size: 20px; }
.or { display: flex; align-items: center; gap: 12px; margin-block: 18px; color: var(--text-3); font-size: 13px; }
.or::before, .or::after { content: ''; flex: 1; block-size: 1px; background: var(--line-2); }
.email { display: flex; gap: 8px; }
.email input { flex: 1; min-inline-size: 0; block-size: 48px; padding-inline: 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2); outline: none; font-size: 16px; }
.email input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px var(--line); }
.email input.mono { letter-spacing: 0.25em; }
.email .go { block-size: 48px; }
.note { margin: 10px 0 0; font-size: 13px; color: var(--text-2); }
.error { margin: 12px 0 0; font-size: 14px; color: var(--red); }
#turnstile:not(:empty) { margin-block-start: 12px; }

.toast { position: fixed; inset-block-end: 24px; inset-inline-start: 50%; translate: -50% 0; z-index: 60; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-weight: 500; font-size: 14px; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.35); animation: up 0.35s var(--spring); }

@keyframes fade { from { opacity: 0; } }
@keyframes up { from { opacity: 0; transform: translateY(24px) scale(0.98); } }

/* Phones: the sheet comes up from the bottom. */
@media (max-width: 720px) {
  .top { padding: 16px; }
  main { padding-inline: 16px; }
  .chip { padding-inline: 12px; font-size: 13px; }
  .theme { padding: 0; }
  .tiles { grid-template-columns: 1fr; }
  .sheet { place-items: end center; padding: 0; }
  .sheet-body { inline-size: 100%; border-radius: 26px 26px 0 0; padding-block-end: max(24px, env(safe-area-inset-bottom)); }
}
@media (max-width: 420px) {
  .go-long { display: none; }
  .go-short { display: inline; }
  .field { padding-inline-start: 14px; }
  .field .go { padding-inline: 16px 14px; }
  .top-links a.chip { display: none; }
  .providers { grid-template-columns: 1fr; }
}
/* Large screens: the card on the left, everything else beside it, all in one view. */
@media (min-width: 1080px) {
  main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    column-gap: clamp(40px, 4.5vw, 72px);
    max-inline-size: 1240px;
    align-items: center;
    /* The header (~78px) and the footer (~64px) share the screen with it. */
    min-block-size: calc(100dvh - 78px - 64px);
    padding-block: 0;
  }
  body[data-state='dash'] main { align-items: start; padding-block-start: 24px; grid-template-rows: auto 1fr; }
  .stage { grid-column: 1; grid-row: 1; align-self: stretch; block-size: auto; min-block-size: calc(var(--bh) + 100px); --bh: clamp(340px, 56vh, 470px); }
  body[data-state='dash'] .stage { align-self: start; min-block-size: 0; block-size: calc(var(--bh) + 64px); --bh: clamp(300px, 40vh, 380px); }
  /* Dashboard: your place and your link beside the card; daily $KIN and friends under it. */
  body[data-state='dash'] .dash { display: contents; }
  .dash-main { grid-column: 2; grid-row: 1 / 3; max-inline-size: 640px; text-align: start; }
  .dash-side { grid-column: 1; grid-row: 2; max-inline-size: 620px; margin-block-start: 16px; text-align: start; }
  .dash-side .block:first-child { margin-block-start: 0; }
  .panel { grid-column: 2; grid-row: 1; margin: 0; padding: 0; max-inline-size: 640px; text-align: start; }
  .landing h1 { font-size: clamp(46px, 4.2vw, 62px); white-space: nowrap; }
  .sub { max-inline-size: 36em; }
  .sub { margin-inline: 0; }
  .reserve { justify-items: start; }
  .field { inline-size: 100%; }
  .ticker { justify-content: flex-start; flex-direction: column; gap: 6px; margin-block-start: 22px; }
  .pool { margin: 22px 0 0; max-inline-size: none; }
  .place { font-size: clamp(48px, 5vw, 68px); }
  .tiles { margin-block-start: 22px; }
  /* The footer on one line: the small print, then the links. */
  .top { max-inline-size: 1240px; }
  .foot { display: flex; align-items: center; justify-content: space-between; gap: 32px; max-inline-size: 1240px; margin: 0 auto; padding: 14px 24px 16px; text-align: start; }
  .foot p { margin: 0; max-inline-size: 860px; font-size: 11px; }
  .foot nav { flex: none; }
}

/* Large but short screens (13" laptops): a little less air so nothing scrolls. */
@media (min-width: 1080px) and (max-height: 860px) {
  .top { padding-block: 14px; }
  .landing h1 { font-size: clamp(42px, 3.9vw, 54px); }
  .sub { margin-block-start: 12px; font-size: 16px; }
  .reserve { margin-block-start: 18px; }
  .field { block-size: 58px; }
  .field .go { block-size: 44px; border-radius: calc(var(--r) - 4px); }
  .ticker { margin-block-start: 16px; gap: 4px; }
  .pool { margin-block-start: 16px; padding: 14px; }
  .ladder li { padding-block: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
