/* ================================================================
   THE MIDNIGHT CHRONICLE — Global Design System
   Film Noir Aesthetic · Glassmorphism · Dramatic Typography
   ================================================================ */

/* ─── Custom Properties ─────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-deepest: #0a0e17;
  --bg-deep: #12162a;
  --bg-surface: #1a1f2e;
  --bg-elevated: #222840;
  --bg-card: #252b3d;

  /* Text */
  --text-primary: #e8e2d6;
  --text-secondary: #c9c3b8;
  --text-muted: #7a7568;
  --text-dim: #4a4640;

  /* Accent — Gold / Amber */
  --gold: #d4a853;
  --gold-light: #f0c674;
  --gold-dim: #a17d3a;
  --gold-glow: rgba(212, 168, 83, 0.35);

  /* Accent — Crimson */
  --crimson: #c0392b;
  --crimson-light: #e74c3c;
  --crimson-glow: rgba(192, 57, 43, 0.35);

  /* Accent — Success */
  --success: #27ae60;
  --success-light: #2ecc71;
  --success-glow: rgba(39, 174, 96, 0.35);

  /* Accent — Info */
  --info: #2980b9;
  --info-light: #3498db;

  /* Typography */
  --font-display: 'IBM Plex Sans Thai', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans Thai', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', monospace;

  /* Font Sizes */
  --text-xs: 0.7rem;
  --text-sm: 0.8rem;
  --text-base: 0.95rem;
  --text-md: 1.05rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.8rem;
  --text-4xl: 3.5rem;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --border-subtle: 1px solid rgba(212, 168, 83, 0.12);
  --border-accent: 1px solid rgba(212, 168, 83, 0.3);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-glow-gold: 0 0 20px rgba(212, 168, 83, 0.25), 0 0 60px rgba(212, 168, 83, 0.1);
  --shadow-glow-crimson: 0 0 20px rgba(192, 57, 43, 0.3), 0 0 60px rgba(192, 57, 43, 0.1);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.05);

  /* Glassmorphism */
  --glass-bg: rgba(18, 22, 42, 0.75);
  --glass-bg-heavy: rgba(10, 14, 23, 0.88);
  --glass-border: 1px solid rgba(212, 168, 83, 0.1);
  --glass-blur: blur(16px);
  --glass-blur-heavy: blur(24px);

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.15s var(--ease-out);
  --transition-base: 0.3s var(--ease-out);
  --transition-slow: 0.5s var(--ease-out);
  --transition-dramatic: 0.8s var(--ease-out);

  /* Layout */
  --hud-height: 56px;
  --action-bar-height: 0px;
  --scene-ratio: 60%;
  --evidence-ratio: 40%;
}


/* ─── Reset & Base ──────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-deepest);
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  position: relative;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--gold-light);
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

input, textarea, select {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-deep);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus, textarea:focus, select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

::selection {
  background: rgba(212, 168, 83, 0.3);
  color: var(--text-primary);
}


/* ─── Scrollbar ─────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-dim);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dim) var(--bg-deep);
}


/* ─── Screen System ─────────────────────────────────────────────── */
.screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-dramatic), visibility var(--transition-dramatic);
  z-index: 1;
}

.screen.active {
  opacity: 1;
  visibility: visible;
  z-index: 10;
}

.screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}


/* ─── Buttons ───────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 2rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--bg-deepest);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-base), filter var(--transition-fast);
  box-shadow: var(--shadow-md), 0 0 20px rgba(212, 168, 83, 0.15);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-lg), var(--shadow-glow-gold);
  filter: brightness(1.1);
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: var(--shadow-sm);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.7rem 1.8rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.1), rgba(240, 198, 116, 0.05));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm), 0 0 16px rgba(212, 168, 83, 0.1);
}

.btn-secondary:hover::before {
  opacity: 1;
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-secondary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Glow Button — pulse animation */
.btn-glow {
  animation: btnPulseGlow 2.5s ease-in-out infinite;
}

@keyframes btnPulseGlow {
  0%, 100% {
    box-shadow: var(--shadow-md), 0 0 20px rgba(212, 168, 83, 0.15);
  }
  50% {
    box-shadow: var(--shadow-lg), 0 0 30px rgba(212, 168, 83, 0.35), 0 0 60px rgba(212, 168, 83, 0.15);
  }
}

.btn-icon {
  font-size: 1.15em;
  line-height: 1;
}


/* ─── Modal System ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 12, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 1;
  visibility: visible;
  transition: opacity var(--transition-base), visibility var(--transition-base);
  padding: var(--space-lg);
}

.modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-content {
  background: var(--glass-bg-heavy);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  border: var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(212, 168, 83, 0.08);
  animation: modalSlideUp 0.45s var(--ease-spring);
  text-align: center;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1;
}

.modal-close:hover {
  color: var(--crimson-light);
  background: rgba(231, 76, 60, 0.12);
  border-color: rgba(231, 76, 60, 0.3);
  transform: rotate(90deg);
}

.modal-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--gold-light);
  margin-bottom: var(--space-lg);
}


/* ─── HUD Bar ───────────────────────────────────────────────────── */
.hud-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--hud-height);
  padding: 0 var(--space-lg);
  background: var(--glass-bg-heavy);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(212, 168, 83, 0.1);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
  z-index: 20;
  position: relative;
  flex-shrink: 0;
}

.hud-left,
.hud-center,
.hud-right {
  display: flex;
  align-items: center;
}

.hud-left { flex: 1; }
.hud-center { flex: 0 0 auto; }
.hud-right { flex: 1; justify-content: flex-end; }

/* Chapter info */
.hud-chapter {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.hud-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.hud-value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--gold);
}

.hud-chapter-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-left: var(--space-sm);
  padding-left: var(--space-sm);
  border-left: 1px solid var(--text-dim);
}

/* Timer */
.hud-timer {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.35rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(212, 168, 83, 0.15);
  border-radius: var(--radius-full);
}

.timer-icon {
  font-size: var(--text-base);
}

.timer-value {
  font-family: var(--font-mono);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--gold-light);
  letter-spacing: 0.05em;
  min-width: 52px;
  text-align: center;
}

/* Meters */
.hud-meters {
  display: flex;
  gap: var(--space-lg);
}

.meter-group {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.meter-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  min-width: 55px;
}

.meter-bar {
  width: 80px;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.meter-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s var(--ease-out);
  position: relative;
}

.meter-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(255, 255, 255, 0.3));
  border-radius: inherit;
}

.meter-fill.reputation {
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-light));
  box-shadow: 0 0 8px var(--gold-glow);
}

.meter-fill.ethics {
  background: linear-gradient(90deg, var(--info), var(--info-light));
  box-shadow: 0 0 8px rgba(41, 128, 185, 0.35);
}

.meter-value {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  min-width: 24px;
  text-align: right;
}


/* ─── Game Area Layout ──────────────────────────────────────────── */
.game-area {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
  min-height: 0;
}


/* ─── Scene Panel ───────────────────────────────────────────────── */
.scene-panel {
  position: relative;
  overflow: hidden;
  background: var(--bg-deepest);
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
}


/* ─── Action Bar ────────────────────────────────────────────────── */
.action-bar {
  display: none !important;
  align-items: center;
  justify-content: space-between;
  height: var(--action-bar-height);
  padding: 0 var(--space-lg);
  background: var(--glass-bg-heavy);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid rgba(212, 168, 83, 0.1);
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.3);
  z-index: 20;
  flex-shrink: 0;
}

.action-left,
.action-center,
.action-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.action-left { flex: 1; }
.action-center { flex: 0 0 auto; }
.action-right { flex: 1; justify-content: flex-end; }

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.4rem 0.9rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.action-btn:hover {
  color: var(--gold);
  background: rgba(212, 168, 83, 0.08);
  border-color: rgba(212, 168, 83, 0.25);
  transform: translateY(-1px);
}

.action-btn:active {
  transform: translateY(0);
}

.action-label {
  font-size: var(--text-xs);
}

.btn-chapter-action {
  color: var(--gold);
  border-color: var(--gold-dim);
  background: rgba(212, 168, 83, 0.06);
}

.btn-chapter-action:hover {
  background: rgba(212, 168, 83, 0.14);
  box-shadow: 0 0 12px var(--gold-glow);
}

.evidence-counter,
.connection-counter {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.counter-icon {
  font-size: 1em;
}

.evidence-counter strong,
.connection-counter strong {
  font-family: var(--font-mono);
  color: var(--gold);
  font-weight: 600;
}


/* ─── Toast Notifications ───────────────────────────────────────── */
.toast-container {
  position: absolute;
  top: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  pointer-events: none;
}

.toast {
  padding: 0.7rem 1.4rem;
  background: var(--glass-bg-heavy);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.4s var(--ease-spring), toastOut 0.35s ease-in forwards;
  animation-delay: 0s, 3s;
  pointer-events: auto;
  white-space: nowrap;
  text-align: center;
}

.toast.toast-success {
  border-color: rgba(39, 174, 96, 0.3);
  box-shadow: var(--shadow-lg), 0 0 16px var(--success-glow);
}

.toast.toast-warning {
  border-color: rgba(212, 168, 83, 0.3);
  box-shadow: var(--shadow-lg), 0 0 16px var(--gold-glow);
}

.toast.toast-error {
  border-color: rgba(192, 57, 43, 0.3);
  box-shadow: var(--shadow-lg), 0 0 16px var(--crimson-glow);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-12px) scale(0.95);
  }
}


/* ═══════════════════════════════════════════════════════════════════
   TITLE SCREEN
   ═══════════════════════════════════════════════════════════════════ */
#title-screen {
  background: radial-gradient(circle at center, rgba(10, 14, 23, 0.4) 0%, rgba(10, 14, 23, 0.85) 100%), url('../assets/title_bg.png') no-repeat center center;
  background-size: cover;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.title-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(212, 168, 83, 0.06) 0%, transparent 70%),
    radial-gradient(circle at 20% 80%, rgba(192, 57, 43, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Vignette effect */
.title-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.6) 100%);
}

/* Film grain */
.title-overlay::after {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
  animation: grainShift 0.5s steps(1) infinite;
  pointer-events: none;
}

@keyframes grainShift {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-5%, -5%); }
  50% { transform: translate(5%, 3%); }
  75% { transform: translate(-3%, 5%); }
}

.title-content {
  position: relative;
  z-index: 2;
  text-align: center;
  animation: fadeInUp 1.2s var(--ease-out);
}

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

/* Newspaper Masthead */
.newspaper-masthead {
  margin-bottom: var(--space-xl);
}

.masthead-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: var(--space-md) auto;
  max-width: 420px;
  opacity: 0.6;
}

.game-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, var(--text-4xl));
  font-weight: 900;
  color: var(--gold-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(212, 168, 83, 0.2),
    0 0 80px rgba(212, 168, 83, 0.08);
  animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
  0%, 100% {
    text-shadow:
      0 2px 4px rgba(0, 0, 0, 0.5),
      0 0 40px rgba(212, 168, 83, 0.2),
      0 0 80px rgba(212, 168, 83, 0.08);
  }
  50% {
    text-shadow:
      0 2px 4px rgba(0, 0, 0, 0.5),
      0 0 50px rgba(212, 168, 83, 0.35),
      0 0 100px rgba(212, 168, 83, 0.15);
  }
}

.game-subtitle {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-base);
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  margin-top: var(--space-xs);
}

.title-tagline {
  font-family: var(--font-body);
  font-weight: 400;
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-2xl);
  animation: fadeIn 1.8s var(--ease-out) 0.4s both;
}

.title-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
  animation: fadeIn 1.8s var(--ease-out) 0.7s both;
}

.title-footer {
  animation: fadeIn 2s var(--ease-out) 1s both;
}

.title-footer p {
  font-size: var(--text-sm);
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* Title Particles */
.particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 8s ease-in-out infinite;
}

.particle::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.4) 0%, transparent 70%);
  border-radius: 50%;
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }
  10% {
    opacity: 0.8;
    transform: translateY(90vh) scale(1);
  }
  90% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: translateY(-10vh) scale(0.5);
  }
}


/* ═══════════════════════════════════════════════════════════════════
   HOW TO PLAY MODAL
   ═══════════════════════════════════════════════════════════════════ */
.how-to-play-content {
  max-width: 680px;
}

.howto-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  text-align: left;
}

.howto-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.howto-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.howto-card:hover {
  background: rgba(212, 168, 83, 0.04);
  border-color: rgba(212, 168, 83, 0.15);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.howto-card:hover::before {
  opacity: 1;
}

.howto-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  filter: drop-shadow(0 0 8px rgba(212, 168, 83, 0.3));
}

.howto-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--gold-light);
  margin-bottom: var(--space-xs);
}

.howto-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
}


/* ═══════════════════════════════════════════════════════════════════
   REFLECTION MODAL
   ═══════════════════════════════════════════════════════════════════ */
.reflection-content {
  max-width: 560px;
}

.reflection-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  animation: float 3s ease-in-out infinite;
}

.reflection-question {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-md);
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.reflection-evidence {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  text-align: left;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  max-height: 140px;
  overflow-y: auto;
}

/* Confidence Slider */
.confidence-slider {
  display: none !important;
  margin-bottom: var(--space-lg);
  text-align: left;
}

.confidence-slider label {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  font-weight: 500;
}

.confidence-slider input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  outline: none;
  border: none;
  cursor: pointer;
}

.confidence-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 12px var(--gold-glow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.confidence-slider input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 20px var(--gold-glow);
}

.confidence-slider input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 12px var(--gold-glow);
}

.confidence-labels {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-xs);
}

.confidence-labels span {
  font-size: var(--text-xs);
  color: var(--text-dim);
}

.confidence-value {
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--gold);
  margin-top: var(--space-sm);
}

/* Reflection Textarea */
.reflection-reason {
  width: 100%;
  min-height: 80px;
  padding: var(--space-md);
  font-size: var(--text-sm);
  line-height: 1.6;
  resize: vertical;
  margin-bottom: var(--space-lg);
}


/* ═══════════════════════════════════════════════════════════════════
   DISCREPANCY MODAL
   ═══════════════════════════════════════════════════════════════════ */
.discrepancy-content {
  max-width: 620px;
}

.discrepancy-alert {
  font-size: 3rem;
  animation: discrepancyPulse 1s var(--ease-spring);
  margin-bottom: var(--space-sm);
}

@keyframes discrepancyPulse {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.discrepancy-content h2 {
  color: var(--crimson-light) !important;
  text-shadow: 0 0 20px var(--crimson-glow);
}

.discrepancy-comparison {
  display: flex;
  align-items: stretch;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.discrepancy-item {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: left;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  transition: border-color var(--transition-base);
}

.discrepancy-item:hover {
  border-color: rgba(192, 57, 43, 0.3);
}

.discrepancy-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 900;
  color: var(--crimson);
  text-shadow: 0 0 16px var(--crimson-glow);
  flex-shrink: 0;
  min-width: 40px;
}

.discrepancy-explanation {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: var(--space-lg);
}


/* ═══════════════════════════════════════════════════════════════════
   DECISION MODAL
   ═══════════════════════════════════════════════════════════════════ */
.decision-content {
  max-width: 640px;
}

.decision-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  animation: float 3s ease-in-out infinite;
}

.decision-description {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.decision-choices {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  text-align: left;
}

.decision-choice-btn {
  display: block;
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: #161c2e;
  border: 1.5px solid rgba(212, 168, 83, 0.35);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  text-align: left;
  color: var(--text-primary);
  font-family: var(--font-body);
  box-shadow: var(--shadow-sm);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.decision-choice-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gold);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.decision-choice-btn:hover {
  background: rgba(212, 168, 83, 0.1);
  border-color: var(--gold);
  transform: translateX(4px);
  box-shadow: var(--shadow-md), 0 0 12px rgba(212, 168, 83, 0.2);
}

.decision-choice-btn:hover::before {
  opacity: 1;
}

.decision-choice-btn:active {
  transform: translateX(2px) scale(0.99);
}

.decision-choice-btn .choice-text {
  display: block;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: var(--space-xs);
}

.decision-choice-btn .choice-hint {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Reflection Choices */
.reflection-choices {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  text-align: left;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.reflection-choice-btn {
  display: block;
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: #161c2e;
  border: 1.5px solid rgba(212, 168, 83, 0.35);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.reflection-choice-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gold);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.reflection-choice-btn:hover {
  background: rgba(212, 168, 83, 0.1);
  border-color: var(--gold);
  transform: translateX(4px);
  box-shadow: var(--shadow-md), 0 0 12px rgba(212, 168, 83, 0.2);
}

.reflection-choice-btn:hover::before {
  opacity: 1;
}

.reflection-choice-btn:active {
  transform: translateX(2px) scale(0.99);
}

.reflection-choice-btn.selected {
  background: rgba(212, 168, 83, 0.15);
  border-color: var(--gold);
  box-shadow: 0 0 15px var(--gold-glow);
}

.reflection-choice-btn.selected::before {
  opacity: 1;
}


/* ═══════════════════════════════════════════════════════════════════
   CHAPTER TRANSITION
   ═══════════════════════════════════════════════════════════════════ */
#chapter-transition {
  background: rgba(0, 0, 0, 0.95);
}

.chapter-transition-content {
  text-align: center;
  animation: chapterReveal 1.5s var(--ease-out);
}

@keyframes chapterReveal {
  0% {
    opacity: 0;
  }
  30% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.chapter-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--gold-dim);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  animation: fadeIn 1s var(--ease-out) 0.5s both;
}

.chapter-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: var(--space-md);
  animation: fadeIn 1s var(--ease-out) 0.8s both;
  text-shadow: 0 0 40px rgba(212, 168, 83, 0.3);
}

.chapter-description {
  font-size: var(--text-base);
  color: var(--text-muted);
  font-style: italic;
  max-width: 500px;
  margin: 0 auto;
  animation: fadeIn 1s var(--ease-out) 1.1s both;
}

.chapter-loading {
  margin-top: var(--space-2xl);
  animation: fadeIn 1s var(--ease-out) 1.5s both;
}

.typewriter-dots {
  display: inline-flex;
  gap: var(--space-sm);
}

.typewriter-dots span {
  font-size: var(--text-2xl);
  color: var(--gold);
  animation: typewriterBlink 1.4s ease-in-out infinite;
}

.typewriter-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typewriter-dots span:nth-child(3) {
  animation-delay: 0.4s;
}


/* ═══════════════════════════════════════════════════════════════════
   ENDING SCREEN
   ═══════════════════════════════════════════════════════════════════ */
#ending-screen {
  background: var(--bg-deepest);
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}

.ending-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.6) 100%),
    linear-gradient(180deg, rgba(212, 168, 83, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.ending-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  width: 100%;
  padding: var(--space-2xl);
  animation: fadeInUp 1.2s var(--ease-out);
}

.ending-newspaper {
  background: linear-gradient(135deg, #f5f0e3, #ede7d5);
  color: #1a1a1a;
  padding: var(--space-2xl) var(--space-xl);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0, 0, 0, 0.1);
  margin-bottom: var(--space-xl);
  position: relative;
  text-align: center;
}

/* Newspaper aged effect */
.ending-newspaper::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 28px,
      rgba(0, 0, 0, 0.02) 28px,
      rgba(0, 0, 0, 0.02) 29px
    );
  pointer-events: none;
  border-radius: inherit;
}

.ending-newspaper::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow:
    inset 0 0 60px rgba(139, 119, 80, 0.15),
    inset 0 0 120px rgba(139, 119, 80, 0.05);
  border-radius: inherit;
  pointer-events: none;
}

.newspaper-date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: #666;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid #1a1a1a;
  margin-bottom: var(--space-md);
}

.ending-headline {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  color: #111;
  line-height: 1.15;
  margin-bottom: var(--space-md);
  text-shadow: none;
}

.ending-article {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: #333;
  line-height: 1.7;
  text-align: left;
  column-count: 2;
  column-gap: var(--space-lg);
  column-rule: 1px solid rgba(0, 0, 0, 0.1);
}

.ending-impact {
  margin-bottom: var(--space-xl);
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.03);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  text-align: left;
}

.ending-impact p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: pre-line;
}


/* ═══════════════════════════════════════════════════════════════════
   SCORECARD SCREEN
   ═══════════════════════════════════════════════════════════════════ */
#scorecard-screen {
  background: var(--bg-deepest);
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}

.scorecard-content {
  max-width: 800px;
  width: 100%;
  padding: var(--space-2xl);
  animation: fadeInUp 1s var(--ease-out);
}

.scorecard-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  text-align: center;
  color: var(--gold-light);
  margin-bottom: var(--space-2xl);
  text-shadow: 0 0 30px rgba(212, 168, 83, 0.2);
}

.scorecard-grid {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.scorecard-skill {
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto auto;
  column-gap: var(--space-md);
  row-gap: var(--space-xs);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
  animation: slideIn 0.5s var(--ease-out) both;
}

.scorecard-skill:nth-child(1) { animation-delay: 0.1s; }
.scorecard-skill:nth-child(2) { animation-delay: 0.2s; }
.scorecard-skill:nth-child(3) { animation-delay: 0.3s; }
.scorecard-skill:nth-child(4) { animation-delay: 0.4s; }
.scorecard-skill:nth-child(5) { animation-delay: 0.5s; }

.scorecard-skill:hover {
  background: rgba(212, 168, 83, 0.05);
  border-color: rgba(212, 168, 83, 0.2);
  transform: translateX(4px);
}

.skill-icon {
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  filter: drop-shadow(0 0 6px rgba(212, 168, 83, 0.2));
}

.scorecard-skill h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--text-primary);
}

.skill-bar {
  grid-column: 2;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold), var(--gold-light));
  border-radius: var(--radius-full);
  transition: width 1.2s var(--ease-out);
  position: relative;
  box-shadow: 0 0 12px var(--gold-glow);
}

.skill-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 70%, rgba(255, 255, 255, 0.25));
  border-radius: inherit;
}

.skill-detail {
  grid-column: 2;
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

.scorecard-summary {
  background: rgba(255, 255, 255, 0.03);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  text-align: center;
}

.scorecard-summary p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
}

.scorecard-actions {
  text-align: center;
}


/* ═══════════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════════ */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}


/* ═══════════════════════════════════════════════════════════════════
   KEYFRAME ANIMATIONS
   ═══════════════════════════════════════════════════════════════════ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 8px var(--gold-glow);
  }
  50% {
    box-shadow: 0 0 20px var(--gold-glow), 0 0 40px rgba(212, 168, 83, 0.1);
  }
}

@keyframes typewriterBlink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}


/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1024px)
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root {
    --hud-height: 50px;
    --action-bar-height: 0px;
  }

  .game-area {
    grid-template-columns: 55% 45%;
  }

  .hud-chapter-title {
    display: none;
  }

  .meter-bar {
    width: 60px;
  }

  .meter-label {
    min-width: 40px;
    font-size: 0.65rem;
  }

  .ending-article {
    column-count: 1;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --hud-height: 44px;
    --action-bar-height: 0px;
  }

  .game-area {
    display: flex;
  }

  .evidence-panel {
    position: fixed;
    inset: var(--hud-height) 0 var(--action-bar-height) 0;
    width: 100%;
    max-width: 100%;
    z-index: 30;
    transform: translateX(100%);
    transition: transform var(--transition-base);
  }

  .evidence-panel:not(.collapsed),
  .evidence-panel.open {
    transform: translateX(0);
  }

  /* HUD adjustments */
  .hud-bar {
    padding: 0 var(--space-md);
  }

  .hud-meters {
    gap: var(--space-sm);
  }

  .meter-group {
    flex-direction: column;
    gap: 1px;
  }

  .meter-bar {
    width: 50px;
    height: 4px;
  }

  .meter-value {
    display: none;
  }

  .timer-value {
    font-size: var(--text-sm);
  }

  /* Title screen */
  .game-title {
    font-size: 1.8rem;
  }

  .title-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    max-width: 280px;
  }

  /* Action bar */
  .action-bar {
    padding: 0 var(--space-sm);
  }

  .action-label {
    display: none;
  }

  /* Howto grid */
  .howto-grid {
    grid-template-columns: 1fr;
  }

  /* Modal */
  .modal-content {
    padding: var(--space-lg);
    margin: var(--space-md);
    max-height: 90vh;
  }

  /* Discrepancy */
  .discrepancy-comparison {
    flex-direction: column;
  }

  .discrepancy-vs {
    transform: rotate(90deg);
    margin: var(--space-xs) auto;
  }

  /* Scorecard */
  .scorecard-skill {
    grid-template-columns: 40px 1fr;
  }

  .scorecard-title {
    font-size: var(--text-xl);
  }
}

/* ==================== LOGIN & ROUTE SELECTION CUSTOM STYLES ==================== */
.company-logo {
  max-width: 100%;
  height: auto;
  transition: transform var(--transition-slow);
}

.company-logo:hover {
  transform: scale(1.03);
}

.route-option-label {
  display: flex !important;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border-radius: var(--radius-md);
  padding: 12px !important;
  transition: all var(--transition-fast) !important;
}

.route-option-label:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(212, 168, 83, 0.4) !important;
  transform: translateY(-1px);
}

.route-option-label.selected {
  background: rgba(212, 168, 83, 0.08) !important;
  border-color: var(--gold) !important;
  box-shadow: 0 0 15px rgba(212, 168, 83, 0.25);
}

.route-option-label input[type="radio"] {
  cursor: pointer;
  accent-color: var(--gold);
  width: 18px;
  height: 18px;
}

.route-badge {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.15);
}

.profile-card {
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--gold) !important;
}

