/* =============================================
   OGH Training — Base Stylesheet (shared from v4)
   White / bright dominant. Glass panels.
   Accent: #ff6200. Text: #0a0a0a.
   ============================================= */

/* ---- Design tokens ---- */
:root {
  --accent: #ed3237;
  --text: #2b0b0c;
  --text-white: #ffffff93;
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.20);
  --glass-blur: blur(24px);
  --glass-border: 0.5px solid rgba(255, 255, 255, 0.50);
  --radius: 8px;
  --header-h: 52px;

  /* Frame bounds — overwritten by FrameManager.init() */
  --frame-top: 52px;
  --frame-left: 0px;
  --frame-width: 100vw;
  --frame-height: calc(100vh - 52px);
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000000;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

ol,
ul {
  list-style: none;
}

input {
  font: inherit;
}

/* ---- Layout utility classes ---- */
.indent-1 {
  margin-left: 12px;
}

.indent-2 {
  margin-left: 24px;
}

.indent-3 {
  margin-left: 48px;
}

/* ---- Font utility classes ---- */
/* Gotham Utilities */
.f-logo {
  font-family: 'Gotham', 'Arial', sans-serif;
  font-weight: 900;
}

.f-logo-med {
  font-family: 'Gotham', 'Arial', sans-serif;
  font-weight: 500;
}

/* RBNO Utilities */
.f-thin {
  font-family: 'RBNO', sans-serif;
  font-weight: 100;
}

.f-extralight {
  font-family: 'RBNO', sans-serif;
  font-weight: 200;
}

.f-light {
  font-family: 'RBNO', sans-serif;
  font-weight: 300;
}

.f-book {
  font-family: 'RBNO', sans-serif;
  font-weight: 400;
}

.f-medium {
  font-family: 'RBNO', sans-serif;
  font-weight: 500;
}

.f-bold {
  font-family: 'RBNO', sans-serif;
  font-weight: 700;
}

.f-extrabold {
  font-family: 'RBNO', sans-serif;
  font-weight: 800;
}

.f-black {
  font-family: 'RBNO', sans-serif;
  font-weight: 900;
}

.f-ultra {
  font-family: 'RBNO', sans-serif;
  font-weight: 950;
}

/* Legado (Para no romper código anterior) */
.f-headline {
  font-family: 'RBNO', 'Arial Black', sans-serif;
  font-weight: 800;
}

.f-italic {
  font-family: 'RBNO', 'Georgia', serif;
  font-style: italic;
}

.f-body {
  font-family: 'RBNO', 'Arial', sans-serif;
  font-weight: 300;
}

/* ---- Accent colour ---- */
.accent {
  color: var(--accent);
}


/* ═══════════════════════════════════════════════
   LOADING SCREEN
   ═══════════════════════════════════════════════ */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #2b0b0c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.45s ease;
}

#loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-logo {
  font-size: 28px;
  letter-spacing: 7px;
  text-transform: uppercase;
  color: var(--white);
}

.loading-logo span {
  color: var(--accent);
}

.loading-bar {
  width: 160px;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 1px;
  overflow: hidden;
}

.loading-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 1px;
  transition: width 0.25s ease;
}

.loading-percent {
  font-size: 10px;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: -12px;
}


/* ═══════════════════════════════════════════════
   FRAME OVERLAY  (pointer-events: none — middle layer)
   ═══════════════════════════════════════════════ */
#ui-frame {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

#ui-frame svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Glass blur div using CSS mask matching the SVG main path */
.frame-glass-blur {
  position: absolute;
  inset: 0;
  background: #ffffff;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1920 1080' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1919.99,61.25V0H0v1080s68.09-.53,97.1-.53h1822.9V61.25ZM1714.59,1031.29h-23.15l-35.64,33.72H14.83V61.86h1890.33v783.81l-190.57,185.62Z' fill='black'/%3E%3C/svg%3E");
  mask-size: 100% 100%;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1920 1080' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1919.99,61.25V0H0v1080s68.09-.53,97.1-.53h1822.9V61.25ZM1714.59,1031.29h-23.15l-35.64,33.72H14.83V61.86h1890.33v783.81l-190.57,185.62Z' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
}

/* Sub-elements of the SVG */
.frame-main-line {
  fill: none;
  stroke: rgba(10, 10, 10, 0.08);
  /* Inner line matching the glass panel border */
  stroke-width: 1.5;
}

.frame-acc1 {
  fill: #e7eaf1;
  /* Light greyish white details */
  fill-rule: evenodd;
}

.frame-acc2 {
  display: none;
  /* replaced by CSS pseudo-element below to avoid SVG stretch distortion */
}

/* Diamond accent — positioned at same % coords as the SVG polygon (1632/1920, 1047/1080)
   but sized with equal vmin so it stays square at any aspect ratio */
#ui-frame::after {
  content: '';
  position: absolute;
  right: 14.9%;
  bottom: 3.1%;
  width: clamp(9px, 0.85vmin, 13px);
  height: clamp(9px, 0.85vmin, 13px);
  background: var(--text);
  transform: rotate(45deg);
  pointer-events: none;
}


/* ═══════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════ */
#app-header {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}

.ui-widget {
  position: absolute;
  pointer-events: auto;
  display: flex;
  align-items: center;
}

.ui-top-left {
  top: 0;
  left: clamp(12px, 3vw, 32px);
  height: 5.67vh;
  /* Alineado verticalmente con el SVG frame (61.25 / 1080 = 5.67%) */
}

.ui-top-center {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 5.67vh;
}

.ui-top-right {
  top: 0;
  right: clamp(12px, 3vw, 32px);
  height: 5.67vh;
  gap: clamp(4px, 1vw, 8px);
}

.ui-bottom-center {
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
}

.ui-bottom-right {
  bottom: 24px;
  right: 24px;
}

.ui-bottom-left {
  bottom: 24px;
  left: 24px;
  gap: 4px;
}

.rhombus {
  width: clamp(5px, 0.8vh, 9px);
  height: clamp(5px, 0.8vh, 9px);
  background-color: #2b0b0c;
  transform: rotate(45deg);
  flex-shrink: 0;
}

.sponsor-logo {
  display: block;
  height: clamp(14px, 2.6vh, 28px);
  /* Ajusta proporcionalmente con el alto del marco */
  width: auto;
  max-width: clamp(60px, 20vw, 120px);
  object-fit: contain;
}

#menu-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: var(--text);
  flex-shrink: 0;
  transition: background 0.15s;
}

#menu-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

#audio-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: var(--text);
  flex-shrink: 0;
  transition: background 0.15s, opacity 0.15s;
  opacity: 0.55;
}

#audio-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  opacity: 1;
}

#audio-btn .audio-icon-off {
  display: none;
}

#audio-btn.muted .audio-icon-on {
  display: none;
}

#audio-btn.muted .audio-icon-off {
  display: block;
}

#audio-btn.muted {
  opacity: 0.38;
}

.header-logo {
  font-size: clamp(10px, 1.5vh, 17px);
  /* Ajusta proporcionalmente con el marco */
  letter-spacing: clamp(2px, 0.4vw, 4px);
  text-transform: uppercase;
  color: var(--text);
  flex-shrink: 0;
  margin-top: -1px;
  /* Pequeño ajuste óptico para alinear el texto con el rombo */
}

.header-scene-label {
  flex: 1;
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.40);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#progress-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.progress-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid rgba(10, 10, 10, 0.22);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.progress-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.25);
}

.progress-dot.done {
  background: var(--text);
  border-color: var(--text);
}


/* ═══════════════════════════════════════════════
   STAGE  &  SCENES
   ═══════════════════════════════════════════════ */
#stage {
  position: fixed;
  top: var(--frame-top);
  left: var(--frame-left);
  width: var(--frame-width);
  height: var(--frame-height);
  overflow: hidden;
  background: #000000;
}

/* Default: scenes are hidden */
.scene {
  position: absolute;
  inset: 0;
  display: none;
}

.scene.active {
  display: block;
}

/* S1 registration — always visible (no active class needed) */
.scene-reg {
  display: block;
  transition: opacity 0.5s ease;
}

.scene-reg.fading-out {
  opacity: 0;
  pointer-events: none;
}


/* ---- Video layer ---- */
.scene-video-layer {
  position: absolute;
  inset: 0;
  background: #000000 center / cover no-repeat;
}

/* Dev placeholder: white background shown when no video file exists */
.vid-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  z-index: 0;
}

.vid-placeholder::after {
  content: attr(data-label);
  font-family: 'RBNO', sans-serif;
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.25);
}

.scene-video {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
}

.scene-video.active-vid {
  opacity: 1;
}


/* ---- Scene overlays ---- */
.scene-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.scene-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}


/* ═══════════════════════════════════════════════
   SHARED COMPONENTS
   ═══════════════════════════════════════════════ */

/* Glass panel */
.glass-panel {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 0.5px solid rgba(10, 10, 10, 0.08);
  padding: 22px;
  color: var(--text);
  /* Muesca responsiva basada en código original SVG (79px base width) */
  clip-path: polygon(0 0,
      0 100%,
      calc(100% - 79px) 100%,
      calc(100% - 68px) calc(100% - 11px),
      calc(100% - 60px) calc(100% - 11px),
      100% calc(100% - 71px),
      100% 0);
}

/* Copy typography (overlaid on video — dark text for bright video content) */
.copy-eyebrow {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.50);
  margin-bottom: 8px;
}

.copy-headline {
  font-size: clamp(24px, 3.8vw, 42px);
  line-height: 1.0;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 12px;
}

.copy-headline-long {
  font-size: clamp(20px, 3.2vw, 34px);
  line-height: 1.0;
  /* Espaciado entre líneas */
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 12px;
}

.copy-body {
  font-size: 12px;
  line-height: 1.4;
  /* Espaciado entre líneas */
  color: rgba(10, 10, 10, 0.65);
}

/* Panel label (inside glass panels on light bg) */
.panel-label {
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.50);
  margin-bottom: 12px;
}

/* Split overlay: left copy + right panel */
.split-overlay {
  padding: 0;
  /* reset base .scene-overlay padding */
}

.split-overlay.visible {
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 36px;
}

.split-copy {
  flex: 1;
  max-width: 45vw;
  /* Aumentado para evitar saltos de línea prematuros */
}

.split-overlay .glass-panel {
  flex: 0 0 300px;
  max-width: 300px;
}

/* Centred overlay (S3) */
.copy-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  max-width: 60vw;
  /* Aumentado para evitar saltos de línea prematuros */
}

/* Custom alignment overlay (S3) */
.copy-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* 'left' no es válido en flexbox, debe ser flex-start */
  text-align: left;
  gap: 10px;
  max-width: 60vw;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 15vw;
  /* Cambia este valor (ej. 10vw, 20vw, 200px) para probar distancias */
}

.copy-rights2 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* 'left' no es válido en flexbox, debe ser flex-start */
  text-align: left;
  gap: 10px;
  max-width: 60vw;
  position: absolute;
  top: 30%;
  transform: translateY(-50%);
  right: 10vw;
  /* Cambia este valor (ej. 10vw, 20vw, 200px) para probar distancias */
}

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 16px;
  background: var(--accent);
  color: var(--white);
  border-radius: 2px;
  font-family: 'RBNO', sans-serif;
  font-weight: 300;
  font-size: 8px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  white-space: nowrap;
}

.btn-primary:hover {
  opacity: 0.88;
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-primary:disabled {
  background: rgba(10, 10, 10, 0.12);
  color: rgba(10, 10, 10, 0.32);
  cursor: not-allowed;
  transform: none;
  opacity: 1;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 16px;
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(10, 10, 10, 0.22);
  border-radius: 2px;
  font-family: 'RBNO', sans-serif;
  font-weight: 300;
  font-size: 8px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: rgba(10, 10, 10, 0.06);
}


/* ═══════════════════════════════════════════════
   S1 — REGISTRATION
   ═══════════════════════════════════════════════ */
#overlay-S1 {
  background: transparent;
}

.reg-layout {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 340px;
}

.reg-logo {
  font-size: 20px;
  line-height: 0.1;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 4px;
}

.reg-headline {
  font-size: clamp(22px, 4.5vw, 36px);
  line-height: 1.0;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 2px;
}

.reg-headline2 {
  font-size: clamp(22px, 4.5vw, 36px);
  line-height: 1.0;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.978);
  margin-bottom: -2px;
}

.reg-headline3 {
  font-size: clamp(22px, 4.5vw, 36px);
  line-height: 1.0;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.978);
  margin-bottom: -2px;
}

.reg-sub {
  font-size: 14px;
  line-height: 1.4;
  color: rgba(10, 10, 10, 0.52);
}

.reg-sub3 {
  font-size: 14px;
  line-height: 1.4;
  color: rgba(238, 238, 238, 0.52);
}

.reg-sub2 {
  font-size: 14px;
  line-height: 1.4;
  color: rgba(238, 238, 238, 0.52);
}

.reg-sub4 {
  font-size: 14px;
  line-height: 1.4;
  color: rgba(238, 238, 238, 0.52);
}

.reg-body {
  font-size: 11px;
  line-height: 1.4;
  color: rgba(10, 10, 10, 0.55);
  margin-bottom: 1px;
}

.reg-body2 {
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.773);
  margin-bottom: 1px;
}

.reg-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 6px;
}

.reg-label {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.50);
}

.reg-label2 {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.908);
}

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

.reg-input {
  height: 38px;
  padding: 0 12px;
  border: 1px solid #ed3237;
  border-radius: 1px;
  font-family: 'RBNO', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: var(--text-white);
  background: rgba(0, 0, 0, 0.806);
  outline: none;
  transition: border-color 0.2s;
}

.reg-input:focus {
  border-color: var(--accent);
}

.reg-input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.reg-error {
  font-size: 10px;
  color: #c62828;
  display: none;
  padding-top: 1px;
}

.reg-error.visible {
  display: block;
}

#overlay-S1 .btn-primary {
  height: 36px;
  font-size: 9px;
  letter-spacing: 3px;
  margin-top: 6px;
}


/* ═══════════════════════════════════════════════
   S2 — THE FRUSTRATION (cinematic trigger)
   ═══════════════════════════════════════════════ */
.s2-copy-block {
  position: absolute;
  top: 50%;
  left: 9%;
  transform: translateY(-50%);
  pointer-events: none;
  max-width: 50%;
}

.s2-copy-block2 {
  position: absolute;
  top: 30%;
  left: 2%;
  transform: translateY(-50%);
  pointer-events: none;
  max-width: 50%;
}


.s2-headline {
  font-size: clamp(20px, 3.2vw, 34px);
  line-height: 0.7;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
}

.s2-headline2 {
  font-size: clamp(20px, 3.2vw, 34px);
  line-height: 0.1;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
}

.s2-cta {
  font-size: 12px;
  letter-spacing: 1.5px;
  line-height: 1.2;
  color: var(--accent);
}

/* Hotspot — clickable zone over OMEN AI button in video */
.s2-hotspot {
  position: absolute;
  /* Default placeholder position — adjust with % once video is final */
  bottom: 26%;
  right: 38%;
  width: 100px;
  height: 100px;
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.s2-hotspot:focus {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.s2-pulse {
  display: block;
  width: 60px;
  height: 60px;
  background: rgba(237, 50, 55, 0.30);
  transform: rotate(45deg);
  position: relative;
  animation: pulseRing 1.9s ease-in-out infinite;
  visibility: hidden;
}

.s2-pulse::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  transform: rotate(45deg);
  background: var(--accent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes pulseRing {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.6);
    opacity: 0.45;
  }
}


/* ═══════════════════════════════════════════════
   S13 — ENDING (infographic, dark theme)
   ═══════════════════════════════════════════════ */
.end-overlay {
  background: rgba(0, 0, 0, 0.60);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.end-panel {
  width: 100%;
  max-width: 400px;
  max-height: calc(var(--frame-height) - 48px);
  overflow-y: auto;
  background: #0e0e0e;
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  padding: 28px 26px 24px;
  clip-path: polygon(0 0,
      0 100%,
      calc(100% - 79px) 100%,
      calc(100% - 68px) calc(100% - 11px),
      calc(100% - 60px) calc(100% - 11px),
      100% calc(100% - 71px),
      100% 0);
}

.end-panel::-webkit-scrollbar {
  width: 3px;
}

.end-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.10);
  border-radius: 2px;
}

.end-logo {
  font-size: 15px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.90);
  margin-bottom: 16px;
}

/* Elements injected by scene-manager.js _showEnding() */
.end-eyebrow {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 4px;
}

.end-headline {
  font-family: 'RBNO', 'Arial Black', sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 5vw, 42px);
  line-height: 1.0;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 10px;
}

.end-score {
  font-family: 'RBNO', sans-serif;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 4px;
}

.end-score strong {
  font-family: 'RBNO', sans-serif;
  font-weight: 800;
  color: var(--accent);
}

.end-need {
  font-family: 'RBNO', sans-serif;
  font-weight: 300;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.40);
}

.end-divider {
  height: 0.5px;
  background: rgba(255, 255, 255, 0.08);
  margin: 14px 0;
}

.end-recap-label {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
  margin-bottom: 8px;
}

.end-facts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.end-fact {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-family: 'RBNO', sans-serif;
  font-weight: 300;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.65);
}

.end-bullet {
  color: var(--accent);
  font-size: 9px;
  flex-shrink: 0;
  margin-top: 4px;
}

.end-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

/* btn-secondary dark variant — used inside .end-panel */
.end-panel .btn-secondary {
  color: rgba(255, 255, 255, 0.70);
  border-color: rgba(255, 255, 255, 0.18);
}

.end-panel .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}


/* ═══════════════════════════════════════════════
   PAUSE MENU
   ═══════════════════════════════════════════════ */
#pause-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
}

#pause-menu.active {
  display: flex;
}

.pause-panel {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 220px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.98);
}

.pause-title {
  font-size: 20px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 10px;
}

.pause-item {
  width: 100%;
  text-align: left;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
  transition: background 0.15s;
}

.pause-item:hover {
  background: rgba(10, 10, 10, 0.06);
}

.pause-item.danger {
  color: #dc2626;
}

.pause-item.danger:hover {
  background: rgba(220, 38, 38, 0.07);
}

/* Admin link — subtle, looks like the others */
a.pause-item {
  display: block;
  text-decoration: none;
}

.pause-admin {
  color: rgba(10, 10, 10, 0.38);
  font-size: 10px;
}

.pause-admin:hover {
  background: rgba(10, 10, 10, 0.04);
  color: rgba(10, 10, 10, 0.60);
}

.pause-divider {
  height: 0.5px;
  background: rgba(10, 10, 10, 0.09);
  margin: 5px 0;
}


/* ═══════════════════════════════════════════════
   PROGRESS PANEL
   ═══════════════════════════════════════════════ */
#progress-panel {
  position: fixed;
  inset: 0;
  z-index: 101;
  background: rgba(255, 255, 255, 0.99);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

#progress-panel.active {
  display: flex;
}

.prog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 0.5px solid rgba(10, 10, 10, 0.09);
  flex-shrink: 0;
}

.prog-title {
  font-size: 19px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text);
}

.prog-close {
  font-family: 'RBNO', sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: rgba(10, 10, 10, 0.50);
  padding: 6px 10px;
  border-radius: 3px;
  transition: background 0.15s;
}

.prog-close:hover {
  background: rgba(10, 10, 10, 0.06);
}

.prog-table-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'RBNO', sans-serif;
  font-weight: 300;
  font-size: 12px;
  color: var(--text);
}

thead th {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.38);
  text-align: left;
  padding: 0 8px 10px;
  border-bottom: 0.5px solid rgba(10, 10, 10, 0.09);
  font-weight: 300;
}

tbody td {
  padding: 10px 8px;
  border-bottom: 0.5px solid rgba(10, 10, 10, 0.06);
  vertical-align: middle;
}

tbody td.status {
  color: var(--accent);
  font-size: 11px;
}

.prog-footer {
  display: flex;
  gap: 28px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 0.5px solid rgba(10, 10, 10, 0.09);
}

.prog-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prog-stat-label {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.38);
}

.prog-stat-val {
  font-size: 22px;
  font-family: 'RBNO', sans-serif;
  font-weight: 800;
  color: var(--text);
}


/* ═══════════════════════════════════════════════
   ERROR FLASH
   ═══════════════════════════════════════════════ */
#error-flash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: radial-gradient(ellipse at center,
      transparent 40%,
      rgba(237, 50, 55, 0.55) 100%);
  opacity: 0;
}

@keyframes flash-red {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

#error-flash.is-flashing {
  animation: flash-red 0.7s ease-out forwards;
}

