/* Combien ça pèse ? — cinq habillages à essayer (html[data-theme]) */

/* =========================================================
   1. CAHIER — papier Seyès, encre bleue, écriture d'école
   ========================================================= */
html[data-theme="cahier"] {
  --bg: #FBFAF4;
  --surface: #FFFEF9;
  --surface-2: #F4F6FC;
  --ink: #1D2A63;
  --muted: #56608A;
  --line: #C9D2EC;
  --blue: #2340C8;
  --blue-soft: #E3E8FA;
  --c-transport: #138A6E; --c-transport-soft: #DDF2EA;
  --c-vie: #C9620B; --c-vie-soft: #FBEAD9;
  --c-numerique: #7B3FC9; --c-numerique-soft: #EFE5FB;
  --c-ia: #2340C8; --c-ia-soft: #E3E8FA;
  --ok: #138A3B; --ko: #D7262E;
  --radius-l: 10px; --radius-xl: 12px;
  --shadow-rest: 0 1px 0 #D9DEEF, 0 2px 4px rgba(29, 42, 99, .06);
  --shadow-lift: 0 2px 0 #CBD2EA, 0 8px 18px rgba(29, 42, 99, .12);
  --font: "Andika", "Plus Jakarta Sans", system-ui, sans-serif;
  --script: "Playwrite FR Trad", cursive;
}
html[data-theme="cahier"] body {
  background-color: var(--bg);
  background-image:
    linear-gradient(90deg, transparent 72px, #F2A7A7 72px, #F2A7A7 74px, transparent 74px),
    repeating-linear-gradient(180deg, transparent 0 31px, #B9C6EA 31px 32px),
    repeating-linear-gradient(180deg, transparent 0 7px, #E3E9F7 7px 8px);
}
html[data-theme="cahier"] .logo-title,
html[data-theme="cahier"] .screen-title,
html[data-theme="cahier"] .game-brand,
html[data-theme="cahier"] .scale-head h3,
html[data-theme="cahier"] .party-panel h3 {
  font-family: var(--script);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.25;
}
html[data-theme="cahier"] .logo-title { font-size: clamp(2.2rem, 5.5vw, 3.8rem); color: var(--ink); }
html[data-theme="cahier"] .panel,
html[data-theme="cahier"] .frise-scroller,
html[data-theme="cahier"] .discard,
html[data-theme="cahier"] .fiche-panel { border: 1.5px solid var(--line); }
html[data-theme="cahier"] .gcard { border: 1.5px solid #AEB9DD; border-radius: 8px; }
html[data-theme="cahier"] .gcard-band { height: 0; }
html[data-theme="cahier"] .gcard-cat { margin-top: .55rem; background: none; border: 1.5px solid var(--cat); }
html[data-theme="cahier"] .gcard-title { font-size: .8rem; }
html[data-theme="cahier"] .gcard-value { font-weight: 700; font-size: 1.02rem; color: var(--blue); }
html[data-theme="cahier"] .btn { border-radius: 8px; }
html[data-theme="cahier"] .btn-primary { box-shadow: 0 3px 0 #15297F; }
html[data-theme="cahier"] .turn-banner.mine { box-shadow: 0 3px 0 #15297F; }
/* La règle devient une règle d'écolier en plastique */
html[data-theme="cahier"] .ruler-axis {
  top: 14px; height: 26px;
  background: rgba(250, 226, 120, .55);
  border: 1.5px solid #D9B53C;
  border-radius: 4px;
}
html[data-theme="cahier"] .ruler-tick { background: #8B6E14; top: 14px; height: 10px; }
html[data-theme="cahier"] .reveal-stamp {
  font-family: var(--script); font-weight: 400; font-size: 1.15rem;
  border-width: 2.5px; border-radius: 40% 45% 42% 48%;
  background: rgba(255, 254, 249, .9);
}
html[data-theme="cahier"] .reveal-number { color: var(--blue); }
html[data-theme="cahier"] .hand-tray { background: rgba(255, 254, 249, .95); }

/* =========================================================
   2. ÉTIQUETTE — l'étiquette énergie, de A (vert) à G (rouge)
   ========================================================= */
html[data-theme="etiquette"] {
  --bg: #EEEFEA;
  --surface: #FFFFFF;
  --surface-2: #F5F6F2;
  --ink: #111111;
  --muted: #555A55;
  --line: #CFD2CB;
  --blue: #111111;
  --blue-soft: #E7E8E3;
  --c-transport: #111111; --c-transport-soft: #EDEEE9;
  --c-vie: #111111; --c-vie-soft: #EDEEE9;
  --c-numerique: #111111; --c-numerique-soft: #EDEEE9;
  --c-ia: #111111; --c-ia-soft: #EDEEE9;
  --ok: #00A651; --ko: #ED1C24;
  --g-a: #00A651; --g-b: #50B848; --g-c: #BFD730; --g-d: #FFF200; --g-e: #FDB913; --g-f: #F37021; --g-g: #ED1C24;
  --radius-s: 3px; --radius-m: 4px; --radius-l: 6px; --radius-xl: 6px;
  --shadow-rest: none;
  --shadow-lift: 0 6px 14px rgba(0, 0, 0, .16);
  --font: "Barlow", system-ui, sans-serif;
  --cond: "Barlow Condensed", "Barlow", sans-serif;
}
html[data-theme="etiquette"] .logo-title,
html[data-theme="etiquette"] .screen-title,
html[data-theme="etiquette"] .game-brand,
html[data-theme="etiquette"] .panel h2,
html[data-theme="etiquette"] .scale-head h3,
html[data-theme="etiquette"] .party-panel h3 { font-family: var(--cond); font-weight: 800; letter-spacing: -0.01em; }
html[data-theme="etiquette"] .logo-title { font-size: clamp(3rem, 8vw, 5.6rem); line-height: .9; }
html[data-theme="etiquette"] .panel,
html[data-theme="etiquette"] .frise-scroller,
html[data-theme="etiquette"] .discard,
html[data-theme="etiquette"] .fiche-panel,
html[data-theme="etiquette"] .turn-banner { border: 2px solid #111; }
/* Bandeau A → G au-dessus de la frise */
html[data-theme="etiquette"] .frise-scroller {
  background-image: linear-gradient(90deg, var(--g-a), var(--g-b), var(--g-c), var(--g-d), var(--g-e), var(--g-f), var(--g-g));
  background-size: 100% 10px; background-repeat: no-repeat; background-position: top;
  background-color: #fff;
  padding-top: 1.6rem;
}
html[data-theme="etiquette"] .gcard { border: 2px solid #111; border-radius: 4px; }
html[data-theme="etiquette"] .gcard-band { height: 22px; background: #111; }
html[data-theme="etiquette"] .gcard-cat { position: absolute; top: 3px; left: 0; right: 0; margin: 0 auto; background: none; color: #fff; font-family: var(--cond); font-size: .72rem; }
html[data-theme="etiquette"] .gcard-icon { margin-top: .7rem; }
html[data-theme="etiquette"] .gcard-title { font-weight: 600; }
html[data-theme="etiquette"] .gcard-value {
  font-family: var(--cond); font-weight: 800; font-size: 1.1rem;
  align-self: stretch; margin: .35rem -.65rem -.6rem; padding: .2rem 0;
  background: var(--grade, #E7E8E3);
  clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%);
}
html[data-theme="etiquette"] [data-grade="A"] { --grade: var(--g-a); }
html[data-theme="etiquette"] [data-grade="B"] { --grade: var(--g-b); }
html[data-theme="etiquette"] [data-grade="C"] { --grade: var(--g-c); }
html[data-theme="etiquette"] [data-grade="D"] { --grade: var(--g-d); }
html[data-theme="etiquette"] [data-grade="E"] { --grade: var(--g-e); }
html[data-theme="etiquette"] [data-grade="F"] { --grade: var(--g-f); }
html[data-theme="etiquette"] [data-grade="G"] { --grade: var(--g-g); }
html[data-theme="etiquette"] .gcard-value small { color: #111; }
html[data-theme="etiquette"] .ruler-axis {
  top: 20px; height: 12px; border-radius: 0;
  background: linear-gradient(90deg, var(--g-a), var(--g-b), var(--g-c), var(--g-d), var(--g-e), var(--g-f), var(--g-g));
}
html[data-theme="etiquette"] .ruler-dot { background: #111 !important; }
html[data-theme="etiquette"] .btn { border-radius: 4px; font-family: var(--cond); font-size: 1.08rem; font-weight: 700; }
html[data-theme="etiquette"] .btn-primary { background: #111; box-shadow: none; }
html[data-theme="etiquette"] .btn-primary:hover { background: #333; }
html[data-theme="etiquette"] .turn-banner.mine { background: var(--g-a); color: #fff; box-shadow: none; }
html[data-theme="etiquette"] .pchip.current { border-color: #111; background: #fff; }
html[data-theme="etiquette"] .pchip.current .avatar { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #111; }
html[data-theme="etiquette"] .reveal-face { border-radius: 6px; border: 3px solid #111; }
html[data-theme="etiquette"] .reveal-number { font-family: var(--cond); font-size: 2.8rem; }
html[data-theme="etiquette"] .reveal-stamp { font-family: var(--cond); border-radius: 4px; }
html[data-theme="etiquette"] .chip { border-left-width: 8px; border-left-color: var(--grade, #111); }
html[data-theme="etiquette"] .fiche-value { background: var(--grade, #EDEEE9); }
html[data-theme="etiquette"] .avatar { background: #111; }
html[data-theme="etiquette"] .code-tile { background: #111; color: #fff; font-family: var(--cond); }

/* =========================================================
   3. ARDOISE — le tableau noir, la craie, le rebord en bois
   ========================================================= */
html[data-theme="ardoise"] {
  --bg: #20332B;
  --surface: #2A4237;
  --surface-2: #314B40;
  --ink: #F4F1E6;
  --muted: #B9C6B8;
  --line: rgba(244, 241, 230, .2);
  --blue: #F2D35B;
  --blue-soft: rgba(242, 211, 91, .16);
  --c-transport: #8FD9C4; --c-transport-soft: rgba(143, 217, 196, .16);
  --c-vie: #F6C26B; --c-vie-soft: rgba(246, 194, 107, .16);
  --c-numerique: #CDB2F5; --c-numerique-soft: rgba(205, 178, 245, .16);
  --c-ia: #96BBFF; --c-ia-soft: rgba(150, 187, 255, .16);
  --ok: #A6E8A4; --ko: #FF9A8F;
  --shadow-rest: none;
  --shadow-lift: 0 10px 24px rgba(0, 0, 0, .35);
  --shadow-deep: 0 24px 60px rgba(0, 0, 0, .5);
  --font: "Nunito", system-ui, sans-serif;
  --chalk: "Cabin Sketch", "Nunito", cursive;
}
html[data-theme="ardoise"] body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(255, 255, 255, .06), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(255, 255, 255, .04), transparent 55%);
  background-attachment: fixed;
}
html[data-theme="ardoise"] .logo-title,
html[data-theme="ardoise"] .screen-title,
html[data-theme="ardoise"] .game-brand,
html[data-theme="ardoise"] .panel h2,
html[data-theme="ardoise"] .scale-head h3,
html[data-theme="ardoise"] .party-panel h3 { font-family: var(--chalk); font-weight: 700; letter-spacing: 0; }
html[data-theme="ardoise"] .logo-title { font-size: clamp(2.8rem, 7vw, 5rem); line-height: 1; }
html[data-theme="ardoise"] .panel,
html[data-theme="ardoise"] .frise-scroller,
html[data-theme="ardoise"] .discard,
html[data-theme="ardoise"] .fiche-panel,
html[data-theme="ardoise"] .turn-banner { background: transparent; border: 2px solid rgba(244, 241, 230, .45); border-radius: 14px 10px 16px 9px; }
html[data-theme="ardoise"] .game-top { background: #1A2A23; border-bottom-color: rgba(244, 241, 230, .2); }
html[data-theme="ardoise"] .gcard {
  background: #2E483C;
  border: 2px solid rgba(244, 241, 230, .75);
  border-radius: 12px 8px 14px 9px;
}
html[data-theme="ardoise"] .gcard-band { height: 4px; margin-top: 6px; border-radius: 4px; width: 60%; align-self: center; }
html[data-theme="ardoise"] .gcard-cat { background: none; }
html[data-theme="ardoise"] .gcard-value { font-family: var(--chalk); font-size: 1.15rem; font-weight: 700; }
html[data-theme="ardoise"] .field input { background: rgba(0, 0, 0, .18); border-color: rgba(244, 241, 230, .35); color: var(--ink); }
html[data-theme="ardoise"] .field input:focus { background: rgba(0, 0, 0, .25); }
html[data-theme="ardoise"] .btn-primary { background: transparent; color: var(--blue); border: 2.5px solid var(--blue); box-shadow: none; }
html[data-theme="ardoise"] .btn-primary:hover { background: var(--blue-soft); }
html[data-theme="ardoise"] .btn-secondary { background: transparent; color: var(--ink); border: 2px solid rgba(244, 241, 230, .5); }
html[data-theme="ardoise"] .btn-ghost { background: transparent; color: var(--ink); }
html[data-theme="ardoise"] .turn-banner.mine { background: transparent; color: var(--blue); border-color: var(--blue); box-shadow: none; }
html[data-theme="ardoise"] .pchip { background: rgba(0, 0, 0, .2); }
html[data-theme="ardoise"] .pchip.current { background: rgba(242, 211, 91, .12); }
html[data-theme="ardoise"] .pchip.current .avatar { box-shadow: 0 0 0 3px #1A2A23, 0 0 0 5px var(--blue); }
html[data-theme="ardoise"] .avatar { color: #1A2A23; }
html[data-theme="ardoise"] .ruler-axis { background: rgba(244, 241, 230, .6); height: 3px; }
html[data-theme="ardoise"] .ruler-tick { background: rgba(244, 241, 230, .6); }
html[data-theme="ardoise"] .ruler-dot { border-color: #20332B; }
/* Le rebord du tableau porte la main */
html[data-theme="ardoise"] .hand-tray {
  background: linear-gradient(180deg, #7A5638, #5E4029);
  border-top: 3px solid #93694A;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .3);
}
html[data-theme="ardoise"] .hand-title,
html[data-theme="ardoise"] .hand-hint { color: #F4E6D2; }
html[data-theme="ardoise"] .hand .gcard { background: #2E483C; }
html[data-theme="ardoise"] .count-pill { background: rgba(0, 0, 0, .2); color: var(--ink); border-color: rgba(244, 241, 230, .3); }
html[data-theme="ardoise"] .reveal { background: rgba(10, 18, 14, .7); }
html[data-theme="ardoise"] .reveal-face { background: #2A4237; border: 2px solid rgba(244, 241, 230, .7); }
html[data-theme="ardoise"] .reveal-number { font-family: var(--chalk); }
html[data-theme="ardoise"] .reveal-stamp { font-family: var(--chalk); background: rgba(32, 51, 43, .92); }
html[data-theme="ardoise"] .reveal-info { background: #2A4237; border: 2px solid rgba(244, 241, 230, .4); }
html[data-theme="ardoise"] .verdict-pill { background: transparent; }
html[data-theme="ardoise"] .sheet-body { background: #2A4237; }
html[data-theme="ardoise"] .chip { background: #2E483C; }
html[data-theme="ardoise"] .scale-col { background: rgba(0, 0, 0, .15); }
html[data-theme="ardoise"] .podium li { background: rgba(0, 0, 0, .18); }
html[data-theme="ardoise"] .podium li.r1 { background: rgba(242, 211, 91, .15); }
html[data-theme="ardoise"] .code-tile { background: transparent; border: 2px solid var(--blue); font-family: var(--chalk); }
html[data-theme="ardoise"] .player-list li { background: rgba(0, 0, 0, .18); }
html[data-theme="ardoise"] .mini-card { background: #2E483C; border: 2px solid rgba(244, 241, 230, .75); }
html[data-theme="ardoise"] .slot .ratio { background: transparent; color: var(--muted); }

/* =========================================================
   4. AFFICHE — aplats francs, grosse typo, cartes pleines
   ========================================================= */
html[data-theme="affiche"] {
  --bg: #F0E9DA;
  --surface: #FBF7EE;
  --surface-2: #F3ECDD;
  --ink: #141414;
  --muted: #4E4A42;
  --line: #141414;
  --blue: #E3342B;
  --blue-soft: #F7D8CF;
  --c-transport: #1E4FD8; --c-transport-soft: #1E4FD8;
  --c-vie: #F2B300; --c-vie-soft: #F2B300;
  --c-numerique: #0E8F62; --c-numerique-soft: #0E8F62;
  --c-ia: #E3342B; --c-ia-soft: #E3342B;
  --ok: #0E8F62; --ko: #E3342B;
  --radius-s: 0; --radius-m: 0; --radius-l: 0; --radius-xl: 0;
  --shadow-rest: none;
  --shadow-lift: 6px 6px 0 rgba(20, 20, 20, .9);
  --font: "Archivo", system-ui, sans-serif;
  --display: "Archivo Black", "Archivo", sans-serif;
}
html[data-theme="affiche"] .logo-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(3.2rem, 9.5vw, 7rem); letter-spacing: -0.04em; line-height: .86;
}
html[data-theme="affiche"] .screen-title,
html[data-theme="affiche"] .game-brand,
html[data-theme="affiche"] .panel h2,
html[data-theme="affiche"] .scale-head h3,
html[data-theme="affiche"] .party-panel h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; }
html[data-theme="affiche"] .panel,
html[data-theme="affiche"] .frise-scroller,
html[data-theme="affiche"] .discard,
html[data-theme="affiche"] .fiche-panel,
html[data-theme="affiche"] .turn-banner { border: 3px solid #141414; }
/* Cartes pleines, en aplat de la couleur de catégorie */
html[data-theme="affiche"] .gcard { background: var(--cat); color: #fff; border: 3px solid #141414; border-radius: 0; }
html[data-theme="affiche"] .gcard[data-category="vie"] { color: #141414; }
html[data-theme="affiche"] .gcard-band { display: none; }
html[data-theme="affiche"] .gcard-cat { margin-top: .6rem; background: #141414; color: #fff; border-radius: 0; }
html[data-theme="affiche"] .gcard-title { font-weight: 700; }
html[data-theme="affiche"] .gcard-value { font-family: var(--display); font-weight: 400; font-size: 1.25rem; color: inherit; }
html[data-theme="affiche"] .gcard-value small { color: inherit; opacity: .85; }
html[data-theme="affiche"] .gcard-value.hidden-value { color: inherit; opacity: .7; }
html[data-theme="affiche"] .hand .gcard { box-shadow: 5px 5px 0 #141414; }
html[data-theme="affiche"] .frise .gcard { box-shadow: none; }
html[data-theme="affiche"] .btn { border-radius: 0; font-family: var(--display); font-weight: 400; letter-spacing: .01em; }
html[data-theme="affiche"] .btn-primary { background: #141414; box-shadow: 5px 5px 0 var(--blue); }
html[data-theme="affiche"] .btn-primary:hover { background: #141414; transform: translate(-1px, -1px); box-shadow: 7px 7px 0 var(--blue); }
html[data-theme="affiche"] .btn-secondary { background: transparent; color: #141414; border: 3px solid #141414; }
html[data-theme="affiche"] .turn-banner.mine { background: var(--blue); box-shadow: none; }
html[data-theme="affiche"] .field input { border: 2px solid #141414; border-radius: 0; background: #fff; }
html[data-theme="affiche"] .ruler-axis { background: #141414; height: 4px; }
html[data-theme="affiche"] .ruler-tick { background: #141414; }
html[data-theme="affiche"] .ruler-dot { border-radius: 0; border-color: #141414; width: 14px; height: 14px; }
html[data-theme="affiche"] .reveal-face { border: 4px solid #141414; border-radius: 0; background: var(--cat); color: #fff; }
html[data-theme="affiche"] .reveal-face[data-category="vie"] { color: #141414; }
html[data-theme="affiche"] .reveal-number { font-family: var(--display); font-weight: 400; font-size: 3rem; }
html[data-theme="affiche"] .reveal-number small { color: inherit; }
html[data-theme="affiche"] .reveal-stamp { border-radius: 0; font-family: var(--display); font-weight: 400; background: #FBF7EE; }
html[data-theme="affiche"] .reveal-info { border: 3px solid #141414; border-radius: 0; }
html[data-theme="affiche"] .chip { border: 2px solid #141414; border-left: 8px solid var(--cat); border-radius: 0; }
html[data-theme="affiche"] .fiche-value { background: var(--cat); color: #fff; }
html[data-theme="affiche"] .fiche-value strong, html[data-theme="affiche"] .fiche-value strong small { color: inherit; }
html[data-theme="affiche"] .fiche-icon { background: var(--cat); }
html[data-theme="affiche"] .code-tile { background: #141414; color: #fff; border-radius: 0; font-family: var(--display); font-weight: 400; }
html[data-theme="affiche"] .avatar { border-radius: 0; }
html[data-theme="affiche"] .mini-card { background: var(--cat); color: #fff; border: 3px solid #141414; border-radius: 0; box-shadow: 6px 6px 0 #141414; }
html[data-theme="affiche"] .mini-card[data-category="vie"] { color: #141414; }
html[data-theme="affiche"] .mini-band { display: none; }
html[data-theme="affiche"] .mini-value { background: #141414; color: #fff; border-radius: 0; margin-top: auto; }

/* =========================================================
   5. PLATEAU — jeu de société : contours épais, ombres franches
   ========================================================= */
html[data-theme="plateau"] {
  --bg: #FFF1D6;
  --surface: #FFFDF7;
  --surface-2: #FFF6E4;
  --ink: #1B1B1B;
  --muted: #5C5446;
  --line: #1B1B1B;
  --blue: #FF5C8A;
  --blue-soft: #FFE0EA;
  --c-transport: #2FBF71; --c-transport-soft: #D5F5E2;
  --c-vie: #FFB21E; --c-vie-soft: #FFEDC7;
  --c-numerique: #9B7BFF; --c-numerique-soft: #E9E1FF;
  --c-ia: #3E9BFF; --c-ia-soft: #DCEBFF;
  --ok: #19A35B; --ko: #F2404A;
  --radius-l: 16px; --radius-xl: 20px;
  --shadow-rest: 4px 4px 0 #1B1B1B;
  --shadow-lift: 6px 6px 0 #1B1B1B;
  --shadow-deep: 10px 10px 0 #1B1B1B;
  --font: "Bricolage Grotesque", system-ui, sans-serif;
}
html[data-theme="plateau"] body {
  background-color: var(--bg);
  background-image: radial-gradient(#E9C98E 1.4px, transparent 1.6px);
  background-size: 22px 22px;
}
html[data-theme="plateau"] .logo-title { font-weight: 800; font-size: clamp(2.8rem, 7.5vw, 5.4rem); letter-spacing: -0.04em; }
html[data-theme="plateau"] .panel,
html[data-theme="plateau"] .frise-scroller,
html[data-theme="plateau"] .discard,
html[data-theme="plateau"] .fiche-panel,
html[data-theme="plateau"] .turn-banner { border: 3px solid #1B1B1B; }
html[data-theme="plateau"] .game-top { border-bottom: 3px solid #1B1B1B; }
html[data-theme="plateau"] .gcard { border: 3px solid #1B1B1B; border-radius: 16px; }
html[data-theme="plateau"] .gcard-band { height: 30%; position: absolute; top: 0; left: 0; right: 0; margin: 0; background: var(--cat-soft); border-bottom: 3px solid #1B1B1B; }
html[data-theme="plateau"] .gcard-cat { position: relative; z-index: 1; background: var(--cat); color: #1B1B1B; border: 2px solid #1B1B1B; }
html[data-theme="plateau"] .gcard-icon { position: relative; z-index: 1; margin-top: .25rem; }
html[data-theme="plateau"] .gcard-value { font-weight: 800; font-size: 1.05rem; background: #1B1B1B; color: #fff; border-radius: 999px; padding: .05rem .6rem; }
html[data-theme="plateau"] .gcard-value small { color: #ddd; }
html[data-theme="plateau"] .gcard-value.hidden-value { background: var(--surface-2); color: var(--muted); border: 2px solid #1B1B1B; }
html[data-theme="plateau"] .frise .gcard { box-shadow: 4px 4px 0 #1B1B1B; }
html[data-theme="plateau"] .hand .gcard { box-shadow: 5px 5px 0 #1B1B1B; }
html[data-theme="plateau"] .btn { border: 3px solid #1B1B1B; box-shadow: 4px 4px 0 #1B1B1B; }
html[data-theme="plateau"] .btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #1B1B1B; }
html[data-theme="plateau"] .btn-primary { background: var(--blue); color: #1B1B1B; }
html[data-theme="plateau"] .btn-primary:hover { background: #FF7AA0; }
html[data-theme="plateau"] .btn-secondary { background: #FFE27A; color: #1B1B1B; }
html[data-theme="plateau"] .btn-text { border: 0; box-shadow: none; }
html[data-theme="plateau"] .turn-banner.mine { background: var(--blue); color: #1B1B1B; box-shadow: 4px 4px 0 #1B1B1B; }
html[data-theme="plateau"] .field input { border: 3px solid #1B1B1B; background: #fff; }
html[data-theme="plateau"] .pchip { border: 2px solid #1B1B1B; }
html[data-theme="plateau"] .pchip.current { background: var(--blue-soft); border-color: #1B1B1B; }
html[data-theme="plateau"] .pchip.current .avatar { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #1B1B1B; }
html[data-theme="plateau"] .avatar { border: 2px solid #1B1B1B; color: #1B1B1B; }
html[data-theme="plateau"] .ruler-axis { height: 10px; top: 22px; background: #fff; border: 3px solid #1B1B1B; border-radius: 999px; }
html[data-theme="plateau"] .ruler-dot { border: 3px solid #1B1B1B; width: 18px; height: 18px; top: 18px; }
html[data-theme="plateau"] .ruler-tick { background: #1B1B1B; }
html[data-theme="plateau"] .slot .ratio { border: 2px solid #1B1B1B; background: #FFE27A; color: #1B1B1B; }
html[data-theme="plateau"] .reveal-face { border: 4px solid #1B1B1B; }
html[data-theme="plateau"] .reveal-face .gcard-band { position: static; height: 14px; border-bottom: 3px solid #1B1B1B; background: var(--cat); }
html[data-theme="plateau"] .reveal-stamp { border-width: 4px; box-shadow: 4px 4px 0 currentColor; }
html[data-theme="plateau"] .reveal-info { border: 3px solid #1B1B1B; box-shadow: 4px 4px 0 #1B1B1B; }
html[data-theme="plateau"] .chip { border: 2px solid #1B1B1B; border-left: 8px solid var(--cat); box-shadow: 2px 2px 0 #1B1B1B; }
html[data-theme="plateau"] .code-tile { background: #FFE27A; color: #1B1B1B; border: 3px solid #1B1B1B; box-shadow: 3px 3px 0 #1B1B1B; }
html[data-theme="plateau"] .count-pill { border: 2px solid #1B1B1B; background: #fff; color: #1B1B1B; }
html[data-theme="plateau"] .hand-tray { background: rgba(255, 241, 214, .96); border-top: 3px solid #1B1B1B; }
html[data-theme="plateau"] .mini-card { border: 3px solid #1B1B1B; box-shadow: 6px 6px 0 #1B1B1B; }
html[data-theme="plateau"] .mini-value { border: 2px solid #1B1B1B; }

@media print { .style-picker { display: none !important; } }

/* =========================================================
   Sélecteur de style (visible avec ?styles dans l'adresse)
   ========================================================= */
.style-picker {
  position: fixed; right: 12px; top: 12px; z-index: 96;
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end;
  max-width: calc(100vw - 24px);
  padding: 6px;
  background: #141B2D; color: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  font: 600 13px/1 "Plus Jakarta Sans", system-ui, sans-serif;
}
.style-picker span { padding: 0 6px 0 8px; opacity: .7; }
.style-picker button {
  border: 0; cursor: pointer;
  padding: 8px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); color: #fff;
  font: inherit;
  min-height: 34px;
}
.style-picker button[aria-pressed="true"] { background: #fff; color: #141B2D; }
@media (max-width: 760px) {
  .style-picker { top: auto; bottom: calc(var(--ch) + 100px); right: 8px; border-radius: 16px; }
  .style-picker span { display: none; }
}
