:root {
  --bg: #07090c;
  --panel: #0d1217;
  --panel-elevated: #131a22;
  --line: #222b35;
  --line-light: #323e4d;
  --text: #f3f5f8;
  --muted: #8b96a4;
  --accent: #c7ff4a;
  --accent-glow: rgba(199, 255, 74, 0.28);
  --accent-dim: rgba(199, 255, 74, 0.09);
  --accent-hover: #b5f035;
  --danger: #ff5564;
  --danger-dim: rgba(255, 85, 100, 0.12);
  --success: #22c55e;
  --success-dim: rgba(34, 197, 94, 0.12);
  --warning: #f59e0b;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --font-main: 'Plus Jakarta Sans', Inter, system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at 85% -10%, rgba(199, 255, 74, 0.08), transparent 35%), var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}
body.modal-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* NAVBAR */
.nav {
  height: 72px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  position: sticky;
  top: 0;
  background: rgba(7, 9, 12, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.nav-left { display: flex; align-items: center; gap: 36px; }
.brand { font-weight: 800; letter-spacing: -1px; font-size: 22px; }
.brand span { color: var(--accent); text-shadow: 0 0 18px var(--accent-glow); }
.desktop-nav { display: flex; gap: 24px; color: var(--muted); font-size: 14px; font-weight: 600; }
.desktop-nav a { transition: color 0.18s; padding: 6px 0; }
.desktop-nav a:hover { color: var(--text); }

.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-wallet {
  display: flex;
  gap: 6px;
  align-items: center;
  background: rgba(13, 18, 23, 0.8);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 4px 8px;
}
.wallet-pill { font-size: 12px; font-weight: 700; font-family: var(--font-mono); }
.wallet-pill.attempts { color: var(--accent); }
.wallet-pill.tickets { color: #82aaff; }

.ai-indicator {
  font: 700 11px var(--font-mono);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: rgba(13, 18, 23, 0.6);
  color: var(--muted);
}
.ai-dot { width: 7px; height: 7px; border-radius: 50%; background: #999; }
.ai-indicator.is-live { color: var(--accent); border-color: rgba(199, 255, 74, 0.3); }
.ai-indicator.is-live .ai-dot { background: var(--accent); box-shadow: 0 0 8px var(--accent); }

.lang { display: flex; gap: 3px; }
.lang form { margin: 0; }
.lang button {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: 0.18s;
}
.lang button:hover { border-color: var(--line-light); color: var(--text); }
.lang button.active { background: var(--accent); color: #07090c; border-color: var(--accent); font-weight: 800; }

.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 7px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s, transform 0.18s;
}
.user-profile-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.user-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #666; }
.user-status-dot.is-verified { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.verified-icon { color: var(--accent); font-size: 11px; font-weight: 900; }

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}
.mobile-toggle span { display: block; width: 20px; height: 2px; background: var(--text); }
.mobile-nav-panel {
  display: none;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 20px 24px;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 99;
}
.mobile-nav-panel.is-open { display: block; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; font-size: 16px; font-weight: 600; }
.mobile-wallet { display: flex; gap: 16px; font-size: 14px; margin-bottom: 16px; color: var(--muted); }
.mobile-wallet b { color: var(--text); }
.mobile-user-btn { width: 100%; text-align: center; }

main { max-width: 1440px; margin: auto; }

/* BUTTONS & CORE CONTROLS */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--accent);
  color: #07090c;
  font-weight: 800;
  font-size: 14px;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--accent-glow); background: var(--accent-hover); }

.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 13px 22px;
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s, transform 0.18s;
}
.secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

.cta-sm { padding: 6px 14px; font-size: 12px; background: var(--accent); color: #07090c; border: 0; font-weight: 800; border-radius: var(--radius-sm); cursor: pointer; }
.secondary-sm { padding: 6px 14px; font-size: 12px; background: transparent; color: var(--text); border: 1px solid var(--line); font-weight: 700; border-radius: var(--radius-sm); cursor: pointer; }

.full-width-btn { width: 100%; }
.eyebrow { font: 700 11px var(--font-mono); color: var(--accent); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.card-eyebrow { font: 700 10px var(--font-mono); color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; }

.section { padding: 64px 5vw; border-bottom: 1px solid var(--line); }
.section-head { display: flex; gap: 16px; align-items: center; margin-bottom: 28px; }
.section-head span { color: var(--accent); font-family: var(--font-mono); font-weight: 800; }
.section-head h2 { margin: 0; font-size: clamp(24px, 3vw, 36px); letter-spacing: -0.03em; }

/* DASHBOARD HEADER & PROGRESS */
.dashboard-header-panel {
  padding: 44px 5vw 24px;
  background: linear-gradient(180deg, rgba(199, 255, 74, 0.03), transparent);
  border-bottom: 1px solid var(--line);
}
.dash-user-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 1fr);
  gap: 32px;
  align-items: center;
}
.dash-user-main h1 { font-size: clamp(32px, 4vw, 52px); margin: 6px 0 18px; letter-spacing: -0.04em; }

.level-progress-bar-wrap { max-width: 500px; margin-top: 10px; }
.level-progress-label { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 6px; color: var(--muted); }
.level-progress-label b { color: var(--accent); font-family: var(--font-mono); }
.progress-track { height: 8px; background: var(--panel-elevated); border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.progress-fill { height: 100%; background: linear-gradient(90deg, #82ff4a, var(--accent)); transition: width 0.4s ease; border-radius: 4px; box-shadow: 0 0 10px var(--accent-glow); }

.dashboard-wallet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.wallet-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius-md);
}
.wallet-card small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; font-family: var(--font-mono); letter-spacing: 0.5px; }
.wallet-card strong { display: block; font-size: 22px; font-family: var(--font-mono); color: var(--text); margin: 4px 0 2px; }
.wallet-card span { font-size: 11px; color: var(--muted); }

.notice-bar {
  margin: 20px 5vw 0;
  padding: 12px 18px;
  background: rgba(199, 255, 74, 0.05);
  border: 1px solid rgba(199, 255, 74, 0.2);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: #cce89a;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* FILTER TOOLBAR */
.filter-toolbar {
  padding: 24px 5vw 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.search-box { position: relative; max-width: 440px; }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; }
.search-box input {
  padding-left: 38px;
  width: 100%;
}
.ma-input, .ma-select {
  background: #090c10;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.ma-input:focus, .ma-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(199, 255, 74, 0.12);
}
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.18s;
}
.chip:hover { border-color: var(--line-light); color: var(--text); }
.chip.active { background: var(--accent); color: #07090c; border-color: var(--accent); }

/* SCENARIO TILES */
.game-grid {
  padding: 8px 5vw 64px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.game-tile {
  border: 1px solid var(--line);
  padding: 22px;
  background: var(--panel);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.game-tile:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}
.game-tile.is-completed {
  border-color: rgba(34, 197, 94, 0.35);
  background: linear-gradient(160deg, rgba(34, 197, 94, 0.04), var(--panel));
}

.tile-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.game-num { font: 800 12px var(--font-mono); color: var(--accent); }
.engine-badge {
  font: 750 10px var(--font-mono);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--panel-elevated);
  border: 1px solid var(--line);
  color: #c9d2dc;
  letter-spacing: 0.5px;
}
.engine-badge.negotiation { color: #82ff4a; border-color: rgba(130, 255, 74, 0.25); }
.engine-badge.interview { color: #70c4ff; border-color: rgba(112, 196, 255, 0.25); }
.engine-badge.investigation { color: #fbc02d; border-color: rgba(251, 192, 45, 0.25); }
.engine-badge.sales { color: #ff9800; border-color: rgba(255, 152, 0, 0.25); }
.engine-badge.crisis { color: #ff5564; border-color: rgba(255, 85, 100, 0.25); }
.engine-badge.leadership { color: #c084fc; border-color: rgba(192, 132, 252, 0.25); }

.tile-badge-done {
  font: 800 10px var(--font-mono);
  color: var(--success);
  background: var(--success-dim);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}

.game-tile h3 { font-size: 18px; line-height: 1.25; margin: 0 0 10px; }
.game-tile p { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0 0 18px; flex: 1; }

.tile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 14px;
}
.difficulty-rating { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.diff-bar { width: 4px; height: 10px; background: #232c36; border-radius: 1px; }
.diff-bar.active { background: var(--accent); }
.diff-label { margin-left: 4px; font-family: var(--font-mono); font-size: 11px; }
.tile-turns { font: 700 11px var(--font-mono); color: var(--muted); }
.play-arrow { color: var(--accent); font-weight: 800; font-size: 16px; transition: transform 0.18s; }
.game-tile:hover .play-arrow { transform: translateX(3px); }
.game-tile.is-locked-card { opacity: 0.6; cursor: not-allowed; border-color: rgba(255, 255, 255, 0.08); background: #0b0e12; }
.game-tile.is-locked-card:hover { transform: none; box-shadow: none; border-color: rgba(255, 255, 255, 0.12); }
.tile-badge-locked { font: 800 10px var(--font-mono); color: #8a96a3; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); padding: 2px 7px; border-radius: var(--radius-sm); }

/* LEVEL SELECTOR SECTION */
.level-selector-section {
  margin: 20px 5vw 0;
  padding: 16px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.level-selector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.level-selector-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.level-selector-title strong { color: var(--text); }
.level-hint { font-size: 11px; color: var(--accent); font-family: var(--font-mono); }
.level-current-badge { font-size: 12px; color: var(--muted); }
.level-current-badge b { color: var(--accent); font-family: var(--font-mono); }

.level-pills-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.level-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--panel-elevated);
  border: 1px solid var(--line);
  font: 700 12px var(--font-mono);
  color: var(--muted);
  white-space: nowrap;
  transition: all 0.18s;
  text-decoration: none;
}
.level-pill:hover { border-color: var(--line-light); color: var(--text); }
.level-pill.active {
  background: rgba(199, 255, 74, 0.12);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
}
.level-pill.unlocked .lvl-icon { color: var(--accent); }
.level-pill.preview { border-style: dashed; border-color: rgba(56, 189, 248, 0.5); }
.level-pill.preview .lvl-icon { color: var(--accent-secondary); }
.level-pill.locked { opacity: 0.5; color: #5a6572; }

.pill-badge {
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
  font-family: var(--font-sans);
  font-weight: 800;
  text-transform: uppercase;
}
.pill-badge.curr { background: var(--accent); color: #07090c; }
.pill-badge.prev { background: var(--accent-secondary); color: #07090c; }

/* LEVEL LOCKED BANNER */
.level-locked-banner {
  margin: 16px 5vw 0;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(12, 16, 21, 0.9));
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.lock-shield { font-size: 28px; flex-shrink: 0; }
.lock-info { flex: 1; }
.lock-info h3 { margin: 0 0 4px; font-size: 16px; color: #f87171; }
.lock-info p { margin: 0; font-size: 13px; color: var(--muted); }

/* LOCKED SCENARIOS DRAWER */
.locked-scenarios-section {
  margin: 24px 5vw 0;
}
.locked-drawer {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.locked-drawer-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  color: var(--muted);
  list-style: none;
  transition: background 0.18s;
}
.locked-drawer-summary::-webkit-details-marker { display: none; }
.locked-drawer-summary:hover { background: var(--panel-elevated); color: var(--text); }
.summary-left { display: flex; align-items: center; gap: 8px; }
.summary-hint { font-size: 11px; font-family: var(--font-mono); color: var(--accent); }

.locked-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--line);
  max-height: 380px;
  overflow-y: auto;
}
.locked-tile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  font-size: 12px;
  opacity: 0.6;
}
.locked-num { font: 750 10px var(--font-mono); color: var(--muted); flex-shrink: 0; }
.locked-engine { font: 700 9px var(--font-mono); color: #8ba2b5; background: rgba(255, 255, 255, 0.05); padding: 1px 5px; border-radius: 2px; flex-shrink: 0; }
.locked-title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.tile-lock-badge { font-size: 11px; flex-shrink: 0; opacity: 0.7; }

/* GAME SHELL (PLAY SCREEN) - 3 COLUMN LAYOUT WITH RIGHT LEADERBOARD */
.game-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(360px, 1.3fr) minmax(280px, 0.75fr);
  min-height: calc(100vh - 72px);
}
.game-info {
  padding: 36px 3vw;
  border-right: 1px solid var(--line);
  background: rgba(10, 14, 18, 0.4);
}
.scenario-briefing-header { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; }
.game-tag-pill { font: 800 12px var(--font-mono); color: var(--accent); }
.diff-chip { font: 700 11px var(--font-mono); color: var(--muted); border: 1px solid var(--line); padding: 3px 8px; border-radius: var(--radius-sm); }
.scenario-title { font-size: clamp(28px, 3.5vw, 44px); letter-spacing: -0.035em; line-height: 1.1; margin: 0 0 20px; }

.objective-card {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}
.objective-card p { font-size: 15px; color: #d0d7de; line-height: 1.55; margin: 0; }

/* MISSION DOSSIER BRIEFING CARD */
.mission-dossier-card {
  padding: 20px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.mission-dossier-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
}
.dossier-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 800 11px var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--accent);
}
.dossier-icon { font-size: 14px; }
.dossier-roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.role-badge-item {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.role-badge-item.player-role {
  border-left: 3px solid var(--accent);
}
.role-badge-item.counterpart-role {
  border-left: 3px solid #58a6ff;
}
.role-label {
  font: 700 10px var(--font-mono);
  color: var(--muted);
  text-transform: uppercase;
}
.role-name {
  font-size: 13px;
  color: #f0f6fc;
  font-weight: 600;
  line-height: 1.3;
}
.dossier-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.situation-text {
  font-size: 13.5px;
  color: #c9d1d9;
  line-height: 1.6;
  margin: 0;
}
.objective-text {
  font-size: 13.5px;
  color: #e6edf3;
  line-height: 1.55;
  margin: 0;
  font-weight: 500;
}
.dossier-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(199, 255, 74, 0.04);
  border: 1px solid rgba(199, 255, 74, 0.18);
}
.tip-icon {
  font-size: 15px;
  line-height: 1;
  margin-top: 2px;
}
.dossier-tip b {
  display: block;
  font: 750 10px var(--font-mono);
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 3px;
  text-transform: uppercase;
}
.dossier-tip p {
  font-size: 12.5px;
  color: #8b949e;
  line-height: 1.5;
  margin: 0;
}

.rules { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.rules span { font: 700 11px var(--font-mono); padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.02); }

.rewards-card, .record-box {
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.rewards-card b { display: block; font: 750 11px var(--font-mono); color: var(--accent); margin-bottom: 6px; }
.rewards-card p { margin: 0; font-size: 13px; color: #cbd3dc; }
.record-box small { display: block; font: 750 10px var(--font-mono); color: var(--muted); margin-bottom: 4px; }
.record-box strong { font-size: 20px; color: var(--accent); }
.leaderboard-open-btn { margin-top: 8px; }

/* CHAT PANEL */
.chat-panel {
  display: flex;
  flex-direction: column;
  padding: 24px 32px;
  height: calc(100vh - 72px);
  position: sticky;
  top: 72px;
  background: rgba(13, 18, 23, 0.5);
}
.chat-panel.has-result {
  position: static;
  height: auto;
  min-height: calc(100vh - 72px);
}
.chat-panel.has-result .chat {
  flex: none;
  max-height: 240px;
}
.chat-panel.has-result .game-input-form {
  display: none;
}
.chat-panel.has-result .game-result-card {
  scroll-margin-top: 88px;
}
.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.npc-meta { display: flex; align-items: center; gap: 12px; }
.npc-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--panel-elevated); border: 1px solid var(--line); display: grid; place-items: center; font-size: 18px; }
.npc-meta b { display: block; font-size: 14px; }
.npc-meta small { color: var(--muted); font: 700 11px var(--font-mono); }
.turn-counter-badge {
  font: 800 12px var(--font-mono);
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(199, 255, 74, 0.08);
  border: 1px solid rgba(199, 255, 74, 0.25);
  color: var(--accent);
}

.game-clue-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 14px 0 6px;
  padding: 12px 14px;
  background: rgba(199, 255, 74, 0.08);
  border: 1px solid rgba(199, 255, 74, 0.35);
  border-radius: var(--radius-md);
  animation: slideDown 0.3s ease;
}
.clue-icon { color: var(--accent); font-size: 16px; margin-top: 2px; }
.clue-body { flex: 1; font-size: 13px; }
.clue-body b { display: block; color: var(--accent); font: 800 10px var(--font-mono); letter-spacing: 1px; margin-bottom: 2px; }
.clue-body p { margin: 0; color: #e1e7ec; }
.clue-dismiss { background: transparent; border: 0; color: var(--muted); cursor: pointer; font-size: 14px; }

.chat {
  flex: 1;
  overflow-y: auto;
  padding: 20px 6px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chat::-webkit-scrollbar { width: 6px; }
.chat::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.bubble {
  max-width: 82%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  line-height: 1.55;
  animation: fadeIn 0.25s ease;
  position: relative;
}
.bubble-sender {
  display: block;
  font: 800 10px var(--font-mono);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  color: var(--muted);
}
.bubble.user {
  margin-left: auto;
  background: #142013;
  border-color: #2a401c;
  border-right: 3px solid var(--accent);
}
.bubble.user .bubble-sender { color: var(--accent); text-align: right; }
.bubble.npc {
  margin-right: auto;
  background: var(--panel);
  border-left: 3px solid #3c4b5c;
}
.bubble.intro-bubble {
  border-left: 3px solid var(--accent);
  background: linear-gradient(135deg, rgba(22, 27, 34, 0.95) 0%, rgba(14, 18, 24, 0.98) 100%);
  border-color: rgba(199, 255, 74, 0.25) var(--line) var(--line) var(--accent);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.bubble.intro-bubble .bubble-sender {
  color: var(--accent);
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin: 6px 0;
  color: var(--muted);
  font-size: 12px;
}
.dots-pulse { display: flex; gap: 4px; }
.dots-pulse span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: dotPulse 1.2s infinite ease-in-out both;
}
.dots-pulse span:nth-child(1) { animation-delay: -0.32s; }
.dots-pulse span:nth-child(2) { animation-delay: -0.16s; }

.game-input-form {
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: auto;
}
.input-wrap { flex: 1; }
.input-wrap textarea {
  width: 100%;
  resize: none;
  min-height: 68px;
  max-height: 160px;
  background: #090c10;
  border: 1px solid var(--line);
  color: white;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.input-wrap textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(199, 255, 74, 0.12);
}
.send-btn {
  min-width: 130px;
  background: var(--accent);
  border: 0;
  color: #07090c;
  font-weight: 800;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}
.send-btn:hover { background: var(--accent-hover); box-shadow: 0 6px 20px var(--accent-glow); }
.send-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.game-status-line { min-height: 20px; font-size: 12px; color: var(--accent); margin-top: 6px; }

/* GAME RESULT CARD */
.game-result-card {
  padding: 24px;
  border-radius: var(--radius-md);
  margin: 16px 0;
  animation: scaleIn 0.35s ease;
  border: 1px solid var(--line);
}
.game-result-card.is-victory {
  background: linear-gradient(145deg, rgba(199, 255, 74, 0.12), rgba(13, 18, 23, 0.95));
  border-color: rgba(199, 255, 74, 0.5);
  box-shadow: 0 16px 40px rgba(199, 255, 74, 0.15);
}
.game-result-card.is-defeat {
  background: linear-gradient(145deg, rgba(255, 85, 100, 0.12), rgba(13, 18, 23, 0.95));
  border-color: rgba(255, 85, 100, 0.5);
  box-shadow: 0 16px 40px rgba(255, 85, 100, 0.15);
}
.result-card-banner { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.result-status-icon { font-size: 34px; }
.result-card-banner h2 { margin: 0; font-size: 26px; letter-spacing: -0.03em; }
.is-victory h2 { color: var(--accent); }
.is-defeat h2 { color: var(--danger); }

.result-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.result-metric-item {
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.result-metric-item small { display: block; font: 750 10px var(--font-mono); color: var(--muted); text-transform: uppercase; }
.result-metric-item b { font-size: 18px; font-family: var(--font-mono); color: var(--text); }
.result-actions-row { display: flex; flex-wrap: wrap; gap: 10px; }
.premium-debrief { margin: 18px 0; padding: 18px; border: 1px solid rgba(199,255,74,.32); background: linear-gradient(135deg, rgba(199,255,74,.08), rgba(87,213,255,.035)); }
.premium-debrief-head { display: flex; align-items: center; gap: 9px; color: var(--accent); font-size: 12px; letter-spacing: .12em; }
.debrief-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 14px; }
.debrief-grid article { padding: 13px; border: 1px solid rgba(255,255,255,.09); background: rgba(0,0,0,.18); }
.debrief-grid small { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.debrief-grid p, .premium-debrief.is-locked p { margin: 7px 0 0; line-height: 1.5; }
.premium-debrief.is-locked { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.025); color: var(--muted); }

/* MODALS */
.ma-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
}
.ma-modal.is-open { display: grid; }
.ma-modal-card {
  width: min(520px, 100%);
  background: #0f1419;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(199, 255, 74, 0.06);
  animation: scaleIn 0.22s ease-out;
  overflow: hidden;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--line);
}
.modal-header h3 { margin: 4px 0 0; font-size: 22px; }
.modal-close-btn {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}
.modal-close-btn:hover { color: var(--text); background: var(--panel-elevated); }
.modal-body { padding: 24px 28px; }
.modal-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.modal-intro { color: var(--muted); font-size: 14px; margin: 0 0 20px; line-height: 1.5; }

.form-label { display: block; font: 750 11px var(--font-mono); color: var(--muted); margin: 14px 0 6px; text-transform: uppercase; }
.form-label:first-child { margin-top: 0; }
.input-with-btn { display: flex; gap: 8px; }
.input-with-btn input { flex: 1; }
.form-status { font-size: 12px; color: var(--danger); margin-top: 8px; min-height: 18px; }
.notice-info { padding: 10px 14px; background: rgba(199, 255, 74, 0.08); border: 1px solid rgba(199, 255, 74, 0.2); border-radius: var(--radius-sm); font-size: 13px; color: #d0eda0; margin-bottom: 14px; }
.auth-code-input { font-size: 20px; letter-spacing: 6px; text-align: center; font-family: var(--font-mono); }

.account-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.stat-box { padding: 12px 14px; background: var(--panel-elevated); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.stat-box small { display: block; color: var(--muted); font: 750 10px var(--font-mono); }
.stat-box strong { font-size: 18px; color: var(--accent); }
.account-email-info { font-size: 13px; color: var(--muted); margin: 0 0 20px; }
.account-email-info code { color: var(--text); background: var(--panel-elevated); padding: 3px 6px; border-radius: var(--radius-sm); }
.danger-link { color: var(--danger); border-color: rgba(255, 85, 100, 0.3); }
.danger-link:hover { border-color: var(--danger); color: var(--danger); }
.modal-actions { display: flex; justify-content: space-between; gap: 10px; }

/* COACH MODAL */
.coach-card { width: min(680px, 100%); }
.coach-body { max-height: 60vh; overflow-y: auto; }
.coach-feedback-content p { font-size: 15px; line-height: 1.65; color: #d5dde6; margin: 0 0 14px; }
.coach-feedback-content p:first-child { font-size: 16px; color: var(--accent); font-weight: 600; }
.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(199, 255, 74, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 30px auto;
}

/* LEADERBOARD MODAL */
.ranking-table { display: flex; flex-direction: column; gap: 8px; }
.ranking-target-heading { margin: 22px 0 4px; font: 800 12px var(--font-mono); color: #76c4ff; text-transform: uppercase; letter-spacing: .06em; }
.ranking-target-note { display: block; color: var(--muted); line-height: 1.45; margin-bottom: 9px; }
.ranking-row.is-target { border-style: dashed; border-color: rgba(75, 177, 255, 0.38); background: rgba(75, 177, 255, 0.05); }
.ranking-row.is-target .rank-metric { color: #76c4ff; }
.ranking-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  padding: 12px 16px;
  background: var(--panel-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.ranking-row.top-rank { border-color: rgba(199, 255, 74, 0.3); background: linear-gradient(90deg, rgba(199, 255, 74, 0.06), var(--panel-elevated)); }
.rank-badge { font: 800 14px var(--font-mono); color: var(--accent); }
.rank-metric code { background: #07090c; padding: 4px 8px; border-radius: var(--radius-sm); font-size: 12px; }

/* SHARE CODE MODAL */
.share-code-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #07090c;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin: 18px 0;
}
.share-code-box code { font: 800 20px var(--font-mono); color: var(--accent); letter-spacing: 1px; }
.copy-btn {
  padding: 8px 14px;
  background: var(--panel-elevated);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
  font-size: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: 0.18s;
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.copy-btn.copied { background: var(--success); color: #07090c; border-color: var(--success); }

/* ARENA SCREEN */
.arena-hero {
  padding: 60px 5vw;
  background: linear-gradient(135deg, rgba(199, 255, 74, 0.05), transparent 55%);
  border-bottom: 1px solid var(--line);
}
.arena-hero h1 { font-size: clamp(38px, 6vw, 76px); line-height: 0.95; letter-spacing: -0.04em; margin: 0 0 16px; }
.arena-hero p { max-width: 740px; color: #a9b3be; font-size: 17px; line-height: 1.55; margin: 0 0 28px; }

.arena-wallet-strip { display: flex; gap: 24px; margin-bottom: 32px; }
.arena-stat-item { display: flex; align-items: baseline; gap: 8px; }
.arena-stat-item strong { font: 800 28px var(--font-mono); color: var(--accent); }
.arena-stat-item span { color: var(--muted); font-size: 14px; }

.arena-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}
.arena-create-card {
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
}
.arena-create-card.featured-create {
  border-color: rgba(199, 255, 74, 0.45);
  background: linear-gradient(150deg, rgba(199, 255, 74, 0.09), var(--panel));
}
.create-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mode-badge { font: 800 10px var(--font-mono); padding: 3px 8px; border-radius: var(--radius-sm); }
.mode-badge.duel { background: rgba(255, 152, 0, 0.15); color: #ff9800; border: 1px solid rgba(255, 152, 0, 0.3); }
.mode-badge.group { background: rgba(199, 255, 74, 0.15); color: var(--accent); border: 1px solid rgba(199, 255, 74, 0.3); }
.create-card-header b { font-family: var(--font-mono); font-size: 12px; }
.arena-create-card h3 { margin: 0 0 8px; font-size: 20px; }
.arena-create-card p { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0 0 20px; flex: 1; }

.join-panel {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  max-width: 680px;
}
.join-form-row { display: flex; gap: 10px; }
.join-select { min-width: 170px; }
.join-input { flex: 1; }
.join-btn { min-width: 140px; }

.arena-table { display: flex; flex-direction: column; gap: 8px; }
.arena-row {
  display: grid;
  grid-template-columns: 1.2fr 120px 140px 100px;
  align-items: center;
  padding: 16px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: 0.18s;
}
.arena-row:hover { border-color: var(--line-light); background: var(--panel-elevated); }
.match-code-link code { font: 800 14px var(--font-mono); color: var(--accent); }
.mode-pill { font: 750 11px var(--font-mono); padding: 4px 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.mode-pill.duel { color: #ff9800; }
.mode-pill.group { color: var(--accent); }
.status-pill { font: 750 11px var(--font-mono); padding: 4px 10px; border-radius: var(--radius-sm); }
.status-pill.lobby { color: #f59e0b; background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.25); }
.status-pill.active { color: var(--accent); background: rgba(199, 255, 74, 0.1); border: 1px solid rgba(199, 255, 74, 0.25); }
.status-pill.complete, .status-pill.success { color: var(--success); background: var(--success-dim); border: 1px solid rgba(34, 197, 94, 0.25); }
.status-pill.failed { color: var(--danger); background: var(--danger-dim); border: 1px solid rgba(255, 85, 100, 0.25); }

/* ARENA MATCH BODY */
.arena-match-header {
  padding: 36px 5vw 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
}
.arena-header-info h1 { font-size: clamp(28px, 4vw, 44px); margin: 6px 0 0; }
.arena-header-info code { color: var(--accent); font-family: var(--font-mono); font-size: 0.85em; }
.match-meta-line { display: flex; gap: 8px; }

.players-section { margin-bottom: 32px; }
.players-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.player-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.player-avatar { font-size: 20px; }
.player-details b { display: block; font-size: 14px; }
.player-details small { color: var(--muted); font: 700 11px var(--font-mono); }

.lobby-waiting-box {
  padding: 60px 24px;
  text-align: center;
  background: var(--panel);
  border: 1px dashed var(--line-light);
  border-radius: var(--radius-lg);
  max-width: 600px;
  margin: 30px auto;
}
.big-code { font: 800 26px var(--font-mono); color: var(--accent); display: block; margin: 12px 0 24px; }
.lobby-actions { display: flex; justify-content: center; gap: 12px; margin-bottom: 20px; }
.lobby-poll-indicator { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }

/* PODIUM RANKING TABLE */
.podium-ranking-table { display: flex; flex-direction: column; gap: 10px; max-width: 780px; margin: 24px 0 32px; }
.ranking-item {
  display: grid;
  grid-template-columns: 60px 1fr 120px 1.5fr;
  align-items: center;
  padding: 16px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 14px;
}
.ranking-item.gold { border-color: #ffd700; background: linear-gradient(90deg, rgba(255, 215, 0, 0.09), var(--panel)); }
.ranking-item.silver { border-color: #c0c0c0; }
.ranking-item.bronze { border-color: #cd7f32; }
.rank-pos { font-size: 20px; font-weight: 800; font-family: var(--font-mono); }
.arena-complete-actions { display: flex; gap: 12px; }

/* BILLING PANEL */
.billing-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: 32px;
  align-items: center;
  margin: 40px 5vw 48px;
  padding: 32px;
  border: 1px solid rgba(199, 255, 74, 0.38);
  border-radius: var(--radius-lg);
  background: linear-gradient(125deg, rgba(199, 255, 74, 0.08), rgba(13, 18, 23, 0.96) 50%);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}
.billing-panel h2 { font-size: clamp(22px, 3vw, 32px); line-height: 1.15; letter-spacing: -0.03em; margin: 6px 0 10px; }
.billing-panel p { color: #aeb7c0; font-size: 14px; line-height: 1.6; margin: 0; }
.billing-products { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.billing-card {
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(7, 9, 12, 0.7);
  border-radius: var(--radius-md);
}
.billing-badge { color: var(--accent); font: 800 22px var(--font-mono); margin-bottom: 8px; }
.billing-card h3 { font-size: 17px; margin: 0 0 16px; }

/* LANDING PAGE STYLES */
.landing-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: clamp(40px, 6vw, 92px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(64px, 7vw, 108px) 5vw 56px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: radial-gradient(circle at 78% 34%, rgba(199, 255, 74, 0.12), transparent 29%), linear-gradient(125deg, rgba(199, 255, 74, 0.04), transparent 52%);
}
.landing-hero h1 { font-size: clamp(48px, 6.7vw, 98px); line-height: 0.91; letter-spacing: -0.06em; text-transform: uppercase; margin: 0; }
.landing-hero h1 em { display: block; color: var(--accent); font-style: normal; text-shadow: 0 0 24px var(--accent-glow); }
.hero-lead { font-size: clamp(17px, 1.35vw, 21px); line-height: 1.58; color: #c2c9d1; max-width: 760px; margin: 26px 0 20px; }
.hero-unique-line { margin: -7px 0 19px; color: var(--accent); font-weight: 800; letter-spacing: .02em; }
.mode-line { display: flex; flex-wrap: wrap; gap: 7px 12px; color: #e7ebef; font-size: 14px; }
.mode-line span { color: #53606c; }
.mode-line b { font-weight: 700; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 30px; }
.text-link { font-size: 14px; font-weight: 700; border-bottom: 1px solid #616b76; padding: 6px 0; }
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 750px; margin-top: 38px; border: 1px solid var(--line); background: rgba(12, 15, 19, 0.72); border-radius: var(--radius-sm); }
.hero-stats > div { padding: 13px 16px; border-right: 1px solid var(--line); }
.hero-stats > div:last-child { border: 0; }
.hero-stats strong { font: 800 22px var(--font-mono); display: block; }
.hero-stats span { font-size: 12px; color: var(--muted); margin-top: 4px; display: block; }

.mission-console {
  border: 1px solid #3a434c;
  background: linear-gradient(150deg, rgba(22, 28, 34, 0.96), rgba(10, 13, 16, 0.98));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46), 0 0 70px rgba(199, 255, 74, 0.055);
  border-radius: var(--radius-md);
}
.console-top, .console-footer { display: flex; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--line); font: 700 11px var(--font-mono); color: #9fa8b2; }
.console-footer { border-top: 1px solid var(--line); border-bottom: 0; }
.console-title { padding: 22px 20px 16px; }
.console-title h2 { font-size: 24px; margin: 8px 0; }
.console-title p { font-size: 13px; color: var(--muted); margin: 0; }
.console-chat { padding: 0 20px 16px; }
.mini-bubble { font-size: 13px; padding: 10px 14px; margin: 8px 0; border: 1px solid var(--line); background: #12171c; border-radius: var(--radius-sm); }
.mini-bubble.player { margin-left: auto; background: #1c2613; border-color: #33451f; width: 88%; }
.console-clue { display: flex; gap: 10px; margin: 0 20px 18px; padding: 12px; border: 1px solid rgba(199, 255, 74, 0.25); background: rgba(199, 255, 74, 0.055); border-radius: var(--radius-sm); font-size: 12px; }

.roadmap { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 24px; }
.road-node { padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md); transition: 0.18s; }
.road-node.is-current { border-color: var(--accent); background: linear-gradient(145deg, rgba(199, 255, 74, 0.14), #101510); }
.road-node small { font: 700 11px var(--font-mono); color: var(--muted); }
.road-node strong { font-size: 20px; display: block; margin: 6px 0 2px; }
.road-node em { font-size: 12px; color: var(--muted); font-style: normal; }

.playbook-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 14px; }
.rules-panel { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius-md); }
.rules-panel > div { padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rules-panel > div:nth-child(2n) { border-right: 0; }
.rules-panel > div:nth-child(n+3) { border-bottom: 0; }
.rules-panel b { font: 750 12px var(--font-mono); color: var(--accent); }
.rules-panel h3 { font-size: 18px; margin: 14px 0 6px; }
.rules-panel p { font-size: 13px; color: var(--muted); margin: 0; }
.modes-panel { padding: 24px; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius-md); }
.mode-card { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.mode-card.active { border-color: rgba(199, 255, 74, 0.35); background: rgba(199, 255, 74, 0.05); }
.mode-card h3 { margin: 0 0 4px; font-size: 16px; }
.mode-card p { margin: 0; font-size: 13px; color: var(--muted); }

.rewards-section { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.reward-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reward-card { padding: 20px; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius-md); display: flex; gap: 16px; }
.reward-card.featured { border-color: rgba(199, 255, 74, 0.58); background: linear-gradient(135deg, rgba(199, 255, 74, 0.14), #121813); }
.reward-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--panel-elevated); font: 800 14px var(--font-mono); color: var(--accent); border: 1px solid var(--line); flex-shrink: 0; }
.reward-card h3 { font-size: 16px; margin: 6px 0; }
.reward-card p { font-size: 13px; color: var(--muted); margin: 0; }

.sustainability-section {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) minmax(280px, 0.6fr);
  gap: 36px;
  align-items: center;
}
.sustainability-orbit { width: 110px; height: 110px; border-radius: 50%; border: 1px solid rgba(199, 255, 74, 0.4); display: grid; place-items: center; font: 800 24px var(--font-mono); color: var(--accent); box-shadow: 0 0 30px rgba(199, 255, 74, 0.1); }
.sustainability-copy h2 { font-size: clamp(26px, 3.5vw, 42px); line-height: 1.1; margin: 0 0 14px; }
.sustainability-copy p { font-size: 15px; color: #b0bac5; margin: 0; }
.sustainability-points { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; font-size: 13px; color: var(--accent); }
.sustainability-callout { padding: 22px; border: 1px solid rgba(199, 255, 74, 0.3); background: rgba(199, 255, 74, 0.055); border-radius: var(--radius-md); }
.sustainability-callout b { display: block; font-size: 16px; margin-bottom: 8px; }
.sustainability-callout p { font-size: 13px; color: #a9b5c0; margin: 0 0 14px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card { padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md); transition: 0.18s; display: flex; flex-direction: column; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.tag { font: 700 11px var(--font-mono); color: var(--accent); margin-bottom: 14px; }
.card h3 { font-size: 20px; margin: 0 0 10px; }
.card p { font-size: 13px; color: var(--muted); margin: 0 0 20px; flex: 1; }
.card b { color: var(--accent); font-size: 13px; }

/* ANIMATIONS & HELPERS */
.hidden { display: none !important; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dotPulse { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* RESPONSIVE DESIGN */
@media (max-width: 1050px) {
  .landing-hero { grid-template-columns: 1fr; padding-top: 48px; }
  .mission-console { width: 100%; max-width: 600px; }
  .playbook-grid, .rewards-section, .sustainability-section { grid-template-columns: 1fr; }
  .sustainability-callout { grid-column: 1/-1; }
  .roadmap { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .dash-user-hero { grid-template-columns: 1fr; }
  .game-shell { grid-template-columns: 1fr; }
  .game-info { border-right: 0; border-bottom: 1px solid var(--line); padding: 32px 5vw; }
  .chat-panel { height: auto; min-height: 600px; position: static; padding: 24px 5vw; }
  .billing-panel { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .debrief-grid { grid-template-columns: 1fr; }
  .desktop-nav { display: none; }
  .mobile-toggle { display: flex; }
  .nav { padding: 0 20px; }
  .nav-wallet { display: none; }
  .section { padding: 44px 20px; }
  .dashboard-header-panel, .filter-toolbar, .game-grid, .arena-hero, .arena-match-header { padding-left: 20px; padding-right: 20px; }
  .roadmap { grid-template-columns: 1fr 1fr; }
  .reward-grid, .rules-panel { grid-template-columns: 1fr; }
  .rules-panel > div { border-right: 0 !important; }
  .dashboard-wallet-grid { grid-template-columns: 1fr 1fr; }
  .billing-products { grid-template-columns: 1fr; }
  .join-form-row { flex-direction: column; }
  .join-select, .join-btn { width: 100%; }
  .arena-row { grid-template-columns: 1fr auto; gap: 10px; }
  .arena-status-col, .arena-mode-col { display: none; }
  .ranking-item { grid-template-columns: 44px 1fr auto; }
  .ranking-item .rank-status { display: none; }
}

@media (max-width: 480px) {
  .brand { font-size: 18px; }
  .ai-indicator { display: none; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .dashboard-wallet-grid { grid-template-columns: 1fr; }
  .game-input-form { flex-direction: column; }
  .send-btn { width: 100%; height: 48px; }
  .modal-body, .modal-header, .modal-footer { padding-left: 18px; padding-right: 18px; }
  .result-actions-row { flex-direction: column; }
  .result-actions-row button, .result-actions-row a { width: 100%; }
}

/* SCENARIO LEADERBOARD BAR (ORTDAN YUXARI REKORDLAR) */
.scenario-leaderboard-bar {
  background: linear-gradient(180deg, rgba(19, 26, 34, 0.95), rgba(13, 18, 23, 0.9));
  border: 1px solid rgba(199, 255, 74, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin: 16px 24px 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 16px rgba(199, 255, 74, 0.05);
}
.sc-lb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 8px;
}
.sc-lb-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sc-lb-icon {
  font-size: 20px;
}
.sc-lb-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}
.sc-lb-subtitle {
  font-size: 11px;
  color: var(--muted);
}
.sc-lb-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 700 10px var(--font-mono);
  background: rgba(199, 255, 74, 0.08);
  border: 1px solid rgba(199, 255, 74, 0.3);
  color: var(--accent);
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}
.sc-lb-podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.sc-podium-card {
  background: rgba(7, 9, 12, 0.65);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.18s, border-color 0.18s;
  position: relative;
  overflow: hidden;
}
.sc-podium-card:hover {
  transform: translateY(-2px);
}
.sc-podium-card.rank-1 {
  border-color: rgba(255, 215, 0, 0.45);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(7, 9, 12, 0.8));
}
.sc-podium-card.rank-2 {
  border-color: rgba(192, 192, 192, 0.4);
  background: linear-gradient(135deg, rgba(192, 192, 192, 0.06), rgba(7, 9, 12, 0.8));
}
.sc-podium-card.rank-3 {
  border-color: rgba(205, 127, 50, 0.4);
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.06), rgba(7, 9, 12, 0.8));
}
.sc-podium-rank {
  display: flex;
  align-items: center;
}
.rank-badge {
  font: 750 10px var(--font-mono);
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.rank-badge.gold {
  background: rgba(255, 215, 0, 0.18);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.5);
}
.rank-badge.silver {
  background: rgba(210, 215, 220, 0.18);
  color: #d8e0e8;
  border: 1px solid rgba(210, 215, 220, 0.45);
}
.rank-badge.bronze {
  background: rgba(205, 127, 50, 0.18);
  color: #e59866;
  border: 1px solid rgba(205, 127, 50, 0.45);
}
.sc-podium-user {
  display: flex;
  align-items: center;
  gap: 6px;
}
.user-avatar-mini {
  font-size: 13px;
}
.sc-podium-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-podium-score {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.score-highlight {
  font: 800 16px var(--font-mono);
  color: var(--accent);
  letter-spacing: -0.02em;
}
.sc-podium-card.rank-1 .score-highlight {
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.35);
}
.score-detail {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}

@media (max-width: 900px) {
  .scenario-leaderboard-bar {
    margin: 12px 14px 6px;
    padding: 12px;
  }
  .sc-lb-podium {
    grid-template-columns: 1fr;
  }
}

/* RIGHT SIDE: OPEN TOP 5 LEADERBOARD */
.game-leaderboard-sidebar {
  border-left: 1px solid var(--line);
  background: rgba(10, 14, 18, 0.6);
  padding: 24px 18px;
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow-y: auto;
  box-sizing: border-box;
}
.sidebar-lb-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sidebar-lb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.sidebar-lb-title-box {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-lb-heading {
  font: 800 13px var(--font-mono);
  color: var(--text);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.sidebar-lb-badge {
  font: 800 10px var(--font-mono);
  background: rgba(199, 255, 74, 0.12);
  border: 1px solid rgba(199, 255, 74, 0.4);
  color: var(--accent);
  padding: 3px 8px;
  border-radius: 12px;
}
.sidebar-lb-desc {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
  margin-top: -6px;
}
.sidebar-lb-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-record-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: transform 0.15s, border-color 0.15s;
}
.sidebar-record-row:hover {
  transform: translateX(-2px);
  border-color: rgba(199, 255, 74, 0.4);
}
.sidebar-record-row.rank-1 {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), var(--panel));
  border-color: rgba(255, 215, 0, 0.4);
}
.sidebar-record-row.rank-2 {
  background: linear-gradient(135deg, rgba(210, 215, 220, 0.06), var(--panel));
  border-color: rgba(210, 215, 220, 0.35);
}
.sidebar-record-row.rank-3 {
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.06), var(--panel));
  border-color: rgba(205, 127, 50, 0.35);
}
.sidebar-record-row.is-target {
  background: rgba(75, 177, 255, 0.055);
  border-style: dashed;
  border-color: rgba(75, 177, 255, 0.38);
}
.sidebar-record-row.is-target:hover { border-color: rgba(75, 177, 255, 0.72); }
.sidebar-record-row.is-target .record-main-score { color: #76c4ff; }
.record-rank-badge {
  display: flex;
  align-items: center;
  justify-content: center;
}
.rank-pill {
  font: 800 11px var(--font-mono);
  padding: 2px 6px;
  border-radius: 4px;
}
.rank-pill.gold {
  color: #ffd700;
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.4);
}
.rank-pill.silver {
  color: #d8e0e8;
  background: rgba(210, 215, 220, 0.15);
  border: 1px solid rgba(210, 215, 220, 0.4);
}
.rank-pill.bronze {
  color: #e59866;
  background: rgba(205, 127, 50, 0.15);
  border: 1px solid rgba(205, 127, 50, 0.4);
}
.rank-pill.ordinary {
  color: var(--muted);
  font-size: 11px;
}
.record-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.record-user-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.record-avatar {
  font-size: 12px;
}
.record-username {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.record-values {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.record-main-score {
  font: 800 15px var(--font-mono);
  color: var(--accent);
}
.sidebar-record-row.rank-1 .record-main-score {
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.35);
}
.record-detail-text {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}
.sidebar-lb-callout {
  padding: 10px 12px;
  background: rgba(199, 255, 74, 0.05);
  border: 1px dashed rgba(199, 255, 74, 0.25);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.sidebar-lb-callout .callout-icon {
  font-size: 15px;
  margin-top: 1px;
}
.sidebar-lb-callout p {
  margin: 0;
  font-size: 11px;
  color: #c0cad4;
  line-height: 1.45;
}
.sidebar-all-records-btn {
  font-size: 12px;
  padding: 8px 12px;
}

@media (min-width: 1051px) and (max-width: 1200px) {
  .game-shell {
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  }
  .game-leaderboard-sidebar {
    grid-column: 1 / -1;
    height: auto;
    position: static;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 24px 4vw;
  }
  .sidebar-lb-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
  }
}

/* SLOGAN BAR BANNER */
.slogan-bar-banner {
  background: linear-gradient(90deg, rgba(13, 18, 23, 0.95), rgba(20, 30, 20, 0.95), rgba(13, 18, 23, 0.95));
  border-bottom: 1px solid rgba(199, 255, 74, 0.22);
  padding: 8px 5vw;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 90;
}
.slogan-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
}
.slogan-badge-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(199, 255, 74, 0.1);
  border: 1px solid rgba(199, 255, 74, 0.35);
  padding: 4px 10px;
  border-radius: 20px;
  font: 800 11px var(--font-mono);
  color: var(--accent);
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}
.slogan-rotator-viewport {
  flex: 1;
  overflow: hidden;
  height: 24px;
  position: relative;
}
.slogan-slide-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 600;
  color: #e6edf3;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.slogan-slide-item.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.slogan-quote {
  color: var(--accent);
  font-weight: 800;
  margin: 0 4px;
}
.slogan-dots-indicator {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.slogan-dot-btn {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}
.slogan-dot-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  transform: scale(1.2);
}

/* HERO SLOGAN ROTATOR (INDEX) */
.hero-slogan-rotator {
  display: block;
  width: 100%;
  max-width: 760px;
  box-sizing: border-box;
  background: rgba(13, 18, 23, 0.85);
  border: 1px solid rgba(199, 255, 74, 0.28);
  border-radius: 16px;
  padding: 10px 16px;
  margin: 12px 0 16px;
  box-shadow: 0 0 20px rgba(199, 255, 74, 0.08);
}
.hero-slogan-viewport {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-width: 0;
}
.hero-slogan-text {
  position: static;
  grid-area: 1 / 1;
  align-self: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  color: #d1d9e0;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  white-space: normal;
  overflow-wrap: anywhere;
  pointer-events: none;
}
.hero-slogan-text.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* DASHBOARD INTERACTIVE ROW */
.dash-interactive-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
  margin: 20px 5vw 16px;
}
.dashboard-slogan-card {
  background: var(--panel);
  border: 1px solid rgba(199, 255, 74, 0.22);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.dash-slogan-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 800 11px var(--font-mono);
  color: var(--accent);
}
.dash-slogan-track {
  position: relative;
  height: 24px;
  overflow: hidden;
}
.dash-slogan-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 13.5px;
  font-weight: 600;
  color: #f0f6fc;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.dash-slogan-slide.active {
  opacity: 1;
  transform: translateY(0);
}
.dash-slogan-slide .quote-sign {
  color: var(--accent);
  font-weight: 800;
  margin: 0 4px;
}
.dash-leaderboard-card {
  background: linear-gradient(135deg, rgba(19, 26, 34, 0.9), rgba(13, 18, 23, 0.9));
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.dash-leaderboard-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 215, 0, 0.6);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.1);
}
.dash-lb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.dash-lb-header span {
  font-size: 13px;
  font-weight: 700;
  color: #ffd700;
}
.dash-lb-badge {
  font: 800 10px var(--font-mono);
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: #ffd700;
  padding: 2px 8px;
  border-radius: 12px;
}
.dash-lb-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #c9d1d9;
}
.dash-lb-item b {
  color: var(--text);
}

/* AUTH TABS (NICKNAME VS RECOVERY) */
.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.auth-tab {
  flex: 1;
  padding: 10px 14px;
  background: var(--panel-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font: 750 12px var(--font-mono);
  cursor: pointer;
  transition: all 0.18s;
  text-align: center;
}
.auth-tab.active {
  background: rgba(199, 255, 74, 0.12);
  border-color: rgba(199, 255, 74, 0.4);
  color: var(--accent);
}
.auth-tab-panel {
  display: flex;
  flex-direction: column;
}
.auth-tip-line {
  margin-top: 12px;
  font-size: 12px;
  color: #8b949e;
  line-height: 1.45;
}
.recovery-box-panel {
  margin: 16px 0;
  padding: 14px 16px;
  background: var(--panel-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.recovery-header {
  margin-bottom: 10px;
}
.recovery-header b {
  display: block;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 2px;
}
.recovery-header small {
  color: var(--muted);
  font-size: 11.5px;
}
.verified-tag {
  display: inline-block;
  font: 750 10px var(--font-mono);
  color: var(--success);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
}

/* LEADERBOARD MODAL TABS */
.lb-modal-tabs {
  display: flex;
  gap: 10px;
  padding: 14px 28px 0;
  border-bottom: 1px solid var(--line);
}
.lb-tab {
  padding: 8px 16px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font: 750 12px var(--font-mono);
  cursor: pointer;
  transition: all 0.18s;
}
.lb-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.leaderboard-modal-card {
  width: min(720px, 100%);
}

@media (max-width: 768px) {
  .dash-interactive-row {
    grid-template-columns: 1fr;
  }
  .slogan-bar-banner {
    display: none;
  }
}
/* Keep the account and menu reachable on narrow phones, including 320px. */
@media(max-width:480px){
 .nav{padding:0 12px;gap:8px}.brand{font-size:16px;white-space:nowrap}
 .nav-left{min-width:0;gap:0}.nav-right{gap:6px;flex-shrink:0}
 .nav-right .user-name-text{display:none}.user-profile-btn{width:36px;min-height:44px;padding:8px;justify-content:center;gap:4px}
 .mobile-toggle{width:36px;height:44px;justify-content:center;padding:7px}
 .lang button{min-height:44px;min-width:28px;padding:5px;font-size:12px}
 .scenario-briefing-header{flex-wrap:wrap}.diff-chip{max-width:100%;overflow-wrap:anywhere}
 .level-selector-title{flex-wrap:wrap}.level-hint{font-size:13px;line-height:1.5}
}
.known-facts-list{margin:.65rem 0 0;padding-left:1.15rem;display:grid;gap:.45rem;color:var(--muted)}
.known-facts-list li::marker{color:var(--lime)}
.recommended-round{margin-top:1rem;padding:1rem;border:1px solid rgba(190,255,55,.28);background:rgba(190,255,55,.045)}
.recommended-round h3{margin:.35rem 0;font-size:1.05rem}
.recommended-round p{margin:.35rem 0 .85rem;color:var(--muted)}
