/* BUT IT'S MATH — ARCADE · TICKETS (js/arcade.js) : section du hub, coquille commune des jeux d'arcade, fin de partie, PRIZE COUNTER.
   Scène 720×1280 ; cibles ≥ 88 px de scène (= 44 px CSS sur un téléphone de 360 px). */

/* ---------- hub ---------- */
.hubscroll .arlab { margin: 26px 0 10px; color: #ffcf3d; opacity: .9; }
.hubscroll .glist.arlist { margin-top: 0; }
.gcard.arcade { --acc: #ffcf3d; border-color: color-mix(in srgb, var(--acc) 60%, transparent); box-shadow: 0 0 30px color-mix(in srgb, var(--acc) 14%, transparent); }
.gico.arc { background: radial-gradient(circle at 50% 40%, #241d08, #120f05); border-color: rgba(255,207,61,.4); }
.gplay.arc { background: linear-gradient(#ffd84a, #e8b51e); color: #141414; text-align: center; }
.gplay.arc small, .gplay.pz small { display: block; margin-top: 3px; font: 800 13px/1 'Barlow Semi Condensed'; letter-spacing: .5px; opacity: .8; }
.gcard.prize { border-color: rgba(255,207,61,.5); border-style: dashed; }
.gplay.pz { background: #2a1e05; color: #ffcf3d; border: 1px solid rgba(255,207,61,.6); text-align: center; min-width: 96px; }

/* ---------- barre du haut : TICKETS à la place des jetons dans l'arcade ---------- */
#statTkBox { display: none; }
#stage.inarc #statTkBox { display: flex; }
#stage.inarc #statChipsBox { display: none; }
.ico-tk { font-style: normal; font-size: 22px; filter: drop-shadow(0 0 6px rgba(255,207,61,.7)); }
#statTkBox b { color: #ffcf3d; }

/* ---------- coquille ---------- */
#arcade { overflow: hidden; background: #040806; touch-action: none; }
.arroot { position: absolute; inset: 0; overflow: hidden; }
.arroot canvas { position: absolute; left: 0; top: 0; width: 720px; height: 1280px; display: block; }
.arhud { position: absolute; left: 0; right: 0; top: 108px; z-index: 6; display: flex; justify-content: center; gap: 10px; pointer-events: none; }
.arpill { display: flex; flex-direction: column; align-items: center; min-width: 112px; padding: 6px 12px 7px; border-radius: 12px; background: rgba(6,12,9,.72); border: 1px solid rgba(150,220,190,.22); }
.arpill small { font: 800 14px/1 'Barlow Semi Condensed'; letter-spacing: 2px; color: #8fa59a; }
.arpill b { margin-top: 3px; font: 900 28px/1 Montserrat; color: #fff; font-variant-numeric: tabular-nums; }
.arpill[data-k="score"] b { color: #ffcf3d; }
.arscope { position: absolute; left: 30px; top: 1052px; width: 660px; height: 212px; z-index: 3; border-radius: 10px; background: rgba(6,13,9,.55); box-shadow: inset 0 0 0 1px rgba(150,220,190,.12); pointer-events: none; }
.arhelp { position: absolute; right: 30px; top: 110px; z-index: 7; width: 76px; height: 76px; font-size: 36px; background: rgba(10,20,15,.75); }
#arcade.playing .arhelp { display: none; }

/* ---------- fin de partie ---------- */
.arend { position: absolute; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; background: rgba(3,7,5,.78); animation: arIn .35s ease-out; }
@keyframes arIn { from { opacity: 0; } to { opacity: 1; } }
.arendbox { box-sizing: border-box; max-height: calc(100% - 12px); overflow: hidden auto; overscroll-behavior: contain; width: 640px; padding: 30px 28px 26px; border-radius: 20px; background: linear-gradient(#152419, #0c1611); border: 1px solid rgba(150,220,190,.35); box-shadow: 0 0 70px rgba(0,0,0,.7); display: flex; flex-direction: column; gap: 14px; text-align: center; animation: arPop .4s cubic-bezier(.2,1.5,.4,1); }
@keyframes arPop { from { transform: scale(.9); } to { transform: none; } }
.arendbox h5 { margin: 0; font: 800 20px/1 'Barlow Semi Condensed'; letter-spacing: 5px; color: #8fa59a; }
.arendbox > * { flex: none; min-width: 0; }
.arendbox h3 { margin: 0; font: 900 50px/1 Montserrat; color: #ff3d5e; text-shadow: 0 0 24px rgba(255,61,94,.45); }
.arendbox.win h3 { color: #8ff6ff; text-shadow: 0 0 24px rgba(143,246,255,.45); }
.arscore { display: flex; flex-direction: column; align-items: center; }
.arscore span { font: 800 17px/1 'Barlow Semi Condensed'; letter-spacing: 4px; color: #8fa59a; }
.arscore b { font: 900 76px/1.05 Montserrat; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.arscore small { font: 800 20px/1 'Barlow Semi Condensed'; letter-spacing: 1px; color: #ffcf3d; }
.artk { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 12px; border-radius: 14px; background: rgba(255,207,61,.07); border: 1px solid rgba(255,207,61,.35); }
.artkf { font-size: 26px; color: #f3f3ee; white-space: nowrap; max-width: 100%; }
.artkf .katex { font-size: 1em; }
.artkn { display: flex; align-items: center; gap: 8px; }
.artkn b { font: 900 58px/1 Montserrat; color: #ffcf3d; text-shadow: 0 0 22px rgba(255,207,61,.5); }
.artkn i { font-style: normal; font-size: 44px; }
.artk small { font: 600 17px/1.3 'Barlow Semi Condensed'; color: #9fb2a6; }
.arstats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.arstats:empty { display: none; }
.arstats div { min-width: 0; background: rgba(255,255,255,.04); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; }
.arstats span { font: 800 14px/1.1 'Barlow Semi Condensed'; letter-spacing: 1.5px; color: #8fa59a; }
.arstats b { font: 900 24px/1.1 Montserrat; color: #e9eee8; overflow-wrap: anywhere; }
.arrow { display: flex; gap: 12px; height: 104px; margin-top: 4px; }
.arrow .btn { font-size: 28px; }
.arrow .btn small { font-size: 14px; }

/* ---------- pause ---------- */
.arpause .modal-box h5 { margin: 0; font: 800 20px/1 'Barlow Semi Condensed'; letter-spacing: 5px; color: #ffcf3d; }
.arpause .modal-box .btn { height: 100px; }

/* ---------- PRIZE COUNTER ---------- */
#prizes { overflow: hidden; }
.pztitle { background: linear-gradient(180deg, #ffd84a, #e0a91a) !important; color: #141414 !important; box-shadow: 0 8px 40px rgba(255,207,61,.3), inset 0 -4px 0 rgba(0,0,0,.12) !important; }
.pzbal { position: absolute; left: 0; right: 0; top: 182px; display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.pzbal span { font-size: 46px; }
.pzbal b { font: 900 64px/1 Montserrat; color: #ffcf3d; text-shadow: 0 0 24px rgba(255,207,61,.45); }
.pzbal small { font: 800 18px 'Barlow Semi Condensed'; letter-spacing: 4px; color: #9fb2a6; }
.pzf { position: absolute; left: 10px; right: 10px; top: 268px; text-align: center; font-size: 25px; color: #e9eee8; white-space: nowrap; }
.pzscroll { top: 318px; bottom: 0; padding: 4px 40px 60px; }
.pzscroll h4 { margin: 18px 0 10px; font: 800 18px/1.2 'Barlow Semi Condensed'; letter-spacing: 3px; color: #ffcf3d; }
.pzrow { display: flex; align-items: center; gap: 14px; min-height: 104px; padding: 10px 14px; margin-bottom: 10px; border-radius: 14px; background: rgba(12,22,17,.85); border: 1px solid rgba(110,170,130,.3); }
.pzrow.own { border-color: rgba(92,240,138,.45); }
.pzrow > i { flex: none; width: 64px; height: 64px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-style: normal; }
.pzpack { background: #1b1430; border: 1px solid rgba(201,167,255,.4); color: #c9a7ff; font: 900 34px Montserrat; }
.pzbadge { background: #241d08; border: 1px solid rgba(255,207,61,.4); font-size: 36px; }
.pzsw { background: var(--a); border: 1px solid rgba(255,255,255,.25); position: relative; overflow: hidden; }
.pzsw::after { content: ''; position: absolute; left: 8px; right: 8px; top: 30px; height: 3px; border-radius: 2px; background: var(--b); box-shadow: 0 0 8px var(--b); transform: skewY(-18deg); }
.pztxt { flex: 1; min-width: 0; }
.pztxt b { display: block; font: 900 25px/1.1 Montserrat; color: #fff; }
.pztxt small { display: block; margin-top: 4px; font: 600 17px/1.2 'Barlow Semi Condensed'; color: #8fa59a; }
.pzact { display: flex; gap: 8px; margin-top: 6px; }
.pzact .opt { min-height: 52px; padding: 8px 14px; font-size: 17px; }
.pzbuy { flex: none !important; width: 170px; height: 88px; font-size: 26px !important; padding: 0; }
.pzbuy small { font-size: 14px !important; }
.pzbuy.confirm { background: linear-gradient(#5cf08a, #2fbf62) !important; color: #06150b; }
.btn.ghost { background: rgba(20,30,25,.9); color: #9fb2a6; border: 1px solid rgba(150,220,190,.25); box-shadow: none; }
.pzown { flex: none; width: 170px; text-align: center; font: 900 22px Montserrat; color: #5cf08a; }
.pzfoot { margin: 20px 0 0; text-align: center; font: 600 17px 'Barlow Semi Condensed'; color: #6f8178; letter-spacing: 1px; }

/* ---------- verrous (réglages, SOUND LAB) ---------- */
.opt.locked { opacity: .55; border-style: dashed; cursor: default; }
.opt.locked small { margin-left: 6px; font: 800 14px 'Barlow Semi Condensed'; color: #ffcf3d; }
.slchip.locked { border-style: dashed; border-color: rgba(255,207,61,.45); }
.slchip .tkp { position: absolute; top: 8px; right: 10px; font: 800 15px/1 'Barlow Semi Condensed'; font-style: normal; color: #ffcf3d; }
#slUse.locked { background: linear-gradient(#3a2a05, #241a03); color: #ffcf3d; border: 1px dashed rgba(255,207,61,.6); }

/* =====================================================================================================
   13/10 — AIDE, SKINS, MASCOTTE SIGMA, EXCHANGE, HIGH ROLLER, COSMÉTIQUES DE CASINO
   ===================================================================================================== */
/* « ? » de l'arcade : dans la barre du haut, seulement sur l'écran d'un jeu d'arcade, toute la partie */
#bArHelp { display: none; position: absolute; right: 76px; top: 4px; width: 56px; height: 56px; padding: 0; font: 900 30px/1 Montserrat; color: #ffcf3d; border-color: rgba(255,207,61,.5); }
#stage.arcgame #bArHelp { display: flex; align-items: center; justify-content: center; }
#stage.arcgame #stats { margin-right: 66px; }
.arhelp { display: none !important; }
.arpause .arphelp { display: flex; gap: 10px; }
.arpause .arphelp .opt { flex: 1; min-height: 76px; font-size: 19px; }
.howto .hbtns { display: flex; gap: 12px; }
.howto .hbtns .btn { flex: 1; height: 92px; font-size: 26px; }
.howto .hbtns .btn.ghost { font-size: 22px; }

/* RULES & MATH (js/help.js) */
.rulespage .modal-box { width: 640px; max-height: 1150px; gap: 14px; }
.rulespage .rsecs { overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 14px; padding-right: 4px; }
.rulespage section { padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(150,220,190,.16); }
.rulespage h4 { margin: 0 0 6px; font: 800 18px/1 'Barlow Semi Condensed'; letter-spacing: 4px; color: #ffcf3d; }
.rulespage section p { margin: 0; font: 600 24px/1.3 'Barlow Semi Condensed'; color: #e9eee8; }
.rulespage section p b { color: #ffcf3d; }
.rulespage .rtex { margin-top: 10px; padding: 12px 8px; border-radius: 10px; background: rgba(255,207,61,.06); border: 1px solid rgba(255,207,61,.3); text-align: center; font-size: 26px; color: #fff; overflow: hidden; }
.rulespage .rfoot { font: 600 17px 'Barlow Semi Condensed'; color: #6f8178; text-align: center; }
.rulelist .rgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rulelist .rgrid .opt { min-height: 80px; font-size: 19px; }
.rulelist h4 { margin-top: 6px; }

/* ---------- SIGMA (js/mascot.js) ---------- */
.armasc { position: relative; display: flex; justify-content: center; pointer-events: none; }
.armasc canvas { display: block; }
.hubmasc { margin: 0 0 6px; height: 200px; }
.endmasc { height: 150px; margin: -10px 0 -6px; }
.pausemasc { height: 130px; margin: -6px 0 -4px; }

/* ---------- PRIZE COUNTER : onglets, skins, exchange, high roller ---------- */
.pzbal em { font-style: normal; margin-left: 18px; font: 800 26px Montserrat; color: #ffcf3d; }
.pzbal em b { font: inherit; text-shadow: none; }
.pzbal .ico-chip { width: 44px; height: 44px; vertical-align: middle; }
.pzchips { color: #ffe9a0 !important; }
.pztabs { position: absolute; left: 30px; right: 30px; top: 314px; display: flex; gap: 8px; }
.pztabs .cfgtab { min-height: 66px; font-size: 19px; }
#prizes .pzscroll { top: 394px; }
.pzscroll h4 small { display: block; margin-top: 3px; font: 600 15px/1.2 'Barlow Semi Condensed'; letter-spacing: 1px; color: #6f8178; }
.skrow.on { border-color: rgba(255,207,61,.7); box-shadow: 0 0 18px rgba(255,207,61,.15); }
.skcv { flex: none; width: 64px; height: 64px; border-radius: 12px; background: radial-gradient(circle at 50% 45%, #18241e, #07100c); border: 1px solid rgba(150,220,190,.25); }
.skeq.on { background: #ffcf3d; color: #141414; border-color: #ffcf3d; }
.pzrow .ico-chip { width: 26px; height: 26px; vertical-align: -4px; }
.skp { flex: none; width: 64px; height: 64px; border-radius: 12px; position: relative; overflow: hidden; font-style: normal; border: 1px solid rgba(255,255,255,.2); }
.skp-felt, .skp-chip { border-radius: 50%; }
.hrrow .pztxt small { font-size: 16px; }
.hrf { margin-top: 6px; font-size: 21px; color: #ffe9a0; }
.exbox { padding: 18px; border-radius: 14px; background: rgba(12,22,17,.85); border: 1px solid rgba(255,207,61,.35); display: flex; flex-direction: column; gap: 12px; text-align: center; }
.exrate { font: 900 40px Montserrat; color: #fff; }
.exrate .ico-chip { width: 34px; height: 34px; vertical-align: -5px; }
.exbar { height: 14px; border-radius: 7px; background: rgba(255,255,255,.07); overflow: hidden; }
.exbar i { display: block; height: 100%; background: linear-gradient(90deg, #ffcf3d, #ff8a3d); }
.exbox > small { font: 600 19px 'Barlow Semi Condensed'; color: #9fb2a6; }
.exbox > small b { color: #ffcf3d; }
.exbtns { display: flex; flex-direction: column; gap: 10px; }
.exbtn { height: 96px; font-size: 27px !important; }
.exbtn .ico-chip { width: 24px; height: 24px; vertical-align: -3px; }
.exbtn.confirm { background: linear-gradient(#5cf08a, #2fbf62) !important; color: #06150b; }
.exbox p { margin: 0; font: 600 17px/1.3 'Barlow Semi Condensed'; color: #6f8178; }

/* ---------- cosmétiques de casino (MG.Skins : <body data-cardback|felt|chip>, aperçus .skp-*) ---------- */
/* dos de cartes : DON'T BUST (.card .back), HIGHER / LOWER (.hlface.back), STOP AT THE BEST (barres non révélées) */
body[data-cardback="bitter"] #stage .card .back, body[data-cardback="bitter"] #stage .hlface.back, body[data-cardback="bitter"] #stage .scslot:not(.shown) .scbar, .skp-cardback[data-v="bitter"] {
  background: repeating-linear-gradient(45deg, #3a0f24 0 5px, #5c1638 5px 10px), #3a0f24 !important; border-color: rgba(255,63,164,.7) !important; }
body[data-cardback="blueprint"] #stage .card .back, body[data-cardback="blueprint"] #stage .hlface.back, body[data-cardback="blueprint"] #stage .scslot:not(.shown) .scbar, .skp-cardback[data-v="blueprint"] {
  background: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px) 0 0 / 8px 8px, linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px) 0 0 / 8px 8px, radial-gradient(circle at 30% 120%, transparent 60%, rgba(255,255,255,.5) 61% 63%, transparent 64%), #0d3b75 !important; border-color: rgba(255,255,255,.6) !important; }
body[data-cardback="pi"] #stage .card .back, body[data-cardback="pi"] #stage .hlface.back, body[data-cardback="pi"] #stage .scslot:not(.shown) .scbar, .skp-cardback[data-v="pi"] {
  background: repeating-conic-gradient(from 0deg at 50% 50%, #2b1d52 0 10deg, #1b1430 10deg 20deg), #1b1430 !important; border-color: rgba(201,167,255,.75) !important; }
body[data-cardback="gold"] #stage .card .back, body[data-cardback="gold"] #stage .hlface.back, body[data-cardback="gold"] #stage .scslot:not(.shown) .scbar, .skp-cardback[data-v="gold"] {
  background: linear-gradient(135deg, #3a2a05 0%, #b8860b 38%, #ffe9a0 50%, #b8860b 62%, #3a2a05 100%) !important; border-color: #ffe9a0 !important; }
body[data-cardback]:not([data-cardback="classic"]) #stage .card .back .cb-pat { opacity: .25; background: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.skp-cardback { border-radius: 8px; width: 46px; margin: 0 9px; border-width: 2px; }
.skp-cardback[data-v="classic"] { background: linear-gradient(155deg, #1d3b2f, #0f2219); border-color: rgba(255,77,109,.55); }
/* tapis : le fond de la scène dans les jeux de casino (#stage.incas, js/main.js) */
body[data-felt="emerald"] #stage.incas #bg, .skp-felt[data-v="emerald"] { background: radial-gradient(ellipse 85% 62% at 50% 47%, #127a4c 0%, #0a4a2e 48%, #03170e 100%); }
body[data-felt="crimson"] #stage.incas #bg, .skp-felt[data-v="crimson"] { background: radial-gradient(ellipse 85% 62% at 50% 47%, #6e1426 0%, #3e0a16 48%, #120307 100%); }
body[data-felt="midnight"] #stage.incas #bg, .skp-felt[data-v="midnight"] { background: repeating-radial-gradient(circle at 50% 47%, transparent 0 46px, rgba(143,190,255,.06) 46px 47px), radial-gradient(ellipse 85% 62% at 50% 47%, #18305e 0%, #0c1a38 50%, #03070f 100%); }
body[data-felt="royal"] #stage.incas #bg, .skp-felt[data-v="royal"] { background: radial-gradient(ellipse 85% 62% at 50% 47%, #4a1f86 0%, #2a1052 48%, #0c0418 100%); }
.skp-felt[data-v="classic"] { background: radial-gradient(#12251c, #050a08); }
/* jetons : boutons de mise (.chip) + icône du solde (.ico-chip) */
body[data-chip="neon"] #stage .chip, .skp-chip[data-v="neon"] { background: radial-gradient(#0b2a33 55%, #071a20); border: 3px solid #8ff6ff; box-shadow: 0 0 14px rgba(143,246,255,.55), inset 0 0 10px rgba(143,246,255,.35); color: #e8fdff; }
body[data-chip="ceramic"] #stage .chip, .skp-chip[data-v="ceramic"] { background: radial-gradient(circle, #f2ece0 0 46%, transparent 47%), repeating-conic-gradient(#c8302f 0 22.5deg, #f2ece0 22.5deg 45deg); border: 3px solid #f2ece0; color: #8a1a1a; }
body[data-chip="glass"] #stage .chip, .skp-chip[data-v="glass"] { background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.45), rgba(255,255,255,.06) 60%); border: 2px solid rgba(255,255,255,.7); box-shadow: inset 0 0 12px rgba(255,255,255,.25); color: #fff; }
body[data-chip="gold"] #stage .chip, .skp-chip[data-v="gold"] { background: radial-gradient(circle, #ffe9a0 0 40%, transparent 41%), repeating-conic-gradient(#d9a82c 0 15deg, #fff3c4 15deg 30deg); border: 3px solid #b8860b; color: #3a2a05; }
body[data-chip="neon"] .ico-chip { background: radial-gradient(circle, #e8fdff 0 30%, #0b2a33 31% 60%, #8ff6ff 61%); box-shadow: 0 0 8px rgba(143,246,255,.8); }
body[data-chip="ceramic"] .ico-chip { background: radial-gradient(circle, #f2ece0 0 40%, transparent 41%), repeating-conic-gradient(#c8302f 0 22.5deg, #f2ece0 22.5deg 45deg); box-shadow: none; }
body[data-chip="glass"] .ico-chip { background: radial-gradient(circle at 35% 30%, #fff, rgba(255,255,255,.2) 65%); box-shadow: 0 0 6px rgba(255,255,255,.6); }
.skp-chip[data-v="classic"] { background: radial-gradient(#2a3a31, #18241e); border: 3px dashed rgba(255,255,255,.35); }

/* =====================================================================================================
   UX3 (13/10) — UN SEUL SYSTÈME pour PAUSE · CONTINUE? · FIN DE PARTIE (.arcard) : carte sombre, bandeau d'accent du jeu
   (--gacc, register accent), titre du jeu discret, statut en gros, action principale d'abord, secondaires en « ghost »
   ===================================================================================================== */
.arcard { --gacc: #ffcf3d; position: relative; overflow: hidden; background: linear-gradient(180deg, #121d18 0%, #0a110d 100%) !important;
  border: 1px solid rgba(255,255,255,.1) !important; border-radius: 26px !important; box-shadow: 0 24px 80px rgba(0,0,0,.75), 0 0 0 1px rgba(0,0,0,.4) !important;
  animation: arCardIn .34s cubic-bezier(.2,.9,.3,1.15) both; }
#stage .arcard { --gacc: inherit; }
.arcard::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, transparent, var(--gacc, #ffcf3d), transparent); box-shadow: 0 0 22px var(--gacc, #ffcf3d); }
@keyframes arCardIn { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
.arcard h5 { margin: 0; font: 800 18px/1 'Barlow Semi Condensed' !important; letter-spacing: 6px !important; color: #8fa59a !important; text-transform: uppercase; }
.arcard h3 { margin: 0; font: 900 52px/1 Montserrat !important; letter-spacing: .5px; }
.arpause .arcard h3 { color: #fff; text-shadow: 0 0 26px color-mix(in srgb, var(--gacc, #ffcf3d) 45%, transparent); }
.arpause .arcard p { margin: 0; font: 600 19px/1.2 'Barlow Semi Condensed'; color: #8fa59a; }
.arpscore { display: flex; flex-direction: column; align-items: center; }
.arpscore span { font: 800 15px/1 'Barlow Semi Condensed'; letter-spacing: 4px; color: #8fa59a; }
.arpscore b { font: 900 52px/1.05 Montserrat; color: var(--gacc, #ffcf3d); font-variant-numeric: tabular-nums; }
.arpause .arcard .btn.hit { height: 112px !important; font-size: 36px; }
.arpause .arcard .btn.stand { height: 84px !important; font-size: 26px; background: rgba(255,255,255,.05); color: #cfd8d2; border: 1px solid rgba(255,255,255,.14); box-shadow: none; }
.arpause .arcard .btn.stand small { color: #8fa59a; }
.arpause .arcard .arphelp .opt { min-height: 68px; font-size: 18px; background: rgba(255,255,255,.03); }
.arendbox.arcard { gap: 12px; }
.arendbox.arcard .artk { background: rgba(255,207,61,.06); border-color: rgba(255,207,61,.22); }
.arendbox.arcard .artk small { font-size: 16px; }
.arendbox.arcard .arstats div { background: rgba(255,255,255,.035); }
.arendbox.arcard .arshop { height: 76px; font-size: 22px; }
.arcontbox.arcard { border-color: rgba(255,255,255,.1) !important; }
.arcontbox.arcard h3 { color: var(--gacc, #ffcf3d); text-shadow: 0 0 26px color-mix(in srgb, var(--gacc, #ffcf3d) 45%, transparent); }
.arcontbox.arcard .arring .fgc { stroke: var(--gacc, #ffcf3d); }
@media (prefers-reduced-motion: reduce) { .arcard { animation: none; } }

/* MODES DE JEU (js/arcade.js, MODES) : composant .mmlist (cartes) + écran .mmscreen. Variables --mm-* posées par modeSkin ; surcharge possible dans le CSS du jeu (.ar-<id> .mmcard) */
.mmscreen, .mmlist { --mm-panel: rgba(10,18,14,.86); --mm-panel-on: rgba(26,38,30,.96); --mm-ink: #f2f6ef; --mm-dim: #a6b8ad; --mm-edge: rgba(190,220,205,.22); --mm-rad: 18px; --mm-font: 'Barlow Semi Condensed', sans-serif; --mm-thumb: 150px; }
.mmscreen { position: absolute; inset: 0; z-index: 9; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 132px 28px 28px; overflow: hidden auto; overscroll-behavior: contain;
  background: var(--mm-bg, radial-gradient(ellipse at 50% 22%, color-mix(in srgb, var(--mm-acc) 16%, #06100c), #040806 72%)); animation: arIn .25s ease-out; }
.mmhead { text-align: center; }
.mmhead h5 { margin: 0; font: 800 22px/1 var(--mm-font); letter-spacing: 5px; color: var(--mm-dim); }
.mmhead h3 { margin: 8px 0 0; font: 900 54px/1 Montserrat, sans-serif; color: var(--mm-ink); text-shadow: 0 0 26px color-mix(in srgb, var(--mm-acc) 45%, transparent); }
.mmhost { width: 100%; display: flex; flex: 0 1 auto; justify-content: center; }
.mmfoot { margin: auto 0 0; font: 600 20px/1.2 var(--mm-font); color: var(--mm-dim); text-align: center; }
.mmlist { display: grid; width: 100%; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.mmcard { position: relative; display: flex; align-items: stretch; gap: 16px; min-width: 0; min-height: 88px; padding: 12px 16px; margin: 0; text-align: left; cursor: pointer; color: var(--mm-ink); font-family: var(--mm-font);
  background: var(--mm-panel); border: 2px solid var(--mm-edge); border-radius: var(--mm-rad); box-shadow: 0 6px 16px rgba(0,0,0,.45); -webkit-tap-highlight-color: transparent; transition: transform .12s, border-color .12s, background .12s; }
.mmcard:active { transform: scale(.975); }
.mmcard.on { background: var(--mm-panel-on); border-color: var(--mm-acc); box-shadow: 0 0 0 1px var(--mm-acc), 0 0 22px color-mix(in srgb, var(--mm-acc) 34%, transparent), 0 6px 16px rgba(0,0,0,.45); }
.mmcard.lock { filter: saturate(.25) brightness(.72); }
.mmth { flex: none; width: var(--mm-thumb); border-radius: calc(var(--mm-rad) - 6px); background: #0a0a08 center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.mmtx { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; flex: 1 1 0; }
.mmtx b { font: 900 30px/1.05 Montserrat, sans-serif; letter-spacing: .3px; color: var(--mm-ink); }
.mmcard.on .mmtx b { color: var(--mm-acc); }
.mmtx em { font: 600 23px/1.15 var(--mm-font); font-style: normal; color: var(--mm-ink); opacity: .9; }
.mmtex { display: block; font-size: 21px; line-height: 1.35; color: var(--mm-acc); white-space: nowrap; overflow: hidden; }
.mmtx small { font: 700 19px/1.15 var(--mm-font); color: var(--mm-dim); }
.mm-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mm-compact .mmcard { min-height: 86px; gap: 10px; padding: 8px 10px; border-radius: 14px; }
.mm-compact .mmth { width: 72px; border-radius: 9px; }
.mm-compact .mmtx b { font-size: 22px; }
.mm-compact .mmtx em { font-size: 18px; line-height: 1.08; }
.mm-compact .mmtx small { font-size: 16px; }
.mmnew { padding: 10px 14px; border-radius: 12px; text-align: center; font: 800 24px/1.1 'Barlow Semi Condensed', sans-serif; color: #ffe08a; background: rgba(255,207,61,.1); border: 1.5px solid rgba(255,207,61,.45); }
body:has(.mmscreen) .sigcorner { display: none; } /* SIGMA reprend son coin dès que la partie démarre */
#stage.land .arendbox .armodes { justify-self: end; width: calc(50% - 6px); }
#stage.land .arendbox .armodes + .arshop { justify-self: start; width: calc(50% - 6px); }
#stage.land .arendbox .mmnew { grid-row: 6; font-size: 20px; padding: 6px 10px; }
#stage.land .mmscreen { padding: 92px 40px 16px; gap: 12px; }
#stage.land .mmhead { display: flex; align-items: baseline; gap: 18px; }
#stage.land .mmhead h3 { margin: 0; font-size: 38px; }
#stage.land .mmhost { max-width: 1180px; }
#stage.land .mmlist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#stage.land .mmfoot { font-size: 18px; }
/* écran de choix plein écran (shell) : de grandes cartes qui se partagent la hauteur, vignette pleine hauteur, une phrase qui dit quoi faire */
.mmscreen { padding: 124px 26px 24px; gap: 16px; }
.mmscreen .mmhead h3 { font-size: 46px; }
.mmscreen .mmhost { flex: 1 1 0; min-height: 0; }
.mmscreen .mmlist { flex: 1; height: 100%; grid-auto-rows: minmax(0, 1fr); gap: 16px; }
.mmscreen .mmcard { padding: 0; gap: 0; min-height: 0; overflow: hidden; border-radius: calc(var(--mm-rad) + 4px); }
.mmscreen .mmth { width: 46%; border-radius: 0; box-shadow: none; background-position: center; transition: transform .25s; }
.mmscreen .mmcard:active .mmth { transform: scale(1.04); }
.mmscreen .mmcard.on .mmth { box-shadow: inset -3px 0 0 var(--mm-acc); }
.mmscreen .mmtx { padding: 14px 22px 14px 20px; gap: 10px; justify-content: center; }
.mmscreen .mmtx b { font-size: 38px; }
.mmscreen .mmtx em { font-size: 27px; line-height: 1.18; opacity: .95; }
.mmscreen .mmtx small { font-size: 21px; }
.mmscreen .mmtx::after { content: 'PLAY ▶'; align-self: flex-start; margin-top: 2px; padding: 6px 16px; border-radius: 999px; font: 900 21px/1 Montserrat, sans-serif; letter-spacing: 1.5px; color: #10140f; background: var(--mm-acc); }
.mmscreen .mmcard.lock .mmtx::after { content: none; }
.mmscreen .mmfoot { font-size: 21px; margin-top: 0; }
#stage.land .mmscreen { padding: 92px 36px 14px; }
#stage.land .mmscreen .mmlist { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; grid-auto-rows: auto; }
#stage.land .mmscreen .mmcard { flex-direction: column; }
#stage.land .mmscreen .mmth { width: 100%; flex: 1 1 0; min-height: 0; }
#stage.land .mmscreen .mmtx { flex: none; padding: 10px 16px 12px; gap: 6px; }
#stage.land .mmscreen .mmtx b { font-size: 30px; }
#stage.land .mmscreen .mmtx em { font-size: 20px; }
/* une notification déjà à l'écran (LEVEL 2…) quand le choix de mode s'ouvre descend en bas : elle ne masque pas le titre */
body:has(.mmscreen) #toasts { top: auto; bottom: 92px; }
#stage.land .mmscreen .mmcard:not(:has(.mmth)) .mmtx { flex: 1 1 auto; }

/* =====================================================================================================
   FIN DE NIVEAU COMMUNE (api.levelClear, 04/11) : même carte que la fin de partie, en plus court. Portrait : une colonne ;
   paysage (#stage.land) : deux colonnes. Échelle de scène ≈ 0,5 en portrait et ≈ 0,62 en paysage : cibles ≥ 88 / 72 px de scène = 44 px à l'écran.
   z-index sous CONTINUE? / la fin de partie (30) et sous la PAUSE (.modal, 60). Marges système : celles de la scène (fit de main.js, fitLand).
   ===================================================================================================== */
.arlc { position: absolute; inset: 0; z-index: 28; display: flex; align-items: center; justify-content: center; background: rgba(3,7,5,.62); animation: arIn .22s ease-out; touch-action: manipulation; }
.arlc.hidden { display: none; }
.arlcbox { box-sizing: border-box; width: 660px; max-height: calc(100% - 130px); margin-top: 90px; overflow: hidden auto; overscroll-behavior: contain; padding: 26px 26px 14px; display: flex; flex-direction: column; gap: 12px; text-align: center; }
.arlcbox > * { flex: none; min-width: 0; }
.arlchead h3 { margin-top: 8px; color: #8ff6ff; text-shadow: 0 0 24px rgba(143,246,255,.45); font-size: 50px !important; }
.arlctk { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 10px; border-radius: 14px; background: rgba(255,207,61,.06); border: 1px solid rgba(255,207,61,.22); }
.arlctk b { font: 900 42px/1.05 Montserrat; color: #ffcf3d; font-variant-numeric: tabular-nums; }
.arlctk small { font: 700 17px/1.15 'Barlow Semi Condensed'; letter-spacing: .5px; color: #b9c2a6; }
.arlcbox .arstats div { background: rgba(255,255,255,.035); padding: 6px 8px; }
.arlcbox .arstats span { font-size: 13px; }
.arlcbox .arstats b { font-size: 21px; }
.arlcx:empty { display: none; }
.arlcx { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.arlcbtns { display: flex; flex-direction: column; gap: 8px; }
.arlcacts { display: flex; gap: 10px; }
.arlcacts:empty { display: none; }
.arlcact { flex: 1; min-width: 0; height: 88px !important; font-size: 22px !important; }
.arlcact small { font-size: 14px; }
.arlcnext { position: relative; overflow: hidden; height: 124px !important; font-size: 44px !important; }
.arlcnext > span { position: relative; font: inherit; }
.arlcnext > small { position: relative; font-size: 17px; }
.arlcnext > i { position: absolute; left: 0; right: 0; top: 0; bottom: 0; background: rgba(255,255,255,.16); transform-origin: 0 50%; pointer-events: none; }
.arlcquit { align-self: center; min-height: 88px; min-width: 340px; padding: 0 22px; background: none; border: 0; color: #8fa59a; font: 700 21px/1.1 'Barlow Semi Condensed'; letter-spacing: 1px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.arlcquit:active { color: #e9eee8; }
/* bilan de jeu dans .arlcx */
.arlcmel { display: flex; align-items: flex-end; justify-content: center; gap: 5px; height: 82px; padding: 0 8px; border-bottom: 2px solid rgba(143,246,255,.25); }
.arlcmel b { width: 12px; border-radius: 3px; background: #8ff6ff; box-shadow: 0 0 12px rgba(143,246,255,.6); }
.arlcmel .none { color: #7d8f86; font-size: 18px; }
.arlcnote { margin: 0; font: 600 18px/1.2 'Barlow Semi Condensed'; color: #9fb3a8; }
.arlcf { font-size: 19px; color: #ffcf3d; max-width: 100%; overflow: hidden; }

/* paysage : bilan à gauche, actions à droite ; la barre du haut mange ~70 px de scène */
#stage.land .arlcbox { width: 1160px; max-height: 620px; margin-top: 70px; padding: 20px 28px 10px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 26px; row-gap: 8px; align-items: start; }
#stage.land .arlchead { grid-column: 1; grid-row: 1; }
#stage.land .arlchead h3 { font-size: 44px !important; }
#stage.land .arlctk { grid-column: 1; grid-row: 2; }
#stage.land .arlcx { grid-column: 1; grid-row: 3; }
#stage.land .arlcbox .arstats { grid-column: 2; grid-row: 1 / span 2; }
#stage.land .arlcbtns { grid-column: 2; grid-row: 3; align-self: end; }
#stage.land .arlcnext { height: 112px !important; }
#stage.land .arlcact { height: 76px !important; }
#stage.land .arlcquit { min-height: 72px; }
#stage.land .arlcmel { height: 66px; }
