/* Le Ring Polochon (27/10/2026) : scène de combat, choix des armes, résultat, borne et défis, style « Fanzine »
   (encres rose fluo / bleu / jaune, calage décalé, étiquettes en DM Mono, coins presque droits). L'écran de combat garde
   ses propres couleurs (papier noir) dans les deux thèmes ; le reste suit Nuit / Clair par les jetons de hud-fanzine.css. */

/* ---------- scène ---------- */
body.ring-open { overflow: hidden; }
.ring-stage { touch-action: manipulation; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; position: fixed; inset: 0; z-index: 58; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); background: var(--page, #14121b); color: var(--ink, #f4efe4); font-family: var(--font, system-ui, sans-serif); }
.rs-screen { position: relative; width: min(100%, calc((100dvh - 86px) * 16 / 9)); aspect-ratio: 16 / 9; max-width: 100%; flex: none; overflow: hidden; container-type: inline-size; background: #0d0c13; border: 2px solid #f4efe4; border-radius: 3px; box-shadow: 6px 6px 0 var(--blue, #5b8cff); color: #f4efe4; touch-action: none; user-select: none; -webkit-user-select: none; }
.rs-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* barres de vie, chrono, manches */
.rs-hud { position: absolute; inset: 2.6cqw 2.6cqw auto; display: grid; grid-template-columns: 1fr auto 1fr; gap: 2cqw; align-items: start; pointer-events: none; }
.rs-p { display: grid; gap: 0.7cqw; min-width: 0; }
.rs-p.s1 { text-align: right; }
.rs-id { display: flex; align-items: center; gap: 0.9cqw; min-width: 0; font: 800 2.1cqw/1 var(--font-titre, var(--font, sans-serif)); text-shadow: 0.2cqw 0.2cqw 0 #14121b; }
.rs-p.s1 .rs-id { flex-direction: row-reverse; }
.rs-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-weapon { flex: none; font: 500 1.25cqw/1 var(--mono, monospace); text-transform: uppercase; letter-spacing: 0.05em; padding: 0.4cqw 0.7cqw; background: #f4efe4; color: #14121b; text-shadow: none; }
.rs-weapon:empty { display: none; }
.rs-face { flex: none; width: 3.6cqw; height: 3.6cqw; overflow: hidden; border: 0.22cqw solid #f4efe4; background: #26232f; }
.rs-face canvas { width: 100%; height: 100%; display: block; object-fit: cover; }
.rs-bar { position: relative; height: 2.5cqw; border: 0.25cqw solid #f4efe4; background: #2a2633; transform: skewX(-14deg); overflow: hidden; }
.rs-p.s1 .rs-bar { transform: skewX(14deg); }
.rs-bar i { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; }
.rs-p.s1 .rs-bar i { left: auto; right: 0; }
.rs-bar .lag { background: #ffd84a; }
.rs-bar .hp { background: #ff5fae; transition: width 80ms linear; }
.rs-p.s1 .rs-bar .hp { background: #5b8cff; }
.rs-p.hurt .rs-bar { animation: rs-hurt 0.25s; }
@keyframes rs-hurt { 30% { border-color: #ffd84a; } }
.rs-sub { display: flex; align-items: center; gap: 1cqw; }
.rs-p.s1 .rs-sub { flex-direction: row-reverse; }
.rs-pips { display: flex; gap: 0.7cqw; }
.rs-pips i { width: 1.4cqw; height: 1.4cqw; border: 0.22cqw solid #f4efe4; transform: rotate(45deg); }
.rs-pips i.ok { background: #ffd84a; }
.rs-meter { flex: 1; max-width: 45%; height: 0.9cqw; border: 0.18cqw solid rgba(244, 239, 228, 0.7); background: rgba(20, 18, 27, 0.6); }
.rs-meter i { display: block; height: 100%; width: 0; background: #f4efe4; }
.rs-p.s1 .rs-meter i { margin-left: auto; }
.rs-meter.full { border-color: #ffd84a; }
.rs-meter.full i { background: #ffd84a; }
.rs-clock { display: grid; justify-items: center; gap: 0.4cqw; }
.rs-clock b { display: grid; place-items: center; width: 8cqw; height: 6.6cqw; font: 800 4.8cqw/1 var(--font-titre, var(--font, sans-serif)); font-variant-numeric: tabular-nums; background: #ffd84a; color: #14121b; border: 0.3cqw solid #f4efe4; box-shadow: 0.5cqw 0.5cqw 0 #ff5fae; }
.rs-clock.final b { width: auto; padding-inline: 1.2cqw; font-size: 3.6cqw; white-space: nowrap; }
.rs-clock.low b { background: #ff5fae; color: #fff; box-shadow: 0.5cqw 0.5cqw 0 #ffd84a; }
.rs-clock span { font: 500 1.15cqw/1 var(--mono, monospace); letter-spacing: 0.08em; text-shadow: 0.15cqw 0.15cqw 0 #14121b; }

/* bannières (« Manche 1 », « Polochon ! », « Dodo ! ») et combos */
.rs-banner { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) rotate(-4deg) scale(0.6); opacity: 0; pointer-events: none; white-space: nowrap; font: 800 9cqw/1 var(--font-titre, var(--font, sans-serif)); letter-spacing: -0.03em; color: #ffd84a; text-shadow: 0.6cqw 0.6cqw 0 #ff5fae, -0.2cqw -0.2cqw 0 #14121b; transition: opacity 0.15s, transform 0.2s; }
.rs-banner.show { opacity: 1; transform: translate(-50%, -50%) rotate(-4deg) scale(1); }
.rs-banner.intro { font-size: 7cqw; color: #f4efe4; text-shadow: 0.5cqw 0.5cqw 0 #5b8cff; }
.rs-banner.ko { color: #f4efe4; text-shadow: 0.6cqw 0.6cqw 0 #5b8cff; }
.rs-combo { position: absolute; top: 34%; left: 5cqw; opacity: 0; pointer-events: none; font: 800 4.4cqw/1 var(--font-titre, var(--font, sans-serif)); color: #ffd84a; text-shadow: 0.4cqw 0.4cqw 0 #ff5fae; transform: rotate(-6deg); transition: opacity 0.12s; }
.rs-combo.s1 { left: auto; right: 5cqw; transform: rotate(6deg); text-shadow: 0.4cqw 0.4cqw 0 #5b8cff; }
.rs-combo.show { opacity: 1; }
.rs-cheers { position: absolute; left: 2.6cqw; bottom: 2cqw; display: grid; gap: 0.5cqw; pointer-events: none; font: 600 1.5cqw/1.2 var(--font, sans-serif); }
.rs-cheers span { justify-self: start; padding: 0.4cqw 0.9cqw; background: #f4efe4; color: #14121b; border: 0.18cqw solid #14121b; }

/* résultat */
.rs-over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2cqw; padding: 3cqw; text-align: center; background: rgba(13, 12, 19, 0.72); }
.rs-over[hidden] { display: none; }
.rs-over p { margin: 0; font-size: max(14px, 1.7cqw); max-width: 60ch; }
.ro-title { font: 800 8cqw/1 var(--font-titre, var(--font, sans-serif)); letter-spacing: -0.03em; color: #ffd84a; text-shadow: 0.6cqw 0.6cqw 0 #ff5fae; transform: rotate(-3deg); }
.ro-gain { display: inline-block; padding: 0.5cqw 1cqw; background: #ffd84a; color: #14121b !important; font-weight: 800; box-shadow: 0.4cqw 0.4cqw 0 #ff5fae; }
.ro-flaw { font: 500 max(12px, 1.4cqw)/1.2 var(--mono, monospace) !important; text-transform: uppercase; color: #ff5fae; }
.ro-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 0.6cqw; }

/* bas de la scène */
.rs-bottom { width: min(100%, calc((100dvh - 86px) * 16 / 9)); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13.5px; }
.rs-eye { font: 500 12.5px/1 var(--mono, monospace); color: var(--accent-text, #ffd84a); }
.rs-keys { flex: 1; min-width: 0; color: var(--text-soft, #c7c0b2); font: 400 12px/1.3 var(--mono, monospace); }
.rs-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.rs-cheer { font-weight: 800; min-width: 64px; }
.rs-cheer.c-coeur { box-shadow: 2px 2px 0 var(--pink, #ff5fae); }
.rs-cheer.c-confettis { box-shadow: 2px 2px 0 var(--yellow, #ffd84a); }
.rs-cheer.c-zzz { box-shadow: 2px 2px 0 var(--blue, #5b8cff); }

/* téléphone tenu en vertical pendant son combat */
.rs-turn { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 3; display: grid; gap: 2px; text-align: center; padding: 8px 12px; background: var(--yellow, #ffd84a); color: #14121b; border: 2px solid #14121b; box-shadow: 3px 3px 0 var(--pink, #ff5fae); font-size: 13px; }
.rs-turn[hidden] { display: none; }

/* commandes tactiles : joystick à gauche, quatre boutons à droite */
.rs-touch, .rs-touch * { touch-action: none; user-select: none; -webkit-user-select: none; }
.rs-touch { position: fixed; inset: auto 0 0 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 max(16px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); pointer-events: none; }
.rs-touch[hidden] { display: none; }
.rt-pad { pointer-events: auto; position: relative; width: 132px; height: 132px; border-radius: 50%; border: 3px solid rgba(244, 239, 228, 0.6); background: rgba(244, 239, 228, 0.08); touch-action: none; }
.rt-knob { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgba(244, 239, 228, 0.8); border: 2px solid #14121b; }
.rt-btns { pointer-events: auto; display: grid; grid-template-columns: repeat(2, 64px); gap: 10px; }
.rt-btn { width: 64px; height: 64px; border-radius: 50%; border: 3px solid #f4efe4; font: 800 13.5px/1 var(--font-titre, var(--font, sans-serif)); color: #14121b; touch-action: none; opacity: 0.9; box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.35); }
.rt-btn.on { transform: scale(0.92); opacity: 1; }
.rt-btn.light { background: #ffd84a; }
.rt-btn.heavy { background: #ff5fae; }
.rt-btn.shield { background: #f4efe4; }
.rt-btn.special { background: #5b8cff; color: #fff; }

/* ---------- choix secret (arme, map) ---------- */
.rs-pick { position: absolute; inset: 0; z-index: 4; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 14px; padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background: var(--page, #14121b) var(--trame, none); color: var(--ink, #f4efe4); }
.rs-pick[hidden] { display: none; }
.rs-pick h2 { margin: 0; font: 800 clamp(22px, 3.2vw, 32px)/1.05 var(--font-titre, var(--font, sans-serif)); letter-spacing: -0.02em; }
.rp-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 16px; max-width: 1100px; width: 100%; margin: 0 auto; }
.rp-timer { font: 500 14px/1 var(--mono, monospace); padding: 6px 9px; background: var(--yellow, #ffd84a); color: #14121b; border: 1.5px solid #14121b; box-shadow: 2px 2px 0 var(--pink, #ff5fae); font-variant-numeric: tabular-nums; }
.rp-opp { font: 500 13px/1.2 var(--mono, monospace); color: var(--text-soft, #c7c0b2); }
.rp-weapons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 1100px; width: 100%; margin: 0 auto; }
.rp-weapon, .rp-map { display: grid; gap: 6px; justify-items: start; text-align: left; padding: 12px; border: 1.5px solid var(--ink, #f4efe4); border-radius: 2px; background: var(--paper, #1d1b26); color: var(--ink, #f4efe4); box-shadow: 4px 4px 0 var(--line, rgba(244, 239, 228, 0.16)); cursor: pointer; font: inherit; }
.rp-weapon[aria-checked='true'], .rp-map[aria-checked='true'] { box-shadow: 4px 4px 0 var(--pink, #ff5fae); outline: 3px solid var(--yellow, #ffd84a); outline-offset: -3px; }
.rp-random { border-style: dashed; }
.rp-weapon:focus-visible, .rp-map:focus-visible { outline: 3px solid var(--blue, #5b8cff); }
.rp-weapon strong, .rp-map strong { font-size: 17px; font-weight: 800; }
.rp-icon { width: 54px; height: 54px; }
.rp-style { font: 500 11.5px/1 var(--mono, monospace); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted, #9c95a8); }
.rp-stats { display: grid; gap: 4px; width: 100%; }
.rp-stat { display: grid; grid-template-columns: 58px 1fr; gap: 8px; align-items: center; font: 500 11.5px/1 var(--mono, monospace); color: var(--muted, #9c95a8); }
.rp-pts { display: flex; gap: 3px; }
.rp-pts i { flex: 1; height: 7px; border: 1px solid var(--ink, #f4efe4); }
.rp-pts i.on { background: var(--ink, #f4efe4); }
.rp-special { font: 500 12px/1.35 var(--mono, monospace); padding: 6px 8px; background: var(--paper-2, #26232f); border-left: 3px solid var(--pink, #ff5fae); width: 100%; }
.rp-maps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 1100px; width: 100%; margin: 0 auto; }
.rp-prev { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; border: 1.5px solid var(--ink, #f4efe4); }
.rp-surprise { font: 500 11.5px/1.35 var(--mono, monospace); color: var(--pink, #ff5fae); }
.rp-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; max-width: 1100px; width: 100%; margin: 0 auto 8px; }
.rp-calm { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.rp-calm input { width: 20px; height: 20px; accent-color: var(--pink, #ff5fae); }
.rp-go { min-height: 46px; padding-inline: 22px; font-size: 16px; }
.rp-go.done { background: var(--paper-2, #26232f); color: var(--ink, #f4efe4); }
.rp-prono { display: flex; flex-wrap: wrap; gap: 10px; }
.rs-pick > p { margin: 0; }

/* ---------- petit écran « En direct » dans la salle ---------- */
.ring-dock { position: fixed; z-index: 7; left: max(12px, env(safe-area-inset-left)); top: calc(var(--top-h, 54px) + 12px + env(safe-area-inset-top)); width: min(270px, calc(100vw - 24px)); display: grid; gap: 10px; pointer-events: none; }
.ring-dock:empty { display: none; }
.ring-dock > * { pointer-events: auto; }
.ring-mini { display: grid; gap: 6px; padding: 9px 11px; text-align: left; border: 1.5px solid #f4efe4; border-radius: 2px; background: #1d1b26; color: #f4efe4; box-shadow: 4px 4px 0 var(--pink, #ff5fae); font: inherit; cursor: pointer; }
.ring-mini:hover { box-shadow: 4px 4px 0 var(--yellow, #ffd84a); }
.rm-tag { font: 500 11px/1 var(--mono, monospace); text-transform: uppercase; letter-spacing: 0.06em; color: #ff5fae; }
.rm-names { font-size: 13.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rm-bar { height: 8px; border: 1.5px solid #f4efe4; background: #2a2633; display: flex; }
.rm-bar.s1 { justify-content: flex-end; }
.rm-bar i { display: block; height: 100%; background: #ff5fae; }
.rm-bar.s1 i { background: #5b8cff; }
.rm-go { justify-self: end; font: 500 11px/1 var(--mono, monospace); text-transform: uppercase; padding: 4px 7px; background: #ffd84a; color: #14121b; }
/* ---------- mode tournoi : bandeau dans la salle ---------- */
.ring-tour { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; padding: 9px 11px; text-align: left; border: 1.5px solid #14121b; border-radius: 2px; background: #ffd84a; color: #14121b; box-shadow: 4px 4px 0 #ff5fae; font: inherit; cursor: pointer; transform: rotate(-1deg); }
.ring-tour:hover { box-shadow: 4px 4px 0 #5b8cff; }
.rt-tag { font: 600 11px/1 var(--mono, monospace); text-transform: uppercase; letter-spacing: 0.06em; }
.rt-clock { font: 600 18px/1 var(--mono, monospace); font-variant-numeric: tabular-nums; }
.rt-top { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: rt; }
.rt-top li { display: grid; grid-template-columns: 18px 1fr auto; gap: 6px; font-size: 13px; counter-increment: rt; }
.rt-top li::before { content: counter(rt); font: 600 12px/1.4 var(--mono, monospace); }
.rt-top li b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-top li span { font: 500 12px/1.4 var(--mono, monospace); }
.rt-top li.me { background: #14121b; color: #ffd84a; padding-inline: 4px; }
.rt-empty { grid-column: 1 / -1; font-size: 12.5px; }

/* borne : section tournoi */
.rb-tour.on { padding: 10px 12px; border: 1.5px solid var(--ink, currentColor); border-radius: 2px; box-shadow: 4px 4px 0 var(--yellow, #ffd84a); }
.rb-tour-clock { margin: 0; font: 600 15px/1.2 var(--mono, monospace); font-variant-numeric: tabular-nums; }
.rb-tour details summary { cursor: pointer; font-size: 13.5px; }
.rb-admin { display: grid; gap: 6px; padding: 8px 10px; border: 1.5px dashed var(--pink, #ff5fae); border-radius: 2px; }
.rb-admin-tag { justify-self: start; font: 600 10.5px/1 var(--mono, monospace); text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 6px; background: var(--pink, #ff5fae); color: #14121b; }
.rb-admin-btns { display: flex; flex-wrap: wrap; gap: 6px; }

/* résultat d'un duel du tournoi, fenêtre du champion */
.ro-tour { display: inline-block; padding: 0.5cqw 1cqw; font: 500 max(12px, 1.4cqw)/1.3 var(--mono, monospace) !important; border: 1.5px solid #f4efe4; }
.ro-tour.ok { background: #5b8cff; color: #14121b !important; border-color: #14121b; }
.ring-champion { display: grid; gap: 10px; justify-items: center; text-align: center; padding-block: 6px; }
.rc-title { font: 800 clamp(22px, 7vw, 30px)/1 var(--font-titre, var(--font, sans-serif)); letter-spacing: -0.03em; color: var(--yellow, #ffd84a); text-shadow: 3px 3px 0 var(--pink, #ff5fae); transform: rotate(-3deg); }
.ring-champion p { margin: 0; }
.rc-gain { padding: 5px 10px; background: #ffd84a; color: #14121b; font-weight: 800; box-shadow: 3px 3px 0 #ff5fae; }

@media (max-width: 600px) {
  .ring-dock { width: auto; max-width: calc(100vw - 24px); }
  .ring-mini { width: auto; grid-template-columns: 1fr auto; align-items: center; }
  .ring-mini .rm-bars { grid-column: 1 / -1; }
}

/* écran large mais peu haut : sept pavés (six armes + aléatoire) sur une ligne, aperçus de map plus bas, tout tient sans défiler */
@media (min-width: 1000px) and (max-height: 900px) {
  .rp-weapons { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
  .rp-weapon { padding: 10px; }
  .rp-icon { width: 40px; height: 40px; }
  .rp-stat { grid-template-columns: 50px 1fr; }
  .rp-prev { aspect-ratio: 16 / 6; }
  .rs-pick { gap: 10px; }
}

/* ---------- défi reçu ---------- */
.ring-defi { position: fixed; z-index: 62; left: 50%; transform: translateX(-50%) rotate(-1deg); top: calc(var(--top-h, 54px) + 14px + env(safe-area-inset-top)); width: min(400px, calc(100vw - 24px)); display: grid; gap: 8px; padding: 12px 14px; background: var(--yellow, #ffd84a); color: #14121b; border: 2px solid #14121b; box-shadow: 5px 5px 0 var(--pink, #ff5fae); animation: pop 0.18s ease-out; }
.ring-defi strong { font-size: 16px; }
.rd-left { font: 500 12px/1 var(--mono, monospace); }
.rd-btns { display: flex; gap: 8px; }
.ring-defi .btn { background: #fffdf5; color: #14121b; border-color: #14121b; }
.ring-defi .btn.primary { background: #14121b; color: #ffd84a; border-color: #14121b; }

/* ---------- fenêtre de la borne ---------- */
.ring-borne { display: grid; gap: 14px; }
.rb-live { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border: 1.5px solid var(--ink, currentColor); border-radius: 2px; background: var(--surface-raised, transparent); box-shadow: 4px 4px 0 var(--pink, #ff5fae); }
.rb-live.idle { box-shadow: 4px 4px 0 var(--yellow, #ffd84a); flex-direction: column; align-items: flex-start; }
.rb-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pink, #ff5fae); }
.rb-phase { font: 500 12px/1 var(--mono, monospace); color: var(--muted, #9c95a8); }
.rb-live .btn { margin-left: auto; }
.rb-sec { display: grid; gap: 8px; }
.rb-sec h3 { margin: 0; font: 500 12px/1.2 var(--mono, monospace); text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-text, #ffd84a); }
.rb-sec > .btn { justify-self: start; }
.rb-queue { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
.rb-solo { color: var(--muted, #9c95a8); }
.rb-board { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rb-board li { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; padding: 5px 8px; border-bottom: 1px dashed var(--line, rgba(244, 239, 228, 0.16)); }
.rb-board li:first-child { background: var(--yellow, #ffd84a); color: #14121b; }
.rb-rank { font: 500 13px/1 var(--mono, monospace); }
.rb-name { font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-wins { font: 500 12px/1 var(--mono, monospace); }
.ring-pick { border-color: var(--pink, #ff5fae); box-shadow: 3px 3px 0 var(--pink, #ff5fae); }

@media (max-width: 760px) {
  .rp-weapons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-random { grid-column: span 2; }
  .rp-maps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-special { display: none; }
}
@media (max-height: 520px) and (orientation: landscape) {
  /* téléphone à l'horizontale : l'écran prend toute la hauteur, le bas de scène se fait discret */
  .ring-stage { gap: 4px; padding-block: 4px; }
  .rs-screen { width: min(100%, calc((100dvh - 44px) * 16 / 9)); }
  .rs-bottom { width: min(100%, calc((100dvh - 44px) * 16 / 9)); font-size: 12px; }
  .rs-keys { display: none; }
  .ring-stage.touching .rs-bottom { justify-content: center; }
  .ring-stage.touching .rs-actions { margin-left: 0; }
  .rt-pad { width: 112px; height: 112px; }
  .rt-knob { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
  .rt-btns { grid-template-columns: repeat(2, 54px); gap: 8px; }
  .rt-btn { width: 54px; height: 54px; font-size: 12px; }
  /* choix compact : pas de jauges, aperçus bas, bouton « prêt » toujours visible */
  .rs-pick { gap: 8px; padding-block: 8px 0; }
  .rs-pick h2 { font-size: 20px; }
  .rp-weapons { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .rp-weapon, .rp-map { padding: 8px; gap: 3px; }
  .rp-icon { width: 30px; height: 30px; }
  .rp-weapon strong, .rp-map strong { font-size: 14.5px; }
  .rp-stats { display: none; }
  .rp-special { display: block; font-size: 11px; padding: 4px 6px; }
  .rp-maps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .rp-prev { aspect-ratio: 16 / 6; }
  .rp-surprise { font-size: 10.5px; }
  .rp-foot { position: sticky; bottom: 0; margin-bottom: 0; padding-block: 8px max(8px, env(safe-area-inset-bottom)); background: var(--page, #14121b); }
}
@media (prefers-reduced-motion: reduce) {
  .rs-banner, .rs-combo, .rs-bar .hp { transition: none; }
  .rs-p.hurt .rs-bar { animation: none; }
}
