/* Da Nang 65' â€” interface minimaliste */
:root {
  --bg: #070906;
  --panel: rgba(13, 16, 12, 0.94);
  --text: #ece9dd;
  --muted: #969984;
  --faint: #6c6f5e;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #c7d18a;
  --amber: #d8b45f;
  --danger: #d97a5a;
  --font-menu: "Bahnschrift", "DIN Alternate", "Arial Narrow", "Segoe UI",
    sans-serif;
  --font-tech: Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
}

body {
  display: grid;
  place-items: center;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  -webkit-user-select: none;
  user-select: none;
}

#app {
  position: relative;
  width: min(100vw, calc(100vh * 16 / 9));
  height: min(100vh, calc(100vw * 9 / 16));
  overflow: hidden;
  background: #0a0f08;
}

#game {
  display: block;
  width: 100%;
  height: 100%;
  cursor: none;
}

.hidden { display: none !important; }

.label {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- HUD ---------- */
#hud {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  font-size: 14px;
  animation: hudIn 0.45s ease both;
}

.hud-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
}

.objective-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 4px;
}

#objective {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hud-score { text-align: right; }

#score {
  display: block;
  margin-top: 2px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hud-bottom {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
  display: flex;
  align-items: flex-end;
  gap: 28px;
}

.radio-hint {
  position: absolute;
  left: 50%;
  bottom: 98px;
  transform: translateX(-50%);
  padding: 8px 16px;
  border: 1px solid rgba(199, 209, 138, 0.38);
  background: rgba(9, 12, 7, 0.82);
  box-shadow: 0 0 22px rgba(0, 0, 0, 0.35);
  color: var(--accent);
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: radioHintPulse 1.8s ease-in-out infinite;
}

@keyframes radioHintPulse {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}

/* ---------- Commandes tactiles ---------- */
.touch-controls {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

body.touch .touch-controls {
  display: block;
}

@media (hover: none) and (pointer: coarse) {
  .touch-controls {
    display: block;
  }
}

.touch-stick {
  position: absolute;
  left: max(18px, env(safe-area-inset-left));
  bottom: max(78px, calc(env(safe-area-inset-bottom) + 64px));
  width: 116px;
  height: 116px;
  border: 1px solid rgba(199, 209, 138, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(199, 209, 138, 0.11), transparent 68%),
    rgba(7, 12, 7, 0.4);
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
  touch-action: none;
}

.touch-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border: 1px solid rgba(199, 209, 138, 0.5);
  border-radius: 50%;
  background: rgba(199, 209, 138, 0.18);
  box-shadow: 0 0 14px rgba(199, 209, 138, 0.12);
}

.touch-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -17px;
  text-align: center;
  font-family: Consolas, "Courier New", monospace;
  font-size: 7px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.touch-actions {
  position: absolute;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(74px, calc(env(safe-area-inset-bottom) + 60px));
  display: grid;
  grid-template-columns: repeat(3, 52px);
  gap: 8px;
  pointer-events: none;
}

.touch-btn {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(199, 209, 138, 0.32);
  border-radius: 50%;
  background: rgba(8, 13, 8, 0.78);
  color: var(--accent);
  font-family: Consolas, "Courier New", monospace;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  pointer-events: auto;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.touch-btn:active {
  background: rgba(199, 209, 138, 0.2);
}

.touch-btn:disabled {
  opacity: 0.3;
}

#touchLight {
  color: #f0d78a;
}

body.touch {
  overscroll-behavior: none;
}

body.touch #game,
body.touch .touch-controls {
  touch-action: none;
}

@media (max-width: 620px) {
  .touch-stick {
    left: 12px;
    bottom: 70px;
    width: 96px;
    height: 96px;
  }

  .touch-knob {
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
  }

  .touch-actions {
    right: 12px;
    bottom: 66px;
    grid-template-columns: repeat(3, 46px);
    gap: 6px;
  }

  .touch-btn {
    width: 46px;
    height: 46px;
    font-size: 7px;
  }
}

.hud-health { width: 200px; }

.health-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}

#hpText {
  font-size: 11px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

#hpText.god {
  color: var(--accent);
  font-size: 13px;
}

.bar {
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
}

#hpFill {
  width: 100%;
  height: 100%;
  background: var(--accent);
  transition: width 0.15s linear, background 0.2s linear;
}

.hud-ammo {
  margin-left: auto;
  text-align: right;
}

.ammo-line {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 2px;
}

#ammo {
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

#ammo.low { color: var(--danger); }

#ammo.god { color: var(--accent); }

.ammo-reserve {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.ammo-reserve.god { color: var(--accent); }

.hud-grenades {
  min-width: 64px;
  text-align: right;
}

#grenades {
  display: block;
  margin-top: 2px;
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.pig-rain {
  position: absolute;
  inset: 0;
  z-index: 70;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---------- Overlays ---------- */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: auto;
  background: rgba(6, 8, 5, 0.7);
  backdrop-filter: blur(5px);
  animation: overlayIn 0.25s ease both;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.overlay::-webkit-scrollbar { display: none; }

.menu {
  width: min(780px, 100%);
  max-height: 100%;
  overflow-y: auto;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  animation: menuIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior: contain;
}

.menu::-webkit-scrollbar { display: none; }

.menu-head { margin-bottom: 26px; }

.kicker {
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

h1 span { color: var(--accent); }

.tagline {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.section { margin-top: 22px; }

.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.index {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--faint);
}

.section-head h2 {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.options {
  display: grid;
  gap: 4px;
}

.option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.option:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(2px);
}

.option:active { transform: scale(0.995); }

.option.selected {
  border-color: rgba(199, 209, 138, 0.22);
  background: rgba(199, 209, 138, 0.07);
  box-shadow: inset 2px 0 0 var(--accent);
}

.option-index {
  width: 18px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
}

.option-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.option-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.option-desc {
  font-size: 11px;
  color: var(--muted);
}

.check {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  opacity: 0.45;
  transform: scale(0.6);
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease,
    border-color 0.18s ease;
}

.option.selected .check {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px var(--panel);
  opacity: 1;
  transform: scale(1);
}

.weapon-thumb {
  flex: 0 0 auto;
  width: 96px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.03);
}

.weapon-thumb img {
  max-width: 100%;
  max-height: 26px;
  image-rendering: pixelated;
}

.grenade-head {
  margin-top: 18px;
}

.grenade-thumb {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(199, 209, 138, 0.24);
  border-radius: 5px;
  background: rgba(199, 209, 138, 0.06);
  color: var(--accent);
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
  font-weight: 700;
}

.grenades .option {
  padding-top: 9px;
  padding-bottom: 9px;
}

.start {
  width: 100%;
  margin-top: 24px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 7px;
  background: var(--accent);
  color: #11150d;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
}

.start:hover { filter: brightness(1.06); }
.start:active { transform: translateY(1px); }
.start .arrow {
  font-size: 16px;
  letter-spacing: 0;
  transition: transform 0.2s ease;
}
.start:hover .arrow { transform: translateX(4px); }

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  font-size: 11px;
  color: var(--muted);
}

.controls b {
  color: var(--text);
  font-weight: 600;
}

.note {
  margin: 14px 0 0;
  font-size: 10px;
  color: var(--faint);
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
}

.toggle input {
  width: 13px;
  height: 13px;
  accent-color: var(--accent);
  cursor: pointer;
}

.volume-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.volume-control input {
  flex: 1;
  min-width: 120px;
  accent-color: var(--accent);
  cursor: pointer;
}

.volume-control b {
  min-width: 38px;
  color: var(--amber);
  font-size: 10px;
  text-align: right;
  letter-spacing: 0.04em;
}

.audio-box {
  margin: 10px 0 4px;
  padding: 10px 12px 12px;
  border: 1px solid rgba(199, 209, 138, 0.18);
  border-left: 2px solid var(--accent);
  background: rgba(199, 209, 138, 0.035);
}

.audio-title {
  margin-bottom: 3px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.pause-audio {
  margin: 16px 0 2px;
}

.dialog {
  width: min(400px, 100%);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  animation: dialogIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.dialog h2 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.dialog h2.win { color: var(--accent); }
.dialog h2.lose { color: var(--danger); }

.end-fx {
  display: block;
  width: 100%;
  height: auto;
  margin: -6px 0 14px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
}

.end-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.score-line {
  margin: 14px 0 0;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

#endScore {
  margin-left: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.end-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-top: 14px;
}

.end-stat {
  min-width: 0;
  padding: 8px 5px;
  border: 1px solid rgba(199, 209, 138, 0.18);
  background: rgba(199, 209, 138, 0.045);
  text-align: center;
}

.end-stat span {
  display: block;
  font-size: 7px;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.end-stat strong {
  display: block;
  margin-top: 5px;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

@media (max-width: 620px) {
  .end-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.pause-actions {
  flex-wrap: wrap;
}

.pause-settings {
  margin-top: 14px;
}

.pause-settings .bind-list {
  margin-bottom: 4px;
}

.pause-settings .settings-note {
  margin-top: 10px;
}

.btn {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn:hover { background: rgba(255, 255, 255, 0.05); }

.btn.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #11150d;
}

.btn.primary:hover { filter: brightness(1.06); }

@media (max-width: 620px) {
  .menu { padding: 22px; }
  .weapon-thumb { width: 72px; }
  .hud-health { width: 140px; }
  .hud-bottom { gap: 16px; }
}

/* ---------- Animations ---------- */
@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes menuIn {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

@keyframes dialogIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes hudIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

@keyframes swapIn {
  from { opacity: 0.2; transform: translateY(-2px); }
  to { opacity: 1; transform: none; }
}

@keyframes pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.14); }
  100% { transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

#objective,
.meta,
#score {
  display: inline-block;
}

#score.pop { animation: pop 0.25s ease; }
#objective.swap,
.meta.swap { animation: swapIn 0.25s ease; }

.hud-health.low #hpText { color: var(--danger); }
.hud-health.low .bar { animation: pulse 1s ease-in-out infinite; }
.hud-health.low #hpFill { background: var(--danger); }

button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Onglets ---------- */
.tabs {
  display: flex;
  gap: 2px;
  margin: 0 0 20px;
  border-bottom: 1px solid var(--line);
}

.tab {
  padding: 9px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }

.tab-panel { display: none; min-height: 320px; }
.tab-panel.active {
  display: block;
  animation: panelIn 0.28s ease both;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Jouer ---------- */
.play-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

.dossier {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
}

.dossier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.stamp {
  padding: 2px 6px;
  border: 1px solid rgba(217, 122, 90, 0.55);
  border-radius: 2px;
  color: var(--danger);
  font-size: 7px;
  letter-spacing: 0.14em;
  transform: rotate(-4deg);
}

.dossier-art {
  position: relative;
  height: 158px;
  overflow: hidden;
  border: 1px solid rgba(199, 209, 138, 0.14);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.18);
}

.dossier-art .art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.dossier-art .art.active { opacity: 1; }

.dossier-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dossier-code {
  margin: 0;
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

.dossier-body h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.dossier-body p {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}

.dossier-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 8px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.dossier-meta dt {
  font-size: 7px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.dossier-meta dd {
  margin: 3px 0 0;
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
}

/* ---------- Arme ---------- */
.weapon-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

.weapon-spec {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
}

.spec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

#specName { color: var(--accent); }

#specImage {
  display: block;
  width: 100%;
  height: 54px;
  margin: 12px 0 16px;
  object-fit: contain;
  object-position: left center;
  image-rendering: pixelated;
}

.spec-bars { display: grid; gap: 8px; }

.spec-row {
  display: grid;
  grid-template-columns: 70px 1fr 40px;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  color: var(--muted);
}

.spec-bar {
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
}

.spec-bar i {
  display: block;
  width: 50%;
  height: 100%;
  border-radius: 99px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.spec-row b {
  font-size: 9px;
  font-weight: 600;
  color: var(--text);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.spec-note {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- ParamÃ¨tres ---------- */
.settings-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.bind-list { display: grid; gap: 2px; }

.bind-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  color: var(--muted);
}

.bind-row:last-child { border-bottom: 0; }

.keybind {
  min-width: 56px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.keybind:hover {
  border-color: rgba(199, 209, 138, 0.4);
  background: rgba(255, 255, 255, 0.03);
}

.keybind.listening {
  border-color: var(--accent);
  color: var(--accent);
  animation: pulse 1s infinite;
}

.keycap-static {
  min-width: 56px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
}

.settings-note {
  margin: 12px 0 0;
  font-size: 10px;
  line-height: 1.6;
  color: var(--faint);
}

.btn.small {
  flex: 0 0 auto;
  width: auto;
  margin-top: 14px;
  padding: 7px 12px;
  font-size: 10px;
}

@media (max-width: 780px) {
  .play-layout,
  .weapon-layout,
  .settings-layout { grid-template-columns: 1fr; }
  .dossier-art { height: 140px; }
  .tab-panel { min-height: 0; }
}

/* ---------- Accessoires d'armes ---------- */
.attachment-block {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.spec-sep {
  margin-bottom: 6px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

.attachment-list { display: grid; gap: 6px; }

.attach {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: default;
}

.attach-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.attach.installed .attach-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 6px rgba(199, 209, 138, 0.5);
}

.attach.installed .attach-name { color: var(--accent); }

.attach-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.attach-name {
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
}

.attach-desc {
  font-size: 9px;
  line-height: 1.35;
  color: var(--faint);
}

/* ---------- Bouton Modifier ---------- */
.weapon-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
}

.weapon-row .option { flex: 1; }

.modify-btn {
  flex: 0 0 auto;
  align-self: center;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.modify-btn:hover {
  border-color: rgba(199, 209, 138, 0.4);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

/* ---------- Onglet Modifier ---------- */
.modify-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 20px;
  align-items: start;
}

.modify-stage-col .section-head { margin-bottom: 10px; }

.weapon-view {
  position: relative;
  height: 240px;
  border: 1px solid rgba(199, 209, 138, 0.14);
  border-radius: 8px;
  background:
    repeating-linear-gradient(0deg, rgba(199, 209, 138, 0.05) 0 1px, transparent 1px 20px),
    repeating-linear-gradient(90deg, rgba(199, 209, 138, 0.05) 0 1px, transparent 1px 20px),
    rgba(0, 0, 0, 0.18);
}

.weapon-view::before {
  content: "";
  position: absolute;
  inset: 8%;
  background: radial-gradient(ellipse at center, rgba(199, 209, 138, 0.08), transparent 70%);
  pointer-events: none;
}

.weapon-view::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 28px;
  height: 1px;
  background: rgba(199, 209, 138, 0.15);
}

#modifyImage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82%;
  height: auto;
  max-height: 70%;
  transform: translate(-50%, -50%);
  image-rendering: pixelated;
  filter: brightness(1.25) drop-shadow(0 8px 10px rgba(0, 0, 0, 0.55));
}

.part { position: absolute; display: none; z-index: 2; }
.part.active { display: block; }

.weapon-view.m16 .part[data-part="silencer"] {
  left: 91%;
  top: 50%;
  width: 13%;
  height: 10px;
  transform: translate(-50%, -50%);
  border: 1px solid #0d0f08;
  border-radius: 5px;
  background: linear-gradient(180deg, #6a7060, #3a3f33 45%, #1d2118);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.part[data-part="silencer"]::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 15%;
  bottom: 15%;
  width: 2px;
  border-radius: 1px;
  background: rgba(0, 0, 0, 0.6);
}

.weapon-view.m16 .part[data-part="scope"],
.weapon-view.m60 .part[data-part="scope"] {
  left: 48%;
  top: 41%;
  width: 9%;
  height: 10px;
  transform: translate(-50%, -50%);
  border: 1px solid #0d0f08;
  border-radius: 2px;
  background: linear-gradient(180deg, #4a4f40, #1d2118);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.weapon-view.m60 .part[data-part="scope"] {
  left: 49%;
  top: 38%;
  width: 8.5%;
}

.part[data-part="scope"]::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: -9px;
  height: 10px;
  border: 1px solid #0d0f08;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, rgba(90, 110, 105, 0.4), rgba(30, 45, 45, 0.55));
}

.part[data-part="scope"]::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 3px;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #ff4a3a;
  box-shadow: 0 0 5px rgba(255, 70, 50, 0.9);
}

.weapon-view.m16 .part[data-part="mag"] {
  left: 41%;
  top: 63%;
  width: 7%;
  height: 19%;
  transform: translate(-50%, -50%);
  border: 1px solid #0d0f08;
  border-radius: 2px 2px 4px 4px;
  background: linear-gradient(90deg, #1d2118, #3a3f33 50%, #151810);
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.5);
}

.part[data-part="mag"]::before {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  top: 32%;
  height: 3px;
  background: #d97a5a;
  opacity: 0.8;
}

.part[data-part="mag"]::after {
  content: "II";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  text-align: center;
  font-size: 6px;
  color: #9aa08a;
}

.weapon-view.m16 .part[data-part="grip"] {
  left: 62%;
  top: 61%;
  width: 5%;
  height: 15%;
  transform: translate(-50%, -50%) rotate(6deg);
  border: 1px solid #0d0f08;
  border-radius: 3px;
  background: linear-gradient(90deg, #1d2118, #4a4f40 50%, #1d2118);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.weapon-view.m60 .part[data-part="grip"] {
  left: 64%;
  top: 50%;
  width: 5%;
  height: 14%;
  transform: translate(-50%, -50%) rotate(6deg);
  border: 1px solid #0d0f08;
  border-radius: 3px;
  background: linear-gradient(90deg, #1d2118, #4a4f40 50%, #1d2118);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.part[data-part="grip"]::after {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: 3px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
}

.slot {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 22px;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(199, 209, 138, 0.45);
  border-radius: 4px;
  background: rgba(6, 8, 5, 0.45);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.slot:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(199, 209, 138, 0.12);
}

.slot.installed {
  border-color: transparent;
  background: transparent;
  color: transparent;
}

.slot.installed:hover {
  border-color: var(--accent);
  background: rgba(199, 209, 138, 0.1);
  color: var(--accent);
}

.weapon-view.m16 .slot[data-slot="silencer"] { left: 91%; top: 50%; }
.weapon-view.m16 .slot[data-slot="scope"] { left: 48%; top: 41%; }
.weapon-view.m16 .slot[data-slot="mag"] { left: 41%; top: 63%; }
.weapon-view.m16 .slot[data-slot="grip"] { left: 62%; top: 61%; }
.weapon-view.m60 .slot[data-slot="scope"] { left: 49%; top: 38%; }
.weapon-view.m60 .slot[data-slot="grip"] { left: 64%; top: 50%; }

.weapon-view.m60 .slot[data-slot="silencer"],
.weapon-view.m60 .slot[data-slot="mag"] { display: none; }

.modify-panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
}

.modify-stats-title {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.modify-stats { display: grid; gap: 6px; }

.modify-stats div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
}

.modify-stats b {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.modify-hint {
  margin: 10px 0 0;
  font-size: 10px;
  color: var(--faint);
}

@media (max-width: 780px) {
  .modify-layout { grid-template-columns: 1fr; }
}

/* ---------- Retour atelier ---------- */
.back-btn {
  margin-left: auto;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.back-btn:hover {
  border-color: rgba(199, 209, 138, 0.4);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

/* ---------- DifficultÃ© ---------- */
.difficulty-block { margin-top: 18px; }

.difficulty-options {
  display: flex;
  gap: 6px;
}

.difficulty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.difficulty span {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.difficulty:hover {
  border-color: rgba(199, 209, 138, 0.35);
  color: var(--text);
}

.difficulty.selected {
  border-color: rgba(199, 209, 138, 0.3);
  background: rgba(199, 209, 138, 0.07);
  color: var(--text);
  box-shadow: inset 2px 0 0 var(--accent);
}

.difficulty.selected span { color: var(--accent); }

.difficulty-desc {
  margin: 8px 0 0;
  font-size: 10px;
  line-height: 1.4;
  color: var(--faint);
}

/* ---------- Console cachÃ©e ---------- */
.dev-console {
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(620px, calc(100% - 48px));
  padding: 12px 14px;
  border: 1px solid rgba(199, 209, 138, 0.28);
  border-radius: 8px;
  background: rgba(5, 8, 5, 0.95);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  font-family: Consolas, "Courier New", monospace;
  user-select: text;
}

.dev-console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

.dev-console-status {
  color: var(--faint);
}

.dev-console-status.on {
  color: var(--accent);
}

.dev-console-log {
  max-height: 112px;
  margin: 8px 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.dev-console-entry {
  white-space: pre-wrap;
}

.dev-console-prompt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--accent);
  font-size: 12px;
}

.dev-console-prompt input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  caret-color: var(--accent);
  font: inherit;
  font-size: 12px;
  cursor: text;
}

/* ---------- Menu dossier militaire ---------- */
#menu {
  background:
    radial-gradient(circle at 76% 18%, rgba(140, 165, 90, 0.16), transparent 44%),
    linear-gradient(rgba(199, 209, 138, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199, 209, 138, 0.025) 1px, transparent 1px),
    rgba(4, 7, 4, 0.84);
  background-size: auto, 42px 42px, 42px 42px, auto;
}

.menu {
  position: relative;
  border-color: rgba(199, 209, 138, 0.24);
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(199, 209, 138, 0.055), transparent 24%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.018) 0 1px,
      transparent 1px 4px
    ),
    rgba(9, 13, 8, 0.95);
  box-shadow:
    0 26px 90px rgba(0, 0, 0, 0.68),
    inset 0 0 0 1px rgba(199, 209, 138, 0.045);
}

.menu::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(199, 209, 138, 0.065);
  pointer-events: none;
}

.menu-head {
  position: relative;
  margin-bottom: 18px;
}

.classification {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 7px 14px;
  margin-bottom: 14px;
  padding: 6px 9px;
  border: 1px solid rgba(199, 209, 138, 0.18);
  border-left: 2px solid var(--danger);
  background: rgba(199, 209, 138, 0.035);
  font-family: Consolas, "Courier New", monospace;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.classification span:first-child {
  color: var(--danger);
}

.classification span:nth-child(2) {
  color: var(--accent);
}

.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 8px rgba(217, 122, 90, 0.8);
  animation: statusBlink 1.6s steps(2, end) infinite;
}

@keyframes statusBlink {
  50% { opacity: 0.25; }
}

.menu-head .kicker {
  margin-bottom: 8px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--faint);
}

.menu-head h1 {
  text-transform: uppercase;
  letter-spacing: 0.015em;
  text-shadow: 0 0 26px rgba(199, 209, 138, 0.12);
}

.menu-head .tagline {
  margin-top: 8px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.tabs {
  gap: 6px;
  border-bottom-color: rgba(199, 209, 138, 0.2);
}

.tab {
  padding: 8px 13px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  background: rgba(255, 255, 255, 0.015);
  font-family: Consolas, "Courier New", monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tab:hover {
  background: rgba(199, 209, 138, 0.06);
}

.tab.active {
  border-color: rgba(199, 209, 138, 0.22);
  border-bottom-color: transparent;
  background: rgba(199, 209, 138, 0.08);
  color: var(--accent);
  box-shadow: inset 0 2px 0 var(--accent);
}

.section-head {
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(199, 209, 138, 0.13);
}

.section-head h2,
.index {
  font-family: Consolas, "Courier New", monospace;
}

.section-head h2 {
  color: var(--accent);
  letter-spacing: 0.22em;
}

.option {
  border-left: 2px solid transparent;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.012);
  font-family: Consolas, "Courier New", monospace;
}

.option:hover {
  border-left-color: rgba(199, 209, 138, 0.35);
  background: rgba(199, 209, 138, 0.045);
}

.option.selected {
  border-color: rgba(199, 209, 138, 0.22);
  border-left-color: var(--accent);
  background: linear-gradient(
    90deg,
    rgba(199, 209, 138, 0.1),
    rgba(199, 209, 138, 0.025)
  );
  box-shadow: none;
}

.option-index {
  width: 22px;
  color: var(--faint);
}

.option-title {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.option-desc {
  font-size: 10px;
  letter-spacing: 0.02em;
}

.check {
  border-radius: 0;
  transform: scale(0.6) rotate(45deg);
}

.option.selected .check {
  border-radius: 0;
  transform: scale(1) rotate(45deg);
}

.difficulty {
  border-radius: 2px;
  font-family: Consolas, "Courier New", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.difficulty span {
  color: var(--amber, #d8b45f);
}

#menu .dossier {
  position: relative;
  gap: 10px;
  padding: 16px 14px 12px;
  border-color: rgba(199, 209, 138, 0.2);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(199, 209, 138, 0.04), rgba(0, 0, 0, 0.08)),
    rgba(5, 9, 5, 0.42);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

#menu .dossier::before {
  content: 'DOSSIER / CLASSIFIÃ‰';
  position: absolute;
  top: -9px;
  left: 12px;
  padding: 2px 7px;
  border: 1px solid rgba(199, 209, 138, 0.25);
  background: #0a0f08;
  font-family: Consolas, "Courier New", monospace;
  font-size: 6px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--danger);
}

.dossier-head {
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(199, 209, 138, 0.14);
  font-family: Consolas, "Courier New", monospace;
}

.stamp {
  padding: 3px 7px;
  border: 2px double rgba(217, 122, 90, 0.55);
  border-radius: 1px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.16em;
  transform: rotate(-6deg);
  box-shadow: 0 0 0 1px rgba(217, 122, 90, 0.08);
}

.dossier-art {
  border-radius: 2px;
  background:
    radial-gradient(circle at 75% 25%, rgba(90, 130, 70, 0.16), transparent 42%),
    rgba(0, 0, 0, 0.22);
}

.dossier-art .art {
  z-index: 1;
}

.dossier-scan {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.14) 0 1px,
    transparent 1px 3px
  );
  mix-blend-mode: multiply;
}

.radar {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  width: 88px;
  height: 88px;
  overflow: hidden;
  border: 1px solid rgba(199, 209, 138, 0.38);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(32, 66, 30, 0.58),
    rgba(2, 8, 3, 0.72) 72%
  );
  box-shadow:
    0 0 18px rgba(120, 200, 120, 0.12),
    inset 0 0 18px rgba(0, 0, 0, 0.62);
}

.radar-circle {
  position: absolute;
  border: 1px solid rgba(199, 209, 138, 0.2);
  border-radius: 50%;
}

.radar-circle.c1 { inset: 21%; }
.radar-circle.c2 { inset: 39%; }

.radar-axis {
  position: absolute;
  background: rgba(199, 209, 138, 0.17);
}

.radar-axis.ax {
  top: 50%;
  left: 5%;
  right: 5%;
  height: 1px;
}

.radar-axis.ay {
  top: 5%;
  bottom: 5%;
  left: 50%;
  width: 1px;
}

.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(199, 209, 138, 0) 0 72%,
    rgba(199, 209, 138, 0.3) 91%,
    rgba(199, 209, 138, 0.62) 100%
  );
  animation: radarSweep 3.6s linear infinite;
}

@keyframes radarSweep {
  to { transform: rotate(360deg); }
}

.radar-blip {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #dcff9f;
  box-shadow: 0 0 8px rgba(220, 255, 159, 0.9);
  animation: radarBlip 2.2s ease-in-out infinite;
}

.radar-blip.b1 {
  top: 29%;
  left: 62%;
}

.radar-blip.b2 {
  top: 64%;
  left: 34%;
  animation-delay: 0.7s;
}

.radar-blip.b3 {
  top: 48%;
  left: 76%;
  animation-delay: 1.4s;
}

@keyframes radarBlip {
  0%, 100% { opacity: 0.16; transform: scale(0.7); }
  40% { opacity: 1; transform: scale(1); }
}

.radar-label {
  position: absolute;
  z-index: 4;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(199, 209, 138, 0.55);
  font-family: Consolas, "Courier New", monospace;
  font-size: 5px;
  letter-spacing: 0.14em;
}

.dossier-code {
  color: var(--amber, #d8b45f);
  font-family: Consolas, "Courier New", monospace;
}

.dossier-body h3 {
  font-family: Consolas, "Courier New", monospace;
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dossier-body p {
  font-size: 10px;
}

.dossier-meta {
  border-top-style: dashed;
}

.dossier-meta dt,
.dossier-meta dd {
  font-family: Consolas, "Courier New", monospace;
}

.dossier-meta dd {
  color: var(--amber, #d8b45f);
}

.dossier-readout {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px dashed rgba(199, 209, 138, 0.14);
  font-family: Consolas, "Courier New", monospace;
  font-size: 7px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.dossier-readout b {
  color: var(--amber, #d8b45f);
  font-weight: 600;
}

.dossier-readout .secure {
  color: var(--accent);
  animation: statusBlink 2s steps(2, end) infinite;
}

.start {
  border-radius: 2px;
  background: linear-gradient(90deg, #b4c077, #d1da95);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  font-family: Consolas, "Courier New", monospace;
  letter-spacing: 0.2em;
  box-shadow:
    0 0 0 1px rgba(199, 209, 138, 0.35),
    0 8px 26px rgba(0, 0, 0, 0.28);
}

.note {
  padding-top: 10px;
  border-top: 1px dashed rgba(199, 209, 138, 0.1);
  font-family: Consolas, "Courier New", monospace;
  letter-spacing: 0.03em;
}

/* ---------- Roue de stratagÃ¨mes ---------- */
.strat-overlay {
  position: absolute;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: auto;
  background:
    linear-gradient(rgba(199, 209, 138, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199, 209, 138, 0.03) 1px, transparent 1px),
    rgba(3, 6, 3, 0.84);
  background-size: 38px 38px, 38px 38px, auto;
  backdrop-filter: blur(4px);
  animation: overlayIn 0.18s ease both;
}

.strat-panel {
  width: min(720px, 100%);
  padding: 18px;
  border: 1px solid rgba(199, 209, 138, 0.28);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(199, 209, 138, 0.055), transparent 28%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.018) 0 1px,
      transparent 1px 4px
    ),
    rgba(8, 12, 7, 0.97);
  box-shadow:
    0 26px 90px rgba(0, 0, 0, 0.72),
    inset 0 0 0 1px rgba(199, 209, 138, 0.05);
}

.strat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px dashed rgba(199, 209, 138, 0.2);
  font-family: Consolas, "Courier New", monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.strat-live {
  color: var(--danger);
  animation: statusBlink 1.8s steps(2, end) infinite;
}

.strat-wheel {
  position: relative;
  width: 340px;
  height: 340px;
  margin: 40px auto 34px;
  border: 1px solid rgba(199, 209, 138, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(50, 80, 40, 0.2), transparent 62%),
    repeating-conic-gradient(
      from 0deg,
      rgba(199, 209, 138, 0.08) 0deg 1deg,
      transparent 1deg 30deg
    );
  box-shadow:
    0 0 0 8px rgba(199, 209, 138, 0.025),
    0 0 40px rgba(100, 160, 80, 0.08),
    inset 0 0 50px rgba(0, 0, 0, 0.45);
}

.strat-wheel::before,
.strat-wheel::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(199, 209, 138, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.strat-wheel::before { inset: 34px; }
.strat-wheel::after { inset: 86px; }

.strat-core {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  transform: translate(-50%, -50%);
  display: grid;
  place-content: center;
  gap: 1px;
  border: 1px solid rgba(199, 209, 138, 0.34);
  border-radius: 50%;
  background: rgba(5, 10, 5, 0.9);
  text-align: center;
  font-family: Consolas, "Courier New", monospace;
  color: var(--accent);
  box-shadow: 0 0 18px rgba(199, 209, 138, 0.08);
}

.strat-core span {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.strat-core small {
  font-size: 6px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

.strat-slot {
  position: absolute;
  z-index: 3;
  width: 122px;
  padding: 10px 8px;
  border: 1px solid rgba(199, 209, 138, 0.18);
  border-radius: 3px;
  background: rgba(7, 13, 7, 0.94);
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: default;
}

.strat-slot small {
  display: block;
  margin-top: 3px;
  font-size: 6px;
  letter-spacing: 0.16em;
  color: var(--faint);
}

.strat-slot.locked {
  opacity: 0.42;
  border-style: dashed;
  text-align: center;
}

.strat-slot.locked span {
  display: block;
  font-size: 15px;
  color: var(--faint);
}

.strat-slot.napalm {
  left: 50%;
  top: -18px;
  transform: translateX(-50%);
  width: 146px;
  border-color: rgba(217, 122, 90, 0.58);
  background:
    radial-gradient(circle at 50% 0%, rgba(217, 122, 90, 0.2), transparent 70%),
    rgba(14, 9, 6, 0.96);
  color: #f0b08a;
  cursor: pointer;
  animation: stratReady 2.6s ease-in-out infinite;
}

.strat-slot.napalm strong {
  font-size: 12px;
  letter-spacing: 0.18em;
}

.strat-slot.napalm small {
  color: #d98d6a;
}

.strat-slot.napalm:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  animation: none;
}

.strat-slot.napalm:not(:disabled):hover {
  filter: brightness(1.18);
}

.strat-slot.bombard {
  width: 174px;
  border-color: rgba(216, 180, 95, 0.58);
  background:
    radial-gradient(circle at 50% 100%, rgba(216, 180, 95, 0.18), transparent 70%),
    rgba(14, 12, 6, 0.96);
  color: var(--amber);
  cursor: pointer;
  animation: stratReady 2.6s ease-in-out infinite;
}

.strat-slot.bombard strong {
  font-size: 11px;
  letter-spacing: 0.14em;
}

.strat-slot.bombard small {
  color: #cdb477;
}

.strat-slot.bombard:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  animation: none;
}

.strat-slot.bombard:not(:disabled):hover {
  filter: brightness(1.18);
}

.strat-slot.heli {
  width: 146px;
  border-color: rgba(140, 184, 116, 0.6);
  background:
    radial-gradient(circle at 0% 50%, rgba(126, 171, 104, 0.2), transparent 70%),
    rgba(7, 13, 7, 0.96);
  color: #c7d18a;
  cursor: pointer;
  animation: stratReady 2.6s ease-in-out infinite;
}

.strat-slot.heli strong {
  font-size: 10px;
  letter-spacing: 0.12em;
}

.strat-slot.heli small {
  color: #9db77e;
}

.strat-slot.heli:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  animation: none;
}

.strat-slot.heli:not(:disabled):hover {
  filter: brightness(1.18);
}

@media (max-width: 560px) {
  .strat-slot.heli {
    width: 104px;
  }
}

@keyframes stratReady {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 122, 90, 0); }
  50% { box-shadow: 0 0 22px 2px rgba(217, 122, 90, 0.18); }
}

.strat-slot.west {
  left: -26px;
  top: 50%;
  transform: translateY(-50%);
}

.strat-slot.east {
  right: -26px;
  top: 50%;
  transform: translateY(-50%);
}

.strat-slot.south {
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
}

.strat-hint {
  margin: 12px 0 2px;
  text-align: center;
  font-family: Consolas, "Courier New", monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--faint);
}

.strat-map-wrap {
  position: relative;
  margin-top: 12px;
  border: 1px solid rgba(199, 209, 138, 0.28);
  background: #1b2e1b;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}

#stratMap {
  display: block;
  width: 100%;
  height: auto;
  cursor: crosshair;
  image-rendering: auto;
  touch-action: none;
  user-select: none;
}

.strat-map-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.16) 0 1px,
    transparent 1px 3px
  );
  mix-blend-mode: multiply;
}

@media (max-width: 560px) {
  .strat-wheel {
    width: 270px;
    height: 270px;
  }

  .strat-slot {
    width: 104px;
    font-size: 8px;
  }

  .strat-slot.napalm {
    width: 124px;
  }

  .strat-slot.west { left: -16px; }
  .strat-slot.east { right: -16px; }
  .strat-core {
    width: 76px;
    height: 76px;
  }
}

/* ---------- Grand menu / police technique ---------- */
#menu {
  padding: 10px;
}

.menu {
  width: min(980px, 100%);
  padding: 24px 38px;
  font-family: var(--font-menu);
}

.menu-head {
  margin-bottom: 12px;
}

.menu-head h1 {
  font-family: "Bahnschrift SemiCondensed", "Bahnschrift",
    "Arial Narrow", "Segoe UI", sans-serif;
  font-size: clamp(42px, 5.5vw, 62px);
  font-weight: 700;
  letter-spacing: 0.025em;
}

.tabs {
  gap: 7px;
  margin-bottom: 14px;
}

.tab {
  padding: 9px 15px;
  font-family: var(--font-menu);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.play-layout,
.weapon-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
}

.settings-layout {
  gap: 24px;
}

.option {
  padding: 12px 14px;
  font-family: var(--font-menu);
}

.option-title {
  font-size: 14px;
  letter-spacing: 0.07em;
}

.option-desc {
  font-family: var(--font-menu);
  font-size: 11px;
  letter-spacing: 0.015em;
}

.difficulty {
  padding: 9px 11px;
  font-family: var(--font-menu);
  font-size: 11px;
}

.difficulty span {
  font-family: var(--font-tech);
}

.start {
  margin-top: 16px;
  padding: 13px 18px;
  font-family: var(--font-menu);
  font-size: 13px;
  letter-spacing: 0.16em;
}

.note {
  margin-top: 10px;
}

#menu .dossier {
  gap: 8px;
  padding: 12px 12px 10px;
}

#menu .dossier-art {
  height: 144px;
}

#menu .dossier-meta {
  margin-top: 6px;
  padding-top: 8px;
}

#menu .dossier-body p {
  font-family: var(--font-menu);
  font-size: 11px;
}

#menu .dossier-meta dd {
  font-size: 11px;
}

.dialog {
  font-family: var(--font-menu);
}

/* ---------- Introduction ---------- */
.intro {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 52px 58px;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.018) 0 1px,
      transparent 1px 4px
    ),
    #000;
  color: #e2dec4;
  font-family: var(--font-tech);
  transition: opacity 0.7s ease;
}

.intro.done {
  opacity: 0;
  pointer-events: none;
}

.intro.hidden {
  display: none;
}

.intro-copy {
  width: min(860px, 100%);
  text-align: left;
}

.intro-line {
  min-height: 1.5em;
  margin: 0 0 10px;
  font-size: clamp(18px, 2.05vw, 30px);
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-shadow: 0 0 15px rgba(216, 212, 182, 0.1);
}

.intro-line2 {
  margin-bottom: 0;
  font-size: clamp(14px, 1.5vw, 22px);
  color: #b2b096;
}

.intro-start {
  position: absolute;
  right: 58px;
  bottom: 52px;
  padding: 11px 16px;
  border: 1px solid rgba(199, 209, 138, 0.45);
  border-radius: 2px;
  background: rgba(5, 9, 5, 0.75);
  color: var(--accent);
  font-family: var(--font-tech);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  animation: introPrompt 2s ease-in-out infinite;
}

.intro-start:hover {
  border-color: var(--accent);
  background: rgba(199, 209, 138, 0.08);
}

@keyframes introPrompt {
  0%, 100% { box-shadow: 0 0 0 0 rgba(199, 209, 138, 0); }
  50% { box-shadow: 0 0 18px rgba(199, 209, 138, 0.16); }
}

.intro-redact {
  position: relative;
  display: inline-block;
}

.intro-blackout {
  position: absolute;
  top: -1px;
  right: -2px;
  bottom: -1px;
  left: -2px;
  pointer-events: none;
  background: #000;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.42s ease;
}

.intro-redact.redacted .intro-blackout {
  transform: scaleX(1);
}

.intro-line.active::after {
  content: 'â–Œ';
  margin-left: 2px;
  color: var(--accent);
  animation: introCursor 0.72s steps(1, end) infinite;
}

@keyframes introCursor {
  50% { opacity: 0; }
}

@media (max-width: 600px) {
  .intro {
    padding: 28px 24px;
  }

  .intro-copy {
    width: 100%;
  }

  .intro-start {
    right: 24px;
    bottom: 24px;
    font-size: 9px;
  }
}

@media (max-width: 780px) {
  #menu {
    padding: 10px;
  }

  .menu {
    padding: 24px;
  }

  .menu-head h1 {
    font-size: clamp(34px, 8vw, 46px);
  }
}

/* ---------- Menu latéral / dossier opérationnel ---------- */
#menu {
  place-items: stretch start;
  padding: 12px;
}

#menu .menu {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  column-gap: 24px;
  width: min(1060px, calc(100vw - 48px));
  height: 100%;
  max-height: 100%;
  padding: 22px 30px 20px;
  overflow: hidden;
  border-top: 2px solid rgba(199, 209, 138, 0.38);
  background:
    linear-gradient(90deg, rgba(199, 209, 138, 0.045), transparent 24%),
    linear-gradient(180deg, rgba(199, 209, 138, 0.06), transparent 20%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 4px),
    rgba(9, 13, 8, 0.97);
  box-shadow:
    0 28px 100px rgba(0, 0, 0, 0.72),
    inset 0 0 0 1px rgba(199, 209, 138, 0.06),
    8px 0 0 -7px rgba(199, 209, 138, 0.08);
  z-index: 1;
}

#menu .menu::before {
  inset: 8px;
  border-color: rgba(199, 209, 138, 0.075);
}

#menu .menu-head {
  grid-column: 1 / -1;
  grid-row: 1;
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(199, 209, 138, 0.13);
}

#menu .menu-head h1 {
  margin: 4px 0 0;
  text-shadow:
    0 0 30px rgba(199, 209, 138, 0.12),
    0 2px 0 rgba(0, 0, 0, 0.4);
}

#menu .classification {
  margin-bottom: 10px;
  background: rgba(199, 209, 138, 0.025);
}

#menu .tabs {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 3px 14px 0 0;
  border-right: 1px solid rgba(199, 209, 138, 0.14);
  border-bottom: 0;
}

#menu .tabs::before {
  content: 'INDEX / 65';
  margin: 0 0 6px;
  padding: 0 2px 8px;
  border-bottom: 1px dashed rgba(199, 209, 138, 0.14);
  color: var(--faint);
  font-family: Consolas, 'Courier New', monospace;
  font-size: 7px;
  letter-spacing: 0.22em;
}

#menu .tabs::after {
  content: 'MACV-SOG\A ARCHIVE 1965\A SECURE LINK';
  margin-top: auto;
  padding: 12px 2px 2px;
  border-top: 1px dashed rgba(199, 209, 138, 0.12);
  white-space: pre;
  color: rgba(199, 209, 138, 0.34);
  font-family: Consolas, 'Courier New', monospace;
  font-size: 7px;
  line-height: 1.8;
  letter-spacing: 0.14em;
}

#menu .tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 12px 11px;
  border: 1px solid rgba(199, 209, 138, 0.12);
  border-left: 2px solid transparent;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.012);
  color: var(--muted);
  text-align: left;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

#menu .tab::after {
  content: '›';
  color: rgba(199, 209, 138, 0.28);
  font-size: 14px;
  line-height: 1;
}

#menu .tab:hover {
  border-color: rgba(199, 209, 138, 0.28);
  background: rgba(199, 209, 138, 0.06);
  color: var(--text);
  transform: translateX(2px);
}

#menu .tab.active {
  border-color: rgba(199, 209, 138, 0.3);
  border-left-color: var(--accent);
  background:
    linear-gradient(90deg, rgba(199, 209, 138, 0.15), rgba(199, 209, 138, 0.025));
  color: var(--accent);
  box-shadow: inset 0 0 20px rgba(199, 209, 138, 0.035);
}

#menu .tab.active::after {
  color: var(--accent);
}

#menu .tab-panel {
  grid-column: 2;
  grid-row: 2;
  min-height: 0;
  padding: 2px 3px 0 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(199, 209, 138, 0.28) transparent;
}

#menu .tab-panel::-webkit-scrollbar {
  width: 5px;
}

#menu .tab-panel::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: rgba(199, 209, 138, 0.24);
}

#menu .start {
  grid-column: 1 / -1;
  grid-row: 3;
  margin-top: 14px;
  border-top: 1px solid rgba(199, 209, 138, 0.16);
  box-shadow:
    0 0 0 1px rgba(199, 209, 138, 0.08),
    0 10px 34px rgba(0, 0, 0, 0.24);
}

#menu::after {
  content: 'ARCHIVE OPÉRATIONNELLE\A SUD-VIÊTNAM\A 1965';
  position: absolute;
  top: 50%;
  right: 26px;
  z-index: 0;
  transform: translateY(-50%);
  white-space: pre;
  color: rgba(199, 209, 138, 0.18);
  font-family: Consolas, 'Courier New', monospace;
  font-size: 9px;
  line-height: 2.5;
  letter-spacing: 0.3em;
  writing-mode: vertical-rl;
  pointer-events: none;
}

@media (max-width: 900px) {
  #menu {
    place-items: stretch center;
    padding: 8px;
  }

  #menu .menu {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 16px);
    padding: 18px;
    overflow-y: auto;
  }

  #menu::after {
    display: none;
  }

  #menu .menu-head {
    margin-bottom: 12px;
  }

  #menu .tabs {
    display: flex;
    flex-direction: row;
    gap: 6px;
    height: auto;
    margin-bottom: 12px;
    padding: 0 0 8px;
    border-right: 0;
    border-bottom: 1px solid rgba(199, 209, 138, 0.14);
    overflow-x: auto;
  }

  #menu .tabs::before,
  #menu .tabs::after {
    display: none;
  }

  #menu .tab {
    flex: 1 0 auto;
    width: auto;
    padding: 10px 12px;
    border-left: 1px solid rgba(199, 209, 138, 0.12);
    white-space: nowrap;
  }

  #menu .tab.active {
    border-left-color: var(--accent);
    box-shadow: inset 0 -2px 0 var(--accent);
  }

  #menu .tab::after {
    display: none;
  }

  #menu .tab-panel {
    overflow: visible;
    padding: 0;
  }

  #menu .start {
    margin-top: 16px;
  }
}

/* ---------- Rapport hors du panneau + lisibilité ---------- */
#menu {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 390px);
  grid-template-rows: minmax(0, 1fr);
  column-gap: 18px;
  align-items: stretch;
  justify-items: stretch;
}

#menu .menu {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: 100%;
}

#menu .dossier-external {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 18px 16px 16px;
  overflow-y: auto;
  border-color: rgba(199, 209, 138, 0.24);
  background:
    linear-gradient(180deg, rgba(199, 209, 138, 0.055), rgba(0, 0, 0, 0.12)),
    rgba(5, 9, 5, 0.82);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(199, 209, 138, 0.04);
  z-index: 1;
}

#menu::after {
  display: none;
}

#menu .play-layout {
  display: block;
}

#menu .dossier-external .dossier-art {
  height: 190px;
}

#menu .dossier-external .dossier-head {
  font-size: 9px;
}

#menu .dossier-external .dossier-code {
  font-size: 10px;
}

#menu .dossier-external .dossier-body h3 {
  font-size: 24px;
  line-height: 1.1;
}

#menu .dossier-external .dossier-body p {
  font-size: 13px;
  line-height: 1.55;
}

#menu .dossier-external .dossier-meta dt {
  font-size: 9px;
}

#menu .dossier-external .dossier-meta dd {
  font-size: 12px;
}

#menu .dossier-external .dossier-readout {
  font-size: 8px;
}

#menu .menu .option-title {
  font-size: 15px;
}

#menu .menu .option-desc {
  font-size: 12px;
  line-height: 1.35;
}

#menu .menu .section-head h2 {
  font-size: 14px;
}

#menu .menu .tab {
  font-size: 11px;
}

#menu .menu .settings-note {
  font-size: 11px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  #menu {
    display: block;
    padding: 8px;
    overflow-y: auto;
  }

  #menu .menu {
    width: 100%;
    height: auto;
  }

  #menu .dossier-external {
    width: 100%;
    max-height: none;
    margin-top: 12px;
  }

  #menu .dossier-external .dossier-art {
    height: 170px;
  }
}

/* ---------- Crédits (onglet Paramètres) ---------- */
.credits-note {
  margin: 22px 0 0;
  padding: 12px 14px;
  border: 1px dashed rgba(199, 209, 138, 0.18);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.16);
  font-family: Consolas, "Courier New", monospace;
  font-size: 9px;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: var(--faint);
}

.credits-note b {
  color: var(--amber, #d8b45f);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.credits-note code {
  padding: 1px 4px;
  border: 1px solid rgba(199, 209, 138, 0.18);
  background: rgba(0, 0, 0, 0.3);
  color: var(--muted);
  font-size: 0.95em;
}

#menu .menu .credits-note {
  font-size: 10.5px;
  line-height: 1.6;
}

/* ---------- Telephone : menu plein ecran + rappel paysage ---------- */
#rotateHint {
  display: none;
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  left: 50%;
  z-index: 24;
  transform: translateX(-50%);
  padding: 8px 12px;
  border: 1px solid rgba(216, 180, 95, 0.4);
  border-radius: 2px;
  background: rgba(8, 12, 7, 0.92);
  color: #e6cf95;
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
}

@media (max-width: 900px) {
  #menu {
    position: fixed;
    inset: 0;
    z-index: 80;
    padding: 8px;
  }

  #menu .menu {
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
  }
}

@media (orientation: portrait) {
  body.touch #hud:not(.hidden) ~ #rotateHint {
    display: flex;
  }
}
/* ---------- Classement ---------- */
.ranking-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.ranking-count {
  font-family: Consolas, "Courier New", monospace;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}

.ranking-intro {
  margin: 6px 0 14px;
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted);
}

.ranking-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(292px, 1fr));
  gap: 12px;
  align-items: start;
}

.ranking-mission {
  padding: 10px 12px 7px;
  border: 1px solid rgba(199, 209, 138, 0.16);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(199, 209, 138, 0.035), rgba(0, 0, 0, 0.08)),
    rgba(5, 9, 5, 0.35);
}

.ranking-mission-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(199, 209, 138, 0.13);
}

.ranking-code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 7px;
  letter-spacing: 0.12em;
  color: var(--amber);
  white-space: nowrap;
}

.ranking-mission-head h3 {
  margin: 0;
  font-family: var(--font-menu);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.ranking-meta {
  margin-left: auto;
  font-family: Consolas, "Courier New", monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--faint);
  white-space: nowrap;
}

.ranking-table {
  display: flex;
  flex-direction: column;
}

.ranking-row {
  display: grid;
  grid-template-columns: minmax(68px, 1fr) 56px 68px 42px;
  gap: 6px;
  align-items: center;
  padding: 7px 0 6px;
  border-bottom: 1px dotted rgba(199, 209, 138, 0.12);
}

.ranking-row:last-child {
  border-bottom: 0;
}

.ranking-row.head {
  padding: 5px 0 4px;
  border-bottom: 1px solid rgba(199, 209, 138, 0.16);
  font-family: Consolas, "Courier New", monospace;
  font-size: 7px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.ranking-row.is-empty {
  opacity: 0.62;
}

.ranking-diff b {
  display: block;
  font-family: var(--font-menu);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text);
}

.ranking-diff small {
  display: block;
  font-family: Consolas, "Courier New", monospace;
  font-size: 7px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.ranking-score {
  font-family: Consolas, "Courier New", monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--amber);
}

.ranking-result em {
  display: inline-block;
  padding: 2px 5px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-family: Consolas, "Courier New", monospace;
  font-style: normal;
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ranking-result .win {
  color: var(--accent);
  background: rgba(199, 209, 138, 0.06);
}

.ranking-result .lose {
  color: var(--danger);
  background: rgba(217, 122, 90, 0.06);
}

.ranking-none {
  color: var(--faint);
}

.ranking-vd {
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
  color: var(--faint);
  text-align: right;
  white-space: nowrap;
}

.ranking-vd b {
  color: var(--accent);
  font-size: 11px;
}

.ranking-vd i {
  color: var(--danger);
  font-style: normal;
  font-size: 11px;
}

.ranking-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px;
  border: 1px dashed rgba(199, 209, 138, 0.18);
  color: var(--faint);
  font-size: 11px;
  line-height: 1.6;
}

@media (max-width: 620px) {
  .ranking-list {
    grid-template-columns: 1fr;
  }

  .ranking-mission {
    padding: 9px 9px 7px;
  }

  .ranking-row {
    grid-template-columns: minmax(60px, 1fr) 52px 66px 42px;
    gap: 4px;
  }

  .ranking-score {
    font-size: 12px;
  }

  .ranking-result em {
    padding: 1px 3px;
    font-size: 6px;
  }
}
@media (max-width: 900px) {
  #menu .tabs {
    gap: 4px;
  }

  #menu .tab {
    padding: 9px 8px;
  }
}
/* ---------- Intro mobile plein Ã©cran + pause tactile ---------- */
@media (max-width: 900px) {
  .intro {
    position: fixed;
    inset: 0;
    z-index: 120;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding:
      max(24px, env(safe-area-inset-top))
      max(20px, env(safe-area-inset-right))
      max(24px, env(safe-area-inset-bottom))
      max(20px, env(safe-area-inset-left));
    overflow-y: auto;
  }

  .intro-copy {
    width: 100%;
    max-width: 720px;
    margin: auto 0;
  }

  .intro-line {
    font-size: clamp(19px, 5vw, 30px);
  }

  .intro-line2 {
    font-size: clamp(13px, 3.4vw, 21px);
  }

  .intro-start {
    position: static;
    align-self: flex-start;
    margin-top: 18px;
    font-size: 10px;
  }
}

.touch-pause {
  position: absolute;
  top: max(8px, env(safe-area-inset-top));
  left: max(8px, env(safe-area-inset-left));
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(199, 209, 138, 0.38);
  border-radius: 50%;
  background: rgba(8, 13, 8, 0.84);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.touch-pause::before,
.touch-pause::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 5px;
  height: 16px;
  background: var(--accent);
  transform: translateY(-50%);
}

.touch-pause::before {
  left: 14px;
}

.touch-pause::after {
  right: 14px;
}

.touch-pause:active {
  background: rgba(199, 209, 138, 0.2);
}

body.touch .hud-top {
  padding-left: 66px;
}

@media (max-width: 620px) {
  .touch-pause {
    width: 40px;
    height: 40px;
  }

  .touch-pause::before,
  .touch-pause::after {
    width: 4px;
    height: 14px;
  }

  .touch-pause::before {
    left: 12px;
  }

  .touch-pause::after {
    right: 12px;
  }

  body.touch .hud-top {
    padding-left: 58px;
  }
}
@media (max-width: 900px) {
  #menu .dossier-external {
    display: none;
  }
}
@media (max-width: 900px) {
  #pause,
  #end {
    position: fixed;
    inset: 0;
    z-index: 110;
    padding:
      max(14px, env(safe-area-inset-top))
      max(14px, env(safe-area-inset-right))
      max(14px, env(safe-area-inset-bottom))
      max(14px, env(safe-area-inset-left));
    overflow-y: auto;
  }
}
/* ---------- Jeu plein Ã©cran sur tÃ©lÃ©phone ---------- */
body.touch {
  height: 100vh;
  height: 100dvh;
}

body.touch #app {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}
body.touch #rotateHint {
  display: none !important;
}
/* ---------- Bouton de tir tactile ---------- */
.touch-fire {
  position: absolute;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(204px, calc(env(safe-area-inset-bottom) + 192px));
  z-index: 4;
  width: 72px;
  height: 72px;
  border: 2px solid rgba(255, 107, 75, 0.55);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 107, 75, 0.3), transparent 62%),
    rgba(8, 13, 8, 0.84);
  box-shadow:
    0 0 0 4px rgba(255, 107, 75, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.4);
  color: #ffb09a;
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: auto;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.touch-fire.firing,
.touch-fire:active {
  border-color: rgba(255, 170, 140, 0.95);
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 150, 110, 0.5), transparent 66%),
    rgba(32, 16, 10, 0.92);
  box-shadow:
    0 0 0 5px rgba(255, 107, 75, 0.16),
    0 0 24px rgba(255, 107, 75, 0.25);
}

@media (max-width: 620px) {
  .touch-fire {
    right: 12px;
    bottom: max(188px, calc(env(safe-area-inset-bottom) + 176px));
    width: 64px;
    height: 64px;
    font-size: 9px;
  }
}