
    /*
    ===========================================================================
    STARBREAK V5.66 — CARTE DES STYLES
    ===========================================================================
    A. Variables globales, reset, canvas et écrans.
    B. Menu principal, HUD et barres de progression.
    C. Contrôles tactiles et adaptations portrait/paysage.
    D. Dialogues, tutoriels, boss et missions.
    E. Compte cloud, boutique, bestiaire et laboratoire.
    F. Fenêtres mobiles et plein écran.

    Les règles sont volontairement regroupées par fonctionnalité historique.
    Certaines surcharges situées plus bas corrigent les versions précédentes :
    leur ordre dans la cascade CSS est donc important.
    ===========================================================================
    */

    :root{--ink:#f4f7ff;--muted:#96a3bd;--cyan:#63f3ff;--violet:#9d7cff;--pink:#ff4fa3;--gold:#ffd166;--danger:#ff556d;--panel:rgba(6,10,24,.84)}
    *{box-sizing:border-box} html,body{width:100%;height:100%;margin:0;overflow:hidden;background:#02030a;color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif}
    button{font:inherit;color:inherit} canvas{position:fixed;inset:0;width:100%;height:100%;display:block;cursor:crosshair}
    /* Le stick flottant naît directement sur le canvas. touch-action:none évite
       qu’un geste de déplacement soit repris par le navigateur puis annulé. */
    body.mobile-input canvas{cursor:none!important;touch-action:none;user-select:none;-webkit-user-select:none}body.mobile-input #aimReticle{display:none!important}
    #vignette{position:fixed;inset:0;pointer-events:none;background:radial-gradient(circle at center,transparent 45%,rgba(0,0,0,.28) 100%);mix-blend-mode:multiply}
    .hidden{display:none!important}.screen{position:fixed;inset:0;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at 50% 42%,rgba(61,73,138,.17),transparent 42%),rgba(1,3,10,.42);backdrop-filter:blur(3px)}
    .panel{width:min(760px,94vw);max-height:92vh;overflow:auto;padding:34px;border:1px solid rgba(135,220,255,.28);border-radius:20px;background:linear-gradient(145deg,rgba(13,19,41,.96),rgba(3,6,18,.96));box-shadow:0 30px 100px #000,0 0 50px rgba(88,218,255,.08)}
    .eyebrow{margin:0 0 10px;color:var(--cyan);font-size:12px;font-weight:800;letter-spacing:.22em;text-transform:uppercase}
    h1{margin:0;font-size:clamp(44px,9vw,94px);line-height:.82;letter-spacing:-.075em;font-weight:950;text-shadow:0 0 30px rgba(99,243,255,.25)}
    h1 span{display:block;margin-top:12px;color:var(--muted);font-size:clamp(14px,2vw,20px);letter-spacing:.28em;font-weight:500;text-transform:uppercase}
    h2{margin:0 0 8px;font-size:clamp(30px,5vw,50px);letter-spacing:-.045em}p{line-height:1.55;color:#b9c3d8}
    .menu-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:24px;margin-top:30px}.menu-actions{display:grid;gap:10px;align-content:start}
    .btn{width:100%;border:1px solid rgba(130,224,255,.35);border-radius:12px;padding:14px 18px;background:rgba(20,33,63,.74);text-align:left;font-weight:800;letter-spacing:.02em;cursor:pointer;transition:.16s transform,.16s background,.16s box-shadow}
    .btn:hover,.btn:focus-visible{outline:none;transform:translateY(-2px);background:rgba(35,67,103,.88);box-shadow:0 0 25px rgba(99,243,255,.13)}.btn.primary{color:#041019;background:linear-gradient(90deg,var(--cyan),#a9fbff);border:0}.btn.small{width:auto;padding:9px 12px;font-size:12px;text-align:center}
    .stats{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.stat{padding:12px;border:1px solid rgba(255,255,255,.08);border-radius:10px;background:rgba(255,255,255,.025)}.stat strong{display:block;font-size:22px}.stat span{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.09em}
    .controls{margin-top:18px;padding-top:16px;border-top:1px solid rgba(255,255,255,.08);font-size:12px;color:#95a3bd;line-height:1.8}.key{display:inline-grid;place-items:center;min-width:24px;height:22px;padding:0 6px;margin:0 2px;border:1px solid #546078;border-bottom-width:3px;border-radius:5px;background:#151b2a;color:white;font-size:11px}
    #bootStatus{margin:2px 4px 0;color:#6fffd5;font-size:11px;letter-spacing:.06em}
    #hud{position:fixed;inset:0;pointer-events:none}.hud-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:14px}.hud-block{min-width:170px;padding:10px 12px;border:1px solid rgba(150,218,255,.18);border-radius:10px;background:rgba(3,8,22,.58);backdrop-filter:blur(5px)}
    .hud-line{display:flex;justify-content:space-between;gap:18px;font-size:12px;color:#9facbf}.hud-line strong{color:white}.level-badge{font-size:26px;font-weight:950;letter-spacing:-.05em}.objective{max-width:390px;text-align:center}.objective-name{font-weight:900}.bar{height:6px;margin-top:7px;overflow:hidden;border-radius:99px;background:rgba(255,255,255,.12)}.bar i{display:block;width:0;height:100%;background:linear-gradient(90deg,var(--cyan),var(--violet));box-shadow:0 0 12px var(--cyan)}
    #bossHud{position:fixed;left:50%;bottom:26px;transform:translateX(-50%);width:min(600px,78vw);text-align:center;font-size:12px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}#bossPhaseLives{display:none!important}#bossBar{height:12px;border:1px solid rgba(255,255,255,.3);background:#160817}#bossFill{display:block;height:100%;background:linear-gradient(90deg,#ff365f,#ff9d35,#fff06b);box-shadow:0 0 25px #ff4567}
    #toast{position:fixed;left:50%;top:20%;transform:translate(-50%,-10px);padding:9px 16px;border:1px solid rgba(255,255,255,.2);border-radius:99px;background:rgba(4,8,22,.86);opacity:0;pointer-events:none;font-size:12px;font-weight:800;letter-spacing:.11em;text-transform:uppercase;transition:.2s}#toast.show{opacity:1;transform:translate(-50%,0)}
    #missionIntro{position:fixed;left:50%;top:13%;width:min(820px,92vw);transform:translate(-50%,-18px);padding:18px 22px;text-align:center;pointer-events:none;opacity:0;transition:.28s;z-index:8;text-shadow:0 3px 20px #000}#missionIntro.show{opacity:1;transform:translate(-50%,0)}#missionIntro.blocking{top:50%;width:min(720px,90vw);transform:translate(-50%,-50%) scale(.96);padding:28px 30px;border:1px solid rgba(99,243,255,.42);border-radius:18px;background:linear-gradient(145deg,rgba(10,18,43,.96),rgba(2,5,17,.96));box-shadow:0 24px 90px #000,0 0 45px rgba(99,243,255,.14);backdrop-filter:blur(8px)}#missionIntro.blocking.show{transform:translate(-50%,-50%) scale(1)}#missionIntro.blocking:before{content:"OBJECTIF DE MISSION";display:block;margin-bottom:10px;color:#63f3ff;font:900 11px/1 ui-monospace,monospace;letter-spacing:.2em}#missionIntro strong{display:block;color:#fff;font-size:clamp(25px,5vw,54px);font-weight:950;letter-spacing:-.035em}#missionIntro span{display:block;margin-top:7px;color:#aef6ff;font-size:clamp(11px,2vw,16px);font-weight:750;letter-spacing:.08em;text-transform:uppercase}#missionIntroOk{display:none;margin:22px auto 0;min-width:150px;padding:13px 28px;border:2px solid #63f3ff;border-radius:10px;background:linear-gradient(180deg,#123f66,#071b36);color:#fff;font:950 15px/1 ui-monospace,monospace;letter-spacing:.12em;text-transform:uppercase;box-shadow:0 0 0 3px rgba(99,243,255,.09),0 0 24px rgba(99,243,255,.28);cursor:pointer;pointer-events:auto}#missionIntro.waiting-ok{pointer-events:auto}#missionIntro.waiting-ok #missionIntroOk{display:block}#missionIntro.waiting-ok:after{content:"PREMIÈRE DÉCOUVERTE · LE JEU EST EN PAUSE";display:block;margin-top:13px;color:#7f91ad;font:800 9px/1.3 ui-monospace,monospace;letter-spacing:.14em}
    .upgrade-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:26px}.upgrade-card{min-height:210px;padding:18px;border:1px solid rgba(133,210,255,.22);border-radius:15px;background:linear-gradient(160deg,rgba(36,45,83,.75),rgba(8,11,28,.95));cursor:pointer;text-align:left;transition:.18s}.upgrade-card:hover,.upgrade-card:focus-visible{outline:none;transform:translateY(-5px);border-color:var(--cyan);box-shadow:0 12px 40px rgba(55,213,255,.12)}.upgrade-icon{font-size:34px}.upgrade-card h3{margin:12px 0 6px}.upgrade-card p{font-size:13px;margin:0}.rarity{display:block;margin-top:16px;color:var(--cyan);font-size:10px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
    .center{text-align:center}.big-number{font-size:72px;font-weight:950;letter-spacing:-.07em;margin:10px 0}.final-score{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:24px 0}.final-score .stat{background:rgba(255,255,255,.04)}
    /* V5.46 — Console de données locales du laboratoire.
       Les actions sont volontairement séparées : relancer le tutoriel tactile
       n’efface pas la progression, tandis que l’effacement complet ne touche
       jamais au compte distant conservé dans Google Apps Script. */
    .dev-local-data-console{margin:14px 0;padding:14px;border:1px solid rgba(255,209,102,.42);border-radius:12px;background:linear-gradient(155deg,rgba(54,36,8,.62),rgba(9,11,25,.94))}
    .dev-local-data-console h3{margin:0 0 6px;color:#ffe29b;font:950 14px/1.1 ui-monospace,monospace;letter-spacing:.08em}
    .dev-local-data-console p{margin:0 0 10px;color:#c9d4e8;font-size:11px;line-height:1.45}
    .dev-local-data-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
    .dev-local-data-actions .danger{border-color:rgba(255,85,109,.68);background:rgba(77,12,27,.68);color:#ffd6dd}
    .dev-local-data-status{margin-top:9px;padding:8px 10px;border:1px solid rgba(255,255,255,.09);border-radius:8px;background:rgba(0,0,0,.2);color:#9edfff;font:800 9px/1.45 ui-monospace,monospace;letter-spacing:.04em}
    @media(max-width:620px){.dev-local-data-actions{grid-template-columns:1fr}}

    .dev-score-glitch{position:relative;display:inline-block;color:#fff;text-shadow:2px 0 #ff375f,-2px 0 #37d9ff;animation:devScoreGlitch .9s steps(2,end) infinite}.dev-score-glitch::before,.dev-score-glitch::after{content:attr(data-score);position:absolute;inset:0;pointer-events:none;opacity:.62}.dev-score-glitch::before{color:#ff315d;transform:translate(-2px,1px);clip-path:inset(0 0 48% 0)}.dev-score-glitch::after{color:#43e8ff;transform:translate(2px,-1px);clip-path:inset(52% 0 0 0)}@keyframes devScoreGlitch{0%,88%,100%{transform:none}90%{transform:translateX(-1px)}94%{transform:translateX(1px)}}.dev-score-warning{margin:14px auto;padding:10px 14px;max-width:520px;border:1px solid #ffcc66;background:rgba(46,25,4,.78);color:#ffe6a7;font-weight:900;letter-spacing:.06em;text-transform:uppercase}.hud-dev-note{color:#ffcc66;font-size:9px;font-weight:900;letter-spacing:.08em}
    #touch{position:fixed;inset:auto 0 12px;display:none;justify-content:space-between;align-items:end;padding:12px 18px;pointer-events:none}body.touch-enabled #touch:not(.hidden){display:flex}.joystick{position:relative;width:126px;height:126px;border:1px solid rgba(120,230,255,.32);border-radius:50%;background:radial-gradient(circle,rgba(45,87,120,.28),rgba(5,12,30,.66));box-shadow:inset 0 0 28px rgba(80,220,255,.1);pointer-events:auto;touch-action:none}.joystick:before,.joystick:after{content:"";position:absolute;background:rgba(180,235,255,.13)}.joystick:before{left:16px;right:16px;top:50%;height:1px}.joystick:after{top:16px;bottom:16px;left:50%;width:1px}.joystick-knob{position:absolute;left:50%;top:50%;width:54px;height:54px;transform:translate(-50%,-50%);border:2px solid rgba(170,245,255,.72);border-radius:50%;background:radial-gradient(circle at 38% 35%,rgba(145,245,255,.76),rgba(27,86,124,.76));box-shadow:0 0 22px rgba(80,230,255,.28);pointer-events:none}.touch-cluster.right{display:grid;grid-template-columns:repeat(2,70px);gap:12px;pointer-events:auto}.touch-btn{height:70px;border:1px solid rgba(255,255,255,.22);border-radius:50%;background:rgba(7,13,31,.65);backdrop-filter:blur(4px);font-weight:900;touch-action:none}.touch-btn.fire{background:rgba(255,72,137,.3);box-shadow:0 0 20px rgba(255,72,137,.12)}.touch-btn.boost{background:rgba(118,92,255,.28)}
    #bossDialogue{position:fixed;left:50%;top:84px;z-index:30;width:min(850px,92vw);transform:translateX(-50%);pointer-events:auto;filter:drop-shadow(0 18px 36px #000)}
    #bossDialogueBox{display:grid;grid-template-columns:96px 1fr;gap:14px;align-items:center;min-height:116px;padding:12px 16px;border:3px solid #d8f7ff;border-radius:5px;background:linear-gradient(180deg,rgba(7,12,30,.97),rgba(2,4,13,.98));box-shadow:inset 0 0 0 3px #253b68,0 0 0 2px #02040d;font-family:"Courier New",ui-monospace,monospace;cursor:pointer}
    #bossPortrait{display:grid;place-items:center;width:86px;height:86px;border:3px solid #7df5ff;background:radial-gradient(circle,#26365d,#070a18 70%);font-size:48px;image-rendering:pixelated;animation:portraitFloat 1.1s steps(2,end) infinite;overflow:hidden;text-shadow:0 0 16px currentColor}
    #bossPortrait.pix-portrait-active{padding:0;background:#171236!important;border-color:#ffd166!important;box-shadow:inset 0 0 0 2px rgba(255,209,102,.15),0 0 18px rgba(255,209,102,.16)}
    #bossPortrait .pix-portrait-img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;image-rendering:auto;pointer-events:none;user-select:none;-webkit-user-drag:none}
    #bossPortrait.hurt{animation:portraitHurt .15s steps(2,end) infinite}#bossPortrait.defeat{filter:grayscale(1);transform:rotate(-8deg)}
    #bossDialogueName{color:#7df5ff;font-size:13px;font-weight:900;letter-spacing:.14em;text-transform:uppercase;margin-bottom:8px}
    #bossDialogueText{min-height:44px;color:#fff;font-size:clamp(13px,2vw,18px);line-height:1.45;font-weight:700;text-shadow:2px 2px #000}
    #bossDialogueHint{margin-top:7px;color:#8193b5;font-size:10px;letter-spacing:.1em;text-transform:uppercase}
    @keyframes portraitFloat{50%{transform:translateY(-3px)}}@keyframes portraitHurt{50%{transform:translateX(4px);filter:brightness(1.8)}}
    #aimReticle{position:fixed;z-index:4;width:22px;height:22px;margin:-11px 0 0 -11px;border:1px solid rgba(130,245,255,.8);border-radius:50%;pointer-events:none;box-shadow:0 0 10px rgba(90,240,255,.45)}#aimReticle:before,#aimReticle:after{content:"";position:absolute;background:#bffbff}#aimReticle:before{left:-5px;right:-5px;top:10px;height:1px}#aimReticle:after{top:-5px;bottom:-5px;left:10px;width:1px}
    #touch{gap:10px}.touch-side{display:flex;align-items:end;gap:10px;pointer-events:none}.joystick.aim{border-color:rgba(255,108,181,.45);background:radial-gradient(circle,rgba(132,40,102,.24),rgba(5,12,30,.68))}.joystick.aim .joystick-knob{border-color:rgba(255,170,223,.8);background:radial-gradient(circle at 38% 35%,rgba(255,157,218,.82),rgba(118,31,91,.78));box-shadow:0 0 22px rgba(255,70,170,.25)}
    .touch-actions{display:grid;grid-template-columns:repeat(2,58px);gap:8px;pointer-events:auto}.touch-btn{height:58px;font-size:10px}.touch-btn.ability{background:rgba(68,205,255,.24)}.touch-pause{position:fixed;right:12px;top:82px;width:48px!important;height:40px!important;border-radius:9px!important;pointer-events:auto;background:rgba(4,9,24,.78)!important}
    body.dialogue-open #hud{filter:brightness(.62)}
    /* Le dialogue met le gameplay en pause dans update(), mais ne détruit plus
       les sticks. Une capture tactile déjà active reste donc vivante jusqu’au
       pointerup et reprend immédiatement à la fermeture de la transmission. */
    body.dialogue-open #touch{opacity:.32;pointer-events:none}
    body.dialogue-open #touch .joystick{pointer-events:auto}
    body.dialogue-open #touch .touch-actions,body.dialogue-open #touch .touch-pause{pointer-events:none!important}
    #devBadge{position:fixed;left:50%;bottom:12px;transform:translateX(-50%);width:auto;padding:8px 12px;border:1px solid #ffcc66;border-radius:8px;background:rgba(30,18,4,.78);color:#ffe29b;font-size:11px;font-weight:900;letter-spacing:.12em;pointer-events:auto;cursor:pointer}.dev-row{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0}.dev-control{flex:1;min-width:170px;padding:12px;border:1px solid rgba(255,255,255,.12);border-radius:10px;background:rgba(255,255,255,.03)}.dev-control input[type=number]{width:100%;margin-top:7px;padding:10px;border:1px solid #53617a;border-radius:8px;background:#080d1d;color:#fff;font:inherit}.dev-upgrades{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;max-height:38vh;overflow:auto;margin:16px 0;padding-right:4px}.dev-upgrade{padding:10px;border:1px solid rgba(120,210,255,.18);border-radius:9px;background:rgba(18,28,52,.75);font-size:11px;text-align:left;cursor:pointer}.dev-upgrade strong{display:block;color:#fff}.dev-upgrade span{color:var(--cyan)}
    .setting{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:10px 0;color:#b9c3d8}.setting input{accent-color:var(--cyan)}


    /* ===== CONFIGURATION TACTILE GUIDÉE V5.46 =====
       Le mode classique conserve un bouton FEU séparé.
       Le mode moderne remplace ce bouton par le stick droit : il oriente le
       vaisseau et déclenche le tir, pendant que le stick gauche permet le strafe.
    */
    .settings-section-btn{display:grid;grid-template-columns:46px 1fr 18px;align-items:center;gap:10px;margin:12px 0;padding:13px 14px;text-align:left}.settings-section-btn .settings-icon{display:grid;place-items:center;width:38px;height:38px;border:1px solid rgba(99,243,255,.45);border-radius:9px;color:#7ff6ff;font-size:22px;background:rgba(99,243,255,.07)}.settings-section-btn small{display:block;margin-top:3px;color:#8fa4c4;font-size:10px;font-weight:600}.settings-section-btn b{color:#63f3ff;font-size:23px}
    .stick-settings-panel,.touch-setup-panel{width:min(760px,94vw);max-width:100%;box-sizing:border-box;margin-inline:auto}
    .touch-question{margin:18px 0;padding:15px;border:1px solid rgba(99,243,255,.2);border-radius:14px;background:rgba(4,11,29,.65)}
    .touch-question h3{margin:0 0 5px;color:#fff}.touch-question>p{margin:0 0 13px;font-size:12px}
    .touch-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
    .touch-choice{position:relative;min-height:170px;padding:12px;border:2px solid rgba(112,180,230,.22);border-radius:13px;background:linear-gradient(155deg,rgba(18,34,68,.78),rgba(5,9,25,.96));text-align:left;cursor:pointer;transition:.16s transform,.16s border-color,.16s box-shadow}.touch-choice:hover,.touch-choice:focus-visible{outline:none;transform:translateY(-2px);border-color:rgba(99,243,255,.65)}.touch-choice.active{border-color:#63f3ff;box-shadow:0 0 0 2px rgba(99,243,255,.12),0 0 25px rgba(99,243,255,.14)}.touch-choice strong{display:block;margin-top:9px;color:#fff;font-size:15px}.touch-choice small{display:block;margin-top:4px;color:#a9b9d3;line-height:1.35}
    .touch-choice,.touch-demo,.touch-setup-final,.touch-question,.touch-setup-progress,.touch-choice-grid{box-sizing:border-box;max-width:100%}
    .touch-demo{position:relative;height:96px;overflow:hidden;border:1px solid rgba(99,243,255,.18);border-radius:9px;background:radial-gradient(circle at center,rgba(30,78,122,.2),rgba(1,5,18,.92))}.touch-demo:before{content:"";position:absolute;inset:0;background-image:radial-gradient(circle,rgba(255,255,255,.4) 0 1px,transparent 1.4px);background-size:31px 23px;opacity:.18}.demo-stick,.demo-finger,.demo-ship,.demo-reticle,.demo-shot,.demo-fire-button,.demo-strafe-arrow,.demo-control-label{position:absolute}.demo-stick{width:42px;height:42px;border:2px solid #71efff;border-radius:50%;box-shadow:0 0 12px rgba(99,243,255,.35)}.demo-stick:after{content:"";position:absolute;left:50%;top:50%;width:17px;height:17px;transform:translate(-50%,-50%);border-radius:50%;background:#8df7ff}.demo-finger{width:14px;height:20px;border-radius:8px 8px 5px 5px;background:#f3d8bf;box-shadow:0 2px 5px #000}.demo-floating .demo-finger{left:18%;top:48%;animation:demoFingerFloat 2.2s ease-in-out infinite}.demo-floating .demo-stick{left:12%;top:37%;animation:demoStickFloat 2.2s ease-in-out infinite}.demo-fixed .demo-stick:first-child{left:12%;bottom:13px}.demo-fixed .demo-stick:nth-child(2){right:12%;bottom:13px;border-color:#ff7cc4}.demo-fixed .demo-finger{left:21%;bottom:21px;animation:demoFingerFixed 1.8s ease-in-out infinite}.demo-ship{left:50%;top:50%;width:0;height:0;transform:translate(-50%,-50%);border-left:17px solid #eaffff;border-top:8px solid transparent;border-bottom:8px solid transparent;filter:drop-shadow(0 0 6px #63f3ff);z-index:3}.demo-ship:before{content:"";position:absolute;left:-20px;top:-2px;width:11px;height:4px;background:linear-gradient(90deg,transparent,#63f3ff);filter:drop-shadow(0 0 4px #63f3ff)}.demo-ship:after{content:"";position:absolute;left:14px;top:-1px;width:24px;height:2px;background:#ff9fd6;box-shadow:0 0 7px #ff4fa3;transform-origin:left center;opacity:0;animation:demoMuzzlePulse .72s steps(2,end) infinite}.demo-control-label{bottom:3px;color:#7f96b6;font:800 7px/1 monospace;letter-spacing:.07em;text-transform:uppercase;z-index:4}.demo-modern .demo-control-label.move{left:8%}.demo-modern .demo-control-label.aim{right:7%;color:#ff96d0}.demo-modern .demo-stick{left:7%;bottom:12px}.demo-modern .demo-stick:after{animation:demoModernMoveKnob 3.2s ease-in-out infinite}.demo-modern .demo-stick:nth-of-type(2){left:auto;right:7%;bottom:12px;border-color:#ff7cc4}.demo-modern .demo-stick:nth-of-type(2):after{background:#ff9fd6;animation:demoModernAimKnob 3.2s ease-in-out infinite}.demo-modern .demo-ship{animation:demoShipModern 3.2s ease-in-out infinite}.demo-modern .demo-reticle{left:64%;top:18%;width:13px;height:13px;border:1px solid #ff7cc4;border-radius:50%;box-shadow:0 0 8px rgba(255,79,163,.55);animation:demoReticleModern 3.2s ease-in-out infinite}.demo-modern .demo-strafe-arrow{left:36%;top:69%;width:38px;height:1px;background:#63f3ff;opacity:.55;animation:demoStrafeArrow 3.2s ease-in-out infinite}.demo-modern .demo-strafe-arrow:before,.demo-modern .demo-strafe-arrow:after{content:"";position:absolute;top:-3px;width:7px;height:7px;border-top:1px solid #63f3ff;border-right:1px solid #63f3ff}.demo-modern .demo-strafe-arrow:before{left:-1px;transform:rotate(-135deg)}.demo-modern .demo-strafe-arrow:after{right:-1px;transform:rotate(45deg)}.demo-modern .demo-shot{display:none}.demo-classic .demo-stick{left:9%;bottom:14px}.demo-classic .demo-stick:after{animation:demoClassicKnob 2.8s ease-in-out infinite}.demo-classic .demo-ship{animation:demoShipClassic 2.8s ease-in-out infinite}.demo-classic .demo-ship:after{background:#fff;box-shadow:0 0 7px #fff;animation:demoClassicMuzzle 1.1s steps(2,end) infinite}.demo-classic .demo-shot{display:none}.demo-fire-button{right:9%;bottom:15px;width:43px;height:43px;display:grid;place-items:center;border:2px solid #ff6bae;border-radius:50%;background:radial-gradient(circle,rgba(255,79,163,.4),rgba(60,8,38,.92));color:#fff;font:950 9px/1 monospace;letter-spacing:.05em;box-shadow:0 0 13px rgba(255,79,163,.35);animation:demoFireButton 1.1s ease-in-out infinite}.demo-classic .demo-control-label.move{left:8%}.demo-classic .demo-control-label.fire{right:9%;color:#ff96d0}
    @keyframes demoFingerFloat{0%,100%{transform:translate(0,0)}50%{transform:translate(88px,-27px)}}@keyframes demoStickFloat{0%,100%{transform:translate(0,0);opacity:.25}12%,88%{opacity:1}50%{transform:translate(88px,-27px)}}@keyframes demoFingerFixed{0%,100%{transform:translate(0,0)}50%{transform:translate(14px,-12px)}}
    /* Moderne : le déplacement et l’orientation sont volontairement indépendants. */
    @keyframes demoModernMoveKnob{0%,100%{transform:translate(-50%,-50%) translate(-8px,7px)}35%{transform:translate(-50%,-50%) translate(8px,-7px)}70%{transform:translate(-50%,-50%) translate(-5px,-8px)}}
    @keyframes demoModernAimKnob{0%,100%{transform:translate(-50%,-50%) translate(8px,-7px)}35%{transform:translate(-50%,-50%) translate(-2px,-10px)}70%{transform:translate(-50%,-50%) translate(-9px,4px)}}
    @keyframes demoShipModern{0%,100%{left:43%;top:65%;transform:translate(-50%,-50%) rotate(-24deg)}35%{left:57%;top:43%;transform:translate(-50%,-50%) rotate(-70deg)}70%{left:42%;top:34%;transform:translate(-50%,-50%) rotate(18deg)}}
    @keyframes demoReticleModern{0%,100%{left:61%;top:28%}35%{left:52%;top:11%}70%{left:68%;top:44%}}
    @keyframes demoStrafeArrow{0%,100%{transform:translate(-8px,5px) rotate(-32deg)}35%{transform:translate(13px,-8px) rotate(-32deg)}70%{transform:translate(-4px,-13px) rotate(18deg)}}
    @keyframes demoMuzzlePulse{0%,45%{opacity:0;transform:scaleX(.15)}46%,68%{opacity:1;transform:scaleX(1)}69%,100%{opacity:0;transform:scaleX(1.35)}}
    /* Classique : un stick pilote le nez et la poussée ; FEU reste un bouton. */
    @keyframes demoClassicKnob{0%,100%{transform:translate(-50%,-50%) translate(-7px,-5px)}50%{transform:translate(-50%,-50%) translate(8px,-9px)}}
    @keyframes demoShipClassic{0%,100%{left:45%;top:61%;transform:translate(-50%,-50%) rotate(-22deg)}50%{left:55%;top:39%;transform:translate(-50%,-50%) rotate(24deg)}}
    @keyframes demoClassicMuzzle{0%,35%{opacity:0;transform:scaleX(.2)}36%,58%{opacity:1;transform:scaleX(1)}59%,100%{opacity:0;transform:scaleX(1.35)}}
    @keyframes demoFireButton{0%,52%,100%{transform:scale(1);filter:brightness(1)}58%,72%{transform:scale(.88);filter:brightness(1.65)}}
    .stick-position-wrap{margin-top:13px}.stick-position-editor{position:relative;height:250px;border:2px solid rgba(99,243,255,.3);border-radius:14px;background:linear-gradient(180deg,rgba(5,12,34,.9),rgba(2,5,17,.96));overflow:hidden;touch-action:none}.stick-position-editor:before{content:"APERÇU DE L’ÉCRAN";position:absolute;left:50%;top:12px;transform:translateX(-50%);color:#506884;font:800 9px monospace;letter-spacing:.15em}.stick-position-editor:after{content:"";position:absolute;left:50%;top:0;bottom:0;border-left:1px dashed rgba(255,255,255,.08)}.stick-position-handle{position:absolute;width:70px;height:70px;margin:-35px 0 0 -35px;border:2px solid #63f3ff;border-radius:50%;background:radial-gradient(circle,rgba(99,243,255,.28),rgba(5,22,45,.9));color:#dffcff;font:900 9px monospace;display:grid;place-items:center;z-index:2;touch-action:none;user-select:none;box-shadow:0 0 18px rgba(99,243,255,.2)}.stick-position-handle.aim{border-color:#ff72bd;background:radial-gradient(circle,rgba(255,79,163,.26),rgba(45,5,31,.9));color:#ffe2f1}.stick-position-handle.dragging{transform:scale(1.08);filter:brightness(1.25)}.stick-settings-note{padding:10px 12px;border-left:3px solid #63f3ff;background:rgba(99,243,255,.06);color:#bdd4e9;font-size:11px;line-height:1.45}

    /* ================================================================
       MODE D’ESSAI DES STICKS
       Arène isolée : aucune progression, sauvegarde de partie ou donnée
       de combat n’est modifiée. Seuls les réglages tactiles sont sauvés.
       ================================================================ */
    .stick-test-entry{margin:12px 0;border-color:#63f3ff!important;background:linear-gradient(90deg,rgba(15,107,143,.72),rgba(9,39,83,.88))!important;text-align:center!important}
    #stickTest{padding:8px;background:rgba(0,2,12,.92);backdrop-filter:blur(4px)}
    .stick-test-panel{width:min(760px,98vw);height:min(960px,97vh);padding:12px;overflow:hidden;border:2px solid #1768b5;border-radius:8px;background:linear-gradient(180deg,rgba(2,10,32,.96),rgba(1,5,20,.98));box-shadow:0 0 0 3px rgba(0,13,45,.9),0 0 30px rgba(52,219,255,.16);font-family:"Courier New",ui-monospace,monospace;display:flex;flex-direction:column;gap:9px}
    .stick-test-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.stick-test-head h2{margin:0;font:950 clamp(24px,6vw,42px)/.9 "Courier New",monospace;letter-spacing:-.06em;text-transform:uppercase;text-shadow:3px 3px 0 #10366d}.stick-test-head .eyebrow{margin:0 0 4px;font:900 9px/1 "Courier New",monospace}.stick-test-head .btn{width:auto;flex:0 0 auto}
    .stick-test-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) auto auto;gap:7px;align-items:end;padding:8px;border:1px solid rgba(99,243,255,.22);background:rgba(5,14,35,.76)}
    .stick-test-control{display:grid;gap:4px;color:#8beeff;font:900 8px/1 "Courier New",monospace;letter-spacing:.1em;text-transform:uppercase}.stick-test-control select{width:100%;min-height:38px;padding:7px;border:1px solid #31577d;border-radius:6px;background:#071329;color:#fff;font:900 11px "Courier New",monospace}.stick-test-toolbar .btn{width:auto;min-height:38px;padding:7px 10px;text-align:center;font:900 10px "Courier New",monospace;white-space:nowrap}.stick-test-dash-toggle{display:flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:7px 9px;border:1px solid #31577d;border-radius:6px;background:#071329;color:#fff;font:900 9px "Courier New",monospace;white-space:nowrap}.stick-test-dash-toggle input{accent-color:#63f3ff}
    .stick-test-arena-wrap{position:relative;flex:1;min-height:0;display:grid;place-items:center;overflow:hidden}.stick-test-arena{position:relative;width:min(94vw,70vh,650px);max-width:100%;aspect-ratio:1;overflow:hidden;border:2px solid #27c9ea;border-radius:8px;background:#020611;box-shadow:inset 0 0 40px rgba(26,99,161,.2),0 0 20px rgba(32,197,235,.12);touch-action:none;user-select:none;-webkit-user-select:none}.stick-test-arena.editing{border-color:#ffd166;box-shadow:inset 0 0 40px rgba(255,209,102,.12),0 0 22px rgba(255,209,102,.18)}
    #stickTestCanvas{position:absolute;inset:0;width:100%;height:100%;cursor:default;touch-action:none}.stick-test-hint{position:absolute;left:50%;top:9px;z-index:5;transform:translateX(-50%);max-width:90%;padding:4px 8px;border:1px solid rgba(99,243,255,.28);border-radius:999px;background:rgba(2,8,23,.72);color:#bff8ff;font:900 8px/1.2 "Courier New",monospace;letter-spacing:.06em;text-align:center;pointer-events:none;white-space:nowrap}.stick-test-hint.edit{border-color:#ffd166;color:#ffe39a}
    .test-stick{--test-power:0;position:absolute;width:clamp(82px,22vw,116px);height:clamp(82px,22vw,116px);margin:calc(clamp(82px,22vw,116px)/-2) 0 0 calc(clamp(82px,22vw,116px)/-2);z-index:7;border:2px solid rgba(113,239,255,.72);border-radius:50%;background:radial-gradient(circle,rgba(62,162,203,.22),rgba(3,13,34,.72));box-shadow:inset 0 0 24px rgba(99,243,255,.12),0 0 calc(8px + var(--test-power)*18px) rgba(99,243,255,.28);touch-action:none;opacity:0;pointer-events:none;transition:opacity .08s}.test-stick.visible{opacity:1;pointer-events:auto}.test-stick.aim{border-color:rgba(255,114,189,.8);background:radial-gradient(circle,rgba(191,42,126,.2),rgba(34,4,27,.72));box-shadow:inset 0 0 24px rgba(255,79,163,.1),0 0 calc(8px + var(--test-power)*18px) rgba(255,79,163,.28)}.test-stick-knob{position:absolute;left:50%;top:50%;width:40%;height:40%;transform:translate(-50%,-50%);border:2px solid #bdfbff;border-radius:50%;background:radial-gradient(circle at 35% 30%,#b8fbff,#24739b);box-shadow:0 0 13px rgba(99,243,255,.45);pointer-events:none}.test-stick.aim .test-stick-knob{border-color:#ffd0ea;background:radial-gradient(circle at 35% 30%,#ffc1e4,#8f2167)}.test-stick.editable{border-style:dashed;filter:brightness(1.3)}.test-stick.editable:after{content:"DÉPLACER";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);color:#fff;font:900 7px "Courier New",monospace;text-shadow:0 1px 4px #000}
    .stick-test-action{position:absolute;z-index:8;display:grid;place-items:center;border:2px solid rgba(255,255,255,.35);border-radius:50%;color:#fff;font:950 10px/1 "Courier New",monospace;touch-action:none;user-select:none;-webkit-user-select:none}.stick-test-action.fire{right:5%;bottom:7%;width:68px;height:68px;border-color:#ff72bd;background:radial-gradient(circle,rgba(255,79,163,.46),rgba(55,5,36,.9));box-shadow:0 0 18px rgba(255,79,163,.28)}.stick-test-action.dash{left:50%;bottom:5%;width:58px;height:58px;transform:translateX(-50%);border-color:#9d7cff;background:radial-gradient(circle,rgba(157,124,255,.42),rgba(29,16,76,.92));box-shadow:0 0 18px rgba(157,124,255,.26)}.stick-test-action:active{filter:brightness(1.5);transform:scale(.94)}.stick-test-action.dash:active{transform:translateX(-50%) scale(.94)}.stick-test-action.cooldown{opacity:.42}.stick-test-action.hidden{display:none!important}
    .stick-test-status{min-height:24px;padding:6px 8px;border:1px solid rgba(99,243,255,.16);background:rgba(4,12,29,.7);color:#a9bdd7;font:800 9px/1.35 "Courier New",monospace;text-align:center}.stick-test-status strong{color:#7ff6ff}
    @media(max-width:620px){.stick-test-panel{height:97vh;padding:9px;gap:7px}.stick-test-head h2{font-size:25px}.stick-test-head .eyebrow{font-size:7px}.stick-test-head .btn{padding:7px 9px;font-size:9px}.stick-test-toolbar{grid-template-columns:1fr 1fr;gap:5px;padding:6px}.stick-test-toolbar .btn,.stick-test-dash-toggle{min-height:34px;font-size:8px}.stick-test-control select{min-height:34px;padding:5px;font-size:9px}.stick-test-arena{width:min(96vw,66vh,560px)}.stick-test-status{font-size:8px;padding:4px 6px}.stick-test-hint{top:6px;font-size:7px}.stick-test-action.fire{width:60px;height:60px}.stick-test-action.dash{width:52px;height:52px}}
    @media(max-height:700px){.stick-test-panel{height:98vh}.stick-test-arena{width:min(88vw,60vh,500px)}.stick-test-status{display:none}.stick-test-head h2{font-size:22px}.stick-test-toolbar{padding:4px}}
    /* Assistant de configuration tactile : style harmonisé avec le menu pixel, version compacte sans défilement inutile sur mobile. */
    .touch-setup-panel{width:min(760px,94vw);max-width:100%;max-height:min(94vh,860px);padding:18px 18px 16px;overflow-x:hidden;overflow-y:hidden;border:2px solid #1768b5;border-radius:8px;background:linear-gradient(180deg,rgba(2,10,32,.9),rgba(1,5,20,.96));box-shadow:0 0 0 3px rgba(0,13,45,.9),0 0 26px rgba(52,219,255,.16),inset 0 0 28px rgba(29,91,178,.08);font-family:"Courier New",ui-monospace,monospace;image-rendering:pixelated;box-sizing:border-box;margin-inline:auto}
    .touch-setup-panel .eyebrow{margin:0 0 6px;color:#64f3ff;font:900 clamp(9px,2vw,12px)/1.1 "Courier New",monospace;letter-spacing:.16em;text-transform:uppercase}
    .touch-setup-panel h2,.touch-setup-panel h3,.touch-setup-panel strong,.touch-setup-panel .btn{font-family:"Courier New",ui-monospace,monospace}
    .touch-setup-panel h2{margin:0 0 10px;font-size:clamp(32px,7vw,54px);line-height:.88;letter-spacing:-.06em;text-transform:uppercase;text-shadow:3px 3px 0 #10366d,0 0 16px rgba(99,243,255,.18)}
    .touch-setup-panel h3{margin:0 0 8px;font-size:clamp(18px,4vw,26px);line-height:1.05;letter-spacing:-.03em}
    .touch-setup-panel p{margin:0 0 10px;color:#c4d1e6;font-size:clamp(11px,2.5vw,14px);line-height:1.36}
    .touch-setup-progress{display:flex;gap:6px;margin:8px 0 12px}.touch-setup-progress i{flex:1;height:5px;border-radius:99px;background:rgba(255,255,255,.1)}.touch-setup-progress i.active{background:linear-gradient(90deg,#63f3ff,#9d7cff);box-shadow:0 0 10px rgba(99,243,255,.25)}.touch-setup-step.hidden{display:none!important}
    .touch-setup-actions{display:flex;gap:9px;margin-top:12px;max-width:100%}.touch-setup-actions .btn{flex:1;min-width:0;text-align:center;min-height:46px;font:900 clamp(12px,3vw,16px)/1 "Courier New",monospace;letter-spacing:.03em;text-transform:uppercase;box-sizing:border-box}
    .touch-setup-actions .btn.primary{order:0}.touch-setup-actions .btn:not(.primary){order:1}
    .touch-setup-final{padding:15px 16px;border:1px solid rgba(99,243,255,.25);border-radius:14px;background:rgba(7,17,39,.82);text-align:center}.touch-setup-final strong{display:block;color:#7ff6ff;font-size:18px}.touch-setup-final p{margin:5px 0 0}.touch-inline-status{margin:7px 0 0;color:#83edff;font:800 10px monospace;letter-spacing:.06em}
    /* Message transitoire après la première configuration tactile.
       Il explique l’exception volontaire du niveau 0 sans ajouter une nouvelle
       question à l’assistant. L’écran disparaît automatiquement après 1,45 s. */
    /* =====================================================================
       V5.66 · OUVERTURE CINÉMATIQUE ASTEROIDS — TERMINAL 1979
       ---------------------------------------------------------------------
       Écran noir volontairement dépouillé : le texte est frappé caractère
       après caractère comme sur un ancien terminal. Une fois la dernière
       ligne terminée, le triangle vectoriel arrive depuis le bas à très haute
       vitesse, se verrouille au centre exact de l'arène puis le noir se fond
       sur le vrai niveau 0. Le monde reste figé pendant toute la séquence.
       ===================================================================== */
    #asteroidsPrelude{position:fixed;inset:0;z-index:44;overflow:hidden;pointer-events:none;opacity:0;background:#000;transition:opacity .42s ease}
    #asteroidsPrelude.hidden{display:none!important}
    #asteroidsPrelude.active{opacity:1}
    #asteroidsPrelude.active.reveal-world{opacity:0}
    #asteroidsPrelude:before{content:"";position:absolute;inset:0;z-index:1;background:repeating-linear-gradient(180deg,rgba(255,255,255,.025) 0 1px,transparent 1px 4px),radial-gradient(ellipse at center,transparent 54%,rgba(0,0,0,.7) 100%);opacity:.64;pointer-events:none}
    .asteroids-terminal{position:absolute;left:50%;top:50%;z-index:2;width:min(88vw,720px);transform:translate(-50%,-50%);text-align:center;transition:opacity .22s linear,transform .22s ease}
    #asteroidsPrelude.ship-phase .asteroids-terminal{opacity:0;transform:translate(-50%,-54%) scale(.98)}
    .asteroids-terminal-screen{min-height:12em;display:flex;align-items:center;justify-content:center;color:#fff;font:850 clamp(13px,3vw,21px)/1.75 "Courier New",ui-monospace,monospace;letter-spacing:.12em;text-transform:uppercase;text-shadow:0 0 4px rgba(255,255,255,.85),0 0 14px rgba(115,224,255,.15);white-space:pre-wrap}
    .asteroids-terminal-cursor{display:inline-block;width:.58em;height:1.08em;margin-left:.22em;vertical-align:-.16em;background:#fff;box-shadow:0 0 7px rgba(255,255,255,.8);animation:asteroidsTerminalCursor .66s steps(1,end) infinite}
    @keyframes asteroidsTerminalCursor{50%{opacity:0}}
    .asteroids-cinema-ship{--ship-entry-distance:70vh;position:absolute;z-index:3;left:50%;top:50%;width:clamp(44px,12vw,78px);height:clamp(44px,12vw,78px);opacity:0;transform:translate(-50%,calc(-50% + var(--ship-entry-distance))) scale(.45);filter:drop-shadow(0 0 10px rgba(255,255,255,.75))}
    .asteroids-cinema-ship svg{display:block;width:100%;height:100%;overflow:visible}
    .asteroids-speed-lines{position:absolute;left:50%;top:54%;width:180%;height:min(68vh,620px);transform:translate(-50%,0);opacity:0;background:repeating-linear-gradient(90deg,transparent 0 9%,rgba(255,255,255,.82) 9.5% 10%,transparent 10.5% 21%);mask-image:linear-gradient(to bottom,#000,transparent);-webkit-mask-image:linear-gradient(to bottom,#000,transparent);filter:blur(.6px)}
    #asteroidsPrelude.ship-phase .asteroids-cinema-ship{animation:asteroidsShipWarpIn 1.03s cubic-bezier(.06,.92,.14,1) forwards}
    #asteroidsPrelude.ship-phase .asteroids-speed-lines{animation:asteroidsSpeedLines .9s ease-out forwards}
    @keyframes asteroidsShipWarpIn{0%{opacity:0;transform:translate(-50%,calc(-50% + var(--ship-entry-distance))) scale(.38);filter:blur(5px) drop-shadow(0 0 0 transparent)}12%{opacity:1}68%{opacity:1;transform:translate(-50%,-50%) scale(1.18);filter:blur(0) drop-shadow(0 0 18px #fff)}84%{transform:translate(-50%,-50%) scale(.94)}100%{opacity:1;transform:translate(-50%,-50%) scale(1);filter:drop-shadow(0 0 8px rgba(255,255,255,.9))}}
    @keyframes asteroidsSpeedLines{0%{opacity:0;transform:translate(-50%,8%) scaleY(.45)}12%{opacity:.95}70%{opacity:.55;transform:translate(-50%,-24%) scaleY(1.2)}100%{opacity:0;transform:translate(-50%,-38%) scaleY(1.45)}}
    body.asteroids-cinematic #hud,body.asteroids-cinematic #touch,body.asteroids-cinematic #coinHud,body.asteroids-cinematic #bugCounterBtn,body.asteroids-cinematic #missionIntro{visibility:hidden!important;opacity:0!important;pointer-events:none!important}
    @media(max-width:620px){.asteroids-terminal{width:91vw}.asteroids-terminal-screen{font-size:clamp(12px,4.1vw,17px);line-height:1.72;letter-spacing:.08em;min-height:14em}.asteroids-cinema-ship{width:58px;height:58px}}

    /* =====================================================================
       V5.67 · CINÉMATIQUE DE PILOTAGE MODERNE
       Démonstration non interactive après le prologue Asteroids. Le canvas
       simule les deux sticks sans toucher à la position réelle du joueur.
       ===================================================================== */
    #modernControlsCinema{position:fixed;inset:0;z-index:43;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;background:radial-gradient(circle at 50% 45%,rgba(9,28,58,.965),rgba(0,3,12,.99) 74%);color:#fff;pointer-events:auto;font-family:"Courier New",ui-monospace,monospace}
    #modernControlsCinema.hidden{display:none!important}
    #modernControlsCinema::before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(rgba(88,210,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(88,210,255,.035) 1px,transparent 1px);background-size:42px 42px;mask-image:radial-gradient(circle at center,#000 18%,transparent 88%);-webkit-mask-image:radial-gradient(circle at center,#000 18%,transparent 88%)}
    .modern-controls-cinema-head{position:relative;z-index:2;display:grid;grid-template-columns:58px minmax(0,1fr);align-items:center;gap:12px;width:min(900px,92vw);margin:max(14px,env(safe-area-inset-top)) auto 0;padding:11px 15px;border:2px solid rgba(99,243,255,.3);border-left:4px solid #63f3ff;background:linear-gradient(90deg,rgba(5,19,45,.96),rgba(8,24,53,.88),rgba(3,12,32,.9));box-shadow:0 10px 28px rgba(0,0,0,.35),inset 0 0 18px rgba(99,243,255,.04);text-align:left}
    .modern-controls-pix-mini{display:grid;place-items:center;width:54px;height:54px;border:2px solid #ffd166;background:radial-gradient(circle,#675529,#141007 72%);color:#ffe28a;font-size:31px;line-height:1;box-shadow:0 0 16px rgba(255,209,102,.18);animation:portraitFloat 1.1s steps(2,end) infinite}
    .modern-controls-pix-mini img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;border-radius:1px;pointer-events:none;user-select:none;-webkit-user-drag:none}
    .modern-controls-cinema-copy{min-width:0}.modern-controls-cinema-head small{display:block;color:#ffd166;font:900 clamp(8px,2.1vw,11px)/1 "Courier New",monospace;letter-spacing:.18em;text-transform:uppercase}
    .modern-controls-cinema-head strong{display:block;margin-top:5px;color:#fff;font:950 clamp(17px,4.5vw,29px)/1.05 "Courier New",monospace;text-transform:uppercase;text-shadow:2px 2px 0 #10366d,0 0 14px rgba(99,243,255,.22)}
    .modern-controls-cinema-head p{margin:6px 0 0;max-width:720px;color:#bcd7ec;font:800 clamp(10px,2.6vw,14px)/1.35 "Courier New",monospace}
    #modernControlsCinemaCanvas{position:relative;z-index:1;display:block;width:100%;height:100%;min-height:0;touch-action:none}
    .modern-controls-cinema-foot{position:relative;z-index:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;width:min(760px,92vw);margin:0 auto max(14px,env(safe-area-inset-bottom));padding:0 6px}
    .modern-controls-cinema-step{padding:8px 6px;border:1px solid rgba(91,176,228,.25);background:rgba(4,12,31,.76);color:#687f9f;font:900 clamp(8px,2vw,10px)/1.2 "Courier New",monospace;text-align:center;letter-spacing:.06em;text-transform:uppercase;transition:.2s}
    .modern-controls-cinema-step.active{border-color:#63f3ff;color:#e8fdff;background:rgba(11,54,82,.86);box-shadow:inset 0 0 14px rgba(99,243,255,.09),0 0 12px rgba(99,243,255,.12)}
    #modernControlsStepExtra{display:none}
    #modernControlsCinema.pc-mode .modern-controls-cinema-foot,#modernControlsCinema.gamepad-mode .modern-controls-cinema-foot{grid-template-columns:repeat(4,minmax(0,1fr));width:min(920px,94vw)}
    #modernControlsCinema.pc-mode #modernControlsStepExtra,#modernControlsCinema.gamepad-mode #modernControlsStepExtra{display:block}
    /* La dernière phrase de PIX quitte le bandeau supérieur et vient au centre avant le tutoriel. */
    #bossDialogue.tutorial-briefing{top:50%;width:min(780px,92vw);transform:translate(-50%,-50%);transform-origin:18% 50%;animation:pixTutorialDialogueGrow .34s cubic-bezier(.2,.9,.25,1) both}
    #bossDialogue.tutorial-briefing #bossDialogueBox{grid-template-columns:128px minmax(0,1fr);gap:20px;min-height:164px;padding:18px 22px;border-color:#ffe28a;box-shadow:inset 0 0 0 3px #4d4122,0 0 0 2px #02040d,0 0 30px rgba(255,209,102,.15)}
    #bossDialogue.tutorial-briefing #bossPortrait{width:116px;height:116px;border-color:#ffd166;font-size:66px;background:radial-gradient(circle,#675529,#141007 72%);box-shadow:0 0 22px rgba(255,209,102,.18)}
    #bossDialogue.tutorial-briefing #bossDialogueName{font-size:14px;color:#ffd166}#bossDialogue.tutorial-briefing #bossDialogueText{font-size:clamp(17px,3vw,23px);line-height:1.45}
    @keyframes pixTutorialDialogueGrow{from{opacity:.35;transform:translate(-50%,-50%) scale(.72)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
    body.modern-controls-cinematic #hud,body.modern-controls-cinematic #touch,body.modern-controls-cinematic #coinHud,body.modern-controls-cinematic #bugCounterBtn,body.modern-controls-cinematic #missionIntro{visibility:hidden!important;opacity:0!important;pointer-events:none!important}
    @media(max-width:620px){.modern-controls-cinema-head{grid-template-columns:46px minmax(0,1fr);gap:8px;width:95vw;margin-top:max(8px,env(safe-area-inset-top));padding:8px 9px}.modern-controls-pix-mini{width:42px;height:42px;font-size:25px}.modern-controls-cinema-head strong{font-size:clamp(15px,5vw,22px)}.modern-controls-cinema-head p{font-size:9px}.modern-controls-cinema-foot{width:95vw;gap:4px;margin-bottom:max(8px,env(safe-area-inset-bottom));padding:0}.modern-controls-cinema-step{padding:6px 3px;font-size:7px}#bossDialogue.tutorial-briefing{width:94vw}#bossDialogue.tutorial-briefing #bossDialogueBox{grid-template-columns:92px minmax(0,1fr);gap:12px;min-height:136px;padding:13px 12px}#bossDialogue.tutorial-briefing #bossPortrait{width:84px;height:84px;font-size:48px}#bossDialogue.tutorial-briefing #bossDialogueText{font-size:clamp(14px,4vw,18px)}}

    /* V5.66 · Compteur de bugs flottant.
       La position est pilotée en pixels par JavaScript, mémorisée séparément
       pour le menu et le gameplay et peut être modifiée par simple glisser. */
    #bugCounterBtn{position:fixed;left:9vw;top:88vh;right:auto;bottom:auto;z-index:32;width:62px;height:62px;padding:0;border:2px solid #63f3ff;border-radius:50%;background:radial-gradient(circle,rgba(18,91,126,.96),rgba(2,8,22,.98) 72%);box-shadow:inset 0 0 0 3px rgba(99,243,255,.1),0 4px 0 #03152d,0 0 22px rgba(99,243,255,.28);cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;isolation:isolate;transform:translate(-50%,-50%);transition:filter .12s ease,box-shadow .12s ease,opacity .12s ease}
    #bugCounterBtn:hover,#bugCounterBtn:focus-visible{outline:none;filter:brightness(1.13);border-color:#fff;box-shadow:inset 0 0 0 3px rgba(255,255,255,.12),0 5px 0 #03152d,0 0 28px rgba(99,243,255,.42)}
    #bugCounterBtn:active{filter:brightness(1.2)}
    #bugCounterBtn.dragging{cursor:grabbing;filter:brightness(1.3);box-shadow:inset 0 0 0 3px rgba(255,255,255,.16),0 2px 0 #03152d,0 0 34px rgba(99,243,255,.55)}
    #bugCounterBtn .bug-icon{display:block;width:100%;height:100%;object-fit:contain;border-radius:50%;pointer-events:none;filter:drop-shadow(0 0 5px rgba(99,243,255,.5))}
    #bugCounterBtn strong{position:absolute;right:-7px;bottom:-5px;display:grid;place-items:center;min-width:27px;height:27px;padding:0 5px;border:2px solid #ffcf63;border-radius:999px;background:#180b05;color:#fff;font:950 13px/1 "Courier New",monospace;box-shadow:0 0 12px rgba(255,207,99,.45);pointer-events:none}
    body.startup-gate #bugCounterBtn{display:none!important}
    body.gameplay-active #bugCounterBtn{width:52px;height:52px;opacity:.94}
    body.gameplay-active #bugCounterBtn strong{min-width:23px;height:23px;font-size:11px}
    .pixel-development-callout{margin:12px 0 0;padding:9px 11px;border:2px dashed rgba(255,105,151,.62);background:linear-gradient(90deg,rgba(70,8,35,.72),rgba(8,26,57,.7));color:#ffd7e5;font:800 clamp(8px,2vw,11px)/1.38 "Courier New",monospace;text-align:center;letter-spacing:.025em}.pixel-development-callout strong{color:#fff}.pixel-development-callout b{color:#63f3ff}
    .profile-bug-stat{grid-column:1/-1;border-color:rgba(255,91,135,.35)!important;background:rgba(68,8,31,.28)!important}.profile-bug-stat strong{color:#ff8eaf}
    @media(max-width:700px){#bugCounterBtn{width:56px;height:56px}.pixel-menu-screen{padding-bottom:max(78px,calc(env(safe-area-inset-bottom) + 70px))}body.gameplay-active #bugCounterBtn{width:47px;height:47px}}
    @media(max-width:620px){
      .touch-choice-grid{grid-template-columns:1fr;gap:8px}
      .touch-choice{min-height:142px;padding:10px}
      .touch-choice strong{margin-top:7px;font-size:14px}
      .touch-choice small{margin-top:3px;font-size:11px;line-height:1.28}
      .touch-demo{height:74px}
      .demo-stick{width:36px;height:36px}.demo-stick:after{width:14px;height:14px}
      .demo-fire-button{width:37px;height:37px;font-size:8px}
      .demo-control-label{font-size:6px}
      .stick-position-editor{height:220px}
      .touch-setup-panel{width:min(calc(100vw - max(16px,env(safe-area-inset-left)) - max(16px,env(safe-area-inset-right))),540px);max-width:calc(100vw - max(16px,env(safe-area-inset-left)) - max(16px,env(safe-area-inset-right)));max-height:92vh;padding:14px 12px 12px;box-sizing:border-box;margin-inline:auto}
      .touch-setup-panel .eyebrow{font-size:9px;letter-spacing:.12em}
      .touch-setup-panel h2{margin-bottom:8px;font-size:clamp(27px,10vw,42px)}
      .touch-setup-panel h3{margin-bottom:6px;font-size:clamp(16px,6vw,22px)}
      .touch-setup-panel p{margin-bottom:8px;font-size:12px;line-height:1.28}
      .touch-setup-progress{margin:6px 0 10px}
      .touch-setup-actions{gap:8px;margin-top:10px}
      .touch-setup-actions .btn{min-height:42px;font-size:13px}
      .touch-setup-final{padding:12px 10px}
      .touch-inline-status{font-size:9px}
    }

    /* V5.35 · Une seule jauge visible, remplacée à chaque phase de boss. */
    #bossPhaseLives{display:none!important}
    #bossBar{position:relative;height:18px;margin-top:7px;border:2px solid rgba(255,255,255,.42);border-radius:4px;overflow:hidden;background:linear-gradient(180deg,#250914,#10050b);box-shadow:inset 0 0 10px rgba(0,0,0,.72),0 0 18px rgba(255,69,103,.15)}
    #bossFill{display:block;height:100%;min-width:0;background:linear-gradient(90deg,#ff365f,#ff9d35,#fff06b);box-shadow:0 0 25px #ff4567;transition:width .12s linear}

    #logSecretHotspot{position:fixed;left:50%;top:max(2px,env(safe-area-inset-top));transform:translateX(-50%);width:124px;height:44px;z-index:205;border:0;background:transparent;opacity:1;pointer-events:auto;touch-action:none}
    #logSecretHotspot::after{content:"LOG";position:absolute;left:50%;top:3px;transform:translateX(-50%);padding:2px 8px;border:1px solid rgba(112,224,255,.32);border-radius:0 0 6px 6px;background:rgba(3,12,28,.42);color:rgba(167,235,255,.48);font:700 8px/1 monospace;letter-spacing:.18em}
    #logOverlay{position:fixed;inset:0;z-index:220;background:rgba(2,5,15,.96);padding:18px;display:flex;align-items:center;justify-content:center}
    #logOverlay.hidden{display:none}#logPanel{width:min(920px,96vw);height:min(780px,92vh);border:2px solid #65d9ff;background:#071020;color:#dff8ff;padding:14px;box-shadow:0 0 28px #1688bc;display:flex;flex-direction:column;gap:10px}
    #logText{flex:1;width:100%;resize:none;background:#02050b;color:#bff5ff;border:1px solid #285a77;padding:10px;font:11px/1.35 monospace;white-space:pre;overflow:auto}
    .dev-mission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}.dev-mission-grid select{width:100%;padding:10px;background:#080d1d;color:#fff;border:1px solid #53617a;border-radius:7px}
    .help-grid{display:grid;gap:10px;margin:18px 0}.help-item{display:grid;grid-template-columns:46px 1fr;gap:12px;align-items:center;padding:12px;border:1px solid rgba(74,203,255,.58);background:rgba(5,18,38,.72);clip-path:polygon(8px 0,calc(100% - 8px) 0,100% 8px,100% calc(100% - 8px),calc(100% - 8px) 100%,8px 100%,0 calc(100% - 8px),0 8px)}.help-icon{width:40px;height:40px;display:grid;place-items:center;border:1px solid currentColor;font:900 18px monospace;box-shadow:0 0 12px currentColor}.help-item strong{display:block;color:#fff}.help-item small{display:block;margin-top:3px;color:#b9d8ee;line-height:1.35}.help-note{padding:10px 12px;border-left:3px solid #54dfff;background:rgba(65,205,255,.08);color:#d7f5ff}.score-corrected{color:#ffcf62!important;text-shadow:0 0 10px #ff9f1a}.pickup-label{font:900 8px monospace;text-align:center}
    @media(max-width:700px){.menu-grid{grid-template-columns:1fr}.upgrade-grid{grid-template-columns:1fr}.upgrade-card{min-height:0}.hud-top{padding:7px}.hud-block{min-width:0;padding:7px}.hud-block:last-child{display:none}.objective{max-width:48vw}.panel{padding:24px}.final-score{grid-template-columns:1fr}.dev-upgrades{grid-template-columns:repeat(2,1fr)}#touch{display:flex}}


    /* Interface tactile 2.0 : commandes symétriques, progressives et hors des écrans de choix */
    #touch{
      position:fixed;inset:0;z-index:18;display:none;pointer-events:none;padding:0;
      --stick-size:clamp(120px,30vw,156px);
      --edge-x:max(14px,env(safe-area-inset-left));
      --edge-right:max(14px,env(safe-area-inset-right));
      --edge-bottom:max(14px,env(safe-area-inset-bottom));
    }
    body.touch-enabled #touch:not(.hidden){display:block}
    .touch-side{position:absolute;bottom:var(--edge-bottom);display:block;pointer-events:none}
    .touch-side.move{left:var(--edge-x)}
    .touch-side.aim-side{right:var(--edge-right)}
    .joystick{
      --power:0;--glow-rgb:99,243,255;
      position:relative;width:var(--stick-size);height:var(--stick-size);border:1px solid rgba(120,230,255,.42);
      border-radius:50%;overflow:visible;pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;
      background:
        radial-gradient(circle at center,rgba(116,232,255,.13) 0 14%,transparent 15%),
        radial-gradient(circle,rgba(45,87,120,.30),rgba(5,12,30,.72) 68%);
      box-shadow:inset 0 0 28px rgba(80,220,255,.12),0 0 calc(7px + var(--power)*22px) rgba(var(--glow-rgb),calc(.08 + var(--power)*.24));
      transition:filter .12s,border-color .12s;will-change:filter,box-shadow;
    }
    .joystick.engaged{filter:brightness(calc(1 + var(--power)*.38));border-color:rgba(150,245,255,.72)}
    .joystick:before,.joystick:after{content:"";position:absolute;background:rgba(180,235,255,.16);pointer-events:none}
    .joystick:before{left:15%;right:15%;top:50%;height:1px}
    .joystick:after{top:15%;bottom:15%;left:50%;width:1px}
    .joystick-knob{
      position:absolute;left:50%;top:50%;width:43%;height:43%;transform:translate(-50%,-50%);
      border:2px solid rgba(170,245,255,.82);border-radius:50%;
      background:radial-gradient(circle at 38% 35%,rgba(145,245,255,.84),rgba(27,86,124,.82));
      box-shadow:0 0 22px rgba(80,230,255,.32);pointer-events:none;will-change:transform;
    }
    .joystick.aim{--glow-rgb:255,79,163;border-color:rgba(255,108,181,.52);background:radial-gradient(circle at center,rgba(255,116,194,.12) 0 14%,transparent 15%),radial-gradient(circle,rgba(132,40,102,.27),rgba(5,12,30,.72) 68%)}
    .joystick.aim.engaged{border-color:rgba(255,170,223,.82)}
    .joystick.aim .joystick-knob{border-color:rgba(255,185,229,.9);background:radial-gradient(circle at 38% 35%,rgba(255,157,218,.88),rgba(118,31,91,.84));box-shadow:0 0 22px rgba(255,70,170,.30)}
    .touch-actions{
      position:absolute;left:50%;bottom:var(--edge-bottom);transform:translateX(-50%);display:flex;align-items:end;gap:7px;pointer-events:auto
    }
    .touch-btn{
      width:50px;height:50px;padding:0;border:1px solid rgba(255,255,255,.24);border-radius:50%;
      background:rgba(7,13,31,.76);backdrop-filter:blur(5px);font-size:9px;font-weight:900;letter-spacing:.03em;
      touch-action:none;user-select:none;-webkit-user-select:none;box-shadow:0 5px 18px rgba(0,0,0,.32)
    }
    .touch-btn:active{transform:scale(.94);filter:brightness(1.35)}.touch-btn.fire small{display:block;font-size:6px;line-height:1;margin-top:1px;color:#ffd3e7}.touch-btn.fire.dash-ready{box-shadow:0 0 0 2px rgba(255,209,102,.8),0 0 24px rgba(255,209,102,.5);border-color:#ffd166}
    .touch-btn.boost{background:rgba(118,92,255,.34)}.touch-btn.ability{background:rgba(68,205,255,.29)}
    .touch-pause{position:fixed;right:max(10px,env(safe-area-inset-right));top:max(70px,calc(env(safe-area-inset-top) + 10px));width:44px!important;height:38px!important;border-radius:10px!important;pointer-events:auto;background:rgba(4,9,24,.84)!important}
    /* Ne jamais passer les sticks en display:none pendant un dialogue :
       certains navigateurs Android envoient alors pointercancel et exigent un
       nouveau toucher. Depuis V6.40, le bandeau de dialogue ne gèle plus le gameplay. */
    body.dialogue-open #touch:not(.hidden){display:flex!important}
    #upgrade .panel{padding-bottom:max(24px,env(safe-area-inset-bottom))}
    @media (orientation:landscape){
      #touch{--stick-size:clamp(116px,16vw,138px);--edge-bottom:max(12px,env(safe-area-inset-bottom))}
      .touch-actions{gap:9px}.touch-btn{width:54px;height:54px;font-size:10px}
    }
    @media (orientation:portrait) and (max-width:430px){
      .touch-actions{bottom:calc(var(--edge-bottom) + 2px)}
      .touch-btn{width:47px;height:47px;font-size:8px}
    }

    .screen{z-index:20}
    .stick-meter{position:absolute;left:20%;right:20%;bottom:-11px;height:4px;overflow:hidden;border-radius:99px;background:rgba(255,255,255,.12);pointer-events:none}
    .stick-meter i{display:block;width:100%;height:100%;border-radius:inherit;background:rgba(137,246,255,.9);transform:scaleX(var(--power));transform-origin:left center;box-shadow:0 0 8px rgba(99,243,255,.65)}
    .joystick.aim .stick-meter i{background:rgba(255,128,202,.94);box-shadow:0 0 8px rgba(255,79,163,.7)}



    /* BUILD COMPLETE-SYSTEMS-V5.1 : sticks flottants stables sous Android */
    #dashUnlock .panel{max-width:620px;text-align:center}
    #dashUnlock .dash-demo{margin:22px auto;padding:18px;border:1px solid rgba(99,243,255,.28);border-radius:14px;background:rgba(6,14,34,.72)}
    #dashUnlock .dash-sequence{display:flex;align-items:center;justify-content:center;gap:9px;margin:14px 0;font-weight:950;color:var(--cyan)}
    #dashUnlock .dash-dot{display:grid;place-items:center;width:54px;height:54px;border:1px solid rgba(255,255,255,.24);border-radius:50%;background:rgba(255,255,255,.05)}
    #dashUnlock .dash-arrow{font-size:22px;color:var(--pink)}
    #touch .touch-side{position:fixed;inset:0;pointer-events:none}
    #touch .joystick{position:fixed;left:0;top:0;opacity:0;transform:scale(.82);pointer-events:none;transition:opacity .08s,transform .08s}
    #touch .joystick.floating-active{opacity:1;transform:scale(1)}
    #touch .joystick.stick-linger{opacity:.48;transform:scale(.96);filter:saturate(.78);transition:opacity .18s,transform .18s}
    #touch .joystick.dash-flash{animation:dashStickPulse .18s ease-out}
    @keyframes dashStickPulse{0%{filter:brightness(2.1);transform:scale(1.13)}100%{filter:brightness(1);transform:scale(1)}}
    #touch .touch-actions{left:50%;transform:translateX(-50%)}
    #touch .touch-btn.boost{display:none!important}
    .touch-btn.legacy-fire{display:none;background:rgba(255,72,137,.38);box-shadow:0 0 24px rgba(255,72,137,.2)}
    body.touch-classic #aimJoystick{display:none!important}
    body.touch-classic #touchFire.touch-btn.legacy-fire{display:flex!important;flex-direction:column;align-items:center;justify-content:center;width:68px;height:68px;font-size:12px;visibility:visible!important;opacity:1!important}
    body.touch-classic #touch .touch-actions{position:fixed;left:auto;right:max(18px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));transform:none;display:flex;z-index:3}
    body.touch-classic #touch{justify-content:flex-start}
    body.touch-modern .touch-btn.legacy-fire{display:none!important}
    #touchDash{display:none}
    body.touch-dash-button #touch #touchDash{display:block!important}
    #touchDash:disabled{opacity:.34;filter:grayscale(.65);pointer-events:none}
    body.fixed-sticks #touch .joystick{opacity:1;transform:scale(1);pointer-events:auto}
    body.fixed-sticks #touch .joystick.stick-linger{opacity:1;transform:scale(1);filter:none}
    body.fixed-sticks #touch .joystick:not(.engaged){filter:saturate(.9);}
    body.floating-sticks #touch .joystick{pointer-events:none}
    body.player-dialogue #bossPortrait{border-color:#f5f5f5;background:radial-gradient(circle,#394050,#090b12 72%);color:#fff!important}
    body.player-dialogue #bossDialogueName{color:#f4f7ff}
    body:not(.touch-enabled) #touch{display:none!important}
    /* Empêche Chrome/Brave Android de transformer le glissement du stick en défilement ou geste navigateur. */
    html,body,#game,#touch{touch-action:none!important;overscroll-behavior:none!important}
    #game{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}

  

    /* BUILD COMPLETE-SYSTEMS-V5.1 · Boss phases, PIX, Overclock, Vector Lock, white-heart system */
    #heartHud{display:flex;align-items:center;gap:8px;margin-top:8px;padding-top:7px;border-top:1px solid rgba(255,255,255,.08)}
    .heart-progress-icon{position:relative;width:34px;height:31px;flex:0 0 auto;filter:drop-shadow(0 0 7px rgba(255,255,255,.18))}
    .heart-progress-icon svg{display:block;width:100%;height:100%;overflow:visible}
    .heart-progress-icon .heart-segment{fill:rgba(255,255,255,.055);stroke:rgba(255,255,255,.12);stroke-width:.8;transition:fill .18s,filter .18s}
    .heart-progress-icon .heart-segment.filled{fill:#fff;filter:drop-shadow(0 0 4px #fff)}
    .heart-progress-icon .heart-outline{fill:none;stroke:rgba(255,255,255,.82);stroke-width:1.7;stroke-linejoin:round}
    .heart-progress-icon .heart-divider{stroke:rgba(2,3,10,.82);stroke-width:1.25;pointer-events:none}
    #heartPartsText{font-size:10px;color:#dce5f7;letter-spacing:.08em;text-transform:uppercase}
    #surHeartHud{display:flex;gap:4px;margin-left:auto}.surheart-dot{width:15px;height:15px;display:grid;place-items:center;border:1px solid #ff5575;border-radius:50%;color:#fff;font-size:9px;box-shadow:0 0 8px rgba(255,70,105,.55)}
    #overclock .panel{width:min(980px,96vw)}
    .overclock-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(205px,1fr));gap:10px;margin:20px 0;max-height:58vh;overflow:auto;padding:4px}
    .overclock-card{position:relative;padding:14px;border:1px solid rgba(255,209,102,.42);border-radius:12px;background:linear-gradient(155deg,rgba(60,45,15,.75),rgba(12,12,24,.96));text-align:left;cursor:pointer;transition:.15s}
    .overclock-card:hover,.overclock-card:focus-visible{outline:none;transform:translateY(-3px);border-color:#ffe795;box-shadow:0 0 28px rgba(255,209,102,.15)}
    .overclock-card:disabled{opacity:.52;cursor:wait;transform:none!important;box-shadow:none!important;filter:saturate(.55)}
    #overclock.input-locked:after{content:"ANALYSE DES SYSTÈMES…";position:fixed;left:50%;bottom:9vh;transform:translateX(-50%);padding:8px 13px;border:1px solid rgba(255,209,102,.45);border-radius:999px;background:rgba(10,8,20,.88);color:#ffe59a;font:900 10px monospace;letter-spacing:.12em;pointer-events:none}
    #upgrade.input-locked .upgrade-card{opacity:.58;cursor:wait;transform:none!important;pointer-events:none}
    #upgrade.input-locked:after{content:"SYNCHRONISATION DES MODULES…";position:fixed;left:50%;bottom:8vh;transform:translateX(-50%);padding:8px 13px;border:1px solid rgba(99,243,255,.36);border-radius:999px;background:rgba(5,10,24,.9);color:#bff9ff;font:900 10px monospace;letter-spacing:.11em;pointer-events:none}
    .overclock-card .oc-badge{position:absolute;right:9px;top:8px;padding:3px 6px;border:1px solid #ffd166;border-radius:6px;color:#ffd166;font:900 9px monospace;letter-spacing:.08em}
    .overclock-card h3{margin:5px 0 6px;font-size:15px}.overclock-card p{margin:0;font-size:11px;line-height:1.45}.overclock-card strong{color:#ffe89e}
    .upgrade-card.overclocked{border-color:#ffd166;box-shadow:0 0 22px rgba(255,209,102,.16)}
    .upgrade-card.overclocked:after{content:"OC";position:absolute;right:9px;top:8px;color:#ffd166;font:900 10px monospace}
    #tutorialHud{position:fixed;z-index:18;left:50%;top:76px;transform:translateX(-50%);width:min(680px,92vw);padding:11px 15px;border:1px solid rgba(99,243,255,.38);border-radius:10px;background:rgba(3,8,23,.88);text-align:center;pointer-events:none;font:800 12px/1.45 ui-monospace,monospace;letter-spacing:.04em;box-shadow:0 10px 34px #000}
    #tutorialHud strong{display:block;color:#7ff6ff;font-size:15px;margin-bottom:3px}
    #lockStatus{position:fixed;left:50%;bottom:72px;transform:translateX(-50%);z-index:7;padding:5px 10px;border:1px solid rgba(99,243,255,.25);border-radius:99px;background:rgba(3,8,22,.65);font:800 9px monospace;letter-spacing:.1em;color:#9cefff;pointer-events:none}
    #bossPhaseTag{position:fixed;left:50%;bottom:49px;transform:translateX(-50%);z-index:7;color:#ffd98a;font:900 9px monospace;letter-spacing:.12em;text-transform:uppercase;pointer-events:none;text-shadow:0 2px 8px #000}
    body.pix-dialogue #bossPortrait{border-color:#ffd166;background:radial-gradient(circle,#675529,#141007 72%);color:#ffe28a!important}
    body.pix-dialogue #bossDialogueName{color:#ffd166}
    #missionTimer{position:fixed;left:50%;top:92px;z-index:9;transform:translateX(-50%);min-width:148px;padding:8px 18px 10px;border:1px solid rgba(126,239,255,.42);border-radius:14px;background:linear-gradient(180deg,rgba(6,13,34,.9),rgba(2,5,17,.88));box-shadow:0 10px 30px rgba(0,0,0,.45),0 0 22px rgba(99,243,255,.1);text-align:center;pointer-events:none;backdrop-filter:blur(6px)}
    #missionTimerLabel{display:block;color:#83edff;font:900 9px/1 ui-monospace,monospace;letter-spacing:.2em;text-transform:uppercase}
    #missionTimerText{display:block;margin-top:4px;color:#fff;font:950 clamp(30px,5vw,48px)/.95 ui-monospace,"Courier New",monospace;letter-spacing:-.06em;text-shadow:0 0 16px rgba(99,243,255,.45)}
    #missionTimer.warning{border-color:rgba(255,209,102,.72);box-shadow:0 10px 30px rgba(0,0,0,.45),0 0 24px rgba(255,209,102,.18)}
    #missionTimer.warning #missionTimerLabel,#missionTimer.warning #missionTimerText{color:#ffe08a;text-shadow:0 0 16px rgba(255,209,102,.42)}
    #missionTimer.urgent{border-color:rgba(255,85,109,.88);animation:missionTimerPulse .48s ease-in-out infinite alternate}
    #missionTimer.urgent #missionTimerLabel,#missionTimer.urgent #missionTimerText{color:#ff8b9e;text-shadow:0 0 18px rgba(255,85,109,.58)}
    @keyframes missionTimerPulse{from{transform:translateX(-50%) scale(1)}to{transform:translateX(-50%) scale(1.045)}}
    /* Bloc d’aide dupliqué supprimé en V5.40 : définition unique conservée plus haut. */
    @media(max-width:700px){#heartHud{gap:5px}.heart-progress-icon{width:29px;height:27px}#heartPartsText{font-size:8px}#bossPhaseTag{bottom:35px}.overclock-grid{grid-template-columns:1fr}.overclock-card{padding:12px}#missionTimer{top:78px;min-width:126px;padding:7px 14px 9px}#missionTimerText{font-size:34px}}


    .online-mini{margin:10px 0 0;padding:10px 12px;border:1px solid rgba(99,243,255,.14);border-radius:10px;background:rgba(0,0,0,.16);color:#9facc4;font-size:11px;line-height:1.45}.online-mini strong{color:#dffcff}.online-mini.connected{border-color:rgba(111,255,213,.34);color:#9debcf}.online-mini.error{border-color:rgba(255,85,109,.4);color:#ff9bad}
    .online-form{display:grid;gap:12px;margin:20px 0}.online-field{display:grid;gap:6px;text-align:left;color:#aebad0;font-size:12px;font-weight:750}.online-field input{width:100%;padding:12px 13px;border:1px solid #43516d;border-radius:9px;background:#070c1d;color:#fff;font:inherit;outline:none}.online-field input:focus{border-color:var(--cyan);box-shadow:0 0 0 3px rgba(99,243,255,.08)}
    .online-actions{display:flex;gap:9px;flex-wrap:wrap}.online-actions .btn{flex:1;min-width:150px}.online-profile-card{margin:18px 0;padding:16px;border:1px solid rgba(111,255,213,.26);border-radius:14px;background:rgba(19,44,49,.35);text-align:left}.online-profile-card h3{margin:0 0 10px}.online-code{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;border:1px dashed rgba(255,209,102,.5);border-radius:9px;background:rgba(38,27,5,.42)}.online-code code{font-size:clamp(12px,2.8vw,16px);color:#ffe29b;word-break:break-all}.online-warning{font-size:11px;color:#ffda87}
    .cloud-status{min-height:22px;margin:9px 0;color:#9fadca;font-size:12px}.cloud-status.ok{color:#80ffd8}.cloud-status.error{color:#ff8799}.cloud-status.busy{color:#ffe59b}
    .leaderboard{margin-top:20px;overflow:hidden;border:1px solid rgba(255,255,255,.1);border-radius:12px}.leaderboard-head,.leaderboard-row{display:grid;grid-template-columns:42px minmax(100px,1fr) 84px 62px 54px;gap:8px;align-items:center;padding:9px 11px}.leaderboard-head{background:rgba(99,243,255,.08);color:#9eefff;font-size:10px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.leaderboard-row{border-top:1px solid rgba(255,255,255,.06);font-size:12px}.leaderboard-row.me{background:rgba(255,209,102,.08)}.leaderboard-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.leaderboard-empty{padding:20px;color:#8794ac;text-align:center;font-size:12px}
    @media(max-width:540px){.leaderboard-head,.leaderboard-row{grid-template-columns:30px minmax(82px,1fr) 60px 40px 42px;padding:8px 5px}.online-actions .btn{min-width:120px}.online-code{align-items:flex-start;flex-direction:column}}
    .profile-icons{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}.profile-icon-choice{min-height:48px;border:1px solid #43516d;background:#070c1d;color:#b8dfff;font-size:23px;border-radius:9px}.profile-icon-choice.active{border-color:#63f3ff;box-shadow:0 0 0 2px rgba(99,243,255,.18),0 0 18px rgba(99,243,255,.18);color:#fff}.profile-symbol{display:inline-grid;place-items:center;width:30px;height:30px;margin-right:6px;color:#7ef5ff}.profile-id-big{font:900 clamp(26px,7vw,42px)/1 monospace;color:#ffe29b;letter-spacing:.18em}.cloud-first-run{border:1px solid rgba(99,243,255,.22);background:rgba(8,18,40,.78);padding:12px;border-radius:12px;margin:12px 0}.cloud-first-run strong{color:#dffcff}
  
    /* ===== MENU PIXEL BATTLE V5.13 ===== */
    #menu.pixel-menu-screen{padding:10px;background:rgba(0,2,12,.18);backdrop-filter:none;overflow:auto;align-items:start}
    .pixel-menu-panel{position:relative;width:min(620px,90vw);max-height:none;margin:12px auto 30px;padding:18px 22px 15px;overflow:visible;border:2px solid #1768b5;border-radius:4px;background:linear-gradient(180deg,rgba(2,10,32,.62),rgba(1,5,20,.72));box-shadow:0 0 0 3px rgba(0,13,45,.9),0 0 35px rgba(52,219,255,.18),inset 0 0 35px rgba(29,91,178,.09);backdrop-filter:blur(1.5px);font-family:"Courier New",ui-monospace,monospace;image-rendering:pixelated}
    .pixel-menu-panel:before,.pixel-menu-panel:after{content:"";position:absolute;width:18px;height:18px;border-color:#65f5ff;pointer-events:none}.pixel-menu-panel:before{left:-4px;top:-4px;border-left:4px solid;border-top:4px solid}.pixel-menu-panel:after{right:-4px;bottom:-4px;border-right:4px solid;border-bottom:4px solid}
    .pixel-menu-header{text-align:center}.pixel-eyebrow{display:flex;align-items:center;justify-content:center;gap:12px;margin:0 0 13px;color:#64f3ff;font:900 clamp(9px,2.4vw,14px)/1.2 "Courier New",monospace;letter-spacing:.12em;text-shadow:0 0 10px #13bdda}.pixel-eyebrow:before,.pixel-eyebrow:after{content:"";width:70px;height:3px;background:#1fcfea;box-shadow:0 0 8px #16bad3}
    .pixel-logo{margin:0;color:#fff;font-family:"Courier New",monospace;font-size:clamp(39px,10.8vw,78px);line-height:.82;letter-spacing:-.09em;text-shadow:3px 3px 0 #1f7eca,6px 6px 0 #073d79,0 0 22px rgba(99,243,255,.32)}.pixel-logo span{margin-top:15px;color:#c5ddff;font-size:clamp(10px,2.5vw,16px);letter-spacing:.21em;text-shadow:0 0 10px #1768b5}
    .pixel-menu-actions{display:grid;gap:8px;margin-top:18px}.pixel-menu-btn{position:relative;display:grid;grid-template-columns:46px 1fr 18px;align-items:center;min-height:58px;padding:8px 12px;border:3px solid #1768b5;border-radius:3px;background:linear-gradient(180deg,rgba(7,27,70,.88),rgba(2,12,40,.9));box-shadow:inset 0 0 0 2px #061a43,0 4px 0 #03132f,0 0 14px rgba(24,111,206,.22);font:900 clamp(13px,3.4vw,20px)/1.1 "Courier New",monospace;text-align:left;letter-spacing:-.04em}.pixel-menu-btn:hover,.pixel-menu-btn:focus-visible{transform:translateY(-2px);border-color:#63f3ff;background:linear-gradient(180deg,rgba(11,57,103,.94),rgba(3,21,56,.94));box-shadow:inset 0 0 0 2px #0b4075,0 5px 0 #02112c,0 0 25px rgba(99,243,255,.3)}.pixel-menu-btn.primary{color:#fff;border-color:#63f3ff;background:linear-gradient(90deg,rgba(0,161,199,.78),rgba(7,78,133,.88));box-shadow:inset 0 0 0 2px #087ca6,0 4px 0 #064d7f,0 0 28px rgba(99,243,255,.35)}.pixel-menu-btn b{color:#34ccff;font-size:27px}.menu-icon{display:grid;place-items:center;width:36px;height:36px;color:#63f3ff;font-size:24px;text-shadow:0 0 12px currentColor}.start-icon{color:#fff;font-size:32px;animation:pixelStartPulse 1.2s steps(3,end) infinite}.trophy-icon{color:#ffd166}
    @keyframes pixelStartPulse{50%{transform:scale(1.16) rotate(12deg);filter:brightness(1.5)}}
    .pixel-save-strip{margin:10px 0 9px;padding:7px 9px;border:2px solid #0b4b83;border-radius:2px;background:rgba(1,8,28,.78);color:#46e8ff;font:700 clamp(9px,2.5vw,13px)/1.25 "Courier New",monospace;text-align:center}.pixel-save-strip span{font-size:19px;margin-right:7px}
    .pixel-main-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px}.pixel-stat-card{display:flex;align-items:center;gap:9px;min-height:74px;padding:9px;border:3px solid #165ba6;background:rgba(2,10,34,.88);box-shadow:inset 0 0 0 2px #071a46,0 3px 0 #03122f}.pixel-stat-card .pixel-stat-icon{display:grid;place-items:center;width:44px;height:44px;color:#55efff;font-size:33px;text-shadow:0 0 15px currentColor}.pixel-stat-card small{display:block;color:#5df4ff;font:900 clamp(9px,2.5vw,13px)/1 "Courier New",monospace;letter-spacing:.06em}.pixel-stat-card strong{display:block;margin-top:4px;color:#fff;font:900 clamp(24px,6vw,39px)/.9 "Courier New",monospace;text-shadow:3px 3px 0 #123d7b}.level-card small,.level-card .pixel-stat-icon{color:#b56cff}
    .pixel-bottom-stats{display:grid;grid-template-columns:repeat(3,1fr);margin-top:8px;padding:7px 4px;border:3px solid #15569a;background:rgba(2,10,32,.88);box-shadow:inset 0 0 0 2px #06183d}.pixel-bottom-stats>div{display:grid;grid-template-columns:36px 1fr;grid-template-rows:auto auto;align-items:center;padding:2px 8px;border-right:2px dotted rgba(83,186,255,.42)}.pixel-bottom-stats>div:last-child{border-right:0}.mini-icon{grid-row:1/3;color:#59dfff;font-size:29px;text-shadow:0 0 10px currentColor}.mini-icon.crystal{color:#a66cff}.mini-icon.ship{color:#44f1ff}.pixel-bottom-stats small{color:#77dfff;font:700 clamp(7px,2vw,11px)/1.15 "Courier New",monospace}.pixel-bottom-stats strong{color:#fff;font:900 clamp(16px,4vw,26px)/1 "Courier New",monospace}
    .pixel-boot{margin:9px 0 0;color:#70ffcf!important;font:700 9px/1.2 "Courier New",monospace!important;text-align:center;letter-spacing:.04em}.pixel-footer{margin-top:7px;color:#42dcff;text-align:center;font:900 clamp(9px,2.4vw,13px)/1 "Courier New",monospace;letter-spacing:.12em;text-shadow:0 0 10px #168aca}
    #devSecretHotspot{position:fixed;right:0;bottom:0;z-index:80;width:76px;height:76px;border:0;background:transparent;opacity:.01;cursor:default}#devSecretBtn{position:fixed;right:14px;bottom:14px;z-index:81;width:64px;height:64px;padding:4px;border:3px solid #c06cff;border-radius:5px;background:linear-gradient(145deg,rgba(54,13,92,.96),rgba(15,4,45,.98));color:#f1c8ff;box-shadow:inset 0 0 0 2px #5b218e,0 0 24px #a041e9;cursor:pointer;font-family:"Courier New",monospace;animation:secretLabReveal .28s steps(3,end)}#devSecretBtn span{display:block;font-size:32px;line-height:.8}#devSecretBtn small{display:block;margin-top:5px;font-size:8px;font-weight:900;letter-spacing:.08em}@keyframes secretLabReveal{from{transform:scale(0) rotate(-20deg)}to{transform:scale(1)}}
    /* Bloc d’aide dupliqué supprimé en V5.40 : définition unique conservée plus haut. */
    @media(max-width:700px){#menu.pixel-menu-screen{padding:4px}.pixel-menu-panel{width:90vw;margin-top:10px;padding:13px 10px 11px}.pixel-eyebrow{margin-bottom:9px}.pixel-eyebrow:before,.pixel-eyebrow:after{width:24px}.pixel-menu-actions{margin-top:14px;gap:7px}.pixel-menu-btn{grid-template-columns:36px 1fr 12px;min-height:52px;padding:6px 9px}.menu-icon{width:30px;height:30px;font-size:20px}.start-icon{font-size:27px}.pixel-save-strip{margin:8px 0 7px;padding:6px 7px}.pixel-main-stats{gap:6px}.pixel-stat-card{gap:4px;min-height:64px;padding:6px}.pixel-stat-card .pixel-stat-icon{width:32px;height:32px;font-size:25px}.pixel-bottom-stats{margin-top:6px;padding:6px 3px}.pixel-bottom-stats>div{grid-template-columns:24px 1fr;padding:1px 3px}.mini-icon{font-size:19px}.pixel-footer{margin-top:6px;margin-bottom:3px}}


    /* ===== MENU PIXEL CENTRÉ & MINI V5.13.2 ===== */
    #menu.pixel-menu-screen{
      display:grid;
      place-items:center;
      align-items:center;
      justify-items:center;
      padding:12px;
      overflow:hidden;
    }
    .pixel-menu-panel{
      width:min(520px,82vw);
      max-height:94vh;
      margin:0;
      padding:13px 16px 11px;
      overflow:auto;
      scrollbar-width:none;
      background:linear-gradient(180deg,rgba(2,10,32,.54),rgba(1,5,20,.64));
    }
    .pixel-menu-panel::-webkit-scrollbar{display:none}
    .pixel-eyebrow{gap:8px;margin-bottom:8px;font-size:clamp(8px,1.9vw,11px)}
    .pixel-eyebrow:before,.pixel-eyebrow:after{width:48px;height:2px}
    .pixel-logo{font-size:clamp(32px,8.4vw,61px)}
    .pixel-logo span{margin-top:10px;font-size:clamp(8px,1.9vw,12px)}
    .pixel-menu-actions{gap:6px;margin-top:12px}
    .pixel-menu-btn{
      grid-template-columns:36px 1fr 14px;
      min-height:46px;
      padding:6px 9px;
      border-width:2px;
      font-size:clamp(11px,2.65vw,16px);
    }
    .pixel-menu-btn b{font-size:21px}
    .menu-icon{width:29px;height:29px;font-size:19px}
    .start-icon{font-size:24px}
    .pixel-save-strip{margin:7px 0 6px;padding:5px 7px;font-size:clamp(7px,1.85vw,10px)}
    .pixel-save-strip span{font-size:15px;margin-right:4px}
    .pixel-main-stats{gap:6px}
    .pixel-stat-card{min-height:56px;padding:5px 7px;border-width:2px}
    .pixel-stat-card .pixel-stat-icon{width:29px;height:29px;font-size:22px}
    .pixel-stat-card small{font-size:clamp(7px,1.8vw,10px)}
    .pixel-stat-card strong{font-size:clamp(19px,4.7vw,30px)}
    .pixel-bottom-stats{margin-top:5px;padding:5px 2px;border-width:2px}
    .pixel-bottom-stats>div{grid-template-columns:22px 1fr;padding:1px 4px}
    .mini-icon{font-size:17px}
    .pixel-bottom-stats small{font-size:clamp(6px,1.45vw,8px)}
    .pixel-bottom-stats strong{font-size:clamp(13px,3vw,19px)}
    .pixel-boot{margin-top:5px;font-size:7px!important}
    .pixel-footer{margin-top:4px;margin-bottom:0;font-size:clamp(7px,1.8vw,10px)}
    /* Bloc d’aide dupliqué supprimé en V5.40 : définition unique conservée plus haut. */
    @media(max-width:700px){
      #menu.pixel-menu-screen{padding:8px}
      .pixel-menu-panel{width:82vw;max-height:92vh;margin:0;padding:10px 9px 8px}
      .pixel-eyebrow{margin-bottom:6px}
      .pixel-eyebrow:before,.pixel-eyebrow:after{width:18px}
      .pixel-menu-actions{margin-top:10px;gap:5px}
      .pixel-menu-btn{grid-template-columns:30px 1fr 10px;min-height:42px;padding:5px 7px}
      .menu-icon{width:25px;height:25px;font-size:17px}
      .start-icon{font-size:21px}
      .pixel-save-strip{margin:5px 0;padding:4px 5px}
      .pixel-stat-card{min-height:50px;padding:4px}
      .pixel-stat-card .pixel-stat-icon{width:25px;height:25px;font-size:19px}
      .pixel-bottom-stats{margin-top:4px;padding:4px 2px}
      .pixel-bottom-stats>div{grid-template-columns:18px 1fr;padding:0 2px}
      .mini-icon{font-size:15px}
      .pixel-footer{margin-top:3px}
    }
    @media(max-height:760px){
      .pixel-menu-panel{transform:scale(.9);transform-origin:center center;max-height:106vh}
    }

    /* ===== AJUSTEMENT ÉQUILIBRÉ V5.13.3 ===== */
    .pixel-menu-panel{
      width:min(570px,88vw);
      padding:17px 19px 15px;
    }
    .pixel-eyebrow{margin-bottom:10px;font-size:clamp(9px,2.15vw,12px)}
    .pixel-logo{font-size:clamp(36px,9.2vw,67px)}
    .pixel-logo span{margin-top:12px;font-size:clamp(9px,2.1vw,13px)}
    .pixel-menu-actions{gap:8px;margin-top:15px}
    .pixel-menu-btn{
      grid-template-columns:40px 1fr 15px;
      min-height:53px;
      padding:7px 10px;
      font-size:clamp(12px,2.95vw,18px);
    }
    .menu-icon{width:32px;height:32px;font-size:21px}
    .start-icon{font-size:27px}
    .pixel-save-strip{margin:9px 0 8px;padding:6px 8px;font-size:clamp(8px,2.05vw,11px)}
    .pixel-main-stats{gap:8px}
    .pixel-stat-card{min-height:64px;padding:7px 8px}
    .pixel-stat-card .pixel-stat-icon{width:34px;height:34px;font-size:25px}
    .pixel-stat-card small{font-size:clamp(8px,2vw,11px)}
    .pixel-stat-card strong{font-size:clamp(22px,5.25vw,34px)}
    .pixel-bottom-stats{margin-top:7px;padding:6px 3px}
    .pixel-bottom-stats>div{grid-template-columns:25px 1fr;padding:2px 5px}
    .mini-icon{font-size:19px}
    .pixel-bottom-stats small{font-size:clamp(6px,1.65vw,9px)}
    .pixel-bottom-stats strong{font-size:clamp(15px,3.35vw,21px)}
    .pixel-boot{margin-top:7px;font-size:8px!important}
    .pixel-footer{margin-top:6px;font-size:clamp(8px,2vw,11px)}
    /* Bloc d’aide dupliqué supprimé en V5.40 : définition unique conservée plus haut. */
    @media(max-width:700px){
      .pixel-menu-panel{width:91vw;max-height:95vh;padding:14px 12px 12px}
      .pixel-eyebrow{margin-bottom:8px}
      .pixel-eyebrow:before,.pixel-eyebrow:after{width:25px}
      .pixel-menu-actions{margin-top:13px;gap:7px}
      .pixel-menu-btn{grid-template-columns:35px 1fr 12px;min-height:49px;padding:6px 9px}
      .menu-icon{width:29px;height:29px;font-size:19px}
      .start-icon{font-size:24px}
      .pixel-save-strip{margin:7px 0 6px;padding:5px 6px}
      .pixel-stat-card{min-height:59px;padding:6px}
      .pixel-stat-card .pixel-stat-icon{width:30px;height:30px;font-size:22px}
      .pixel-bottom-stats{margin-top:6px;padding:5px 2px}
      .pixel-bottom-stats>div{grid-template-columns:22px 1fr;padding:1px 3px}
      .mini-icon{font-size:17px}
      .pixel-footer{margin-top:5px}
    }
    @media(max-height:760px){
      .pixel-menu-panel{transform:scale(.96);max-height:100vh}
    }

  
    /* V5.15 · Écran mutations compact, entièrement visible sur mobile */
    #upgrade{overflow:hidden;padding:8px}
    #upgrade .panel{width:min(760px,96vw);max-height:96dvh;overflow:hidden;padding:18px 20px;border-color:rgba(70,220,255,.72);box-shadow:0 0 34px rgba(0,190,255,.16);background:linear-gradient(165deg,rgba(4,13,31,.97),rgba(3,7,19,.985))}
    #upgrade .panel>.eyebrow{text-align:center;margin:0 0 4px;color:#42edff}
    #upgrade .panel>h2{text-align:center;margin:0;font-size:clamp(28px,5.8vw,54px);line-height:1.02;text-shadow:0 0 16px rgba(255,255,255,.12)}
    #upgrade .panel>p:not(.eyebrow){text-align:center;margin:8px auto 10px;max-width:650px;font-size:clamp(11px,2.5vw,15px);line-height:1.35;color:#bdc7db}
    #upgrade .upgrade-grid{grid-template-columns:1fr;gap:9px;margin-top:10px}
    #upgrade .upgrade-card{position:relative;display:grid;grid-template-columns:84px minmax(0,1fr);grid-template-rows:auto auto auto;column-gap:14px;align-items:center;min-height:0;padding:12px 14px;border:1.5px solid rgba(45,218,255,.7);border-radius:12px;background:linear-gradient(120deg,rgba(12,39,69,.82),rgba(5,11,27,.96));box-shadow:inset 0 0 24px rgba(0,160,255,.06),0 0 12px rgba(0,190,255,.1)}
    #upgrade .upgrade-card:hover,#upgrade .upgrade-card:focus-visible{transform:translateY(-2px);box-shadow:0 0 24px rgba(55,213,255,.2)}
    #upgrade .upgrade-icon{grid-row:1/4;display:grid;place-items:center;width:72px;height:72px;border:1px solid rgba(74,231,255,.38);border-radius:10px;background:radial-gradient(circle,rgba(32,211,255,.16),rgba(8,16,38,.65));font-size:34px;color:#eaffff;text-shadow:0 0 12px #42dfff}
    #upgrade .upgrade-card h3{margin:0 0 3px;font-size:clamp(17px,4vw,25px);line-height:1.08;color:#fff}
    #upgrade .upgrade-card p{margin:0;font-size:clamp(10px,2.4vw,13px);line-height:1.3;color:#bac7da}
    #upgrade .upgrade-card .rarity{margin-top:6px;font-size:clamp(8px,1.9vw,10px);letter-spacing:.1em;color:#48e9ff}
    /* Bloc d’aide dupliqué supprimé en V5.40 : définition unique conservée plus haut. */
    @media(max-width:700px){
      #upgrade .panel{padding:12px 13px 14px}
      #upgrade .panel>h2{font-size:clamp(27px,8vw,38px)}
      #upgrade .upgrade-grid{gap:7px;margin-top:8px}
      #upgrade .upgrade-card{grid-template-columns:64px minmax(0,1fr);column-gap:10px;padding:9px 10px;border-radius:10px}
      #upgrade .upgrade-icon{width:56px;height:56px;font-size:27px}
      #upgrade .upgrade-card h3{font-size:clamp(16px,4.7vw,21px)}
      #upgrade .upgrade-card p{font-size:clamp(10px,2.8vw,12px)}
      #upgrade .upgrade-card .rarity{font-size:8px;margin-top:4px}
    }

    /* V5.16 · Mutations dans le même langage pixel que le menu principal */
    #upgrade{padding:10px;background:rgba(0,2,12,.24);backdrop-filter:none;overflow:hidden}
    #upgrade .panel{position:relative;width:min(620px,92vw);max-height:95dvh;margin:auto;padding:14px 18px 16px;overflow:hidden;border:2px solid #1768b5;border-radius:4px;background:linear-gradient(180deg,rgba(2,10,32,.72),rgba(1,5,20,.82));box-shadow:0 0 0 3px rgba(0,13,45,.92),0 0 35px rgba(52,219,255,.18),inset 0 0 35px rgba(29,91,178,.09);font-family:"Courier New",ui-monospace,monospace;image-rendering:pixelated}
    #upgrade .panel:before,#upgrade .panel:after{content:"";position:absolute;width:18px;height:18px;border-color:#65f5ff;pointer-events:none}
    #upgrade .panel:before{left:-4px;top:-4px;border-left:4px solid;border-top:4px solid}
    #upgrade .panel:after{right:-4px;bottom:-4px;border-right:4px solid;border-bottom:4px solid}
    #upgrade .upgrade-brand{margin:0 0 6px;text-align:center;color:#fff;font:900 clamp(16px,4vw,26px)/1 "Courier New",monospace;letter-spacing:-.06em;text-shadow:2px 2px 0 #1f7eca,4px 4px 0 #073d79,0 0 16px rgba(99,243,255,.3)}
    #upgrade .panel>.eyebrow{display:flex;align-items:center;justify-content:center;gap:8px;margin:0 0 5px;color:#64f3ff;font:900 clamp(8px,2vw,11px)/1.2 "Courier New",monospace;letter-spacing:.13em;text-transform:uppercase;text-shadow:0 0 10px #13bdda}
    #upgrade .panel>.eyebrow:before,#upgrade .panel>.eyebrow:after{content:"";width:42px;height:2px;background:#1fcfea;box-shadow:0 0 8px #16bad3}
    #upgrade .panel>h2{margin:0;text-align:center;color:#fff;font:900 clamp(27px,7vw,44px)/.96 "Courier New",monospace;letter-spacing:-.07em;text-shadow:3px 3px 0 #1f7eca,5px 5px 0 #073d79}
    #upgrade .panel>p:not(.eyebrow){margin:7px auto 9px;max-width:540px;text-align:center;color:#b9cae2;font:700 clamp(9px,2.25vw,13px)/1.3 "Courier New",monospace}
    #upgrade .upgrade-grid{display:grid;grid-template-columns:1fr;gap:8px;margin-top:8px}
    #upgrade .upgrade-card{position:relative;display:grid;grid-template-columns:68px minmax(0,1fr);grid-template-rows:auto auto auto;column-gap:12px;align-items:center;min-height:0;padding:10px 12px;border:3px solid #1768b5;border-radius:3px;background:linear-gradient(180deg,rgba(7,27,70,.9),rgba(2,12,40,.94));box-shadow:inset 0 0 0 2px #061a43,0 4px 0 #03132f,0 0 14px rgba(24,111,206,.22);font-family:"Courier New",monospace;text-align:left}
    #upgrade .upgrade-card:hover,#upgrade .upgrade-card:focus-visible{transform:translateY(-2px);border-color:#63f3ff;background:linear-gradient(180deg,rgba(11,57,103,.96),rgba(3,21,56,.96));box-shadow:inset 0 0 0 2px #0b4075,0 5px 0 #02112c,0 0 25px rgba(99,243,255,.3)}
    #upgrade .upgrade-icon{grid-row:1/4;display:grid;place-items:center;width:58px;height:58px;border:2px solid #15569a;border-radius:2px;background:radial-gradient(circle,rgba(37,203,255,.17),rgba(2,10,34,.92));color:#eaffff;font:900 29px/1 "Courier New",monospace;text-shadow:0 0 12px #42dfff;box-shadow:inset 0 0 0 2px #06183d}
    #upgrade .upgrade-card h3{margin:0 0 2px;color:#fff;font:900 clamp(15px,4vw,22px)/1.03 "Courier New",monospace;letter-spacing:-.045em}
    #upgrade .upgrade-card p{margin:0;color:#bac9df;font:700 clamp(9px,2.2vw,12px)/1.23 "Courier New",monospace}
    #upgrade .upgrade-card .rarity{margin-top:5px;color:#58eeff;font:900 clamp(7px,1.8vw,9px)/1.1 "Courier New",monospace;letter-spacing:.09em;text-transform:uppercase}
    #upgrade .upgrade-card.overclocked{border-color:#ffd166;box-shadow:inset 0 0 0 2px #6b4c10,0 4px 0 #302002,0 0 18px rgba(255,209,102,.2)}
    /* Bloc d’aide dupliqué supprimé en V5.40 : définition unique conservée plus haut. */
    @media(max-width:700px){
      #upgrade{padding:7px}
      #upgrade .panel{width:92vw;max-height:96dvh;padding:10px 10px 11px}
      #upgrade .upgrade-brand{margin-bottom:4px;font-size:16px}
      #upgrade .panel>.eyebrow{margin-bottom:3px;font-size:8px}
      #upgrade .panel>.eyebrow:before,#upgrade .panel>.eyebrow:after{width:21px}
      #upgrade .panel>h2{font-size:clamp(25px,7.6vw,34px)}
      #upgrade .panel>p:not(.eyebrow){margin:5px auto 7px;font-size:clamp(8px,2.25vw,10px)}
      #upgrade .upgrade-grid{gap:6px;margin-top:6px}
      #upgrade .upgrade-card{grid-template-columns:54px minmax(0,1fr);column-gap:8px;padding:7px 8px;border-width:2px}
      #upgrade .upgrade-icon{width:46px;height:46px;font-size:23px}
      #upgrade .upgrade-card h3{font-size:clamp(14px,4.1vw,18px)}
      #upgrade .upgrade-card p{font-size:clamp(8px,2.25vw,10px)}
      #upgrade .upgrade-card .rarity{font-size:7px;margin-top:3px}
    }
    @media(max-height:720px){#upgrade .panel{transform:scale(.92);transform-origin:center;max-height:106dvh}}

  
    /* V5.16.1 · Panneau des améliorations légèrement plus haut, largeur inchangée */
    @media (max-width:700px){
      #upgrade .panel{
        width:92vw;
        min-height:min(760px,58dvh);
        max-height:96dvh;
        padding:14px 12px 15px;
        display:flex;
        flex-direction:column;
        justify-content:center;
      }
      #upgrade .upgrade-brand{font-size:18px;margin-bottom:5px}
      #upgrade .panel>.eyebrow{font-size:9px;margin-bottom:4px}
      #upgrade .panel>h2{font-size:clamp(27px,8.1vw,37px);line-height:1}
      #upgrade .panel>p:not(.eyebrow){font-size:clamp(9px,2.5vw,11px);line-height:1.34;margin:7px auto 9px}
      #upgrade .upgrade-grid{
        flex:1;
        min-height:0;
        display:grid;
        grid-template-rows:repeat(3,minmax(0,1fr));
        gap:8px;
        margin-top:8px;
      }
      #upgrade .upgrade-card{
        grid-template-columns:60px minmax(0,1fr);
        column-gap:10px;
        min-height:0;
        padding:10px 10px;
      }
      #upgrade .upgrade-icon{width:52px;height:52px;font-size:25px}
      #upgrade .upgrade-card h3{font-size:clamp(16px,4.55vw,20px);line-height:1.06;margin-bottom:3px}
      #upgrade .upgrade-card p{font-size:clamp(9px,2.45vw,11px);line-height:1.28}
      #upgrade .upgrade-card .rarity{font-size:8px;margin-top:5px}
    }
    @media (max-width:700px) and (max-height:760px){
      #upgrade .panel{min-height:86dvh;transform:scale(.96);transform-origin:center}
    }


    /* V5.17 · Protocole Anomalie */
    .anomaly-btn{border-color:#a85cff!important;background:linear-gradient(90deg,rgba(77,16,110,.9),rgba(20,37,92,.92))!important;box-shadow:0 0 22px rgba(177,75,255,.25)}
    .anomaly-btn .menu-icon{color:#df92ff;text-shadow:0 0 14px #b044ff}
    .anomaly-btn .anomaly-label{display:flex;flex-direction:column;align-items:flex-start;min-width:0;line-height:1.08}
    .anomaly-btn .anomaly-label small{font-size:clamp(7px,1.85vw,9px);letter-spacing:.08em;color:#d8c7ef;opacity:.9;margin-top:4px;text-transform:uppercase;white-space:normal;text-align:left}
    .anomaly-btn.locked{border-color:#52607d!important;background:linear-gradient(90deg,rgba(31,37,57,.92),rgba(14,20,39,.94))!important;box-shadow:inset 0 0 18px rgba(100,115,150,.09)!important;filter:saturate(.55)}
    .anomaly-btn.locked .menu-icon{color:#9aa6bf;text-shadow:none}
    .anomaly-btn.locked .anomaly-label>span{color:#b8c0d2}
    .anomaly-btn.locked b{color:#7b879e}
    .anomaly-btn:not(.locked) .anomaly-label small{color:#e8b9ff}
    #anomalySelect{background:radial-gradient(circle at 50% 30%,rgba(94,20,130,.28),rgba(0,0,0,.94) 65%)}
    .anomaly-panel{width:min(920px,94vw);max-height:96dvh;overflow:auto;border-color:#8f54ff;box-shadow:0 0 0 3px #172759,0 0 38px rgba(153,68,255,.35);background:linear-gradient(180deg,rgba(7,12,32,.98),rgba(18,3,35,.98))}
    .anomaly-panel h2{font-family:"Courier New",monospace;text-shadow:4px 4px #3a226e;font-size:clamp(30px,6vw,56px)}
    .anomaly-counter{display:flex;gap:12px;align-items:baseline;justify-content:center;color:#bdfaff;margin:8px 0 12px}.anomaly-counter strong{font-size:25px;color:#f2a4ff}.anomaly-counter span{text-transform:uppercase;letter-spacing:.12em;font-size:10px}
    .anomaly-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:10px 0 14px}
    .anomaly-choice{min-height:118px;padding:10px;border:2px solid #245fac;background:linear-gradient(180deg,#101c42,#080d25);color:#fff;text-align:left;cursor:pointer;box-shadow:inset 0 0 18px rgba(38,163,255,.09)}
    .anomaly-choice.selected{border-color:#e685ff;background:linear-gradient(180deg,#39205d,#151034);box-shadow:0 0 20px rgba(207,104,255,.45)}
    .anomaly-choice.disabled{opacity:.35}.anomaly-choice b{display:block;font-size:15px;margin:4px 0}.anomaly-choice i{font-style:normal;font-size:25px;color:#76efff}.anomaly-choice small{display:block;color:#a9b9dd;font-size:10px;line-height:1.25}
    body.anomaly-mode #vignette{box-shadow:inset 0 0 130px rgba(102,0,155,.34)}
    body.anomaly-mode #levelText,body.anomaly-mode #sectorText{color:#e28cff;text-shadow:0 0 10px #8b2cff}
    body.anomaly-mode canvas{filter:saturate(1.18) contrast(1.08)}
    /* Bloc d’aide dupliqué supprimé en V5.40 : définition unique conservée plus haut. */
    @media(max-width:700px){.anomaly-panel{width:94vw;padding:12px}.anomaly-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.anomaly-choice{min-height:104px;padding:8px}.anomaly-choice b{font-size:13px}.anomaly-choice small{font-size:8px}}

    /* V5.31 · Boss Rush */
    .boss-rush-btn{border-color:#ff9f43!important;background:linear-gradient(90deg,rgba(101,42,5,.93),rgba(70,22,56,.92))!important;box-shadow:0 0 22px rgba(255,143,64,.24)}
    .boss-rush-btn .menu-icon{color:#ffd166;text-shadow:0 0 14px #ff8e37}.boss-rush-btn .boss-rush-label{display:flex;flex-direction:column;align-items:flex-start;min-width:0;line-height:1.08}.boss-rush-btn .boss-rush-label small{font-size:clamp(7px,1.85vw,9px);letter-spacing:.07em;color:#ffd9bb;margin-top:4px;text-transform:uppercase;white-space:normal;text-align:left}.boss-rush-btn.locked{border-color:#52607d!important;background:linear-gradient(90deg,rgba(31,37,57,.92),rgba(14,20,39,.94))!important;box-shadow:inset 0 0 18px rgba(100,115,150,.09)!important;filter:saturate(.5)}.boss-rush-btn.locked .menu-icon{color:#9aa6bf;text-shadow:none}.boss-rush-btn.locked .boss-rush-label>span{color:#b8c0d2}.boss-rush-btn.locked b{color:#7b879e}
    #bossRushSelect{background:radial-gradient(circle at 50% 26%,rgba(255,120,40,.19),rgba(0,0,0,.95) 66%)}.boss-rush-panel{width:min(900px,94vw);max-height:96dvh;overflow:auto;border-color:#ff9e45;box-shadow:0 0 0 3px #4b1e16,0 0 40px rgba(255,126,48,.26);background:linear-gradient(180deg,rgba(15,13,31,.98),rgba(31,8,20,.98))}.boss-rush-panel h2{font-family:"Courier New",monospace;text-shadow:4px 4px #6b2418;font-size:clamp(30px,6vw,56px)}.boss-rush-intro{margin:7px 0 15px}.boss-rush-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}.boss-rush-choice{position:relative;min-height:185px;padding:15px;border:2px solid #6b4b43;border-radius:10px;background:linear-gradient(165deg,rgba(54,25,30,.93),rgba(8,11,28,.97));color:#fff;text-align:left;cursor:pointer;transition:.15s transform,.15s border-color,.15s box-shadow}.boss-rush-choice:hover,.boss-rush-choice:focus-visible{outline:none;transform:translateY(-3px);border-color:#ffb55f;box-shadow:0 0 25px rgba(255,144,62,.2)}.boss-rush-choice.selected{border-color:#ffd166;background:linear-gradient(165deg,rgba(91,50,15,.96),rgba(26,13,30,.98));box-shadow:0 0 0 2px rgba(255,209,102,.15),0 0 28px rgba(255,154,55,.3)}.boss-rush-choice i{display:block;color:#ffd166;font:900 31px/1 monospace}.boss-rush-choice h3{margin:10px 0 7px;font:900 18px "Courier New",monospace}.boss-rush-choice p{margin:0;color:#c9c7d7;font-size:11px;line-height:1.45}.boss-rush-choice strong{display:block;margin-top:11px;color:#ffe09b;font-size:10px;letter-spacing:.06em;text-transform:uppercase}.boss-rush-special-title{margin:20px 0 8px;color:#b8a2cc;font:900 11px monospace;letter-spacing:.15em;text-transform:uppercase}.boss-rush-specials{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:14px}.boss-rush-special{padding:12px;border:1px solid #4c405b;border-radius:9px;background:rgba(19,14,31,.83);filter:grayscale(.7);opacity:.58}.boss-rush-special strong{display:block;color:#d7c4e8;font:900 13px monospace}.boss-rush-special small{display:block;margin-top:5px;color:#91889c;line-height:1.35}.boss-rush-special.preview-unlocked{opacity:.82;filter:none;border-color:#8554a8}.boss-rush-status{min-height:20px;margin:7px 0 12px;color:#ffd8a5;font:800 11px monospace;text-align:center;letter-spacing:.05em}body.boss-rush-mode #levelText,body.boss-rush-mode #sectorText{color:#ffd166;text-shadow:0 0 10px #ff7d32}body.boss-rush-mode #vignette{box-shadow:inset 0 0 115px rgba(108,38,16,.24)}
    @media(max-width:700px){.boss-rush-panel{width:95vw;padding:14px}.boss-rush-grid{grid-template-columns:1fr;gap:7px}.boss-rush-choice{min-height:0;padding:11px}.boss-rush-choice h3{margin:5px 0}.boss-rush-specials{grid-template-columns:1fr}}

    /* V5.20 · Raretés visuelles : Overclock jaune et Mutations Anomalie violettes */
    #upgrade .upgrade-card.overclocked{
      border-color:#ffd34f!important;
      background:linear-gradient(180deg,rgba(92,63,5,.96),rgba(35,22,2,.97))!important;
      box-shadow:inset 0 0 0 2px #6e4b08,0 4px 0 #2d1b00,0 0 28px rgba(255,211,79,.36)!important;
    }
    #upgrade .upgrade-card.overclocked .upgrade-icon{
      border-color:#ffd34f;background:radial-gradient(circle,rgba(255,221,99,.28),rgba(45,27,1,.94));
      color:#fff7bd;text-shadow:0 0 14px #ffd34f;
    }
    #upgrade .upgrade-card.overclocked h3,#upgrade .upgrade-card.overclocked .rarity{color:#ffe987!important}
    #upgrade .upgrade-card.overclocked:after{content:"OC";position:absolute;right:9px;top:8px;padding:3px 6px;border:1px solid #ffd34f;background:#3a2500;color:#ffe987;font:900 9px monospace;letter-spacing:.08em}
    #upgrade .upgrade-card.anomaly-mutation{
      border-color:#c66bff!important;
      background:linear-gradient(180deg,rgba(58,20,96,.97),rgba(19,7,42,.98))!important;
      box-shadow:inset 0 0 0 2px #4e1b78,0 4px 0 #160622,0 0 30px rgba(190,80,255,.4)!important;
    }
    #upgrade .upgrade-card.anomaly-mutation .upgrade-icon{
      border-color:#dd8cff;background:radial-gradient(circle,rgba(215,95,255,.3),rgba(28,7,48,.95));
      color:#f6dcff;text-shadow:0 0 15px #c66bff;
    }
    #upgrade .upgrade-card.anomaly-mutation h3{color:#f3d5ff!important}
    #upgrade .upgrade-card.anomaly-mutation .rarity{color:#da8dff!important}
    #upgrade .upgrade-card.anomaly-mutation:after{content:"ANOMALIE";position:absolute;right:8px;top:7px;padding:3px 6px;border:1px solid #d887ff;background:#2b0b45;color:#efc6ff;font:900 8px monospace;letter-spacing:.07em}

  
    /* V5.22 · Arsenal transformateur, technologies inconnues et coque modulaire */
    #upgrade .upgrade-card.late-game{border-color:#48d9ff;background:linear-gradient(145deg,rgba(6,35,72,.96),rgba(9,17,44,.97));}
    #upgrade .upgrade-card.unknown-tech{border-color:#9ffcff;background:linear-gradient(145deg,rgba(10,12,23,.98),rgba(19,12,39,.98));box-shadow:0 0 22px rgba(165,113,255,.42),inset 0 0 22px rgba(99,243,255,.08);}
    #upgrade .upgrade-card.unknown-tech:after{content:"???";position:absolute;right:8px;top:7px;padding:3px 7px;border:1px solid #fff;background:#140d25;color:#fff;font:900 9px monospace;letter-spacing:.16em}
    #upgrade .upgrade-card.unknown-tech h3{font-family:monospace;letter-spacing:.14em;color:#fff!important;text-shadow:0 0 10px #9d72ff}
    #unknownReveal .panel{max-width:620px;text-align:center;border-color:#a878ff;box-shadow:0 0 40px rgba(152,96,255,.35)}
    #unknownReveal input,#unknownReveal textarea{width:100%;box-sizing:border-box;margin:7px 0 12px;padding:13px;border:1px solid #69e8ff;background:#050b1b;color:#fff;font:700 15px monospace}
    #unknownReveal input{text-align:center}
    #unknownReveal textarea{min-height:112px;resize:vertical;line-height:1.35;text-align:left}
    .unknown-field-label{display:block;margin-top:10px;color:#bdfaff;font:900 10px ui-monospace,monospace;letter-spacing:.11em;text-align:left;text-transform:uppercase}
    .unknown-prompt-note{padding:10px;border:1px dashed rgba(189,250,255,.55);background:rgba(26,12,52,.7);color:#e9dcff;line-height:1.45}
    #unknownGuessHint{min-height:20px;color:#a9b9dd;font:800 10px ui-monospace,monospace}
    #unknownGuessHint.error{color:#ff7e96}
    #pauseUnknownList{display:grid;gap:8px;margin:12px 0}.unknown-row{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;padding:9px;border:1px solid rgba(152,96,255,.45);background:rgba(31,14,62,.55);font:700 11px monospace;text-align:left}.unknown-row small{display:block;margin-top:4px;color:#b9c9e8;line-height:1.35}.unknown-row em{display:block;margin-top:2px;color:#9d8ab9;font-size:9px;font-style:normal}.unknown-row button{padding:7px 10px}

/* V5.24 — boutique, cadres à double contour et identité Anomalie */
:root{--ui-main:#1768b5;--ui-inner:rgba(112,224,255,.26);--ui-glow:rgba(52,219,255,.18)}
.panel,.pixel-menu-panel,.upgrade-card,.pixel-menu-btn,.pixel-stat-card,.pixel-bottom-stats,.shop-card{clip-path:polygon(9px 0,calc(100% - 9px) 0,100% 9px,100% calc(100% - 9px),calc(100% - 9px) 100%,9px 100%,0 calc(100% - 9px),0 9px)}
.pixel-menu-btn,.upgrade-card,.shop-card{position:relative;border:2px solid var(--ui-main)!important;box-shadow:inset 0 0 0 2px var(--ui-inner),0 0 16px var(--ui-glow)!important}
body.anomaly-mode{--ui-main:#c52f4a;--ui-inner:rgba(255,122,145,.28);--ui-glow:rgba(255,40,80,.24)}
body.anomaly-mode .pixel-menu-panel,body.anomaly-mode #upgrade .panel,body.anomaly-mode .anomaly-panel{border-color:#b71f3b!important;box-shadow:0 0 0 3px rgba(44,0,8,.9),0 0 38px rgba(255,32,72,.28),inset 0 0 35px rgba(170,13,48,.12)!important}
body.anomaly-mode .pixel-logo,body.anomaly-mode .eyebrow,body.anomaly-mode #upgrade .upgrade-brand{color:#ff5b75!important;text-shadow:0 0 16px rgba(255,40,75,.55)!important}
body.anomaly-mode .pixel-menu-btn,body.anomaly-mode #upgrade .upgrade-card{background:linear-gradient(145deg,rgba(72,6,20,.94),rgba(18,2,9,.97))!important}
#shopBtn .menu-icon{color:#ffe07a}.coin-count{color:#ffe27a;text-shadow:0 0 9px #ffb300}
#shop .panel{width:min(860px,95vw);max-height:94dvh;overflow:auto}.shop-wallet{display:flex;justify-content:center;gap:10px;align-items:center;margin:8px 0 16px;font:900 19px monospace;color:#ffe27a}.shop-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.shop-card{padding:12px;background:linear-gradient(145deg,rgba(7,28,60,.96),rgba(3,8,25,.98));text-align:left}.shop-card h3{margin:3px 0 5px}.shop-card p{font-size:11px;min-height:32px}.shop-card .price{color:#ffe27a;font:900 11px monospace}.shop-card button{width:100%;margin-top:8px}.shop-card.owned{border-color:#5dffa0!important}.shop-card.equipped{box-shadow:inset 0 0 0 2px rgba(93,255,160,.36),0 0 20px rgba(93,255,160,.2)!important}.shop-tabs{display:flex;gap:8px;justify-content:center;margin:10px 0}.shop-tabs button.active{border-color:#ffe27a;color:#ffe27a}.coin-hud{position:fixed;right:12px;bottom:12px;z-index:10;padding:7px 11px;border:1px solid #ffd55a;background:rgba(27,17,2,.78);color:#ffe27a;font:900 11px monospace;pointer-events:none}
@media(max-width:650px){.shop-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.shop-grid{grid-template-columns:1fr}.shop-card p{min-height:0}}

    /* ===== PROFIL PIXEL SIMPLIFIÉ V5.26.2 ===== */
    #onlineProfile.profile-screen{padding:8px;background:radial-gradient(circle at 50% 12%,rgba(18,91,153,.2),transparent 30%),rgba(0,3,14,.9);overflow:auto;align-items:flex-start}
    .profile-pixel-panel{width:min(760px,96vw);margin:8px auto 24px;padding:18px 24px 16px;border:2px solid #1768b5;border-radius:4px;background:linear-gradient(180deg,rgba(2,10,32,.94),rgba(1,5,20,.96));box-shadow:0 0 0 3px rgba(0,13,45,.9),0 0 35px rgba(52,219,255,.18),inset 0 0 35px rgba(29,91,178,.09);font-family:"Courier New",ui-monospace,monospace;clip-path:polygon(12px 0,calc(100% - 12px) 0,100% 12px,100% calc(100% - 12px),calc(100% - 12px) 100%,12px 100%,0 calc(100% - 12px),0 12px)}
    .profile-logo{text-align:center;color:#fff;font:900 clamp(30px,7vw,56px)/.9 "Courier New",monospace;letter-spacing:-.08em;text-shadow:3px 3px 0 #1f7eca,6px 6px 0 #073d79,0 0 22px rgba(99,243,255,.32)}
    .profile-overline{text-align:center;margin:15px 0 4px;color:#64f3ff!important;letter-spacing:.2em}.profile-pixel-panel>h2{text-align:center;margin:0 0 14px;font:900 clamp(27px,6vw,48px)/1 "Courier New",monospace;color:#fff;text-shadow:3px 3px 0 #153d78}
    .profile-intro-card{display:grid;grid-template-columns:100px 1fr;gap:18px;align-items:center;margin:0 0 14px;padding:14px 18px;border:2px solid #155b9c;background:rgba(3,18,48,.84);box-shadow:inset 0 0 0 2px rgba(56,170,242,.12);clip-path:polygon(10px 0,calc(100% - 10px) 0,100% 10px,100% calc(100% - 10px),calc(100% - 10px) 100%,10px 100%,0 calc(100% - 10px),0 10px)}
    .profile-intro-card p{margin:0;color:#e6f4ff;font-size:clamp(13px,2.7vw,20px);line-height:1.35}.cloud-pixel-icon{position:relative;display:grid;place-items:center;height:82px;color:#53efff;font-size:58px;text-shadow:0 0 18px #26c9ef}.cloud-pixel-icon span{position:absolute;font-size:29px;color:#fff}.cloud-ready-pill{display:inline-block;margin-top:10px;padding:7px 12px;border:1px solid #36e39e;color:#72f7bd;background:rgba(10,70,54,.28);font-weight:900;clip-path:polygon(6px 0,calc(100% - 6px) 0,100% 6px,100% calc(100% - 6px),calc(100% - 6px) 100%,6px 100%,0 calc(100% - 6px),0 6px)}
    .profile-choice-box{margin:11px 0;padding:13px 16px;border:2px solid #23d9f3;background:linear-gradient(180deg,rgba(4,25,61,.9),rgba(2,11,35,.92));box-shadow:inset 0 0 0 2px rgba(78,223,255,.1),0 0 18px rgba(35,217,243,.12);clip-path:polygon(10px 0,calc(100% - 10px) 0,100% 10px,100% calc(100% - 10px),calc(100% - 10px) 100%,10px 100%,0 calc(100% - 10px),0 10px)}
    .profile-choice-box h3{margin:0 0 10px;color:#5cefff;text-transform:uppercase;letter-spacing:.05em}.profile-choice-box .online-field{color:#7defff;font-size:13px}.profile-choice-box .online-field input{padding:10px 12px;border:2px solid #1684b5;border-radius:2px;background:#041028;font-size:15px}.profile-choice-box .profile-icons{gap:7px}.profile-choice-box .profile-icon-choice{min-height:50px;border:2px solid #315b8d;border-radius:2px;background:#06132d}.profile-choice-box .profile-icon-choice.active{border-color:#61f5ff;box-shadow:inset 0 0 0 2px rgba(99,243,255,.18),0 0 16px rgba(99,243,255,.4)}
    .profile-main-btn,.profile-secondary-btn{display:flex!important;align-items:center;justify-content:center;gap:10px;min-height:52px;font-weight:900}.profile-main-btn b,.profile-secondary-btn b{margin-left:auto;font-size:24px}.profile-secondary-btn{border-color:#1f80c8!important;color:#60eaff!important;background:linear-gradient(180deg,rgba(5,45,95,.92),rgba(2,18,52,.95))!important}
    .profile-info-note{margin:12px 0;padding:10px 12px;border:1px solid #165b93;background:rgba(4,18,44,.82);color:#d8eaff;font-size:12px}.profile-bottom-actions{margin-top:10px}.profile-pixel-panel .leaderboard{max-height:210px;overflow:auto}.profile-pixel-panel .online-profile-card{border-radius:2px}.profile-pixel-panel .cloud-status{text-align:center}
    @media(max-width:620px){#onlineProfile.profile-screen{padding:3px}.profile-pixel-panel{width:97vw;margin:3px auto 12px;padding:10px 10px 9px}.profile-logo{font-size:31px}.profile-overline{font-size:9px;margin-top:9px}.profile-pixel-panel>h2{font-size:25px;margin-bottom:9px}.profile-intro-card{grid-template-columns:62px 1fr;gap:8px;padding:9px 10px;margin-bottom:8px}.cloud-pixel-icon{height:54px;font-size:41px}.cloud-pixel-icon span{font-size:20px}.profile-intro-card p{font-size:12px}.cloud-ready-pill{margin-top:6px;padding:5px 8px;font-size:10px}.profile-choice-box{margin:7px 0;padding:9px 10px}.profile-choice-box h3{margin-bottom:7px;font-size:13px}.profile-choice-box .online-field{font-size:10px;gap:4px}.profile-choice-box .online-field input{padding:8px 9px;font-size:12px}.profile-choice-box .profile-icons{gap:4px}.profile-choice-box .profile-icon-choice{min-height:40px;font-size:18px}.profile-main-btn,.profile-secondary-btn{min-height:42px;padding:7px;font-size:12px}.profile-info-note{margin:7px 0;padding:7px;font-size:9px}.profile-bottom-actions{gap:5px}.profile-bottom-actions .btn{min-width:0;padding:7px;font-size:10px}.profile-pixel-panel .leaderboard{max-height:150px}.online-profile-card{margin:8px 0;padding:10px}.online-warning{display:none}}



/* V5.27.4 — profil compact sur une page + boutons menu jumelés */
@media (min-width:680px){
  .pixel-menu-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:15px}
  #newBtn,#continueBtn,#anomalyBtn{grid-column:1/-1}
  #settingsBtn,#helpBtn,#onlineBtn,#shopBtn{grid-column:auto}
  #settingsBtn,#helpBtn,#onlineBtn,#shopBtn{font-size:clamp(12px,2.3vw,17px)}
  #settingsBtn b,#helpBtn b,#onlineBtn b,#shopBtn b{font-size:22px}
}

.profile-pixel-panel.profile-connected-layout{width:min(980px,96vw)}
.profile-pixel-panel.profile-connected-layout .profile-logo{font-size:clamp(28px,4.6vw,54px)}
.profile-pixel-panel.profile-connected-layout>h2{font-size:clamp(24px,4.8vw,42px);margin-bottom:10px}
.profile-pixel-panel.profile-connected-layout .profile-intro-card{margin-bottom:10px;padding:12px 16px}
.profile-pixel-panel.profile-connected-layout .profile-intro-card p{font-size:clamp(12px,2vw,17px)}
.profile-pixel-panel.profile-connected-layout .online-profile-card{margin:8px 0 0;padding:12px}
.profile-pixel-panel.profile-connected-layout .online-code{padding:8px 10px}
.profile-pixel-panel.profile-connected-layout .profile-id-big{font-size:clamp(24px,4.6vw,38px)}
.profile-pixel-panel.profile-connected-layout .online-warning{margin:8px 0 10px}
.profile-pixel-panel.profile-connected-layout .online-actions .btn{min-height:44px}
.profile-pixel-panel.profile-connected-layout .stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.profile-pixel-panel.profile-connected-layout .stat{padding:9px}
.profile-pixel-panel.profile-connected-layout .stat strong{font-size:19px}
.profile-pixel-panel.profile-connected-layout .stat span{font-size:10px}
.profile-pixel-panel.profile-connected-layout .leaderboard{max-height:110px}
.profile-pixel-panel.profile-connected-layout .profile-info-note{margin:8px 0;padding:8px 10px}
.profile-pixel-panel.profile-connected-layout .profile-bottom-actions{margin-top:8px}

@media (min-width:860px){
  .profile-pixel-panel.profile-connected-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 14px;align-items:start;padding:14px 18px 12px}
  .profile-pixel-panel.profile-connected-layout>.profile-logo,
  .profile-pixel-panel.profile-connected-layout>.profile-overline,
  .profile-pixel-panel.profile-connected-layout>h2,
  .profile-pixel-panel.profile-connected-layout>#cloudStatus,
  .profile-pixel-panel.profile-connected-layout>#cloudFirstRun,
  .profile-pixel-panel.profile-connected-layout>#cloudLeaderboardSection,
  .profile-pixel-panel.profile-connected-layout>.profile-info-note,
  .profile-pixel-panel.profile-connected-layout>.profile-bottom-actions{grid-column:1/-1}
  .profile-pixel-panel.profile-connected-layout>.profile-intro-card{grid-column:1;margin:0}
  .profile-pixel-panel.profile-connected-layout>#cloudProfileCard{grid-column:2;margin:0}
  .profile-pixel-panel.profile-connected-layout>.profile-bottom-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
  .profile-pixel-panel.profile-connected-layout>.profile-bottom-actions .btn{width:100%;min-width:0}
}

@media (max-width:859px){
  .profile-pixel-panel.profile-connected-layout .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-height:760px){
  .profile-pixel-panel.profile-connected-layout{padding:12px 14px 10px}
  .profile-pixel-panel.profile-connected-layout .profile-overline{margin:10px 0 3px}
  .profile-pixel-panel.profile-connected-layout .profile-logo{line-height:.88}
  .profile-pixel-panel.profile-connected-layout .cloud-ready-pill{margin-top:6px;padding:5px 9px;font-size:10px}
}



/* V5.29.3 — déverrouillage audio global Android */
#audioUnlockOverlay{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:18px;background:radial-gradient(circle at 50% 35%,rgba(15,83,137,.34),rgba(0,2,12,.97) 58%);font-family:"Courier New",ui-monospace,monospace}
#audioUnlockOverlay.hidden{display:none}
.audio-unlock-panel{width:min(520px,92vw);padding:22px 20px;text-align:center;border:2px solid #52eaff;background:linear-gradient(180deg,rgba(4,20,52,.98),rgba(1,6,23,.99));box-shadow:0 0 0 3px #061633,0 0 40px rgba(69,226,255,.27),inset 0 0 28px rgba(47,150,255,.1);clip-path:polygon(12px 0,calc(100% - 12px) 0,100% 12px,100% calc(100% - 12px),calc(100% - 12px) 100%,12px 100%,0 calc(100% - 12px),0 12px)}
.audio-unlock-icon{font-size:52px;color:#63f3ff;text-shadow:0 0 20px currentColor}
.audio-unlock-panel h2{margin:8px 0 8px;color:#fff;font:900 clamp(24px,6vw,40px)/1 "Courier New",monospace;text-shadow:3px 3px 0 #17447e}
.audio-unlock-panel p{margin:7px 0;color:#cceeff;line-height:1.4}
#audioUnlockStatus{min-height:20px;margin:13px 0;color:#77f4c6;font-size:12px;letter-spacing:.06em}
#audioUnlockStatus.error{color:#ff7d91}
#audioUnlockBtn{width:100%;min-height:54px;margin-top:4px}
#audioUnlockBtn:disabled{opacity:.65;cursor:wait}
#audioUnlockSkip{width:100%;min-height:50px;margin-top:10px;border:1px solid #57729b;background:linear-gradient(180deg,rgba(15,28,56,.95),rgba(4,9,25,.98));color:#fff;text-decoration:none;font:950 15px/1 "Courier New",monospace;cursor:pointer}
.startup-no-thanks{min-height:50px!important;font-size:15px!important;letter-spacing:.04em!important}


#audioUnlockMode{margin-top:-5px;color:#8da8cb;font:700 10px/1.35 monospace;letter-spacing:.04em}
.audio-settings-note{margin:7px 0 11px;padding:8px 10px;border:1px solid rgba(99,243,255,.22);background:rgba(4,18,44,.62);color:#a9c8e8;font:700 10px/1.45 monospace}
#retroMusicToggle:disabled{opacity:.45}



/* V5.29.7 — profil PC aligné, classement lisible */
#cloudStatus:empty{display:none}
@media (min-width:900px){
  #onlineProfile.profile-screen{padding:14px 20px}
  #onlineProfile .profile-pixel-panel.profile-connected-layout{
    width:min(1160px,94vw);
    display:grid;
    grid-template-columns:minmax(340px,.82fr) minmax(510px,1.18fr);
    grid-template-rows:auto auto auto auto auto auto;
    column-gap:18px;
    row-gap:12px;
    align-items:stretch;
    padding:16px 20px 14px;
  }
  #onlineProfile .profile-connected-layout>.profile-logo,
  #onlineProfile .profile-connected-layout>.profile-overline,
  #onlineProfile .profile-connected-layout>h2{grid-column:1/-1}
  #onlineProfile .profile-connected-layout>.profile-logo{font-size:43px}
  #onlineProfile .profile-connected-layout>h2{font-size:40px;margin-bottom:4px}
  #onlineProfile .profile-connected-layout>.profile-intro-card{
    grid-column:1;
    grid-row:4;
    margin:0;
    min-height:100%;
    align-content:center;
  }
  #onlineProfile .profile-connected-layout>#cloudProfileCard{
    grid-column:2;
    grid-row:4;
    margin:0;
    min-height:100%;
    display:flex;
    flex-direction:column;
    justify-content:center;
  }
  #onlineProfile .profile-connected-layout>#cloudStatus{grid-column:1/-1;grid-row:5;margin:0}
  #onlineProfile .profile-connected-layout>#cloudLeaderboardSection{grid-column:1/-1;grid-row:6;margin-top:2px}
  #onlineProfile .profile-connected-layout>.profile-info-note{grid-column:1/-1;grid-row:7;margin:0}
  #onlineProfile .profile-connected-layout>.profile-bottom-actions{grid-column:1/-1;grid-row:8;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
  #onlineProfile .profile-connected-layout .leaderboard{max-height:290px;overflow:auto;margin-top:10px}
  #onlineProfile .profile-connected-layout .leaderboard-head,
  #onlineProfile .profile-connected-layout .leaderboard-row{grid-template-columns:54px minmax(220px,1fr) 170px 130px 80px;padding:10px 14px}
  #onlineProfile .profile-connected-layout .leaderboard-head{position:sticky;top:0;z-index:1;background:#07152f}
  #onlineProfile .profile-connected-layout .profile-intro-card p{font-size:17px}
  #onlineProfile .profile-connected-layout .cloud-ready-pill{font-size:13px}
  #onlineProfile .profile-connected-layout .online-profile-card .stats{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (min-width:900px) and (max-height:760px){
  #onlineProfile .profile-connected-layout>.profile-logo{font-size:34px}
  #onlineProfile .profile-connected-layout>h2{font-size:32px}
  #onlineProfile .profile-connected-layout .leaderboard{max-height:205px}
}



/* V5.29.8 — salle développeur PC */
.dev-gallery-entry{margin-top:10px;border-color:#9a70ff!important;color:#e8dcff!important;background:linear-gradient(180deg,rgba(58,28,105,.94),rgba(18,8,48,.96))!important}
#devGalleryPanel{position:fixed;z-index:35;left:0;top:0;bottom:0;width:340px;box-sizing:border-box;padding:14px 12px 18px;overflow:auto;background:linear-gradient(180deg,rgba(3,9,28,.985),rgba(10,4,28,.985));border-right:2px solid #55eaff;box-shadow:12px 0 40px rgba(0,0,0,.65),inset -2px 0 rgba(112,72,255,.35);font-family:"Courier New",monospace;color:#e8f7ff}
#devGalleryPanel.hidden,#devGalleryLegend.hidden,#devBossTestPanel.hidden{display:none!important}.dev-gallery-title{text-align:center;padding:10px;border:1px solid #3d71ae;background:rgba(12,31,70,.78);margin-bottom:10px}.dev-gallery-title strong{display:block;color:#72f6ff;font-size:18px}.dev-gallery-title small{display:block;margin-top:5px;color:#a99bff;font-size:9px;letter-spacing:.12em}.dev-gallery-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:7px 0}.dev-gallery-actions.single{grid-template-columns:1fr}.dev-gallery-field{display:grid;gap:5px;margin:9px 0;padding:8px;border:1px solid rgba(86,202,255,.28);background:rgba(3,18,48,.72);font-size:11px}.dev-gallery-field span{color:#ffe17d}.dev-gallery-field select,.dev-gallery-search{width:100%;box-sizing:border-box;padding:8px;border:1px solid #276aa0;background:#050c22;color:#fff;font:700 11px monospace}.dev-gallery-search{margin:8px 0}.dev-gallery-upgrades{display:grid;gap:5px}.dev-gallery-upgrade-row{display:grid;grid-template-columns:minmax(0,1fr) 86px 32px;gap:6px;align-items:center;padding:6px;border:1px solid rgba(117,132,190,.24);background:rgba(7,14,37,.78);font-size:10px}.dev-gallery-upgrade-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dev-gallery-upgrade-row input[type=range]{width:86px}.dev-gallery-upgrade-row output{text-align:center;color:#7af5ff}.dev-gallery-help{margin-top:10px;padding:9px;border:1px solid rgba(255,213,100,.35);color:#ffe29b;font-size:9px;line-height:1.45}#devGalleryLegend{position:fixed;z-index:31;top:12px;left:360px;padding:8px 13px;border:1px solid #4adfff;background:rgba(2,8,25,.86);font-family:"Courier New",monospace;pointer-events:none}#devGalleryLegend strong{color:#fff}#devGalleryLegend span{margin-left:12px;color:#65efff;font-size:11px}.dev-gallery-label{font:900 11px "Courier New",monospace}
#devBossTestPanel{position:fixed;z-index:35;left:0;top:0;bottom:0;width:360px;box-sizing:border-box;padding:14px 12px 18px;overflow:auto;background:linear-gradient(180deg,rgba(18,4,28,.99),rgba(3,8,27,.99));border-right:2px solid #c06cff;box-shadow:12px 0 40px rgba(0,0,0,.68),inset -2px 0 rgba(255,101,147,.24);font-family:"Courier New",monospace;color:#f5ecff}.dev-boss-status{display:grid;gap:5px;margin:10px 0;padding:10px;border:1px solid rgba(207,129,255,.35);background:rgba(25,7,48,.78);font:800 10px/1.45 ui-monospace,monospace}.dev-boss-status strong{color:#fff}.dev-boss-status span{color:#d6b4ff}.dev-boss-check{display:flex;align-items:center;gap:8px;padding:8px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.025);font-size:10px}.dev-boss-hint{margin:10px 0;padding:10px;border-left:3px solid #ffcf70;background:rgba(255,200,80,.07);color:#ffe4a9;font-size:10px;line-height:1.45}
@media(max-width:899px),(pointer:coarse){.dev-gallery-entry{display:none!important}#devGalleryPanel,#devGalleryLegend,#devBossTestPanel{display:none!important}}



    /* ===== BESTIAIRE V5.31 ===== */
    .bestiary-panel{width:min(1120px,96vw);height:min(900px,94vh);display:flex;flex-direction:column;overflow:hidden}
    .bestiary-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
    .bestiary-head h2{margin-bottom:2px}.bestiary-progress{padding:8px 11px;border:1px solid rgba(99,243,255,.3);border-radius:8px;background:rgba(99,243,255,.07);font:900 11px/1.2 ui-monospace,monospace;color:#bff8ff;white-space:nowrap}
    .bestiary-tabs{display:flex;gap:8px;margin:13px 0}.bestiary-tabs .btn{width:auto;flex:1;text-align:center}.bestiary-tabs .active{border-color:#63f3ff;background:rgba(43,124,166,.5);box-shadow:0 0 20px rgba(99,243,255,.12)}
    .bestiary-layout{min-height:0;flex:1;display:grid;grid-template-columns:minmax(300px,.92fr) minmax(360px,1.08fr);gap:13px}
    .bestiary-grid-wrap,.bestiary-detail{min-height:0;overflow:auto;border:1px solid rgba(126,218,255,.18);border-radius:12px;background:rgba(2,7,20,.55)}
    .bestiary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px}
    .bestiary-card{position:relative;min-height:122px;padding:7px;border:1px solid rgba(126,218,255,.2);border-radius:9px;background:linear-gradient(160deg,rgba(24,39,69,.76),rgba(5,9,23,.94));text-align:center;cursor:pointer;color:#fff}
    .bestiary-card:hover,.bestiary-card.active{border-color:#63f3ff;box-shadow:0 0 17px rgba(99,243,255,.16)}.bestiary-card.locked{opacity:.47;filter:saturate(.35);cursor:default}
    .bestiary-card img{width:72px;height:72px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 0 6px currentColor)}.bestiary-card .unknown-glyph{height:72px;display:grid;place-items:center;font:950 38px ui-monospace,monospace;color:#718099}
    .bestiary-card strong{display:block;font:900 10px/1.25 ui-monospace,monospace;text-transform:uppercase}.bestiary-card small{display:block;margin-top:3px;color:#85dff0;font:800 8px/1.2 ui-monospace,monospace}
    .bestiary-detail{padding:15px}.bestiary-empty{height:100%;display:grid;place-items:center;padding:30px;text-align:center;color:#8796b2}
    .bestiary-title-row{display:flex;gap:16px;align-items:center}.bestiary-portrait{position:relative;width:150px;height:150px;flex:0 0 auto;display:grid;place-items:center;border:2px solid rgba(99,243,255,.35);border-radius:12px;background:radial-gradient(circle,rgba(61,104,150,.28),rgba(2,5,15,.9) 70%);overflow:hidden}.bestiary-portrait img{width:92%;height:92%;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 0 12px rgba(99,243,255,.28))}.bestiary-portrait .lock{font-size:50px;color:#748097}
    .bestiary-title-copy h3{margin:0 0 5px;font-size:clamp(22px,4vw,38px)}.bestiary-title-copy p{margin:3px 0}.bestiary-role{color:#72edff!important;font:900 10px/1.3 ui-monospace,monospace;letter-spacing:.11em;text-transform:uppercase}
    .bestiary-skin-row{display:flex;gap:7px;margin-top:9px;flex-wrap:wrap}.bestiary-skin-row .btn{width:auto;padding:8px 10px;font-size:10px}.bestiary-skin-row .active{border-color:#ffd166;color:#ffe69b}.bestiary-skin-row .locked{opacity:.45}
    .bestiary-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:14px 0}.bestiary-stat{padding:9px;border:1px solid rgba(255,255,255,.09);border-radius:8px;background:rgba(255,255,255,.025)}.bestiary-stat span{display:block;color:#8ea0bc;font:800 8px/1.15 ui-monospace,monospace;text-transform:uppercase}.bestiary-stat strong{display:block;margin-top:4px;color:#fff;font-size:15px}
    .bestiary-section{margin-top:11px;padding:11px 12px;border-left:3px solid #63f3ff;background:rgba(99,243,255,.055)}.bestiary-section.danger{border-left-color:#ff657d;background:rgba(255,85,109,.055)}.bestiary-section.gold{border-left-color:#ffd166;background:rgba(255,209,102,.055)}.bestiary-section h4{margin:0 0 6px;font:900 10px/1 ui-monospace,monospace;letter-spacing:.12em;text-transform:uppercase}.bestiary-section p{margin:0;color:#c5d1e4;font-size:12px;line-height:1.5}
    .bestiary-phase-list{display:grid;gap:6px;margin-top:7px}.bestiary-phase{padding:8px;border:1px solid rgba(255,255,255,.08);border-radius:7px;background:rgba(0,0,0,.18);font-size:11px;color:#c8d4e6}.bestiary-phase strong{color:#ffd98b}
    .bestiary-footer{display:flex;justify-content:flex-end;margin-top:12px}.bestiary-footer .btn{width:auto;min-width:180px;text-align:center}
    .bestiary-unlocks{margin:14px 0;padding:12px;border:1px solid rgba(99,243,255,.25);border-radius:11px;background:rgba(4,18,34,.64);text-align:left}.bestiary-unlocks h3{margin:0 0 8px;color:#91f7ff;font:900 12px/1.2 ui-monospace,monospace;letter-spacing:.1em;text-transform:uppercase}.bestiary-unlock-summary{color:#aebbd0;font-size:11px}.bestiary-chip-list{display:flex;flex-wrap:wrap;gap:5px;max-height:118px;overflow:auto;margin-top:8px}.bestiary-chip{padding:5px 8px;border:1px solid rgba(130,220,255,.24);border-radius:99px;background:rgba(99,243,255,.055);font:800 9px/1.1 ui-monospace,monospace;color:#d9faff}.bestiary-chip.new{border-color:#ffd166;color:#ffe6a1;background:rgba(255,209,102,.09);box-shadow:0 0 10px rgba(255,209,102,.12)}
    @media(max-width:780px){.bestiary-panel{height:96vh;padding:17px}.bestiary-head{display:block}.bestiary-progress{display:inline-block;margin-top:7px}.bestiary-layout{grid-template-columns:1fr;grid-template-rows:minmax(190px,.72fr) minmax(300px,1.28fr)}.bestiary-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.bestiary-card{min-height:96px}.bestiary-card img,.bestiary-card .unknown-glyph{width:55px;height:55px}.bestiary-title-row{align-items:flex-start}.bestiary-portrait{width:108px;height:108px}.bestiary-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
    @media(max-width:470px){.bestiary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.bestiary-title-row{display:block}.bestiary-portrait{margin:0 auto 10px}.bestiary-title-copy{text-align:center}.bestiary-skin-row{justify-content:center}}

  
    /* ===== V5.33 · Boutique visuelle, aperçus de skins et console de pièces ===== */
    #shop{padding:10px;background:
      radial-gradient(circle at 50% 8%,rgba(255,209,102,.12),transparent 30%),
      radial-gradient(circle at 10% 90%,rgba(99,243,255,.1),transparent 34%),
      rgba(0,3,14,.86)}
    #shop .shop-panel{width:min(1040px,96vw);max-height:96dvh;padding:24px;overflow:auto;border-color:#2f9ed1!important;background:linear-gradient(155deg,rgba(5,17,42,.98),rgba(3,6,20,.99));box-shadow:0 30px 100px #000,0 0 48px rgba(73,213,255,.15)!important}
    .shop-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:22px;align-items:end;padding-bottom:16px;border-bottom:1px solid rgba(122,225,255,.15)}
    .shop-header h2{margin-bottom:6px;font-family:"Courier New",ui-monospace,monospace;text-shadow:3px 3px 0 #0a3a73}
    .shop-header p{margin:0;max-width:680px}
    .shop-wallet{position:relative;display:grid;grid-template-columns:42px auto;grid-template-rows:auto auto;justify-content:start;align-items:center;min-width:190px;margin:0;padding:12px 16px;border:2px solid #ffd166;background:linear-gradient(145deg,rgba(63,42,4,.92),rgba(20,12,2,.95));box-shadow:inset 0 0 0 2px rgba(255,229,139,.12),0 0 24px rgba(255,185,38,.14);clip-path:polygon(8px 0,calc(100% - 8px) 0,100% 8px,100% calc(100% - 8px),calc(100% - 8px) 100%,8px 100%,0 calc(100% - 8px),0 8px)}
    .shop-wallet-icon{grid-row:1/3;color:#ffe17a;font:900 30px/1 monospace;text-shadow:0 0 14px #ffb300;animation:shopCoinSpin 2.8s linear infinite}
    .shop-wallet strong{color:#fff;font:950 28px/1 monospace;text-shadow:0 0 12px #ffd166}
    .shop-wallet small{color:#ffe8a7;font:800 9px/1.3 monospace;letter-spacing:.13em}
    @keyframes shopCoinSpin{50%{transform:rotateY(180deg)}}
    .shop-progress-note{display:flex;align-items:center;gap:10px;margin:13px 0 4px;padding:9px 12px;border-left:3px solid #63f3ff;background:rgba(99,243,255,.055);color:#c9faff;font:800 10px/1.45 monospace;letter-spacing:.035em}
    .shop-progress-note b{color:#ffd166}
    .shop-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:14px 0 12px}
    .shop-tabs .btn{position:relative;width:100%;padding:11px 8px;text-align:center;border-color:#246fa8!important;background:rgba(4,22,51,.82);font:900 11px/1.1 "Courier New",monospace;letter-spacing:.04em}
    .shop-tabs .btn:before{display:block;margin-bottom:4px;color:#62eaff;font-size:18px}
    .shop-tabs .btn[data-shop-tab="skins"]:before{content:"◇"}
    .shop-tabs .btn[data-shop-tab="thrusters"]:before{content:"♨"}
    .shop-tabs .btn[data-shop-tab="dash"]:before{content:"»"}
    .shop-tabs .btn[data-shop-tab="perks"]:before{content:"✦"}
    .shop-tabs .btn[data-shop-tab="pilot"]:before{content:"☺"}
    .shop-tabs .btn.active{border-color:#ffd166!important;color:#fff;background:linear-gradient(180deg,rgba(92,60,8,.86),rgba(31,18,2,.92));box-shadow:0 0 20px rgba(255,209,102,.15)}
    .shop-tabs .btn.active:before{color:#ffd166;text-shadow:0 0 12px #ffb300}
    .shop-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:15px}
    .shop-card{display:grid;grid-template-columns:150px minmax(0,1fr);gap:13px;min-height:176px;padding:11px!important;overflow:hidden;background:linear-gradient(145deg,rgba(7,30,66,.97),rgba(2,8,25,.99))!important;text-align:left;transition:.18s transform,.18s border-color,.18s box-shadow}
    .shop-card:hover{transform:translateY(-3px);border-color:#63f3ff!important;box-shadow:inset 0 0 0 2px rgba(99,243,255,.13),0 8px 28px rgba(0,0,0,.4),0 0 23px rgba(99,243,255,.11)!important}
    .shop-card.owned{border-color:#46d99b!important}
    .shop-card.equipped{border-color:#ffd166!important;box-shadow:inset 0 0 0 2px rgba(255,209,102,.18),0 0 27px rgba(255,209,102,.16)!important}
    .shop-preview{--preview-main:#63f3ff;--preview-alt:#fff;position:relative;display:grid;place-items:center;min-height:150px;overflow:hidden;border:1px solid rgba(135,223,255,.22);background:
      radial-gradient(circle at 50% 45%,rgba(54,146,214,.16),transparent 32%),
      linear-gradient(180deg,rgba(2,8,28,.95),rgba(1,4,15,.98));clip-path:polygon(8px 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%,0 8px)}
    .shop-preview:before,.shop-preview:after{content:"";position:absolute;border-radius:50%;background:#fff;box-shadow:37px 17px #fff,-45px 43px #8edfff,24px 61px #fff,-22px -31px #bfa7ff;opacity:.55}
    .shop-preview:before{width:2px;height:2px;left:35%;top:23%}.shop-preview:after{width:1px;height:1px;left:64%;top:33%;transform:scale(1.4)}
    .shop-ship{position:relative;z-index:4;width:48px;height:54px;filter:drop-shadow(0 0 7px var(--preview-main));animation:shopShipFloat 1.7s ease-in-out infinite}
    .shop-ship:before{content:"";position:absolute;left:50%;top:4px;transform:translateX(-50%);width:0;height:0;border-left:22px solid transparent;border-right:22px solid transparent;border-bottom:48px solid var(--preview-alt);clip-path:polygon(50% 0,100% 100%,50% 78%,0 100%)}
    .shop-ship:after{content:"";position:absolute;left:50%;top:14px;transform:translateX(-50%);width:0;height:0;border-left:12px solid transparent;border-right:12px solid transparent;border-bottom:28px solid var(--preview-main);clip-path:polygon(50% 0,100% 100%,50% 76%,0 100%)}
    @keyframes shopShipFloat{50%{transform:translateY(-5px)}}
    .shop-aura,.shop-aura:before,.shop-aura:after{position:absolute;inset:50% auto auto 50%;width:82px;height:82px;transform:translate(-50%,-50%);border:2px solid var(--preview-main);border-radius:50%;box-shadow:0 0 16px color-mix(in srgb,var(--preview-main),transparent 25%);opacity:.68;animation:shopAuraPulse 1.8s ease-in-out infinite}
    .shop-aura:before,.shop-aura:after{content:"";width:58px;height:58px;border-width:1px;animation-delay:-.45s}
    .shop-aura:after{width:108px;height:108px;border-style:dashed;animation:shopAuraSpin 5s linear infinite}
    @keyframes shopAuraPulse{50%{opacity:.28;transform:translate(-50%,-50%) scale(1.12)}}
    @keyframes shopAuraSpin{to{transform:translate(-50%,-50%) rotate(360deg)}}
    .shop-thruster{position:absolute;z-index:2;left:50%;top:91px;width:18px;height:46px;transform:translateX(-50%);background:linear-gradient(180deg,#fff 0 12%,var(--preview-main) 35%,var(--preview-alt) 100%);clip-path:polygon(35% 0,65% 0,100% 100%,50% 72%,0 100%);filter:drop-shadow(0 0 10px var(--preview-main));animation:shopFlame .17s steps(2,end) infinite}
    /* Aperçus réels V5.41 : la boutique affiche les mêmes PNG que le vaisseau en jeu. */
    .shop-preview-real .shop-preview-sprite{position:relative;z-index:4;width:min(104px,78%);height:auto;transform:rotate(-90deg);image-rendering:pixelated;filter:drop-shadow(0 0 8px var(--preview-main));animation:shopShipFloat 1.7s ease-in-out infinite}
    .shop-preview-pilot{grid-template-columns:1fr 1fr;gap:4px;padding:8px}.shop-preview-pilot .shop-pilot-sprite{position:relative;z-index:4;width:min(92px,90%);height:auto;margin:auto;image-rendering:pixelated;filter:drop-shadow(0 0 8px var(--preview-main));animation:shopShipFloat 1.9s ease-in-out infinite}.shop-preview-pilot .shop-pilot-sprite:nth-of-type(2){animation-delay:-.7s}
    .shop-preview-real .shop-preview-flame{position:absolute;z-index:3;left:50%;top:76%;width:50px;height:auto;transform:translate(-50%,-50%) rotate(-90deg);transform-origin:center;image-rendering:pixelated;filter:drop-shadow(0 0 9px var(--preview-main));animation:shopFlameReal .22s steps(2,end) infinite}
    @keyframes shopFlameReal{50%{transform:translate(-50%,-48%) rotate(-90deg) scaleX(1.12)}}
    @keyframes shopFlame{50%{height:38px;filter:drop-shadow(0 0 16px var(--preview-main))}}
    .shop-dash-ghost{position:absolute;z-index:2;width:30px;height:34px;opacity:.2;filter:drop-shadow(0 0 6px var(--preview-main))}
    .shop-dash-ghost:before{content:"";position:absolute;width:0;height:0;border-left:14px solid transparent;border-right:14px solid transparent;border-bottom:30px solid var(--preview-main);clip-path:polygon(50% 0,100% 100%,50% 78%,0 100%)}
    .shop-dash-ghost.g1{left:13%;top:57%;animation:shopGhost 1.25s linear infinite}.shop-dash-ghost.g2{left:29%;top:48%;animation:shopGhost 1.25s .18s linear infinite}.shop-dash-ghost.g3{left:46%;top:38%;animation:shopGhost 1.25s .36s linear infinite}
    @keyframes shopGhost{0%{opacity:0;transform:translate(-12px,8px) scale(.72)}45%{opacity:.45}100%{opacity:0;transform:translate(21px,-14px) scale(1.05)}}
    .shop-perk-icon{position:relative;z-index:3;display:grid;place-items:center;width:72px;height:72px;border:2px solid var(--preview-main);transform:rotate(45deg);background:rgba(13,38,73,.84);box-shadow:0 0 22px color-mix(in srgb,var(--preview-main),transparent 35%);font:900 36px/1 monospace;color:var(--preview-alt);animation:shopPerkPulse 1.65s ease-in-out infinite}
    .shop-perk-icon span{transform:rotate(-45deg)}
    @keyframes shopPerkPulse{50%{transform:rotate(45deg) scale(1.08)}}
    .shop-card-copy{display:flex;min-width:0;flex-direction:column}
    .shop-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
    .shop-card h3{margin:2px 0 4px;color:#fff;font:900 15px/1.15 "Courier New",monospace}
    .shop-card p{flex:1;min-height:0;margin:5px 0 8px;color:#aebbd0;font-size:11px;line-height:1.42}
    .shop-state-badge{flex:0 0 auto;padding:4px 6px;border:1px solid #47739d;color:#9fdfff;background:rgba(9,30,55,.8);font:900 8px/1 monospace;letter-spacing:.06em}
    .shop-card.owned .shop-state-badge{border-color:#46d99b;color:#77ffc1}.shop-card.equipped .shop-state-badge{border-color:#ffd166;color:#ffe69b}
    .shop-card-footer{display:flex;align-items:center;gap:9px;margin-top:auto}
    .shop-card .price{flex:1;color:#ffe27a;font:900 12px monospace}.shop-card button{width:auto;min-width:104px;margin:0;padding:9px 10px;text-align:center}
    .shop-card button:disabled{opacity:.52;cursor:default}
    #shopBack{margin-top:3px;text-align:center}
    .dev-coin-console{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;margin:12px 0;padding:12px 14px;border:2px solid #d3a62d;background:linear-gradient(145deg,rgba(67,44,5,.82),rgba(22,13,2,.92));box-shadow:inset 0 0 0 2px rgba(255,225,122,.09),0 0 20px rgba(255,183,34,.1);clip-path:polygon(8px 0,calc(100% - 8px) 0,100% 8px,100% calc(100% - 8px),calc(100% - 8px) 100%,8px 100%,0 calc(100% - 8px),0 8px)}
    .dev-coin-console strong{display:block;color:#ffe17a;font:950 19px/1.1 monospace}.dev-coin-console small{display:block;margin-top:4px;color:#d9c69a;font:700 9px/1.3 monospace;letter-spacing:.06em}
    #devAddCoinsBtn{width:auto;min-width:145px;text-align:center;border-color:#ffd166!important;color:#fff5c9;background:linear-gradient(180deg,rgba(126,83,9,.92),rgba(57,33,2,.96))}
    @media(max-width:760px){
      #shop .shop-panel{padding:15px 12px}.shop-header{grid-template-columns:1fr;gap:10px}.shop-wallet{width:100%;min-width:0}
      .shop-grid{grid-template-columns:1fr}.shop-card{grid-template-columns:126px minmax(0,1fr);min-height:158px}.shop-preview{min-height:136px}
      .shop-tabs{gap:5px}.shop-tabs .btn{padding:8px 3px;font-size:9px}.shop-tabs .btn:before{font-size:15px}
    }
    @media(max-width:470px){
      #shop{padding:4px}.shop-card{grid-template-columns:104px minmax(0,1fr);gap:8px;padding:8px!important}.shop-preview{min-height:130px}
      .shop-card h3{font-size:12px}.shop-card p{font-size:9px}.shop-card-footer{display:grid;grid-template-columns:1fr}.shop-card button{width:100%;min-width:0}
      .shop-progress-note{font-size:8px}.dev-coin-console{grid-template-columns:1fr}#devAddCoinsBtn{width:100%}
    }


    /* ===== V5.39 · COMPTE JOUEUR SIMPLIFIÉ ===== */
    #onlineProfile.profile-screen{place-items:center;align-items:center;padding:8px}
    .profile-pixel-panel.profile-simple-account{width:min(650px,95vw);max-height:94vh;margin:0 auto;padding:18px 22px 16px;overflow:auto}
    .profile-simple-account .profile-logo{font-size:clamp(28px,7vw,48px)}
    .profile-simple-account .profile-overline{margin:10px 0 3px}
    .profile-simple-account>h2{margin-bottom:14px;font-size:clamp(24px,5vw,38px)}
    .profile-account-question{margin:10px 0;padding:22px 18px;border:2px solid #31daf4;background:linear-gradient(180deg,rgba(5,30,70,.94),rgba(2,12,36,.96));box-shadow:inset 0 0 0 2px rgba(99,243,255,.08),0 0 24px rgba(49,218,244,.12);text-align:center;clip-path:polygon(10px 0,calc(100% - 10px) 0,100% 10px,100% calc(100% - 10px),calc(100% - 10px) 100%,10px 100%,0 calc(100% - 10px),0 10px)}
    .profile-account-question h3{margin:0 0 18px;color:#fff;font:900 clamp(18px,4.5vw,27px)/1.25 "Courier New",monospace}
    .profile-yes-no{display:grid;grid-template-columns:1fr 1fr;gap:10px}.profile-yes-no .btn{text-align:center;min-height:52px;font-size:17px}
    .profile-no-thanks{width:100%;min-height:54px;margin-top:13px;text-align:center;border-color:#7088b5!important;background:linear-gradient(180deg,rgba(19,31,60,.96),rgba(5,10,28,.98))!important;color:#fff!important;font:950 clamp(14px,3.6vw,18px)/1 "Courier New",monospace!important;letter-spacing:.04em}
    .profile-no-thanks:hover,.profile-no-thanks:focus-visible{border-color:#fff!important;box-shadow:0 0 20px rgba(112,180,255,.25)!important}

    .profile-simple-account .profile-choice-box{margin:10px 0;padding:18px;border-color:#31daf4}
    .profile-simple-account .profile-choice-box h3{margin:0 0 14px;text-align:center;color:#fff;font-size:clamp(17px,4vw,23px)}
    .profile-simple-account .online-field{font-size:13px}.profile-simple-account .online-field input{min-height:48px;font-size:16px;text-align:center}
    .profile-simple-account .profile-icons{grid-template-columns:repeat(6,minmax(42px,1fr));margin-top:6px}
    .profile-simple-account .profile-icon-choice{min-height:52px;font-size:24px;cursor:pointer}
    .profile-confirm-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;margin-top:15px}.profile-confirm-actions .btn{text-align:center;min-height:48px}.profile-choice-back{min-width:105px!important}
    .profile-simple-account .cloud-status{min-height:18px;margin:8px 0;text-align:center}
    .profile-simple-account .online-profile-card{margin-top:8px}.profile-simple-account .connected-actions{margin-top:10px}
    .profile-simple-account #cloudLeaderboardSection h3{margin:12px 0 7px}
    .profile-simple-account .profile-info-note{text-align:center}
    @media(max-width:560px){
      .profile-pixel-panel.profile-simple-account{width:97vw;padding:12px 10px 10px}.profile-account-question{padding:18px 10px}.profile-yes-no .btn{min-height:48px;font-size:15px}
      .profile-simple-account .profile-choice-box{padding:13px 10px}.profile-simple-account .profile-icons{gap:5px}.profile-simple-account .profile-icon-choice{min-height:44px;font-size:20px}
      .profile-confirm-actions{grid-template-columns:1fr}.profile-choice-back{width:100%;min-width:0!important}.profile-simple-account .online-profile-card .stats{grid-template-columns:repeat(2,1fr)}
    }

    /* ===== V5.38 · PLEIN ÉCRAN MOBILE SIMPLE ===== */
    #mobileAppPrompt{position:fixed;inset:0;z-index:650;display:grid;place-items:center;padding:max(14px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:rgba(0,2,11,.88);backdrop-filter:blur(8px)}
    #mobileAppPrompt.hidden{display:none!important}
    .mobile-app-panel{width:min(390px,90vw);padding:22px 18px 17px;border:2px solid #35dfff;border-radius:12px;background:linear-gradient(165deg,rgba(7,27,64,.98),rgba(1,5,20,.99));box-shadow:0 22px 70px #000,0 0 28px rgba(53,223,255,.2);font-family:"Courier New",ui-monospace,monospace;text-align:center}
    .mobile-app-head{display:flex;align-items:center;justify-content:center;gap:12px}.mobile-app-logo{display:grid;place-items:center;width:48px;height:48px;flex:0 0 auto;border:2px solid #63f3ff;border-radius:8px;background:radial-gradient(circle,#163f70,#030815 72%);color:#fff;font-size:26px;text-shadow:0 0 15px #63f3ff}
    .mobile-app-panel .eyebrow{margin:0 0 5px;font-size:9px}.mobile-app-panel h2{margin:0;font-size:clamp(22px,6vw,30px);line-height:1.08}.mobile-app-subtitle{margin:16px auto 4px;max-width:330px;color:#d8e8f8;font-size:12px;line-height:1.5}
    .mobile-app-actions{display:grid;gap:9px;margin-top:18px}.mobile-app-actions .btn{text-align:center}.mobile-app-close-bottom{background:rgba(8,15,34,.9)!important}
    .mobile-app-menu-btn .menu-icon{color:#78ffda;text-shadow:0 0 13px rgba(120,255,218,.8)}
    @media(max-width:540px){.mobile-app-panel{padding:18px 14px 14px}.mobile-app-head{gap:9px}.mobile-app-logo{width:43px;height:43px;font-size:23px}.mobile-app-subtitle{font-size:11px;margin-top:14px}}

    /* ===== V5.62 · AVERTISSEMENT DE DÉVELOPPEMENT ===== */
    .startup-development-overlay{position:fixed;inset:0;z-index:640;display:grid;place-items:center;padding:max(16px,env(safe-area-inset-top)) max(13px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(13px,env(safe-area-inset-left));background:radial-gradient(circle at 50% 35%,rgba(16,78,124,.31),rgba(0,2,12,.97) 60%);backdrop-filter:blur(8px)}
    .startup-development-overlay.hidden{display:none!important}
    .startup-development-panel{width:min(520px,92vw);padding:22px 20px 19px;border:2px solid #54e8ff;border-radius:12px;background:linear-gradient(180deg,rgba(5,23,57,.98),rgba(1,6,22,.99));box-shadow:0 22px 70px #000,0 0 35px rgba(84,232,255,.24),inset 0 0 30px rgba(45,130,255,.08);text-align:center;font-family:"Courier New",ui-monospace,monospace}
    .startup-development-bug{display:block;width:96px;height:96px;margin:-4px auto 5px;object-fit:contain;border-radius:50%;filter:drop-shadow(0 0 14px rgba(84,232,255,.5))}
    .startup-development-panel .eyebrow{margin:0 0 6px;color:#6ff4ff;font:900 10px/1 "Courier New",monospace;letter-spacing:.16em}
    .startup-development-panel h2{margin:0 0 13px;color:#fff;font:950 clamp(25px,6.5vw,39px)/1.02 "Courier New",monospace;text-shadow:3px 3px 0 #17447e}
    .startup-development-panel p{margin:9px auto;color:#cfdef0;font-size:clamp(12px,3.1vw,15px);line-height:1.45}
    .startup-development-panel strong{color:#ffcf63}
    #startupDevelopmentOk{width:100%;min-height:54px;margin-top:14px;text-align:center}
    body.startup-gate #menu{display:none!important}

        /* HUD mobile compact : l’objectif reste dans un coin et ne mange plus la zone jouable. */
    @media (pointer:coarse) and (max-width:950px){
      .hud-top{padding:max(5px,env(safe-area-inset-top)) max(5px,env(safe-area-inset-right)) 0 max(5px,env(safe-area-inset-left));gap:5px;align-items:flex-start}
      .hud-top>.hud-block:first-child{max-width:43vw;padding:5px 7px;border-radius:7px}
      .hud-top>.hud-block:first-child .level-badge{font-size:17px}
      .hud-top>.hud-block:first-child .hud-line{font-size:9px;gap:7px}
      .hud-top>.hud-block:first-child>.bar{height:4px;margin-top:3px}
      .hud-top>.objective{position:fixed;top:max(5px,env(safe-area-inset-top));right:max(5px,env(safe-area-inset-right));left:auto;width:min(43vw,250px);max-width:none;padding:5px 7px;border-radius:7px;text-align:left}
      .objective-name{font-size:10px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
      .hud-top>.objective .hud-line{margin-top:2px;font-size:8px;gap:5px}
      .hud-top>.objective #modifierText{display:none}
      .hud-top>.objective .bar{height:3px;margin-top:3px}
      #heartHud{gap:4px;margin-top:3px;padding-top:3px}
      .heart-progress-icon{width:24px;height:22px}
      #heartPartsText{display:none}
    }
    @media (pointer:coarse) and (orientation:landscape) and (max-height:620px){
      .hud-top>.hud-block:first-child{max-width:210px}
      .hud-top>.objective{width:min(34vw,220px)}
      .hud-top>.objective .hud-line{font-size:7px}
    }



    /* ===== BANC D’ESSAI GUIDÉ DES MODULES V5.42 ===== */
    .module-test-console{margin:16px 0;padding:15px;border:2px solid #5f74ff;background:linear-gradient(145deg,rgba(24,31,82,.9),rgba(8,10,31,.96));box-shadow:inset 0 0 0 2px rgba(116,242,255,.06),0 0 24px rgba(90,100,255,.12);clip-path:polygon(9px 0,calc(100% - 9px) 0,100% 9px,100% calc(100% - 9px),calc(100% - 9px) 100%,9px 100%,0 calc(100% - 9px),0 9px)}
    .module-test-console h3{margin:0;color:#bfc8ff;font:950 18px/1.15 ui-monospace,monospace;letter-spacing:.06em}.module-test-console p{margin:7px 0 12px;font-size:11px}.module-test-console-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:end}.module-test-console label{display:grid;gap:5px;color:#a9b6d5;font:800 10px/1.2 ui-monospace,monospace;letter-spacing:.05em}.module-test-console select{width:100%;padding:10px;border:1px solid #5366c9;border-radius:8px;background:#070b25;color:#fff;font:800 11px ui-monospace,monospace}.module-test-console .btn{width:auto;min-width:190px;text-align:center}.module-test-status{margin-top:9px;padding:8px 10px;border-left:3px solid #63f3ff;background:rgba(99,243,255,.06);color:#c8f9ff;font:750 10px/1.45 ui-monospace,monospace}
    #moduleTestHud{position:fixed;z-index:24;left:50%;top:max(8px,env(safe-area-inset-top));transform:translateX(-50%);width:min(720px,94vw);max-height:calc(100vh - max(16px,env(safe-area-inset-top)));overflow-y:auto;overscroll-behavior:contain;padding:11px 13px;border:2px solid #7988ff;border-radius:10px;background:linear-gradient(180deg,rgba(8,13,44,.98),rgba(2,5,20,.98));box-shadow:0 16px 50px rgba(0,0,0,.6),0 0 26px rgba(95,116,255,.22);font-family:ui-monospace,"Courier New",monospace;pointer-events:auto;scrollbar-width:thin}
    #moduleTestHud.hidden{display:none!important}.module-test-hud-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.module-test-hud-copy{min-width:0}.module-test-hud-copy small{display:block;color:#8fa8cf;font-size:9px;letter-spacing:.1em}.module-test-hud-copy strong{display:block;margin-top:3px;color:#fff;font-size:clamp(14px,3.2vw,20px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.module-test-stage{color:#79f4ff!important}.module-test-instruction{margin:7px 0 5px;color:#d9e3ff;font-size:10px;line-height:1.35}.module-test-progress{height:6px;overflow:hidden;border-radius:99px;background:rgba(255,255,255,.1)}.module-test-progress i{display:block;height:100%;width:0;background:linear-gradient(90deg,#63f3ff,#9d7cff,#ff63bd);box-shadow:0 0 12px rgba(99,243,255,.65)}#moduleTestAbortBtn{width:auto!important;flex:0 0 auto;padding:7px 9px!important;font-size:9px!important}
    .module-test-head-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}.module-test-description,.module-test-effect,.module-test-instruction{display:block!important;visibility:visible!important;opacity:1!important}.module-test-auto{display:flex;align-items:center;gap:5px;padding:6px 8px;border:1px solid rgba(121,136,255,.45);border-radius:7px;background:rgba(121,136,255,.08);color:#cbd4ff;font:850 9px ui-monospace,monospace;white-space:nowrap}.module-test-auto input{accent-color:#63f3ff}.module-test-description{margin:7px 0 4px;padding:7px 9px;border-left:3px solid #63f3ff;background:rgba(99,243,255,.075);color:#d8fbff;font:800 10px/1.38 ui-monospace,monospace}.module-test-description::before,.module-test-effect::before{display:block;margin-bottom:3px;font:950 8px/1.1 ui-monospace,monospace;letter-spacing:.12em}.module-test-description::before{content:"DESCRIPTION DE L’AMÉLIORATION";color:#63f3ff}.module-test-effect{margin:5px 0 4px;padding:7px 9px;border-left:3px solid #ffd166;background:rgba(255,209,102,.07);color:#ffe8a8;font:850 10px/1.35 ui-monospace,monospace}.module-test-effect::before{content:"EFFET À VÉRIFIER À CETTE ÉTAPE";color:#ffd166}.module-test-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 8px;margin:6px 0;color:#b9c9e8;font:750 9px/1.3 ui-monospace,monospace}.module-test-stats b{color:#fff}.module-test-bars{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:6px 0}.module-test-meter{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:6px;color:#dbe5ff;font:850 8px ui-monospace,monospace}.module-test-meter-track{height:6px;overflow:hidden;border-radius:99px;background:rgba(255,255,255,.1)}.module-test-meter-track i{display:block;height:100%;width:0;transition:width .12s}.module-test-hp-fill{background:linear-gradient(90deg,#ff546f,#ff9a69)}.module-test-shield-fill{background:linear-gradient(90deg,#4aa8ff,#79f4ff)}.module-test-mini-log{min-height:15px;margin:4px 0 6px;color:#92a8c9;font:700 8px/1.25 ui-monospace,monospace;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.module-test-controls{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:7px}.module-test-controls .btn{width:100%;min-width:0;padding:7px 5px!important;font-size:8px!important}.module-test-controls .primary{font-size:9px!important}.module-test-progress-row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px;margin-top:6px}.module-test-time{color:#a8b8d8;font:800 8px ui-monospace,monospace;white-space:nowrap}
    .module-test-review .panel,.module-test-summary .panel{width:min(820px,95vw)}.module-test-review-card{margin:16px 0;padding:14px;border:1px solid rgba(123,145,255,.45);border-radius:12px;background:rgba(13,18,52,.72)}.module-test-review-card strong{color:#fff}.module-test-review-card small{display:block;margin-top:5px;color:#a8b7d7}.module-test-review textarea{width:100%;min-height:110px;margin:10px 0;padding:11px;border:1px solid #5668a9;border-radius:9px;background:#05091c;color:#fff;resize:vertical;font:12px/1.45 ui-monospace,monospace}.module-test-result-list{display:grid;gap:7px;margin:14px 0;max-height:36vh;overflow:auto}.module-test-result{padding:9px 11px;border:1px solid rgba(255,255,255,.1);border-radius:8px;background:rgba(255,255,255,.035);font:11px/1.4 ui-monospace,monospace}.module-test-result.ok{border-color:rgba(87,255,187,.35)}.module-test-result.ko{border-color:rgba(255,91,116,.48)}.module-test-result strong{color:#fff}.module-test-result em{display:block;margin-top:3px;color:#ffb8c4;font-style:normal}.module-test-report{width:100%;height:190px;padding:10px;border:1px solid #3c567c;background:#020611;color:#bff6ff;resize:vertical;font:10px/1.35 ui-monospace,monospace;white-space:pre}
    @media(max-width:700px){.module-test-console-grid{grid-template-columns:1fr}.module-test-console .btn{width:100%}.module-test-hud-head{gap:6px}#moduleTestHud{top:max(4px,env(safe-area-inset-top));padding:7px 8px;width:min(98vw,720px)}.module-test-instruction,.module-test-description,.module-test-effect{font-size:8px;margin:4px 0;padding:5px 7px}.module-test-stats{grid-template-columns:repeat(2,minmax(0,1fr));font-size:8px}.module-test-bars{grid-template-columns:1fr}.module-test-mini-log{display:none}.module-test-head-actions{gap:3px}.module-test-auto{padding:5px;font-size:8px}.module-test-review .panel,.module-test-summary .panel{padding:20px}}
    /* V5.55 · Le banc d’essai ne masque plus la scène entière sur mobile.
       La vue compacte garde seulement le module, son effet, le temps et les
       boutons de navigation. La flèche révèle les mesures détaillées. */
    #moduleTestHud{box-sizing:border-box;transition:max-height .18s ease,padding .18s ease,width .18s ease}
    .module-test-details{display:block}
    .module-test-collapse{display:grid;place-items:center;width:32px;height:32px;flex:0 0 32px;padding:0;border:1px solid rgba(121,136,255,.55);border-radius:7px;background:rgba(121,136,255,.1);color:#dce4ff;font:950 18px/1 ui-monospace,monospace;cursor:pointer;touch-action:manipulation}
    .module-test-collapse:active{transform:scale(.94)}
    #moduleTestHud.compact{max-height:none;overflow:hidden;padding:8px 10px}
    #moduleTestHud.compact .module-test-details{display:none!important}
    #moduleTestHud.compact .module-test-description{margin:5px 0 3px;max-height:6.6em;overflow:auto;scrollbar-width:thin}#moduleTestHud.compact .module-test-effect{margin:4px 0;max-height:6.6em;overflow:auto;scrollbar-width:thin}
    #moduleTestHud.compact .module-test-controls{margin-top:5px}
    #moduleTestHud.compact .module-test-progress-row{margin-top:5px}
    #moduleTestHud.compact .module-test-hud-copy strong{font-size:clamp(13px,3vw,18px)}
    #moduleTestHud.compact .module-test-auto{display:none}
    @media(max-width:700px){
      #moduleTestHud{left:max(6px,env(safe-area-inset-left));right:max(6px,env(safe-area-inset-right));transform:none;width:auto;max-width:none;top:max(4px,env(safe-area-inset-top))}
      #moduleTestHud.compact{padding:6px 7px}
      #moduleTestHud.compact .module-test-hud-head{align-items:center}
      #moduleTestHud.compact .module-test-hud-copy small{font-size:7px}
      #moduleTestHud.compact .module-test-description,#moduleTestHud.compact .module-test-effect{font-size:8px;line-height:1.28}.module-test-description::before,.module-test-effect::before{font-size:7px}
      #moduleTestHud.compact .module-test-controls .btn{padding:6px 3px!important;font-size:7px!important}
      .module-test-collapse{width:29px;height:29px;flex-basis:29px;font-size:16px}
    }



    /* ======================================================================
       V5.62 · DIRECTION ARTISTIQUE UNIQUE POUR LE PORTAIL DE DÉMARRAGE
       Les quatre étapes reprennent volontairement les règles du menu :
       coins coupés, bleu profond, bordures cyan, ombres pixel et Courier New.
       Ce bloc est placé en dernier afin de neutraliser les anciens styles
       arrondis sans dupliquer la structure HTML ni la logique de démarrage.
       ====================================================================== */
    :root{
      --startup-main:#1768b5;
      --startup-cyan:#63f3ff;
      --startup-inner:#061a43;
      --startup-deep:#010614;
      --startup-blue:#031b47;
      --startup-shadow:#03132f;
    }
    body.startup-gate{
      background:#00030d;
    }
    body.startup-gate #audioUnlockOverlay,
    body.startup-gate #mobileAppPrompt,
    body.startup-gate #onlineProfile,
    body.startup-gate #startupDevelopmentNotice{
      background:radial-gradient(circle at 50% 34%,rgba(18,75,130,.24),rgba(0,2,12,.96) 61%);
      backdrop-filter:blur(2px);
      -webkit-backdrop-filter:blur(2px);
    }
    body.startup-gate .audio-unlock-panel,
    body.startup-gate .mobile-app-panel,
    body.startup-gate .profile-pixel-panel.profile-simple-account,
    .startup-development-panel{
      position:relative;
      width:min(590px,92vw);
      max-width:calc(100vw - 24px);
      box-sizing:border-box;
      border:2px solid var(--startup-main)!important;
      border-radius:4px!important;
      background:linear-gradient(180deg,rgba(2,10,32,.93),rgba(1,5,20,.97))!important;
      box-shadow:0 0 0 3px rgba(0,13,45,.94),0 0 34px rgba(52,219,255,.18),inset 0 0 34px rgba(29,91,178,.09)!important;
      clip-path:polygon(10px 0,calc(100% - 10px) 0,100% 10px,100% calc(100% - 10px),calc(100% - 10px) 100%,10px 100%,0 calc(100% - 10px),0 10px)!important;
      font-family:"Courier New",ui-monospace,monospace!important;
      image-rendering:pixelated;
    }
    body.startup-gate .audio-unlock-panel,
    body.startup-gate .mobile-app-panel,
    .startup-development-panel{
      padding:20px 20px 18px!important;
      text-align:center;
    }
    body.startup-gate .audio-unlock-panel::before,
    body.startup-gate .mobile-app-panel::before,
    .startup-development-panel::before{
      content:"✦  STARBREAK // INITIALISATION  ✦";
      display:block;
      margin:0 0 12px;
      color:var(--startup-cyan);
      font:900 clamp(8px,2.2vw,12px)/1.2 "Courier New",monospace;
      letter-spacing:.12em;
      text-shadow:0 0 10px #13bdda;
    }
    body.startup-gate .audio-unlock-panel::after,
    body.startup-gate .mobile-app-panel::after,
    .startup-development-panel::after{
      content:"";
      position:absolute;
      left:16px;
      right:16px;
      top:37px;
      height:2px;
      background:linear-gradient(90deg,transparent,var(--startup-cyan),transparent);
      box-shadow:0 0 8px rgba(99,243,255,.55);
      pointer-events:none;
    }
    body.startup-gate .audio-unlock-icon,
    body.startup-gate .mobile-app-logo{
      display:grid;
      place-items:center;
      width:48px;
      height:48px;
      margin:7px auto 6px;
      border:2px solid var(--startup-main);
      border-radius:2px!important;
      background:linear-gradient(180deg,rgba(7,27,70,.9),rgba(2,12,40,.94));
      color:var(--startup-cyan);
      font-size:30px;
      text-shadow:0 0 12px currentColor;
      box-shadow:inset 0 0 0 2px var(--startup-inner),0 3px 0 var(--startup-shadow);
      clip-path:polygon(6px 0,calc(100% - 6px) 0,100% 6px,100% calc(100% - 6px),calc(100% - 6px) 100%,6px 100%,0 calc(100% - 6px),0 6px);
    }
    body.startup-gate .mobile-app-head{
      display:block!important;
    }
    body.startup-gate .mobile-app-head .eyebrow{
      display:none;
    }
    body.startup-gate .audio-unlock-panel h2,
    body.startup-gate .mobile-app-panel h2,
    .startup-development-panel h2{
      margin:9px 0 10px!important;
      color:#fff!important;
      font:950 clamp(23px,6vw,38px)/1.02 "Courier New",monospace!important;
      letter-spacing:-.045em;
      text-transform:uppercase;
      text-shadow:3px 3px 0 #17447e,0 0 16px rgba(99,243,255,.18)!important;
    }
    body.startup-gate .audio-unlock-panel p,
    body.startup-gate .mobile-app-panel p,
    .startup-development-panel p{
      color:#c8d9ed!important;
      font:700 clamp(11px,2.9vw,14px)/1.45 "Courier New",monospace!important;
    }
    body.startup-gate #audioUnlockStatus,
    body.startup-gate #audioUnlockMode{
      font-family:"Courier New",monospace!important;
    }
    body.startup-gate .audio-unlock-panel .btn,
    body.startup-gate .mobile-app-panel .btn,
    body.startup-gate .profile-pixel-panel.profile-simple-account .btn,
    .startup-development-panel .btn{
      border:2px solid var(--startup-main)!important;
      border-radius:3px!important;
      background:linear-gradient(180deg,rgba(7,27,70,.92),rgba(2,12,40,.96))!important;
      box-shadow:inset 0 0 0 2px var(--startup-inner),0 4px 0 var(--startup-shadow),0 0 14px rgba(24,111,206,.2)!important;
      color:#fff!important;
      font-family:"Courier New",ui-monospace,monospace!important;
      font-weight:950!important;
      clip-path:polygon(7px 0,calc(100% - 7px) 0,100% 7px,100% calc(100% - 7px),calc(100% - 7px) 100%,7px 100%,0 calc(100% - 7px),0 7px)!important;
    }
    body.startup-gate .audio-unlock-panel .btn.primary,
    body.startup-gate .mobile-app-panel .btn.primary,
    body.startup-gate .profile-pixel-panel.profile-simple-account .btn.primary,
    .startup-development-panel .btn.primary{
      border-color:var(--startup-cyan)!important;
      background:linear-gradient(90deg,rgba(0,161,199,.78),rgba(7,78,133,.91))!important;
      box-shadow:inset 0 0 0 2px #087ca6,0 4px 0 #064d7f,0 0 25px rgba(99,243,255,.3)!important;
    }
    body.startup-gate .startup-no-thanks,
    body.startup-gate #cloudNoThanks{
      min-height:54px!important;
      margin-top:12px!important;
      border-color:#315b8d!important;
      color:#d8eaff!important;
      font-size:clamp(14px,3.7vw,17px)!important;
      letter-spacing:.045em!important;
      opacity:1!important;
    }
    body.startup-gate .profile-pixel-panel.profile-simple-account{
      padding:16px 18px 15px!important;
      overflow:auto;
    }
    body.startup-gate .profile-pixel-panel.profile-simple-account .profile-bottom-actions{display:none!important}
    body.startup-gate .profile-pixel-panel.profile-simple-account .profile-logo{
      margin:0;
      color:#fff;
      font:950 clamp(32px,8vw,52px)/.9 "Courier New",monospace;
      letter-spacing:-.07em;
      text-shadow:3px 3px 0 #1f7eca,6px 6px 0 #073d79,0 0 22px rgba(99,243,255,.28);
    }
    body.startup-gate .profile-pixel-panel.profile-simple-account .profile-account-question,
    body.startup-gate .profile-pixel-panel.profile-simple-account .profile-choice-box{
      border-radius:3px!important;
      border-color:var(--startup-main)!important;
      background:linear-gradient(180deg,rgba(7,27,70,.82),rgba(2,12,40,.9))!important;
      box-shadow:inset 0 0 0 2px var(--startup-inner),0 3px 0 var(--startup-shadow)!important;
    }
    .startup-development-panel{
      width:min(590px,92vw)!important;
    }
    .startup-development-bug{
      display:block;
      width:72px!important;
      height:72px!important;
      margin:9px auto 7px!important;
      padding:4px;
      box-sizing:border-box;
      border:2px solid var(--startup-main);
      border-radius:3px!important;
      background:#020b20;
      object-fit:contain;
      image-rendering:pixelated;
      filter:contrast(1.12) saturate(.9) drop-shadow(0 0 9px rgba(99,243,255,.34))!important;
      clip-path:polygon(7px 0,calc(100% - 7px) 0,100% 7px,100% calc(100% - 7px),calc(100% - 7px) 100%,7px 100%,0 calc(100% - 7px),0 7px);
    }
    .startup-development-panel .eyebrow{
      margin:3px 0 6px!important;
      color:#64f3ff!important;
      font:900 10px/1.2 "Courier New",monospace!important;
      letter-spacing:.14em!important;
    }

    /* Compteur-cafard : bouton de menu, pas médaillon extérieur au jeu. */
    #bugCounterBtn{
      width:58px!important;
      height:58px!important;
      padding:4px!important;
      border:2px solid var(--startup-main)!important;
      border-radius:3px!important;
      background:linear-gradient(180deg,rgba(7,27,70,.94),rgba(2,12,40,.97))!important;
      box-shadow:inset 0 0 0 2px var(--startup-inner),0 4px 0 var(--startup-shadow),0 0 17px rgba(24,111,206,.24)!important;
      clip-path:polygon(8px 0,calc(100% - 8px) 0,100% 8px,100% calc(100% - 8px),calc(100% - 8px) 100%,8px 100%,0 calc(100% - 8px),0 8px)!important;
    }
    #bugCounterBtn:hover,#bugCounterBtn:focus-visible{
      border-color:var(--startup-cyan)!important;
      background:linear-gradient(180deg,rgba(11,57,103,.96),rgba(3,21,56,.97))!important;
      box-shadow:inset 0 0 0 2px #0b4075,0 5px 0 #02112c,0 0 24px rgba(99,243,255,.3)!important;
    }
    #bugCounterBtn:active{filter:brightness(1.22)!important}
    #bugCounterBtn .bug-icon{
      width:100%!important;
      height:100%!important;
      border-radius:1px!important;
      object-fit:contain;
      image-rendering:pixelated;
      filter:contrast(1.15) saturate(.88) drop-shadow(0 0 4px rgba(99,243,255,.32))!important;
    }
    #bugCounterBtn::after{
      content:"BUG";
      position:absolute;
      left:50%;
      bottom:2px;
      transform:translateX(-50%);
      padding:1px 3px;
      background:rgba(1,6,20,.84);
      color:#d9faff;
      font:950 7px/1 "Courier New",monospace;
      letter-spacing:.1em;
      pointer-events:none;
    }
    #bugCounterBtn strong{
      right:-6px!important;
      bottom:-6px!important;
      min-width:25px!important;
      height:25px!important;
      border:2px solid #ffd166!important;
      border-radius:2px!important;
      background:#170c05!important;
      color:#fff!important;
      font:950 12px/1 "Courier New",monospace!important;
      box-shadow:0 0 10px rgba(255,209,102,.4)!important;
      clip-path:polygon(4px 0,calc(100% - 4px) 0,100% 4px,100% calc(100% - 4px),calc(100% - 4px) 100%,4px 100%,0 calc(100% - 4px),0 4px);
    }
    body.gameplay-active #bugCounterBtn{
      width:50px!important;
      height:50px!important;
    }
    @media(max-width:620px){
      body.startup-gate .audio-unlock-panel,
      body.startup-gate .mobile-app-panel,
      body.startup-gate .profile-pixel-panel.profile-simple-account,
      .startup-development-panel{
        width:min(92vw,540px)!important;
        padding:15px 12px 13px!important;
      }
      body.startup-gate .audio-unlock-panel::after,
      body.startup-gate .mobile-app-panel::after,
      .startup-development-panel::after{left:11px;right:11px;top:33px}
      body.startup-gate .audio-unlock-panel::before,
      body.startup-gate .mobile-app-panel::before,
      .startup-development-panel::before{margin-bottom:10px;font-size:8px}
      .startup-development-bug{width:62px!important;height:62px!important}
      #bugCounterBtn{width:54px!important;height:54px!important}
      body.gameplay-active #bugCounterBtn{width:46px!important;height:46px!important}
    }



    /* ======================================================================
       V5.68 — SIGNALEMENT DE BUG + MENU MOBILE ALLÉGÉ
       Les règles ci-dessous sont volontairement regroupées en fin de feuille :
       elles remplacent les anciens ajustements mobiles sans modifier le bureau.
       ====================================================================== */
    #bugReportOverlay{position:fixed;inset:0;z-index:260;display:grid;place-items:center;padding:max(14px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:rgba(0,3,13,.9);backdrop-filter:blur(7px);font-family:"Courier New",ui-monospace,monospace}
    #bugReportOverlay.hidden{display:none!important}
    .bug-report-panel{width:min(590px,94vw);max-height:92vh;padding:18px;border:2px solid #1768b5;border-radius:4px;overflow:auto;background:linear-gradient(180deg,rgba(3,15,43,.98),rgba(1,6,22,.99));box-shadow:0 0 0 3px #020d27,0 0 32px rgba(60,215,255,.22);clip-path:polygon(10px 0,calc(100% - 10px) 0,100% 10px,100% calc(100% - 10px),calc(100% - 10px) 100%,10px 100%,0 calc(100% - 10px),0 10px)}
    .bug-report-panel .eyebrow{margin:0 0 6px;color:#63f3ff;font:900 10px/1.1 "Courier New",monospace;letter-spacing:.15em;text-transform:uppercase}
    .bug-report-panel h2{margin:0 0 9px;color:#fff;font:950 clamp(25px,7vw,38px)/.95 "Courier New",monospace;letter-spacing:-.06em;text-shadow:3px 3px 0 #10366d}
    .bug-report-lead{margin:0 0 12px;color:#bcd3eb;font-size:12px;line-height:1.45}.bug-report-lead strong{color:#ffd166}
    .bug-report-field{display:grid;gap:6px;color:#84efff;font:900 10px/1.2 "Courier New",monospace;letter-spacing:.08em;text-transform:uppercase}
    #bugReportText{box-sizing:border-box;width:100%;min-height:150px;max-height:36vh;padding:11px 12px;resize:vertical;border:2px solid #194e7d;border-radius:3px;outline:none;background:#020816;color:#f4fbff;font:700 13px/1.45 "Courier New",monospace;letter-spacing:0;text-transform:none;box-shadow:inset 0 0 18px rgba(29,91,178,.1)}
    #bugReportText:focus{border-color:#63f3ff;box-shadow:inset 0 0 18px rgba(29,91,178,.1),0 0 16px rgba(99,243,255,.18)}
    .bug-report-meta{display:flex;justify-content:space-between;gap:8px;margin-top:7px;color:#7287a5;font:700 9px/1.3 "Courier New",monospace}.bug-report-meta b{color:#ff9fbd}
    #bugReportStatus{min-height:18px;margin-top:9px;color:#9db4d2;font:800 10px/1.35 "Courier New",monospace}#bugReportStatus.ok{color:#7fffd5}#bugReportStatus.error{color:#ff91a6}#bugReportStatus.busy{color:#ffe29b}
    .bug-report-actions{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:8px;margin-top:11px}.bug-report-actions .btn{min-width:0;min-height:46px;padding:8px;font:900 11px/1.1 "Courier New",monospace;text-align:center}
    body.bug-report-open #touch{pointer-events:none!important;opacity:.15!important}

    .leaderboard-personal-card{display:grid;grid-template-columns:1.35fr .85fr .85fr;gap:6px;margin:9px 0;padding:8px;border:2px solid #1b77b7;background:linear-gradient(90deg,rgba(7,51,93,.82),rgba(7,16,46,.9));box-shadow:inset 0 0 0 2px #072550}
    .leaderboard-personal-card>div{min-width:0;padding:7px 8px;border-right:1px dotted rgba(99,243,255,.3)}.leaderboard-personal-card>div:last-child{border-right:0}
    .leaderboard-personal-card small{display:block;color:#73eaff;font:900 8px/1.1 "Courier New",monospace;letter-spacing:.08em}.leaderboard-personal-card strong{display:block;margin-top:4px;color:#fff;font:950 clamp(20px,5vw,32px)/1 "Courier New",monospace;text-shadow:2px 2px 0 #123d7b}.leaderboard-personal-card .rank strong{color:#ffd166}

    @media(max-width:700px){
      /* Sur téléphone, le menu devient une vraie page de lancement et non un tableau de statistiques. */
      #menu.pixel-menu-screen{padding:max(7px,env(safe-area-inset-top)) 7px max(7px,env(safe-area-inset-bottom));overflow:hidden!important}
      #menu .pixel-menu-panel{box-sizing:border-box;width:min(96vw,520px)!important;max-height:calc(100dvh - 14px)!important;margin:0!important;padding:10px 9px 9px!important;overflow:auto!important}
      #menu .pixel-menu-header{margin-bottom:2px}
      #menu .pixel-eyebrow{margin:0 0 5px!important;font-size:7px!important;letter-spacing:.08em!important}
      #menu .pixel-eyebrow:before,#menu .pixel-eyebrow:after{width:15px!important;height:1px!important}
      #menu .pixel-logo{font-size:clamp(31px,11vw,45px)!important;line-height:.78!important}
      #menu .pixel-logo span{margin-top:8px!important;font-size:7px!important;letter-spacing:.13em!important}
      #menu .pixel-menu-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px!important;margin-top:9px!important}
      #menu .pixel-menu-btn{box-sizing:border-box;grid-template-columns:27px minmax(0,1fr)!important;gap:4px;min-width:0;min-height:43px!important;padding:5px 6px!important;border-width:2px!important;font-size:10px!important;letter-spacing:-.025em!important;line-height:1.05!important}
      #menu .pixel-menu-btn>b{display:none!important}
      #menu .pixel-menu-btn .menu-icon{width:24px!important;height:24px!important;font-size:17px!important}
      #menu .pixel-menu-btn .start-icon{font-size:21px!important}
      #menu #newBtn,#menu #continueBtn{grid-column:1/-1;min-height:49px!important;font-size:12px!important}
      #menu #newBtn .menu-icon,#menu #continueBtn .menu-icon{font-size:21px!important}
      #menu #anomalyBtn,#menu #bossRushBtn{min-height:46px!important;font-size:9px!important}
      #menu #anomalyMenuHint,#menu #bossRushMenuHint{display:none!important}
      #menu #settingsBtn,#menu #helpBtn,#menu #bestiaryBtn,#menu #onlineBtn,#menu #shopBtn,#menu #mobileAppMenuBtn{min-height:41px!important}
      #menu .coin-count,#menu #bestiaryMenuCount{display:none!important}
      #menu .pixel-main-stats,#menu .pixel-bottom-stats,#menu #onlineMiniStatus,#menu #bootStatus,#menu .pixel-footer{display:none!important}
      #menu .pixel-development-callout{display:none!important}
      /* Le cafard garde sa position flottante mémorisée, mais sa taille reste discrète au menu. */
      body:not(.gameplay-active) #bugCounterBtn{width:48px!important;height:48px!important}
      body:not(.gameplay-active) #bugCounterBtn strong{min-width:21px!important;height:21px!important;font-size:10px!important}
      .leaderboard-personal-card{grid-template-columns:1fr 1fr 1fr;padding:6px;gap:3px}.leaderboard-personal-card>div{padding:6px 4px}.leaderboard-personal-card strong{font-size:18px}.leaderboard-personal-card small{font-size:7px}
      .bug-report-panel{width:min(96vw,560px);padding:13px 11px}.bug-report-panel h2{font-size:27px}#bugReportText{min-height:132px;font-size:12px}.bug-report-actions{grid-template-columns:1fr}.bug-report-actions .btn{min-height:42px}
    }
    @media(max-width:390px){
      #menu .pixel-menu-btn{min-height:39px!important;font-size:9px!important}
      #menu #newBtn,#menu #continueBtn{min-height:45px!important;font-size:11px!important}
      #menu #anomalyBtn,#menu #bossRushBtn{min-height:42px!important}
      #menu .pixel-menu-actions{gap:5px!important}
    }

    /* V5.75 · choix d'une technologie inconnue : signal instable et chromatique. */
    @keyframes unknownTechSpectrum{
      0%{border-color:#ff5c9d;box-shadow:inset 0 0 0 2px rgba(255,92,157,.25),0 0 24px rgba(255,92,157,.42)}
      17%{border-color:#ffca55;box-shadow:inset 0 0 0 2px rgba(255,202,85,.25),0 0 24px rgba(255,202,85,.42)}
      34%{border-color:#74ff8b;box-shadow:inset 0 0 0 2px rgba(116,255,139,.25),0 0 24px rgba(116,255,139,.42)}
      51%{border-color:#55f5ff;box-shadow:inset 0 0 0 2px rgba(85,245,255,.25),0 0 24px rgba(85,245,255,.42)}
      68%{border-color:#7c8cff;box-shadow:inset 0 0 0 2px rgba(124,140,255,.25),0 0 24px rgba(124,140,255,.42)}
      84%{border-color:#d274ff;box-shadow:inset 0 0 0 2px rgba(210,116,255,.25),0 0 24px rgba(210,116,255,.42)}
      100%{border-color:#ff5c9d;box-shadow:inset 0 0 0 2px rgba(255,92,157,.25),0 0 24px rgba(255,92,157,.42)}
    }
    @keyframes unknownTechTextSpectrum{
      0%{color:#ff8dba;text-shadow:0 0 10px #ff4d9d}
      25%{color:#fff179;text-shadow:0 0 10px #ffc14d}
      50%{color:#7dfff0;text-shadow:0 0 10px #34d9ff}
      75%{color:#c894ff;text-shadow:0 0 10px #9857ff}
      100%{color:#ff8dba;text-shadow:0 0 10px #ff4d9d}
    }
    #upgrade .upgrade-card.unknown-tech{
      border-width:3px!important;
      background:linear-gradient(135deg,rgba(24,7,34,.98),rgba(4,23,42,.98),rgba(29,8,38,.98))!important;
      animation:unknownTechSpectrum 2.15s linear infinite!important;
    }
    #upgrade .upgrade-card.unknown-tech:after{animation:unknownTechTextSpectrum 1.7s linear infinite!important}
    #upgrade .upgrade-card.unknown-tech h3,
    #upgrade .upgrade-card.unknown-tech .upgrade-icon,
    #upgrade .upgrade-card.unknown-tech .rarity{animation:unknownTechTextSpectrum 1.55s linear infinite!important}
    #upgrade .upgrade-card.unknown-tech h3{font-family:"Courier New",ui-monospace,monospace!important;letter-spacing:.18em!important;min-height:1.25em}
    #upgrade .upgrade-card.unknown-tech p{color:#dce8ff!important;text-shadow:0 0 8px rgba(124,140,255,.26)}
    @media (prefers-reduced-motion:reduce){#upgrade .upgrade-card.unknown-tech,#upgrade .upgrade-card.unknown-tech:after,#upgrade .upgrade-card.unknown-tech h3,#upgrade .upgrade-card.unknown-tech .upgrade-icon,#upgrade .upgrade-card.unknown-tech .rarity{animation-duration:4.5s!important}}


    /* V5.93 · Mini-démonstrations animées des améliorations */
    #upgrade .upgrade-icon:has(.upgrade-demo),.overclock-card .upgrade-icon:has(.upgrade-demo){
      overflow:hidden;padding:0;background:radial-gradient(circle at 46% 50%,rgba(22,76,126,.38),rgba(1,7,24,.98));
    }
    .upgrade-demo{position:static!important;inset:auto!important;display:block;width:100%;height:100%;cursor:default;image-rendering:pixelated;image-rendering:crisp-edges}
    .upgrade-demo-gallery{position:fixed;z-index:1000000;inset:0;overflow:auto;padding:20px;background:#020615;color:#fff;font-family:"Courier New",monospace}
    .upgrade-demo-gallery-head{position:sticky;z-index:2;top:0;display:flex;justify-content:space-between;align-items:center;gap:14px;margin:-20px -20px 16px;padding:14px 20px;border-bottom:2px solid #1a72b9;background:rgba(2,6,21,.97)}
    .upgrade-demo-gallery-head h1{margin:0;color:#fff;font-size:22px;text-shadow:2px 2px #1768b5}
    .upgrade-demo-gallery-head button{padding:8px 14px;border:2px solid #55ecff;background:#071c3b;color:#fff;font:900 11px monospace;cursor:pointer}
    .upgrade-demo-gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px}
    .upgrade-demo-gallery-card{display:grid;grid-template-columns:96px 1fr;align-items:center;min-height:82px;padding:8px;border:2px solid #165895;background:linear-gradient(145deg,#071b40,#020a20)}
    .upgrade-demo-gallery-card canvas{width:96px;height:72px;border:1px solid #174d84;background:#020817}
    .upgrade-demo-gallery-card strong{display:block;margin-left:9px;font-size:11px;line-height:1.25}
    .upgrade-demo-gallery-card small{display:block;margin:5px 0 0 9px;color:#60efff;font-size:8px}
    @media (prefers-reduced-motion:reduce){.upgrade-demo{opacity:.92}}

  

    /* V5.94 · Création de compte volontairement réduite au strict nécessaire */
    #onlineProfile.profile-new-minimal .profile-logo,
    #onlineProfile.profile-new-minimal .profile-overline,
    #onlineProfile.profile-new-minimal #cloudScreenTitle,
    #onlineProfile.profile-new-minimal .profile-bottom-actions{display:none!important}
    #onlineProfile.profile-new-minimal .profile-pixel-panel{width:min(720px,92vw);padding-top:28px;padding-bottom:24px}
    #onlineProfile.profile-new-minimal #cloudNewPilotSection{margin-top:0}
    #onlineProfile.profile-new-minimal #cloudNewPilotSection>h3{margin-top:0;margin-bottom:22px}
    @media(max-width:700px){
      #onlineProfile.profile-new-minimal .profile-pixel-panel{padding-top:20px}
      #onlineProfile.profile-new-minimal #cloudNewPilotSection>h3{margin-bottom:15px}
    }

  

/* V5.96 — créateur compact façon menu principal + véritable cadrage buste */
#avatarCreator{
  padding:8px!important;overflow:hidden!important;
  background:radial-gradient(circle at 50% 15%,#0b3153 0,#031121 36%,#000711 76%)!important;
}
#avatarCreator .av-shell{
  width:min(1480px,calc(100vw - 16px))!important;
  height:min(920px,calc(100dvh - 16px))!important;
  min-height:0!important;max-height:calc(100dvh - 16px)!important;
  display:grid;grid-template-rows:58px minmax(0,1fr);overflow:hidden;
  border:2px solid #258bca!important;
  box-shadow:0 0 0 4px #020a1b,0 0 0 6px #104a79,0 0 48px #00c8ff35!important;
}
#avatarCreator .av-titlebar{
  height:auto!important;min-height:0;padding:6px 16px!important;
  border-bottom:2px solid #267cb3!important;
  background:linear-gradient(180deg,#0a1b36,#030b1a)!important;
}
#avatarCreator .av-titlebar h2{
  color:#f8fbff!important;font-size:clamp(20px,2.2vw,34px)!important;line-height:1!important;
  text-shadow:3px 3px #07559a,6px 6px #032c57!important;
}
#avatarCreator .av-titlebar small{margin-top:3px!important;font-size:8px!important}
#avatarCreator .av-titlebar .av-back{min-width:88px;padding:7px 10px!important}
#avatarCreator .av-grid{
  height:100%!important;min-height:0!important;
  grid-template-columns:minmax(370px,43%) minmax(0,57%)!important;overflow:hidden;
}
#avatarCreator .av-left{
  min-height:0;display:grid!important;
  grid-template-rows:minmax(0,1fr) auto auto auto;gap:7px;
  padding:10px!important;overflow:hidden;
  border-right:2px solid #267cb3!important;
}
#avatarCreator .av-hangar{
  min-height:0!important;height:auto!important;overflow:hidden;
  border-color:#277caf!important;
  background:radial-gradient(ellipse at 50% 40%,#16466d 0,#071c33 34%,#020812 72%)!important;
}
#avatarCreator #avCanvas{
  width:min(47vh,430px)!important;height:min(47vh,430px)!important;
  max-width:92%!important;max-height:92%!important;
}
#avatarCreator .av-animation{margin:0!important;gap:4px!important}
#avatarCreator .av-animation button{padding:6px 2px!important;min-height:27px}
#avatarCreator .av-npc-dialogue{margin:0!important;padding:6px 8px!important;grid-template-columns:54px 1fr auto!important;gap:7px!important}
#avatarCreator #avNpcCanvas{width:50px!important;height:50px!important}
#avatarCreator .av-npc-dialogue p{font-size:9px!important;line-height:1.25!important}
#avatarCreator .av-actions{display:grid!important;grid-template-columns:repeat(4,1fr);gap:5px!important;margin:0!important}
#avatarCreator .av-actions button{min-width:0!important;padding:7px 4px!important;font-size:9px!important}
#avatarCreator .av-right{
  min-height:0!important;height:100%!important;padding:9px!important;overflow:hidden!important;
  display:grid;grid-template-rows:auto minmax(0,1fr);
  background:linear-gradient(180deg,#061326,#020813)!important;
}
#avatarCreator .av-tabs{padding-bottom:6px!important;gap:4px!important}
#avatarCreator .av-tabs button{min-height:38px!important;padding:6px 4px!important;font-size:10px!important}
#avatarCreator .av-pane{min-height:0;overflow:auto;padding:10px 4px 24px!important;scrollbar-color:#2475a6 #030a15}
#avatarCreator .av-pane.active{display:block!important}
#avatarCreator .av-pane h3{font-size:15px!important}
#avatarCreator .av-pane>p{margin-bottom:9px!important}
#avatarCreator .av-group{margin-bottom:10px!important}
#avatarCreator .av-assets{max-height:none!important}
#avatarCreator .av-assets-body{grid-template-columns:repeat(2,minmax(105px,155px))!important}
#avatarCreator .av-assets-body .av-asset{grid-template-rows:76px auto!important;min-height:100px!important}
#avatarCreator .av-assets-body .av-asset img{width:76px!important;height:76px!important}
#avatarCreator .av-head-gallery-open{margin-bottom:8px!important;padding:7px!important}
#bossPortrait.player-avatar-active{position:relative}
#bossPortrait .av-bust-question{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font:950 42px/1 "Courier New",monospace;text-shadow:0 3px #000,0 0 10px #63f3ff;pointer-events:none}

@media(max-width:900px) and (orientation:portrait){
  #avatarCreator{padding:0!important}
  #avatarCreator .av-shell{
    width:100vw!important;height:100dvh!important;max-height:100dvh!important;
    grid-template-rows:50px minmax(0,1fr);border-width:0!important;box-shadow:none!important;clip-path:none!important;
  }
  #avatarCreator .av-titlebar{padding:5px 8px!important;gap:7px!important}
  #avatarCreator .av-titlebar h2{font-size:17px!important;letter-spacing:.025em!important;text-shadow:2px 2px #07559a,4px 4px #032c57!important}
  #avatarCreator .av-titlebar small{display:none!important}
  #avatarCreator .av-titlebar .av-back{min-width:64px!important;padding:6px!important;font-size:9px!important}
  #avatarCreator .av-grid{
    grid-template-columns:1fr!important;
    grid-template-rows:minmax(278px,37dvh) minmax(0,1fr)!important;
  }
  #avatarCreator .av-left{
    position:relative;grid-template-columns:minmax(0,1fr) 108px;
    grid-template-rows:minmax(0,1fr) 36px;gap:5px;padding:6px!important;
    border-right:0!important;border-bottom:2px solid #267cb3!important;
  }
  #avatarCreator .av-hangar{grid-column:1;grid-row:1}
  #avatarCreator #avCanvas{
    width:min(28dvh,238px)!important;height:min(28dvh,238px)!important;
    max-width:98%!important;max-height:98%!important;
  }
  #avatarCreator .av-id{left:5px!important;top:5px!important;padding:3px 5px!important;font-size:7px!important}
  #avatarCreator .av-animation{
    grid-column:2;grid-row:1;grid-template-columns:repeat(2,1fr)!important;
    align-content:start;padding-bottom:69px;gap:3px!important;overflow:hidden;
  }
  #avatarCreator .av-animation button{min-height:24px;padding:3px 1px!important;font-size:6px!important}
  #avatarCreator .av-npc-dialogue{
    position:absolute;z-index:5;right:6px;bottom:47px;width:108px;height:64px;
    display:grid!important;grid-template-columns:38px 1fr!important;grid-template-rows:34px 24px;
    gap:2px!important;padding:3px!important;margin:0!important;
  }
  #avatarCreator #avNpcCanvas{width:34px!important;height:34px!important;grid-row:1}
  #avatarCreator .av-npc-dialogue strong{font-size:6px!important;margin:0!important;line-height:1.15}
  #avatarCreator .av-npc-dialogue p{display:none}
  #avatarCreator .av-npc-dialogue>button{grid-column:1/-1!important;min-height:0;padding:2px!important;font-size:6px!important}
  #avatarCreator .av-actions{grid-column:1/-1;grid-row:2;grid-template-columns:repeat(4,1fr)!important;gap:3px!important}
  #avatarCreator .av-actions button{padding:4px 2px!important;font-size:6px!important;line-height:1.1}
  #avatarCreator .av-right{min-height:0!important;height:auto!important;padding:6px!important}
  #avatarCreator .av-tabs{grid-template-columns:repeat(4,1fr)!important;gap:2px!important;padding-bottom:4px!important}
  #avatarCreator .av-tabs button{min-height:34px!important;padding:4px 1px!important;font-size:7px!important}
  #avatarCreator .av-pane{padding:7px 2px 20px!important}
  #avatarCreator .av-pane h3{font-size:12px!important;margin-bottom:2px!important}
  #avatarCreator .av-pane>p{display:none}
  #avatarCreator .av-group-label{font-size:8px!important;margin-bottom:4px!important}
  #avatarCreator .av-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px!important}
  #avatarCreator .av-assets{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important}
  #avatarCreator .av-assets-body{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #avatarCreator .av-assets-body .av-asset{grid-template-rows:64px auto!important;min-height:85px!important}
  #avatarCreator .av-assets-body .av-asset img{width:64px!important;height:64px!important}
  #avatarCreator .av-assets-face,#avatarCreator .av-assets-expression{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  #avatarCreator .av-assets .av-asset{min-width:0!important}
  #avatarCreator .av-swatches{grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:4px!important}
  #avatarCreator .av-swatch{height:29px!important;padding:0!important}
  #avatarCreator .av-roster-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

@media(max-width:370px) and (orientation:portrait){
  #avatarCreator .av-grid{grid-template-rows:270px minmax(0,1fr)!important}
  #avatarCreator .av-left{grid-template-columns:minmax(0,1fr) 98px}
  #avatarCreator .av-npc-dialogue{width:98px}
  #avatarCreator .av-titlebar h2{font-size:15px!important}
  #avatarCreator .av-tabs button{font-size:6px!important}
}



/* V5.97 — démarrage léger : une question, des choix, aucun texte superflu */
body.startup-gate .audio-unlock-panel,
body.startup-gate .mobile-app-panel,
.startup-development-panel{
  width:min(460px,calc(100vw - 24px))!important;
  padding:18px!important;
}
body.startup-gate .audio-unlock-panel::before,
body.startup-gate .mobile-app-panel::before,
.startup-development-panel::before,
body.startup-gate .audio-unlock-panel::after,
body.startup-gate .mobile-app-panel::after,
.startup-development-panel::after{
  display:none!important;
}
body.startup-gate .audio-unlock-panel,
body.startup-gate .mobile-app-panel{
  display:grid!important;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
body.startup-gate .audio-unlock-panel h2,
body.startup-gate .mobile-app-panel .mobile-app-head{
  grid-column:1/-1;
}
body.startup-gate .audio-unlock-icon,
body.startup-gate .audio-unlock-panel p,
body.startup-gate #audioUnlockStatus,
body.startup-gate #audioUnlockMode,
body.startup-gate .mobile-app-logo,
body.startup-gate .mobile-app-subtitle{
  display:none!important;
}
body.startup-gate .mobile-app-head h2,
body.startup-gate .audio-unlock-panel h2,
.startup-development-panel h2{
  margin:2px 0 12px!important;
  font-size:clamp(21px,5.5vw,30px)!important;
  line-height:1.08!important;
  letter-spacing:-.035em!important;
}
body.startup-gate .mobile-app-actions{
  grid-column:1/-1;
  display:grid!important;
  grid-template-columns:1fr 1fr;
  gap:10px!important;
}
body.startup-gate .audio-unlock-panel .btn,
body.startup-gate .mobile-app-panel .btn{
  min-height:46px!important;
  margin:0!important;
  padding:8px!important;
  font-size:14px!important;
  text-align:center!important;
}
.startup-development-panel{
  width:min(500px,calc(100vw - 24px))!important;
  padding:18px 20px!important;
}
.startup-development-bug,
.startup-development-panel .eyebrow,
.startup-development-panel p + p{
  display:none!important;
}
.startup-development-panel p{
  margin:0 auto 12px!important;
  max-width:420px;
  font-size:13px!important;
  line-height:1.4!important;
}
#startupDevelopmentOk{
  min-height:46px!important;
  margin:0!important;
}
body.startup-gate .profile-pixel-panel.profile-simple-account{
  width:min(520px,calc(100vw - 24px))!important;
  padding:12px!important;
}
body.startup-gate .profile-pixel-panel.profile-simple-account>.profile-logo,
body.startup-gate .profile-pixel-panel.profile-simple-account>.profile-overline,
body.startup-gate .profile-pixel-panel.profile-simple-account>#cloudScreenTitle,
body.startup-gate .profile-account-question>.online-mini{
  display:none!important;
}
body.startup-gate .profile-account-question{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px!important;
  margin:0!important;
  padding:17px!important;
}
body.startup-gate .profile-account-question h3{
  grid-column:1/-1;
  margin:0 0 9px!important;
  font-size:clamp(19px,5vw,28px)!important;
  line-height:1.15!important;
}
body.startup-gate .profile-account-question .profile-yes-no{
  display:contents!important;
}
body.startup-gate .profile-account-question .btn,
body.startup-gate #cloudNoThanks{
  min-height:48px!important;
  margin:0!important;
  padding:7px 4px!important;
  font-size:13px!important;
  letter-spacing:0!important;
  text-align:center!important;
}
.profile-pixel-panel.profile-simple-account:has(#cloudAccountQuestion:not(.hidden)){
  width:min(520px,calc(100vw - 24px))!important;
  padding:12px!important;
}
.profile-pixel-panel.profile-simple-account:has(#cloudAccountQuestion:not(.hidden))>.profile-logo,
.profile-pixel-panel.profile-simple-account:has(#cloudAccountQuestion:not(.hidden))>.profile-overline,
.profile-pixel-panel.profile-simple-account:has(#cloudAccountQuestion:not(.hidden))>#cloudScreenTitle,
.profile-pixel-panel.profile-simple-account:has(#cloudAccountQuestion:not(.hidden))>.profile-bottom-actions,
.profile-pixel-panel.profile-simple-account:has(#cloudAccountQuestion:not(.hidden)) #cloudAccountQuestion>.online-mini{
  display:none!important;
}
.profile-pixel-panel.profile-simple-account:has(#cloudAccountQuestion:not(.hidden)) #cloudAccountQuestion{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px!important;
  margin:0!important;
  padding:17px!important;
}
.profile-pixel-panel.profile-simple-account:has(#cloudAccountQuestion:not(.hidden)) #cloudAccountQuestion h3{
  grid-column:1/-1;
  margin:0 0 9px!important;
  font-size:clamp(19px,5vw,28px)!important;
  line-height:1.15!important;
}
.profile-pixel-panel.profile-simple-account:has(#cloudAccountQuestion:not(.hidden)) #cloudAccountQuestion .profile-yes-no{
  display:contents!important;
}
.profile-pixel-panel.profile-simple-account:has(#cloudAccountQuestion:not(.hidden)) #cloudAccountQuestion .btn{
  min-height:48px!important;
  margin:0!important;
  padding:7px 4px!important;
  font-size:13px!important;
  letter-spacing:0!important;
  text-align:center!important;
}
@media(max-width:430px){
  body.startup-gate .audio-unlock-panel,
  body.startup-gate .mobile-app-panel{
    padding:14px!important;
  }
  body.startup-gate .profile-account-question{
    grid-template-columns:1fr!important;
    padding:14px!important;
  }
  body.startup-gate .profile-account-question h3{grid-column:1}
  body.startup-gate .profile-account-question .profile-yes-no{display:grid!important;grid-template-columns:1fr 1fr;gap:8px}
  body.startup-gate #cloudNoThanks{grid-column:1}
  .profile-pixel-panel.profile-simple-account:has(#cloudAccountQuestion:not(.hidden)) #cloudAccountQuestion{grid-template-columns:1fr!important;padding:14px!important}
  .profile-pixel-panel.profile-simple-account:has(#cloudAccountQuestion:not(.hidden)) #cloudAccountQuestion h3{grid-column:1}
  .profile-pixel-panel.profile-simple-account:has(#cloudAccountQuestion:not(.hidden)) #cloudAccountQuestion .profile-yes-no{display:grid!important;grid-template-columns:1fr 1fr;gap:8px}
}



/* V5.98 — fenêtres raster canoniques et aperçus carrés stricts */
#avatarCreator #avHairControls .av-assets-hair .av-asset,
#avatarCreator .av-assets-face .av-asset,
#avatarCreator .av-assets-expression .av-asset{
  grid-template-rows:96px auto!important;
  min-height:126px!important;
  padding-top:5px!important;
  background:radial-gradient(circle at 50% 42%,#173a59,#061426 72%)!important;
}
#avatarCreator .av-head-thumb,
#avatarCreator .av-layer-head-thumb{
  position:static!important;inset:auto!important;display:block;
  width:88px!important;height:88px!important;margin:auto;
  border:1px solid #26739b;background:#040c18;
  image-rendering:pixelated;object-fit:contain;
}
#avatarCreator .av-assets-face .av-asset img,
#avatarCreator .av-assets-expression .av-asset img{
  transform:none!important;
}
#avatarCreator .av-head-card{grid-template-rows:96px auto!important;min-height:130px!important}
#avatarCreator .av-head-card canvas{width:96px!important;height:96px!important}
#avatarCreator .av-head-gallery-summary,
#avatarCreator .av-canonical-note{
  border-left:3px solid #55eaff;background:#06182b;color:#a7dff1;
}
@media(max-width:560px){
  #avatarCreator #avHairControls .av-assets-hair .av-asset,
  #avatarCreator .av-assets-face .av-asset,
  #avatarCreator .av-assets-expression .av-asset{
    grid-template-rows:78px auto!important;min-height:104px!important;
  }
  #avatarCreator .av-head-thumb,
  #avatarCreator .av-layer-head-thumb{width:74px!important;height:74px!important}
}



/* V5.99 — accessoires composés et fenêtres raster canoniques */
#avatarCreator .av-assets-accessory .av-asset{
  grid-template-rows:96px auto!important;
  min-height:126px!important;
  padding-top:5px!important;
  background:radial-gradient(circle at 50% 42%,#173a59,#061426 72%)!important;
}
#avatarCreator .av-accessory-head-thumb{
  position:static!important;inset:auto!important;display:block;
  width:88px!important;height:88px!important;margin:auto;
  border:1px solid #26739b;background:#040c18;
  image-rendering:pixelated;object-fit:contain;
}
#avatarCreator .av-assets-accessory .av-empty-thumb{
  width:88px!important;height:88px!important;margin:auto;
  border:1px dashed #26739b!important;background:#040c18!important;
}
@media(max-width:560px){
  #avatarCreator .av-assets-accessory .av-asset{grid-template-rows:78px auto!important;min-height:104px!important}
  #avatarCreator .av-accessory-head-thumb,
  #avatarCreator .av-assets-accessory .av-empty-thumb{width:74px!important;height:74px!important}
}

/* ======================================================================
   V6.02 — MENUS PIXEL ART
   Refonte purement visuelle des écrans de démarrage et de configuration.
   Les sélecteurs, identifiants et comportements JavaScript restent inchangés.
   ====================================================================== */
:root{
  --px-ink:#020715;
  --px-panel:#061127;
  --px-panel-2:#020817;
  --px-blue:#1768b5;
  --px-blue-dark:#072c67;
  --px-cyan:#5cecff;
  --px-cyan-hot:#1adcf2;
  --px-purple:#9b6cff;
  --px-magenta:#ff69bd;
  --px-gold:#ffc85a;
  --px-white:#f6fbff;
  --px-font:Consolas,"Lucida Console","Courier New",monospace;
  --px-cut:14px;
}

@keyframes pxStarsDrift{to{background-position:48px 24px,-36px 66px,0 0,0 0}}
@keyframes pxPanelWake{from{opacity:0;transform:translateY(10px) scale(.965)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes pxGlowStep{0%,100%{filter:brightness(1)}50%{filter:brightness(1.32)}}

#audioUnlockOverlay,
#startupDevelopmentNotice,
#menu.pixel-menu-screen,
#touchSetup{
  position:fixed;
  isolation:isolate;
  overflow:hidden;
  background:
    radial-gradient(circle at 16% 20%,rgba(55,86,255,.13),transparent 25%),
    radial-gradient(circle at 86% 78%,rgba(192,55,255,.11),transparent 24%),
    radial-gradient(ellipse at 50% 50%,#07142d 0,#020817 48%,#00030b 100%)!important;
}
#audioUnlockOverlay::before,
#startupDevelopmentNotice::before,
#menu.pixel-menu-screen::before,
#touchSetup::before{
  content:"";
  position:absolute;
  z-index:0;
  inset:-30px;
  pointer-events:none;
  opacity:.82;
  background-image:
    radial-gradient(circle,#dffcff 0 1px,transparent 1.5px),
    radial-gradient(circle,#728dff 0 1px,transparent 1.7px),
    radial-gradient(circle at 16% 67%,rgba(46,226,255,.45),transparent 1.5%),
    radial-gradient(circle at 84% 31%,rgba(194,84,255,.35),transparent 2%);
  background-size:47px 43px,73px 67px,100% 100%,100% 100%;
  background-position:0 0,12px 18px,0 0,0 0;
  animation:pxStarsDrift 18s steps(18,end) infinite;
}
#audioUnlockOverlay::after,
#startupDevelopmentNotice::after,
#menu.pixel-menu-screen::after,
#touchSetup::after{
  content:"";
  position:absolute;
  z-index:0;
  inset:0;
  pointer-events:none;
  opacity:.22;
  background:repeating-linear-gradient(180deg,transparent 0 3px,rgba(64,173,255,.09) 3px 4px);
  mix-blend-mode:screen;
}
#audioUnlockOverlay>* ,#startupDevelopmentNotice>* ,#menu.pixel-menu-screen>* ,#touchSetup>*{
  position:relative;
  z-index:2;
}

/* Panneau canonique partagé par les deux premières fenêtres. */
body.startup-gate .audio-unlock-panel,
.startup-development-panel{
  position:relative!important;
  width:min(660px,94vw)!important;
  max-width:calc(100vw - 20px)!important;
  padding:38px 34px 30px!important;
  border:3px solid #286fc7!important;
  border-radius:0!important;
  background:
    linear-gradient(180deg,rgba(14,38,79,.22),transparent 38%),
    repeating-linear-gradient(0deg,rgba(255,255,255,.018) 0 1px,transparent 1px 4px),
    linear-gradient(145deg,#071630,#020817 74%)!important;
  box-shadow:
    0 0 0 4px #020b21,
    0 0 0 6px #0b326d,
    0 14px 0 rgba(0,0,0,.48),
    0 25px 80px rgba(0,0,0,.72),
    inset 0 0 0 3px rgba(70,161,255,.12),
    inset 0 0 45px rgba(15,83,175,.13)!important;
  clip-path:polygon(var(--px-cut) 0,calc(100% - var(--px-cut)) 0,100% var(--px-cut),100% calc(100% - var(--px-cut)),calc(100% - var(--px-cut)) 100%,var(--px-cut) 100%,0 calc(100% - var(--px-cut)),0 var(--px-cut))!important;
  font-family:var(--px-font)!important;
  animation:pxPanelWake .3s steps(4,end) both;
}
body.startup-gate .audio-unlock-panel::before,
.startup-development-panel::before{
  content:"✦"!important;
  position:absolute!important;
  left:50%!important;
  top:-27px!important;
  display:grid!important;
  place-items:center;
  width:58px;
  height:54px;
  margin:0!important;
  transform:translateX(-50%);
  border:3px solid var(--px-cyan);
  background:#08204a;
  color:var(--px-white)!important;
  font:950 27px/1 var(--px-font)!important;
  text-shadow:0 0 12px var(--px-cyan)!important;
  box-shadow:0 0 0 4px #020817,0 0 18px rgba(92,236,255,.45);
  clip-path:polygon(12px 0,calc(100% - 12px) 0,100% 50%,calc(100% - 12px) 100%,12px 100%,0 50%);
}
body.startup-gate .audio-unlock-panel::after,
.startup-development-panel::after{
  content:""!important;
  position:absolute!important;
  display:block!important;
  inset:11px!important;
  height:auto!important;
  pointer-events:none;
  border:1px solid rgba(87,199,255,.25);
  background:none!important;
  box-shadow:none!important;
  clip-path:polygon(9px 0,calc(100% - 9px) 0,100% 9px,100% calc(100% - 9px),calc(100% - 9px) 100%,9px 100%,0 calc(100% - 9px),0 9px);
}
body.startup-gate .audio-unlock-panel h2,
.startup-development-panel h2{
  position:relative;
  z-index:2;
  margin:12px 0 25px!important;
  color:var(--px-white)!important;
  font:950 clamp(24px,5vw,39px)/1.16 var(--px-font)!important;
  letter-spacing:.015em!important;
  text-transform:uppercase;
  text-shadow:3px 3px 0 #123d84,0 0 15px rgba(92,236,255,.2)!important;
}
body.startup-gate .audio-unlock-panel .btn,
.startup-development-panel .btn{
  position:relative;
  z-index:2;
  min-height:66px!important;
  border:3px solid #236bc0!important;
  border-radius:0!important;
  background:linear-gradient(180deg,#0e2c61,#061537)!important;
  color:var(--px-white)!important;
  font:950 clamp(15px,3vw,21px)/1 var(--px-font)!important;
  letter-spacing:.045em!important;
  text-align:center!important;
  box-shadow:inset 0 0 0 3px #071c45,0 5px 0 #03112e,0 0 16px rgba(32,114,220,.25)!important;
  clip-path:polygon(9px 0,calc(100% - 9px) 0,100% 9px,100% calc(100% - 9px),calc(100% - 9px) 100%,9px 100%,0 calc(100% - 9px),0 9px)!important;
}
body.startup-gate .audio-unlock-panel .btn.primary,
.startup-development-panel .btn.primary{
  border-color:var(--px-cyan)!important;
  background:linear-gradient(135deg,#16bfd6,#0877ad 55%,#07558d)!important;
  box-shadow:inset 0 0 0 3px #0a91b6,0 5px 0 #064c80,0 0 25px rgba(66,226,255,.35)!important;
}
body.startup-gate .audio-unlock-panel .btn:hover,
.startup-development-panel .btn:hover{filter:brightness(1.2);transform:translateY(-2px)}

/* 1 — Activation du son. */
body.startup-gate .audio-unlock-panel{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:16px!important;
  align-items:center;
}
body.startup-gate .audio-unlock-icon{
  grid-column:1/-1;
  display:grid!important;
  place-items:center;
  width:58px!important;
  height:58px!important;
  margin:0 auto 3px!important;
  border:2px solid #3083d6!important;
  border-radius:0!important;
  background:linear-gradient(145deg,#0d3f81,#061b46)!important;
  color:var(--px-cyan)!important;
  font:950 32px/1 var(--px-font)!important;
  text-shadow:0 0 12px var(--px-cyan)!important;
  box-shadow:inset 0 0 0 3px #07142e,0 4px 0 #04102b,0 0 18px rgba(92,236,255,.25)!important;
  clip-path:polygon(8px 0,calc(100% - 8px) 0,100% 8px,100% calc(100% - 8px),calc(100% - 8px) 100%,8px 100%,0 calc(100% - 8px),0 8px)!important;
}
body.startup-gate .audio-unlock-panel h2{grid-column:1/-1}
body.startup-gate .audio-unlock-panel p,
body.startup-gate #audioUnlockStatus,
body.startup-gate #audioUnlockMode{display:none!important}
body.startup-gate #audioUnlockBtn,
body.startup-gate #audioUnlockSkip{margin:0!important}

/* 2 — Message de développement. */
.startup-development-panel{
  width:min(620px,94vw)!important;
  padding-top:36px!important;
  text-align:center;
}
.startup-development-panel::before{content:"BUG"!important;font-size:12px!important;letter-spacing:.12em!important}
.startup-development-bug{
  position:relative;
  z-index:2;
  display:block!important;
  width:76px!important;
  height:76px!important;
  margin:0 auto 10px!important;
  padding:6px!important;
  border:2px solid #2382ca!important;
  border-radius:0!important;
  background:#041127!important;
  object-fit:contain;
  image-rendering:pixelated;
  filter:grayscale(1) sepia(1) saturate(7) hue-rotate(145deg) brightness(1.32) contrast(1.15) drop-shadow(0 0 11px rgba(75,222,255,.48))!important;
  clip-path:polygon(9px 0,calc(100% - 9px) 0,100% 9px,100% calc(100% - 9px),calc(100% - 9px) 100%,9px 100%,0 calc(100% - 9px),0 9px);
}
.startup-development-panel .eyebrow,.startup-development-panel p+p{display:none!important}
.startup-development-panel h2{margin:5px 0 18px!important}
.startup-development-panel p{
  position:relative;
  z-index:2;
  max-width:500px!important;
  margin:0 auto 22px!important;
  color:#d2e5f8!important;
  font:800 clamp(13px,2.6vw,17px)/1.6 var(--px-font)!important;
}
.startup-development-panel strong{color:var(--px-gold)!important}
#startupDevelopmentOk{width:100%;margin:0!important}

/* 3 — Menu principal. */
#menu.pixel-menu-screen{
  align-items:center!important;
  justify-content:center!important;
  padding:max(10px,env(safe-area-inset-top)) 10px max(10px,env(safe-area-inset-bottom))!important;
  overflow:hidden!important;
}
#menu .pixel-menu-panel{
  position:relative;
  width:min(850px,95vw)!important;
  max-height:calc(100dvh - 20px)!important;
  margin:0!important;
  padding:22px 24px 20px!important;
  overflow:auto!important;
  scrollbar-width:none;
  border:4px solid #2468b1!important;
  border-radius:0!important;
  background:
    linear-gradient(180deg,rgba(20,58,112,.17),transparent 28%),
    repeating-linear-gradient(0deg,rgba(255,255,255,.016) 0 1px,transparent 1px 4px),
    linear-gradient(150deg,rgba(5,18,44,.98),rgba(1,7,21,.98))!important;
  box-shadow:0 0 0 4px #020817,0 0 0 7px #092e66,0 20px 65px rgba(0,0,0,.7),inset 0 0 0 3px rgba(58,153,255,.11),inset 0 0 60px rgba(16,78,168,.12)!important;
  clip-path:polygon(18px 0,calc(100% - 18px) 0,100% 18px,100% calc(100% - 18px),calc(100% - 18px) 100%,18px 100%,0 calc(100% - 18px),0 18px)!important;
  font-family:var(--px-font)!important;
  animation:pxPanelWake .32s steps(4,end) both;
}
#menu .pixel-menu-panel::-webkit-scrollbar{display:none}
#menu .pixel-menu-panel::before{
  content:"";
  position:absolute;
  left:50%;top:-3px;
  width:90px;height:13px;
  transform:translateX(-50%);
  border:3px solid var(--px-cyan);
  background:#0b2f65;
  box-shadow:0 0 15px rgba(92,236,255,.45);
  clip-path:polygon(12px 0,calc(100% - 12px) 0,100% 50%,calc(100% - 12px) 100%,12px 100%,0 50%);
}
#menu .pixel-menu-panel::after{
  content:"";
  position:absolute;
  inset:11px;
  pointer-events:none;
  border:1px solid rgba(64,154,255,.18);
  clip-path:polygon(12px 0,calc(100% - 12px) 0,100% 12px,100% calc(100% - 12px),calc(100% - 12px) 100%,12px 100%,0 calc(100% - 12px),0 12px);
}
#menu .pixel-menu-header{position:relative;z-index:2;margin-bottom:12px!important;text-align:center}
#menu .pixel-eyebrow{
  margin:0 0 9px!important;
  color:#6ceeff!important;
  font:900 clamp(8px,1.8vw,12px)/1.2 var(--px-font)!important;
  letter-spacing:.13em!important;
  text-shadow:0 0 9px rgba(92,236,255,.6)!important;
}
#menu .pixel-eyebrow::before,#menu .pixel-eyebrow::after{height:2px!important;background:linear-gradient(90deg,transparent,var(--px-cyan))!important}
#menu .pixel-eyebrow::after{background:linear-gradient(90deg,var(--px-cyan),transparent)!important}
#menu .pixel-logo{
  margin:0!important;
  font-family:"Arial Black",Impact,var(--px-font)!important;
  font-size:clamp(48px,9vw,88px)!important;
  line-height:.82!important;
  letter-spacing:.01em!important;
  color:#eef7ff!important;
  text-shadow:0 3px 0 #bad4ef,0 6px 0 #2778bf,0 10px 0 #0a3a77,0 0 24px rgba(92,236,255,.26)!important;
}
#menu .pixel-logo span{
  margin-top:18px!important;
  color:#71eaff!important;
  -webkit-text-fill-color:#71eaff;
  font:900 clamp(8px,1.6vw,12px)/1 var(--px-font)!important;
  letter-spacing:.27em!important;
  text-shadow:0 0 10px rgba(92,236,255,.5)!important;
}
#menu .pixel-menu-actions{
  position:relative;
  z-index:2;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
  margin-top:18px!important;
}
#menu .pixel-menu-btn{
  box-sizing:border-box;
  display:grid!important;
  grid-template-columns:46px minmax(0,1fr) 18px!important;
  align-items:center;
  gap:8px;
  min-width:0;
  min-height:64px!important;
  padding:9px 13px!important;
  border:3px solid #205fa9!important;
  border-radius:0!important;
  background:linear-gradient(180deg,#0b2858,#051538 70%)!important;
  color:#f4f9ff!important;
  font:900 clamp(12px,2vw,17px)/1.15 var(--px-font)!important;
  letter-spacing:0!important;
  text-align:left!important;
  box-shadow:inset 0 0 0 3px #071a42,0 5px 0 #020d26,0 0 15px rgba(29,102,205,.16)!important;
  clip-path:polygon(9px 0,calc(100% - 9px) 0,100% 9px,100% calc(100% - 9px),calc(100% - 9px) 100%,9px 100%,0 calc(100% - 9px),0 9px)!important;
}
#menu .pixel-menu-btn:hover,#menu .pixel-menu-btn:focus-visible{
  transform:translateY(-2px)!important;
  border-color:var(--px-cyan)!important;
  background:linear-gradient(180deg,#12407c,#08204b)!important;
  box-shadow:inset 0 0 0 3px #0a3767,0 6px 0 #020d26,0 0 23px rgba(92,236,255,.32)!important;
}
#menu .pixel-menu-btn.primary{
  border-color:var(--px-cyan)!important;
  background:linear-gradient(135deg,#15bcd3,#087cae 55%,#075990)!important;
  box-shadow:inset 0 0 0 3px #0a92b4,0 5px 0 #064b7b,0 0 26px rgba(92,236,255,.32)!important;
}
#menu #newBtn,#menu #continueBtn{grid-column:1/-1;min-height:72px!important;font-size:clamp(14px,2.4vw,20px)!important}
#menu .menu-icon{
  display:grid!important;
  place-items:center;
  width:38px!important;height:38px!important;
  color:var(--px-cyan)!important;
  font-family:var(--px-font)!important;
  font-size:24px!important;
  text-shadow:0 0 10px currentColor!important;
  filter:none!important;
}
#menu .start-icon{color:#fff!important;font-size:31px!important;animation:pxGlowStep 1.1s steps(2,end) infinite!important}
#menu #anomalyMenuIcon,#menu #bossRushMenuIcon{font-size:0!important;color:var(--px-gold)!important}
#menu #anomalyMenuIcon::before,#menu #bossRushMenuIcon::before{content:"▣";font-size:24px}
#menu #settingsBtn .menu-icon,#menu #helpBtn .menu-icon{color:#5cecff!important}
#menu #bestiaryBtn .menu-icon{color:#62e5a1!important}
#menu #avatarCreatorBtn .menu-icon{color:#74d5ff!important}
#menu #onlineBtn .menu-icon{color:#c68cff!important}
#menu #shopBtn .menu-icon{color:var(--px-gold)!important}
#menu .pixel-menu-btn b{color:#5cecff!important;font-size:25px!important}
#menu .pixel-menu-btn small{color:#99bad7!important;font:800 .68em/1.2 var(--px-font)!important}
#menu #anomalyMenuHint,#menu #bossRushMenuHint{display:none!important}
#menu .pixel-save-strip,#menu .pixel-main-stats,#menu .pixel-bottom-stats,#menu #bootStatus,#menu .pixel-footer,#menu .pixel-development-callout{display:none!important}

/* 4 et 5 — Assistant tactile. */
#touchSetup{
  place-items:center!important;
  padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))!important;
}
#touchSetup .touch-setup-panel{
  position:relative;
  z-index:2;
  width:min(780px,96vw)!important;
  max-width:calc(100vw - 16px)!important;
  max-height:calc(100dvh - 16px)!important;
  padding:24px 28px 22px!important;
  overflow:auto!important;
  scrollbar-width:none;
  border:4px solid #2468b1!important;
  border-radius:0!important;
  background:
    linear-gradient(180deg,rgba(20,58,112,.17),transparent 30%),
    repeating-linear-gradient(0deg,rgba(255,255,255,.017) 0 1px,transparent 1px 4px),
    linear-gradient(150deg,#06152f,#020817 75%)!important;
  box-shadow:0 0 0 4px #020817,0 0 0 7px #092e66,0 18px 65px rgba(0,0,0,.72),inset 0 0 0 3px rgba(58,153,255,.1)!important;
  clip-path:polygon(18px 0,calc(100% - 18px) 0,100% 18px,100% calc(100% - 18px),calc(100% - 18px) 100%,18px 100%,0 calc(100% - 18px),0 18px)!important;
  font-family:var(--px-font)!important;
  animation:pxPanelWake .32s steps(4,end) both;
}
#touchSetup .touch-setup-panel::-webkit-scrollbar{display:none}
#touchSetup .touch-setup-panel::before{
  content:"";
  position:absolute;
  left:50%;top:-3px;
  width:90px;height:13px;
  transform:translateX(-50%);
  border:3px solid var(--px-cyan);
  background:#0b2f65;
  box-shadow:0 0 14px rgba(92,236,255,.4);
  clip-path:polygon(12px 0,calc(100% - 12px) 0,100% 50%,calc(100% - 12px) 100%,12px 100%,0 50%);
}
#touchSetup .touch-setup-panel .eyebrow{
  margin:0 0 9px!important;
  color:#66eaff!important;
  font:900 clamp(9px,1.7vw,13px)/1.2 var(--px-font)!important;
  letter-spacing:.16em!important;
  text-align:center;
}
#touchSetup .touch-setup-panel h2{
  margin:0 0 14px!important;
  color:#eef7ff!important;
  font:950 clamp(38px,7vw,64px)/.9 "Arial Black",Impact,var(--px-font)!important;
  letter-spacing:.015em!important;
  text-align:center;
  text-transform:uppercase;
  text-shadow:0 3px 0 #b5ccec,0 6px 0 #2267b4,0 9px 0 #092d68,0 0 22px rgba(92,236,255,.18)!important;
}
#touchSetup .touch-setup-progress{gap:7px!important;margin:12px 0 17px!important}
#touchSetup .touch-setup-progress i{height:6px!important;border-radius:0!important;background:#17213d!important;box-shadow:inset 0 0 0 1px #0b1229}
#touchSetup .touch-setup-progress i.active{background:linear-gradient(90deg,var(--px-cyan),var(--px-purple))!important;box-shadow:0 0 9px rgba(92,236,255,.35)!important}
#touchSetup .touch-setup-step>h3{
  margin:0 0 14px!important;
  color:#fff!important;
  font:900 clamp(18px,3.7vw,29px)/1.15 var(--px-font)!important;
  letter-spacing:.01em!important;
}
#touchSetup .touch-setup-step>p{display:none!important}
#touchSetup .touch-choice-grid{display:grid!important;grid-template-columns:1fr!important;gap:12px!important}
#touchSetup .touch-choice{
  display:grid!important;
  grid-template-columns:minmax(180px,42%) minmax(0,1fr)!important;
  grid-template-rows:1fr 1fr!important;
  align-items:center!important;
  gap:0 20px!important;
  min-height:142px!important;
  padding:13px!important;
  overflow:hidden;
  border:3px solid #1e568f!important;
  border-radius:0!important;
  background:linear-gradient(145deg,#0a2349,#040d22 72%)!important;
  color:#fff;
  box-shadow:inset 0 0 0 3px #06152f,0 4px 0 #020b20!important;
  clip-path:polygon(9px 0,calc(100% - 9px) 0,100% 9px,100% calc(100% - 9px),calc(100% - 9px) 100%,9px 100%,0 calc(100% - 9px),0 9px)!important;
}
#touchSetup .touch-choice:nth-child(2){border-color:#7139a6!important;background:linear-gradient(145deg,#1d1849,#080d24 72%)!important}
#touchSetup .touch-choice:hover,#touchSetup .touch-choice:focus-visible,#touchSetup .touch-choice.active{
  transform:translateY(-2px)!important;
  border-color:var(--px-cyan)!important;
  box-shadow:inset 0 0 0 3px #09305e,0 5px 0 #020b20,0 0 24px rgba(92,236,255,.25)!important;
}
#touchSetup .touch-choice:nth-child(2):hover,#touchSetup .touch-choice:nth-child(2):focus-visible,#touchSetup .touch-choice:nth-child(2).active{border-color:var(--px-magenta)!important;box-shadow:inset 0 0 0 3px #31184d,0 5px 0 #020b20,0 0 24px rgba(255,105,189,.24)!important}
#touchSetup .touch-demo{
  grid-row:1/3;
  height:112px!important;
  border:2px solid #246aa5!important;
  border-radius:0!important;
  background:radial-gradient(circle at center,rgba(31,88,141,.26),rgba(1,5,18,.96))!important;
  box-shadow:inset 0 0 24px rgba(35,125,210,.12)!important;
  clip-path:polygon(7px 0,calc(100% - 7px) 0,100% 7px,100% calc(100% - 7px),calc(100% - 7px) 100%,7px 100%,0 calc(100% - 7px),0 7px);
}
#touchSetup .touch-choice strong{
  align-self:end;
  margin:0 0 5px!important;
  color:var(--px-cyan)!important;
  font:950 clamp(16px,3vw,24px)/1.1 var(--px-font)!important;
  text-shadow:0 0 10px rgba(92,236,255,.26);
}
#touchSetup .touch-choice:nth-child(2) strong{color:#ff9bd1!important;text-shadow:0 0 10px rgba(255,105,189,.25)}
#touchSetup .touch-choice small{
  align-self:start;
  margin:0!important;
  color:#d5e1f1!important;
  font:800 clamp(11px,2vw,15px)/1.42 var(--px-font)!important;
}
#touchSetup .touch-setup-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important;margin-top:16px!important}
#touchSetup .touch-setup-actions .btn{
  min-height:58px!important;
  border:3px solid #236bc0!important;
  border-radius:0!important;
  background:linear-gradient(180deg,#0e2c61,#061537)!important;
  color:#fff!important;
  font:950 clamp(13px,2.4vw,18px)/1 var(--px-font)!important;
  box-shadow:inset 0 0 0 3px #071c45,0 5px 0 #03112e!important;
  clip-path:polygon(9px 0,calc(100% - 9px) 0,100% 9px,100% calc(100% - 9px),calc(100% - 9px) 100%,9px 100%,0 calc(100% - 9px),0 9px)!important;
}
#touchSetup .touch-setup-actions .btn.primary{
  border-color:var(--px-cyan)!important;
  background:linear-gradient(135deg,#63efff,#2dd5ec 52%,#20a9d0)!important;
  color:#041127!important;
  box-shadow:inset 0 0 0 3px #a1f7ff,0 5px 0 #0a6b98,0 0 22px rgba(92,236,255,.28)!important;
}
#touchSetup .touch-setup-actions .btn:disabled{filter:grayscale(.5) brightness(.58);opacity:.72}
#touchSetup .touch-setup-step:has(.touch-setup-final){padding-top:2px}
#touchSetup .touch-setup-final{
  position:relative;
  min-height:310px;
  display:flex!important;
  flex-direction:column;
  justify-content:flex-end;
  padding:170px 24px 24px!important;
  overflow:hidden;
  border:3px solid #1e568f!important;
  border-radius:0!important;
  background:
    radial-gradient(circle at 50% 33%,rgba(74,223,255,.2),transparent 24%),
    radial-gradient(circle at 27% 29%,rgba(43,228,255,.16),transparent 12%),
    radial-gradient(circle at 73% 29%,rgba(169,91,255,.17),transparent 12%),
    linear-gradient(145deg,#0a2349,#040d22 72%)!important;
  box-shadow:inset 0 0 0 3px #06152f!important;
  clip-path:polygon(10px 0,calc(100% - 10px) 0,100% 10px,100% calc(100% - 10px),calc(100% - 10px) 100%,10px 100%,0 calc(100% - 10px),0 10px);
}
#touchSetup .touch-setup-final::before{
  content:"▲";
  position:absolute;
  left:50%;top:34px;
  transform:translateX(-50%) rotate(-90deg);
  color:#e9f8ff;
  font:950 88px/1 var(--px-font);
  text-shadow:0 0 8px #fff,0 0 22px #43ddff,-32px 10px 0 rgba(92,236,255,.4),32px 10px 0 rgba(166,105,255,.4);
  filter:drop-shadow(0 13px 0 #1573ad);
}
#touchSetup .touch-setup-final::after{
  content:"";
  position:absolute;
  left:12%;right:12%;top:145px;
  height:2px;
  background:linear-gradient(90deg,transparent,var(--px-cyan),var(--px-purple),transparent);
  box-shadow:0 0 12px var(--px-cyan);
}
#touchSetup .touch-setup-final>strong{
  position:relative;z-index:2;
  color:var(--px-cyan)!important;
  font:950 clamp(20px,4vw,30px)/1.15 var(--px-font)!important;
  text-shadow:0 0 12px rgba(92,236,255,.32);
}
#touchSetup .touch-setup-final p{display:none!important}
#touchSetup .touch-inline-status{position:relative;z-index:2;margin-top:13px!important;color:#c8b4ff!important;font:900 clamp(11px,2vw,15px)/1.4 var(--px-font)!important}

@media(max-width:620px){
  body.startup-gate .audio-unlock-panel,.startup-development-panel{
    width:min(94vw,560px)!important;
    padding:30px 18px 22px!important;
  }
  body.startup-gate .audio-unlock-panel::before,.startup-development-panel::before{top:-20px!important;width:48px;height:43px}
  body.startup-gate .audio-unlock-icon{width:48px!important;height:48px!important;font-size:27px!important}
  body.startup-gate .audio-unlock-panel h2,.startup-development-panel h2{margin:8px 0 18px!important;font-size:clamp(21px,6.7vw,30px)!important}
  body.startup-gate .audio-unlock-panel{gap:10px!important}
  body.startup-gate .audio-unlock-panel .btn,.startup-development-panel .btn{min-height:54px!important;font-size:14px!important}
  .startup-development-bug{width:60px!important;height:60px!important;margin-bottom:7px!important}
  .startup-development-panel p{margin-bottom:17px!important;font-size:12px!important;line-height:1.5!important}

  #menu .pixel-menu-panel{width:min(96vw,540px)!important;max-height:calc(100dvh - 12px)!important;padding:15px 12px 13px!important}
  #menu .pixel-menu-header{margin-bottom:5px!important}
  #menu .pixel-eyebrow{margin-bottom:6px!important;font-size:7px!important;letter-spacing:.09em!important}
  #menu .pixel-eyebrow::before,#menu .pixel-eyebrow::after{width:17px!important}
  #menu .pixel-logo{font-size:clamp(40px,13vw,57px)!important;text-shadow:0 2px 0 #bad4ef,0 4px 0 #2778bf,0 7px 0 #0a3a77,0 0 18px rgba(92,236,255,.25)!important}
  #menu .pixel-logo span{margin-top:12px!important;font-size:7px!important;letter-spacing:.18em!important}
  #menu .pixel-menu-actions{gap:6px!important;margin-top:12px!important}
  #menu .pixel-menu-btn{grid-template-columns:30px minmax(0,1fr)!important;gap:5px!important;min-height:45px!important;padding:6px 7px!important;border-width:2px!important;font-size:10px!important;line-height:1.06!important}
  #menu .pixel-menu-btn>b{display:none!important}
  #menu #newBtn,#menu #continueBtn{min-height:54px!important;font-size:12px!important}
  #menu .menu-icon{width:27px!important;height:27px!important;font-size:18px!important}
  #menu .start-icon{font-size:23px!important}
  #menu #anomalyMenuIcon::before,#menu #bossRushMenuIcon::before{font-size:18px}
  #menu .pixel-menu-btn small{font-size:7px!important}

  #touchSetup .touch-setup-panel{width:min(96vw,540px)!important;max-height:calc(100dvh - 12px)!important;padding:15px 12px 13px!important}
  #touchSetup .touch-setup-panel .eyebrow{margin-bottom:6px!important;font-size:8px!important}
  #touchSetup .touch-setup-panel h2{margin-bottom:9px!important;font-size:clamp(31px,10vw,44px)!important;text-shadow:0 2px 0 #b5ccec,0 4px 0 #2267b4,0 6px 0 #092d68!important}
  #touchSetup .touch-setup-progress{margin:8px 0 10px!important}
  #touchSetup .touch-setup-step>h3{margin-bottom:9px!important;font-size:clamp(16px,5vw,21px)!important}
  #touchSetup .touch-choice-grid{gap:8px!important}
  #touchSetup .touch-choice{grid-template-columns:42% minmax(0,1fr)!important;gap:0 10px!important;min-height:108px!important;padding:8px!important}
  #touchSetup .touch-demo{height:86px!important}
  #touchSetup .touch-choice strong{font-size:13px!important;margin-bottom:4px!important}
  #touchSetup .touch-choice small{font-size:9px!important;line-height:1.28!important}
  #touchSetup .touch-setup-actions{gap:8px!important;margin-top:10px!important}
  #touchSetup .touch-setup-actions .btn{min-height:46px!important;font-size:12px!important}
  #touchSetup .touch-setup-final{min-height:260px;padding:143px 14px 17px!important}
  #touchSetup .touch-setup-final::before{top:28px;font-size:70px}
  #touchSetup .touch-setup-final::after{top:123px}
  #touchSetup .touch-setup-final>strong{font-size:19px!important}
  #touchSetup .touch-inline-status{font-size:10px!important}
}

@media(max-width:380px), (max-height:690px){
  #menu .pixel-menu-panel{padding:12px 9px 10px!important}
  #menu .pixel-eyebrow{display:none!important}
  #menu .pixel-logo{font-size:38px!important}
  #menu .pixel-logo span{margin-top:9px!important;font-size:6px!important}
  #menu .pixel-menu-actions{margin-top:9px!important;gap:5px!important}
  #menu .pixel-menu-btn{min-height:39px!important;font-size:9px!important;padding:4px 5px!important}
  #menu #newBtn,#menu #continueBtn{min-height:47px!important;font-size:11px!important}
  #touchSetup .touch-setup-panel{padding:11px 9px 10px!important}
  #touchSetup .touch-setup-panel .eyebrow{font-size:7px!important}
  #touchSetup .touch-setup-panel h2{font-size:30px!important}
  #touchSetup .touch-choice{min-height:94px!important}
  #touchSetup .touch-demo{height:73px!important}
  #touchSetup .touch-choice small{font-size:8px!important}
  #touchSetup .touch-setup-final{min-height:218px;padding-top:120px!important}
  #touchSetup .touch-setup-final::before{top:22px;font-size:58px}
  #touchSetup .touch-setup-final::after{top:103px}
}

/* Les écrans larges mais peu hauts (ordinateur portable, navigateur mobile
   avec barres visibles) gardent l'intégralité du logo et des dix entrées. */
@media(min-width:621px) and (max-height:760px){
  #menu .pixel-menu-panel{padding:13px 16px 11px!important}
  #menu .pixel-menu-header{margin-bottom:5px!important}
  #menu .pixel-eyebrow{margin-bottom:5px!important;font-size:8px!important}
  #menu .pixel-logo{font-size:62px!important;text-shadow:0 2px 0 #bad4ef,0 4px 0 #2778bf,0 7px 0 #0a3a77,0 0 18px rgba(92,236,255,.25)!important}
  #menu .pixel-logo span{margin-top:10px!important;font-size:8px!important}
  #menu .pixel-menu-actions{gap:6px!important;margin-top:9px!important}
  #menu .pixel-menu-btn{min-height:43px!important;padding:5px 10px!important;font-size:11px!important}
  #menu #newBtn,#menu #continueBtn{min-height:52px!important;font-size:13px!important}
  #menu .menu-icon{width:30px!important;height:30px!important;font-size:19px!important}
}



/* V6.05 — contrôle manuel des 48 visages, carré fixe et ancre du nez */
#avOpenFaceCalibration{width:100%;margin:0 0 12px;padding:10px;border:2px solid #ff5caa;background:linear-gradient(180deg,#40142f,#190b1c);color:#ffe4f0;font:900 10px/1.2 "Courier New",monospace;cursor:pointer}
.av-face-calibration{position:fixed;inset:0;z-index:190;overflow:auto;padding:14px;background:rgba(0,3,12,.98)}
.av-face-calibration.hidden{display:none!important}.av-face-calibration-panel{width:min(1500px,98vw);margin:auto;padding:15px;border:3px solid #42e8ff;background:#030b18;box-shadow:0 0 48px #29dfff44}
.av-face-calibration-head{position:sticky;top:-14px;z-index:4;display:flex;align-items:center;gap:14px;margin:-15px -15px 14px;padding:13px 17px;border-bottom:3px solid #185b89;background:rgba(3,11,24,.98)}
.av-face-calibration-head h3{margin:0;color:#65eaff;font-size:clamp(17px,3vw,28px)}.av-face-calibration-head p{flex:1;margin:0;color:#9ab9d0;font:800 9px/1.4 monospace}.av-face-calibration-head button{min-width:100px}
.av-face-calibration-summary{margin:0 0 12px;padding:8px 10px;border-left:3px solid #ff5caa;background:#171022;color:#ffd1e5;font:850 9px/1.4 monospace}
.av-face-calibration-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(138px,1fr));gap:8px}.av-face-calibration-card{display:grid;grid-template-rows:132px auto;gap:4px;padding:6px;border:1px solid #174b73;background:#061426;color:#dcefff;text-align:center}
.av-face-calibration-card canvas{width:128px;height:128px;margin:auto;border:1px solid #246b91;background:#030913;image-rendering:pixelated}.av-face-calibration-card strong{font:900 8px/1.25 monospace}.av-face-calibration-card small{color:#829db5;font:700 7px/1.25 monospace}
@media(max-width:600px){.av-face-calibration{padding:7px}.av-face-calibration-head{align-items:flex-start;flex-wrap:wrap;top:-7px}.av-face-calibration-head p{flex-basis:100%;order:3}.av-face-calibration-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.av-face-calibration-card canvas{width:116px;height:116px}}


    /* =====================================================================
       V6.16 · COMPTE INITIAL + NEWS + AIDE MANETTE
       Le lien "Plus tard" est volontairement du texte cliquable, pas une carte.
       ===================================================================== */
    .profile-skip-link{display:block;margin:14px auto 0;padding:4px 8px;border:0!important;background:transparent!important;color:#8fa7c8!important;font:800 12px/1.2 "Courier New",monospace!important;letter-spacing:.08em;text-decoration:underline;text-underline-offset:4px;cursor:pointer;box-shadow:none!important;transform:none!important;width:auto!important;min-height:0!important}
    .profile-skip-link:hover,.profile-skip-link:focus-visible{color:#fff!important;outline:1px dashed rgba(99,243,255,.7);outline-offset:4px}
    body.startup-gate #cloudNoThanks{display:block!important;margin:10px auto 0!important;padding:3px 8px!important;width:auto!important;min-height:0!important;border:0!important;background:transparent!important;color:#8fa7c8!important;box-shadow:none!important;grid-column:1/-1!important}
    .news-screen{padding:10px;background:radial-gradient(circle at 50% 18%,rgba(37,112,178,.24),transparent 38%),rgba(0,3,14,.92)}
    .news-panel{width:min(760px,95vw);max-height:92vh;overflow:auto;border:2px solid rgba(99,243,255,.42);border-radius:10px;background:linear-gradient(180deg,rgba(4,15,39,.98),rgba(2,6,20,.99));font-family:"Courier New",ui-monospace,monospace}
    .news-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:14px;border-bottom:1px solid rgba(99,243,255,.18)}
    .news-head h2{margin:0;font-size:clamp(30px,7vw,56px);letter-spacing:-.06em}.news-head p{margin:4px 0 0}.news-version-badge{flex:none;padding:10px 12px;border:1px solid #63f3ff;background:rgba(99,243,255,.08);color:#bffaff;font-weight:950;letter-spacing:.08em}
    .news-items{display:grid;gap:9px;margin:18px 0}.news-item{display:grid;grid-template-columns:22px 1fr;gap:9px;padding:11px 12px;border:1px solid rgba(145,202,255,.15);background:rgba(255,255,255,.025);color:#d9e7f7;font-size:13px;line-height:1.45}.news-item>i{color:#63f3ff;font-style:normal;font-weight:950}.news-item strong{color:#fff}.news-note{padding:10px;border-left:3px solid #9d7cff;background:rgba(157,124,255,.07);font-size:11px}.gamepad-help-item{color:#9edfff}
    @media(max-width:620px){.news-panel{width:97vw;padding:16px 13px}.news-head{gap:8px}.news-version-badge{padding:8px;font-size:11px}.news-item{font-size:11px;padding:9px}.profile-skip-link{font-size:11px}}

    /* V6.19 · Actions de compte : le changement d’utilisateur reste lisible sur PC et tactile. */
    #onlineProfile .profile-connected-layout>.profile-bottom-actions{grid-template-columns:repeat(4,minmax(0,1fr))!important}
    #cloudSwitchBtn{border-color:rgba(99,243,255,.58);background:linear-gradient(180deg,rgba(8,48,78,.94),rgba(3,18,43,.98));color:#dffcff}
    #cloudSwitchBtn:hover,#cloudSwitchBtn:focus-visible{border-color:#63f3ff;box-shadow:0 0 20px rgba(99,243,255,.18)}
    @media(max-width:760px){#onlineProfile .profile-connected-layout>.profile-bottom-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

    /* V6.23 · Audit cloud et export BugReports dans le laboratoire. */
    .dev-cloud-audit-console{margin:14px 0;padding:14px;border:1px solid rgba(99,243,255,.36);border-radius:12px;background:linear-gradient(155deg,rgba(7,39,59,.58),rgba(5,9,24,.94))}
    .dev-cloud-audit-console h3{margin:0 0 6px;color:#a8f8ff;font:950 14px/1.1 ui-monospace,monospace;letter-spacing:.06em}
    .dev-cloud-audit-console p{margin:0 0 10px;color:#c9d8ea;font-size:11px;line-height:1.45}
    .dev-cloud-audit-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
    .dev-cloud-audit-actions .btn{min-width:0;padding:9px 7px;text-align:center;font-size:10px}
    .dev-cloud-bug-report{box-sizing:border-box;width:100%;min-height:220px;max-height:42vh;margin-top:9px;padding:10px;border:1px solid #31577d;border-radius:8px;background:#020816;color:#dffcff;font:700 10px/1.45 ui-monospace,monospace;resize:vertical;white-space:pre-wrap}
    .dev-cloud-audit-note{display:block;margin-top:7px;color:#8298b6;font-size:9px;line-height:1.4}
    @media(max-width:720px){.dev-cloud-audit-actions{grid-template-columns:1fr}.dev-cloud-bug-report{min-height:180px}}

    #startupLoader{position:fixed;inset:0;z-index:120;display:grid;place-items:center;background:radial-gradient(circle at 50% 22%,rgba(14,63,115,.96),rgba(1,6,18,.985) 64%,#01040d 100%);font-family:"Courier New",monospace;color:#eaf9ff;transition:opacity .28s ease,visibility .28s ease}
    #startupLoader.hidden{opacity:0;visibility:hidden;pointer-events:none}
    .startup-loader-panel{width:min(520px,calc(100vw - 28px));padding:18px 18px 16px;border:3px solid #2ad8ff;background:linear-gradient(180deg,rgba(7,24,46,.97),rgba(2,9,22,.98));box-shadow:0 0 0 3px #06162f,0 0 28px rgba(42,216,255,.18);clip-path:polygon(14px 0,calc(100% - 14px) 0,100% 14px,100% calc(100% - 14px),calc(100% - 14px) 100%,14px 100%,0 calc(100% - 14px),0 14px)}
    .startup-loader-kicker{margin:0 0 8px;color:#7eefff;font:900 11px/1.2 "Courier New",monospace;letter-spacing:.14em;text-transform:uppercase}
    .startup-loader-title{margin:0 0 10px;color:#fff;font:900 clamp(24px,6vw,38px)/1 "Courier New",monospace;text-shadow:0 0 14px rgba(99,243,255,.35)}
    .startup-loader-text{margin:0 0 10px;color:#9dc6dd;font:700 11px/1.45 "Courier New",monospace}
    .startup-loader-bar{height:18px;padding:2px;border:2px solid #1e74ae;background:#04111f;box-shadow:inset 0 0 0 1px #0a213b}
    .startup-loader-fill{height:100%;width:18%;background:linear-gradient(90deg,#39d8ff,#82f3ff);box-shadow:0 0 16px rgba(99,243,255,.35);animation:startupLoaderPulse 1.1s ease-in-out infinite alternate}
    .startup-loader-meta{display:flex;justify-content:space-between;gap:10px;margin-top:9px;color:#6ddfff;font:900 10px/1.2 "Courier New",monospace;letter-spacing:.08em}
    .startup-loader-details-btn{display:block;width:100%;margin-top:10px;padding:8px 10px;border:1px solid rgba(99,243,255,.38);background:rgba(3,17,39,.86);color:#9eefff;font:900 9px/1.2 "Courier New",monospace;letter-spacing:.08em;cursor:pointer}
    .startup-loader-log{box-sizing:border-box;width:100%;max-height:150px;margin:8px 0 0;padding:8px 10px;overflow:auto;border:1px solid rgba(99,243,255,.22);background:#010611;color:#8fb4ca;font:700 9px/1.4 "Courier New",monospace;white-space:pre-wrap;text-align:left}
    .startup-loader-log.hidden{display:none!important}
    @keyframes startupLoaderPulse{from{filter:brightness(.95)}to{filter:brightness(1.18)}}

    /* V6.26 · Tutoriel compact et responsive. */
    #modernControlsCinema{grid-template-rows:auto minmax(0,1fr) auto!important}
    .modern-controls-cinema-head{grid-template-columns:58px minmax(0,1fr) auto!important;gap:12px!important;width:min(980px,94vw)!important;padding:10px 12px!important;align-items:center!important}
    .modern-controls-pix-mini,.modern-controls-pix-mini.pix-frame-host,.modern-controls-pix-mini.pix-frame-mini{width:54px!important;height:54px!important;min-width:54px!important;max-width:54px!important;overflow:hidden!important;border:2px solid #ffd166!important;background:radial-gradient(circle,#675529,#141007 72%)!important}
    .modern-controls-pix-mini .pix-frame-img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important}
    .modern-controls-cinema-copy{min-width:0!important;overflow:hidden!important}
    .modern-controls-cinema-head strong{font-size:clamp(15px,2.5vw,24px)!important;white-space:normal!important;overflow-wrap:anywhere!important}
    .modern-controls-cinema-head p{margin-top:4px!important;font-size:clamp(9px,1.6vw,12px)!important;line-height:1.28!important}
    .modern-controls-cinema-actions{display:flex;gap:6px;align-items:center;justify-content:flex-end;align-self:center}
    .modern-controls-cinema-actions button{min-width:78px;padding:8px 9px;border:2px solid #2d7db2;background:#071a31;color:#eafaff;font:900 9px/1 "Courier New",monospace;letter-spacing:.06em;cursor:pointer}
    .modern-controls-cinema-actions button:hover,.modern-controls-cinema-actions button:focus-visible{border-color:#63f3ff;outline:none;filter:brightness(1.15)}
    #modernControlsSkip{border-color:#8c5270!important;color:#ffb6d6!important;background:#25101d!important}
    .modern-controls-cinema-foot{margin-bottom:max(9px,env(safe-area-inset-bottom))!important}
    .secret-outfit-preview{position:relative;display:grid!important;place-items:center!important;background:radial-gradient(circle at 50% 40%,#202a38,#05080d 70%)!important;overflow:hidden!important}
    .secret-outfit-preview img{filter:brightness(0)!important;opacity:.92!important;image-rendering:pixelated!important}
    .secret-outfit-preview::after{content:"?";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);color:#fff;font:950 38px/1 "Courier New",monospace;text-shadow:0 0 14px #63f3ff}
    #avatarCreator .av-secret-outfit{display:grid;grid-template-rows:76px auto;min-height:104px;padding:5px!important;text-align:center;border:2px solid #34485c!important;background:#050910!important;color:#d9efff!important;opacity:1!important}
    #avatarCreator .av-secret-outfit .secret-outfit-preview{width:76px;height:76px;margin:auto;border:1px solid #37546d}
    #avatarCreator .av-secret-outfit .secret-outfit-preview img{width:76px;height:76px;object-fit:contain}
    #avatarCreator .av-secret-outfit>span:last-child{padding-top:4px;font-size:8px;line-height:1.25}
    @media(max-width:620px){
      .modern-controls-cinema-head{grid-template-columns:44px minmax(0,1fr)!important;grid-template-areas:"pix copy" "actions actions"!important;width:96vw!important;gap:7px!important;padding:7px 8px!important}
      .modern-controls-pix-mini,.modern-controls-pix-mini.pix-frame-host,.modern-controls-pix-mini.pix-frame-mini{grid-area:pix;width:42px!important;height:42px!important;min-width:42px!important;max-width:42px!important}
      .modern-controls-cinema-copy{grid-area:copy}
      .modern-controls-cinema-head small{font-size:7px!important;letter-spacing:.08em!important}
      .modern-controls-cinema-head strong{font-size:clamp(13px,4.1vw,18px)!important;margin-top:3px!important}
      .modern-controls-cinema-head p{font-size:8px!important;line-height:1.2!important;margin-top:3px!important}
      .modern-controls-cinema-actions{grid-area:actions;width:100%;justify-content:stretch}
      .modern-controls-cinema-actions button{flex:1;min-height:34px;padding:6px!important;font-size:8px!important}
      .modern-controls-cinema-foot{width:96vw!important;gap:3px!important}
      .modern-controls-cinema-step{padding:5px 2px!important;font-size:6px!important}
    }
