/* ==========================================================================
   Ultracapitalism — Enterprise Startup Parody Landing Page Styles
   Aesthetic: 1970s Hostile Takeover Boardroom meets Hyper-Growth B2B SaaS
   ========================================================================== */

:root {
  --bg-dark: #0f0c0a;
  --bg-surface: #181310;
  --bg-card: #201915;
  --bg-card-hover: #29201b;
  --bg-glass: rgba(24, 19, 16, 0.85);

  --border-subtle: #2f251f;
  --border-brass: #966f1e;
  --border-gold: #c99e32;
  --gold-bright: #ffd700;
  --gold-primary: #d4af37;
  --gold-dim: #9c8028;
  --gold-gradient: linear-gradient(135deg, #ffd700 0%, #d4af37 50%, #aa8012 100%);
  --gold-glow: 0 0 25px rgba(212, 175, 55, 0.25);

  --scandal-red: #c92a2a;
  --scandal-bg: #3d1414;
  --profit-green: #2b8a3e;
  --profit-glow: 0 0 20px rgba(43, 138, 62, 0.3);

  --text-main: #f5ede0;
  --text-dim: #aa9c8b;
  --text-faint: #6e6153;

  --font-serif: "Georgia", "Playfair Display", "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Courier New", Courier, monospace;

  --container-max: 1240px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  font-size: 16px;
  background-color: var(--bg-dark);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Background Atmosphere */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: 
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 10% 30%, rgba(150, 111, 30, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(201, 42, 42, 0.04) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* Utilities */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
}

.badge-red {
  background: rgba(201, 42, 42, 0.15);
  border-color: var(--scandal-red);
  color: #ff8787;
}

.badge-green {
  background: rgba(43, 138, 62, 0.18);
  border-color: var(--profit-green);
  color: #8ce99a;
}

/* ==========================================================================
   1. Live Global Financial Ticker
   ========================================================================== */
.ticker-wrap {
  width: 100%;
  background: #080605;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.4rem 0;
  position: relative;
  z-index: 100;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-dim);
}

.ticker-inner {
  display: inline-block;
  animation: tickerScroll 42s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 1.6rem;
}

.ticker-up {
  color: #69db7c;
  font-weight: 600;
}

.ticker-down {
  color: #ff8787;
  font-weight: 600;
}

.ticker-accent {
  color: var(--gold-bright);
  font-weight: 600;
}

@keyframes tickerScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.ticker-wrap:hover .ticker-inner {
  animation-play-state: paused;
}

/* ==========================================================================
   2. Sticky Unified Navigation Header
   ========================================================================== */
.site-header, .navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(15, 12, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  transition: all 0.22s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  padding: 0.85rem 2rem;
}

.header-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

.brand-link, .brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  text-decoration: none;
  margin-right: auto;
}

.brand-logo-img, .brand-logo {
  height: 38px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8));
  transition: transform 0.2s ease, filter 0.2s ease, height 0.22s ease;
  transform-origin: left center;
}

.header-play-btn .btn-icon {
  display: none;
  flex-shrink: 0;
}

.brand-link:hover .brand-logo-img, .brand:hover .brand-logo {
  transform: scale(1.02);
  filter: drop-shadow(0 3px 8px rgba(212, 175, 55, 0.35)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8));
}

.brand-text-block, .brand-lockup {
  display: flex;
  flex-direction: column;
}

.brand-subhead, .brand-subtitle {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  transition: color 0.2s ease;
}

.brand-link:hover .brand-subhead, .brand:hover .brand-subtitle {
  color: var(--gold-bright);
}

/* Scrolled state — toggled by JS once the page is scrolled past the top. The
   subhead collapses and the padding tightens so the sticky header takes less
   of the screen mid-page. */
.brand-text-block, .brand-lockup {
  max-height: 2rem;
  overflow: hidden;
  transition: max-height 0.22s ease, opacity 0.22s ease;
}

.site-header.is-scrolled {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.site-header.is-scrolled .brand-text-block,
.site-header.is-scrolled .brand-lockup {
  max-height: 0;
  opacity: 0;
}

.site-header.is-scrolled .brand-logo-img,
.site-header.is-scrolled .brand-logo {
  height: 30px;
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .brand-text-block, .brand-lockup,
  .brand-logo-img, .brand-logo {
    transition: none;
  }
}

.nav-menu, .nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.2s ease;
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-bright);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(135deg, #ffd700 0%, #d4af37 50%, #aa8012 100%);
  transition: width 0.2s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.3rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #1a1208;
  border-color: #ffd700;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

@media (hover: hover) {
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    color: #0d0803;
  }
}

.btn-secondary {
  background: rgba(32, 25, 21, 0.8);
  color: var(--text-main);
  border: 1px solid var(--border-brass);
}

@media (hover: hover) {
  .btn-secondary:hover {
    background: rgba(41, 32, 27, 0.95);
    border-color: var(--gold-bright);
    color: var(--gold-bright);
    transform: translateY(-2px);
  }
}

.btn-large {
  padding: 0.95rem 2rem;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
}

/* ==========================================================================
   3. Hero Section
   ========================================================================== */
.hero-section {
  padding: 3.5rem 0 2rem 0;
  text-align: center;
  position: relative;
}

.hero-logo-wrap {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.hero-logo-img {
  width: 100%;
  max-width: min(90vw, 680px);
  height: auto;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 35px rgba(212, 175, 55, 0.2));
  transition: transform 0.3s ease;
}

.hero-logo-img:hover {
  transform: scale(1.02);
}

.hero-title span.gold-shimmer {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-dim);
  max-width: 780px;
  margin: 0 auto 2.2rem auto;
  font-weight: 400;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2.8rem;
}

.hero-cta-group #btn-launch-play,
.btn-hero-play {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 1.1rem 3rem;
  min-width: 180px;
  background: linear-gradient(180deg, #ffe57f 0%, #ffd700 28%, #d4af37 70%, #aa8012 100%);
  border: 1px solid #ffec8a;
  color: #140e04;
  box-shadow: 
    0 4px 20px rgba(212, 175, 55, 0.45),
    0 0 35px rgba(255, 215, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -2px 0 rgba(0, 0, 0, 0.25);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
}

.hero-cta-group #btn-launch-play:hover,
.btn-hero-play:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 8px 30px rgba(255, 215, 0, 0.65),
    0 0 50px rgba(255, 215, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -2px 0 rgba(0, 0, 0, 0.3);
  color: #0d0803;
}

.hero-cta-group #btn-launch-play:active,
.btn-hero-play:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 
    0 2px 10px rgba(212, 175, 55, 0.5),
    inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-cta-group .btn-secondary {
  padding: 1.05rem 2.2rem;
  font-size: 0.95rem;
}

.hero-trust-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ==========================================================================
   4. Play (Game Embed Viewport)
   ========================================================================== */
.embed-section,
#play,
#executive-terminal {
  position: relative;
  margin-bottom: 5.5rem;
  scroll-margin-top: 110px;
}

section[id],
.section[id] {
  scroll-margin-top: 110px;
}

.terminal-frame {
  background: #140f0c;
  border: 2px solid var(--border-brass);
  border-radius: var(--radius-lg);
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.85),
    0 0 40px rgba(212, 175, 55, 0.15),
    inset 0 1px 0 rgba(255, 215, 0, 0.2);
  overflow: hidden;
  position: relative;
  transition: border-color 0.3s ease;
}

.terminal-frame:hover {
  border-color: var(--gold-bright);
}

.terminal-header {
  background: linear-gradient(180deg, #241c17 0%, #17120e 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.7rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.terminal-controls-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #e03131; box-shadow: 0 0 5px #e03131; }
.dot-yellow { background: #fcc419; box-shadow: 0 0 5px #fcc419; }
.dot-green { background: #37b24d; box-shadow: 0 0 5px #37b24d; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 1px;
  color: var(--text-dim);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-status-live {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #69db7c;
  font-weight: 700;
}

.terminal-status-live::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #69db7c;
  border-radius: 50%;
  animation: pulseGreen 1.5s infinite;
}

@keyframes pulseGreen {
  0% { opacity: 0.3; }
  50% { opacity: 1; }
  100% { opacity: 0.3; }
}

.terminal-tools-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.terminal-btn {
  background: rgba(41, 32, 27, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.terminal-btn:hover {
  color: var(--gold-bright);
  border-color: var(--border-brass);
  background: rgba(54, 43, 36, 0.9);
}

/* The Embed Viewport (Configured for Itch.io 640x380 Native Ratio) */
.embed-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 640 / 380;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Seamless iframe styling for itch.io or web embed */
.embed-viewport iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Placeholder preview state before user inserts embed code */
.embed-placeholder {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.embed-placeholder-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 12, 10, 0.6) 0%, rgba(15, 12, 10, 0.88) 100%);
  backdrop-filter: blur(4px);
}

.embed-placeholder-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.embed-placeholder-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.embed-placeholder-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 0.6rem;
}

.embed-placeholder-desc {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.embed-code-notice {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold-dim);
  background: rgba(0, 0, 0, 0.5);
  border: 1px dashed var(--border-brass);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-top: 1rem;
}

/* Terminal Footer Info Bar */
.terminal-footer {
  background: #110d0a;
  border-top: 1px solid var(--border-subtle);
  padding: 0.55rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.terminal-stat {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.terminal-stat strong {
  color: var(--text-dim);
}

/* ==========================================================================
   5. Enterprise Social Proof (Marquee of Parody Victims)
   ========================================================================== */
.social-proof-section {
  padding: 2.5rem 0 4rem 0;
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}

.social-proof-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-faint);
  margin-bottom: 1.8rem;
}

.logo-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.logo-item {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-faint);
  transition: var(--transition);
  opacity: 0.65;
  cursor: default;
}

.logo-item:hover {
  color: var(--gold-bright);
  opacity: 1;
  transform: translateY(-2px);
}

/* ==========================================================================
   6. Core Solutions Grid (Enterprise Features)
   ========================================================================== */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-dim);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.75), var(--gold-glow);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card.feature-card-crash:hover {
  border-color: var(--scandal-red);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.75), 0 0 25px rgba(201, 42, 42, 0.35);
}

.feature-card.feature-card-crash:hover::before {
  background: linear-gradient(135deg, #ff6b6b 0%, #c92a2a 50%, #821010 100%);
  opacity: 1;
}

/* Telemetry Top Header Strip */
.feature-telemetry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 1px;
}

.feature-telemetry-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--gold-bright);
  text-transform: uppercase;
}

.feature-telemetry-meta {
  color: var(--text-faint);
  font-size: 0.68rem;
}

.telemetry-dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #51cf66;
  box-shadow: 0 0 8px rgba(81, 207, 102, 0.8);
  animation: telemetryPulse 1.8s infinite ease-in-out;
}

.telemetry-dot-red {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #ff6b6b;
  box-shadow: 0 0 8px rgba(255, 107, 107, 0.8);
  animation: telemetryPulse 1.2s infinite ease-in-out;
}

.telemetry-dot-cyan {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #38d9a9;
  box-shadow: 0 0 8px rgba(56, 217, 169, 0.8);
}

.telemetry-dot-amber {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #fcc419;
  box-shadow: 0 0 8px rgba(252, 196, 25, 0.8);
}

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

/* Simulation Wells: Common Container */
.feature-sim-well {
  background: #0f0b09;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin-bottom: 1.1rem;
  position: relative;
  overflow: hidden;
}

/* Step 01: CEO Founder Selector Grid */
.ceo-selector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.ceo-selector-item {
  background: #17120e;
  border: 1px solid #2e231c;
  border-radius: var(--radius-sm);
  padding: 3px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition);
  position: relative;
}

.ceo-selector-item.active {
  background: #241a13;
  border-color: var(--border-gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
}

.ceo-selector-avatar {
  width: 32px;
  height: 32px;
  border-radius: 3px;
  object-fit: cover;
}

.ceo-selector-name {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  color: var(--text-dim);
  margin-top: 3px;
  line-height: 1;
}

.ceo-selector-item.active .ceo-selector-name {
  color: var(--gold-bright);
  font-weight: 700;
}

.ceo-active-badge {
  position: absolute;
  top: -5px;
  right: -3px;
  background: var(--gold-primary);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.45rem;
  font-weight: 700;
  padding: 1px 3px;
  border-radius: 2px;
  line-height: 1;
}

.ceo-telemetry-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-dim);
}

.ceo-telemetry-strip strong {
  color: var(--text-main);
}

/* Step 02: 4 Quarters Timeline + 3 Decision Choice Cards */
.quarters-timeline-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.2rem;
  margin-bottom: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
}

.quarter-pill {
  padding: 2px 4px;
  border-radius: 2px;
  line-height: 1;
  border: 1px solid transparent;
}

.quarter-pill.done {
  background: rgba(55, 178, 77, 0.15);
  color: #69db7c;
  border-color: rgba(55, 178, 77, 0.35);
}

.quarter-pill.active {
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-bright);
  border-color: var(--border-gold);
  font-weight: 700;
  animation: telemetryPulse 1.6s infinite ease-in-out;
}

.quarter-pill.locked {
  background: #17120e;
  color: var(--text-faint);
  border-color: #2b211a;
}

.quarter-arrow {
  color: #4a3a2f;
  font-size: 0.5rem;
}

.decision-cards-tray {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
}

.decision-card {
  background: #18120e;
  border: 1px solid #2e231c;
  border-radius: var(--radius-sm);
  padding: 5px 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  text-align: center;
  font-family: var(--font-mono);
  transition: var(--transition);
}

.decision-card.selected {
  background: #261d15;
  border-color: var(--border-gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
}

.decision-card-icon {
  font-size: 0.85rem;
  line-height: 1;
}

.decision-card-title {
  font-size: 0.55rem;
  color: var(--text-main);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.decision-card.selected .decision-card-title {
  color: var(--gold-bright);
}

.decision-card-sub {
  font-size: 0.5rem;
  color: var(--text-dim);
  line-height: 1;
}

.decision-card.selected .decision-card-sub {
  color: #69db7c;
  font-weight: 700;
}

/* Step 03: Boardroom Auto-Battle Clash */
.autobattle-sim-box {
  position: relative;
  font-family: var(--font-mono);
}

.autobattle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.62rem;
  margin-bottom: 0.4rem;
}

.autobattle-tag-player {
  color: #69db7c;
  font-weight: 700;
}

.autobattle-tag-badge {
  background: #271d17;
  color: var(--gold-bright);
  font-size: 0.5rem;
  padding: 1px 4px;
  border-radius: 2px;
  border: 1px solid #3d2d22;
}

.autobattle-tag-rival {
  color: #ff8787;
  font-weight: 700;
}

.autobattle-gauges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}

.autobattle-gauge-bar {
  height: 7px;
  border-radius: 4px;
  overflow: hidden;
  background: #251c16;
  border: 1px solid #3d2d22;
}

.autobattle-gauge-fill-player {
  height: 100%;
  width: 75%;
  background: #37b24d;
  border-radius: 4px;
}

.autobattle-gauge-fill-rival {
  height: 100%;
  width: 45%;
  background: #e03131;
  border-radius: 4px;
  float: right;
}

.cooldown-progress-track {
  width: 100%;
  height: 6px;
  background: #251c16;
  border: 1px solid #3d2d22;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.cooldown-progress-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, #966f1e, #d4af37, #ffd700);
  animation: cooldownProgressSweep 2.6s infinite cubic-bezier(0.12, 0.78, 0.25, 1);
}

@keyframes cooldownProgressSweep {
  0% { width: 0%; opacity: 0.85; }
  92% { width: 100%; opacity: 1; }
  96% { width: 100%; opacity: 1; filter: brightness(1.6); }
  100% { width: 0%; opacity: 0.3; }
}

.autobattle-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.55rem;
  color: var(--text-faint);
  margin-top: 0.35rem;
}

.autobattle-foot .auto-resolving {
  color: #69db7c;
  font-weight: 700;
}

.floating-combat-pop {
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #ff6b6b;
  pointer-events: none;
  animation: combatFloatPop 2.6s infinite ease-out;
}

@keyframes combatFloatPop {
  0% { transform: translateY(0); opacity: 0; }
  18% { transform: translateY(-3px) scale(1.08); opacity: 1; }
  80% { transform: translateY(-12px) scale(1); opacity: 0.9; }
  100% { transform: translateY(-18px); opacity: 0; }
}

/* Step 04: 8 Dominations to Win / 3 Bankruptcy Strikes */
.run-tracker-box {
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

.tracker-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.58rem;
  margin-bottom: 0.3rem;
}

.dominations-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.25rem;
  margin-bottom: 0.55rem;
}

.domination-cell {
  text-align: center;
  border-radius: 2px;
  padding: 2px 0;
  font-size: 0.55rem;
  line-height: 1.2;
}

.domination-cell.won {
  background: var(--gold-primary);
  color: #000;
  font-weight: 700;
}

.domination-cell.active-year {
  background: #241a13;
  color: var(--gold-bright);
  border: 1px solid var(--border-gold);
  animation: telemetryPulse 1.6s infinite ease-in-out;
  font-weight: 700;
}

.domination-cell.locked-year {
  background: #17120e;
  color: var(--text-faint);
}

.strikes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.45rem;
}

.strike-cell {
  text-align: center;
  border-radius: 2px;
  padding: 2px 0;
  font-size: 0.55rem;
  line-height: 1.2;
}

.strike-cell.struck {
  background: rgba(201, 42, 42, 0.25);
  color: #ff8787;
  border: 1px solid #821010;
  font-weight: 700;
}

.strike-cell.safe {
  background: #17120e;
  color: var(--text-faint);
}

/* Feature Text and Bottom Telemetry */
.feature-heading {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--text-main);
  transition: color 0.2s ease;
}

.feature-card:hover .feature-heading {
  color: var(--gold-bright);
}

.feature-card.feature-card-crash:hover .feature-heading {
  color: #ff8787;
}

.feature-text {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.feature-text strong {
  color: var(--text-main);
}

.feature-telemetry-footer {
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-faint);
}

.feature-telemetry-val {
  color: var(--gold-primary);
  font-weight: 600;
}

.feature-card.feature-card-crash .feature-telemetry-val {
  color: #ff8787;
}

/* Callout Bar below Grid */
.platform-callout-banner {
  margin-top: 2rem;
  background: #140f0c;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.platform-callout-text {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.platform-callout-text strong {
  color: var(--text-main);
}

.platform-callout-icon {
  font-size: 1.3rem;
}

/* ==========================================================================
   7. Executive Fleet (Interactive CEO Dossier — 1970s Classified Aesthetic)
   ========================================================================== */
.ceo-section {
  background: #110d0b;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 3.5rem 0;
}

.dossier-wrapper {
  max-width: 1040px;
  margin: 0 auto;
}

/* Tab Selector Bar */
.ceo-nav-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.ceo-tab-btn {
  background: rgba(26, 20, 17, 0.9);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.ceo-tab-btn::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ceo-tab-btn:hover {
  border-color: var(--border-brass);
  background: rgba(36, 28, 23, 0.95);
  transform: translateY(-2px);
}

.ceo-tab-btn.active {
  background: linear-gradient(180deg, #2a201a 0%, #1c1511 100%);
  border-color: var(--gold-bright);
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.25);
}

.ceo-tab-btn.active::before {
  opacity: 1;
}

.ceo-tab-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 1.5px solid var(--border-brass);
  background: #000;
  flex-shrink: 0;
  transition: border-color 0.2s ease;
}

.ceo-tab-btn.active .ceo-tab-avatar {
  border-color: var(--gold-bright);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.ceo-tab-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ceo-tab-name {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ceo-tab-btn.active .ceo-tab-name {
  color: var(--gold-bright);
}

.ceo-tab-role {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: #d6c7b2;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.ceo-tab-btn:hover .ceo-tab-role {
  color: #fff8eb;
}

.ceo-tab-btn.active .ceo-tab-role {
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.45);
}

/* Dossier Main Card */
.ceo-dossier-panel {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  background: linear-gradient(135deg, #1d1612 0%, #140f0c 100%);
  border: 2px solid var(--border-brass);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 215, 0, 0.15),
    0 0 30px rgba(212, 175, 55, 0.08);
  align-items: stretch;
  position: relative;
  transition: opacity 0.15s ease;
}

/* Portrait Frame */
.ceo-portrait-column {
  position: relative;
  display: flex;
  flex-direction: column;
}

.ceo-portrait-frame {
  position: relative;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-brass);
  overflow: hidden;
  background: #080605;
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.8),
    inset 0 0 20px rgba(0, 0, 0, 0.7);
  height: 100%;
  min-height: 340px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.ceo-portrait-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.3s ease;
}

.portrait-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(17, 13, 11, 0.85) 100%);
  pointer-events: none;
}

.portrait-stamp {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 12, 10, 0.85);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  z-index: 2;
}

/* Dossier Content Column */
.ceo-info-content {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.ceo-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  padding-bottom: 0.65rem;
}

.ceo-archetype {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  color: var(--gold-bright);
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.ceo-name-headline {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.05;
}

.ceo-bio-quote {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--gold-dim);
  border-left: 3px solid var(--gold-primary);
  padding-left: 0.85rem;
  line-height: 1.45;
}

/* Compact Stats Grid (2-column Executive KPI Strip) */
.ceo-stats-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.ceo-stat-item {
  background: rgba(24, 19, 16, 0.85);
  border: 1px solid var(--border-subtle);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ==========================================================================
   Dossier Starting Fleet Showcase (Dual Hero Asset Cards)
   ========================================================================== */
.dossier-fleet-section {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.35rem 0;
}

.dossier-fleet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dossier-fleet-title-group {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.dossier-fleet-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-bright);
}

.dossier-fleet-hint {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--font-sans);
}

.dossier-fleet-counter {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--gold-bright);
  background: rgba(184, 134, 11, 0.12);
  border: 1px solid rgba(184, 134, 11, 0.35);
  border-radius: 4px;
  padding: 0.2rem 0.55rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.dossier-fleet-counter .capacity-active {
  color: #ffffff;
  font-weight: 800;
}

.dossier-fleet-counter .capacity-hint {
  color: var(--text-dim);
  font-weight: 400;
  margin-left: 2px;
}

/* 2-Column Grid for the Starting Duo */
.dossier-fleet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

/* Hero Asset Tile */
.game-card-anchor.hero-asset-card,
.hero-asset-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch;
  gap: 12px;
  background: radial-gradient(ellipse at 30% 20%, #151d18 0%, #090f0c 100%);
  border: 1.5px solid rgba(var(--tier-rgb, 190, 140, 86), 0.45);
  border-radius: 6px;
  padding: 10px 12px;
  box-shadow: inset 0 0 0 1px rgba(var(--tier-rgb, 190, 140, 86), 0.12),
              inset 0 2px 8px rgba(0, 0, 0, 0.6),
              0 4px 14px rgba(0, 0, 0, 0.65);
  position: relative;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.2s ease,
              box-shadow 0.2s ease;
  cursor: pointer;
  box-sizing: border-box;
  text-decoration: none;
}

.game-card-anchor.hero-asset-card:hover,
.hero-asset-card:hover {
  transform: translateY(-2px);
  border-color: var(--tier-color, #ffd700);
  box-shadow: inset 0 0 0 1px rgba(var(--tier-rgb, 190, 140, 86), 0.3),
              0 8px 22px rgba(0, 0, 0, 0.85),
              0 0 14px rgba(var(--tier-rgb, 190, 140, 86), 0.35);
}

/* Prevent inner card jumping independently from the hero card tile */
.game-card-anchor.hero-asset-card .game-card {
  transform: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.game-card-anchor.hero-asset-card:hover .game-card {
  transform: none;
  border-color: var(--tier-color, #ffd700);
  box-shadow: 0 4px 12px rgba(var(--tier-rgb, 190, 140, 86), 0.45);
}

/* Visual Card Column inside Hero Tile */
.hero-card-visual {
  flex-shrink: 0;
  width: 92px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.hero-card-visual .game-card {
  height: 114px;
}

.hero-card-visual .card-podium-area {
  display: none;
}

/* Brief Column inside Hero Tile */
.hero-card-brief {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  gap: 5px;
}

.hero-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
}

.hero-card-name-group {
  min-width: 0;
  flex: 1;
}

.hero-card-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 2px 0;
  line-height: 1.2;
  white-space: normal;
  word-break: break-word;
}

.hero-card-tags {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--tier-color, #be8c56);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-card-cd-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gold-bright);
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(184, 134, 11, 0.45);
  padding: 1px 6px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.hero-card-effects {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 3px 0;
}

.hero-card-effects .tooltip-effect-line {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--text-main);
}

.hero-card-footer {
  margin-top: auto;
  padding-top: 2px;
}

.hero-inspect-prompt {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  color: rgba(184, 134, 11, 0.65);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.game-card-anchor.hero-asset-card:hover .hero-inspect-prompt,
.hero-asset-card:hover .hero-inspect-prompt {
  color: var(--gold-bright);
}

/* Responsive adjustments */
@media (max-width: 820px) {
  .dossier-fleet-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.ceo-stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-faint);
  margin-bottom: 0.15rem;
}

.ceo-stat-val {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1.1;
}

.ceo-strategy-box {
  background: rgba(0, 0, 0, 0.25);
  border-left: 2px solid var(--border-brass);
  padding: 0.5rem 0.75rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.4;
}

/* ==========================================================================
   8. Asset & Synergy Showcase ("The Corporate Tech Stack")
   ========================================================================== */
.visual-board-tray-wrapper {
  width: 100%;
  overflow: visible;
  margin: 0 auto;
}

.board-showcase-tray {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 10px 8px;
  align-items: stretch;
  background: radial-gradient(ellipse at 50% 25%, #151d18 0%, #080f0c 100%);
  border: 2px solid rgba(184, 134, 11, 0.45);
  box-shadow: inset 0 0 0 1px rgba(184, 134, 11, 0.18),
              inset 0 3px 14px rgba(0, 0, 0, 0.95),
              0 8px 28px rgba(0, 0, 0, 0.65);
  border-radius: 8px;
  padding: 16px 14px 12px 14px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: visible;
}

/* Card Anchor for Tooltip and Layout Positioning */
.game-card-anchor {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none;
}

/* The Milled-Edge Asset Card (Matching Live Runs Engine) */
.game-card {
  position: relative;
  width: 100%;
  height: 116px;
  background: #0e1411;
  border-radius: 4px;
  border: 2px solid var(--tier-color, #be8c56);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  overflow: hidden;
  user-select: none;
  box-sizing: border-box;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.2s ease,
              border-color 0.2s ease;
}

.game-card:hover,
.game-card-anchor:hover .game-card {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.88), 0 0 14px rgba(var(--tier-rgb, 190, 140, 86), 0.55);
  z-index: 20;
}

.game-card.is-mvp {
  border-color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.45), 0 4px 12px rgba(0, 0, 0, 0.7);
}

/* Card Top Badges & Overlays */
.card-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 4px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  pointer-events: none;
}

.card-top-left,
.card-top-right {
  display: flex;
  align-items: center;
  gap: 3px;
}

.card-stat-pill {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  color: #ffffff;
  padding: 1px 4px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.6);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.card-buzz-badge {
  color: #4a9476;
  font-size: 0.66rem;
  text-shadow: 0 0 6px rgba(74, 148, 118, 0.8);
}

/* Card Art Well */
.card-art-well {
  flex: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(var(--tier-rgb, 190, 140, 86), 0.16) 0%, rgba(14, 20, 17, 0.95) 75%, #080f0c 100%);
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.card-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.75));
  transition: transform 0.22s ease;
  display: block;
}

.game-card:hover .card-art-img,
.game-card-anchor:hover .card-art-img {
  transform: scale(1.08);
}

/* Podium Area Beneath Cards */
.card-podium-area {
  width: 100%;
  height: 20px;
  margin-top: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.card-mvp-podium {
  width: 88px;
  max-width: 96%;
  height: 18px;
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.22) 0%, rgba(184, 134, 11, 0.12) 100%);
  border: 1px solid rgba(255, 215, 0, 0.7);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 800;
  color: #ffd700;
  letter-spacing: 0.5px;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.25);
}

.card-podium-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 95%;
  text-align: center;
  letter-spacing: 0.2px;
  line-height: 1.2;
  transition: color 0.18s ease;
}

.game-card-anchor:hover .card-podium-label {
  color: #ffffff;
}

/* 30th Fake Card: The Callout Link to Asset Browser */
.fake-browse-card {
  background: radial-gradient(circle at center, rgba(255, 215, 0, 0.15) 0%, #15110a 75%, #0d0a06 100%);
  border-color: #ffd700 !important;
}

.fake-stat-pill {
  background-color: #ffd700 !important;
  border-color: #ffe066 !important;
  color: #0b0f0c !important;
  font-weight: 800 !important;
}

.fake-browse-well {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(255, 215, 0, 0.22) 0%, #120e09 80%, #090704 100%);
}

.fake-browse-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  padding: 4px;
}

.fake-browse-icon {
  font-size: 1.4rem;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(255, 215, 0, 0.4));
  transition: transform 0.2s ease;
}

.fake-browse-title {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  color: #ffd700;
  letter-spacing: 0.8px;
}

.fake-browse-desc {
  font-family: var(--font-mono);
  font-size: 0.54rem;
  color: var(--gold-dim);
  white-space: nowrap;
}

.fake-browse-anchor:hover .fake-browse-icon {
  transform: scale(1.18) translateY(-2px);
}

.fake-browse-anchor:hover .game-card {
  border-color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.9), 0 0 20px rgba(255, 215, 0, 0.7);
}

.fake-podium {
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.3) 0%, rgba(184, 134, 11, 0.18) 100%);
  border-color: #ffd700;
  color: #ffd700;
}

/* ==========================================================================
   Authentic Dossier Popover Tooltip (Matching Live Feed & In-Game Dossier)
   ========================================================================== */
.tooltip-popover {
  position: fixed;
  z-index: 99999;
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.95));
}

.tooltip-popover.is-visible {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.game-tooltip {
  width: 290px;
  max-width: calc(100vw - 20px);
  background-color: #14100e;
  border: 2px solid var(--tier-color, #be8c56);
  outline: 1px solid rgba(var(--tier-rgb, 190, 140, 86), 0.35);
  outline-offset: 2px;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.95), 0 0 14px rgba(var(--tier-rgb, 190, 140, 86), 0.22);
  overflow: hidden;
  font-family: var(--font-sans);
  text-align: left;
}

.tooltip-header {
  background-size: cover;
  background-position: center;
  min-height: 84px;
  position: relative;
  border-bottom: 1px solid rgba(var(--tier-rgb, 190, 140, 86), 0.45);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.5rem 0.65rem 0.45rem 0.65rem;
}

.tooltip-header-content {
  position: relative;
  z-index: 2;
}

.tooltip-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
  gap: 0.4rem;
}

.tooltip-title-left {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.tooltip-tier-flag {
  width: 3px;
  height: 15px;
  background-color: var(--tier-color, #be8c56);
  border-radius: 1.5px;
  flex-shrink: 0;
}

.tooltip-asset-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tooltip-tier-chip {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--tier-color, #ffd700);
  border: 1px solid var(--tier-color, #ffd700);
  padding: 0.08rem 0.35rem;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.7);
  flex-shrink: 0;
  line-height: 1.1;
}

.tooltip-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

.tooltip-chip {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 0.06rem 0.35rem;
  border-radius: 2px;
  line-height: 1.1;
}

.chip-footprint {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.chip-tag {
  background: rgba(134, 211, 234, 0.1);
  color: #86d3ea;
  border: 1px solid rgba(134, 211, 234, 0.3);
}

.chip-rarity {
  background: rgba(255, 215, 0, 0.1);
  color: var(--gold-bright);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Category-specific Tag Accents in Tooltips */
.tooltip-chip.tag-employee {
  color: #86d3ea;
  border-color: rgba(134, 211, 234, 0.35);
  background-color: rgba(134, 211, 234, 0.07);
}
.tooltip-chip.tag-human {
  color: #e8a87c;
  border-color: rgba(232, 168, 124, 0.35);
  background-color: rgba(232, 168, 124, 0.07);
}
.tooltip-chip.tag-animal {
  color: #81c784;
  border-color: rgba(129, 199, 132, 0.35);
  background-color: rgba(129, 199, 132, 0.07);
}
.tooltip-chip.tag-machine {
  color: #b0bec5;
  border-color: rgba(176, 190, 197, 0.35);
  background-color: rgba(176, 190, 197, 0.07);
}
.tooltip-chip.tag-property {
  color: var(--gold-bright);
  border-color: rgba(184, 134, 11, 0.4);
  background-color: rgba(212, 175, 55, 0.08);
}
.tooltip-chip.tag-scheme {
  color: #ce93d8;
  border-color: rgba(206, 147, 216, 0.35);
  background-color: rgba(206, 147, 216, 0.07);
}
.tooltip-chip.tag-service {
  color: #90caf9;
  border-color: rgba(144, 202, 249, 0.35);
  background-color: rgba(144, 202, 249, 0.07);
}
.tooltip-chip.tag-vehicle {
  color: #ffb74d;
  border-color: rgba(255, 183, 77, 0.35);
  background-color: rgba(255, 183, 77, 0.07);
}
.tooltip-chip.tag-ai {
  color: #80cbc4;
  border-color: rgba(128, 203, 196, 0.35);
  background-color: rgba(128, 203, 196, 0.07);
}

.tooltip-body {
  padding: 0.6rem 0.65rem 0.65rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.tooltip-cadence-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tooltip-dial-col {
  flex-shrink: 0;
}

.tooltip-dial {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--tier-color, #be8c56);
  background: radial-gradient(circle, #251c16 0%, #130f0c 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.5);
}

.dial-value {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
}

.dial-unit {
  font-size: 0.45rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  margin-top: 1px;
}

.dial-passive {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--text-dim);
}

.tooltip-effects-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.tooltip-effect-line {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--text-main);
}

.tooltip-bullet {
  color: var(--tier-color, #be8c56);
  font-size: 0.6rem;
  margin-top: 0.12rem;
  flex-shrink: 0;
}

.effect-num {
  color: var(--gold-bright);
  font-weight: 700;
  font-family: var(--font-mono);
}

.tooltip-section-divider {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.15rem 0 0.05rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.35rem;
}

.tooltip-section-label {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
}

.tooltip-keywords-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tooltip-keyword-entry {
  font-size: 0.68rem;
  line-height: 1.25;
}

.keyword-name {
  font-weight: 700;
  display: inline;
  margin-right: 0.25rem;
}

.keyword-rule {
  color: var(--text-dim);
  display: inline;
}

.tooltip-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 0.1rem;
}

.tooltip-sell-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: #ffd700;
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid #d4af37;
  border-radius: 10px;
  padding: 0.1rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.tooltip-sell-pill .pill-symbol {
  color: #ffd700;
  font-size: 0.65rem;
}

/* Tray Footer Bar: Legend & Asset Browser CTA */
.tray-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.25rem;
  padding: 0.75rem 1.2rem;
  background: rgba(14, 18, 15, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tray-tier-legend {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  box-shadow: 0 0 6px currentColor;
}

.tray-cta-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-bright);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tray-cta-link:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

/* Responsive Tray Breakpoints */
@media (max-width: 1100px) {
  .board-showcase-tray {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px 8px;
  }
}

@media (max-width: 600px) {
  .board-showcase-tray {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 6px;
    padding: 10px 8px;
  }
  .game-card {
    height: 98px;
  }
  .tray-footer-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   9. Parody Enterprise Pricing Matrix
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 860px;
  margin: 0 auto;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.4rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-brass);
}

.pricing-card.featured {
  background: linear-gradient(180deg, #261c16 0%, #1a130f 100%);
  border: 2px solid var(--gold-bright);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), var(--gold-glow);
  transform: scale(1.03);
}

.pricing-badge-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-gradient);
  color: #1a1208;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.2rem 0.85rem;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  white-space: nowrap;
}

.pricing-badge-steam {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
  color: #66c0f4;
  border: 1px solid rgba(102, 192, 244, 0.45);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.2rem 0.85rem;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

.btn-steam {
  background: linear-gradient(180deg, #213a52 0%, #172435 100%);
  color: #c7d5e0;
  border: 1px solid #417a9b;
}

.btn-steam:hover {
  background: linear-gradient(180deg, #2b4c6b 0%, #1e3046 100%);
  border-color: #66c0f4;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(102, 192, 244, 0.3);
  transform: translateY(-2px);
}

.pricing-card .btn {
  width: 100%;
  margin-top: auto;
}

.pricing-tier-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.pricing-tier-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  min-height: 42px;
}

.pricing-price {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold-bright);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.pricing-period {
  font-size: 0.78rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
  margin-bottom: 1.8rem;
}

.pricing-features-list {
  list-style: none;
  margin-bottom: 2rem;
  flex: 1;
}

.pricing-feature-item {
  font-size: 0.88rem;
  color: var(--text-dim);
  padding: 0.45rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pricing-feature-item::before {
  content: "✓";
  color: var(--gold-bright);
  font-weight: bold;
}

/* ==========================================================================
   10. Boardroom Testimonials & Whistleblower Leaks
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.quote-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--border-brass);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  position: relative;
}

.quote-body {
  font-style: italic;
  color: var(--text-main);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.quote-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.quote-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold-bright);
}

.quote-title {
  font-size: 0.75rem;
  color: var(--text-faint);
}

/* ==========================================================================
   11. Executive FAQ
   ========================================================================== */
.faq-accordion {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--border-brass);
}

.faq-question {
  padding: 1.2rem 1.5rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-chevron {
  font-size: 1.2rem;
  color: var(--gold-dim);
  transition: transform 0.2s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--gold-bright);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 1.5rem;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 1.2rem;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

/* ==========================================================================
   12. Corporate Footer
   ========================================================================== */
.site-footer {
  background: #090706;
  border-top: 2px solid var(--border-subtle);
  padding: 4rem 0 2rem 0;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 1px;
  margin-bottom: 0.6rem;
}

.footer-brand-desc {
  max-width: 320px;
  line-height: 1.5;
  color: var(--text-dim);
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-link {
  color: var(--text-faint);
  text-decoration: none;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--gold-bright);
}

.footer-legal-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--text-faint);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 960px) {
  .ceo-dossier-panel {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .ceo-portrait-frame {
    height: 240px;
    max-width: 300px;
    margin: 0 auto;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .ceo-nav-tabs {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .ceo-tab-btn {
    padding: 0.5rem 0.65rem;
  }

  .ceo-tab-avatar {
    width: 32px;
    height: 32px;
  }

  .ceo-stats-table {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .embed-viewport {
    aspect-ratio: 16 / 11;
  }

  .terminal-tools-right {
    display: none;
  }
}

/* Compact header (tablets and phones): brand + Play button on one row,
   nav links on a second row. */
@media (max-width: 1000px) {
  .site-header, .navbar {
    padding: 0.7rem 1.25rem;
  }

  .header-container {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 0.75rem;
  }

  /* Let the brand shrink (and the subhead truncate) rather than pushing
     the Play button onto its own row on the narrowest screens. */
  .brand-link, .brand {
    order: 1;
    flex: 1 1 0%;
    min-width: 0;
  }

  .brand-logo-img, .brand-logo {
    max-width: min(220px, 100%);
  }

  .brand-text-block, .brand-lockup {
    max-width: 100%;
  }

  .brand-subhead, .brand-subtitle {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-play-btn {
    order: 2;
    flex-shrink: 0;
  }

  .header-nav {
    order: 3;
    width: 100%;
    padding-top: 0.45rem;
    border-top: 1px solid var(--border-subtle);
  }

  .nav-menu, .nav-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .site-header, .navbar {
    padding: 0.65rem 1rem;
  }

  /* Phones: shrink the Play button to just "PLAY" and tighten the nav row. */
  .header-play-btn {
    padding: 0.45rem 0.95rem;
    font-size: 0.75rem;
  }

  .header-play-btn .btn-label-extra {
    display: none;
  }

  .header-play-btn .btn-icon {
    display: inline-block;
  }

  /* Pull the nav row up so the taller tap targets don't grow the header. */
  .header-nav {
    margin: -0.15rem 0 -0.35rem;
  }

  .nav-menu, .nav-links {
    gap: 0 0.9rem;
  }

  .nav-link {
    display: inline-block;
    padding: 0.55rem 0;
    font-size: 0.72rem;
    letter-spacing: 0.3px;
  }

  .nav-link::after {
    bottom: 0.3rem;
  }

  /* Phones: logo only — the subhead goes, so the brand row is a single line. */
  .brand-text-block, .brand-lockup {
    display: none;
  }

  .brand-logo-img, .brand-logo {
    height: 30px;
    max-width: 220px;
    object-position: left center;
  }

  .site-header.is-scrolled {
    padding-top: 0.4rem;
    padding-bottom: 0.3rem;
  }

  .site-header.is-scrolled .header-container {
    row-gap: 0.3rem;
  }

  .site-header.is-scrolled .brand-logo-img,
  .site-header.is-scrolled .brand-logo {
    height: 24px;
  }

  .visual-board-tray.dossier-tray {
    min-width: 480px;
    gap: 4px;
    padding: 6px 8px 4px 8px;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 0.85rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    max-width: 320px;
  }
}

/* Very narrow phones: keep the brand + Play button on one row. */
@media (max-width: 380px) {
  .brand-logo-img, .brand-logo {
    height: 26px;
    max-width: 170px;
  }

  .header-play-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.72rem;
  }

  .nav-menu, .nav-links {
    gap: 0 0.75rem;
  }

  .nav-link {
    font-size: 0.68rem;
  }
}
