/* Hintline launch site. Tokens from docs/site/BRIEF.md; dark first, light under prefers-color-scheme. */

:root,
.always-dark {
  /* Dark (default) */
  --bg: #07090b; /* page */
  --bg-raised: #0e1316; /* alternating sections */
  --surface: #141b21; /* cards, replicas */
  --surface-2: #1b242b; /* hover, inner panels */
  --line: #22303a; /* hairlines */
  --text: #f2f5f3;
  --text-muted: #8c9aa3;
  --accent: #4fd1a5; /* brand green, primary CTA */
  --accent-strong: #74ddb9; /* CTA hover */
  --on-accent: #06231a;
  --tone-normal: #5ad69a;
  --tone-warning: #f5b648;
  --tone-over: #ff7a6b;
  --gold: #f2c14e;
  --silver: #c7d0d6;
  --bronze: #d9925b;
  --glow: rgb(79 209 165 / 0.18); /* soft halo behind clocks */
  /* Clock panels, from the app's docs/DESIGN.md */
  --tone-normal-bg: #12271e;
  --tone-warning-bg: #2d2210;
  --tone-over-bg: #321714;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px rgb(0 0 0 / 0.45);
  --shadow-strong: 0 2px 4px rgb(0 0 0 / 0.5), 0 28px 60px rgb(0 0 0 / 0.6);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f3f4f1;
    --bg-raised: #eaece6;
    --surface: #ffffff;
    --surface-2: #eceee9;
    --line: #d9dcd4;
    --text: #171a17;
    --text-muted: #5d635b;
    --accent: #1f6f5c;
    --accent-strong: #185a4a;
    --on-accent: #ffffff;
    --tone-normal: #1f7a52;
    --tone-warning: #a15c00;
    --tone-over: #b42318;
    --gold: #a87a12;
    --silver: #69747b;
    --bronze: #a35a24;
    --glow: rgb(31 111 92 / 0.12);
    --tone-normal-bg: #e3f2e9;
    --tone-warning-bg: #fdf0d9;
    --tone-over-bg: #fbe4e1;
    --shadow: 0 1px 2px rgb(23 26 23 / 0.06), 0 12px 32px rgb(23 26 23 / 0.1);
    --shadow-strong: 0 2px 4px rgb(23 26 23 / 0.08), 0 28px 60px rgb(23 26 23 / 0.18);
    color-scheme: light;
  }
}

:root {
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: Inter, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 72rem;
  --pad-section: clamp(4.5rem, 10vw, 9rem);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --focus: 0 0 0 3px var(--accent);
}

/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

h3 {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

a {
  color: inherit;
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.sprite {
  position: absolute;
}

.mark__hand {
  stroke: var(--mark-cut, var(--bg));
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

section {
  padding-block: var(--pad-section);
  background: var(--bg);
}

.band-raised {
  background: var(--bg-raised);
  --mark-cut: var(--bg-raised);
}

.section-head {
  display: grid;
  gap: 1rem;
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

.lede {
  color: var(--text-muted);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
}

/* Interactive states */

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
iframe:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.375rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 120ms var(--ease),
    background-color 200ms var(--ease),
    border-color 200ms var(--ease),
    color 200ms var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible {
  border-radius: 12px;
}

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn--primary:hover {
  background: var(--accent-strong);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--text-muted);
  background: var(--surface-2);
}

.btn--header {
  min-height: 44px;
  padding: 0 1.125rem;
  font-size: 0.9375rem;
}

.btn--large {
  min-height: 56px;
  padding: 0 28px;
  font-size: 1.0625rem;
}

.btn--block {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.25em;
  transition: text-decoration-color 200ms var(--ease);
}

.text-link:hover {
  text-decoration-color: currentColor;
}

.text-link:active {
  opacity: 0.75;
}

/* 1. Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
  color: var(--text);
}

.logo__mark {
  width: 28px;
  height: 28px;
  color: var(--accent);
  flex: none;
}

.logo__word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.03em;
}

.site-nav {
  display: none;
  gap: 0.25rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.875rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    color 200ms var(--ease),
    background-color 200ms var(--ease);
}

.site-nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.site-nav a:active {
  transform: scale(0.98);
}

.site-nav a:focus-visible {
  border-radius: 999px;
}

.wide-only {
  display: none;
}

@media (min-width: 860px) {
  .site-nav {
    display: flex;
  }

  .wide-only {
    display: inline;
  }
}

/* App replica: room card */

.rc {
  --tone: var(--tone-normal);
  --tone-bg: var(--tone-normal-bg);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  font-size: 0.875rem;
  line-height: 1.4;
  text-align: left;
}

.rc--live::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--tone);
}

.rc--warning {
  --tone: var(--tone-warning);
  --tone-bg: var(--tone-warning-bg);
}

.rc--over {
  --tone: var(--tone-over);
  --tone-bg: var(--tone-over-bg);
}

.rc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.rc__name {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rc__meta,
.rc__note {
  color: var(--text-muted);
}

.rc__team {
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge--live {
  background: var(--tone-normal-bg);
  color: var(--tone-normal);
}

.badge--paused {
  background: var(--tone-warning-bg);
  color: var(--tone-warning);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: breathe 2s ease-in-out infinite alternate;
}

@keyframes breathe {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

.clock {
  position: relative;
  display: grid;
  gap: 0.125rem;
  padding: 0.875rem 1rem;
  border-radius: 10px;
  background: var(--tone-bg);
  color: var(--tone);
}

.clock__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clock__remaining {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.clock--compact .clock__remaining {
  font-size: 2.25rem;
}

.clock__elapsed {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.rc--paused .clock__remaining,
.rc--paused .clock__label {
  opacity: 0.55;
}

.clock__pause {
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 36px;
  height: 36px;
  translate: 0 -50%;
  fill: currentColor;
}

.hint-row,
.hint-log li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 0.8125rem;
}

.hint-row .num,
.hint-log .num {
  color: var(--text-muted);
  white-space: nowrap;
}

.hint-log {
  display: grid;
  gap: 0.375rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-block: 0.625rem;
  border-block: 1px solid var(--line);
}

.stats dt {
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats dd {
  font-size: 1.25rem;
  font-weight: 700;
}

.stats__final {
  color: var(--accent);
}

.fields {
  display: flex;
  gap: 0.5rem;
}

.field {
  display: grid;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

.field--short {
  flex: 0 0 5rem;
}

.field__label {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.field__input {
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
}

.rc__actions {
  display: flex;
  gap: 0.5rem;
}

.rbtn {
  flex: 1;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.rbtn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.result {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border-radius: 10px;
  background: var(--tone-normal-bg);
  color: var(--tone-normal);
}

.result__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.result__sum {
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 700;
}

/* 2. Hero */

.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) var(--pad-section);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

.hero__copy {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}

.hero__title {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
}

.hero__sub {
  max-width: 34rem;
  color: var(--text-muted);
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.facts {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
}

.hero__visual {
  position: relative;
}

.stack {
  position: relative;
}

.halo {
  position: absolute;
  inset: -15% -10%;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  pointer-events: none;
}

.plane {
  position: absolute;
  transition: translate 300ms var(--ease);
}

.plane--back .rc {
  rotate: -4deg;
  scale: 0.88;
  opacity: 0.7;
  filter: blur(0.5px);
}

.plane--middle .rc {
  rotate: 3deg;
  scale: 0.94;
}

.plane--front .rc {
  box-shadow: var(--shadow-strong);
}

/* Phone: one column, cards offset diagonally so every clock figure shows. */
.stack {
  display: flow-root; /* keeps the front card's top margin inside the stack */
  min-height: 340px;
}

.plane {
  width: 82%;
}

.plane--back {
  top: 0;
  left: 0;
}

.plane--middle {
  top: 140px;
  right: 0;
}

.plane--front {
  position: relative;
  margin-top: 280px;
  margin-left: 9%;
}

.plane--back .rc {
  rotate: -2deg;
}

.plane--middle .rc {
  rotate: 2deg;
}

@media (max-width: 959px) {
  .stack .rc {
    padding: 0.875rem 1rem;
    gap: 0.5rem;
  }

  .stack .clock__remaining {
    font-size: 2rem;
  }

  .stack .hint-row,
  .stack .rc__team,
  .stack .rc__actions {
    display: none;
  }
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: 5fr 7fr;
    min-height: min(92vh, 860px);
  }

  /* One sentence per line has to fit the 5/12 column. */
  .hero__title {
    font-size: min(5.5rem, 4.6vw);
  }

  .hero__title span {
    display: block;
  }

  .stack {
    height: 36rem;
  }

  .plane {
    width: 23rem;
  }

  .plane--back {
    top: 0;
    left: 0;
  }

  .plane--back .rc {
    rotate: -4deg;
  }

  .plane--middle {
    top: 6rem;
    right: 0;
  }

  .plane--middle .rc {
    rotate: 3deg;
  }

  .plane--front {
    position: absolute;
    bottom: 0;
    left: calc(50% - 11.5rem);
    margin: 0;
  }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .stack {
      animation: drift linear both;
      animation-timeline: view();
      animation-range: contain 0% exit 100%;
    }

    .plane--back {
      animation: fade-back linear both;
      animation-timeline: view();
      animation-range: contain 0% exit 100%;
    }
  }
}

/* Moving at 0.9x scroll speed is a 10% lag behind the page. */
@keyframes drift {
  to {
    transform: translateY(10vh);
  }
}

@keyframes fade-back {
  to {
    opacity: 0.55;
  }
}

/* 3. Before and after */

.strip__inner {
  display: grid;
  gap: 1.25rem;
  width: min(100% - 2.5rem, 46rem);
  margin-inline: auto;
  text-align: center;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.4;
  text-wrap: balance;
}

.strip__before {
  color: var(--text-muted);
}

/* A 1px strike drawn per line: an ::after line would cross a wrapped sentence only once. */
.strip__before span {
  background: linear-gradient(currentColor, currentColor) no-repeat 0 58% / 100% 1px;
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .strip__before span {
      animation: strike linear both;
      animation-timeline: view();
      animation-range: entry 60% cover 50%;
    }
  }
}

@keyframes strike {
  from {
    background-size: 0% 1px;
  }
  to {
    background-size: 100% 1px;
  }
}

.strip__after strong {
  font-weight: 600;
}

/* 4. How it works */

.steps {
  display: grid;
  gap: 3.5rem;
  counter-reset: none;
}

.step {
  display: grid;
  gap: 1.25rem;
}

.step__text {
  display: grid;
  gap: 0.625rem;
  max-width: 32rem;
}

.step__num {
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 700;
}

.step__text p:not(.step__num) {
  color: var(--text-muted);
}

.step__card {
  max-width: 26rem;
}

.how__sticky {
  display: none;
}

@media (min-width: 960px) {
  .how__layout {
    display: grid;
    grid-template-columns: 26rem 1fr;
    gap: clamp(3rem, 6vw, 6rem);
  }

  .how__sticky {
    display: block;
    position: sticky;
    top: 96px;
    align-self: start;
    padding-top: calc(35vh - 12rem);
  }

  .how__stage {
    display: grid;
  }

  .how__state {
    grid-area: 1 / 1;
    align-self: start;
    opacity: 0;
    transition: opacity 400ms var(--ease);
  }

  .how__state.is-active {
    opacity: 1;
  }

  .steps {
    gap: 0;
  }

  .step {
    min-height: 70vh;
    align-content: center;
  }

  .step__card {
    display: none;
  }

  .js .step {
    opacity: 0.45;
    transition: opacity 400ms var(--ease);
  }

  .js .step.is-active {
    opacity: 1;
  }

  .step__title {
    transition: color 400ms var(--ease);
  }

  .js .step.is-active .step__title {
    color: var(--accent);
  }

  .step__title {
    font-size: 1.875rem;
  }
}

/* 5. Rules */

.rules__title {
  text-align: center;
}

.eq {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 0.25em 0.3em;
  margin-block: clamp(2.5rem, 6vw, 4.5rem);
  font-size: clamp(2.5rem, 8vw, 6.5rem);
  line-height: 1;
}

.eq__term {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
}

.eq__fig {
  font-weight: 700;
  letter-spacing: -0.06em;
}

.eq__fig--final {
  color: var(--accent);
}

.eq__op {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-weight: 500;
}

.eq__cap {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

@media (max-width: 599px) {
  .eq {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    align-items: center;
    gap: 1.25rem 0.75rem;
  }

  .eq__term {
    grid-column: 2;
    justify-items: start;
    gap: 0.375rem;
  }

  .eq__op {
    grid-column: 1;
  }
}

.rule-list {
  display: grid;
  gap: 1.5rem 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.rule-list li {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.rule__icon {
  color: var(--accent);
  font-size: 1.75rem;
  font-weight: 700;
}

.rule-list p {
  color: var(--text-muted);
}

@media (min-width: 760px) {
  .rule-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 6. Features */

.bento {
  display: grid;
  gap: 1rem;
}

.tile {
  --mark-cut: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition:
    transform 200ms var(--ease),
    border-color 200ms var(--ease);
}

.tile p {
  color: var(--text-muted);
}

.tile__art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 7.5rem;
  margin-bottom: 0.75rem;
}

@media (hover: hover) and (pointer: fine) {
  .tile:hover {
    border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
    transform: translateY(-2px);
  }
}

@media (min-width: 760px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .tile--a {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .bento {
    grid-template-columns: repeat(6, 1fr);
  }

  .tile--a {
    grid-column: span 4;
    grid-row: span 2;
  }

  .tile--b,
  .tile--c,
  .tile--f,
  .tile--g,
  .tile--h {
    grid-column: span 2;
  }

  .tile--d,
  .tile--e {
    grid-column: span 3;
  }

  .tile--a .tile__art {
    flex: 1;
  }

  .tile--a h3 {
    font-size: 1.75rem;
  }
}

.art-rooms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
  align-content: center;
}

.mini {
  --tone: var(--tone-normal);
  --tone-bg: var(--tone-normal-bg);
  display: grid;
  gap: 0.25rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--tone);
  border-radius: 12px;
  background: var(--bg);
  font-size: 0.8125rem;
  font-weight: 600;
  min-width: 0;
}

.mini span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini b {
  color: var(--tone);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
}

.mini--warning {
  --tone: var(--tone-warning);
}

.mini--idle {
  --tone: var(--line);
}

.mini--idle b {
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding-block: 0.4rem;
}

.art-reload {
  position: relative;
  color: var(--accent);
}

.art-reload svg {
  width: 120px;
  height: 120px;
}

.art-reload span {
  position: absolute;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
}

.art-lock svg {
  width: 88px;
  height: 88px;
  color: var(--accent);
  filter: drop-shadow(0 0 24px var(--glow));
}

.art-history {
  display: grid;
  gap: 0.5rem;
  width: 100%;
}

.hrow {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  font-size: 0.8125rem;
  font-weight: 600;
}

.hrow span:first-child {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pill {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pill--ok {
  background: var(--tone-normal-bg);
  color: var(--tone-normal);
}

.pill--over {
  background: var(--tone-over-bg);
  color: var(--tone-over);
}

.art-months {
  flex-wrap: wrap;
  gap: 0.5rem;
}

.month {
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.month--on {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.split {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, #f3f4f1 50%, #07090b 50%);
  box-shadow: 0 0 32px var(--glow);
}

.phone {
  display: grid;
  align-content: center;
  gap: 0.5rem;
  width: 64px;
  aspect-ratio: 9 / 16;
  padding: 0.5rem;
  border: 2px solid var(--text-muted);
  border-radius: 14px;
}

.phone b {
  padding: 0.3rem 0;
  border-radius: 6px;
  background: var(--tone-normal-bg);
  color: var(--tone-normal);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.phone .phone__warn {
  background: var(--tone-warning-bg);
  color: var(--tone-warning);
}

.art-dots {
  gap: 1rem;
}

.tdot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.tdot--normal {
  background: var(--tone-normal);
}

.tdot--warning {
  background: var(--tone-warning);
}

.tdot--over {
  background: var(--tone-over);
}

/* 7. Lobby screen (always dark) */

.lobby {
  position: relative;
  background: var(--bg);
  color: var(--text);
  border-block: 1px solid var(--line);
  overflow: hidden;
  --mark-cut: var(--bg);
}

.lobby::before {
  content: "";
  position: absolute;
  inset: 30% 10% -10%;
  background: radial-gradient(closest-side, var(--glow), transparent);
  pointer-events: none;
}

.lobby .wrap {
  position: relative;
}

.tv {
  max-width: 64rem;
  margin-inline: auto;
}

.tv__screen {
  position: relative;
  aspect-ratio: 16 / 9;
  padding: 14px;
  background: #030405;
  border-radius: 18px;
  box-shadow: var(--shadow-strong);
}

.tv__screen::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgb(255 255 255 / 0.04) 0%, rgb(255 255 255 / 0.04) 35%, transparent 35%);
  pointer-events: none;
}

.tvb {
  height: 100%;
  padding: clamp(1rem, 3.5vw, 2.75rem) clamp(1rem, 4vw, 3.5rem);
  background: var(--bg);
  border: 1px solid #22303a;
  border-radius: 6px;
  overflow: hidden;
}

.tvb__eyebrow {
  color: var(--accent);
  font-size: clamp(0.625rem, 1.1vw, 0.875rem);
  letter-spacing: 0.12em;
}

.tvb__title {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tvb__context {
  margin-bottom: clamp(0.5rem, 1.6vw, 1.25rem);
  color: var(--text-muted);
  font-size: clamp(0.6875rem, 1.2vw, 0.9375rem);
}

.tvb__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 clamp(2px, 0.4vw, 5px);
  font-size: clamp(0.75rem, 1.5vw, 1.1875rem);
}

.tvb__table th {
  padding: 0 0.75em 0.25em;
  color: var(--text-muted);
  font-size: 0.7em;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.tvb__table td {
  padding: 0.4em 0.75em;
  background: var(--surface);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tvb__table td:first-child {
  border-radius: 6px 0 0 6px;
  font-family: var(--font-mono);
  font-weight: 700;
}

.tvb__table td:last-child {
  border-radius: 0 6px 6px 0;
  color: var(--text-muted);
}

.tvb__table td:nth-child(2) {
  font-weight: 600;
}

.tvb__table td:nth-child(n + 3) {
  font-family: var(--font-mono);
}

.tvb__table td:nth-child(4) {
  font-weight: 700;
}

.tvb__table tr[data-rank="1"] td:first-child {
  color: var(--gold);
}

.tvb__table tr[data-rank="2"] td:first-child {
  color: var(--silver);
}

.tvb__table tr[data-rank="3"] td:first-child {
  color: var(--bronze);
}

.tvb__table tbody tr,
.tvb__title {
  transition:
    opacity 220ms var(--ease),
    transform 220ms var(--ease);
}

.tvb__table tbody tr.is-out {
  opacity: 0;
  transform: translateY(-6px);
}

.tvb__table tbody tr.is-in {
  opacity: 0;
  transform: translateY(6px);
  transition: none;
}

.tvb__title.is-out {
  opacity: 0;
}

.tv__foot {
  display: block;
  width: 60px;
  height: 6px;
  margin: 0 auto;
  background: #030405;
  border-radius: 0 0 4px 4px;
}

.tv__dots {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 1.25rem;
}

.tv__dots button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.tv__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
  transition:
    transform 200ms var(--ease),
    background-color 200ms var(--ease);
}

.tv__dots button:hover i {
  background: var(--text-muted);
}

.tv__dots button:active i {
  transform: scale(0.8);
}

.tv__dots button[aria-pressed="true"] i {
  background: var(--accent);
  transform: scale(1.2);
}

.tv__dots button:focus-visible {
  border-radius: 50%;
}

@media (max-width: 759px) {
  .tv__screen {
    aspect-ratio: 4 / 3;
    padding: 10px;
    border-radius: 14px;
  }

  .tv__screen::after {
    inset: 10px;
  }

  /* The 4:3 box grows to fit all six rows rather than clipping them. */
  .tvb {
    height: auto;
    min-height: 100%;
    padding: 0.875rem;
  }

  .tvb__table {
    font-size: 15px;
    border-spacing: 0 3px;
  }

  .tvb__table td,
  .tvb__table th {
    padding-inline: 0.5em;
  }

  .col-players,
  .col-date {
    display: none;
  }
}

/* 8. Try it */

.browser {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-strong);
}

.browser__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-bottom: 1px solid var(--line);
}

.browser__dots {
  position: absolute;
  left: 14px;
  display: flex;
  gap: 6px;
}

.browser__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.browser__url {
  padding: 0.15rem 0.875rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.75rem;
}

.browser iframe {
  display: block;
  width: 100%;
  height: min(78vh, 760px);
  border: 0;
  background: var(--bg);
}

.try__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin-top: 1.25rem;
}

.try__phone {
  display: none;
}

@media (max-width: 759px) {
  .browser--live,
  .try__links {
    display: none;
  }

  .try__phone {
    display: grid;
    gap: 1.25rem;
  }

  .browser--phone {
    display: flex;
    flex-direction: column;
    aspect-ratio: 9 / 14;
  }

  .browser__body {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: var(--bg);
  }
}

.empty {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 2.5rem 1.25rem;
  border: 1.5px dashed var(--line);
  border-radius: 16px;
  background: radial-gradient(circle at 50% 30%, var(--glow), transparent 70%);
  text-align: center;
  --mark-cut: var(--bg);
}

.empty__glyph {
  width: 48px;
  height: 48px;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.empty__title {
  font-size: 1.25rem;
  font-weight: 600;
}

.empty__text {
  color: var(--text-muted);
}

/* 9. Closing call to action */

.close {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.close__clock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--line);
  font-size: clamp(8rem, 26vw, 22rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
}

.close__inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1.5rem;
}

.close__inner h2 {
  max-width: 18ch;
}

.close__inner .lede {
  max-width: 34rem;
}

/* 10. Footer */

.site-footer {
  padding-block: 2rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

@media (min-width: 760px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Phone type */

@media (max-width: 759px) {
  body {
    font-size: 16px;
  }
}

/* Reduced motion: everything in its final state, nothing moves. */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0ms !important;
  }

  .tile:hover {
    transform: none;
  }
}
