/* MKASINO LIVE — feuille de style commune */
:root {
  --bg: #07040c; --bg2: #120a1e; --panel: #1a0f2a; --line: #4a3268;
  --gold: #f0c95c; --gold2: #ffe7a3; --text: #ffffff; --muted: #d6c9ee;
  --ok: #2fbf71; --bad: #ff5c7a; --warn: #ffb347;
  --pink: #ff3fd8; --violet: #9b5cff; --blue: #4f7bff;
  --neon: linear-gradient(90deg, #ff3fd8, #9b5cff 50%, #4f7bff);
  --chrome: linear-gradient(180deg, #ffffff 0%, #ece6ff 38%, #b8a4ff 52%, #ffffff 70%, #d9d0ff 100%);
  --glass: rgba(18, 9, 32, .74);
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: radial-gradient(ellipse at top, #3a2150 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 18px; line-height: 1.4;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
[hidden] { display: none !important; }
.gold { color: var(--gold); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ------------------------------------------------------------- JOUEUR */
.player { max-width: 640px; margin: 0 auto; padding: 14px 14px 90px; }
.player.large { font-size: 22px; }
.p-logo { display: block; width: 210px; max-width: 70%; margin: 6px auto 4px; }
.p-event { text-align: center; color: var(--gold2); font-weight: 700; font-size: 1.05em; margin-bottom: 10px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 12px 0; }
.p-input { width: 100%; font-size: 1.5em; padding: 16px; border-radius: 12px; border: 3px solid var(--gold); background: #fff; color: #111; text-align: center; }
.p-input:focus { outline: 4px solid #fff; }
.big-btn { display: block; width: 100%; font-size: 1.5em; font-weight: 800; padding: 18px; margin-top: 14px; border: 0; border-radius: 14px; background: var(--gold); color: #1a1022; letter-spacing: 1px; }
.big-btn:active { transform: scale(.98); }
.p-label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 1.15em; }
.p-error { background: #5c1620; border: 2px solid var(--bad); color: #fff; border-radius: 12px; padding: 12px 14px; margin: 10px 0; font-weight: 600; }
.p-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.p-name { font-weight: 800; font-size: 1.2em; overflow-wrap: anywhere; }
.p-score { text-align: right; }
.p-score b { display: block; font-size: 1.6em; color: var(--gold); line-height: 1.1; }
.p-status { text-align: center; font-size: 1.35em; font-weight: 800; margin: 14px 0 6px; }
.p-question { text-align: center; font-size: 1.35em; font-weight: 700; margin: 6px 0 12px; }
.p-timer { text-align: center; font-size: 2.4em; font-weight: 900; color: var(--gold); }
.p-timer.low { color: var(--bad); }
.p-img { display: block; max-width: 100%; max-height: 240px; margin: 8px auto; border-radius: 12px; }
.choices { display: grid; grid-template-columns: 1fr; gap: 12px; }
.choice {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 78px; padding: 12px 16px;
  border-radius: 14px; border: 4px solid rgba(255,255,255,.25); font-size: 1.4em; font-weight: 800; text-align: left;
  box-shadow: 0 4px 0 rgba(0,0,0,.35);
}
.choice .sym { flex: 0 0 auto; width: 1.7em; height: 1.7em; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.28); font-size: 1.1em; }
.choice .lbl { flex: 1; overflow-wrap: anywhere; }
.choice .pts { font-size: .7em; opacity: .9; white-space: nowrap; }
.choice.selected { border-color: #fff; outline: 4px solid var(--gold); }
.choice.selected .lbl::after { content: '  ✔'; }
.choice.dim { opacity: .35; }
.choice.good { outline: 5px solid var(--ok); border-color: #fff; }
.choice:disabled { cursor: default; opacity: 1; }
.choice.dim:disabled { opacity: .35; }
.bet-summary { display: flex; justify-content: center; align-items: flex-end; gap: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px; margin: 6px 0 10px; font-size: .95em; color: var(--muted); }
.bet-summary div { text-align: center; }
.bet-summary b { display: block; font-size: 1.9em; color: var(--gold); line-height: 1.05; }
.bet-summary b.zero { color: var(--bad); }
.chips-label { text-align: center; font-weight: 700; margin-top: 6px; }
.chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.chip { width: 62px; height: 62px; border-radius: 50%; border: 5px dashed #fff8; background: #8c1d2c; color: #fff; font-weight: 900; font-size: 1.15em; box-shadow: 0 3px 0 #0007; }
.chip:nth-child(2) { background: #1f5fd1; } .chip:nth-child(3) { background: #138a4f; } .chip:nth-child(4) { background: #26232b; } .chip:nth-child(5) { background: #7b3fbf; } .chip:nth-child(6) { background: #a66f00; }
.chip.on { border: 5px solid var(--gold); outline: 4px solid #fff; transform: scale(1.1); }
.bet-row { display: flex; gap: 8px; align-items: stretch; }
.bet-row .choice { flex: 1; }
.choice .coef { font-size: .75em; opacity: .95; margin-left: 4px; }
.bet-amt { background: #fff; color: #111; border-radius: 30px; padding: 4px 12px; font-size: .85em; font-weight: 900; box-shadow: 0 0 0 3px var(--gold); }
.bet-clear { flex: 0 0 56px; border-radius: 14px; border: 2px solid #fff6; background: #3a2a44; color: #fff; font-size: 1.3em; font-weight: 900; }
.link-btn { display: block; margin: 10px auto 0; background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: 1em; }
.confirm { text-align: center; background: #123d27; border: 3px solid var(--ok); border-radius: 14px; padding: 14px; font-size: 1.25em; font-weight: 800; margin-top: 12px; }
.result-win { text-align: center; background: linear-gradient(#2a7a3e, #164d27); border: 3px solid #9df0b8; border-radius: 16px; padding: 18px; font-size: 1.7em; font-weight: 900; }
.result-lose { text-align: center; background: #3a2a44; border: 2px solid var(--line); border-radius: 16px; padding: 18px; font-size: 1.4em; font-weight: 800; }
.explain { background: #2c2140; border-left: 6px solid var(--gold); border-radius: 10px; padding: 12px 14px; margin-top: 12px; }
.code-box { text-align: center; font-size: .95em; color: var(--muted); margin-top: 18px; }
.code-box b { color: var(--gold2); font-size: 1.3em; letter-spacing: 4px; }
.rank-list { list-style: none; padding: 0; margin: 0; }
.rank-list li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.rank-list li.me { color: var(--gold); font-weight: 800; }
.net { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px; text-align: center; font-weight: 700; background: #7a1f2b; color: #fff; z-index: 50; }
.toolbar { position: absolute; right: 12px; top: 12px; z-index: 40; }
.toolbar button { background: #000a; color: #fff; border: 2px solid #fff6; border-radius: 30px; padding: 10px 14px; font-weight: 800; }
.pause-overlay { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(10,5,15,.88); z-index: 60; text-align: center; font-size: 2em; font-weight: 900; color: var(--gold); padding: 20px; }

/* ------------------------------------------------------------- ÉCRAN GÉANT (16:9) */
body.screen-body { overflow: hidden; cursor: none; background: #0b0710; }
.stage-wrap { position: fixed; inset: 0; overflow: hidden; }
.stage {
  width: 1920px; height: 1080px; position: absolute; left: 50%; top: 50%; overflow: hidden; transform-origin: center;
  background: radial-gradient(ellipse at 50% 0%, #4a2763 0%, #170d20 55%, #0b0710 100%);
  padding: 50px 70px; display: flex; flex-direction: column;
}
.stage .s-top { display: flex; align-items: center; justify-content: space-between; height: 110px; }
.stage .s-logo { height: 100px; }
.stage .s-info { font-size: 34px; color: var(--muted); text-align: right; }
.stage .s-info b { color: var(--gold); }
.stage .s-main { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; }
.s-title { font-size: 44px; color: var(--gold); font-weight: 800; text-align: center; letter-spacing: 2px; text-transform: uppercase; }
.s-question { font-size: 64px; font-weight: 800; text-align: center; margin: 14px 40px 28px; line-height: 1.15; }
.s-img { max-height: 330px; max-width: 900px; margin: 0 auto 24px; border-radius: 18px; display: block; }
.s-choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.s-choices.many { grid-template-columns: repeat(3, 1fr); }
.s-choice { position: relative; display: flex; align-items: center; gap: 22px; padding: 20px 28px; min-height: 120px; border-radius: 22px; font-size: 46px; font-weight: 800; border: 5px solid rgba(255,255,255,.25); overflow: hidden; }
.s-choice .sym { width: 82px; height: 82px; flex: 0 0 auto; display: grid; place-items: center; background: rgba(0,0,0,.28); border-radius: 50%; font-size: 48px; }
.s-choice .lbl { flex: 1; position: relative; z-index: 1; }
.s-choice .cnt { position: relative; z-index: 1; font-size: 40px; }
.s-choice .bar { position: absolute; left: 0; bottom: 0; height: 12px; background: rgba(255,255,255,.75); transition: width .8s; }
.s-choice.dim { opacity: .28; filter: grayscale(.6); }
.s-choice.good { border-color: #fff; box-shadow: 0 0 0 8px var(--ok), 0 0 60px rgba(47,191,113,.7); transform: scale(1.03); }
.s-question.small { font-size: 48px; margin: 6px 40px 14px; }
.s-wheel-row { display: flex; align-items: center; gap: 50px; }
.s-wheel { flex: 0 0 600px; height: 600px; filter: drop-shadow(0 0 40px rgba(240, 201, 92, .35)); }
.wheel-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.wheel-bulb { fill: #fff6cf; filter: drop-shadow(0 0 2px #ffd76a); }
.wheel-pointer { filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .6)); }
.wheel-slot.win { stroke: #fff; stroke-width: 4; animation: winpulse 0.8s ease-in-out infinite alternate; }
@keyframes winpulse { to { stroke: #f0c95c; filter: brightness(1.35); } }
.s-choices.col { flex: 1; grid-template-columns: 1fr; gap: 14px; }
.s-choices.col.two { grid-template-columns: 1fr 1fr; }
.s-choices.col .s-choice { min-height: 92px; font-size: 40px; padding: 12px 24px; }
.s-choices.col .s-choice .sym { width: 68px; height: 68px; font-size: 40px; }
.s-choices.col.two .s-choice { font-size: 30px; min-height: 76px; }
.s-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; font-size: 40px; }
.s-timer { font-size: 110px; font-weight: 900; color: var(--gold); min-width: 220px; text-align: center; line-height: 1; }
.s-timer.low { color: var(--bad); animation: pulse 1s infinite; }
.s-votes { font-size: 44px; }
.s-votes b { color: var(--gold); font-size: 64px; }
.s-phase { font-size: 52px; font-weight: 900; text-align: center; color: var(--gold2); }
.s-explain { font-size: 38px; text-align: center; margin-top: 22px; color: #fff; background: rgba(0,0,0,.3); border-radius: 18px; padding: 16px 30px; }
.s-lobby { display: grid; grid-template-columns: 1fr 560px; gap: 60px; align-items: center; height: 100%; }
.s-lobby h1 { font-size: 92px; margin: 0 0 20px; color: var(--gold2); line-height: 1.05; }
.s-lobby .steps { font-size: 46px; line-height: 1.6; }
.s-lobby .url { font-size: 50px; font-weight: 900; color: var(--gold); margin-top: 26px; word-break: break-all; }
.s-lobby .count { font-size: 56px; margin-top: 30px; }
.s-qr { background: #fff; padding: 26px; border-radius: 28px; box-shadow: 0 0 80px rgba(240,201,92,.35); }
.s-qr img { display: block; width: 100%; }
.stage .s-info { display: flex; align-items: center; gap: 22px; }
.s-join { font-size: 26px; color: var(--gold); font-weight: 700; }
.s-mini-qr img { display: block; width: 118px; height: 118px; background: #fff; padding: 7px; border-radius: 10px; }
.s-rank { list-style: none; padding: 0; margin: 0 auto; width: 1300px; font-size: 50px; }
.s-rank li { display: flex; justify-content: space-between; padding: 12px 30px; border-bottom: 2px solid #ffffff22; animation: slidein .5s both; }
.s-rank li .pl { color: var(--gold); width: 120px; font-weight: 900; }
.s-rank li .nm { flex: 1; font-weight: 700; }
.s-rank li .sc { font-weight: 900; }
.s-qualified { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; font-size: 40px; max-height: 720px; overflow: hidden; }
.s-qualified span { background: var(--panel); border: 2px solid var(--gold); border-radius: 50px; padding: 8px 26px; animation: pop .4s both; }
.s-rules { font-size: 54px; line-height: 1.5; text-align: center; white-space: pre-line; max-width: 1500px; margin: 0 auto; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 40px; height: 760px; }
.podium .col { width: 430px; text-align: center; animation: rise 1.2s both; }
.podium .col .nm { font-size: 58px; font-weight: 900; margin-bottom: 10px; overflow-wrap: anywhere; }
.podium .col .sc { font-size: 40px; color: var(--gold2); margin-bottom: 14px; }
.podium .col .block { border-radius: 20px 20px 0 0; display: grid; place-items: start center; padding-top: 20px; font-size: 120px; font-weight: 900; color: #1a1022; }
.podium .p1 .block { height: 420px; background: linear-gradient(#ffe9a6, #d9a22e); }
.podium .p2 .block { height: 300px; background: linear-gradient(#f2f2f2, #9ea6ad); }
.podium .p3 .block { height: 220px; background: linear-gradient(#f3c29b, #a86a3d); }
.podium .p1 { animation-delay: 2.4s; } .podium .p2 { animation-delay: 1.2s; } .podium .p3 { animation-delay: 0s; }
.special-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle, rgba(0,0,0,.5), rgba(0,0,0,.92)); z-index: 20; text-align: center; animation: fadeout 1s 5s forwards; pointer-events: none; }
.special-overlay .word { font-size: 230px; font-weight: 900; letter-spacing: 10px; background: linear-gradient(#fff6cf, #f0c95c 50%, #a36d10); -webkit-background-clip: text; background-clip: text; color: transparent; animation: zoom 1.2s cubic-bezier(.2, 1.6, .4, 1) both, glow 1.2s 1.2s infinite alternate; }
.special-overlay.mystery .word { background: linear-gradient(#f1e0ff, #b26cff 50%, #5b1fa8); -webkit-background-clip: text; background-clip: text; }
.special-overlay .sub { font-size: 60px; color: #fff; margin-top: 20px; }
.confetti { position: absolute; top: -40px; width: 18px; height: 30px; z-index: 19; animation: fall linear forwards; }
.s-pause { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(8,4,12,.9); font-size: 130px; font-weight: 900; color: var(--gold); }
.fs-btn { position: fixed; top: 14px; right: 14px; z-index: 100; padding: 14px 20px; font-size: 18px; font-weight: 800; border-radius: 12px; border: 0; background: var(--gold); color: #1a1022; cursor: pointer; }
.s-net { position: fixed; left: 14px; top: 14px; z-index: 100; background: #7a1f2b; color: #fff; padding: 8px 14px; border-radius: 8px; font-size: 16px; }

@keyframes pulse { 50% { transform: scale(1.08); } }
@keyframes slidein { from { opacity: 0; transform: translateX(-60px); } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }
@keyframes rise { from { opacity: 0; transform: translateY(300px); } }
@keyframes zoom { from { transform: scale(.1) rotate(-12deg); opacity: 0; } }
@keyframes glow { to { filter: drop-shadow(0 0 40px rgba(255,220,120,.9)); } }
@keyframes fadeout { to { opacity: 0; visibility: hidden; } }
@keyframes fall { to { transform: translateY(1200px) rotate(720deg); } }

/* ------------------------------------------------------------- RÉGIE */
.admin { font-size: 16px; }
.a-login { max-width: 420px; margin: 12vh auto; }
.a-top { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 10px 16px; background: #1a0f22ee; border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.a-top img { height: 42px; }
.a-top .stat { font-size: 15px; color: var(--muted); }
.a-top .stat b { color: #fff; font-size: 18px; }
.a-top .phase { padding: 4px 12px; border-radius: 20px; font-weight: 800; background: #3d2b4b; }
.a-top .phase.open { background: var(--ok); color: #062611; }
.a-top .phase.closed { background: var(--warn); color: #2a1700; }
.a-top .phase.result { background: var(--gold); color: #2a1700; }
.a-top .net-ok { color: var(--ok); } .a-top .net-ko { color: var(--bad); }
.a-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; padding: 16px; }
@media (max-width: 1050px) { .a-grid { grid-template-columns: 1fr; } }
.a-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 16px; }
.a-card h2 { margin: 0 0 12px; font-size: 18px; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; }
.a-card h3 { margin: 14px 0 8px; font-size: 16px; }
.btn { border: 0; border-radius: 10px; padding: 11px 16px; font-weight: 800; background: #4a3560; color: #fff; margin: 3px; }
.btn.gold { background: var(--gold); color: #1a1022; }
.btn.green { background: var(--ok); color: #062611; }
.btn.orange { background: var(--warn); color: #2a1700; }
.btn.red { background: #b3263a; }
.btn.small { padding: 6px 10px; font-size: 14px; }
.btn.xl { font-size: 20px; padding: 16px 22px; }
.btn.on { outline: 3px solid var(--gold); }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.a-in { background: #120b18; color: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; }
.a-in[type=number] { width: 90px; }
.a-in.wide { width: 100%; }
textarea.a-in { width: 100%; min-height: 140px; font-family: ui-monospace, Consolas, monospace; font-size: 14px; }
label.f { display: block; margin: 8px 0; color: var(--muted); }
label.f > .a-in, label.f > select { display: block; margin-top: 4px; }
.a-round-q { font-size: 20px; font-weight: 700; margin: 6px 0 10px; }
.a-choice { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; margin: 6px 0; font-weight: 700; position: relative; overflow: hidden; }
.a-choice .bar { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255,255,255,.18); z-index: 0; }
.a-choice > *:not(.bar) { position: relative; z-index: 1; }
.a-choice .grow { flex: 1; }
.a-choice.correct { outline: 3px solid var(--ok); }
.a-choice.result { outline: 4px solid #fff; }
.badge { font-size: 12px; padding: 2px 8px; border-radius: 10px; background: #0006; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { padding: 6px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.tbl tr.eliminated td { opacity: .55; }
.tbl tr.excluded td { opacity: .35; text-decoration: line-through; }
.scroll { max-height: 520px; overflow: auto; }
.log { font-size: 13px; color: var(--muted); max-height: 260px; overflow: auto; }
.log div { padding: 3px 0; border-bottom: 1px dashed #ffffff14; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.game-clock { padding: 4px 12px; border-radius: 20px; background: #3d2b4b; font-size: 15px; color: var(--muted); white-space: nowrap; }
.game-clock b { color: #fff; font-size: 19px; font-variant-numeric: tabular-nums; }
.game-clock small { font-size: 12px; }
.game-clock.running { background: #123d27; outline: 2px solid var(--ok); }
.game-clock.running b { color: #8ff0b4; }
.game-clock.ended { outline: 2px solid var(--gold); }
.s-clock { font-size: 30px; color: var(--muted); font-variant-numeric: tabular-nums; }
.s-clock b { color: var(--gold); }
.crop-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(5, 2, 8, .78); display: grid; place-items: center; padding: 16px; }
.crop-box { width: min(760px, 100%); margin: 0; }
.crop-main { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.crop-canvas { width: 320px; max-width: 100%; aspect-ratio: 1; border-radius: 12px; background: repeating-conic-gradient(#2b2233 0 25%, #1c1523 0 50%) 0 0 / 24px 24px; cursor: grab; touch-action: none; }
.crop-canvas:active { cursor: grabbing; }
.crop-side { flex: 1; min-width: 240px; }
.crop-zoom { width: 100%; accent-color: var(--gold); }
.crop-bg { width: 70px; height: 38px; padding: 2px; }
.crop-minis { align-items: center; gap: 14px; margin-bottom: 10px; }
.crop-mini { border-radius: 50%; border: 2px solid var(--gold); background: #fff; }
.result-btn.armed { outline: 5px solid #fff; box-shadow: 0 0 0 9px var(--gold), 0 0 30px var(--gold); animation: armed .45s ease-in-out infinite alternate; }
@keyframes armed { to { transform: scale(1.06); } }
.chips-cell { white-space: nowrap; }
.chips-cell .score { display: inline-block; min-width: 44px; text-align: center; font-size: 17px; }
.chips-cell .score.pending { color: var(--gold); }
.pm { width: 32px; height: 32px; border-radius: 50%; border: 0; font-size: 20px; font-weight: 900; line-height: 1; color: #fff; vertical-align: middle; }
.pm.minus { background: #b3263a; } .pm.plus { background: #1f7a49; }
.pm:active { transform: scale(.9); }
.pm-delta { margin-left: 6px; font-size: 13px; font-weight: 800; color: var(--gold); }
.preview-card { position: sticky; top: 72px; z-index: 20; box-shadow: 0 10px 30px #0008; }
.preview-wrap { margin-top: 10px; border: 3px solid #000; outline: 2px solid var(--gold); border-radius: 10px; overflow: hidden; background: #000; }
.preview-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; pointer-events: none; }
/* Écran géant affiché dans l'aperçu de la régie */
body.apercu .fs-btn { display: none; }
body.apercu { cursor: default; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 12px 20px; border-radius: 10px; font-weight: 700; z-index: 200; max-width: 90vw; }
.toast.err { background: #b3263a; } .toast.ok { background: #1f7a49; }
.seg-row { display: grid; grid-template-columns: 1.4fr 50px 64px 96px 50px 70px 62px 1fr 1fr 52px 34px; gap: 6px; align-items: center; margin: 4px 0; }
.long-cell { position: relative; height: 44px; display: flex; align-items: center; justify-content: center; }
.long-cell .lthumb { max-width: 92px; max-height: 40px; object-fit: contain; background: #fff; border-radius: 6px; border: 2px solid var(--gold); cursor: pointer; padding: 2px; }
.long-cell .add { width: 100%; height: 40px; border-radius: 8px; border: 2px dashed var(--line); background: #120b18; color: var(--muted); font-size: 11px; font-weight: 700; }
.long-cell .rm { position: absolute; top: -6px; right: -4px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: #b3263a; color: #fff; font-size: 11px; line-height: 20px; padding: 0; }
.wheel-design { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; margin: 6px 0 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #1a1022; }
.wheel-design-opts { flex: 1; min-width: 280px; }
.wheel-design-preview { flex: 0 0 300px; }
.wheel-mini { width: 300px; height: 300px; }
.wheel-mini .s-wheel { width: 100%; height: 100%; flex: none; filter: none; }
.wheel-order { flex: 1 1 100%; border-top: 1px solid var(--line); padding-top: 10px; }
.order-strip { display: flex; flex-wrap: wrap; gap: 6px; }
.order-slot { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px; border-radius: 8px; border: 2px solid transparent; }
.order-slot.flash { border-color: #fff; }
.order-slot .num { font-size: 11px; color: var(--muted); font-weight: 800; }
.order-slot select { width: 108px; font-size: 12px; font-weight: 800; padding: 6px 4px; border-radius: 6px; border: 2px solid rgba(255,255,255,.3); }
.wheel-mini .wheel-svg { cursor: pointer; }
.hub-thumb { width: 54px; height: 54px; border-radius: 50%; border: 3px solid var(--gold); object-fit: cover; background: #1a1022; }
.img-cell { position: relative; height: 44px; display: flex; align-items: center; justify-content: center; }
.img-cell .thumb { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); background: #fff; cursor: pointer; }
.img-cell .add { width: 100%; height: 40px; border-radius: 8px; border: 2px dashed var(--line); background: #120b18; color: var(--muted); font-size: 12px; font-weight: 700; }
.img-cell .rm { position: absolute; top: -6px; right: 0; width: 20px; height: 20px; border-radius: 50%; border: 0; background: #b3263a; color: #fff; font-size: 11px; line-height: 20px; padding: 0; }
.sym img, .s-choice .sym img, .a-choice .simg { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.a-choice .simg { width: 28px; height: 28px; }
.sym.has-img { background: #fff; overflow: hidden; }
.seg-row input, .seg-row select { width: 100%; }
.seg-row input[type=color] { height: 40px; padding: 3px; cursor: pointer; background: #fff; border: 2px solid var(--gold); }
.seg-row input[type=checkbox] { width: 22px; height: 22px; justify-self: center; }
.seg-row .gain { font-weight: 800; font-size: 17px; }
.seg-row input:first-child { font-weight: 700; }
.seg-head { font-size: 12px; color: var(--muted); }
.hint { font-size: 13px; color: var(--muted); }
.qlist { max-height: 300px; overflow: auto; }
.qlist div { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.qlist div span { flex: 1; }
.qlist div.current { color: var(--gold); font-weight: 700; }

/* =====================================================================
   THÈME MKASINO — néons magenta / violet / bleu, chrome, or Las Vegas
   ===================================================================== */
.logo-blend { mix-blend-mode: screen; }               /* le fond noir du logo disparaît sur fond sombre */
.neon-text { color: #fff; text-shadow: 0 0 6px #fff, 0 0 14px var(--pink), 0 0 30px var(--violet), 0 0 52px var(--blue); }
.chrome-text { background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 12px rgba(155, 92, 255, .75)); }
@keyframes flicker { 0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; } 20%, 24%, 55% { opacity: .55; } }
@keyframes chase { to { background-position: 40px 0, 40px 100%; } }
@keyframes sweep { from { transform: translateX(-60%) rotate(18deg); } to { transform: translateX(260%) rotate(18deg); } }

/* ---------- fond général (régie) ---------- */
body {
  background:
    radial-gradient(ellipse at 20% -10%, rgba(255, 63, 216, .22), transparent 55%),
    radial-gradient(ellipse at 90% 0%, rgba(79, 123, 255, .22), transparent 50%),
    var(--bg);
}
.a-card, .card { background: var(--glass); border: 1px solid rgba(155, 92, 255, .38); box-shadow: 0 0 0 1px rgba(255, 63, 216, .08) inset, 0 10px 30px rgba(0, 0, 0, .45); backdrop-filter: blur(8px); }
.a-card h2 { background: var(--neon); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: 2px; }
.a-top { background: linear-gradient(180deg, rgba(10, 4, 18, .96), rgba(18, 8, 32, .92)); border-bottom: 2px solid transparent; border-image: var(--neon) 1; }
.a-top img { height: 54px; }
.btn { background: #2c1a45; border: 1px solid rgba(155, 92, 255, .45); }
.btn.gold { background: linear-gradient(180deg, #ffe7a3, #f0c95c 45%, #c99526); border: 0; box-shadow: 0 0 14px rgba(240, 201, 92, .35); }
.btn.green { background: linear-gradient(180deg, #57e39b, #1f9a5a); border: 0; }
.btn.orange { background: linear-gradient(180deg, #ffd08a, #ff9f2e); border: 0; }
.btn.red { background: linear-gradient(180deg, #ff6f8c, #c4203f); border: 0; }
.a-login img { mix-blend-mode: screen; width: 300px !important; }

/* ---------- joueur (téléphone) ---------- */
body.player-body { background: var(--bg); }
body.player-body::before {
  content: ''; position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7, 4, 12, .55) 0%, rgba(7, 4, 12, .88) 38%, rgba(7, 4, 12, .96) 100%), url(/img/fond-strip.jpg) center top / cover no-repeat;
}
.p-logo { width: 230px; max-width: 72%; mix-blend-mode: screen; margin: -6px auto -10px; filter: drop-shadow(0 0 18px rgba(155, 92, 255, .45)); }
.p-event { font-size: 1.15em; letter-spacing: 2px; text-transform: uppercase; }
.p-event { color: #fff; text-shadow: 0 0 6px #fff, 0 0 14px var(--pink), 0 0 28px var(--violet); }
.p-head { background: var(--glass); border: 1px solid rgba(155, 92, 255, .5); box-shadow: 0 0 22px rgba(155, 92, 255, .25); backdrop-filter: blur(8px); }
.p-score b { background: linear-gradient(180deg, #fff6cf, #f0c95c 55%, #c99526); -webkit-background-clip: text; background-clip: text; color: transparent; }
.p-input { border: 3px solid var(--violet); box-shadow: 0 0 18px rgba(155, 92, 255, .55); }
.big-btn { background: linear-gradient(90deg, #ff3fd8, #9b5cff 50%, #4f7bff); color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); box-shadow: 0 0 22px rgba(155, 92, 255, .6), 0 4px 0 rgba(0, 0, 0, .35); position: relative; overflow: hidden; }
.big-btn::after { content: ''; position: absolute; top: -40%; left: 0; width: 30%; height: 180%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); animation: sweep 3.2s ease-in-out infinite; }
.big-btn:disabled::after { display: none; }
.p-status { color: #fff; text-shadow: 0 0 10px var(--pink), 0 0 24px var(--violet); }
.p-timer { color: #fff; text-shadow: 0 0 8px #fff, 0 0 20px var(--pink), 0 0 40px var(--violet); }
.choice { box-shadow: 0 4px 0 rgba(0, 0, 0, .35), 0 0 16px rgba(255, 255, 255, .08); position: relative; overflow: hidden; }
.choice::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .25), rgba(255, 255, 255, 0) 48%, rgba(0, 0, 0, .18)); pointer-events: none; }
.choice > * { position: relative; z-index: 1; }
.bet-summary { background: var(--glass); border-color: rgba(155, 92, 255, .5); }
.result-win { background: linear-gradient(135deg, #1f9a5a, #0f5c33); box-shadow: 0 0 30px rgba(47, 191, 113, .6); }
.toolbar button { background: rgba(26, 15, 42, .85); border-color: rgba(155, 92, 255, .6); }

/* ---------- écran géant ---------- */
body.screen-body { background: #000; }
.stage {
  background:
    radial-gradient(ellipse at 50% 38%, rgba(10, 4, 20, .25) 0%, rgba(6, 2, 12, .82) 62%, rgba(4, 1, 8, .96) 100%),
    linear-gradient(180deg, rgba(6, 2, 12, .55), rgba(6, 2, 12, .35) 40%, rgba(6, 2, 12, .78)),
    url(/img/fond-hall.webp) center / cover no-repeat;
}
/* cadre néon */
.stage::after {
  content: ''; position: absolute; inset: 14px; border-radius: 26px; pointer-events: none; z-index: 40;
  border: 4px solid transparent;
  background: linear-gradient(90deg, #ff3fd8, #9b5cff, #4f7bff, #9b5cff, #ff3fd8) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  filter: drop-shadow(0 0 10px #ff3fd8) drop-shadow(0 0 22px #9b5cff);
}
/* ampoules de chapiteau en haut et en bas */
.stage::before {
  content: ''; position: absolute; left: 40px; right: 40px; top: 0; bottom: 0; pointer-events: none; z-index: 39;
  background:
    radial-gradient(circle, #fff7d6 0 4px, rgba(255, 214, 106, .55) 5px, transparent 8px) 0 4px / 40px 22px repeat-x,
    radial-gradient(circle, #fff7d6 0 4px, rgba(255, 214, 106, .55) 5px, transparent 8px) 0 calc(100% - 4px) / 40px 22px repeat-x;
  animation: chase 1.6s linear infinite;
  opacity: .9;
}
.stage .s-logo { height: 150px; margin-top: 10px; mix-blend-mode: screen; filter: drop-shadow(0 0 20px rgba(155, 92, 255, .55)); }
.stage .s-top { height: 140px; }
.stage .s-info { color: #e9defd; }
.s-title { background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 14px rgba(155, 92, 255, .9)); letter-spacing: 4px; }
.s-question { text-shadow: 0 0 18px rgba(155, 92, 255, .8), 0 2px 6px #000; }
.s-phase { color: #fff; text-shadow: 0 0 8px #fff, 0 0 20px var(--pink), 0 0 42px var(--violet); animation: flicker 4s infinite; }
.s-timer { color: #fff; text-shadow: 0 0 10px #fff, 0 0 26px var(--pink), 0 0 56px var(--violet); }
.s-votes b { color: var(--gold2); text-shadow: 0 0 14px rgba(240, 201, 92, .8); }
.s-choice { box-shadow: 0 8px 24px rgba(0, 0, 0, .5), 0 0 0 2px rgba(255, 255, 255, .18) inset; }
.s-choice::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0) 46%, rgba(0, 0, 0, .22)); pointer-events: none; }
.s-choice > * { position: relative; z-index: 1; }
.s-wheel { filter: drop-shadow(0 0 34px rgba(255, 63, 216, .45)) drop-shadow(0 0 70px rgba(79, 123, 255, .35)); }
.s-lobby h1 { font-size: 96px; color: #fff; text-shadow: 0 0 8px #fff, 0 0 22px var(--pink), 0 0 48px var(--violet), 0 0 90px var(--blue); letter-spacing: 3px; }
.s-lobby .steps { color: #f2ecff; }
.s-lobby .url { color: var(--gold2); text-shadow: 0 0 16px rgba(240, 201, 92, .7); }
.s-qr { box-shadow: 0 0 0 6px #fff, 0 0 0 12px #9b5cff, 0 0 60px #ff3fd8, 0 0 120px #4f7bff; }
.s-rank li { background: linear-gradient(90deg, rgba(155, 92, 255, .18), transparent 70%); border-bottom: 2px solid rgba(155, 92, 255, .25); margin-bottom: 6px; border-radius: 12px; }
.s-rank li .pl { color: var(--gold2); text-shadow: 0 0 12px rgba(240, 201, 92, .7); }
.s-qualified span { background: rgba(26, 15, 42, .85); border-color: var(--violet); box-shadow: 0 0 14px rgba(155, 92, 255, .6); }
.s-rules { color: #fff; text-shadow: 0 0 14px rgba(155, 92, 255, .6); }
.s-explain { background: rgba(18, 9, 32, .78); border: 2px solid rgba(155, 92, 255, .5); }
.s-mini-qr img { box-shadow: 0 0 0 3px #9b5cff, 0 0 18px #ff3fd8; }
.lobby-logo { width: 520px; mix-blend-mode: screen; display: block; margin: -40px 0 -20px -30px; filter: drop-shadow(0 0 30px rgba(155, 92, 255, .5)); }
.lucky-logo { display: block; margin: 0 auto 6px; max-height: 130px; max-width: 760px; object-fit: contain; filter: drop-shadow(0 0 22px rgba(255, 63, 216, .55)); }
.p-lucky-logo { display: block; margin: 0 auto 4px; max-height: 80px; max-width: 80%; object-fit: contain; }
/* accueil : grand logo + titre + consignes tiennent dans le 16:9 */
.lobby-logo { width: 380px; margin: -80px 0 22px -20px; } /* remonté : ne chevauche plus les consignes */
.s-lobby h1 { font-size: 80px; margin: 0 0 12px; }
.s-lobby .steps { font-size: 40px; line-height: 1.45; }
.s-lobby .url { font-size: 46px; margin-top: 16px; }
.s-lobby .count { font-size: 46px; margin-top: 12px; }
.stage.is-lobby .s-logo { visibility: hidden; }
/* logo détouré (fond transparent) : plus besoin de fusion */
.p-logo, .stage .s-logo, .lobby-logo, .a-login img, .logo-blend { mix-blend-mode: normal; }
/* logo LUCKY WHEEL en haut au centre de l'écran géant */
.stage .s-top { position: relative; }
.s-lucky { position: absolute; left: 50%; top: 4px; transform: translateX(-50%); height: 150px; border-radius: 22px; box-shadow: 0 0 0 3px rgba(240, 201, 92, .9), 0 0 30px rgba(255, 63, 216, .6), 0 0 60px rgba(240, 201, 92, .35); }
.p-lucky-logo { border-radius: 14px; box-shadow: 0 0 0 2px rgba(240, 201, 92, .8), 0 0 18px rgba(255, 63, 216, .5); max-height: 110px; }
/* =========== Célébration JACKPOT / MYSTERY (feux d'artifice) =========== */
.fete { position: absolute; inset: 0; z-index: 60; pointer-events: none; }
.fete canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.fete-text { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%) scale(.2); text-align: center; white-space: nowrap; }
.fete-title {
  font-family: Georgia, 'Times New Roman', serif; font-weight: 900; font-size: 250px; letter-spacing: 14px; line-height: 1;
  background: linear-gradient(180deg, #fffbe6 0%, #ffe08a 30%, #f0b429 55%, #a8650c 75%, #ffe08a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 3px rgba(122, 74, 5, .9);
  filter: drop-shadow(0 6px 0 #6b3d02) drop-shadow(0 12px 0 #4a2a01) drop-shadow(0 0 40px rgba(255, 214, 106, .9)) drop-shadow(0 0 90px rgba(255, 63, 216, .6));
}
.fete-title.mystery { font-size: 170px; background: linear-gradient(180deg, #ffffff, #e9c6ff 35%, #b26cff 60%, #5b1fa8); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 3px rgba(60, 15, 110, .9); filter: drop-shadow(0 6px 0 #3a0f6e) drop-shadow(0 0 40px rgba(178, 108, 255, .9)) drop-shadow(0 0 90px rgba(255, 63, 216, .6)); }
.fete-sub { margin-top: 26px; font-size: 64px; font-weight: 900; color: #fff; text-shadow: 0 0 10px #fff, 0 0 26px #ff3fd8, 0 0 54px #9b5cff; }
.fete-extra { margin-top: 14px; font-size: 50px; font-weight: 800; color: #ffe7a3; text-shadow: 0 0 18px rgba(240, 201, 92, .9), 0 3px 6px #000; }
.stage.fete-on::before { animation-duration: .35s; }
.stage.fete-on { animation: shake .5s 2 ease-in-out; }
@keyframes shake { 20% { transform: translate(-50%, -50%) scale(var(--k, 1)) translate(8px, -4px); } 40% { transform: translate(-50%, -50%) scale(var(--k, 1)) translate(-8px, 5px); } 60% { transform: translate(-50%, -50%) scale(var(--k, 1)) translate(6px, 3px); } }
/* téléphone : gain sur le JACKPOT */
.result-win.jackpot { background: linear-gradient(135deg, #a8650c, #f0b429 30%, #fff3b0 50%, #f0b429 70%, #a8650c); background-size: 300% 100%; animation: jpshine 2.2s linear infinite; color: #2a1700; text-shadow: none; border-color: #fff3b0; box-shadow: 0 0 30px rgba(240, 201, 92, .9), 0 0 60px rgba(255, 63, 216, .5); }
.result-win.jackpot .jp-word { font-family: Georgia, serif; font-size: 1.5em; letter-spacing: 3px; color: #2a1700; margin-bottom: 4px; }
@keyframes jpshine { to { background-position: -300% 0; } }
/* téléphone : chaque mise tient sur une seule ligne */
.rank-list li.bet-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 8px; font-size: .92em; }
.bet-line .bl-sym { font-size: 1.05em; }
.bet-line .bl-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.bet-line .bl-cote { white-space: nowrap; font-size: .78em; color: var(--muted); background: rgba(155, 92, 255, .22); border-radius: 20px; padding: 2px 8px; }
.bet-line.me .bl-cote { color: #1a1022; background: var(--gold); }
.bet-line .bl-amt { white-space: nowrap; text-align: right; }
.rank-list li.bet-line { gap: 6px; font-size: .84em; }
.bet-line .bl-cote { font-size: .74em; padding: 2px 6px; }
.bet-line .bl-amt small { font-weight: 600; font-size: .78em; opacity: .85; }
/* selfie du joueur */
.selfie-box { margin-top: 14px; }
.selfie-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; padding: 14px; border-radius: 14px; border: 2px dashed rgba(255, 63, 216, .7); background: rgba(255, 63, 216, .08); color: #fff; font-size: 1.15em; font-weight: 800; }
.selfie-btn.wide { margin: 12px 0; }
.selfie-bonus { font-size: .8em; color: #1a1022; background: linear-gradient(180deg, #ffe7a3, #f0c95c); border-radius: 20px; padding: 3px 12px; box-shadow: 0 0 12px rgba(240, 201, 92, .6); }
.selfie-ok { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 14px; background: rgba(47, 191, 113, .12); border: 2px solid rgba(47, 191, 113, .6); }
.selfie-prev { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); }
.p-head { gap: 12px; }
.p-avatar { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); box-shadow: 0 0 14px rgba(255, 63, 216, .6); flex: 0 0 auto; }
/* écran géant : photos au classement et sur le podium */
.s-rank li .av, .s-av { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); margin-right: 22px; flex: 0 0 auto; box-shadow: 0 0 16px rgba(255, 63, 216, .6); background: #2c1a45; display: inline-grid; place-items: center; font-weight: 900; font-size: 30px; color: var(--gold2); }
.s-rank li { align-items: center; }
.podium .col .pav { width: 190px; height: 190px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; display: grid; place-items: center; border: 6px solid var(--gold); box-shadow: 0 0 30px rgba(240, 201, 92, .8), 0 0 70px rgba(255, 63, 216, .5); background: #2c1a45; font-size: 90px; font-weight: 900; color: var(--gold2); }
.podium .p1 .pav { width: 240px; height: 240px; font-size: 110px; }
/* régie : vignette du joueur */
.tbl .pthumb { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: 6px; border: 2px solid var(--gold); cursor: zoom-in; }
/* podium avec photos : marches un peu plus basses pour tout faire tenir */
.podium { height: 800px; }
.podium .p1 .block { height: 300px; } .podium .p2 .block { height: 220px; } .podium .p3 .block { height: 160px; }
.podium .col .nm { font-size: 52px; }
/* =========== Têtes des gagnants (écran géant) =========== */
.s-winners-col { flex: 1; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.s-winners { text-align: center; }
.s-winners-title { font-size: 46px; font-weight: 900; color: #fff; text-shadow: 0 0 10px #fff, 0 0 22px var(--pink), 0 0 46px var(--violet); margin-bottom: 12px; }
.s-winners-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 18px; }
.wcard { display: flex; flex-direction: column; align-items: center; animation: wpop .55s cubic-bezier(.2, 1.6, .4, 1) both; min-width: 0; }
@keyframes wpop { from { opacity: 0; transform: scale(.3) translateY(40px); } }
.wav { border-radius: 50%; object-fit: cover; border: 5px solid var(--gold); box-shadow: 0 0 18px rgba(240, 201, 92, .8), 0 0 40px rgba(255, 63, 216, .45); background: linear-gradient(180deg, #3a2160, #1a0f2a); display: grid; place-items: center; color: var(--gold2); font-weight: 900; }
.wname { margin-top: 8px; font-weight: 800; color: #fff; text-shadow: 0 2px 6px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wgain { font-weight: 900; color: var(--gold2); text-shadow: 0 0 12px rgba(240, 201, 92, .8); }
.wcard.more .wav { background: rgba(155, 92, 255, .35); }
.sz-xl .wav { width: 210px; height: 210px; font-size: 96px; } .sz-xl .wname { font-size: 44px; max-width: 300px; } .sz-xl .wgain { font-size: 38px; }
.sz-l .wav { width: 150px; height: 150px; font-size: 70px; } .sz-l .wname { font-size: 32px; max-width: 210px; } .sz-l .wgain { font-size: 28px; }
.sz-m .wav { width: 112px; height: 112px; font-size: 52px; } .sz-m .wname { font-size: 26px; max-width: 170px; } .sz-m .wgain { font-size: 22px; }
.sz-s .wav { width: 88px; height: 88px; font-size: 40px; border-width: 4px; } .sz-s .wname { font-size: 21px; max-width: 130px; } .sz-s .wgain { font-size: 19px; }
.s-winners.strip { margin-top: 24px; }
.s-winners.strip .s-winners-title { font-size: 40px; margin-bottom: 8px; }
.s-nowin { font-size: 44px; font-weight: 800; text-align: center; color: #fff; text-shadow: 0 0 18px var(--violet); margin-top: 30px; }
/* colonne à droite de la roue : tailles ajustées pour tenir sous la case gagnante */
.s-winners.col .s-winners-title { font-size: 40px; margin-bottom: 8px; }
.s-winners.col.sz-l .wav { width: 130px; height: 130px; font-size: 60px; }
.s-winners.col.sz-m .wav { width: 88px; height: 88px; font-size: 42px; border-width: 4px; } .s-winners.col.sz-m .wname { font-size: 22px; max-width: 150px; } .s-winners.col.sz-m .wgain { font-size: 19px; }
.s-winners.col.sz-s .wav { width: 76px; height: 76px; font-size: 34px; } .s-winners.col.sz-s .wname { font-size: 19px; max-width: 130px; } .s-winners.col.sz-s .wgain { font-size: 17px; }
.s-winners.col .s-winners-grid { gap: 10px 16px; }
/* téléphone : classement avec photos */
.rank-list li.rank-line { display: grid; grid-template-columns: 2em 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.rank-line .rav { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); background: #2c1a45; display: grid; place-items: center; font-weight: 900; color: var(--gold2); }
.rank-line .rn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-line b { white-space: nowrap; }

/* Volume et mouvement de la roue projetée */
.screen-body .s-wheel { isolation: isolate; position: relative; }
.screen-body .s-wheel .wheel-svg { filter: drop-shadow(0 10px 8px #07030c); }
.screen-body .s-wheel::before {
  content: ''; position: absolute; inset: 5%; border-radius: 50%; opacity: 0;
  background: conic-gradient(transparent, #a94efd, transparent 42%, #ffcd75, transparent 86%, #ef4ebd, transparent);
  filter: blur(22px); z-index: -1; pointer-events: none;
}
.screen-body .s-wheel.wheel-spinning::before { opacity: .65; animation: mk-wheel-light 2.8s linear infinite; }
.screen-body .wheel-spinning .wheel-pointer { transform-origin: 0 -121px; animation: mk-wheel-click .16s ease-out infinite; }
.screen-body .wheel-impact .wheel-svg { animation: mk-wheel-impact .55s ease-out; }
@keyframes mk-wheel-light { to { transform: rotate(360deg); } }
@keyframes mk-wheel-click { 42% { transform: rotate(-8deg); } }
@keyframes mk-wheel-impact { 22% { filter: drop-shadow(0 0 16px #ffd478) brightness(1.25); } }
.wheel-sound { top: auto; bottom: 14px; }
@media (prefers-reduced-motion: reduce) {
  .screen-body .s-wheel.wheel-spinning::before,
  .screen-body .wheel-spinning .wheel-pointer,
  .screen-body .wheel-impact .wheel-svg { animation: none; }
}

/* ---------- historique des soirées (carnet du joueur) ---------- */
.history-card summary { cursor: pointer; font-weight: 800; list-style: none; padding: 2px 0; }
.history-card summary::-webkit-details-marker { display: none; }
.history-card summary::after { content: ' ▾'; }
.history-card[open] summary::after { content: ' ▴'; }
.history-list { list-style: none; margin: 10px 0 0; padding: 0; }
.history-list li { padding: 10px 0; border-top: 1px solid rgba(255,255,255,.12); line-height: 1.45; }
.history-list .hl-event { font-weight: 800; color: #f0c95c; }
.history-list small { color: #cfc6e6; font-weight: 400; }
/* régie : fenêtre d'accès de secours */
.rescue-box .rescue-qr svg { width: 260px; height: 260px; background: #fff; padding: 8px; border-radius: 12px; }
.rescue-box .rescue-code { font-size: 2.6em; letter-spacing: .18em; font-weight: 900; color: #f0c95c; }
.board-switch .btn.on { outline: 3px solid #f0c95c; }
/* mention d'information (données personnelles) */
.privacy-note { font-size: .78em; line-height: 1.45; color: #cfc6e6; margin: 12px 2px 0; text-align: left; }
/* ======================================================================
   QUIZ « ARÈNE » MKASINO — écran géant (scène 1920×1080)
   ====================================================================== */
.ar-wrap { display: flex; flex-direction: column; gap: 18px; height: 100%; justify-content: center; }
.ar-head { display: flex; align-items: center; gap: 18px; font-size: 30px; font-weight: 800; color: #e9defd; }
.ar-qn { padding: 8px 22px; border-radius: 40px; background: linear-gradient(90deg, var(--pink), var(--violet)); color: #fff; box-shadow: 0 0 22px rgba(255, 46, 166, .55); }
.ar-qt { flex: 1; text-align: center; color: #f0c95c; letter-spacing: 2px; text-transform: uppercase; text-shadow: 0 0 14px rgba(240, 201, 92, .5); }
.ar-pts { padding: 8px 20px; border-radius: 40px; border: 2px solid rgba(240, 201, 92, .6); color: #f0c95c; }
.ar-question { align-self: center; max-width: 1700px; padding: 22px 46px; border-radius: 26px; text-align: center; font-size: 56px; font-weight: 900; line-height: 1.15; color: #fff;
  background: linear-gradient(180deg, rgba(30, 14, 52, .92), rgba(16, 8, 30, .92)); border: 3px solid rgba(240, 201, 92, .75);
  box-shadow: 0 0 0 6px rgba(155, 92, 255, .25), 0 0 40px rgba(155, 92, 255, .45), inset 0 0 30px rgba(155, 92, 255, .25); animation: arIn .5s ease-out both; }
.ar-question.big { font-size: 76px; padding: 40px 60px; margin: 20px 0; }
.ar-section { align-self: center; text-align: center; padding: 18px 50px; border-radius: 24px; background: radial-gradient(circle at 50% 0, rgba(255, 46, 166, .35), rgba(20, 8, 40, .9) 70%); border: 2px solid rgba(255, 46, 166, .6); animation: arIn .6s ease-out both; }
.ar-section.intro { border-color: rgba(240, 201, 92, .8); }
.ar-section.outro { margin-top: 6px; border-color: rgba(240, 201, 92, .8); }
.ar-sec-t { font-size: 60px; font-weight: 900; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 12px rgba(155, 92, 255, .9)); }
.ar-sec-d { font-size: 32px; color: #f3ecff; margin-top: 6px; }
.ar-hint { text-align: center; font-size: 40px; font-weight: 800; color: #f0c95c; animation: pulse 1.6s infinite; }
.ar-count { align-self: center; width: 300px; height: 300px; border-radius: 50%; display: grid; place-items: center; font-size: 170px; font-weight: 900; color: #fff;
  background: radial-gradient(circle, #ff2ea6 0%, #7b2bd8 70%); box-shadow: 0 0 0 10px rgba(240, 201, 92, .8), 0 0 90px rgba(255, 46, 166, .9); }
.ar-count.pop, .pa-count.pop { animation: arPop .55s cubic-bezier(.2, 1.6, .4, 1); }
.ar-mid { display: grid; grid-template-columns: 300px 1fr 300px; align-items: center; gap: 30px; height: 300px; }
.ar-mid.result { grid-template-columns: 1fr; }
.ar-ring { --p: 100%; width: 250px; height: 250px; border-radius: 50%; justify-self: center; display: grid; place-items: center;
  background: radial-gradient(closest-side, #160a2a 78%, transparent 79%), conic-gradient(#f0c95c var(--p), rgba(255, 255, 255, .12) 0);
  box-shadow: 0 0 40px rgba(240, 201, 92, .45); transition: box-shadow .3s; }
.ar-ring b { font-size: 110px; font-weight: 900; color: #fff; text-shadow: 0 0 18px var(--pink); }
.ar-ring.low { background: radial-gradient(closest-side, #160a2a 78%, transparent 79%), conic-gradient(#ff3b5c var(--p), rgba(255, 255, 255, .12) 0); box-shadow: 0 0 60px rgba(255, 59, 92, .8); animation: pulse 1s infinite; }
.ar-img { justify-self: center; max-height: 290px; max-width: 100%; border-radius: 20px; border: 3px solid rgba(240, 201, 92, .6); }
.ar-logo { justify-self: center; height: 270px; filter: drop-shadow(0 0 30px rgba(155, 92, 255, .7)); animation: arFloat 3s ease-in-out infinite; }
.ar-answers { justify-self: center; display: flex; flex-direction: column; align-items: center; font-size: 34px; color: #e9defd; }
.ar-answers b { font-size: 110px; line-height: 1; color: #fff; text-shadow: 0 0 18px var(--violet); }
.ar-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ar-tile { position: relative; display: flex; align-items: center; gap: 24px; min-height: 120px; padding: 16px 30px; border-radius: 22px; font-size: 46px; font-weight: 900; color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, 0) 46%, rgba(0, 0, 0, .28)), var(--c); border: 3px solid rgba(255, 255, 255, .35);
  box-shadow: 0 8px 0 rgba(0, 0, 0, .45), 0 0 26px rgba(255, 255, 255, .12); animation: arIn .45s ease-out both; transition: opacity .4s, transform .4s, filter .4s; text-shadow: 0 2px 4px rgba(0, 0, 0, .45); }
.ar-suit { flex: 0 0 auto; width: 86px; height: 86px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .25); font-size: 58px; }
.ar-lbl { flex: 1; }
.ar-check { font-size: 60px; }
.ar-tile.good { transform: scale(1.03); border-color: #fff; box-shadow: 0 0 0 8px #f0c95c, 0 0 60px rgba(240, 201, 92, .9); }
.ar-tile.dim { opacity: .25; filter: grayscale(.7); }
.ar-bars { display: flex; justify-content: center; align-items: flex-end; gap: 60px; height: 300px; }
.ar-bar { display: flex; flex-direction: column; align-items: center; width: 170px; height: 100%; }
.ar-bar-n { font-size: 44px; font-weight: 900; color: #fff; }
.ar-bar-col { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.ar-bar-fill { width: 100%; border-radius: 14px 14px 0 0; background: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0)), var(--c); box-shadow: 0 0 24px rgba(255, 255, 255, .15); transform-origin: bottom; animation: arGrow .8s ease-out both; }
.ar-bar.good .ar-bar-fill { box-shadow: 0 0 0 5px #f0c95c, 0 0 40px rgba(240, 201, 92, .8); }
.ar-bar:not(.good) { opacity: .55; }
.ar-bar-s { margin-top: 8px; width: 100%; text-align: center; font-size: 52px; color: #fff; background: var(--c); border-radius: 0 0 14px 14px; }
.ar-banner { text-align: center; font-size: 42px; font-weight: 900; color: #fff; text-shadow: 0 0 10px #fff, 0 0 26px var(--pink); }
.ar-explain { align-self: center; max-width: 1700px; padding: 16px 34px; border-radius: 18px; font-size: 34px; color: #fff; background: rgba(20, 10, 40, .85); border-left: 8px solid #f0c95c; }
@keyframes arIn { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes arPop { from { transform: scale(.4); opacity: .2; } to { transform: scale(1); opacity: 1; } }
@keyframes arGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes arFloat { 50% { transform: translateY(-12px); } }

/* ======================================================================
   QUIZ « ARÈNE » MKASINO — téléphone
   ====================================================================== */
.pa-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; color: #f0c95c; margin: 6px 2px 10px; }
.pa-streak { padding: 4px 12px; border-radius: 20px; background: linear-gradient(90deg, #ff7a18, #ff2ea6); color: #fff; }
.pa-section { text-align: center; padding: 14px; border-radius: 18px; margin-bottom: 12px; background: rgba(40, 14, 70, .85); border: 2px solid rgba(255, 46, 166, .6); }
.pa-section b { display: block; font-size: 1.25em; color: #f0c95c; margin-bottom: 4px; }
.pa-count { width: 62vw; max-width: 260px; aspect-ratio: 1; margin: 24px auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 6em; font-weight: 900; color: #fff;
  background: radial-gradient(circle, #ff2ea6, #7b2bd8 70%); box-shadow: 0 0 0 6px rgba(240, 201, 92, .8), 0 0 50px rgba(255, 46, 166, .8); }
.pa-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pa-q { flex: 1; font-weight: 800; font-size: 1.05em; line-height: 1.25; }
.pa-timer { margin: 0; min-width: 2.6em; }
.pa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pa-grid.two { grid-template-columns: 1fr; }
.pa-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 26vh; padding: 12px 8px; border-radius: 22px; font: inherit; font-weight: 900; font-size: 1.1em; color: #fff; cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, 0) 46%, rgba(0, 0, 0, .28)), var(--c); border: 3px solid rgba(255, 255, 255, .35);
  box-shadow: 0 7px 0 rgba(0, 0, 0, .45), 0 0 18px rgba(255, 255, 255, .1); text-shadow: 0 2px 3px rgba(0, 0, 0, .45); overflow-wrap: anywhere; }
.pa-grid.two .pa-tile { min-height: 24vh; flex-direction: row; font-size: 1.5em; }
.pa-tile:active { transform: translateY(5px); box-shadow: 0 2px 0 rgba(0, 0, 0, .45); }
.pa-tile .pa-suit, .pa-sent .pa-suit { font-size: 2.6em; line-height: 1; }
.pa-sent { margin-top: 10px; padding: 34px 18px; border-radius: 26px; text-align: center; color: #fff; background: linear-gradient(180deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, 0) 46%, rgba(0, 0, 0, .28)), var(--c);
  box-shadow: 0 0 30px rgba(255, 255, 255, .15); }
.pa-sent-t { font-size: 1.6em; font-weight: 900; margin-top: 6px; }
.pa-sent-s { margin-top: 8px; opacity: .95; }
.pa-result { margin-top: 10px; padding: 26px 16px; border-radius: 26px; text-align: center; color: #fff; animation: arPop .5s cubic-bezier(.2, 1.6, .4, 1); }
.pa-result.good { background: linear-gradient(180deg, #23c46e, #0d7a40); box-shadow: 0 0 0 4px #f0c95c, 0 0 40px rgba(35, 196, 110, .7); }
.pa-result.bad { background: linear-gradient(180deg, #ff3b5c, #8e1530); box-shadow: 0 0 30px rgba(255, 59, 92, .6); }
.pa-r-t { font-size: 1.6em; font-weight: 900; }
.pa-r-pts { font-size: 3.2em; font-weight: 900; color: #ffe9a8; text-shadow: 0 0 18px rgba(255, 233, 168, .8); }
.pa-r-s, .pa-r-streak { margin-top: 6px; font-weight: 800; }
.pa-r-good { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 16px; border-radius: 16px; background: var(--c); font-weight: 900; border: 2px solid #fff; }
.pa-r-good .pa-suit { font-size: 1.4em; }
.pa-rank { margin: 14px 0; padding: 14px; text-align: center; border-radius: 18px; font-size: 1.2em; font-weight: 900; color: #f0c95c; background: rgba(30, 12, 54, .85); border: 2px solid rgba(240, 201, 92, .55); }
.ar-pts { order: 1; } .ar-qt { order: 2; }

/* quiz en cours sur le téléphone : en-tête compact, tuiles à la hauteur de l'écran */
body.arena-live .p-logo { width: 96px; margin: 0 auto -4px; }
body.arena-live .p-event { display: none; }
body.arena-live .p-head { padding: 6px 12px; }
body.arena-live .p-head .p-name { font-size: 1em; }
body.arena-live .pa-head { margin: 4px 2px 6px; }
body.arena-live .pa-tile { min-height: calc((100vh - 330px) / 2); min-height: calc((100dvh - 330px) / 2); }
body.arena-live .pa-grid.two .pa-tile { min-height: calc((100vh - 340px) / 2); min-height: calc((100dvh - 340px) / 2); }
.bet-limits-dialog { color: var(--text); width: min(92vw, 440px); }
.bet-limits-dialog::backdrop { background: #090411b8; }
.stage.wheel-closed .s-phase { animation: wheel-closed-signal .9s ease-out; }
@keyframes wheel-closed-signal {
  15% { color: #fff6c8; text-shadow: 0 0 24px #ffb52c, 0 0 52px #ff3fd8; }
}
@media (prefers-reduced-motion: reduce) { .stage.wheel-closed .s-phase { animation: none; } }

/* attente automatique avant les réponses (Question suivante) */
.ar-loading { align-self: center; width: 60%; height: 14px; border-radius: 10px; background: rgba(255, 255, 255, .12); overflow: hidden; margin: 6px auto; }
.ar-loading-bar { height: 100%; width: 100%; background: linear-gradient(90deg, #ff2ea6, #f0c95c); transform-origin: left; animation: arLoad linear both; box-shadow: 0 0 16px rgba(240, 201, 92, .8); }
@keyframes arLoad { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.stage .ar-loading { height: 22px; width: 50%; }
/* illustration animée des questions (écran géant) */
.ar-art { position: relative; justify-self: center; width: 520px; height: 290px; display: grid; place-items: center; }
.ar-art-halo { position: absolute; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 46, 166, .55), rgba(123, 43, 216, .35) 45%, transparent 70%); animation: arHalo 3s ease-in-out infinite; }
.ar-art-row { position: relative; display: flex; gap: 26px; }
.ar-glyph { font-size: 170px; line-height: 1; display: inline-block; filter: drop-shadow(0 0 24px rgba(255, 255, 255, .35)) drop-shadow(0 10px 18px rgba(0, 0, 0, .6)); animation: arBob 2.4s ease-in-out infinite; }
.ar-spark { position: absolute; color: #f0c95c; font-size: 40px; text-shadow: 0 0 12px #f0c95c; animation: arTwinkle 2s ease-in-out infinite; }
.ar-spark.s0 { left: 30px; top: 30px; } .ar-spark.s1 { right: 40px; top: 20px; animation-delay: .4s; } .ar-spark.s2 { left: 60px; bottom: 20px; animation-delay: .8s; }
.ar-spark.s3 { right: 20px; bottom: 50px; animation-delay: 1.2s; } .ar-spark.s4 { left: 50%; top: -6px; animation-delay: 1.6s; }
@keyframes arBob { 0%, 100% { transform: translateY(0) rotate(-6deg) scale(1); } 50% { transform: translateY(-22px) rotate(6deg) scale(1.08); } }
@keyframes arHalo { 50% { transform: scale(1.15); opacity: .75; } }
@keyframes arTwinkle { 0%, 100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.2); } }
.pa-art { text-align: center; font-size: 3.6em; margin: 6px 0; animation: arBob 2.4s ease-in-out infinite; }
/* ======================================================================
   RÈGLES DU QUIZ (écran géant, avant la 1re question)
   ====================================================================== */
.qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.qr-kicker { font-size: 30px; font-weight: 800; letter-spacing: 6px; text-transform: uppercase; color: #f0c95c; text-shadow: 0 0 14px rgba(240, 201, 92, .6); }
.qr-title { font-size: 92px; font-weight: 900; line-height: 1; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 18px rgba(255, 46, 166, .8)); animation: arIn .6s ease-out both; }
.qr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; width: 100%; margin-top: 10px; }
.qr-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 22px 24px; border-radius: 28px; text-align: center;
  background: linear-gradient(180deg, rgba(42, 16, 74, .94), rgba(16, 7, 32, .94)); border: 2px solid rgba(240, 201, 92, .6);
  box-shadow: 0 0 0 5px rgba(155, 92, 255, .18), 0 0 36px rgba(155, 92, 255, .45); animation: arIn .6s ease-out both; }
.qr-card:nth-child(2) { animation-delay: .15s; } .qr-card:nth-child(3) { animation-delay: .3s; } .qr-card:nth-child(4) { animation-delay: .45s; }
.qr-icon { font-size: 74px; line-height: 1; filter: drop-shadow(0 0 16px rgba(255, 46, 166, .7)); animation: arBob 2.6s ease-in-out infinite; }
.qr-t { font-size: 34px; font-weight: 900; color: #fff; line-height: 1.15; min-height: 80px; display: grid; place-items: center; }
.qr-d { font-size: 26px; color: #e9defd; line-height: 1.3; }
.qr-d b { color: #f0c95c; }
.qr-suits { display: flex; gap: 12px; }
.qr-suits span { width: 70px; height: 70px; display: grid; place-items: center; border-radius: 16px; font-size: 44px; color: #fff; background: linear-gradient(180deg, rgba(255, 255, 255, .24), rgba(0, 0, 0, .2)), var(--c);
  box-shadow: 0 5px 0 rgba(0, 0, 0, .45); animation: arBob 2s ease-in-out infinite; }
.qr-gauge { position: relative; width: 100%; height: 26px; margin-top: 8px; }
.qr-gauge-bar { position: absolute; inset: 0; border-radius: 14px; background: linear-gradient(90deg, #f0c95c, #ff2ea6 60%, #7b2bd8); box-shadow: 0 0 18px rgba(240, 201, 92, .6); }
.qr-gauge-dot { position: absolute; top: -8px; left: 0; width: 42px; height: 42px; margin-left: -21px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px #f0c95c, 0 0 20px #fff; animation: qrSlide 4s ease-in-out infinite; }
.qr-scale { display: flex; justify-content: space-between; width: 100%; font-size: 20px; color: #cfc6e6; }
.qr-scale span { display: flex; flex-direction: column; align-items: center; }
.qr-scale b { font-size: 36px; color: #fff; }
.qr-streak { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.qr-streak span { padding: 6px 12px; border-radius: 20px; font-size: 26px; font-weight: 900; color: #fff; background: linear-gradient(90deg, #ff7a18, #ff2ea6); box-shadow: 0 0 14px rgba(255, 122, 24, .6); animation: arTwinkle2 2.4s ease-in-out infinite; }
.qr-list { display: flex; flex-direction: column; gap: 14px; font-size: 26px; color: #e9defd; text-align: left; }
.qr-list b { color: #f0c95c; }
.qr-go { margin-top: 12px; font-size: 44px; font-weight: 900; color: #fff; text-shadow: 0 0 10px #fff, 0 0 26px var(--pink), 0 0 50px var(--violet); animation: pulse 1.8s infinite; }
@keyframes qrSlide { 0%, 10% { left: 0; } 80%, 100% { left: 100%; } }
@keyframes arTwinkle2 { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); filter: brightness(1.25); } }
/* téléphone */
.pa-rules { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 20px; line-height: 1.35; background: rgba(36, 12, 64, .9); border: 2px solid rgba(240, 201, 92, .6); box-shadow: 0 0 24px rgba(155, 92, 255, .35); }
.pa-rules-t { text-align: center; font-size: 1.25em; font-weight: 900; color: #f0c95c; }
.pa-rules b { color: #f0c95c; }
.pa-rules-suits { font-weight: 900; letter-spacing: 2px; }
/* engagement : règlement du quiz */
.qr-pledge { max-width: 1500px; text-align: center; font-size: 28px; line-height: 1.35; color: #f3ecff; padding: 12px 30px; border-radius: 18px; background: rgba(20, 8, 40, .8); border: 2px dashed rgba(240, 201, 92, .6); }
.qr-go b { color: #f0c95c; }
.pa-pledge { padding: 10px 12px; border-radius: 14px; background: rgba(240, 201, 92, .12); border: 1px dashed rgba(240, 201, 92, .7); font-size: .95em; }
.pa-accept { margin-top: 4px; background: linear-gradient(90deg, #159a55, #23c46e); font-size: 1.05em; }
.pa-rules-ok { text-align: center; padding: 12px; border-radius: 14px; font-weight: 900; color: #fff; background: linear-gradient(90deg, #159a55, #23c46e); box-shadow: 0 0 18px rgba(35, 196, 110, .6); }
/* quiz : colonnes « En réflexion » / « A voté » autour de la question */
.ar-open { display: grid; grid-template-columns: 270px 1fr 270px; gap: 22px; height: 100%; align-items: stretch; }
.ar-open .ar-wrap { min-width: 0; }
.ar-open .ar-question { font-size: 48px; padding: 18px 30px; }
.ar-open .ar-tile { font-size: 38px; min-height: 104px; padding: 12px 22px; }
.ar-open .ar-suit { width: 70px; height: 70px; font-size: 46px; }
.ar-open .ar-mid { grid-template-columns: 260px 1fr 200px; height: 280px; }
.ar-open .ar-ring { width: 230px; height: 230px; }
.ar-open .ar-art { width: 100%; }
.cr-col { display: flex; flex-direction: column; border-radius: 24px; padding: 14px 10px; min-height: 0; overflow: hidden;
  background: linear-gradient(180deg, rgba(36, 12, 64, .88), rgba(14, 6, 28, .88)); border: 2px solid rgba(155, 92, 255, .55); box-shadow: 0 0 28px rgba(155, 92, 255, .35); }
.cr-col.voted { border-color: rgba(35, 196, 110, .8); box-shadow: 0 0 30px rgba(35, 196, 110, .4); }
.cr-title { display: flex; justify-content: space-between; align-items: center; font-size: 28px; font-weight: 900; color: #fff; padding: 0 6px 10px; border-bottom: 2px solid rgba(255, 255, 255, .12); margin-bottom: 10px; }
.cr-count { min-width: 54px; padding: 2px 12px; border-radius: 20px; text-align: center; background: rgba(155, 92, 255, .6); }
.cr-col.voted .cr-count { background: #159a55; }
.cr-grid { display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: center; gap: 10px; overflow: hidden; }
.cr-av { display: flex; flex-direction: column; align-items: center; width: 74px; }
.cr-av img, .cr-ini { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font-size: 30px; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, #ff2ea6, #7b2bd8); border: 3px solid rgba(255, 255, 255, .7); }
.cr-col.voted .cr-av img, .cr-col.voted .cr-ini { border-color: #23c46e; box-shadow: 0 0 14px rgba(35, 196, 110, .8); }
.cr-col.think .cr-av { animation: crThink 2.6s ease-in-out infinite; }
.cr-col.think .cr-av:nth-child(3n+1) { animation-delay: .5s; } .cr-col.think .cr-av:nth-child(3n+2) { animation-delay: 1.1s; }
.cr-nm { max-width: 74px; margin-top: 3px; font-size: 15px; font-weight: 700; color: #e9defd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-col.sm .cr-av { width: 56px; } .cr-col.sm .cr-av img, .cr-col.sm .cr-ini { width: 46px; height: 46px; font-size: 22px; } .cr-col.sm .cr-nm { font-size: 12px; max-width: 56px; }
.cr-col.xs .cr-av { width: 40px; } .cr-col.xs .cr-av img, .cr-col.xs .cr-ini { width: 36px; height: 36px; font-size: 16px; border-width: 2px; } .cr-col.xs .cr-nm { display: none; }
.cr-av.arrive { animation: crArrive .7s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes crThink { 50% { transform: translateY(-5px); } }
@keyframes crArrive { from { transform: translateY(60px) scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
/* photo de la question + crédit (licence libre) */
.ar-photo { justify-self: center; margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 100%; animation: arIn .5s ease-out both; }
.ar-photo .ar-img { max-height: 250px; max-width: 100%; border-radius: 22px; border: 4px solid #f0c95c; box-shadow: 0 0 0 6px rgba(155, 92, 255, .35), 0 0 40px rgba(255, 46, 166, .5); object-fit: cover; }
.ar-photo figcaption { margin-top: 6px; max-width: 560px; font-size: 15px; color: rgba(233, 222, 253, .75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* bloc d'infos en haut à droite : compact pour tenir dans le bandeau (4 lignes max., ~120 px) */
.stage .s-info { font-size: 25px; line-height: 1.18; }
.stage .s-info .s-clock { font-size: 23px; }
.stage .s-info .s-join { font-size: 21px; }
.stage .s-info .s-mini-qr img { width: 104px; height: 104px; }
/* le quiz ne déborde jamais vers le haut (sous le bandeau d'infos) : contenu resserré, centrage « sûr » */
.ar-wrap { gap: 12px; justify-content: flex-start; justify-content: safe center; }
.ar-question { font-size: 50px; padding: 16px 40px; }
.ar-mid { height: 250px; }
.ar-ring { width: 220px; height: 220px; }
.ar-ring b { font-size: 96px; }
.ar-tiles { gap: 14px; }
.ar-tile { min-height: 100px; padding: 10px 26px; font-size: 42px; }
.ar-suit { width: 76px; height: 76px; font-size: 50px; }
.ar-photo .ar-img { max-height: 220px; }
.ar-art { height: 250px; }
.ar-glyph { font-size: 150px; }
/* peu de joueurs : grosses bulles bien visibles sur le projecteur */
.cr-col.lg .cr-av { width: 104px; }
.cr-col.lg .cr-av img, .cr-col.lg .cr-ini { width: 88px; height: 88px; font-size: 42px; border-width: 4px; }
.cr-col.lg .cr-nm { font-size: 19px; max-width: 104px; }
.cr-col.lg .cr-grid { gap: 14px; }
/* ======================================================================
   ÉDITEUR DE QUIZ (régie) — façon Kahoot, aux couleurs MKASINO
   ====================================================================== */
.qe-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(6, 2, 14, .86); backdrop-filter: blur(4px); display: flex; }
.qe { flex: 1; margin: 14px; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, #1a0b2e, #0e0619); border: 2px solid rgba(240, 201, 92, .55); box-shadow: 0 0 40px rgba(155, 92, 255, .45); }
.qe-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; background: rgba(40, 14, 70, .9); border-bottom: 1px solid rgba(155, 92, 255, .5); }
.qe-logo { font-weight: 900; color: #f0c95c; white-space: nowrap; }
.qe-title { flex: 1; min-width: 220px; font: inherit; font-size: 1.15em; font-weight: 800; padding: 8px 12px; border-radius: 10px; border: 2px solid rgba(155, 92, 255, .6); background: #120821; color: #fff; }
.qe-arena { white-space: nowrap; color: #e9defd; cursor: pointer; }
.qe-status { font-size: .9em; color: #8ff0b4; white-space: nowrap; }
.qe-status.dirty { color: #ffb347; }
.qe-body { flex: 1; display: grid; grid-template-columns: 300px 1fr; min-height: 0; }
.qe-side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid rgba(155, 92, 255, .4); background: rgba(10, 4, 20, .6); }
.qe-list { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.qe-add { display: flex; gap: 8px; padding: 10px; border-top: 1px solid rgba(155, 92, 255, .4); }
.qe-add .btn { flex: 1; }
.qe-item { padding: 8px; border-radius: 12px; cursor: pointer; background: rgba(40, 18, 70, .7); border: 2px solid transparent; }
.qe-item:hover { border-color: rgba(155, 92, 255, .6); }
.qe-item.on { border-color: #f0c95c; background: rgba(70, 30, 110, .85); box-shadow: 0 0 14px rgba(240, 201, 92, .35); }
.qe-sec { font-size: .78em; font-weight: 800; color: #ff7ad1; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qe-item-row { display: flex; align-items: center; gap: 8px; }
.qe-num { min-width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #f0c95c; color: #1a0b2e; font-size: .8em; }
.qe-thumb { width: 52px; height: 36px; border-radius: 6px; object-fit: cover; flex: 0 0 auto; }
.qe-thumb.emo { display: grid; place-items: center; background: rgba(255, 255, 255, .08); font-size: 1.05em; }
.qe-txt { flex: 1; font-size: .86em; line-height: 1.25; color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qe-warn { cursor: help; }
.qe-item-tools { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.qe-meta { flex: 1; font-size: .75em; color: #cfc6e6; }
.qe-item-tools button { width: 28px; height: 26px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; }
.qe-item-tools button:hover { background: rgba(240, 201, 92, .3); }
.qe-main { overflow-y: auto; padding: 18px 26px 30px; display: flex; flex-direction: column; gap: 14px; }
.qe-block { padding: 10px 12px; border-radius: 12px; background: rgba(255, 46, 166, .08); border: 1px dashed rgba(255, 46, 166, .5); }
.qe-check { cursor: pointer; color: #f3ecff; }
.qe-row { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.qe-row .grow { flex: 1; min-width: 200px; }
.qe-text { font: inherit; font-size: 1.5em; font-weight: 800; text-align: center; padding: 16px; border-radius: 14px; resize: vertical; min-height: 84px;
  background: #fff; color: #1a0b2e; border: 3px solid #f0c95c; box-shadow: 0 0 20px rgba(240, 201, 92, .35); }
.qe-count { margin-top: -10px; text-align: right; font-size: .8em; color: #cfc6e6; }
.qe-media { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 16px; align-items: start; }
.qe-img-box { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; cursor: pointer; display: grid; place-items: center;
  border: 3px dashed rgba(155, 92, 255, .7); background: rgba(155, 92, 255, .08); }
.qe-img-box.has { border-style: solid; border-color: #f0c95c; cursor: default; }
.qe-img-box.drop { border-color: #23c46e; background: rgba(35, 196, 110, .15); }
.qe-img-box img { width: 100%; height: 100%; object-fit: cover; }
.qe-img-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #e9defd; font-weight: 800; text-align: center; padding: 10px; }
.qe-img-empty .big { font-size: 2.6em; }
.qe-img-empty small { font-weight: 400; color: #cfc6e6; }
.qe-img-tools { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 6px; }
.qe-media-side { display: flex; flex-direction: column; gap: 10px; }
.qe-emoji { font-size: 1.4em; }
.qe-emoji-picks { display: flex; flex-wrap: wrap; gap: 4px; }
.qe-emoji-picks button { width: 36px; height: 36px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); font-size: 1.15em; cursor: pointer; }
.qe-settings { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.qe-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; align-items: center; }
.qe-chips button { padding: 6px 10px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; font: inherit; font-size: .9em; }
.qe-chips button.on { background: #f0c95c; color: #1a0b2e; font-weight: 800; border-color: #f0c95c; }
.qe-pts { width: 90px; }
.qe-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qe-ans { display: flex; align-items: center; gap: 10px; min-height: 82px; padding: 10px 12px; border-radius: 16px; color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, .25)), var(--c); box-shadow: 0 5px 0 rgba(0, 0, 0, .4); border: 3px solid transparent; }
.qe-ans.good { border-color: #fff; box-shadow: 0 0 0 4px #f0c95c, 0 5px 0 rgba(0, 0, 0, .4); }
.qe-suit { font-size: 1.8em; width: 46px; text-align: center; }
.qe-ans-in { flex: 1; min-width: 0; font: inherit; font-size: 1.1em; font-weight: 800; color: #fff; background: rgba(0, 0, 0, .18); border: 0; border-bottom: 2px solid rgba(255, 255, 255, .5); padding: 8px; border-radius: 8px; }
.qe-ans-in::placeholder { color: rgba(255, 255, 255, .65); }
.qe-ans-fixed { flex: 1; font-size: 1.3em; font-weight: 900; }
.qe-good { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; border: 3px solid #fff; background: rgba(0, 0, 0, .2); color: #fff; font-size: 1.3em; font-weight: 900; cursor: pointer; }
.qe-ans.good .qe-good { background: #23c46e; }
.qe-del-ans { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .3); color: #fff; cursor: pointer; }
.qe-problems { padding: 10px 14px; border-radius: 10px; background: rgba(255, 179, 71, .15); border: 1px solid #ffb347; color: #ffd9a0; font-weight: 700; }
.qe-fs { border: 1px solid rgba(155, 92, 255, .5); border-radius: 12px; padding: 10px; margin: 10px 0; display: flex; flex-direction: column; gap: 8px; }
.qe-fs legend { color: #f0c95c; font-weight: 800; padding: 0 6px; }
@media (max-width: 900px) { .qe-body { grid-template-columns: 1fr; } .qe-side { max-height: 34vh; } .qe-media { grid-template-columns: 1fr; } .qe-answers { grid-template-columns: 1fr; } }
/* ======================================================================
   RÉGIE : deux dashboards séparés (Lucky Wheel / Quiz) + écran d'accueil
   ====================================================================== */
body.mode-quiz .only-wheel, body.mode-wheel .only-quiz { display: none !important; }
#launchTabs, #boardBtns [data-board] { display: none !important; }
.home { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 30px 20px;
  background: radial-gradient(ellipse at 50% 0, rgba(255, 46, 166, .25), transparent 60%), radial-gradient(ellipse at 50% 100%, rgba(123, 43, 216, .35), transparent 60%), #0b0416; }
.home[hidden] { display: none; }
.home-logo { width: 300px; max-width: 70vw; filter: drop-shadow(0 0 24px rgba(155, 92, 255, .7)); }
.home-title { margin: 0; font-size: clamp(30px, 5vw, 54px); font-weight: 900; text-align: center; background: var(--chrome, linear-gradient(180deg, #fff, #cfc6e6)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 46, 166, .8)); }
.home-cards { display: grid; grid-template-columns: repeat(2, minmax(260px, 420px)); gap: 28px; }
.home-card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 34px 26px 28px; border-radius: 28px; cursor: pointer; font: inherit; color: #fff; text-align: center;
  border: 3px solid rgba(240, 201, 92, .7); transition: transform .2s, box-shadow .2s; }
.home-card.wheel { background: linear-gradient(160deg, rgba(255, 46, 166, .35), rgba(40, 10, 60, .95) 60%); box-shadow: 0 0 40px rgba(255, 46, 166, .45); }
.home-card.quiz { background: linear-gradient(160deg, rgba(42, 98, 232, .4), rgba(20, 10, 60, .95) 60%); box-shadow: 0 0 40px rgba(42, 98, 232, .5); }
.home-card:hover, .home-card:focus-visible { transform: translateY(-6px) scale(1.02); box-shadow: 0 0 0 4px #f0c95c, 0 0 60px rgba(240, 201, 92, .6); outline: none; }
.home-icon { font-size: 110px; line-height: 1; filter: drop-shadow(0 0 20px rgba(255, 255, 255, .4)); animation: arBob 3s ease-in-out infinite; }
.home-icon img { width: 220px; max-width: 100%; display: block; }
.home-name { font-size: 40px; font-weight: 900; letter-spacing: 3px; color: #f0c95c; text-shadow: 0 0 16px rgba(240, 201, 92, .7); }
.home-desc { font-size: 18px; color: #e9defd; line-height: 1.4; }
.home-go { margin-top: 6px; padding: 10px 22px; border-radius: 30px; font-weight: 900; color: #1a0b2e; background: linear-gradient(90deg, #f0c95c, #ffe9a8); }
.home-hint { color: #cfc6e6; text-align: center; }
.home-btn { font-size: 20px; padding: 4px 12px; }
.mode-badge { padding: 4px 14px; border-radius: 20px; font-weight: 900; letter-spacing: 1px; white-space: nowrap; color: #fff; }
body.mode-wheel .mode-badge { background: linear-gradient(90deg, #ff2ea6, #b026ff); box-shadow: 0 0 14px rgba(255, 46, 166, .6); }
body.mode-quiz .mode-badge { background: linear-gradient(90deg, #2a62e8, #7b2bd8); box-shadow: 0 0 14px rgba(42, 98, 232, .6); }
.mode-warn { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 179, 71, .15); border: 1px solid #ffb347; color: #ffd9a0; font-weight: 700; }
@media (max-width: 760px) { .home-cards { grid-template-columns: 1fr; } }
/* ======================================================================
   LUCKY WHEEL : tapis de jeu virtuel + bandeau des derniers tirages
   ====================================================================== */
.wheel-screen.with-history .s-wheel { flex-basis: 520px; height: 520px; }
.wheel-screen .s-wheel-row { gap: 34px; align-items: stretch; }
.wheel-screen .s-wheel-row > .s-wheel { align-self: center; }
/* tapis vert de casino, liseré or */
.tapis { flex: 1; min-width: 0; display: grid; gap: 12px; padding: 14px; border-radius: 26px; align-content: stretch;
  background: radial-gradient(ellipse at 50% 30%, #1d7a4a, #0d4a2b 70%, #08331d); border: 4px solid #c9a23a;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .12), inset 0 0 60px rgba(0, 0, 0, .55), 0 0 40px rgba(240, 201, 92, .35); }
.tapis.cols-2 { grid-template-columns: 1fr 1fr; }
.tapis.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.tp-cell { position: relative; display: flex; flex-direction: column; min-height: 0; border-radius: 16px; padding: 8px 10px; overflow: hidden;
  border: 3px solid var(--c); background: linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .32)); box-shadow: inset 0 0 22px rgba(0, 0, 0, .35); }
.tp-head { display: flex; align-items: center; gap: 10px; padding: 4px 8px; margin: -8px -10px 6px; background: var(--c); color: #fff; text-shadow: 0 2px 3px rgba(0, 0, 0, .5); }
.tp-head .sym { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .25); font-size: 26px; overflow: hidden; }
.tp-head .sym img { width: 100%; height: 100%; object-fit: cover; }
.tp-lbl { flex: 1; font-size: 28px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-coef { font-size: 22px; font-weight: 900; padding: 2px 10px; border-radius: 14px; background: rgba(0, 0, 0, .3); white-space: nowrap; }
.tp-chips { flex: 1; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px 6px; min-height: 64px; overflow: hidden; }
.tp-chip { position: relative; width: 64px; display: flex; flex-direction: column; align-items: center; }
.tp-chip img, .tp-ini { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font-size: 24px; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, #ff2ea6, #7b2bd8); border: 4px dashed #f0c95c; box-shadow: 0 3px 0 rgba(0, 0, 0, .5), 0 0 12px rgba(240, 201, 92, .5); }
.tp-amt { position: absolute; top: 34px; right: 0; min-width: 30px; padding: 1px 6px; border-radius: 12px; font-size: 16px; font-weight: 900; color: #1a0b2e; background: #f0c95c; border: 2px solid #fff; text-align: center; }
.tp-nm { margin-top: 2px; max-width: 64px; font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-chip.drop { animation: tpDrop .6s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes tpDrop { from { transform: translateY(-80px) scale(1.4) rotate(-25deg); opacity: 0; } to { transform: none; opacity: 1; } }
.tp-more { align-self: center; padding: 4px 10px; border-radius: 14px; font-weight: 900; color: #fff; background: rgba(0, 0, 0, .4); }
.tp-total { margin-top: 4px; font-size: 18px; color: #e8ffe9; text-align: right; }
.tp-total b { color: #f0c95c; font-size: 22px; }
/* bandeau des derniers tirages */
.hb { display: flex; align-items: center; gap: 14px; padding: 8px 16px; border-radius: 18px; background: rgba(12, 5, 24, .85); border: 2px solid rgba(240, 201, 92, .55); box-shadow: 0 0 24px rgba(155, 92, 255, .35); }
.hb-title { font-weight: 900; letter-spacing: 2px; color: #f0c95c; white-space: nowrap; }
.hb-title small { letter-spacing: 0; font-weight: 400; color: #cfc6e6; }
.hb-list { display: flex; gap: 8px; align-items: center; flex: 1; min-width: 0; overflow: hidden; }
.hb-item { position: relative; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; overflow: hidden; color: #fff; font-weight: 900;
  background: var(--c); border: 3px solid rgba(255, 255, 255, .7); box-shadow: 0 3px 0 rgba(0, 0, 0, .5); }
.hb-item img { width: 100%; height: 100%; object-fit: cover; }
.hb-item.last { border: 4px solid #f0c95c; box-shadow: 0 0 0 4px rgba(240, 201, 92, .35), 0 0 20px rgba(240, 201, 92, .8); overflow: visible; }
.hb-item.last img { border-radius: 50%; }
.hb-item.sp-jackpot { border-color: #ffd700; box-shadow: 0 0 16px #ffd700; }
.hb-lbl { position: absolute; top: 100%; margin-top: 2px; white-space: nowrap; font-size: .5em; color: #f0c95c; }
.hb-hot { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.hb-hot-t { font-weight: 900; color: #ff9a3c; }
.hb-stat { padding: 3px 10px; border-radius: 14px; color: #fff; background: var(--c); border: 2px solid rgba(255, 255, 255, .5); }
.hb-stat small { opacity: .85; }
.hb-big { margin-top: 12px; font-size: 22px; min-height: 92px; }
.hb-big .hb-item { width: 58px; height: 58px; font-size: 28px; }
.hb-big .hb-item.last { width: 74px; height: 74px; font-size: 36px; margin-bottom: 14px; }
.hb-mini { margin: 0 0 10px; font-size: 13px; flex-wrap: wrap; }
.hb-mini .hb-item { width: 28px; height: 28px; font-size: 14px; border-width: 2px; }
.hb-mini .hb-item.last { width: 36px; height: 36px; margin-bottom: 12px; }
.hb-phone { margin: 6px 0 10px; padding: 6px 10px; font-size: 12px; gap: 8px; }
.hb-phone .hb-item { width: 26px; height: 26px; font-size: 13px; border-width: 2px; }
.hb-phone .hb-item.last { width: 32px; height: 32px; border-width: 3px; }
/* écran roue + historique : tout tient dans la hauteur (roue 480 px, tapis à la même hauteur) */
.wheel-screen.with-history .s-wheel-row { height: 490px; }
.wheel-screen.with-history .s-wheel { flex-basis: 480px; height: 480px; }
.wheel-screen .s-bottom { margin-top: 8px; }
.wheel-screen .hb-big { margin-top: 8px; min-height: 84px; padding: 6px 16px; }
.wheel-screen .s-question.small { margin: 4px 40px 10px; }
/* tapis plus compact : le total est dans l'en-tête de la case */
.tp-head { padding: 3px 8px; gap: 8px; margin-bottom: 4px; }
.tp-head .sym { width: 36px; height: 36px; font-size: 22px; }
.tp-lbl { font-size: 24px; }
.tp-sum { font-size: 17px; padding: 1px 8px; border-radius: 12px; background: rgba(0, 0, 0, .35); white-space: nowrap; }
.tp-sum b { color: #ffe27a; font-size: 20px; }
.tp-coef { font-size: 19px; }
.tp-chips { min-height: 0; gap: 4px 6px; }
.tp-chip { width: 58px; }
.tp-chip img, .tp-ini { width: 44px; height: 44px; font-size: 20px; border-width: 3px; }
.tp-amt { top: 28px; font-size: 14px; }
.tp-nm { font-size: 12px; max-width: 58px; }
.tp-empty { align-self: center; margin: auto; font-size: 18px; color: rgba(232, 255, 233, .55); font-style: italic; }
/* fenêtre « Nouvelle partie » */
.ng-box { max-width: 680px; width: 92%; }
.ng-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 10px 0; }
.ng-del, .ng-keep { padding: 12px 14px; border-radius: 12px; }
.ng-del { background: rgba(224, 36, 94, .12); border: 1px solid rgba(224, 36, 94, .6); }
.ng-keep { background: rgba(21, 154, 85, .12); border: 1px solid rgba(21, 154, 85, .6); }
.ng-del ul, .ng-keep ul { margin: 8px 0 0; padding-left: 18px; line-height: 1.5; }
.ng-check { display: block; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .06); font-weight: 700; cursor: pointer; }
@media (max-width: 640px) { .ng-cols { grid-template-columns: 1fr; } }
/* bandeau des derniers tirages v2 : titre empilé, boules à logo rond, « plus sortis » à logo horizontal */
.hb-title { display: flex; flex-direction: column; line-height: 1.1; }
.hb-title small { font-size: .72em; letter-spacing: 0; }
.hb-list { gap: 7px; }
.hb-item { background: #fff; }
.hb-item .hb-sym { width: 100%; height: 100%; display: grid; place-items: center; background: var(--c); color: #fff; }
.hb-item img { border-radius: 50%; }
.hb-item.last { overflow: hidden; }
.hb-hot { flex: 0 0 auto; gap: 8px; }
.hb-hot-t { display: flex; flex-direction: column; line-height: 1.05; font-size: .8em; }
.hb-stat { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 2px solid var(--c); }
.hb-stat .hb-long { height: 34px; max-width: 120px; object-fit: contain; border-radius: 6px; background: var(--c); padding: 2px 4px; }
.hb-stat .hb-name { padding: 2px 8px; border-radius: 8px; background: var(--c); white-space: nowrap; }
.hb-stat b { color: #ffe27a; }
.hb-stat small { opacity: .8; }
/* écran géant : 15 boules sur une ligne */
.hb-big { font-size: 18px; gap: 12px; }
.hb-big .hb-title { font-size: 17px; }
.hb-big .hb-item { width: 50px; height: 50px; font-size: 24px; }
.hb-big .hb-item.last { width: 66px; height: 66px; margin-bottom: 0; font-size: 30px; }
.hb-big .hb-stat .hb-long { height: 38px; max-width: 130px; }
.hb-mini .hb-item.last { margin-bottom: 0; }
.hb-mini .hb-stat .hb-long { height: 24px; max-width: 90px; }
/* bandeau : 15 boules visibles */
.hb-big .hb-item { width: 46px; height: 46px; }
.hb-big .hb-item.last { width: 60px; height: 60px; }
.hb-big .hb-list { gap: 6px; }
.hb-big .hb-stat { gap: 5px; padding: 2px 8px 2px 3px; }
.hb-big .hb-stat .hb-long { height: 34px; max-width: 104px; }
.hb-big .hb-hot { gap: 6px; }
/* boules des derniers tirages : disque à la couleur de la case, logo rond au centre */
.hb .hb-item { background: var(--c); border: 3px solid rgba(255, 255, 255, .85); box-shadow: 0 3px 0 rgba(0, 0, 0, .5); }
.hb .hb-item img { width: 66%; height: 66%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(0, 0, 0, .25); }
.hb .hb-item.last { border: 3px solid #fff; box-shadow: 0 0 0 4px #f0c95c, 0 0 18px rgba(240, 201, 92, .9); overflow: hidden; }
.hb .hb-item.sp-jackpot { border-color: #ffd700; box-shadow: 0 0 0 2px #ffd700, 0 0 14px rgba(255, 215, 0, .8); }
.hb .hb-item.last.sp-jackpot { box-shadow: 0 0 0 4px #f0c95c, 0 0 18px rgba(255, 215, 0, .9); }
/* JACKPOT / MYSTERY : les gagnants en vedette pendant l'animation */
.fete-winners { display: flex; justify-content: center; align-items: flex-start; flex-wrap: wrap; gap: 34px; margin-top: 26px; }
.fw { display: flex; flex-direction: column; align-items: center; opacity: 0; animation: fwIn .9s cubic-bezier(.2, 1.5, .4, 1) forwards; }
.fw-av { width: 210px; height: 210px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font-size: 100px; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, #ff2ea6, #7b2bd8); border: 8px solid #f0c95c; box-shadow: 0 0 0 6px rgba(255, 255, 255, .5), 0 0 60px rgba(255, 214, 106, .95); animation: fwGlow 1.4s ease-in-out infinite alternate; }
.fete-winners.n3 .fw-av, .fete-winners.n4 .fw-av { width: 180px; height: 180px; font-size: 84px; }
.fete-winners.n5 .fw-av, .fete-winners.n6 .fw-av, .fete-winners.n7 .fw-av, .fete-winners.n8 .fw-av { width: 140px; height: 140px; font-size: 64px; border-width: 6px; }
.fw-nm { margin-top: 12px; font-size: 44px; font-weight: 900; color: #fff; text-shadow: 0 0 12px #000, 0 0 24px rgba(255, 46, 166, .9); }
.fw-gain { font-size: 40px; font-weight: 900; color: #ffe27a; text-shadow: 0 0 14px rgba(255, 214, 106, .9), 0 2px 4px #000; }
.fete-winners.n5 .fw-nm, .fete-winners.n6 .fw-nm, .fete-winners.n7 .fw-nm, .fete-winners.n8 .fw-nm { font-size: 30px; }
.fw.more { align-self: center; font-size: 60px; font-weight: 900; color: #fff; }
@keyframes fwIn { from { opacity: 0; transform: translateY(120px) scale(.3) rotate(-12deg); } to { opacity: 1; transform: none; } }
@keyframes fwGlow { to { box-shadow: 0 0 0 10px rgba(255, 255, 255, .7), 0 0 100px rgba(255, 214, 106, 1); } }
/* téléphone du gagnant : animation JACKPOT / MYSTERY plein écran (scène portrait 1080×1920) */
.pfete-wrap { position: fixed; inset: 0; z-index: 9999; overflow: hidden; background: #07030c; }
.pfete-stage { position: absolute; left: 50%; top: 50%; width: 1080px; height: 1920px; transform-origin: center; }
.pfete-stage .fete-text { top: 44%; white-space: normal; width: 1000px; }
.pfete-stage .fete-title { font-size: 210px; }
.pfete-stage .fete-title.mystery { font-size: 190px; }
.pfete-stage .fete-sub { font-size: 76px; line-height: 1.15; }
.pfete-stage .fete-extra { font-size: 52px; }
.pfete-stage .fete-winners { gap: 30px; margin-top: 40px; }
.pfete-stage .fw-av { width: 240px; height: 240px; }
.pfete-stage .fete-winners.n3 .fw-av, .pfete-stage .fete-winners.n4 .fw-av { width: 200px; height: 200px; }
.pfete-stage .fw-nm { font-size: 50px; }
.pfete-stage .fw-gain { font-size: 46px; }
/* titre du téléphone : tient dans 1080 px */
.pfete-stage .fete-title { font-size: 168px; }
.pfete-stage .fete-title.mystery { font-size: 150px; }
/* case gagnante : contour doré fin qui pulse (au lieu d'un gros contour blanc qui grisait les cases sombres) */
.wheel-slot.win { stroke: #f0c95c; stroke-width: 2.2; animation: winpulse2 .8s ease-in-out infinite alternate; }
@keyframes winpulse2 { from { stroke-opacity: .55; } to { stroke-opacity: 1; stroke: #fff3b0; } }
/* fond de l'écran géant réglable depuis la régie (--stage-bg) + assombrissement (--stage-dim) */
.stage {
  background:
    linear-gradient(rgba(4, 1, 8, var(--stage-dim, 0)), rgba(4, 1, 8, var(--stage-dim, 0))),
    radial-gradient(ellipse at 50% 38%, rgba(10, 4, 20, .25) 0%, rgba(6, 2, 12, .82) 62%, rgba(4, 1, 8, .96) 100%),
    linear-gradient(180deg, rgba(6, 2, 12, .55), rgba(6, 2, 12, .35) 40%, rgba(6, 2, 12, .78)),
    var(--stage-bg, url(/img/fond-hall.webp)) center / cover no-repeat;
}
.bg-thumb { width: 160px; height: 90px; border-radius: 8px; object-fit: cover; border: 2px solid rgba(240, 201, 92, .7); background: #000; }
/* image de fond personnalisée : seul le curseur « Assombrir » règle la luminosité (+ léger vignettage) */
.stage.custom-bg {
  background:
    linear-gradient(rgba(4, 1, 8, var(--stage-dim, .3)), rgba(4, 1, 8, var(--stage-dim, .3))),
    radial-gradient(ellipse at 50% 42%, rgba(4, 1, 8, 0) 55%, rgba(4, 1, 8, .55) 100%),
    var(--stage-bg) center / cover no-repeat;
}
/* logo LUCKY WHEEL : plus de cadre rectangulaire, une lueur qui suit la forme du logo (PNG détouré ou non) */
.s-lucky { border-radius: 0; box-shadow: none; height: 160px; top: 2px; filter: drop-shadow(0 0 14px rgba(255, 63, 216, .65)) drop-shadow(0 0 30px rgba(240, 201, 92, .45)); }
.p-lucky-logo { border-radius: 0; box-shadow: none; max-height: 120px; filter: drop-shadow(0 0 10px rgba(255, 63, 216, .6)) drop-shadow(0 0 18px rgba(240, 201, 92, .4)); }
/* logo LUCKY WHEEL : position = centre du logo (en % de l'écran), au-dessus du contenu */
.s-lucky { transform: translate(-50%, -50%); z-index: 20; max-width: 96%; object-fit: contain; }
/* régie : placement du logo LUCKY WHEEL sur une maquette 16:9 de l'écran géant */
.lp { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.lp-frame { position: relative; width: 384px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #0b0416 center / cover no-repeat;
  border: 2px solid rgba(240, 201, 92, .7); box-shadow: inset 0 0 0 2000px rgba(4, 1, 8, .25); touch-action: none; }
.lp-hint { position: absolute; left: 6px; bottom: 4px; font-size: 11px; color: rgba(255, 255, 255, .7); pointer-events: none; }
.lp-logo { position: absolute; transform: translate(-50%, -50%); max-width: 96%; cursor: grab; user-select: none; filter: drop-shadow(0 0 6px rgba(255, 63, 216, .7)); }
.lp-logo:active { cursor: grabbing; outline: 2px dashed #f0c95c; outline-offset: 2px; }
.lp-ctrl { display: flex; flex-direction: column; gap: 8px; }
/* Tablette (iPad en régie) : pas de zoom au double appui sur les boutons (validation du résultat en 2 appuis) */
button, .btn, a.btn { touch-action: manipulation; }

/* Téléphone : recadrage de la photo (glisser + pincer pour zoomer) */
body.pc-open { overflow: hidden; }
.pc-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(8, 3, 16, .92); display: flex; align-items: center; justify-content: center; padding: 14px; }
.pc-card { width: 100%; max-width: 360px; background: #1c1030; border: 1px solid rgba(240, 201, 92, .5); border-radius: 18px; padding: 16px; text-align: center; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.pc-title { font-size: 22px; font-weight: 800; color: var(--gold2, #f0c95c); }
.pc-help { font-size: 15px; color: #d9cdf0; margin: 6px 0 12px; }
.pc-frame { position: relative; width: min(300px, 78vw); aspect-ratio: 1; margin: 0 auto; border-radius: 12px; overflow: hidden; }
.pc-frame::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: 12px;
  background: radial-gradient(circle at center, transparent 0 69%, rgba(0, 0, 0, .55) 70%); box-shadow: inset 0 0 0 2px rgba(240, 201, 92, .8); }
.pc-canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.pc-zoomrow { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; }
.pc-zoom { flex: 1; accent-color: #f0c95c; height: 32px; }
.pc-zbtn { width: 48px; height: 48px; border-radius: 50%; border: 0; font-size: 28px; font-weight: 800; background: #3a2260; color: #fff; touch-action: manipulation; }
.pc-actions { display: flex; gap: 10px; margin-top: 12px; }
.pc-actions .btn { flex: 1; min-height: 52px; font-size: 18px; }
/* ampoules de chapiteau aussi sur les côtés gauche et droit (même rythme que haut/bas) */
.s-bulbs-side { position: absolute; left: 0; right: 0; top: 40px; bottom: 40px; pointer-events: none; z-index: 39; opacity: .9;
  background:
    radial-gradient(circle, #fff7d6 0 4px, rgba(255, 214, 106, .55) 5px, transparent 8px) 4px 0 / 22px 40px repeat-y,
    radial-gradient(circle, #fff7d6 0 4px, rgba(255, 214, 106, .55) 5px, transparent 8px) calc(100% - 4px) 0 / 22px 40px repeat-y;
  animation: chase-side 1.6s linear infinite; }
@keyframes chase-side { to { background-position: 4px 40px, calc(100% - 4px) -40px; } }
@media (prefers-reduced-motion: reduce) { .s-bulbs-side { animation: none; } }
/* Régie : choix du logo QUIZ (logos en stock + logo importé) */
.ql-choice { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 8px; border-radius: 12px; border: 2px solid rgba(240, 201, 92, .35); background: #160a2c; color: #e9defd; cursor: pointer; font-size: 12px; font-weight: 700; }
.ql-choice img { height: 64px; width: auto; max-width: 150px; }
.ql-choice.on { border-color: #f0c95c; box-shadow: 0 0 0 2px rgba(240, 201, 92, .4), 0 0 18px rgba(240, 201, 92, .35); }
.home-card.quiz .home-icon img { width: 260px; }
/* éditeur des règles sous l'aperçu de l'écran géant */
.rules-edit { margin-top: 10px; border: 1px solid rgba(240, 201, 92, .45); border-radius: 12px; padding: 8px 12px; background: rgba(255, 255, 255, .04); }
.rules-edit summary { cursor: pointer; font-weight: 800; color: var(--gold); padding: 4px 0; }
.rules-edit textarea { font-size: 15px; line-height: 1.4; resize: vertical; }

/* règles LUCKY WHEEL animées (une carte par ligne du texte) */
.wr-wrap { gap: 18px; }
.wr-list { display: flex; flex-direction: column; gap: 16px; width: min(1500px, 92%); margin-top: 6px; }
.wr-line { display: flex; align-items: center; gap: 22px; padding: 16px 30px 16px 18px; border-radius: 24px; text-align: left;
  background: linear-gradient(90deg, rgba(42, 16, 74, .95), rgba(16, 7, 32, .9)); border: 2px solid rgba(240, 201, 92, .6);
  box-shadow: 0 0 0 4px rgba(155, 92, 255, .16), 0 0 30px rgba(155, 92, 255, .4); animation: wrIn .7s cubic-bezier(.2, 1.3, .4, 1) both; position: relative; overflow: hidden; }
.wr-line::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 240, 190, .16) 50%, transparent 70%);
  transform: translateX(-120%); animation: wrShine 4.5s ease-in-out infinite; animation-delay: inherit; }
.wr-num { flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; font-weight: 900; color: #3a1600;
  background: radial-gradient(circle at 35% 30%, #fff6c8, #f0c95c 45%, #b8700a); box-shadow: 0 0 16px rgba(240, 201, 92, .7); }
.wr-icon { flex: none; font-size: 58px; line-height: 1; filter: drop-shadow(0 0 14px rgba(255, 46, 166, .7)); animation: arBob 2.6s ease-in-out infinite; }
.wr-txt { font-size: 42px; font-weight: 700; color: #fff; line-height: 1.25; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.wr-txt b { color: #f0c95c; font-weight: 900; text-shadow: 0 0 14px rgba(240, 201, 92, .75); }
.wr-list.many { gap: 10px; } .wr-list.many .wr-txt { font-size: 32px; } .wr-list.many .wr-icon { font-size: 44px; } .wr-list.many .wr-line { padding: 10px 24px 10px 14px; }
.wr-chips { display: flex; gap: 26px; margin-top: 8px; }
.wr-chips span { width: 46px; height: 46px; border-radius: 50%; background: var(--c); border: 6px dashed rgba(255, 255, 255, .85);
  box-shadow: 0 0 14px var(--c), inset 0 0 0 4px rgba(0, 0, 0, .25); animation: wrChip 2.4s ease-in-out infinite; }
@keyframes wrIn { from { opacity: 0; transform: translateX(-80px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes wrShine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes wrChip { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(180deg); } }
@media (prefers-reduced-motion: reduce) { .wr-line, .wr-line::after, .wr-icon, .wr-chips span { animation: none; } }
.wr-wrap { gap: 10px; }
.wr-wrap .qr-title { line-height: 1.2; padding: 0 10px 12px; margin-top: -6px; }
.wr-logo { height: 150px; max-width: 70%; object-fit: contain; filter: drop-shadow(0 0 22px rgba(240, 201, 92, .55)); animation: arIn .6s ease-out both, arBob 3.2s ease-in-out .6s infinite; }

/* accueil : têtes des joueurs inscrits (photo ou initiale) */
.s-lobby-wrap { display: flex; flex-direction: column; height: 100%; gap: 10px; }
.s-lobby-wrap .s-lobby { flex: 1; min-height: 0; height: auto; }
.lb-crowd { flex: none; display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-start; gap: 10px 12px; max-height: 250px; overflow: hidden; padding: 4px 10px 6px; }
.lb-crowd:empty { display: none; }
.lb-av { display: flex; flex-direction: column; align-items: center; width: 96px; }
.lb-av img, .lb-ini { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font-size: 40px; font-weight: 900; color: #fff;
  border: 4px solid #f0c95c; box-shadow: 0 0 16px rgba(240, 201, 92, .55), 0 0 30px rgba(155, 92, 255, .45); background: linear-gradient(135deg, #ff3fd8, #9b5cff 50%, #4f7bff); }
.lb-nm { margin-top: 4px; font-size: 17px; font-weight: 800; color: #fff; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 6px #000; }
.lb-av.arrive { animation: crArrive .8s cubic-bezier(.2, 1.6, .4, 1) both; }
.lb-av.arrive img, .lb-av.arrive .lb-ini { animation: lbGlow 2.4s ease-out .2s both; }
@keyframes lbGlow { 0% { box-shadow: 0 0 0 0 rgba(255, 246, 200, .95), 0 0 40px #ff3fd8; } 100% { box-shadow: 0 0 16px rgba(240, 201, 92, .55), 0 0 30px rgba(155, 92, 255, .45); } }
.lb-crowd.sm .lb-av { width: 70px; } .lb-crowd.sm .lb-av img, .lb-crowd.sm .lb-ini { width: 58px; height: 58px; font-size: 28px; border-width: 3px; } .lb-crowd.sm .lb-nm { font-size: 13px; max-width: 70px; }
.lb-crowd.xs { gap: 6px; } .lb-crowd.xs .lb-av { width: 46px; } .lb-crowd.xs .lb-av img, .lb-crowd.xs .lb-ini { width: 42px; height: 42px; font-size: 20px; border-width: 2px; } .lb-crowd.xs .lb-nm { display: none; }

/* boutons de l'animateur sur l'écran géant : petits et discrets (visibles au survol) */
.fs-btn { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; font-size: 20px; line-height: 1; border-radius: 9px;
  background: rgba(10, 4, 20, .45); color: rgba(255, 255, 255, .8); border: 1px solid rgba(255, 255, 255, .18); opacity: .28; transition: opacity .2s; }
.fs-btn:hover, .fs-btn:focus-visible { opacity: 1; }
.fs-btn[hidden] { display: none; }
.wheel-sound[aria-pressed="true"] { opacity: .2; }
/* accueil : ronds jaunes simples, sans halo ni cadre */
.lb-av img, .lb-ini { box-shadow: none; filter: none; }
.lb-av.arrive img, .lb-av.arrive .lb-ini { animation: none; }
.lb-nm { text-shadow: none; }
.lb-crowd, .lb-av { background: none; box-shadow: none; }

/* téléphone : bandeau réseau bien visible en haut, vert quand c'est reconnecté */
.net { top: 0; bottom: auto; padding: 12px 10px calc(12px); padding-top: max(12px, env(safe-area-inset-top)); font-size: 17px;
  background: #b3261e; box-shadow: 0 4px 18px rgba(0, 0, 0, .5); animation: netIn .25s ease-out; }
.net.ok { background: #1f8f4e; }
@keyframes netIn { from { transform: translateY(-100%); } to { transform: none; } }
/* quiz : progression au classement après chaque question */
.pa-move { font-weight: 900; font-size: 1.05em; margin: 4px 0 2px; }
.pa-move.up { color: #3ee08a; } .pa-move.down { color: #ff7a7a; }

/* téléphone : inviter un ami (QR code en grand, WhatsApp) */
.invite-btn { display: block; width: 100%; margin: 10px 0 0; padding: 12px; border-radius: 14px; font: inherit; font-weight: 800; font-size: 1.05em; color: #fff; cursor: pointer;
  background: rgba(37, 211, 102, .12); border: 2px solid rgba(37, 211, 102, .7); }
.invite-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(8, 3, 16, .985); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 14px; overflow-y: auto; }
.invite-box { width: min(440px, 100%); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; color: #fff; }
.invite-t { font-size: 1.6em; font-weight: 900; }
.invite-s { font-size: 1.05em; opacity: .9; }
.invite-qr { width: min(86vw, 380px); aspect-ratio: 1; background: #fff; padding: 14px; border-radius: 22px; box-shadow: 0 0 0 5px #9b5cff, 0 0 40px rgba(255, 63, 216, .6); }
.invite-url { font-weight: 900; color: var(--gold2, #f0c95c); font-size: 1.15em; word-break: break-all; }
.invite-wa, .invite-share, .invite-close { display: block; width: 100%; padding: 15px; border-radius: 14px; font: inherit; font-weight: 900; font-size: 1.1em; text-align: center; text-decoration: none; border: 0; cursor: pointer; }
.invite-wa { background: #25d366; color: #06301a; }
.invite-share { background: rgba(255, 255, 255, .14); color: #fff; }
.invite-close { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .35); }

/* téléphone : mode « grand texte » imposé par l'animateur (repas des aînés) */
.player.senior { font-size: 24px; }
.player.senior .p-input { font-size: 1.15em; padding: 16px; }
.player.senior .big-btn { font-size: 1.4em; padding: 22px; }
.player.senior .pa-tile { min-height: 30vh; font-size: 1.25em; }
.player.senior .pa-suit { font-size: 1.3em; }
.player.senior .muted { opacity: .95; }
.player.senior .p-logo { max-height: 70px; }
body.senior .toolbar { display: none; }
body.senior .invite-overlay { font-size: 22px; }
