:root {
  color-scheme: dark;
  --black: #000;
  --ink: #05050a;
  --panel: #0a0a12;
  --panel-raised: #10101c;
  --white: #f4f4ff;
  --paper: #d0d0e8;
  --muted: #8a8aa8;
  --line: #2a2a44;
  --line-bright: #4a4a72;
  /* true neon — not flat race red */
  --red: #ff2bd6;
  --red-hot: #ff5cf0;
  --red-deep: #7a0a6a;
  --cyan: #00f0ff;
  --cyan-dim: #00a8b8;
  --yellow: #f8ff3c;
  --lime: #b8ff2e;
  --glow-pink: 0 0 12px rgba(255, 43, 214, 0.85), 0 0 28px rgba(255, 43, 214, 0.45);
  --glow-cyan: 0 0 12px rgba(0, 240, 255, 0.8), 0 0 28px rgba(0, 240, 255, 0.4);
  --glow-mix: 0 0 10px rgba(255, 43, 214, 0.7), 0 0 22px rgba(0, 240, 255, 0.35);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", Arial, sans-serif;
}

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

html {
  min-height: 100%;
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background:
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 43, 214, 0.03) 1px, transparent 1px),
    #000;
  background-size: 48px 48px;
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.35;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 12% -5%, rgba(255, 43, 214, 0.35), transparent 50%),
    radial-gradient(ellipse 60% 40% at 95% 10%, rgba(0, 240, 255, 0.22), transparent 48%),
    radial-gradient(ellipse 50% 35% at 70% 100%, rgba(248, 255, 60, 0.08), transparent 45%),
    repeating-linear-gradient(112deg, transparent 0 34px, rgba(255, 255, 255, 0.014) 35px 36px);
}

button,
input,
select {
  color: inherit;
  font: inherit;
}

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

button {
  cursor: pointer;
}

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

kbd {
  display: inline-flex;
  min-width: 1.55rem;
  height: 1.45rem;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  background: transparent;
  font: 700 0.68rem/1 var(--body);
  letter-spacing: 0;
}

.broadcast-shell {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 40px;
}

/* desk-only layout after results moved to result.html */
.studio-grid {
  grid-template-columns: 1.15fr 0.85fr !important;
}

.desk-actions--solo {
  grid-template-columns: 1fr !important;
}

.desk-hint {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.desk-side {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.side-card {
  border: 1px solid rgba(0, 240, 255, 0.28);
  background: rgba(8, 8, 18, 0.95);
  padding: 1.1rem 1rem;
  box-shadow: 0 0 24px rgba(255, 43, 214, 0.08);
}

.side-script {
  display: block;
  font-family: "Pacifico", cursive;
  font-size: 1.5rem;
  color: #ff2bd6;
  text-shadow: 0 0 16px rgba(255, 43, 214, 0.75);
  margin-bottom: 0.35rem;
}

.side-card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.side-data {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
}

.side-data li {
  padding: 0.45rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #000;
}

.side-data b {
  display: block;
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan, #00f0ff);
}

.side-note {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.board-open {
  color: #ff5cf0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .studio-grid {
    grid-template-columns: 1fr !important;
  }
}

.broadcast-header {
  position: relative;
  display: grid;
  grid-template-columns: 230px minmax(260px, 1fr) auto;
  min-height: 82px;
  align-items: stretch;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.45);
  background: #03030a;
  box-shadow:
    6px 6px 0 var(--red),
    0 0 24px rgba(255, 43, 214, 0.35),
    inset 0 0 40px rgba(0, 240, 255, 0.04);
}

.broadcast-header::after {
  content: "";
  position: absolute;
  right: 32%;
  bottom: 0;
  width: 140px;
  height: 4px;
  transform: skewX(-36deg);
  background: linear-gradient(90deg, var(--cyan), var(--red), var(--yellow));
  box-shadow: 0 0 16px rgba(255, 43, 214, 0.7), 0 0 20px rgba(0, 240, 255, 0.4);
}

.brand-lockup {
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(0, 240, 255, 0.25);
  background: #000;
}

.brand-lockup img {
  width: 176px;
  height: auto;
}

.title-lockup {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 11px 24px;
}

.eyebrow,
.section-label,
.helper,
.timing,
.camera-badge {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.72rem;
}

.title-lockup h1 {
  margin: 1px 0 0;
  font-family: var(--display);
  font-size: clamp(2.15rem, 3.3vw, 3.4rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.82;
  text-transform: uppercase;
}

.title-lockup h1 strong {
  color: var(--red-hot);
  font-weight: 900;
  text-shadow: var(--glow-pink);
}

.studio-state {
  display: flex;
  min-width: 300px;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-left: 1px solid var(--line);
}

.live-pip {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.live-pip i,
.reveal-live i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: var(--glow-cyan);
  animation: live-pulse 1.3s steps(2, end) infinite;
}

@keyframes live-pulse {
  50% { opacity: 0.35; }
}

.key-guide {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(620px, 1.1fr) minmax(450px, 0.9fr);
  gap: 12px;
  align-items: start;
}

.desk-panel,
.outcome-panel,
.episode-board {
  position: relative;
  border: 1px solid rgba(0, 240, 255, 0.28);
  background: rgba(5, 5, 12, 0.96);
  box-shadow:
    0 0 0 1px rgba(255, 43, 214, 0.08),
    0 0 28px rgba(255, 43, 214, 0.08);
}

.desk-panel::before,
.outcome-panel::before,
.episode-board::before {
  content: "";
  position: absolute;
  top: -1px;
  right: 22px;
  width: 86px;
  height: 3px;
  transform: skewX(-34deg);
  background: linear-gradient(90deg, var(--cyan), var(--red), var(--yellow));
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.7);
}

.panel-titlebar {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  min-height: 62px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: #080808;
}

.panel-number {
  display: grid;
  align-self: stretch;
  place-items: center;
  border-right: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.7);
  font-family: var(--display);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 900;
}

.panel-titlebar > div {
  padding: 8px 13px;
}

.panel-titlebar p {
  margin: 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.panel-titlebar h2 {
  margin: 2px 0 0;
  font-family: var(--display);
  font-size: 1.55rem;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 0.9;
  text-transform: uppercase;
}

.timing,
.camera-badge {
  margin-right: 14px;
  color: var(--muted);
  font-size: 0.68rem;
}

.camera-badge {
  border: 1px solid var(--red);
  padding: 5px 8px;
  color: var(--red-hot);
}

#calculator-form {
  padding: 14px;
}

.identity-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.72fr 0.5fr;
  gap: 8px;
  margin-bottom: 12px;
}

.field-control {
  display: block;
  min-width: 0;
}

.field-control > span,
.tone-field legend {
  display: flex;
  justify-content: space-between;
  margin: 0 0 4px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field-control > span small {
  color: #555;
  font: inherit;
}

.field-control input,
.field-control select,
.money-input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line-bright);
  border-radius: 0;
  outline: none;
  background: #000;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.field-control input,
.field-control select {
  padding: 0 10px;
}

.field-control input::placeholder {
  color: #555;
}

.field-control input:focus,
.field-control select:focus,
.money-input:focus-within {
  border-color: var(--red-hot);
  box-shadow: inset 3px 0 0 var(--red);
}

.target-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 10px;
  padding: 9px 0 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-label {
  color: var(--paper);
  font-size: 0.72rem;
}

.target-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.target-switch input,
.filter-chips input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.target-switch label {
  min-width: 0;
  cursor: pointer;
}

.target-switch span {
  position: relative;
  display: flex;
  height: 45px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  overflow: hidden;
  border: 1px solid var(--line-bright);
  background: #030303;
}

.target-switch span::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -14px;
  width: 9px;
  transform: skewX(-20deg);
  background: var(--red);
  transition: width 0.15s ease;
}

.target-switch b,
.target-switch small {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  text-transform: uppercase;
}

.target-switch b {
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 900;
}

.target-switch small {
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.target-switch input:checked + span {
  border-color: var(--red-hot);
  background: #160000;
}

.target-switch input:checked + span::before {
  width: 7px;
}

.target-switch input:focus-visible + span,
.filter-chips input:focus-visible + span,
.mission-check input:focus-visible + span {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.preset-block {
  padding: 10px 0;
}

.section-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.helper {
  color: #5f5f5f;
  font-size: 0.62rem;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.preset-grid button {
  position: relative;
  height: 34px;
  overflow: hidden;
  border: 1px solid var(--line-bright);
  background: #050505;
  color: var(--paper);
  font-family: var(--display);
  font-size: 0.76rem;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.preset-grid button::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: 0;
  width: 24px;
  height: 3px;
  transform: skewX(-30deg);
  background: linear-gradient(90deg, var(--cyan), var(--red));
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

.preset-grid button:hover,
.preset-grid button.active {
  border-color: var(--cyan);
  background: rgba(255, 43, 214, 0.2);
  color: #fff;
  box-shadow: inset 0 0 0 1px var(--red), var(--glow-mix);
}

.core-cuts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-bright);
  border-left: 1px solid var(--line-bright);
}

.cut-card {
  min-width: 0;
  padding: 9px 10px 10px;
  border-right: 1px solid var(--line-bright);
  border-bottom: 1px solid var(--line-bright);
  background: linear-gradient(140deg, #0e0e0e, #050505 72%);
}

.cut-heading {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
}

.cut-index {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.35);
  font-family: var(--display);
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 900;
}

.cut-heading strong,
.cut-heading small {
  display: block;
  font-family: var(--display);
  text-transform: uppercase;
}

.cut-heading strong {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.cut-heading small {
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.cut-heading output {
  color: var(--yellow);
  text-shadow: 0 0 10px rgba(248, 255, 60, 0.55);
  font-family: var(--display);
  font-size: 1rem;
  font-style: italic;
  font-weight: 900;
}

.paired-fields {
  display: grid;
  grid-template-columns: 1fr 18px 1fr;
  align-items: end;
  gap: 4px;
}

.pair-slash {
  padding-bottom: 8px;
  color: var(--red);
  font-family: var(--display);
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 900;
  text-align: center;
}

.field-control--compact input {
  height: 34px;
  font-size: 1rem;
}

.money-input {
  display: grid;
  grid-template-columns: 25px 1fr 35px;
  height: 34px;
  align-items: center;
}

.money-input > span {
  color: var(--red-hot);
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 900;
  text-align: center;
}

.money-input input {
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 800;
}

.money-input small {
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.62rem;
  font-weight: 700;
}

.cut-card--switches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0;
}

.mission-check {
  display: block;
  min-width: 0;
  cursor: pointer;
}

.mission-check input {
  position: absolute;
  opacity: 0;
}

.mission-check > span {
  display: grid;
  grid-template-columns: 22px 1fr;
  grid-template-rows: 1fr 1fr;
  height: 52px;
  align-content: center;
  column-gap: 7px;
  padding: 6px;
  border: 1px solid var(--line-bright);
  background: #000;
}

.mission-check i {
  grid-row: 1 / 3;
  align-self: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line-bright);
}

.mission-check b,
.mission-check small {
  font-family: var(--display);
  text-transform: uppercase;
}

.mission-check b {
  align-self: end;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}

.mission-check small {
  color: var(--muted);
  font-size: 0.56rem;
  letter-spacing: 0.05em;
}

.mission-check input:checked + span {
  border-color: var(--red);
  background: #160000;
}

.mission-check input:checked + span i {
  border-color: var(--red-hot);
  background: var(--red);
  box-shadow: inset 0 0 0 4px #160000;
}

.race-block {
  padding-top: 9px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.filter-chips label {
  cursor: pointer;
}

.filter-chips span {
  display: block;
  padding: 5px 10px;
  border: 1px solid var(--line-bright);
  background: #030303;
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-chips input:checked + span {
  border-color: var(--cyan);
  background: rgba(255, 43, 214, 0.25);
  color: #fff;
  box-shadow:
    inset 0 0 0 1px var(--red),
    0 0 14px rgba(255, 43, 214, 0.45);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.more-cuts {
  margin-top: 9px;
  border: 1px solid var(--line);
  background: #050505;
}

.more-cuts summary {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  text-transform: uppercase;
}

.more-cuts summary::-webkit-details-marker {
  display: none;
}

.more-cuts summary span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.more-cuts summary span::before {
  content: "+";
  margin-right: 7px;
  color: var(--red-hot);
}

.more-cuts[open] summary span::before {
  content: "−";
}

.more-cuts summary small {
  color: #606060;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}

.advanced-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.72fr 1.25fr;
  gap: 7px;
  padding: 8px 10px 10px;
  border-top: 1px solid var(--line);
}

.advanced-grid .field-control input,
.advanced-grid .field-control select {
  height: 36px;
  font-size: 0.85rem;
}

.mission-check--advanced {
  padding-top: 20px;
}

.mission-check--advanced > span {
  height: 36px;
  grid-template-columns: 19px 1fr;
  padding: 3px 5px;
}

.mission-check--advanced i {
  width: 15px;
  height: 15px;
}

.tone-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.filter-chips--tone {
  flex-wrap: nowrap;
}

.filter-chips--tone label {
  flex: 1;
}

.filter-chips--tone span {
  padding-inline: 4px;
  text-align: center;
}

.desk-actions {
  display: grid;
  grid-template-columns: 1.3fr 1fr 46px;
  gap: 7px;
  margin-top: 10px;
}

.desk-actions button {
  display: flex;
  height: 49px;
  align-items: center;
  justify-content: space-between;
  border-radius: 0;
  padding: 0 13px;
  font-family: var(--display);
  font-size: 1rem;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.action-primary {
  border: 1px solid var(--red-hot);
  background: linear-gradient(135deg, #ff2bd6 0%, #c400a8 55%, #7a00ff 100%);
  color: #fff;
  box-shadow:
    4px 4px 0 var(--cyan),
    0 0 22px rgba(255, 43, 214, 0.65);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}

.action-primary:hover {
  background: linear-gradient(135deg, #ff5cf0, #ff2bd6 50%, #00f0ff);
  box-shadow:
    4px 4px 0 var(--yellow),
    0 0 30px rgba(0, 240, 255, 0.55);
}

.action-reveal {
  border: 1px solid var(--cyan);
  background: #0a1220;
  color: var(--cyan);
  box-shadow:
    4px 4px 0 var(--red),
    0 0 18px rgba(0, 240, 255, 0.45);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
}

.action-icon {
  border: 1px solid var(--line-bright);
  background: #050505;
  color: #fff;
  font-size: 1.4rem !important;
  justify-content: center !important;
  padding: 0 !important;
}

.desk-actions button:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.desk-actions button:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.outcome-panel {
  min-height: 716px;
  overflow: hidden;
}

.outcome-panel::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: 35px;
  width: 230px;
  height: 12px;
  transform: rotate(-24deg);
  background: var(--red-deep);
  opacity: 0.7;
}

.result-idle {
  position: relative;
  min-height: 652px;
  overflow: hidden;
  padding: 38px 34px;
  background:
    linear-gradient(145deg, rgba(0, 0, 0, 0.25), #000 62%),
    repeating-linear-gradient(-20deg, transparent 0 17px, rgba(255, 255, 255, 0.018) 18px 19px);
}

.result-idle > img {
  position: absolute;
  top: 36px;
  right: -42px;
  width: 320px;
  filter: grayscale(1) contrast(1.3);
  opacity: 0.18;
  transform: rotate(4deg);
}

.idle-copy {
  position: relative;
  z-index: 1;
  max-width: 450px;
  padding-top: 155px;
}

.redline {
  color: var(--red-hot);
  font-family: var(--display);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.idle-copy h3 {
  margin: 8px 0 12px;
  font-family: var(--display);
  font-size: clamp(3.5rem, 6vw, 5.8rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.72;
  text-transform: uppercase;
}

.idle-copy p {
  max-width: 36ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.idle-steps {
  position: absolute;
  right: 28px;
  bottom: 30px;
  left: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  background: var(--line);
  list-style: none;
}

.idle-steps li {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 11px 9px;
  background: #080808;
}

.idle-steps b {
  color: var(--red);
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
}

.idle-steps span {
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.verdict-hero {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line-bright);
  background:
    linear-gradient(115deg, rgba(112, 3, 0, 0.25), transparent 45%),
    repeating-linear-gradient(-17deg, transparent 0 14px, rgba(255, 255, 255, 0.02) 15px 16px),
    #030303;
}

.verdict-hero::after {
  content: "F&F";
  position: absolute;
  right: -8px;
  bottom: -42px;
  color: rgba(255, 255, 255, 0.03);
  font-family: var(--display);
  font-size: 13rem;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.1em;
  line-height: 1;
}

.verdict-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.verdict-topline span:first-child {
  color: var(--red-hot);
}

.verdict-name {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  font-family: var(--display);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.verdict-tier {
  position: relative;
  z-index: 1;
  max-width: 90%;
  margin: 5px 0 0;
  color: var(--red-hot);
  font-family: var(--display);
  font-size: clamp(3.5rem, 6.4vw, 6.5rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.73;
  text-transform: uppercase;
  text-shadow:
    0 0 8px rgba(255, 43, 214, 1),
    0 0 28px rgba(255, 43, 214, 0.75),
    0 0 48px rgba(0, 240, 255, 0.35),
    3px 3px 0 #1a0018;
}

.score-stamp {
  position: absolute;
  right: 22px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  width: 85px;
  height: 85px;
  transform: rotate(-4deg);
  align-items: baseline;
  justify-content: center;
  border: 3px solid var(--cyan);
  background: linear-gradient(145deg, #ff2bd6, #7a00ff);
  box-shadow:
    5px 5px 0 var(--cyan),
    0 0 24px rgba(255, 43, 214, 0.7);
  font-family: var(--display);
  font-style: italic;
}

.score-stamp b {
  font-size: 3.75rem;
  font-weight: 900;
  line-height: 1.3;
}

.score-stamp span {
  font-size: 1rem;
  font-weight: 800;
}

.metric-rack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line-bright);
  background: var(--line);
  gap: 1px;
}

.metric-rack > div {
  min-width: 0;
  padding: 11px 9px 10px;
  background: #090909;
}

.metric-rack span,
.metric-rack b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-rack span {
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metric-rack b {
  margin-top: 2px;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.55);
  font-family: var(--display);
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 900;
}

.report-split {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  border-bottom: 1px solid var(--line);
}

.report-block {
  min-width: 0;
  padding: 13px 14px;
}

.report-block + .report-block {
  border-left: 1px solid var(--line);
}

.block-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 9px;
  color: var(--paper);
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.block-heading span {
  color: var(--red-hot);
}

.funnel-list,
.kill-list,
.host-lines {
  margin: 0;
  padding: 0;
  list-style: none;
}

.funnel-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  margin-bottom: 6px;
}

.funnel-label {
  position: relative;
  height: 21px;
  overflow: hidden;
  border: 1px solid #282828;
  background: #020202;
}

.funnel-label i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill);
  background: linear-gradient(90deg, #7a00ff, var(--red), var(--cyan));
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.55), 0 0 10px rgba(255, 43, 214, 0.45);
}

.funnel-label span {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  align-items: center;
  padding: 0 6px;
  overflow: hidden;
  font-family: var(--display);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.funnel-row > b {
  width: 48px;
  font-family: var(--display);
  font-size: 0.8rem;
  font-style: italic;
  text-align: right;
}

.kill-list {
  display: grid;
  gap: 5px;
}

.kill-list li {
  display: grid;
  grid-template-columns: 25px 1fr auto;
  align-items: center;
  gap: 7px;
  min-height: 31px;
  padding: 4px 7px 4px 4px;
  border: 1px solid #282828;
  background: #030303;
}

.kill-list i {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  background: var(--red-deep);
  color: #fff;
  font-family: var(--display);
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 900;
}

.kill-list span {
  overflow: hidden;
  color: var(--paper);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kill-list b {
  color: var(--red-hot);
  font-family: var(--display);
  font-size: 0.88rem;
  font-style: italic;
}

.host-block {
  padding: 13px 14px 14px;
  background: linear-gradient(90deg, rgba(112, 3, 0, 0.18), transparent 55%);
}

.host-lines {
  counter-reset: host-line;
  display: grid;
  gap: 5px;
}

.host-lines li {
  position: relative;
  min-height: 29px;
  padding: 6px 8px 6px 34px;
  border-left: 2px solid var(--red);
  background: #070707;
  color: var(--paper);
  font-size: 0.72rem;
}

.host-lines li::before {
  counter-increment: host-line;
  content: counter(host-line, decimal-leading-zero);
  position: absolute;
  left: 8px;
  color: var(--red-hot);
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 900;
}

.report-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 10px 14px 14px;
}

.report-actions button {
  height: 36px;
  border: 1px solid var(--line-bright);
  background: #060606;
  font-family: var(--display);
  font-size: 0.72rem;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-actions button:first-child {
  border-color: var(--red);
  background: var(--red);
}

.episode-board {
  margin-top: 12px;
}

.board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
}

.board-header h2 {
  margin: 2px 0 0;
  font-family: var(--display);
  font-size: 1.55rem;
  font-style: italic;
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
}

.board-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.board-tools button {
  border: 1px solid var(--line-bright);
  background: transparent;
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 8px;
  text-transform: uppercase;
}

.board-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px;
  color: var(--muted);
  text-align: center;
}

.board-empty b {
  color: var(--paper);
  font-family: var(--display);
  font-size: 0.95rem;
  font-style: italic;
  text-transform: uppercase;
}

.board-empty span {
  font-size: 0.76rem;
}

.board-table {
  width: 100%;
  border-collapse: collapse;
}

.board-table th,
.board-table td {
  padding: 8px 11px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.board-table th {
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.board-table td {
  color: var(--paper);
  font-size: 0.77rem;
}

.board-table td:nth-child(2),
.board-table td:nth-child(3),
.board-table td:nth-child(4) {
  font-family: var(--display);
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 800;
}

.board-table .board-score {
  color: var(--red-hot);
}

.method-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 20px 4px 0;
  color: var(--muted);
}

.method-footer p {
  max-width: 90ch;
  margin: 4px 0 0;
  font-size: 0.72rem;
}

.method-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.method-footer a {
  border-bottom: 1px solid var(--red);
  color: var(--paper);
  font-family: var(--display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.reveal[hidden] {
  display: none;
}

.reveal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: 88px 1fr 58px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 43, 214, 0.35), transparent 48%),
    radial-gradient(circle at 80% 70%, rgba(0, 240, 255, 0.2), transparent 42%),
    linear-gradient(135deg, #0a0012, #000 66%);
  animation: reveal-slam 260ms cubic-bezier(0.16, 0.82, 0.21, 1);
}

@keyframes reveal-slam {
  from { opacity: 0; transform: scale(1.045); filter: blur(5px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}

.reveal-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.018) 4px),
    repeating-linear-gradient(113deg, transparent 0 64px, rgba(255, 43, 214, 0.05) 65px 67px),
    repeating-linear-gradient(-70deg, transparent 0 80px, rgba(0, 240, 255, 0.04) 81px 83px);
}

.safe-frame {
  position: absolute;
  inset: 3.6vh 3vw;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.safe-frame::before,
.safe-frame::after {
  content: "";
  position: absolute;
  width: 62px;
  height: 62px;
  border-color: var(--red);
}

.safe-frame::before {
  top: -1px;
  left: -1px;
  border-top: 4px solid var(--cyan);
  border-left: 4px solid var(--cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.6);
}

.safe-frame::after {
  right: -1px;
  bottom: -1px;
  border-right: 4px solid var(--red);
  border-bottom: 4px solid var(--red);
  box-shadow: 0 0 16px rgba(255, 43, 214, 0.6);
}

.reveal-header,
.reveal-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  margin: 0 4.8vw;
}

.reveal-header {
  gap: 20px;
  border-bottom: 1px solid var(--line-bright);
}

.reveal-header img {
  width: 150px;
}

.reveal-header > span {
  color: var(--muted);
  font-family: var(--display);
  font-size: clamp(0.7rem, 1.1vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.reveal-live {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: var(--white) !important;
}

.reveal-stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2vh 7vw;
  text-align: center;
}

.reveal-kicker {
  margin: 0;
  color: var(--red-hot);
  font-family: var(--display);
  font-size: clamp(0.85rem, 1.45vw, 1.3rem);
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.reveal-guest {
  margin: 1vh 0 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 4.1rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.9;
  text-transform: uppercase;
}

.reveal-verdict {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2vw;
  margin-top: 2vh;
}

.reveal-tier {
  max-width: 70vw;
  margin: 0;
  color: var(--red-hot);
  font-family: var(--display);
  font-size: clamp(5rem, 11vw, 12rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.72;
  text-transform: uppercase;
  text-shadow:
    0 0 12px #ff2bd6,
    0 0 36px rgba(255, 43, 214, 0.9),
    0 0 70px rgba(0, 240, 255, 0.45),
    6px 6px 0 #120018;
}

.reveal-score {
  display: flex;
  min-width: 150px;
  height: 150px;
  transform: rotate(-4deg);
  align-items: baseline;
  justify-content: center;
  border: 5px solid var(--cyan);
  background: linear-gradient(145deg, #ff2bd6, #7a00ff 60%, #00c8ff);
  box-shadow:
    10px 10px 0 var(--yellow),
    0 0 40px rgba(255, 43, 214, 0.7),
    0 0 30px rgba(0, 240, 255, 0.45);
  font-family: var(--display);
  font-style: italic;
}

.reveal-score b {
  font-size: 7rem;
  font-weight: 900;
  line-height: 1.2;
}

.reveal-score span {
  font-size: 1.7rem;
  font-weight: 900;
}

.reveal-metrics {
  display: grid;
  width: min(860px, 78vw);
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 3.5vh;
  background: var(--line-bright);
}

.reveal-metrics > div {
  padding: 1.4vh 1.2vw;
  background: #050505;
}

.reveal-metrics span,
.reveal-metrics b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reveal-metrics span {
  color: var(--muted);
  font-family: var(--display);
  font-size: clamp(0.65rem, 1vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.reveal-metrics b {
  margin-top: 2px;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.8vw, 3rem);
  font-style: italic;
  font-weight: 900;
}

.reveal-line {
  max-width: 62ch;
  margin: 2.5vh auto 0;
  color: var(--paper);
  font-size: clamp(0.85rem, 1.4vw, 1.25rem);
}

.reveal-footer {
  justify-content: space-between;
  border-top: 1px solid var(--line-bright);
  color: var(--muted);
  font-family: var(--display);
  font-size: clamp(0.6rem, 0.9vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reveal-footer button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--white);
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
}

.reveal-footer button b {
  color: var(--muted);
  font-weight: 700;
}

.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  z-index: 120;
  padding: 9px 14px;
  transform: translate(-50%, 150%);
  border: 1px solid var(--cyan);
  background: linear-gradient(90deg, #ff2bd6, #7a00ff);
  box-shadow:
    5px 5px 0 var(--cyan),
    0 0 22px rgba(255, 43, 214, 0.7);
  font-family: var(--display);
  font-size: 0.8rem;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 150ms ease;
}

.toast.show {
  transform: translate(-50%, 0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1120px) {
  .broadcast-header {
    grid-template-columns: 200px 1fr;
  }

  .studio-state {
    display: none;
  }

  .studio-grid {
    grid-template-columns: 1fr;
  }

  .outcome-panel {
    min-height: 0;
  }

  .result-idle {
    min-height: 520px;
  }

  .idle-copy {
    padding-top: 90px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 14px;
  }

  .broadcast-shell {
    width: min(100% - 16px, 1500px);
    padding-top: 8px;
  }

  .broadcast-header {
    grid-template-columns: 118px 1fr;
    min-height: 68px;
    box-shadow: 4px 4px 0 var(--red-deep);
  }

  .brand-lockup img {
    width: 105px;
  }

  .title-lockup {
    padding: 8px 12px;
  }

  .title-lockup h1 {
    font-size: clamp(1.65rem, 8vw, 2.45rem);
  }

  .identity-grid {
    grid-template-columns: 1fr 0.72fr;
  }

  .field-control--guest {
    grid-column: 1 / -1;
  }

  .target-row {
    grid-template-columns: 1fr;
  }

  .preset-grid {
    grid-template-columns: 1fr 1fr;
  }

  .core-cuts {
    grid-template-columns: 1fr;
  }

  .advanced-grid {
    grid-template-columns: 1fr 1fr;
  }

  .desk-actions {
    grid-template-columns: 1fr 1fr 42px;
  }

  .desk-actions button {
    padding-inline: 8px;
    font-size: 0.82rem;
  }

  .panel-titlebar {
    grid-template-columns: 44px 1fr auto;
  }

  .timing,
  .camera-badge {
    display: none;
  }

  .result-idle {
    min-height: 485px;
    padding: 25px 20px;
  }

  .result-idle > img {
    width: 250px;
  }

  .idle-copy {
    padding-top: 140px;
  }

  .idle-copy h3 {
    font-size: 3.35rem;
  }

  .idle-steps {
    right: 15px;
    bottom: 18px;
    left: 15px;
  }

  .idle-steps span {
    display: none;
  }

  .metric-rack {
    grid-template-columns: 1fr 1fr;
  }

  .report-split {
    grid-template-columns: 1fr;
  }

  .report-block + .report-block {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .verdict-hero {
    min-height: 230px;
    padding-inline: 16px;
  }

  .verdict-tier {
    max-width: 100%;
    padding-right: 70px;
    font-size: 3.8rem;
  }

  .score-stamp {
    right: 13px;
    width: 72px;
    height: 72px;
  }

  .score-stamp b {
    font-size: 3rem;
  }

  .board-header {
    align-items: flex-start;
    gap: 10px;
  }

  .board-tools {
    flex-direction: column;
    align-items: flex-end;
  }

  .board-table th:nth-child(5),
  .board-table td:nth-child(5) {
    display: none;
  }

  .method-footer {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .method-footer nav {
    justify-content: flex-start;
  }

  .reveal {
    grid-template-rows: 64px 1fr 46px;
  }

  .reveal-header {
    gap: 8px;
  }

  .reveal-header img {
    width: 105px;
  }

  .reveal-header > span:not(.reveal-live) {
    display: none;
  }

  .reveal-verdict {
    flex-direction: column;
    gap: 3vh;
  }

  .reveal-tier {
    max-width: 92vw;
    font-size: clamp(4.4rem, 18vw, 7rem);
  }

  .reveal-score {
    min-width: 96px;
    height: 96px;
    border-width: 3px;
    box-shadow: 6px 6px 0 #fff;
  }

  .reveal-score b {
    font-size: 4.4rem;
  }

  .reveal-score span {
    font-size: 1.1rem;
  }

  .reveal-metrics {
    width: 90vw;
  }

  .reveal-footer > span,
  .reveal-footer button b {
    display: none;
  }

  .reveal-footer {
    justify-content: flex-end;
  }
}

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

@media print {
  body::before,
  .desk-panel,
  .episode-board,
  .broadcast-header,
  .reveal,
  .toast {
    display: none !important;
  }

  .broadcast-shell,
  .studio-grid {
    display: block;
    width: 100%;
  }

  .outcome-panel {
    border-color: #000;
  }
}
