:root{--bg:#0f1029;--bg-2:#1a1b3d;--gold:#f5c542;--text:#f5f5f5;--team-bleu:#2563eb;--team-rouge:#dc2626;--team-jaune:#eab308;--opt-0:#e21b3c;--opt-1:#1368ce;--opt-2:#d89e00;--opt-3:#26890c}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:radial-gradient(circle at top, var(--bg-2), var(--bg));color:var(--text);font-family:Segoe UI,system-ui,sans-serif}.screen{flex-direction:column;align-items:center;gap:16px;min-height:100vh;padding:24px;display:flex}.center-screen{text-align:center;justify-content:center}.title{color:var(--gold);text-align:center;margin:0;font-size:clamp(1.8rem,4vw,3rem)}.hint{opacity:.8;font-size:.95rem}.version-tag{opacity:.45;font-variant-numeric:tabular-nums;margin:0;font-size:.75rem}.connection-banner{z-index:100;text-align:center;color:#1a0000;background:var(--opt-2);padding:10px 16px;font-weight:600;position:fixed;top:0;left:0;right:0;box-shadow:0 2px 12px #0006}.question-count,.item-count{opacity:.8;letter-spacing:.05em}.question-text,.statement{text-align:center;max-width:900px;font-size:clamp(1.4rem,3vw,2.2rem)}.btn{cursor:pointer;background:var(--bg-2);color:var(--text);border:none;border-radius:12px;padding:12px 24px;font-size:1rem;font-weight:600;transition:transform .1s}.btn:hover:not(:disabled){transform:translateY(-2px)}.btn:disabled{opacity:.4;cursor:not-allowed}.btn-primary{background:var(--gold);color:#1a1b3d}.btn-secondary{border:2px solid var(--gold);color:var(--gold);background:0 0}.btn-lg{padding:16px 32px;font-size:1.3rem}.btn-tiny{padding:6px 10px;font-size:.75rem}.btn-leave{color:#ffffff80;background:0 0;margin-top:12px;text-decoration:underline}.team-badge{letter-spacing:.05em;border-radius:999px;padding:4px 14px;font-weight:700;display:inline-block}.team-badge--lg{padding:10px 24px;font-size:1.5rem}.team-badge--sm{padding:2px 8px;font-size:.7rem}.team-BLEU{background:var(--team-bleu);color:#fff}.team-ROUGE{background:var(--team-rouge);color:#fff}.team-JAUNE{background:var(--team-jaune);color:#1a1b3d}.team-BLEU-bg{border:2px solid var(--team-bleu)}.team-ROUGE-bg{border:2px solid var(--team-rouge)}.team-JAUNE-bg{border:2px solid var(--team-jaune)}.lobby-layout{flex-wrap:wrap;justify-content:center;gap:32px;width:100%;display:flex}.lobby-qr{text-align:center;color:#111;background:#fff;border-radius:16px;padding:20px}.qr-image{width:15rem;height:15rem}.join-url{word-break:break-all;font-weight:700}.lobby-pending{flex-direction:column;gap:8px;min-width:220px;display:flex}.lobby-pending-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.lobby-pending-title{margin:0;font-size:1.1rem}.pending-list{flex-direction:column;gap:6px;max-height:40vh;margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}.pending-item{align-items:center;gap:8px;display:flex}.pending-name{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.lobby-closed{flex-direction:column;justify-content:center;align-items:center;gap:8px;min-height:220px;display:flex}.lobby-closed-title{font-size:1.4rem;font-weight:700}.room-code{flex-direction:column;align-items:center;gap:4px;margin-top:16px;display:flex}.room-code-label{text-transform:uppercase;letter-spacing:.1em;opacity:.75;font-size:.9rem}.room-code-value{letter-spacing:.15em;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:clamp(2.5rem,6vw,4.5rem);font-weight:800;line-height:1.1}.lobby-teams{flex-wrap:wrap;gap:16px;display:flex}.lobby-team{background:#ffffff0d;border-radius:16px;min-width:180px;padding:16px}.player-list{margin:12px 0 0;padding:0;list-style:none}.player-list li{padding:4px 0}.player-list li.disconnected{opacity:.4;text-decoration:line-through}.player-list li.empty{opacity:.5;font-style:italic}.timer{color:var(--gold);font-size:2rem;font-weight:800}.active-header{justify-content:space-between;align-items:center;width:100%;display:flex}.options-grid{grid-template-columns:repeat(2,minmax(140px,1fr));gap:16px;width:100%;max-width:800px;display:grid}.options-grid--player .option-card{cursor:pointer;font:inherit}.option-card{color:#fff;text-align:left;border:none;border-radius:12px;align-items:center;gap:12px;padding:20px;font-size:1.1rem;display:flex}.option-letter{background:#00000040;border-radius:8px;padding:4px 10px;font-weight:800}.option-color-0{background:var(--opt-0)}.option-color-1{background:var(--opt-1)}.option-color-2{background:var(--opt-2)}.option-color-3{background:var(--opt-3)}.option-dim{opacity:.35}.option-correct{outline:4px solid #fff;transform:scale(1.03)}.host-audio{margin:12px 0}.host-video{border-radius:12px;max-width:min(720px,90vw);max-height:45vh;margin:12px 0}.pokemon-image{object-fit:contain;background:#ffffff0d;border-radius:12px;max-width:min(420px,80vw);max-height:40vh;margin:12px 0}.km-options{gap:24px;width:100%;max-width:700px;display:flex}.km-option{text-align:center;color:#fff;cursor:pointer;border:none;border-radius:16px;flex:1;padding:40px 20px;font-size:1.6rem;font-weight:800}.km-ketchup{background:#c0392b}.km-mayo{color:#444;background:#f1e6b2}.name-input{text-align:center;border:none;border-radius:10px;width:min(320px,90vw);padding:12px 16px;font-size:1.2rem}.team-picker{gap:12px;display:flex}.team-choice{cursor:pointer;color:#fff;background:#444;border:3px solid #0000;border-radius:10px;padding:14px 22px;font-weight:700}.team-choice.team-BLEU-bg{background:var(--team-bleu)}.team-choice.team-ROUGE-bg{background:var(--team-rouge)}.team-choice.team-JAUNE-bg{background:var(--team-jaune);color:#1a1b3d}.team-choice.selected{border-color:#fff;transform:scale(1.05)}.waiting-name{font-size:1.3rem;font-weight:700}.spinner{border:4px solid #fff3;border-top-color:var(--gold);border-radius:50%;width:40px;height:40px;animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.scoreboard{flex-direction:column;gap:8px;width:100%;max-width:500px;display:flex}.scoreboard__row{background:#ffffff0d;border-radius:10px;padding:10px 16px}.scoreboard__header{justify-content:space-between;align-items:center;display:flex}.scoreboard__points{font-size:1.1rem;font-weight:800}.scoreboard__player-list{opacity:.9;border-top:1px solid #ffffff1f;flex-direction:column;gap:4px;margin:8px 0 0;padding:8px 0 0;font-size:.85rem;list-style:none;display:flex}.scoreboard__player-list li{justify-content:space-between;display:flex}.scoreboard--compact .scoreboard__row{padding:6px 12px}.lyrics-review{flex-direction:column;gap:8px;width:100%;max-width:700px;display:flex}.lyrics-row{background:#ffffff0d;border-radius:10px;align-items:center;gap:10px;padding:8px 12px;display:flex}.lyrics-row.is-correct{border-left:4px solid #26890c}.lyrics-row.is-wrong{border-left:4px solid #e21b3c}.lyrics-name{min-width:80px;font-weight:700}.lyrics-text{opacity:.9;flex:1;font-style:italic}.correct-answer{font-size:1.3rem}.my-result{font-size:1.4rem;font-weight:800}.my-result.is-correct{color:#26890c}.my-result.is-wrong{color:#e21b3c}.error-text{color:#e21b3c;font-weight:700}.winner-banner{flex-direction:column;align-items:center;gap:8px;margin-bottom:12px;display:flex}.answered-count{opacity:.8}@media (width<=480px){.options-grid{grid-template-columns:1fr}}:root{--ink:#0b0b16;--pop-shadow:4px 4px 0 var(--ink);--pop-shadow-sm:2px 2px 0 var(--ink);--pop-shadow-lg:8px 8px 0 var(--ink);--neon-pink:#ff2e88;--neon-cyan:#22d3ee;--neon-lime:#c4ff61;--neon-violet:#a06bff}.title--pop{letter-spacing:-.02em;text-transform:uppercase;-webkit-text-stroke:2px var(--ink);paint-order:stroke fill;text-shadow:var(--pop-shadow);font-weight:900}.btn-pop{border:3px solid var(--ink);box-shadow:var(--pop-shadow);transition:transform 80ms,box-shadow 80ms}.btn-pop:hover:not(:disabled){box-shadow:6px 6px 0 var(--ink);transform:translate(-2px,-2px)}.btn-pop:active:not(:disabled){box-shadow:0 0 0 var(--ink);transform:translate(4px,4px)}.btn-pop:disabled{box-shadow:var(--pop-shadow-sm)}.avatar{border:3px solid var(--ink);background:linear-gradient(140deg, var(--avatar-from,#f5c542), var(--avatar-to,#e21b3c));box-shadow:var(--pop-shadow-sm);-webkit-user-select:none;user-select:none;border-radius:50%;flex:none;justify-content:center;align-items:center;line-height:1;display:inline-flex}.avatar--xs{border-width:2px;width:1.375rem;height:1.375rem;font-size:.75rem}.avatar--sm{border-width:2px;width:2.125rem;height:2.125rem;font-size:1.1rem}.avatar--md{width:3rem;height:3rem;font-size:1.6rem}.avatar--lg{width:4.5rem;height:4.5rem;font-size:2.4rem}.avatar--xl{width:6.75rem;height:6.75rem;box-shadow:var(--pop-shadow);font-size:3.6rem}.avatar--hero{animation:2.6s ease-in-out infinite avatar-bob}.avatar--celebrate{animation:.7s ease-in-out infinite avatar-celebrate}@keyframes avatar-bob{0%,to{transform:translateY(0)rotate(-2deg)}50%{transform:translateY(-8px)rotate(2deg)}}@keyframes avatar-celebrate{0%,to{transform:scale(1)rotate(-6deg)}50%{transform:scale(1.12)rotate(6deg)}}.avatar-picker{border:3px solid var(--ink);width:min(360px,92vw);box-shadow:var(--pop-shadow);background:#ffffff12;border-radius:16px;padding:12px}.avatar-picker__header{justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px;display:flex}.avatar-picker__grid{grid-template-columns:repeat(5,1fr);gap:8px;max-height:30vh;display:grid;overflow-y:auto}.avatar-choice{cursor:pointer;background:0 0;border:3px solid #0000;border-radius:12px;justify-content:center;align-items:center;padding:4px;transition:transform .1s;display:flex}.avatar-choice:hover{transform:scale(1.12)}.avatar-choice:active{transform:scale(.92)}.avatar-choice.is-selected{border-color:var(--gold);box-shadow:var(--pop-shadow-sm);background:#f5c5422e}.qtype-banner{border:4px solid var(--ink);width:min(760px,96vw);box-shadow:var(--pop-shadow);color:var(--ink);background:linear-gradient(120deg, var(--qtype-from), var(--qtype-to));border-radius:18px;align-items:center;gap:14px;padding:12px 18px;animation:.35s cubic-bezier(.2,1.4,.4,1) both banner-in;display:flex}.qtype-banner--compact{box-shadow:var(--pop-shadow-sm);border-width:3px;gap:10px;padding:8px 12px}.qtype-banner--qcm{--qtype-from:#ffd166;--qtype-to:#ff6b35}.qtype-banner--sound{--qtype-from:#22d3ee;--qtype-to:#4361ee}.qtype-banner--ketchup{--qtype-from:#ff8fab;--qtype-to:#c0392b}.qtype-banner--lyrics{--qtype-from:#c4ff61;--qtype-to:#00b894}.qtype-banner--pokemon{--qtype-from:#ff9ff3;--qtype-to:#a06bff}.qtype-banner--djset{--qtype-from:#fdd835;--qtype-to:#ff2e88}.qtype-banner__art{border:3px solid var(--ink);background:#ffffffa6;border-radius:14px;flex:none;justify-content:center;align-items:center;width:56px;height:56px;font-size:2rem;animation:3s ease-in-out infinite art-wobble;display:flex}.qtype-banner--compact .qtype-banner__art{border-radius:10px;width:38px;height:38px;font-size:1.3rem}.qtype-banner__image{object-fit:cover;border-radius:10px;width:100%;height:100%}.qtype-banner__text{flex-direction:column;flex:1;min-width:0;display:flex}.qtype-banner__label{text-transform:uppercase;letter-spacing:.02em;font-size:clamp(1rem,2.4vw,1.6rem);font-weight:900}.qtype-banner__tagline{opacity:.75;font-size:.85rem}.qtype-banner__count{border:3px solid var(--ink);background:#fff;border-radius:999px;padding:4px 12px;font-size:1.4rem;font-weight:900}.qtype-banner__count small{opacity:.6;font-size:.7em}@keyframes banner-in{0%{opacity:0;transform:translateY(-16px)scale(.94)}to{opacity:1;transform:none}}@keyframes art-wobble{0%,to{transform:rotate(-6deg)}50%{transform:rotate(6deg)}}.timer{border:3px solid var(--ink);box-shadow:var(--pop-shadow-sm);background:#00000059;border-radius:999px;padding:4px 14px}.timer--urgent{color:#fff;background:var(--opt-0);animation:.5s steps(2,end) infinite timer-blink}@keyframes timer-blink{0%,to{opacity:1;transform:scale(1)}50%{opacity:.55;transform:scale(1.14)}}.player-list__item{align-items:center;gap:8px;font-weight:600;display:flex}.scoreboard__player{align-items:center;gap:6px;display:flex}.pop-in{animation:.45s cubic-bezier(.2,1.6,.4,1) both pop-in}@keyframes pop-in{0%{opacity:0;transform:scale(.5)rotate(-6deg)}70%{transform:scale(1.1)rotate(2deg)}to{opacity:1;transform:none}}.confetti{pointer-events:none;z-index:10;position:fixed;inset:0;overflow:hidden}.confetti__piece{border-radius:2px;width:10px;height:16px;animation-name:confetti-fall;animation-timing-function:linear;animation-iteration-count:infinite;position:absolute;top:-12px}@keyframes confetti-fall{0%{opacity:1;transform:translateY(-10vh)rotate(0)}to{transform:translateY(105vh) rotate(var(--confetti-rotate,360deg));opacity:.9}}@media (prefers-reduced-motion:reduce){.avatar--hero,.avatar--celebrate,.qtype-banner,.qtype-banner__art,.timer--urgent,.pop-in,.confetti__piece{animation:none}}@media (width<=480px){.qtype-banner__tagline{display:none}.avatar-picker__grid{grid-template-columns:repeat(5,1fr)}}.screen{min-height:100dvh}img,video{max-width:100%}html[data-surface=host]{font-size:clamp(16px,min(1.15vw,2.05vh),48px)}[data-surface=host] .screen{gap:clamp(10px,1.6vh,32px);padding:clamp(16px,3vh,64px) clamp(16px,4vw,120px)}[data-surface=host] .active-screen,[data-surface=host] .reveal-screen,[data-surface=host] .lobby-screen{justify-content:center}[data-surface=host] .title{font-size:clamp(2rem,4.5vw,4.5rem)}[data-surface=host] .hint{font-size:1rem}[data-surface=host] .question-count,[data-surface=host] .item-count,[data-surface=host] .answered-count{margin:0;font-size:1.15rem}[data-surface=host] .question-text,[data-surface=host] .statement{max-width:85vw;margin:.2em 0;font-size:clamp(1.8rem,3.4vw,4rem);line-height:1.2}[data-surface=host] .qtype-banner{width:min(48rem,92vw)}[data-surface=host] .timer{border-width:4px;padding:.1em .6em;font-size:2.6rem}[data-surface=host] .active-header{max-width:85vw}[data-surface=host] .options-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.2rem;max-width:min(85vw,75rem)}[data-surface=host] .option-card{border-radius:.6em;min-height:4.5rem;padding:.8em 1em;font-size:clamp(1.3rem,2.1vw,2.4rem)}[data-surface=host] .km-options{max-width:min(80vw,60rem)}[data-surface=host] .km-option{padding:.8em .5em;font-size:clamp(2rem,4vw,4.5rem)}[data-surface=host] .host-video{max-width:min(80vw,90rem);max-height:48vh}[data-surface=host] .pokemon-image{max-width:min(50vw,40rem);max-height:36vh}[data-surface=host] .host-audio{width:min(40rem,70vw)}[data-surface=host] .correct-answer{text-align:center;font-size:clamp(1.4rem,2.4vw,2.8rem)}[data-surface=host] .btn{padding:.6em 1.4em;font-size:1rem}[data-surface=host] .btn-lg{font-size:1.3rem}[data-surface=host] .lobby-layout{align-items:flex-start;gap:clamp(16px,2.5vw,64px)}[data-surface=host] .lobby-qr{border-radius:1rem;max-width:34vw;padding:1.2rem}[data-surface=host] .qr-image{width:min(32vh,28vw);height:min(32vh,28vw)}[data-surface=host] .join-url{font-size:.9rem}[data-surface=host] .lobby-teams{flex:1;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;max-width:60vw;display:grid}[data-surface=host] .lobby-team{border-width:3px;min-width:0;padding:1rem}[data-surface=host] .player-list{max-height:46vh;font-size:1.1rem;overflow-y:auto}[data-surface=host] .lobby-pending{min-width:14rem}[data-surface=host] .scoreboard{flex-direction:row;align-items:flex-start;gap:1rem;max-width:min(85vw,75rem)}[data-surface=host] .scoreboard__row{flex:1;min-width:0;padding:.6rem 1rem}[data-surface=host] .scoreboard__points{font-size:1.5rem}[data-surface=host] .scoreboard__player-list{max-height:40vh;font-size:.95rem;overflow-y:auto}[data-surface=host] .lyrics-review{grid-template-columns:repeat(auto-fill,minmax(min(26rem,100%),1fr));max-width:min(90vw,90rem);max-height:38vh;font-size:1rem;display:grid;overflow-y:auto}[data-surface=host] .lyrics-text{overflow-wrap:anywhere;min-width:0}[data-surface=host] .winner-banner p{margin:0;font-size:1.6rem}@media (aspect-ratio<=4/3){[data-surface=host] .lobby-qr,[data-surface=host] .lobby-teams{max-width:92vw}[data-surface=host] .qr-image{width:min(30vh,60vw);height:min(30vh,60vw)}[data-surface=host] .scoreboard{flex-direction:column;align-items:stretch}}[data-surface=player] body{overscroll-behavior-y:contain;-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%}[data-surface=player] .screen{width:100%;max-width:560px;padding:max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));gap:14px;margin:0 auto}[data-surface=player] .connection-banner{padding-top:max(10px, env(safe-area-inset-top))}[data-surface=player] button,[data-surface=player] input{touch-action:manipulation;-webkit-tap-highlight-color:transparent}[data-surface=player] .title{font-size:clamp(1.6rem,8vw,2.4rem)}[data-surface=player] .question-text,[data-surface=player] .statement{overflow-wrap:anywhere;margin:4px 0;font-size:clamp(1.2rem,5.5vw,1.7rem);line-height:1.25}[data-surface=player] .qtype-banner{width:100%}[data-surface=player] .active-header{justify-content:center}[data-surface=player] .name-input{width:100%;max-width:420px;min-height:52px;padding:14px 16px;font-size:max(16px,1.15rem)}[data-surface=player] .btn{min-height:48px}[data-surface=player] .btn-lg{width:100%;max-width:420px}[data-surface=player] .btn-tiny{min-height:36px}[data-surface=player] .options-grid{gap:10px}[data-surface=player] .option-card{overflow-wrap:anywhere;min-height:72px;padding:14px 16px;font-size:clamp(1rem,4.5vw,1.2rem)}[data-surface=player] .option-card:disabled,[data-surface=player] .km-option:disabled{opacity:.5;cursor:default}[data-surface=player] .km-options{gap:12px}[data-surface=player] .km-option{min-height:34vh;padding:16px 8px;font-size:clamp(1.1rem,6.5vw,1.8rem)}[data-surface=player] .team-picker{flex-wrap:wrap;justify-content:center;gap:10px}[data-surface=player] .team-choice{min-width:88px;min-height:48px}[data-surface=player] .avatar-picker{width:100%;max-width:420px}[data-surface=player] .avatar-choice{min-height:48px}[data-surface=player] .scoreboard{max-width:100%}[data-surface=player] .correct-answer{text-align:center;overflow-wrap:anywhere;font-size:clamp(1.1rem,5vw,1.4rem)}[data-surface=player] .waiting-text{text-align:center}@media (hover:none){.btn:hover:not(:disabled),.avatar-choice:hover{transform:none}.btn-pop:hover:not(:disabled){box-shadow:var(--pop-shadow);transform:none}.option-card:active:not(:disabled),.km-option:active:not(:disabled),.team-choice:active{transform:scale(.96)}}@media (width<=360px){[data-surface=player] .avatar--xl{width:5.25rem;height:5.25rem;font-size:2.8rem}[data-surface=player] .avatar-picker__grid{gap:4px}[data-surface=player] .team-choice{min-width:0;padding:12px 14px}}@media (orientation:landscape) and (height<=500px){[data-surface=player] .screen{max-width:900px;padding-top:max(8px, env(safe-area-inset-top));padding-bottom:max(8px, env(safe-area-inset-bottom));gap:8px}[data-surface=player] .options-grid{grid-template-columns:repeat(2,minmax(0,1fr))}[data-surface=player] .option-card{min-height:56px}[data-surface=player] .km-option{min-height:40vh}[data-surface=player] .avatar--xl{width:4.5rem;height:4.5rem;font-size:2.4rem}[data-surface=player] .avatar-picker__grid{grid-template-columns:repeat(10,1fr);max-height:26vh}[data-surface=player] .qtype-banner__art{display:none}}
