/* =====================================================================
   Menu de démarrage (scenes/title.js) : un menu principal à cinq choix,
   puis un écran par choix (parties, nouvelle partie, classement, réglages).
   Une seule police : la police pixel (pas de serif ici).
   ===================================================================== */

.sm.title-screen {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: clamp(10px, 3vh, 28px); padding: clamp(14px, 5vh, 56px) 1rem 1.5rem; overflow-y: auto;
}
.sm, .sm :is(p, span, b, i, small, em, h2, h3, h4, label, button, input, kbd, .tl-sub, .tl-msg) {
  font-family: var(--pixel); font-style: normal; word-spacing: 0.15em;
}

/* --- le logo : grand sur le menu principal, plus discret dans les écrans */
.sm-logo { align-self: center; }
.sm-logo h1 { font-size: clamp(2.4rem, 8vw, 5.2rem); letter-spacing: 0.12em; }
.sm:not(.sm-main) .sm-logo h1 { font-size: clamp(1.4rem, 3.4vw, 2.2rem); flex-direction: row; gap: 0.5em; }
.sm:not(.sm-main) .sm-logo h1 em { letter-spacing: 0.12em; }

.sm .tl-acc-st { font-family: var(--pixel); }

/* --- menu principal */
.sm-menu { display: flex; flex-direction: column; gap: 12px; width: min(380px, 88vw); margin-top: clamp(0px, 4vh, 40px); }
.sm-item {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 12px 20px; border: none; border-radius: 10px; cursor: pointer; text-align: left;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--ink);
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
  box-shadow: 0 0 0 3px var(--leather), 0 5px 0 3px var(--leather-d), 0 10px 22px rgba(0, 0, 0, 0.35);
  transition: transform 0.08s, background 0.12s;
}
.sm-item .sm-ico { width: 1.4em; text-align: center; color: var(--leather); }
.sm-item.primary { background: linear-gradient(180deg, #ffe07c, var(--gold)); }
/* v10.25 : multijoueur sous cadenas (version complète, core/paywall.js) */
.sm-item.locked { color: color-mix(in srgb, var(--ink) 62%, transparent); }
.sm-item.locked .sm-ico { filter: saturate(0.6); }
.sm-item:is(:hover, :focus-visible, :focus):not([disabled]) {
  outline: none; transform: translateX(6px);
  background: linear-gradient(180deg, #fff3c8, #f2c860);
}
.sm-item:is(:hover, :focus):not([disabled])::before {
  content: '▶'; position: absolute; left: -28px; color: var(--gold);
  text-shadow: 0 2px 0 var(--leather-d); animation: sm-nudge 0.7s ease-in-out infinite alternate;
}
.sm-item[disabled] { cursor: default; opacity: 0.5; filter: grayscale(0.6); }
.sm-item:active:not([disabled]) { transform: translate(6px, 3px); box-shadow: 0 0 0 3px var(--leather), 0 2px 0 3px var(--leather-d); }
@keyframes sm-nudge { to { transform: translateX(5px); } }

/* --- écrans */
.sm-panel {
  /* tous les écrans du menu ont la même taille : seul leur contenu défile */
  width: min(920px, 95vw); height: min(600px, calc(100vh - 150px)); overflow: hidden;
  display: flex; flex-direction: column; gap: 12px; padding: 14px 18px 18px; border-radius: 12px;
  background: linear-gradient(180deg, var(--paper), var(--paper-2)); color: var(--ink);
  box-shadow: var(--frame);
}
.sm-head { flex: none; display: flex; align-items: center; gap: 14px;
  margin: -14px -18px 0; padding: 12px 18px 10px; border-bottom: 2px dashed rgba(120, 85, 50, 0.3); }
.sm-head h2 { margin: 0; font-size: 1.25em; font-weight: normal; color: var(--ink); }
.sm-back {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: none; border-radius: 8px; cursor: pointer;
  background: var(--paper-2); color: var(--ink); box-shadow: 0 0 0 2px var(--leather), 0 3px 0 2px var(--leather-d);
}
.sm-back:hover, .sm-back:focus-visible { background: #fff3c8; outline: none; }
.sm-back kbd { font-size: 0.7em; padding: 1px 4px; border-radius: 4px; background: var(--leather); color: var(--paper); }
.sm-body { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 2px 4px 4px; margin: 0 -4px; }
.sm-sub, .sm-empty { margin: 0; color: var(--ink-soft); font-size: 0.85em; line-height: 1.5; }
.sm-empty { padding: 24px 0; text-align: center; }
.sm .lang-block h3 { margin: 0 0 8px; font-size: 0.85em; color: var(--ink-soft); text-transform: none; letter-spacing: 0.04em; }
.sm .tl-card small { font-size: 0.72em; color: var(--ink-soft); }

/* nouvelle partie : la paire choisie + Commencer */
.sm-go { justify-content: space-between; align-items: center; flex-wrap: wrap; }
.sm-pair { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink); }
.sm-go .btn { font-size: 1.1em; padding: 10px 26px; }

/* parties */
.sm-slots .sl-list { max-height: none; overflow: visible; display: grid; grid-template-columns: 1fr; gap: 10px; }   /* une partie par ligne */
.sm-slots .sl-info i { font-size: 0.8em; color: var(--ink-soft); }

/* classement / amis */
.sm-tabs, .sm-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sm-row { justify-content: space-between; }
.sm-login { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px;
  background: rgba(232, 176, 72, 0.16); box-shadow: inset 0 0 0 2px rgba(232, 176, 72, 0.5); font-size: 0.85em; }
.sm-login span { color: var(--ink-soft); line-height: 1.5; }
.sm-friends { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; }
.sm-rank h3 { margin: 0 0 8px; font-size: 0.85em; color: var(--ink-soft); font-weight: normal; }
@media (max-width: 700px) { .sm-friends { grid-template-columns: 1fr; } }

/* réglages */
.sm-settings .set-group { display: flex; flex-direction: column; gap: 6px; }
.sm-settings .set-group h4 { margin: 0 0 4px; font-size: 0.9em; font-weight: normal; color: var(--leather); }
.sm-settings .set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 10px; border-radius: 8px; }

/* au revoir */
.sm-bye { height: auto; width: min(420px, 92vw); align-items: center; text-align: center; padding: 26px; }
.sm-bye h2 { margin: 0; font-size: 1.5em; font-weight: normal; }

/* thème sombre : le doré du survol reste lisible */
[data-theme="dark"] .sm-item.primary,
[data-theme="dark"] .sm-item:is(:hover, :focus):not([disabled]) { background: linear-gradient(180deg, #5a4220, #3e2c16); color: #ffe7a8; }
[data-theme="dark"] .sm-back:hover { background: #3e2c16; }
[data-theme="dark"] .sm-login { background: rgba(240, 188, 88, 0.1); }

/* les parties : des cartes plus grandes qu'au carnet */
.sm-slots .sl-card { padding: 4px; }
.sm-slots .sl-open { gap: 14px; padding: 10px 12px; }
.sm-slots .sl-face { width: 56px; height: 56px; }
.sm-slots .sl-info { gap: 5px; }
.sm-slots .sl-info b { font-size: 1.1em; }
.sm-slots .sl-del { font-size: 1.1em; }

/* petits écrans : le compte passe au-dessus du logo ; pas de touche ESC sur un écran tactile */
@media (max-width: 640px) {
  .sm.title-screen { padding-top: 10px; }
  .sm-panel { height: calc(100vh - 130px); }
}
@media (pointer: coarse) { .sm-back kbd { display: none; } }
.sm-new .sm-go { margin-top: auto; padding-top: 10px; border-top: 2px dashed rgba(120, 85, 50, 0.3); }   /* l'action reste en bas du cadre */

/* compte : en haut à droite de la colonne du menu, et à droite du titre dans les écrans */
.sm-acc-row { display: flex; justify-content: flex-end; margin-bottom: 2px; }
.sm-head-acc { margin-left: auto; }
.sm :is(.sm-acc-row, .sm-head-acc) .tl-acc { background: var(--paper); box-shadow: var(--card-frame); }

/* le compte Steam : image de profil + nom */
.sm-avatar { width: 22px; height: 22px; border-radius: 5px; box-shadow: 0 0 0 2px var(--leather); }
.sm-steam { gap: 8px; padding: 3px 10px 3px 4px; }

/* tout en bas : sauvegarde en ligne (à gauche) et version (à droite), discrets */
.sm-foot { position: fixed; left: 14px; right: 14px; bottom: 8px; display: flex; justify-content: space-between; align-items: center;
  pointer-events: none; font-size: 0.72em; color: var(--paper-2); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); opacity: 0.85; }
.sm-sync.offline { color: #ffb0a0; }

/* ---------------- carte de profil (menu principal) : le personnage, le compte, les pièces ; clic = personnaliser */
.sm-profile { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 12px; cursor: pointer;
  background: var(--paper); color: var(--ink); box-shadow: 0 0 0 3px var(--leather), 0 5px 0 3px var(--leather-d), 0 12px 24px rgba(0, 0, 0, 0.25);
  margin-bottom: 6px; transition: transform 0.08s; }
.sm-profile:is(:hover, :focus-visible, :focus) { outline: none; background: #fff8e4; box-shadow: 0 0 0 3px var(--gold), 0 5px 0 3px var(--gold-d, #9a6a10), 0 12px 24px rgba(0, 0, 0, 0.25); }
.sm-profile:active { transform: translateY(3px); }
.sm-pf-pic { flex: none; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 10px;
  background: radial-gradient(circle at 50% 35%, #fff3c8, #e8c890); box-shadow: inset 0 0 0 2px rgba(120, 85, 50, 0.35); }
.sm-pf-face { image-rendering: pixelated; display: block; }
.sm-pf-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sm-pf-name { font-weight: normal; font-size: 1.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-pf-edit { font-size: 0.72rem; color: var(--ink-soft); }
.sm-profile:is(:hover, :focus) .sm-pf-edit { color: #a8741a; }
.sm-pf-coins { flex: none; font-size: 0.8rem; padding: 3px 8px; border-radius: 999px; background: linear-gradient(180deg, #fff3c8, #f5d36a); box-shadow: inset 0 0 0 2px #cf9a22; }
.sm-pf-side { display: flex; align-items: center; gap: 2px; }
.sm-pf-st { font-size: 0.9rem; color: var(--ink-soft); padding: 0 2px; }
.sm-pf-st.offline { color: #c0503c; }
.sm-pf-out { border: none; background: none; cursor: pointer; font-size: 1rem; color: var(--ink-soft); padding: 2px 4px; border-radius: 6px; }
.sm-pf-out:hover { background: rgba(192, 80, 60, 0.15); color: #a3301e; }
.sm-pf-act { flex: none; border: none; cursor: pointer; font-family: var(--pixel); font-size: 0.75rem; padding: 5px 10px; border-radius: 10px; background: #e0a030; color: #fff; }
.sm-pf-act:hover { background: #f0b040; }
[data-theme="dark"] .sm-profile { background: var(--paper, #2b2230); }
@media (max-width: 520px) { .sm-pf-coins { display: none; } .sm-pf-name { font-size: 1.05rem; } }

/* ---------------- pastille « demandes reçues » sur une entrée du menu */
.sm-badge { margin-left: auto; min-width: 1.6em; padding: 1px 7px; border-radius: 999px; font-size: 0.7em; text-align: center;
  background: #d84a3a; color: #fff; box-shadow: 0 2px 0 #8a2a1e; }
.sm-badge.hidden { display: none; }

/* ---------------- Amis (scenes/title.js friendsScreen) */
.fr-add { display: flex; gap: 10px; align-items: center; }
.fr-add .fr-in { flex: 1; }
.fr-msg { margin: 0; min-height: 1.2em; font-size: 0.8em; color: var(--ink-soft); }
.fr-msg.good { color: #2f7a3a; }
.fr-msg.bad { color: #a3301e; }
.fr-lists { display: flex; flex-direction: column; gap: 16px; }
.fr-sec { display: flex; flex-direction: column; gap: 6px; }
.fr-sec h3 { margin: 0 0 2px; font-weight: normal; font-size: 0.95em; color: var(--leather); }
.fr-empty { margin: 0; font-size: 0.8em; color: var(--ink-soft); }
.fr-row { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 2px rgba(120, 85, 50, 0.18); }
.fr-row.in { background: linear-gradient(90deg, rgba(232, 176, 72, 0.25), rgba(255, 255, 255, 0.55) 60%); box-shadow: inset 0 0 0 2px #e0a030; }
.fr-face { flex: none; image-rendering: pixelated; border-radius: 8px; background: radial-gradient(circle at 50% 35%, #fff3c8, #e8c890);
  box-shadow: inset 0 0 0 2px rgba(120, 85, 50, 0.3); }
.fr-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fr-name { font-weight: normal; display: flex; align-items: center; gap: 8px; }
.fr-flag { image-rendering: pixelated; }
.fr-sub { font-size: 0.72em; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-acts { display: flex; gap: 6px; flex: none; }
.fr-btn { border: none; cursor: pointer; font-family: var(--pixel); font-size: 0.75em; padding: 6px 10px; border-radius: 8px; color: var(--ink);
  background: rgba(255, 255, 255, 0.7); box-shadow: inset 0 0 0 2px rgba(120, 85, 50, 0.3); }
.fr-btn.ok { background: #5fbf6a; color: #fff; box-shadow: 0 2px 0 #2f7a3a; }
.fr-btn.no:hover { background: rgba(216, 74, 58, 0.15); color: #a3301e; }
.fr-btn:disabled { opacity: 0.5; cursor: default; }

/* ---------------- Classement (scenes/title.js boardScreen) */
.bd-body { display: flex; flex-direction: column; gap: 18px; }
.bd-sec { display: flex; flex-direction: column; gap: 6px; }
.bd-sec h3 { margin: 0; font-weight: normal; font-size: 1em; color: var(--leather); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.bd-sec h3 small { font-size: 0.68em; color: var(--ink-soft); }
.bd-runs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bd-run { display: flex; flex-direction: column; gap: 4px; }
.bd-run h4 { margin: 0; font-weight: normal; font-size: 0.85em; color: var(--ink-soft); }
.bd-word { display: grid; grid-template-columns: 2em 28px minmax(0, 10em) 1fr auto; align-items: center; gap: 10px; padding: 4px 8px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.5); }
.bd-word.me { background: #fff3c8; box-shadow: inset 0 0 0 2px #e0a030; }
.bd-word .lb-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: normal; }
.bd-bar { height: 8px; border-radius: 4px; background: rgba(120, 85, 50, 0.15); overflow: hidden; }
.bd-bar i { display: block; height: 100%; background: linear-gradient(90deg, #2f9a8a, #7fe0c8); }
.bd-word.me .bd-bar i { background: linear-gradient(90deg, #d8a020, #f0d060); }
.bd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.bd-opp { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 3px 0 0 var(--accent), inset 0 0 0 2px rgba(120, 85, 50, 0.12); opacity: 0.75; }
.bd-opp.beaten { opacity: 1; background: rgba(255, 255, 255, 0.75); }
.bd-opp.holder { background: linear-gradient(90deg, #fff3c8, rgba(255, 255, 255, 0.75)); box-shadow: inset 3px 0 0 var(--accent), inset 0 0 0 2px #e0a030; }
.bd-face { flex: none; width: 44px; height: 44px; image-rendering: pixelated; border-radius: 8px; background: radial-gradient(circle at 50% 35%, #fff3c8, #e8c890);
  box-shadow: inset 0 0 0 2px rgba(120, 85, 50, 0.3); }
.bd-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bd-name { font-weight: normal; font-size: 0.85em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-sub { font-size: 0.65em; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-rec { font-size: 0.7em; color: #8a5a10; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-me { font-size: 0.7em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-theme="dark"] :is(.fr-row, .bd-opp, .bd-word) { background: rgba(255, 255, 255, 0.06); }
@media (max-width: 640px) { .bd-runs { grid-template-columns: 1fr; } .bd-word { grid-template-columns: 1.6em 28px minmax(0, 7em) 1fr auto; } }

/* ---------------- « Jouer » : en tête, créer une nouvelle partie */
.sl-new { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; border: none; border-radius: 10px; cursor: pointer;
  font-family: var(--pixel); font-size: 1.05em; color: var(--ink); text-align: left;
  background: linear-gradient(180deg, #ffe07c, var(--gold)); box-shadow: 0 0 0 3px var(--leather), 0 4px 0 3px var(--leather-d); }
.sl-new b { flex: 1; font-weight: normal; }
.sl-new-ico { color: var(--leather); }
.sl-new:is(:hover, :focus-visible) { outline: none; background: linear-gradient(180deg, #fff3c8, #f2c860); }
.sl-new:active { transform: translateY(3px); box-shadow: 0 0 0 3px var(--leather), 0 1px 0 3px var(--leather-d); }

/* ---------------- nouvelle partie : nom de la partie */
.sm-savename { display: flex; align-items: center; gap: 12px; }
.sm-savename span { flex: none; font-size: 0.9em; color: var(--ink-soft); }
.sm-savename .sm-savename-in { flex: 1; max-width: 360px; }

/* ---------- Jouer : les parties (v8.57) — nom, langues bien lisibles, progression ; poubelle à part ---------- */
.sm-slots .sl-card { padding: 0; gap: 0; border-radius: 12px; overflow: hidden; }
.sm-slots .sl-open { gap: 14px; padding: 12px 16px; border-radius: 0; }
.sm-slots .sl-open:hover { border-radius: 0; }
.sl-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sm-slots .sl-name { font-size: 1.15em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-tag { flex: none; font-style: normal; font-size: 0.62em; padding: 2px 8px; border-radius: 999px; color: #fff; background: #2f9a8a; }
.sl-pair { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 0.82em; color: var(--ink); }
.sl-flag { width: 30px; height: 20px; image-rendering: pixelated; border-radius: 3px; box-shadow: 0 0 0 1px rgba(43, 29, 42, 0.35); }
.sl-lang.learn { color: #1f7a6c; }
.sl-arrow { color: var(--ink-soft); }
.sl-stats { display: flex; gap: 14px; font-size: 0.7em; color: var(--ink-soft); }
.sl-play { margin-left: auto; flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-size: 0.8em;
  color: #4a2c08; background: linear-gradient(180deg, #ffe07c, var(--gold)); box-shadow: 0 0 0 2px var(--leather), 0 3px 0 2px var(--leather-d); }
.sl-open:is(:hover, :focus-visible) .sl-play { transform: scale(1.08); }
.sm-slots .sl-del { flex: none; width: 58px; display: grid; place-items: center; padding: 0; opacity: 1; border: none; cursor: pointer;
  background: rgba(120, 85, 50, 0.07); box-shadow: inset 2px 0 0 rgba(120, 85, 50, 0.15); transition: background 0.12s ease; }
.sl-trash { width: 24px; height: 28px; image-rendering: pixelated; opacity: 0.7; transition: transform 0.12s ease, opacity 0.12s ease; }
.sm-slots .sl-del:is(:hover, :focus-visible) { outline: none; background: #b8322a; }
.sm-slots .sl-del:is(:hover, :focus-visible) .sl-trash { opacity: 1; transform: rotate(-8deg) scale(1.1); }

/* ---------- fenêtres du menu (compte, suppression) ---------- */
.sm-form { gap: 10px; }
.sm-form .tl-sub { margin: 0; font-size: 0.78em; color: var(--ink-soft); line-height: 1.45; }
.sm-field { display: flex; flex-direction: column; gap: 4px; }
.sm-field span { font-size: 0.72em; color: var(--ink-soft); }
.sm-form.danger { box-shadow: inset 0 0 0 3px #8a2a22, 0 10px 30px rgba(0, 0, 0, 0.5); }
.sm-form.danger h2 { color: #a0302a; }
.btn.danger { color: #fff; background: linear-gradient(180deg, #c8463a, #9a2a22); border-color: #6a1a14; }

/* ---------- Réglages : deux colonnes, le compte en premier ---------- */
.sm-settings .set-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.sm-settings .set-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sm-settings .set-row { background: rgba(255, 255, 255, 0.5); }
.set-ctl { display: flex; align-items: center; gap: 10px; min-width: 0; }
.set-range .slider { width: 9em; }
.set-val { font-weight: normal; font-size: 0.75em; min-width: 3.2em; text-align: right; color: var(--ink-soft); }
.set-note { margin: 0; font-size: 0.66em; color: var(--ink-soft); padding: 0 10px; }
.set-acc-val { font-weight: normal; font-size: 0.85em; max-width: 13em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-mini { flex: none; font: inherit; font-size: 0.7em; padding: 4px 10px; border: none; border-radius: 7px; cursor: pointer; color: var(--ink);
  background: linear-gradient(180deg, #fff, var(--paper-2)); box-shadow: 0 0 0 2px rgba(120, 85, 50, 0.45); }
.set-mini:is(:hover, :focus-visible) { outline: none; background: #fff3c8; }
.set-acts { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.set-acts .btn { font-family: var(--pixel); font-size: 0.78em; }
@media (max-width: 820px) { .sm-settings .set-cols { grid-template-columns: 1fr; } }

/* ---------- Classement : onglets, podium ---------- */
.bd-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.bd-tab { display: flex; align-items: center; gap: 7px; padding: 8px 14px; border: none; border-radius: 10px 10px 4px 4px; cursor: pointer;
  font: inherit; font-size: 0.82em; color: var(--ink-soft); background: rgba(255, 255, 255, 0.45); box-shadow: inset 0 0 0 2px rgba(120, 85, 50, 0.2); }
.bd-tab:is(:hover, :focus-visible) { outline: none; background: rgba(255, 255, 255, 0.75); }
.bd-tab.on { color: #4a2c08; background: linear-gradient(180deg, #ffe07c, var(--gold)); box-shadow: 0 0 0 2px var(--leather), 0 3px 0 2px var(--leather-d); }
.bd-tab-n { font-size: 0.75em; opacity: 0.75; }
.bd-tab-n:empty { display: none; }
.bd-pane { display: flex; flex-direction: column; gap: 10px; animation: cr-open 0.16s ease both; }
.bd-lead { margin: 0; font-size: 0.74em; color: var(--ink-soft); }
.bd-podium { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; gap: 6px; margin: 4px 0 6px; }
.bd-pod { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.bd-pod-medal { font-size: 1.5em; line-height: 1; }
.bd-pod-name { font-weight: normal; font-size: 0.8em; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-pod-time { font-size: 0.68em; color: var(--ink-soft); }
.bd-pod-step { align-self: stretch; display: grid; place-items: center; font-style: normal; font-size: 0.9em; color: rgba(74, 44, 8, 0.55);
  border-radius: 8px 8px 0 0; margin-top: 4px; background: linear-gradient(180deg, #f6e6bc, #e4cf9a); box-shadow: inset 0 0 0 2px rgba(120, 85, 50, 0.25); }
.bd-pod.p1 .bd-pod-step { height: 54px; background: linear-gradient(180deg, #ffe07c, #e8b53a); }
.bd-pod.p2 .bd-pod-step { height: 38px; background: linear-gradient(180deg, #eef1f4, #c5ccd4); }
.bd-pod.p3 .bd-pod-step { height: 26px; background: linear-gradient(180deg, #f0c8a0, #c98a54); }
.bd-pod.me .bd-pod-name { color: #1f7a6c; }
.bd-words { display: flex; flex-direction: column; gap: 6px; }
.bd-words .bd-word { grid-template-columns: 2.2em 32px minmax(0, 11em) 1fr auto; padding: 6px 10px; }
.bd-words .bd-bar { height: 10px; border-radius: 5px; }
.bd-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.bd-chip { font-size: 0.72em; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.6); box-shadow: inset 0 0 0 2px rgba(120, 85, 50, 0.2); }
.bd-chip.gold { color: #4a2c08; background: linear-gradient(180deg, #fff3c8, #f5d36a); box-shadow: inset 0 0 0 2px #cf9a22; }
.bd-opp { position: relative; }
.bd-crown { position: absolute; top: -8px; right: 6px; font-size: 1em; }
.set-subhead { font-family: var(--pixel); margin: 6px 0 0; padding: 0 2px; font-size: 0.66em; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.sm-form-title { display: flex; align-items: center; gap: 10px; }
.sm-form-title .sl-trash { opacity: 1; flex: none; }
.bd-podium.empty { opacity: 0.45; }

/* ---------- fenêtre du compte (v8.58) : onglets, case « nouvelles », mot de passe oublié ---------- */
.tl-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 10px; background: rgba(120, 85, 50, 0.1); }
.tl-tab { font: inherit; font-size: 0.82em; padding: 8px 10px; border: none; border-radius: 7px; cursor: pointer; color: var(--ink-soft); background: transparent; }
.tl-tab.on { color: #4a2c08; background: linear-gradient(180deg, #ffe07c, var(--gold)); box-shadow: 0 0 0 2px var(--leather), 0 2px 0 2px var(--leather-d); }
.tl-tab:not(.on):is(:hover, :focus-visible) { outline: none; background: rgba(255, 255, 255, 0.6); }
.sm-hint { font-size: 0.62em; color: var(--ink-soft); line-height: 1.4; }
.sm-checkrow { display: flex; align-items: center; gap: 10px; font-size: 0.74em; color: var(--ink); cursor: pointer; }
.sm-checkrow input { width: 18px; height: 18px; accent-color: #2f9a8a; flex: none; }
.tl-link { align-self: flex-start; font: inherit; font-size: 0.72em; padding: 0; border: none; background: none; color: #1f7a6c; text-decoration: underline; cursor: pointer; }
.set-mini.warn { background: linear-gradient(180deg, #fff3c8, #f5d36a); color: #4a2c08; }
.set-verify { background: rgba(240, 180, 41, 0.18) !important; font-size: 0.9em; }
[data-theme="dark"] .tl-tab.on { color: #4a2c08; }
[data-theme="dark"] .tl-link { color: #7fe0c8; }
[data-theme="dark"] .tl-tabs { background: rgba(255, 255, 255, 0.06); }

/* v10.25 : le multijoueur sous cadenas (version complète) */
.mp-locked { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 40px 20px; text-align: center; }
.mp-lock-ico { font-size: 3.2rem; line-height: 1; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.18)); }
.mp-lock-t { font-size: clamp(1.1rem, 2.6vw, 1.4rem); }
.mp-lock-acts { justify-content: center; flex-wrap: wrap; }
