/* STOP AT THE BEST — le problème du secrétaire : plateau (#scBoard, construit par js/secretary.js : 10 emplacements,
   barre = rang parmi les cartes vues, ★ = record, ligne des 37 % après la 3e carte), HUD, mise / START, KEEP · NEXT.
   Plateau : scène x 180..540, y 318..590. */
#game.sc .bjOnly, #game.sc .msOnly, #game.sc .crOnly, #game.sc .rrOnly, #game.sc .bsOnly, #game.sc .plOnly, #game.sc .swOnly,
#game.sc .hlOnly, #game.sc .pnOnly { display: none !important; }
#game:not(.sc) .scOnly { display: none !important; }

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

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

/* ---------- plateau ---------- */
#scBoard { position: absolute; left: 180px; top: 318px; width: 360px; height: 272px; }
.scslots { position: absolute; left: 0; top: 22px; width: 360px; height: 226px; display: flex; gap: 4px; }
.scslot { position: relative; flex: 1; height: 226px; }
.scbar { position: absolute; left: 1px; right: 1px; bottom: 28px; height: 58px; border-radius: 6px; display: flex; justify-content: center;
  background: linear-gradient(160deg, #1d3328, #0c1a13 70%); border: 2px solid rgba(92,240,138,.45); box-shadow: inset 0 0 0 3px rgba(5,10,8,.55);
  transition: height .35s cubic-bezier(.2,.9,.3,1.1), background .25s, border-color .25s, box-shadow .25s, opacity .25s; }
.scbar b { margin-top: 4px; font: 800 20px/1 'Barlow Semi Condensed'; color: #5fe0c4; text-shadow: 0 0 8px rgba(95,224,196,.7); white-space: nowrap; }
.scno { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font: 800 22px/24px 'Barlow Semi Condensed'; font-style: normal; color: #6f8178; }
.scslot.shown .scbar { background: linear-gradient(#8fa89a, #4f6458); border-color: #9fc9b4; box-shadow: none; }
.scslot.shown .scbar b { color: #0e1a12; text-shadow: none; }
.scslot.rec .scbar { background: linear-gradient(#ffe27a, #e8a316); border-color: #ffcf3d; box-shadow: 0 0 16px rgba(255,207,61,.55); }
.scslot.cur .scbar { outline: 3px solid #fff; outline-offset: 2px; }
.scslot.cur .scno { color: #fff; }
.scslot.passed .scbar { opacity: .45; }
.scslot.passed.rec .scbar { background: linear-gradient(#c9b26a, #8a6d22); box-shadow: none; }
/* fin de manche : valeurs vraies */
.scslot.shown:not(.rec):not(.cur) .scbar b { font-size: 17px; }
#scBoard.final .scbar b { font-size: 16px; }
.scslot.max .scbar { background: linear-gradient(#ffe27a, #e8a316); border-color: #ffcf3d; box-shadow: 0 0 18px rgba(255,207,61,.7); opacity: 1; }
.scslot.kept .scbar { outline: 4px solid #8ff6ff; outline-offset: 2px; opacity: 1; }
.scslot.kept:not(.max) .scbar { outline-color: var(--red); }
/* la ligne des 37 % : après la 3e carte (⌊10/e⌋ = 3) */
.scline { position: absolute; left: 106px; top: 0; width: 0; height: 250px; border-left: 2px dashed rgba(143,246,255,.7); }
.scline span { position: absolute; left: 6px; top: -2px; font: 800 20px/1 'Barlow Semi Condensed'; color: var(--cyan); white-space: nowrap; }
.scskip { position: absolute; left: 0; width: 104px; top: 250px; text-align: center; font: 800 20px/22px 'Barlow Semi Condensed'; color: #8ff6ff; opacity: .8; white-space: nowrap; }

/* ---------- actions : BET · START / KEEP · NEXT ---------- */
#scActions { position: absolute; left: 36px; right: 36px; top: 1066px; height: 150px; z-index: 6; }
#scBet.locked .betbox { opacity: .45; pointer-events: none; }
#scBet #bScGo small { font-size: 14px; }
#scPlay .btn { font-size: 42px; }
#scPlay .btn small { font-size: 17px; text-transform: none; }
#scPlay #bScKeep { background: linear-gradient(#ffd84a, #e8b51e); color: #141414; --glow: rgba(250,208,63,.32); }
#scEnd .btn { font-size: 30px; }
