/* =========================================================
   MySin — kit d'interface, version 2
   Parties 1 à 10 : copie conforme du CSS de la référence (mysin-interface-complete.html),
   la source de vérité pour les couleurs, tailles, espacements, animations et durées.
   Partie 11 : les écrans et composants du jeu absents de la référence, habillés dans le même style.
   Les règles du projet sont dans CLAUDE.md.
   ========================================================= */
/* =========================================================
   1. VARIABLES ET THÈMES
   ========================================================= */
:root{
  --font-ui:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display:var(--font-ui);
  --cherry:#c8102e; --cherry-2:#e0233f; --cream:#f3e6d8; --gold:#d4b26a; --velvet:#3a1e2e;
  --radius:16px; --tap:48px;
  /* échelle de température des niveaux : du plus froid au plus chaud */
  --lvl-chill:#5ec8f2; --lvl-spicy:#f4a07a; --lvl-naughty:#ff6fae; --lvl-dirty:#ff3347; --lvl-hotmess:#c4102f;
  --lvl:var(--lvl-spicy);
}
/* Sombre (par défaut) — Bordeaux reprend exactement le dégradé choisi par Stanley */
[data-theme="bordeaux"]{ --bg1:#020024; --bg2:#b35454; --bg3:#000203; --accent:#e0475b; --accent-2:#ff9966;
  --sa:#4a0f1f; --sb:#8f2440; --sc:#c47b8c; --sd:#e8bcc6; }
[data-theme="velours"]{  --bg1:#0b0420; --bg2:#6b3fd4; --bg3:#05010d; --accent:#8a5cd4; --accent-2:#c9a2ff;
  --sa:#24124a; --sb:#55349e; --sc:#9a7fd6; --sd:#d6c9f4; }
[data-theme="minuit"]{   --bg1:#01021a; --bg2:#2b4fb3; --bg3:#000106; --accent:#4f7cff; --accent-2:#9fb6ff;
  --sa:#0c1840; --sb:#22408c; --sc:#6f8fd6; --sd:#c3d1f4; }
[data-theme="graphite"]{ --bg1:#0d0f12; --bg2:#5a606b; --bg3:#020203; --accent:#9aa3b2; --accent-2:#e6e9ef;
  --sa:#1d2026; --sb:#3b4049; --sc:#7c838f; --sd:#cfd3da; }
[data-mode="sombre"]{
  --gold:var(--accent-2);
  --text:#ffffff; --text-soft:#ffffffaa; --text-faint:#ffffff66;
  --glass:#00000066; --glass-2:#ffffff0d; --border:#ffffff1f; --sheet:#141014; --star:#ffffff;
  --vignette:#000000a6;
}
[data-mode="clair"]{
  --gold:color-mix(in srgb, var(--accent) 80%, black);
  --text:#1b1b22; --text-soft:#1d1418b3; --text-faint:#1d141866;
  --glass:#ffffffb8; --glass-2:#0000000a; --border:#0000001a; --sheet:#fffaf6; --star:#00000033;
  --vignette:#ffffff33;
}
[data-mode="clair"][data-theme="bordeaux"]{ --bg1:#fdeff0; --bg2:#f2b8b8; --bg3:#fff8f6; }
[data-mode="clair"][data-theme="velours"]{  --bg1:#f3eeff; --bg2:#c9b3f5; --bg3:#fbf9ff; }
[data-mode="clair"][data-theme="minuit"]{   --bg1:#eef2ff; --bg2:#b9c9f3; --bg3:#f9fbff; }
[data-mode="clair"][data-theme="graphite"]{ --bg1:#f4f5f7; --bg2:#c9ced6; --bg3:#ffffff; }

*,*::before,*::after{ box-sizing:border-box; }
html,body{ margin:0; height:100%; }
body{
  font-family:var(--font-ui); color:var(--text);
  background:var(--bg1);
  background:linear-gradient(160deg, var(--bg1) 0%, var(--bg2) 50%, var(--bg3) 100%);
  background-attachment:fixed; min-height:100dvh; overflow-x:hidden;
  -webkit-font-smoothing:antialiased; -webkit-tap-highlight-color:transparent;
  transition:color .4s;
}
/* vignette : profondeur + lisibilité au centre */
body::before{
  content:""; position:fixed; inset:0; pointer-events:none; z-index:0;
  background:radial-gradient(120% 80% at 50% 45%, transparent 0%, transparent 45%, var(--vignette) 100%);
}
button{ font-family:inherit; color:inherit; }
svg{ display:block; }
.serif{ font-family:var(--font-display); }

/* =========================================================
   2. FOND ÉTOILÉ (3 couches)
   ========================================================= */
.stars-layer{ position:fixed; top:0; left:0; width:1px; height:1px; border-radius:50%;
  box-shadow:var(--s); pointer-events:none; z-index:0; animation:monter linear infinite; }
.stars-layer::after{ content:""; position:absolute; top:2000px; left:0; width:inherit; height:inherit; border-radius:50%; box-shadow:var(--s); }
#stars{ animation-duration:60s; } #stars2{ width:2px; height:2px; animation-duration:110s; } #stars3{ width:3px; height:3px; animation-duration:160s; }
@keyframes monter{ to{ transform:translateY(-2000px); } }
[data-mode="clair"] .stars-layer{ opacity:.5; }

/* =========================================================
   3. STRUCTURE, BOUTONS COMMUNS
   ========================================================= */
.screen{ position:relative; z-index:1; display:none; min-height:100dvh; max-width:480px; margin:0 auto;
  padding:calc(16px + env(safe-area-inset-top)) 18px calc(20px + env(safe-area-inset-bottom)); flex-direction:column; }
.screen.active{ display:flex; animation:apparaitre .5s ease both; }
@keyframes apparaitre{ from{ opacity:0; transform:translateY(14px);} to{ opacity:1; transform:none;} }
.topbar{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.icon-btn{
  width:var(--tap); height:var(--tap); flex:none; border-radius:16px; border:1px solid var(--border);
  background:var(--glass); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  display:flex; align-items:center; justify-content:center; cursor:pointer; transition:transform .15s;
}
.icon-btn:active{ transform:scale(.93); }
.icon-btn svg{ width:22px; height:22px; }
.panel{ background:var(--glass); border:1px solid var(--border); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  border-radius:var(--radius); padding:18px; margin-bottom:14px; }
.muted{ color:var(--text-soft); font-size:14px; line-height:1.45; }
.label{ font-size:12px; font-weight:800; letter-spacing:1.2px; text-transform:uppercase; color:var(--text-soft); margin:0 0 10px; }
h1.title, h2.title{ font-family:var(--font-ui); font-weight:800; margin:0; line-height:1.15; letter-spacing:-.3px; }

/* Bouton principal : cerise + reflet qui passe */
.btn-primary{
  position:relative; overflow:hidden; width:100%; min-height:58px; border:none; border-radius:18px; cursor:pointer;
  background:var(--accent); color:#fff; font-size:17px; font-weight:800;
  display:flex; align-items:center; justify-content:center; gap:12px;
  box-shadow:0 8px 24px color-mix(in srgb, var(--accent) 40%, transparent); transition:transform .15s, filter .2s, opacity .2s;
}
.btn-primary::after{ content:""; position:absolute; top:0; left:-60%; width:40%; height:100%;
  background:linear-gradient(110deg,transparent,#ffffff33,transparent); animation:reflet 3.2s ease-in-out infinite; }
.btn-primary:active{ transform:scale(.97); }
.btn-primary:disabled{ filter:grayscale(.7); opacity:.55; cursor:default; }
.btn-primary:disabled::after{ display:none; }
.btn-primary svg{ width:24px; height:24px; }
.btn-ghost{
  width:100%; min-height:58px; border-radius:18px; cursor:pointer; font-size:17px; font-weight:700;
  background:var(--glass); border:1px solid var(--border); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  transition:transform .15s, border-color .2s;
}
.btn-ghost:active{ transform:scale(.97); }
.btn-ghost:hover{ border-color:var(--text-faint); }
@keyframes reflet{ 0%{ left:-60%;} 55%,100%{ left:130%;} }

/* Bouton Paramètres (Uiverse « setting-btn », recoloré) */
.setting-btn{ width:var(--tap); height:var(--tap); flex:none; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px;
  background:var(--accent); border-radius:16px; cursor:pointer; border:none;
  box-shadow:0 0 0 2px color-mix(in srgb, var(--accent) 35%, white), 0 6px 18px color-mix(in srgb, var(--accent) 45%, transparent); }
.bar{ width:50%; height:2px; background:#ececec; display:flex; align-items:center; justify-content:center; position:relative; border-radius:2px; }
.bar::before{ content:""; width:2px; height:2px; background:var(--accent); position:absolute; border-radius:50%; border:2px solid #fff; transition:all .3s; box-shadow:0 0 5px #fff; }
.bar1::before{ transform:translateX(-4px); } .bar2::before{ transform:translateX(4px); }
.setting-btn:hover .bar1::before, .setting-btn.open .bar1::before{ transform:translateX(4px); }
.setting-btn:hover .bar2::before, .setting-btn.open .bar2::before{ transform:translateX(-4px); }

.pill-18{ height:34px; padding:0 14px; border-radius:20px; border:1.5px solid var(--accent); color:var(--text);
  font-weight:800; font-size:15px; display:inline-flex; align-items:center; letter-spacing:.5px; background:color-mix(in srgb, var(--accent) 25%, transparent); }

/* =========================================================
   4. ÉCRAN 18+ (case néon Uiverse)
   ========================================================= */
#screen-gate{ justify-content:center; text-align:center; gap:22px; }
.gate-logo{ display:flex; flex-direction:column; align-items:center; gap:10px; }
.wordmark{ font-weight:800; font-size:56px; line-height:1; letter-spacing:.5px; color:var(--text); }
.wordmark i{ color:var(--accent); font-style:normal; }
.tagline{ color:var(--accent-2); font-size:18px; font-weight:600; margin:0; }
[data-mode="clair"] .tagline{ color:var(--gold); }
.neon-checkbox{ --primary:var(--accent); --primary-dark:color-mix(in srgb, var(--accent) 70%, black); --size:30px;
  display:flex; align-items:center; gap:14px; cursor:pointer; user-select:none; min-height:var(--tap); text-align:left; }
.neon-checkbox input{ position:absolute; opacity:0; width:0; height:0; }
.neon-checkbox__frame{ position:relative; width:var(--size); height:var(--size); flex:none; }
.neon-checkbox__box{ position:absolute; inset:0; border-radius:8px; border:2px solid var(--primary-dark); background:#00000055; transition:all .3s; }
.neon-checkbox__check-container{ position:absolute; inset:3px; display:flex; align-items:center; justify-content:center; }
.neon-checkbox__check{ width:100%; height:100%; fill:none; stroke:#fff; stroke-width:3; stroke-linecap:round; stroke-linejoin:round;
  stroke-dasharray:40; stroke-dashoffset:40; transition:stroke-dashoffset .4s cubic-bezier(.16,1,.3,1) .05s; }
.neon-checkbox__glow{ position:absolute; inset:-3px; border-radius:10px; background:var(--primary); filter:blur(10px); opacity:0; transform:scale(1.2); transition:all .4s; }
.neon-checkbox__borders{ position:absolute; inset:0; border-radius:8px; overflow:hidden; }
.neon-checkbox__borders span{ position:absolute; width:40px; height:1px; background:var(--primary); opacity:0; }
.neon-checkbox__borders span:nth-child(1){ top:0; left:-100%; animation:bord1 2s linear infinite; }
.neon-checkbox__borders span:nth-child(2){ top:-100%; right:0; width:1px; height:40px; animation:bord2 2s linear infinite; }
.neon-checkbox__borders span:nth-child(3){ bottom:0; right:-100%; animation:bord3 2s linear infinite; }
.neon-checkbox__borders span:nth-child(4){ bottom:-100%; left:0; width:1px; height:40px; animation:bord4 2s linear infinite; }
.neon-checkbox__effects{ position:absolute; inset:-20px; pointer-events:none; }
.neon-checkbox__particles span{ position:absolute; left:50%; top:50%; width:4px; height:4px; border-radius:50%; background:var(--primary); opacity:0; box-shadow:0 0 6px var(--primary); }
.neon-checkbox__rings .ring{ position:absolute; inset:20px; border-radius:10px; border:1px solid var(--primary); opacity:0; }
.neon-checkbox__sparks span{ position:absolute; left:50%; top:50%; width:16px; height:1px; background:linear-gradient(90deg,var(--primary),transparent); opacity:0; }
.neon-checkbox input:checked + .neon-checkbox__frame .neon-checkbox__box{ border-color:var(--primary); background:color-mix(in srgb, var(--primary) 40%, transparent); }
.neon-checkbox input:checked + .neon-checkbox__frame .neon-checkbox__check{ stroke-dashoffset:0; }
.neon-checkbox input:checked + .neon-checkbox__frame .neon-checkbox__glow{ opacity:.4; }
.neon-checkbox input:checked + .neon-checkbox__frame .neon-checkbox__borders span{ opacity:1; }
.neon-checkbox input:checked + .neon-checkbox__frame .neon-checkbox__particles span{ animation:particule .6s ease-out forwards; }
.neon-checkbox input:checked + .neon-checkbox__frame .neon-checkbox__rings .ring{ animation:anneau .6s ease-out forwards; }
.neon-checkbox input:checked + .neon-checkbox__frame .neon-checkbox__rings .ring:nth-child(2){ animation-delay:.1s; }
.neon-checkbox input:checked + .neon-checkbox__frame .neon-checkbox__rings .ring:nth-child(3){ animation-delay:.2s; }
.neon-checkbox input:checked + .neon-checkbox__frame .neon-checkbox__sparks span{ animation:etincelle .5s ease-out forwards; }
.neon-checkbox input:focus-visible + .neon-checkbox__frame .neon-checkbox__box{ outline:2px solid var(--text); outline-offset:3px; }
.neon-checkbox__text{ font-size:16px; line-height:1.35; font-weight:600; }
@keyframes bord1{ 0%{left:-100%} 50%,100%{left:100%} } @keyframes bord2{ 0%{top:-100%} 50%,100%{top:100%} }
@keyframes bord3{ 0%{right:-100%} 50%,100%{right:100%} } @keyframes bord4{ 0%{bottom:-100%} 50%,100%{bottom:100%} }
@keyframes particule{ 0%{ opacity:1; transform:translate(-50%,-50%) rotate(var(--a)) translateX(0);} 100%{ opacity:0; transform:translate(-50%,-50%) rotate(var(--a)) translateX(26px);} }
@keyframes anneau{ 0%{opacity:.8; transform:scale(1);} 100%{opacity:0; transform:scale(2);} }
@keyframes etincelle{ 0%{ opacity:1; transform:rotate(var(--a)) translateX(10px);} 100%{ opacity:0; transform:rotate(var(--a)) translateX(30px) scaleX(.3);} }
.gate-box{ text-align:left; }

/* =========================================================
   5. ACCUEIL — interrupteur cerise (velours → rouge cerise)
   ========================================================= */
#screen-home .hero{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:26px; text-align:center; }
.cherry-switch{ position:relative; width:206px; height:94px; border-radius:60px; border:none; cursor:pointer; padding:0;
  background:var(--velvet); box-shadow:inset 0 2px 10px #0008, 0 0 0 1px #ffffff14;
  transition:background .6s cubic-bezier(.6,0,.2,1), box-shadow .6s; }
.cherry-switch.on{ background:var(--accent);
  box-shadow:inset 0 2px 8px #0005, 0 0 0 1px #ffffff22, 0 0 60px color-mix(in srgb, var(--accent) 55%, transparent); }
.cherry-switch .knob{ position:absolute; top:9px; left:9px; width:76px; height:76px; border-radius:50%; background:#fff;
  box-shadow:0 6px 18px #0007; display:flex; align-items:center; justify-content:center;
  transition:left .6s cubic-bezier(.65,-0.2,.25,1.25), transform .6s; }
.cherry-switch.on .knob{ left:calc(100% - 85px); transform:rotate(360deg); }
.cherry-switch .knob svg{ width:52px; height:52px; }
.cherry-switch::after{ content:""; position:absolute; inset:-8px; border-radius:70px; border:1px solid var(--accent); opacity:0; }
.cherry-switch.on::after{ animation:halo 2.8s ease-out infinite; }
@keyframes halo{ 0%{ opacity:.9; transform:scale(1);} 100%{ opacity:0; transform:scale(1.25);} }
.home-actions{ display:grid; gap:14px; }
.link-gold{ background:none; border:none; cursor:pointer; color:var(--gold); font-weight:700; font-size:16px;
  display:flex; align-items:center; justify-content:center; gap:10px; margin:6px auto 0; min-height:var(--tap); }
.link-gold svg{ width:22px; height:22px; }

/* =========================================================
   6. CRÉER UNE PARTIE
   ========================================================= */
.seg{ display:flex; border:1px solid var(--border); border-radius:14px; overflow:hidden; background:var(--glass-2); }
.seg button{ flex:1; min-height:46px; border:none; background:transparent; font-weight:800; cursor:pointer; font-size:15px; transition:background .25s; }
.seg button.on{ background:var(--accent); color:#fff; }
.chips{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{ min-height:40px; padding:0 14px; border-radius:22px; font-size:14px; font-weight:700; cursor:pointer;
  border:1px solid var(--chip, var(--border)); background:transparent; display:inline-flex; align-items:center; gap:8px; }
.chip .dot{ width:9px; height:9px; border-radius:50%; background:var(--chip); }
.chip.on{ background:var(--chip, var(--accent)); color:#160a0e; border-color:transparent; }
.chip.on .dot{ background:#160a0e; }
.level-sub{ margin-top:10px; font-size:14px; color:var(--text-soft); min-height:20px; }
.counter{ display:flex; align-items:center; width:fit-content; }
.counter button{ width:var(--tap); height:var(--tap); border:1px solid var(--border); background:var(--glass-2); cursor:pointer; display:flex; align-items:center; justify-content:center; }
.counter button:first-child{ border-radius:14px 0 0 14px; } .counter button:last-child{ border-radius:0 14px 14px 0; }
.counter button:active{ background:var(--accent); }
.counter output{ width:62px; height:var(--tap); display:flex; align-items:center; justify-content:center; border-top:1px solid var(--border); border-bottom:1px solid var(--border); font-size:20px; font-weight:800; }
.row-between{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.code-box{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.code{ font-size:38px; font-weight:800; letter-spacing:8px; }
.btn-small{ min-height:44px; padding:0 16px; border-radius:14px; border:1px solid var(--border); background:var(--glass-2); font-weight:800; cursor:pointer; display:inline-flex; align-items:center; gap:8px; }
.btn-small svg{ width:18px; height:18px; }
.players{ display:grid; gap:10px; margin-top:12px; }
.player-input{ width:100%; min-height:var(--tap); padding:0 14px; font-size:16px; color:var(--text); background:var(--glass-2);
  border:1px solid var(--border); border-radius:14px; animation:apparaitre .3s ease both; font-family:inherit; }
.player-input:focus{ outline:none; border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.player-input::placeholder{ color:var(--text-faint); }
/* bouton glissant (Uiverse « switch ») */
.start-wrap{ display:flex; justify-content:center; margin:8px 0 4px; }
.start-switch{ font-size:16px; position:relative; display:inline-block; width:250px; height:60px; color:#fff; }
.start-switch input{ display:none; }
.start-switch .slider{ position:absolute; cursor:pointer; inset:0; background:#313033; transition:all .4s; border-radius:30px; overflow:hidden; box-shadow:inset 0 0 0 1px #ffffff1f; }
.start-switch .slider::after{ content:""; position:absolute; inset:0; width:40%; background:linear-gradient(90deg,transparent,#ffffff22,transparent); animation:reflet2 2.4s ease-in-out infinite; }
.start-switch .title{ position:absolute; top:50%; left:calc(50% + 26px); transform:translate(-50%,-50%); font-weight:800; transition:all .4s; user-select:none; white-space:nowrap; }
.start-switch .ball{ background:#fff; height:50px; width:50px; border-radius:50%; position:absolute; left:5px; top:5px; transition:.4s;
  display:flex; align-items:center; justify-content:center; color:var(--accent); box-shadow:0 4px 18px #0006; }
.start-switch .ball svg{ width:30px; height:30px; }
.start-switch input:checked + .slider{ background:var(--accent); }
.start-switch input:checked + .slider .title{ left:calc(50% - 26px); }
.start-switch input:checked + .slider .ball{ left:calc(100% - 55px); transform:rotate(360deg); box-shadow:none; outline:6px solid #ffffff47; }
@keyframes reflet2{ 0%{transform:translateX(-100%)} 60%,100%{transform:translateX(260%)} }
.hint{ text-align:center; min-height:20px; font-size:13px; color:var(--gold); margin:6px 0 0; }

/* =========================================================
   7. PARTIE — LA ROUE
   ========================================================= */
#screen-game{ padding-bottom:calc(16px + env(safe-area-inset-bottom)); }
.mode-pill{ flex:1; min-width:0; height:var(--tap); border-radius:24px; border:1px solid var(--border); background:var(--glass);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); display:flex; align-items:center; justify-content:center; gap:10px;
  font-weight:700; font-size:15px; cursor:pointer; padding:0 12px; white-space:nowrap; overflow:hidden; }
.mode-pill .dot{ width:10px; height:10px; border-radius:50%; background:var(--lvl); box-shadow:0 0 10px var(--lvl); flex:none; }
.mode-pill span{ overflow:hidden; text-overflow:ellipsis; }
.mode-pill svg{ width:16px; height:16px; flex:none; opacity:.7; }
.round-bar{ display:flex; align-items:center; justify-content:space-between; margin:14px 0 6px; gap:10px; }
.round-pills{ display:flex; align-items:center; gap:6px; }
.round-pills svg{ width:20px; height:20px; color:var(--lvl); margin-right:4px; }
.round-pills i{ width:22px; height:6px; border-radius:4px; background:var(--glass-2); box-shadow:inset 0 0 0 1px var(--border); transition:background .4s, box-shadow .4s; }
.round-pills i.done{ background:var(--lvl); box-shadow:0 0 8px var(--lvl); }
.round-info{ display:flex; align-items:center; gap:10px; font-size:14px; color:var(--text-soft); font-weight:600; }
.points{ height:36px; padding:0 12px; border-radius:20px; border:1.5px solid var(--gold); color:var(--gold); font-weight:800; display:inline-flex; align-items:center; gap:6px; }
.points svg{ width:16px; height:16px; }
.points.bump{ animation:pop .45s ease; }
.turn-head{ text-align:center; margin:6px 0 2px; min-height:76px; }
.turn-head h1{ font-size:clamp(22px, 6.6vw, 28px); }
.turn-head p{ margin:8px auto 0; max-width:300px; font-size:14px; color:var(--text-soft); }
.turn-head .swap{ animation:apparaitre .45s ease both; }

.stage{ flex:1; display:flex; align-items:center; justify-content:center; position:relative; transition:filter .6s, transform .6s, opacity .6s; }
.stage.dimmed{ filter:blur(6px) brightness(.55); transform:scale(.93); }
.wheel-wrap{ position:relative; width:min(88vw, 370px); aspect-ratio:1; touch-action:none; }
.wheel-glow{ position:absolute; inset:-14%; border-radius:50%; background:radial-gradient(circle, color-mix(in srgb, var(--lvl) 35%, transparent) 0%, transparent 62%);
  filter:blur(10px); opacity:.55; animation:respirer 4s ease-in-out infinite; pointer-events:none; }
.stage.spinning .wheel-glow{ opacity:.9; animation-duration:.8s; }
@keyframes respirer{ 0%,100%{ transform:scale(.96);} 50%{ transform:scale(1.04);} }
#wheel{ position:relative; width:100%; height:100%; overflow:visible; }
#wheel .seg-g{ transition:opacity .45s, filter .45s; transform-box:view-box; transform-origin:0 0; }
#wheel .seg-g path.slice{ stroke:#0b0609; stroke-width:1.2; }
#wheel .seg-g text{ font-family:var(--font-ui); font-weight:700; font-size:10.5px; letter-spacing:.2px; pointer-events:none; }
#wheel .seg-g.done path.slice{ filter:saturate(.25) brightness(.55); }
#wheel .seg-g.done text{ opacity:.45; text-decoration:line-through; }
#wheel .seg-g.absent{ opacity:.35; }
#wheel.landed .seg-g:not(.win){ opacity:.3; filter:saturate(.4); }
#wheel .seg-g.win{ filter:drop-shadow(0 0 6px var(--lvl)) drop-shadow(0 0 14px var(--lvl)); }
#wheel .seg-g.win path.slice{ stroke:#fff; stroke-width:1.6; }
#wheel .bulb{ fill:#5a4045; transition:fill .12s; }
#wheel .bulb.lit{ fill:var(--accent-2); filter:drop-shadow(0 0 2px var(--accent-2)); }
.bottle{ position:absolute; left:50%; top:50%; width:22%; height:78%; transform:translate(-50%,-50%) rotate(var(--rot,0deg));
  transform-origin:50% 50%; pointer-events:none; filter:drop-shadow(0 8px 14px #000a); will-change:transform; }
.bottle svg{ width:100%; height:100%; }
.hub{ position:absolute; left:50%; top:50%; width:15%; aspect-ratio:1; transform:translate(-50%,-50%); border-radius:50%;
  background:radial-gradient(circle at 35% 30%, #3a2a30, #0b0609); box-shadow:0 0 0 2px #00000080; }
.spark{ position:fixed; width:6px; height:6px; border-radius:50%; background:var(--accent-2); box-shadow:0 0 8px var(--accent-2); pointer-events:none; z-index:40; }
.player-chips{ display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin:14px 0 14px; }
.pchip{ min-height:38px; padding:0 14px; border-radius:20px; border:1px solid var(--border); background:var(--glass); font-weight:700; font-size:15px; display:inline-flex; align-items:center; transition:all .3s; }
.pchip.turn{ border-color:var(--accent); background:var(--accent); color:#fff; }
.pchip.done{ opacity:.45; text-decoration:line-through; }
.gesture-hint{ text-align:center; font-size:14px; color:var(--text-soft); margin:10px 0 0; }
#spinBtn svg{ transition:transform .6s; }
#spinBtn:not(:disabled):active svg{ transform:rotate(-180deg); }

/* =========================================================
   8. LA CARTE (validée par Stanley) — jaillit de la case désignée
   ========================================================= */
.card-layer{ position:fixed; inset:0; z-index:30; display:none; flex-direction:column; align-items:center; justify-content:center; gap:16px;
  padding:calc(20px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom)); }
.card-layer.open{ display:flex; }
.card-layer::before{ content:""; position:absolute; inset:0; background:radial-gradient(circle at 50% 45%, #00000033, #000000b3); opacity:0; transition:opacity .5s; }
.card-layer.open::before{ opacity:1; }
.qcard{ --lvl:var(--lvl-spicy); position:relative; width:min(88vw, 360px); height:min(72vh, 590px); perspective:1400px; cursor:pointer; outline:none; }
.qcard .content{ position:relative; width:100%; height:100%; transform-style:preserve-3d; transition:transform .75s cubic-bezier(.3,1.35,.5,1);
  border-radius:22px; }
.qcard.is-flipped .content{ transform:rotateY(180deg); }
.qcard .face{ position:absolute; inset:0; backface-visibility:hidden; -webkit-backface-visibility:hidden; border-radius:22px; overflow:hidden;
  color:#fff; background:#151515; box-shadow:0 0 24px 2px #000000cc; }
/* dos : bordure lumineuse tournante (bug d'origine corrigé) */
.qcard .cover{ display:flex; align-items:center; justify-content:center; }
.qcard .cover::before{ position:absolute; content:""; width:42%; height:160%;
  background:linear-gradient(90deg, transparent, var(--lvl), var(--lvl), var(--lvl), var(--lvl), transparent); animation:rotation_481 5s infinite linear; }
.qcard.ready .cover::before{ animation-duration:2.2s; }
.qcard .cover-content{ position:absolute; inset:3px; background:#151515; border-radius:20px;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; text-align:center; padding:26px; }
.cover-icon{ color:var(--lvl); filter:drop-shadow(0 0 14px var(--lvl)); animation:battre 1.6s ease-in-out infinite; }
.cover-icon svg{ width:62px; height:62px; }
.cover-for{ font-size:12px; letter-spacing:2px; text-transform:uppercase; color:#ffffff99; font-weight:800; }
.cover-name{ font-size:clamp(38px, 11vw, 50px); font-weight:800; line-height:1; color:#fff; }
.cover-meta{ display:flex; gap:8px; flex-wrap:wrap; justify-content:center; }
.cover-wait{ margin-top:8px; font-size:14px; color:#ffffffb3; display:flex; align-items:center; gap:10px; min-height:22px; }
.dots{ display:inline-flex; gap:4px; } .dots i{ width:6px; height:6px; border-radius:50%; background:var(--lvl); animation:dot 1s infinite ease-in-out; }
.dots i:nth-child(2){ animation-delay:.15s; } .dots i:nth-child(3){ animation-delay:.3s; }
@keyframes dot{ 0%,100%{ transform:translateY(0); opacity:.4;} 50%{ transform:translateY(-5px); opacity:1;} }
.cover-tap{ display:none; margin-top:8px; padding:10px 18px; border-radius:30px; background:var(--lvl); color:#160a0e; font-weight:800; font-size:14px; animation:pulse-tap 1.6s ease-in-out infinite; }
.qcard.ready .cover-tap{ display:inline-block; } .qcard.ready .cover-wait{ display:none; }
@keyframes pulse-tap{ 0%,100%{ box-shadow:0 0 0 0 color-mix(in srgb, var(--lvl) 60%, transparent);} 50%{ box-shadow:0 0 0 12px transparent;} }
@keyframes rotation_481{ from{ transform:rotateZ(0deg);} to{ transform:rotateZ(360deg);} }
@keyframes battre{ 0%,100%{ transform:scale(1);} 50%{ transform:scale(1.12);} }
/* face révélée */
.qcard .reveal{ transform:rotateY(180deg); }
.orbs{ position:absolute; inset:0; overflow:hidden; }
.circle{ position:absolute; border-radius:50%; filter:blur(24px); animation:floating 2.6s infinite linear; width:130px; height:130px; left:-30px; top:20px; background:color-mix(in srgb, var(--lvl) 80%, white); opacity:.8; }
.circle.c2{ width:200px; height:200px; left:auto; right:-70px; top:auto; bottom:-40px; background:var(--lvl); animation-delay:-.8s; }
.circle.c3{ width:40px; height:40px; left:62%; top:16%; background:#ff2233; animation-delay:-1.8s; }
@keyframes floating{ 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(12px);} }
.reveal-content{ position:absolute; inset:0; padding:16px; display:flex; flex-direction:column; gap:12px; }
.badges{ display:flex; justify-content:space-between; gap:8px; }
.badge{ background:#00000066; padding:6px 12px; border-radius:20px; font-size:12px; font-weight:800; backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px); display:inline-flex; align-items:center; gap:6px; }
.badge.lvl{ background:var(--lvl); color:#160a0e; }
.description{ flex:1; min-height:0; overflow:auto; box-shadow:0 0 14px 6px #00000088; padding:16px; background:#000000ad;
  backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); border-radius:16px; display:flex; flex-direction:column; gap:12px; }
.d-player{ font-size:13px; color:var(--lvl); font-weight:800; text-transform:uppercase; letter-spacing:.8px; }
.consent{ display:flex; gap:10px; align-items:flex-start; font-size:13px; line-height:1.4; color:#ffffffcc; padding:10px 12px; border-radius:12px; background:#ffffff0d; border:1px solid #ffffff22; }
.consent svg{ width:18px; height:18px; flex:none; margin-top:1px; color:var(--lvl); }
.props{ display:grid; gap:8px; }
.prop{ position:relative; text-align:left; width:100%; padding:13px 14px 13px 44px; border-radius:14px; border:1px solid #ffffff22; background:#ffffff0d;
  color:#fff; font-size:15px; line-height:1.35; font-weight:600; cursor:pointer; transition:all .25s; animation:apparaitre .4s ease both; }
.prop::before{ content:""; position:absolute; left:14px; top:50%; width:18px; height:18px; margin-top:-9px; border-radius:50%; border:2px solid #ffffff66; transition:all .25s; }
.prop.on{ border-color:var(--lvl); background:color-mix(in srgb, var(--lvl) 18%, transparent); box-shadow:0 0 18px color-mix(in srgb, var(--lvl) 35%, transparent); }
.prop.on::before{ border-color:var(--lvl); background:var(--lvl); box-shadow:inset 0 0 0 3px #151515; }
.prop.custom{ font-style:italic; }
.prop .tag{ display:block; font-size:11px; font-style:normal; color:var(--lvl); font-weight:800; letter-spacing:.6px; text-transform:uppercase; margin-bottom:2px; }
/* chrono */
.chrono{ display:none; flex-direction:column; align-items:center; gap:14px; text-align:center; margin:auto 0; }
.qcard.timing .chrono{ display:flex; } .qcard.timing .props, .qcard.timing .consent{ display:none; }
.ring{ position:relative; width:132px; height:132px; }
.ring svg.track{ width:100%; height:100%; transform:rotate(-90deg); }
.ring circle{ fill:none; stroke-width:7; }
.ring .bg{ stroke:#ffffff1a; }
.ring .fg{ stroke:var(--lvl); stroke-linecap:round; filter:drop-shadow(0 0 6px var(--lvl)); transition:stroke .3s; }
.ring.urgent .fg{ stroke:var(--cherry-2); }
.ring .num{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:44px; font-weight:800; }
.ring .lottie{ position:absolute; inset:14px; display:none; }
.ring.urgent.has-lottie .lottie{ display:block; animation:apparaitre .25s ease both; }
.ring.urgent.has-lottie .num{ display:none; }
.ring.urgent{ animation:battre 1s ease-in-out infinite; }
.chosen-text{ font-size:clamp(18px, 5.2vw, 22px); line-height:1.35; font-weight:700; }
.time-up{ font-size:26px; font-weight:800; color:#fff; }
.choices{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.choice{ min-height:58px; border-radius:16px; border:none; cursor:pointer; font-weight:800; font-size:15px; display:flex; align-items:center; justify-content:center; gap:8px; color:#160a0e; transition:transform .15s, opacity .2s; }
.choice:active{ transform:scale(.96); }
.choice:disabled{ opacity:.45; cursor:default; }
.choice svg{ width:26px; height:26px; flex:none; }
.choice.yes{ background:var(--lvl); }
.choice.no{ background:#2a2a2e; color:#fff; border:1px solid #ffffff22; }
.card-foot{ color:#ffffff88; font-size:12px; text-align:center; }
.card-status{ position:relative; font-size:14px; color:#ffffffcc; text-align:center; min-height:20px; }

/* =========================================================
   9. AVIS (cerises) + PREMIUM
   ========================================================= */
.rating{ display:flex; flex-direction:row-reverse; justify-content:center; gap:4px; margin:8px 0 12px; }
.rating input{ display:none; }
.rating label{ width:48px; height:48px; cursor:pointer; background:currentColor; color:#ffffff2e;
  -webkit-mask:var(--cherry-mask) center/contain no-repeat; mask:var(--cherry-mask) center/contain no-repeat; transition:color .2s, transform .2s;
  --cherry-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='22' cy='31' r='13'/%3E%3Cpath d='M24 19c2-7 7-12 13-14l1.6 2.6c-5 2-9 6-11 12z'/%3E%3Cpath d='M33 6c4-3 9-3 12 0-3 4-8 5-12 0z'/%3E%3C/svg%3E"); }
[data-mode="clair"] .rating label{ color:#00000022; }
.rating label:hover, .rating label:hover ~ label, .rating input:checked ~ label{ color:var(--cherry-2); }
.rating input:checked + label{ animation:pop .35s ease; }
@keyframes pop{ 50%{ transform:scale(1.25);} }
.field{ width:100%; min-height:var(--tap); padding:12px 14px; font:inherit; font-size:16px; color:var(--text); background:var(--glass-2); border:1px solid var(--border); border-radius:14px; }
textarea.field{ min-height:96px; resize:vertical; }
.field:focus{ outline:none; border-color:var(--accent); }
.field::placeholder{ color:var(--text-faint); }
.stack{ display:grid; gap:10px; }
.thanks{ text-align:center; font-weight:700; color:var(--gold); min-height:22px; margin:8px 0 0; }
.input-group{ display:flex; width:100%; }
.input-group .field{ border-radius:14px 0 0 14px; border-right:none; border-color:var(--accent); }
.button--submit{ min-height:52px; padding:0 18px; border:none; border-radius:0 14px 14px 0; background:var(--accent); color:#fff; font-size:15px; font-weight:800; cursor:pointer; }
.input-group.error .field{ border-color:#ff4d4d; animation:secouer .35s; }
@keyframes secouer{ 0%,100%{transform:none} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }
.soon{ display:inline-flex; align-items:center; gap:8px; padding:7px 14px; border-radius:20px; background:var(--glass); border:1px solid var(--border); font-size:13px; font-weight:800; }
.soon::before{ content:""; width:8px; height:8px; border-radius:50%; background:var(--cherry-2); animation:pulse 1.4s infinite; }
@keyframes pulse{ 0%{ box-shadow:0 0 0 0 var(--cherry-2);} 100%{ box-shadow:0 0 0 10px transparent;} }
.wrapper{ width:100%; height:330px; position:relative; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.inner{ --w:116px; --h:164px; --translateZ:calc((var(--w) + var(--h)) * .62); --rotateX:-12deg; --perspective:1000px;
  position:absolute; width:var(--w); height:var(--h); top:calc(50% - var(--h) / 2 - 8px); left:calc(50% - var(--w) / 2);
  transform-style:preserve-3d; transform:perspective(var(--perspective)); animation:rotating 22s linear infinite; }
.wrapper:active .inner{ animation-play-state:paused; }
@keyframes rotating{ from{ transform:perspective(var(--perspective)) rotateX(var(--rotateX)) rotateY(0);} to{ transform:perspective(var(--perspective)) rotateX(var(--rotateX)) rotateY(1turn);} }
.pcard{ position:absolute; inset:0; border:2px solid rgba(var(--color-card)); border-radius:16px; overflow:hidden; background:#0d0a0c;
  transform:rotateY(calc((360deg / var(--quantity)) * var(--index))) translateZ(var(--translateZ)); backface-visibility:hidden; -webkit-backface-visibility:hidden; }
.pcard .img{ width:100%; height:100%; padding:12px 8px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; color:#fff; text-align:center;
  background:#0000 radial-gradient(circle, rgba(var(--color-card),.2) 0%, rgba(var(--color-card),.6) 80%, rgba(var(--color-card),.9) 100%); }
.pcard svg{ width:28px; height:28px; filter:drop-shadow(0 0 8px rgba(var(--color-card),1)); }
.pcard b{ font-size:16px; font-weight:800; letter-spacing:.5px; }
.pcard small{ font-size:11px; line-height:1.3; opacity:.9; }
.pcard .price{ font-weight:800; font-size:14px; margin-top:2px; }
.pro-button{ position:relative; overflow:hidden; width:100%; min-height:60px; display:flex; align-items:center; justify-content:center; gap:12px; border:none; border-radius:18px; cursor:pointer;
  font-size:18px; font-weight:900; letter-spacing:1px; text-transform:uppercase; color:#2b1a00;
  background:linear-gradient(135deg,#fff1a8 0%,#ffcf4a 35%,#e8a317 70%,#ffd970 100%); box-shadow:0 8px 26px #ffbf3a55, inset 0 1px 0 #ffffffaa; }
.pro-button svg{ width:30px; height:20px; fill:#2b1a00; }
.pro-button::after{ content:""; position:absolute; top:0; left:-60%; width:40%; height:100%; background:linear-gradient(110deg,transparent,#ffffffcc,transparent); animation:reflet 3s ease-in-out infinite; }
.pro-button:active{ transform:scale(.97); }

/* =========================================================
   10. FEUILLES (Ton écran, choix du niveau, confirmations)
   ========================================================= */
.sheet-backdrop{ position:fixed; inset:0; background:#000a; z-index:50; opacity:0; pointer-events:none; transition:opacity .3s; }
.sheet-backdrop.open{ opacity:1; pointer-events:auto; }
.sheet{ position:fixed; left:50%; bottom:0; z-index:51; width:min(480px,100%); max-height:88dvh; overflow:auto;
  transform:translate(-50%,105%); transition:transform .38s cubic-bezier(.2,.8,.2,1); background:var(--sheet); color:var(--text);
  border-radius:24px 24px 0 0; padding:10px 20px calc(24px + env(safe-area-inset-bottom)); box-shadow:0 -10px 40px #0007; }
.sheet.open{ transform:translate(-50%,0); }
.sheet .grab{ width:44px; height:5px; border-radius:4px; background:var(--border); margin:0 auto 14px; }
.sheet h3{ font-size:22px; font-weight:800; margin:0 0 10px; }
.srow{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0; border-bottom:1px solid var(--border); min-height:60px; }
.srow:last-child{ border-bottom:none; }
.swatches{ display:flex; gap:10px; }
.swatch{ width:36px; height:36px; border-radius:50%; cursor:pointer; border:3px solid transparent; outline:2px solid var(--border); padding:0; }
.swatch[data-c="bordeaux"]{ background:linear-gradient(135deg,#020024,#b35454); }
.swatch[data-c="velours"]{ background:linear-gradient(135deg,#0b0420,#6b3fd4); }
.swatch[data-c="minuit"]{ background:linear-gradient(135deg,#01021a,#2b4fb3); }
.swatch[data-c="graphite"]{ background:linear-gradient(135deg,#0d0f12,#5a606b); }
.swatch.on{ border-color:var(--sheet); outline:2px solid var(--text); }
.seg.small button{ min-width:56px; min-height:38px; font-size:13px; }
.mini-switch{ position:relative; width:52px; height:30px; flex:none; }
.mini-switch input{ display:none; }
.mini-switch span{ position:absolute; inset:0; border-radius:30px; background:#8886; transition:.25s; cursor:pointer; }
.mini-switch span::before{ content:""; position:absolute; width:24px; height:24px; left:3px; top:3px; border-radius:50%; background:#fff; transition:.25s; box-shadow:0 2px 6px #0004; }
.mini-switch input:checked + span{ background:var(--accent); }
.mini-switch input:checked + span::before{ transform:translateX(22px); }
/* interrupteur Jour/Nuit (Uiverse « toggle-switch ») */
.lum{ display:flex; align-items:center; gap:10px; }
.auto-chip{ min-height:34px; padding:0 12px; border-radius:18px; border:1px solid var(--border); background:transparent; font-weight:800; font-size:12px; cursor:pointer; }
.auto-chip.on{ background:var(--accent); color:#fff; border-color:transparent; }
.toggle-switch{ position:relative; width:80px; height:40px; --light:#d8dbe0; --dark:#28292c; }
.switch-label{ position:absolute; width:100%; height:40px; background:var(--dark); border-radius:20px; cursor:pointer; border:3px solid var(--dark); }
.toggle-switch .checkbox{ display:none; }
.toggle-switch .slider{ position:absolute; width:100%; height:100%; border-radius:20px; transition:.3s; }
.toggle-switch .checkbox:checked ~ .slider{ background:var(--light); }
.toggle-switch .slider::before{ content:""; position:absolute; top:6px; left:7px; width:22px; height:22px; border-radius:50%; box-shadow:inset 10px -4px 0 0 var(--light); background:var(--dark); transition:.3s; }
.toggle-switch .checkbox:checked ~ .slider::before{ transform:translateX(40px); background:#ffcc33; box-shadow:0 0 12px #ffcc33aa; }
.sheet-links{ display:grid; gap:8px; margin-top:12px; }
.sheet-link{ min-height:52px; border-radius:14px; border:1px solid var(--border); background:var(--glass-2); font-weight:700; font-size:15px; display:flex; align-items:center; gap:12px; padding:0 14px; cursor:pointer; text-align:left; }
.sheet-link svg{ width:20px; height:20px; color:var(--accent); }
.level-list{ display:grid; gap:8px; }
.level-opt{ display:flex; align-items:center; gap:12px; min-height:58px; padding:0 14px; border-radius:14px; border:1px solid var(--border); background:var(--glass-2); cursor:pointer; text-align:left; }
.level-opt .dot{ width:12px; height:12px; border-radius:50%; background:var(--chip); box-shadow:0 0 10px var(--chip); flex:none; }
.level-opt b{ display:block; font-size:16px; } .level-opt small{ color:var(--text-soft); font-size:13px; }
.level-opt.on{ border-color:var(--chip); background:color-mix(in srgb, var(--chip) 14%, transparent); }
.confirm-actions{ display:grid; gap:10px; margin-top:16px; }

.toast{ position:fixed; left:50%; top:calc(14px + env(safe-area-inset-top)); transform:translate(-50%,-160%); z-index:60; background:var(--sheet); color:var(--text);
  padding:12px 18px; border-radius:14px; box-shadow:0 8px 30px #0007; font-weight:700; transition:transform .35s; max-width:90vw; text-align:center; }
.toast.show{ transform:translate(-50%,0); }
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{ animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}

/* =========================================================
   11. LE JEU RÉEL : écrans et composants absents de la référence, dans le même style
   (fond étoilé, panneaux en verre dépoli, police système en gras, boutons pleins, pastilles colorées)
   ========================================================= */
/* ---------- 11.1 Base ---------- */
[hidden]{ display:none !important; }
html{ color-scheme:dark; } html[data-mode="clair"]{ color-scheme:light; }
body{ font-size:15px; line-height:1.45; }
button, input, textarea{ font:inherit; color:inherit; }
button{ cursor:pointer; -webkit-user-select:none; user-select:none; } button:disabled{ cursor:default; }
h1, h2, h3{ font-family:var(--font-ui); font-weight:800; margin:0; line-height:1.15; letter-spacing:-.3px; text-wrap:balance; }
h1{ font-size:28px; } h2{ font-size:22px; } h3{ font-size:18px; }
a{ color:inherit; }
:focus-visible{ outline:2px solid var(--text); outline-offset:3px; }
#app{ position:relative; z-index:1; }
#confetti{ position:fixed; inset:0; width:100%; height:100%; z-index:40; pointer-events:none; }
.screen.active.still{ animation:none; }
.screen > form{ display:contents; }
/* Anciens jetons de l'application : ils suivent ceux du kit */
:root{
  --ease:cubic-bezier(.16, 1, .3, 1);
  --bg:var(--bg1); --bg-2:var(--sheet); --surface:var(--glass); --surface-2:var(--glass-2); --surface-3:color-mix(in srgb, var(--text) 16%, transparent);
  --line:var(--border); --line-2:color-mix(in srgb, var(--text) 28%, transparent);
  --fg:var(--text); --muted:var(--text-soft); --faint:var(--text-soft);
  --brand:var(--accent); --rose:var(--gold); --champ:var(--gold); --champ-ink:var(--gold); --btn:var(--accent); --btn-ink:#fff; --sel:var(--accent);
}
.lv-chill{ --lc:var(--lvl-chill); } .lv-spicy{ --lc:var(--lvl-spicy); } .lv-naughty{ --lc:var(--lvl-naughty); } .lv-dirty{ --lc:var(--lvl-dirty); } .lv-hotmess{ --lc:var(--lvl-hotmess); }

/* ---------- 11.2 Textes et petits éléments ---------- */
.small{ margin:0; color:var(--text-soft); font-size:13px; line-height:1.45; }
.lead{ margin:0; color:var(--text-soft); font-size:15px; }
.head{ display:flex; flex-direction:column; gap:6px; margin-bottom:12px; }
.grow{ flex:1; }
.stack{ display:grid; gap:10px; }
.duo{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; }
.row-links{ display:inline-flex; gap:16px; flex-wrap:wrap; justify-content:flex-end; }
.eyebrow{ display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:800; letter-spacing:1.2px; text-transform:uppercase; color:var(--gold); }
.eyebrow svg{ width:15px; height:15px; }
.spacer{ width:var(--tap); flex:none; }
.notice{ text-align:center; font-size:15px; font-weight:700; padding:12px 14px; margin-bottom:14px; border-radius:var(--radius); background:var(--glass); border:1px solid var(--border);
  backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); }
.legal-links{ margin:12px 0 0; font-size:13px; color:var(--text-soft); }
.legal-links a{ color:var(--text-soft); text-underline-offset:3px; }
.link, .link-btn{ border:0; background:none; padding:0; color:var(--gold); font-weight:700; text-decoration:underline; text-underline-offset:4px; cursor:pointer; }
.link{ min-height:44px; padding:8px 0; align-self:center; }
.link svg{ width:14px; height:14px; display:inline-block; vertical-align:-2px; margin-right:4px; }
.link-gold svg, .btn-primary svg, .btn-ghost svg, .icon-btn svg, .chip svg, .counter svg, .sheet-link svg{ flex:none; }
.rules{ margin:0; padding:0; list-style:none; display:grid; gap:10px; }
.rules li{ display:flex; gap:10px; color:var(--text-soft); font-size:14px; line-height:1.45; }
.rules li svg{ width:18px; height:18px; flex:none; margin-top:2px; color:var(--accent); }
.tag{ display:block; font-size:11px; font-style:normal; color:var(--text-soft); font-weight:800; letter-spacing:.6px; text-transform:uppercase; margin-top:4px; }
.tag-gold{ color:var(--gold) !important; }
.shake{ animation:secouer .35s; }

/* ---------- 11.3 Boutons hérités : mêmes formes que la référence ---------- */
.btn{ position:relative; overflow:hidden; width:100%; min-height:58px; border-radius:18px; cursor:pointer; font-size:17px; font-weight:800; padding:0 18px;
  display:flex; align-items:center; justify-content:center; gap:12px; transition:transform .15s, filter .2s, opacity .2s, border-color .2s; }
.btn:active:not(:disabled){ transform:scale(.97); }
.btn svg{ width:22px; height:22px; flex:none; }
.btn-quiet, .btn-ghost{ color:var(--text); }
.btn-quiet{ background:var(--glass); border:1px solid var(--border); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); font-weight:700; }
.btn-quiet:hover{ border-color:var(--text-faint); }
.btn-quiet.warn, .btn-ghost.warn{ border-color:var(--accent); }
.btn-quiet:disabled, .btn-ghost:disabled{ opacity:.5; }
.btn.btn-sm{ width:auto; min-height:44px; padding:0 16px; font-size:15px; border-radius:14px; }
.btn-small{ color:var(--text); }
.btn-small:active{ transform:scale(.96); }
.btn-ghost{ display:flex; align-items:center; justify-content:center; gap:12px; color:var(--text); }

/* ---------- 11.4 Champs (16 px : pas de zoom sur iPhone) ---------- */
.fld{ display:grid; gap:8px; margin-top:14px; }
.fld > label, .fld > .label{ font-size:12px; font-weight:800; letter-spacing:1.2px; text-transform:uppercase; color:var(--text-soft); margin:0; }
.field:focus{ box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.field[aria-invalid="true"]{ border-color:#ff4d4d; }
textarea.field{ resize:none; line-height:1.4; }
.player-input.code-input{ text-align:center; letter-spacing:.45em; font-size:26px; font-weight:800; text-transform:uppercase; min-height:58px; padding-left:calc(14px + .45em); }
.panel .player-input{ animation:none; }
.input-group .field{ min-width:0; flex:1; }

/* ---------- 11.5 Segments, pastilles, compteur : états du jeu (aria) comme .on ---------- */
.seg button{ color:var(--text); }
.seg button[aria-pressed="true"], .seg button[aria-checked="true"]{ background:var(--accent); color:#fff; }
.seg button:disabled{ cursor:default; }
.seg-full{ width:100%; }
.chip{ color:var(--text); transition:background .25s, color .25s, transform .15s; }
.chip:active{ transform:scale(.96); }
.chip svg{ width:14px; height:14px; }
.chip-ico{ padding-left:12px; }
.durs{ display:flex; border:1px solid var(--border); border-radius:14px; overflow:hidden; background:var(--glass-2); }
.durs button{ flex:1; min-height:46px; border:none; background:transparent; font-weight:800; font-size:15px; color:var(--text); font-variant-numeric:tabular-nums; transition:background .25s; }
.durs button[aria-checked="true"]{ background:var(--accent); color:#fff; }
.counter button{ color:var(--text); padding:0; }
.counter svg{ width:18px; height:18px; }
.counter output.bump, .count-big.bump{ animation:pop .35s ease; }

/* ---------- 11.6 Rejoindre, salon ---------- */
.code-actions{ display:grid; gap:8px; flex:none; justify-items:stretch; }
.code-actions .btn-small{ justify-content:center; }
.code{ line-height:1.1; font-variant-numeric:tabular-nums; }
@media (max-width:380px){ .code{ font-size:32px; letter-spacing:6px; } }
.count-big{ width:62px; height:var(--tap); display:flex; align-items:center; justify-content:center; border:1px solid var(--border); border-radius:14px; font-size:20px; font-weight:800; background:var(--glass-2); }
.player-row{ display:flex; align-items:center; gap:10px; width:100%; min-height:var(--tap); padding:0 14px; font-size:16px; color:var(--text); background:var(--glass-2);
  border:1px solid var(--border); border-radius:14px; }
.player-row.new{ animation:apparaitre .3s ease both; }
.player-row .nm{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:700; }
.player-row .tagx{ font-size:11px; font-weight:800; letter-spacing:.6px; text-transform:uppercase; color:var(--gold); }
.player-row .me-dot{ width:9px; height:9px; border-radius:50%; background:var(--accent); box-shadow:0 0 8px var(--accent); flex:none; }
.player-row.empty{ border-style:dashed; background:transparent; }
.player-row.empty .nm{ color:var(--text-faint); font-weight:500; }
.player-row.away{ opacity:.5; }
.qr{ display:flex; flex-direction:column; align-items:center; gap:8px; margin-top:14px; animation:apparaitre .4s ease both; }
.qr svg{ width:min(56vw, 200px); height:auto; border-radius:16px; }
.cycle-info{ display:flex; align-items:center; justify-content:center; gap:6px; text-align:center; margin:0 0 12px; }
.cycle-info svg{ width:14px; height:14px; flex:none; color:var(--gold); }
.host-adds{ display:grid; gap:10px; padding:18px; margin-bottom:14px; border-radius:var(--radius); background:var(--glass); border:1px solid var(--border);
  backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); }
.start-switch{ touch-action:none; }
.start-switch.dragging .ball{ transition:none; }
.start-switch .ball svg{ width:34px; height:34px; }
.start-switch input:focus-visible + .slider{ outline:2px solid var(--text); outline-offset:3px; }
.hint.shake{ animation:secouer .35s; }

/* ---------- 11.7 Écran de jeu : compléments à la référence ---------- */
.points{ background:none; cursor:pointer; font-size:14px; font-variant-numeric:tabular-nums; }
.points svg{ flex:none; }
.round-pills{ min-width:0; flex:1; }
.round-pills svg{ flex:none; }
.round-pills i{ flex:0 1 22px; min-width:6px; }
.round-info{ flex:none; white-space:nowrap; }
.meta{ display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:28px; margin:2px 0 0; }
.meta[hidden]{ display:none; }
.meta-btn{ position:relative; display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:50%; border:1px solid var(--border); background:var(--glass); color:var(--text); padding:0; }
.meta-btn::after{ content:""; position:absolute; inset:-4px; }
.meta-btn svg{ width:16px; height:16px; }
.heat{ display:inline-flex; align-items:center; gap:4px; height:28px; }
.heat svg{ width:16px; height:16px; color:var(--text-soft); margin-right:2px; }
.heat i{ width:18px; height:5px; border-radius:4px; background:var(--glass-2); box-shadow:inset 0 0 0 1px var(--border); transition:background .4s; }
.heat i.on{ background:var(--gold); box-shadow:none; }
.heat-full{ display:flex; justify-content:center; margin:6px 0; }
.heat-full .heat i{ width:42px; height:11px; border-radius:6px; }
.heat-full .heat i.on{ background:var(--lc, var(--lvl)); }
.heat-full .heat svg{ width:26px; height:26px; color:var(--lc, var(--lvl)); }
.chip-final{ display:inline-flex; align-items:center; gap:6px; height:28px; padding:0 12px; border-radius:16px; background:var(--glass); border:1px solid var(--lvl-hotmess); font-size:13px; font-weight:800; }
.chip-final svg{ width:15px; height:15px; color:var(--lvl-hotmess); }
.turn-head h1{ overflow-wrap:anywhere; }
.wheel-wrap, .wheel-wrap *{ -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; }
.wheel-wrap.flingable{ cursor:grab; }
.wheel-wrap.shake{ animation:secouer .5s ease; }
.stage{ min-height:min(88vw, 370px); }
.pchip.off{ border-style:dashed; opacity:.6; }
.gesture-hint{ min-height:20px; }
#spinBtn svg{ width:24px; height:24px; }

/* ---------- 11.8 La carte : états du jeu réel ---------- */
.qcard.locked{ cursor:default; }
.qcard.is-flipped{ cursor:default; }
.qcard:focus-visible .content{ outline:2px solid #fff; outline-offset:4px; }
.qcard .cover-name{ overflow-wrap:anywhere; }
.qcard .prop:disabled{ cursor:default; }
.qcard .prop .tag{ margin:0 0 2px; }
.qcard .chosen-text{ overflow-wrap:anywhere; }
.qcard .chosen-text .tag{ color:var(--lvl); margin-top:8px; }
.qcard .choice svg{ fill:none; }
.qcard .wait-line{ grid-column:1 / -1; margin:0; min-height:58px; display:flex; align-items:center; justify-content:center; text-align:center; font-size:15px; font-weight:700; color:#fff; }
.qcard .description{ scrollbar-width:none; }
.qcard .description::-webkit-scrollbar{ display:none; }
.qcard .ring .num{ font-variant-numeric:tabular-nums; }
.card-status{ width:min(88vw, 360px); display:grid; gap:8px; }
.card-status:empty{ display:none; }
.card-layer .joker, .card-layer .special-line, .card-layer .bet-done{ background:#151515; border-color:#ffffff33; color:#fff; }
.card-layer .joker small, .card-layer .special-line{ color:#ffffffcc; }
.card-layer .special-line b{ color:#fff; }
@media (max-height:700px){ .qcard{ height:min(74vh, 590px); } .ring{ width:112px; height:112px; } .ring .num{ font-size:38px; } }

/* ---------- 11.9 Feuille du tour (composer, voter, défi à deux…) : un panneau du bas, comme les feuilles de la référence ---------- */
.turn-sheet{ position:fixed; left:50%; bottom:0; z-index:31; width:min(480px, 100%); max-height:88dvh; display:none; flex-direction:column;
  transform:translateX(-50%); background:var(--sheet); color:var(--text); border-radius:24px 24px 0 0; box-shadow:0 -10px 40px #0007; }
.turn-sheet.open{ display:flex; }
.turn-sheet.anim{ animation:feuille .38s cubic-bezier(.2,.8,.2,1) both; }
@keyframes feuille{ from{ transform:translate(-50%, 105%); } to{ transform:translate(-50%, 0); } }
.sheet-body{ min-height:0; overflow-y:auto; scrollbar-width:none; display:flex; flex-direction:column; gap:12px; padding:10px 20px 14px; }
.sheet-body::-webkit-scrollbar{ display:none; }
.sheet-body > *{ flex-shrink:0; }
.sheet-body .fld{ margin-top:0; }
.sheet-foot{ flex:none; display:grid; gap:8px; padding:12px 20px calc(20px + env(safe-area-inset-bottom)); border-top:1px solid var(--border); }
.grab{ width:44px; height:5px; border-radius:4px; background:var(--border); margin:0 auto 4px; flex:none; }
.sheet-head{ display:flex; flex-direction:column; gap:4px; }
.sheet-head h2{ font-size:22px; }
.head-clock{ flex-direction:row; align-items:flex-start; justify-content:space-between; gap:12px; }
.mini-clock{ flex:none; min-width:54px; height:34px; padding:0 10px; border-radius:18px; display:grid; place-items:center; border:1px solid var(--border); background:var(--glass-2);
  font-weight:800; font-size:14px; font-variant-numeric:tabular-nums; color:var(--text-soft); }
.mini-clock.hurry{ border-color:var(--cherry-2); color:var(--cherry-2); }
.consent-line, .special-line{ display:flex; align-items:flex-start; gap:10px; padding:10px 12px; border-radius:12px; background:var(--glass-2); border:1px solid var(--border); font-size:13px; line-height:1.4; color:var(--text-soft); text-align:left; }
.consent-line svg, .special-line svg{ width:18px; height:18px; flex:none; margin-top:1px; color:var(--accent); }
.special-line b{ color:var(--text); font-weight:800; }
/* Propositions à cocher : la forme des propositions de la carte (référence .prop), sur le fond de la feuille */
.opt{ position:relative; display:flex; align-items:flex-start; gap:12px; width:100%; min-height:52px; padding:13px 14px; border-radius:14px; border:1px solid var(--border); background:var(--glass-2);
  color:var(--text); font-size:15px; line-height:1.35; font-weight:600; text-align:left; cursor:pointer; transition:border-color .25s, background .25s, box-shadow .25s, opacity .2s; }
.opt .n{ flex:none; width:22px; height:22px; margin-top:-1px; border-radius:50%; border:2px solid var(--text-faint); display:grid; place-items:center; font-size:12px; font-weight:800; color:var(--text-soft); transition:all .25s; }
.opt .n svg{ width:13px; height:13px; stroke-width:3; }
.opt > span:nth-child(2){ flex:1; min-width:0; }
.opt[aria-checked="true"]{ border-color:var(--accent); background:color-mix(in srgb, var(--accent) 18%, transparent); box-shadow:0 0 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.opt[aria-checked="true"] .n{ border-color:var(--accent); background:var(--accent); color:#fff; }
.opt[aria-disabled="true"], .opt:disabled:not([aria-checked="true"]){ opacity:.45; }
.opt:disabled{ cursor:default; }
.opt.mine, .opt.custom{ font-style:italic; }
.opt.locked .n{ color:var(--gold); border-color:var(--gold); }
.opt.locked .blur{ display:block; filter:blur(5px); user-select:none; }
.opt.answer{ cursor:default; }
.turn-sheet.anim .opt, .turn-sheet.anim .partner, .turn-sheet.anim .vol-card{ animation:apparaitre .4s ease both; }
.turn-sheet.anim .stack > :nth-child(2){ animation-delay:.06s; } .turn-sheet.anim .stack > :nth-child(3){ animation-delay:.12s; }
.turn-sheet.anim .stack > :nth-child(4){ animation-delay:.18s; } .turn-sheet.anim .stack > :nth-child(5){ animation-delay:.24s; } .turn-sheet.anim .stack > :nth-child(n+6){ animation-delay:.3s; }
.sheet-body .row-between{ align-items:baseline; }
.own{ display:flex; gap:8px; }
.own .field{ flex:1; min-width:0; }
.own .btn{ width:auto; min-height:var(--tap); padding:0 16px; font-size:15px; border-radius:14px; }
.joker{ display:flex; align-items:center; gap:12px; width:100%; min-height:52px; padding:10px 14px; border-radius:14px; border:1px dashed var(--border); background:var(--glass-2); color:var(--text);
  text-align:left; font-weight:700; font-size:15px; transition:transform .15s; }
.joker:active:not(:disabled){ transform:scale(.98); }
.joker svg{ width:20px; height:20px; flex:none; color:var(--accent); }
.joker small{ display:block; font-weight:500; font-size:12px; color:var(--text-soft); }
.joker:disabled{ opacity:.5; }
.joker.vol > span:nth-child(2){ flex:1; }
.vol-s{ flex:none; min-width:48px; height:30px; padding:0 10px; border-radius:15px; display:grid; place-items:center; border:1px solid var(--border); font-weight:800; font-size:13px; font-variant-numeric:tabular-nums; }
.bet-done{ display:flex; align-items:center; justify-content:center; gap:8px; margin:0; padding:10px 12px; border-radius:12px; border:1px solid var(--border); font-size:13px; }
.bet-done svg{ width:16px; height:16px; flex:none; color:var(--accent); }
.vote-meter{ display:flex; justify-content:center; gap:6px; }
.vote-meter i{ width:10px; height:10px; border-radius:50%; border:1.5px solid var(--text-faint); transition:background .3s, border-color .3s, transform .3s; }
.vote-meter i.on{ background:var(--accent); border-color:var(--accent); transform:scale(1.2); }
.chain{ display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:6px; }
.chain span{ height:30px; padding:0 12px; border-radius:15px; display:inline-grid; place-items:center; font-size:13px; font-weight:700; border:1px solid var(--border); color:var(--text-soft); }
.chain span.done{ border-color:var(--accent); color:var(--text); background:var(--glass-2); }
.chain span.now{ border-color:var(--text); color:var(--text); }
.chain i{ width:10px; height:1.5px; background:var(--border); }
.bars{ display:grid; gap:8px; }
.barrow{ display:grid; grid-template-columns:96px 1fr 28px; align-items:center; gap:10px; font-weight:700; font-size:15px; }
.barrow span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.barrow i{ height:12px; border-radius:6px; background:var(--accent); width:var(--w); min-width:6px; animation:grandir .8s var(--ease) both; transform-origin:left; }
.barrow b{ text-align:right; font-variant-numeric:tabular-nums; }
@keyframes grandir{ from{ transform:scaleX(0); } }
.big-stat{ display:flex; flex-direction:column; align-items:center; gap:4px; text-align:center; }
.big-stat b{ font-weight:800; font-size:64px; line-height:1; font-variant-numeric:tabular-nums; }
.big-stat b small{ font-size:28px; color:var(--text-soft); }
.big-stat span{ color:var(--text-soft); }
.bonus-field{ gap:6px; }
.bonus-field .seg button{ min-height:38px; font-size:13px; }
/* Défi à deux et volontaires */
.partners{ display:grid; grid-template-columns:repeat(auto-fill, minmax(88px, 1fr)); gap:8px; }
.partner{ display:flex; flex-direction:column; align-items:center; gap:6px; padding:12px 6px; border-radius:14px; border:1px solid var(--border); background:var(--glass-2); color:var(--text);
  font-weight:700; font-size:14px; transition:border-color .2s, background .2s, opacity .2s, transform .15s; }
.partner:active:not(:disabled){ transform:scale(.96); }
.av{ border-radius:50%; display:grid; place-items:center; font-weight:800; color:var(--av-ink, #fff); flex:none; box-shadow:0 0 0 1px var(--border); }
.partner .av{ width:46px; height:46px; font-size:20px; }
.partner .nm{ max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.partner small{ font-size:11.5px; font-weight:500; color:var(--text-soft); }
.partner[aria-checked="true"]{ border-color:var(--accent); background:color-mix(in srgb, var(--accent) 18%, transparent); }
.partner.refused{ opacity:.45; }
.duo-names{ display:flex; align-items:center; justify-content:center; gap:12px; font-size:26px; font-weight:800; flex-wrap:wrap; text-align:center; }
.duo-names svg{ width:22px; height:22px; color:var(--accent); }
.vol-list{ display:flex; flex-wrap:wrap; justify-content:center; gap:12px; padding:8px 0; }
.vol-card{ display:flex; flex-direction:column; align-items:center; gap:8px; min-width:96px; padding:16px 12px; border-radius:var(--radius); background:var(--glass-2); border:1px solid var(--border); }
.vol-card .av{ width:56px; height:56px; font-size:26px; }
.vol-card b{ font-weight:800; font-size:18px; }
.vol-bar{ height:4px; border-radius:2px; background:var(--border); overflow:hidden; }
.vol-bar i{ display:block; height:100%; background:var(--accent); transform-origin:left; transition:transform .2s linear; }

/* ---------- 11.10 Fenêtres du bas (réglages de partie, boutique, quitter…) : la feuille de la référence ---------- */
.modal-veil{ position:fixed; inset:0; z-index:50; display:flex; align-items:flex-end; justify-content:center; background:#000a; animation:voile .3s ease both; }
@keyframes voile{ from{ opacity:0; } }
.modal{ position:relative; width:min(480px, 100%); max-height:88dvh; overflow-y:auto; scrollbar-width:none; background:var(--sheet); color:var(--text);
  border-radius:24px 24px 0 0; padding:10px 20px calc(24px + env(safe-area-inset-bottom)); box-shadow:0 -10px 40px #0007; animation:feuille-m .38s cubic-bezier(.2,.8,.2,1) both; }
@keyframes feuille-m{ from{ transform:translateY(105%); } }
.modal::-webkit-scrollbar{ display:none; }
.modal:focus{ outline:none; }
.modal > .grab{ margin:0 auto 14px; }
.modal h2, .modal h3{ font-size:22px; font-weight:800; margin:0; }
.modal .head{ margin-bottom:10px; }
.modal .foot, .foot{ margin-top:16px; display:grid; gap:10px; }
.modal .panel{ background:var(--glass-2); backdrop-filter:none; -webkit-backdrop-filter:none; }
.srow > span:first-child{ display:flex; flex-direction:column; gap:2px; font-weight:600; min-width:0; }
.srow small{ color:var(--text-soft); font-weight:400; font-size:13px; }
.swatch[aria-checked="true"]{ border-color:var(--sheet); outline:2px solid var(--text); }
.auto-chip{ color:var(--text); min-height:36px; position:relative; }
.auto-chip::after, .swatch::after{ content:""; position:absolute; inset:-5px; }
.swatch{ position:relative; }
.toggle-switch{ flex:none; }
.toggle-switch .checkbox:focus-visible ~ .slider{ outline:2px solid var(--accent); outline-offset:4px; }
.mini-switch::after{ content:""; position:absolute; inset:-7px -4px; }
.mini-switch input:focus-visible + span{ outline:2px solid var(--text); outline-offset:3px; }
.seg.small button[aria-pressed="true"]{ background:var(--accent); color:#fff; }
.sheet-link{ color:var(--text); width:100%; }
.sheet-link svg{ flex:none; }
.sheet-link small{ display:block; font-weight:400; font-size:12px; color:var(--text-soft); }
.level-opt{ color:var(--text); width:100%; }
.level-opt[aria-checked="true"]{ border-color:var(--chip); background:color-mix(in srgb, var(--chip) 14%, transparent); }
.setting-row{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 0; border-top:1px solid var(--border); font-weight:600; }
.setting-row small{ display:block; font-weight:400; font-size:13px; color:var(--text-soft); margin-top:2px; }

/* ---------- 11.11 Pause, grandes annonces, messages ---------- */
.pause-veil{ position:fixed; inset:0; z-index:45; display:grid; place-items:center; padding:20px; background:#000a; animation:voile .3s ease both; }
.pause-card{ width:min(100%, 360px); display:flex; flex-direction:column; align-items:center; gap:10px; text-align:center; padding:28px 22px 22px; border-radius:24px; background:var(--sheet); color:var(--text); box-shadow:0 10px 40px #0007; }
.pause-card > svg{ width:36px; height:36px; color:var(--accent); }
.pause-card .btn{ margin-top:8px; }
.flash{ position:fixed; inset:0; z-index:46; display:grid; place-items:center; padding:24px; pointer-events:none; }
.flash-card{ width:min(100%, 340px); display:flex; flex-direction:column; align-items:center; gap:8px; text-align:center; padding:28px 22px; border-radius:24px;
  background:var(--sheet); color:var(--text); border:1px solid var(--border); box-shadow:0 10px 40px #0009; animation:annonce .5s var(--ease) both; }
.flash-card b{ font-weight:800; font-size:34px; line-height:1.1; overflow-wrap:anywhere; }
.flash-card b i{ font-style:normal; color:var(--accent); }
.flash-card span:last-child{ color:var(--text-soft); font-size:15px; }
.flash.level .flash-card{ border-color:var(--lc, var(--border)); box-shadow:0 10px 40px #0009, 0 0 40px -10px var(--lc, transparent); }
.flash.level .flash-card b{ color:var(--lc, var(--text)); }
.flash.out .flash-card{ animation:annonce-fin .5s ease both; }
@keyframes annonce{ from{ opacity:0; transform:scale(.82) translateY(14px); } }
@keyframes annonce-fin{ to{ opacity:0; transform:scale(1.05); } }
.toast{ pointer-events:none; font-size:15px; }
.viewer{ position:fixed; z-index:80; left:50%; top:calc(env(safe-area-inset-top, 0px) + 8px); transform:translateX(-50%); display:flex; align-items:center; gap:6px; padding:5px;
  border-radius:16px; background:var(--sheet); color:var(--text); border:1px solid var(--border); box-shadow:0 8px 30px #0007; }
.viewer button{ width:40px; height:40px; border-radius:11px; border:0; display:grid; place-items:center; background:var(--glass-2); }
.viewer button svg{ width:18px; height:18px; }
.viewer .lbl{ min-width:168px; max-width:46vw; text-align:center; font-size:13px; font-weight:700; line-height:1.2; }
.viewer .lbl small{ display:block; font-size:11px; color:var(--text-soft); }
.previewing #app{ padding-top:58px; }
.ripple{ display:none; }
.pchip.add{ width:38px; padding:0; justify-content:center; color:var(--text); cursor:pointer; position:relative; }
.pchip.add::after{ content:""; position:absolute; inset:-4px; }
.pchip.add svg{ width:16px; height:16px; }
.sheet-body .duo .btn-small{ justify-content:center; padding:0 10px; font-size:14px; }
.ranking{ margin:0; padding:0; list-style:none; display:grid; gap:6px; }
.ranking li{ display:flex; align-items:center; gap:12px; min-height:48px; padding:0 14px; border-radius:14px; background:var(--glass-2); border:1px solid var(--border); }
.ranking li.me{ border-color:var(--accent); }
.ranking .rk{ width:22px; font-weight:800; color:var(--text-soft); font-variant-numeric:tabular-nums; }
.ranking .nm{ flex:1; min-width:0; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ranking b{ font-weight:800; font-variant-numeric:tabular-nums; }

/* ---------- 11.12 Avis, Premium ---------- */
.rating input{ position:absolute; opacity:0; width:0; height:0; display:block; }
.rating input:focus-visible + label{ outline:2px solid var(--text); outline-offset:2px; border-radius:8px; }
.panel.avis .chip{ min-height:44px; }
.modal .panel.avis{ margin:10px 0 0; padding:14px; }
.pcard svg{ fill:none; flex:none; }
.pro-button svg{ flex:none; }
.pro-button{ flex:none; }
.wrapper{ flex:none; }
.button--submit{ flex:none; }
.end-panels{ display:grid; gap:0; margin-top:16px; }
.k-see-pro{ display:block; margin:12px auto 0; min-height:44px; }

/* ---------- 11.13 Fin de partie : podium, trophées, classement ---------- */
.screen[id="screen-results"]{ gap:16px; }
.podium{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); align-items:end; gap:8px; padding-top:8px; }
.pod{ display:flex; flex-direction:column; align-items:center; gap:4px; text-align:center; min-width:0; animation:apparaitre .6s ease both; }
.pod.p1{ animation-delay:.45s; } .pod.p2{ animation-delay:.25s; } .pod.p3{ animation-delay:.1s; }
.pod .av{ width:52px; height:52px; font-size:23px; }
.pod.p1 .av{ width:66px; height:66px; font-size:30px; box-shadow:0 0 0 2px var(--gold), 0 0 24px -4px var(--gold); }
.pod b{ max-width:100%; font-weight:800; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pod .pts{ font-size:13px; font-weight:700; color:var(--gold); font-variant-numeric:tabular-nums; }
.pod .step{ width:100%; margin-top:6px; border-radius:16px 16px 6px 6px; display:grid; place-items:center; font-style:normal; font-weight:800; font-size:28px; color:var(--text-soft);
  background:var(--glass); border:1px solid var(--border); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); }
.pod.p1 .step{ height:96px; color:#fff; background:var(--accent); border-color:transparent; }
.pod.p2 .step{ height:68px; } .pod.p3 .step{ height:48px; }
.trophies{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px; }
.trophy{ display:flex; align-items:center; gap:10px; padding:12px; border-radius:var(--radius); background:var(--glass); border:1px solid var(--border); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); }
.trophy:first-child, .trophy:nth-child(even):last-child{ grid-column:1 / -1; }
.trophy > svg{ width:24px; height:24px; flex:none; color:var(--gold); }
.trophy span{ display:flex; flex-direction:column; min-width:0; }
.trophy small{ font-size:12px; color:var(--text-soft); }
.trophy b{ font-weight:800; font-size:18px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bdgs{ display:grid; gap:8px; }
.bdg{ display:flex; align-items:center; gap:12px; padding:12px 14px; border-radius:14px; background:var(--glass-2); border:1px solid var(--border); opacity:.55; }
.bdg.on{ opacity:1; border-color:var(--gold); }
.bdg > svg{ width:24px; height:24px; flex:none; color:var(--gold); }
.bdg b{ display:block; font-weight:800; }
.bdg small{ display:block; color:var(--text-soft); font-size:13px; }

/* ---------- 11.14 Boutique détaillée (quand la vente sera ouverte) ---------- */
.offers{ display:grid; gap:14px; }
.tier{ padding:16px; border-radius:var(--radius); background:var(--glass-2); border:1px solid var(--border); display:grid; gap:12px; }
.tier-top{ display:flex; align-items:center; gap:12px; }
.tier-imgs{ display:flex; flex:none; }
.tier-top .txt{ flex:1; min-width:0; }
.tier-top b{ display:block; font-weight:800; font-size:22px; line-height:1.1; }
.tier-top small{ color:var(--text-soft); font-size:13px; }
.offer{ display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:56px; padding:10px 14px; border-radius:14px; border:1px solid var(--border); background:transparent; color:var(--text); text-align:left; }
.offer[aria-checked="true"]{ border-color:var(--accent); background:color-mix(in srgb, var(--accent) 18%, transparent); }
.offer.soon{ opacity:.62; cursor:default; display:flex; padding:10px 14px; border-radius:14px; font-size:inherit; font-weight:inherit; background:transparent; }
.offer.soon::before{ content:none; }
.o-txt{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.o-txt b{ font-weight:800; font-size:15px; }
.o-txt small{ color:var(--text-soft); font-size:12.5px; }
.o-price{ flex:none; display:flex; flex-direction:column; align-items:flex-end; gap:2px; font-weight:800; font-variant-numeric:tabular-nums; white-space:nowrap; text-align:right; }
.o-price small{ display:block; font-weight:500; font-size:12px; color:var(--text-soft); }
.o-state{ font-style:normal; font-size:12px; font-weight:800; color:var(--gold); }
.badge-save{ display:inline-block; margin-left:6px; padding:1px 8px; border-radius:8px; font-size:12px; font-weight:800; background:var(--accent); color:#fff; vertical-align:1px; }
.soon-note{ display:flex; align-items:flex-start; gap:10px; padding:12px 14px; border-radius:14px; background:var(--glass-2); border:1px solid var(--border); font-size:14px; color:var(--text-soft); }
.soon-note svg{ width:20px; height:20px; flex:none; margin-top:1px; color:var(--gold); }
.soon-note b{ color:var(--text); font-weight:800; }
.test-note{ margin:0; padding:8px 12px; border-radius:12px; font-size:13px; color:var(--text-soft); border:1px dashed var(--border); }
.check{ display:flex; align-items:center; gap:12px; padding:14px 16px; border-radius:14px; background:var(--glass-2); border:1px solid var(--border); font-weight:600; }
.check input{ width:24px; height:24px; accent-color:var(--accent); margin:0; flex:none; }
@media (max-width:380px){ .mode-pill{ gap:6px; padding:0 8px; font-size:14px; } .topbar{ gap:8px; } }

/* ---------- 11.15 Zones tactiles d'au moins 44 px (les tailles visibles restent celles de la référence) ---------- */
.chip, .points, .seg.small button, .pchip.add{ position:relative; }
.chip::after{ content:""; position:absolute; inset:-3px 0; }
.points::after{ content:""; position:absolute; inset:-6px 0; }
.seg.small{ overflow:visible; }
.seg.small button::after{ content:""; position:absolute; inset:-3px 0; }
.seg.small button:first-child{ border-radius:13px 0 0 13px; } .seg.small button:last-child{ border-radius:0 13px 13px 0; }
.switch-label::after{ content:""; position:absolute; inset:-8px -3px; }
.swatch::after{ inset:-8px; }
.legal-links a{ display:inline-block; padding:14px 4px; margin:-14px 0; }
/* La roue et son halo ne font jamais défiler l'écran sur le côté */
.screen{ overflow-x:clip; }
/* La barre du haut reste utilisable (quitter, pause, réglages) pendant que la carte ou une feuille du tour est affichée */
.card-layer{ pointer-events:none; }
.card-layer > *{ pointer-events:auto; }
#screen-game .topbar{ position:relative; z-index:32; }
/* Mention de droits, en bas de l'accueil : discrète */
.copyright{ margin:10px 0 0; text-align:center; font-size:12px; line-height:1.4; color:var(--text-faint); }

/* ---------- 11.16 Mode Question : aucun chrono, question posée seule, réponse écrite (jeu à distance) ---------- */
.btn-small.solid{ background:var(--accent); color:#fff; border-color:transparent; }
.own-box .duo .btn-small{ justify-content:center; padding:0 10px; font-size:14px; min-height:48px; }
.qcard.noclock .ring{ display:none; }
.qcard.noclock .chrono{ margin:0; align-items:stretch; text-align:left; gap:12px; }
.qcard.noclock .chosen-text{ font-size:clamp(17px, 4.8vw, 20px); }
.qcard.written .chosen-text{ font-size:15px; font-weight:600; color:#ffffffcc; }
.answer-box{ display:none; }
.qcard.noclock .answer-box{ display:grid; gap:8px; }
.answer-box:empty{ display:none !important; }
.answer-of{ font-size:12px; font-weight:800; letter-spacing:.8px; text-transform:uppercase; color:var(--lvl); }
.answer-input{ width:100%; min-height:88px; padding:12px 14px; font:inherit; font-size:16px; line-height:1.4; color:#fff; background:#ffffff0d; border:1px solid #ffffff33; border-radius:14px; resize:none; }
.answer-input:focus{ outline:none; border-color:var(--lvl); box-shadow:0 0 0 3px color-mix(in srgb, var(--lvl) 30%, transparent); }
.answer-input::placeholder{ color:#ffffff80; }
.answer-hint{ margin:0; font-size:12px; line-height:1.4; color:#ffffffa6; }
.answer-text{ margin:0; font-size:clamp(19px, 5.4vw, 24px); line-height:1.35; font-weight:700; color:#fff; overflow-wrap:anywhere; animation:apparaitre .45s ease both; }
.qcard .choice.wide{ grid-column:1 / -1; }
.qcard .choice.yes svg{ width:24px; height:24px; }

/* ---------- 11.17 Cartes où tout le monde répond : la question (plus de grande carte), message sans réponse ---------- */
.gq{ padding:14px 16px; border-radius:14px; background:var(--glass-2); border:1px solid var(--border); }
.gq-tag{ display:block; font-size:12px; font-weight:800; letter-spacing:.8px; text-transform:uppercase; color:var(--text-soft); }
.gq-text{ margin:6px 0 0; font-size:clamp(18px, 5vw, 21px); line-height:1.35; font-weight:800; overflow-wrap:anywhere; }
.reveal-none{ margin:8px 0; padding:18px 14px; text-align:center; font-size:17px; font-weight:700; color:var(--text-soft); border:1px dashed var(--border); border-radius:14px; }
.sheet-foot .hint{ margin:0; }
