/* CLASSEMENTS D'ARCADE (js/board.js, lot 5). Tailles en px de scène, valeurs de css/tokens.css. Préfixe bd : aucune collision avec .board de THE DAILY. */
.modal-box.bdbox { width: 660px; max-height: 1200px; padding: var(--mg-s-5) var(--mg-s-4); gap: var(--mg-s-3); text-align: left; display: flex; flex-direction: column; align-items: stretch; overflow: hidden; }
.bdhead { display: flex; flex-direction: column; gap: var(--mg-s-2); min-width: 0; flex: none; }
.modal-box .bdhead h3 { margin: 0; padding-right: 70px; text-align: left; font: var(--mg-w-title) var(--mg-t-l)/1.1 var(--mg-f-display); color: var(--mg-c-gold-hi); }
.bdmain { display: flex; flex-direction: column; gap: var(--mg-s-2); min-width: 0; min-height: 0; flex: 1; }

/* onglets */
.bdtabs { display: flex; gap: var(--mg-s-1); }
.bdtab { flex: 1; min-width: 0; min-height: var(--mg-tap-min); padding: 0 var(--mg-s-1); border: 1px solid var(--mg-c-line); border-radius: var(--mg-r-m); background: rgba(255, 255, 255, .03); color: var(--mg-c-dim); font: var(--mg-w-strong) var(--mg-t-s)/1 var(--mg-f-display); cursor: pointer; transition: transform var(--mg-d-tap) var(--mg-ease); }
.bdtab.on { background: var(--mg-btn-gold); color: var(--mg-btn-on-gold); border-color: transparent; }
.bdtab:active, .bdchip:active { transform: var(--mg-btn-press); }

/* jeu, mode : rangées qui défilent au doigt */
.bdchips { display: flex; gap: var(--mg-s-1); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; flex: none; }
.bdchips::-webkit-scrollbar { display: none; }
.bdchip { flex: none; min-height: 64px; padding: 0 var(--mg-s-3); border: 1px solid var(--mg-c-line); border-radius: var(--mg-r-xl); background: transparent; color: var(--mg-c-text2); font: var(--mg-w-label) var(--mg-t-s)/1 var(--mg-f-body); white-space: nowrap; cursor: pointer; }
.bdchip.on { border-color: var(--mg-c-gold-hi); color: var(--mg-c-gold-hi); }
.bdname { align-self: flex-start; min-height: 56px; padding: 0 var(--mg-s-2); border: 0; background: none; color: var(--mg-c-dim); font: var(--mg-w-label) var(--mg-t-xs)/1 var(--mg-f-body); letter-spacing: var(--mg-track-label); cursor: pointer; }

/* liste */
.modal-box p.bdmsg { margin: 0; color: var(--mg-c-text2); font: var(--mg-w-body) var(--mg-t-s)/1.3 var(--mg-f-body); }
.modal-box p.bdttl b { color: var(--mg-c-text); font-weight: var(--mg-w-strong); }
.bdlist { flex: 1; min-height: 200px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 2px; }
.bdrow { display: flex; align-items: center; gap: var(--mg-s-2); flex: none; min-height: 52px; padding: 0 var(--mg-s-2); border-radius: var(--mg-r-s); background: rgba(255, 255, 255, .03); color: var(--mg-c-text); font: var(--mg-w-body) var(--mg-t-s)/1 var(--mg-f-body); }
.bdrow.me { background: rgba(255, 216, 74, .14); box-shadow: inset 0 0 0 1px var(--mg-c-gold-hi); }
.bdrk { flex: none; min-width: 74px; color: var(--mg-c-dim); font-weight: var(--mg-w-label); }
.bdnm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bdlv { flex: none; color: var(--mg-c-faint); font-size: var(--mg-t-xs); }
.bdrow b { flex: none; color: var(--mg-c-gold-hi); font-weight: var(--mg-w-strong); }
.bdsep { flex: none; text-align: center; color: var(--mg-c-faint); line-height: 1; }
.modal-box p.bdnote { margin: 0; flex: none; color: var(--mg-c-faint); font: var(--mg-w-body) var(--mg-t-xs)/1.25 var(--mg-f-body); }
.btn.bdplay { flex: none; width: 100%; height: var(--mg-tap-min); font-size: var(--mg-t-l); }

/* écran de fin de partie */
.arscore .bdend { display: block; width: 100%; height: 72px; margin-top: var(--mg-s-2); padding: 0 var(--mg-s-2); border: 1px solid var(--mg-c-line); border-radius: var(--mg-r-l); background: rgba(255, 255, 255, .04); color: var(--mg-c-gold-hi); font: var(--mg-w-strong) var(--mg-t-s)/1.1 var(--mg-f-display); cursor: pointer; }
.arscore .bdend small { display: block; margin-top: 2px; color: var(--mg-c-text2); font: var(--mg-w-body) var(--mg-t-xs)/1.1 var(--mg-f-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arscore .bdend.bdhot { border-color: var(--mg-c-gold-hi); }

/* paysage : la tête à gauche, la liste à droite */
#stage.land .modal-box.bdbox { width: 1180px; max-height: 680px; padding: var(--mg-s-4); flex-direction: row; gap: var(--mg-s-4); }
#stage.land .bdbox > .mx { position: absolute; top: 6px; right: 6px; margin: 0; }
#stage.land .bdhead { flex: none; width: 440px; }
#stage.land .bdmain { padding-right: 70px; }
#stage.land .bdhead .bdchips { flex-wrap: wrap; overflow: visible; }
#stage.land .bdchip { min-height: 56px; }
#stage.land .bdtab { min-height: 72px; }
#stage.land .bdlist { min-height: 0; }
#stage.land .arscore .bdend { height: 60px; margin-top: var(--mg-s-1); }
