/*  ============================================================
    TeleStats — Modern Teletext-Inspired Theme
    ============================================================
    Shared CSS for all ts-*.html game pages.
    Link this BEFORE any inline <style> blocks.
    ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

/* ── Colour System ────────────────────────────────────────── */
:root {
  /* Base UI (modern dark — no green tint) */
  --bg:            #0B0F12;
  --bg-panel:      #12181D;
  --bg-card:       #171F25;
  --bg-elevated:   #1E272E;

  --text-primary:  #F2F5F7;
  --text-secondary:#9BA7B0;
  --text-muted:    #6F7A83;

  /* Teletext accent palette */
  --accent-cyan:    #00E5FF;
  --accent-yellow:  #FFD60A;
  --accent-magenta: #FF2E9F;
  --accent-green:   #32FF7E;

  /* Pitch (the most organic green in the UI) */
  --pitch-green:  #2E6F3E;
  --pitch-lines:  rgba(255,255,255,0.25);

  /* ── Legacy aliases ────────────────────────────────────── *
     Existing CSS references like var(--card), var(--accent),
     var(--muted) etc. keep working without any changes.       */
  --card:         #171F25;
  --card-dark:    #12181D;
  --ink:          #F2F5F7;
  --muted:        #9BA7B0;
  --btn:          #1E272E;
  --btn-hover:    #2A353D;
  --accent:       #00E5FF;
  --accent-dim:   #00B8D4;
  --gold:         #FFD60A;
  --danger:       #e05555;
  --used:         #555;

  /* XI-specific */
  --pitch:        #2E6F3E;
  --pitch-line:   rgba(255,255,255,0.25);
  --slot-empty:   rgba(255,255,255,0.10);
  --slot-correct: #32FF7E;
  --slot-wrong:   #e05555;
}

/* ── Typography ───────────────────────────────────────────── */
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.4;
}

h1, h2, h3,
.stat .v,
.score-display,
.chain,
.results-score {
  font-family: 'Space Mono', 'Courier New', monospace;
  letter-spacing: -0.8px;
}

/* ── Monospace Numbers (authoritative stat feel) ─────────── */
.pill .score,
.score-big,
.score-banner,
.timer-display,
.results-score,
.results-stat .val,
.chain,
.clue-counter,
.q-number {
  font-family: 'Space Mono', 'Courier New', monospace;
  font-weight: 800;
  text-shadow: none;
}

/* ── Teletext Header Bar ──────────────────────────────────── */
.ts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  padding: 10px 16px;
  border-bottom: 3px solid var(--accent-cyan);
  color: var(--text-muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  max-width: 560px;
  margin: 0 auto 8px;
}
.ts-header .ts-brand {
  color: var(--accent-cyan);
  font-weight: 700;
}
.ts-header .ts-logo {
  height: 28px;
  width: auto;
  display: block;
}
.ts-header .ts-time {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ── Scanline Overlay (<2% opacity — barely visible texture) ─ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.018) 2px,
    rgba(0, 0, 0, 0.018) 4px
  );
}

/* ── Primary Button (Yellow CTA — bold & flat) ───────────── */
.go-btn.primary,
.btn-primary {
  background: var(--accent-yellow) !important;
  color: #0B0F12 !important;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  transition: background 0.12s, opacity 0.12s;
}
.go-btn.primary:hover:not(:disabled),
.btn-primary:hover:not(:disabled) {
  background: #E6C009 !important;
  box-shadow: none;
}
.go-btn.primary:disabled,
.btn-primary:disabled {
  background: var(--bg-elevated) !important;
  color: var(--text-muted) !important;
  box-shadow: none;
}

/* ── Secondary Button (Cyan Border — clean) ──────────────── */
.go-btn.secondary,
.btn-secondary {
  background: var(--bg-panel) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--accent-cyan) !important;
  border-radius: 10px;
  font-weight: 600;
  transition: background 0.12s;
}
.go-btn.secondary:hover:not(:disabled),
.btn-secondary:hover:not(:disabled) {
  background: var(--bg-elevated) !important;
  box-shadow: none;
}

/* ── Danger Button ────────────────────────────────────────── */
.btn-danger {
  background: var(--danger) !important;
  color: #fff !important;
  border: none;
}

/* ── Tags & Chips (Teletext Block Style — blocky) ────────── */
.badge,
.scope-badge,
.q-difficulty {
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 3px;
  padding: 4px 10px;
}

/* ── Card styling (reduced radius) ───────────────────────── */
.card {
  border: 1px solid transparent;
  border-radius: 12px !important;
  transition: border-color 0.2s;
}

/* ── Input focus ──────────────────────────────────────────── */
input:focus,
select:focus {
  border-color: var(--accent-cyan) !important;
  outline: none;
}

/* ── Pixel-style dividers ─────────────────────────────────── */
.ts-divider {
  border: none;
  border-top: 1px dotted var(--text-muted);
  margin: 12px 0;
  opacity: 0.4;
}

/* ── Selection / Active States (highlighted block feel) ───── */
.option-btn.selected {
  border-color: var(--accent-cyan) !important;
  background: rgba(0, 229, 255, 0.10) !important;
  box-shadow: inset 0 0 0 1px var(--accent-cyan);
}
.option-btn:hover:not(.selected) {
  border-color: rgba(0, 229, 255, 0.4) !important;
  background: var(--bg-elevated) !important;
}

/* Answer buttons — highlighted block when selected */
.answer-btn.selected {
  border-color: var(--accent-cyan) !important;
  background: rgba(0, 229, 255, 0.10) !important;
}

/* ── Correct Answer Flash ────────────────────────────────── */
@keyframes correctFlash {
  0% { background: rgba(50, 255, 126, 0.25); }
  100% { background: rgba(50, 255, 126, 0.10); }
}
.answer-btn.correct {
  animation: correctFlash 0.4s ease-out;
}

/* ── Clue Reveal Animation ───────────────────────────────── */
.clue-item.revealed {
  opacity: 1;
  transform: translateY(0);
  border-left: 3px solid var(--accent-cyan);
}
@keyframes clueSlideIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}
.clue-item.animate-in {
  animation: clueSlideIn 0.3s ease-out forwards;
}

/* ── Section Dividers (dotted pixel-style) ───────────────── */
.ts-divider,
.card + .card::before {
  border: none;
  border-top: 1px dotted rgba(111, 122, 131, 0.35);
  margin: 12px 0;
}

/* ── Back link ────────────────────────────────────────────── */
.back-link {
  color: var(--text-muted);
  transition: color 0.15s;
}
.back-link:hover {
  color: var(--accent-cyan);
}

/* ── Spinner ──────────────────────────────────────────────── */
.spinner {
  border-color: var(--text-muted);
  border-top-color: var(--accent-cyan);
}

/* ── Global Border-Radius Reduction (~20%) ───────────────── */
.option-btn,
.diff-btn,
.formation-btn,
.answer-btn,
.go-btn {
  border-radius: 10px !important;
}

/* ── Difficulty Tags — Extra Blocky ──────────────────────── */
.q-difficulty {
  border-radius: 3px !important;
  padding: 4px 12px;
  font-size: 11px;
  letter-spacing: 1.2px;
}

/* ── Question Card — Higher Contrast ─────────────────────── */
#questionCard,
.card:has(.q-text) {
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ============================================================
   TeleStats Nav Bar
   ============================================================ */
.ts-nav {
  background: var(--bg-panel);
  border-bottom: 2px solid var(--accent-cyan);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.ts-nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 16px;
  height: 52px;
  gap: 8px;
}
.ts-nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.ts-nav-logo {
  height: 28px;
  width: auto;
}
.ts-nav-links {
  display: flex;
  gap: 4px;
  margin-left: 16px;
  flex: 1;
}
.ts-nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.ts-nav-link:hover { color: var(--text-primary); background: var(--bg-elevated); }
.ts-nav-link.active { color: var(--accent-cyan); }
.ts-nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.ts-nav-profile {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 8px;
  transition: background 0.15s;
}
.ts-nav-profile:hover { background: var(--bg-elevated); }
.ts-nav-username {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ts-nav-xp {
  color: var(--accent-yellow);
  font-size: 11px;
  font-weight: 700;
  font-family: 'Space Mono', monospace;
}
.ts-nav-auth { display: flex; gap: 8px; align-items: center; }
.ts-nav-signup {
  color: var(--accent-yellow) !important;
  font-weight: 700 !important;
}
.ts-nav-login-btn {
  background: transparent;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
  min-height: auto;
  width: auto;
}
.ts-nav-login-btn:hover { background: rgba(0, 229, 255, 0.1); }
.ts-nav-logout-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
  min-height: auto;
  width: auto;
  transition: color 0.15s;
}
.ts-nav-logout-btn:hover { color: var(--danger); }
.ts-nav-pro-btn {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--accent-yellow);
  color: var(--accent-yellow);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-decoration: none;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.5px;
  transition: all 0.15s;
  margin-left: 4px;
}
.ts-nav-pro-btn:hover {
  background: var(--accent-yellow);
  color: #0B0F12;
}
.ts-nav-pro-badge {
  display: inline-block;
  background: var(--accent-yellow);
  color: #0B0F12;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.5px;
  margin-left: 4px;
}
.ts-level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 2px solid;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  font-family: 'Space Mono', monospace;
  flex-shrink: 0;
}
/* Mobile hamburger */
.ts-nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-height: auto;
  width: auto;
  flex-direction: column;
  gap: 4px;
}
.ts-nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.2s;
}
.ts-nav-mobile {
  display: none;
  flex-direction: column;
  padding: 8px 16px 16px;
  background: var(--bg-panel);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ts-nav-mobile .ts-nav-link {
  padding: 10px 0;
  font-size: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
@media (max-width: 640px) {
  .ts-nav-links, .ts-nav-right { display: none; }
  .ts-nav-hamburger { display: flex; margin-left: auto; }
  .ts-nav.mobile-open .ts-nav-mobile { display: flex; }
}

/* ============================================================
   Modal / Overlay
   ============================================================ */
.ts-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
  backdrop-filter: blur(4px);
}
.ts-modal {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 28px 24px;
  max-width: 400px;
  width: 100%;
  position: relative;
}
.ts-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  min-height: auto;
  width: auto;
  line-height: 1;
}
.ts-modal-close:hover { color: var(--text-primary); }
.ts-modal-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}
.ts-tab {
  flex: 1;
  background: var(--bg-panel);
  border: none;
  color: var(--text-muted);
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  min-height: auto;
}
.ts-tab.active {
  background: var(--bg-elevated);
  color: var(--accent-cyan);
}
.ts-tab-panel { display: none; }
.ts-tab-panel.active { display: block; }
.ts-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  margin-bottom: 10px;
  transition: border-color 0.2s;
  box-sizing: border-box;
  font-family: inherit;
}
.ts-input:focus { border-color: var(--accent-cyan); outline: none; }
.ts-input::placeholder { color: var(--text-muted); }
.ts-btn {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 8px;
  margin-bottom: 8px;
  border: none;
  min-height: auto;
}
.ts-divider-text {
  text-align: center;
  position: relative;
  margin: 12px 0;
}
.ts-divider-text::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(255,255,255,0.08);
}
.ts-divider-text span {
  background: var(--bg-card);
  padding: 0 12px;
  position: relative;
  color: var(--text-muted);
  font-size: 12px;
}
.ts-auth-msg {
  text-align: center;
  font-size: 13px;
  margin-top: 8px;
  min-height: 20px;
  color: var(--text-muted);
}
.ts-auth-msg.error { color: var(--danger); }
.ts-auth-msg.success { color: var(--accent-green); }
.ts-auth-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}
.ts-limit-modal { text-align: center; }
.ts-limit-modal h2 { font-size: 20px; margin-bottom: 12px; color: var(--accent-yellow); }
.ts-limit-modal p { color: var(--text-secondary); font-size: 14px; margin-bottom: 20px; line-height: 1.5; }
.ts-limit-actions { display: flex; flex-direction: column; gap: 8px; }
.ts-limit-actions .ts-btn { text-decoration: none; text-align: center; display: block; }

/* ============================================================
   XP Toast
   ============================================================ */
.ts-xp-toast {
  position: fixed;
  top: 64px;
  right: 16px;
  background: var(--bg-card);
  border: 1px solid var(--accent-yellow);
  border-radius: 10px;
  padding: 14px 20px;
  z-index: 10001;
  transform: translateX(120%);
  transition: transform 0.3s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.ts-xp-toast.show { transform: translateX(0); }
.ts-xp-amount {
  font-family: 'Space Mono', monospace;
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-yellow);
}
.ts-xp-streak {
  font-size: 13px;
  color: var(--accent-green);
  margin-top: 4px;
}
.ts-xp-levelup {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-magenta);
  margin-top: 4px;
}

/* ============================================================
   Share Card
   ============================================================ */
.ts-share-card {
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 16px;
  margin-top: 16px;
}
.ts-share-text {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--text-secondary);
  white-space: pre-wrap;
  margin: 0 0 12px;
  line-height: 1.6;
}
.ts-share-actions { display: flex; gap: 8px; }
.ts-share-btn { flex: 1; }

/* ============================================================
   XP Progress Bar
   ============================================================ */
.ts-xp-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-panel);
  border-radius: 4px;
  overflow: hidden;
}
.ts-xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-yellow));
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* ============================================================
   Lock Icon (for tier-restricted content)
   ============================================================ */
.ts-locked {
  position: relative;
  opacity: 0.5;
  pointer-events: none;
}
.ts-locked::after {
  content: '\1F512';
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 18px;
}
.ts-lock-badge {
  display: inline-block;
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Space Mono', monospace;
}

/* ============================================================
   Game Meta Links (How to Play / Settings)
   ============================================================ */
.game-meta-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 4px 0 12px;
}
.game-meta-link {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  font-family: 'Inter', system-ui, sans-serif;
  text-decoration: none;
}
.game-meta-link:hover {
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.06);
}
.game-meta-link svg {
  display: inline-block;
  vertical-align: -2px;
  margin-right: 4px;
}

/* Rules / Settings Modal Overlay */
.game-rules-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.game-rules-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.game-rules-modal {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 24px;
  max-width: 440px;
  width: 100%;
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
}
.game-rules-modal h3 {
  font-family: 'Space Mono', monospace;
  font-size: 18px;
  margin: 0 0 16px;
  color: var(--accent-cyan);
}
.game-rules-modal .rule-step {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  align-items: flex-start;
}
.game-rules-modal .rule-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--accent-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Space Mono', monospace;
  color: var(--accent-cyan);
}
.game-rules-modal .rule-text {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
  flex: 1;
}
.game-rules-modal .rule-text strong {
  color: var(--text-primary);
}
.game-rules-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
  min-height: auto;
  width: auto;
  line-height: 1;
}
.game-rules-close:hover { color: var(--text-primary); }

/* Settings rows inside modal */
.game-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.game-settings-row:last-child { border-bottom: none; }
.game-settings-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.game-settings-label small {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 2px;
}

/* ─── Plays Remaining Counter ─── */
.ts-plays-counter {
  text-align: center;
  font-size: 13px;
  color: var(--fg);
  font-family: 'Space Mono', monospace;
  margin: 12px auto;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(0,229,255,.06), rgba(50,255,126,.04));
  border-radius: 10px;
  max-width: 320px;
  border: 1px solid rgba(0,229,255,.15);
}
.ts-plays-counter.ts-plays-low {
  color: var(--accent-yellow);
  border-color: rgba(255,214,10,0.3);
  background: linear-gradient(135deg, rgba(255,214,10,.06), rgba(255,159,28,.04));
}

/* ─── Roulette Selector ─── */
.ts-roulette-container {
  text-align: center;
  margin: 12px 0 16px;
}
.ts-roulette-btn {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta, #FF2E9F));
  color: #0B0F12;
  border: none;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  max-width: 320px;
  font-family: 'Space Mono', monospace;
  transition: transform 0.15s, opacity 0.15s;
}
.ts-roulette-btn:hover:not(:disabled) { transform: translateY(-1px); }
.ts-roulette-btn:disabled { opacity: 0.6; cursor: wait; }
.ts-roulette-display {
  margin: 12px auto 0;
  font-family: 'Space Mono', monospace;
  font-size: 18px;
  font-weight: 800;
  min-height: 48px;
  max-width: 320px;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border-radius: 10px;
  border: 2px solid transparent;
  transition: all 0.1s;
  padding: 10px;
}
.ts-roulette-display.spinning {
  display: flex;
  border-color: var(--accent-cyan);
  animation: ts-roulette-pulse 0.3s infinite alternate;
}
.ts-roulette-display.landed {
  display: flex;
  border-color: var(--accent-yellow);
  color: var(--accent-yellow);
}
@keyframes ts-roulette-pulse {
  from { opacity: 0.8; }
  to { opacity: 1; }
}

/* ─── Locked Scope Cards ─── */
.scope-card.ts-locked {
  opacity: 0.35;
  pointer-events: none;
  position: relative;
}
.scope-card.ts-locked::after {
  content: '🔒';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  opacity: 0.7;
}
/* Locked sections — works for .section, .league-group, and .scope-section wrappers */
.section.ts-locked-section > .section-header,
.league-group.ts-locked-section > .league-group-header,
.scope-section.ts-locked-section > .scope-section-header {
  opacity: 0.5;
}
.section.ts-locked-section .scope-card,
.league-group.ts-locked-section .scope-card,
.scope-section.ts-locked-section .scope-card {
  opacity: 0.35;
  pointer-events: none;
}
.scope-section.ts-locked-section .scope-section-header::after {
  content: '\1F512';
  font-size: 14px;
  margin-left: 8px;
}
/* Lock entire league group: dim cards, disable clicks, show lock */
.league-group.ts-locked-section .game-card {
  opacity: 0.35;
  pointer-events: none;
}
.league-group.ts-locked-section .league-group-header::after {
  content: '\1F512';
  font-size: 16px;
  margin-left: 8px;
  opacity: 0.7;
}
.league-group.ts-locked-section .league-group-header {
  opacity: 0.55;
  pointer-events: auto;
  cursor: default;
}
.league-group.ts-locked-section .section {
  opacity: 0.4;
  pointer-events: none;
}
.ts-upgrade-hint {
  text-align: center;
  font-size: 13px;
  color: var(--accent-yellow);
  padding: 12px 8px;
  margin-top: 8px;
  cursor: pointer;
}
.ts-upgrade-hint:hover { color: var(--accent-cyan); }
.ts-upgrade-hint a { color: var(--accent-cyan); text-decoration: underline; }
.ts-upgrade-hint a:hover { color: var(--accent-yellow); }
