/* Vibe — an appetite, documented.
   Ink, bone and a white cotton label; grease-pencil red for the frames worth keeping. */

:root {
  color-scheme: dark;

  --ink: #0c0b0a;
  --ink-2: #161513;
  --ink-3: #201e1b;
  --bone: #ece5d8;
  --bone-dim: #a59e91;
  --bone-faint: #625d55;
  --rule: rgba(236, 229, 216, 0.14);
  --tag: #f3efe6;
  --tag-ink: #191816;
  --red: #c8402f;
  --gold: #c9a96e;
  --oxblood: #6b1c17;
  --amber: #c98b3b;

  --serif: "Instrument Serif", "Times New Roman", Times, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: 20px;
  --ease: cubic-bezier(0.6, 0.05, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  background:
    radial-gradient(120% 70% at 50% -10%, #1d1b18 0%, rgba(12, 11, 10, 0) 60%),
    var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

/* Vignette */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  background: radial-gradient(130% 100% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

/* Film grain */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 41;
  pointer-events: none;
  opacity: 0.075;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(6) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  17% { transform: translate(-4%, 3%); }
  33% { transform: translate(3%, -5%); }
  50% { transform: translate(-6%, -2%); }
  67% { transform: translate(5%, 4%); }
  83% { transform: translate(-2%, 6%); }
}

button, input, textarea { font: inherit; color: inherit; }
button {
  background: none;
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}
:focus-visible { outline: 1px solid var(--bone); outline-offset: 3px; }

.mono {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.serif { font-family: var(--serif); font-weight: 400; }
.serif em { font-style: italic; }

.btn {
  display: block;
  width: 100%;
  height: 58px;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s, transform 0.12s;
}
.btn:active { transform: scale(0.985); }
.btn:disabled {
  background: transparent;
  color: var(--bone-faint);
  box-shadow: inset 0 0 0 1px var(--rule);
  cursor: default;
}

/* ─── Gate ─────────────────────────────────────────────────────── */

.gate {
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 48px) var(--gutter) calc(env(safe-area-inset-bottom) + 40px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.gate > .mono { color: var(--bone-dim); }
.gate h1 {
  font-size: clamp(58px, 18vw, 84px);
  line-height: 0.92;
  letter-spacing: -0.01em;
}
.gate form { display: grid; gap: 14px; }
.gate label { color: var(--bone-dim); }
.gate input {
  height: 56px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--bone-dim);
  border-radius: 0;
  font-family: var(--mono);
  font-size: 22px;
  letter-spacing: 0.2em;
  outline: none;
}
.gate input:focus { border-bottom-color: var(--bone); }
.gate-error { min-height: 1.4em; color: var(--red); }

/* ─── Layout ───────────────────────────────────────────────────── */

.app {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 var(--gutter) calc(env(safe-area-inset-bottom) + 28px);
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  margin: 0 calc(-1 * var(--gutter));
  padding: calc(env(safe-area-inset-top) + 14px) var(--gutter) 12px;
  color: var(--bone-dim);
  transition: background 0.3s, box-shadow 0.3s;
}
.masthead.scrolled {
  background: rgba(12, 11, 10, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--rule);
}
.finale, .collection { scroll-margin-top: calc(env(safe-area-inset-top) + 56px); }
.masthead span:first-child { color: var(--bone); letter-spacing: 0.42em; }
#clock { font-variant-numeric: tabular-nums; }

/* ─── Title card ───────────────────────────────────────────────── */

.titlecard { padding: 34px 0 26px; }
.kicker { color: var(--bone-dim); }
.kicker .sep { color: var(--bone-faint); margin: 0 0.4em; }
.titlecard h1 {
  margin: 18px 0 16px;
  font-size: clamp(52px, 15.5vw, 74px);
  line-height: 0.93;
  letter-spacing: -0.012em;
}
.dateline { color: var(--bone-faint); }

.titlecard > * { animation: rise 0.9s var(--ease) both; }
.titlecard > :nth-child(2) { animation-delay: 0.08s; }
.titlecard > :nth-child(3) { animation-delay: 0.16s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ─── Monitor (viewfinder) ─────────────────────────────────────── */

.monitor {
  position: relative;
  padding: 16px 16px 14px;
  margin-bottom: 30px;
  background: rgba(22, 21, 19, 0.65);
  transition: background 0.4s;
}
.crop { position: absolute; width: 14px; height: 14px; border: 0 solid var(--bone-dim); }
.crop.tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.crop.tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.crop.bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.crop.br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

.monitor-row {
  display: flex;
  justify-content: space-between;
  color: var(--bone-faint);
  font-size: 10px;
}
.rec { display: inline-flex; align-items: center; gap: 8px; color: var(--bone-dim); }
.rec i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--bone-dim);
}
.rec b { font-weight: 500; }

.timecode {
  margin: 14px 0 12px;
  white-space: nowrap;
  font-size: clamp(40px, 13vw, 62px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: none;
  font-variant-numeric: tabular-nums;
  color: var(--bone-faint);
  transition: color 0.4s;
}
.timecode .tc-frames { font-size: 0.42em; letter-spacing: 0; color: var(--bone-faint); }

[data-state="rolling"] .monitor { background: rgba(32, 30, 27, 0.75); }
[data-state="rolling"] .timecode { color: var(--bone); }
[data-state="rolling"] .rec { color: var(--red); }
[data-state="rolling"] .rec i { background: var(--red); box-shadow: 0 0 10px rgba(200, 64, 47, 0.7); animation: blink 1.2s steps(1) infinite; }
[data-state="cut"] .timecode { color: var(--bone); }
[data-state="cut"] .rec { color: var(--bone); }
[data-state="cut"] .rec i { background: var(--bone); box-shadow: none; }

@keyframes blink { 50% { opacity: 0.15; } }

.monitor.nudge { animation: nudge 0.42s var(--ease); }
@keyframes nudge {
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

/* ─── Call sheet ───────────────────────────────────────────────── */

.callsheet { list-style: none; }
.group {
  padding: 22px 0 6px;
  color: var(--bone-dim);
  border-bottom: 1px solid var(--rule);
}
.group span { color: var(--bone-faint); text-transform: none; letter-spacing: 0.04em; }
.callsheet .group:first-child { padding-top: 0; }

.cue {
  display: grid;
  grid-template-columns: 30px 1fr auto 28px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 68px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  transition: background 0.2s;
}
.cue:active { background: rgba(236, 229, 216, 0.035); }
.cue-no { color: var(--bone-faint); font-size: 10px; }
.cue-name {
  font-size: 32px;
  line-height: 1;
  transition: transform 0.35s var(--ease), color 0.3s;
}
.cue-time { color: var(--bone-faint); font-size: 10px; font-variant-numeric: tabular-nums; }

.box {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  box-shadow: inset 0 0 0 1px var(--bone-dim);
}
.box svg { width: 22px; height: 22px; overflow: visible; }
.box path {
  fill: none;
  stroke: var(--bone);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.2s ease-in;
}
.box path + path { transition-delay: 0s; }

.cue[aria-pressed="true"] .cue-name { font-style: italic; transform: translateX(4px); }
.cue[aria-pressed="true"] .cue-time { color: var(--bone-dim); }
.cue[aria-pressed="true"] .box path { stroke-dashoffset: 0; }
.cue[aria-pressed="true"] .box path + path { transition-delay: 0.14s; }

.cue-final .cue-name { font-size: 38px; }
[data-state="idle"] .cue-final { opacity: 0.34; }
[data-state="cut"] .cue-final .box { background: var(--bone); }
[data-state="cut"] .cue-final .box path { stroke: var(--ink); }

/* ─── Finale: the label ────────────────────────────────────────── */

.finale { padding: 30px 0 4px; animation: rise 0.6s var(--ease) both; }
.caption { display: block; color: var(--bone-dim); margin-bottom: 14px; }
.caption span { color: var(--bone-faint); text-transform: none; letter-spacing: 0.04em; }

.tag {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 22px 14px;
  background: var(--tag);
  color: var(--tag-ink);
  transform: rotate(-0.7deg);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 28px 50px -22px rgba(0, 0, 0, 0.85),
    0 2px 6px rgba(0, 0, 0, 0.4);
}
/* faint weave */
.tag::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.035) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.03) 0 1px, transparent 1px 3px);
}
.stitch {
  position: absolute;
  width: 2px;
  height: 13px;
  border-radius: 2px;
  background: #fffdf8;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12), 0 1px 1px rgba(0, 0, 0, 0.18);
}
.s1 { top: 7px; left: 9px; }
.s2 { top: 7px; right: 9px; }
.s3 { bottom: 7px; left: 9px; }
.s4 { bottom: 7px; right: 9px; }

.tag button {
  position: relative;
  height: 60px;
  font-family: var(--sans);
  font-size: 27px;
  font-weight: 400;
  color: var(--tag-ink);
  font-variant-numeric: tabular-nums;
}
.tag svg {
  position: absolute;
  inset: 3px 6%;
  width: 88%;
  height: calc(100% - 6px);
  overflow: visible;
  pointer-events: none;
  transform: rotate(var(--r, -6deg));
}
.tag path {
  fill: none;
  stroke: var(--tag-ink);
  stroke-width: 2.4;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.16s ease-in;
}
.tag button[aria-checked="true"] path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.5s var(--ease);
}

.tag-scale {
  display: flex;
  justify-content: space-between;
  margin: 16px 0 34px;
  color: var(--bone-faint);
  font-size: 10px;
  text-transform: none;
  letter-spacing: 0.06em;
}

#notes {
  display: block;
  width: 100%;
  margin-bottom: 26px;
  padding: 12px 0;
  resize: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.3;
  color: var(--bone);
  outline: none;
}
#notes::placeholder { color: var(--bone-faint); font-style: italic; }
#notes:focus { border-bottom-color: var(--bone-dim); }

/* ─── Discard ──────────────────────────────────────────────────── */

.discard {
  position: relative;
  display: block;
  margin: 26px auto 0;
  padding: 12px 4px;
  color: var(--bone-faint);
  font-size: 10px;
  touch-action: none;
  -webkit-touch-callout: none;
}
.discard::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 6px;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
}
.discard.holding { color: var(--red); }
.discard.holding::after { transform: scaleX(1); transition: transform 1.2s linear; }

/* ─── Collection ───────────────────────────────────────────────── */

.collection {
  margin-top: 64px;
  padding-top: 18px;
  border-top: 1px solid var(--bone-dim);
}
.collection-head { display: flex; justify-content: space-between; color: var(--bone-dim); }
#sync-status { color: var(--bone-faint); }
#sync-status.waiting { color: var(--amber); }

.rank {
  margin-top: 26px;
  font-size: clamp(44px, 13vw, 60px);
  line-height: 0.95;
}
.gloss {
  margin: 8px 0 26px;
  font-size: 19px;
  font-style: italic;
  color: var(--bone-dim);
}

/* A tailor's tape, measuring the way to the next rank */
.tape {
  --units: 3;
  --p: 0%;
  position: relative;
  height: 30px;
  background-color: #e9e1cf;
  background-image:
    repeating-linear-gradient(to right, var(--tag-ink) 0 1px, transparent 1px 100%);
  background-size: calc(100% / var(--units)) 11px;
  background-repeat: repeat-x;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.9);
}
.tape::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--p);
  background: rgba(200, 64, 47, 0.16);
  transition: width 1s var(--ease);
}
.tape-pin {
  position: absolute;
  z-index: 1;
  top: -7px;
  bottom: -7px;
  left: var(--p);
  width: 2px;
  margin-left: -1px;
  background: var(--red);
  transition: left 1s var(--ease);
}
.tape-pin::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: inset -2px -2px 3px rgba(0, 0, 0, 0.35);
}
.tape-ends {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  color: var(--bone-faint);
  font-size: 10px;
}
#tape-next { color: var(--bone-dim); text-align: center; text-transform: none; letter-spacing: 0.04em; }

.ledger {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 34px 0 40px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.ledger > div { padding: 14px 0 12px 10px; border-left: 1px solid var(--rule); }
.ledger > div:first-child { border-left: 0; padding-left: 0; }
.ledger dt { font-size: 9px; color: var(--bone-faint); }
.ledger dd { margin-top: 6px; font-size: 36px; line-height: 1; font-variant-numeric: tabular-nums; }

/* Contact sheet */
.sheet {
  padding: 12px 10px 14px;
  background: #050505;
  box-shadow: 0 0 0 1px #1b1a18, 0 30px 60px -30px rgba(0, 0, 0, 1);
}
.sheet-edge, .sheet-key {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--amber);
  font-size: 9px;
  opacity: 0.85;
}
.sheet-edge { margin: 0 2px 10px; }
.sheet-key {
  justify-content: flex-start;
  align-items: center;
  margin: 12px 2px 0;
  color: var(--bone-faint);
  text-transform: none;
  letter-spacing: 0.04em;
}
.sheet-key svg { width: 18px; height: 14px; overflow: visible; }
.sheet-key path { fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }

.frames {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.frame {
  position: relative;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #22201d, #141311);
  animation: rise 0.6s var(--ease) both;
}
.frame.empty { background: #0d0c0b; box-shadow: inset 0 0 0 1px #1a1917; }
.f-no, .f-meta {
  position: absolute;
  left: 7px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
}
.f-no { top: 6px; color: var(--amber); opacity: 0.9; }
.f-meta { bottom: 6px; right: 7px; color: var(--bone-faint); display: flex; justify-content: space-between; }
.f-n { font-family: var(--serif); font-size: 46px; line-height: 1; color: var(--bone); }
.frame.empty .f-n { color: #24221f; }
.frame.pending .f-no::after { content: " ◌"; }
.frame .pencil {
  position: absolute;
  inset: 12%;
  width: 76%;
  height: 76%;
  overflow: visible;
  pointer-events: none;
  transform: rotate(var(--r, -8deg));
}
.frame .pencil path {
  fill: none;
  stroke: var(--red);
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 0.5px rgba(200, 64, 47, 0.6));
}

.colophon {
  display: flex;
  justify-content: space-between;
  margin-top: 46px;
  color: var(--bone-faint);
  font-size: 9px;
}

/* ─── Slate (roll camera) ──────────────────────────────────────── */

.slate {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 28px;
  background: rgba(8, 7, 6, 0.94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.slate.play { animation: slate-out 0.35s 1.25s ease-in forwards; }
@keyframes slate-out { to { opacity: 0; visibility: hidden; } }

.slate-board {
  width: min(78vw, 320px);
  background: #121110;
  box-shadow: 0 0 0 1px #2c2a26, 0 40px 80px -30px #000;
}
.slate-sticks { position: relative; height: 34px; }
.slate-sticks i {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-55deg, var(--bone) 0 18px, var(--ink) 18px 36px);
}
.slate-sticks i:first-child {
  transform-origin: 0 100%;
  transform: rotate(-24deg);
}
.slate.play .slate-sticks i:first-child { animation: clap 0.24s 0.42s cubic-bezier(0.7, 0, 1, 0.5) forwards; }
@keyframes clap { to { transform: rotate(0); } }

.slate-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #2c2a26;
}
.slate-body div { padding: 12px 14px; border-right: 1px solid #2c2a26; border-bottom: 1px solid #2c2a26; }
.slate-body div:nth-child(2n) { border-right: 0; }
.slate-body div:nth-last-child(-n + 2) { border-bottom: 0; }
.slate-body dt { font-size: 9px; color: var(--bone-faint); }
.slate-body dd { margin-top: 6px; font-size: 20px; color: var(--bone); letter-spacing: 0.08em; }

.slate-action { font-size: 54px; opacity: 0; }
.slate.play .slate-action { animation: rise 0.5s 0.62s var(--ease) forwards; }
.slate.play .slate-board { animation: board 0.5s var(--ease) both; }
@keyframes board { from { opacity: 0; transform: translateY(20px) scale(0.97); } }

/* ─── Verdict ──────────────────────────────────────────────────── */

.verdict {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: rgba(8, 7, 6, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  overflow-y: auto;
}
/* letterbox */
.verdict::before, .verdict::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  height: 9vh;
  background: #000;
  transform: scaleY(0);
  transition: transform 0.6s var(--ease);
}
.verdict::before { top: 0; transform-origin: top; }
.verdict::after { bottom: 0; transform-origin: bottom; }
.verdict.play::before, .verdict.play::after { transform: scaleY(1); }

.flash {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: #fff;
  opacity: 0;
}
.verdict.play[data-tone="balanced"] .flash { animation: flash 0.7s ease-out; }
.verdict.play[data-promoted] .flash { animation: flash2 1.1s ease-out; }
@keyframes flash { 0% { opacity: 0.95; } 100% { opacity: 0; } }
@keyframes flash2 {
  0% { opacity: 0.95; }
  30% { opacity: 0; }
  45% { opacity: 0.8; }
  100% { opacity: 0; }
}

.verdict-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  text-align: center;
}
.verdict-card > * { opacity: 0; }
.verdict.play .verdict-card > * { animation: rise 0.7s var(--ease) forwards; }
.verdict.play .verdict-card > :nth-child(2) { animation-delay: 0.5s; }
.verdict.play .verdict-card > :nth-child(3) { animation-delay: 0.6s; }
.verdict.play .verdict-card > :nth-child(4) { animation-delay: 0.7s; }
.verdict.play .verdict-card > :nth-child(5) { animation-delay: 0.8s; }
.verdict.play .verdict-card > :nth-child(6) { animation-delay: 0.95s; }
.verdict.play .verdict-card > :nth-child(7) { animation-delay: 1.15s; }

#v-kicker { color: var(--bone-dim); }
#v-title { margin: 14px 0 12px; font-size: clamp(58px, 17vw, 80px); line-height: 0.95; font-style: italic; }
.v-meta { color: var(--bone-faint); font-variant-numeric: tabular-nums; }
.v-line { margin: 22px 0 6px; font-size: 24px; color: var(--bone-dim); }
.v-extra { min-height: 1.4em; margin-bottom: 36px; color: var(--gold); }
#v-next { max-width: 280px; margin: 0 auto; }

.seal {
  display: block;
  width: 168px;
  height: 168px;
  margin: 0 auto 26px;
  overflow: visible;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.6));
}
.verdict[data-tone="neutral"] .seal { display: none; }
.verdict.play .verdict-card > .seal { animation: stamp 0.55s 0.12s cubic-bezier(0.3, 1.5, 0.5, 1) forwards; }
@keyframes stamp {
  from { opacity: 0; transform: scale(2.1) rotate(-22deg); }
  to { opacity: 1; transform: scale(1) rotate(-7deg); }
}
.seal-disc { fill: var(--oxblood); }
.seal-line { fill: none; stroke: var(--gold); stroke-width: 1; opacity: 0.7; }
.seal-text {
  fill: var(--gold);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
}
.seal-spin { transform-origin: 100px 100px; animation: spin 28s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.seal-num { fill: var(--gold); font-family: var(--serif); font-size: 78px; }

.verdict[data-tone="neutral"] #v-title { font-style: normal; }

/* ─── Motion preferences ───────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .grain, .seal-spin, [data-state="rolling"] .rec i { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0s !important; }
}
