/* ═══════════════════════════════════════════════════════
   CogniFootball: Design System v2
   Tokens extracted from Figma: sgBNkVZbpb4eOmWcf00TYy
═══════════════════════════════════════════════════════ */

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

:root {
  /* Backgrounds */
  --bg:            #0C0E10;
  --bg-card:       rgba(26, 29, 33, 0.80);
  --bg-header:     rgba(18, 20, 22, 0.80);
  --bg-input:      rgba(26, 29, 33, 0.60);

  /* Accent: neon green from Figma #00FF80 / #00E472 */
  --accent:        #00FF80;
  --accent-mid:    rgba(0, 255, 128, 0.80);
  --accent-dim:    rgba(0, 255, 128, 0.60);
  --accent-subtle: rgba(0, 255, 128, 0.10);
  --accent-glow:   rgba(0, 255, 128, 0.15);

  /* Text */
  --text-primary:   #E2E2E5;
  --text-secondary: #B9CBB8;
  --text-muted:     rgba(185, 203, 184, 0.45);

  /* Borders */
  --border:      #3B4B3C;
  --border-dim:  rgba(59, 75, 60, 0.50);
  --border-card: rgba(59, 75, 60, 0.30);

  /* Typography */
  --font-brand: 'Montserrat', system-ui, sans-serif;
  --font-ui:    'Montserrat', system-ui, sans-serif;

  /* Blur */
  --blur-sm: blur(6px);
  --blur-md: blur(12px);
  --blur-lg: blur(50px);

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── Screens ─────────────────────────────────────── */
#app { position: relative; min-height: 100vh; }
.screen { display: none; min-height: 100vh; position: relative; }
.screen.active { display: flex; flex-direction: column; }

/* ─── Background layers ───────────────────────────── */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.bg-pitch-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Pitch/grass is in bottom 35% of the image */
  object-position: center 88%;
  /* Slight green tint boost: image is already dark/atmospheric */
  filter: brightness(1.15) saturate(1.2) hue-rotate(8deg);
}
.bg-overlay {
  position: absolute;
  inset: 0;
  /* Very light overlay: let the photo breathe */
  background: rgba(8, 12, 9, 0.18);
}
.bg-green-cast {
  position: absolute;
  inset: 0;
  /* Replicate Figma's stadium-light green glow from below */
  background: radial-gradient(ellipse 80% 50% at 50% 110%,
    rgba(0, 80, 25, 0.50) 0%,
    rgba(0, 40, 12, 0.20) 55%,
    transparent 100%);
}
.bg-grad-tb {
  position: absolute;
  inset: 0;
  /* Darken top (sky already dark in photo), leave pitch visible */
  background: linear-gradient(180deg,
    rgba(8,12,9,0.90) 0%,
    rgba(8,12,9,0.40) 15%,
    transparent 35%,
    transparent 68%,
    rgba(8,12,9,0.85) 100%);
}
.bg-grad-lr {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(8,12,9,0.75) 0%,
    transparent 22%,
    transparent 78%,
    rgba(8,12,9,0.75) 100%);
}
.game-bg { position: fixed; }

/* ─── HUD corner decorations ──────────────────────── */
.hud-deco {
  position: fixed;
  z-index: 1;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  opacity: 0.38;
}
.hud-deco--tl { top: 80px; left: 24px; }
.hud-deco--br { bottom: 24px; right: 24px; align-items: flex-end; }
.hud-coord {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-transform: uppercase;
}
.hud-circles {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 24px;
  pointer-events: none;
  opacity: 0.18;
  z-index: 1;
}
.hud-circle {
  border: 1px solid var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.hud-circle--lg { width: 72px; height: 72px; }
.hud-circle--sm { width: 48px; height: 48px; margin-left: 12px; }

/* ─── Header ──────────────────────────────────────── */
.hud-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  flex-shrink: 0;
}
.hud-header--game { padding: 0 24px; }

.header-logo {
  font-family: var(--font-brand);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  text-decoration: none;
}
.logo-accent { color: var(--accent); }

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-status {
  display: flex;
  align-items: center;
  gap: 7px;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}
.status-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent-dim);
  text-transform: uppercase;
}
.header-sep {
  width: 1px;
  height: 32px;
  background: var(--border-dim);
}
.header-user {
  display: flex;
  align-items: center;
  gap: 12px;
}
.user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.user-role {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent-dim);
  text-transform: uppercase;
  line-height: 1;
}
.user-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1;
}
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: var(--accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
}

/* ─── Game title bar ──────────────────────────────── */
.game-title-bar {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.btn-back {
  font-size: 13px;
}

/* ─── Home: main area ─────────────────────────────── */
.home-main {
  flex: 1;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 48px 24px 32px;
  min-height: 0;
}

/* ─── CTA block ───────────────────────────────────── */
.cta-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-ambient {
  position: absolute;
  width: 580px;
  height: 220px;
  border-radius: 50%;
  background: var(--accent-subtle);
  filter: blur(52px);
  pointer-events: none;
}
.cta-frame {
  position: relative;
  padding: 6px;
}

/* Corner brackets */
.cta-bracket {
  position: absolute;
  width: 22px;
  height: 22px;
  opacity: 0.6;
}
.cta-bracket--tl { top: -10px; left: -10px;  border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.cta-bracket--tr { top: -10px; right: -10px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); }
.cta-bracket--bl { bottom: -10px; left: -10px;  border-bottom: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.cta-bracket--br { bottom: -10px; right: -10px; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); }

.cta-inner {
  position: relative;
  padding: 32px 52px;
  background: rgba(9, 11, 13, 0.82);
  border: 2px solid var(--accent);
  border-radius: var(--r-lg);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}
.cta-glitch {
  position: absolute;
  inset: 0;
  background: var(--accent-subtle);
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-brand);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  line-height: 1.2;
}
.cta-sub {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cta-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-dim);
  animation: ctaPulse 1.6s ease-in-out infinite;
}
.cta-pulse-dot:last-child { animation-delay: 0.8s; }
@keyframes ctaPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(0.7); }
}
.cta-status-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent-dim);
}
.cta-btn {
  margin-top: 10px;
  padding: 14px 44px;
  background: var(--accent);
  color: #050a06;
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background 0.12s, transform 0.08s, opacity 0.12s;
}
.cta-btn:hover  { background: #00e472; }
.cta-btn:active { transform: scale(0.97); }

/* ─── HUD Ticker ──────────────────────────────────── */
.ticker-card {
  width: 100%;
  max-width: 640px;
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  border-radius: var(--r-md);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  padding: 16px 24px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ticker-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ticker-metric {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
.tm-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  line-height: 1;
}
.tm-val {
  font-family: var(--font-brand);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.tm-accent { color: var(--accent); }
.tm-sep {
  width: 1px;
  height: 36px;
  background: var(--border-dim);
  flex-shrink: 0;
}
.ticker-bar {
  height: 2px;
  background: var(--border-dim);
  border-radius: 1px;
  overflow: hidden;
}
.ticker-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 1px;
  transition: width 0.6s ease;
}

/* ─── Bento game cards ────────────────────────────── */
.bento-section {
  position: relative;
  z-index: 2;
  padding: 0 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--r-lg);
  padding: 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 14px;
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  transition: border-color 0.15s, background 0.15s;
  position: relative;
  overflow: hidden;
}
.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-subtle);
  opacity: 0;
  transition: opacity 0.15s;
}
.bento-card:hover { border-color: var(--border-dim); }
.bento-card:hover::before { opacity: 1; }
.bento-card.done { border-color: rgba(0,255,128,0.35); }
.bento-card.done::before { opacity: 0.5; }

.bento-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.bento-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  line-height: 1;
}
.bento-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-dim);
  flex-shrink: 0;
  margin-top: 2px;
}
.bento-card.done .bento-status-dot { background: var(--accent); }

.bento-icon {
  font-size: 22px;
  color: var(--text-secondary);
  line-height: 1;
}
.bento-card.done .bento-icon { color: var(--accent); }

.bento-card-bottom {}
.bento-name {
  font-family: var(--font-brand);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 5px;
}
.bento-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.bento-result {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--accent-subtle);
  border: 1px solid rgba(0,255,128,0.25);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent-dim);
  text-transform: uppercase;
}

.home-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ─── Buttons ─────────────────────────────────────── */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-dim);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}
.btn-ghost:hover {
  border-color: var(--border);
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}
.btn-ghost:active { transform: scale(0.97); }
.btn-ghost .ti { font-size: 15px; }

/* ─── Game screen shell ───────────────────────────── */
.game-shell {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 24px 32px;
  gap: 12px;
}
.game-progress-track {
  height: 2px;
  background: var(--border-dim);
  border-radius: 1px;
  overflow: hidden;
}
.game-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 1px;
  transition: width 0.35s ease;
}
.score-bar {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.score-item { text-align: center; }
.score-item .val {
  font-family: var(--font-brand);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}
.score-item .lbl {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.arena {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--r-lg);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  padding: 2rem 1.5rem;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
}
.instructions {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 440px;
  margin: 0 auto 1.5rem;
}
.instructions b { color: var(--text-primary); font-weight: 600; }

.game-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ─── Results screen ──────────────────────────────── */
.results-shell {
  position: relative;
  z-index: 2;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.results-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 4px;
}
.results-title {
  font-family: var(--font-brand);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.results-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.radar-wrap {
  display: flex;
  justify-content: center;
  padding: 16px 0;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--r-lg);
  padding: 20px;
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
}

/* ─── Shared result score cards ───────────────────── */
.res-score-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--r-md);
  padding: 16px;
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
}
.res-score-card.done { border-color: rgba(0,255,128,0.25); }

/* ─── Stat box (finish screens) ───────────────────── */
.stat-box {
  background: rgba(26,29,33,0.6);
  border: 1px solid var(--border-card);
  border-radius: var(--r-sm);
  padding: 12px 8px;
  text-align: center;
}
.stat-box-val {
  font-family: var(--font-brand);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.stat-box-lbl {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* ─── Stop-Signal game elements ───────────────────── */
@keyframes ssFloat {
  0%   { opacity: 1; transform: translate(-50%,-50%); }
  100% { opacity: 0; transform: translate(-50%,-220%); }
}

/* ─── Flanker task ────────────────────────────────── */
.arrow-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 1rem; }
.arrow-btn {
  width: 62px; height: 62px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 28px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.1s, border-color 0.1s;
  color: var(--text-primary);
}
.arrow-btn:hover { background: rgba(0,255,128,0.08); border-color: var(--border); }
.arrow-btn.correct { background: var(--accent-subtle); border-color: var(--accent); }
.arrow-btn.wrong   { background: rgba(226,75,74,0.12); border-color: #E24B4A; }

.dir-stim-area { min-height: 90px; display: flex; align-items: center; justify-content: center; margin: 0.75rem 0; }
.dir-fixation  { font-size: 40px; color: var(--text-muted); user-select: none; }
.dir-flanker-row { display: flex; align-items: center; gap: 14px; font-size: 40px; user-select: none; }
.flanker-arrow { color: var(--text-secondary); }
.flanker-arrow.target { color: var(--accent); font-weight: 700; transform: scale(1.2); }

/* ─── Practice banner ─────────────────────────────── */
.practice-banner {
  background: rgba(186,117,23,0.15);
  border: 1px solid rgba(186,117,23,0.4);
  color: #d4890a;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  border-radius: var(--r-sm);
  padding: 6px 14px;
  margin-bottom: 8px;
}

/* ═══════════════════════════════════════════════════════
   PLAYER MENU + INSTRUCTION DECK + ADMIN  (NeurApex)
═══════════════════════════════════════════════════════ */

/* ─── Shared outlined button (mockup style) ───────── */
.outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 56px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 2px;
  color: #fff;
  font-family: var(--font-brand);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s, transform 0.08s;
}
.outline-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 255, 128, 0.06);
}
.outline-btn:active { transform: scale(0.98); }

/* ─── Player menu ─────────────────────────────────── */
#screen-menu { align-items: center; justify-content: center; overflow: hidden; }
.menu-stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
  padding: 24px;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}
.menu-logo {
  width: min(760px, 82vw);
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 30px rgba(0, 0, 0, 0.6));
}
.menu-tagline {
  font-family: var(--font-brand);
  font-size: clamp(24px, 3.6vw, 44px);
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.01em;
  margin-top: -6px;
}
.menu-cta { margin-top: 14px; }

.lang-select-wrap {
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 30;
}
.lang-select {
  appearance: none; -webkit-appearance: none;
  font-family: var(--font-brand); font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  padding: 7px 30px 7px 12px; border-radius: 999px; border: 1px solid rgba(3, 255, 128, 0.3);
  background: rgba(6, 14, 11, 0.7); color: rgba(230, 240, 235, 0.9); cursor: pointer;
  transition: border-color 0.15s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2303ff80' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.lang-select:hover, .lang-select:focus { border-color: #03ff80; outline: none; }
.lang-select option { background: #0a1712; color: #eaf3ee; }

/* menu exit animation (elements rise + fade before slides appear) */
.menu-stage.lift-out { transform: translateY(-70px); opacity: 0; }

/* ─── Instruction slide deck ──────────────────────── */
#screen-instructions { align-items: center; justify-content: center; overflow: hidden; }
.slide-logo {
  position: fixed;
  top: 46px;
  left: 50%;
  transform: translateX(-50%);
  width: min(280px, 46vw);
  height: auto;
  z-index: 3;
  opacity: 0.96;
}
.slide-stage {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: clamp(36px, 7vw, 96px);
  width: min(1100px, 90vw);
  padding: 24px;
}
.slide-icon {
  flex-shrink: 0;
  width: clamp(150px, 20vw, 260px);
  height: clamp(150px, 20vw, 260px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide-icon svg { width: 100%; height: 100%; }
.slide-icon img { width: 100%; height: 100%; object-fit: contain; }
.slide-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}
.slide-heading {
  font-family: var(--font-brand);
  font-size: clamp(30px, 4.4vw, 58px);
  font-weight: 800;
  line-height: 1.12;
  color: #fff;
  letter-spacing: -0.01em;
}
.slide-sub {
  font-family: var(--font-brand);
  font-size: clamp(16px, 2vw, 26px);
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.35;
  margin-top: -12px;
}
.slide-sub:empty { display: none; }
.slide-cta { margin-top: 6px; }

/* ─── Position picker (onboarding profile step) ─── */
.pos-picker {
  position: relative;
  z-index: 2;
  width: min(880px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.pos-eyebrow {
  font-family: var(--font-brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--accent);
}
.pos-heading {
  font-family: var(--font-brand);
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}
.pos-sub {
  font-family: var(--font-brand);
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 18px;
}
.pos-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 20px);
  width: 100%;
}
.pos-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 26px 18px;
  border-radius: 16px;
  border: 1px solid rgba(3, 255, 128, 0.16);
  background: rgba(6, 14, 11, 0.55);
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.08s ease, box-shadow 0.15s ease;
}
.pos-card:hover {
  border-color: rgba(3, 255, 128, 0.5);
  background: rgba(3, 255, 128, 0.06);
  box-shadow: 0 0 26px rgba(3, 255, 128, 0.15);
}
.pos-card:active { transform: scale(0.97); }
.pos-ico { font-size: 40px; line-height: 1; }
.pos-name {
  font-family: var(--font-brand);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 700;
  color: #eef4f0;
}
.pos-desc {
  font-family: var(--font-brand);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}
@media (max-width: 640px) {
  .pos-options { grid-template-columns: 1fr; }
  .pos-card { flex-direction: row; justify-content: flex-start; text-align: left; gap: 16px; padding: 18px; }
}

/* per-slide enter animation */
.slide-stage.slide-enter { animation: slideEnter 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes slideEnter {
  from { opacity: 0; transform: translateY(48px); }
  to   { opacity: 1; transform: translateY(0); }
}
.slide-stage.slide-exit { opacity: 0; transform: translateY(-40px); transition: opacity 0.28s ease, transform 0.28s ease; }

.slide-dots {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.slide-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transition: background 0.2s, transform 0.2s;
}
.slide-dot.active { background: var(--accent); transform: scale(1.25); }

/* ─── Admin test picker ───────────────────────────── */
.admin-picker {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 640px;
  margin: 24px auto 0;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.admin-picker-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.admin-picker-row { display: flex; gap: 10px; }
.admin-select {
  flex: 1;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-primary);
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.admin-select:focus { outline: none; border-color: var(--accent); }
.admin-trial-count { flex: 0 0 96px; cursor: text; }
.admin-launch {
  padding: 12px 28px;
  font-size: 14px;
  border-width: 1px;
}

/* ─── Responsive ──────────────────────────────────── */
@media (max-width: 640px) {
  .hud-header { padding: 0 16px; }
  .hud-deco, .hud-circles { display: none; }
  .home-main { padding: 32px 16px 24px; gap: 20px; }
  .cta-inner { padding: 24px 28px; }
  .cta-title { font-size: 20px; letter-spacing: 0.05em; }
  .bento-section { padding: 0 16px 24px; }
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .ticker-card { padding: 14px 16px 10px; }
  .tm-val { font-size: 17px; }
  .game-shell { padding: 16px 12px 24px; }
  .dir-flanker-row { font-size: 30px; gap: 8px; }

  .outline-btn { padding: 15px 34px; font-size: 16px; }
  .menu-stage { gap: 22px; }
  .slide-stage { flex-direction: column; text-align: center; gap: 28px; }
  .slide-body { align-items: center; }
  .slide-icon { width: 120px; height: 120px; }
  .admin-picker-row { flex-direction: column; }
}

/* ─── Print / "Generuj PDF" ───────────────────────────
   window.print() on the results screen. Force background colors to
   print (browsers strip them by default) so the report keeps its
   black/green identity instead of printing as invisible white-on-white,
   hide anything that isn't part of the report itself, and drop effects
   (blur, glow) that print engines render inconsistently. ────────────── */
@media print {
  * { print-color-adjust: exact !important; -webkit-print-color-adjust: exact !important; }
  html, body { background: #0C0E10 !important; }
  .bg, .rp-no-print { display: none !important; }
  .hud-header { position: static; border-bottom: none; }
  .screen { min-height: 0; }
  .rp-panel { backdrop-filter: none !important; box-shadow: none !important; break-inside: avoid; }
  .rp-arch { box-shadow: none !important; }
  .rp-bp-fill, .rp-sk-fill { box-shadow: none !important; }
}
@page { size: A4; margin: 14mm; }
