:root {
  --bg-primary: #090d16;
  --bg-card: #111827;
  --bg-card-subtle: #162035;
  --border: rgba(255, 255, 255, 0.1);
  --border-focus: #38bdf8;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Ruhige, konsistente Akzentfarben */
  --accent-primary: #38bdf8;       /* Haupt-Akzent: Helles Himmelblau */
  --accent-primary-hover: #0284c7;
  --accent-primary-bg: rgba(56, 189, 248, 0.1);
  --accent-success: #10b981;       /* Nur für Richtig / Erfolg */
  --accent-danger: #f43f5e;        /* Nur für Fehler / Fake */
  --accent-gold: #f59e0b;          /* Nur für XP / Zertifikat */
  
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', Menlo, Consolas, monospace;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  min-height: 100vh;
  padding: 20px 16px 60px;
  background-image: 
    radial-gradient(circle at 50% 0%, var(--accent-primary-bg) 0%, transparent 60%);
  background-attachment: fixed;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.app-container {
  max-width: 960px;
  margin: 0 auto;
}

/* Header */
.app-header {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-primary-bg);
  border: 1px solid var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-icon svg {
  width: 22px;
  height: 22px;
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
}

.brand-text .tagline {
  font-size: 0.75rem;
  color: var(--accent-primary);
  font-family: var(--font-mono);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-icon {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}

.btn-icon:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.btn-text-action {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: none;
  border: 1px solid transparent;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-text-action:hover {
  color: var(--accent-danger);
  border-color: rgba(244, 63, 94, 0.3);
}

/* Stats: XP & Badges */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.xp-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 220px;
}

.xp-label {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-gold);
  white-space: nowrap;
}

.xp-bar-bg {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.xp-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-primary));
  border-radius: 999px;
  transition: width 0.5s ease;
}

.badges-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-slot {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  opacity: 0.3;
  filter: grayscale(1);
  transition: all 0.3s;
}

.badge-slot.unlocked {
  opacity: 1;
  filter: grayscale(0);
  background: var(--accent-primary-bg);
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

/* Level Navigation Stepper (Linear Progressive Gating) */
.stepper-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 2px 16px;
  margin-bottom: 8px;
}

.stepper-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.stepper-btn:hover:not(.locked) {
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.stepper-btn.active {
  background: var(--accent-primary-bg);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  font-weight: 700;
}

/* Locked Station State */
.stepper-btn.locked {
  opacity: 0.4;
  cursor: not-allowed;
  border-style: dashed;
}

.stepper-btn.completed .step-icon {
  background: var(--accent-success);
  color: #000;
}

.step-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-family: var(--font-mono);
}

/* Station Content Areas */
.station-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.station-pane.active {
  display: block;
}

/* Mini Progress Tracker for 5 examples */
.mini-progress-tracker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #070a12;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  margin-bottom: 14px;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 8px;
}

.tracker-label {
  font-weight: 700;
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.tracker-dots {
  display: flex;
  gap: 6px;
}

.tracker-dot {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #1e293b;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 700;
  transition: all 0.2s;
}

.tracker-dot.active {
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  background: var(--accent-primary-bg);
}

.tracker-dot.completed {
  background: var(--accent-success);
  color: #090d16;
}

.tracker-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Cards & Layout */
.main-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}

.station-header {
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 14px;
}

.station-meta {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.station-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.station-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Interactive Panels */
.interactive-panel {
  background: var(--bg-card-subtle);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}

.panel-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Buttons */
.btn-primary {
  background: var(--accent-primary);
  color: #090d16;
  border: none;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-primary:hover:not(:disabled) {
  background: #7dd3fc;
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: var(--bg-card-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

/* Callouts (Kompakt und dezent) */
.callout {
  border-radius: 10px;
  padding: 12px 16px;
  margin: 14px 0;
  display: flex;
  gap: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.callout.info {
  border-left: 3px solid var(--accent-primary);
  color: #e2e8f0;
}

.callout.warning {
  border-left: 3px solid var(--accent-gold);
  color: #fef3c7;
}

.callout.success {
  border-left: 3px solid var(--accent-success);
  color: #d1fae5;
}

.callout-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Station 1: Tokenizer */
.preset-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.preset-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
}

.preset-pill:hover, .preset-pill.active {
  background: var(--accent-primary-bg);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.preset-pill.completed {
  border-color: rgba(16, 185, 129, 0.5);
  color: #10b981;
}

.preset-pill.completed.active {
  background: rgba(16, 185, 129, 0.18);
  border-color: #10b981;
  color: #34d399;
}

.token-input {
  width: 100%;
  background: #0b0f19;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-size: 0.92rem;
  font-family: inherit;
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.2s;
}

.token-input:focus {
  border-color: var(--accent-primary);
}

/* Tokens: Harmonisch & lesbar, kein Regenbogen-Chaos */
.tokens-display {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 60px;
  padding: 12px;
  background: #070a12;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.token-chip {
  padding: 4px 8px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: #1e293b;
  border: 1px solid #334155;
  color: #38bdf8;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.token-chip .token-text {
  font-weight: 600;
}

.token-chip .token-id {
  font-size: 0.6rem;
  color: #64748b;
}

.token-stats {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.token-stats strong {
  color: var(--accent-primary);
}

/* Prediction Game */
.prediction-card {
  background: #070a12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
}

.prediction-prefix {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: #0f172a;
  border-left: 3px solid var(--accent-primary);
  border-radius: 6px;
}

.prediction-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.pred-opt-btn {
  background: #111827;
  border: 1px solid var(--border);
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.pred-opt-btn:hover:not(:disabled) {
  border-color: var(--accent-primary);
  background: var(--accent-primary-bg);
}

.pred-opt-btn.correct {
  border-color: var(--accent-success);
  background: rgba(16, 185, 129, 0.15);
}

.pred-opt-btn.wrong {
  border-color: var(--accent-danger);
  background: rgba(244, 63, 94, 0.15);
}

.prob-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  margin-top: 6px;
  overflow: hidden;
}

.prob-fill {
  height: 100%;
  background: var(--accent-primary);
  width: 0%;
  transition: width 0.6s ease;
}

/* Station 2: Temperature Slider */
.temp-slider-container {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 12px 0;
}

.temp-slider {
  flex: 1;
  -webkit-appearance: none;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #38bdf8, #10b981, #f59e0b, #f43f5e);
  outline: none;
  cursor: pointer;
}

.temp-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #0f172a;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
  cursor: pointer;
}

.temp-value-display {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  width: 44px;
  color: var(--accent-primary);
}

.temp-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--accent-primary-bg);
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  margin-bottom: 12px;
}

.output-box {
  background: #070a12;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 14px;
  font-size: 0.95rem;
  min-height: 60px;
  line-height: 1.5;
}

/* Station 3: Halluzinations-Labor */
.fake-detector-grid {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.fake-card {
  background: #070a12;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.fake-card:hover {
  border-color: var(--accent-gold);
}

.fake-card.revealed-fake {
  border-color: var(--accent-danger);
  background: rgba(244, 63, 94, 0.1);
}

.fake-card.revealed-true {
  border-color: var(--accent-success);
  background: rgba(16, 185, 129, 0.1);
}

/* Station 4: Prompt Tuner */
.prompt-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 14px 0;
}

.prompt-box {
  background: #070a12;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prompt-box.noob {
  border-color: rgba(244, 63, 94, 0.3);
}

.prompt-box.pro {
  border-color: rgba(16, 185, 129, 0.4);
}

.prompt-builder-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.pillar-card {
  background: #070a12;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
}

.pillar-card h4 {
  font-size: 0.78rem;
  color: var(--accent-primary);
  margin-bottom: 6px;
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-color: #0b0f19;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2338bdf8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px 14px;
  border: 1px solid var(--border);
  color: #f8fafc;
  padding: 8px 30px 8px 10px;
  border-radius: 8px;
  outline: none;
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

select:focus, select:focus-visible {
  outline: none !important;
  border-color: var(--accent-primary) !important;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2) !important;
}

.pillar-card select {
  width: 100%;
}

/* Agent Profiles & Avatar Picker */
.agent-inputs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 16px 0;
}

.agent-card {
  background: #070a12;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.agent-card label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 6px;
}

.avatar-picker {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.avatar-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  font-size: 1.3rem;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.avatar-btn:hover, .avatar-btn.selected {
  background: var(--accent-primary-bg);
  border-color: var(--accent-primary);
  transform: scale(1.08);
}

/* Vector Radar & Embeddings */
.vector-radar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #050811;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin: 14px 0;
}

#vectorRadarCanvas {
  background: #03060c;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.08);
  max-width: 100%;
}

.vector-equations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.vector-eq-card {
  background: #070a12;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.vector-eq-card:hover {
  border-color: var(--accent-primary);
}

.vector-eq-card.solved {
  border-color: var(--accent-success);
  background: rgba(16, 185, 129, 0.05);
}

/* Probability Tree */
.tree-node-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
}

.tree-choice-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #070a12;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  color: #fff;
  transition: all 0.2s;
  font-size: 0.88rem;
}

.tree-choice-btn:hover {
  background: var(--accent-primary-bg);
  border-color: var(--accent-primary);
}

.tree-choice-bar {
  height: 6px;
  background: var(--accent-primary);
  border-radius: 999px;
  margin-top: 4px;
}

/* Reasoning & Thinking Tokens */
.thinking-container {
  background: #050811;
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}

.thinking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.thinking-badge {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid #a855f7;
  color: #c084fc;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
}

.scratchpad-box {
  background: #03050a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #94a3b8;
  max-height: 220px;
  overflow-y: auto;
  white-space: pre-wrap;
  line-height: 1.6;
}

.scratchpad-step {
  margin-bottom: 8px;
  padding-left: 10px;
  border-left: 2px solid #a855f7;
}

/* Sentinel-9 Hacker Terminal */
.terminal-window {
  background: #030712;
  border: 1px solid #10b981;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.15);
  overflow: hidden;
  margin: 16px 0;
  font-family: var(--font-mono);
}

.terminal-header {
  background: #07130e;
  border-bottom: 1px solid rgba(16, 185, 129, 0.3);
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #10b981;
}

.terminal-body {
  padding: 14px;
  min-height: 220px;
  max-height: 320px;
  overflow-y: auto;
  color: #86efac;
  font-size: 0.84rem;
  line-height: 1.5;
}

.terminal-line {
  margin-bottom: 6px;
}

.terminal-input-bar {
  display: flex;
  gap: 8px;
  background: #07130e;
  border-top: 1px solid rgba(16, 185, 129, 0.3);
  padding: 10px 14px;
}

.terminal-prompt-prefix {
  color: #10b981;
  font-weight: 700;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  outline: none;
}

/* 2D Retro Canvas Game */
.game-viewport {
  position: relative;
  background: #03060c;
  border: 2px solid var(--accent-primary);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.2);
  margin: 16px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

#cyberGameCanvas {
  display: block;
  background: #03060c;
  max-width: 100%;
}

.game-hud {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.game-controls-hint {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  color: #cbd5e1;
  pointer-events: none;
  white-space: nowrap;
}

.game-mod-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.game-mod-card {
  background: #070a12;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.game-mod-card:hover, .game-mod-card.active {
  border-color: var(--accent-primary);
  background: rgba(56, 189, 248, 0.08);
}

.game-mod-card.applied {
  border-color: var(--accent-success);
}

/* Matrix Theme Override */
body.matrix-theme {
  --bg-primary: #020803;
  --bg-card: #051408;
  --bg-card-subtle: #08210e;
  --accent-primary: #10b981;
  --accent-primary-hover: #059669;
  --accent-primary-bg: rgba(16, 185, 129, 0.15);
  --border: rgba(16, 185, 129, 0.25);
  font-family: 'JetBrains Mono', monospace;
}

body.matrix-theme .brand-icon {
  border-color: #10b981;
}

/* Certificate Screen Styles */
.certificate-preview {
  max-width: 680px;
  margin: 20px auto;
  padding: 30px;
  background: #0b0f19;
  border: 2px solid var(--accent-gold);
  border-radius: 14px;
  text-align: center;
}

.cert-header {
  font-size: 0.78rem;
  letter-spacing: 2px;
  color: var(--accent-gold);
  font-family: var(--font-mono);
  margin-bottom: 6px;
}

.cert-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
}

.cert-recipient {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-primary);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
  display: inline-block;
  padding: 4px 20px;
  margin: 10px 0 16px;
}

.cert-body {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 16px;
}

.cert-badges-earned {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 14px 0;
}

.cert-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
  margin-top: 14px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.station-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 10px;
}

@media print {
  body * {
    visibility: hidden;
  }
  .certificate-preview, .certificate-preview * {
    visibility: visible;
  }
  .certificate-preview {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #fff !important;
    color: #000 !important;
    border: 3px solid #d97706;
  }
  .cert-title { color: #b45309 !important; }
  .cert-recipient { color: #0369a1 !important; }
  .cert-body { color: #334155 !important; }
}

@media (max-width: 768px) {
  .prompt-columns {
    grid-template-columns: 1fr;
  }
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: rgba(15, 23, 42, 0.95);
  color: #f8fafc;
  border: 1px solid var(--accent-primary);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 25px var(--accent-primary-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 24px;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 99999;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: 90vw;
  text-align: center;
}

/* Matrix Reveal Hero Button */
.btn-reveal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #e11d48 0%, #ec4899 50%, #8b5cf6 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  font-size: 1.05rem;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(225, 29, 72, 0.45);
  transition: all 0.25s ease;
  margin: 10px 0 20px 0;
}
.btn-reveal:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 35px rgba(225, 29, 72, 0.7);
}
.btn-reveal:active {
  transform: translateY(0) scale(0.99);
}

.reveal-message {
  display: none;
  animation: fadeInReveal 0.5s ease-out forwards;
}

@keyframes fadeInReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Live Theme Mod Pills */
.theme-mod-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.theme-pill-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-family: var(--font-mono);
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.theme-pill-btn:hover {
  background: var(--accent-primary-bg);
  border-color: var(--accent-primary);
  color: var(--text-primary);
  transform: translateY(-1px);
}

