/* SAFIO Party — ambiance soirée : aubergine profond, orange, rose, violet, turquoise */
@font-face { font-family: "Baloo 2"; font-weight: 600; font-display: swap; src: url("/fonts/baloo-2-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-weight: 800; font-display: swap; src: url("/fonts/baloo-2-latin-800-normal.woff2") format("woff2"); }

:root {
  --bg: #1a0b2e; --bg2: #24103f; --panel: #2c1550; --panel2: #36195f;
  --line: rgba(255, 255, 255, .1); --line2: rgba(255, 255, 255, .18);
  --text: #fff5fb; --muted: #c9b6e4; --dim: #9a86b8;
  --orange: #ff8a3d; --pink: #ff4f9a; --violet: #9b5cff; --cyan: #2ee6d0; --yellow: #ffd23f; --green: #3ddc97; --red: #ff5c6c;
  --hot: linear-gradient(135deg, #ff9a3d 0%, #ff4f9a 100%);
  --cool: linear-gradient(135deg, #2ee6d0 0%, #9b5cff 100%);
  --display: "Baloo 2", ui-rounded, system-ui, sans-serif;
  --radius: 22px; --t0: #2ee6d0; --t1: #ff4f9a;
  --shadow: 0 10px 30px rgba(10, 0, 25, .45);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background:
    radial-gradient(900px 520px at -10% -5%, rgba(155, 92, 255, .38), transparent 60%),
    radial-gradient(700px 480px at 110% 0%, rgba(255, 138, 61, .22), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(255, 79, 154, .18), transparent 60%), var(--bg);
  background-attachment: fixed; color: var(--text);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent; overflow-x: hidden;
}
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4, .display { font-family: var(--display); font-weight: 800; margin: .2em 0 .45em; line-height: 1.08; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.center { text-align: center; }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
/* .boot : style en ligne dans index.html (visible avant le chargement du CSS) */

/* ---------- Boutons ---------- */
.btn { border: 1.5px solid var(--line2); background: rgba(255, 255, 255, .07); padding: .72em 1.15em; border-radius: 16px; cursor: pointer;
  font-family: var(--display); font-weight: 800; font-size: 1rem; letter-spacing: .01em; line-height: 1.1;
  transition: transform .12s, background .2s, box-shadow .2s, opacity .2s; touch-action: manipulation; display: inline-flex; align-items: center; justify-content: center; gap: .45em; }
.btn:hover:not(:disabled) { background: rgba(255, 255, 255, .13); }
.btn:active:not(:disabled) { transform: scale(.96); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.hot, .btn.primary { background: var(--hot); border: 0; color: #2a0b1c; box-shadow: 0 6px 0 #b8336e, 0 14px 30px rgba(255, 79, 154, .35); }
.btn.hot:active:not(:disabled), .btn.primary:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 3px 0 #b8336e, 0 8px 20px rgba(255, 79, 154, .3); }
.btn.cool { background: var(--cool); border: 0; color: #120626; box-shadow: 0 6px 0 #5b2fb3, 0 14px 30px rgba(155, 92, 255, .35); }
.btn.cool:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 3px 0 #5b2fb3; }
.btn.outline { background: transparent; border-color: var(--line2); }
.btn.danger { background: rgba(255, 92, 108, .16); border-color: rgba(255, 92, 108, .5); }
.btn.big { padding: .95em 1.3em; font-size: 1.12rem; border-radius: 18px; }
.btn.small { padding: .5em .85em; font-size: .9rem; border-radius: 12px; }
.btn.tiny { padding: .32em .6em; font-size: .8rem; border-radius: 10px; }
.btn.wide { width: 100%; }
.btn.on { outline: 2px solid var(--cyan); }
.icon-btn { background: rgba(255, 255, 255, .07); border: 1.5px solid var(--line); height: 40px; min-width: 40px; padding: 0 10px; border-radius: 13px; cursor: pointer; position: relative;
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.icon-btn .lbl { display: none; }
@media (min-width: 520px) { .icon-btn .lbl { display: inline; } }
.icon-btn .dot { position: absolute; top: 5px; right: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 2px var(--bg); }
.row { display: flex; gap: .6em; flex-wrap: wrap; align-items: center; justify-content: center; margin: .6em 0; }

/* ---------- Barre du haut ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; position: sticky; top: 0; z-index: 20;
  background: rgba(26, 11, 46, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; font: 800 21px var(--display); white-space: nowrap; }
.brand .party { background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.room-chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .07); border: 1.5px solid var(--line); border-radius: 13px; padding: 0 12px; height: 40px; cursor: pointer; font-weight: 700; min-width: 0; }
.room-chip b { font-family: var(--display); letter-spacing: .14em; color: var(--yellow); }
.room-chip .gname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 30vw; }

/* ---------- Accueil ---------- */
.home { max-width: 1080px; margin: 0 auto; padding: 0 16px 40px; }
.hero { position: relative; padding: 30px 0 10px; }
.hero .pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero .pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.hero h1 { font-size: clamp(40px, 11vw, 72px); margin: 14px 0 10px; }
.hero h1 em { font-style: normal; background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 1.08rem; max-width: 520px; margin: 0 0 20px; }
.hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 520px; }
.hero-cta .btn { min-height: 64px; }
.freeline { color: var(--dim); font-size: 14px; margin: 14px 0 0; }
.hero-deco { position: absolute; right: -10px; top: 18px; width: 150px; height: 150px; pointer-events: none; opacity: .9; }
@media (max-width: 700px) { .hero-deco { width: 92px; height: 92px; right: -6px; top: 6px; opacity: .55; } }
.floaty { animation: floaty 6s ease-in-out infinite; transform-origin: center; }
.profile-card { margin-top: 22px; max-width: 520px; background: linear-gradient(160deg, var(--panel2), var(--panel)); border: 1px solid var(--line2); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.profile-row { display: flex; gap: 12px; align-items: center; margin: 8px 0 14px; }
.avatar-btn { position: relative; border: 0; background: rgba(255, 255, 255, .08); border-radius: 22px; padding: 4px; cursor: pointer; flex: none; }
.avatar-btn::after { content: "✎"; position: absolute; right: -4px; bottom: -4px; width: 24px; height: 24px; border-radius: 50%; background: var(--yellow); color: #2a0b1c; font-size: 13px; display: grid; place-items: center; font-weight: 900; }
.input { background: rgba(10, 0, 25, .35); border: 1.5px solid var(--line2); border-radius: 15px; padding: .8em 1em; outline: none; min-width: 0; width: 100%; font-weight: 600; }
.input:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(46, 230, 208, .18); }
.code-row { display: flex; gap: 10px; margin-top: 8px; }
.code-input { text-transform: uppercase; letter-spacing: .45em; text-align: center; font: 800 1.35rem var(--display); }
.code-input::placeholder { letter-spacing: .3em; color: var(--dim); }
.section-title { font-size: clamp(26px, 6vw, 34px); margin: 40px 0 4px; }
.section-sub { color: var(--muted); margin: 0 0 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1.5px solid var(--line2); background: transparent; border-radius: 999px; padding: .5em 1em; cursor: pointer; font-weight: 800; font-family: var(--display); }
.chip.on { background: var(--text); color: #2a0b1c; border-color: var(--text); }
.chip:disabled { cursor: default; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s; animation: rise .45s backwards; }
.gcard:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 18px 40px rgba(10, 0, 25, .6); }
.gart { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.gart svg { width: 100%; height: 100%; display: block; }
.badge { position: absolute; top: 9px; left: 9px; background: var(--yellow); color: #2a0b1c; border-radius: 999px; padding: 2px 9px; font: 800 11px var(--display); letter-spacing: .08em; text-transform: uppercase; }
.badge.soon { background: rgba(26, 11, 46, .8); color: var(--text); border: 1px solid var(--line2); }
.gbody { padding: 11px 12px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.gbody h3 { margin: 0; font-size: 1.22rem; }
.gbody p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.35; flex: 1; }
.gmeta { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 6px; }
.gmeta span { background: rgba(255, 255, 255, .07); border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.soon-row { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.soon-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; opacity: .8; }
.soon-card .gart { aspect-ratio: 16 / 10; }
.soon-card b { display: block; padding: 7px 10px 9px; font: 800 14px var(--display); }
.steps { display: grid; gap: 10px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { display: flex; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; font-weight: 700; }
.step .num { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; font: 800 20px var(--display); color: #2a0b1c; }
.step:nth-child(1) .num { background: var(--orange); } .step:nth-child(2) .num { background: var(--pink); } .step:nth-child(3) .num { background: var(--cyan); }
footer { text-align: center; color: var(--dim); font-size: 13px; padding: 36px 0 10px; }
.universe-link { display: inline-block; margin-top: 12px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line2); color: var(--text, #fff); font-weight: 700; text-decoration: none; }
.universe-link:hover { border-color: var(--t0); color: var(--t0); }

/* ---------- Fenêtres ---------- */
.modal-wrap { position: fixed; inset: 0; background: rgba(10, 0, 25, .65); backdrop-filter: blur(5px); display: grid; place-items: end center; z-index: 50; opacity: 0; transition: opacity .22s; }
.modal-wrap.show { opacity: 1; }
.modal { background: var(--bg2); border: 1px solid var(--line2); border-radius: 26px 26px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); width: 100%; max-width: 520px; max-height: 92vh; max-height: 92dvh; overflow: auto;
  transform: translateY(30px); transition: transform .25s cubic-bezier(.2, .9, .3, 1.2); }
.modal-wrap.show .modal { transform: none; }
@media (min-width: 600px) { .modal-wrap { place-items: center; } .modal { border-radius: 26px; } }
.modal .btn.wide { margin-top: 10px; }
.field { display: grid; gap: 6px; margin: 14px 0; }
.field > span { color: var(--muted); font-size: 14px; font-weight: 700; }
input[type="range"] { accent-color: var(--pink); width: 100%; }
.avatar-editor { display: grid; gap: 14px; justify-items: center; }
.avatar-big { width: 132px; height: 132px; display: grid; place-items: center; background: radial-gradient(circle, rgba(255, 255, 255, .12), transparent 70%); border-radius: 36px; }
.av-rows { display: grid; gap: 6px; width: 100%; max-width: 300px; }
.av-row { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; text-align: center; gap: 6px; font-weight: 700; }
.lang-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.lang-pick .chip svg, .lang-only svg { vertical-align: -3px; border-radius: 3px; }
/* Drapeau de langue en haut de l'écran + liste des 5 langues */
.icon-btn.lang-btn { display: inline-grid; place-items: center; padding: 0 9px; }
.icon-btn.lang-btn svg { border-radius: 4px; display: block; }
.lang-list { display: grid; gap: 10px; margin: 6px 0 16px; }
.lang-opt { display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 0 16px; border-radius: 16px; border: 2px solid var(--line); background: rgba(255, 255, 255, .06); color: inherit; font: inherit; font-weight: 800; font-size: 18px; cursor: pointer; text-align: left; }
.lang-opt svg { border-radius: 5px; flex: none; }
.lang-opt.on { border-color: #ffd34d; background: rgba(255, 211, 77, .12); }
.rules-art { border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 8px; }
.rules-art svg { width: 100%; height: 100%; }
.big-code { font: 800 56px/1 var(--display); letter-spacing: .14em; background: linear-gradient(180deg, #ffe27a, #ff9a3d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.qr { background: #fff; border-radius: 18px; padding: 8px; display: block; }
.link-box { color: var(--muted); font-size: 13px; word-break: break-all; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 40px); background: var(--panel2); border: 1px solid var(--line2); padding: 11px 16px; border-radius: 16px; font-weight: 700;
  opacity: 0; transition: all .3s; z-index: 80; max-width: 90vw; text-align: center; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-color: rgba(255, 92, 108, .7); }

/* ---------- Salle ---------- */
.room-layout { display: grid; grid-template-columns: 1fr; min-height: calc(100vh - 61px); min-height: calc(100dvh - 61px); }
@media (min-width: 960px) { .room-layout { grid-template-columns: 1fr 320px; } }
.stage { padding: 14px 14px 30px; max-width: 900px; width: 100%; margin: 0 auto; }
.chat { position: fixed; inset: auto 0 0 0; height: 62vh; height: 62dvh; background: var(--bg2); border-top: 1px solid var(--line2); border-radius: 24px 24px 0 0; z-index: 30;
  display: flex; flex-direction: column; transform: translateY(105%); visibility: hidden; transition: transform .25s, visibility .25s; box-shadow: 0 -20px 40px rgba(10, 0, 25, .5); }
body.chat-open .chat { transform: none; visibility: visible; }
@media (min-width: 960px) {
  .chat { position: sticky; top: 61px; height: calc(100vh - 61px); height: calc(100dvh - 61px); transform: none; visibility: visible; border-radius: 0; border-top: 0; border-left: 1px solid var(--line); box-shadow: none; }
  #btn-chat, #chat-close { display: none; }
}
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); font-family: var(--display); }
.chat-list { flex: 1; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.msg { display: flex; gap: 6px; align-items: flex-start; font-size: 14px; word-break: break-word; }
.msg b { white-space: nowrap; }
.msg.mine b { color: var(--cyan); }
.msg.sys { color: var(--yellow); font-size: 13px; justify-content: center; text-align: center; font-weight: 700; }
.chat-form { display: flex; gap: 8px; padding: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.offline-bar { position: fixed; top: 0; left: 0; right: 0; background: var(--red); color: #2a0b1c; text-align: center; font-weight: 800; padding: 6px; z-index: 90; }

.card { background: linear-gradient(165deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.card > .kicker { margin-bottom: 10px; }

/* ---------- Lobby ---------- */
.lobby { padding-bottom: 110px; }
.host-banner { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--yellow); font-family: var(--display); font-size: 1.05rem; margin: 2px 2px 10px; }
.invite-card { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; position: relative; overflow: hidden; }
.invite-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--hot); }
.invite-card .qr { width: 118px; height: 118px; }
.invite-card .big-code { font-size: clamp(44px, 13vw, 64px); }
.invite-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.bubbles { display: flex; flex-wrap: wrap; gap: 14px 10px; justify-content: center; padding: 4px 0; }
.bubble { width: 84px; display: grid; justify-items: center; gap: 2px; position: relative; background: none; border: 0; padding: 0; cursor: default; animation: popin .35s backwards; }
.bubble.can-manage { cursor: pointer; }
.bubble .ring { border-radius: 50%; padding: 4px; background: rgba(255, 255, 255, .06); border: 3px solid transparent; transition: border-color .2s; }
.bubble.ready .ring { border-color: var(--green); box-shadow: 0 0 18px rgba(61, 220, 151, .35); }
.bubble.host .ring { border-color: var(--yellow); }
.bubble.off { opacity: .45; }
.bubble .nm { font-weight: 800; font-size: 14px; max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bubble .st { font: 800 10px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.bubble.ready .st { color: var(--green); } .bubble.host .st { color: var(--yellow); }
.bubble.bot .ring { border-color: var(--cyan); border-style: dashed; }
.bubble.bot .st { color: var(--cyan); } .bubble.bench { opacity: .5; }
.bubble .rm { position: absolute; top: -2px; left: 4px; background: rgba(255, 255, 255, .15); border-radius: 50%; width: 20px; height: 20px; display: grid; place-items: center; font-size: 11px; }
.robix-card { display: grid; gap: 8px; border: 1.5px dashed rgba(46, 230, 208, .45); }
.robix-card p { margin: 0; }
.pick { position: relative; }
.robix-tag { position: absolute; top: 6px; right: 6px; background: rgba(10, 6, 30, .75); border-radius: 999px; padding: 1px 6px; font-size: 13px; }
.bubble .pts { position: absolute; top: -4px; right: 2px; background: var(--yellow); color: #2a0b1c; border-radius: 999px; font: 800 11px var(--display); padding: 1px 7px; }
.picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .picker { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.pick { background: rgba(255, 255, 255, .05); border: 2.5px solid transparent; border-radius: 18px; padding: 0 0 8px; overflow: hidden; cursor: pointer; display: grid; gap: 4px; text-align: center; transition: transform .15s, border-color .2s; }
.pick:hover:not(:disabled) { transform: translateY(-2px); }
.pick:disabled { cursor: default; }
.pick.on { border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 210, 63, .15); }
.pick:not(.on):disabled { opacity: .55; }
.pick .pick-art { aspect-ratio: 4 / 3; display: block; }
.pick .pick-art svg { width: 100%; height: 100%; display: block; }
.pick b { font: 800 14px var(--display); padding: 0 4px; }
.how { background: rgba(255, 255, 255, .05); border-radius: 16px; margin-top: 12px; }
.how summary { cursor: pointer; padding: 12px 14px; font: 800 1rem var(--display); list-style: none; display: flex; justify-content: space-between; }
.how summary::after { content: "▾"; transition: transform .2s; }
.how[open] summary::after { transform: rotate(180deg); }
.how p { margin: 0; padding: 0 14px 14px; color: var(--muted); }
.set-group { margin: 14px 0 0; }
.set-group > span { display: block; font-weight: 800; margin-bottom: 8px; font-size: 14px; color: var(--muted); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg .chip { padding: .42em .9em; font-size: .92rem; }
.seg .chip.on { background: var(--cyan); border-color: var(--cyan); color: #120626; }
.seg .chip:disabled:not(.on) { opacity: .45; }
.launch-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(26, 11, 46, .96) 30%); }
@media (min-width: 960px) { .launch-bar { right: 320px; } }
.launch-inner { max-width: 872px; margin: 0 auto; display: flex; align-items: center; gap: 12px; background: var(--panel2); border: 1px solid var(--line2); border-radius: 22px; padding: 10px 10px 10px 16px; box-shadow: var(--shadow); }
.launch-inner .info { flex: 1; min-width: 0; }
.launch-inner .info b { display: block; font-family: var(--display); font-size: 1.02rem; }
.launch-inner .info small { color: var(--muted); }
.launch-inner .btn { flex: none; min-width: 52%; }
.waiting { text-align: center; color: var(--muted); animation: breathe 2s infinite; font-weight: 700; }

/* ---------- Minuteur ---------- */
.timer { position: relative; height: 10px; background: rgba(255, 255, 255, .1); border-radius: 99px; overflow: hidden; margin: 8px 0; }
.timer .bar-fill { position: absolute; inset: 0 auto 0 0; background: var(--cool); border-radius: 99px; transition: width .2s linear; }
.timer .bar-text { position: absolute; right: 6px; top: -3px; font: 800 11px var(--display); }
.timer.urgent .bar-fill { background: linear-gradient(90deg, var(--red), var(--orange)); }

/* ---------- Résultats ---------- */
.results { text-align: center; padding-bottom: 20px; }
.results h2 { font-size: clamp(28px, 7vw, 40px); }
.headline { font: 800 1.4rem var(--display); color: var(--yellow); }
.podium-top { display: flex; align-items: flex-end; justify-content: center; gap: 10px; margin: 16px 0 10px; min-height: 210px; }
.pod { display: grid; justify-items: center; gap: 4px; width: 104px; animation: rise .6s backwards; }
.pod .block { width: 100%; border-radius: 16px 16px 6px 6px; display: grid; place-items: center; font: 800 28px var(--display); color: #2a0b1c; }
.pod.p1 .block { height: 110px; background: linear-gradient(180deg, #ffe27a, #ffb13d); }
.pod.p2 .block { height: 80px; background: linear-gradient(180deg, #e7dcff, #b9a4ff); }
.pod.p3 .block { height: 60px; background: linear-gradient(180deg, #ffc1a1, #ff8a3d); }
.pod.p1 { animation-delay: .35s; } .pod.p2 { animation-delay: .15s; } .pod.p3 { animation-delay: .5s; }
.pod .nm { font-weight: 800; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod .gain { color: var(--yellow); font: 800 1.1rem var(--display); }
.ranking { list-style: none; padding: 0; margin: 12px auto; max-width: 460px; display: grid; gap: 8px; }
.ranking li { display: flex; align-items: center; gap: 10px; background: var(--panel); border-radius: 16px; padding: 8px 12px; text-align: left; }
.ranking li.me { outline: 2px solid var(--cyan); }
.ranking .rk { font: 800 18px var(--display); width: 26px; color: var(--muted); }
.ranking .nm { flex: 1; font-weight: 700; }
.ranking b { color: var(--yellow); font-family: var(--display); }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 460px; margin: 16px auto 0; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; }
.fly { position: fixed; z-index: 75; pointer-events: none; font: 800 28px var(--display); color: var(--yellow); text-shadow: 0 2px 0 #b8336e; animation: flyup 1s forwards; }

/* ---------- Aligno ---------- */
.aligno { display: grid; gap: 10px; justify-items: center; --t0c: #2ee6d0; --t0l: #b8fff4; --t1c: #ff4f9a; --t1l: #ffd0e6; }
.al-head { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 560px; justify-content: space-between; }
.al-seat { display: flex; align-items: center; gap: 8px; background: var(--panel); padding: 6px 10px 6px 6px; border-radius: 18px; border: 2px solid transparent; flex: 1; min-width: 0; transition: border-color .25s, box-shadow .25s, transform .25s; position: relative; }
.al-seat.s1 { flex-direction: row-reverse; text-align: right; padding: 6px 6px 6px 10px; }
.al-who { min-width: 0; }
.al-who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 110px; }
.al-who small { color: var(--muted); font-size: 11px; }
.al-seat.active { border-color: var(--t0c); box-shadow: 0 0 24px rgba(46, 230, 208, .35); transform: translateY(-2px); }
.al-seat.s1.active { border-color: var(--t1c); box-shadow: 0 0 24px rgba(255, 79, 154, .35); }
.al-token { position: absolute; top: -5px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--bg); }
.al-seat.s0 .al-token { left: -4px; background: var(--t0c); } .al-seat.s1 .al-token { right: -4px; background: var(--t1c); }
.al-vs { display: grid; text-align: center; font: 800 11px var(--display); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.al-vs b { font-size: 16px; color: var(--text); letter-spacing: 0; }
.al-wins { color: var(--yellow); letter-spacing: 2px; font-size: 13px; }
#al-timer { width: 100%; max-width: 560px; }
.al-stagebox { position: relative; width: min(100%, 560px); }
.al-board { --gap: clamp(4px, 1.4vw, 8px); padding: calc(var(--gap) * 1.6); border-radius: 26px; background: linear-gradient(170deg, #3b1d75, #251048);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .12), inset 0 -6px 0 rgba(0, 0, 0, .25), 0 18px 40px rgba(10, 0, 25, .55); }
.al-board.gravity { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: var(--gap); padding-top: calc(var(--gap) * 1.6 + 22px); }
.al-col { all: unset; position: relative; display: grid; grid-template-rows: repeat(var(--rows), auto); gap: var(--gap); border-radius: 16px; padding: 3px; transition: background .15s; }
.al-col .al-arrow { position: absolute; top: -24px; left: 0; right: 0; text-align: center; font-size: 14px; color: var(--yellow); opacity: 0; transition: opacity .2s, transform .2s; }
.al-board.my-turn .al-col.can .al-arrow { opacity: .55; animation: nudge 1.4s ease-in-out infinite; }
.al-col.can { cursor: pointer; }
.al-col.can:hover, .al-col.can:focus-visible { background: rgba(255, 255, 255, .08); }
.al-col.can:hover .al-arrow, .al-col.can:focus-visible .al-arrow { opacity: 1; }
.al-col.can:active { background: rgba(255, 210, 63, .14); }
.al-col.full { opacity: .9; }
.al-cell { aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #12062a, #1d0c3a); box-shadow: inset 0 3px 6px rgba(0, 0, 0, .55), 0 1px 0 rgba(255, 255, 255, .08); display: grid; place-items: center; position: relative; }
.al-cell i { width: 86%; height: 86%; border-radius: 50%; display: block; transform: scale(0); }
.al-cell.t0 i, .al-cell.t1 i { transform: none; }
.al-cell.t0 i { background: radial-gradient(circle at 35% 30%, var(--t0l), var(--t0c) 60%, #139e8e); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2); }
.al-cell.t1 i { background: radial-gradient(circle at 35% 30%, var(--t1l), var(--t1c) 60%, #b8336e); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2); }
.al-cell.ghost i { transform: scale(.82); opacity: 0; transition: opacity .15s; }
.al-col.can:hover .al-cell.ghost i, .al-col.can:focus-visible .al-cell.ghost i { opacity: .45; }
.al-board.my-turn .al-col.can .al-cell.ghost { box-shadow: inset 0 3px 6px rgba(0, 0, 0, .55), 0 0 0 2px rgba(255, 210, 63, .35); }
.al-cell.ghost.t0 i { background: var(--t0c); } .al-cell.ghost.t1 i { background: var(--t1c); }
.al-cell.fall i { animation: alfall calc(.18s + var(--fall, 1) * .07s) cubic-bezier(.45, 0, .9, .6) both, albounce .28s calc(.18s + var(--fall, 1) * .07s) ease-out; }
@keyframes alfall { from { transform: translateY(calc(var(--fall, 1) * -118%)); } to { transform: none; } }
@keyframes albounce { 40% { transform: translateY(-9%) scaleY(.94); } 100% { transform: none; } }
.al-cell.last::after { content: ""; position: absolute; inset: 36%; border-radius: 50%; background: rgba(255, 255, 255, .65); opacity: .7; pointer-events: none; }
.al-cell.win i { animation: alwin .7s ease-in-out infinite alternate; }
.al-cell.win { box-shadow: 0 0 0 3px var(--yellow), 0 0 24px rgba(255, 210, 63, .7); }
.al-cell.dim i { filter: saturate(.4) brightness(.6); }
@keyframes alwin { to { transform: scale(1.1); } }
@keyframes nudge { 50% { transform: translateY(4px); } }
.al-board.mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 380px; margin: 0 auto; }
.al-slot { all: unset; display: block; border-radius: 22px; padding: 6px; background: rgba(255, 255, 255, .04); position: relative; }
button.al-slot { cursor: pointer; }
button.al-slot:hover, button.al-slot:focus-visible { background: rgba(255, 255, 255, .1); }
.al-slot .al-cell { border-radius: 18px; }
.al-slot .al-cell.t0 i, .al-slot .al-cell.t1 i { animation: popin .3s; }
.al-ghost { position: absolute; inset: 22%; border-radius: 50%; opacity: 0; transition: opacity .15s; pointer-events: none; }
button.al-slot:hover .al-ghost { opacity: .4; }
.al-ghost.t0 { background: var(--t0c); } .al-ghost.t1 { background: var(--t1c); }
.al-banner { position: relative; margin: 14px auto 0; width: fit-content; max-width: 100%; display: grid; gap: 10px; justify-items: center; text-align: center; min-width: 70%;
  background: rgba(26, 11, 46, .92); border: 2px solid var(--line2); border-radius: 24px; padding: 16px 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, .55); animation: popin .35s .5s both; }
.al-banner b { font: 800 1.45rem/1.15 var(--display); }
.al-banner.won { border-color: var(--yellow); } .al-banner.won b { color: var(--yellow); }
.al-goal { color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 8px; margin: 2px 0 0; font-size: 14px; }
.al-mini-line { display: inline-flex; gap: 3px; transform: rotate(-20deg); }
.al-mini-line i { width: 11px; height: 11px; border-radius: 50%; background: var(--yellow); }

/* ---------- L'Intrus ---------- */
.intrus { display: grid; gap: 10px; }
.in-round { font: 800 1rem var(--display); color: var(--muted); }
.role { background: linear-gradient(160deg, #3b1f7a, #24103f); border: 1px solid var(--line2); border-radius: 24px; padding: 18px; text-align: center; box-shadow: var(--shadow); }
.role.intrus { background: linear-gradient(160deg, #6b1646, #24103f); border-color: rgba(255, 79, 154, .6); }
.role.complice { background: linear-gradient(160deg, #6b4a12, #24103f); border-color: rgba(255, 210, 63, .6); }
.role-kicker { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.role-name { font: 800 26px var(--display); margin: 4px 0; }
.role-word { font: 800 38px var(--display); margin: 8px 0; background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.role-word.unknown { color: var(--pink); background: none; -webkit-text-fill-color: var(--pink); }
.role-extra { display: flex; align-items: center; justify-content: center; gap: 6px; }
.flip-in { animation: flip .6s; }
.hold-card { position: relative; border-radius: 24px; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: none; cursor: pointer; }
.hold-cover { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, #3b1f7a, #6b1646); font-weight: 800; z-index: 1; transition: opacity .15s; }
.hold-card .hold-inner { filter: blur(14px); transition: filter .15s; }
.hold-card .role { padding: 10px; }
.hold-card .role-word { font-size: 26px; margin: 4px 0; }
.hold-card.open .hold-cover { opacity: 0; }
.hold-card.open .hold-inner { filter: none; }
.clues { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.clues li { display: flex; align-items: center; gap: 8px; background: var(--panel); border-radius: 16px; padding: 6px 10px; }
.clues li.now { outline: 2px solid var(--cyan); }
.clues li.off { opacity: .4; }
.clues li > span { flex: 1; text-align: right; }
.clue { background: rgba(255, 255, 255, .1); padding: 2px 10px; border-radius: 999px; font-weight: 800; margin-left: 4px; display: inline-block; }
.inline-form { display: flex; gap: 8px; margin: 10px 0; }
.inline-form input { flex: 1; min-width: 0; font-size: 1.05em; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line2); background: rgba(255, 255, 255, .06); color: var(--text); font-family: inherit; }
.vote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 12px; }
.vote { background: var(--panel); border: 2.5px solid transparent; border-radius: 18px; padding: 10px 6px; cursor: pointer; display: grid; justify-items: center; gap: 4px; position: relative; }
.vote:disabled { opacity: .5; cursor: default; }
.vote.on { border-color: var(--pink); background: rgba(255, 79, 154, .15); }
.vote small { position: absolute; top: 6px; right: 8px; color: var(--green); }
.big-title { font-size: 28px; text-align: center; }
.intrus .in-main > svg.avatar { display: block; margin: 0 auto; }
.reveal-box { text-align: center; background: var(--panel); border-radius: 24px; padding: 16px; }
.reveal-box.escaped, .reveal-box.stolen { background: linear-gradient(160deg, rgba(255, 79, 154, .25), var(--panel)); }
.reveal-box.caught { background: linear-gradient(160deg, rgba(61, 220, 151, .22), var(--panel)); }
.reveal-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 8px 0; }
.reveal-word { font-size: 20px; margin: 8px 0; }
.gain { font: 800 30px var(--display); color: var(--yellow); }
.votes { list-style: none; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.votes li { display: flex; align-items: center; gap: 4px; justify-content: center; }
.scorebar, .in-scores, .cq-scores { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.sc { display: inline-flex; align-items: center; gap: 4px; background: var(--panel); padding: 3px 10px 3px 3px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.sc b { color: var(--yellow); font-family: var(--display); }
.sc.found { outline: 2px solid var(--green); }
.sc.drawer { outline: 2px solid var(--violet); }
.sc.done { outline: 2px solid var(--green); }

/* ---------- Croquizz ---------- */
.croquizz { display: grid; gap: 8px; max-width: 620px; margin: 0 auto; }
.cq-top { text-align: center; }
.cq-turn { color: var(--muted); font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; }
.cq-word { font: 800 24px var(--display); min-height: 34px; }
.mask { letter-spacing: .3em; font-weight: 900; font-family: ui-monospace, monospace; }
.mask i { font-style: normal; color: var(--dim); }
.cq-canvas-wrap { position: relative; width: 100%; aspect-ratio: 1; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); background: #fff; border: 4px solid #fff; }
#cq-canvas { width: 100%; height: 100%; display: block; touch-action: none; }
#cq-canvas.can-draw { cursor: crosshair; }
.cq-overlay { position: absolute; inset: 0; background: rgba(26, 11, 46, .9); display: grid; place-content: center; text-align: center; padding: 20px; gap: 10px; }
.cq-overlay[hidden] { display: none; }
.choices { display: grid; gap: 10px; }
.choice.e { border-color: rgba(61, 220, 151, .7); } .choice.m { border-color: rgba(255, 210, 63, .7); } .choice.h { border-color: rgba(255, 92, 108, .7); }
.gains { list-style: none; padding: 0; }
.cq-tools { display: grid; gap: 6px; }
.cq-tools[hidden] { display: none; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.sw { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); cursor: pointer; padding: 0; }
.sw.on { outline: 3px solid var(--yellow); outline-offset: 2px; }
.size span { display: inline-block; background: #fff; border-radius: 50%; vertical-align: middle; }
.cq-feed { display: grid; gap: 4px; min-height: 40px; }
form[hidden] { display: none; }

@keyframes rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes popin { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drop { 0% { transform: scale(1.6); opacity: .2; } 100% { transform: scale(1); opacity: 1; } }
@keyframes glow { to { box-shadow: 0 0 0 4px var(--yellow), 0 0 34px var(--yellow); } }
@keyframes breathe { 50% { opacity: .55; } }
@keyframes flip { from { transform: perspective(600px) rotateY(90deg); } to { transform: none; } }
@keyframes floaty { 50% { transform: translateY(-8px) rotate(6deg); } }
@keyframes flyup { from { transform: translate(-50%, 0) scale(.8); opacity: 1; } to { transform: translate(-50%, -70px) scale(1.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Grands Esprits ---------- */
.esprits { display: grid; gap: 14px; }
.ge-qcard { position: relative; border-radius: 24px; padding: 22px 18px 24px; text-align: center; background: var(--hot); color: #2a0b1c;
  box-shadow: 0 14px 30px rgba(255, 79, 154, .28); animation: popin .35s both; }
.ge-qcard.tele { background: var(--cool); color: #10142a; box-shadow: 0 0 0 3px var(--yellow), 0 14px 30px rgba(46, 230, 208, .3); }
.ge-cat { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.ge-question { font: 800 clamp(1.5rem, 6.5vw, 2.1rem)/1.15 var(--display); margin-top: 6px; }
.ge-tele-help { margin-top: 8px; font-weight: 700; font-size: 14px; }
.ge-tele { color: var(--yellow); }
.ge-form { display: grid; gap: 10px; }
.big-input { font-size: 1.25rem; text-align: center; padding: 16px; }
.ge-bet-label { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: center; }
.ge-bets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ge-bets .chip { justify-content: center; padding: 10px 4px; font-size: 13px; }
.ge-who { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.ge-dot { position: relative; opacity: .35; transition: opacity .2s, transform .2s; }
.ge-dot.on { opacity: 1; transform: scale(1.08); }
.ge-dot i { position: absolute; right: -4px; bottom: -4px; background: var(--cyan); color: #10142a; border-radius: 50%; width: 16px; height: 16px; font: 800 11px/16px var(--display); text-align: center; font-style: normal; }
.ge-mine { text-align: center; background: var(--panel); border-radius: 20px; padding: 16px; display: grid; gap: 6px; justify-items: center; }
.ge-mine-text { font: 800 1.6rem var(--display); color: var(--yellow); }
.ge-mine-bet { color: var(--orange); letter-spacing: 2px; }
.ge-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ge-group { all: unset; box-sizing: border-box; cursor: pointer; background: var(--panel); border: 2px solid var(--line2); border-radius: 18px; padding: 12px 10px;
  display: grid; gap: 6px; justify-items: center; text-align: center; animation: flip .45s backwards; transition: transform .15s, border-color .15s; position: relative; }
.ge-group.multi { border-color: var(--cyan); background: linear-gradient(180deg, rgba(46, 230, 208, .16), var(--panel)); }
.ge-group.sel { border-color: var(--yellow); transform: translateY(-3px); box-shadow: 0 0 0 3px rgba(255, 210, 63, .35); }
.ge-group.prop { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 79, 154, .35); }
.ge-group.merged::after { content: "🤝"; position: absolute; top: -10px; right: -6px; font-size: 20px; }
.ge-group:disabled { cursor: default; }
.ge-label { font: 800 1.15rem/1.15 var(--display); word-break: break-word; }
.ge-alt { font-size: 12px; color: var(--muted); }
.ge-avs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.ge-groups.end .ge-avs span { display: grid; justify-items: center; }
.ge-avs small { font-size: 11px; color: var(--muted); max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ge-count { font: 800 13px var(--display); color: var(--cyan); }
.ge-group.solo .ge-count { color: var(--muted); }
.ge-prop { background: var(--panel2, var(--panel)); border: 2px solid var(--pink); border-radius: 20px; padding: 14px; display: grid; gap: 10px; text-align: center; }
.ge-prop-q { font: 800 1.2rem var(--display); }
.ge-prop-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ge-gain { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ge-gain span { background: var(--panel); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 14px; }
.ge-gain b { color: var(--yellow); font-family: var(--display); }
.ok-txt { color: var(--cyan); font-weight: 800; }

/* ---------- Fou Rire ---------- */
.rire { display: grid; gap: 14px; }
.fr-18 { background: #ff2d55; color: #fff; font: 800 13px var(--display); letter-spacing: .08em; text-transform: uppercase; text-align: center; padding: 6px 10px; border-radius: 12px; }
.fr-down { background: var(--panel); color: var(--muted); font-size: 13px; text-align: center; padding: 6px 10px; border-radius: 12px; }
.fr-card { border-radius: 20px; padding: 18px 16px; font: 800 1.15rem/1.3 var(--display); }
.fr-card.prompt { background: linear-gradient(150deg, #ffb13d, var(--orange) 55%, #ff6a3d); color: #2a0b1c; font-size: clamp(1.25rem, 5.6vw, 1.6rem); box-shadow: 0 14px 30px rgba(255, 138, 61, .3); }
.fr-card.prompt.deal { animation: popin .35s both; }
.fr-card.prompt mark, .fr-sub mark { background: rgba(255, 255, 255, .9); color: #3a0d6b; border-radius: 8px; padding: 0 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.blank { display: inline-block; min-width: 4em; border-bottom: 3px dashed rgba(255, 255, 255, .7); color: transparent; line-height: 1; }
.fr-card.prompt .blank { border-bottom-color: rgba(42, 11, 28, .75); }
.fr-hand { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.fr-card.answer { all: unset; box-sizing: border-box; cursor: pointer; position: relative; min-height: 96px; padding: 14px 12px; border-radius: 18px;
  background: linear-gradient(160deg, #a46bff, var(--violet) 60%, #7b3cf0); color: #fff; font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1.3;
  box-shadow: 0 6px 0 #5a24b8, 0 12px 22px rgba(90, 36, 184, .35); transition: transform .12s, box-shadow .12s; }
.fr-hand.deal .fr-card.answer { animation: drop .4s backwards; }
.fr-hand.deal .fr-card.answer:nth-child(2) { animation-delay: .04s; } .fr-hand.deal .fr-card.answer:nth-child(3) { animation-delay: .08s; } .fr-hand.deal .fr-card.answer:nth-child(4) { animation-delay: .12s; }
.fr-card.answer:nth-child(5) { animation-delay: .16s; } .fr-hand.deal .fr-card.answer:nth-child(6) { animation-delay: .2s; } .fr-hand.deal .fr-card.answer:nth-child(7) { animation-delay: .24s; }
.fr-card.answer.sel { transform: translateY(-6px) rotate(-1.5deg); box-shadow: 0 0 0 3px var(--yellow), 0 12px 0 #5a24b8, 0 18px 26px rgba(90, 36, 184, .45); }
.fr-card.answer i { position: absolute; top: -8px; right: -6px; width: 24px; height: 24px; border-radius: 50%; background: var(--yellow); color: #2a0b1c; font: 800 13px/24px var(--display); text-align: center; font-style: normal; }
.fr-actions { display: grid; gap: 8px; }
.fr-extra { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.fr-role { text-align: center; font: 800 1.4rem var(--display); color: var(--yellow); }
.fr-judge-line { display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; color: var(--muted); }
.fr-filled, .fr-sub { background: var(--panel); border: 2px solid var(--line2); border-radius: 18px; padding: 14px; font: 700 1.05rem/1.4 var(--display); }
.fr-subs { display: grid; gap: 10px; }
.fr-sub { all: unset; box-sizing: border-box; display: block; cursor: pointer; background: var(--panel); border: 2px solid var(--line2); border-radius: 18px; padding: 14px; font: 700 1.05rem/1.4 var(--display); position: relative; transition: transform .12s, border-color .12s; }
.fr-sub.deal { animation: flip .45s backwards; }
.fr-sub.sel { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 210, 63, .35); transform: scale(1.02); }
.fr-sub:disabled { cursor: default; }
.fr-sub.win { border-color: var(--yellow); background: linear-gradient(160deg, rgba(255, 210, 63, .22), var(--panel)); animation: popin .4s both; }
.fr-sub.done { opacity: .8; }
.fr-minetag { display: block; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--cyan); }
.fr-author { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.fr-consent { background: var(--panel); border: 2px solid #ff2d55; border-radius: 24px; padding: 20px; display: grid; gap: 12px; text-align: center; }
.fr-18big { justify-self: center; width: 72px; height: 72px; border-radius: 50%; background: #ff2d55; color: #fff; font: 800 1.6rem/72px var(--display); }

/* ---------- Télégribouille ---------- */
.tele { display: grid; gap: 12px; }
.tg-prev canvas, .tg-entry canvas { width: 100%; max-width: 420px; aspect-ratio: 1; display: block; margin: 0 auto; border-radius: 18px; box-shadow: 0 10px 24px rgba(0, 0, 0, .3); }
.tg-seeds { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; }
.tg-seeds .chip { font-size: 13px; }
.tg-todraw { background: var(--hot); color: #2a0b1c; border-radius: 20px; padding: 14px; text-align: center; }
.tg-todraw .kicker { color: #2a0b1c; opacity: .7; }
.tg-phrase { font: 800 1.25rem/1.25 var(--display); }
.tg-wait { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.tg-album { display: grid; gap: 12px; }
.tg-entry { position: relative; background: var(--panel); border-radius: 20px; padding: 12px; display: grid; gap: 8px; }
.tg-entry.text .tg-phrase { text-align: center; padding: 6px 4px; }
.tg-entry.fresh { animation: popin .4s both; }
.tg-by { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.tg-like { all: unset; cursor: pointer; justify-self: end; background: var(--panel2); border-radius: 999px; padding: 4px 12px; font-weight: 800; opacity: .6; transition: transform .12s, opacity .12s; }
.tg-like.on, .tg-like.mine { opacity: 1; background: rgba(255, 79, 154, .25); }
.tg-like.on { transform: scale(1.08); }
#tg-pad canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
#tg-pad { display: grid; gap: 8px; }
.tele, .tele > * { min-width: 0; }

/* ---------- Mystério ---------- */
.mysterio { display: grid; gap: 12px; }
.my-budget { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-weight: 700; color: var(--muted); font-size: 14px; }
.my-budget .pill { background: var(--panel2); padding: 2px 10px; border-radius: 999px; font-size: 12px; }
.my-secret, .my-reveal { background: var(--cool); color: #10142a; border-radius: 22px; padding: 16px; text-align: center; }
.my-secret.deal, .my-reveal { animation: popin .4s both; }
.my-secret .kicker, .my-reveal .kicker { color: #10142a; opacity: .7; }
.my-secret p { margin: 6px 0 0; font-size: 14px; }
.my-secret-name { font: 800 clamp(1.8rem, 8vw, 2.4rem)/1.1 var(--display); text-transform: capitalize; }
.my-reveal.found { background: var(--hot); color: #2a0b1c; }
.my-reveal h3 { margin: 8px 0 0; }
.my-pending { display: grid; gap: 8px; }
.my-q { background: var(--panel); border: 2px solid var(--yellow); border-radius: 16px; padding: 10px; display: grid; gap: 8px; }
.my-q-text { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: 600; }
.my-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.my-head { display: flex; gap: 12px; align-items: center; background: var(--panel); border-radius: 20px; padding: 12px; }
.my-head p { margin: 2px 0 0; font-size: 13px; }
.my-mystery { width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--cool); display: grid; place-items: center; font-size: 30px; animation: breathe 2.4s infinite; }
.my-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.my-mode .chip { justify-content: center; }
.my-pend, .my-guesses { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.my-qa { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.my-qa li { display: flex; align-items: center; gap: 8px; background: var(--panel); border-radius: 14px; padding: 8px 10px; font-size: 14px; }
.my-qa li span { flex: 1; }
.my-qa b { font-size: 13px; white-space: nowrap; }
.my-qa .a-yes { color: var(--cyan); } .my-qa .a-no { color: #ff7a95; } .my-qa .a-sometimes, .my-qa .a-unknown { color: var(--yellow); }
.mysterio, .mysterio > *, .my-mode .chip { min-width: 0; }

.my-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 3px; border-radius: 999px; background: var(--panel2); font-size: 12px; font-weight: 700; max-width: 100%; }
.my-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-chip.bad { opacity: .55; text-decoration: line-through; }
.my-chip.uniq { box-shadow: inset 0 0 0 2px var(--yellow); }

/* ---------- Mot Mystère ---------- */
.mot { display: grid; gap: 12px; }
/* Ciel nocturne : chaque essai est une constellation d'étoiles reliées par un fil de lumière */
.mm-board { position: relative; display: grid; gap: 4px; justify-content: center; padding: 18px 8px 14px; border-radius: 28px; overflow: hidden;
  background: radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 78% 12%, #fff, transparent), radial-gradient(1.5px 1.5px at 88% 64%, #cfe9ff, transparent),
    radial-gradient(1px 1px at 30% 82%, #fff, transparent), radial-gradient(1px 1px at 55% 40%, #ffe9a8, transparent), radial-gradient(1px 1px at 8% 58%, #fff, transparent),
    radial-gradient(circle at 70% -10%, rgba(110, 243, 255, .22), transparent 55%), radial-gradient(circle at 15% 110%, rgba(155, 92, 255, .35), transparent 60%),
    linear-gradient(180deg, #050b24, #120724 70%, #1c0b33); box-shadow: inset 0 0 0 1px rgba(159, 246, 255, .14); }
.mm-board::after { content: "☾"; position: absolute; top: 6px; right: 14px; font-size: 26px; color: #ffe9a8; opacity: .55; text-shadow: 0 0 12px #ffe9a8; pointer-events: none; }
.mm-row { position: relative; display: flex; gap: 4px; justify-content: center; padding: 4px 0; }
.mm-row::before { content: ""; position: absolute; left: 10%; right: 10%; top: 50%; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .06); }
.mm-row.done::before { background: linear-gradient(90deg, transparent, rgba(255, 233, 168, .55), rgba(159, 246, 255, .55), transparent); }
.mm-row.cur::before { background: rgba(255, 255, 255, .18); }
.mm-row.shake { animation: shake .35s; }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.mm-star { position: relative; width: clamp(42px, 13vw, 56px); aspect-ratio: 1; display: grid; place-items: center; font: 800 1.15rem var(--display); color: var(--text);
  transform: translateY(var(--y, 0)); transition: transform .3s; }
.mm-star::before { content: ""; position: absolute; inset: 0; clip-path: polygon(50% 3%, 69.4% 26.3%, 97.6% 37.5%, 81.4% 63.2%, 79.4% 93.5%, 50% 86%, 20.6% 93.5%, 18.6% 63.2%, 2.4% 37.5%, 30.6% 26.3%); background: rgba(255, 255, 255, .07); transition: background .3s; }
.mm-star > b { position: relative; padding-top: 4px; }
.mm-row.cur .mm-star::before { background: rgba(255, 255, 255, .13); }
.mm-star.typed::before { background: rgba(255, 255, 255, .3); }
.mm-star.off::before { background: #2b2140; }
.mm-star.off { color: var(--dim); }
.mm-star.near::before { background: radial-gradient(circle at 50% 55%, #c9fbff, #2b9bd9 75%); }
.mm-star.near { color: #06223a; filter: drop-shadow(0 0 8px rgba(110, 243, 255, .8)); }
.mm-star.gold::before { background: radial-gradient(circle at 50% 55%, #fffbe0, #ffb13d 75%); }
.mm-star.gold { color: #3a1d00; filter: drop-shadow(0 0 10px rgba(255, 210, 63, .95)); }
.mm-row.fresh .mm-star { animation: twinkle-in .55s backwards; animation-delay: var(--d); }
@keyframes twinkle-in { 0% { transform: translateY(var(--y, 0)) scale(.2) rotate(-72deg); opacity: 0; } 70% { transform: translateY(var(--y, 0)) scale(1.15) rotate(8deg); opacity: 1; } 100% { transform: translateY(var(--y, 0)); } }
.mm-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; font-size: 12px; color: var(--dim); }
.mm-legend span { display: inline-flex; align-items: center; gap: 5px; }
.mm-legend i { width: 14px; height: 14px; clip-path: polygon(50% 3%, 69.4% 26.3%, 97.6% 37.5%, 81.4% 63.2%, 79.4% 93.5%, 50% 86%, 20.6% 93.5%, 18.6% 63.2%, 2.4% 37.5%, 30.6% 26.3%); background: #2b2140; }
.mm-legend i.gold { background: #ffb13d; } .mm-legend i.near { background: #6ef3ff; }
.mm-kb { display: grid; gap: 6px; padding: 10px 6px; border-radius: 22px; background: rgba(5, 11, 36, .6); }
.mm-kr { display: flex; gap: 4px; justify-content: center; }
.mm-k { all: unset; cursor: pointer; flex: 1; max-width: 40px; height: 46px; display: grid; place-items: center; border-radius: 999px; font: 800 15px var(--display); color: var(--text); user-select: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }
.mm-k.wide { max-width: 60px; flex: 1.5; background: linear-gradient(180deg, #b07cff, var(--violet)); }
.mm-k.gold { background: linear-gradient(180deg, #ffe08a, #ffb13d); color: #3a1d00; box-shadow: 0 0 10px rgba(255, 210, 63, .5); }
.mm-k.near { background: linear-gradient(180deg, #8ff6ff, #2b9bd9); color: #06223a; box-shadow: 0 0 10px rgba(110, 243, 255, .45); }
.mm-k.off { background: #140c26; color: rgba(255, 255, 255, .28); box-shadow: none; }
.mm-k:active { transform: scale(.92); }
.mm-others { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.mm-other { display: grid; justify-items: center; gap: 4px; background: linear-gradient(180deg, #0b1233, #160a2b); border-radius: 16px; padding: 8px 10px; font-size: 12px; min-width: 80px; }
.mm-other.solved { box-shadow: inset 0 0 0 2px #ffb13d, 0 0 14px rgba(255, 210, 63, .35); }
.mm-mini { display: grid; gap: 2px; }
.mm-mini div { display: flex; gap: 2px; }
.mm-mini i { width: 8px; height: 8px; clip-path: polygon(50% 3%, 69.4% 26.3%, 97.6% 37.5%, 81.4% 63.2%, 79.4% 93.5%, 50% 86%, 20.6% 93.5%, 18.6% 63.2%, 2.4% 37.5%, 30.6% 26.3%); background: #2b2140; }
.mm-mini i.near { background: #6ef3ff; } .mm-mini i.gold { background: #ffd23f; }

/* ---------- Galopix ---------- */
.galopix { display: grid; gap: 12px; }
.gx-track { position: relative; border-radius: 24px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 0 0 2px rgba(255, 255, 255, .08); }
.gx-svg, .gx-svg svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gx-fly { fill: #fef08a; animation: gx-fly 3.6s ease-in-out infinite; }
@keyframes gx-fly { 0%, 100% { opacity: .15; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-6px); } }
.gx-ghost { animation: gx-ghost 1s ease-in-out infinite alternate; }
@keyframes gx-ghost { to { opacity: .45; } }
.gx-pawns { position: absolute; inset: 0; pointer-events: none; }
.gx-pawn { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; transition: left .2s ease-out, top .2s ease-out; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .5)); }
.gx-pawn.me { z-index: 2; filter: drop-shadow(0 0 6px var(--yellow)); }
.gx-pawn.bump { animation: gx-bump .5s .6s; }
@keyframes gx-bump { 0%, 100% { transform: none; } 30% { transform: translateX(-6px) rotate(-12deg); } 60% { transform: translateX(6px) rotate(12deg); } }
.gx-pawn.fx-wind { transition-duration: .6s; animation: gx-wind .6s; }
@keyframes gx-wind { 50% { transform: translateY(-14px) scale(1.15); } }
.gx-pawn.fx-mud { transition-duration: .7s; animation: gx-mud .7s; }
@keyframes gx-mud { 50% { transform: scale(.8) rotate(-8deg); filter: sepia(1) brightness(.7); } }
.gx-pawn.fx-burrow { transition: none; animation: gx-burrow .5s; }
@keyframes gx-burrow { 0% { transform: scale(0); } 100% { transform: none; } }
.gx-bubble { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 16px; background: rgba(15, 23, 42, .9); font-size: 13px; z-index: 3; }
.gx-bubble.pop { animation: popin .35s both; }
.gx-bubble[hidden] { display: none; }
.gx-legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gx-legend > span { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 14px; background: var(--panel); font-size: 12px; line-height: 1.2; }
.gx-legend b { display: block; font-size: 12px; } .gx-legend small { color: var(--dim); }
.gx-flip { position: relative; width: 26px; height: 32px; perspective: 300px; }
.gx-flip .gx-card { position: absolute; inset: 0; backface-visibility: hidden; animation: gx-flipf .6s both; }
.gx-flip .back { background: var(--violet); color: #fff; animation-name: gx-flipb; }
@keyframes gx-flipf { 0%, 40% { transform: rotateY(180deg); } 100% { transform: none; } }
@keyframes gx-flipb { 0%, 40% { transform: none; } 100% { transform: rotateY(-180deg); } }
.gx-res { animation: popin .3s .6s both; }
.gx-bouchon { margin: 8px auto 0; width: max-content; padding: 6px 16px; border-radius: 999px; background: #ff5c7a; color: #fff; font: 800 18px var(--display); animation: gx-boom .6s .6s both; }
@keyframes gx-boom { 0% { transform: scale(0) rotate(-10deg); } 60% { transform: scale(1.25) rotate(4deg); } 100% { transform: none; } }
.gx-hand { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.gx-card { all: unset; cursor: pointer; aspect-ratio: 3 / 4; display: grid; place-items: center; border-radius: 14px; background: var(--hot); color: #2a0b1c; font: 800 2rem var(--display); box-shadow: 0 5px 0 #b0306a; transition: transform .12s; }
.gx-card.on { transform: translateY(-8px); box-shadow: 0 0 0 3px var(--yellow), 0 10px 0 #b0306a; }
.gx-card:disabled { opacity: .3; cursor: default; }
.gx-card:disabled.on { opacity: 1; }
.gx-card.mini { width: 26px; aspect-ratio: auto; height: 32px; font-size: 1rem; box-shadow: none; border-radius: 8px; }
.gx-reveal { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.gx-move { display: flex; align-items: center; gap: 6px; background: var(--panel); border-radius: 999px; padding: 3px 10px 3px 4px; font-weight: 700; font-size: 13px; animation: popin .3s both; }
.gx-move.blocked { background: rgba(255, 92, 122, .25); }

/* ---------- Village des Ombres ---------- */
.village { display: grid; gap: 12px; padding: 6px; border-radius: 24px; transition: background .8s; }
.village.is-night { background: radial-gradient(circle at 80% 0%, rgba(226, 232, 240, .16), transparent 40%), linear-gradient(180deg, #070b1f, #10142e); }
.vo-icon { font-size: 52px; line-height: 1.1; margin: 4px 0; }
.role.vo-shadow { background: linear-gradient(160deg, #111827, #3b0d3d); border-color: rgba(255, 79, 154, .6); }
.role.vo-lantern { background: linear-gradient(160deg, #6b4a12, #24103f); border-color: rgba(255, 210, 63, .6); }
.role.vo-guard { background: linear-gradient(160deg, #0f4c5c, #24103f); border-color: rgba(54, 214, 231, .6); }
.vo-people { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.vo-p { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 4px 4px; border-radius: 999px; background: rgba(255, 255, 255, .07); font-size: 13px; }
.vo-p.me { box-shadow: 0 0 0 2px var(--yellow); }
.vo-p.dead { opacity: .45; filter: grayscale(1); }
.vo-p b { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vo-dawn { text-align: center; padding: 14px; border-radius: 22px; background: linear-gradient(180deg, rgba(255, 138, 61, .25), rgba(255, 79, 154, .08)); display: grid; justify-items: center; gap: 4px; }
.vo-dawn.anim { animation: popin .35s both; }
.vo-sun { font-size: 40px; }
.vo-role-tag { font-weight: 800; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.vo-ghost { text-align: center; padding: 10px; border-radius: 16px; background: rgba(148, 163, 184, .15); }
.vo-seen { display: grid; gap: 4px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 210, 63, .1); font-size: 14px; }
.vo-seen div { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.bad-txt { color: var(--pink); font-weight: 800; }
.vo-night .vote { background: rgba(15, 23, 42, .7); }
.vo-win { text-align: center; padding: 16px; border-radius: 24px; background: linear-gradient(160deg, #3b1f7a, #24103f); }
.vo-win.anim { animation: popin .4s both; }
.vo-win.shadows { background: linear-gradient(160deg, #111827, #5b1650); }
.vo-win.village { background: linear-gradient(160deg, #7a4a12, #24103f); }
.vo-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.vo-roles .vo-p { border-radius: 14px; flex-wrap: wrap; }

/* ========== Socle d'interface (étape 2) ========== */
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 10px; }
.btn, .chip, .icon-btn { min-height: 44px; }
.btn.small, .seg .chip { min-height: 40px; }
.btn.tiny { min-height: 32px; }

/* Accueil : héros en deux colonnes sur grand écran */
.hero { display: grid; gap: 10px; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 36px; padding-top: 44px; } .hero .profile-card { margin-top: 0; } }
.hero-main { position: relative; }
.hero-side { position: relative; display: grid; gap: 0; }
.art-stack { display: none; position: relative; height: 190px; }
@media (min-width: 900px) { .art-stack { display: block; } .hero-deco { display: none; } }
.stack-card { position: absolute; width: 56%; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; box-shadow: 0 18px 40px rgba(10, 0, 25, .6); border: 2px solid rgba(255, 255, 255, .15); animation: floaty 7s ease-in-out infinite; }
.stack-card svg { width: 100%; height: 100%; display: block; }
.stack-card.s0 { left: 0; top: 30px; transform: rotate(-8deg); animation-delay: -1s; }
.stack-card.s1 { left: 22%; top: 0; z-index: 2; transform: rotate(2deg); animation-delay: -3s; }
.stack-card.s2 { right: 0; top: 40px; transform: rotate(9deg); animation-delay: -5s; }

/* Filtres */
.filters { display: grid; gap: 2px; }
.chips-lbl { flex: none; align-self: center; font-weight: 800; color: var(--muted); font-size: 14px; margin-right: 2px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 30px 0; }

/* Cartes de jeu */
button.gart { all: unset; display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; cursor: pointer; }
button.gart svg { transition: transform .35s; }
.gcard:hover button.gart svg { transform: scale(1.06); }
.mood-badge { position: absolute; left: 9px; bottom: 9px; background: rgba(26, 11, 46, .82); backdrop-filter: blur(6px); border: 1px solid var(--line2); color: var(--text); border-radius: 999px; padding: 2px 10px; font: 800 12px var(--display); }
.gbody h3 { font-size: 1.18rem; }
.gbody p { font-size: 14px; }
.gactions { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.gactions .btn.outline { width: 44px; padding: 0; font-size: 1.1rem; }

/* Fiche de jeu */
.sheet h2 { margin-top: 12px; }
.sheet-art { border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 8; margin: -4px 0 4px; }
.sheet-art svg { width: 100%; height: 100%; display: block; }
.sheet-goal { display: grid; gap: 4px; background: linear-gradient(135deg, rgba(255, 154, 61, .18), rgba(255, 79, 154, .14)); border: 1px solid rgba(255, 138, 61, .35); border-radius: 18px; padding: 12px 14px; margin: 12px 0; }
.sheet-goal b { font: 800 1.15rem/1.25 var(--display); }
.sheet-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: st; }
.sheet-steps li { display: flex; gap: 12px; align-items: center; background: rgba(255, 255, 255, .05); border-radius: 16px; padding: 10px 12px; font-weight: 600; animation: rise .4s backwards; counter-increment: st; position: relative; }
.sheet-steps .n { flex: none; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: rgba(255, 255, 255, .08); position: relative; }
.sheet-steps .n::after { content: counter(st); position: absolute; right: -5px; top: -5px; width: 19px; height: 19px; border-radius: 50%; background: var(--yellow); color: #2a0b1c; font: 800 11px/19px var(--display); text-align: center; }
.sheet-win { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; padding: 12px 14px; border-radius: 16px; background: rgba(255, 210, 63, .1); border: 1px solid rgba(255, 210, 63, .3); }
.sheet-win b { display: block; color: var(--yellow); font-family: var(--display); }

/* Salon : rappel du jeu */
.game-recap { position: relative; overflow: hidden; }
.game-recap.fresh { border-color: rgba(255, 210, 63, .5); box-shadow: 0 0 0 3px rgba(255, 210, 63, .12), var(--shadow); }
.recap-head { display: flex; gap: 12px; align-items: center; }
.recap-head h3 { margin: 2px 0 4px; }
.recap-art { width: 92px; flex: none; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; }
.recap-art svg { width: 100%; height: 100%; display: block; }
.set-help { display: block; color: var(--dim); font-size: 13px; margin: -4px 0 8px; }
.launch-inner .info small.need { color: var(--yellow); font-weight: 700; }

/* En partie : bandeau d'action, transitions, retour immédiat */
.stage-wrap { min-width: 0; }
.hint-bar { position: sticky; top: 61px; z-index: 15; display: flex; align-items: center; gap: 10px; max-width: 872px; margin: 10px auto 0; padding: 9px 12px; border-radius: 16px;
  background: var(--panel2); border: 1px solid var(--line2); box-shadow: var(--shadow); width: calc(100% - 28px); font-weight: 700; }
.hint-bar.mine { background: linear-gradient(135deg, #ff9a3d, #ff4f9a); color: #2a0b1c; border: 0; }
.hint-bar.pop { animation: popin .3s; }
.hint-tag { flex: none; font: 800 12px var(--display); letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, .18); }
.hint-bar.wait .hint-tag { background: rgba(255, 255, 255, .08); color: var(--muted); }
.hint-text { min-width: 0; }
.stage.enter { animation: stagein .35s cubic-bezier(.2, .9, .3, 1.1); }
@keyframes stagein { from { opacity: 0; transform: translateY(14px) scale(.99); } to { opacity: 1; transform: none; } }
#sent-pulse { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 10px); background: var(--green); color: #082a1b; font: 800 14px var(--display); padding: 6px 14px; border-radius: 999px; opacity: 0; pointer-events: none; z-index: 85; transition: opacity .2s, transform .2s; }
#sent-pulse.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 960px) { #sent-pulse { left: calc(50% - 160px); } }

/* Grand écran : jeux plus larges et plus aérés */
@media (min-width: 1100px) { .stage { max-width: 980px; padding: 20px 24px 40px; } }

/* Accessibilité : réglage « réduire les animations » du système */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.res-art { height: 110px; border-radius: 22px; overflow: hidden; margin: 0 0 -40px; opacity: .55; mask-image: linear-gradient(180deg, #000 30%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent); }
.res-art svg { width: 100%; height: 100%; display: block; }
.results h2 { position: relative; }
.hint-bar[hidden] { display: none; }
@media (max-width: 400px) { .room-chip .gname { display: none; } }
.art-stack { height: 250px; margin-bottom: 6px; }
#lb-settings-card:has(#lb-settings:empty) { display: none; }
#lb-settings .set-group:first-child { margin-top: 4px; }
.al-banner[hidden] { display: none !important; }

/* ---------- Étape 4 : Fou Rire ---------- */
.fr-role-card { display: grid; justify-items: center; gap: 6px; text-align: center; background: linear-gradient(160deg, rgba(255, 210, 63, .16), var(--panel)); border: 2px solid var(--yellow); border-radius: 22px; padding: 18px; }
.fr-role-card b { font: 800 1.35rem var(--display); color: var(--yellow); }
.fr-role-card p { margin: 0; color: var(--muted); }
.fr-gavel { font-size: 44px; animation: floaty 2.4s ease-in-out infinite; }
.fr-sticky { position: sticky; bottom: 8px; z-index: 3; }
.fr-card.prompt { position: relative; transition: transform .2s; }
.fr-card.prompt.small { font-size: clamp(1.05rem, 4.6vw, 1.3rem); padding: 14px; }
.fr-card.prompt.filled mark { animation: markin .3s both; }
@keyframes markin { from { opacity: 0; background: var(--yellow); } to { opacity: 1; } }
.fr-bonus { color: var(--yellow); font-weight: 800; }
.fr-bonus-tag { position: absolute; top: -10px; right: -6px; background: var(--yellow); color: #2a0b1c; font: 800 14px var(--display); padding: 3px 9px; border-radius: 999px; box-shadow: 0 4px 10px rgba(0, 0, 0, .3); }
.fr-sub.back { min-height: 74px; display: flex; align-items: center; justify-content: space-between; background: repeating-linear-gradient(135deg, #3b1d75 0 14px, #321765 14px 28px); border-color: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .6); }
.fr-back-n { font: 800 1.1rem var(--display); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .25); }
.fr-back-logo { font: 800 2rem var(--display); color: var(--orange); opacity: .8; }
.fr-sub.back.next { border-color: var(--yellow); color: #fff; animation: breathe 1.4s ease-in-out infinite; cursor: pointer; }
.fr-sub.back.next .fr-back-logo { opacity: 1; }
.fr-sub.flipin { animation: flip .5s both; }
.fr-sub.current { border-color: var(--cyan); }
.fr-podium { display: grid; justify-items: center; gap: 10px; text-align: center; }
.fr-crown { font-size: 46px; animation: popin .4s both; }
.fr-podium .fr-sub.win { width: 100%; font-size: 1.2rem; }
.fr-winner { display: flex; align-items: center; gap: 10px; text-align: left; animation: rise .4s .25s both; }
.fr-winner b { display: block; font: 800 1.25rem var(--display); }
.fr-winner span { color: var(--yellow); font-weight: 800; }
.fr-subs.small .fr-sub { font-size: .95rem; padding: 10px 12px; }

/* ---------- Étape 4 : Grands Esprits ---------- */
.ge-rule { margin-top: 10px; font: 700 14px var(--body, inherit); opacity: .85; }
.ge-bubbles { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 8px 0; }
.ge-bubble { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 2px solid var(--line2); border-radius: 999px; padding: 6px 14px 6px 6px; font: 800 1.05rem var(--display); animation: popin .35s backwards; }
.ge-tele-ov { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(124, 77, 255, .92), rgba(26, 11, 46, .97)); text-align: center; padding: 24px; animation: stagein .3s both; cursor: pointer; }
.ge-tele-ov b { display: block; font: 800 clamp(1.8rem, 8vw, 2.6rem) var(--display); color: #fff; }
.ge-tele-ov p { font-size: 1.1rem; color: #fff; max-width: 420px; margin: 10px auto 0; }
.ge-tele-big { font-size: 80px; animation: floaty 2s ease-in-out infinite; }
.ge-prop.auto { border-color: var(--cyan); }
.ge-pts { color: var(--yellow); font-size: 15px; }
.ge-gain .ge-line { border-radius: 16px; text-align: center; }

/* ---------- Étape 5 : L'Intrus ---------- */
.chip.off { opacity: .35; text-decoration: line-through; }
.set-note { display: block; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--cyan); }
.set-note.bad { color: var(--pink); }
.role.blank { background: linear-gradient(160deg, #f4f1ff, #cfc6ee); color: #2a0b1c; border-color: #fff; }
.role.blank .role-kicker, .role.blank .muted { color: #5b4a7a; }
.role.blank .role-word.unknown { color: #8b7bb0; -webkit-text-fill-color: #8b7bb0; }
.role.imp { background: linear-gradient(160deg, #6b1646, #24103f); border-color: rgba(255, 79, 154, .6); }
.in-chip { display: inline-block; font: 800 11px var(--display); letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(54, 214, 231, .18); color: var(--cyan); white-space: nowrap; }
.in-chip.impostor { background: rgba(255, 79, 154, .2); color: var(--pink); }
.in-chip.blank { background: #f4f1ff; color: #3a1d6b; }
.in-comp { color: var(--muted); font-weight: 700; }
.in-compline { color: var(--muted); font-weight: 700; margin: 4px 0; }
.clue.old { opacity: .55; }
.sc.out { opacity: .45; text-decoration: line-through; }
.in-out { display: grid; justify-items: center; gap: 8px; text-align: center; background: var(--panel); border-radius: 24px; padding: 18px; animation: popin .35s both; }
.in-out { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.in-out > * { max-width: 100%; }
.in-out .inline-form { justify-self: stretch; }
.in-out.impostor { background: linear-gradient(160deg, rgba(255, 79, 154, .25), var(--panel)); }
.in-out.blank { background: linear-gradient(160deg, rgba(244, 241, 255, .18), var(--panel)); }
.in-out.normal { background: linear-gradient(160deg, rgba(54, 214, 231, .16), var(--panel)); }
.in-out-big { font-size: 56px; }
.in-out-av svg { filter: grayscale(.6); }
.in-was { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.in-counts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.in-counts span { display: inline-flex; align-items: center; gap: 4px; background: rgba(0, 0, 0, .2); border-radius: 999px; padding: 3px 10px 3px 3px; font-size: 13px; }
.in-counts b { color: var(--yellow); }
.in-words { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.in-words div { background: rgba(0, 0, 0, .2); border-radius: 16px; padding: 10px; display: grid; gap: 2px; }
.in-words small { color: var(--muted); font-weight: 700; font-size: 12px; }
.in-words b { font: 800 1.3rem var(--display); }
.reveal-box.normals { background: linear-gradient(160deg, rgba(61, 220, 151, .22), var(--panel)); }
.reveal-box.hidden, .reveal-box.blank { background: linear-gradient(160deg, rgba(255, 79, 154, .25), var(--panel)); }
.in-roles { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.in-roles li { display: flex; align-items: center; gap: 8px; background: var(--panel); border-radius: 16px; padding: 6px 10px; }
.in-roles li b { flex: 1; }
.in-roles li.off b { text-decoration: line-through; opacity: .7; }
.in-roles em { font-style: normal; font: 800 15px var(--display); color: var(--yellow); }

/* Village des Ombres : rôles, actions de nuit, bandeaux du jour */
.role.c-shadows { background: linear-gradient(160deg, #111827, #3b0d3d); border-color: rgba(255, 79, 154, .6); }
.role.c-solo { background: linear-gradient(160deg, #3f2a0d, #1d1033); border-color: rgba(255, 138, 61, .6); }
.role.c-renegade { background: linear-gradient(160deg, #1f2937, #3b0d3d); border-color: rgba(148, 163, 184, .6); }
.role.vo-healer, .role.vo-medium { background: linear-gradient(160deg, #134e3a, #24103f); border-color: rgba(52, 211, 153, .6); }
.role.vo-smith, .role.vo-shield, .role.vo-archer { background: linear-gradient(160deg, #0f4c5c, #24103f); border-color: rgba(54, 214, 231, .6); }
.role.vo-reader, .role.vo-arbiter, .role.vo-magpie { background: linear-gradient(160deg, #3b1f7a, #24103f); border-color: rgba(167, 139, 250, .6); }
.vo-camp { font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; opacity: .85; }
.vo-role-tag.c-shadows { background: rgba(255, 79, 154, .2); }
.vo-role-tag.c-solo { background: rgba(255, 138, 61, .2); }
.vo-role-tag.c-village { background: rgba(54, 214, 231, .16); }
.vo-slot { display: grid; gap: 8px; padding: 10px; border-radius: 18px; background: rgba(255, 255, 255, .05); }
.vo-slot h3 { margin: 0; font-size: 16px; text-align: center; }
.vo-slot .seg { justify-content: center; }
.vo-banner { margin: 0; padding: 10px 12px; border-radius: 16px; text-align: center; font-weight: 700; }
.vo-banner.mist { background: rgba(148, 163, 184, .2); }
.vo-banner.mark { background: rgba(255, 210, 63, .16); }
.vo-comp { padding: 8px 12px; border-radius: 16px; background: rgba(255, 255, 255, .05); }
.vo-comp summary { cursor: pointer; font-weight: 800; }
.vo-comp-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.vo-death { display: grid; justify-items: center; gap: 4px; }
.vo-death + .vo-death { border-top: 1px dashed rgba(255, 255, 255, .2); padding-top: 8px; }
.vo-roles .vo-pts { font-weight: 800; color: var(--yellow); }

/* ===== SAFIO Showtime : plateau télé, projecteurs, rideau ===== */
.showtime { --tc: #8b5cf6; display: grid; gap: 12px; position: relative; }
.showtime .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st-round { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.st-round b { color: var(--text); font-family: var(--display); }
.st-round small { margin-left: auto; padding: 2px 10px; border-radius: 99px; background: var(--panel); }
.st-scores { display: flex; gap: 8px; margin-top: 8px; }
.st-team-score { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 14px; background: var(--panel); border: 2px solid transparent; font-size: 13px; min-width: 0; transition: transform .25s, border-color .25s; }
.st-team-score span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-team-score b { font-family: var(--display); font-size: 1.3rem; color: var(--tc); }
.st-team-score.on { border-color: var(--tc); transform: translateY(-2px); box-shadow: 0 0 18px color-mix(in srgb, var(--tc) 45%, transparent); }
.st-hero { text-align: center; padding: 18px 10px 6px; background: radial-gradient(60% 90% at 50% 0%, rgba(255, 210, 63, .25), transparent 70%); border-radius: var(--radius); }
.st-hero h2 { font-family: var(--display); font-size: 1.8rem; margin: 0; }
.st-teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.st-team { background: var(--panel); border-radius: 18px; padding: 10px; border-top: 5px solid var(--tc); display: grid; gap: 6px; align-content: start; }
.st-team h3 { margin: 0 0 4px; font-family: var(--display); color: var(--tc); display: flex; justify-content: space-between; }
.st-member { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 0; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.st-member:disabled { cursor: default; opacity: 1; }
.st-member span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-member small { color: var(--dim); }
.st-setup { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.st-setup span { padding: 4px 10px; border-radius: 99px; background: var(--panel); }
.st-banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 18px; background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 35%, var(--panel)), var(--panel)); border-left: 6px solid var(--tc); }
.st-banner small { display: block; color: var(--muted); }
.st-banner b { font-family: var(--display); font-size: 1.15rem; }
.st-rule { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 18px; background: var(--panel2); border: 2px dashed rgba(255, 210, 63, .5); animation: st-pop .45s cubic-bezier(.2, 1.4, .4, 1); }
.st-rule p { margin: 4px 0 0; color: var(--muted); }
.st-rule-icon { font-size: 2.6rem; }
.st-go { animation: st-pulse 1.4s infinite; }
.st-ring { position: relative; width: 108px; height: 108px; margin: 0 auto; }
.st-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.st-ring circle { fill: none; stroke-width: 9; }
.st-ring .bg { stroke: rgba(255, 255, 255, .1); }
.st-ring .fg { stroke: var(--tc); stroke-linecap: round; transition: stroke-dasharray .2s linear, stroke .3s; }
.st-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 2.2rem; }
.st-ring.hurry .fg { stroke: var(--red); }
.st-ring.hurry b { color: var(--red); animation: st-beat .5s infinite; }
.st-pause { text-align: center; padding: 10px; border-radius: 14px; background: rgba(255, 92, 108, .18); font-weight: 700; }
.st-card { position: relative; text-align: center; padding: 26px 16px 18px; border-radius: 24px; color: #2a0b1c; background: linear-gradient(160deg, #fffaf0, #ffe9c7); box-shadow: 0 10px 0 color-mix(in srgb, var(--tc) 70%, #000), 0 22px 40px rgba(0, 0, 0, .4); border: 4px solid var(--tc); }
.st-card.opp { background: linear-gradient(160deg, #eef1ff, #d9defa); }
.st-card.card-in { animation: st-cardin .45s cubic-bezier(.2, 1.3, .4, 1); }
.st-cat { display: inline-block; padding: 3px 12px; border-radius: 99px; background: var(--tc); color: #fff; font-weight: 700; font-size: 13px; }
.st-word { font-family: var(--display); font-size: clamp(1.8rem, 8vw, 2.8rem); line-height: 1.1; margin: 14px 0 8px; overflow-wrap: anywhere; }
.st-rule-mini { opacity: .7; }
.st-count { margin-top: 6px; text-align: center; font-family: var(--display); font-size: 1.4rem; color: var(--green); }
.st-actions { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }
.st-actions .btn:only-child { grid-column: 1 / -1; }
.btn.found { background: linear-gradient(135deg, #3ddc97, #20b37a); border: 0; color: #062b1c; box-shadow: 0 6px 0 #148457, 0 14px 30px rgba(61, 220, 151, .3); }
.btn.found:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 3px 0 #148457; }
.st-guess { text-align: center; padding: 22px 10px; border-radius: 22px; background: radial-gradient(70% 100% at 50% 0%, color-mix(in srgb, var(--tc) 40%, transparent), var(--panel)); }
.st-big { font-family: var(--display); font-size: 1.7rem; line-height: 1.15; }
.st-found { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.st-found span { padding: 4px 10px; border-radius: 99px; background: var(--panel); font-size: 14px; animation: st-pop .35s; }
.st-timeup { text-align: center; padding: 18px 10px; border-radius: 22px; background: var(--panel); border-top: 5px solid var(--tc, var(--violet)); }
.st-timeup.buzz { animation: st-shake .5s; }
.st-timeup p { margin: 6px 0 0; color: var(--muted); }
.st-table { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: 16px; overflow: hidden; font-size: 14px; }
.st-table th, .st-table td { padding: 8px; text-align: center; }
.st-table td:first-child { text-align: left; }
.st-table tr + tr td { border-top: 1px solid var(--line); }
.st-table .tot td { font-family: var(--display); font-size: 1.15rem; background: rgba(255, 255, 255, .05); }
.st-podium { text-align: center; padding: 20px 10px 0; border-radius: 26px; overflow: hidden; position: relative;
  background: conic-gradient(from 200deg at 50% -10%, transparent 0 20deg, rgba(255, 210, 63, .22) 30deg, transparent 45deg 75deg, rgba(255, 255, 255, .12) 85deg, transparent 100deg), radial-gradient(80% 80% at 50% 0%, color-mix(in srgb, var(--tc) 45%, transparent), var(--panel)); }
.st-podium h2 { font-family: var(--display); font-size: 1.9rem; margin: 4px 0 10px; }
.st-trophy { font-size: 3.4rem; animation: st-trophy 1.2s cubic-bezier(.2, 1.4, .4, 1); }
.st-win-members { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 14px; }
.st-win-members span { display: grid; justify-items: center; gap: 2px; font-size: 13px; }
.st-steps { display: flex; align-items: flex-end; justify-content: center; gap: 6px; }
.st-step { width: 92px; border-radius: 14px 14px 0 0; background: var(--tc); color: #1a0b2e; display: grid; align-content: start; padding: 8px 4px; animation: st-rise .8s cubic-bezier(.2, 1.2, .4, 1) both; }
.st-step b { font-family: var(--display); font-size: 1.6rem; }
.st-step span { font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-step.s0 { height: 120px; order: 2; }
.st-step.s1 { height: 90px; order: 1; animation-delay: .15s; }
.st-step.s2 { height: 70px; order: 3; animation-delay: .3s; }
.st-step.s3 { height: 55px; order: 4; animation-delay: .45s; }
.st-words summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.st-burst { position: absolute; left: 50%; top: 45%; pointer-events: none; }
.st-burst i { position: absolute; width: 10px; height: 10px; border-radius: 3px; background: var(--c); animation: st-burst .7s ease-out forwards; transform: rotate(var(--a)) translateY(0); }
/* Showtime B : manche bonus, dessin express, cartes perso */
.st-constraint { display: grid; justify-items: center; gap: 2px; text-align: center; background: linear-gradient(135deg, rgba(255, 210, 63, .2), rgba(255, 79, 154, .16)); border: 1.5px dashed rgba(255, 210, 63, .6); border-radius: 18px; padding: 10px 14px; font-size: 22px; animation: st-wobble 2.4s ease-in-out infinite; }
.st-constraint span { font-size: 13px; color: var(--muted); font-weight: 700; }
.st-constraint b { font: 800 19px/1.2 var(--display); }
@keyframes st-wobble { 0%, 100% { filter: none; } 50% { filter: brightness(1.15); } }
.st-pad { position: relative; width: 100%; max-width: 420px; margin: 0 auto; aspect-ratio: 1; border-radius: 22px; overflow: hidden; border: 4px solid #fff; box-shadow: var(--shadow); background: #fffdf7; }
.st-pad canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.st-pad.can-draw canvas { cursor: crosshair; }
.st-pad-clear { position: absolute; right: 8px; bottom: 8px; background: rgba(26, 11, 46, .85); color: #fff; display: none; }
.st-pad.can-draw .st-pad-clear { display: block; }
.st-custom-btn { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--panel); border: 1.5px dashed var(--line2); border-radius: 18px; padding: 12px 14px; font-size: 22px; cursor: pointer; color: inherit; }
.st-custom-btn span { display: grid; flex: 1; gap: 2px; }
.st-custom-btn b { font: 800 16px var(--display); }
.st-custom-btn small { font-size: 13px; color: var(--muted); }
.st-custom-btn i { font-style: normal; font-size: 18px; color: var(--muted); }
.st-custom-btn.on { border-style: solid; border-color: var(--yellow, #ffd23f); background: rgba(255, 210, 63, .1); }
.st-cmode { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.st-ccat { display: grid; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 10px; margin: 10px 0; }
.st-ccat.off { opacity: .55; }
.st-ccat-top { display: flex; gap: 6px; align-items: center; }
.st-ccat-top .input { flex: 1; padding: .55em .8em; }
.st-ccat textarea { color: var(--text); resize: vertical; font: inherit; font-weight: 600; min-height: 90px; }
.st-drawmode { gap: 8px; }
.st-drawmode .st-banner { padding: 6px 10px; }
.st-drawmode .st-banner .st-ring { width: 54px; height: 54px; margin: 0 0 0 auto; flex: none; }
.st-drawmode .st-banner .st-ring b { font-size: 1.25rem; }
.st-drawmode .st-card { padding: 8px 12px 10px; box-shadow: 0 6px 0 color-mix(in srgb, var(--tc) 70%, #000); }
.st-drawmode .st-word { font-size: clamp(1.3rem, 6vw, 1.8rem); margin: 4px 0 2px; }
.st-drawmode .st-rule-mini, .st-drawmode .st-count { display: none; }
.st-drawmode .st-guess { padding: 8px 10px; }
.st-drawmode .st-guess .st-big { font-size: 1.25rem; }
.st-drawmode .st-guess p { margin: 2px 0 0; font-size: 13px; }
.st-drawmode .st-pad { max-width: min(100%, 40vh); max-width: min(100%, 40dvh); }
/* Showtime C : couleur et illustration par catégorie */
.st-card { --cc: var(--tc); overflow: hidden; background: radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--cc) 22%, transparent) 0 18%, transparent 19%), radial-gradient(circle at 88% 86%, color-mix(in srgb, var(--cc) 18%, transparent) 0 22%, transparent 23%), linear-gradient(160deg, #fffaf0, color-mix(in srgb, var(--cc) 16%, #ffe9c7)); }
.st-card.opp { background: radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--cc) 20%, transparent) 0 18%, transparent 19%), linear-gradient(160deg, #eef1ff, color-mix(in srgb, var(--cc) 14%, #d9defa)); }
.st-card > :not(.st-ill) { position: relative; }
.st-card .st-cat { background: var(--cc); box-shadow: 0 3px 0 color-mix(in srgb, var(--cc) 60%, #000); }
.st-ill { position: absolute; right: -6px; bottom: -14px; font-size: 92px; line-height: 1; font-style: normal; opacity: .16; transform: rotate(-14deg); pointer-events: none; filter: saturate(1.4); }
.st-card.card-in .st-ill { animation: st-ill .6s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes st-ill { from { transform: rotate(-40deg) scale(.4); opacity: 0; } to { transform: rotate(-14deg); opacity: .16; } }
.st-found span[style] { background: color-mix(in srgb, var(--cc) 28%, var(--panel)); border: 1px solid color-mix(in srgb, var(--cc) 55%, transparent); }
.st-drawmode .st-ill { font-size: 56px; }
@keyframes st-burst { to { transform: rotate(var(--a)) translateY(-120px) scale(.3); opacity: 0; } }
@keyframes st-cardin { from { transform: translateY(40px) rotate(-6deg) scale(.85); opacity: 0; } }
@keyframes st-pop { from { transform: scale(.7); opacity: 0; } }
@keyframes st-pulse { 50% { filter: brightness(1.15); } }
@keyframes st-beat { 50% { transform: scale(1.15); } }
@keyframes st-shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@keyframes st-trophy { from { transform: scale(0) rotate(-30deg); } }
@keyframes st-rise { from { transform: scaleY(0); transform-origin: bottom; } }
@media (prefers-reduced-motion: reduce) { .showtime * { animation: none !important; } }

/* ===== SAFIO Un Seul Mot : tableau d'idées, ampoule, post-it ===== */
.unmot { display: grid; gap: 12px; }
.unmot .row2 { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.um-score { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; font-size: 14px; }
.um-score span { padding: 3px 10px; border-radius: 99px; background: var(--panel); }
.um-score .um-star { background: #ffd23f; color: #1e1b4b; font-family: var(--display); font-size: 1rem; }
.um-score small { margin-left: auto; color: var(--muted); }
.um-guesser { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 18px; background: linear-gradient(90deg, rgba(255, 210, 63, .2), var(--panel)); border-left: 6px solid #ffd23f; }
.um-guesser small { display: block; color: var(--muted); }
.um-guesser b { font-family: var(--display); font-size: 1.15rem; }
.um-guesser.me { animation: st-pop .4s; }
.um-word { position: relative; text-align: center; padding: 22px 16px 18px; border-radius: 22px; background: radial-gradient(120% 90% at 50% 0%, #2a2470, #141233); border: 2px solid rgba(255, 210, 63, .6); box-shadow: 0 0 40px rgba(255, 210, 63, .18); }
.um-word small { display: block; color: var(--muted); }
.um-word b { display: block; font-family: var(--display); font-size: clamp(1.9rem, 9vw, 2.8rem); color: #ffd23f; text-shadow: 0 0 18px rgba(255, 210, 63, .5); overflow-wrap: anywhere; }
.um-bulb { font-size: 2.2rem; filter: drop-shadow(0 0 14px rgba(255, 210, 63, .8)); animation: um-glow 2.4s infinite; }
.um-bulb.big { font-size: 3.6rem; }
@keyframes um-glow { 50% { filter: drop-shadow(0 0 4px rgba(255, 210, 63, .3)); } }
.um-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; padding: 6px 2px; }
.um-note { position: relative; display: grid; gap: 4px; align-content: center; justify-items: center; min-height: 92px; padding: 14px 8px 8px; border: 0; border-radius: 4px 4px 14px 4px; color: #1e1b4b; font: inherit; text-align: center;
  transform: rotate(var(--r)); box-shadow: 0 8px 16px rgba(0, 0, 0, .35); animation: um-stick .45s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: var(--d); }
.um-note::before { content: ""; position: absolute; top: -8px; left: 50%; width: 46px; height: 16px; transform: translateX(-50%) rotate(-3deg); background: rgba(255, 255, 255, .45); border-radius: 2px; }
.um-note b { font-family: var(--display); font-size: 1.25rem; overflow-wrap: anywhere; }
.um-note small { display: flex; align-items: center; gap: 4px; font-size: 11px; opacity: .75; }
.um-note em { font-style: normal; font-size: 12px; font-weight: 800; color: #b91c1c; }
.um-note.c0 { background: #fde047; } .um-note.c1 { background: #f9a8d4; } .um-note.c2 { background: #86efac; } .um-note.c3 { background: #7dd3fc; } .um-note.c4 { background: #fdba74; }
.um-note.mine { outline: 3px solid #fff; }
button.um-note { cursor: pointer; }
.um-note.dup, .um-note.flag { filter: grayscale(.8) brightness(.75); }
.um-note.dup b, .um-note.flag b { text-decoration: line-through 3px #b91c1c; }
.um-note.dup { animation: um-stick .45s both, um-clash .6s .5s; }
@keyframes um-stick { from { transform: translateY(-30px) rotate(calc(var(--r) * 3)) scale(.8); opacity: 0; } }
@keyframes um-clash { 25% { transform: translateX(-8px) rotate(var(--r)); } 50% { transform: translateX(8px) rotate(var(--r)); } 75% { transform: translateX(-4px) rotate(var(--r)); } }
.um-wait { text-align: center; padding: 24px 12px; border-radius: 22px; background: var(--panel); }
/* Un Seul Mot B : contre la montre, progressif, mots perso */
.um-attack { display: grid; gap: 4px; padding: 8px 12px; border-radius: 16px; background: linear-gradient(90deg, rgba(255, 79, 154, .22), rgba(255, 210, 63, .14)); border: 1.5px solid rgba(255, 79, 154, .5); }
.um-attack > span { font: 800 14px var(--display); }
.um-attack .timer { height: 14px; }
.um-lvl { color: #ffd23f; letter-spacing: 1px; }
.um-prep { display: grid; gap: 10px; }
.um-prep h2 { margin: 0; }
.um-prep textarea { color: var(--text); resize: vertical; font: inherit; font-weight: 600; min-height: 170px; }
.um-auto { margin: 0; }
.um-eyes { font-size: 3rem; animation: st-beat 1.6s infinite; }
.um-stack { position: relative; height: 70px; margin: 10px auto; width: 120px; }
.um-stack i { position: absolute; inset: 0 20px; background: #fde047; border-radius: 4px; transform: rotate(var(--r)); box-shadow: 0 6px 12px rgba(0, 0, 0, .3); animation: um-stick .4s both; }
.um-reveal { text-align: center; padding: 18px 12px; border-radius: 22px; background: var(--panel); border-top: 6px solid var(--red); animation: st-pop .4s; }
.um-reveal.ok { border-color: var(--green); background: radial-gradient(90% 100% at 50% 0%, rgba(61, 220, 151, .25), var(--panel)); }
.um-big { font-family: var(--display); font-size: 1.9rem; }
.um-answer { display: grid; gap: 2px; margin-top: 6px; }
.um-answer span { color: var(--muted); font-size: 13px; }
.um-the-word { font-family: var(--display); font-size: 2rem; color: #ffd23f; }
.um-end { text-align: center; padding: 20px 10px; border-radius: 26px; background: radial-gradient(90% 100% at 50% 0%, rgba(255, 210, 63, .28), var(--panel)); }
.um-end h2 { font-family: var(--display); margin: 4px 0; font-size: 1.8rem; }
.um-final { font-family: var(--display); font-size: 3.4rem; line-height: 1; color: #ffd23f; animation: st-trophy .9s cubic-bezier(.2, 1.4, .4, 1); }
.um-final small { font-size: 1.2rem; color: var(--muted); }
.um-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.um-stats > div { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border-radius: 16px; background: var(--panel); text-align: center; }
.um-stats b { font-family: var(--display); font-size: 1.4rem; }
.um-stats small { font-size: 12px; color: var(--muted); }
.um-hist { display: grid; gap: 6px; }
.um-hist > div { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; background: var(--panel); }
.um-hist > div.ko { opacity: .7; }
.um-hist small { margin-left: auto; display: flex; align-items: center; gap: 4px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .unmot * { animation: none !important; } }

/* ---------- SAFIO TV (téléphone de l'organisateur) ---------- */
.tv-card { display: grid; gap: 8px; }
.tv-card[hidden] { display: none; }
.tv-status { color: var(--cyan); font-weight: 700; text-align: center; }
.tv-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; margin: 10px 0; }
.tv-code-in { font: 800 26px var(--display); letter-spacing: .2em; text-transform: uppercase; text-align: center; }
.tv-or { display: flex; align-items: center; gap: 10px; color: var(--dim); margin: 6px 0; }
.tv-or::before, .tv-or::after { content: ""; flex: 1; height: 1px; background: var(--line2); }
.tv-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
#tv-list { margin: 10px 0; display: grid; gap: 6px; }
/* ===== SAFIO Mystères ===== */
.mysteres { display: flex; flex-direction: column; gap: 12px; }
.ms-scores { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 13px; }
.ms-scores span { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 3px; border-radius: 99px; background: var(--panel); }
.ms-scores span.teller { background: linear-gradient(90deg, rgba(167, 139, 250, .45), var(--panel)); }
.ms-scores small { margin-left: auto; color: var(--muted); font-weight: 700; }
.ms-banner { display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 12px 14px; border-radius: 18px; background: var(--panel); font-weight: 800; font-family: var(--display); }
.ms-banner.me { background: linear-gradient(120deg, #6d28d9, #db2777); color: #fff; animation: st-pop .4s; }
.ms-clue { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 18px; background: radial-gradient(120% 120% at 0% 0%, #3b1f6e, #161233); border: 2px solid rgba(167, 139, 250, .55); box-shadow: 0 0 30px rgba(167, 139, 250, .18); }
.ms-clue small { display: block; color: var(--muted); }
.ms-clue b { font-family: var(--display); font-size: 1.25rem; color: #f5f3ff; word-break: break-word; }
.ms-art { display: block; width: 100%; aspect-ratio: 3 / 4; border-radius: inherit; overflow: hidden; background: #1b1638; }
.ms-art img, .ms-art .ms-svg { width: 100%; height: 100%; display: block; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.ms-card { position: relative; padding: 0; border: 3px solid rgba(255, 255, 255, .85); border-radius: 14px; background: #1b1638; cursor: pointer; box-shadow: var(--shadow); transition: transform .18s, border-color .18s, box-shadow .18s; }
.ms-card:disabled { cursor: default; }
.ms-card:not(:disabled):not(.sel):hover { filter: brightness(1.12); }
.ms-card.sel { border-color: #ffd23f; transform: translateY(-6px) scale(1.03); box-shadow: 0 0 0 3px rgba(255, 210, 63, .35), var(--shadow); }
.ms-card.chosen { border-color: var(--cyan); }
.ms-card.mine { opacity: .55; }
.ms-card.voted { border-color: #ffd23f; box-shadow: 0 0 0 4px rgba(255, 210, 63, .4), var(--shadow); }
.ms-card i { position: absolute; font-style: normal; font: 800 12px/1 var(--display); }
.ms-tick, .ms-num { top: 6px; right: 6px; min-width: 24px; height: 24px; line-height: 24px !important; text-align: center; border-radius: 99px; background: rgba(16, 20, 42, .85); color: #fff; padding: 0 4px; }
.ms-card.chosen .ms-tick { background: var(--cyan); color: #10142a; }
.ms-tag { left: 50%; bottom: 6px; transform: translateX(-50%); padding: 4px 8px; border-radius: 99px; background: rgba(16, 20, 42, .9); color: #fff; white-space: nowrap; }
.ms-hand { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ms-table { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.ms-preview { width: min(62%, 240px); margin: 0 auto; border-radius: 18px; border: 4px solid #ffd23f; box-shadow: 0 10px 40px rgba(255, 210, 63, .25); animation: st-pop .3s; }
.ms-rcard { position: relative; border-radius: 14px; padding: 4px; background: var(--panel); opacity: 0; animation: ms-flip .6s cubic-bezier(.2, .8, .3, 1.2) forwards; animation-delay: var(--d, 0ms); transform-origin: 50% 60%; }
.ms-rcard.teller { background: linear-gradient(160deg, #ffd23f, #f59e0b); box-shadow: 0 0 30px rgba(255, 210, 63, .45); }
.ms-rcard .ms-art { border-radius: 10px; }
.ms-owner { display: flex; align-items: center; gap: 4px; padding: 4px 2px 2px; font-size: 12px; font-weight: 800; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ms-rcard.teller .ms-owner { color: #1e1b4b; }
.ms-voters { display: flex; flex-wrap: wrap; gap: 2px; min-height: 22px; padding: 0 2px 2px; }
.ms-voters svg { animation: st-pop .3s backwards; animation-delay: calc(var(--d, 0ms) + 500ms); }
@keyframes ms-flip { from { opacity: 0; transform: perspective(700px) rotateY(90deg) scale(.9); } to { opacity: 1; transform: none; } }
.ms-verdict { text-align: center; padding: 10px; border-radius: 16px; font: 800 1.15rem var(--display); animation: st-pop .4s; }
.ms-verdict.ok { background: rgba(52, 211, 153, .18); color: #a7f3d0; }
.ms-verdict.ko { background: rgba(248, 113, 113, .16); color: #fecaca; }
.ms-gains { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ms-gains span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 3px; border-radius: 99px; background: var(--panel); font-weight: 700; }
.ms-gains b { color: #6ee7b7; font-family: var(--display); }
.ms-end { text-align: center; }
.ms-crystal { font-size: 64px; animation: breathe 2s infinite; }
.ms-rank { list-style: none; padding: 0; margin: 12px auto; max-width: 420px; display: flex; flex-direction: column; gap: 6px; }
.ms-rank li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: var(--panel); }
.ms-rank li span { flex: 1; text-align: left; font-weight: 700; }
.ms-rank li b { font-family: var(--display); font-size: 1.2rem; }
.ms-rank li.first { background: linear-gradient(90deg, rgba(255, 210, 63, .35), var(--panel)); }
@media (min-width: 640px) { .ms-hand { grid-template-columns: repeat(6, 1fr); } .ms-table { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .ms-rcard { animation: none; opacity: 1; } }
.tv-hint { font-size: 14px; color: var(--muted); margin-top: 10px; }
.tv-hint a { color: var(--cyan); text-decoration: none; }
.tv-seg { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
#tv-opts { margin-top: 12px; }
/* Songes B : photos perso, pièges SAFIO */
.ms-privacy { font-size: 13px; color: var(--muted); background: var(--panel); border-radius: 14px; padding: 8px 12px; margin: 0; }
.ms-ph { cursor: default; }
.ms-del { position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; font-size: 16px; border-radius: 50%; border: 0; background: rgba(16, 20, 42, .85); color: #fff; font-weight: 800; cursor: pointer; }
.ms-add { display: grid; place-items: center; aspect-ratio: 3 / 4; border-style: dashed; color: var(--muted); font: 800 2rem var(--display); }
.ms-add small { display: block; font-size: 12px; }
.ms-phn { background: #ffd23f !important; }
.ms-gone { display: grid; place-items: center; height: 100%; font-size: 2rem; }
.ms-safio { display: inline-grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #a78bfa, #f472b6); color: #fff; font-size: 12px; font-weight: 800; flex: none; }

/* ===== SAFIO Impro ===== */
.impro { display: flex; flex-direction: column; gap: 12px; }
.im-sit { padding: 14px 16px; border-radius: 20px; background: radial-gradient(120% 120% at 0% 0%, #7f1d1d, #1e1b4b); border: 2px solid rgba(253, 230, 138, .5); box-shadow: 0 0 30px rgba(239, 68, 68, .15); }
.im-sit small { display: block; color: #fde68a; font-weight: 800; letter-spacing: .04em; }
.im-sit b { font-family: var(--display); font-size: 1.2rem; line-height: 1.3; }
.im-cast { display: grid; gap: 8px; }
.im-actor { display: flex; align-items: center; gap: 10px; }
.im-cast .im-actor { padding: 8px 12px; border-radius: 16px; background: var(--panel); }
.im-actor b { display: block; }
.im-actor span { display: block; color: var(--muted); font-size: 14px; }
.im-secret { padding: 14px 16px; border-radius: 20px; background: #fffdf7; color: #1e1b4b; border: 3px dashed #ef4444; box-shadow: var(--shadow); animation: st-pop .4s; }
.im-secret small { display: block; color: #6b7280; font-weight: 700; margin-top: 4px; }
.im-secret b { display: block; font-family: var(--display); font-size: 1.15rem; margin-bottom: 6px; }
.im-secret .im-cons { color: #b91c1c; }
.im-secret.small { padding: 10px 14px; }
.im-live { align-self: center; padding: 6px 16px; border-radius: 99px; background: #ef4444; color: #fff; font: 800 1.1rem var(--display); animation: breathe 1.4s infinite; }
.im-vote { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.im-vbtn { position: relative; display: grid; justify-items: center; gap: 4px; padding: 14px 10px; border-radius: 18px; border: 3px solid transparent; background: var(--panel); color: var(--text); cursor: pointer; text-align: center; }
.im-vbtn span { color: var(--muted); font-size: 13px; }
.im-vbtn.on { border-color: #ffd23f; box-shadow: 0 0 0 4px rgba(255, 210, 63, .3); }
.im-vbtn i { position: absolute; top: 6px; right: 8px; font-style: normal; }
.im-vbtn:disabled { cursor: default; }
.im-guess { display: grid; gap: 6px; padding: 10px; border-radius: 16px; background: var(--panel); }
.im-gwho { display: flex; align-items: center; gap: 6px; }
.im-gopt { text-align: left; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line2); background: transparent; color: var(--text); cursor: pointer; font: inherit; }
.im-gopt.on { border-color: var(--cyan); background: rgba(54, 214, 231, .15); }
.im-reveal { display: grid; gap: 10px; }
.im-rcard { padding: 12px; border-radius: 18px; background: var(--panel); opacity: 0; animation: ms-flip .6s cubic-bezier(.2, .8, .3, 1.2) forwards; animation-delay: var(--d, 0ms); }
.im-rcard.star { background: linear-gradient(160deg, rgba(255, 210, 63, .35), var(--panel)); border: 2px solid #ffd23f; }
.im-rcons { margin: 8px 0 4px; padding: 8px 10px; border-radius: 12px; background: #fffdf7; color: #b91c1c; }
.im-rcons small { display: block; color: #6b7280; font-weight: 700; }
.im-rline { font-weight: 700; color: var(--muted); font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .im-rcard { animation: none; opacity: 1; } }

/* Impro B : Bande-annonce */
.im-trailer { padding: 14px 16px; border-radius: 20px; background: #0b0b14; border: 2px solid #facc15; box-shadow: 0 0 34px rgba(250, 204, 21, .18); }
.im-trailer small { color: #facc15; font-weight: 800; letter-spacing: .04em; }
.im-poster { margin: 8px 0; padding: 14px 12px; border-radius: 14px; text-align: center; background: linear-gradient(160deg, #1f2937, #111827); border: 1px solid rgba(255, 255, 255, .12); }
.im-poster b { display: block; font-family: var(--display); font-size: 1.35rem; line-height: 1.25; color: #fff7d6; }
.im-genre { display: inline-block; margin-bottom: 6px; padding: 3px 10px; border-radius: 99px; background: #facc15; color: #1e1b4b; font: 800 12px var(--display); text-transform: uppercase; letter-spacing: .06em; }
.im-tone { margin: 6px 0 4px; color: #e5e7eb; font-size: 14px; }
.im-start { margin: 0; color: var(--muted); font-size: 14px; }
.im-start small { color: #facc15; }
.gmeta span.lang-only { background: rgba(255, 196, 0, .16); color: #ffd34d; }
.sheet > .lang-only { display: inline-block; margin: 0 0 8px; background: rgba(255, 196, 0, .16); color: #ffd34d; border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 700; }
/* Zones tactiles confortables (audit pré-lancement) : au moins ~44 px pour les doigts moins précis */
.sw { width: 40px; height: 40px; }
.swatches { gap: 8px; }
.btn.tiny { min-height: 40px; min-width: 40px; }
#al-next { min-height: 44px; }
.tg-like { padding: 9px 14px; min-height: 26px; }
.tv-hint a { display: inline-block; padding: 10px 0; }
.robix-pitch { margin: 14px 0 0; font-weight: 700; color: var(--cyan); }
