/* THE CHAIR — Window / Weather System v3.0
   Fed Chairman's corner office with floor-to-ceiling windows.
   View: Washington DC financial district at golden hour/dusk.
   Weather reflects the state of the economy.
   ─────────────────────────────────────────────────────────── */

/* ── Weather Scene Container ───────────────────────────────── */
.weather-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  /* Subtle vignette for corner office feel */
  box-shadow: inset 0 0 150px 50px rgba(0, 0, 0, 0.3);
}

/* ── Sky Layer ─────────────────────────────────────────────── */
.sky-layer {
  position: absolute;
  inset: 0;
  transition: background 4s ease;
}

/* Weather state sky gradients — refined for prestigious DC view */
.weather-clear .sky-layer { 
  background: 
    radial-gradient(ellipse 120% 80% at 70% 120%, rgba(255, 200, 120, 0.25) 0%, transparent 50%),
    linear-gradient(180deg, 
      #1a5a9a 0%, 
      #3a8ac4 25%,
      #6bb3e0 50%, 
      #a8d4ed 75%,
      #d4e8f5 100%
    ); 
}

.weather-golden .sky-layer { 
  background: 
    radial-gradient(ellipse 150% 100% at 20% 100%, rgba(255, 120, 50, 0.5) 0%, transparent 60%),
    radial-gradient(ellipse 100% 80% at 80% 110%, rgba(255, 180, 80, 0.4) 0%, transparent 50%),
    linear-gradient(180deg, 
      #1a1a3a 0%,
      #4a2040 8%,
      #8b3050 18%,
      #c45040 30%,
      #e87040 42%,
      #ff9050 55%,
      #ffb060 70%,
      #ffd080 85%,
      #ffe8a0 100%
    ); 
}

.weather-cloudy .sky-layer { 
  background: 
    radial-gradient(ellipse 100% 60% at 50% 100%, rgba(180, 200, 220, 0.3) 0%, transparent 50%),
    linear-gradient(180deg, 
      #5080a8 0%, 
      #7aa8c8 35%, 
      #a0c8dc 65%,
      #c8dce8 100%
    ); 
}

.weather-overcast .sky-layer { 
  background: 
    linear-gradient(180deg, 
      #404858 0%, 
      #586070 30%, 
      #788898 60%,
      #a8b0b8 100%
    ); 
}

.weather-rain .sky-layer { 
  background: 
    linear-gradient(180deg, 
      #1a2530 0%, 
      #2a3848 30%, 
      #3a4858 60%,
      #506070 100%
    ); 
}

.weather-storm .sky-layer { 
  background: 
    radial-gradient(ellipse 80% 60% at 30% 40%, rgba(100, 50, 120, 0.4) 0%, transparent 50%),
    linear-gradient(180deg, 
      #0a0818 0%, 
      #1a1830 20%,
      #2a2848 40%,
      #302850 60%,
      #282838 100%
    ); 
}

.weather-blizzard .sky-layer { 
  background: 
    linear-gradient(180deg, 
      #c8d0d8 0%, 
      #dce4e8 40%, 
      #e8f0f4 70%,
      #f0f8fc 100%
    ); 
}

.weather-sunrise .sky-layer { 
  background: 
    radial-gradient(ellipse 120% 80% at 30% 110%, rgba(255, 150, 100, 0.5) 0%, transparent 50%),
    linear-gradient(180deg, 
      #1a1840 0%,
      #3a3070 15%,
      #6050a0 30%,
      #9070b0 45%,
      #d090a0 60%,
      #ffb0a0 75%,
      #ffd0c0 90%,
      #ffe8e0 100%
    ); 
}

/* ── Atmospheric Haze Layer ────────────────────────────────── */
.atmosphere-haze {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.6;
  transition: opacity 4s ease;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 40%,
    rgba(180, 160, 140, 0.08) 60%,
    rgba(160, 140, 120, 0.15) 80%,
    rgba(140, 120, 100, 0.25) 100%
  );
  pointer-events: none;
}

.weather-golden .atmosphere-haze {
  opacity: 0.9;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 30%,
    rgba(255, 180, 100, 0.1) 50%,
    rgba(255, 150, 80, 0.2) 70%,
    rgba(255, 120, 60, 0.3) 100%
  );
}

.weather-storm .atmosphere-haze,
.weather-rain .atmosphere-haze {
  opacity: 0.4;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(30, 40, 60, 0.1) 50%,
    rgba(30, 40, 60, 0.3) 100%
  );
}

/* ── Depth of Field Blur Layer ─────────────────────────────── */
.depth-blur-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 15%;
  z-index: 8;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(20, 30, 45, 0.2) 50%,
    rgba(15, 25, 40, 0.4) 100%
  );
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent 0%, black 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 100%);
}

/* ── Animated Clouds ───────────────────────────────────────── */
.cloud-layer {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60%;
  opacity: 0;
  transition: opacity 3s ease;
}
.weather-clear .cloud-layer,
.weather-golden .cloud-layer { opacity: 0.15; }
.weather-cloudy .cloud-layer { opacity: 0.6; }
.weather-overcast .cloud-layer { opacity: 0.85; }

.cloud {
  position: absolute;
  background: rgba(255,255,255,0.85);
  border-radius: 50px;
  filter: blur(8px);
  animation: cloud-drift linear infinite;
}
.cloud::before, .cloud::after {
  content: '';
  position: absolute;
  background: inherit;
  border-radius: 50%;
}
.cloud-1 { width: 200px; height: 50px; top: 8%; left: -220px; animation-duration: 80s; animation-delay: 0s; }
.cloud-1::before { width: 100px; height: 80px; top: -30px; left: 40px; }
.cloud-1::after  { width: 80px;  height: 60px; top: -20px; left: 100px; }

.cloud-2 { width: 280px; height: 60px; top: 18%; left: -300px; animation-duration: 120s; animation-delay: -30s; opacity: 0.7; }
.cloud-2::before { width: 120px; height: 90px; top: -35px; left: 60px; }
.cloud-2::after  { width: 100px; height: 70px; top: -25px; left: 140px; }

.cloud-3 { width: 160px; height: 40px; top: 6%; left: -180px; animation-duration: 95s; animation-delay: -50s; opacity: 0.5; }
.cloud-3::before { width: 80px; height: 60px; top: -25px; left: 30px; }

.cloud-4 { width: 320px; height: 70px; top: 28%; left: -350px; animation-duration: 140s; animation-delay: -80s; opacity: 0.4; }
.cloud-4::before { width: 140px; height: 100px; top: -40px; left: 80px; }
.cloud-4::after  { width: 110px; height: 80px;  top: -30px; left: 170px; }

@keyframes cloud-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(100vw + 400px)); }
}

/* ── City Skyline Layers ───────────────────────────────────── */
.skyline-far,
.skyline-mid,
.skyline-near {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  transition: opacity 3s ease, filter 3s ease, transform 0.1s ease-out;
  will-change: transform;
}

.skyline-far  { height: 35%; z-index: 1; }
.skyline-mid  { height: 52%; z-index: 2; }
.skyline-near { height: 25%; z-index: 3; }

.skyline-far svg,
.skyline-mid svg,
.skyline-near svg { width: 100%; height: 100%; }

/* Sky-state coloring for skylines — enhanced with atmospheric perspective */
.weather-clear .skyline-far { 
  filter: brightness(0.6) saturate(0.7) sepia(0.15) blur(0.5px);
  opacity: 0.85;
}
.weather-golden .skyline-far { 
  filter: brightness(0.35) saturate(0.6) sepia(0.5) hue-rotate(-15deg) blur(0.5px);
  opacity: 0.9;
}
.weather-cloudy .skyline-far { 
  filter: brightness(0.55) saturate(0.4) blur(0.5px);
  opacity: 0.8;
}
.weather-overcast .skyline-far { 
  filter: brightness(0.45) saturate(0.25) blur(0.5px);
  opacity: 0.75;
}
.weather-rain .skyline-far { 
  filter: brightness(0.3) saturate(0.15) blur(1px);
  opacity: 0.6;
}
.weather-storm .skyline-far { 
  filter: brightness(0.15) saturate(0.1) blur(1.5px);
  opacity: 0.5;
}
.weather-blizzard .skyline-far { 
  filter: brightness(0.75) saturate(0.05) blur(3px);
  opacity: 0.4;
}
.weather-sunrise .skyline-far { 
  filter: brightness(0.4) saturate(0.5) sepia(0.35) blur(0.5px);
  opacity: 0.85;
}

.weather-clear .skyline-mid { 
  filter: brightness(0.4) saturate(0.85);
}
.weather-golden .skyline-mid { 
  filter: brightness(0.28) saturate(0.7) sepia(0.35) hue-rotate(-10deg);
}
.weather-cloudy .skyline-mid { 
  filter: brightness(0.35) saturate(0.5);
}
.weather-overcast .skyline-mid { 
  filter: brightness(0.28) saturate(0.35);
}
.weather-rain .skyline-mid { 
  filter: brightness(0.2) saturate(0.2);
}
.weather-storm .skyline-mid { 
  filter: brightness(0.12) saturate(0.1);
}
.weather-blizzard .skyline-mid { 
  filter: brightness(0.55) saturate(0.1) blur(1px);
}
.weather-sunrise .skyline-mid { 
  filter: brightness(0.25) saturate(0.6) sepia(0.25);
}

/* Near skyline - closest buildings, sharpest */
.weather-clear .skyline-near { filter: brightness(0.25); }
.weather-golden .skyline-near { filter: brightness(0.18) sepia(0.2); }
.weather-cloudy .skyline-near { filter: brightness(0.22); }
.weather-overcast .skyline-near { filter: brightness(0.18); }
.weather-rain .skyline-near { filter: brightness(0.12); }
.weather-storm .skyline-near { filter: brightness(0.08); }
.weather-blizzard .skyline-near { filter: brightness(0.4) blur(0.5px); }
.weather-sunrise .skyline-near { filter: brightness(0.15) sepia(0.15); }

/* ── Parallax effect on mouse move ─────────────────────────── */
.skyline-far.parallax-active { transition: transform 0.15s ease-out; }
.skyline-mid.parallax-active { transition: transform 0.12s ease-out; }
.skyline-near.parallax-active { transition: transform 0.1s ease-out; }

/* Window lights twinkle in dark weather */
.window-light {
  animation: light-twinkle 4s ease-in-out infinite;
}
.window-light:nth-child(odd)  { animation-duration: 3.1s; animation-delay: -1.5s; }
.window-light:nth-child(3n)   { animation-duration: 5.2s; animation-delay: -2.8s; }

@keyframes light-twinkle {
  0%, 100% { opacity: 1; }
  45%       { opacity: 0.6; }
  50%       { opacity: 0.3; }
  55%       { opacity: 0.8; }
}

/* ── Weather Particle Canvas ───────────────────────────────── */
.weather-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  opacity: 0;
  transition: opacity 2s ease;
  pointer-events: none;
}
.weather-rain   .weather-canvas,
.weather-storm  .weather-canvas { opacity: 0.85; }
.weather-blizzard .weather-canvas { opacity: 0.9; }

/* ── Window Glass Effects ──────────────────────────────────── */
.window-glass {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  transition: opacity 3s ease;
}

/* Rain streaks on glass — only in rain/storm */
.window-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 3s ease;
  background: repeating-linear-gradient(
    175deg,
    transparent 0px,
    transparent 18px,
    rgba(180,210,255,0.04) 18px,
    rgba(180,210,255,0.04) 19px,
    transparent 19px,
    transparent 36px
  );
}
.weather-rain  .window-glass::before,
.weather-storm .window-glass::before { opacity: 1; }

/* Frost edges — blizzard */
.window-glass::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 4s ease;
  background:
    radial-gradient(ellipse at 0% 0%,   rgba(220,235,255,0.35) 0%, transparent 35%),
    radial-gradient(ellipse at 100% 0%,  rgba(220,235,255,0.35) 0%, transparent 35%),
    radial-gradient(ellipse at 0% 100%,  rgba(220,235,255,0.25) 0%, transparent 30%),
    radial-gradient(ellipse at 100% 100%,rgba(220,235,255,0.25) 0%, transparent 30%);
}
.weather-blizzard .window-glass::after { opacity: 1; }

/* ── Window Frame ──────────────────────────────────────────── */
.window-frame {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  box-shadow:
    inset 0  0  0  6px  rgba(30, 20, 10, 0.9),   /* outermost dark edge */
    inset 0  0  0  12px rgba(45, 32, 18, 0.7),    /* frame body */
    inset 0  0  0  16px rgba(55, 40, 22, 0.5),    /* inner frame */
    inset 0  0  0  20px rgba(20, 14,  6, 0.4);    /* innermost shadow */
  border-radius: 2px;
}

/* Mullions (cross bars in center) — decorative */
.window-frame::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 10px;
  transform: translateX(-50%);
  background: rgba(30, 20, 10, 0.6);
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
}
.window-frame::after {
  content: '';
  position: absolute;
  top: 40%;
  left: 0; right: 0;
  height: 8px;
  transform: translateY(-50%);
  background: rgba(30, 20, 10, 0.5);
  box-shadow: 0 0 6px rgba(0,0,0,0.4);
}

/* ── Lightning Flash Overlay ───────────────────────────────── */
.lightning-overlay {
  position: absolute;
  inset: 0;
  z-index: 7;
  background: rgba(200, 220, 255, 0);
  pointer-events: none;
  transition: background 0.05s ease;
}

/* ── Fog Effect ────────────────────────────────────────────── */
.fog-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  transition: opacity 4s ease;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(180, 195, 210, 0.15) 30%,
    rgba(180, 195, 210, 0.35) 60%,
    rgba(200, 210, 220, 0.5)  100%
  );
  animation: fog-drift 20s ease-in-out infinite alternate;
}
.weather-overcast .fog-layer { opacity: 0.4; }
.weather-rain     .fog-layer { opacity: 0.6; }
.weather-storm    .fog-layer { opacity: 0.5; }
.weather-blizzard .fog-layer { opacity: 0.8; }

/* Subtle base fog for all weather - atmospheric depth */
.weather-clear .fog-layer,
.weather-golden .fog-layer,
.weather-cloudy .fog-layer,
.weather-sunrise .fog-layer { 
  opacity: 0.15; 
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 50%,
    rgba(180, 170, 160, 0.1) 70%,
    rgba(160, 150, 140, 0.2) 100%
  );
}

.weather-golden .fog-layer {
  opacity: 0.25;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 200, 150, 0.08) 60%,
    rgba(255, 180, 120, 0.15) 80%,
    rgba(255, 160, 100, 0.25) 100%
  );
}

@keyframes fog-drift {
  from { transform: translateX(-2%); }
  to   { transform: translateX(2%); }
}

/* ── Sun/Light Glow Effect ─────────────────────────────────── */
.sun-glow {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  transition: all 4s ease;
  opacity: 0;
}

.weather-golden .sun-glow {
  opacity: 1;
  width: 300px;
  height: 300px;
  bottom: 5%;
  left: 15%;
  background: radial-gradient(
    circle,
    rgba(255, 200, 100, 0.8) 0%,
    rgba(255, 180, 80, 0.5) 20%,
    rgba(255, 150, 60, 0.3) 40%,
    rgba(255, 120, 40, 0.15) 60%,
    transparent 80%
  );
  filter: blur(20px);
}

.weather-sunrise .sun-glow {
  opacity: 0.8;
  width: 250px;
  height: 250px;
  bottom: 10%;
  left: 25%;
  background: radial-gradient(
    circle,
    rgba(255, 180, 150, 0.7) 0%,
    rgba(255, 150, 120, 0.4) 30%,
    rgba(255, 120, 100, 0.2) 60%,
    transparent 80%
  );
  filter: blur(25px);
}

.weather-clear .sun-glow {
  opacity: 0.4;
  width: 200px;
  height: 200px;
  top: 10%;
  right: 20%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 200, 0.5) 0%,
    rgba(255, 250, 180, 0.2) 40%,
    transparent 70%
  );
  filter: blur(15px);
}

/* ── Rain Streaks CSS (fallback / augment) ─────────────────── */
@keyframes raindrop-fall {
  0%   { transform: translateY(-120px) translateX(0); opacity: 0; }
  5%   { opacity: 0.65; }
  95%  { opacity: 0.65; }
  100% { transform: translateY(100vh) translateX(40px); opacity: 0; }
}

@keyframes snow-fall {
  0%   { transform: translateY(-10px) translateX(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.85; }
  90%  { opacity: 0.85; }
  100% { transform: translateY(100vh) translateX(var(--drift, 30px)) rotate(360deg); opacity: 0; }
}

/* ── Inline Quarter Grade Badge ────────────────────────────── */
.inline-grade-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  transition: all 0.5s var(--ease-out-expo);
  animation: badge-pop 0.4s var(--ease-spring) both;
}
@keyframes badge-pop {
  from { transform: scale(0.6); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.inline-grade-badge.S { background: rgba(245,158,11,0.2);  border: 1px solid var(--gold);  color: var(--gold); }
.inline-grade-badge.A { background: rgba(0,212,255,0.15);  border: 1px solid var(--cyan);  color: var(--cyan); }
.inline-grade-badge.B { background: rgba(16,185,129,0.15); border: 1px solid var(--green); color: var(--green); }
.inline-grade-badge.C { background: rgba(251,191,36,0.15); border: 1px solid var(--yellow);color: var(--yellow); }
.inline-grade-badge.D { background: rgba(249,115,22,0.15); border: 1px solid #f97316;     color: #f97316; }
.inline-grade-badge.F { background: rgba(239,68,68,0.15);  border: 1px solid var(--red);   color: var(--red); }

/* ── Game body: ensure panels render above weather ─────────── */
.game-header,
.news-bar,
.game-main {
  position: relative;
  z-index: 10;
}

/* Overlays (scenario select, modals) above weather */
.overlay,
.modal-backdrop {
  z-index: 100;
}

/* Slightly more transparent panels so weather bleeds through */
.glass {
  background: rgba(13, 24, 41, 0.62) !important;
}

/* ── Golden hour: warm tint on UI panels ───────────────────── */
.weather-golden .glass {
  background: rgba(20, 16, 10, 0.65) !important;
  border-color: rgba(245, 158, 11, 0.2) !important;
}
.weather-golden .gh-brand,
.weather-golden .qi-val,
.weather-golden .sb-val { color: var(--gold) !important; }

/* ── Storm: red warning tint on UI ────────────────────────── */
.weather-storm .economy-status.critical {
  box-shadow: 0 0 20px rgba(239,68,68,0.5);
}

/* ── Blizzard: cool blue-white tint ───────────────────────── */
.weather-blizzard .glass {
  background: rgba(20, 30, 45, 0.55) !important;
  border-color: rgba(200, 220, 255, 0.2) !important;
}

/* ── Chair Identity ────────────────────────────────────────── */
.chair-identity {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  opacity: 0.85;
  text-transform: uppercase;
  cursor: help;
  transition: opacity 0.3s;
  margin-bottom: 2px;
}
.chair-identity:hover { opacity: 1; }

/* ── Scenario Card Chair Line ──────────────────────────────── */
.ss-chair {
  font-size: 0.8rem;
  color: var(--gold);
  margin: 2px 0 6px;
  opacity: 0.9;
}

/* Chair portrait in scenario select card */
.ss-portrait-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}
.ss-chair-portrait {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-glow);
  filter: grayscale(0.3) contrast(1.1);
  transition: filter 0.3s;
}
.ss-card:hover .ss-chair-portrait { filter: grayscale(0) contrast(1.2); }
.ss-chair-emoji {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--border-glow);
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  background: var(--bg-raised);
}

/* Game-over image */
.go-image {
  display: block;
  width: 100%;
  max-height: 220px;
  overflow: hidden;
  border-radius: var(--r-md);
  margin-bottom: 16px;
}
.go-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--r-md);
}

/* ── Unconventional Tools ──────────────────────────────────── */
.unconventional-tools {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.wc-btn, .qe-btn {
  flex: 1;
  padding: 8px 10px;
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid;
}

.wc-btn {
  background: rgba(139, 92, 246, 0.15);
  border-color: #8b5cf6;
  color: #a78bfa;
}
.wc-btn:hover { background: rgba(139, 92, 246, 0.3); }

.qe-btn {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--gold);
  opacity: 0.5;
}
.qe-btn:hover { opacity: 0.8; }
.qe-btn.qe-active {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--gold);
  color: var(--gold);
  opacity: 1;
  animation: pulse-cyan 2s ease-in-out infinite;
}

/* ── Wildcard Modal ─────────────────────────────────────────── */
.wildcard-modal {
  max-width: 560px;
  width: 90%;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 90vh;
  overflow-y: auto;
}

.wm-header { text-align: center; }
.wm-title  { font-size: 1.1rem; color: #a78bfa; margin-bottom: 8px; }
.wm-sub    { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.5; }

.wc-option {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--r-md);
  padding: 14px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: all 0.2s;
  color: var(--text-primary);
  font-family: var(--font-body);
}
.wc-option:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: #8b5cf6;
  transform: translateY(-1px);
}
.wco-icon  { font-size: 1.8rem; flex-shrink: 0; margin-top: 2px; }
.wco-label { font-weight: 700; font-size: 0.9rem; margin-bottom: 4px; color: #c4b5fd; }
.wco-desc  { font-size: 0.8rem; line-height: 1.5; color: var(--text-secondary); margin-bottom: 6px; }
.wco-note  { font-size: 0.72rem; color: var(--text-dim); font-style: italic; border-top: 1px solid rgba(139,92,246,0.2); padding-top: 6px; }

.em-btn.secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-dim);
  font-size: 0.75rem;
}
.em-btn.secondary:hover { color: var(--text-primary); border-color: var(--border-mid); }

/* ── Ad Slots ──────────────────────────────────────────────── */
.ad-slot {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  min-height: 0;
  overflow: hidden;
}

/* Landing page footer ad — full-width banner area */
.ad-slot-footer {
  max-width: 970px;
  margin: 0 auto;
  padding: 12px 0 4px;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* In-debrief ad — shown during modal read time */
.ad-slot-debrief {
  margin: 16px 0 8px;
  min-height: 0;
  border-top: 1px solid var(--border-dim);
  padding-top: 12px;
}

/* Hide ad slots when empty (no AdSense yet) */
.ad-slot:empty,
.ad-slot:not(:has(*)) {
  display: none;
}
