:root {
  --bg: #000000;
  --ink: #f5f5f5;
  --muted: #a3a3a3;
  --dim: #737373;
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.08);
  --ochre: #b88337;
  --ochre-dim: rgba(184, 131, 55, 0.22);
  --ochre-line: rgba(184, 131, 55, 0.45);
  --paper: #171717;
  --danger: #d4d4d4;
  --phone: 430px;
  --font-display: "FF Trixie Pro", "Special Elite", "Times New Roman", serif;
  --font-body: "Lumios Typewriter Used", "Lumios Typewriter Old", "Special Elite", "Courier New", monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #000; color: var(--ink); }
body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
img { max-width: 100%; display: block; }

/* iOS Safari / Telegram: disable double-tap zoom on controls, keep pinch-zoom. */
.phone,
button,
.btn,
.btn-row,
.btn-stack,
.dock,
.rate,
.video-watch,
.video-el,
.video-stage-frame,
.video-stage-bar,
.balance-hit,
[data-act] {
  touch-action: manipulation;
}
.video-stage-text,
.balance-log {
  touch-action: pan-y pinch-zoom;
}

.shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1100px) {
  body.dev .shell { grid-template-columns: minmax(0, 1fr) 380px; }
}

.stage-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
}
.phone {
  width: min(100%, var(--phone));
  min-height: 100vh;
  min-height: 100dvh;
  min-height: var(--app-h, 100dvh);
  height: 100vh;
  height: 100dvh;
  height: var(--app-h, 100dvh);
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}
@media (max-width: 719px) {
  html, body {
    height: 100%;
    height: 100dvh;
    height: var(--app-h, 100dvh);
    overflow: hidden;
    background: #000;
  }
  .shell, .stage-wrap {
    min-height: 100%;
    height: 100%;
    height: 100dvh;
    height: var(--app-h, 100dvh);
  }
  .phone {
    width: 100%;
    min-height: 100%;
    height: 100%;
    height: 100dvh;
    height: var(--app-h, 100dvh);
  }
}
@media (min-width: 720px) {
  html, body { background: #0a0a0a; }
  .stage-wrap {
    padding: 24px 16px 48px;
    min-height: 100dvh;
    align-items: center;
  }
  .phone {
    min-height: 844px;
    height: 844px;
    border: 1px solid var(--line);
    overflow: auto;
  }
}

.screen {
  min-height: 100%;
  padding: 28px 22px 28px;
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  width: 100%;
}
.screen.padded-bottom { padding-bottom: 196px; }

.kicker {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ochre);
  margin: 0 0 14px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 28px;
  letter-spacing: 0.12em;
  color: var(--ochre);
  margin: 0;
}
.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 22px 0;
}
.rule.ochre { background: var(--ochre-line); width: 42px; margin: 18px 0; }

h1, h2, .title {
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0;
}
.title { font-size: 22px; line-height: 1.3; }
.thanks-screen {
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100dvh;
  min-height: 100%;
}
.thanks-screen .title {
  text-align: center;
}
@media (min-width: 720px) {
  .thanks-screen { height: 100%; }
}
.sub {
  color: var(--muted);
  font-size: 14px;
  margin: 12px 0 0;
  overflow-wrap: anywhere;
}
.copy {
  font-size: 15px;
  color: #e7e7e7;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
}
.copy p { margin: 0 0 14px; }
.copy p:last-child { margin-bottom: 0; }

.grow { flex: 1; }
.spacer { height: 18px; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  line-height: 1.2;
  width: 100%;
  text-align: center;
  overflow-wrap: anywhere;
  white-space: normal;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn.primary {
  border-color: var(--ochre);
  color: var(--ochre);
}
.btn.primary:hover, .btn.primary.is-on {
  background: var(--ochre);
  color: #111;
}
.btn.ghost { border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: #fff; }
.btn[disabled] { opacity: 0.35; cursor: not-allowed; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-stack { display: grid; gap: 10px; }

.hint {
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

/* Splash */
.splash { justify-content: flex-start; text-align: center; padding-top: 36px; }
.splash .lede {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 8px;
}
.splash .setname {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 300;
  color: #fff;
  margin: 0 0 8px;
}
.comp-wrap {
  position: relative;
  margin: 8px auto 0;
  width: min(100%, 320px);
}
.splash .comp-wrap {
  margin-top: auto;
  margin-bottom: auto;
}
.comp-wrap img {
  width: 100%;
  height: auto;
}
.splash .comp-wrap:not(.splash-anim) img {
  animation: matrixPulse 3.6s ease-in-out infinite;
}
.comp-wrap canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.55;
}
.splash-anim {
  aspect-ratio: 510 / 680;
  overflow: hidden;
}
.splash-anim iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  overflow: hidden;
}
@keyframes matrixPulse {
  0%, 100% { opacity: 1; filter: brightness(1); }
  18% { opacity: 0.92; filter: brightness(1.25); }
  22% { opacity: 1; filter: brightness(1); }
  71% { opacity: 0.86; filter: brightness(1.45); }
  76% { opacity: 1; }
}

.entry-screen { position: relative; height: 100dvh; min-height: 100%; }
@media (min-width: 720px) {
  .entry-screen { height: 100%; }
}
.entry-line {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 18px;
  text-align: center;
  color: #fff;
  opacity: 0;
  pointer-events: none;
}
.entry-line-1 {
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 0.08em;
  animation: entryPhrase 2.7s ease forwards;
}
.entry-line-2 {
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: 0.02em;
  animation: entryPhrase 2.7s ease 2.7s forwards;
}
.entry-final {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 22px;
  opacity: 0;
  pointer-events: none;
  animation: entryReveal 0.8s ease 5.4s forwards;
}
.entry-art {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.entry-final .comp-wrap {
  width: min(100%, 250px);
  margin: 0;
}
@keyframes entryPhrase {
  0% { opacity: 0; }
  14% { opacity: 1; }
  76% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes entryReveal {
  0% { opacity: 0; pointer-events: none; }
  80% { pointer-events: none; }
  100% { opacity: 1; pointer-events: auto; }
}
body.shot .entry-line { display: none; }
body.shot .entry-final {
  opacity: 1;
  pointer-events: auto;
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .entry-line { display: none; }
  .entry-final {
    opacity: 1;
    pointer-events: auto;
    animation: none;
  }
}

.tap { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }

/* Fullscreen video stage — video fills the phone, controls overlay the frame */
.phone.has-video-stage,
.phone.has-balance {
  overflow: hidden;
  overscroll-behavior: none;
}
.screen.video-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: 100%;
  padding: 0;
  display: block;
  background: #000;
  overflow: hidden;
  z-index: 2;
}
@media (min-width: 720px) {
  .screen.video-stage {
    min-height: 100%;
    height: 100%;
    max-height: 100%;
  }
}
.video-stage-player,
.video-stage-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #000;
  overflow: hidden;
}
.video-stage.is-text .video-stage-player,
.video-stage:not(.is-text) .video-stage-text,
.video-stage.is-text .video-bar-play,
.video-stage:not(.is-text) .video-bar-text {
  display: none;
}
.video-stage-frame video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  background: #000;
}
.video-stage-frame[data-fit="intro"] video,
.video-stage-frame[data-fit="before"] video,
.video-stage-frame[data-fit="ai"] video {
  object-position: center 22%;
}
.video-stage-frame[data-fit="chef"] video {
  object-position: center 28%;
}
.video-watch {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 28%;
  background: rgba(0, 0, 0, 0.28);
  color: #f3d08a;
  letter-spacing: 0.08em;
  -webkit-tap-highlight-color: transparent;
}
.video-watch.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.video-watch span {
  border: 1px solid var(--ochre);
  min-height: 56px;
  min-width: 200px;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #f3d08a;
  -webkit-text-fill-color: #f3d08a;
  background: rgba(0, 0, 0, 0.86);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}
.video-watch:hover span,
.video-watch:active span,
.video-watch:focus span,
.video-watch:focus-visible span {
  background: var(--ochre);
  border-color: var(--ochre);
  color: #111;
  -webkit-text-fill-color: #111;
  text-shadow: none;
}
.video-stage-fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 28px 22px 180px;
  color: var(--muted);
  font-size: 14px;
  background: #000;
}
.video-stage-fallback strong {
  display: block;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 12px;
}
.video-stage-text {
  position: absolute;
  inset: 0;
  bottom: 148px;
  z-index: 3;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 24px 22px 20px;
  background: #000;
}
.video-speech {
  font-size: 18px;
  line-height: 1.55;
  color: #f3f3f3;
}
.video-speech p { margin: 0 0 16px; }
.video-speech p:last-child { margin-bottom: 0; }
.video-stage-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 88px 12px calc(14px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.58) 24%, rgba(0, 0, 0, 0.86) 58%, rgba(0, 0, 0, 0.94) 100%);
  border-top: 0;
  pointer-events: none;
}
.video-stage-bar > * {
  pointer-events: auto;
}
.video-stage.is-text .video-stage-bar {
  background: #000;
  padding-top: 12px;
}
.video-stage-caption {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f3d08a;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}
.video-bar-play,
.video-bar-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.video-bar-play [data-act="read-text"],
.video-bar-text .btn,
.video-stage-bar .video-next {
  grid-column: 1 / -1;
}
.video-stage-bar .video-next {
  width: 100%;
  margin-top: 8px;
}
.video-stage-bar .btn {
  min-height: 44px;
  font-size: 11px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(8, 8, 8, 0.88);
  color: #f5f5f5;
  -webkit-text-fill-color: #f5f5f5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
  -webkit-tap-highlight-color: transparent;
}
.video-stage-bar .btn.ghost,
.video-stage-bar .btn.ghost:hover,
.video-stage-bar .btn.ghost:active,
.video-stage-bar .btn.ghost:focus,
.video-stage-bar .btn.ghost:focus-visible {
  background: rgba(8, 8, 8, 0.88);
  border-color: rgba(245, 245, 245, 0.58);
  color: #f5f5f5;
  -webkit-text-fill-color: #f5f5f5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}
.video-stage-bar .btn.ghost:active {
  background: rgba(20, 20, 20, 0.94);
  border-color: #fff;
}
.video-stage-bar .btn.primary,
.video-stage-bar .btn.primary:hover,
.video-stage-bar .btn.primary:active,
.video-stage-bar .btn.primary:focus,
.video-stage-bar .btn.primary:focus-visible,
.video-stage-bar .btn.primary.is-on {
  background: var(--ochre);
  border-color: var(--ochre);
  color: #111;
  -webkit-text-fill-color: #111;
  text-shadow: none;
}
.video-stage-bar .btn.primary:active {
  background: #9a6d2c;
  border-color: #9a6d2c;
  color: #111;
  -webkit-text-fill-color: #111;
}
.video-stage-bar .btn[disabled],
.video-stage-bar .btn[disabled]:hover,
.video-stage-bar .btn[disabled]:active,
.video-stage-bar .btn[disabled]:focus,
.video-stage-bar .btn.ghost[disabled],
.video-stage-bar .btn.ghost[disabled]:hover,
.video-stage-bar .btn.ghost[disabled]:active,
.video-stage-bar .btn.ghost[disabled]:focus {
  opacity: 1;
  cursor: not-allowed;
  background: rgba(8, 8, 8, 0.82);
  border-color: rgba(215, 215, 215, 0.42);
  color: #d7d7d7;
  -webkit-text-fill-color: #d7d7d7;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}
.video-stage-bar .btn.primary[disabled],
.video-stage-bar .btn.primary[disabled]:hover,
.video-stage-bar .btn.primary[disabled]:active,
.video-stage-bar .btn.primary[disabled]:focus {
  opacity: 1;
  background: #8f6a32;
  border-color: #8f6a32;
  color: #111;
  -webkit-text-fill-color: #111;
  text-shadow: none;
}
.video-stage .missing {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: auto;
  top: 12px;
  z-index: 5;
  margin: 0;
}

.typed-box { min-height: 8em; }
.caret {
  display: inline-block;
  width: 0.55em;
  border-bottom: 1px solid var(--ochre);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Course */
.course-no {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ochre);
}
.composition {
  font-size: 16px;
  line-height: 1.55;
  color: #fff;
  overflow-wrap: anywhere;
  margin: 14px 0 0;
}
.idea-label {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ochre);
  margin: 0 0 10px;
}
.idea {
  font-size: 15px;
  line-height: 1.55;
  color: #dedede;
  overflow-wrap: anywhere;
}
.progress {
  display: flex;
  gap: 6px;
  margin: 6px 0 18px;
}
.progress i {
  display: block;
  height: 1px;
  flex: 1;
  background: var(--line-soft);
}
.progress i.on { background: var(--ochre); }
.progress i.done { background: rgba(255,255,255,.45); }

.dock {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 28px -22px -28px;
  padding: 14px 22px 18px;
  background: linear-gradient(180deg, rgba(0,0,0,0), #000 28%);
  display: grid;
  gap: 10px;
}
.rate-q {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.dock .btn {
  letter-spacing: 0.06em;
}
.rate .btn.is-on.like { background: var(--ochre); color: #111; border-color: var(--ochre); }
.rate .btn.is-on.dislike { background: #fff; color: #111; border-color: #fff; }

.dialog {
  border: 1px solid var(--line);
  padding: 18px 16px;
  margin-top: 16px;
}
.line { margin: 0 0 16px; }
.line .who {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 4px;
}

.screen.result-balance {
  position: relative;
  background: #000;
  min-height: 100%;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.balance-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.balance-hit:focus,
.balance-hit:focus-visible {
  outline: none;
}
.screen.result-balance .kicker,
.screen.result-balance .subtitle-cue,
.screen.result-balance .balance-hint {
  -webkit-user-select: none;
  user-select: none;
}
.screen.result-balance .kicker {
  position: relative;
  z-index: 2;
}
.balance-stage {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 4px -22px 8px;
  padding: 8px 22px 4px;
}
.screen.result-balance [data-act="to-authors"] {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  background: #000;
  cursor: pointer;
  touch-action: manipulation;
}
.balance-log {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1.4em;
  padding: 12px 2px 18px;
  -webkit-overflow-scrolling: touch;
}
.subtitle-cue {
  text-align: center;
  max-width: 22rem;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(10px);
}
.subtitle-cue.is-in {
  opacity: 0.34;
  transform: none;
  transition: opacity 0.85s ease, transform 0.85s ease;
}
.subtitle-cue.is-in.is-current {
  opacity: 1;
}
.subtitle-cue .who {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 8px;
}
.subtitle-cue .cue {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: #f3f3f3;
  overflow-wrap: anywhere;
}
.balance-hint {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 4px 0 8px;
}
@media (prefers-reduced-motion: reduce) {
  .subtitle-cue,
  .subtitle-cue.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .video-watch { transition: none; }
}
.score-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line-soft);
  padding: 14px 0;
  overflow-wrap: anywhere;
}
.score-row b { color: var(--ochre); font-weight: 400; white-space: nowrap; }
.authors li {
  list-style: none;
  border-bottom: 1px solid var(--line-soft);
  padding: 16px 0;
}
.authors { margin: 0; padding: 0; }
.authors .n { color: var(--ochre); font-size: 11px; letter-spacing: 0.18em; }
.authors .who { color: var(--muted); font-size: 13px; }
.authors .comp { color: #fff; font-size: 13px; overflow-wrap: anywhere; margin-top: 8px; }

.missing {
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 13px;
  padding: 14px;
  margin: 14px 0;
  overflow-wrap: anywhere;
}

.variant-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  pointer-events: none;
}

/* Notes rail — local developer page only (body.dev). Never shown in guest HTML. */
.notes {
  display: none;
  background: #111;
  color: #d6d6d6;
  border-left: 1px solid #2a2a2a;
  padding: 22px 20px 40px;
  overflow: auto;
  max-height: 100dvh;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13.5px;
  line-height: 1.45;
}
@media (min-width: 1100px) { body.dev .notes { display: block; } }
.notes h2 {
  font-size: 16px;
  margin: 0 0 10px;
  color: #fff;
  letter-spacing: 0;
  font-family: Georgia, serif;
  font-weight: 600;
}
.notes h3 { font-size: 13px; margin: 18px 0 8px; color: var(--ochre); font-family: Georgia, serif; }
.notes p, .notes li { color: #c8c8c8; }
.notes ol, .notes ul { padding-left: 18px; margin: 0 0 10px; }
.notes .navbtns { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.notes .navbtns button {
  border: 1px solid #3a3a3a;
  padding: 6px 8px;
  font-size: 11px;
  font-family: system-ui, sans-serif;
  color: #ddd;
}
.notes .navbtns button.on { border-color: var(--ochre); color: var(--ochre); }
.notes .compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 16px;
}
.notes .compare figure {
  margin: 0;
  background: #000;
  border: 1px solid #333;
  padding: 8px;
}
.notes .compare img { width: 100%; }
.notes .compare figcaption {
  font-size: 11px;
  color: #999;
  margin-top: 6px;
  font-family: system-ui, sans-serif;
}
.notes .warn { color: #e2c48a; }
body.shot .chip,
body.shot .notes { display: none !important; }
body.shot .shell { grid-template-columns: 1fr; }
body.shot .stage-wrap { padding: 0; }
body.shot .phone {
  width: 100%;
  min-height: 100dvh;
  min-height: var(--app-h, 100dvh);
  height: 100dvh;
  height: var(--app-h, 100dvh);
  border: 0;
}

@media (max-width: 430px) {
  .entry-final { padding: 24px 16px 28px; }
  .screen { padding: 24px 16px 28px; }
  .screen.video-stage { padding: 0; }
  .screen.padded-bottom { padding-bottom: 204px; }
  .btn { font-size: 11px; letter-spacing: 0.04em; padding: 10px 8px; line-height: 1.2; }
  .dock { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .composition, .idea, .copy, .hint, .authors .comp, .subtitle-cue .cue, .video-speech { overflow-wrap: anywhere; word-break: break-word; }
  .balance-stage {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
    min-height: 0;
  }
  .video-stage-text { padding: 20px 16px 16px; }
  .video-speech { font-size: 17px; }
  .video-watch span { min-width: 180px; font-size: 13px; }
  .subtitle-cue .cue { font-size: 16px; }
}
@media (max-width: 360px) {
  .subtitle-cue .cue { font-size: 15px; }
  .video-speech { font-size: 16px; }
  .video-stage-bar .btn { font-size: 11px; min-height: 44px; }
  .video-watch span { min-width: 160px; padding: 12px 16px; }
}
@media (max-height: 700px) {
  .balance-stage { min-height: 0; }
  .video-watch span { min-height: 48px; }
  .video-stage-bar { padding-top: 48px; }
}

.chip {
  display: none;
  position: fixed;
  right: 12px;
  top: 12px;
  bottom: auto;
  z-index: 20;
  background: #1a1a1a;
  border: 1px solid #444;
  color: #ccc;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 10px;
  font-family: system-ui, sans-serif;
}
body.dev .chip { display: inline-block; }
@media (min-width: 1100px) { body.dev .chip { display: none; } }
body.dev .notes.open {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 30;
  max-height: none;
}
.close-notes {
  display: none;
  margin-bottom: 12px;
  border: 1px solid #444;
  padding: 8px 10px;
  font-family: system-ui, sans-serif;
  font-size: 12px;
}
.notes.open .close-notes { display: inline-block; }

.finish-note {
  margin-top: 12px;
  font-size: 12px;
  color: #c9b27a;
  border: 1px dashed var(--ochre-line);
  padding: 10px 12px;
  font-family: system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}
