/* ============================================================
   World War Like 1 — interface
   Palette : boue, sable, fer, ciel couvert.
   ============================================================ */

:root {
  --ink: #0e1210;
  --panel: rgba(15, 19, 15, 0.92);
  --panel-solid: #121610;
  --line: #2c3227;
  --line-soft: rgba(201, 168, 106, 0.16);
  --sand: #c9a86a;
  --sand-light: #e2c68a;
  --bone: #ece6d6;
  --muted: #9aa38e;
  --muted-dark: #707867;
  --rust: #b5503d;
  --success: #8fae72;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--bone);
  font-family: "Segoe UI", "Arial Narrow", Arial, sans-serif;
}

body { user-select: none; }

#app {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100vh;
}

#scene {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: #8e989d;
  cursor: crosshair;
}

/* Vignettage léger au-dessus de la 3D, sous le HUD */
#app::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 48%, rgba(6, 9, 7, 0.42) 100%);
}

.hidden { display: none !important; }

/* ============================================================
   HUD
   ============================================================ */

#hud {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(14px, 2vw, 28px);
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.hud-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.objective-card {
  max-width: 380px;
  padding: 10px 14px 12px;
  background: linear-gradient(90deg, rgba(9, 12, 8, 0.8), rgba(9, 12, 8, 0.2));
  border-left: 2px solid var(--sand);
  backdrop-filter: blur(4px);
}

.hud-label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.objective-card strong {
  display: block;
  color: var(--bone);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

#objectiveText {
  display: block;
  margin-top: 2px;
  color: #aeb5a4;
  font-size: 12px;
}

.progress {
  width: 100%;
  height: 3px;
  margin-top: 9px;
  overflow: hidden;
  background: #2a2f25;
}

#objectiveBar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #a9854e, var(--sand-light));
  transition: width 0.2s ease-out;
}

.stats-card {
  display: flex;
  gap: 22px;
  padding: 10px 14px;
  text-align: right;
  background: rgba(9, 12, 8, 0.55);
  border: 1px solid var(--line-soft);
}

.stats-card strong {
  display: block;
  color: var(--bone);
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.hud-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.health-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(9, 12, 8, 0.65);
  border-left: 2px solid var(--rust);
}

.health-bar {
  width: 220px;
  height: 10px;
  overflow: hidden;
  background: #2a1a16;
  border: 1px solid #4a2a24;
}

#healthBar {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--rust), #d98a4b);
  transition: width 0.15s ease-out;
}

.health-card strong {
  width: 38px;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.ammo-card {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding: 8px 16px 10px;
  background: rgba(9, 12, 8, 0.7);
  border: 1px solid var(--line-soft);
}

.weapon-name {
  color: var(--sand-light);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ammo-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

#ammoText {
  color: var(--bone);
  font-size: 32px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.ammo-max { color: var(--muted-dark); font-size: 14px; }

.reload-text {
  margin-left: 10px;
  color: var(--sand-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.hud-hint {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  color: #7c846f;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3em;
  writing-mode: vertical-rl;
}

/* Réticule */
#crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  opacity: 0.85;
}

#crosshair i {
  position: absolute;
  display: block;
  background: #f1e9d6;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.9);
}

#crosshair i:nth-child(1) { top: 0; left: 10px; width: 2px; height: 7px; }
#crosshair i:nth-child(2) { bottom: 0; left: 10px; width: 2px; height: 7px; }
#crosshair i:nth-child(3) { top: 10px; left: 0; width: 7px; height: 2px; }
#crosshair i:nth-child(4) { top: 10px; right: 0; width: 7px; height: 2px; }

#crosshair.aiming {
  opacity: 0.25;
  transform: translate(-50%, -50%) scale(0.7);
}

#hitmarker {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}

#hitmarker::before,
#hitmarker::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 14px;
  background: #f5ebd2;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.9);
  transform: translate(-50%, -50%) rotate(45deg);
}

#hitmarker::after { transform: translate(-50%, -50%) rotate(-45deg); }

#hitmarker.show { animation: hitmark 0.2s ease-out; }

@keyframes hitmark {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.7); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.3); }
}

#damageVignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle, transparent 42%, rgba(125, 22, 10, 0.88) 100%);
  opacity: 0;
}

#chargeFx {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.16s ease;
  background: radial-gradient(circle, transparent 38%, rgba(66, 31, 12, 0.34) 100%);
}

#chargeFx::before {
  content: "";
  position: absolute;
  inset: -18%;
  background: repeating-conic-gradient(
    from 0deg at 50% 50%,
    rgba(255, 240, 210, 0.1) 0deg 0.35deg,
    transparent 0.35deg 7deg
  );
  -webkit-mask-image: radial-gradient(circle, transparent 30%, #000 78%);
  mask-image: radial-gradient(circle, transparent 30%, #000 78%);
  opacity: 0.5;
  animation: chargeSpeed 0.6s linear infinite;
}

#chargeFx.active { opacity: 1; }

@keyframes chargeSpeed {
  0% { transform: scale(1.02); opacity: 0.28; }
  50% { opacity: 0.55; }
  100% { transform: scale(1.14); opacity: 0.28; }
}

#toast {
  position: absolute;
  bottom: 16%;
  left: 50%;
  max-width: 90%;
  padding: 10px 18px;
  transform: translateX(-50%);
  background: rgba(9, 12, 8, 0.94);
  border: 1px solid var(--sand);
  color: var(--bone);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: center;
}

/* ============================================================
   Écrans (menu, pause, fin, chargement)
   ============================================================ */

.overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 36px);
  overflow-y: auto;
  background:
    radial-gradient(circle at 50% 10%, rgba(201, 168, 106, 0.07), transparent 45%),
    linear-gradient(180deg, rgba(8, 11, 8, 0.78), rgba(8, 11, 8, 0.94));
  backdrop-filter: blur(3px);
}

#loading { z-index: 50; background: var(--ink); }
#pause, #end { z-index: 40; }

/* ============================================================
   Cinématique d'ouverture
   ============================================================ */

#intro {
  position: absolute;
  inset: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #040605;
}

#intro.cinematic { background: transparent; }

.intro-start {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 28px;
  text-align: center;
}

.intro-start h2 {
  margin: 10px 0 26px;
  color: var(--bone);
  font-size: clamp(40px, 7vw, 82px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.intro-start h2 em {
  color: var(--sand);
  font-style: normal;
}

.intro-hint {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.intro-caption {
  position: absolute;
  bottom: 9%;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  color: var(--sand-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.intro-fade {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: #000;
  opacity: 0;
  pointer-events: none;
}

.intro-flash {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: radial-gradient(circle at 50% 60%, #ffe8bd 0%, #ff9e4a 32%, rgba(255, 82, 25, 0) 72%);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

.intro-skip {
  position: absolute;
  right: clamp(16px, 3vw, 30px);
  bottom: clamp(16px, 3vw, 26px);
  z-index: 5;
  padding: 8px 12px;
  background: rgba(9, 12, 8, 0.5);
  border: 1px solid var(--line-soft);
  color: var(--muted);
  font: inherit;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  cursor: pointer;
}

.intro-skip:hover {
  color: var(--bone);
  border-color: var(--sand);
}

.menu-card {
  position: relative;
  width: min(1060px, 100%);
  padding: clamp(22px, 4vw, 46px);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid rgba(201, 168, 106, 0.2);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.menu-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--sand), transparent);
  opacity: 0.8;
}

.kicker {
  margin: 0;
  color: var(--sand);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.menu-head h1 {
  margin: 10px 0 12px;
  color: var(--bone);
  font-size: clamp(36px, 6.4vw, 76px);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 0.92;
  text-transform: uppercase;
}

.menu-head h1 em {
  color: var(--sand);
  font-style: normal;
}

.tagline {
  max-width: 62ch;
  margin: 0;
  color: #a8af9e;
  font-size: 14px;
  line-height: 1.6;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0;
}

.mode-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 15px 16px 13px;
  overflow: hidden;
  background: #171b15;
  border: 1px solid #2d3328;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.mode-card:hover {
  border-color: #646c53;
  background: #1b2018;
}

.mode-card.selected {
  background: linear-gradient(135deg, #20251b, #171b15);
  border-color: var(--sand);
  box-shadow: inset 3px 0 0 var(--sand);
}

.mode-card.selected .mode-state { color: var(--sand-light); border-color: var(--sand); }

.mode-card.locked {
  opacity: 0.42;
  cursor: not-allowed;
}

.mode-card.locked:hover {
  border-color: #2d3328;
  background: #171b15;
}

.mode-num {
  position: absolute;
  top: 10px;
  right: 13px;
  color: #4b5442;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.mode-name {
  display: block;
  padding-right: 38px;
  color: #e6dfcc;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.mode-desc {
  display: block;
  margin-top: 5px;
  color: #939b88;
  font-size: 12px;
  line-height: 1.45;
}

.mode-state {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 7px;
  color: #8e9781;
  border: 1px solid #3a4032;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.menu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}

.btn:active { transform: translateY(1px); }

.btn.primary {
  background: var(--sand);
  border-color: var(--sand);
  color: #141610;
}

.btn.primary:hover { background: var(--sand-light); border-color: var(--sand-light); }

.btn.ghost {
  background: transparent;
  border-color: #3a4032;
  color: #c9c4b4;
}

.btn.ghost:hover { border-color: #6b735c; color: var(--bone); }

.btn:focus-visible,
.mode-card:focus-visible {
  outline: 2px solid var(--sand-light);
  outline-offset: 2px;
}

.menu-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid #2a2f25;
  color: var(--muted-dark);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

/* ============================================================
   Menu principal — briefing à gauche, camion à droite
   ============================================================ */

#menu {
  justify-content: flex-start;
  align-items: stretch;
  padding: clamp(22px, 4vw, 54px) clamp(24px, 5vw, 76px);
  background:
    linear-gradient(90deg, rgba(4, 8, 7, 0.97) 0%, rgba(4, 8, 7, 0.91) 32%, rgba(4, 8, 7, 0.5) 58%, rgba(4, 8, 7, 0.06) 100%);
  backdrop-filter: none;
}

#menu .menu-card {
  width: min(540px, 46vw);
  min-height: 100%;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#menu .menu-card::before {
  top: 0;
  width: 64px;
  height: 2px;
  background: var(--sand);
  opacity: 1;
}

#menu .menu-head h1 {
  margin: 6px 0 8px;
  font-size: clamp(34px, 3.9vw, 56px);
  letter-spacing: 0.025em;
  line-height: 0.92;
}

#menu .tagline {
  max-width: 40ch;
  color: #aab19f;
  font-size: 12px;
  line-height: 1.45;
}

.menu-section-label {
  margin: 14px 0 6px;
  color: #79816d;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

#menu .mode-grid {
  grid-template-columns: 1fr;
  gap: 4px;
  margin: 0 0 14px;
}

#menu .mode-card {
  padding: 7px 13px 7px 14px;
  background: rgba(13, 18, 15, 0.82);
  border-color: rgba(137, 148, 119, 0.2);
}

#menu .mode-card:hover {
  border-color: #778064;
  background: rgba(21, 27, 21, 0.9);
}

#menu .mode-card.selected {
  background: linear-gradient(90deg, rgba(48, 56, 37, 0.9), rgba(15, 20, 16, 0.72));
  border-color: var(--sand);
  box-shadow: inset 2px 0 0 var(--sand);
}

#menu .mode-card.locked .mode-desc {
  display: none;
}

#menu .mode-name {
  font-size: 11.5px;
  letter-spacing: 0.14em;
}

#menu .mode-desc {
  margin-top: 2px;
  font-size: 10.5px;
  line-height: 1.3;
}

#menu .mode-state {
  margin-top: 4px;
  padding: 1px 5px;
  font-size: 8px;
}

#menu .mode-num {
  top: 7px;
  right: 12px;
  font-size: 17px;
}

#menu .menu-actions {
  margin-top: 0;
}

#menu .menu-actions .btn {
  padding: 11px 17px;
  font-size: 11px;
}

#menu .difficulty-grid {
  margin: 0 0 14px;
}

.difficulty-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.difficulty-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 9px 10px;
  background: rgba(13, 18, 15, 0.82);
  border: 1px solid rgba(137, 148, 119, 0.2);
  border-radius: 6px;
  color: #c9c4b4;
  text-align: left;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.difficulty-card:hover {
  border-color: #778064;
  background: rgba(21, 27, 21, 0.9);
}

.difficulty-card.selected {
  border-color: var(--sand);
  background: linear-gradient(180deg, rgba(48, 56, 37, 0.9), rgba(15, 20, 16, 0.82));
  box-shadow: inset 0 -2px 0 var(--sand);
  color: var(--bone);
}

.difficulty-card span {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.difficulty-card small {
  color: #7f8775;
  font-size: 8px;
  line-height: 1.25;
}

.difficulty-card.selected small { color: #b6bba9; }

.difficulty-card:focus-visible {
  outline: 2px solid var(--sand-light);
  outline-offset: 2px;
}

.end-score {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0 0 18px;
  padding: 18px 12px 16px;
  border: 1px solid rgba(201, 168, 106, 0.32);
  background:
    linear-gradient(180deg, rgba(201, 168, 106, 0.12), rgba(18, 21, 16, 0.94));
}

.end-score strong {
  color: var(--sand-light);
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.end-score-detail {
  color: #8f9784;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.5;
}

#menu .menu-foot {
  margin-top: 12px;
  padding-top: 10px;
  color: #727a68;
  font-size: 8.5px;
  line-height: 1.45;
}

.menu-vehicle-label {
  position: absolute;
  right: clamp(24px, 5vw, 76px);
  bottom: clamp(24px, 4vw, 48px);
  z-index: 2;
  margin: 0;
  max-width: 260px;
  color: #b9b49e;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.7;
  text-align: right;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  pointer-events: none;
}

.menu-vehicle-label span {
  display: block;
  color: var(--sand);
  font-size: 8px;
  letter-spacing: 0.3em;
}

#menu .menu-card::after {
  content: "";
  position: absolute;
  top: 12%;
  bottom: 12%;
  left: calc(100% + 28px);
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(201, 168, 106, 0.35), transparent);
}

@media (max-width: 1020px) {
  #menu .menu-card { width: min(560px, 58vw); }
  #menu .menu-card::after { display: none; }
}

@media (max-width: 760px) {
  #menu {
    padding: 24px 20px;
    background: rgba(4, 8, 7, 0.9);
  }
  #menu .menu-card {
    width: 100%;
    min-height: auto;
  }
  .menu-vehicle-label { display: none; }
}

.panel {
  width: min(580px, 100%);
  padding: clamp(26px, 4vw, 42px);
  background: var(--panel);
  border: 1px solid rgba(201, 168, 106, 0.22);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  text-align: center;
}

.panel h2 {
  margin: 10px 0 12px;
  color: var(--bone);
  font-size: clamp(25px, 4vw, 34px);
  font-weight: 900;
  letter-spacing: 0.1em;
}

.panel-text {
  margin: 0 auto 24px;
  max-width: 44ch;
  color: #a8af9e;
  font-size: 13.5px;
  line-height: 1.6;
}

.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.end-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 24px 0;
  background: #2a2f25;
  border: 1px solid #2a2f25;
}

.end-stats > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 8px;
  background: #121510;
}

.end-stats strong {
  color: var(--bone);
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.end-panel.win h2 { color: var(--success); }
.end-panel.lose h2 { color: #d47b64; }

/* ============================================================
   Intermissions de campagne
   ============================================================ */

#intermission {
  position: absolute;
  inset: 0;
  z-index: 35;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: clamp(24px, 5vw, 76px);
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 7, 5, 0.7) 0%, rgba(4, 7, 5, 0) 28%, rgba(4, 7, 5, 0) 48%, rgba(4, 7, 5, 0.9) 100%);
}

#intermission::before,
#intermission::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 9vh;
  background: #050806;
  pointer-events: none;
}

#intermission::before { top: 0; }
#intermission::after { bottom: 0; }

.intermission-card {
  position: relative;
  z-index: 1;
  width: min(700px, 92vw);
  padding: 22px 26px 20px;
  background: rgba(8, 12, 9, 0.82);
  border-left: 3px solid var(--sand);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.intermission-card h2 {
  margin: 8px 0 10px;
  color: var(--bone);
  font-size: clamp(24px, 3.3vw, 40px);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.02;
}

.intermission-card .panel-text {
  margin: 0 0 16px;
  max-width: 58ch;
  color: #b6bba9;
  font-size: 13px;
  line-height: 1.6;
}

#interSkip {
  padding: 8px 12px;
  font-size: 9px;
  letter-spacing: 0.18em;
}

/* Chargement */
.loading-box { text-align: center; }

.loading-box p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.load-error {
  max-width: 520px;
  color: #e08a72 !important;
  font-size: 12px !important;
  letter-spacing: 0.04em !important;
  line-height: 1.5;
}

.spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto;
  border: 2px solid #2e3529;
  border-top-color: var(--sand);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   Petits écrans
   ============================================================ */

@media (max-width: 760px) {
  .mode-grid { grid-template-columns: 1fr; }
  .menu-head h1 { font-size: clamp(30px, 11vw, 54px); }
  .hud-top { gap: 10px; }
  .stats-card { gap: 12px; padding: 8px 10px; }
  .stats-card strong { font-size: 16px; }
  .objective-card { max-width: 56vw; }
  .health-bar { width: 120px; }
  .health-card { padding: 8px 10px; }
  .ammo-card { padding: 6px 10px 8px; }
  #ammoText { font-size: 24px; }
  .hud-hint { display: none; }
  .menu-foot { font-size: 8.5px; }
}

@media (max-height: 680px) {
  .menu-head h1 { margin: 6px 0 8px; }
  .mode-grid { margin: 16px 0; gap: 8px; }
  .mode-card { padding: 11px 13px 10px; }
  .mode-desc { display: none; }
  .menu-foot { margin-top: 16px; padding-top: 12px; }
}
