/* apps/web/static/web/site.css */

:root {
  /* --- PALETTE: "The Deep Mind" --- */
  /* Backgrounds: Deep space/teal gradients */
  --bg-deep: #020617;      /* Nearly black */
  --bg-panel: #0f172a;     /* Dark Slate */
  --bg-card: #1e293b;      /* Lighter Slate for elements */

  /* Text Colors */
  --text-main: #f8fafc;    /* Off-white */
  --text-muted: #94a3b8;   /* Muted grey blue */

  /* Accents */
  --accent-cyan: #22d3ee;  /* AI / Technology Glow */
  --accent-gold: #f59e0b;  /* Philosophy / Human Wisdom */
  --accent-danger: #ef4444; /* Attacks / Errors */

  /* Borders */
  --border-subtle: #334155;
  --border-glow: rgba(34, 211, 238, 0.3);

  /* --- TYPOGRAPHY --- */
  --font-serif: 'Cinzel', serif;       /* For Titles & "The Judge" */
  --font-tech: 'Orbitron', monospace;  /* For HUD & Scores */
  --font-body: 'Inter', sans-serif;    /* For general reading */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: radial-gradient(circle at top center, #1e293b 0%, var(--bg-deep) 80%);
  background-attachment: fixed; /* Immersive feel */
  color: var(--text-main);
  min-height: 100vh;
}

/* --- APP SHELL (GAME UI LAYOUT) --- */
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(10px);
}

.app-topbar__brand {
  font-family: var(--font-serif);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--accent-gold);
}

.app-topbar__actions { display: flex; gap: 10px; }

.app-topbar__btn {
  padding: 8px 12px;
  font-size: 0.85rem;
}

.app-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(2, 6, 23, 0.6);
}

.app-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 280px;
  gap: 14px;
  align-items: start;
}

.app-main { min-width: 0; }

.app-main__inner {
  padding-top: 18px;
  padding-bottom: 28px;
}

.app-sidebar {
  position: sticky;
  top: 18px;
  height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(10px);
}

.sidebar { padding: 14px; }

.sidebar__brand {
  padding: 8px 8px 12px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 12px;
}

.sidebar__brand-link {
  display: inline-block;
  font-family: var(--font-serif);
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 900;
}

.sidebar__brand-sub {
  margin-top: 6px;
  font-family: var(--font-tech);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-nav { display: flex; flex-direction: column; gap: 8px; }

.app-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(2, 6, 23, 0.25);
  color: var(--text-main);
  font-family: var(--font-tech);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.app-nav__link:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.14);
  text-decoration: none;
}

.app-nav__link.is-active {
  border-color: var(--accent-gold);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.18);
}

.app-nav__divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 8px 0;
  opacity: 0.7;
}

.sidebar__panel { display: flex; flex-direction: column; gap: 12px; }

.sidebar__title {
  font-family: var(--font-tech);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.sidebar-card {
  border: 1px solid var(--border-subtle);
  background: rgba(2, 6, 23, 0.28);
  border-radius: 14px;
  padding: 12px;
}

.sidebar-card__title {
  font-family: var(--font-serif);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-gold);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.sidebar-card__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-tech);
  font-size: 0.85rem;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.18);
}

.sidebar-card__row:last-child { border-bottom: none; }

.sidebar-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.sidebar-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.7;
}

/* Sidebar: arena command deck should fit narrow panel */
.sidebar .input-terminal {
  flex-direction: column;
}

.sidebar .btn-transmit {
  width: 100%;
  padding: 12px 0;
}

@media (max-width: 1200px) {
  .app-shell { grid-template-columns: 210px minmax(0, 1fr) 260px; }
}

/* Mobile / tablet: drawers + topbar */
@media (max-width: 959px) {
  .app-topbar { display: flex; }
  .app-shell { grid-template-columns: 1fr; gap: 0; }
  .app-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    height: auto;
    z-index: 70;
    width: min(86vw, 340px);
    border-radius: 0;
    transform: translateX(-110%);
    transition: transform 0.22s ease;
  }
  .app-sidebar--right {
    right: 0;
    left: auto;
    transform: translateX(110%);
  }
  .app-sidebar--left { left: 0; }
  html.sidebar-left-open .app-sidebar--left { transform: translateX(0); }
  html.sidebar-right-open .app-sidebar--right { transform: translateX(0); }
  .app-main__inner { padding-top: 12px; }
}

/* --- TEXT STYLES --- */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-top: 0;
}

h1 {
  font-size: 2.5rem;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.4); /* Gold Glow */
}

/* --- LAYOUT --- */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

/* --- COMPONENT: THE CARD --- */
/* Replacing the white box with a "Holographic Panel" look */
.card {
  background: rgba(15, 23, 42, 0.8); /* Semi-transparent */
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
  backdrop-filter: blur(8px); /* Glassmorphism effect */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

/* --- COMPONENT: BUTTONS --- */
button, .btn {
  background: transparent;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-family: var(--font-tech);
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

button:hover, .btn:hover {
  background: var(--accent-cyan);
  color: var(--bg-deep); /* Invert colors on hover */
  box-shadow: 0 0 15px var(--accent-cyan); /* Neon glow */
}

button:active, .btn:active {
  transform: translateY(1px) scale(0.99);
}

/* ---- FX: motion helpers ---- */
@keyframes fxPulse {
  0% { transform: translateY(0) scale(1); filter: saturate(1); }
  45% { transform: translateY(-1px) scale(1.01); filter: saturate(1.15); }
  100% { transform: translateY(0) scale(1); filter: saturate(1); }
}

@keyframes fxShake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-2px); }
  40% { transform: translateX(2px); }
  60% { transform: translateX(-1px); }
  80% { transform: translateX(1px); }
  100% { transform: translateX(0); }
}

.fx-pulse { animation: fxPulse 420ms ease-out; }
.fx-shake { animation: fxShake 360ms ease-out; }

.fx-ripple-host { position: relative; overflow: hidden; }
.fx-ripple {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.26) 0%, rgba(34, 211, 238, 0.0) 60%);
  opacity: 0;
  transform: scale(0.85);
  animation: fxRipple 520ms ease-out;
  pointer-events: none;
}

@keyframes fxRipple {
  0% { opacity: 0; transform: scale(0.75); }
  18% { opacity: 0.65; }
  100% { opacity: 0; transform: scale(1.25); }
}

html[data-fx-motion="on"] body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.028),
      rgba(255,255,255,0.028) 1px,
      rgba(0,0,0,0) 2px,
      rgba(0,0,0,0) 5px
    );
  opacity: 0.25;
  mix-blend-mode: overlay;
}

@media (prefers-reduced-motion: reduce) {
  .fx-pulse, .fx-shake, .fx-ripple { animation: none !important; }
  .card, button, .btn { transition: none !important; }
  html[data-fx-motion="on"] body::after { display: none; }
}

html[data-fx-motion="off"] .fx-pulse,
html[data-fx-motion="off"] .fx-shake,
html[data-fx-motion="off"] .fx-ripple {
  animation: none !important;
}

html[data-fx-motion="off"] body::after { display: none; }

/* --- UTILS --- */
a { color: var(--accent-cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.muted { color: var(--text-muted); }

/* FX settings (right sidebar) */
.fx-settings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: center;
}

.fx-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.18);
  font-family: var(--font-tech);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.fx-toggle input { accent-color: var(--accent-cyan); }

.fx-slider {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fx-slider input[type="range"] { width: 100%; }

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
}

/* PILL TAGS (Used for badges) */
.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  font-family: var(--font-tech);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- PLAY WIZARD --- */
.play-wizard {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.play-wizard__header h1 {
  margin: 0 0 8px;
}

.play-wizard__progress {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.play-wizard__progress .pill.done {
  color: rgba(248, 250, 252, 0.85);
  border-color: rgba(245, 158, 11, 0.35);
}

.play-wizard__progress .pill.active {
  color: rgba(248, 250, 252, 0.95);
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.12);
}

.alert {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(2, 6, 23, 0.25);
}

.alert-error {
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.10);
}

.play-wizard .grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.play-wizard .field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.play-wizard .radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(2, 6, 23, 0.18);
}

.play-wizard .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: min(420px, 100%);
}

.play-wizard .field input,
.play-wizard .field select {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(2, 6, 23, 0.35);
  color: var(--text-main);
}

.play-wizard .actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

@media (min-width: 960px) {
  .play-wizard .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.play-wizard .subcard {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  padding: 12px;
  background: rgba(2, 6, 23, 0.18);
}

.play-wizard .grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.card-choice {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.card-choice__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.04);
}

.card-choice__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-choice__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
}

.card-choice__body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-choice.is-selected {
  outline: 2px solid rgba(245, 158, 11, 0.55);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.12);
}

.play-wizard .setup-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 960px) {
  .play-wizard .setup-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- HERO SECTION --- */
.hero-section {
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: opacity 0.5s ease;
  position: relative;
  overflow: hidden;
}

/* Background glow effect for the hero */
.hero-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.1) 0%, rgba(2, 6, 23, 0) 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.game-title {
  font-size: 5rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
  background: linear-gradient(to bottom, var(--accent-gold), #fff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
}

.game-subtitle {
  font-family: var(--font-tech);
  color: var(--accent-cyan);
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 3rem;
}

/* --- PULSING START BUTTON --- */
.btn-start {
  font-size: 1.5rem;
  padding: 16px 48px;
  border: 2px solid var(--accent-cyan);
  background: rgba(34, 211, 238, 0.05);
  box-shadow: 0 0 10px var(--accent-cyan), inset 0 0 10px var(--accent-cyan);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 10px var(--accent-cyan); }
  50% { box-shadow: 0 0 25px var(--accent-cyan), 0 0 5px var(--accent-cyan); }
  100% { box-shadow: 0 0 10px var(--accent-cyan); }
}

/* --- MODE CARDS --- */
.mode-container {
  transition: opacity 0.5s ease;
  padding-top: 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--text-muted);
}

.mode-card {
  background: linear-gradient(145deg, var(--bg-panel), var(--bg-deep));
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.mode-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
}

.card-header {
  padding: 20px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text-main);
}

.card-body {
  padding: 20px;
}

/* Form Styling within Cards */
.form-styled label {
  display: block;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-styled input, .form-styled select {
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  margin-bottom: 10px;
}

.btn-mode {
  width: 100%;
  margin-top: 16px;
  background: var(--bg-card);
  border-color: var(--text-muted);
  color: var(--text-main);
}

.mode-card:hover .btn-mode {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* --- SCENARIO EXPLORER --- */
.home-explore-cta {
  display: flex;
  justify-content: center;
  margin: 16px 0 28px;
}

.page-header {
  margin-bottom: 18px;
}

.wizard-steps {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 18px;
}

.wizard-step {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(2, 6, 23, 0.22);
  color: var(--text-muted);
  font-family: var(--font-tech);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wizard-step.is-active {
  border-color: rgba(245, 158, 11, 0.7);
  color: var(--accent-gold);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.14);
}

.explore {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 960px) {
  .explore {
    grid-template-columns: 340px 1fr;
    align-items: start;
  }
}

.explore-sidebar {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px;
  backdrop-filter: blur(8px);
}

.explore-search input {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-deep);
  color: var(--text-main);
}

.explore-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 70vh;
  overflow: auto;
  padding-right: 4px;
}

.explore-item {
  text-align: left;
  border: 1px solid var(--border-subtle);
  background: rgba(2, 6, 23, 0.35);
  border-radius: 12px;
  padding: 12px;
  color: var(--text-main);
  cursor: pointer;
}

.explore-item:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.15);
}

.explore-item.active {
  border-color: var(--accent-gold);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.18);
}

.explore-item-title {
  font-family: var(--font-serif);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-size: 0.95rem;
}

.explore-item-meta {
  margin-top: 6px;
  font-size: 0.85rem;
  line-height: 1.3;
}

.explore-main {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px;
  backdrop-filter: blur(8px);
}

.explore-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 960px) {
  .explore-hero {
    grid-template-columns: 1.2fr 1fr;
  }
}

.explore-hero-media {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: rgba(2, 6, 23, 0.25);
  min-height: 220px;
}

.explore-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.explore-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.explore-desc {
  margin-top: 10px;
  line-height: 1.45;
}

.explore-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.explore-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.explore-step {
  margin-top: 16px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

.explore-step-text {
  background: rgba(2, 6, 23, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px;
  line-height: 1.55;
}

.explore-choices {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 900px) {
  .explore-choices {
    grid-template-columns: 1fr 1fr;
  }
}

.explore-choice {
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(2, 6, 23, 0.25);
  color: var(--text-main);
  border-radius: 12px;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.explore-choice:hover {
  border-color: rgba(245, 158, 11, 0.75);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.15);
}

.explore-end {
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed var(--border-subtle);
  background: rgba(2, 6, 23, 0.15);
}

/* --- SCHOOL SELECTION --- */
.schools-header {
  text-align: center;
  margin: 8px 0 18px;
}

.schools-title {
  margin: 0;
  font-size: 2.6rem;
  color: var(--accent-gold);
}

.schools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 18px;
}

@media (min-width: 900px) {
  .schools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .schools-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.school-card {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(15, 23, 42, 0.55);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.55);
  text-decoration: none;
  transform: translateY(0);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.school-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.55);
}

.school-card-media {
  height: 230px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--bg-panel), var(--bg-deep));
}

.school-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.05);
}

.school-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.38)),
    radial-gradient(circle at 40% 20%, rgba(34, 211, 238, 0.12), rgba(2, 6, 23, 0.0) 60%);
}

.school-card-panel {
  background: rgba(45, 45, 45, 0.75);
  padding: 14px 14px 16px;
  text-align: center;
}

.school-card-name {
  font-family: var(--font-serif);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-gold);
  font-size: 1.05rem;
}

.school-card-desc {
  margin-top: 10px;
  color: var(--text-main);
  opacity: 0.9;
  font-size: 0.92rem;
  line-height: 1.35;
  min-height: 2.7em;
}

/* --- SCHOOL / PHILOSOPHER DETAIL PAGES --- */
.school-detail__header,
.philosopher-detail__header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

@media (min-width: 960px) {
  .school-detail__header,
  .philosopher-detail__header {
    grid-template-columns: 420px 1fr;
  }
}

.school-detail__media {
  height: 240px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--bg-panel), var(--bg-deep));
}

.school-detail__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.school-detail__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.38)),
    radial-gradient(circle at 40% 20%, rgba(34, 211, 238, 0.12), rgba(2, 6, 23, 0.0) 60%);
}

.philosopher-detail__avatar img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  display: block;
}

/* --- PAGE HEADERS --- */
.page-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
}

/* --- CONTROL PANEL (FILTERS) --- */
.control-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 32px;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.control-form {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.control-group {
  flex: 1;
  min-width: 200px;
}

.control-group label {
  display: block;
  font-family: var(--font-tech);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.control-group input, 
.control-group select {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 10px;
  border-radius: 4px;
}

.control-group input:focus,
.control-group select:focus {
  border-color: var(--accent-cyan);
  outline: none;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.2);
}

.search-group { flex: 2; }
.control-actions { flex: 0 0 auto; }

/* --- SCENARIO GRID --- */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* --- SCENARIO CARD --- */
.scenario-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
  height: 100%;
}

.scenario-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-glow);
  box-shadow: 0 10px 20px -5px rgba(0,0,0,0.5), 0 0 15px var(--card-glow);
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Card Visual (Top Half) */
.card-vis {
  height: 140px;
  background-color: var(--bg-deep);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

/* If no image, fallback gradient */
.card-vis::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, var(--bg-deep), var(--bg-panel));
  z-index: -1;
}

.card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.05);
}

.vis-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-card), transparent);
  z-index: 1;
}

/* Card Content (Bottom Half) */
.card-content {
  padding: 16px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  margin-bottom: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
  line-height: 1.3;
  color: var(--text-main);
}

.card-prompt {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 16px;
}

.card-footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.btn-load {
  font-family: var(--font-tech);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
}

.scenario-card:hover .btn-load {
  color: var(--card-glow);
  text-shadow: 0 0 8px var(--card-glow);
}

/* --- ARENA LAYOUT --- */
.arena-wrapper {
  display: flex;
  flex-direction: column;
  height: 85vh; /* Fit within viewport */
  max-width: 1400px;
  margin: 0 auto;
  gap: 16px;
}

/* ZONE 1: HUD */
.arena-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: var(--bg-panel);
  border-bottom: 2px solid var(--border-subtle);
  border-radius: 8px;
  font-family: var(--font-tech);
}

.hud-help-btn {
  margin-left: 12px;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(2, 6, 23, 0.25);
  color: var(--accent-cyan);
  line-height: 28px;
  font-family: var(--font-tech);
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.hud-help-btn:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.25);
}

.hud-shortcuts {
  margin-left: 10px;
  display: inline-flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  vertical-align: middle;
}

.hud-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(2, 6, 23, 0.25);
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-tech);
  font-size: 0.72rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.hud-shortcut__icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
}

.hud-shortcut:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.18);
  text-decoration: none;
}

@media (max-width: 540px) {
  .hud-shortcut { padding: 6px 8px; }
  .hud-shortcut__label { display: none; }
}

.arena-help {
  margin-top: 10px;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.75);
}

.arena-help-title {
  font-family: var(--font-tech);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  font-size: 0.75rem;
  margin-bottom: 8px;
}

.arena-help-text {
  color: var(--text-main);
  line-height: 1.5;
}

.hud-item { flex: 1; }
.hud-item.center { text-align: center; }
.hud-item.right { text-align: right; }

.hud-label { color: var(--accent-cyan); font-size: 0.7rem; display: block; }
.hud-value { font-size: 1.1rem; font-weight: 700; color: var(--text-main); }
.hud-value.active { color: #22c55e; text-shadow: 0 0 5px #22c55e; }

/* ZONE 2: BATTLE STAGE */
.battle-stage {
  flex-grow: 1;
  display: flex;
  gap: 20px;
  overflow: hidden; /* Important for chat scrolling */
}

/* Fighters */
.fighter {
  width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-shrink: 0;
}

.avatar-frame {
  width: 150px;
  height: 150px;
  border-radius: 50%; /* Circle for now, can be Hexagon */
  border: 4px solid; /* Color set inline */
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  position: relative;
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-tech);
  font-size: 1.5rem;
  color: #555;
}

.fighter-name {
  font-size: 1.2rem;
  color: var(--text-main);
  text-align: center;
  margin: 0;
}

/* Health Bars */
.health-bar-container {
  width: 100%;
  height: 8px;
  background: #333;
  border-radius: 4px;
  overflow: hidden;
}

.health-bar {
  height: 100%;
  box-shadow: 0 0 5px currentColor;
}

/* Dialogue Zone */
.dialogue-zone {
  flex-grow: 1;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.feed-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.scenario-brief {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(2, 6, 23, 0.2);
}

.scenario-brief-title {
  font-family: var(--font-tech);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.scenario-brief-text {
  white-space: pre-wrap;
  line-height: 1.5;
}

/* Speech Bubbles */
.bubble {
  max-width: 80%;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  position: relative;
  animation: fadeIn 0.3s ease;
}

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

.bubble-left {
  align-self: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--accent-gold);
  border-bottom-left-radius: 2px;
}

.bubble-right {
  align-self: flex-end;
  background: rgba(239, 68, 68, 0.1); /* Red tint */
  border: 1px solid var(--accent-danger);
  border-bottom-right-radius: 2px;
  text-align: right;
}

.bubble-system {
  align-self: center;
  max-width: 92%;
  background: rgba(2, 6, 23, 0.35);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-tech);
  font-size: 0.78rem;
  letter-spacing: 0.6px;
}

/* ZONE 3: COMMAND DECK */
.command-deck {
  background: var(--bg-panel);
  border-top: 2px solid var(--border-subtle);
  padding: 20px;
  border-radius: 12px 12px 0 0;
}

.deck-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.move-selector {
  display: flex;
  gap: 10px;
}

.btn-move {
  flex: 1;
  font-size: 0.8rem;
  padding: 8px;
  border-color: var(--border-subtle);
  color: var(--text-muted);
}

.btn-move:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.input-terminal {
  display: flex;
  gap: 12px;
}

textarea {
  flex-grow: 1;
  background: #000;
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
  font-family: var(--font-tech);
  padding: 12px;
  min-height: 60px;
  resize: none;
}

textarea:focus { border-color: var(--accent-cyan); outline: none; }

.btn-transmit {
  background: var(--accent-cyan);
  color: #000;
  border: none;
  font-weight: 700;
  padding: 0 24px;
}

.btn-transmit:hover {
  background: #fff;
  box-shadow: 0 0 15px var(--accent-cyan);
}

.btn-judge {
  width: 100%;
  margin-top: 10px;
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* --- ANIMATIONS & DYNAMICS --- */

/* 1. Smooth Health Bar Transitions */
.health-bar {
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.5s ease;
  position: relative;
  overflow: hidden;
}

/* Add a "shimmer" effect to the health bar */
.health-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.2) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: translateX(-100%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  100% { transform: translateX(100%); }
}

/* 2. Critical Health State (Red Pulse) */
.health-bar.critical {
  background: #ef4444 !important;
  box-shadow: 0 0 10px #ef4444;
  animation: pulse-critical 1s infinite;
}

@keyframes pulse-critical {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* 3. Bubble Pop-In Animation */
/* We referenced .slide-in in the JS previously, now we define it */
.slide-in {
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  opacity: 0;
  transform: scale(0.9) translateY(20px);
}

@keyframes popIn {
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* 4. Avatar "Talking" Glow */
/* When a new message appears, we can animate the avatar border (Advanced) */
.avatar-frame.active {
  box-shadow: 0 0 25px var(--accent-cyan);
  border-color: #fff;
}

/* --- VERDICT OVERLAY (GAME OVER) --- */
.verdict-overlay {
  position: fixed;
  inset: 0; /* Full screen */
  background: rgba(2, 6, 23, 0.9); /* Deep dark fade */
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.5s ease-out forwards;
}

.verdict-card {
  background: var(--bg-panel);
  border: 2px solid var(--accent-gold);
  border-radius: 20px;
  padding: 32px;
  max-width: 1200px;
  width: 96%;
  text-align: center;
  box-shadow: 0 0 60px rgba(245, 158, 11, 0.2);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  
  /* The Slam Animation */
  opacity: 0;
  transform: scale(2); /* Start huge */
  animation: gavelSlam 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s forwards;
}

.verdict-quote{
  font-style: italic;
  margin-top: 0;
}

.verdict-section{
  margin-top: 18px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.verdict-section:hover {
  border-color: rgba(34, 211, 238, 0.2);
  background: rgba(34, 211, 238, 0.02);
}

.verdict-toggle{
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  background: rgba(34, 211, 238, 0.08);
  color: var(--text-main);
  font-family: var(--font-tech);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.verdict-toggle:hover{
  background: rgba(34, 211, 238, 0.15);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.1);
}

.verdict-chev{
  opacity: 0.8;
  transition: transform 0.2s ease;
  display: inline-block;
}

.verdict-section.is-collapsed .verdict-chev {
  transform: rotate(-90deg);
}

.verdict-section-body{
  margin-top: 10px;
}

.verdict-section.is-collapsed .verdict-section-body{
  display: none;
}
  .verdict-section-title{
    margin-top: 18px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .9;
  }

  .verdict-mini-title{
    margin-top: 12px;
    font-weight: 700;
    opacity: 0.95;
    color: var(--accent-cyan);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .verdict-list{
    margin: 8px 0;
    padding-left: 18px;
  }

  .verdict-list li{
    margin: 8px 0;
    opacity: 0.95;
    line-height: 1.4;
  }

  .verdict-list li:before {
    content: "→ ";
    color: var(--accent-cyan);
    font-weight: bold;
    margin-right: 6px;
  }

  .verdict-compare{
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 12px;
  }

  @media (min-width: 700px){
    .verdict-compare{ grid-template-columns: 1fr 1fr; }
  }

  .verdict-col{
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.35);
    transition: all 0.2s ease;
  }

  .verdict-col:hover {
    border-color: rgba(34, 211, 238, 0.25);
    background: rgba(34, 211, 238, 0.04);
  }

  .verdict-col-title{
    font-weight: 900;
    letter-spacing: 0.04em;
    opacity: 0.98;
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .judge-chat{
    margin-top: 0;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 16px;
    background: rgba(0,0,0,.28);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .judge-chat-full{
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 300px;
  }

  .judge-chat-title{
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,.10);
    font-family: var(--font-tech);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
    opacity: .95;
  }

  .judge-chat-log{
    flex: 1;
    max-height: none;
    overflow: auto;
    padding: 12px;
  }

  .judge-chat-empty{
    padding: 10px;
  }

  .judge-msg{
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 14px;
    padding: 10px 12px;
    margin: 8px 0;
  }

  .judge-msg-user{
    background: rgba(0,255,255,.06);
  }

  .judge-msg-assistant{
    background: rgba(255,0,200,.05);
  }

  .judge-msg-role{
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .75;
  }

  .judge-msg-text{
    margin-top: 6px;
    white-space: pre-wrap;
  }

  .judge-chat-form{
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,.10);
  }

  .judge-chat-form input[type="text"]{
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(0,0,0,.35);
    color: inherit;
  }

  .judge-chat-form input::placeholder{
    opacity: .65;
  }

@keyframes gavelSlam {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.verdict-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: shake 0.5s ease-in-out 0.8s;
}

@keyframes shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

.verdict-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
}

.verdict-winner {
  font-family: var(--font-tech);
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.winner-name {
  color: var(--accent-cyan);
  font-size: 1.5rem;
  font-weight: 700;
  text-shadow: 0 0 10px var(--accent-cyan);
}

.verdict-body {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 14px;
  flex: 1;
  overflow: hidden;
  padding-right: 6px;
  text-align: left;
}

.verdict-layout{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
  height: 100%;
  min-height: 0;
}

@media (min-width: 1200px){
  .verdict-layout{ grid-template-columns: 1.25fr 0.75fr; }
}

.verdict-pane{
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.verdict-scroll{
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  display: flex;
  flex-direction: column;
}

/* Improve scrollbar appearance */
.verdict-scroll::-webkit-scrollbar {
  width: 8px;
}

.verdict-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.verdict-scroll::-webkit-scrollbar-thumb {
  background: rgba(34, 211, 238, 0.3);
  border-radius: 4px;
  transition: background 0.2s;
}

.verdict-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(34, 211, 238, 0.5);
}

.recap-list{
  display: grid;
  gap: 10px;
}

.recap-item{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(0,0,0,.22);
  white-space: pre-wrap;
}

.btn-reset {
  display: inline-block;
  background: var(--accent-gold);
  color: #000;
  font-family: var(--font-tech);
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-reset:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px var(--accent-gold);
}

/* --- HOME: SCENARIO CONTEXT BOX --- */
.scenario-context-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(2, 6, 23, 0.35);
}

.scenario-context-title {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.scenario-context-text {
  color: var(--text-main);
  max-height: 140px;
  overflow: auto;
  white-space: pre-wrap;
  line-height: 1.5;
}
