/* =====================================================================
   BANGER SHOW — plateau télé, néons AlgaJeux, boutons « cube »
   ===================================================================== */
:root {
    --noir: #0b0a10; --noir2: #15131e; --gris: #2b2a38; --gris2: #3b3a4c;
    --menthe: #3dffb5; --rose: #ff3d8b; --jaune: #ffd23d; --ciel: #3dc8ff; --violet: #a66bff; --orange: #ff8a3d;
    --texte: #f4f2ff; --doux: #a9a6bf;
    --titre: 'Lilita One', 'Nunito', system-ui, sans-serif;
    --corps: 'Nunito', system-ui, sans-serif;
    --haut: env(safe-area-inset-top, 0px); --bas: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--noir); color: var(--texte); font-family: var(--corps); }
body { user-select: none; -webkit-user-select: none; touch-action: none; }
button { font: inherit; color: inherit; }
input, textarea, select { font: inherit; user-select: text; -webkit-user-select: text; }
#jeu { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.ico { width: 1.3em; height: 1.3em; flex: none; }
.ico.mini { width: .95em; height: .95em; vertical-align: -.12em; }
.centre { justify-content: center; text-align: center; }
.petit { color: var(--doux); font-weight: 700; font-size: 14px; line-height: 1.4; margin: 6px 0; }
.rangee { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.colonne { display: flex; flex-direction: column; gap: 10px; }
.vert { color: var(--menthe); } .rouge { color: var(--rose); }
@keyframes entre { from { transform: scale(.85) translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes flotte { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-6px); } }
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); } }

/* ---------------- boutons cube ---------------- */
.cube {
    --c: var(--gris2); --o: #1d1c27;
    display: inline-flex; align-items: center; justify-content: center; gap: .45em;
    min-height: 48px; padding: 10px 18px; border: 3px solid #000; border-radius: 16px; cursor: pointer;
    background: linear-gradient(180deg, color-mix(in srgb, var(--c) 82%, #fff) 0%, var(--c) 55%);
    box-shadow: 0 5px 0 var(--o), inset 0 2px 0 rgba(255,255,255,.35);
    color: #0b0a10; font-family: var(--titre); font-size: 17px; letter-spacing: .3px;
    transition: transform .08s, box-shadow .08s, filter .15s; position: relative; text-align: center;
}
.cube:hover { filter: brightness(1.08); }
.cube:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--o), inset 0 2px 0 rgba(255,255,255,.3); }
.cube:disabled { filter: grayscale(.7) brightness(.7); cursor: default; }
.cube small { display: block; font-family: var(--corps); font-weight: 800; font-size: 12px; opacity: .8; }
.cube-menthe { --c: var(--menthe); --o: #138a5c; }
.cube-rose { --c: var(--rose); --o: #9c1950; color: #fff; }
.cube-jaune { --c: var(--jaune); --o: #a8801a; }
.cube-ciel { --c: var(--ciel); --o: #17739c; }
.cube-violet { --c: var(--violet); --o: #5b2ca8; color: #fff; }
.cube-orange { --c: var(--orange); --o: #a3501a; }
.cube-gris { --c: var(--gris2); --o: #15141d; color: var(--texte); }
.cube-carre { width: 48px; height: 48px; padding: 0; min-height: 0; }
.cube-geant { font-size: 30px; min-height: 76px; padding: 10px 26px; border-radius: 20px; width: 100%; flex-direction: column; gap: 0; }
.cube-geant > span { line-height: 1; }
.badge { position: absolute; top: -9px; right: -9px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; border: 2px solid #000;
    background: var(--rose); color: #fff; font: 900 13px/20px var(--corps); font-style: normal; }

/* ---------------- écrans ---------------- */
.ecran { position: fixed; inset: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; touch-action: pan-y; z-index: 5; }
.ecran.cache { display: none; }
.ecran-accueil, .ecran-fin { display: flex; flex-direction: column; align-items: center; padding: calc(10px + var(--haut)) 16px calc(14px + var(--bas)); gap: 10px; }
.barre-haut { width: 100%; max-width: 640px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.btn-reglages { margin-left: auto; width: 42px; height: 42px; }
.pastille { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; border: 2px solid #000;
    background: rgba(21,19,30,.92); font-weight: 900; font-size: 15px; position: relative; cursor: default; }
button.pastille { cursor: pointer; }
.pastille small { color: var(--doux); font-weight: 800; font-size: 11px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pastille-troph .ico { color: var(--jaune); } .pastille-bangers .ico { color: var(--menthe); }
.pastille-serie .ico { color: var(--orange); } .pastille-missions .ico { color: var(--ciel); }
.prix-b { display: inline-flex; align-items: center; gap: 3px; font-weight: 900; }
.prix-b .ico { color: var(--menthe); width: 1.05em; height: 1.05em; }

.logo { text-align: center; transform: rotate(-3deg); animation: flotte 3.4s ease-in-out infinite; position: relative; margin-top: 4px; }
.logo-couronne { color: var(--jaune); height: clamp(30px, 7vw, 46px); margin-bottom: -10px; }
.logo-couronne .ico { width: auto; height: 100%; filter: drop-shadow(0 4px 0 #000); }
.logo-l1, .logo-l2 { font-family: var(--titre); line-height: .88; -webkit-text-stroke: 3px #000; paint-order: stroke fill; }
.logo-l1 { font-size: clamp(46px, 13vw, 96px); color: var(--jaune); text-shadow: 0 6px 0 #000, 6px 10px 0 rgba(255,61,139,.85); }
.logo-l2 { font-size: clamp(40px, 11vw, 82px); color: var(--rose); letter-spacing: 6px; text-shadow: 0 6px 0 #000, 6px 10px 0 rgba(61,255,181,.7); }
.logo-sous { margin-top: 8px; font-weight: 900; font-size: clamp(13px, 3.6vw, 17px); opacity: .9; letter-spacing: .5px; }
.scene-vitrine { width: 100%; flex: 1 1 auto; min-height: 150px; max-height: 340px; }
.candidat-choisi { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 16px; border-radius: 999px; border: 3px solid #000; background: rgba(21,19,30,.92); cursor: pointer; }
.candidat-choisi small { color: var(--doux); font-weight: 800; font-size: 11px; }
.candidat-choisi b { font-family: var(--titre); font-weight: 400; font-size: 19px; }
.candidat-choisi span { padding: 4px 10px; border-radius: 999px; background: var(--gris2); font-weight: 900; font-size: 12px; }
.actions { width: 100%; max-width: 640px; display: flex; flex-direction: column; gap: 12px; }
#btn-jouer > span { font-size: 40px; }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.modes .cube { flex-direction: column; gap: 2px; min-height: 86px; padding: 8px 6px; font-size: 15px; }
.modes .cube .ico { width: 26px; height: 26px; }
.onglets { width: 100%; max-width: 640px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.onglet-cube { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 2px 8px; border-radius: 16px; border: 3px solid #000;
    background: linear-gradient(180deg, #34334a, #24232f); box-shadow: 0 4px 0 #111; cursor: pointer; font-weight: 900; font-size: 12px; }
.onglet-cube .ico { width: 26px; height: 26px; color: var(--menthe); }
.onglets .onglet-cube:nth-child(2) .ico { color: var(--jaune); } .onglets .onglet-cube:nth-child(3) .ico { color: var(--violet); }
.onglets .onglet-cube:nth-child(4) .ico { color: var(--orange); } .onglets .onglet-cube:nth-child(5) .ico { color: var(--ciel); }
.onglet-cube:active { transform: translateY(3px); box-shadow: 0 1px 0 #111; }
.onglet-cube.actif { background: linear-gradient(180deg, var(--jaune), #d9a92a); color: #0b0a10; }
.banniere { width: 100%; max-width: 728px; min-height: 60px; }
.banniere-test { border: 2px dashed var(--gris2); border-radius: 12px; padding: 18px; text-align: center; color: var(--doux); font-weight: 800; font-size: 13px; }

/* pages */
.ecran-page { background: linear-gradient(180deg, rgba(11,10,16,.7), rgba(11,10,16,.94) 30%); }
.page-tete { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: calc(10px + var(--haut)) 16px 10px;
    background: linear-gradient(180deg, rgba(11,10,16,.98), rgba(11,10,16,.88)); border-bottom: 2px solid #000; }
.page-tete h2 { flex: 1; margin: 0; font-family: var(--titre); font-weight: 400; font-size: 26px; color: var(--jaune); -webkit-text-stroke: 1px #000; }
.page-corps { max-width: 1000px; margin: 0 auto; padding: 16px 16px calc(30px + var(--bas)); }
.page-corps h3 { font-family: var(--titre); font-weight: 400; font-size: 21px; margin: 22px 0 10px; color: var(--menthe); }
.page-corps h3 small { font-family: var(--corps); margin-left: 6px; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; margin-bottom: 14px; }
.cats .onglet-cube { font-size: 14px; padding: 12px 4px; }
.grille-objets { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.carte-objet { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px 12px; border-radius: 18px; border: 3px solid #000;
    background: linear-gradient(180deg, #2a2838, #1a1924); box-shadow: 0 5px 0 #000; cursor: pointer; text-align: center; position: relative; min-height: 168px; }
.carte-objet b { font-family: var(--titre); font-weight: 400; font-size: 15px; line-height: 1.1; }
.carte-objet small { color: var(--doux); font-weight: 800; font-size: 12px; display: inline-flex; align-items: center; gap: 3px; flex-wrap: wrap; justify-content: center; }
.carte-objet.verrou { background: linear-gradient(180deg, #1d1c26, #121118); }
.carte-objet.verrou canvas { filter: saturate(.6) brightness(.8); }
.carte-objet.equipe { border-color: var(--menthe); box-shadow: 0 5px 0 #138a5c; }
.carte-objet.equipe small { color: var(--menthe); }
.carte-objet:active { transform: translateY(3px); }
.auto-ico { width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; font-family: var(--titre); font-size: 26px; color: var(--ciel); border: 3px dashed var(--gris2); border-radius: 16px; }
canvas.apercu, canvas.tete-mini { display: block; }
.avis { padding: 12px 14px; border-radius: 14px; border: 2px solid var(--jaune); background: rgba(255,210,61,.08); font-weight: 800; margin: 0 0 12px; }
s { color: var(--doux); }
.promo { padding: 2px 8px; border-radius: 8px; background: var(--rose); color: #fff; font-weight: 900; font-size: 13px; }

/* offres */
.offres { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.offre { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 20px; border: 3px solid #000; background: var(--noir2); box-shadow: 0 6px 0 #000; position: relative; }
.offre-haut { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.offre-haut b { font-family: var(--titre); font-weight: 400; font-size: 21px; line-height: 1.1; }
.offre-prix { padding: 3px 10px; border-radius: 10px; background: #000; font-weight: 900; color: var(--jaune); white-space: nowrap; }
.offre ul { margin: 0 0 6px; padding-left: 18px; font-weight: 700; font-size: 14px; color: var(--doux); flex: 1; }
.offre-menthe { border-top: 6px solid var(--menthe); } .offre-ciel { border-top: 6px solid var(--ciel); } .offre-violet { border-top: 6px solid var(--violet); }
.offre-rose { border-top: 6px solid var(--rose); } .offre-jaune { border-top: 6px solid var(--jaune); } .offre-orange { border-top: 6px solid var(--orange); }
.offre.achetee { opacity: .75; }
.offre.surligne { outline: 4px solid var(--jaune); outline-offset: 3px; }
.offre-tetes { display: flex; }
.offre-tetes canvas { margin-right: -8px; filter: drop-shadow(0 2px 0 #000); }
input:not([type]), input[type=text], textarea, select { background: #000; color: var(--texte); border: 3px solid var(--gris2); border-radius: 12px; padding: 10px 12px; font-weight: 800; font-size: 16px; min-height: 48px; }
textarea { width: 100%; resize: vertical; }
#code-achat, #code-modale { flex: 1; min-width: 200px; }
.id-joueur { color: var(--jaune); letter-spacing: 1px; user-select: text; -webkit-user-select: text; }

/* pass */
.pass-tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.pass-tete b { font-family: var(--titre); font-weight: 400; font-size: 24px; color: var(--violet); display: block; }
.pass-tete small { color: var(--doux); font-weight: 800; }
.pass-palier { font-weight: 900; } .pass-palier b { font-family: var(--titre); font-size: 30px; color: var(--jaune); font-weight: 400; }
.barre { height: 10px; border-radius: 5px; background: #000; overflow: hidden; border: 1px solid #000; margin: 6px 0 2px; }
.barre i { display: block; height: 100%; background: linear-gradient(90deg, var(--menthe), var(--ciel)); border-radius: 5px; }
.barre.grosse { height: 18px; border-radius: 9px; border: 2px solid #000; }
.barre.grosse i { background: linear-gradient(90deg, var(--violet), var(--rose)); }
.piste { display: flex; gap: 8px; overflow-x: auto; padding: 14px 4px 18px; margin-top: 10px; touch-action: pan-x pan-y; scroll-snap-type: x proximity; }
.palier { flex: none; display: flex; flex-direction: column; gap: 8px; align-items: center; scroll-snap-align: start; }
.palier-n { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #000; background: var(--gris); display: flex; align-items: center; justify-content: center; font-weight: 900; }
.palier.atteint .palier-n { background: var(--jaune); color: #000; }
.recompense { position: relative; width: 84px; height: 92px; border-radius: 16px; border: 3px solid #000; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.recompense.gratuit { background: linear-gradient(180deg, #2c3a36, #18211e); }
.recompense.premium { background: linear-gradient(180deg, #4a2a7a, #22123d); }
.recompense.dispo { box-shadow: 0 0 0 3px var(--menthe); }
.recompense.prise { opacity: .55; }
.recompense .verrou-p, .recompense .ok-p { position: absolute; top: 4px; right: 4px; color: var(--jaune); font-style: normal; }
.recompense .ok-p { color: var(--menthe); }
.rec-b { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--menthe); }
.rec-b .ico { width: 30px; height: 30px; }
.rec-b b { color: var(--texte); font-size: 14px; }

/* route */
.route-tete { display: flex; align-items: center; gap: 10px; font-weight: 900; }
.route-tete .ico { color: var(--jaune); width: 36px; height: 36px; }
.route-tete b { font-family: var(--titre); font-weight: 400; font-size: 38px; }
.route-tete small { color: var(--doux); }
.route { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.route-arene { padding: 16px; border-radius: 18px; border: 3px solid; display: flex; flex-direction: column; gap: 4px; filter: grayscale(.6) brightness(.7); }
.route-arene.atteint { filter: none; }
.route-arene b { font-family: var(--titre); font-weight: 400; font-size: 24px; }
.route-arene small { font-weight: 800; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.route-etape { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 14px; border: 2px solid #000; background: var(--noir2); opacity: .6; }
.route-etape.atteint { opacity: 1; border-color: var(--menthe); }
.route-etape > b { flex: 1; }
.route-etape > i { color: var(--menthe); font-style: normal; }
.route-t { min-width: 54px; font-weight: 900; color: var(--jaune); }

/* plus */
.reglages { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.reglages label { display: flex; flex-direction: column; gap: 6px; font-weight: 900; padding: 12px; border-radius: 14px; background: var(--noir2); border: 2px solid #000; }
.reglages label.case { flex-direction: row; align-items: center; flex-wrap: wrap; }
.reglages label.case small { width: 100%; color: var(--doux); font-weight: 700; }
.reglages input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--menthe); }
.reglages input[type=range] { accent-color: var(--menthe); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.stats div { padding: 12px; border-radius: 14px; background: var(--noir2); border: 2px solid #000; text-align: center; }
.stats b { display: block; font-family: var(--titre); font-weight: 400; font-size: 26px; color: var(--jaune); }
.stats small { color: var(--doux); font-weight: 800; }
.grille-succes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.succes { padding: 12px; border-radius: 14px; background: var(--noir2); border: 2px solid #000; opacity: .7; }
.succes.ok { opacity: 1; border-color: var(--menthe); }
.succes b { display: block; } .succes small { color: var(--doux); font-weight: 700; }

/* modale, toasts */
#modale { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(5,5,8,.78); overflow-y: auto; touch-action: pan-y; }
.modale-boite { width: 100%; max-width: 520px; margin: auto; padding: 20px; border-radius: 24px; border: 3px solid #000; background: linear-gradient(180deg, #23212f, #14131c);
    box-shadow: 0 10px 0 #000; animation: entre .3s cubic-bezier(.2,1.4,.5,1); display: flex; flex-direction: column; gap: 12px; }
.modale-boite h3 { margin: 0; font-family: var(--titre); font-weight: 400; color: var(--jaune); font-size: 24px; }
.modale-boite p { margin: 0; font-weight: 700; line-height: 1.4; }
.modale-apercu { display: flex; justify-content: center; }
.mission { padding: 10px 12px; border-radius: 14px; background: #0f0e16; border: 2px solid #000; }
.mission.ok { border-color: var(--menthe); }
.mission small { color: var(--doux); font-weight: 800; display: flex; align-items: center; gap: 4px; }
.code-prive { align-self: center; font-family: var(--titre); font-size: 52px; letter-spacing: 10px; color: var(--ciel); padding: 4px 18px 0 28px; border-radius: 16px; background: #000; border: 3px solid var(--ciel); user-select: text; -webkit-user-select: text; }
.code-prive.petit-code { font-size: 20px; letter-spacing: 4px; padding: 2px 8px; border-width: 2px; }
#code-ami { width: 140px; text-transform: uppercase; letter-spacing: 4px; font-family: var(--titre); font-size: 22px; text-align: center; }
.grille-manches { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.grille-manches .cube { flex-direction: column; gap: 2px; min-height: 76px; }
.grille-manches .cube small { font-size: 11px; line-height: 1.25; }
#toasts { position: fixed; top: calc(12px + var(--haut)); left: 50%; transform: translateX(-50%); z-index: 40; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 14px; border-radius: 16px; border: 3px solid #000; background: #1d1c28; box-shadow: 0 5px 0 #000;
    animation: entre .3s ease-out; transition: opacity .4s, transform .4s; font-weight: 800; }
.toast.ok { border-color: var(--menthe); } .toast.ko { border-color: var(--rose); } .toast.or { border-color: var(--jaune); }
.toast .ico { color: var(--jaune); }
.toast.part { opacity: 0; transform: translateY(-10px); }
.pub-test { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.88); padding: 16px; }
.pub-test-boite { max-width: 420px; padding: 24px; border-radius: 20px; border: 3px dashed var(--jaune); background: #14131c; text-align: center; display: flex; flex-direction: column; gap: 10px; }
.pub-test-badge { align-self: center; padding: 4px 12px; border-radius: 8px; background: var(--jaune); color: #000; font-weight: 900; letter-spacing: 2px; }
.pub-test-type { color: var(--doux); font-weight: 800; }

/* ---------------- en jeu ---------------- */
#hud { position: fixed; left: 0; right: 0; top: 0; z-index: 6; pointer-events: none; padding: calc(10px + var(--haut)) 12px 0; }
.hud-haut { display: flex; align-items: flex-start; gap: 10px; }
.hud-haut .cube { pointer-events: auto; width: 44px; height: 44px; }
.hud-manche { display: flex; flex-direction: column; padding: 6px 14px; border-radius: 14px; border: 3px solid #000; background: rgba(11,10,16,.82); }
.hud-manche b { font-family: var(--titre); font-weight: 400; font-size: 17px; color: var(--jaune); }
.hud-manche span { font-weight: 900; font-size: 14px; }
.hud-temps { margin-left: auto; padding: 6px 14px; border-radius: 14px; border: 3px solid #000; background: rgba(11,10,16,.82); font-family: var(--titre); font-size: 22px; min-width: 70px; text-align: center; }
.hud-temps:empty { display: none; }
.hud-progres { margin: 8px auto 0; max-width: 420px; height: 12px; border-radius: 6px; border: 2px solid #000; background: rgba(0,0,0,.6); overflow: hidden; }
.hud-progres i { display: block; height: 100%; background: linear-gradient(90deg, var(--menthe), var(--jaune)); }
#manette { position: fixed; left: 0; right: 0; bottom: 0; z-index: 7; display: flex; justify-content: space-between; align-items: flex-end;
    padding: 0 calc(14px + env(safe-area-inset-left, 0px)) calc(14px + var(--bas)) calc(14px + env(safe-area-inset-left, 0px)); pointer-events: none; touch-action: none; }
#manette button { pointer-events: auto; border: 3px solid #000; border-radius: 22px; background: rgba(43,42,56,.78); color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 5px 0 rgba(0,0,0,.6); touch-action: none; }
#manette button.appuye { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,.6); filter: brightness(1.3); }
#manette svg { width: 36px; height: 36px; }
.man-gauche { display: flex; gap: 10px; }
.man-gauche button { width: 78px; height: 78px; }
.man-droite { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; gap: 10px; align-items: end; }
.man-droite .man-emote { width: 50px; height: 50px; grid-column: 1; grid-row: 1; justify-self: end; border-radius: 50%; }
.man-droite .man-emote svg { width: 28px; height: 28px; }
.man-plonge { width: 80px; height: 70px; grid-column: 1; grid-row: 2; background: rgba(255,61,139,.82) !important; }
.man-saut { width: 96px; height: 96px; grid-column: 2; grid-row: 1 / 3; border-radius: 50% !important; background: rgba(61,255,181,.85) !important; color: #000 !important; }
#manette span { font-family: var(--titre); font-size: 16px; }
#annonce { position: fixed; inset: 0; z-index: 9; display: none; align-items: center; justify-content: center; padding: 16px; pointer-events: none; }
#annonce.visible { display: flex; background: rgba(5,5,8,.5); pointer-events: auto; }
#annonce.visible.bas { align-items: flex-end; background: transparent; pointer-events: none; padding-bottom: calc(20px + var(--bas)); }
#annonce.bas > * { pointer-events: auto; }
.intro { --c: var(--jaune); width: 100%; max-width: 560px; text-align: center; padding: 24px 20px; border-radius: 28px; border: 4px solid #000;
    background: linear-gradient(180deg, #1f1d2b, #0f0e16); box-shadow: 0 10px 0 #000, 0 0 0 4px var(--c); animation: entre .4s cubic-bezier(.2,1.4,.5,1);
    display: flex; flex-direction: column; gap: 10px; align-items: center; }
.intro-num { font-weight: 900; letter-spacing: 3px; color: var(--doux); font-size: 14px; }
.intro-nom { font-family: var(--titre); font-size: clamp(34px, 9vw, 58px); line-height: .95; color: var(--c); -webkit-text-stroke: 2px #000; paint-order: stroke fill; text-shadow: 0 5px 0 #000; }
.intro-regle { font-weight: 900; font-size: 19px; }
.intro-quota { display: flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: #000; font-weight: 900; color: var(--jaune); }
.intro-pres { color: var(--doux); font-weight: 800; font-style: italic; }
.intro-tuto { margin-top: 4px; padding: 10px 14px; border-radius: 14px; background: rgba(61,255,181,.12); border: 2px solid var(--menthe); font-weight: 900; }
.intro-tuto small { color: var(--doux); }
#banniere-jeu { position: fixed; inset: 0; z-index: 8; pointer-events: none; display: flex; align-items: center; justify-content: center; }
.decompte { position: absolute; font-family: var(--titre); font-size: clamp(90px, 26vw, 200px); color: var(--jaune); -webkit-text-stroke: 5px #000; paint-order: stroke fill;
    text-shadow: 0 10px 0 #000; animation: pop .5s ease-out both, part .4s .5s ease-in forwards; }
.decompte.go { color: var(--menthe); }
@keyframes part { to { opacity: 0; transform: scale(1.3); } }
.ban-jeu { position: absolute; top: 24%; font-family: var(--titre); font-size: clamp(40px, 11vw, 84px); -webkit-text-stroke: 4px #000; paint-order: stroke fill; text-shadow: 0 8px 0 #000;
    transform: rotate(-4deg); animation: pop .45s cubic-bezier(.2,1.6,.5,1) both, part .4s 1.7s ease-in forwards; white-space: nowrap; }
.ban-jeu.ok { color: var(--menthe); } .ban-jeu.ko { color: var(--rose); } .ban-jeu.info { color: var(--jaune); font-size: clamp(30px, 8vw, 60px); }
.carte-elim, .resultats { width: 100%; max-width: 620px; text-align: center; padding: 20px; border-radius: 26px; border: 4px solid #000; background: linear-gradient(180deg, #1f1d2b, #0f0e16);
    box-shadow: 0 10px 0 #000; animation: entre .35s cubic-bezier(.2,1.4,.5,1); display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 32px); overflow-y: auto; }
.carte-elim p { margin: 0; font-weight: 800; color: var(--doux); }
.elim-titre { font-family: var(--titre); font-size: 44px; color: var(--rose); -webkit-text-stroke: 2px #000; paint-order: stroke fill; }
.res-titre { font-family: var(--titre); font-size: 30px; color: var(--jaune); }
.res-sous { font-weight: 900; font-size: 20px; }
.res-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.res-tete { display: flex; flex-direction: column; align-items: center; gap: 2px; animation: pop .35s ease-out both; }
.res-tete small { font-weight: 800; font-size: 10px; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--doux); }
.res-tete.x canvas { filter: grayscale(1) brightness(.5); }
.res-tete.x { position: relative; }
.res-tete.x::after { content: ''; position: absolute; top: 6px; left: 50%; width: 34px; height: 34px; margin-left: -17px;
    background: linear-gradient(45deg, transparent 44%, var(--rose) 44% 56%, transparent 56%), linear-gradient(-45deg, transparent 44%, var(--rose) 44% 56%, transparent 56%); }
.res-tete.moi small { color: var(--menthe); font-weight: 900; }
.res-tete.moi canvas { outline: 3px solid var(--menthe); border-radius: 50%; }
.res-suite { font-weight: 800; color: var(--doux); }

/* fin du show */
.fin-haut { text-align: center; margin-top: 10px; }
.fin-titre { font-family: var(--titre); font-size: clamp(54px, 15vw, 110px); line-height: .95; color: #fff; -webkit-text-stroke: 3px #000; paint-order: stroke fill; text-shadow: 0 7px 0 #000; animation: pop .5s ease-out both; }
.fin-titre.or { color: var(--jaune); text-shadow: 0 7px 0 #000, 7px 12px 0 rgba(255,61,139,.8); }
.fin-titre sup { font-size: .45em; }
.fin-sous { font-weight: 900; font-size: 17px; color: var(--doux); margin-top: 6px; }
.scene-fin { width: 100%; flex: 1 1 auto; min-height: 150px; max-height: 320px; }
.fin-gains { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.gain { display: flex; flex-direction: column; align-items: center; min-width: 104px; padding: 10px 14px; border-radius: 18px; border: 3px solid #000; background: rgba(21,19,30,.92); box-shadow: 0 5px 0 #000; animation: pop .45s .2s ease-out both; }
.gain .ico { width: 30px; height: 30px; color: var(--menthe); }
.gain:nth-child(2) .ico { color: var(--violet); } .gain:nth-child(3) .ico { color: var(--jaune); }
.gain b { font-family: var(--titre); font-weight: 400; font-size: 28px; }
.gain small { color: var(--doux); font-weight: 800; }
.gain.moins b { color: var(--rose); }
.fin-nouveau { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 640px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; border: 2px solid var(--menthe); background: rgba(61,255,181,.1); font-weight: 900; font-size: 13px; }
.tag.or { border-color: var(--jaune); background: rgba(255,210,61,.1); } .tag.violet { border-color: var(--violet); background: rgba(166,107,255,.12); }
.fin-actions { width: 100%; max-width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fin-actions .cube-geant { grid-column: 1 / -1; }
.fin-actions #f-double { grid-column: 1 / -1; }

/* téléphone en largeur : on gagne de la place verticale */
@media (max-height: 560px) {
    .logo-l1 { font-size: 40px; } .logo-l2 { font-size: 34px; } .logo-couronne { height: 24px; } .logo-sous { display: none; }
    .scene-vitrine, .scene-fin { min-height: 90px; }
    .modes .cube { min-height: 62px; } .modes .cube small { display: none; }
    .cube-geant { min-height: 60px; } #btn-jouer > span { font-size: 30px; }
    .man-gauche button { width: 66px; height: 66px; } .man-saut { width: 84px; height: 84px; } .man-plonge { width: 70px; height: 58px; }
    .intro { padding: 14px; gap: 6px; } .intro-pres { display: none; }
}
@media (max-width: 400px) {
    .pastille small { display: none; }
    .modes .cube { font-size: 13px; } .modes .cube small { font-size: 10px; }
    .onglet-cube span { font-size: 10.5px; }
}
body.photosensible .logo { animation: none; }
.pass-vitrine { display: flex; align-items: center; gap: 14px; margin-top: 6px; padding: 12px 16px; border-radius: 20px; border: 3px solid #000;
    background: radial-gradient(circle at 15% 50%, rgba(255,210,61,.35), transparent 55%), linear-gradient(135deg, #4a2a7a, #1a0d33); box-shadow: 0 6px 0 #000; }
.pass-vitrine b { display: block; color: var(--jaune); font-weight: 900; letter-spacing: 1px; font-size: 13px; }
.pass-vitrine span { display: block; font-family: var(--titre); font-size: 28px; line-height: 1.05; color: #fff; -webkit-text-stroke: 1px #000; }
.pass-vitrine small { color: var(--doux); font-weight: 800; }
