/**
 * Move the Money Across Africa
 * 4-Stage Pan-African Gauntlet & Tournament Screens
 * The STARKS Exchange · PAPSS COWRY 2026 · Addis Ababa
 */

/* =====================================================================
   1. GAUNTLET BRIEF SCREEN (Obsidian & Ember Mobile-First Design)
   ===================================================================== */
#view-gauntlet_brief {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100dvh;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: #0C0D12;
  background: radial-gradient(circle at 50% 0%, rgba(221, 90, 32, 0.08) 0%, rgba(12, 13, 18, 0.98) 60%, #0C0D12 100%);
  z-index: 30;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  box-sizing: border-box;
  padding: 12px 12px max(14px, env(safe-area-inset-bottom, 12px)) 12px;
}

#gauntlet-brief-content {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: auto 0;
  min-height: 0;
  box-sizing: border-box;
}

#gauntlet-brief-content.story-brief-mode,
#gauntlet-brief-content:has(.story-intro-container) {
  max-width: 960px !important;
  min-height: 100% !important;
  height: auto !important;
  max-height: none !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  margin: 0 auto !important;
  flex: 1 !important;
  width: 100% !important;
}

#view-gauntlet_brief.view-has-story,
#view-gauntlet_brief:has(.story-intro-container) {
  min-height: 100% !important;
  height: auto !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  padding: clamp(6px, 1.2vh, 12px) clamp(8px, 2vw, 16px) !important;
  background: #0C0D12 !important;
}

@media (min-width: 1440px) {
  #gauntlet-brief-content.story-brief-mode,
  #gauntlet-brief-content:has(.story-intro-container) {
    max-width: 1040px !important;
  }
}

.gauntlet-brief-wrap {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  animation: fadeIn 0.3s ease-out;
  gap: 10px;
  max-height: 100%;
}

/* =====================================================================
   STORY INTRO & STORYBOARD SCREENS (Nana & Ali · 60s Challenge)
   Strict adherence to Move the Money - Story Intro Storyboard (Pages 1-6)
   ===================================================================== */

.story-intro-container {
  width: 100%;
  max-width: 960px;
  min-height: 100% !important;
  height: auto !important;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  animation: fadeInStory 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  padding: clamp(8px, 1.5vh, 16px) clamp(10px, 2.5vw, 24px);
  padding-bottom: max(24px, env(safe-area-inset-bottom, 20px));
  gap: clamp(8px, 1.4vh, 14px);
  position: relative;
  overflow-y: visible;
}

@keyframes fadeInStory {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------------------------------------------------------------------
   Top Navigation & Header
   --------------------------------------------------------------------- */
.story-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.story-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(221, 90, 32, 0.08);
  border: 1px solid rgba(221, 90, 32, 0.22);
  padding: 5px 12px;
  border-radius: 9999px;
}

.story-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #DD5A20;
  box-shadow: 0 0 8px #DD5A20;
  display: inline-block;
  animation: pulseDot 2s infinite ease-in-out;
}

.story-pulse-dot.dot-emerald {
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
}

.story-pulse-dot.dot-gold {
  background: #F59E0B;
  box-shadow: 0 0 8px #F59E0B;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.story-brand-eyebrow {
  font-size: clamp(0.68rem, 1.2vw, 0.76rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #FA9A60;
  text-transform: uppercase;
  line-height: 1;
}

.story-brand-eyebrow.eyebrow-starks-way {
  color: #10B981;
}

.story-brand-eyebrow.eyebrow-gold {
  color: #F59E0B;
}

.story-brand-eyebrow-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.story-turn-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 8px;
}

.btn-story-skip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #CBD5E1;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: clamp(0.78rem, 1.2vw, 0.84rem);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-story-skip:hover {
  border-color: #DD5A20;
  color: #ffffff;
  background: rgba(221, 90, 32, 0.16);
  box-shadow: 0 0 14px rgba(221, 90, 32, 0.25);
}

.story-title-block {
  text-align: center;
  margin: 4px 0 clamp(8px, 1.6vh, 16px) 0;
}

.story-hero-title {
  font-family: var(--font-heading, 'Spoof', sans-serif);
  font-size: clamp(1.4rem, 3.8vw, 2.35rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px 0;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.story-hero-subtitle {
  font-size: clamp(0.88rem, 1.5vw, 1.05rem);
  color: #94A3B8;
  margin: 0 auto;
  max-width: 620px;
  line-height: 1.45;
}

/* ---------------------------------------------------------------------
   Character Selection Cards (Page 1)
   --------------------------------------------------------------------- */
.story-char-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(10px, 1.8vw, 20px);
  width: 100%;
  flex: 1;
  min-height: 0;
  margin: 0;
}

.story-char-card {
  border-radius: 18px;
  padding: clamp(10px, 1.8vh, 18px) clamp(12px, 2.2vw, 20px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
}

.story-card-body-content {
  position: relative;
  z-index: 1;
}

/* Nana Theme */
.story-char-card.card-nana {
  background: #14131C;
  border: 1.5px solid rgba(221, 90, 32, 0.45);
}

.story-char-card.card-nana:hover,
.story-char-card.card-nana.selected {
  border-color: #DD5A20;
  box-shadow: 0 12px 36px rgba(221, 90, 32, 0.28), 0 0 0 1px rgba(221, 90, 32, 0.5);
  transform: translateY(-2px);
}

/* Ali Theme */
.story-char-card.card-ali {
  background: #141322;
  border: 1.5px solid rgba(139, 92, 246, 0.4);
}

.story-char-card.card-ali:hover,
.story-char-card.card-ali.selected {
  border-color: #8B5CF6;
  box-shadow: 0 12px 36px rgba(139, 92, 246, 0.28), 0 0 0 1px rgba(139, 92, 246, 0.5);
  transform: translateY(-2px);
}

.story-char-header {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 14px);
  margin-bottom: clamp(6px, 1vh, 10px);
}

.char-circle-avatar {
  width: clamp(36px, 4.8vh, 44px);
  height: clamp(36px, 4.8vh, 44px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading, 'Spoof', sans-serif);
  font-size: clamp(1.1rem, 2vh, 1.35rem);
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
  position: relative;
}

.char-circle-avatar.avatar-nana {
  background: #DD5A20;
  box-shadow: 0 4px 14px rgba(221, 90, 32, 0.4);
}

.char-circle-avatar.avatar-ali {
  background: #7C3AED;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}

.char-title-meta {
  display: flex;
  flex-direction: column;
}

.char-title-name {
  font-size: clamp(1.15rem, 2.2vh, 1.35rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
}

.char-title-role {
  font-size: clamp(0.72rem, 1.1vh, 0.80rem);
  color: #94A3B8;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.icon-svg-role {
  color: #FA9A60;
  flex-shrink: 0;
}

.card-ali .icon-svg-role {
  color: #A78BFA;
}

.story-char-desc {
  font-size: clamp(0.74rem, 1.35vh, 0.86rem);
  color: #CBD5E1;
  line-height: 1.4;
  margin: 0 0 clamp(6px, 1vh, 10px) 0;
}

.highlight-nana-text {
  color: #FFFFFF;
  font-weight: 700;
}

[data-theme="light"] .highlight-nana-text {
  color: #DD5A20 !important;
  font-weight: 700 !important;
}

.story-char-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: clamp(6px, 1vh, 10px);
}

.story-corridor-badge {
  padding: 3px 9px;
  border-radius: 8px;
  font-size: clamp(0.66rem, 1.1vh, 0.74rem);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.card-nana .story-corridor-badge {
  background: rgba(221, 90, 32, 0.14);
  border: 1px solid rgba(221, 90, 32, 0.35);
  color: #FF9254;
}

.card-ali .story-corridor-badge {
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #C084FC;
}

/* ---------------------------------------------------------------------
   Card Visual Section (Perspective Corridor & Coins from reference)
   --------------------------------------------------------------------- */
.story-card-visual {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  margin-bottom: clamp(6px, 1vh, 10px);
  height: clamp(55px, 8.5vh, 90px);
  background: #0A0910;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.corridor-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.visual-coin {
  position: absolute;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: #DD5A20 !important;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(221, 90, 32, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

.coin-cedi-left {
  left: 48%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  font-size: 15px;
}

.coin-naira-right {
  right: 18%;
  top: 56%;
  transform: translate(50%, -50%);
  width: 30px;
  height: 30px;
  font-size: 14px;
}

.coin-cedi-small {
  right: 28%;
  top: 22%;
  width: 18px;
  height: 18px;
  font-size: 9px;
  opacity: 0.75;
}

.ali-coins-cluster {
  position: absolute;
  right: 10px;
  bottom: 6px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.ali-coin {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border: 1.5px solid rgba(167, 139, 250, 0.5);
  background: radial-gradient(circle, rgba(45, 25, 75, 0.95), rgba(20, 12, 35, 0.95));
  color: #D8B4FE;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4), inset 0 0 6px rgba(139, 92, 246, 0.3);
}

.coin-sh {
  width: 26px;
  height: 26px;
  font-size: 10.5px;
  margin-bottom: 2px;
}

.coin-pound {
  width: 28px;
  height: 28px;
  font-size: 13px;
  margin-bottom: -4px;
}

.coin-rand {
  width: 26px;
  height: 26px;
  font-size: 11.5px;
  margin-bottom: 2px;
}

.coin-dh {
  width: 26px;
  height: 26px;
  font-size: 10px;
  margin-bottom: -2px;
}

/* ---------------------------------------------------------------------
   Play Character Buttons (Matching reference image)
   --------------------------------------------------------------------- */
.btn-play-character {
  width: 100%;
  border-radius: 12px;
  border: none;
  font-size: clamp(0.85rem, 1.4vh, 0.96rem);
  font-weight: 700;
  min-height: clamp(38px, 5vh, 46px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  color: #FFFFFF;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
}

.btn-play-nana {
  background: #E85D22;
  box-shadow: 0 4px 16px rgba(221, 90, 32, 0.35);
}

.btn-play-nana:hover {
  background: #FF6A2C;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(221, 90, 32, 0.5);
}

.btn-play-ali {
  background: #6D28D9;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

.btn-play-ali:hover {
  background: #7C3AED;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
}

.btn-play-arrow {
  transition: transform 0.2s ease;
}

.btn-play-character:hover .btn-play-arrow {
  transform: translateX(3px);
}

.btn-play-nana {
  background: linear-gradient(135deg, #FF6F32 0%, #DD5A20 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(221, 90, 32, 0.4);
}

.btn-play-nana:hover {
  background: linear-gradient(135deg, #FF7F47 0%, #E86A30 100%);
  box-shadow: 0 8px 24px rgba(221, 90, 32, 0.55);
  transform: translateY(-1px);
}

.btn-play-ali {
  background: linear-gradient(135deg, #8B5CF6 0%, #45207C 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.btn-play-ali:hover {
  background: linear-gradient(135deg, #9D74FF 0%, #5A2B9F 100%);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.55);
  transform: translateY(-1px);
}

.story-footer-note {
  font-size: clamp(0.80rem, 1.3vw, 0.88rem);
  color: #64748B;
  text-align: center;
  margin-top: clamp(6px, 1.4vh, 12px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

/* ---------------------------------------------------------------------
   4-Step Storyboard Walkthrough (Pages 3-6)
   --------------------------------------------------------------------- */
.story-progress-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: clamp(6px, 1.4vh, 12px);
}

.story-step-pills {
  display: flex;
  gap: 6px;
  align-items: center;
}

.story-progress-indicator {
  width: 24px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.25s ease;
  box-shadow: none !important;
}

.story-progress-indicator.active {
  background: #DD5A20;
  width: 36px;
  box-shadow: none !important;
}

.story-progress-indicator.active-ali {
  background: #8B5CF6;
  width: 36px;
  box-shadow: none !important;
}

.story-step-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: #94A3B8;
  margin-left: 8px;
}

/* Slide 1: Meet Nana / Meet Ali */
.story-slide-hero {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3.5vw, 36px);
  background: linear-gradient(165deg, rgba(20, 22, 31, 0.95) 0%, rgba(14, 16, 23, 0.98) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: clamp(20px, 3.5vw, 36px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  width: 100%;
  box-sizing: border-box;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.story-slide-hero.hero-nana-theme {
  border-color: rgba(221, 90, 32, 0.35);
}

.story-slide-hero.hero-ali-theme {
  border-color: rgba(139, 92, 246, 0.35);
}

.story-hero-avatar-large {
  width: clamp(76px, 12vw, 110px);
  height: clamp(76px, 12vw, 110px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading, 'Spoof', sans-serif);
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.avatar-nana {
  background: #DD5A20 !important;
  color: #ffffff !important;
}

.avatar-ali {
  background: #7C3AED !important;
  color: #ffffff !important;
}

.story-hero-avatar-large.avatar-nana {
  background: linear-gradient(135deg, #FF6F32 0%, #DD5A20 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(221, 90, 32, 0.45) !important;
}

.story-hero-avatar-large.avatar-ali {
  background: linear-gradient(135deg, #9333EA 0%, #6D28D9 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(109, 40, 217, 0.45) !important;
}

.story-step2-avatar-tag.avatar-nana {
  background: #DD5A20 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(221, 90, 32, 0.35) !important;
}

.story-step2-avatar-tag.avatar-ali {
  background: #7C3AED !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35) !important;
}

.avatar-ring-halo-lg {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.story-hero-content {
  display: flex;
  flex-direction: column;
  text-align: left;
  flex-grow: 1;
}

.story-location-eyebrow {
  font-size: clamp(0.72rem, 1.2vw, 0.80rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #FA9A60;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-ali-theme .story-location-eyebrow {
  color: #A78BFA;
}

.story-headline-title {
  font-family: var(--font-heading, 'Spoof', sans-serif);
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.story-body-copy {
  font-size: clamp(0.92rem, 1.6vw, 1.1rem);
  color: #CBD5E1;
  line-height: 1.55;
  margin: 0 0 clamp(12px, 2vh, 20px) 0;
}

.story-body-copy strong {
  color: #ffffff;
}

.story-request-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  background: rgba(221, 90, 32, 0.12);
  border: 1.5px solid rgba(221, 90, 32, 0.35);
  border-radius: 12px;
  font-size: clamp(0.82rem, 1.4vw, 0.90rem);
  font-weight: 700;
  color: #ffffff;
  align-self: flex-start;
  box-shadow: 0 4px 16px rgba(221, 90, 32, 0.2);
}

.hero-ali-theme .story-request-pill {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.2);
}

.story-request-pill strong {
  color: #FA9A60;
}

.hero-ali-theme .story-request-pill strong {
  color: #C4B5FD;
}

/* ---------------------------------------------------------------------
   Slide 2 & 3: 2x2 Pain & Solution Grids
   --------------------------------------------------------------------- */
.story-grid-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(10px, 1.8vh, 16px);
  text-align: left;
  width: 100%;
}

.story-step2-avatar-tag {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading, 'Spoof', sans-serif);
  font-weight: 800;
  font-size: 1.25rem;
  color: #ffffff;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.story-grid-title-meta {
  display: flex;
  flex-direction: column;
}

.story-grid-title {
  font-family: var(--font-heading, 'Spoof', sans-serif);
  font-size: clamp(1.35rem, 3vw, 2.05rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
}

.story-grid-subtitle {
  font-size: clamp(0.78rem, 1.3vw, 0.88rem);
  color: #94A3B8;
  margin: 3px 0 0 0;
}

.story-quad-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(10px, 1.8vw, 16px);
  width: 100%;
}

/* Step 2: Pain Cards */
.story-pain-card {
  background: linear-gradient(165deg, rgba(28, 20, 20, 0.95) 0%, rgba(20, 22, 31, 0.98) 100%);
  border: 1.5px solid rgba(249, 115, 22, 0.3);
  border-radius: 16px;
  padding: clamp(14px, 2.2vw, 20px);
  text-align: left;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 10px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.story-pain-card:hover {
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, 0.55);
}

.pain-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pain-icon-wrapper {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(249, 115, 22, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pain-card-tag {
  font-size: clamp(0.70rem, 1.1vw, 0.76rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #F97316;
  text-transform: uppercase;
}

.pain-card-quote {
  font-size: clamp(0.86rem, 1.4vw, 0.98rem);
  color: #F1F5F9;
  line-height: 1.45;
  margin: 0;
  font-style: italic;
}

/* Step 3: Solution Cards */
.story-solution-card {
  background: linear-gradient(165deg, rgba(16, 28, 24, 0.95) 0%, rgba(20, 22, 31, 0.98) 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.3);
  border-radius: 16px;
  padding: clamp(14px, 2.2vw, 20px);
  text-align: left;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 8px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.story-solution-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}

.sol-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

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

.sol-icon-wrapper {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sol-card-title {
  font-size: clamp(0.96rem, 1.6vw, 1.08rem);
  font-weight: 800;
  color: #ffffff;
}

.sol-card-tag {
  font-size: 0.70rem;
  padding: 3px 9px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #34D399;
  font-weight: 700;
  white-space: nowrap;
}

.sol-card-desc {
  font-size: clamp(0.86rem, 1.4vw, 0.96rem);
  color: #CBD5E1;
  line-height: 1.45;
  margin: 0;
}

.story-highlight-tagline {
  font-family: var(--font-heading, 'Spoof', sans-serif);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 800;
  background: linear-gradient(90deg, #10B981 0%, #00D2FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: left;
  margin-top: clamp(6px, 1.4vh, 12px);
}

/* ---------------------------------------------------------------------
   Slide 4: Your Turn
   --------------------------------------------------------------------- */
.story-slide-your-turn {
  background: linear-gradient(165deg, rgba(20, 22, 31, 0.95) 0%, rgba(14, 16, 23, 0.98) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: clamp(20px, 3.5vw, 36px) clamp(16px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.text-gold-accent {
  color: #F59E0B;
}

.coins-visual-display-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.8vw, 16px);
  margin: clamp(12px, 2vh, 22px) 0;
  flex-wrap: wrap;
}

.coin-preview-item {
  width: clamp(46px, 6.5vw, 56px);
  height: clamp(46px, 6.5vw, 56px);
  border-radius: 50%;
  background: #DD5A20 !important;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading, 'Spoof', sans-serif);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 800;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 14px rgba(221, 90, 32, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.5);
  text-shadow: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  cursor: default;
}

.coin-preview-item:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.6);
}

.coin-subcode {
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  opacity: 0.85;
  margin-top: -2px;
}

.story-rules-three-row {
  display: flex;
  gap: clamp(8px, 1.5vw, 14px);
  justify-content: center;
  width: 100%;
  margin: 6px 0 clamp(16px, 2.5vh, 26px) 0;
  flex-wrap: wrap;
}

.story-rule-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 9px 16px;
  border-radius: 12px;
  font-size: clamp(0.78rem, 1.2vw, 0.86rem);
  color: #E2E8F0;
  text-align: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.story-rule-pill strong {
  color: #ffffff;
}

.story-rule-pill.rule-right {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
}

.story-rule-pill.rule-wrong {
  border-color: rgba(244, 63, 94, 0.3);
  background: rgba(244, 63, 94, 0.08);
}

.story-rule-pill.rule-quick {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
}

/* ---------------------------------------------------------------------
   Action Controls (Bottom Bar)
   --------------------------------------------------------------------- */
.story-action-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: clamp(8px, 1.8vh, 16px);
  gap: 12px;
}

.story-btn-back {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94A3B8;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 12px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.story-btn-back:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.story-btn-primary {
  background: linear-gradient(135deg, #FF6F32 0%, #DD5A20 100%);
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(221, 90, 32, 0.4);
}

.story-btn-primary:hover {
  background: linear-gradient(135deg, #FF7F47 0%, #E86A30 100%);
  box-shadow: 0 8px 24px rgba(221, 90, 32, 0.55);
  transform: translateY(-1px);
}

.story-btn-primary.btn-primary-ali {
  background: linear-gradient(135deg, #8B5CF6 0%, #45207C 100%);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.story-btn-primary.btn-primary-ali:hover {
  background: linear-gradient(135deg, #9D74FF 0%, #5A2B9F 100%);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.55);
}

.story-btn-move-money {
  background: linear-gradient(135deg, #FF6F32 0%, #DD5A20 60%, #C24B15 100%);
  color: #ffffff;
  border: none;
  padding: clamp(12px, 2vh, 16px) clamp(28px, 5vw, 48px);
  border-radius: 14px;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 26px rgba(221, 90, 32, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.story-btn-move-money:hover {
  background: linear-gradient(135deg, #FF7F47 0%, #E86A30 60%, #DD5A20 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(221, 90, 32, 0.65);
}

/* =====================================================================
   RESPONSIVENESS (Mobile, Tablet, Desktop)
   ===================================================================== */

/* Tablet (768px - 1024px) */
@media screen and (max-width: 1024px) {
  .story-intro-container {
    max-width: 760px;
    padding: 14px;
  }
}

/* Mobile & Small Tablets (<= 768px) */
@media screen and (max-width: 768px) {
  #view-gauntlet_brief.view-has-story,
  #view-gauntlet_brief:has(.story-intro-container) {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    height: auto !important;
    min-height: 100% !important;
  }

  .story-intro-container {
    height: auto !important;
    min-height: 100% !important;
    max-height: none !important;
    padding: clamp(6px, 1.4vh, 12px) clamp(8px, 2.5vw, 16px) !important;
    padding-bottom: max(28px, env(safe-area-inset-bottom, 24px)) !important;
    gap: clamp(6px, 1.2vh, 10px) !important;
    overflow-y: visible !important;
    justify-content: flex-start !important;
  }

  .story-title-block {
    margin: 0 0 clamp(4px, 1vh, 8px) 0 !important;
    flex-shrink: 0 !important;
  }

  .story-hero-title {
    font-size: clamp(1.15rem, 2.6vh, 1.55rem) !important;
    margin: 0 0 2px 0 !important;
    line-height: 1.15 !important;
  }

  .story-hero-subtitle {
    font-size: clamp(0.72rem, 1.4vh, 0.84rem) !important;
    line-height: 1.25 !important;
  }

  .story-char-cards-grid {
    grid-template-columns: 1fr;
    display: flex !important;
    flex-direction: column !important;
    gap: clamp(8px, 1.5vh, 12px) !important;
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
  }

  .story-char-card {
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
    padding: clamp(10px, 1.5vh, 14px) clamp(12px, 2.5vw, 16px) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    border-radius: 16px !important;
  }

  .story-char-header {
    margin-bottom: clamp(2px, 0.5vh, 6px) !important;
    gap: 10px !important;
  }

  .char-circle-avatar {
    width: clamp(34px, 4.8vh, 46px) !important;
    height: clamp(34px, 4.8vh, 46px) !important;
    font-size: clamp(1rem, 2vh, 1.35rem) !important;
  }

  .char-title-name {
    font-size: clamp(1.05rem, 2.2vh, 1.28rem) !important;
    line-height: 1.15 !important;
  }

  .char-title-role {
    font-size: clamp(0.68rem, 1.1vh, 0.76rem) !important;
    margin-top: 1px !important;
  }

  .story-char-desc {
    font-size: clamp(0.72rem, 1.3vh, 0.84rem) !important;
    line-height: 1.35 !important;
    margin: 0 0 clamp(3px, 0.6vh, 6px) 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .story-char-tags-row {
    margin-bottom: clamp(4px, 0.8vh, 8px) !important;
    gap: 4px !important;
  }

  .story-corridor-badge {
    padding: 2px 7px !important;
    font-size: clamp(0.64rem, 1.1vh, 0.72rem) !important;
    border-radius: 8px !important;
  }

  .btn-play-character {
    min-height: clamp(36px, 5vh, 44px) !important;
    padding: clamp(4px, 0.8vh, 8px) 14px !important;
    font-size: clamp(0.82rem, 1.4vh, 0.94rem) !important;
    border-radius: 10px !important;
  }

  .story-card-visual {
    height: clamp(45px, 7.5vh, 70px) !important;
    margin-bottom: clamp(4px, 0.8vh, 8px) !important;
  }

  .story-footer-note {
    font-size: clamp(0.64rem, 1.1vh, 0.72rem) !important;
    margin: 0 !important;
    padding: 1px 0 !important;
    flex-shrink: 0 !important;
  }

  .story-slide-hero {
    flex-direction: column;
    text-align: center;
    gap: 18px;
    padding: 24px 20px;
  }

  .story-hero-content {
    align-items: center;
    text-align: center;
  }

  .story-request-pill {
    align-self: center;
  }

  .story-quad-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .story-rules-three-row {
    flex-direction: column;
    gap: 8px;
  }

  .story-rule-pill {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
  }
}

/* Small Mobile Viewports (<= 480px) */
@media screen and (max-width: 480px) {
  .story-intro-container {
    padding: clamp(4px, 1vh, 10px) clamp(8px, 2vw, 12px) !important;
    gap: clamp(4px, 1vh, 8px) !important;
  }

  .story-hero-title {
    font-size: clamp(1.05rem, 2.4vh, 1.35rem) !important;
  }

  .story-char-card {
    padding: clamp(6px, 1.2vh, 12px) clamp(8px, 2vw, 14px) !important;
  }

  .char-circle-avatar {
    width: clamp(32px, 4.4vh, 40px) !important;
    height: clamp(32px, 4.4vh, 40px) !important;
    font-size: clamp(0.95rem, 1.8vh, 1.2rem) !important;
  }

  .char-title-name {
    font-size: clamp(1rem, 2vh, 1.2rem) !important;
  }

  .coins-visual-display-row {
    gap: 8px;
  }

  .coin-preview-item {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .story-action-controls {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .story-btn-primary,
  .story-btn-move-money,
  .story-btn-back {
    width: 100%;
    justify-content: center;
  }
}

/* Short Mobile Viewports (Height <= 720px) */
@media screen and (max-height: 720px), @media (max-height: 720px) {
  .story-intro-container {
    gap: clamp(4px, 1vh, 8px) !important;
    padding: clamp(4px, 1vh, 8px) clamp(8px, 2vw, 14px) !important;
  }

  .story-title-block {
    margin: 0 !important;
  }

  .story-char-desc {
    margin-bottom: 4px !important;
    -webkit-line-clamp: 2 !important;
  }

  .story-char-tags-row {
    margin-bottom: 6px !important;
  }

  .story-slide-hero {
    padding: 14px 12px !important;
  }

  .story-pain-card,
  .story-solution-card {
    padding: 10px 12px !important;
  }
}
    margin-bottom: 8px;
  }

  .story-char-tags-row {
    margin-bottom: 12px;
  }

  .story-slide-hero {
    padding: 18px 16px;
  }

  .story-pain-card,
  .story-solution-card {
    padding: 12px 14px;
  }
}

.gauntlet-tag,
.brief-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 9999px;
  background: rgba(232, 93, 34, 0.12);
  border: 1px solid rgba(232, 93, 34, 0.35);
  color: #F97316;
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.gauntlet-title,
.brief-title {
  font-family: var(--font-title, 'Proxima Nova', -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: -0.025em;
}

.gauntlet-desc,
.brief-subtitle {
  font-size: 0.82rem;
  color: #94A3B8;
  max-width: 520px;
  margin: 0;
  line-height: 1.35;
}

/* 4 Structured Corridor Stage Cards */
.gauntlet-stages-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.gauntlet-stage-card {
  background: #14161F;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 10px 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  box-sizing: border-box;
}

.gauntlet-stage-card:hover {
  background: #1C1F2B;
  border-color: rgba(255, 255, 255, 0.20);
}

.stage-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.stage-step-ring {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

.ring-orange {
  background: rgba(232, 93, 34, 0.15);
  border: 1px solid rgba(232, 93, 34, 0.35);
  color: #F97316;
}

.ring-violet {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #c4b5fd;
}

.ring-amber {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fcd34d;
}

.ring-sky {
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.35);
  color: #7dd3fc;
}

.stage-char-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #ffffff;
  flex-shrink: 0;
}

.avatar-orange { background: #E85D22; }
.avatar-violet { background: #7c3aed; }
.avatar-amber  { background: #d97706; }
.avatar-sky    { background: #0ea5e9; }

.stage-step-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  gap: 2px;
}

.stage-step-head {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.stage-char-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stage-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 9999px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.badge-orange {
  background: rgba(232, 93, 34, 0.15);
  color: #F97316;
  border: 1px solid rgba(232, 93, 34, 0.35);
}

.badge-violet {
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.35);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-sky {
  background: rgba(14, 165, 233, 0.15);
  color: #7dd3fc;
  border: 1px solid rgba(14, 165, 233, 0.35);
}

.stage-step-sub {
  font-size: 0.70rem;
  color: #94A3B8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stage-duration-pill {
  font-size: 0.70rem;
  font-weight: 800;
  color: #F97316;
  background: rgba(232, 93, 34, 0.12);
  border: 1px solid rgba(232, 93, 34, 0.25);
  padding: 3px 8px;
  border-radius: 9999px;
  flex-shrink: 0;
  margin-left: 4px;
}

/* Bottom Action Bar */
.gauntlet-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  position: sticky;
  bottom: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(12, 13, 18, 0) 0%, rgba(12, 13, 18, 0.94) 22%, #0C0D12 100%);
  padding: 8px 0 max(4px, env(safe-area-inset-bottom, 4px)) 0;
}

.gauntlet-btn-row {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 8px;
  width: 100%;
}

#btn-start-stage-1 {
  background: linear-gradient(135deg, #E85D22, #F97316);
  color: #ffffff;
  border: none;
  border-radius: 16px;
  font-size: 0.90rem;
  font-weight: 700;
  min-height: 48px;
  box-shadow: 0 4px 14px rgba(232, 93, 34, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
  padding: 10px 16px;
}

#btn-start-stage-1:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

#btn-brief-oldway {
  background: #14161F;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  padding: 10px 14px;
}

#btn-brief-oldway:hover {
  background: #1C1F2B;
  border-color: rgba(255, 255, 255, 0.20);
}

.gauntlet-autostart-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.gauntlet-countdown-note {
  font-size: 0.76rem;
  color: #94A3B8;
  font-weight: 500;
}

#brief-countdown-num {
  color: #F97316;
  font-weight: 800;
}

.btn-brief-pause {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94A3B8;
  border-radius: 9999px;
  padding: 2px 10px;
  font-size: 0.70rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-brief-pause:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-brief-pause.paused {
  background: rgba(232, 93, 34, 0.20);
  border-color: rgba(232, 93, 34, 0.40);
  color: #F97316;
}

/* =====================================================================
   2. STAGE INTERSTITIAL SCREENS (Obsidian & Ember Mobile-First Design)
   ===================================================================== */
#view-stage_interstitial {
  width: 100%;
  height: 100%;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: #0C0D12;
  z-index: 30;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  padding: 10px 14px max(14px, env(safe-area-inset-bottom, 14px)) 14px;
}

#stage-interstitial-content {
  width: 100%;
  max-width: 480px;
  height: 100%;
  max-height: 590px;
  display: flex;
  flex-direction: column;
  margin: auto 0;
  box-sizing: border-box;
}

.stage-interstitial-wrap {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  animation: fadeIn 0.3s ease-out;
  box-sizing: border-box;
  gap: 8px;
}

/* Emerald Success Banner */
.interstitial-success-banner {
  width: 100%;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 14px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  flex-shrink: 0;
}

.success-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.success-check-circle {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid #10B981;
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.success-check-icon {
  display: block;
}

.success-banner-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
  min-width: 0;
  gap: 1px;
}

.success-banner-stage {
  font-size: 0.65rem;
  font-weight: 800;
  color: #10B981;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.success-banner-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.success-banner-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  flex-shrink: 0;
  gap: 1px;
}

.success-banner-score {
  font-size: 1.05rem;
  font-weight: 800;
  color: #10B981;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.pts-unit {
  font-size: 0.70rem;
  font-weight: 700;
}

.success-banner-earned {
  font-size: 0.58rem;
  font-weight: 700;
  color: rgba(16, 185, 129, 0.8);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* "THE STARKS SOLUTION" Hero Insight Card */
.interstitial-solution-card {
  width: 100%;
  background: linear-gradient(135deg, #191518 0%, #141722 50%, #131722 100%);
  border: 1px solid rgba(232, 93, 34, 0.30);
  border-radius: 14px;
  padding: 10px 14px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-sizing: border-box;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.solution-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.solution-badge {
  font-size: 0.65rem;
  font-weight: 800;
  color: #F97316;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.solution-metric-pill {
  font-size: 0.65rem;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.30);
  padding: 2px 8px;
  border-radius: 9999px;
  white-space: nowrap;
}

.solution-headline {
  font-family: var(--font-title, 'Proxima Nova', -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: 1.02rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.solution-quote {
  font-size: 0.76rem;
  line-height: 1.4;
  color: #CBD5E1;
  margin: 0;
  font-style: italic;
}

/* "UP NEXT · STAGE X OF 4" Character Briefing Card */
.interstitial-next-card {
  width: 100%;
  background: #131722;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 14px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.next-card-tag {
  font-size: 0.65rem;
  font-weight: 800;
  color: #F97316;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.next-card-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.next-card-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffffff;
  flex-shrink: 0;
}

.avatar-gradient-violet {
  background: linear-gradient(135deg, #7c3aed, #9333ea);
}

.avatar-gradient-amber {
  background: linear-gradient(135deg, #d97706, #f59e0b);
}

.avatar-gradient-sky {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.next-card-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  gap: 2px;
}

.next-card-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
}

.next-card-desc {
  font-size: 0.72rem;
  color: #94A3B8;
  line-height: 1.3;
  margin: 0;
}

/* Bottom Actions */
.interstitial-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-top: 2px;
}

.interstitial-btn-grid {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
}

#btn-interstitial-continue {
  background: linear-gradient(135deg, #E85D22, #F97316);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 800;
  height: 44px;
  min-height: 44px;
  width: 100%;
  box-shadow: 0 4px 14px rgba(232, 93, 34, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.15s ease, filter 0.15s ease;
  padding: 0 16px;
  box-sizing: border-box;
}

#btn-interstitial-continue:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

#btn-interstitial-continue:active {
  transform: scale(0.98);
}

#btn-interstitial-oldway {
  background: #161B26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #CBD5E1;
  border-radius: 14px;
  font-size: 0.80rem;
  font-weight: 600;
  height: 38px;
  min-height: 38px;
  width: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  padding: 0 14px;
  box-sizing: border-box;
}

#btn-interstitial-oldway:hover {
  background: #1C1F2B;
  border-color: rgba(255, 255, 255, 0.20);
}

#btn-interstitial-oldway:active {
  transform: scale(0.98);
}

.interstitial-timer-display {
  font-size: 0.70rem;
  color: #94A3B8;
  font-weight: 500;
  text-align: center;
  margin-top: 1px;
}

#interstitial-sec {
  color: #F97316;
  font-weight: 800;
}

/* =====================================================================
   RESPONSIVE BRIEF ADAPTATIONS: NARROW & SHORT MOBILE SCREENS
   ===================================================================== */

/* Narrow mobile screens (max-width: 360px):
   Prevent collision of duration pill, character names, and corridor badges */
@media (max-width: 360px) {
  #view-gauntlet_brief {
    padding: 8px 6px max(10px, env(safe-area-inset-bottom, 8px)) 6px !important;
  }

  .gauntlet-brief-wrap {
    padding: 6px 4px 2px 4px !important;
    gap: 6px !important;
  }

  .gauntlet-tag,
  .brief-pill {
    font-size: 0.58rem !important;
    padding: 2px 8px !important;
  }

  .gauntlet-title,
  .brief-title {
    font-size: 1.10rem !important;
  }

  .gauntlet-stage-card {
    padding: 6px 8px !important;
    gap: 4px !important;
  }

  .stage-card-left {
    gap: 6px !important;
    min-width: 0 !important;
  }

  .stage-step-ring {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    font-size: 0.60rem !important;
  }

  .stage-char-avatar {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    font-size: 0.72rem !important;
  }

  .stage-step-details {
    min-width: 0 !important;
    gap: 1px !important;
  }

  .stage-step-head {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    min-width: 0 !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
  }

  .stage-char-name {
    font-size: 0.74rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 95px !important;
    flex-shrink: 1 !important;
  }

  .stage-badge {
    font-size: 0.52rem !important;
    padding: 1px 4px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .stage-step-sub {
    font-size: 0.60rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .stage-duration-pill {
    font-size: 0.60rem !important;
    padding: 2px 5px !important;
    flex-shrink: 0 !important;
    margin-left: 2px !important;
  }

  .gauntlet-btn-row {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    width: 100% !important;
  }

  #btn-start-stage-1 {
    width: 100% !important;
    min-height: 42px !important;
    font-size: 0.84rem !important;
    padding: 8px 12px !important;
    white-space: nowrap !important;
  }

  #btn-brief-oldway {
    width: 100% !important;
    min-height: 36px !important;
    font-size: 0.76rem !important;
    padding: 6px 10px !important;
  }
}

/* Short mobile viewports (max-height: 720px: e.g. iPhone SE, toolbars):
   Compact cards and header so challenge CTA is always accessible */
@media (max-height: 720px) {
  #view-gauntlet_brief {
    padding: 6px 10px max(8px, env(safe-area-inset-bottom, 6px)) 10px !important;
  }

  .gauntlet-brief-wrap {
    padding: 6px 8px 2px 8px !important;
    gap: 6px !important;
    max-height: calc(100dvh - 50px) !important;
  }

  .gauntlet-tag,
  .brief-pill {
    padding: 2px 8px !important;
    font-size: 0.62rem !important;
    margin-bottom: 2px !important;
  }

  .gauntlet-title,
  .brief-title {
    font-size: 1.16rem !important;
    margin: 0 0 2px 0 !important;
    line-height: 1.15 !important;
  }

  .gauntlet-desc,
  .brief-subtitle {
    font-size: 0.72rem !important;
    line-height: 1.25 !important;
    max-width: 460px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .gauntlet-stages-grid {
    gap: 5px !important;
  }

  .gauntlet-stage-card {
    padding: 5px 8px !important;
    border-radius: 12px !important;
    gap: 6px !important;
  }

  .stage-card-left {
    gap: 8px !important;
  }

  .stage-step-ring {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    font-size: 0.64rem !important;
  }

  .stage-char-avatar {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    font-size: 0.75rem !important;
  }

  .stage-step-details {
    gap: 1px !important;
  }

  .stage-char-name {
    font-size: 0.78rem !important;
  }

  .stage-badge {
    font-size: 0.58rem !important;
    padding: 1px 6px !important;
  }

  .stage-step-sub {
    font-size: 0.65rem !important;
    line-height: 1.15 !important;
  }

  .stage-duration-pill {
    font-size: 0.65rem !important;
    padding: 2px 6px !important;
  }

  .gauntlet-actions {
    gap: 4px !important;
    margin-top: 2px !important;
    padding: 4px 0 max(4px, env(safe-area-inset-bottom, 4px)) 0 !important;
  }

  #btn-start-stage-1 {
    min-height: 42px !important;
    font-size: 0.84rem !important;
    padding: 8px 12px !important;
    border-radius: 12px !important;
  }

  #btn-brief-oldway {
    min-height: 42px !important;
    font-size: 0.78rem !important;
    padding: 8px 10px !important;
    border-radius: 12px !important;
  }

  .gauntlet-countdown-note {
    font-size: 0.68rem !important;
  }

  .btn-brief-pause {
    font-size: 0.64rem !important;
    padding: 1px 8px !important;
  }
}

/* Ultra-short viewports adaptation (max-height: 660px: 560px visible with browser toolbar) */
@media (max-height: 660px) {
  #view-gauntlet_brief {
    padding: 4px 6px max(6px, env(safe-area-inset-bottom, 4px)) 6px !important;
  }

  .gauntlet-brief-wrap {
    padding: 4px 6px 2px 6px !important;
    gap: 4px !important;
    max-height: calc(100dvh - 46px) !important;
  }

  .gauntlet-tag,
  .brief-pill {
    font-size: 0.56rem !important;
    padding: 1px 7px !important;
    margin-bottom: 1px !important;
  }

  .gauntlet-title,
  .brief-title {
    font-size: 1.05rem !important;
    margin: 0 0 1px 0 !important;
  }

  .gauntlet-desc,
  .brief-subtitle {
    font-size: 0.66rem !important;
    line-height: 1.2 !important;
    -webkit-line-clamp: 1 !important;
  }

  .gauntlet-stages-grid {
    gap: 4px !important;
  }

  .gauntlet-stage-card {
    padding: 4px 6px !important;
    border-radius: 10px !important;
    gap: 5px !important;
  }

  .stage-card-left {
    gap: 6px !important;
  }

  .stage-step-ring {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    font-size: 0.60rem !important;
  }

  .stage-char-avatar {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    font-size: 0.70rem !important;
  }

  .stage-char-name {
    font-size: 0.74rem !important;
  }

  .stage-badge {
    font-size: 0.54rem !important;
    padding: 0 5px !important;
  }

  .stage-step-sub {
    font-size: 0.60rem !important;
  }

  .stage-duration-pill {
    font-size: 0.60rem !important;
    padding: 1px 5px !important;
  }

  #btn-start-stage-1 {
    min-height: 38px !important;
    font-size: 0.80rem !important;
    padding: 6px 10px !important;
    border-radius: 10px !important;
  }

  #btn-brief-oldway {
    min-height: 38px !important;
    font-size: 0.74rem !important;
    padding: 6px 8px !important;
    border-radius: 10px !important;
  }

  .gauntlet-countdown-note {
    font-size: 0.64rem !important;
  }
}

@media (min-width: 600px) {
  #stage-interstitial-content {
    max-height: 620px;
  }
  .stage-interstitial-wrap {
    gap: 12px;
  }
  .interstitial-btn-grid {
    flex-direction: row;
    gap: 10px;
  }
  #btn-interstitial-continue {
    flex: 1.35;
    height: 48px;
  }
  #btn-interstitial-oldway {
    flex: 1;
    height: 48px;
  }
}

@media (min-width: 768px) {
  #gauntlet-brief-content {
    max-width: 780px !important;
  }

  .gauntlet-brief-wrap {
    padding: 24px 20px;
    gap: 16px;
    max-width: 780px !important;
  }

  .brief-title {
    font-size: 1.85rem;
  }

  .brief-subtitle {
    font-size: 0.90rem;
    max-width: 620px;
  }

  .gauntlet-stages-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .gauntlet-stage-card {
    padding: 14px 16px !important;
    border-radius: 18px !important;
  }

  .solution-headline {
    font-size: 1.35rem;
  }

  .solution-quote {
    font-size: 0.92rem;
  }

  /* Bonus Trivia Tablet Enhancements */
  #bonus-trivia-content {
    max-width: 680px !important;
    margin: auto !important;
  }

  .bonus-question-box {
    font-size: 1.25rem !important;
    padding: 22px 26px !important;
    border-radius: 18px !important;
  }

  .bonus-opt-btn {
    font-size: 1.05rem !important;
    padding: 16px 20px !important;
    border-radius: 18px !important;
    min-height: 56px !important;
  }

  .opt-letter {
    width: 36px !important;
    height: 36px !important;
    font-size: 1rem !important;
  }
}

@media (min-width: 1024px) {
  #gauntlet-brief-content {
    max-width: 860px !important;
  }

  .gauntlet-brief-wrap {
    max-width: 860px !important;
    padding: 32px 24px !important;
    gap: 20px !important;
  }

  .brief-title {
    font-size: 2.1rem !important;
  }

  .gauntlet-stages-grid {
    gap: 16px !important;
  }

  #btn-start-stage-1 {
    min-width: 280px !important;
    height: 52px !important;
    font-size: 1.05rem !important;
  }
}


/* =====================================================================
   3. BONUS TRIVIA SCREEN (OBSIDIAN & EMBER)
   ===================================================================== */
#view-bonus_trivia.active {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #0C0D12;
  overflow-y: auto !important;
  padding: 16px !important;
  box-sizing: border-box !important;
}

.bonus-trivia-wrap {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fadeInScale 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.bonus-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  border-radius: 9999px;
  background: rgba(232, 93, 34, 0.12);
  border: 1px solid rgba(232, 93, 34, 0.30);
  color: #F97316;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.bonus-title {
  font-family: var(--font-title, inherit);
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.025em;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

#bonus-question-box,
.bonus-question-box {
  background: #131722;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  margin: 12px 0 20px;
  width: 100%;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
  color: #F1F5F9;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
  text-align: center;
}

.bonus-options-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-bottom: 18px;
}

.bonus-opt-btn {
  background: #131722;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  font-size: 1.02rem;
  font-weight: 600;
  color: #F1F5F9;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 52px;
  width: 100%;
  box-sizing: border-box;
}

.bonus-opt-btn:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.20);
  background: #1C1F2B;
  transform: translateX(3px);
}

.bonus-opt-btn:disabled {
  cursor: default;
}

.opt-letter {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.92rem;
  color: #E2E8F0;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.opt-text {
  flex: 1;
}

.bonus-opt-btn.correct {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: #10B981 !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15) !important;
}

.bonus-opt-btn.correct .opt-letter {
  background: #10B981;
  color: #ffffff;
}

.bonus-opt-btn.incorrect {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: #EF4444 !important;
  color: #ffffff !important;
}

.bonus-opt-btn.incorrect .opt-letter {
  background: #EF4444;
  color: #ffffff;
}

.bonus-feedback-banner {
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 0.96rem;
  font-weight: 700;
  width: 100%;
  margin-bottom: 16px;
  animation: fadeIn 0.2s ease-out;
  box-sizing: border-box;
  text-align: center;
  line-height: 1.4;
}

.bonus-feedback-banner.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34D399; /* emerald-400 */
}

.bonus-feedback-banner.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #F87171; /* red-400 */
}

#btn-trivia-continue {
  background: linear-gradient(135deg, #E85D22 0%, #F97316 100%);
  border: none;
  border-radius: 16px;
  padding: 14px 34px;
  font-size: 1.08rem;
  font-weight: 800;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(232, 93, 34, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#btn-trivia-continue:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232, 93, 34, 0.45);
}

/* =====================================================================
   4. CELEBRATION & TOURNAMENT RESULTS SCREEN (REDESIGNED LUXE EDITION)
   ===================================================================== */
#view-executive_results.active {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: calc(100vh - var(--header-height, 52px)) !important;
  height: calc(100dvh - var(--header-height, 52px)) !important;
  max-height: calc(100dvh - var(--header-height, 52px)) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 12px 16px max(16px, env(safe-area-inset-bottom, 16px)) 16px !important;
  box-sizing: border-box !important;
  position: relative;
  background: #0B0E14;
}

[data-theme="light"] #view-executive_results.active {
  background: #FAF8F5 !important;
}

#executive-results-content {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.game-celebration-wrap {
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  animation: fadeInScale 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.celebration-confetti-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.confetti-particles-svg {
  width: 100%;
  height: 100%;
}

.celebration-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.celebration-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #F59E0B;
}

[data-theme="light"] .celebration-badge {
  background: linear-gradient(90deg, rgba(236, 72, 153, 0.1) 0%, rgba(245, 158, 11, 0.15) 50%, rgba(16, 185, 129, 0.1) 100%);
  border: 1px solid rgba(221, 90, 32, 0.25);
  color: #A21CAF;
}

.badge-star {
  font-size: 12px;
  color: #F59E0B;
}

.celebration-title {
  font-size: 2rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.15;
  text-align: center;
}

.celebration-title-mobile {
  display: none !important;
}

.celebration-title-desktop {
  display: block;
}

[data-theme="light"] .celebration-title {
  color: #2E1065;
}

.celebration-title .accent-orange {
  color: #FF6F32;
}

[data-theme="light"] .celebration-title .accent-orange {
  color: #DD5A20;
}

/* Celebratory Stand Callout Banner */
.celebration-stand-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px 18px;
  box-sizing: border-box;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.1);
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.12);
  animation: standBannerPulse 3.5s ease-in-out infinite alternate;
}

[data-theme="light"] .celebration-stand-banner {
  background: rgba(221, 90, 32, 0.07);
  border: 1.5px solid rgba(221, 90, 32, 0.25);
  box-shadow: 0 4px 16px rgba(221, 90, 32, 0.08);
}

.stand-banner-sparkle-svg {
  flex-shrink: 0;
  animation: sparkleTwinkle 2s ease-in-out infinite alternate;
}

.celebration-subtitle {
  font-size: 13.5px;
  color: #F8FAFC;
  margin: 0;
  line-height: 1.4;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.01em;
}

[data-theme="light"] .celebration-subtitle {
  color: #1E293B;
  font-weight: 600;
}

@media screen and (max-width: 767px) {
  .celebration-badge {
    display: none !important;
  }
  .celebration-title-desktop {
    display: none !important;
  }
  .celebration-title-mobile {
    display: block !important;
    font-size: 1.65rem !important;
    margin-bottom: 4px !important;
  }
  .celebration-stand-banner {
    padding: 8px 12px !important;
    gap: 6px !important;
  }
  .celebration-subtitle {
    font-size: 12px !important;
    line-height: 1.35 !important;
  }
}

/* Hero Golden Trophy Score Card */
.celebration-score-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-radius: 20px;
  padding: 14px 20px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #FFF9EA 0%, #FDE68A 25%, #F59E0B 75%, #D97706 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 14px 30px -6px rgba(217, 119, 6, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.8) !important;
}

@media screen and (max-width: 767px) {
  [data-theme="dark"] .celebration-score-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    gap: 8px !important;
  }
}

.celebration-trophy-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trophy-sparkle-rays {
  position: absolute;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.45) 0%, rgba(245, 158, 11, 0.15) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: pulseRays 3s ease-in-out infinite alternate;
}

@keyframes pulseRays {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 1; }
}

.celebration-trophy {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 12px rgba(217, 119, 6, 0.45));
}

.celebration-score-data {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  padding: 0 16px;
  gap: 2px;
}

@media screen and (max-width: 767px) {
  [data-theme="dark"] .celebration-score-data {
    align-items: center !important;
    padding: 0 !important;
  }
}

.celebration-score-label {
  display: inline-flex;
  align-items: center;
  background: rgba(180, 83, 9, 0.15);
  border-radius: 999px;
  padding: 3px 10px;
  color: #78350F;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.celebration-score-label-mobile {
  display: none !important;
}

.celebration-score-label-desktop {
  display: inline-flex;
}

[data-theme="dark"] .celebration-score-label {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #FBBF24;
}

@media screen and (max-width: 767px) {
  .celebration-score-label-desktop {
    display: none !important;
  }

  .celebration-score-label-mobile {
    display: inline-flex !important;
    margin: 2px auto 8px auto !important;
    padding: 4px 16px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
    border-radius: 999px !important;
    background: rgba(180, 83, 9, 0.12) !important;
    border: 1px solid rgba(180, 83, 9, 0.25) !important;
    color: #78350F !important;
  }

  [data-theme="dark"] .celebration-score-label-mobile {
    background: rgba(245, 158, 11, 0.15) !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
    color: #FBBF24 !important;
  }

  .celebration-score-card {
    padding: 10px 14px !important;
  }

  .celebration-score-data {
    align-items: center !important;
    padding: 0 8px !important;
  }

  .celebration-score-num {
    font-size: 36px !important;
  }

  .celebration-score-max {
    font-size: 16px !important;
  }
}

.celebration-score-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.celebration-score-num {
  font-size: 46px;
  font-weight: 900;
  color: #DC2626 !important;
  line-height: 1;
}

[data-theme="dark"] .celebration-score-num {
  color: #FFFFFF !important;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.4);
}

.celebration-score-max {
  font-size: 20px;
  font-weight: 800;
  color: #854D0E !important;
}

[data-theme="dark"] .celebration-score-max {
  color: #94A3B8 !important;
}

.celebration-winner-badge {
  background: linear-gradient(135deg, #FFFBEB 0%, #FDE047 50%, #F59E0B 100%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 14px rgba(180, 83, 9, 0.25);
  border-radius: 14px;
  padding: 8px 16px;
  text-align: center;
  flex-shrink: 0;
}

.winner-ribbon-text {
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  color: #78350F;
  text-transform: uppercase;
}

@media screen and (max-width: 767px) {
  [data-theme="dark"] .celebration-winner-badge {
    display: none !important;
  }
}

/* Metrics Section (2x2 Grid + Circular Accuracy Gauge) */
.celebration-metrics-container {
  display: flex;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}

.celebration-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  flex: 1;
}

.stat-grid-item {
  border-radius: 14px;
  padding: 10px 14px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  background: #141824;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .stat-grid-item {
  background: #FFFFFF !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04) !important;
}

.stat-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon-wrap.icon-green {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.stat-icon-wrap.icon-blue {
  background: rgba(59, 130, 246, 0.12);
  color: #2563EB;
}

.stat-icon-wrap.icon-red {
  background: rgba(239, 68, 68, 0.12);
  color: #DC2626;
}

.stat-text-wrap {
  display: flex;
  flex-direction: column;
}

.stat-grid-val {
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.15;
}

.stat-val-mobile {
  display: none;
}

.stat-val-desktop {
  display: inline;
}

[data-theme="light"] .stat-grid-val {
  color: #0F172A;
}

.stat-grid-lbl {
  font-size: 8.5px;
  font-weight: 700;
  color: #94A3B8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

[data-theme="light"] .stat-grid-lbl {
  color: #64748B;
}

@media screen and (max-width: 767px) {
  .stat-icon-wrap {
    display: none !important;
  }
  .stat-val-desktop {
    display: none !important;
  }
  .stat-val-mobile {
    display: inline !important;
  }
  .stat-grid-val {
    font-size: 22px !important;
  }
  .stat-grid-item {
    padding: 12px 14px !important;
    min-height: 68px !important;
  }
}

/* Corner indicator pills on mobile dark mode */
.stat-corner-pill {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 20px;
  height: 5px;
  border-radius: 999px;
  display: none;
}

[data-theme="dark"] .stat-corner-pill {
  display: block;
}

[data-theme="dark"] .pill-green { background: #10B981; }
[data-theme="dark"] .pill-blue { background: #3B82F6; }
[data-theme="dark"] .pill-cyan { background: #06B6D4; }
[data-theme="dark"] .pill-teal { background: #14B8A6; }

/* Circular Donut Card on Tablet / Desktop */
.celebration-donut-card {
  width: 110px;
  border-radius: 14px;
  padding: 8px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #141824;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .celebration-donut-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04) !important;
}

.donut-lbl {
  font-size: 8.5px;
  font-weight: 700;
  color: #94A3B8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

[data-theme="light"] .donut-lbl {
  color: #64748B;
}

.donut-wrap {
  position: relative;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.donut-val {
  position: absolute;
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF;
}

[data-theme="light"] .donut-val {
  color: #0F172A;
}

.donut-bg {
  stroke: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .donut-bg {
  stroke: #E2E8F0;
}

.donut-fg {
  stroke: #10B981;
}

[data-theme="light"] .donut-fg {
  stroke: #334155;
}

@media screen and (max-width: 767px) {
  .celebration-donut-card {
    display: none !important;
  }
}

/* Confetti Dynamic Animations */
.c-anim-1 {
  animation: confettiFloat1 5s ease-in-out infinite alternate;
  transform-origin: center;
}
.c-anim-2 {
  animation: confettiFloat2 6s ease-in-out infinite alternate;
  transform-origin: center;
}
.c-anim-3 {
  animation: confettiFloat3 5.5s ease-in-out infinite alternate;
  transform-origin: center;
}
.c-anim-4 {
  animation: confettiFloat4 6.5s ease-in-out infinite alternate;
  transform-origin: center;
}

@keyframes confettiFloat1 {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(8px, 14px) rotate(45deg); }
  100% { transform: translate(-8px, 24px) rotate(90deg); }
}

@keyframes confettiFloat2 {
  0% { transform: translate(0, 0) rotate(0deg) scale(0.9); }
  50% { transform: translate(-10px, 16px) rotate(-60deg) scale(1.1); }
  100% { transform: translate(6px, 28px) rotate(-120deg) scale(1); }
}

@keyframes confettiFloat3 {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(10px, 18px) rotate(90deg); }
  100% { transform: translate(-10px, 30px) rotate(180deg); }
}

@keyframes confettiFloat4 {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-12px, 14px) rotate(-45deg); }
  100% { transform: translate(10px, 26px) rotate(-90deg); }
}

.celebration-trophy {
  animation: trophyFloat 3.5s ease-in-out infinite alternate;
}

@keyframes trophyFloat {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-4px) scale(1.03); }
}

.trophy-sparkle-rays {
  animation: raysRotate 14s linear infinite;
}

@keyframes raysRotate {
  0% { transform: rotate(0deg) scale(0.95); opacity: 0.6; }
  50% { transform: rotate(180deg) scale(1.12); opacity: 0.95; }
  100% { transform: rotate(360deg) scale(0.95); opacity: 0.6; }
}

@keyframes standBannerPulse {
  0% { transform: scale(0.99); box-shadow: 0 4px 12px rgba(245, 158, 11, 0.08); }
  100% { transform: scale(1.01); box-shadow: 0 6px 20px rgba(245, 158, 11, 0.22); }
}

@keyframes sparkleTwinkle {
  0% { transform: scale(0.85) rotate(0deg); opacity: 0.7; }
  100% { transform: scale(1.2) rotate(15deg); opacity: 1; }
}

@keyframes primaryBtnGlow {
  0% { box-shadow: 0 6px 18px rgba(221, 90, 32, 0.35); }
  100% { box-shadow: 0 8px 24px rgba(221, 90, 32, 0.6), 0 0 14px rgba(255, 111, 50, 0.45); }
}

/* Action Buttons */
.celebration-actions-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.btn-pill-primary {
  width: 100%;
  min-height: 48px;
  border-radius: 999px !important;
  font-size: 15.5px !important;
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  background: linear-gradient(135deg, #FF6F32 0%, #DD5A20 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
  box-shadow: 0 6px 18px rgba(221, 90, 32, 0.35) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  animation: primaryBtnGlow 2.5s ease-in-out infinite alternate;
}

.btn-pill-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-pill-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(221, 90, 32, 0.5) !important;
}

[data-theme="dark"] .btn-pill-primary {
  background: linear-gradient(135deg, #321659 0%, #1E0C38 100%) !important;
  border: 1.5px solid #7C3AED !important;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3) !important;
}

.btn-pill-secondary {
  width: 100%;
  min-height: 48px;
  border-radius: 999px !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  background: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
  color: #0F172A !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn-pill-secondary:hover {
  transform: translateY(-2px);
  background: #F8FAFC !important;
  border-color: #94A3B8 !important;
}

[data-theme="dark"] .btn-pill-secondary {
  background: linear-gradient(135deg, #FF6F32 0%, #DD5A20 100%) !important;
  border: none !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(221, 90, 32, 0.4) !important;
}

.celebration-stages-row,
.celebration-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  width: 100%;
  box-sizing: border-box;
}

.celebration-stage-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #131722;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 6px 10px;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.celebration-stage-pill:hover {
  background: #1C1F2B;
  border-color: rgba(255, 255, 255, 0.16);
}

.celebration-stage-pill.bonus-pill,
.celebration-stage-pill.bonus-card {
  grid-column: 1 / -1;
  background: #14161F;
  border-color: rgba(232, 93, 34, 0.25);
}

.stage-pill-char {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.80rem;
  color: #ffffff;
  flex-shrink: 0;
}

.stage-pill-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.stage-pill-name {
  font-size: 0.70rem;
  font-weight: 700;
  color: #94A3B8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stage-pill-pts {
  font-size: 0.84rem;
  font-weight: 800;
  color: #ffffff;
}

.stage-pill-pts.bonus-pts {
  color: #FB923C; /* orange-400 */
}

.celebration-impact-banner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  background: #131722;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 14px 12px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.celebration-impact-banner .impact-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
  flex: 1;
}

.celebration-impact-banner .impact-stat-val {
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.1;
}

.celebration-impact-banner .impact-stat-val.good {
  color: #10B981; /* emerald-500 */
}

.celebration-impact-banner .impact-stat-lbl {
  font-size: 0.68rem;
  font-weight: 600;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.25;
}

.celebration-impact-banner .impact-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.08);
}

.celebration-actions-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  align-items: stretch;
  box-sizing: border-box;
  flex-shrink: 0;
  margin-top: 2px;
}

#btn-exec-replay {
  width: 100%;
  height: 52px;
  min-height: 52px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  border-radius: 16px;
  background: linear-gradient(135deg, #E85D22 0%, #F97316 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 8px 25px rgba(232, 93, 34, 0.40);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

#btn-exec-replay:hover {
  background: linear-gradient(135deg, #F0682E 0%, #FB923C 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(232, 93, 34, 0.50);
}

#btn-stand,
#btn-exec-switch-player,
.celebration-rank-pill,
.btn-view-leaderboard,
#btn-view-leaderboard,
#btn-results-leaderboard,
#btn-final-leaderboard {
  display: none !important;
}

@media (max-width: 480px) {
  #view-executive_results.active {
    padding: 12px 14px max(14px, env(safe-area-inset-bottom, 14px)) 14px !important;
  }
  .game-celebration-wrap {
    gap: 12px !important;
  }
  .celebration-title {
    font-size: 1.55rem !important;
  }
  .celebration-subtitle {
    font-size: 0.80rem !important;
  }
  .celebration-score-card {
    padding: 14px 16px !important;
    gap: 12px !important;
  }
  .celebration-trophy-box {
    width: 50px !important;
    height: 50px !important;
  }
  .celebration-trophy {
    font-size: 1.7rem !important;
  }
  .celebration-score-num {
    font-size: 1.85rem !important;
  }
  .celebration-impact-banner {
    padding: 12px 8px !important;
  }
  .celebration-impact-banner .impact-stat-val {
    font-size: 1.15rem !important;
  }
  .celebration-impact-banner .impact-stat-lbl {
    font-size: 0.64rem !important;
  }
  .btn-sub-action {
    font-size: 0.78rem !important;
    padding: 10px 6px !important;
  }
}

@media (min-width: 768px) {
  #view-executive_results.active {
    justify-content: center !important;
    align-items: center !important;
    padding: 24px 32px !important;
  }

  #executive-results-content {
    max-width: 680px !important;
    margin: 0 auto !important;
    height: auto !important;
    max-height: 94vh !important;
    justify-content: center !important;
  }

  .game-celebration-wrap {
    max-width: 680px !important;
    max-height: none !important;
    gap: 16px !important;
    margin: 0 auto !important;
  }

  .celebration-title {
    font-size: 2.1rem !important;
  }

  .celebration-subtitle {
    font-size: 0.92rem !important;
  }

  .celebration-score-card {
    padding: 20px 24px !important;
    border-radius: 20px !important;
  }

  .celebration-trophy-box {
    width: 68px !important;
    height: 68px !important;
    border-radius: 18px !important;
  }

  .celebration-score-num {
    font-size: 2.3rem !important;
  }

  .celebration-stages-row,
  .celebration-breakdown-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px !important;
  }

  .celebration-stage-pill.bonus-pill,
  .celebration-stage-pill.bonus-card {
    grid-column: 1 / -1 !important;
  }

  .celebration-impact-banner {
    padding: 16px 22px !important;
    border-radius: 18px !important;
  }

  .celebration-impact-banner .impact-stat-val {
    font-size: 1.45rem !important;
  }

  #btn-exec-replay {
    max-width: 440px !important;
    margin: 0 auto !important;
    height: 54px !important;
    font-size: 1.05rem !important;
  }
}

@media (min-width: 1024px) {
  #executive-results-content {
    max-width: 740px !important;
  }

  .game-celebration-wrap {
    max-width: 740px !important;
    gap: 20px !important;
  }

  .celebration-title {
    font-size: 2.35rem !important;
  }

  .celebration-score-card {
    padding: 22px 26px !important;
  }

  .celebration-score-num {
    font-size: 2.5rem !important;
  }

  .celebration-impact-banner .impact-stat-val {
    font-size: 1.6rem !important;
  }
}

.executive-results-wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.3s ease-out;
  max-height: 92vh;
  overflow-y: auto;
}

.exec-header-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.exec-title-group {
  text-align: left;
}

.exec-tag {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--starks-orange);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.exec-main-title {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
}

.exec-score-box {
  background: linear-gradient(135deg, rgba(221, 90, 32, 0.15) 0%, rgba(238, 119, 42, 0.25) 100%);
  border: 1px solid var(--starks-orange);
  border-radius: var(--radius-md);
  padding: 10px 20px;
  text-align: right;
}

.exec-score-lbl {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--starks-almond);
  text-transform: uppercase;
}

.exec-score-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.exec-rank-pill {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--starks-green);
}

.exec-breakdown-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  width: 100%;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .exec-breakdown-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

.breakdown-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  text-align: center;
}

.breakdown-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
}

.breakdown-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.exec-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .exec-comparison-grid {
    grid-template-columns: 1fr;
  }
}

.exec-card {
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.exec-card-old {
  background: rgba(60, 60, 60, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.exec-card-starks {
  background: linear-gradient(135deg, rgba(221, 90, 32, 0.12) 0%, rgba(69, 32, 124, 0.18) 100%);
  border: 1.5px solid var(--starks-orange);
  box-shadow: 0 8px 24px rgba(221, 90, 32, 0.2);
}

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

.exec-side-badge {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.exec-card-old .exec-side-badge {
  background: rgba(239, 68, 68, 0.15);
  color: var(--starks-red);
}

.exec-card-starks .exec-side-badge {
  background: var(--starks-orange);
  color: var(--starks-black);
}

.exec-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.exec-metric-lbl {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
}

.exec-metric-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.exec-metric-val.bad {
  color: var(--starks-red);
}

.exec-metric-val.good {
  color: var(--starks-green);
  font-weight: 800;
}

.exec-highlight-bar {
  width: 100%;
  background: linear-gradient(90deg, rgba(221, 90, 32, 0.25) 0%, rgba(16, 185, 129, 0.25) 100%);
  border: 1px solid var(--starks-orange);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-bottom: 22px;
  text-align: center;
}

.highlight-stat-item {
  display: flex;
  flex-direction: column;
}

.highlight-stat-lbl {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--starks-almond);
  text-transform: uppercase;
}

.highlight-stat-val {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
}

.exec-actions-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  margin-bottom: 16px;
}

.btn-stand {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-text-link {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 8px;
}

.btn-text-link:hover {
  color: var(--text-secondary);
}

/* =====================================================================
   5. LEADERBOARD SCREEN
   ===================================================================== */
.leaderboard-view-wrap {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.3s ease-out;
  max-height: 92vh;
  overflow-y: auto;
}

.lb-title-wrap {
  text-align: center;
  margin-bottom: 16px;
}

.lb-tag {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--starks-orange);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lb-main-title {
  font-family: var(--font-title);
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
}

.my-rank-spotlight {
  width: 100%;
  background: linear-gradient(135deg, rgba(221, 90, 32, 0.18) 0%, rgba(69, 32, 124, 0.22) 100%);
  border: 1.5px solid var(--starks-orange);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(221, 90, 32, 0.25);
}

.spotlight-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.spotlight-rank-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--starks-orange);
  color: var(--starks-black);
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.spotlight-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.spotlight-company {
  font-size: 0.85rem;
  color: var(--starks-almond);
}

.spotlight-right {
  text-align: right;
}

.spotlight-score {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
}

.spotlight-sub {
  font-size: 0.8rem;
  color: var(--starks-green);
  font-weight: 700;
}

.lb-table-wrap {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 22px;
}

.lb-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.lb-table th {
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
}

.lb-table td {
  padding: 12px 16px;
  font-size: 0.92rem;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.lb-table tr:last-child td {
  border-bottom: none;
}

.lb-rank-num {
  font-weight: 800;
  color: var(--starks-gold);
}

.lb-score-cell {
  font-weight: 800;
  color: #fff;
}

.lb-actions-row {
  display: flex;
  gap: 14px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =====================================================================
   Theme Support: Light & Dark Mode
   ===================================================================== */
/* Brief Screen */
[data-theme="light"] #view-gauntlet_brief {
  background: #FFFFFF;
}

[data-theme="light"] .gauntlet-stage-card {
  background: #FFFFFF;
  color: #040404;
  border: 1px solid rgba(60, 60, 60, 0.14);
}

[data-theme="light"] .gauntlet-stage-card:hover {
  background: #FFF7F2;
  border-color: #DD5A20;
}

[data-theme="light"] .stage-char-name {
  color: #040404;
}

[data-theme="light"] .stage-step-sub {
  color: #3C3C3C;
}

[data-theme="light"] .gauntlet-title,
[data-theme="light"] .brief-title {
  color: #040404;
}

[data-theme="light"] .gauntlet-desc,
[data-theme="light"] .brief-subtitle {
  color: #3C3C3C;
}

[data-theme="light"] #btn-brief-oldway {
  background: #F8F9FA;
  border: 1px solid rgba(60, 60, 60, 0.15);
  color: #040404;
}

[data-theme="light"] #btn-brief-oldway:hover {
  background: #FFF7F2;
  border-color: #DD5A20;
}

[data-theme="light"] #btn-start-stage-1 {
  background: #DD5A20;
  color: #040404;
}

[data-theme="light"] .gauntlet-actions {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.94) 22%, #FFFFFF 100%);
}

[data-theme="light"] .gauntlet-countdown-note {
  color: #3C3C3C;
}

[data-theme="light"] .btn-brief-pause {
  background: #F4F3F7;
  border: 1px solid rgba(60, 60, 60, 0.15);
  color: #3C3C3C;
}

/* Interstitial Screen */
[data-theme="light"] #view-stage_interstitial {
  background: #FFFFFF;
}

[data-theme="light"] .interstitial-solution-card {
  background: #FFF7F2;
  border: 1.5px solid #DD5A20;
  color: #040404;
  box-shadow: 0 4px 16px rgba(221, 90, 32, 0.1);
}

[data-theme="light"] .solution-headline {
  color: #040404;
}

[data-theme="light"] .solution-quote {
  color: #3C3C3C;
}

[data-theme="light"] .interstitial-next-card {
  background: #FFFFFF;
  border: 1px solid rgba(60, 60, 60, 0.14);
  color: #040404;
}

[data-theme="light"] .next-char-name,
[data-theme="light"] .next-card-name {
  color: #040404 !important;
}

[data-theme="light"] .next-card-country {
  color: #64748B !important;
}

[data-theme="light"] .next-preview-card,
[data-theme="light"] .next-up-card {
  background: #FFFFFF !important;
  border: 1.5px solid #E2E8F0 !important;
  color: #040404 !important;
}

[data-theme="light"] .success-banner-stage {
  color: #065F46 !important;
  background: #D1FAE5 !important;
  border: 1px solid #6EE7B7 !important;
}

[data-theme="light"] .success-banner-score,
[data-theme="light"] .success-banner-score .pts-unit {
  color: #047857 !important;
}

[data-theme="light"] .success-banner-earned {
  color: #065F46 !important;
}

[data-theme="light"] .solution-metric-pill {
  color: #065F46 !important;
  background: #D1FAE5 !important;
  border: 1px solid #A7F3D0 !important;
}

[data-theme="light"] .next-card-subtitle {
  color: #3C3C3C;
}

[data-theme="light"] .interstitial-success-banner {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

[data-theme="light"] .success-banner-title {
  color: #040404;
}

[data-theme="light"] .btn-interstitial-continue {
  background: #DD5A20;
  color: #040404;
}

/* Bonus Trivia Screen */
[data-theme="light"] #view-bonus_trivia.active {
  background: #FFFFFF;
}

[data-theme="light"] .bonus-title {
  color: #040404;
}

[data-theme="light"] #bonus-question-box,
[data-theme="light"] .bonus-question-box {
  background: #FFFFFF;
  border: 1px solid rgba(60, 60, 60, 0.14);
  color: #040404;
  box-shadow: 0 4px 16px rgba(4, 4, 4, 0.06);
}

[data-theme="light"] .bonus-opt-btn {
  background: #F8F9FA;
  border: 1px solid rgba(60, 60, 60, 0.15);
  color: #040404;
}

[data-theme="light"] .bonus-opt-btn:hover:not(:disabled) {
  background: #FFF7F2;
  border-color: #DD5A20;
  color: #040404;
}

[data-theme="light"] .opt-letter {
  background: #F4F3F7;
  border: 1px solid rgba(60, 60, 60, 0.15);
  color: #040404;
}

[data-theme="light"] .bonus-opt-btn.correct {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: #10B981 !important;
  color: #040404 !important;
}

[data-theme="light"] .bonus-opt-btn.correct .opt-letter {
  background: #10B981;
  color: #FFFFFF;
}

[data-theme="light"] .bonus-opt-btn.incorrect {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: #EF4444 !important;
  color: #040404 !important;
}

[data-theme="light"] .bonus-opt-btn.incorrect .opt-letter {
  background: #EF4444;
  color: #FFFFFF;
}

[data-theme="light"] #btn-trivia-continue {
  background: #DD5A20;
  color: #040404;
}

/* Executive Results / Celebration Screen */
[data-theme="light"] #view-executive_results.active {
  background: #FFFFFF;
}

[data-theme="light"] .executive-results-wrap,
[data-theme="light"] .game-celebration-wrap {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  color: #040404;
}

[data-theme="light"] .exec-main-title,
[data-theme="light"] .celebration-title {
  color: #040404;
}

[data-theme="light"] .exec-score-box {
  background: #FFF7F2;
  border: 1px solid #DD5A20;
}

[data-theme="light"] .exec-score-lbl {
  color: #DD5A20;
}

[data-theme="light"] .exec-score-num {
  color: #040404;
}

[data-theme="light"] .breakdown-item,
[data-theme="light"] .summary-card {
  background: #F8F9FA;
  border: 1px solid rgba(60, 60, 60, 0.14);
  color: #040404;
}

[data-theme="light"] .breakdown-label {
  color: #3C3C3C;
}

[data-theme="light"] .breakdown-val {
  color: #040404;
}

[data-theme="light"] .exec-card {
  color: #040404;
}

[data-theme="light"] .exec-card-old {
  background: #F8F9FA;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

[data-theme="light"] .exec-card-starks {
  background: #FFF7F2;
  border: 1.5px solid #DD5A20;
  box-shadow: 0 4px 16px rgba(221, 90, 32, 0.15);
}

[data-theme="light"] .exec-metric-row {
  border-bottom: 1px solid rgba(60, 60, 60, 0.1);
}

[data-theme="light"] .exec-metric-lbl {
  color: #3C3C3C;
}

[data-theme="light"] .exec-metric-val {
  color: #040404;
}

[data-theme="light"] .celebration-badge-hero {
  background: #FFF7F2;
  border: 1px solid rgba(221, 90, 32, 0.3);
}

[data-theme="light"] .celebration-badge-title {
  color: #040404;
}

[data-theme="light"] .celebration-badge-desc {
  color: #3C3C3C;
}

[data-theme="light"] .celebration-stat-card {
  background: #F8F9FA;
  border: 1px solid rgba(60, 60, 60, 0.14);
}

[data-theme="light"] .celebration-stat-lbl {
  color: #3C3C3C;
}

[data-theme="light"] .celebration-stat-val {
  color: #040404;
}

[data-theme="light"] .celebration-score-card {
  background: #FFFFFF !important;
  border: 1.5px solid #E2E8F0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .celebration-score-row {
  color: #040404 !important;
}

[data-theme="light"] .celebration-score-num {
  color: #DD5A20 !important;
}

[data-theme="light"] .celebration-score-label {
  color: #64748B !important;
}

[data-theme="light"] .celebration-score-max {
  color: #94A3B8 !important;
}

[data-theme="light"] .celebration-progress-bar {
  background: #E2E8F0 !important;
}

[data-theme="light"] .celebration-impact-banner {
  background: #FFFFFF !important;
  border: 1.5px solid #E2E8F0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
  color: #040404 !important;
}

[data-theme="light"] .celebration-impact-banner .impact-stat-val.good {
  color: #059669 !important;
}

[data-theme="light"] .celebration-impact-banner .impact-stat-lbl {
  color: #64748B !important;
}

[data-theme="light"] .impact-divider {
  background: #E2E8F0 !important;
}

[data-theme="light"] .celebration-badge {
  color: #C2410C !important;
  background: #FFEDD5 !important;
  border: 1px solid #FDBA74 !important;
}

.celebration-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
  margin: 10px 0;
  box-sizing: border-box;
}

.stat-grid-item {
  background: #14161F;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.stat-grid-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
}

.stat-grid-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

[data-theme="light"] .stat-grid-item {
  background: #F8FAFC !important;
  border: 1.5px solid #E2E8F0 !important;
}

[data-theme="light"] .stat-grid-val {
  color: #0F172A !important;
}

[data-theme="light"] .stat-grid-lbl {
  color: #64748B !important;
}

[data-theme="light"] .celebration-actions-row .btn-secondary,
[data-theme="light"] #btn-exec-replay,
[data-theme="light"] #btn-results-leaderboard-visible {
  background: #F1F5F9 !important;
  color: #0F172A !important;
  border: 1.5px solid #CBD5E1 !important;
}

[data-theme="light"] .celebration-actions-row .btn-secondary span,
[data-theme="light"] #btn-exec-replay span,
[data-theme="light"] #btn-results-leaderboard-visible span {
  color: #0F172A !important;
}

[data-theme="light"] .celebration-actions-row .btn-secondary:hover,
[data-theme="light"] #btn-exec-replay:hover,
[data-theme="light"] #btn-results-leaderboard-visible:hover {
  background: #E2E8F0 !important;
  color: #040404 !important;
}

/* Light mode for Story / Character selection screens */
[data-theme="light"] #view-gauntlet_brief.view-has-story {
  background: #F8F9FA !important;
  color: #040404 !important;
}

[data-theme="light"] .story-hero-title {
  color: #040404 !important;
}

[data-theme="light"] .story-hero-subtitle {
  color: #4B5563 !important;
}

[data-theme="light"] .char-title-name {
  color: #040404 !important;
}

[data-theme="light"] .char-title-role {
  color: #64748B !important;
}

[data-theme="light"] .card-nana .story-corridor-badge {
  color: #C2410C !important;
  background: #FFEDD5 !important;
  border: 1px solid #FDBA74 !important;
}

[data-theme="light"] .card-ali .story-corridor-badge {
  color: #6D28D9 !important;
  background: #F3E8FF !important;
  border: 1px solid #D8B4FE !important;
}

[data-theme="light"] .ali-coin {
  background: #6D28D9 !important;
  color: #FFFFFF !important;
  border: 1.5px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 2px 8px rgba(109, 40, 217, 0.3) !important;
}

[data-theme="light"] .btn-play-nana {
  background: #DD5A20 !important;
  color: #FFFFFF !important;
}

[data-theme="light"] .btn-play-ali {
  background: #6D28D9 !important;
  color: #FFFFFF !important;
}

[data-theme="light"] .btn-primary {
  background: #DD5A20 !important;
  color: #FFFFFF !important;
}

[data-theme="light"] .story-char-card {
  background: #FFFFFF !important;
  border: 1.5px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
  color: #040404 !important;
}

[data-theme="light"] .story-char-name {
  color: #040404 !important;
}

[data-theme="light"] .story-char-desc {
  color: #374151 !important;
}

[data-theme="light"] .highlight-nana-text {
  color: #DD5A20 !important;
  font-weight: 700 !important;
}

[data-theme="light"] .story-char-meta {
  color: #6B7280 !important;
}

[data-theme="light"] .story-char-tags-row {
  color: #374151 !important;
}

[data-theme="light"] .story-brand-eyebrow {
  color: #C2410C !important;
  background: #FFEDD5 !important;
  border: 1px solid #FDBA74 !important;
}

[data-theme="light"] .btn-story-skip {
  color: #374151 !important;
  background: #F3F4F6 !important;
  border: 1px solid #E5E7EB !important;
}

[data-theme="light"] .story-screen-title {
  color: #040404 !important;
}

[data-theme="light"] .story-screen-subtitle {
  color: #4B5563 !important;
}

[data-theme="light"] .story-card-visual.nana-visual {
  background: #FFF7ED !important;
  border: 1px solid #FFEDD5 !important;
}

[data-theme="light"] .story-card-visual.ali-visual {
  background: #F5F3FF !important;
  border: 1px solid #EDE9FE !important;
}

[data-theme="light"] .story-walkthrough-panel {
  background: #FFFFFF !important;
  border: 1.5px solid rgba(0, 0, 0, 0.08) !important;
  color: #040404 !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .story-step-heading {
  color: #040404 !important;
}

[data-theme="light"] .story-step-desc {
  color: #374151 !important;
}

/* Light Theme for 4-Step Storyboard Walkthrough */
[data-theme="light"] .story-progress-indicator {
  background: #E2E8F0 !important;
  box-shadow: none !important;
}

[data-theme="light"] .story-progress-indicator.active {
  background: #DD5A20 !important;
  box-shadow: none !important;
}

[data-theme="light"] .story-progress-indicator.active-ali {
  background: #7C3AED !important;
  box-shadow: none !important;
}

[data-theme="light"] .story-hero-avatar-large.avatar-nana {
  background: linear-gradient(135deg, #FF6F32 0%, #DD5A20 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(221, 90, 32, 0.35) !important;
}

[data-theme="light"] .story-hero-avatar-large.avatar-ali {
  background: linear-gradient(135deg, #9333EA 0%, #6D28D9 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(109, 40, 217, 0.35) !important;
}

[data-theme="light"] .story-step2-avatar-tag.avatar-nana {
  background: #DD5A20 !important;
  color: #ffffff !important;
}

[data-theme="light"] .story-step2-avatar-tag.avatar-ali {
  background: #7C3AED !important;
  color: #ffffff !important;
}

[data-theme="light"] .story-step-text {
  color: #64748B !important;
}

/* Step 1 Light Mode */
[data-theme="light"] .story-slide-hero {
  background: #FFFFFF !important;
  border: 1.5px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
  color: #0F172A !important;
}

[data-theme="light"] .story-slide-hero.hero-nana-theme {
  border-color: rgba(221, 90, 32, 0.35) !important;
}

[data-theme="light"] .story-slide-hero.hero-ali-theme {
  border-color: rgba(139, 92, 246, 0.35) !important;
}

[data-theme="light"] .story-headline-title {
  color: #0F172A !important;
}

[data-theme="light"] .story-body-copy {
  color: #334155 !important;
}

[data-theme="light"] .story-body-copy strong {
  color: #0F172A !important;
}

[data-theme="light"] .story-request-pill {
  background: #FFF7ED !important;
  border-color: rgba(221, 90, 32, 0.4) !important;
  color: #9A3412 !important;
  box-shadow: none !important;
}

[data-theme="light"] .story-request-pill strong {
  color: #C2410C !important;
}

[data-theme="light"] .hero-ali-theme .story-request-pill {
  background: #F5F3FF !important;
  border-color: rgba(139, 92, 246, 0.4) !important;
  color: #5B21B6 !important;
  box-shadow: none !important;
}

[data-theme="light"] .hero-ali-theme .story-request-pill strong {
  color: #6D28D9 !important;
}

/* Steps 2 & 3 Headers */
[data-theme="light"] .story-grid-title {
  color: #0F172A !important;
}

[data-theme="light"] .story-grid-subtitle {
  color: #475569 !important;
}

[data-theme="light"] .story-step2-avatar-tag {
  border: 1.5px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* Step 2: Pain Cards Light Mode */
[data-theme="light"] .story-pain-card {
  background: #FFFFFF !important;
  border: 1.5px solid rgba(249, 115, 22, 0.35) !important;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.08) !important;
}

[data-theme="light"] .story-pain-card:hover {
  border-color: rgba(249, 115, 22, 0.6) !important;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.15) !important;
}

[data-theme="light"] .pain-icon-wrapper {
  background: #FFEDD5 !important;
}

[data-theme="light"] .pain-card-tag {
  color: #C2410C !important;
}

[data-theme="light"] .pain-card-quote {
  color: #1E293B !important;
}

/* Step 3: Solution Cards Light Mode */
[data-theme="light"] .eyebrow-starks-way {
  color: #047857 !important;
  background: #D1FAE5 !important;
  border: 1px solid #6EE7B7 !important;
}

[data-theme="light"] .story-solution-card {
  background: #FFFFFF !important;
  border: 1.5px solid rgba(16, 185, 129, 0.35) !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.08) !important;
}

[data-theme="light"] .story-solution-card:hover {
  border-color: rgba(16, 185, 129, 0.6) !important;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15) !important;
}

[data-theme="light"] .sol-icon-wrapper {
  background: #D1FAE5 !important;
}

[data-theme="light"] .sol-card-title {
  color: #064E3B !important;
}

[data-theme="light"] .sol-card-tag {
  background: #ECFDF5 !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  color: #047857 !important;
}

[data-theme="light"] .sol-card-desc {
  color: #334155 !important;
}

[data-theme="light"] .story-highlight-tagline {
  background: linear-gradient(90deg, #059669 0%, #0284C7 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Step 4: Your Turn Light Mode */
[data-theme="light"] .story-slide-your-turn {
  background: #FFFFFF !important;
  border: 1.5px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .eyebrow-gold {
  color: #B45309 !important;
  background: #FEF3C7 !important;
  border: 1px solid #FCD34D !important;
}

[data-theme="light"] .text-gold-accent {
  color: #D97706 !important;
}

[data-theme="light"] .story-rule-pill {
  color: #1E293B !important;
}

[data-theme="light"] .story-rule-pill strong {
  color: #0F172A !important;
}

[data-theme="light"] .story-rule-pill.rule-right {
  background: #ECFDF5 !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
}

[data-theme="light"] .story-rule-pill.rule-wrong {
  background: #FFF1F2 !important;
  border-color: rgba(244, 63, 94, 0.4) !important;
}

[data-theme="light"] .story-rule-pill.rule-quick {
  background: #FFFBEB !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
}

/* Action Controls Light Mode */
[data-theme="light"] .story-btn-back {
  background: #F1F5F9 !important;
  border: 1px solid #CBD5E1 !important;
  color: #475569 !important;
}

[data-theme="light"] .story-btn-back:hover {
  background: #E2E8F0 !important;
  color: #0F172A !important;
  border-color: #94A3B8 !important;
}

[data-theme="light"] .pain-point-card {
  background: #FEF2F2 !important;
  border: 1.5px solid #FECACA !important;
}

[data-theme="light"] .pain-title {
  color: #991B1B !important;
}

[data-theme="light"] .pain-desc {
  color: #B91C1C !important;
}

[data-theme="light"] .solution-point-card {
  background: #F0FDF4 !important;
  border: 1.5px solid #BBF7D0 !important;
}

[data-theme="light"] .sol-title {
  color: #166534 !important;
}

[data-theme="light"] .sol-desc {
  color: #15803D !important;
}

[data-theme="light"] .rule-pill-card {
  background: #F8FAFC !important;
  border: 1.5px solid #E2E8F0 !important;
}

[data-theme="light"] .rule-strong {
  color: #0F172A !important;
}

[data-theme="light"] .rule-body {
  color: #475569 !important;
}

[data-theme="light"] .desk-amount-banner {
  background: #FFF7ED !important;
  border: 1.5px solid #FFEDD5 !important;
}

[data-theme="light"] .desk-amt-label {
  color: #C2410C !important;
}

[data-theme="light"] .desk-amt-val {
  color: #9A3412 !important;
}

[data-theme="light"] .bonus-badge {
  color: #C2410C !important;
  background: #FFEDD5 !important;
  border: 1px solid #FDBA74 !important;
}

[data-theme="light"] #view-watch_old_way .btn-secondary {
  color: #0F172A !important;
  background: #F1F5F9 !important;
  border: 1.5px solid #CBD5E1 !important;
}

[data-theme="light"] .spotlight-percentile {
  color: #C2410C !important;
  background: #FFEDD5 !important;
  border: 1px solid #FDBA74 !important;
}

[data-theme="light"] .btn-celebration-claim {
  background: #DD5A20;
  color: #040404;
}

[data-theme="light"] .btn-celebration-share {
  background: #F8F9FA;
  border: 1px solid rgba(60, 60, 60, 0.15);
  color: #040404;
}

/* Explicit [data-theme="dark"] preserving dark mode styles */
[data-theme="dark"] #view-gauntlet_brief {
  background: #0C0D12;
}

[data-theme="dark"] .gauntlet-stage-card {
  background: #14161F;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

[data-theme="dark"] #view-stage_interstitial {
  background: #0C0D12;
}

[data-theme="dark"] .interstitial-solution-card {
  background: linear-gradient(135deg, #191518 0%, #141722 50%, #131722 100%);
  border: 1px solid rgba(232, 93, 34, 0.30);
  color: #ffffff;
}

[data-theme="dark"] #view-bonus_trivia.active {
  background: #0C0D12;
}

[data-theme="dark"] #bonus-question-box,
[data-theme="dark"] .bonus-question-box {
  background: #131722;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #F1F5F9;
}

[data-theme="dark"] .bonus-opt-btn {
  background: #131722;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #F1F5F9;
}

[data-theme="dark"] #view-executive_results.active {
  background: #0C0D12;
}
