/* VECTOR SQUAD (js/arcade/rungun.js) — v3 TWIN-STICK PAYSAGE : scène 1280×720 (#stage.land), le monde ×3 plein écran ; stick gauche = courir,
   stick droit = VISER + TIRER, JUMP / GRENADE / SWAP en arc dans le coin bas-droit (UX3), à portée du pouce droit (≥ 96 px de scène ≈ 52 px CSS sur un
   téléphone de 390 px de haut) ; gaucher = miroir. */
.ar-rungun { background: #05060c; }
.ar-rungun .hidden { display: none !important; }
#rgCtl { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
/* UX3 — GRAPPE DU POUCE : stick gauche = courir (zone invisible, le stick apparaît sous le pouce) ; stick droit = VISER + TIRER ;
   JUMP (gros, dans le coin), GRENADE à sa gauche, SWAP en diagonale au-dessus : un arc compact dans le bas-droit, au-dessus de la terre
   (le sol est relevé de 48 px de scène), boutons translucides (le décor et les balles restent visibles au travers). */
#rgJoy { position: absolute; left: 0; bottom: 0; width: 460px; height: 470px; pointer-events: auto; touch-action: none; }
#rgBase, #rgABase { position: absolute; width: 200px; height: 200px; margin: -100px 0 0 -100px; border-radius: 50%; display: none; }
#rgBase { border: 3px solid rgba(143,246,255,.35); background: radial-gradient(circle, rgba(143,246,255,.10), rgba(143,246,255,.02) 70%); }
#rgBase.on, #rgABase.on { display: block; }
#rgBase::before, #rgABase::before { content: ''; position: absolute; inset: 18px; border-radius: 50%; border: 2px dashed rgba(143,246,255,.16); }
#rgKnob, #rgAKnob { position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; }
#rgKnob { background: radial-gradient(circle at 40% 35%, #e9fdff, #8ff6ff 45%, rgba(42,108,203,.9)); box-shadow: 0 0 28px rgba(143,246,255,.5); }
#rgHint, #rgAHint { position: absolute; bottom: 56px; width: 150px; height: 150px; border-radius: 50%; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 4px; transition: opacity .5s ease-out; text-align: center; pointer-events: none; }
#rgHint { left: 92px; border: 2px dashed rgba(143,246,255,.26); color: rgba(143,246,255,.62); }
#rgAHint { right: 70px; border: 2px dashed rgba(255,61,94,.32); color: rgba(255,111,136,.7); }
#rgHint svg, #rgAHint svg { width: 46px; height: 46px; fill: currentColor; stroke: currentColor; opacity: .85; }
#rgHint span, #rgAHint span { font: 800 18px/1 'Barlow Semi Condensed', sans-serif; letter-spacing: 3px; }
#rgHint small, #rgAHint small { font: 700 13px/1.15 'Barlow Semi Condensed', sans-serif; letter-spacing: .5px; opacity: .75; max-width: 130px; }
#rgHint.off, #rgAHint.off { opacity: 0; }
.rgbtn { position: absolute; border-radius: 50%; border: 0; pointer-events: auto; touch-action: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: transform .08s cubic-bezier(.2,.9,.3,1), filter .08s, opacity .15s; cursor: pointer; font-family: inherit; opacity: .8; -webkit-user-select: none; user-select: none; padding: 0;
  background: rgba(5,6,12,.34); -webkit-backdrop-filter: none; }
.rgbtn svg { width: 46%; height: 46%; fill: currentColor; stroke: currentColor; filter: drop-shadow(0 0 6px currentColor); }
.rgbtn span { font: 800 13px/1 'Barlow Semi Condensed', sans-serif; letter-spacing: 2px; margin-top: 2px; opacity: .85; }
.rgbtn.on { opacity: 1; transform: scale(.9); filter: brightness(1.4); }
#rgJump { right: 24px; bottom: 22px; width: 124px; height: 124px; color: #8ff6ff; box-shadow: inset 0 0 0 4px rgba(143,246,255,.75), 0 0 26px rgba(63,184,216,.35);
  background: radial-gradient(circle at 40% 32%, rgba(198,251,255,.32), rgba(63,184,216,.2) 55%, rgba(5,6,12,.3)); }
#rgJump svg { width: 50%; height: 50%; stroke-width: 7; fill: none; }
#rgGren { right: 166px; bottom: 26px; width: 92px; height: 92px; color: #ffcf3d; box-shadow: inset 0 0 0 4px rgba(255,207,61,.75); }
#rgGren svg { stroke-width: 0; }
#rgGren svg path { fill: none; stroke-width: 3; }
#rgGren b { position: absolute; right: -6px; top: -6px; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 16px; background: #ffcf3d; color: #141414; font: 900 18px/32px Montserrat, sans-serif; }
#rgGren.empty { opacity: .3; }
#rgSwap { right: 160px; bottom: 138px; width: 72px; height: 72px; color: #5cf08a; box-shadow: inset 0 0 0 3px rgba(92,240,138,.7); }
#rgSwap svg { fill: none; width: 52%; height: 52%; }
#rgSwap span { font-size: 11px; }
/* stick droit : VISER + TIRER (16 directions, tir automatique tant qu'il est poussé) */
#rgAim { position: absolute; right: 250px; bottom: 0; width: 470px; height: 480px; pointer-events: auto; touch-action: none; }
#rgABase { border: 3px solid rgba(255,61,94,.45); background: radial-gradient(circle, rgba(255,61,94,.12), rgba(255,61,94,.02) 70%); }
#rgABase::before { border-color: rgba(255,61,94,.2); }
#rgAKnob { background: radial-gradient(circle at 40% 35%, #ffd0d8, #ff6f88 45%, rgba(156,18,48,.9)); box-shadow: 0 0 28px rgba(255,61,94,.5); }
/* gaucher (MG.Settings.controls.lefty) : stick de déplacement à droite, stick de visée + boutons à gauche (miroir) */
.ar-rungun.lefty #rgJoy { left: auto; right: 0; }
.ar-rungun.lefty #rgHint { left: auto; right: 92px; }
.ar-rungun.lefty #rgJump { right: auto; left: 24px; }
.ar-rungun.lefty #rgGren { right: auto; left: 166px; }
.ar-rungun.lefty #rgSwap { right: auto; left: 160px; }
.ar-rungun.lefty #rgAim { right: auto; left: 250px; }
.ar-rungun.lefty #rgAHint { right: auto; left: 70px; }
/* HUD commun (K.hud) : les vitals en LIGNE en haut à gauche (la mascotte SIGMA est dessous, coin 'tl' y ≈ 196), la formule sur la
   2e ligne au centre (la barre du tank / boss occupe la 1re ligne au centre, dessinée sur le canvas) */
.ar-rungun .akh.rgh .akh-l { flex-direction: row; flex-wrap: wrap; align-items: center; max-width: 470px; gap: 6px 8px; }
.ar-rungun .akh.rgh .akv { align-items: center; }
.ar-rungun .akh.rgh .akv small { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-rungun .akh.rgh .akv-bar i { width: 110px; }
.ar-rungun .akh.rgh .akh-f { top: calc(var(--akt) + 52px); left: 250px; right: 250px; }
.ar-rungun .akh.rgh .akh-fm { font-size: 23px; }
.ar-rungun .akh.rgh .akh-p { top: calc(var(--akt) + 100px); font-size: 17px; }
.ar-rungun .akh.rgh .akh-e { top: 232px; font-size: 34px; color: var(--ec); text-shadow: 0 2px 0 #05060c, 0 0 2px #05060c, 2px 0 0 #05060c, -2px 0 0 #05060c, 0 -2px 0 #05060c; } /* lot 6 : sous la ligne de formule, au-dessus des têtes (y < 76 en unités monde, un saut monte à 104) */
.ar-rungun .akh.rgh.md-full .akh-p { top: calc(var(--akt) + 96px); max-width: 620px; font-size: 15px; gap: 3px; padding: 6px 12px; background: rgba(4,9,7,.42); }
.rgwi { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 6px; font: 900 18px/1 Montserrat, sans-serif; font-style: normal;
  color: var(--vc); background: #141018; box-shadow: inset 0 0 0 3px var(--vc), 0 0 10px color-mix(in srgb, var(--vc) 45%, transparent); align-self: center; }
.rggi { width: 18px; height: 20px; align-self: center; border-radius: 50% 50% 46% 46%; background: radial-gradient(circle at 35% 40%, #6a9a6a, #2f5a3a 70%); position: relative; box-shadow: 0 0 0 2px #08060c; }
.rggi::before { content: ''; position: absolute; left: 5px; top: -5px; width: 8px; height: 5px; border-radius: 2px; background: #ffcf3d; }
.ar-rungun.md-minimal #rgHint small, .ar-rungun.md-minimal #rgAHint small { display: none; }

/* menu / fin de mission : 2 colonnes */
.rgscr { position: absolute; inset: 0; z-index: 5; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 30px;
  padding: 100px 170px 30px 56px; text-align: center; background: radial-gradient(ellipse at 50% 40%, rgba(5,6,12,.55), rgba(5,6,12,.95)); color: #e9eee8; }
.rgcol { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.rglab { margin: 0; font: 800 20px/1 'Barlow Semi Condensed', sans-serif; letter-spacing: 6px; color: #7d8f86; }
.rgscr h1 { margin: 0; font: 900 76px/1 Montserrat, sans-serif; letter-spacing: 2px; }
.rgscr h1 span { display: inline-block; background: #e8274c; padding: 6px 22px 10px; border-radius: 12px; transform: rotate(-2.5deg) skewX(-6deg); margin-top: 10px; }
.rgscr h2 { margin: 0; font: 900 54px/1 Montserrat, sans-serif; color: #8ff6ff; }
.rgtag { margin: 0; color: #9fb3a8; font-size: 25px; line-height: 1.3; }
.rgbig { font: 900 38px/1 Montserrat, sans-serif; padding: 26px 64px; border-radius: 22px; border: 0; background: #ff3d5e; color: #fff; box-shadow: 0 0 46px rgba(255,61,94,.45); min-width: 380px; cursor: pointer; }
.rgbig:active { transform: scale(.96); }
.rgghost { font: 800 22px/1 'Barlow Semi Condensed', sans-serif; letter-spacing: 3px; color: #9fb3a8; padding: 18px 24px; min-height: 92px; border: 2px solid rgba(255,255,255,.16); border-radius: 18px; background: none; cursor: pointer; }
.rghi { margin: 0; font: 800 26px/1 Montserrat, sans-serif; color: #ffcf3d; min-height: 26px; }
.rgrow { display: flex; gap: 14px; }
#rgSeed { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; max-width: 560px; padding: 10px 16px; border-radius: 20px; border: 2px solid rgba(143,246,255,.22); background: rgba(5,6,12,.55); }
#rgSeed span { font: 800 18px 'Barlow Semi Condensed', sans-serif; letter-spacing: 4px; color: #7d8f86; }
#rgSeed b { font: 900 30px Montserrat, sans-serif; letter-spacing: 4px; color: #8ff6ff; min-width: 110px; }
#rgSeed small { width: 100%; font-size: 18px; color: #8a9c93; }
.rgchip { font: 800 20px 'Barlow Semi Condensed', sans-serif; letter-spacing: 3px; padding: 0 18px; min-height: 92px; border-radius: 14px; border: 2px solid rgba(255,255,255,.18); background: none; color: #cfe0d6; cursor: pointer; }
.rghow { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 560px; text-align: left; }
.rghow li { display: flex; align-items: center; gap: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: 16px; padding: 8px 16px; font-size: 20px; color: #c9d4cc; }
.rghow b { width: 44px; height: 44px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 900 21px Montserrat, sans-serif; color: #8ff6ff; border: 3px solid rgba(143,246,255,.4); }
.rghow b.pk { color: #ff3d5e; border-color: rgba(255,61,94,.6); }
.rghow b.gd { color: #ffcf3d; border-color: rgba(255,207,61,.6); }
.rghow em { font-style: normal; font-weight: 800; color: #fff; }
.rgmel { display: flex; align-items: flex-end; gap: 8px; height: 130px; padding: 0 12px; border-bottom: 2px solid rgba(143,246,255,.25); }
.rgmel b { width: 18px; border-radius: 4px; background: #8ff6ff; box-shadow: 0 0 16px rgba(143,246,255,.6); }
.rgmel .none { color: #7d8f86; font-size: 22px; }
.rgstats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 560px; }
.rgstats div { background: rgba(255,255,255,.04); border-radius: 14px; padding: 10px 16px; display: flex; flex-direction: column; gap: 4px; text-align: left; }
.rgstats span { font-size: 17px; letter-spacing: 3px; color: #7d8f86; font-weight: 800; }
.rgstats b { font: 900 28px/1 Montserrat, sans-serif; }
#rgFormula { font-size: 24px; color: #ffcf3d; min-height: 36px; }

/* HD (assets/rungun) : écran titre et fin de mission sur une image Blender ; le logo est dans l'image (h1 masqué, conservé pour le repli) */
.ar-rungun.rg-hd #rgMenu { background: #05060c var(--rg-title) center / cover no-repeat; grid-template-columns: 300px 1fr; padding: 262px 34px 12px 340px; gap: 22px; align-items: start; }
.ar-rungun.rg-hd #rgMenu h1, .ar-rungun.rg-hd #rgMenu .rglab { display: none; }
.ar-rungun.rg-hd #rgMenu .rgtag { font-size: 18px; color: #e9eee8; text-shadow: 0 2px 0 #05060c; }
.ar-rungun.rg-hd #rgMenu .rgbig { min-width: 280px; padding: 22px 30px; font-size: 34px; }
.ar-rungun.rg-hd #rgMenu .rghi { text-shadow: 0 2px 0 #05060c; }
.ar-rungun.rg-hd #rgMenu .rgcol { gap: 10px; }
.ar-rungun.rg-hd #rgSeed { background: rgba(5,6,12,.78); padding: 6px 12px; gap: 4px 10px; }
.ar-rungun.rg-hd #rgSeed small { font-size: 15px; }
.ar-rungun.rg-hd .rghow { gap: 4px; }
.ar-rungun.rg-hd .rghow li { font-size: 16px; padding: 4px 12px; gap: 10px; background: rgba(5,6,12,.72); border-color: rgba(143,246,255,.14); }
.ar-rungun.rg-hd .rghow b { width: 34px; height: 34px; font-size: 16px; }
.ar-rungun.rg-hd .rgghost, .ar-rungun.rg-hd .rgchip { background: rgba(5,6,12,.72); }
.ar-rungun.rg-hd #rgMenu .rgghost { min-height: 58px; padding: 8px 18px; font-size: 18px; }
.ar-rungun.rg-hd #rgMenu .rgchip { min-height: 44px; font-size: 16px; }
.ar-rungun.rg-hd #rgClear { background: #05060c var(--rg-clear) center / cover no-repeat; padding: 186px 40px 10px 320px; grid-template-columns: 1fr 1fr; align-items: start; }
.ar-rungun.rg-hd #rgClear h2 { text-shadow: 0 3px 0 #05060c; font-size: 46px; }
.ar-rungun.rg-hd #rgClear .rgtag, .ar-rungun.rg-hd #rgFormula { text-shadow: 0 2px 0 #05060c; }
.ar-rungun.rg-hd .rgstats div { background: rgba(5,6,12,.76); }

/* MODES : les cartes sur le titre (3 de front), les textes du mode choisi */
.ar-rungun #rgModes { width: 100%; max-width: 760px; }
.ar-rungun #rgModes .mmlist { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ar-rungun #rgModes .mmcard { min-height: 74px; padding: 6px 8px; gap: 8px; border-radius: 12px; }
.ar-rungun #rgModes .mmth { width: 46px; border-radius: 8px; background-size: cover; image-rendering: pixelated; }
.ar-rungun #rgModes .mmtx b { font-size: 16px; letter-spacing: 0; }
.ar-rungun #rgModes .mmtx em { font-size: 14px; line-height: 1.05; }
.ar-rungun #rgModes .mmtx small { font-size: 13px; }
.ar-rungun.rg-hd #rgMenu { padding-top: 250px; }
.ar-rungun.rg-hd #rgMenu .rgcol:last-child { gap: 6px; }
.ar-rungun.rg-hd .rghow li { font-size: 15px; padding: 2px 10px; }
.ar-rungun.rg-hd .rghow b { width: 28px; height: 28px; font-size: 14px; border-width: 2px; }
.ar-rungun.rg-hd #rgSeed { padding: 3px 12px; }
.ar-rungun.rg-hd #rgSeed b { font-size: 24px; }
.ar-rungun.rg-hd #rgMenu .rgghost { min-height: 46px; }
.ar-rungun.rg-hd #rgMenu .rgchip { min-height: 36px; }
.rgstars { font-size: 64px; line-height: 1; color: #ffcf3d; letter-spacing: 6px; text-shadow: 0 3px 0 #05060c; }
.rgstars i { font-style: normal; color: rgba(255,255,255,.2); }
.ar-rungun.rg-lan .akh.rgh .akh-e { top: 53%; }

/* lot 6 : niveaux, zones de contact élargies */
#rgLevels { font: 800 22px/1 'Barlow Semi Condensed', sans-serif; letter-spacing: 1px; padding: 12px 22px; min-width: 240px; }
#rgLevels b { color: #ffcf3d; }
.rgbtn::after { content: ''; position: absolute; inset: -12px; border-radius: 50%; }
#rgSwap::after { inset: -8px; }
.ar-rungun.rg-row2 .akh.rgh .akh-f { left: 500px; right: 200px; }
.ar-rungun.rg-row2 .akh.rgh .akh-fm { font-size: 20px; }
