:root {
  color-scheme: dark;
  --bg: #030303;
  --panel: #0b0b0c;
  --text: #f4f1eb;
  --muted: #9a9690;
  --line: rgba(244, 241, 235, 0.14);
  --red: #c5161d;
  --red-deep: #741016;
  --paper: #ebe4d8;
  --paper-2: #ddd4c4;
  --ink: #12100d;
  --mono: "SFMono-Regular", "IBM Plex Mono", Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  --topbar-h: 64px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
}

body.locked { overflow: hidden; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.08;
  background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.12) 0 1px, transparent 1px);
  background-size: 9px 9px;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.5) 100%);
}

.transition-layer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 400ms ease, visibility 400ms ease;
}

.transition-layer.active {
  opacity: 1;
  visibility: visible;
}

.transition-text {
  max-width: 720px;
  margin: 0;
  text-align: center;
  font: 500  clamp(18px, 3vw, 28px) / 1.35 var(--sans);
  letter-spacing: 0.02em;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(3,3,3,0.95);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font: 700 12px/1 var(--mono);
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font: 900 18px/1 var(--sans);
  color: var(--red);
  text-shadow: 0 0 20px rgba(197,22,29,0.6);
}

.brand-mark::before {
  content: "₹";
}

.nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  min-height: 32px;
  padding: 0 10px;
  font: 700 10px/1 var(--mono);
  text-transform: uppercase;
  cursor: pointer;
}

.nav button:not(:disabled):hover,
.nav button.is-active {
  color: #fff;
  border-color: var(--red);
}

.nav button:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.stage {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  opacity: 0;
  pointer-events: none;
}

.screen.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
  animation: screenIn 500ms ease;
}

.screen-detail.active {
  z-index: 50;
}

@keyframes screenIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.screen-inner {
  height: 100%;
  overflow-y: auto;
  padding: 40px clamp(20px, 4vw, 48px) 48px;
  max-width: 1180px;
  margin: 0 auto;
}

.invoice-scroll,
.detail-scroll,
.auction-scroll {
  max-width: 900px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font: 800 11px/1.2 var(--mono);
  text-transform: uppercase;
}

h1, h2, h3 { margin-top: 0; line-height: 1.05; text-transform: uppercase; }

h1 { font-size: clamp(48px, 8vw, 96px); }
h2 { font-size: clamp(32px, 5vw, 56px); margin-bottom: 16px; }

.lede, .act-copy p, .entry-policy-text {
  max-width: 640px;
  color: #d4d0c9;
  font-size: 17px;
  line-height: 1.65;
}

.hero-title .accent { color: var(--red); }

.landing-grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.85fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - var(--topbar-h) - 80px);
}

.hero-visual {
  position: relative;
  min-height: 400px;
  padding: 28px;
  border: 1px solid var(--line);
  background: #070707;
  overflow: hidden;
  font: 700 14px/1.5 var(--mono);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
}

.hero-visual::before {
  content: "SYSTEM COPY";
  position: absolute;
  top: 48px;
  right: -20px;
  border: 2px solid var(--red);
  color: var(--red);
  padding: 10px 24px;
  transform: rotate(12deg);
  font: 900 18px/1 var(--mono);
}

.scanline {
  position: absolute;
  inset: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.06), transparent);
  animation: scan 5s ease-in-out infinite;
}

@keyframes scan {
  0%, 100% { transform: translateY(-100px); }
  50% { transform: translateY(420px); }
}

.red { color: var(--red); }

.entry-panel, .center-panel {
  max-width: 720px;
  margin: auto;
  padding-top: 8vh;
}

.policy-link {
  color: #fff;
  border-bottom: 1px solid var(--red);
}

.entry-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font: 800 12px/1 var(--mono);
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.35); }
.button-primary { background: var(--red); border-color: var(--red); color: #fff; }
.button-ghost { background: #080808; }
.button:disabled { opacity: 0.35; pointer-events: none; }

.proceed-btn {
  display: block;
  margin: 28px auto 0;
  width: 100%;
  max-width: 420px;
}

.act1-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.5fr) 1fr;
  gap: 36px;
  align-items: start;
  max-width: 100%;
}

.calculator {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 24px;
  display: grid;
  gap: 16px;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

label, legend {
  color: var(--muted);
  font: 800 11px/1.2 var(--mono);
  text-transform: uppercase;
}

input, select, textarea {
  width: 100%;
  margin-top: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #050505;
  color: var(--text);
  font: 14px var(--sans);
}

fieldset {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

fieldset label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  text-transform: none;
  color: #d9d4cb;
}

input[type="checkbox"] { width: 16px; height: 16px; min-height: 16px; margin: 0; accent-color: var(--red); }

.process-panel {
  max-width: 640px;
  margin: auto;
  padding-top: 12vh;
}

.process-log {
  margin: 28px 0;
  font: 13px/1.8 var(--mono);
  color: var(--red);
  text-transform: uppercase;
  min-height: 120px;
}

.process-log p { margin: 0 0 8px; opacity: 0; animation: logIn 400ms ease forwards; }

@keyframes logIn { to { opacity: 1; } }

.process-bar {
  height: 3px;
  background: rgba(255,255,255,0.1);
}

.process-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--red);
  transition: width 200ms linear;
}

.invoice, .dossier, .detail-doc {
  position: relative;
  padding: 32px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

.invoice-watermark {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-22deg);
  font: 900 42px/1 var(--mono);
  color: rgba(197,22,29,0.08);
  pointer-events: none;
  white-space: nowrap;
}

.invoice-head {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid #17130f;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.stamp {
  border: 2px solid var(--red);
  color: var(--red);
  padding: 8px 12px;
  font-weight: 900;
  transform: rotate(8deg);
}

.billing { display: grid; gap: 8px; margin-bottom: 20px; }
.billing div { display: flex; justify-content: space-between; }
.billing dt { color: #5d554b; }
.billing dd { margin: 0; }

.invoice-section { margin-top: 20px; }
.invoice-section h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; }

.clickable-block h4,
.dossier-block h4 {
  font-size: 15px;
  letter-spacing: 0.06em;
}

.label-key {
  font-weight: 900;
  color: var(--ink);
}

.label-val {
  color: var(--red-deep);
  font-weight: 700;
}

.click-hint {
  margin-left: 8px;
  color: var(--red);
  font-weight: 900;
  font-size: 14px;
}
.rule { height: 1px; background: #111; margin-bottom: 10px; }

.line-items, .valuation-grid { display: grid; gap: 6px; }
.line-item, .valuation-grid div { display: flex; justify-content: space-between; }
.muted-row { opacity: 0.35; }
.invoice-total { margin-top: 10px; padding-top: 10px; border-top: 2px solid #111; font-weight: 900; }

.clickable-block {
  margin-top: 18px;
  padding: 14px 0;
  border-top: 1px dashed #211b15;
  cursor: pointer;
  transition: background 200ms ease;
}

.clickable-block:hover { background: rgba(197,22,29,0.06); }

.clickable-block h4 {
  margin: 0 0 8px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.clickable-block p { margin: 4px 0; }

.hl, .clickable-block .hl { color: var(--red-deep); font-weight: 800; }

.note-prompt {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid #ccc;
  background: rgba(197,22,29,0.06);
}

.note-question {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--red-deep);
}

.legal-stamp {
  margin-top: 20px;
  padding: 18px;
  border: 2px solid var(--red);
  color: var(--red-deep);
  font-weight: 700;
}

.chill-block {
  margin-top: 24px;
  padding: 24px;
  border: 2px solid var(--red);
  background: linear-gradient(135deg, rgba(197,22,29,0.12), rgba(0,0,0,0.04));
  color: var(--ink);
  animation: chillPulse 3s ease-in-out infinite;
}

.chill-block p { margin: 0 0 10px; font-weight: 800; font-size: 14px; }

@keyframes chillPulse {
  50% { box-shadow: inset 0 0 40px rgba(197,22,29,0.08); }
}

.invoice-final {
  margin-top: 28px;
  text-align: center;
  font-weight: 900;
  font-size: 17px;
}

.invoice-footer {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid #211b15;
  color: #5d554b;
  font-size: 11px;
}

.quiz-layout { max-width: 720px; margin: 0 auto; }
.quiz-shell {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 24px;
  margin-top: 20px;
}

.reliability-bar, .quiz-meta {
  display: flex;
  justify-content: space-between;
  font: 800 11px var(--mono);
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.scenario-media {
  min-height: 200px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  background: #050505;
  overflow: hidden;
}

.quiz-image-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 8px;
  background: #0a0a0a;
}

.quiz-image-frame img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border: 1px solid var(--line);
}

.phone-frame, .call-ui, .video-frame, .leaked-document, .court-shot {
  padding: 20px;
  min-height: 200px;
  display: grid;
  gap: 10px;
  font-family: var(--mono);
}

.chat-bubble {
  display: grid;
  grid-template-columns: 24px 1fr 40px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(116,208,139,0.12);
  border-radius: 8px 8px 8px 0;
}

.wave {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  height: 32px;
  align-items: center;
}

.wave i {
  display: block;
  height: 40%;
  background: #f4f1eb;
  animation: wavePulse 800ms ease-in-out infinite alternate;
}

.wave i:nth-child(2n) { height: 75%; }
@keyframes wavePulse { to { transform: scaleY(0.5); opacity: 0.5; } }

.scenario-media audio,
.scenario-media video {
  width: 100%;
  max-height: 280px;
  border-radius: 4px;
  background: #000;
}

.scenario-media audio { filter: invert(1); opacity: 0.92; }

.media-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 12px;
  font: 800 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.media-badge.synthetic { background: var(--red); color: #fff; }
.media-badge.real { background: #1a3d24; color: #74d08b; border: 1px solid #74d08b; }

.media-caption { color: var(--muted); font-size: 12px; margin: 8px 0 0; }

.politician-frame { position: relative; padding: 0; min-height: auto; }
.politician-frame .media-badge { position: absolute; top: 12px; left: 12px; z-index: 2; }
.politician-frame .caption-strip {
  padding: 10px 14px;
  background: rgba(0,0,0,0.75);
  font-size: 11px;
}

.reveal-badge {
  color: var(--red);
  font-weight: 800;
  text-transform: uppercase;
  font-family: var(--mono);
  font-size: 12px;
}

.scotus-mock {
  position: relative;
  padding: 20px 22px 48px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.4), transparent 40%),
    #f3efe6;
  color: #1a1510;
  font-family: "Times New Roman", Georgia, serif;
  min-height: 280px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}

.scotus-mock::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(139,26,26,0.25);
  pointer-events: none;
}

.scotus-stamp {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 8px;
  font-weight: 700;
  color: #444;
  text-align: right;
  max-width: 140px;
  line-height: 1.3;
}

.scotus-seal {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #8b1a1a;
  margin-bottom: 12px;
}

.scotus-mock h4 {
  margin: 0 0 10px;
  font-size: 14px;
  text-align: center;
  letter-spacing: 0.04em;
}

.scotus-case,
.scotus-meta { font-size: 11px; margin: 0 0 8px; }
.scotus-body { font-size: 11px; line-height: 1.5; margin: 0; }

.news-mock {
  position: relative;
  min-height: 300px;
  background: #020408;
  overflow: hidden;
  border: 1px solid #1a2744;
}

.news-scene {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 35% 55%, rgba(255,120,40,0.85) 0%, transparent 35%),
    linear-gradient(180deg, #0a1020 0%, #020408 70%);
}

.live-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  background: var(--red);
  font: 800 10px var(--mono);
  color: #fff;
}

.news-lower {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0 0 8px;
}

.news-lower .breaking {
  display: inline-block;
  margin: 0 0 0 12px;
  padding: 6px 10px;
  background: var(--red);
  font: 900 11px var(--mono);
  color: #fff;
}

.news-headline {
  margin: 8px 12px 4px;
  padding: 10px 12px;
  background: #fff;
  color: #000;
  font: 900 16px/1.2 var(--sans);
}

.news-sub {
  margin: 0 12px 8px;
  padding: 8px 12px;
  background: #1e4a8c;
  color: #fff;
  font: 800 11px var(--mono);
}

.news-ticker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(0,0,0,0.85);
  font: 700 10px var(--mono);
  color: #ccc;
}

.news-ticker .nnn {
  padding: 4px 8px;
  background: #1e4a8c;
  color: #fff;
  font-weight: 900;
}

.news-mock .media-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 3;
}

.video-frame {
  position: relative;
  background: linear-gradient(135deg, #1a1a1d, #070707);
  color: #fff;
}

.speaker-face, .avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5d554b, #111);
}

.leaked-document, .court-shot {
  background: var(--paper);
  color: var(--ink);
  transform: rotate(-0.5deg);
}

.confidence { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; font: 800 11px var(--mono); }
.confidence button,
.choice-row .quiz-tile {
  border: 1px solid var(--line);
  background: #0a0a0a;
  color: var(--text);
  padding: 10px 16px;
  cursor: pointer;
  font: 800 11px var(--mono);
  text-transform: uppercase;
  transition: border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, background 180ms ease;
}
.confidence button:hover,
.choice-row .quiz-tile:hover {
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(197, 22, 29, 0.35);
}
.confidence button.is-active {
  border-color: rgba(244, 241, 235, 0.4);
  color: #fff;
  background: #0f0f0f;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.reveal { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); color: #ddd8cf; font-size: 14px; }

.dossier .watermark {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-24deg);
  font: 900 52px/1 var(--mono);
  color: rgba(197,22,29,0.1);
  pointer-events: none;
}

.dossier header { border-bottom: 3px double #111; padding-bottom: 14px; margin-bottom: 18px; font-weight: 900; }

.dossier-block {
  padding: 14px 0;
  border-bottom: 1px dashed #211b15;
  cursor: pointer;
}

.dossier-block:hover { background: rgba(197,22,29,0.05); }

.dossier-block h4 {
  color: var(--red-deep);
  margin: 0 0 8px;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.consent-analysis { margin-top: 20px; padding-top: 16px; border-top: 2px solid #111; }

.auction-panel {
  margin-top: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  background: #080808;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.65;
}

.auction-panel h4 {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 13px;
  text-transform: uppercase;
}

.auction-live { color: #74d08b; }
.auction-stream { max-height: 200px; overflow-y: auto; }
.auction-stream p { margin: 4px 0; opacity: 0.85; }

.bid-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.bid-row.winner { border-left: 3px solid var(--red); padding-left: 12px; }

.anatomy-list { display: grid; gap: 8px; margin: 24px 0; }

.anatomy-item {
  border: 1px solid var(--line);
  background: #080808;
  padding: 14px 18px;
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease;
}

.anatomy-item:hover {
  border-color: var(--red);
  background: rgba(197,22,29,0.06);
}

.anatomy-item strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font: 900 14px var(--mono);
  margin-bottom: 6px;
}

.anatomy-item span { color: var(--muted); font-size: 13px; }

.anatomy-summary {
  margin: 40px 0;
  display: grid;
  gap: 24px;
}

.anatomy-summary-block {
  padding: 28px 32px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(197,22,29,0.08), #080808);
}

.anatomy-summary-block h3 {
  margin: 0 0 16px;
  font: 900 18px/1.2 var(--mono);
  color: var(--red);
  letter-spacing: 0.08em;
}

.anatomy-summary-block p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.75;
  color: #e8e4dc;
}

.anatomy-summary-block .summary-emphasis {
  margin-top: 16px;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  border-left: 3px solid var(--red);
  padding-left: 14px;
}

.anatomy-lead::after { content: none; }

.tool-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }

.tab {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #070707;
  color: var(--muted);
  font: 800 11px var(--mono);
  text-transform: uppercase;
  cursor: pointer;
}

.tab.active { background: var(--red); border-color: var(--red); color: #fff; }

.tool-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 24px;
  min-height: 360px;
}

.notice { display: grid; grid-template-columns: minmax(240px, 0.45fr) 1fr; gap: 20px; }

.legal-form { display: grid; gap: 12px; }

.issue-list {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.issue-list label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  cursor: pointer;
  font-family: var(--sans);
  text-transform: none;
  color: #d4d0c9;
}

.issue-list input { width: auto; min-height: auto; margin-top: 4px; }

.legal-output {
  background: var(--paper);
  color: var(--ink);
  padding: 20px;
  white-space: pre-wrap;
  font-size: 11px;
  max-height: 480px;
  overflow-y: auto;
}

.legal-output-wrap {
  display: grid;
  gap: 12px;
}

.legal-output-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.legal-output.legal-output-rich {
  font-size: 9px;
  line-height: 1.5;
  max-height: min(70vh, 640px);
  border: 2px solid var(--red);
}

.protocol-modules { display: grid; gap: 10px; }
.protocol-module { border: 1px solid var(--line); padding: 14px; }
.protocol-module summary { cursor: pointer; font-weight: 900; font-family: var(--mono); }

.broadcast-card {
  max-width: 520px;
  padding: 28px;
  border: 1px solid var(--red);
  background: #030303;
  font-family: var(--mono);
}

.broadcast-card .amount { color: var(--red); font-size: 56px; font-weight: 900; line-height: 1; }

.helpline-grid { display: grid; gap: 20px; }
.helpline-list { font-family: var(--mono); font-size: 13px; line-height: 1.7; }
.helpline-list a { color: var(--red); }

.screen-detail .detail-doc {
  background: #080808;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px rgba(0,0,0,0.65);
  font-family: var(--mono);
}

.detail-shell,
.anatomy-detail-view {
  padding: 8px 4px 32px;
}

.detail-ref {
  margin: 0 0 12px;
  font: 800 10px/1.4 var(--mono);
  color: var(--red);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-shell h2,
.anatomy-detail-view h2 {
  font-size: clamp(22px, 4vw, 32px);
  margin: 0 0 20px;
  color: #fff;
  text-transform: uppercase;
}

.detail-divider {
  height: 2px;
  margin: 0 0 24px;
  background: linear-gradient(90deg, var(--red), transparent);
}

.detail-body h3 {
  font-size: 13px;
  color: var(--red);
  margin: 28px 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.detail-body p,
.detail-body li {
  color: #d4d0c9;
  font-size: 14px;
  line-height: 1.7;
}

.detail-body .formula {
  padding: 16px;
  background: rgba(197,22,29,0.1);
  border: 1px solid rgba(197,22,29,0.35);
  border-left: 4px solid var(--red);
  font-size: 12px;
  white-space: pre-wrap;
  color: #f4f1eb;
}

.anatomy-tree {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.anatomy-tree li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px 10px 10px;
  border-left: 2px solid var(--red);
  background: rgba(255,255,255,0.03);
  font-size: 13px;
  line-height: 1.55;
}
.anatomy-tree .tree-glyph {
  flex: 0 0 1.25em;
  font: 700 14px/1.4 var(--mono);
  color: var(--red);
  text-align: center;
  margin-top: 1px;
}
.anatomy-tree .tree-text {
  flex: 1;
  min-width: 0;
}
.anatomy-tree .label-key {
  color: #e8e3da;
  font-weight: 700;
}
.anatomy-tree .label-val { color: var(--red); }

.detail-doc h2 { font-size: 22px; margin-bottom: 20px; }
.detail-doc h3 { font-size: 14px; color: var(--red-deep); margin: 24px 0 10px; text-transform: uppercase; }
.detail-doc p, .detail-doc li { margin-bottom: 10px; }
.detail-doc .formula {
  padding: 14px;
  background: rgba(197,22,29,0.08);
  border-left: 3px solid var(--red);
  font-size: 12px;
  white-space: pre-wrap;
}

.back-btn { margin-bottom: 20px; }

.auction-pre, .anatomy-detail {
  margin: 0;
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.65;
  color: #d4d0c9;
}

.anatomy-detail { color: var(--ink); background: #f5f0e6; padding: 20px; border: 1px solid #ccc; }

.muted-small { font-size: 11px; color: var(--muted); margin-top: 8px; }

.media-top { color: #74d08b; font-size: 12px; margin-bottom: 8px; }

.play-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f4f1eb;
}

.screen-finale {
  display: none;
  place-items: center;
  text-align: center;
  padding: 48px 24px;
  background: radial-gradient(ellipse at 50% 20%, rgba(197, 22, 29, 0.12), #000 55%);
  font: 16px/1.85 var(--mono);
}

.screen-finale.active {
  display: grid;
}

.finale-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.screen-finale.active .finale-wrap > p {
  margin: 0 0 18px;
  opacity: 0;
  transform: translateY(12px);
  animation: finaleIn 780ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  color: #e8e3da;
}

.screen-finale.active .finale-wrap > p:nth-child(1) { animation-delay: 120ms; }
.screen-finale.active .finale-wrap > p:nth-child(2) { animation-delay: 260ms; }
.screen-finale.active .finale-wrap > p:nth-child(3) { animation-delay: 400ms; }
.screen-finale.active .finale-wrap > p:nth-child(4) { animation-delay: 540ms; }
.screen-finale.active .finale-wrap > p:nth-child(5) { animation-delay: 680ms; }
.screen-finale.active .finale-wrap > p:nth-child(6) { animation-delay: 820ms; }
.screen-finale.active .finale-wrap > p:nth-child(7) { animation-delay: 960ms; }
.screen-finale.active .finale-wrap > p:nth-child(8) { animation-delay: 1100ms; }
.screen-finale.active .finale-wrap > p:nth-child(9) { animation-delay: 1240ms; }
.screen-finale.active .finale-wrap > p:nth-child(10) { animation-delay: 1380ms; }
.screen-finale.active .finale-wrap > p:nth-child(11) { animation-delay: 1520ms; }
.screen-finale.active .finale-close {
  opacity: 0;
  animation: finaleIn 780ms cubic-bezier(0.22, 1, 0.36, 1) 1680ms forwards;
}

.finale-sep {
  letter-spacing: 0.35em;
  font-size: 13px;
  margin: 8px 0 20px;
}
.finale-sep--white { color: #fff; }
.finale-sep--red { color: var(--red); }
.finale-close {
  margin-top: 28px;
  min-width: 220px;
}

.finale-line.accent {
  color: #ff4d56;
  text-shadow: 0 0 32px rgba(197, 22, 29, 0.45);
}

@keyframes finaleIn { to { opacity: 1; transform: translateY(0); } }

/* Act intro overlay */
body.act-intro-active {
  background: #000;
}
body.act-intro-active .grain,
body.act-intro-active .vignette {
  opacity: 0.04;
}
.act-intro-portal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 32px;
  background: #000;
  pointer-events: none;
  transition: opacity 900ms ease, visibility 900ms ease;
}
.act-intro-portal[hidden] { display: none !important; }
.act-intro-noise {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}
.act-intro-frame {
  position: relative;
  max-width: 900px;
  text-align: center;
  transform: scale(1.12);
  opacity: 0;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1), opacity 700ms ease;
}
.act-intro--visible .act-intro-frame {
  opacity: 1;
  transform: scale(1.08);
}
.act-intro--tagline .act-intro-frame {
  transform: scale(1);
}
.act-intro--out .act-intro-frame {
  transform: scale(0.82);
  opacity: 0;
}
.act-intro-eyebrow {
  margin: 0 0 12px;
  font: 800 11px var(--mono);
  letter-spacing: 0.28em;
  color: var(--red);
  text-transform: uppercase;
}
.act-intro-heading {
  margin: 0 0 20px;
  font: 900 clamp(36px, 7vw, 72px) / 0.95 var(--sans);
  text-transform: uppercase;
  color: #fff;
}
.act-intro-tagline {
  margin: 0;
  max-width: 640px;
  margin-inline: auto;
  font-size: clamp(15px, 2.2vw, 20px);
  line-height: 1.55;
  color: #d4cfc6;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms ease 0.35s, transform 900ms cubic-bezier(0.22, 1, 0.36, 1) 0.35s;
}
.act-intro--tagline .act-intro-tagline {
  opacity: 1;
  transform: translateY(0);
}

/* Index */
#screen-index .screen-index-inner {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px clamp(16px, 3vw, 40px) 20px;
  height: 100%;
}
.index-panel {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  max-height: calc(100vh - var(--topbar-h) - 32px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.index-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -55%);
  width: min(92%, 520px);
  height: min(42vh, 260px);
  border: 1px solid rgba(197, 22, 29, 0.25);
  border-radius: 50%;
  filter: blur(0.5px);
  pointer-events: none;
  opacity: 0.5;
}
.index-kicker {
  margin: 0 0 8px;
  font: 800 11px var(--mono);
  letter-spacing: 0.2em;
  color: var(--red);
  text-transform: uppercase;
}
.index-title {
  margin: 0 0 8px;
  font-size: clamp(28px, 5vw, 48px);
}
.index-lead {
  margin: 0 0 18px;
  color: #c9c4bc;
  font-size: 15px;
}
.index-acts {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  background: #060606;
}
.index-acts li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: #e8e3da;
}
.index-acts li:last-child { border-bottom: 0; }
.ia-num {
  font: 900 13px var(--mono);
  color: var(--red);
  padding-top: 2px;
}
.ia-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.ia-body strong {
  font: 800 12px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
}
.ia-sub {
  font-size: 12px;
  line-height: 1.45;
  color: #b8b3a9;
}
.index-cta { margin-top: 8px; }

/* Landing motion */
.lede-anim {
  animation: ledeFade 1.1s ease 0.15s both;
}
@keyframes ledeFade {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-w {
  display: inline-block;
  animation: heroWord 1s ease both;
}
.hero-w:nth-child(2) { animation-delay: 0.08s; }
.hero-w:nth-child(3) { animation-delay: 0.16s; }
@keyframes heroWord {
  from { opacity: 0; transform: translateY(20px) skewY(-4deg); }
  to { opacity: 1; transform: translateY(0) skewY(0); }
}
.hero-chaos {
  overflow: hidden;
}
.hero-chaos .hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(244, 241, 235, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(244, 241, 235, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.35;
  pointer-events: none;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  pointer-events: none;
}
.hero-blob-a {
  width: 180px;
  height: 180px;
  background: var(--red);
  top: 10%;
  left: 8%;
  animation: blobDrift 8s ease-in-out infinite;
}
.hero-blob-b {
  width: 220px;
  height: 220px;
  background: #3a2a8a;
  bottom: 5%;
  right: 0;
  animation: blobDrift 11s ease-in-out infinite reverse;
}
.hero-ring {
  position: absolute;
  top: 18%;
  right: 12%;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(197, 22, 29, 0.45);
  border-radius: 50%;
  animation: ringPulse 4s ease-in-out infinite;
}
.hero-datastream {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 32%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(197, 22, 29, 0.8), transparent);
  opacity: 0.5;
  animation: dataSweep 3.2s linear infinite;
}
@keyframes blobDrift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(16px, -12px); }
}
@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.08); opacity: 1; }
}
@keyframes dataSweep {
  from { transform: translateX(-40%); }
  to { transform: translateX(40%); }
}
.hero-glitch {
  position: relative;
  animation: glitchText 4s steps(2, end) infinite;
}
@keyframes glitchText {
  0%, 90%, 100% { text-shadow: none; }
  92% { text-shadow: 2px 0 #c5161d, -2px 0 #fff; }
}

/* Act 4 legibility */
.act4-intro-copy p {
  color: #ece7df;
  max-width: 52ch;
}
.act-live-pulse {
  margin-top: 8px;
  font: 900 15px var(--mono);
  color: #ff5c66;
  text-shadow: 0 0 26px rgba(197, 22, 29, 0.55);
  letter-spacing: 0.04em;
  animation: livePulse 2.2s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

.auction-panel {
  color: #e4dfd6;
}
.auction-panel-title,
.auction-stream-head {
  color: #ff5a63;
  text-shadow: 0 0 18px rgba(197, 22, 29, 0.35);
}
.auction-stat-strong {
  color: #ffb3b8;
  font-weight: 800;
}
.auction-pre--bright {
  color: #f0ebe3 !important;
}
.auction-live-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 800px) {
  .auction-live-grid { grid-template-columns: 1fr; }
}
.auction-live-card {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(197, 22, 29, 0.08), #070707);
  padding: 16px 18px;
  border-radius: 2px;
}
.auction-live-card--geo {
  border-color: rgba(197, 22, 29, 0.35);
}
.auction-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin: 12px 0 0;
  font-size: 12px;
}
.auction-dl dt {
  color: var(--muted);
  font-weight: 700;
}
.auction-dl dd {
  margin: 0;
  color: #fff;
  font-weight: 600;
}
.auction-live-note {
  margin: 14px 0 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
.bid-stack { margin-top: 8px; }
.bid-row-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.bid-pill {
  font: 800 12px var(--mono);
  color: #ffb3b8;
  border: 1px solid rgba(197, 22, 29, 0.45);
  padding: 4px 10px;
}
.bid-row-note {
  margin: 6px 0 0;
  color: #cfc9c0;
}
.auction-winline {
  margin-top: 16px;
  font-size: 13px;
  color: #e8e3da;
}
.auction-stream-shell {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  margin-top: 12px;
}
.auction-stream-viz {
  position: relative;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
}
.pulse-ring {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(197, 22, 29, 0.5);
  border-radius: 50%;
  animation: pulseRing 2s ease-out infinite;
}
.pulse-core {
  width: 14px;
  height: 14px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(197, 22, 29, 0.9);
}
@keyframes pulseRing {
  from { transform: scale(0.7); opacity: 1; }
  to { transform: scale(1.35); opacity: 0; }
}
.auction-stream {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--line);
  background: #040404;
  padding: 10px 12px;
}
.auction-stream-line {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #ddd8cf;
}
.auction-stream-line .winner { color: #fff; font-weight: 700; }
.auction-stream-line .amt { color: #ffb3b8; font-weight: 800; }
.auction-stream-line .share { color: var(--muted); }
.auction-stream-footer {
  margin-top: 12px;
  font-size: 12px;
}
.auction-stream-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.calc-math-page .calc-greeting {
  font-size: 18px;
  color: #fff;
  margin-bottom: 12px;
}
.calc-ip-line {
  font-size: 14px;
  color: #d4d0c9;
  margin-bottom: 16px;
}

.invoice-calc-block .calc-toggle {
  display: block;
  width: 100%;
  margin: 20px 0 0;
  padding: 12px 16px;
  border: 1px solid var(--red-deep);
  background: transparent;
  color: var(--red-deep);
  font: 800 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-align: left;
}
.invoice-calc-block .calc-toggle:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(197, 22, 29, 0.06);
}
.invoice-calc-block .calc-toggle[aria-expanded="true"] {
  border-color: var(--red);
  color: var(--red);
}
#invoiceCalcBody {
  margin-top: 16px;
}
#invoiceCalcBody[hidden] {
  display: none !important;
}
.invoice-calc-block {
  margin-top: 8px;
  padding-top: 0;
}
.calc-subhead {
  margin: 18px 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--red-deep);
}
.invoice-calc-block .calc-greeting,
.invoice-calc-block .calc-ip-line,
.invoice-calc-block p {
  color: var(--ink);
}
.invoice-calc-block .calc-formula-box {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #211b15;
  background: #f5f0e6;
}
.invoice-calc-block .calc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 12px;
}
.invoice-calc-block .calc-table th,
.invoice-calc-block .calc-table td {
  border: 1px solid #ccc4b8;
  padding: 6px 8px;
  text-align: left;
}
.invoice-calc-block .calc-table tfoot td {
  border-top: 2px solid #111;
}
.rule-dash {
  height: 2px;
  background: linear-gradient(90deg, var(--red-deep), var(--red), #fff);
  margin-bottom: 12px;
}
.quiz-layout .screen-inner {
  padding-top: 28px;
  padding-bottom: 32px;
}
.act5-scroll {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 32px;
}
.act5-layout {
  flex: 1 1 auto;
  display: grid;
  gap: 28px;
  width: 100%;
}
.act5-footer {
  flex: 0 0 auto;
  margin-top: auto;
  padding-top: 40px;
  padding-bottom: 8px;
  border-top: 1px solid var(--line);
}
.act5-footer .proceed-btn {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: block;
}
.act5-layout .tool-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(197, 22, 29, 0.06), #070707);
  padding: 24px;
  border-radius: 2px;
}
.act5-layout .tool-tabs {
  margin-bottom: 0;
}

.chill-auction .hl,
.chill-auction strong {
  color: #ffc9cd;
}

[hidden] { display: none !important; }

@media (max-width: 800px) {
  .landing-grid, .act1-grid, .notice { grid-template-columns: 1fr; }
  fieldset { grid-template-columns: 1fr; }
  .nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
