@font-face {
  font-family: Newsreader;
  src: url('renderer/assets/newsreader-latin-wght-normal-CCVVNp6i.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --paper: #0c0d0e;
  --ink: #f1f0eb;
  --muted: #adaeaa;
  --rule: #303132;
  --max: 1350px;
  --gutter: clamp(20px, 5.7vw, 90px);
  --ease: cubic-bezier(0.22, 0.78, 0.2, 1);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.5 'Schibsted Grotesk',
    -apple-system,
    'Helvetica Neue',
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
summary,
a {
  font: inherit;
  color: inherit;
}
a {
  text-decoration: none;
}
button,
summary {
  cursor: pointer;
}
button {
  background: none;
  border: 0;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid #90d9ea;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
.brand {
  display: block;
  width: 160px;
  height: 34px;
  background: currentColor;
  mask: url(assets/brand.svg) left center/contain no-repeat;
}
.site-shell {
  max-width: var(--max);
  margin: auto;
  padding-inline: var(--gutter);
}
.mast {
  height: 76px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.mast nav,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}
.mast nav a {
  font-size: 0.91rem;
  color: #bbbcba;
}
.mast nav a:hover,
.mast nav a[aria-current] {
  color: white;
}
.mast nav .nav-updates {
  border: 1px solid #595a58;
  border-radius: 30px;
  padding: 8px 16px;
  color: var(--ink);
}
.icon-library {
  width: 0;
  height: 0;
  position: absolute;
  overflow: hidden;
}
.hero-actions svg,
.search svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 17px;
  height: 17px;
  flex: none;
}
.copy {
  position: relative;
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  align-items: center;
  min-height: clamp(400px, 36vw, 540px);
  gap: 10px;
  padding-block: clamp(32px, 4.5vw, 70px);
}
.hero-text {
  z-index: 1;
}
.release-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font:
    500 0.79rem 'IBM Plex Mono',
    ui-monospace,
    monospace;
  color: #c7cac2;
  margin-bottom: 22px;
}
.release-link i {
  width: 6px;
  height: 6px;
  background: #b7dda7;
  border-radius: 50%;
}
.release-link span {
  color: #888b83;
}
h1 {
  font-size: clamp(2.7rem, 5.35vw, 5.35rem);
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.071em;
  max-width: 13ch;
  text-wrap: balance;
}
h1 em {
  font-style: italic;
  font-weight: 420;
  letter-spacing: -0.06em;
}
.copy p {
  max-width: 43ch;
  color: #c2c3be;
  font-size: clamp(1.03rem, 1.25vw, 1.19rem);
  line-height: 1.5;
  margin-top: 19px;
}
.hero-actions {
  gap: 16px;
  margin-top: 25px;
  flex-wrap: wrap;
}
.hero-actions > * {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 590;
}
.primary,
.subscribe {
  background: #eeefe7;
  color: #171917;
  border-radius: 30px;
  padding: 10px 18px;
}
.primary:hover,
.subscribe:hover {
  background: white;
}
#replay {
  padding: 7px 0;
  color: #cbcfc7;
}
#replay:hover {
  color: white;
}
#hero-wave {
  display: block;
  width: 112%;
  margin-left: -5%;
  height: clamp(320px, 32vw, 490px);
}
#workspace {
  padding-block: clamp(28px, 3vw, 42px) clamp(44px, 5vw, 72px);
  border-top: 1px solid var(--rule);
  scroll-margin-top: 12px;
}
.workspace-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
h2 {
  font-size: clamp(1.75rem, 3vw, 3rem);
  font-weight: 550;
  letter-spacing: -0.055em;
  line-height: 1.06;
}
.workspace-heading p,
.directory-head h3 {
  color: var(--muted);
  font-size: 0.96rem;
}
.workbench-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(225px, 23vw, 288px);
  border: 1px solid #383a3b;
  border-radius: 17px;
  background: #121314;
  min-width: 0;
}
.exhibit,
.directory {
  min-width: 0;
}
.exhibit {
  display: flex;
  flex-direction: column;
}
.window-bar {
  height: 41px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-inline: 16px;
  color: #bbbeb9;
  font-size: 0.79rem;
  border-bottom: 1px solid var(--rule);
}
.window-lights {
  display: flex;
  gap: 4px;
}
.window-lights i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #696b68;
}
.demo-label {
  margin-left: auto;
}
#dock {
  position: relative;
  height: clamp(310px, 31vw, 450px);
}
#stage {
  position: absolute;
  inset: 0;
  overflow: clip;
  background: #0d0e10;
}
#camera {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  will-change: transform;
}
iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #0d0e10;
}
.caption {
  padding: 12px 16px;
  min-height: 47px;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
  color: #c4c8c1;
}
.directory {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-left: 1px solid var(--rule);
}
.directory-head {
  padding: 14px 14px 11px;
}
.directory-head h3 {
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 8px;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #3b3d3e;
  border-radius: 7px;
  padding: 8px 10px;
  color: #a8aaa8;
  background: #171819;
}
.search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: none;
  font-size: 0.94rem;
}
.search:focus-within {
  border-color: #9cafa8;
}
.search input:focus-visible {
  outline: none;
}
#chapters {
  height: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #434744 transparent;
  padding-bottom: 10px;
}
.chapter-row {
  padding: 5px 8px 8px;
}
.chapter-row h3 {
  font:
    500 0.73rem/1.3 'IBM Plex Mono',
    ui-monospace,
    monospace;
  color: #a9aea7;
  padding: 8px 7px;
  letter-spacing: 0.025em;
}
.chapter-row button {
  display: block;
  width: 100%;
  padding: 7px 10px;
  text-align: left;
  border-radius: 5px;
  font-size: 0.92rem;
  color: #cccfca;
}
.chapter-row button:hover {
  background: #242726;
}
.chapter-row button[aria-pressed='true'] {
  background: #e1e7db;
  color: #1b211a;
  font-weight: 600;
}
#no-features {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0 16px 12px;
}
#signup {
  color-scheme: light;
  background: #e8e9e0;
  color: #20231e;
  border-radius: 15px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(24px, 6vw, 80px);
  padding: clamp(25px, 4vw, 58px);
  scroll-margin-top: 20px;
}
.signup-intro h2 {
  font:
    450 clamp(2.6rem, 4.4vw, 4.6rem)/1 Newsreader,
    Georgia,
    serif;
  letter-spacing: -0.065em;
  max-width: 10ch;
}
.signup-intro p {
  max-width: 32ch;
  margin-top: 12px;
  color: #50564c;
}
#signup-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px 10px;
  align-items: end;
  align-self: center;
}
.email-label,
#signup legend {
  font-size: 0.85rem;
  font-weight: 620;
}
.email-label,
#signup-email {
  grid-column: 1/-1;
}
#signup-email {
  min-width: 0;
  width: 100%;
  height: 45px;
  background: #f5f6ef;
  color: #171b15;
  border: 1px solid #afb4a8;
  border-radius: 7px;
  padding: 0 12px;
  font-size: 1rem;
}
#signup fieldset {
  min-width: 0;
  margin: 5px 0 0;
  padding: 0;
  border: 0;
}
.platforms {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.platforms label {
  position: relative;
  cursor: pointer;
}
.platforms input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.platforms span {
  display: block;
  border: 1px solid #a7ada0;
  border-radius: 20px;
  font-size: 0.88rem;
  padding: 7px 11px;
}
.platforms input:checked + span {
  background: #d0d9c8;
  border-color: #56674c;
  color: #182414;
}
.platforms input:focus-visible + span {
  outline: 2px solid #175864;
  outline-offset: 2px;
}
.subscribe {
  background: #242920;
  color: white;
  font-weight: 650;
  min-height: 39px;
}
.subscribe:hover {
  background: #3b4334;
}
.signup-status:not(:empty) {
  grid-column: 2;
  margin-top: 12px;
  font-weight: 570;
}
#signup :focus-visible {
  outline-color: #236575;
}
#alpha {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 12px 35px;
  padding: 40px 0 58px;
}
.alpha-body {
  max-width: 62ch;
}
#alpha h2 {
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}
#alpha p {
  font-size: 0.95rem;
  color: var(--muted);
}
#alpha details {
  grid-column: 2;
  font-size: 0.94rem;
}
#alpha summary {
  color: #dedfd8;
}
#alpha details p {
  padding-top: 8px;
}
@media (max-width: 820px) {
  .mast {
    height: 66px;
  }
  .site-shell {
    padding-inline: clamp(17px, 4vw, 34px);
  }
  .copy {
    grid-template-columns: 1.15fr 1fr;
  }
  #signup {
    grid-template-columns: 0.85fr 1fr;
  }
  .workbench-shell {
    grid-template-columns: minmax(0, 1fr) 200px;
  }
  #signup-form {
    grid-template-columns: 1fr;
  }
  .subscribe {
    justify-self: start;
  }
}
@media (max-width: 640px) {
  .mast {
    height: 62px;
    gap: 12px;
  }
  .mast .brand {
    width: 130px;
  }
  .mast nav {
    gap: 13px;
  }
  .mast nav a {
    font-size: 0.82rem;
  }
  .mast nav a[href='#alpha'] {
    display: none;
  }
  .mast nav .nav-updates {
    padding: 7px 10px;
  }
  .copy {
    display: block;
    padding: 31px 0 5px;
  }
  .release-link {
    margin-bottom: 15px;
  }
  h1 {
    font-size: clamp(2.8rem, 10.7vw, 4rem);
    max-width: 13.7ch;
  }
  .copy p {
    max-width: 38ch;
    font-size: 1rem;
    margin-top: 13px;
  }
  .hero-actions {
    margin-top: 17px;
    gap: 14px;
  }
  .hero-actions > * {
    font-size: 0.87rem;
  }
  #hero-wave {
    width: 100%;
    height: clamp(155px, 40vw, 200px);
    margin: 0;
  }
  .workspace-heading {
    display: block;
    margin-bottom: 14px;
  }
  .workspace-heading p {
    margin-top: 5px;
    font-size: 0.91rem;
  }
  .workbench-shell {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
  }
  .directory {
    order: 0;
    border: 0;
    border-bottom: 1px solid var(--rule);
  }
  .exhibit {
    order: 1;
  }
  .directory-head {
    padding: 11px 12px 2px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .directory-head h3 {
    font-size: 0.87rem;
    white-space: nowrap;
    margin: 0;
  }
  .search {
    margin-left: auto;
    width: min(53%, 230px);
    padding: 6px 8px;
  }
  .search input {
    font-size: 16px;
  }
  #chapters {
    display: flex;
    height: auto;
    min-height: 46px;
    overflow-x: auto;
    overflow-y: hidden;
    flex: 0 0 auto;
    padding: 4px 8px;
    scrollbar-width: thin;
  }
  .chapter-row {
    padding: 0;
    flex: none;
  }
  .chapter-row h3 {
    display: none;
  }
  .chapter-row div {
    display: flex;
  }
  .chapter-row button {
    width: auto;
    min-height: 41px;
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 0.89rem;
  }
  .window-bar {
    height: 34px;
    padding-inline: 12px;
  }
  .caption {
    padding: 10px 12px;
    min-height: 56px;
    font-size: 0.85rem;
  }
  #dock {
    height: clamp(225px, 35svh, 365px);
  }
  #workspace {
    padding-block: 23px 32px;
  }
  #signup {
    display: block;
    padding: 23px 18px;
  }
  .signup-intro h2 {
    max-width: none;
    font-size: 2.65rem;
  }
  .signup-intro p {
    margin-top: 7px;
    font-size: 0.95rem;
  }
  #signup-form {
    margin-top: 18px;
  }
  .subscribe {
    margin-top: 7px;
    justify-self: stretch;
  }
  .platforms span {
    padding: 9px 16px;
  }
  .signup-status:not(:empty) {
    margin-top: 15px;
  }
  #alpha {
    display: block;
    padding: 28px 2px 38px;
  }
  #alpha p {
    margin-top: 9px;
  }
  #alpha details {
    margin-top: 12px;
  }
}
@media (max-width: 360px) {
  .mast .brand {
    width: 106px;
  }
  .hero-actions {
    gap: 10px;
  }
  .hero-actions > * {
    font-size: 0.83rem;
  }
  .mast nav {
    gap: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
body.playing {
  overflow: hidden;
}
.playing #stage {
  position: fixed;
  z-index: 40;
  border: 0;
  border-radius: 0;
  inset: 0;
}
.playing iframe {
  pointer-events: none;
}
#intro-ui {
  position: fixed;
  inset: 0;
  z-index: 45;
  color: white;
  pointer-events: none;
}
#intro-ui[hidden] {
  display: none;
}
.intro-bar,
#direction {
  position: absolute;
  left: clamp(16px, 3vw, 48px);
  right: clamp(16px, 3vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.intro-bar {
  z-index: 2;
  top: max(16px, env(safe-area-inset-top));
}
.intro-bar .brand {
  width: 120px;
  height: 32px;
  filter: drop-shadow(0 1px 4px #08080880);
}
#skip {
  pointer-events: auto;
  border: 1px solid #ffffff49;
  color: white;
  background: #202123ed;
  border-radius: 30px;
  padding: 8px 18px;
  font-size: 0.85rem;
}
#direction {
  bottom: max(19px, env(safe-area-inset-bottom));
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  letter-spacing: 0.025em;
}
#beat {
  background: #17181be8;
  padding: 6px 14px;
  border-radius: 20px;
}
#beat:empty {
  visibility: hidden;
}
#track {
  width: 90px;
  height: 2px;
  background: #ffffff3b;
}
#track i {
  display: block;
  width: 100%;
  height: 100%;
  background: white;
  transform-origin: left;
  transform: scaleX(0);
}
#intro-ui::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    #0d0e10 0,
    rgba(13, 14, 16, 0.85) 40px,
    transparent 85px,
    transparent calc(100% - 85px),
    rgba(13, 14, 16, 0.88) 100%
  );
}

/* Translucent window chrome stays outside the product's graphite UI. */
.playing #stage {
  background-color: #101115;
  background-image:
    radial-gradient(ellipse at 9% 80%, #59476388, transparent 58%),
    radial-gradient(ellipse at 91% 18%, #46685e80, transparent 58%),
    linear-gradient(125deg, #161820, #19191d 55%, #101416);
}
.playing #camera {
  border-radius: 17px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px #ffffff32,
    0 22px 90px #05060a70;
}
.intro-bar,
.playing #direction {
  width: fit-content;
  margin-inline: auto;
  padding: 6px;
  border: 1px solid #ffffff38;
  border-radius: 99px;
  background: linear-gradient(155deg, #ffffff19, transparent 55%), #202329e8;
  box-shadow:
    inset 0 1px 0 #ffffff32,
    0 6px 25px #0004;
}
.intro-bar {
  gap: 21px;
  padding-left: 17px;
}
.intro-bar .brand {
  width: 127px;
  height: 24px;
}
#skip {
  background: #ffffff12;
  border-color: #ffffff32;
}
.playing #direction {
  padding: 8px 20px 10px;
  gap: 5px;
}
#direction:has(#beat:empty) {
  visibility: hidden;
}
#beat {
  background: transparent;
  padding: 0;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .intro-bar,
  .playing #direction {
    background-color: #191c218c;
    -webkit-backdrop-filter: blur(18px) saturate(1.35);
    backdrop-filter: blur(18px) saturate(1.35);
  }
}

#stage.awaiting-reveal #camera {
  visibility: hidden;
}

/* The camera owns the framing. Focus inside the renderer must not scroll its mask. */
#stage,
.playing #camera {
  overflow: clip;
}

html, body { overflow-x: clip; }
/* ---------- Header: glass that floats over the page ---------- */
.mast {
  position: sticky; top: 0; z-index: 40;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  background: rgba(12, 13, 14, 0.55);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}
h1 { font-weight: 700; letter-spacing: -0.055em; }
h2 { font-weight: 650; letter-spacing: -0.045em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Hero signup ---------- */
.hero-join {
  display: flex; gap: 6px; margin-top: 28px; max-width: 430px; padding: 5px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: border-color 0.2s var(--ease);
}
.hero-join:focus-within { border-color: rgba(255, 255, 255, 0.28); }
.hero-join input { flex: 1; min-width: 0; background: none; border: 0; padding: 0 12px; font-size: 1rem; }
.hero-join input:focus-visible { outline: none; }
.hero-join input::placeholder { color: #7c7e78; }
.hero-join input.invalid { color: #ff9f8f; }
.hero-join .primary {
  border-radius: 10px; font-weight: 650; font-size: 0.94rem; white-space: nowrap; cursor: pointer;
  transition: transform 0.12s var(--ease), background 0.15s;
}
.hero-join .primary:active { transform: scale(0.97); }
.hero-done {
  margin-top: 28px !important; display: inline-block; font: 500 0.86rem 'IBM Plex Mono', monospace !important;
  color: #cfe3c3 !important; border: 1px solid rgba(207, 227, 195, 0.3); border-radius: 10px; padding: 9px 13px;
}
.proof { display: flex; align-items: center; gap: 8px; margin-top: 12px !important; font-size: 0.86rem !important; color: var(--muted); }
.proof i { width: 6px; height: 6px; border-radius: 50%; background: #9fd49a; }
.ghost { border: 1px solid #3d3e40; border-radius: 30px; padding: 10px 18px; color: #e2e3dc; }
.ghost:hover { border-color: #7c7e78; color: white; }
.hero-actions { margin-top: 18px !important; }

/* ---------- Waitlist: real glass over the live ribbon ---------- */
#signup {
  position: relative; isolation: isolate; overflow: hidden; display: block;
  color-scheme: dark; color: var(--ink);
  background: #08090a; border: 1px solid #222325; border-radius: 22px;
  padding: clamp(28px, 5vw, 72px);
}
.signup-wave { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.signup-inner {
  display: grid; grid-template-columns: 1fr minmax(320px, 420px); gap: clamp(28px, 6vw, 90px); align-items: center;
}
.tag { font: 500 0.78rem 'IBM Plex Mono', monospace; color: #9a9d95; margin-bottom: 18px !important; }
.signup-intro h2 {
  font: 700 clamp(3rem, 7vw, 6.4rem)/0.92 'Schibsted Grotesk', sans-serif;
  letter-spacing: -0.06em; max-width: none;
}
.lead { max-width: 34ch; margin-top: 20px !important; color: #c2c3be; font-size: 1.06rem; }
.terms { display: flex; gap: 28px; flex-wrap: wrap; margin: 32px 0 0; }
.terms dt { font: 500 0.72rem 'IBM Plex Mono', monospace; color: #8a8d85; }
.terms dd { margin: 3px 0 0; font-weight: 600; }

.glass {
  position: relative; border-radius: 20px; padding: clamp(22px, 3vw, 32px);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035) 60%);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
/* sheen along the top edge, like light catching a pane */
.glass::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.09), transparent 32%);
}
#signup-form { position: relative; display: grid; gap: 10px; grid-template-columns: 1fr; align-items: stretch; }
.field-label { font-size: 0.84rem; font-weight: 600; color: #dcddd7; padding: 0; }
#signup fieldset { margin: 8px 0 0; padding: 0; border: 0; min-width: 0; }
#signup-email {
  height: 50px; width: 100%; border-radius: 12px; padding: 0 14px; font-size: 1rem; color: var(--ink);
  background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(255, 255, 255, 0.14);
  transition: border-color 0.15s, background 0.15s;
}
#signup-email::placeholder { color: #7f827b; }
#signup-email:focus { outline: none; border-color: rgba(255, 255, 255, 0.45); background: rgba(0, 0, 0, 0.36); }
#signup-email.invalid { border-color: #e08372; }
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.platforms span {
  text-align: center; padding: 10px 6px; border-radius: 11px; font-size: 0.9rem; color: #d3d4ce;
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.03);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.platforms label:hover span { border-color: rgba(255, 255, 255, 0.3); }
.platforms input:checked + span { background: #eeefe7; border-color: #eeefe7; color: #141513; font-weight: 600; }
.platforms input:focus-visible + span { outline: 2px solid #90d9ea; outline-offset: 2px; }
#signup .subscribe {
  margin-top: 14px; min-height: 52px; border-radius: 12px; font-size: 1rem; font-weight: 700; cursor: pointer;
  background: #eeefe7; color: #141513; justify-self: stretch;
  transition: transform 0.12s var(--ease), background 0.15s;
}
#signup .subscribe:hover { background: white; }
#signup .subscribe:active { transform: scale(0.98); }
#signup .subscribe:disabled { opacity: 0.65; cursor: progress; }
.fineprint { margin-top: 4px !important; text-align: center; font-size: 0.8rem; color: #8f928a; }
.signup-status:not(:empty) { position: relative; margin-top: 12px; color: #ffad9e; font-size: 0.9rem; font-weight: 500; }
#signup :focus-visible { outline-color: #90d9ea; }

.joined { position: relative; outline: none; animation: rise 0.45s var(--ease); }
.ticket-no {
  font: 500 0.8rem 'IBM Plex Mono', monospace; color: #9fd49a; letter-spacing: 0.04em;
  padding-bottom: 14px; border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
}
.joined h3 { font-size: 2.2rem; font-weight: 700; letter-spacing: -0.05em; margin-top: 18px; }
.joined > p:not(.ticket-no) { color: #c2c3be; margin-top: 6px; }
.share-row { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.share-row > * {
  flex: 1; text-align: center; border-radius: 11px; padding: 11px 12px; font-size: 0.9rem; font-weight: 600; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.04);
}
.share-row > *:hover { border-color: rgba(255, 255, 255, 0.35); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

#alpha h2 { font-weight: 650; }
.foot {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border-top: 1px solid var(--rule); padding: 26px 0 40px; color: #8a8c86; font-size: 0.88rem;
}
.foot .brand { width: 120px; height: 26px; color: #d8d9d3; }

.dock-cta {
  position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 50;
  display: none; text-align: center; font-weight: 700; padding: 15px; border-radius: 14px;
  color: white; background: rgba(30, 31, 33, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 14px 30px rgba(0, 0, 0, 0.5);
}
@media (max-width: 820px) {
  .signup-inner { grid-template-columns: 1fr; }
  #signup { padding: 32px 22px; }
}
@media (max-width: 640px) {
  .dock-cta:not([hidden]) { display: block; animation: rise 0.25s var(--ease); }
  .hero-join { flex-direction: column; }
  .hero-join input { height: 46px; }
  .hero-join .primary { min-height: 46px; }
  #signup { display: block; padding: 28px 18px; border-radius: 18px; }
  .signup-intro h2 { font-size: 3.4rem; }
  .glass { padding: 20px; }
  .terms { gap: 20px; margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .joined, .dock-cta { animation: none !important; }
}
.signup-intro { position: relative; }
.lead, .terms { text-shadow: 0 1px 12px rgba(8, 9, 10, 0.9); }
.signup-intro .lead { color: #c9cac4; }
.signup-intro .tag { color: #9a9d95; }

/* ---------- Invites ---------- */
.field-label span { font-weight: 400; color: #8f928a; margin-left: 4px; }
#signup-name {
  height: 46px; width: 100%; border-radius: 12px; padding: 0 14px; font-size: 1rem; color: var(--ink);
  background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(255, 255, 255, 0.14); margin-bottom: 2px;
}
#signup-name::placeholder { color: #7f827b; }
#signup-name:focus { outline: none; border-color: rgba(255, 255, 255, 0.45); }
.ref-note {
  font: 500 0.8rem 'IBM Plex Mono', monospace; color: #9fd49a; padding: 9px 12px; margin-bottom: 4px;
  border: 1px solid rgba(159, 212, 154, 0.3); border-radius: 10px; background: rgba(159, 212, 154, 0.06);
}
.invite { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.invite-head { font-size: 0.92rem; color: #dcddd7; }
.invite-head b { color: #9fd49a; }
.invite-link {
  display: flex; margin-top: 10px; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(0, 0, 0, 0.3);
}
.invite-link input {
  flex: 1; min-width: 0; border: 0; background: none; padding: 0 12px; height: 46px;
  font: 500 0.85rem 'IBM Plex Mono', monospace; color: #e7e8e2;
}
.invite-link input:focus { outline: none; }
.invite-link button {
  padding: 0 16px; font-weight: 700; font-size: 0.9rem; background: #eeefe7; color: #141513; cursor: pointer;
}
.invite-link button:hover { background: white; }
.invite-count { margin-top: 8px; font-size: 0.82rem; color: #8f928a; }
.share-row { margin-top: 14px; }
.share-row > *:disabled { opacity: 0.6; cursor: progress; }
a.hero-done:hover { border-color: rgba(207, 227, 195, 0.6); }

/* ---------- Leaderboard ---------- */
#board {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px 35px; padding: 48px 0 8px;
}
#board h2 { font-size: 1.45rem; letter-spacing: -0.04em; }
#board p { font-size: 0.95rem; color: var(--muted); margin-top: 6px; }
#board ol { list-style: none; margin: 0; padding: 0; }
#board li {
  display: grid; grid-template-columns: 38px 1fr auto; align-items: baseline; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--rule);
}
#board li:first-child { border-top: 1px solid var(--rule); }
#board .rank { font: 500 0.8rem 'IBM Plex Mono', monospace; color: #8a8d85; }
#board .who { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#board .n { font: 500 0.82rem 'IBM Plex Mono', monospace; color: #9fd49a; }
#board li:first-child .who { font-size: 1.15rem; }
@media (max-width: 640px) {
  #board { display: block; padding: 34px 2px 4px; }
  #board ol { margin-top: 16px; }
}
.ticket-preview {
  display: block; width: 100%; margin-top: 20px; border-radius: 14px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1); transition: transform 0.25s var(--ease);
}
.ticket-preview:hover { transform: translateY(-2px) rotate(-0.4deg); }
.ticket-preview { aspect-ratio: 1.5; object-fit: cover; object-position: 50% 45%; background: #050506; }
