/* SWITCH? — Monty Hall : portes (#swBoard, construites par js/switch.js), HUD, réglages BET / DOORS / MODE, STAY / SWITCH
   Portes : scène x 180..540, y 318..590 (entre le HUD gauche et le panneau % à droite, comme le plateau de DROP IT). */
#game.sw .bjOnly, #game.sw .msOnly, #game.sw .crOnly, #game.sw .rrOnly, #game.sw .bsOnly, #game.sw .plOnly { display: none !important; }
#game:not(.sw) .swOnly { display: none !important; }

/* ---------- HUD gauche ---------- */
#swHud { position: absolute; left: 28px; top: 322px; width: 140px; display: flex; flex-direction: column; align-items: center; z-index: 2; }
#swHud .lab { margin: 6px 0 4px; font-size: 24px; }
#swHud .lab:first-child { margin-top: 0; }
#swHud .seg { padding: 4px 5px; }
#swHud .seg svg { width: 16px; height: 29px; }
#swRounds { grid-template-columns: repeat(4, 20px); gap: 5px; }
#swRounds i { width: 20px; height: 20px; font-size: 13px; line-height: 20px; }

/* ---------- panneau % à droite (même #hudR que les autres jeux) ---------- */
#game.sw #hudR { left: 540px; top: 326px; width: 172px; z-index: 2; }
#game.sw .pct { font-size: 44px; }
#game.sw .pctlab { font-size: 24px; line-height: 1.05; }
#game.sw .stat2 { margin-top: 8px; font-size: 24px; line-height: 1.12; }
#game.sw .stat2 b { font-size: 24px; }
#game.sw .mathsays { margin-top: 6px; font-size: 24px; }

/* ---------- portes ---------- */
#swBoard { position: absolute; left: 180px; top: 318px; width: 360px; height: 272px; }
#swBoard.pickable .door { cursor: pointer; }
#swBoard.pickable .door:active .panel { filter: brightness(1.35); }
.door { position: absolute; }
.door .dtag { position: absolute; left: -6px; right: -6px; top: -24px; height: 20px; text-align: center; font: 800 15px/20px 'Barlow Semi Condensed', sans-serif; color: #cfe9da; letter-spacing: .3px; text-shadow: 0 0 6px rgba(0,0,0,.9); transition: color .25s; }
.door.n10 .dtag { font-size: 13px; top: -21px; }
.door .dtag.hi { color: var(--gold); text-shadow: 0 0 10px rgba(255,207,61,.6); }
.door .dtag.zero { color: #56635d; }
.door.you .dtag { color: var(--cyan); text-shadow: 0 0 10px rgba(143,246,255,.6); }
/* l'intérieur (visible quand la porte est ouverte) */
.door .inside { position: absolute; inset: 0; border-radius: 8px 8px 3px 3px; background: radial-gradient(ellipse at 50% 70%, #10201a, #030605 75%); border: 2px solid #24382d; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.door .inside i { font-style: normal; display: none; }
.door.open .inside .empty { display: block; font: 800 30px/1 'Barlow Semi Condensed'; color: #3a4d43; }
.door.n10.open .inside .empty { font-size: 22px; }
.door.open.prize .inside .empty { display: none; }
.door.open.prize .inside .coin { display: block; width: 72%; max-width: 70px; animation: swCoin .5s cubic-bezier(.2,1.6,.4,1); filter: drop-shadow(0 0 12px rgba(255,207,61,.75)); }
.door.open.prize .inside .coin svg { width: 100%; height: auto; display: block; }
.door.open.prize .inside { border-color: rgba(255,207,61,.7); box-shadow: inset 0 0 22px rgba(255,207,61,.25); }
@keyframes swCoin { 0% { transform: scale(.2) translateY(20px); opacity: 0; } 100% { transform: none; opacity: 1; } }
/* le battant : néon vert, numéro, poignée ; il pivote sur sa charnière gauche */
.door .panel { position: absolute; inset: 0; border-radius: 8px 8px 3px 3px; background: linear-gradient(160deg, #1b3326, #0c1a13 70%); border: 2px solid rgba(92,240,138,.6); box-shadow: 0 0 14px rgba(92,240,138,.18), inset 0 0 0 5px rgba(5,10,8,.55), inset 0 0 0 6px rgba(92,240,138,.22);
  display: flex; align-items: center; justify-content: center; transform-origin: 0 50%; transition: transform .5s cubic-bezier(.3,.8,.3,1), opacity .5s, border-color .25s, box-shadow .25s; backface-visibility: hidden; }
.door .panel b { font: 900 40px/1 Montserrat; color: #9ff2b8; text-shadow: 0 0 12px rgba(92,240,138,.55); }
.door.n5 .panel b, .door.n10 .panel b { font-size: 24px; }
.door .knob { position: absolute; right: 9%; top: 52%; width: 9px; height: 9px; border-radius: 50%; background: #ffcf3d; box-shadow: 0 0 6px rgba(255,207,61,.8); }
.door.n10 .knob { width: 6px; height: 6px; }
.door.open .panel { transform: perspective(520px) rotateY(-80deg); opacity: .55; }
.door.open .panel b, .door.open .knob { opacity: 0; }
.door .dyou { position: absolute; left: 0; right: 0; bottom: -22px; text-align: center; font: 800 13px/18px 'Barlow Semi Condensed'; letter-spacing: 1.5px; color: var(--cyan); opacity: 0; }
.door.n10 .dyou { bottom: 3px; font-size: 10px; line-height: 12px; z-index: 2; text-shadow: 0 0 4px #000; }
.door.you .dyou { opacity: 1; }
.door.you .panel { border-color: var(--cyan); box-shadow: 0 0 22px rgba(143,246,255,.45), inset 0 0 0 5px rgba(5,10,8,.55), inset 0 0 0 6px rgba(143,246,255,.35); }
.door.you .panel b { color: #e9feff; text-shadow: 0 0 14px rgba(143,246,255,.8); }
.door.alt .panel { border-color: var(--gold); border-style: dashed; box-shadow: 0 0 22px rgba(255,207,61,.3); }
.door.alt .panel b { color: #ffe27a; }
.door.final { outline: 3px solid #fff; outline-offset: 3px; border-radius: 9px; }
.door.won .inside { box-shadow: inset 0 0 26px rgba(92,240,138,.45), 0 0 26px rgba(92,240,138,.4); border-color: #5cf08a; }
.door.lost .inside { box-shadow: inset 0 0 26px rgba(255,61,94,.4), 0 0 22px rgba(255,61,94,.35); border-color: var(--red); }
.door.open .panel, .door.open.you .panel, .door.open.alt .panel { box-shadow: none; }

/* ---------- réglages : BET · DOORS · MODE · GO / STAY · SWITCH ---------- */
#swActions { position: absolute; left: 36px; right: 36px; top: 1066px; height: 150px; z-index: 6; }
#swBet { gap: 9px; }
#swBet .betbox { flex: 1; padding: 0 5px; }
#swBet .chip { width: 46px; height: 46px; font-size: 26px; }
#swBet .betval b { font-size: 30px; }
#swBet .betval span { font-size: 13px; }
#swBet .betval small { display: block; font: 800 14px 'Barlow Semi Condensed'; color: #9ff2b8; letter-spacing: .5px; }
#swBet .betbox.doors .betval b { color: var(--cyan); text-shadow: 0 0 14px rgba(143,246,255,.4); }
#swBet .btn.mode { flex: .62; font-size: 26px; color: #141414; }
#swBet .btn.mode small { font-size: 13px; letter-spacing: 1px; }
#swBet .btn.mode.hall { background: linear-gradient(#7cf5a2, #3fcf6f); --glow: rgba(92,240,138,.35); }
#swBet .btn.mode.fall { background: linear-gradient(#c9a7ff, #8e63e8); color: #fff; --glow: rgba(160,120,255,.38); }
#swBet #bSwGo { flex: .62; font-size: 30px; }
#swBet #bSwGo small { font-size: 13px; }
#swBet.locked .betbox { opacity: .45; pointer-events: none; }
#swPlay .btn { font-size: 40px; }
#swPlay .btn small { font-size: 16px; text-transform: none; }
#swPlay #bSwSwitch { background: linear-gradient(#ffd84a, #e8b51e); color: #141414; --glow: rgba(250,208,63,.32); }
#swEnd .btn { font-size: 30px; }

/* ---------- hub : 8 cartes (THE DAILY + 7 jeux) + COMING SOON (17 idées) ---------- */
.glist { top: 318px; gap: 5px; }
.gcard { height: 62px; }
.gico { width: 52px; height: 52px; }
.gico svg { width: 42px; height: 42px; }
.gico.mine svg { width: 46px; height: 46px; }
.gico.plinko svg, .gico.dly svg { width: 42px; height: 42px; }
.gico.shells .shell { width: 11px; height: 32px; }
.gtxt b { font-size: 28px; }
.gtxt i { margin-top: 5px; font-size: 15px; padding: 3px 6px; }
.gplay { padding: 10px 13px; font-size: 20px; }
.gico.swdoors svg { width: 46px; height: 46px; }
.soonlab { top: 856px; }
.soongrid { top: 882px; }
.hubreset { top: 1184px; }
.hubcap { top: 1214px; }
