/* src/renderer/styles.css */
/* Hot Ones: The Biometric Gauntlet — Dark-Mode Studio Broadcast UI */

:root {
  --bg-obsidian: #070709;
  --bg-panel: #101116;
  --bg-panel-elevated: #171922;
  --bg-glass: rgba(16, 17, 22, 0.86);
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-hot: rgba(255, 77, 0, 0.45);
  --text-primary: #f5f6fa;
  --text-secondary: #a4a8b8;
  --text-muted: #6c7185;
  --accent-gold: #ffb800;
  --accent-flame: #ff4500;
  --accent-crimson: #ff1744;
  --accent-emerald: #00e676;
  --accent-cyan: #00e5ff;
  --accent-purple: #b388ff;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Code', 'Consolas', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  background: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow: hidden;
  user-select: none;
}

body {
  display: flex;
  flex-direction: column;
}

/* ========================================================================== */
/* HEADER                                                                     */
/* ========================================================================== */
.broadcast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: linear-gradient(180deg, #14151d 0%, #0b0c10 100%);
  border-bottom: 1px solid var(--border-subtle);
  gap: 16px;
  flex-shrink: 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.on-air-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 6px;
  background: rgba(255, 23, 68, 0.14);
  border: 1px solid rgba(255, 23, 68, 0.45);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ff5252;
}

.on-air-badge.live {
  background: rgba(255, 23, 68, 0.25);
  border-color: #ff1744;
  color: #fff;
  box-shadow: 0 0 16px rgba(255, 23, 68, 0.45);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff1744;
  animation: pulseGlow 1.3s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.45; }
}

.brand-titles h1 {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.accent-gold {
  color: var(--accent-gold);
}

.brand-titles .subtitle {
  font-size: 10.5px;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.presage-tag {
  color: var(--accent-cyan);
  font-weight: 700;
}

.gemini-tag {
  color: var(--accent-gold);
  font-weight: 700;
}

/* Mode Switcher */
.mode-switcher {
  display: flex;
  gap: 8px;
  background: #08090c;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

.mode-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
}

.mode-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.mode-btn.active {
  background: linear-gradient(135deg, rgba(255, 69, 0, 0.24) 0%, rgba(255, 184, 0, 0.14) 100%);
  border-color: rgba(255, 110, 0, 0.65);
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 69, 0, 0.2);
}

.mode-icon {
  font-size: 19px;
}

.mode-btn-text {
  display: flex;
  flex-direction: column;
}

.mode-title {
  font-size: 12px;
  font-weight: 800;
}

.mode-sub {
  font-size: 9.5px;
  font-family: var(--font-mono);
  color: var(--accent-gold);
  letter-spacing: 0.03em;
}

/* Header Utility Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.studio-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 7px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel-elevated);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.studio-chip-btn:hover {
  border-color: var(--accent-gold);
  background: rgba(255, 184, 0, 0.12);
}

.yt-director-btn {
  border-color: rgba(255, 23, 68, 0.45);
  background: rgba(255, 23, 68, 0.12);
}

.key-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gold);
  display: inline-block;
}

.key-status-dot.ready {
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

/* ========================================================================== */
/* SCOVILLE LADDER & 4-PHASE STATE BAR                                        */
/* ========================================================================== */
.ladder-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 6px 18px;
  background: #0d0e13;
  border-bottom: 1px solid var(--border-subtle);
  gap: 8px 16px;
  flex-shrink: 0;
}

.phase-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.phase-step {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  opacity: 0.55;
  transition: all 0.2s ease;
}

.phase-step.active {
  opacity: 1;
  background: rgba(255, 69, 0, 0.2);
  border-color: var(--accent-flame);
  box-shadow: 0 0 12px rgba(255, 69, 0, 0.25);
}

.phase-step.completed {
  opacity: 0.85;
  border-color: rgba(0, 230, 118, 0.4);
}

.phase-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(255, 184, 0, 0.2);
  color: var(--accent-gold);
}

.phase-name {
  font-size: 11.5px;
  font-weight: 700;
}

.phase-arrow {
  color: var(--text-muted);
  font-size: 12px;
}

/* Scoville Ladder Strip */
.scoville-ladder-strip {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
}

.ladder-pill {
  padding: 4px 8px;
  border-radius: 5px;
  background: #151720;
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.ladder-pill:hover {
  border-color: var(--accent-gold);
  color: #fff;
}

.ladder-pill.active {
  background: linear-gradient(135deg, #ff3d00 0%, #ff9100 100%);
  border-color: #ffd600;
  color: #09090c;
  font-weight: 900;
  box-shadow: 0 0 10px rgba(255, 61, 0, 0.45);
}

/* ========================================================================== */
/* MAIN 2-COLUMN BROADCAST LAYOUT                                             */
/* ========================================================================== */
.broadcast-main {
  display: grid;
  grid-template-columns: 1fr 385px;
  gap: 12px;
  padding: 12px 18px;
  flex: 1;
  min-height: 0;
}

.center-stage {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

/* Video Viewport */
.video-viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #040406;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#webcamVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

#overlayCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Animated Thermal-Heat Vignette */
.thermal-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 12px;
  transition: box-shadow 0.35s ease, background 0.35s ease;
  box-shadow: inset 0 0 40px rgba(255, 69, 0, 0.08);
}

/* Viewport Top-Left Status Pills */
.viewport-top-left {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  z-index: 5;
}

.validation-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.val-indicator {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-gold);
}

.validation-pill.ok {
  border-color: rgba(0, 230, 118, 0.55);
}

.validation-pill.ok .val-indicator {
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}

.validation-pill.warn {
  border-color: rgba(255, 184, 0, 0.65);
}

.source-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 6px;
  background: rgba(10, 11, 15, 0.8);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-secondary);
  width: fit-content;
}

.source-pill strong {
  color: var(--accent-cyan);
}

/* Viewport Top-Right Panic Index & Sauce Card */
.viewport-top-right {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 280px;
  z-index: 5;
}

.panic-hud-card {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
}

.panic-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 6px;
}

.panic-header strong {
  font-size: 16px;
  color: #fff;
}

.panic-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.panic-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00e676 0%, #ffb800 50%, #ff1744 100%);
  transition: width 0.25s ease;
}

.panic-sub {
  font-size: 10.5px;
  color: var(--text-secondary);
  margin-top: 5px;
}

.current-sauce-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 110, 0, 0.4);
  border-radius: 10px;
  padding: 9px 12px;
}

.sauce-bottle-icon {
  font-size: 26px;
}

.sauce-round-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  color: var(--accent-gold);
}

.sauce-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #fff;
  margin: 1px 0;
}

.sauce-shu {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #ff7043;
}

/* Phase Countdown & Instruction Banner */
.phase-action-overlay {
  position: absolute;
  bottom: 54px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 620px;
  background: rgba(10, 11, 16, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 184, 0, 0.35);
  border-radius: 12px;
  padding: 11px 16px;
  z-index: 5;
}

.phase-timer-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--accent-flame);
  background: rgba(255, 69, 0, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.timer-seconds {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 900;
  color: #fff;
}

.timer-unit {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--accent-gold);
}

.phase-instruction-box h2 {
  font-size: 14px;
  font-weight: 800;
  margin: 2px 0 4px;
}

.phase-instruction-box p {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.35;
}

.phase-badge-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 0.04em;
}

.phase-action-overlay.hidden {
  display: none !important;
}

/* Compact Verdict Ribbon (Below Video Viewport — Never Covers the Face!) */
.bluff-alert-banner {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(165, 0, 32, 0.92) 0%, rgba(35, 5, 14, 0.94) 100%);
  border: 1.5px solid #ff1744;
  border-radius: 10px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(255, 23, 68, 0.35);
  z-index: 5;
}

.bluff-alert-banner.honest-banner {
  background: linear-gradient(135deg, rgba(0, 110, 60, 0.92) 0%, rgba(8, 35, 22, 0.94) 100%);
  border-color: var(--accent-emerald);
  box-shadow: 0 4px 20px rgba(0, 230, 118, 0.3);
}

.bluff-alert-banner.hidden {
  display: none !important;
}

.bluff-siren {
  font-size: 24px;
  flex-shrink: 0;
}

.bluff-alert-content {
  flex: 1;
  min-width: 0;
}

.bluff-alert-kicker {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  color: #ffd600;
  letter-spacing: 0.06em;
}

.bluff-alert-content h3 {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  margin: 1px 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bluff-alert-content p {
  font-size: 11.5px;
  color: #ffe5ec;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bluff-truth-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.truth-label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: #ffd600;
}

.bluff-truth-badge strong {
  font-family: var(--font-mono);
  font-size: 16px;
  color: #fff;
}

/* Bottom Viewport Bar */
.viewport-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 14px;
  background: linear-gradient(0deg, rgba(5, 5, 8, 0.92) 0%, rgba(5, 5, 8, 0) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
}

.viewport-toggles {
  display: flex;
  gap: 8px;
}

.hud-toggle-btn {
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(20, 22, 30, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.hud-toggle-btn.active {
  border-color: var(--accent-cyan);
  color: #fff;
  background: rgba(0, 229, 255, 0.14);
}

.live-face-flags {
  display: flex;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-secondary);
  background: rgba(10, 11, 15, 0.82);
  padding: 5px 11px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

.face-flag strong {
  color: #fff;
}

/* ========================================================================== */
/* 📈 BASELINE → PEAK ESCALATION (+Δ) TELEMETRY STRIP                         */
/* ========================================================================== */
.escalation-strip {
  background: linear-gradient(90deg, rgba(16, 20, 32, 0.96), rgba(28, 14, 18, 0.96));
  border: 1px solid rgba(0, 230, 118, 0.35);
  border-radius: 10px;
  padding: 7px 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

.escalation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.esc-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 900;
  color: #00e676;
  letter-spacing: 0.04em;
}

.esc-stage-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 230, 118, 0.16);
  border: 1px solid rgba(0, 230, 118, 0.45);
  color: #69f0ae;
}

.esc-stage-badge.escalating {
  background: rgba(255, 61, 0, 0.22);
  border-color: #ff5252;
  color: #ff8a80;
}

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

.esc-card {
  background: rgba(8, 10, 16, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 5px 8px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.esc-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.esc-delta {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 900;
  color: #ffd54f;
  margin: 1px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.esc-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: #b0b8cc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========================================================================== */
/* BOTTOM BROADCAST DESK                                                      */
/* ========================================================================== */
.broadcast-desk {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 12px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 14px;
  flex-shrink: 0;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.sean-evans-panel {
  display: flex;
  gap: 12px;
  padding-right: 12px;
  border-right: 1px solid var(--border-subtle);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.sean-avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.sean-avatar-frame {
  width: 66px;
  height: 66px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2b1208 0%, #14161f 100%);
  border: 2px solid var(--accent-gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.sean-avatar-frame.speaking {
  box-shadow: 0 0 18px var(--accent-gold);
}

.sean-avatar-inner {
  font-size: 26px;
}

.sean-live-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 900;
  background: var(--accent-gold);
  color: #000;
  padding: 1px 4px;
  border-radius: 3px;
  margin-top: 2px;
}

.voice-toggle-btn {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 5px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel-elevated);
  color: var(--text-secondary);
  cursor: pointer;
}

.voice-toggle-btn.active {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.sean-dialogue-col {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.sean-dialogue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.desk-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 0.05em;
}

.sean-model-pill {
  font-family: var(--font-mono);
  font-size: 9.5px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(0, 229, 255, 0.12);
  color: var(--accent-cyan);
}

.sean-intro-reaction {
  font-size: 11.5px;
  color: var(--text-secondary);
  font-style: italic;
}

.sean-question-box {
  font-size: 12.5px;
  line-height: 1.42;
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--accent-flame);
  padding: 7px 10px;
  border-radius: 0 6px 6px 0;
}

/* Challenger Response & Controls */
.challenger-response-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.response-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-bluff-presets {
  display: flex;
  gap: 6px;
}

.preset-chip {
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 5px;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel-elevated);
  color: var(--text-primary);
}

.preset-chip.bluff-chip {
  border-color: rgba(255, 23, 68, 0.5);
  background: rgba(255, 23, 68, 0.14);
}

.preset-chip.honest-chip {
  border-color: rgba(0, 230, 118, 0.45);
  background: rgba(0, 230, 118, 0.12);
}

.transcript-input-row {
  display: flex;
  gap: 6px;
}

.mic-record-btn {
  padding: 7px 11px;
  border-radius: 7px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel-elevated);
  color: var(--text-primary);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.mic-record-btn.recording {
  background: rgba(255, 23, 68, 0.25);
  border-color: #ff1744;
  color: #fff;
}

.transcript-text-input {
  flex: 1;
  background: #08090d;
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  padding: 7px 11px;
  color: #fff;
  font-size: 12px;
}

.transcript-text-input:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.verdict-submit-btn {
  padding: 7px 13px;
  border-radius: 7px;
  border: 1px solid var(--accent-gold);
  background: rgba(255, 184, 0, 0.18);
  color: var(--accent-gold);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.verdict-submit-btn:hover {
  background: var(--accent-gold);
  color: #000;
}

.state-machine-controls {
  display: flex;
  gap: 6px;
}

.primary-action-btn {
  flex: 1.4;
  padding: 8px 12px;
  border-radius: 7px;
  border: none;
  background: linear-gradient(135deg, #ff3d00 0%, #ff9100 100%);
  color: #09090c;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.primary-action-btn:hover {
  transform: translateY(-1px);
}

.secondary-action-btn {
  padding: 8px 10px;
  border-radius: 7px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel-elevated);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.secondary-action-btn:hover {
  border-color: var(--accent-gold);
}

.secondary-action-btn.danger-outline {
  border-color: rgba(255, 69, 0, 0.55);
  color: #ff8a65;
}

/* ========================================================================== */
/* RIGHT TELEMETRY PANEL ("SCOVILLE STRESS HUD")                              */
/* ========================================================================== */
.telemetry-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
  overflow-y: auto;
}

.telemetry-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
}

.telemetry-panel-header h2 {
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.window-physics-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--accent-cyan);
}

.metric-card {
  background: var(--bg-panel-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.metric-card.spiking {
  border-color: rgba(255, 23, 68, 0.7);
  box-shadow: 0 0 16px rgba(255, 23, 68, 0.2);
}

.metric-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.metric-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  color: var(--text-secondary);
}

.confidence-pill {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--accent-emerald);
}

.metric-delta-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.metric-delta-badge.hot {
  background: rgba(255, 23, 68, 0.22);
  border: 1px solid rgba(255, 23, 68, 0.6);
  color: #ff5252;
}

.metric-big-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.big-number-wrap {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.big-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 900;
  color: #fff;
}

.big-unit {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
}

.baseline-compare {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.baseline-compare strong {
  color: #fff;
}

.waveform-box {
  background: #090a0e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 7px;
  padding: 5px 8px;
}

.waveform-box canvas {
  width: 100%;
  height: 58px;
  display: block;
}

.sub-telemetry-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-secondary);
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sub-telemetry-row strong {
  color: var(--accent-cyan);
}

.waveform-caption {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.lock-tag {
  color: var(--accent-gold);
}

.legend-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 4px;
}

.chest-dot { background: #00e5ff; }
.abdomen-dot { background: #00e676; }

/* HRV Grid */
.hrv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.hrv-grid.hrv-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.hrv-stat {
  background: #0a0b10;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
}

.hrv-stat-label {
  font-size: 9.5px;
  color: var(--text-muted);
}

.hrv-stat-val {
  font-family: var(--font-mono);
  font-size: 14px;
  color: #fff;
  margin: 2px 0;
}

.hrv-stat-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-secondary);
}

.vagal-bar-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vagal-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  color: var(--text-secondary);
}

.vagal-bar-track {
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.vagal-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff1744 0%, #ffb800 50%, #00e5ff 100%);
  transition: width 0.3s ease;
}

/* Micro-Expression Bars */
.peak-expr-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--accent-gold);
}

.expression-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.expr-row {
  display: grid;
  grid-template-columns: 142px 1fr 34px;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
}

.expr-name {
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.expr-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 99px;
  overflow: hidden;
}

.expr-fill {
  height: 100%;
  transition: width 0.2s ease;
}

.disgust-fill { background: #00e676; }
.surprise-fill { background: #ffb800; }
.fear-fill { background: #b388ff; }
.angry-fill { background: #ff1744; }
.happy-fill { background: #00e5ff; }
.neutral-fill { background: #78909c; }

.expr-pct {
  font-family: var(--font-mono);
  font-size: 10px;
  text-align: right;
  color: #fff;
}

.eda-footer-row {
  display: flex;
  justify-content: space-between;
  padding-top: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
}

.eda-footer-row strong {
  color: var(--accent-cyan);
}

/* Studio Makeup & Optical rPPG Limitations Monitor */
.makeup-pill {
  border-color: rgba(179, 136, 255, 0.45);
}

.makeup-pill strong {
  color: #e040fb;
}

.makeup-sep {
  color: var(--text-muted);
  margin: 0 2px;
}

.makeup-limitations-box {
  background: rgba(179, 136, 255, 0.06);
  border: 1px dashed rgba(179, 136, 255, 0.38);
  border-radius: 8px;
  padding: 7px 9px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 2px;
}

.makeup-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 9.5px;
}

.makeup-title {
  color: var(--accent-purple);
  font-weight: 800;
}

.makeup-pct-badge {
  color: #ffb800;
  font-size: 9.5px;
}

.makeup-bar-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.makeup-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00e676 0%, #ffb800 50%, #e040fb 100%);
  transition: width 0.3s ease;
}

.makeup-note-text {
  font-size: 9.5px;
  color: var(--text-secondary);
  line-height: 1.35;
}

.makeup-note-text strong {
  color: #fff;
}

.makeup-limitations-modal-box {
  border-color: rgba(179, 136, 255, 0.5);
  background: rgba(179, 136, 255, 0.07);
}

/* ========================================================================== */
/* MODALS                                                                     */
/* ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 7, 0.84);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-card {
  background: #12141c;
  border: 1px solid rgba(255, 184, 0, 0.35);
  border-radius: 16px;
  padding: 24px 28px;
  max-width: 680px;
  width: 100%;
  max-height: min(90dvh, 880px);
  overflow-y: auto;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wide-modal-card {
  max-width: 880px;
}

.modal-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-close-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
}

.modal-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.modal-card h2 {
  font-size: 21px;
  font-weight: 900;
}

.modal-lead {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.consent-pillars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.consent-pillar {
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 11px 14px;
}

.pillar-icon {
  font-size: 22px;
}

.consent-pillar strong {
  font-size: 13px;
  color: #fff;
  display: block;
  margin-bottom: 3px;
}

.consent-pillar p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.42;
}

.challenger-profile-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.input-group label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-secondary);
}

.input-group input {
  background: #08090d;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 9px 12px;
  color: #fff;
  font-size: 12.5px;
}

.consent-actions {
  display: flex;
  gap: 10px;
}

.consent-accept-btn {
  flex: 1.3;
  padding: 12px 16px;
  border-radius: 9px;
  border: none;
  background: linear-gradient(135deg, #ff3d00 0%, #ff9100 100%);
  color: #09090c;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.consent-sim-btn {
  flex: 1;
  padding: 12px 16px;
  border-radius: 9px;
  border: 1px solid var(--accent-cyan);
  background: rgba(0, 229, 255, 0.12);
  color: var(--accent-cyan);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}

.consent-footnote {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

/* Origin Story Comparison Grid */
.origin-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.origin-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
}

.soup-breakthrough-box {
  border-color: rgba(255, 110, 0, 0.55);
  background: rgba(255, 69, 0, 0.07);
}

.origin-box h3 {
  font-size: 15px;
  margin-bottom: 10px;
}

.origin-box ul {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.origin-box li strong {
  color: #fff;
}

/* YouTube Beats Grid */
.yt-beats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.yt-beat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.beat-step {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--accent-gold);
}

.yt-beat-card h4 {
  font-size: 14px;
}

.yt-beat-card p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  flex: 1;
}

.yt-highlight-btn {
  border-color: #ff1744;
  background: rgba(255, 23, 68, 0.2);
}

.yt-teleprompter-box {
  background: #08090d;
  border: 1px solid rgba(255, 184, 0, 0.35);
  border-radius: 10px;
  padding: 12px 14px;
}

.yt-teleprompter-box p {
  font-size: 12.5px;
  line-height: 1.5;
  color: #fff;
  margin-top: 6px;
}

.sdk-runtime-diagnostics {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-cyan);
  background: #08090d;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

/* ========================================================================== */
/* BYO SPICY FOOD / SAUCE CUSTOMIZER BAR                                      */
/* ========================================================================== */
.byo-spicy-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.byo-presets-row {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  flex-wrap: nowrap;
}

.byo-bar-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--accent-gold);
  white-space: nowrap;
  margin-right: 2px;
}

.byo-chip {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.byo-chip:hover {
  border-color: var(--accent-gold);
  color: #fff;
}

.byo-chip.active {
  background: rgba(255, 69, 0, 0.22);
  border-color: var(--accent-flame);
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 69, 0, 0.25);
}

.byo-custom-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: flex-end;
  min-width: 320px;
}

.byo-input {
  background: #08090d;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 4px 8px;
  color: #fff;
  font-size: 11px;
}

.byo-name-input {
  flex: 1;
  min-width: 150px;
  max-width: 240px;
}

.byo-shu-input {
  width: 110px;
  font-family: var(--font-mono);
}

.byo-select {
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.byo-apply-btn {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--accent-gold);
  background: rgba(255, 184, 0, 0.16);
  color: var(--accent-gold);
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.byo-apply-btn:hover {
  background: var(--accent-gold);
  color: #09090c;
}

/* ========================================================================== */
/* DR. ARROYO BADGE, CONAN CHIP & BLUFF BANNER UPGRADES                       */
/* ========================================================================== */
.dr-arroyo-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px dashed rgba(0, 229, 255, 0.35);
  font-size: 11px;
  color: #d0f8ff;
  line-height: 1.35;
}

.arroyo-icon {
  font-size: 15px;
  flex-shrink: 0;
}

.preset-chip.conan-chip {
  border-color: rgba(255, 184, 0, 0.55);
  background: rgba(255, 184, 0, 0.14);
  color: #ffe082;
}

.bluff-arroyo-line {
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px dashed rgba(255, 255, 255, 0.25);
  font-size: 11.5px !important;
  color: #b2ebf2 !important;
  font-style: italic;
}

.bluff-right-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.bluff-receipt-btn {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #ffd600;
  background: rgba(255, 214, 0, 0.2);
  color: #ffd600;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.bluff-close-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.receipt-chip-btn {
  border-color: rgba(0, 229, 255, 0.45);
  background: rgba(0, 229, 255, 0.12);
}

/* ========================================================================== */
/* SIGNAL WINDOW ACCUMULATION & PACKET INSPECTOR STRIP                        */
/* ========================================================================== */
.hud-proof-btn {
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid var(--accent-cyan);
  background: rgba(0, 229, 255, 0.12);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.hud-proof-btn:hover {
  background: var(--accent-cyan);
  color: #000;
}

.signal-window-strip {
  background: #0a0b10;
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 8px;
  padding: 7px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sw-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 9.5px;
}

.sw-title {
  color: var(--accent-cyan);
  font-weight: 800;
}

.sw-packets {
  color: var(--text-secondary);
}

.sw-packets strong {
  color: var(--accent-gold);
}

.window-progress-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.win-prog-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.win-prog-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--text-secondary);
}

.win-prog-label strong {
  color: #fff;
}

.win-prog-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.win-prog-fill {
  height: 100%;
  background: linear-gradient(90deg, #00e5ff 0%, #00e676 100%);
  transition: width 0.25s ease;
}

/* ========================================================================== */
/* MODAL 5: BIOMETRIC TELEMETRY RECEIPT & PROOF CARD                          */
/* ========================================================================== */
.receipt-summary-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 23, 68, 0.18) 0%, rgba(255, 184, 0, 0.1) 100%);
  border: 1px solid rgba(255, 23, 68, 0.5);
}

.receipt-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--accent-gold);
}

.receipt-summary-left h3 {
  font-size: 17px;
  font-weight: 900;
  color: #fff;
  margin: 3px 0 6px;
}

.receipt-summary-left p {
  font-size: 12.5px;
  color: var(--text-primary);
  line-height: 1.42;
}

.receipt-arroyo-stamp {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--accent-cyan);
  font-style: italic;
}

.receipt-truth-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid var(--accent-gold);
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-mono);
}

.receipt-truth-circle span {
  font-size: 9px;
  color: var(--accent-gold);
}

.receipt-truth-circle strong {
  font-size: 26px;
  color: #fff;
}

.receipt-truth-circle small {
  font-size: 9.5px;
  color: #ff8a65;
}

.receipt-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
}

.receipt-telemetry-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.receipt-telemetry-table th,
.receipt-telemetry-table td {
  padding: 8px 11px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.receipt-telemetry-table th {
  background: #090a0f;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-gold);
  text-transform: uppercase;
}

.receipt-telemetry-table td {
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.receipt-ledger-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.receipt-ledger-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 140px;
  overflow-y: auto;
}

.ledger-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 7px 11px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 11px;
}

.ledger-empty {
  font-size: 11.5px;
  color: var(--text-muted);
  font-style: italic;
  padding: 6px 0;
}

/* ========================================================================== */
/* MOBILE TOP STRIP & STICKY BOTTOM TAB BAR (Hidden on Desktop)               */
/* ========================================================================== */
.mobile-video-strip {
  display: none;
}

.mobile-tab-bar {
  display: none;
}

/* ========================================================================== */
/* RESPONSIVE BREAKPOINTS (UNCROWDED TABLET & MOBILE VIEWPORTS)               */
/* ========================================================================== */
@media (max-width: 1280px) {
  .broadcast-main {
    grid-template-columns: 1fr 340px;
  }
  .mode-sub {
    display: none;
  }
}

@media (max-width: 1024px) {
  html, body {
    height: auto;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    user-select: auto;
  }

  .broadcast-header {
    flex-wrap: wrap;
    padding: 10px 12px;
    gap: 8px;
  }

  .brand-titles h1 {
    font-size: 15px;
  }

  .brand-titles .subtitle {
    display: none;
  }

  .mode-switcher {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .mode-btn {
    flex: 1;
    justify-content: center;
    padding: 7px 10px;
    min-height: 42px;
  }

  .header-actions {
    margin-left: auto;
    overflow-x: auto;
  }

  .studio-chip-btn {
    padding: 6px 9px;
    font-size: 11px;
    white-space: nowrap;
  }

  .broadcast-main {
    display: flex;
    flex-direction: column;
    padding: 10px 12px 84px;
    gap: 12px;
  }

  .video-viewport {
    aspect-ratio: 16 / 9;
    min-height: 210px;
    max-height: 54dvh;
    flex: none;
  }

  .broadcast-desk {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .sean-evans-panel {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding-right: 0;
    padding-bottom: 10px;
  }

  /* Mobile Tab Bar Navigation */
  .mobile-tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(11, 12, 17, 0.96);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 184, 0, 0.3);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    z-index: 90;
    padding: 4px 8px env(safe-area-inset-bottom, 4px);
  }

  .mobile-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-sans);
  }

  .mobile-tab-btn.active {
    color: var(--accent-gold);
    background: rgba(255, 69, 0, 0.16);
  }

  .mtab-icon {
    font-size: 17px;
  }

  .mtab-label {
    font-size: 10.5px;
    font-weight: 800;
  }

  /* Clean Tab-Based Panel Visibility on Mobile/Tablet (Zero Crowding!) */
  body[data-mobile-tab="stage"] #ladderBarSection {
    display: none;
  }
  body[data-mobile-tab="stage"] #telemetryPanelAside {
    display: none;
  }

  body[data-mobile-tab="hud"] .center-stage {
    display: none;
  }
  body[data-mobile-tab="hud"] #ladderBarSection {
    display: none;
  }
  body[data-mobile-tab="hud"] #telemetryPanelAside {
    display: flex;
    overflow: visible;
  }

  body[data-mobile-tab="ladder"] .center-stage {
    display: none;
  }
  body[data-mobile-tab="ladder"] #telemetryPanelAside {
    display: none;
  }
  body[data-mobile-tab="ladder"] #ladderBarSection {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    gap: 14px;
  }
  body[data-mobile-tab="ladder"] .phase-stepper {
    flex-wrap: wrap;
  }
  body[data-mobile-tab="ladder"] .scoville-ladder-strip {
    flex-wrap: wrap;
  }
  body[data-mobile-tab="ladder"] .byo-presets-row {
    flex-wrap: wrap;
  }
  body[data-mobile-tab="ladder"] .byo-custom-inputs {
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
  }
  body[data-mobile-tab="ladder"] .byo-name-input,
  body[data-mobile-tab="ladder"] .byo-shu-input {
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 640px) {
  /* Unobstructed Phone Video Viewport: Replace bulky corner cards with 1-line top strip */
  .viewport-top-left,
  .viewport-top-right,
  .live-face-flags {
    display: none !important;
  }

  .mobile-video-strip {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding: 5px 8px;
    border-radius: 8px;
    background: rgba(8, 9, 13, 0.84);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    z-index: 6;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 800;
  }

  .mvs-pill {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mvs-lock { color: var(--accent-emerald); }
  .mvs-vitals { color: #fff; }
  .mvs-panic { color: var(--accent-gold); }
  .mvs-sauce { color: #ff8a65; }

  .video-viewport {
    aspect-ratio: 16 / 9;
    min-height: 205px;
  }

  .phase-action-overlay {
    left: 8px;
    right: 8px;
    bottom: 42px;
    padding: 7px 10px;
    gap: 10px;
    max-width: none;
  }

  .phase-timer-ring {
    width: 44px;
    height: 44px;
    border-width: 2px;
  }

  .timer-seconds {
    font-size: 13px;
  }

  .phase-instruction-box h2 {
    font-size: 12px;
    margin: 1px 0;
  }

  .phase-instruction-box p {
    display: none;
  }

  .viewport-bottom-bar {
    padding: 6px 8px;
  }

  .viewport-toggles {
    width: 100%;
    overflow-x: auto;
    gap: 5px;
  }

  .hud-toggle-btn {
    font-size: 10px;
    padding: 4px 8px;
    white-space: nowrap;
  }

  .bluff-alert-banner {
    width: 95%;
    padding: 12px;
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .bluff-siren {
    font-size: 24px;
  }

  .bluff-alert-content h3 {
    font-size: 15px;
  }

  /* Prevent iOS Safari zoom on input focus (>= 16px) & comfortable tap targets */
  .transcript-text-input,
  .input-group input,
  .byo-input {
    font-size: 16px !important;
  }

  .transcript-input-row {
    flex-wrap: wrap;
  }

  .transcript-text-input {
    min-width: 100%;
    order: -1;
  }

  .mic-record-btn,
  .verdict-submit-btn {
    flex: 1;
    min-height: 42px;
  }

  .state-machine-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .primary-action-btn {
    grid-column: 1 / -1;
    min-height: 44px;
  }

  .secondary-action-btn {
    min-height: 40px;
    font-size: 10.5px;
    white-space: normal;
    text-align: center;
  }

  .quick-bluff-presets {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .preset-chip {
    white-space: nowrap;
  }

  .hrv-grid.hrv-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Modals on Mobile */
  .modal-backdrop {
    padding: 10px;
  }

  .modal-card {
    padding: 16px;
    max-height: 92dvh;
  }

  .challenger-profile-inputs,
  .origin-comparison-grid,
  .yt-beats-grid,
  .consent-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .receipt-summary-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* ========================================================================== */
/* ⚡ 12–15s MAX EXERTION BIOMETRIC HIGHLIGHT BAR (Shaq vs. Engineer)          */
/* ========================================================================== */
.max-exertion-bar {
  background: linear-gradient(90deg, rgba(255, 184, 0, 0.14), rgba(0, 229, 255, 0.10), rgba(255, 64, 129, 0.12));
  border: 1px solid rgba(255, 184, 0, 0.42);
  border-radius: 10px;
  padding: 7px 11px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.max-exertion-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.max-exertion-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  color: var(--accent-gold);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.max-exertion-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}

.exertion-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(12, 14, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e2e6f3;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.exertion-chip:hover {
  border-color: var(--accent-gold);
  color: #fff;
}

.exertion-chip.active {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.28), rgba(255, 69, 0, 0.28));
  border-color: var(--accent-gold);
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 184, 0, 0.35);
}

.exertion-chip.engineer-chip.active {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.26), rgba(0, 229, 255, 0.24));
  border-color: #00e676;
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.35);
}

.exertion-loop-btn {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.14);
  border: 1px solid rgba(0, 229, 255, 0.45);
  color: #80d8ff;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.exertion-loop-btn.active {
  background: rgba(0, 230, 118, 0.2);
  border-color: #00e676;
  color: #69f0ae;
}

.max-exertion-explain {
  font-size: 11px;
  line-height: 1.35;
  color: #d0d5e6;
}

.max-exertion-explain strong {
  color: #ffd54f;
}

.engineer-consent-btn {
  border-color: rgba(0, 230, 118, 0.55) !important;
  background: rgba(0, 230, 118, 0.14) !important;
  color: #69f0ae !important;
}

@media (max-width: 900px) {
  .max-exertion-explain {
    display: none !important;
  }
  .phase-action-overlay,
  .viewport-bottom-bar {
    display: none !important;
  }
  .escalation-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sean-evans-panel {
    border-right: none !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .sean-dialogue-col,
  .challenger-response-panel,
  .broadcast-desk,
  .center-stage,
  .broadcast-main {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 640px) {
  .max-exertion-bar {
    padding: 5px 8px;
  }
  .max-exertion-chips {
    overflow-x: auto;
    flex-wrap: nowrap;
    width: 100%;
    padding-bottom: 2px;
  }
  .sean-avatar-col {
    display: none !important;
  }
  .sean-question-box {
    font-size: 12px !important;
    line-height: 1.4 !important;
    padding: 8px 10px !important;
  }
  .dr-arroyo-badge {
    font-size: 11px !important;
    padding: 6px 8px !important;
  }
  .bluff-alert-banner {
    padding: 7px 10px !important;
    flex-direction: row !important;
    text-align: left !important;
  }
}

/* ========================================================================== */
/*  PASS 2: APPLE HEALTH / NOTION MINIMALIST DESIGN SYSTEM (minimal-zen-mode)*/
/* ========================================================================== */

body.minimal-zen-mode {
  --bg-obsidian: #09090b;
  --bg-panel: #121215;
  --bg-panel-elevated: #18181c;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --text-primary: #f4f4f6;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  background: #09090b;
  color: #f4f4f6;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.011em;
}

/* 1. Calm Apple / Notion Top Header */
body.minimal-zen-mode .broadcast-header {
  background: rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 24px;
}

body.minimal-zen-mode .brand-titles h1 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
  color: #f4f4f6;
}

body.minimal-zen-mode .brand-titles .accent-gold {
  color: #a1a1aa;
  font-weight: 400;
}

body.minimal-zen-mode .on-air-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 4px 10px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  color: #d4d4d8;
  box-shadow: none !important;
}

body.minimal-zen-mode .pulse-dot {
  width: 6px;
  height: 6px;
  background: #30d158;
  animation: none;
}

body.minimal-zen-mode .brand-titles .subtitle,
body.minimal-zen-mode .mode-switcher,
body.minimal-zen-mode #originStoryBtn,
body.minimal-zen-mode #ytDirectorBtn {
  display: none !important;
}

body.minimal-zen-mode .studio-chip-btn {
  background: #18181c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #d4d4d8;
  box-shadow: none !important;
}

body.minimal-zen-mode .studio-chip-btn:hover {
  background: #222227;
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.zen-mode-toggle-btn {
  background: #18181c !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #f4f4f6 !important;
  font-weight: 500 !important;
}

/* 2. Centered Apple Segmented Control Bar (#zenStageBar) */
.zen-stage-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 24px;
  background: #09090b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

body:not(.minimal-zen-mode) .zen-stage-bar {
  display: none !important;
}

.zen-stage-steps {
  display: inline-flex;
  align-items: center;
  background: #141418;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  gap: 2px;
}

.zen-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 7px;
  background: transparent;
  border: none;
  color: #a1a1aa;
  cursor: pointer;
  transition: all 0.16s ease;
  font-family: inherit;
}

.zen-step-pill:hover {
  color: #f4f4f6;
}

.zen-step-pill.active {
  background: #26262c;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.zen-step-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: #a1a1aa;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.zen-step-pill.active .zen-step-num {
  background: #f4f4f6;
  color: #09090b;
}

.zen-step-meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.zen-step-title {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Hide noisy sub-captions inside segmented control */
.zen-step-sub,
.zen-stage-hint {
  display: none !important;
}

.zen-stage-nav-actions {
  display: flex;
  align-items: center;
}

.zen-next-stage-btn {
  padding: 6px 13px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #f4f4f6;
  color: #09090b;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.zen-next-stage-btn:hover {
  opacity: 0.9;
}

/* 3. Subject Pill Selector (#maxExertionBar) — Clean Notion Filter Pills */
body.minimal-zen-mode .max-exertion-bar {
  background: transparent;
  border: none;
  padding: 0;
  gap: 0;
}

body.minimal-zen-mode .max-exertion-label,
body.minimal-zen-mode .max-exertion-explain {
  display: none !important;
}

body.minimal-zen-mode .max-exertion-top {
  justify-content: space-between;
  gap: 8px;
}

body.minimal-zen-mode .max-exertion-chips {
  gap: 6px;
}

body.minimal-zen-mode .exertion-chip {
  padding: 6px 13px;
  border-radius: 999px;
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #a1a1aa;
  font-size: 12px;
  font-weight: 500;
  box-shadow: none !important;
}

body.minimal-zen-mode .exertion-chip:hover {
  background: #1c1c22;
  color: #f4f4f6;
  border-color: rgba(255, 255, 255, 0.14);
}

body.minimal-zen-mode .exertion-chip.active,
body.minimal-zen-mode .exertion-chip.engineer-chip.active {
  background: #f4f4f6;
  border-color: #f4f4f6;
  color: #09090b;
  font-weight: 600;
  box-shadow: none !important;
}

body.minimal-zen-mode .exertion-loop-btn {
  padding: 6px 12px;
  border-radius: 999px;
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #a1a1aa;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
}

body.minimal-zen-mode .exertion-loop-btn.active {
  background: rgba(48, 209, 88, 0.14);
  border-color: rgba(48, 209, 88, 0.35);
  color: #30d158;
}

/* 4. Unobstructed Apple TV+ Style Video Viewport */
body.minimal-zen-mode .video-viewport {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #050507;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

/* Hide all floating corner cards & bottom bars over the video in Zen Mode! */
body.minimal-zen-mode .source-pill,
body.minimal-zen-mode .makeup-pill,
body.minimal-zen-mode .viewport-top-right,
body.minimal-zen-mode .phase-action-overlay,
body.minimal-zen-mode .viewport-bottom-bar,
body.minimal-zen-mode .mobile-video-strip {
  display: none !important;
}

/* Keep only a single subtle translucent pill in top-left of video */
body.minimal-zen-mode .validation-pill {
  background: rgba(15, 15, 18, 0.72);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 5px 12px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: #e4e4e7;
}

/* Minimal Translucent Video Playback & Volume Pill Bar */
.video-playback-controls {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 14;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(12, 12, 16, 0.76);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.video-playback-controls.hidden {
  display: none !important;
}

.vpc-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f4f4f6;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

.vpc-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.vpc-btn:active {
  transform: scale(0.96);
}

.vpc-time {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: #d4d4d8;
  padding: 0 3px;
  white-space: nowrap;
}

.vpc-volume-slider {
  width: 64px;
  height: 4px;
  accent-color: #f4f4f6;
  cursor: pointer;
}

@media (max-width: 640px) {
  .video-playback-controls {
    bottom: 8px;
    right: 8px;
    left: 8px;
    justify-content: space-between;
    padding: 5px 9px;
  }
  .vpc-volume-slider {
    width: 56px;
  }
}

/* 5. Apple Health Metric Cards (#escalationStrip) */
body.minimal-zen-mode .escalation-strip {
  background: transparent;
  border: none;
  padding: 0;
  gap: 8px;
}

body.minimal-zen-mode .escalation-header {
  display: none !important;
}

body.minimal-zen-mode .escalation-grid {
  gap: 10px;
}

body.minimal-zen-mode .esc-card {
  background: #121215;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 12px 16px;
  gap: 2px;
}

body.minimal-zen-mode .esc-label {
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  color: #a1a1aa;
  letter-spacing: 0;
}

body.minimal-zen-mode .esc-delta {
  font-family: inherit;
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
  color: #f4f4f6;
  margin: 2px 0;
}

body.minimal-zen-mode .esc-sub {
  font-family: inherit;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: #71717a;
}

/* 6. Notion Editorial Callout Card (.broadcast-desk) */
body.minimal-zen-mode .broadcast-desk {
  background: #121215;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 16px 20px;
  gap: 20px;
}

body.minimal-zen-mode .sean-avatar-col {
  display: none !important;
}

body.minimal-zen-mode .desk-label {
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: #a1a1aa;
  letter-spacing: 0;
  text-transform: none;
}

body.minimal-zen-mode .sean-model-pill {
  background: rgba(255, 255, 255, 0.05);
  color: #a1a1aa;
  font-family: inherit;
  font-size: 11px;
  border-radius: 6px;
}

body.minimal-zen-mode .sean-question-box {
  background: transparent;
  border-left: 2px solid rgba(255, 255, 255, 0.2);
  padding: 2px 0 2px 12px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #f4f4f6;
  font-weight: 400;
}

body.minimal-zen-mode .dr-arroyo-badge {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-style: solid !important;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  color: #a1a1aa;
}

body.minimal-zen-mode .dr-arroyo-badge strong {
  color: #e4e4e7;
}

/* Clean Verdict Banner in Stage 2 */
body.minimal-zen-mode .bluff-alert-banner {
  background: #161215;
  border: 1px solid rgba(255, 69, 58, 0.35);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: none;
}

body.minimal-zen-mode .bluff-alert-banner.honest-banner {
  background: #111715;
  border-color: rgba(48, 209, 88, 0.35);
}

body.minimal-zen-mode .bluff-alert-kicker {
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  color: #ff453a;
  letter-spacing: 0;
}

body.minimal-zen-mode .bluff-alert-content h3 {
  font-size: 14px;
  font-weight: 600;
  color: #f4f4f6;
}

body.minimal-zen-mode .bluff-alert-content p {
  font-size: 12px;
  color: #a1a1aa;
}

/* Clean Preset Pills & Inputs in Stage 2 & 3 */
body.minimal-zen-mode .preset-chip,
body.minimal-zen-mode .byo-chip {
  background: #18181c !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px;
  padding: 6px 11px;
  font-size: 11.5px;
  font-weight: 500;
  color: #d4d4d8 !important;
  box-shadow: none !important;
}

body.minimal-zen-mode .preset-chip:hover,
body.minimal-zen-mode .byo-chip:hover,
body.minimal-zen-mode .byo-chip.active {
  background: #27272d !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

body.minimal-zen-mode .ladder-bar {
  background: #09090b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 24px;
}

body.minimal-zen-mode .byo-spicy-bar {
  background: #121215;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 10px 14px;
}

/* 7. Stage-Specific Progressive Disclosure */
body.minimal-zen-mode .consent-pillars,
body.minimal-zen-mode .challenger-profile-inputs {
  display: none !important;
}

body.minimal-zen-mode[data-zen-stage="1"] #ladderBarSection,
body.minimal-zen-mode[data-zen-stage="2"] #ladderBarSection,
body.minimal-zen-mode[data-zen-stage="4"] #ladderBarSection {
  display: none !important;
}

body.minimal-zen-mode[data-zen-stage="1"] #telemetryPanelAside,
body.minimal-zen-mode[data-zen-stage="2"] #telemetryPanelAside,
body.minimal-zen-mode[data-zen-stage="3"] #telemetryPanelAside {
  display: none !important;
}

body.minimal-zen-mode[data-zen-stage="1"] .broadcast-main,
body.minimal-zen-mode[data-zen-stage="2"] .broadcast-main,
body.minimal-zen-mode[data-zen-stage="3"] .broadcast-main {
  grid-template-columns: 1fr !important;
  max-width: 1260px;
  width: 100%;
  margin: 0 auto;
  padding: 12px 22px;
  gap: 12px;
}

/* Stage 1: Pure Video + Subject Pills + 4 Apple Health Cards + Editorial Verdict */
body.minimal-zen-mode[data-zen-stage="1"] .challenger-response-panel,
body.minimal-zen-mode[data-zen-stage="1"] .bluff-alert-banner,
body.minimal-zen-mode[data-zen-stage="1"] .sean-intro-reaction {
  display: none !important;
}

body.minimal-zen-mode[data-zen-stage="1"] .broadcast-desk {
  grid-template-columns: 1fr !important;
}

body.minimal-zen-mode[data-zen-stage="1"] .sean-evans-panel {
  border-right: none !important;
  padding-right: 0 !important;
}

/* Stage 2: Bluff Detector + Mic Input */
body.minimal-zen-mode[data-zen-stage="2"] .state-machine-controls,
body.minimal-zen-mode[data-zen-stage="2"] .sean-intro-reaction {
  display: none !important;
}

/* Stage 3: Live Camera & Any Spicy Food Picker */
body.minimal-zen-mode[data-zen-stage="3"] #ladderBarSection {
  display: flex !important;
}
body.minimal-zen-mode[data-zen-stage="3"] .phase-stepper,
body.minimal-zen-mode[data-zen-stage="3"] .scoville-ladder-strip {
  display: none !important;
}

/* Stage 4: Deep Telemetry & Proof Card */
body.minimal-zen-mode[data-zen-stage="4"] #telemetryPanelAside {
  display: flex !important;
  background: #121215;
  border-color: rgba(255, 255, 255, 0.07);
  border-radius: 16px;
}

@media (max-width: 1024px) {
  .zen-stage-bar {
    padding: 8px 12px;
  }
  .zen-stage-steps {
    overflow-x: auto;
    max-width: 100%;
  }
  .zen-stage-nav-actions {
    display: none !important;
  }
  body.minimal-zen-mode[data-zen-stage="4"] #telemetryPanelAside {
    display: flex !important;
  }
}

/* ========================================================================== */
/* 🎯 LIVE CAMERA FOCUS BAR + VERTICAL 15-CELEBRITY DISRUPTION LEADERBOARD    */
/* ========================================================================== */
.subject-focus-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 12px;
  background: #121215;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.sfb-left {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  min-width: 0;
}

.sfb-kicker {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #a1a1aa;
  text-transform: uppercase;
  white-space: nowrap;
}

.sfb-active-name {
  font-size: 13px;
  font-weight: 700;
  color: #30d158;
  white-space: nowrap;
}

.sfb-active-name.host-focus {
  color: #38bdf8;
}

.sfb-active-name.multi-focus {
  color: #facc15;
}

.sfb-scene-pill {
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 11px;
  font-weight: 500;
  color: #d4d4d8;
  white-space: nowrap;
}

.sfb-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sfb-target-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #18181c;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sfb-target-btn {
  padding: 4px 10px;
  border-radius: 999px;
  background: transparent;
  border: none;
  color: #a1a1aa;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.14s ease;
}

.sfb-target-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.sfb-target-btn.active {
  background: #f4f4f6;
  color: #09090b;
}

.sfb-target-btn.hidden {
  display: none !important;
}

/* 2-Column Video + Vertical Disruption Leaderboard Row */
.video-and-leaderboard-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 12px;
  flex: 1;
  min-height: 360px;
}

.vertical-disruption-panel {
  display: flex !important;
  flex-direction: column !important;
  background: #121215 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  padding: 10px !important;
  gap: 8px !important;
  min-height: 0;
  max-height: 460px;
  overflow: hidden;
}

.vdp-header {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 2px 4px 6px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}

.vdp-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

body.minimal-zen-mode .vdp-header .max-exertion-label {
  display: inline-block !important;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: #f4f4f6;
  letter-spacing: -0.01em;
}

.vdp-sub-badge {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 69, 58, 0.14);
  color: #ff6961;
  border: 1px solid rgba(255, 69, 58, 0.28);
}

.vertical-ranking-list {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  flex-wrap: nowrap !important;
  gap: 5px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-right: 3px;
  flex: 1;
  min-height: 0;
}

.vertical-ranking-list::-webkit-scrollbar {
  width: 5px;
}

.vertical-ranking-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.vertical-rank-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 9px !important;
  width: 100% !important;
  padding: 7px 10px !important;
  border-radius: 10px !important;
  background: #18181c !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  text-align: left !important;
  cursor: pointer;
  transition: all 0.14s ease;
  flex-shrink: 0;
}

.vertical-rank-row:hover {
  background: #222228 !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

.vertical-rank-row.active,
body.minimal-zen-mode .vertical-rank-row.active {
  background: linear-gradient(135deg, rgba(255, 69, 58, 0.20), rgba(255, 159, 10, 0.16)) !important;
  border-color: rgba(255, 159, 10, 0.65) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35) !important;
}

.vertical-rank-row.engineer-chip.active,
body.minimal-zen-mode .vertical-rank-row.engineer-chip.active {
  background: linear-gradient(135deg, rgba(48, 209, 88, 0.22), rgba(10, 132, 255, 0.18)) !important;
  border-color: rgba(48, 209, 88, 0.65) !important;
}

.v-rank-badge {
  min-width: 28px;
  height: 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.v-rank-badge.cam {
  background: rgba(48, 209, 88, 0.18);
  color: #30d158;
  border: 1px solid rgba(48, 209, 88, 0.35);
}

.v-rank-badge.tier-1 {
  background: rgba(255, 69, 58, 0.2);
  color: #ff6961;
  border: 1px solid rgba(255, 69, 58, 0.35);
}

.v-rank-badge.tier-2 {
  background: rgba(255, 159, 10, 0.18);
  color: #ffb340;
  border: 1px solid rgba(255, 159, 10, 0.32);
}

.v-rank-badge.tier-3 {
  background: rgba(250, 204, 21, 0.15);
  color: #fde047;
  border: 1px solid rgba(250, 204, 21, 0.28);
}

.v-rank-badge.tier-4 {
  background: rgba(56, 189, 248, 0.16);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.v-rank-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}

.v-rank-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #f4f4f6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 5px;
}

.v-multi-tag {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(250, 204, 21, 0.18);
  color: #facc15;
}

.v-cool-tag {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
}

.v-rank-sub {
  font-size: 10.5px;
  font-weight: 400;
  color: #a1a1aa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v-rank-delta {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 3px 7px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.v-rank-delta.live-cam-tag {
  background: rgba(48, 209, 88, 0.16);
  color: #30d158;
}

.v-rank-delta.tier-1 {
  background: rgba(255, 69, 58, 0.16);
  color: #ff6961;
}

.v-rank-delta.tier-2 {
  background: rgba(255, 159, 10, 0.15);
  color: #ffb340;
}

.v-rank-delta.tier-3 {
  background: rgba(250, 204, 21, 0.14);
  color: #fde047;
}

.v-rank-delta.tier-4 {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.v-rank-badge.arc {
  background: rgba(250, 204, 21, 0.22);
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.45);
}

.conan-arc-row {
  border-color: rgba(250, 204, 21, 0.28) !important;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.10), rgba(255, 69, 58, 0.08)) !important;
}

.conan-arc-timeline-bar {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(24, 24, 28, 0.96), rgba(34, 24, 18, 0.92));
  border: 1px solid rgba(250, 204, 21, 0.35);
}

.conan-arc-timeline-bar.hidden {
  display: none !important;
}

.catb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.catb-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.catb-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(48, 209, 88, 0.16);
  border: 1px solid rgba(48, 209, 88, 0.35);
  color: #30d158;
  letter-spacing: 0.03em;
}

.catb-headline {
  font-size: 12.5px;
  font-weight: 700;
  color: #facc15;
}

.catb-act-pills {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.catb-act-btn {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d4d4d8;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.catb-act-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.catb-act-btn.active {
  background: #facc15;
  border-color: #facc15;
  color: #09090b;
  font-weight: 700;
}

.catb-commentary {
  font-size: 12px;
  line-height: 1.45;
  color: #f4f4f6;
  padding-top: 2px;
}

@media (max-width: 960px) {
  .video-and-leaderboard-row {
    grid-template-columns: 1fr;
  }
  .vertical-disruption-panel {
    max-height: 250px;
  }
}

/* ========================================================================= */
/* BIOMETRIC VIDEO RECORDER & SOCIAL SHARE STUDIO MODAL                      */
/* ========================================================================= */
.record-clip-btn {
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.24), rgba(255, 149, 0, 0.16)) !important;
  border-color: rgba(255, 69, 58, 0.55) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

.record-clip-btn:hover {
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.4), rgba(255, 149, 0, 0.28)) !important;
  border-color: #ff453a !important;
}

.record-clip-btn.recording {
  background: #ff3b30 !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  animation: recPulse 1s infinite alternate;
}

@keyframes recPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
  }
  100% {
    box-shadow: 0 0 14px 4px rgba(255, 59, 48, 0.9);
  }
}

.recording-share-card {
  max-width: 880px;
  width: 94vw;
}

.recording-preview-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 18px;
  margin-top: 12px;
}

.recording-video-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #050608;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 8px;
}

#recordedClipPreview {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #000;
}

.recording-meta-strip {
  font-size: 11.5px;
  color: #a1a1aa;
  text-align: center;
}

.recording-share-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.share-caption-textarea {
  width: 100%;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f4f4f6;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.45;
  resize: vertical;
  font-family: inherit;
}

.share-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.native-share-btn {
  background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
}

@media (max-width: 780px) {
  .recording-preview-grid {
    grid-template-columns: 1fr;
  }
  .share-buttons-grid {
    grid-template-columns: 1fr;
  }
}
