/* MANHUNT — nuit, lampe torche, gilet orange contre vert fluo. */

:root {
  --bg: #0b0c0b;
  --bg2: #141614;
  --card: #171a17;
  --line: #2a2e2a;
  --ink: #f2efe6;
  --muted: #9a9e96;
  --faint: #747870;           /* textes secondaires (heure du journal, version) */
  --focus: #f2efe6;
  --hunter: #ff4a1c;
  --hunter-ink: #1a0600;
  --prey: #c8ff2e;
  --prey-ink: #0f1600;
  --warn: #ffc21a;
  --danger: #ff3b4e;
  --display: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --text: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); }
body {
  font: 16px/1.45 var(--text);
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}
#app { height: 100%; overflow-y: auto; position: relative; z-index: 1; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.screen {
  max-width: 520px;
  margin: 0 auto;
  padding: calc(20px + var(--safe-top)) 16px calc(28px + var(--safe-bot));
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
}
.screen.center { justify-content: center; align-items: center; text-align: center; }

.muted { color: var(--muted); }
.lbl {
  font: 700 11px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.t-hunter { color: var(--hunter); }
.t-prey { color: var(--prey); }
.hint { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin: 0; }
.hint.center { text-align: center; }

/* ---------- boutons ---------- */

.btn {
  appearance: none;
  border: 1.5px solid var(--line);
  background: var(--bg2);
  border-radius: 14px;
  padding: 13px 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.08s ease, background 0.15s ease, opacity 0.15s;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  touch-action: manipulation;
}
.ico { flex: 0 0 auto; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }
.btn:disabled { opacity: 0.35; pointer-events: none; }
.btn.big {
  font: 400 22px/1 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 18px;
  min-height: 60px;
}
.btn.small { min-height: 44px; padding: 9px 14px; font-size: 14px; border-radius: 12px; }
.btn.tiny { min-height: 44px; padding: 6px 14px; font-size: 13px; border-radius: 10px; }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.hunter { background: var(--hunter); color: var(--hunter-ink); border-color: var(--hunter); }
.btn.prey { background: var(--prey); color: var(--prey-ink); border-color: var(--prey); }
.btn.danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn.ghost { background: transparent; }
.linkish { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; font-weight: 700; }

/* ---------- accueil ---------- */

.hero { text-align: center; padding: 28px 0 6px; position: relative; isolation: isolate; }
/* (halo remplacé par le radar) */
.hero::before {
  content: none;
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -40px;
  width: 140%;
  height: 340px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 50% 46% at 50% 42%, rgba(255, 74, 28, 0.16), rgba(255, 74, 28, 0.05) 55%, transparent 75%);
  pointer-events: none;
}
.logo {
  font: 400 clamp(68px, 23vw, 112px)/0.86 var(--display);
  letter-spacing: 0.01em;
  margin: 0;
  position: relative;
}
.logo span { color: var(--hunter); display: block; }
.tagline { color: var(--muted); max-width: 30ch; margin: 16px auto 0; }

.reticle {
  width: 132px;
  height: 132px;
  margin: 0 auto -88px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 74, 28, 0.55);
  position: relative;
  opacity: 0.9;
  animation: spin 18s linear infinite;
}
.reticle::before, .reticle::after {
  content: '';
  position: absolute;
  background: rgba(255, 74, 28, 0.55);
}
.reticle::before { left: 50%; top: -14px; bottom: -14px; width: 1.5px; transform: translateX(-50%); }
.reticle::after { top: 50%; left: -14px; right: -14px; height: 1.5px; transform: translateY(-50%); }
.reticle.spin { margin: 0 auto 8px; animation-duration: 2.4s; }
@keyframes spin { to { transform: rotate(360deg); } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.field {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  font: 600 18px/1.2 var(--text);
  color: var(--ink);
  outline: none;
  min-height: 52px;
}
.field:focus { border-color: var(--ink); }
.field.code {
  font: 700 22px/1 var(--mono);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: center;
}
.row { display: flex; gap: 10px; }
.row .field { flex: 1; min-width: 0; }
.row .btn { flex: 0 0 auto; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.rules { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 14px 18px; }
.rules summary, details.card summary { font-weight: 700; cursor: pointer; list-style: none; }
.rules summary::after, details.card summary::after { content: ' +'; color: var(--muted); }
.rules[open] summary::after, details.card[open] summary::after { content: ' −'; }
.rules ol { padding-left: 20px; margin: 12px 0 2px; display: grid; gap: 8px; color: #cfccc3; font-size: 15px; }
.install { font-size: 13px; color: var(--muted); text-align: center; margin: 0; }
.foot { font: 500 11px var(--mono); color: var(--faint); text-align: center; margin: auto 0 0; }

/* ---------- salon ---------- */

.lobby-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.big-code {
  font: 700 46px/1 var(--mono);
  letter-spacing: 0.12em;
  margin-top: 6px;
  cursor: pointer;
}
.gps-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
.gps-line.ok { color: var(--ink); }
.gps-line.bad { color: #ffb3b9; border-color: rgba(255, 59, 78, 0.4); flex-wrap: wrap; }

.dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; background: var(--muted); }
.dot.ok { background: var(--prey); box-shadow: 0 0 0 3px rgba(200, 255, 46, 0.15); }
.dot.warn { background: var(--warn); }
.dot.off { background: #4d514b; }

.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.team {
  border-radius: 18px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1.5px solid;
  min-width: 0;
}
.team.hunter { border-color: rgba(255, 74, 28, 0.5); background: linear-gradient(180deg, rgba(255, 74, 28, 0.12), transparent 70%); }
.team.prey { border-color: rgba(200, 255, 46, 0.4); background: linear-gradient(180deg, rgba(200, 255, 46, 0.09), transparent 70%); }
.team h2 {
  font: 400 22px/1 var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  display: flex;
  justify-content: space-between;
}
.team.hunter h2 { color: var(--hunter); }
.team.prey h2 { color: var(--prey); }
.team h2 span { font-family: var(--mono); font-size: 16px; opacity: 0.8; }
.team ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; flex: 1; align-content: start; }
.chip {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  padding: 8px 9px;
  font-size: 14px;
  font-weight: 600;
  min-width: 0;
}
.chip.off { opacity: 0.5; }
.team .empty { margin: 0; font-size: 13px; color: var(--muted); }
.chip.me { outline: 1.5px solid rgba(242, 239, 230, 0.5); }
.chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.crown { color: var(--warn); font-size: 13px; flex: 0 0 auto; }

.sec {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 400 20px/1 var(--display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 2px;
}
.setting { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; }
.setting + .setting { border-top: 1px solid var(--line); padding-top: 12px; }
.setting-lbl { font-weight: 700; }
.setting-hint { font-size: 13px; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.step {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  touch-action: manipulation;
  background: var(--bg);
  font-size: 22px;
  line-height: 1;
}
.step:active { background: var(--line); }
.step-val { font: 700 20px/1 var(--mono); min-width: 54px; text-align: center; }
.step-val small { font-size: 11px; color: var(--muted); margin-left: 3px; }
.step-val.ro { min-width: 0; }
.switch {
  width: 54px;
  height: 32px;
  border-radius: 16px;
  border: 0;
  background: var(--line);
  position: relative;
  flex: 0 0 auto;
  transition: background 0.15s;
}
.switch span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform 0.15s;
}
.switch.on { background: var(--prey); }
.switch.on span { transform: translateX(22px); background: var(--prey-ink); }

.host-actions { display: flex; flex-direction: column; gap: 10px; }
.waiting { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); text-align: center; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--prey); animation: pulse 1.4s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(200, 255, 46, 0.6); }
  100% { box-shadow: 0 0 0 14px rgba(200, 255, 46, 0); }
}
.leave { align-self: center; color: var(--muted); border-color: transparent; }

/* ---------- partie ---------- */

.screen.game {
  max-width: none;
  padding: 0;
  height: 100%;
  min-height: 0;
  position: relative;
  overflow: hidden;
  display: block;
}
#map { position: absolute; inset: 0; z-index: 0; background: #0e100e; }
.leaflet-container { font: inherit; background: #0e100e; }
#map.night .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(1.08) contrast(0.88) saturate(0.3); }
.leaflet-control-attribution {
  background: rgba(11, 12, 11, 0.7) !important;
  color: #6b6f69 !important;
  font-size: 9px !important;
  margin-bottom: calc(86px + var(--safe-bot)) !important;
}
.leaflet-control-attribution a { color: #8d918a !important; }

.hud {
  position: absolute;
  z-index: 500;
  top: 0;
  left: 0;
  right: 0;
  padding: calc(10px + var(--safe-top)) 14px 22px;
  background: linear-gradient(180deg, rgba(11, 12, 11, 0.94) 55%, rgba(11, 12, 11, 0));
  pointer-events: none;
}
.hud > * { pointer-events: auto; }
.hud-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.role {
  font: 400 15px/1 var(--display);
  letter-spacing: 0.1em;
  padding: 6px 10px 5px;
  border-radius: 8px;
}
.role.hunter { background: var(--hunter); color: var(--hunter-ink); }
.role.prey { background: var(--prey); color: var(--prey-ink); }
.role.caught, .role.spectator { background: var(--line); color: var(--ink); }
.hud-meta { font: 500 12px/1 var(--mono); color: var(--muted); white-space: nowrap; }
.net.ok { color: var(--prey); }
.net.bad { color: var(--danger); }
.hud-timer { text-align: center; margin-top: 6px; }
.hud-lbl { font: 700 10.5px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.hud-clock {
  font: 700 46px/1.05 var(--mono);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.hud.hunter .hud-clock { color: var(--hunter); }
.hud.prey .hud-clock { color: var(--prey); }
.hud-clock.hot { animation: hot 0.5s steps(2) infinite; }
@keyframes hot { 50% { opacity: 0.35; } }
.hud-warn {
  margin: 8px auto 0;
  max-width: 420px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  background: var(--warn);
  color: #1d1500;
  border-radius: 10px;
  padding: 7px 10px;
}

.fabs {
  position: absolute;
  z-index: 500;
  right: 12px;
  bottom: calc(100px + var(--safe-bot));
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fab {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(23, 26, 23, 0.92);
  display: grid;
  place-items: center;
  color: var(--ink);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  touch-action: manipulation;
  transition: transform 0.08s ease;
}
.fab:active { transform: scale(0.92); }

.overlay {
  position: absolute;
  inset: 0;
  z-index: 600;
  background: rgba(11, 12, 11, 0.9);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  backdrop-filter: blur(6px);
}
.ov-title { font: 400 44px/1 var(--display); color: var(--hunter); letter-spacing: 0.03em; }
.ov-clock { font: 700 84px/1.1 var(--mono); font-variant-numeric: tabular-nums; margin: 10px 0; }
.ov-sub { color: var(--muted); max-width: 28ch; margin: 0 auto; }

.sheet {
  position: absolute;
  z-index: 550;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 560px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.55);
  max-height: 72%;
  display: flex;
  flex-direction: column;
  transform: translateY(calc(100% - 78px - var(--safe-bot)));
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sheet.open { transform: none; }
.sheet-grip {
  background: none;
  border: 0;
  padding: 10px 18px 14px;
  text-align: left;
  width: 100%;
  min-height: 78px;
}
.sheet-grip > span { display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 12px; }
.sheet-title { font: 400 20px/1.1 var(--display); letter-spacing: 0.05em; text-transform: uppercase; }
.sheet-title small { font: 500 12px var(--mono); color: var(--muted); letter-spacing: 0; text-transform: none; }
.sheet-body { overflow-y: auto; padding: 0 16px calc(18px + var(--safe-bot)); }
.sheet-body h3 { font: 700 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; margin: 8px 0; }
.plist { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.prow {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 10px;
  cursor: pointer;
}
.prow.caught { opacity: 0.45; }
.prow.caught .prow-name { text-decoration: line-through; }
.prow-txt { flex: 1; min-width: 0; }
.prow-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow-info { font-size: 13px; color: var(--muted); }
.sheet-actions { display: grid; gap: 8px; margin: 6px 0 14px; }
.log { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.log time { font: 500 11px var(--mono); margin-right: 8px; color: var(--faint); }

/* ---------- marqueurs ---------- */

.mk { position: relative; }
.mk i {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 2.5px solid var(--bg);
}
.mk b, .mk em {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-style: normal;
  pointer-events: none;
}
.mk b {
  top: 24px;
  font: 700 12px/1 var(--text);
  background: rgba(11, 12, 11, 0.85);
  padding: 3px 6px;
  border-radius: 6px;
}
.mk em { top: 43px; font: 500 10px/1 var(--mono); color: var(--muted); background: rgba(11, 12, 11, 0.85); padding: 2px 5px; border-radius: 5px; }
.mk.hunter i { background: var(--hunter); }
.mk.prey i { background: var(--prey); }
.mk.hunter b { color: var(--hunter); }
.mk.prey b { color: var(--prey); }
.mk.me i { inset: 3px; background: #fff; border: 4px solid var(--hunter); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12); }
.mk.me.prey i { border-color: var(--prey); }
.mk.me.caught i, .mk.me.spectator i { border-color: var(--muted); }
.mk.reveal i { inset: 2px; animation: ping 1.8s ease-out infinite; }
.mk.leak i { animation: ping 0.9s ease-out infinite; }
.mk.leak em { color: var(--warn); }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(200, 255, 46, 0.7); }
  100% { box-shadow: 0 0 0 22px rgba(200, 255, 46, 0); }
}

/* ---------- fin ---------- */

.end-hero { text-align: center; padding: 34px 0 8px; }
.end-hero h1 { font: 400 clamp(52px, 16vw, 84px)/0.9 var(--display); margin: 10px 0 0; }
.end-hero h2 { font: 400 26px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; margin: 8px 0 0; color: var(--muted); }
.end.hunter .end-hero h1 { color: var(--hunter); }
.end.prey .end-hero h1 { color: var(--prey); }

/* ---------- toasts, flash, modale ---------- */

#toasts {
  position: fixed;
  z-index: 3000;
  left: 0;
  right: 0;
  top: calc(12px + var(--safe-top));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  padding: 0 16px;
}
.toast {
  max-width: 440px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  font-size: 14.5px;
  padding: 11px 16px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: tin 0.25s ease-out;
  transition: opacity 0.35s, transform 0.35s;
}
.toast.error { background: var(--danger); color: #fff; }
.toast.warn { background: var(--warn); color: #1d1500; }
.toast.catch { background: var(--hunter); color: var(--hunter-ink); }
.toast.out { opacity: 0; transform: translateY(-8px); }
@keyframes tin { from { opacity: 0; transform: translateY(-10px); } }

.flash {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  animation: flash 2.6s ease-out forwards;
}
.flash.hunter { background: var(--hunter); color: var(--hunter-ink); }
.flash.prey { background: var(--prey); color: var(--prey-ink); }
.flash.caught { background: var(--ink); color: var(--bg); }
.flash-title { font: 400 clamp(56px, 18vw, 110px)/0.9 var(--display); letter-spacing: 0.01em; }
.flash-sub { font-weight: 700; font-size: 17px; margin-top: 14px; max-width: 26ch; margin-inline: auto; }
@keyframes flash {
  0% { opacity: 0; }
  6% { opacity: 1; }
  12% { opacity: 0.6; }
  18% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

#modal { position: fixed; inset: 0; z-index: 2800; display: grid; place-items: end center; padding: 16px; padding-bottom: calc(16px + var(--safe-bot)); }
.modal-back { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.65); }
.modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  animation: tin 0.2s ease-out;
}
.modal-card h3 { font: 400 26px/1.05 var(--display); letter-spacing: 0.03em; margin: 0 0 8px; text-transform: uppercase; }
.modal-card p { margin: 0 0 14px; color: #cfccc3; }
.modal-actions { display: grid; gap: 8px; margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* Notifications et OwnTracks */
.push-box, .ot-box { display: flex; flex-direction: column; gap: 10px; }
.ok-line { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.steps a:not(.btn) { color: var(--prey); }
.steps .btn { display: flex; width: 100%; margin-top: 8px; }
.steps li::marker { font: 700 13px var(--mono); color: var(--prey); }
.card.ot { border-color: rgba(200, 255, 46, 0.35); }
.sheet-body .push-box, .sheet-body .ot-box { margin-top: 14px; }
a.btn { text-decoration: none; color: inherit; justify-content: center; }
a.btn.prey { color: #111; }

/* Contour visible au clavier (jamais au doigt) */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.btn:focus-visible, .fab:focus-visible, .step:focus-visible, .switch:focus-visible, .field:focus-visible { outline-offset: 2px; }
.field:focus-visible { outline: 2px solid var(--focus); }

/* =================================================================== *
 *  v1.3 — signature « viseur de nuit sur carte topo »
 * =================================================================== */

/* Fond : courbes de niveau (comme une carte IGN) + vignette sombre */
/* Fond : une ville la nuit vue d'en haut (image générée par tools/gen-fond.py),
 * assombrie vers le bas pour que le texte reste lisible. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(9, 10, 9, 0.2) 0%, rgba(9, 10, 9, 0.55) 45%, rgba(9, 10, 9, 0.82) 100%),
    url('/fond.webp') center top / cover no-repeat;
}

/* Boutons en relief : une tranche dessous, ils s'enfoncent au toucher */
.btn {
  --edge: #050605;
  background: linear-gradient(180deg, #1d201d, #141614);
  box-shadow: 0 4px 0 var(--edge), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}
.btn.primary { --edge: #a29d90; background: linear-gradient(180deg, #fffdf6, #e4dfd1); }
.btn.hunter { --edge: #9e2a0c; background: linear-gradient(180deg, #ff6b40, #ff4a1c); }
.btn.prey { --edge: #6f8f10; background: linear-gradient(180deg, #dcff6e, #c4fa25); }
.btn.danger { --edge: #9a1527; background: linear-gradient(180deg, #ff5a6a, #ff3b4e); }
.btn.ghost { --edge: transparent; background: transparent; box-shadow: none; }
.btn.ghost:active { box-shadow: none; }
.btn.big { min-height: 64px; padding: 16px 18px; border-radius: 14px; }
.btn.big .btn-txt { flex: 1; text-align: center; }
.btn.big .ico { opacity: 0.85; }
.btn.tiny { box-shadow: 0 3px 0 var(--edge); }

/* Coins de viseur autour des éléments clés */
.scope, .home > .card, .end-hero { position: relative; --sc: var(--hunter); }
.scope::after, .home > .card::after, .end-hero::after {
  content: '';
  position: absolute;
  inset: -7px;
  pointer-events: none;
  --sl: 18px;
  --sw: 2px;
  background-image:
    linear-gradient(var(--sc), var(--sc)), linear-gradient(var(--sc), var(--sc)),
    linear-gradient(var(--sc), var(--sc)), linear-gradient(var(--sc), var(--sc)),
    linear-gradient(var(--sc), var(--sc)), linear-gradient(var(--sc), var(--sc)),
    linear-gradient(var(--sc), var(--sc)), linear-gradient(var(--sc), var(--sc));
  background-repeat: no-repeat;
  background-position: top left, top left, top right, top right, bottom left, bottom left, bottom right, bottom right;
  background-size:
    var(--sl) var(--sw), var(--sw) var(--sl), var(--sl) var(--sw), var(--sw) var(--sl),
    var(--sl) var(--sw), var(--sw) var(--sl), var(--sl) var(--sw), var(--sw) var(--sl);
}
.lobby-head.scope { padding: 14px 16px; }
.end.prey .end-hero { --sc: var(--prey); }
.end-hero { padding: 30px 16px 26px; }

/* Cartes : un peu de matière (reflet en haut, ombre portée) */
.card, .rules { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 30px rgba(0, 0, 0, 0.35); }
.field { box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.45); }

/* Accueil : le jeu en 3 tuiles */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.how-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 10px 12px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 2px solid var(--c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  min-width: 0;
}
.how-tile.hunter { --c: var(--hunter); }
.how-tile.prey { --c: var(--prey); }
.how-tile .ico { color: var(--c); }
.how-tile b { font: 400 19px/1 var(--display); letter-spacing: 0.05em; text-transform: uppercase; }
.how-tile small { font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.how-n { position: absolute; top: 9px; right: 10px; font: 700 10px/1 var(--mono); color: var(--faint); letter-spacing: 0.1em; }

/* Salon : en-têtes d'équipe avec icône */
.team h2 { align-items: center; gap: 7px; justify-content: flex-start; }
.team h2 span { margin-left: auto; }

/* Cartes légèrement translucides : la ville se devine derrière */
.card, .rules, .how-tile, .gps-line { background-color: rgba(21, 24, 21, 0.9); }
.team { background-color: rgba(14, 16, 14, 0.85); }

/* Radar derrière le logo : anneaux, balayage qui tourne, cibles qui clignotent */
.radar {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -6px;
  width: 300px;
  height: 300px;
  margin-left: -150px;
  border-radius: 50%;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 74, 28, 0.28), rgba(255, 74, 28, 0.28)) center / 1px 100% no-repeat,
    linear-gradient(rgba(255, 74, 28, 0.28), rgba(255, 74, 28, 0.28)) center / 100% 1px no-repeat,
    repeating-radial-gradient(circle, transparent 0 36px, rgba(255, 74, 28, 0.3) 37px 38px),
    radial-gradient(circle, rgba(9, 10, 9, 0.7), rgba(9, 10, 9, 0.35) 70%, transparent 71%);
  -webkit-mask: radial-gradient(circle, #000 62%, transparent 71%);
  mask: radial-gradient(circle, #000 62%, transparent 71%);
}
.radar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(255, 74, 28, 0.03) 15deg, rgba(255, 74, 28, 0.26) 70deg, transparent 70.5deg);
  animation: sweep 4s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.blip {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--prey);
  opacity: 0;
  animation: blip 4s linear infinite;
}
/* Chaque cible s'allume quand le balayage passe sur elle (angle → délai) */
.blip.b1 { left: 72%; top: 30%; animation-delay: 3.75s; }
.blip.b2 { left: 22%; top: 62%; animation-delay: 1.97s; }
.blip.b3 { left: 80%; top: 58%; animation-delay: 0.39s; }
@keyframes blip {
  0% { opacity: 1; box-shadow: 0 0 0 0 rgba(200, 255, 46, 0.7); }
  40% { opacity: 0.35; box-shadow: 0 0 0 12px rgba(200, 255, 46, 0); }
  100% { opacity: 0; }
}
.tagline { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9), 0 0 2px rgba(0, 0, 0, 0.8); color: #b9bcb4; }
