:root {
  --bg: #0c0d12;
  --bg-2: #14151c;
  --ink: #f3f1ec;
  --muted: #9a968c;
  --line: rgba(255, 255, 255, 0.08);
  --blue: #2f6bff;
  --blue-2: #1f54d8;
  --gold: #d7b36a;
  --danger: #e07a73;
  --ok: #3d9a7a;
  --npc: #ffffff;
  --radius: 16px;
  --font: "Source Sans 3", "Segoe UI", system-ui, -apple-system, "PingFang SC", "Noto Sans SC", sans-serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --serif-italic: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --display: "Fraunces", "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
img { max-width: 100%; }

body {
  font-family: var(--font);
  background: #07080b;
  color: var(--ink);
}

.stage {
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px 16px 24px;
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(47, 107, 255, 0.18) 0%, transparent 58%),
    radial-gradient(1100px 520px at 72% 110%, rgba(215, 179, 106, 0.08) 0%, transparent 50%),
    #07080b;
}

/* Desktop: keep a portrait drama column, but use more viewport and brand the stage */
.stage-brand {
  display: none;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 241, 236, 0.45);
  user-select: none;
}

.phone {
  width: min(440px, calc(100vw - 32px));
  height: min(900px, calc(100dvh - 72px));
  max-height: calc(100dvh - 56px);
  background: var(--bg);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

@media (min-width: 901px) {
  .stage-brand { display: block; }
  .phone {
    width: min(460px, 36vw);
    min-width: 400px;
    height: min(920px, calc(100dvh - 88px));
  }
}

@media (max-width: 900px), (display-mode: standalone), (display-mode: fullscreen) {
  .stage {
    padding: 0;
    gap: 0;
    min-height: 100dvh;
    min-height: 100svh;
    background: var(--bg);
  }
  .stage-brand { display: none; }
  .phone {
    width: 100%;
    min-width: 0;
    height: 100dvh;
    height: 100svh;
    max-height: none;
    border-radius: 0;
    border: 0;
    box-shadow: none;
  }
  .status {
    padding-top: env(safe-area-inset-top, 0px);
    height: calc(44px + env(safe-area-inset-top, 0px));
  }
  .screen {
    inset: calc(44px + env(safe-area-inset-top, 0px)) 0 0;
  }
}

.phone::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  z-index: 50;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.status {
  height: 44px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 22px 6px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(243, 241, 236, 0.7);
  position: relative;
  z-index: 5;
}
.status b { color: var(--ink); font-weight: 600; }

.screen {
  position: absolute;
  inset: 44px 0 0;
  display: flex;
  flex-direction: column;
}

.toast {
  position: absolute;
  left: 50%;
  top: 58px;
  transform: translateX(-50%);
  background: rgba(20, 21, 28, 0.94);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  z-index: 50;
  pointer-events: none;
}

/* Onboard */
.onboard {
  padding: 12px 22px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(47, 107, 255, 0.16), transparent 38%),
    var(--bg);
}
.kicker {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.onboard h1 {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1.15;
  font-weight: 600;
}
.onboard p.lead {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; color: var(--muted); }
.field .hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.field input, .field select {
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  outline: none;
  color: var(--ink);
}
.field select {
  height: 48px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239a968c' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.field input:focus, .field select:focus { border-color: var(--blue); }
.field select.has-value {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.avatars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.avatar-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 4px 0 2px;
  color: var(--muted);
  font-size: 11px;
}
.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  border: 2px solid transparent;
  color: #fff;
  position: relative;
}
.avatar svg {
  width: 28px;
  height: 28px;
  display: block;
}
.avatar-btn.on { color: var(--ink); }
.avatar-btn.on .avatar {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #fff;
}
.avatar-btn .check {
  position: absolute;
  top: 2px;
  right: calc(50% - 32px);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  display: none;
  place-items: center;
  box-shadow: 0 0 0 2px var(--bg);
}
.avatar-btn.on .check { display: grid; }
.avatar-btn .check::after {
  content: "";
  width: 7px;
  height: 4px;
  margin-top: -1px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}
.chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.chip.on {
  background: #fff;
  color: #111;
  border-color: #fff;
  font-weight: 650;
}
.chip.on::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 4px;
  margin-right: 7px;
  margin-bottom: 2px;
  border-left: 2px solid #111;
  border-bottom: 2px solid #111;
  transform: rotate(-45deg);
}
.btn {
  height: 48px;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  font-weight: 650;
  font-size: 15px;
}
.btn:disabled { opacity: 0.4; }
.btn.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn.gold { background: var(--gold); color: #1a1408; }

.ob-progress {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 2px 0 8px;
  background: linear-gradient(180deg, #141826 70%, transparent);
}
.ob-progress .ob-step {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.ob-progress .ob-step b { color: var(--ink); font-weight: 650; }
.ob-bar {
  height: 3px;
  background: #2a2b33;
  border-radius: 99px;
  overflow: hidden;
}
.ob-bar > span {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: 99px;
  transition: width 0.2s ease;
}

.ob-choices {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.ob-choice {
  text-align: left;
  min-height: 104px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.ob-choice.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.ob-choice strong {
  display: block;
  font-size: 16px;
  font-weight: 650;
}
.ob-choice .sub {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 400;
}
.ob-choice.primary .sub { color: rgba(255, 255, 255, 0.82); }
.ob-ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  flex-shrink: 0;
  position: relative;
  margin-top: 2px;
}
.ob-ico.play::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 10px;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent currentColor;
}
.ob-ico.person::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
}
.ob-ico.person::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 19px;
  width: 18px;
  height: 10px;
  border-radius: 10px 10px 0 0;
  background: currentColor;
}
.ob-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}
.ob-nav .btn, .onboard > .btn { width: 100%; }
.ob-quote {
  background: rgba(255, 255, 255, 0.04);
  border-left: 2px solid var(--gold);
  padding: 10px 12px;
  border-radius: 0 12px 12px 0;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
}
.ob-opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ob-opt {
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.4;
  position: relative;
  padding-right: 36px;
}
.ob-opt.on {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px #fff;
  font-weight: 600;
}
.ob-opt.on::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 5px;
  margin-top: -5px;
  border-left: 2px solid var(--ok);
  border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}
.hear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  margin: 4px 0 2px;
}
.hear-btn.on { border-color: rgba(255, 255, 255, 0.4); }
.hear-ico {
  width: 16px;
  height: 16px;
  position: relative;
}
.hear-ico::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 6px;
  height: 8px;
  background: currentColor;
  border-radius: 1px 0 0 1px;
}
.hear-ico::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  border: 6px solid transparent;
  border-left-color: currentColor;
  border-left-width: 8px;
}
.ob-suggest {
  font-size: 13px;
  color: var(--gold);
  line-height: 1.5;
}
.sample-done {
  justify-content: flex-end;
}
.sample-done h1 { font-size: 30px; }
.guest-note {
  font-size: 12px;
  color: var(--muted);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 8px 0 10px;
}
.guest-note + .btn { margin-bottom: 12px; }

.onboard.cas { padding: 8px 16px 18px; gap: 10px; }
.cas-stage {
  position: relative;
  min-height: 210px;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(420px 180px at 50% 20%, var(--look, #3d5a80), transparent 62%),
    linear-gradient(180deg, #1a1c24, #0c0d12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 12px 14px;
}
.cas-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55));
  pointer-events: none;
}
.cas-figure {
  position: relative;
  z-index: 1;
  height: 168px;
  width: 92px;
}
.cas-svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 8px 16px rgba(0,0,0,.4)); }
.cas-caption {
  position: relative;
  z-index: 1;
  text-align: center;
}
.cas-caption strong { display: block; font-size: 16px; }
.cas-caption span { font-size: 11px; color: var(--muted); }
.cas-panel { display: flex; flex-direction: column; gap: 12px; }
.cas-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 8px 0 4px;
}
.cas-stats div {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
}
.cas-stats b { display: block; font-size: 16px; }
.cas-stats span { font-size: 10px; color: var(--muted); }
.build-stamp { display: flex; flex-direction: column; gap: 8px; }

/* Home */
.home {
  background: var(--bg);
  overflow: hidden;
}
.home-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 0 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.home-scroll::-webkit-scrollbar { width: 0; height: 0; display: none; }
.home-head {
  padding: 8px 18px 14px;
}
.home-head .kicker {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.home-brand {
  display: block;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243, 241, 236, 0.55);
  margin: 0 0 6px;
}
.home-head h1,
.home-show-title {
  font-family: var(--display);
  font-size: clamp(40px, 11vw, 52px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.home-show-kicker {
  margin: 10px 0 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.home-tagline {
  margin-top: 10px;
  font-family: var(--serif-italic);
  font-style: italic;
  font-size: 16px;
  line-height: 1.45;
  color: rgba(243, 241, 236, 0.78);
  max-width: 22em;
}
.home-show-line {
  display: none;
}
.fy { padding: 0 14px 8px; }
.fy .hero-card {
  border-radius: 18px;
}
.chapter-line {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.02em;
  margin: 2px 0 0;
}
.fy-snap {
  height: 390px;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  border-radius: 18px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.fy-snap::-webkit-scrollbar { width: 0; height: 0; display: none; }
.hero-card {
  height: 390px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-card .scene { position: absolute; inset: 0; }
.hero-card .level-pill { top: 14px; right: 14px; }
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 28%, rgba(8,9,14,.92));
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 18px 16px 16px;
}
.hero-copy h2 {
  font-family: var(--display);
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 4px 0 8px;
}
.hero-copy p {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(243,241,236,.78);
  max-width: 92%;
}
.hero-copy .btn {
  width: 100%;
  margin-top: 12px;
}
.hero-copy .card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.hero-copy .card-actions .btn { width: auto; flex: 1; margin-top: 0; }
.hero-copy .icon-btn { background: rgba(0, 0, 0, 0.35); }
.shelf { margin-top: 22px; }
.shelf-title {
  padding: 0 18px 6px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.shelf-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 14px 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.shelf-blurb {
  padding: 0 18px 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 36em;
}
.shelf-takes {
  margin-top: 28px;
  padding: 0 18px 8px;
}
.shelf-takes .shelf-title {
  padding: 0;
}
.shelf-takes .shelf-blurb {
  padding: 0 0 14px;
}
.takes-card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.01em;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.takes-card:active {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}
.takes-card-sub {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}
.home-legal {
  margin: 20px 18px 8px;
  padding: 16px 0 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.home-legal .legal-pay {
  font-size: 13px;
  color: rgba(243, 241, 236, 0.88);
  margin-bottom: 8px;
}
.home-legal a {
  color: rgba(243, 241, 236, 0.88);
  text-underline-offset: 2px;
}
.home-legal .legal-meta {
  margin-top: 6px;
  opacity: 0.9;
}
.show-ep-row .show-ep-card {
  flex: 0 0 200px;
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  background: #12141c;
}
.show-ep-card .scene {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.show-ep-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 48px 12px 12px;
  background: linear-gradient(180deg, transparent 0%, rgba(8,9,14,.35) 30%, rgba(8,9,14,.94) 70%);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.show-ep-body h3 {
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
  min-height: 2.3em;
  font-weight: 700;
}
.show-ep-body .kicker {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(215, 179, 106, 0.95);
  margin-bottom: 2px;
}
.show-ep-body .cliff {
  font-family: var(--serif-italic);
  font-style: italic;
  font-size: 12px;
  color: rgba(243, 241, 236, 0.78);
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.show-ep-card.viral .level-pill,
.show-ep-card.viral .kicker {
  color: var(--gold);
}
.show-ep-card.locked {
  opacity: 0.72;
}
.chase-row .chase-card {
  flex: 0 0 210px;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  background: #12141c;
}
.chase-card .scene {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.chase-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 52px 12px 12px;
  background: linear-gradient(180deg, transparent 0%, rgba(8,9,14,.4) 28%, rgba(8,9,14,.96) 72%);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.chase-body .kicker {
  color: rgba(215, 179, 106, 0.95);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.chase-body h3 {
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
  min-height: 2.3em;
  font-weight: 700;
}
.chase-body .cliff {
  font-family: var(--serif-italic);
  font-style: italic;
  font-size: 12px;
  color: rgba(243, 241, 236, 0.78);
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.chase-body .meta-row {
  font-size: 11px;
  color: var(--muted);
}
.chase-card.locked {
  opacity: 0.72;
}
.chase-card.done .chase-body .kicker {
  color: var(--gold, #c9a227);
}
.s1-loop-panel {
  margin: 4px 18px 20px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0e0f15;
}
.s1-loop-panel .kicker {
  margin-bottom: 2px;
}
.s1-loop-panel h3 {
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 4px 0 6px;
  font-weight: 700;
}
.s1-loop-panel > .muted {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}
.s1-passport-strip {
  margin-top: 12px;
}
.s1-passport-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.s1-stamp-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.s1-stamp {
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  opacity: 0.5;
}
.s1-stamp.on {
  opacity: 1;
  color: var(--gold, #c9a227);
  border-color: rgba(201, 162, 39, 0.45);
}
.s1-loop-meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.s1-loop-cta {
  margin-top: 10px;
}
.s1-loop-cta .btn {
  width: 100%;
}
.sheet .s1-passport-strip {
  margin: 10px 0 4px;
}
.show-hero .hero-card {
  min-height: 320px;
}
.shelf-card {
  flex: 0 0 186px;
  height: 268px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  display: block;
  background: #12141c;
}
.shelf-card .scene {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.shelf-card .sit-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  max-width: calc(100% - 18px);
  box-sizing: border-box;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.15;
}
.shelf-card.has-badge .sit-pill {
  max-width: calc(100% - 88px);
}
.shelf-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  box-sizing: border-box;
  padding: 52px 10px 12px;
  background: linear-gradient(180deg, transparent 0%, rgba(8,9,14,.28) 32%, rgba(8,9,14,.86) 68%, rgba(8,9,14,.97) 100%);
  display: grid;
  grid-template-rows: 2.7em auto auto;
  gap: 6px;
  align-content: end;
  min-height: 138px;
}
.shelf-body h3 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  min-height: 2.4em;
  max-height: 2.4em;
  height: 2.4em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  align-self: start;
}
.shelf-body .meta-row {
  display: flex !important;
  flex-direction: column;
  flex-wrap: nowrap !important;
  align-items: flex-start;
  gap: 3px !important;
  margin: 0 !important;
  padding: 0;
  font-family: var(--serif-italic);
  font-style: italic;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(243, 241, 236, 0.78);
  min-height: 2.8em;
  max-height: 2.8em;
  overflow: hidden;
}
.shelf-body .meta-row .mins {
  flex: 0 0 auto;
  white-space: nowrap;
  font-style: italic;
  opacity: 0.85;
  letter-spacing: 0.02em;
}
.shelf-body .meta-row .hook {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
  font-style: italic;
}
.shelf-body .card-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}
.shelf-body .card-actions .btn {
  width: auto;
  flex: 1;
  margin: 0;
  height: 36px;
  font-size: 13px;
  min-width: 0;
}
.shelf-body .icon-btn {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}
.shelf-card .lock-badge {
  position: absolute;
  top: 10px;
  left: auto;
  right: 10px;
  z-index: 3;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
}
.shelf-card .lock-badge.watched {
  background: rgba(61, 154, 122, 0.88);
}
.shelf-card .lock-badge.premium {
  background: rgba(215, 179, 106, 0.92);
  color: #1a1408;
}
.shelf-card.locked .scene {
  filter: grayscale(0.55) brightness(0.55);
}
.shelf-card.locked .shelf-body h3 {
  opacity: 0.85;
}

/* Feed */
.feed {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.feed::-webkit-scrollbar { width: 0; height: 0; display: none; }
.drama-card {
  height: 100%;
  min-height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  padding: 18px 20px 78px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.drama-card .scene {
  position: absolute;
  inset: 0;
}
.scene.rain {
  background:
    radial-gradient(800px 400px at 20% 10%, #3d5a73 0%, transparent 50%),
    linear-gradient(180deg, #1a2430, #0c0d12);
}
.scene.office {
  background:
    radial-gradient(700px 360px at 80% 0%, #6e5a46 0%, transparent 46%),
    linear-gradient(180deg, #241e18, #0c0d12);
}
.scene.night {
  background:
    radial-gradient(700px 360px at 50% 0%, #4a3a6a 0%, transparent 50%),
    linear-gradient(180deg, #1a1224, #0c0d12);
}
.scene.cafe {
  background:
    radial-gradient(700px 360px at 30% 0%, #8b6914 0%, transparent 50%),
    linear-gradient(180deg, #2a2118, #0c0d12);
}
.scene.street, .scene.platform {
  background:
    radial-gradient(700px 360px at 50% 0%, #3d5a73 0%, transparent 50%),
    linear-gradient(180deg, #1a2430, #0c0d12);
}
.scene-cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: cover;
  background-position: center;
  background-color: #1a1b22;
}
.scene-cover-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: #1a1b22;
  pointer-events: none;
}
.scene-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  font-size: 42px;
  line-height: 1;
  background: linear-gradient(160deg, #1a1f2c 0%, #12141c 55%, #2a2430 100%);
  pointer-events: none;
}
.scene.has-cover {
  background: #12141c !important;
}
.scene.has-cover .rain-lines,
.scene:has(.scene-cover) .rain-lines,
.scene:has(.scene-cover-img) .rain-lines,
.scene:has(.scene-fallback) .rain-lines { display: none; }
.scene:has(.scene-cover),
.scene:has(.scene-cover-img),
.scene:has(.scene-fallback) {
  background: #12141c !important;
}
.rain-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    95deg,
    transparent 0 18px,
    rgba(255, 255, 255, 0.05) 19px,
    transparent 20px
  );
  animation: rain 1.2s linear infinite;
  opacity: 0.4;
}
@keyframes rain { to { background-position: 40px 80px; } }
.cover-mark {
  position: absolute;
  top: 28px;
  left: 20px;
  font-size: 64px;
  line-height: 1;
  filter: grayscale(0.2);
}
.level-pill {
  position: absolute;
  top: 36px;
  right: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.drama-card h2 {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.1;
  position: relative;
}
.drama-card .tagline {
  color: var(--gold);
  font-size: 13px;
  margin: 8px 0 10px;
  position: relative;
}
.drama-card .desc {
  color: rgba(243, 241, 236, 0.78);
  font-size: 14px;
  line-height: 1.65;
  position: relative;
  max-width: 92%;
}
.meta-row {
  display: flex;
  gap: 14px;
  margin: 16px 0;
  font-size: 12px;
  color: var(--muted);
  position: relative;
}
.card-actions {
  display: flex;
  gap: 8px;
  position: relative;
}
.card-actions .btn { flex: 1; }
.icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--ink);
  flex: 0 0 48px;
}
.icon-btn.on { border-color: var(--gold); color: var(--gold); }
.icon-btn svg { width: 18px; height: 18px; display: block; }
.swipe-hint {
  position: absolute;
  bottom: 64px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.35);
}

.tabs {
  height: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  background: #0e0f15;
}
.tabs button {
  position: relative;
  color: var(--muted);
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.tabs button.on { color: var(--ink); }
.tabs .badge {
  position: absolute;
  margin-left: 18px;
  margin-top: -22px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
}

/* Play */
.play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #12131a;
  overflow: hidden;
  color-scheme: dark;
}
.scene-photo,
.play-still {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.scene-photo {
  background-size: cover;
  background-position: center;
  opacity: 0;
  filter: saturate(0.85) contrast(1.08);
  transition: opacity 0.85s ease;
}
.scene-photo.on {
  opacity: 0.5;
}
.scene-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 13, 18, 0.72) 0%, rgba(12, 13, 18, 0.38) 42%, rgba(12, 13, 18, 0.88) 100%);
}
.city-plate {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 42%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  filter: saturate(1.12) contrast(1.08);
  transition: opacity 0.9s ease;
}
.city-plate.on {
  opacity: 1;
}
.city-plate::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 13, 18, 0.38) 0%, rgba(12, 13, 18, 0.18) 38%, rgba(12, 13, 18, 0.72) 100%);
}
.npc-slot {
  position: absolute;
  left: 50%;
  bottom: 26%;
  width: min(74%, 320px);
  height: 54%;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
}
.npc-still {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 18%;
  opacity: 0;
  transition: opacity 0.7s ease;
  border-radius: 22px 22px 44% 44%;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}
.npc-still.on {
  opacity: 1;
}
.npc-silhouette {
  position: absolute;
  inset: 8% 12% 0;
  color: #6e5a46;
  opacity: 0.92;
  transition: opacity 0.45s ease, color 0.45s ease;
}
.npc-silhouette svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.4));
}
.npc-slot.has-still .npc-silhouette {
  opacity: 0;
}
.city-detail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36%;
  z-index: 2;
  pointer-events: none;
  background-size: cover;
  background-position: center bottom;
  opacity: 0.62;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 58%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 58%);
}
.pov-hands {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  z-index: 3;
  pointer-events: none;
}
.pov-desk {
  position: absolute;
  inset: 28% 0 0;
  background:
    linear-gradient(180deg, rgba(18, 19, 26, 0) 0%, rgba(42, 30, 20, 0.55) 22%, rgba(42, 30, 20, 0.88) 100%),
    url("https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?auto=format&fit=crop&w=1200&q=40") center bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 38%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 38%);
}
.pov-svg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.city-stamp {
  position: absolute;
  top: 92px;
  left: 12px;
  z-index: 7;
  max-width: calc(100% - 24px);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(12, 13, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.play.city-skin .npc-still.on {
  opacity: 1;
}
.chips.base-city .chip {
  font-size: 12px;
  padding: 7px 10px;
}
.chips.base-city .chip.locked {
  opacity: 0.55;
  border-style: dashed;
}
.who-role {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(243, 241, 236, 0.62);
  line-height: 1.25;
}
.passport-box .passport-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.passport-row {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  opacity: 0.55;
}
.passport-row.on {
  opacity: 1;
  background: rgba(255, 255, 255, 0.07);
}
.passport-city {
  font-weight: 650;
  font-size: 14px;
}
.passport-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.passport-promise {
  font-size: 12px;
  margin-top: 4px;
  line-height: 1.35;
  color: rgba(243, 241, 236, 0.78);
}
.passport-tip {
  font-size: 12px;
  margin-top: 6px;
  line-height: 1.4;
  color: var(--text, #f3f1ec);
}
.passport-slang {
  font-size: 11px;
  margin-top: 4px;
  letter-spacing: 0.02em;
  color: #c9a227;
}
.base-city-field {
  margin-top: 4px;
}
.home-head .base-city-field {
  margin-top: 10px;
}
.home-head .base-city-field .hint {
  display: none;
}
.hero-me + .base-city-field {
  margin: 12px 0 4px;
}
.play-top {
  height: 88px;
  padding: 44px 4px 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 34px 34px 52px;
  align-items: center;
  gap: 2px;
  background: linear-gradient(#12131a, #12131a 70%, transparent);
  position: relative;
  z-index: 8;
  flex-shrink: 0;
}
.play-top .back, .play-top .ghost {
  width: auto;
  min-width: 44px;
  height: 36px;
  color: var(--ink);
  font-size: 13px;
}
.play-top .ghost { font-size: 12px; }
.play-top .prog {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.play-top .prog b { color: var(--ink); font-weight: 600; }
.play-top .sound,
.play-top .share {
  width: 34px;
  height: 36px;
  border-radius: 10px;
  color: var(--ink);
  display: grid;
  place-items: center;
}
.play-top.sample {
  grid-template-columns: 48px minmax(0, 1fr) 34px 34px auto;
}
.play-top .sound.off { color: var(--muted); }
.play-top .sound svg,
.play-top .share svg { width: 18px; height: 18px; display: block; }

.scene-hud {
  position: relative;
  z-index: 8;
  flex-shrink: 0;
  margin: 0 12px 6px;
  padding: 10px 12px 12px;
  border-radius: 14px;
  background: rgba(12, 13, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.hud-beat {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.hud-where {
  font-size: 12px;
  color: rgba(243, 241, 236, 0.88);
  font-weight: 650;
}
.hud-who {
  font-size: 12px;
  color: #9ec0ff;
  margin-top: 2px;
}
.hud-happen {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
  margin-top: 6px;
}
.hud-zh {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 4px;
}
.hud-lang {
  position: absolute;
  top: 8px;
  right: 8px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.stream {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 4;
}
.narrator {
  align-self: stretch;
  max-width: 100%;
  text-align: left;
  font-size: 14px;
  line-height: 1.65;
  font-style: italic;
  color: rgba(243, 241, 236, 0.78);
  background: rgba(18, 19, 26, 0.28);
  border: 0;
  border-left: 2px solid rgba(243, 230, 200, 0.35);
  border-radius: 0 12px 12px 0;
  padding: 8px 12px;
}
.row.scene-row {
  align-self: stretch;
  max-width: 100%;
  align-items: flex-start;
}
.see-kicker {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243, 241, 236, 0.42);
  margin-bottom: 2px;
}
.narrator strong {
  color: #f3e6c8;
  font-style: normal;
  font-weight: 650;
}
.narrator em {
  color: rgba(243, 241, 236, 0.78);
}
.row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 82%;
}
.row.npc { align-self: flex-start; align-items: flex-start; }
.row.me { align-self: flex-end; align-items: flex-end; }
.who-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.row.me .who-row { flex-direction: row-reverse; }
.face {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -0.02em;
  position: relative;
  overflow: hidden;
}
.face.has-photo { color: transparent; }
.face-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.face.scene {
  background: #3d4458;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: #fff;
}
.mood {
  font-size: 16px;
  line-height: 1;
}
.who {
  font-size: 12px;
  color: var(--muted);
  padding: 0 4px;
  font-weight: 650;
}
.bubble-wrap {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  max-width: min(78%, 420px);
  min-width: 0;
}
.row.me .bubble-wrap {
  flex-direction: row-reverse;
  margin-left: auto;
}
.bubble-wrap .bubble {
  flex: 1;
  min-width: 0;
  max-width: 100%;
}
.bubble-hear {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.bubble-hear:active {
  transform: scale(0.96);
}
.bubble {
  padding: 10px 12px;
  font-size: 15px;
  line-height: 1.55;
  word-break: break-word;
}
.bubble.npc {
  background: var(--npc);
  color: #161616;
  border-radius: 4px 16px 16px 16px;
}
.bubble.me {
  background: var(--blue);
  color: #fff;
  border-radius: 16px 4px 16px 16px;
}
.word {
  display: inline;
  padding: 0 1px;
  margin: 0;
  border: 0;
  border-bottom: 1px dashed #2f6bff;
  color: inherit;
  font: inherit;
  font-weight: 650;
  background: rgba(47, 107, 255, 0.08);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.bubble.me .word {
  border-bottom-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.12);
}
.word.is-slang {
  color: #c9a227;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #c9a227;
  text-underline-offset: 3px;
  border-bottom: none;
  background: rgba(201, 162, 39, 0.14);
}
.bubble.me .word.is-slang {
  color: #f0d9a0;
  border-bottom-color: #f0d9a0;
  background: rgba(240, 217, 160, 0.16);
}
.rev-chip {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
  background: rgba(215, 179, 106, 0.22);
  color: #d7b36a;
}
.tone-chip {
  display: inline-block;
  margin-left: 6px;
  margin-top: 2px;
  padding: 2px 7px;
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 999px;
  font-family: var(--sans, "Source Sans 3", "Source Sans Pro", sans-serif);
  font-size: 9px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
  background: rgba(201, 162, 39, 0.14);
  color: #c9a227;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tone-chip:active {
  transform: scale(0.97);
}
.bubble.me .tone-chip {
  color: #f0d9a0;
  border-color: rgba(240, 217, 160, 0.45);
  background: rgba(240, 217, 160, 0.16);
}
.lookup .rev-chip {
  background: #f3ead2;
  color: #8a6a24;
}
.srs-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #2a2c38;
  color: var(--muted);
  vertical-align: middle;
}
.srs-pill.new { color: #9aa3c7; }
.srs-pill.learning { color: #d7b36a; }
.srs-pill.review { color: #6ea8ff; }
.srs-pill.mastered { color: #6ec9a8; }

.recap {
  position: absolute;
  inset: 88px 0 0;
  z-index: 6;
  display: none;
  flex-direction: column;
  justify-content: center;
  padding: 24px 24px 32px;
  background: rgba(18, 19, 26, 0.78);
  backdrop-filter: blur(10px);
}
.recap.on { display: flex; }
.recap[hidden] { display: none !important; }
.recap .tag {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 10px;
}
.recap p { font-size: 18px; line-height: 1.5; font-family: var(--serif); }
.recap-zh {
  margin-top: 10px;
  font-size: 14px !important;
  font-family: inherit !important;
  color: var(--muted);
  line-height: 1.5;
}
.recap-go { margin-top: 18px; width: 100%; }
.recap-bar {
  display: none;
}
.recap-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
  animation: recap 3s linear forwards;
}
.recap-bar.slow span { animation-duration: 20s; }
@keyframes recap { to { width: 100%; } }

.choice-cue {
  text-align: left;
}
.choice-cue .cue-en {
  font-size: 15px;
  font-weight: 650;
  color: var(--ink);
}
.choice-cue .cue-zh {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.choice-cue .cue-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.4;
}
.choice-cue .you-said {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.npc-judge {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(215, 179, 106, 0.35);
  background: rgba(215, 179, 106, 0.08);
}
.npc-judge .kicker {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d7b36a;
  margin-bottom: 4px;
}
.npc-judge p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}
.coach-tip {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.dock {
  flex: 0 1 auto;
  min-height: 0;
  padding: 8px 14px 16px;
  background: linear-gradient(180deg, rgba(14, 15, 21, 0.55) 0%, rgba(14, 15, 21, 0.92) 34%);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  position: relative;
  z-index: 6;
}
.dock.choosing {
  flex: 0 0 auto;
  max-height: min(390px, calc(100% - 260px));
  padding: 10px 14px 14px;
}
.hold {
  height: 52px;
  border-radius: 14px;
  background: #1c1e28;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  user-select: none;
}
.hold.hot { background: var(--blue); border-color: var(--blue); }
.talk {
  height: 56px;
  border-radius: 14px;
  background: var(--blue);
  border: 1px solid var(--blue);
  color: #fff;
  font-weight: 650;
  font-size: 16px;
}
.talk.live {
  animation: sayPulse 1.4s ease-in-out infinite;
  background: #c45c3a;
  border-color: #c45c3a;
}
.talk-heard {
  font-size: 13px;
  color: rgba(243, 241, 236, 0.88);
  text-align: center;
  min-height: 1.4em;
  margin: 0;
}
.mic-fallback {
  margin-top: 6px;
}
.mic-fallback summary {
  font-size: 12px;
  color: rgba(243, 241, 236, 0.72);
  cursor: pointer;
}
.row.live-talk .bubble.me {
  border: 1px dashed rgba(47, 107, 255, 0.65);
  background: rgba(47, 107, 255, 0.18);
  opacity: 0.95;
}
.row.live-talk .bubble.me .live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #5b8cff;
  vertical-align: middle;
  animation: sayPulse 1.2s ease-in-out infinite;
}
.say-scripts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow: auto;
}
.say-script {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #1c1e28;
  border: 1px solid var(--line);
}
.say-script .t {
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
  flex: 1;
}
.script-hear {
  flex: 0 0 auto;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}
.mic-fallback {
  margin-top: 4px;
}
.mic-fallback summary {
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
}
.mic-fallback .fallback-line {
  display: block;
  width: 100%;
  text-align: left;
  margin-top: 6px;
  font-size: 12px;
  white-space: normal;
}
@keyframes sayPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 107, 255, 0.45); }
  50% { box-shadow: 0 0 0 10px rgba(47, 107, 255, 0); }
}
.say-cue .cue-en {
  font-size: 15px;
  font-weight: 650;
  color: var(--ink);
}
.say-quote {
  font-size: 17px;
  font-weight: 650;
  line-height: 1.35;
  margin: 8px 0 6px;
  color: var(--ink);
}
.dock.your-turn {
  padding-top: 12px;
}
.hint { font-size: 11px; color: var(--muted); text-align: center; flex-shrink: 0; }

.choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: none;
  overflow: visible;
}
.choices.official {
  flex: 0 0 auto;
}
.choices.community {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 4px 12px 16px 2px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
  mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 8px), transparent 100%);
}
.choices.community::-webkit-scrollbar { width: 0; height: 0; }

.choice {
  text-align: left;
  padding: 10px 14px 10px 12px;
  border-radius: 12px;
  background: #1c1e28;
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  line-height: 1.45;
  font-size: 14px;
  color: var(--ink);
  flex-shrink: 0;
  cursor: pointer;
  box-sizing: border-box;
}
.choice .k {
  flex: 0 0 16px;
  width: auto;
  color: var(--gold);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.45;
  padding-top: 1px;
}
.choice .t {
  flex: 1 1 auto;
  min-width: 0;
  word-break: break-word;
  padding-right: 8px;
}
.choice .sub { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.choice.community { border-color: rgba(47, 107, 255, 0.35); }
.dock.choosing .add-branch {
  flex: 0 0 auto;
  height: 40px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: var(--muted);
  font-size: 13px;
  background: #0e0f15;
}

.lookup {
  background: #fff;
  color: #161616;
  border-radius: 16px;
  padding: 12px 12px 10px;
}
.lookup .ipa { color: #667; font-size: 13px; }
.lookup h3 { font-size: 18px; }
.lookup .gloss { margin: 4px 0 8px; }
.lookup .ex { font-size: 13px; line-height: 1.5; color: #333; font-style: italic; }
.lookup .row-btns { display: flex; gap: 8px; margin-top: 10px; }
.lookup .row-btns button {
  flex: 1;
  height: 36px;
  border-radius: 10px;
  background: #eef2ff;
  color: #1a1a1a;
  font-size: 13px;
}
.lookup .row-btns .primary { background: var(--blue); color: #fff; }
.lookup.slang {
  background: #1c1e28;
  color: var(--ink);
  border: 1px solid rgba(215, 179, 106, 0.4);
}
.lookup.slang .chip {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.lookup.slang h3 {
  font-family: var(--serif);
  font-size: 22px;
  margin: 0 0 8px;
}
.lookup.slang .xp-chip {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.04em;
  background: rgba(215, 179, 106, 0.18);
  color: var(--gold);
}
.lookup.slang .xp-chip.muted {
  background: #2a2c38;
  color: var(--muted);
}
.lookup.slang .slang-row {
  margin: 10px 0;
}
.lookup.slang .slang-k {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.lookup.slang p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}
.lookup.slang .hud-zh {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.slang-popup {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}
.slang-popup-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(8, 9, 14, 0.62);
  opacity: 0;
  pointer-events: auto;
  cursor: pointer;
  transition: opacity 0.28s ease;
}
.slang-popup-card {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  width: calc(100% - 24px);
  max-height: min(78%, calc(100% - 48px));
  overflow-y: auto;
  margin: 0 12px 18px;
  padding: 22px 18px 16px;
  background: #fff;
  color: #161616;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transform: translateY(28px);
  opacity: 0;
  transition: transform 0.32s ease, opacity 0.28s ease;
}
.slang-popup.is-open .slang-popup-scrim,
.slang-popup.is-open .slang-popup-card {
  opacity: 1;
}
.slang-popup.is-open .slang-popup-card {
  transform: translateY(0);
}
.slang-popup.is-leaving .slang-popup-scrim,
.slang-popup.is-leaving .slang-popup-card {
  opacity: 0;
}
.slang-popup.is-leaving .slang-popup-card {
  transform: translateY(28px);
}
.slang-popup-title {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  color: #c9a227;
  text-shadow: 0 0 18px rgba(215, 179, 106, 0.35);
}
.slang-popup-block {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 12px;
  padding: 12px 12px 11px;
  border-radius: 14px;
  background: #f6f4ef;
}
.slang-popup-block p {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #222;
}
.slang-popup-block strong {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a7a4a;
}
.slang-popup-ico {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  margin: 1px 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(201, 162, 39, 0.12);
  color: #b8911c;
}
.slang-popup-ico svg {
  width: 18px;
  height: 18px;
  display: block;
}
.slang-popup-xp {
  margin: 14px 0 12px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #c9a227;
}
.slang-popup-xp.muted {
  font-weight: 600;
  color: #667;
}
.tone-popup .slang-popup-title {
  color: #161616;
  text-shadow: none;
}
.slang-popup-go {
  width: 100%;
  height: 46px;
  border-radius: 14px;
  background: #161616;
  color: #fff;
  font-size: 16px;
  font-weight: 650;
}
.idiom-ep {
  margin: 12px 0 16px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(215, 179, 106, 0.4);
  background: rgba(215, 179, 106, 0.08);
}
.idiom-ep .chip {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.idiom-ep p { margin: 0; font-size: 15px; line-height: 1.45; }
.idiom-ep .hud-zh { margin-top: 6px; color: var(--muted); font-size: 13px; }
.idiom-me { margin-top: 16px; }
.idiom-me .kicker { margin-bottom: 8px; }
.slang-collect .slang-rule {
  height: 1px;
  margin: 8px 0 12px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.slang-collect .slang-row-stat {
  margin: 6px 0;
  font-size: 15px;
  line-height: 1.45;
}
.slang-bar-wrap { margin: 8px 0 6px; }
.slang-bar-blocks {
  margin: 4px 0 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.slang-bar {
  height: 10px;
  margin: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.slang-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--gold);
}
.slang-perfect {
  margin: 8px 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
}
.slang-recap .lead {
  margin: 8px 0 10px;
  font-size: 17px;
}
.use-week {
  margin: 10px 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--gold);
  background: rgba(201, 163, 106, 0.08);
}
.use-week .ob-quote {
  margin: 6px 0 0;
}
.me-more {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.me-more summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  list-style: none;
}
.me-more summary::-webkit-details-marker { display: none; }
.lock-badge.premium {
  background: #c9a36a;
  color: #1a1208;
}
.hint-btn {
  display: block;
  width: 100%;
  margin: 6px 0 10px;
  height: 36px;
  border-radius: 10px;
  background: #eef2ff;
  color: #1a1a1a;
  font-size: 13px;
}
.vocab-check { margin-top: 8px; }
.vocab-check.hit { color: #6ec9a8; }
.vocab-check.near { color: #d7b36a; }
.vocab-check.miss { color: #e07a73; }

.lang-note {
  background: #1c1e28;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
}
.lang-note .chip,
.imitate-dock .chip {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.lang-note p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
}
.lang-note.best { border-color: rgba(61, 154, 122, 0.5); }
.lang-note.best .chip { color: #6ec9a8; }
.lang-note.register { border-color: rgba(215, 179, 106, 0.45); }
.lang-note.register .chip { color: #d7b36a; }
.lang-note.grammar .chip { color: #e07a73; }
.lang-note.grammar { border-color: rgba(224, 122, 115, 0.5); }
.lang-note .btn { margin-top: 8px; height: 36px; font-size: 13px; }

.imitate-dock {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.imitate-who {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.imitate-quote {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
}
.imitate-sheet .imitate-quote { margin: 0; }
.imitate-dock .row-btns,
.imitate-sheet .row-btns { display: flex; gap: 8px; }
.imitate-dock .row-btns .btn,
.imitate-sheet .row-btns .btn { flex: 1; }

.score {
  background: #1c1e28;
  border-radius: 16px;
  padding: 12px;
}
.score .triple { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.score .cell { text-align: center; }
.score .n { font-size: 22px; font-weight: 700; }
.score .l { font-size: 11px; color: var(--muted); }
.score .roast {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gold);
}
.score.silent .roast {
  margin-top: 0;
  color: var(--ink);
}

.modal {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 20;
  display: flex;
  align-items: flex-end;
}
.sheet {
  width: 100%;
  background: #16171f;
  border-radius: 20px 20px 0 0;
  padding: 16px 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 88%;
  overflow-y: auto;
}
.sheet h3 { font-size: 16px; }
.sheet p { font-size: 12px; color: var(--muted); }
.city-reward-sheet h3 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
.city-reward-row {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.city-reward-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.city-reward-name {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
}
.city-reward-meta {
  font-size: 12px;
  color: var(--gold);
  margin-top: 2px;
}
.city-reward-tip {
  margin-top: 8px !important;
  font-size: 13px !important;
  line-height: 1.45;
  color: rgba(243, 241, 236, 0.82) !important;
}
.city-reward-slang {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.city-reward-chip {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  color: #e6c86a;
  background: rgba(201, 162, 39, 0.1);
}
.sheet input, .sheet textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0e0f15;
  padding: 12px;
  outline: none;
}
.sheet .field {
  display: block;
  margin-top: 10px;
}
.sheet .field span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.sheet .field input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0e0f15;
  padding: 12px;
  outline: none;
}
button.linkish {
  background: none;
  border: 0;
  color: var(--blue);
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}
.sheet .row-btns { display: flex; gap: 8px; }
.sheet .row-btns .btn { flex: 1; }
.share-card {
  background: linear-gradient(180deg, #1e2436, #14151c);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.share-thumb {
  flex: 0 0 72px;
  width: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: #0e0f15;
}
.share-thumb img {
  width: 100%;
  height: 100%;
  min-height: 96px;
  object-fit: cover;
  display: block;
}
.share-card-copy { flex: 1; min-width: 0; }
.share-card .kicker { margin-bottom: 6px; }
.share-card h4 {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.share-card .blurb {
  font-family: var(--serif-italic);
  font-style: italic;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(243, 241, 236, 0.78);
}
.share-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}
.share-overlay .modal { pointer-events: auto; }
.share-apps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 8px;
}
@media (min-width: 380px) {
  .share-apps { grid-template-columns: repeat(6, 1fr); }
}
.share-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.share-app .dot {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.share-app .dot.wa { background: #25d366; }
.share-app .dot.tg { background: #2aabee; }
.share-app .dot.ig {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.share-app .dot.x { background: #111; border: 1px solid var(--line); }
.share-app .dot.fb { background: #1877f2; }
.share-app .dot.ln { background: #06c755; }
.share-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  background: #0e0f15;
  border-radius: 12px;
  padding: 10px 12px;
}
.plan-box {
  background: #0e0f15;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}
.plan-box .price {
  font-size: 22px;
  font-weight: 700;
  margin: 4px 0 8px;
}
.plan-box li {
  font-size: 13px;
  color: var(--muted);
  margin-left: 16px;
  margin-bottom: 4px;
}
.studio-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(215, 179, 106, 0.16);
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sale-pill {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(47, 107, 255, 0.16);
  color: #9db4ff;
  font-size: 11px;
  font-weight: 650;
}
.item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.item-actions .mini {
  height: 32px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #1c1e28;
  font-size: 12px;
  color: var(--ink);
}
.item-actions .mini.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.item-actions .mini.gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1408;
}
.item-actions .mini svg {
  width: 14px;
  height: 14px;
  display: block;
}
.price-picks {
  display: flex;
  gap: 8px;
}
.price-picks button {
  flex: 1;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0e0f15;
  font-weight: 650;
}
.price-picks button.on {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px #fff;
}

/* Path / vocab / trailer / pages */
.page {
  height: 100%;
  overflow-y: auto;
  padding: 8px 18px 24px;
  background: var(--bg);
}
.screen > .page {
  flex: 1;
  height: auto;
  min-height: 0;
}
.page h2 { font-family: var(--serif); font-size: 26px; margin: 6px 0 12px; }
.page .muted { color: var(--muted); font-size: 13px; line-height: 1.6; }
.path {
  margin: 18px 0;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.node { position: relative; padding-left: 12px; }
.node::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  position: absolute;
  left: -19px;
  top: 6px;
}
.node.comedy::before { background: var(--danger); }
.node.community::before { background: var(--gold); }
.node .t { font-size: 14px; }
.node .s { font-size: 12px; color: var(--muted); margin-top: 4px; }

.vcard {
  background: #fff;
  color: #161616;
  border-radius: 20px;
  padding: 22px 18px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.vcard .pos { font-size: 12px; color: #778; }
.vcard h3 { font-size: 32px; margin-top: 8px; }
.vcard .ipa { color: #556; margin: 4px 0 12px; }
.vcard .orig { font-size: 15px; line-height: 1.6; background: #f4f6fb; padding: 12px; border-radius: 12px; }

.trailer {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 20px 32px;
  background: linear-gradient(180deg, #1a1224, #0c0d12);
}
.trailer .tag { letter-spacing: 0.2em; font-size: 11px; color: var(--gold); }
.trailer h2 { font-family: var(--serif); font-size: 28px; margin: 10px 0 12px; }

.review-q {
  background: #16171f;
  border-radius: 16px;
  padding: 16px;
  margin: 16px 0;
}
.review-q .blank {
  display: inline-block;
  min-width: 64px;
  border-bottom: 2px solid var(--gold);
  color: var(--gold);
  text-align: center;
}
.opts { display: flex; flex-direction: column; gap: 8px; }
.opts button {
  text-align: left;
  padding: 12px;
  border-radius: 12px;
  background: #1c1e28;
  border: 1px solid var(--line);
}
.opts button.ok { border-color: var(--ok); background: rgba(61, 154, 122, 0.15); }
.opts button.bad { border-color: var(--danger); background: rgba(224, 122, 115, 0.12); }

.list { display: flex; flex-direction: column; gap: 10px; }
.item {
  background: #16171f;
  border-radius: 14px;
  padding: 12px;
}
.item .t { font-size: 14px; }
.item .s { font-size: 12px; color: var(--muted); margin-top: 4px; }

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 14px 0;
}
.stat {
  background: #16171f;
  border-radius: 14px;
  padding: 12px;
}
.stat .n { font-size: 22px; font-weight: 700; }
.stat .l { font-size: 11px; color: var(--muted); margin-top: 4px; }

.hero-me {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 8px 0 4px;
}
.hero-me .av {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: #fff;
}
.hero-me .av svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 520px) {
  .stage { padding: 0; gap: 0; background: #000; }
  .stage-brand { display: none; }
  .phone {
    width: 100%;
    min-width: 0;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    border: 0;
  }
}
