/* HIGHER / LOWER — Hi-Lo : plateau (#hlBoard, construit par js/hilo.js : carte précédente, ta carte, cagnotte,
   comptage des 13 rangs), HUD, mise / DEAL, LOWER · SAME · HIGHER · CASH OUT.
   Plateau : scène x 180..540, y 318..590 (entre le HUD gauche et le panneau % à droite, comme SWITCH?). */
#game.hl .bjOnly, #game.hl .msOnly, #game.hl .crOnly, #game.hl .rrOnly, #game.hl .bsOnly, #game.hl .plOnly, #game.hl .swOnly,
#game.hl .pnOnly, #game.hl .scOnly { display: none !important; }
#game:not(.hl) .hlOnly { display: none !important; }

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

/* ---------- panneau % à droite ---------- */
#game.hl #hudR { left: 540px; top: 326px; width: 172px; z-index: 2; }
#game.hl .pct { font-size: 44px; }
#game.hl .pctlab { font-size: 24px; line-height: 1.05; }
#game.hl .stat2 { margin-top: 8px; font-size: 24px; line-height: 1.12; }
#game.hl .stat2 b { font-size: 24px; }
#game.hl .mathsays { margin-top: 6px; font-size: 22px; }

/* ---------- plateau ---------- */
#hlBoard { position: absolute; left: 180px; top: 318px; width: 360px; height: 272px; }
.hlprev, .hlcur { position: absolute; perspective: 600px; }
.hlprev { left: 6px; top: 50px; width: 70px; height: 100px; opacity: .55; filter: saturate(.6); }
.hlcur { left: 112px; top: 4px; width: 112px; height: 158px; }
.hlcur.flip .hlface { animation: hlFlip .42s cubic-bezier(.2,.9,.3,1.15); }
@keyframes hlFlip { 0% { transform: rotateY(90deg) scale(.9); } 100% { transform: none; } }
.hlface { position: absolute; inset: 0; border-radius: 10px; overflow: hidden; }
.hlface.back { background: linear-gradient(160deg, #1d3328, #0c1a13 70%); border: 2px solid rgba(92,240,138,.55); box-shadow: 0 0 16px rgba(92,240,138,.2), inset 0 0 0 6px rgba(5,10,8,.55), inset 0 0 0 7px rgba(92,240,138,.25);
  display: flex; align-items: center; justify-content: center; }
.hlface.back span { font: 900 54px/1 Montserrat; color: #5fe0c4; text-shadow: 0 0 14px rgba(95,224,196,.8); }
.hlprev .hlface.back span { font-size: 34px; }
.hlface.front { background: linear-gradient(#1a271f, #0f1813); border: 2px solid #8ff6ff; box-shadow: 0 0 22px rgba(143,246,255,.35), inset 0 0 18px rgba(0,0,0,.45); color: #eef2ec; }
.hlface.front.red { color: #ff5a6e; border-color: #ff5a6e; box-shadow: 0 0 22px rgba(255,90,110,.35), inset 0 0 18px rgba(0,0,0,.45); }
.hlface .i1 { position: absolute; left: 8px; top: 6px; font: 800 26px/1 'Barlow Semi Condensed'; text-shadow: 0 0 8px currentColor; }
.hlface .i2 { position: absolute; left: 9px; top: 34px; width: 18px; height: 18px; fill: currentColor; }
.hlface .rk { position: absolute; left: 0; right: 0; top: 50%; margin-top: -34px; text-align: center; font: 900 64px/1 Montserrat; text-shadow: 0 0 18px currentColor; }
.hlface .pip { position: absolute; right: 9px; bottom: 9px; width: 30px; height: 30px; fill: currentColor; filter: drop-shadow(0 0 6px currentColor); }
.hlprev .hlface .i1 { font-size: 18px; left: 5px; top: 4px; }
.hlprev .hlface .i2 { left: 6px; top: 24px; width: 12px; height: 12px; }
.hlprev .hlface .rk { font-size: 40px; margin-top: -21px; }
.hlprev .hlface .pip { width: 18px; height: 18px; right: 6px; bottom: 6px; }
/* cagnotte */
.hlpot { position: absolute; left: 238px; top: 26px; width: 122px; text-align: center; }
.hlpot span { display: block; font: 800 22px/1 'Barlow Semi Condensed'; letter-spacing: 3px; color: #9fb2a6; }
.hlpot b { display: block; margin-top: 6px; font: 900 36px/1 Montserrat; color: var(--gold); text-shadow: 0 0 14px rgba(255,207,61,.45); }
#hlBoard.lost .hlpot b { color: var(--red); text-shadow: 0 0 14px rgba(255,61,94,.5); }
.hlpot small { display: block; margin-top: 8px; font: 800 22px/1 'Barlow Semi Condensed'; color: #cfe9da; }
/* comptage : 13 colonnes (A..K), 4 cases chacune ; zones par rapport à ta carte */
.hlchart { position: absolute; left: 0; top: 172px; width: 360px; height: 100px; display: grid; grid-template-columns: repeat(13, 1fr); gap: 2px; }
.hlcol { display: flex; flex-direction: column-reverse; align-items: center; gap: 3px; }
.hlcol i { width: 20px; height: 12px; border-radius: 3px; border: 1px solid rgba(150,220,190,.25); background: transparent; transition: background .25s, box-shadow .25s; }
.hlcol i.on { background: #6f8a7c; border-color: transparent; }
.hlcol b { order: -1; margin-top: 2px; font: 800 20px/22px 'Barlow Semi Condensed'; color: #9fb2a6; }
.hlcol.lo i.on { background: #ff5a6e; box-shadow: 0 0 6px rgba(255,90,110,.6); }
.hlcol.hi i.on { background: #5cf08a; box-shadow: 0 0 6px rgba(92,240,138,.6); }
.hlcol.eq i.on { background: #ffcf3d; box-shadow: 0 0 6px rgba(255,207,61,.7); }
.hlcol.lo b { color: #ff8b9a; } .hlcol.hi b { color: #9ff2b8; } .hlcol.eq b { color: var(--gold); }

/* ---------- actions : BET · DEAL / LOWER · SAME · HIGHER · CASH OUT ---------- */
#hlActions { position: absolute; left: 36px; right: 36px; top: 1066px; height: 150px; z-index: 6; }
#hlBet.locked .betbox { opacity: .45; pointer-events: none; }
#hlBet #bHlDeal small { font-size: 14px; }
#hlPlay { gap: 10px; }
#hlPlay .btn { font-size: 30px; padding: 0 4px; }
#hlPlay .btn small { font-size: 16px; text-transform: none; letter-spacing: .3px; margin-top: 8px; }
#hlPlay #bHlHi { background: linear-gradient(#7cf5a2, #3fcf6f); color: #0e1a12; --glow: rgba(92,240,138,.35); }
#hlPlay #bHlSame { flex: .82; background: linear-gradient(#c9a7ff, #8e63e8); --glow: rgba(160,120,255,.38); }
#hlPlay #bHlCash { flex: 1.06; font-size: 28px; }
#hlEnd .btn { font-size: 30px; }
