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

:root {
  color-scheme: dark;
  --ink: #100f13;
  --ink-2: #17151b;
  --surface: #201d25;
  --surface-2: #292531;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f5f2f1;
  --muted: #c8c0bf;
  --quiet: #8f8688;
  --coral: #ff6b6b;
  --coral-dark: #df4f54;
  --gold: #fbbf24;
  --teal: #31d3c6;
  --green: #36d49a;
  --plum: #a76bf2;
  --danger: #ef4444;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  --container: 1180px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --accent: #31d3c6;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

/* Lenis adds the `lenis` class itself; native smooth scrolling must be off
   while it drives the scroll, or every frame becomes its own animation. */
html.lenis,
html.lenis-active {
  scroll-behavior: auto !important;
}

body {
  margin: 0;
  min-width: 320px;
  background: linear-gradient(180deg, rgba(255, 107, 107, 0.08), transparent 18rem);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  letter-spacing: 0;
  overflow-x: hidden;
}

#paintCanvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.chapter-label {
  position: fixed;
  top: 50%;
  left: 14px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  pointer-events: none;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.chapter-label::before {
  content: "";
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, transparent, var(--accent));
}

.chapter-label__index {
  color: var(--accent);
}

.chapter-label__name {
  color: var(--quiet);
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--ink);
  transform: translateY(-140%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 14px 0;
  transition: background 180ms ease, border-color 180ms ease, padding 180ms ease;
}

.nav.is-scrolled,
.nav.is-open {
  padding: 10px 0;
  background: rgba(16, 15, 19, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  font-size: 18px;
}

.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(255, 107, 107, 0.22);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav__links a {
  transition: color 160ms ease;
}

.nav__links a:hover,
.nav__links a:focus-visible {
  color: var(--text);
}

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.nav__toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 160ms ease;
}

.nav__toggle.active span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav__toggle.active span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button--primary {
  background: linear-gradient(135deg, var(--coral), var(--gold));
  color: #17100d;
  box-shadow: 0 14px 34px rgba(255, 107, 107, 0.2);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: var(--line);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  border-color: rgba(49, 211, 198, 0.6);
}

.button--small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
}

.button__icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  font-size: 12px;
}

.hero {
  position: relative;
  min-height: 84svh;
  padding: 112px 0 52px;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__media,
.hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__media {
  z-index: -3;
  transform: translate3d(var(--parallax-x, 0), var(--parallax-y, 0), 0) scale(1.04);
  transition: transform 240ms ease;
}

.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__media video {
  /* Oversized and left/top-anchored to keep the generated video's
     bottom-right watermark outside the frame. */
  width: 106%;
  height: 106%;
  object-position: left top;
  transform-origin: center;
  will-change: transform;
}

.hero__shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(16, 15, 19, 0.96) 0%, rgba(16, 15, 19, 0.82) 34%, rgba(16, 15, 19, 0.4) 70%, rgba(16, 15, 19, 0.8) 100%),
    linear-gradient(180deg, rgba(16, 15, 19, 0.38), rgba(16, 15, 19, 0.94));
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  z-index: -1;
  background: linear-gradient(180deg, transparent, var(--ink));
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 56px;
  align-items: center;
}

.hero__content {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  transition: color 600ms ease;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 76px;
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: 44px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero__lead,
.section__copy p,
.section__header p,
.invite p,
.footer p {
  color: var(--muted);
  font-size: 17px;
}

.hero__lead {
  max-width: 640px;
  margin-bottom: 28px;
  font-size: 19px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-console {
  width: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 15, 19, 0.58);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.console-head,
.queue-board__top,
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.console-head {
  margin-bottom: 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(54, 212, 154, 0.14);
}

.mini-room {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mini-seat {
  position: relative;
  min-height: 112px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  overflow: hidden;
}

.mini-seat::after {
  content: "";
  position: absolute;
  inset: auto 12px 12px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.mini-seat.active {
  border-color: rgba(49, 211, 198, 0.86);
  box-shadow: inset 0 0 0 1px rgba(49, 211, 198, 0.18), 0 12px 30px rgba(49, 211, 198, 0.12);
}

.mini-seat.active::after {
  background: linear-gradient(90deg, var(--teal), var(--coral), var(--gold));
  animation: seatTrack 1.3s linear infinite;
}

.mini-seat--host {
  background: rgba(251, 191, 36, 0.08);
}

.seat__ring {
  display: block;
  width: 48px;
  height: 48px;
  margin: 8px auto 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(255, 107, 107, 0.9), rgba(49, 211, 198, 0.75));
}

.mini-seat.active .seat__ring {
  animation: speakingPulse 1.2s ease-in-out infinite;
}

.seat__label {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.waveform {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 16px 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.waveform i {
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--coral), var(--gold));
  animation: wave 820ms ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 80ms);
}

.waveform i:nth-child(2) { --i: 1; }
.waveform i:nth-child(3) { --i: 2; }
.waveform i:nth-child(4) { --i: 3; }
.waveform i:nth-child(5) { --i: 4; }
.waveform i:nth-child(6) { --i: 5; }
.waveform i:nth-child(7) { --i: 6; }
.waveform i:nth-child(8) { --i: 7; }
.waveform i:nth-child(9) { --i: 8; }

.console-question {
  min-height: 54px;
  margin: 0 0 14px;
  color: var(--text);
  font-size: 15px;
  font-weight: 750;
}

.console-controls {
  display: flex;
  gap: 10px;
}

.icon-button {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  font-weight: 900;
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: rgba(255, 107, 107, 0.7);
}

.signal-strip {
  position: relative;
  z-index: 1;
  border-block: 1px solid var(--line);
  background: rgba(23, 19, 24, 0.88);
  font-family: var(--mono);
}

.signal-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.signal-strip__inner div {
  min-height: 94px;
  padding: 20px 22px;
  border-left: 1px solid var(--line);
}

.signal-strip__inner div:last-child {
  border-right: 1px solid var(--line);
}

.signal-strip strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  color: var(--gold);
}

.signal-strip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.section {
  padding: 96px 0;
}

.section__split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1fr);
  gap: 52px;
  align-items: center;
}

.section__split--reverse {
  grid-template-columns: minmax(360px, 1fr) minmax(0, 0.92fr);
}

.section__header {
  max-width: 700px;
  margin-bottom: 38px;
}

.section__header p {
  max-width: 660px;
}

.section__copy {
  max-width: 560px;
}

@media (min-width: 1041px) {
  .section__split {
    align-items: start;
  }

  .section__split .section__copy {
    position: sticky;
    top: 120px;
  }
}

.control-group,
.gift-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.segmented,
.gift-chip {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  color: var(--muted);
  font-weight: 800;
}

.segmented.active,
.gift-chip.active {
  color: #120f11;
  border-color: transparent;
  background: linear-gradient(135deg, var(--teal), var(--gold));
}

.queue-board {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 107, 107, 0.14), transparent 44%),
    rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.queue-board h3 {
  margin-bottom: 0;
}

.label {
  display: block;
  margin-bottom: 6px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.pill {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: var(--radius);
  color: var(--gold);
  background: rgba(251, 191, 36, 0.08);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.queue-board p {
  margin: 18px 0 22px;
  color: var(--muted);
}

.queue-meter {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.meter {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.meter b {
  display: block;
  width: 92%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--gold), var(--teal));
  transition: width 240ms ease;
}

.queue-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.queue-stats div {
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
}

.queue-stats span {
  display: block;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.queue-stats strong {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 20px;
}

.game-stage {
  background:
    linear-gradient(180deg, rgba(49, 211, 198, 0.07), transparent 38%),
    rgba(20, 18, 22, 0.74);
}

.round-lab {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: stretch;
}

.round-lab__media {
  min-height: 430px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.round-lab__media img,
.round-lab__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Same watermark crop as the rewards video: oversize and anchor left/top so
   the icon in the bottom-right corner stays outside the frame. */
.round-lab__media video {
  width: 116%;
  height: 110%;
  object-position: left top;
}

.round-lab__panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 2;
}

@media (min-width: 1041px) {
  .round-lab__media {
    position: relative;
    z-index: 1;
  }

  .round-lab__panel .round-card,
  .round-lab__panel .round-tabs {
    background: rgba(16, 15, 19, 0.6);
    backdrop-filter: blur(14px);
    border-radius: var(--radius);
  }
}

.round-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.round-tab {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

.round-tab.active {
  background: var(--text);
  color: var(--ink);
}

.round-card {
  flex: 1;
  min-height: 326px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(167, 107, 242, 0.14), transparent 48%),
    rgba(255, 255, 255, 0.06);
}

.round-card p {
  color: var(--muted);
  font-size: 16px;
}

.round-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 34px;
}

.round-progress b {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.round-progress b.active {
  background: linear-gradient(90deg, var(--coral), var(--gold));
}

.reward-art {
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.reward-art img,
.reward-art video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Oversize and left/top-anchor the rewards video so the watermark in its
   bottom-right corner falls outside the cropped frame. */
.reward-art video {
  width: 118%;
  height: 112%;
  object-position: left top;
}

.gift-status {
  min-height: 52px;
  margin-top: 18px;
  color: var(--teal);
  font-weight: 800;
}

.invite {
  position: relative;
  padding-bottom: 110px;
  overflow: hidden;
}

.invite__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.34;
}

.invite__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.invite__inner {
  position: relative;
  z-index: 1;
}

.invite__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(380px, 1fr);
  gap: 42px;
  align-items: start;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 107, 107, 0.16), transparent 42%),
    rgba(255, 255, 255, 0.06);
}

.invite-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.invite-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  outline: none;
}

.invite-form input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(49, 211, 198, 0.14);
}

.invite-form__row,
.invite-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.invite-link {
  margin-top: 12px;
}

.form-note {
  min-height: 24px;
  margin: 10px 0 0;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 12px;
}

.invite-link input {
  font-family: var(--mono);
  font-size: 13px;
}

.footer {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  background: rgba(18, 15, 18, 0.85);
}

.footer p {
  margin: 0;
  font-size: 14px;
}

.footer__link {
  flex: 0 0 auto;
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
}

.policy-page {
  background:
    linear-gradient(180deg, rgba(255, 107, 107, 0.1), transparent 360px),
    var(--ink);
}

.policy {
  padding-top: 86px;
}

.policy-hero {
  padding: 76px 0 42px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(49, 211, 198, 0.11), transparent 42%),
    rgba(255, 255, 255, 0.03);
}

.policy-hero h1 {
  max-width: 820px;
  font-size: 58px;
}

.policy-lead {
  max-width: 860px;
  color: var(--muted);
  font-size: 19px;
}

.deletion-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.policy-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 32px 0 0;
}

.policy-meta div {
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.policy-meta dt {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.policy-meta dd {
  margin: 10px 0 0;
  color: var(--text);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.policy-content {
  display: grid;
  gap: 18px;
  padding: 42px 0 86px;
}

.policy-content article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.policy-content h2 {
  margin-bottom: 12px;
  font-size: 26px;
}

.policy-content p,
.policy-content li {
  color: var(--muted);
  font-size: 16px;
}

.policy-content p:last-child,
.policy-content ul:last-child {
  margin-bottom: 0;
}

.policy-content a,
.policy-meta a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-content ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.policy-content ol {
  display: grid;
  gap: 12px;
  padding-left: 22px;
}

.request-steps li::marker {
  color: var(--gold);
  font-weight: 900;
}

.policy-content strong {
  color: var(--text);
}

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes speakingPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(49, 211, 198, 0.32);
  }
  50% {
    transform: scale(1.07);
    box-shadow: 0 0 0 10px rgba(49, 211, 198, 0);
  }
}

@keyframes wave {
  0%, 100% { height: 16px; }
  50% { height: 46px; }
}

@keyframes seatTrack {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(80deg); }
}

body.is-paused .waveform i,
body.is-paused .mini-seat.active .seat__ring,
body.is-paused .mini-seat.active::after {
  animation-play-state: paused;
}

@media (max-width: 1040px) {
  .chapter-label {
    display: none;
  }

  h1 {
    font-size: 62px;
  }

  h2 {
    font-size: 38px;
  }

  .hero__inner,
  .section__split,
  .section__split--reverse,
  .round-lab,
  .invite__inner {
    grid-template-columns: 1fr;
  }

  .hero-console,
  .queue-board,
  .section__copy {
    max-width: none;
  }

}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav__links {
    position: fixed;
    inset: 63px 14px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(16, 15, 19, 0.96);
    box-shadow: var(--shadow);
  }

  .nav__links.active {
    display: flex;
  }

  .nav__links a {
    padding: 12px;
  }

  .hero {
    min-height: 82svh;
    padding: 92px 0 34px;
  }

  .hero__shade {
    background:
      linear-gradient(180deg, rgba(16, 15, 19, 0.82), rgba(16, 15, 19, 0.96)),
      linear-gradient(90deg, rgba(16, 15, 19, 0.82), rgba(16, 15, 19, 0.56));
  }

  .hero__inner {
    gap: 28px;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 30px;
  }

  .hero__lead,
  .section__copy p,
  .section__header p,
  .invite p {
    font-size: 16px;
  }

  .hero-console {
    padding: 14px;
  }

  .mini-seat {
    min-height: 92px;
  }

  .seat__ring {
    width: 40px;
    height: 40px;
    margin-top: 2px;
  }

  .signal-strip__inner,
  .queue-stats {
    grid-template-columns: 1fr;
  }

  .signal-strip__inner div {
    min-height: 72px;
    border-right: 1px solid var(--line);
  }

  .section {
    padding: 68px 0;
  }

  .round-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .round-lab__media,
  .reward-art {
    min-height: 300px;
  }

  .invite__inner {
    padding: 22px;
  }

  .invite-form__row,
  .invite-link {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .policy {
    padding-top: 72px;
  }

  .policy-hero {
    padding: 54px 0 32px;
  }

  .policy-hero h1 {
    font-size: 40px;
  }

  .policy-meta {
    grid-template-columns: 1fr;
  }

  .policy-content article {
    padding: 18px;
  }

  .policy-content h2 {
    font-size: 23px;
  }
}

@media (max-width: 430px) {
  .hero__actions,
  .control-group,
  .gift-row {
    flex-direction: column;
  }

  .button,
  .segmented,
  .gift-chip {
    width: 100%;
  }

  .mini-room {
    grid-template-columns: 1fr 1fr;
  }

  .queue-board__top {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  #paintCanvas,
  .chapter-label {
    display: none;
  }
}
