:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:#f7f5ff;background:#0b0b17;font-synthesis:none;--bg:#0b0b17;--surface:#171528;--surface2:#222037;--border:#363249;--subtle:#afa9c6;--ink:#f8f6ff;--mint:#d4ff83;--purple:#a98aff;--pink:#ff89b6;--red:#ff7c8d;--green:#c4ff89}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 88% 1%,rgba(114,70,190,.2),transparent 36%),radial-gradient(ellipse at 2% 55%,rgba(91,45,119,.16),transparent 34%),var(--bg)}button,input,select,textarea{font:inherit}button{cursor:pointer;transition:transform .12s,filter .12s,border-color .15s}button:active{transform:scale(.97)}button:disabled{cursor:not-allowed;opacity:.4}a{color:var(--mint)}h1,h2,h3,p{margin-top:0}h1{font-weight:950;letter-spacing:-.065em;line-height:.98}h2{font-weight:850;letter-spacing:-.035em}h3{font-size:1.06rem}p{line-height:1.55}.muted{color:var(--subtle)}.tiny{font-size:.79rem}.small{font-size:.9rem}.text-center{text-align:center}.eyebrow{text-transform:uppercase;color:var(--purple);font-size:.74rem;letter-spacing:.19em;font-weight:900}.container{max-width:1240px;margin:0 auto;padding:0 24px}.nav{height:78px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #2f2a45;background:rgba(10,9,23,.78);backdrop-filter:blur(15px);position:sticky;top:0;z-index:10}.nav-inner{max-width:1240px;width:100%;padding:0 24px;margin:auto;display:flex;justify-content:space-between;align-items:center;gap:15px}.brand{display:flex;align-items:center;gap:11px;font-size:1.2rem;font-weight:1000;letter-spacing:-.055em;white-space:nowrap}.brand-icon{border-radius:13px;background:var(--mint);color:#181320;display:grid;place-items:center;font-weight:1000;font-size:23px;width:40px;height:40px;transform:rotate(-5deg)}.brand small{font-size:.61rem;font-weight:700;letter-spacing:.16em;color:var(--subtle);display:block}.nav-actions,.flex{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.nav-actions{justify-content:flex-end}.pill{border:1px solid #454058;background:#201e33;color:#dcd9ec;padding:7px 12px;border-radius:99px;font-size:.77rem;font-weight:850;letter-spacing:.05em}.pill.mint{background:#293624;border-color:#536c40;color:var(--mint)}.pill.pink{background:#40243e;border-color:#66405c;color:#ff99cb}.pill.red{background:#3d202d;border-color:#703644;color:#ff9eac}.pill.blue{background:#253c4d;border-color:#416779;color:#b0e6ff}.button{appearance:none;border:1px solid transparent;border-radius:14px;padding:13px 19px;font-weight:900;color:#10101c;background:var(--mint);display:inline-flex;align-items:center;justify-content:center;text-decoration:none;gap:9px;min-height:46px;font-size:.94rem}.button:hover{filter:brightness(1.1)}.button.secondary{color:var(--ink);background:#29263f;border-color:#423c60}.button.ghost{color:var(--subtle);background:transparent;border-color:#393448}.button.pink{color:#21101c;background:var(--pink)}.button.danger{color:white;background:#802a48;border-color:#a04765}.button.compact{padding:8px 12px;min-height:34px;font-size:.78rem;border-radius:10px}.button.lg{padding:15px 24px;font-size:1.02rem}.button.block{width:100%}.button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--mint);outline-offset:2px}.hero{min-height:calc(100vh - 79px);display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:5%;padding-top:40px;padding-bottom:60px}.hero h1{font-size:clamp(4.4rem,9vw,9rem);margin:.1em 0 .22em}.hero h1 .outline{color:var(--mint)}.hero-lead{font-size:1.17rem;color:#c4bfd5;max-width:540px;line-height:1.75}.hero .tagline{display:flex;gap:12px;flex-wrap:wrap;margin:23px 0}.hero .tagline span{padding:8px 12px;color:#e6e1f0;border:1px solid #423b59;border-radius:12px;background:#221c37;font-size:.82rem;font-weight:750}.hero-panel{max-width:520px;margin-left:auto}.card{background:linear-gradient(145deg,rgba(36,31,61,.98),rgba(20,18,39,.98));border:1px solid #3a3455;border-radius:24px;padding:25px;box-shadow:0 16px 52px rgba(0,0,0,.2)}.card.plain{background:var(--surface)}.card.highlight{border-color:#6c6381;background:linear-gradient(145deg,#312849,#191629)}.card + .card{margin-top:16px}.card-title{display:flex;align-items:center;gap:10px;justify-content:space-between;margin-bottom:16px}.field{display:flex;flex-direction:column;gap:8px;margin:13px 0}.field label{font-size:.8rem;font-weight:850;color:#d1cde0}.field input,.field select,.field textarea,input.input,textarea.input{padding:12px 14px;min-height:45px;width:100%;border-radius:11px;border:1px solid #48415f;background:#0f0e1d;color:#f5f2ff;outline:none}.field textarea{resize:vertical;min-height:74px}.field input::placeholder,.field textarea::placeholder{color:#706a84}.field select{color-scheme:dark}.field .help{font-size:.76rem;color:var(--subtle)}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.home-art{height:130px;position:relative;margin:3px 0 27px;display:flex;align-items:center;justify-content:center}.mini-card{width:95px;height:123px;border-radius:14px;position:absolute;border:2px solid #cec1ff;background:linear-gradient(140deg,#6a4bc5,#34255d);transform:rotate(-15deg) translateX(-65px);box-shadow:0 15px 20px #0005;display:grid;place-items:center;font-size:3rem}.mini-card:nth-child(2){transform:rotate(11deg) translate(70px,-7px);background:linear-gradient(145deg,#ff8abe,#83396e);border-color:#ffc6e0}.mini-card:nth-child(3){transform:rotate(-1deg) translateY(-13px);background:linear-gradient(145deg,#d5ff8d,#94c04b);border-color:#e3ffab;color:#16131d;font-size:2.4rem}.main{padding-top:28px;padding-bottom:50px}.page-intro{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:23px}.page-intro h1{font-size:clamp(2.1rem,5vw,3.6rem);margin:5px 0}.layout{display:grid;grid-template-columns:minmax(260px,315px) minmax(0,1fr);gap:20px;align-items:start}.sidebar{display:flex;flex-direction:column;gap:16px}.stage{min-height:470px}.section-label{font-size:.72rem;color:var(--subtle);text-transform:uppercase;letter-spacing:.16em;font-weight:850;margin:0 0 12px}.score-list{display:flex;flex-direction:column;gap:7px}.score-row{padding:11px 12px;border-radius:12px;background:#1f1c33;border:1px solid transparent;display:flex;align-items:center;gap:9px}.score-row.active{border-color:var(--mint);background:#263124}.score-row.me{background:#302647}.score-row.active.me{background:#293a2d}.rank{min-width:18px;color:#9590ab;font-size:.81rem;font-weight:800}.score-row .name{flex:1;font-size:.9rem;font-weight:800;word-break:break-word}.score-row .value{font-size:1.28rem;font-weight:950;min-width:35px;text-align:right;font-variant-numeric:tabular-nums}.score-row .value.negative{color:#ff99a8}.progress{height:5px;background:#3c3850;margin:10px 0 0;border-radius:5px;overflow:hidden}.progress>span{height:100%;display:block;background:var(--mint)}.avatar{height:32px;width:32px;flex:0 0 32px;display:grid;place-items:center;border-radius:11px;background:#43335e;color:#edddff;font-size:.81rem;font-weight:950}.phase-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:#c9c4df;font-size:.84rem;font-weight:750}.big-title{font-size:clamp(2.3rem,5vw,4.5rem);line-height:1.1;margin:18px 0}.stage-center{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;text-align:center}.dice{font-size:5.5rem;filter:drop-shadow(0 12px 16px #0006);animation:float 3s ease-in-out infinite}@keyframes float{50%{transform:translateY(-9px) rotate(7deg)}}.theme-box{border-radius:22px;padding:28px 25px;background:radial-gradient(circle at 10% 0%,#493d6a,#201b38 64%);border:1px solid #645779;margin:22px 0}.theme-box .eyebrow{color:#c6b3ff}.theme-box h2{font-size:clamp(2.2rem,5.2vw,4.4rem);margin:13px 0;letter-spacing:-.05em}.levels{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.level{background:#1f2032;border:1px solid #464259;border-radius:18px;padding:18px 10px;color:white;text-align:center;min-height:140px}.level:nth-child(1){border-color:#51784c}.level:nth-child(2){border-color:#a57d48}.level:nth-child(3){border-color:#ad5364}.level strong{font-size:2.5rem;display:block}.level span{display:block;font-size:.76rem;color:var(--subtle);font-weight:750}.level:hover{border-width:2px;transform:translateY(-2px)}.level .win{color:#c7ff94;font-weight:900}.level .lose{color:#ffa4ae}.question{padding:26px;background:#121429;border:1px solid #4a4269;border-radius:18px;font-weight:800;font-size:clamp(1.35rem,2.8vw,2rem);line-height:1.45;margin:22px 0}.answer{border:1px solid #59774a;border-radius:14px;padding:18px;background:#24351f;margin-bottom:18px;color:#ddffbc}.warning{padding:13px 15px;border:1px solid #92516a;background:#392337;border-radius:12px;color:#ffd2e0;font-size:.86rem}.success{padding:15px 17px;border-radius:13px;background:#263d28;border:1px solid #466d48;color:#d2ffbf}.info-box{padding:15px 17px;border-radius:13px;background:#27233e;border:1px solid #544e70;color:#dfd9f7}.stack{display:flex;flex-direction:column;gap:10px}.list-select{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px}.chip-select{background:#27243b;border:1px solid #46405c;color:#f6f2ff;border-radius:13px;padding:13px 12px;font-weight:900}.chip-select:hover{border-color:var(--mint)}.rule{border-top:1px solid #38324d;margin:20px 0}.divider-line{height:1px;background:#37314d;margin:24px 0}.feed{display:flex;flex-direction:column;gap:11px}.feed-item{border-left:2px solid #4e426e;padding-left:12px;color:#b8b2ca;font-size:.79rem;line-height:1.4}.feed-item.positive{border-color:#92c77d}.feed-item.negative{border-color:#c65c79}.feed-item.win{border-color:var(--mint)}.inventory{display:flex;flex-direction:column;gap:8px}.inventory-item{border:1px solid #534668;padding:10px;border-radius:12px;background:#251f38}.inventory-item strong{font-size:.82rem}.inventory-item p{font-size:.77rem;margin:4px 0 0;color:var(--subtle)}.loot-list{max-height:320px;overflow:auto}.loot-item{border:1px solid #3b3653;padding:10px 12px;border-radius:10px;font-size:.83rem;background:#1e1b31;margin:7px 0}.loot-item small{display:block;color:var(--subtle);margin-top:3px}.admin-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.tabs{display:flex;gap:8px;overflow:auto;padding-bottom:4px;margin-bottom:20px}.tab{background:#211e34;color:#bcb4d4;border:1px solid #413956;border-radius:11px;padding:11px 15px;font-weight:850;white-space:nowrap}.tab.active{background:#d4ff83;border-color:#d4ff83;color:#111321}.admin-layout{display:grid;grid-template-columns:1fr 1.15fr;gap:19px}.admin-list{display:flex;flex-direction:column;gap:8px;max-height:660px;overflow-y:auto;padding-right:5px}.admin-list-item{border:1px solid #3a3550;background:#1e1a30;border-radius:13px;padding:12px}.admin-list-item .row{display:flex;justify-content:space-between;align-items:center;gap:9px}.admin-list-item p{margin:5px 0;font-size:.79rem;color:var(--subtle)}.stat-row{display:grid;grid-template-columns:110px 1fr 30px;gap:9px;align-items:center;margin:11px 0;font-size:.82rem}.stat-bar{height:9px;background:#34304a;border-radius:20px;overflow:hidden}.stat-bar i{display:block;height:100%;background:var(--purple);border-radius:20px}.switchline{display:flex;gap:10px;align-items:center;font-size:.9rem;color:#d1cbe3;margin:10px 0}.switchline input{accent-color:#caff82;width:18px;height:18px}.top-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:20px}.metric{background:#242038;border:1px solid #3d3653;border-radius:15px;padding:15px}.metric strong{display:block;font-size:1.85rem;letter-spacing:-.03em}.metric small{color:var(--subtle)}.footer{text-align:center;color:#807995;padding:22px;font-size:.74rem}.floating-vote{border:1px solid #7962a7;background:#2a2348;border-radius:16px;padding:15px;margin:16px 0}.floating-vote h3{margin:5px 0 10px}.winner{font-size:clamp(2.6rem,6vw,5.8rem);color:var(--mint);font-weight:950;letter-spacing:-.06em}.celebrate{font-size:5rem;margin:5px 0 18px}.seat{display:flex;align-items:center;gap:10px;background:#1d1b2e;padding:12px 13px;border:1px solid #3d3854;border-radius:12px}.seat .grow{flex:1;font-weight:850}.seat .muted{font-size:.8rem}.horizontal{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.actions-end{display:flex;gap:10px;justify-content:flex-end;margin-top:17px;flex-wrap:wrap}.count-bubble{border-radius:99px;background:#3b3053;padding:2px 8px;font-size:.75rem;color:#c6b3ef}.show-mobile{display:none}#toast{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);color:white;background:#45345f;border:1px solid #9477b4;border-radius:12px;padding:12px 18px;max-width:min(92vw,600px);text-align:center;z-index:100;box-shadow:0 12px 34px #0008;display:none;font-size:.9rem}#toast.error{background:#58243b;border-color:#bf667d}#toast.show{display:block}
@media(max-width:880px){.hero{grid-template-columns:1fr;min-height:auto;padding-top:45px}.hero-panel{margin:0;max-width:620px}.layout{grid-template-columns:1fr}.sidebar{order:2}.stage{order:1;min-height:auto}.admin-layout{grid-template-columns:1fr}.nav-actions .hide-mobile{display:none}.show-mobile{display:initial}}
@media(max-width:540px){.container{padding:0 14px}.nav,.nav-inner{height:69px}.nav-inner{padding:0 14px}.brand{font-size:1.1rem}.brand-icon{height:35px;width:35px}.brand small{display:none}.nav-actions{gap:5px}.nav-actions .button{padding:8px 9px;font-size:.71rem;min-height:35px}.pill{font-size:.69rem;padding:6px 8px}.page-intro{display:block}.page-intro h1{font-size:2.7rem}.hero h1{font-size:5.5rem}.hero-lead{font-size:1rem}.card{border-radius:20px;padding:18px}.big-title{font-size:2.7rem}.grid2{grid-template-columns:1fr}.grid3{grid-template-columns:1fr 1fr}.levels{gap:6px}.level{padding:14px 4px;min-height:126px}.level strong{font-size:2rem}.level span{font-size:.69rem}.theme-box{padding:21px}.theme-box h2{font-size:2.4rem}.question{padding:20px 17px}.top-grid{grid-template-columns:repeat(3,1fr);gap:7px}.metric{padding:10px}.metric strong{font-size:1.4rem}.metric small{font-size:.66rem}.seat{flex-wrap:wrap}.actions-end .button{flex:1}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

.game-menu{position:relative;display:flex;justify-content:flex-end;z-index:9}.menu-panel{position:absolute;top:calc(100% + 8px);right:0;width:min(390px,calc(100vw - 28px));max-height:75vh;overflow:auto;box-shadow:0 14px 45px #0008}.menu-panel .stack{gap:9px}.menu-panel select{min-width:130px;flex:1}
.game-main{max-width:1440px}.party-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.party-shortcuts{display:flex;gap:9px;align-items:center;min-width:0}.party-panel{position:relative}.party-panel>summary{list-style:none;cursor:pointer;min-height:38px;padding:8px 13px;border:1px solid #423c60;border-radius:10px;background:#29263f;color:var(--ink);font-size:.78rem;font-weight:900;display:flex;align-items:center;gap:7px;white-space:nowrap}.party-panel>summary::-webkit-details-marker{display:none}.party-panel>summary span{min-width:20px;padding:2px 6px;border-radius:99px;background:#463b61;text-align:center;color:var(--mint)}.party-panel[open]>summary{border-color:#76689e;background:#332e4c}.party-panel-body{position:absolute;top:calc(100% + 8px);left:0;width:min(390px,calc(100vw - 28px));z-index:12}.party-panel-body>.card{box-shadow:0 18px 48px #000b}.game-stage>.stage{min-height:calc(100svh - 175px);padding:clamp(24px,4vw,48px)}
.game-main.playing{height:calc(100svh - 78px);padding-top:28px;padding-bottom:18px;display:flex;flex-direction:column;overflow:hidden}.game-main.playing+.footer{display:none}.game-main.playing .game-stage{display:flex;flex:1;min-height:0}.game-main.playing .game-stage>.stage{width:100%;height:100%;min-height:0;overflow:hidden}
@media(min-width:881px){.game-stage>.stage:not(.stage-lobby){display:grid;align-items:center}.stage-content{width:100%}.stage-theme .stage-content,.stage-question .stage-content,.stage-resolved .stage-content{transform:translateY(-30px)}.stage-roll .stage-center{min-height:0}.stage-roll .draw-idle{width:198px;height:258px;margin:0 0 50px;border-radius:26px}.stage-roll .draw-idle span{font-size:6.55rem}.stage-roll .button{font-size:1.16rem;min-height:62px;padding:18px 29px}.stage-theme .stage-content,.stage-duo_offer .stage-content,.stage-question .stage-content,.stage-mirror .stage-content,.stage-zaza .stage-content,.stage-resolved .stage-content,.stage-replacement_pick .stage-content,.stage-deck_empty .stage-content{max-width:1240px;margin:auto}.stage-theme .question-theme,.stage-duo_offer .question-theme{font-size:clamp(3rem,4.5vw,4.5rem);margin:32px 0 38px}.stage-theme .effect-draw,.stage-duo_offer .effect-draw{font-size:1.05rem}.stage-theme .levels{gap:18px}.stage-theme .level{min-height:145px;border-radius:22px}.stage-theme .level strong{font-size:3.2rem}.stage-theme .level span{font-size:.9rem}.stage-question .question,.stage-mirror .question,.stage-zaza .question,.stage-resolved .question{font-size:clamp(1.8rem,2.6vw,2.5rem);padding:34px 30px;margin:28px 0}.stage-question .answer,.stage-mirror .answer,.stage-zaza .answer{padding:22px;font-size:1.05rem;margin-bottom:22px}.stage-question .grid2 .button,.stage-mirror .grid2 .button,.stage-zaza .grid2 .button{min-height:60px;font-size:1.05rem}.stage-draw .surprise-draw{padding:0}.stage-draw .draw-scene{transform:scale(1.08);margin-bottom:18px}}
@media(min-width:881px){.stage-theme .stage-content{height:100%;transform:none;display:grid;grid-template-rows:auto 1fr}.stage-theme .theme-heading{align-self:start}.stage-theme .question-theme{margin-bottom:0}.stage-theme .levels{align-self:center;justify-self:center;width:min(820px,100%);grid-template-columns:repeat(3,1fr);gap:24px;margin-top:18px}.stage-theme .level{width:100%;min-height:0;aspect-ratio:1;border-radius:24px;display:flex;flex-direction:column;align-items:center;justify-content:center}}
@media(min-width:881px){.stage-question .stage-content{height:100%;transform:none;display:grid;grid-template-rows:auto auto 1fr}.stage-question .question-heading{align-self:start}.stage-question .question-main{justify-self:center;width:min(1080px,100%);margin:24px 0 0;text-align:center}.stage-question .question-verdict{align-self:center;justify-self:center;width:min(550px,100%)}.stage-question .question-verdict .grid2{gap:24px}.stage-question .question-verdict .button{width:100%;min-height:0;aspect-ratio:1;border-radius:24px;font-size:1.18rem}}

/* Interface de partie : une carte et les scores, outils repliés. */
.fold{border:1px solid var(--border);border-radius:14px;background:var(--surface);padding:14px 16px;margin-top:14px}
.fold summary,.answer summary{cursor:pointer;font-weight:750;list-style-position:inside}
.fold[open]>summary{margin-bottom:16px}.fold .card{border:0;padding:0;box-shadow:none;background:none}.sidebar .fold{margin-top:0}
.answer p{margin:14px 0 0}.lobby-code{margin-bottom:24px}.lobby-code h2{font-size:clamp(2rem,6vw,3.5rem);letter-spacing:.12em;margin:10px 0 18px}
.question-theme{font-size:clamp(1.7rem,4vw,3rem);line-height:1.15;overflow-wrap:anywhere;margin:26px 0}
.theme-heading .question-theme{position:relative;width:fit-content;max-width:100%;margin-left:auto;margin-right:auto;text-align:center;text-wrap:balance}.theme-heading .question-theme::after{content:'';position:absolute;left:50%;bottom:-13px;width:min(180px,44%);height:4px;border-radius:99px;background:linear-gradient(90deg,var(--purple),var(--mint),var(--pink));transform:translateX(-50%);box-shadow:0 0 18px #caff8270}.theme-heading .question-theme.theme-appear{animation:theme-title-in .8s cubic-bezier(.2,.8,.2,1) both}.theme-heading .question-theme.theme-appear::after{animation:theme-line-in .75s .3s cubic-bezier(.2,.8,.2,1) both}@keyframes theme-title-in{0%{opacity:0;filter:blur(12px);transform:translateY(18px) scale(.96);letter-spacing:.025em}65%{opacity:1;filter:blur(0);transform:translateY(-2px) scale(1.015)}100%{opacity:1;filter:blur(0);transform:none;letter-spacing:normal}}@keyframes theme-line-in{0%{opacity:0;transform:translateX(-50%) scaleX(0)}100%{opacity:1;transform:translateX(-50%) scaleX(1)}}
.effect-draw{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.effect-draw p{flex-basis:100%;margin:0;color:var(--subtle)}
.turn-score{font-size:2rem;font-weight:850;text-align:center}.zaza-title{font-size:3rem;color:var(--pink)}
.stage{min-height:330px}.stage-center{min-height:300px}.levels .level{min-height:110px}.sidebar>.card+.fold{margin-top:0}
@media(max-width:540px){.stage{padding:20px 16px}.page-intro h1{font-size:2rem}.actions-end{flex-wrap:wrap}.lobby-code h2{letter-spacing:.08em}}
@media(max-width:540px){.game-main{padding-left:10px;padding-right:10px}.party-toolbar{position:relative;align-items:stretch;gap:7px;margin-bottom:10px}.party-shortcuts{gap:6px;flex:1}.party-panel{position:static}.party-panel>summary{padding:7px 9px;font-size:.7rem}.party-panel-body{top:48px;left:0;width:100%}.game-menu>.button{min-height:38px;padding:7px 9px;font-size:0}.game-menu>.button::before{content:'⚙️';font-size:1rem}.game-menu .menu-panel .button{font-size:.78rem}.game-menu .menu-panel .button::before{content:none}.game-stage>.stage{min-height:calc(100svh - 128px);padding:20px 14px;border-radius:18px}.game-stage .stage-center{min-height:calc(100svh - 190px)}.stage-theme .stage-content{min-height:calc(100svh - 168px);display:grid;grid-template-rows:auto 1fr}.stage-theme .theme-heading{align-self:start;width:100%}.stage-theme .question-theme{width:100%;font-size:clamp(1.8rem,9vw,2.35rem);margin:22px 0 0;text-align:center;line-height:1.05}.stage-theme .effect-draw{gap:8px}.stage-theme .levels{align-self:center;justify-self:center;width:min(310px,100%);grid-template-columns:repeat(2,minmax(0,145px));justify-content:center;gap:12px}.stage-theme .level{width:100%;min-height:0;aspect-ratio:1;border-radius:20px;display:flex;flex-direction:column;align-items:center;justify-content:center}.stage-theme .level:nth-child(3){grid-column:1/-1;justify-self:center;width:min(145px,100%)}.stage-theme .level strong{font-size:2.6rem}.stage-theme .level span{font-size:.78rem}}
@media(max-width:540px){.game-main.playing{height:calc(100svh - 69px);padding-top:10px;padding-bottom:10px}.game-main.playing .stage-theme .stage-content{height:100%;min-height:0}.game-main.playing .game-stage>.stage{padding:18px 14px}}
@media(max-width:540px){.stage-question .stage-content{height:100%;display:grid;grid-template-rows:auto auto 1fr}.stage-question .question-heading{align-self:start}.stage-question .question-main{align-self:start;width:100%;margin:20px 0 0;padding:22px 16px;text-align:center;font-size:clamp(1.35rem,6.7vw,1.8rem)}.stage-question .question-verdict{align-self:center;justify-self:center;width:min(302px,100%)}.stage-question .question-verdict .grid2{grid-template-columns:repeat(2,minmax(0,145px));gap:12px}.stage-question .question-verdict .button{width:100%;min-height:0;aspect-ratio:1;border-radius:20px;font-size:1rem;padding:10px}}
.question-verdict .button{position:relative;isolation:isolate;overflow:hidden;border-width:2px;font-family:Impact,"Arial Black",Inter,sans-serif;font-size:clamp(2.25rem,4vw,3.35rem)!important;font-weight:1000;letter-spacing:.055em;text-transform:uppercase;transition:transform .18s ease,filter .18s ease,box-shadow .18s ease}.question-verdict .button:hover{transform:translateY(-4px);filter:brightness(1.08)}.question-verdict .button:first-child{color:#15240d;background:linear-gradient(145deg,#e0ff95 0%,#c5ff69 52%,#93db55 100%);border-color:#eaffbd;box-shadow:inset 0 1px 0 #fff9,0 14px 34px #a9ee5840}.question-verdict .button:last-child{color:#fff4f7;background:linear-gradient(145deg,#d84b72 0%,#a52b52 55%,#731e3c 100%);border-color:#ef6b8f;box-shadow:inset 0 1px 0 #ffb1c580,0 14px 34px #d63d6840}.question-verdict .button::after{position:absolute;right:10%;bottom:2%;z-index:-1;font-family:Arial,sans-serif;font-size:clamp(6rem,11vw,9rem);font-weight:1000;line-height:1;opacity:.11;transform:rotate(-8deg)}.question-verdict .button:first-child::after{content:'✓';color:#18310b}.question-verdict .button:last-child::after{content:'×';color:#fff}.question-verdict .button:focus-visible{outline:3px solid #fff;outline-offset:4px}
@media(max-width:540px){.question-verdict .button{font-size:clamp(1.75rem,8vw,2.35rem)!important;letter-spacing:.035em}.question-verdict .button::after{right:7%;font-size:5.7rem}}
.theme-announcement,.oral-wait{align-self:center;justify-self:center;text-align:center}.theme-announcement{display:flex;flex-direction:column;align-items:center;gap:14px}.theme-announcement p{margin:0;font-size:clamp(1.45rem,3vw,2.5rem);font-weight:850;text-wrap:balance}.theme-announcement strong{color:var(--mint)}.announcement-icon{width:82px;height:82px;border:2px solid #9d82e2;border-radius:28px;display:grid;place-items:center;font-size:3.2rem;color:var(--mint);background:linear-gradient(145deg,#352c52,#1c192e);box-shadow:0 0 35px #a98aff35;animation:announce-pulse 1.8s ease-in-out infinite}.oral-wait{grid-row:2/4;display:flex;flex-direction:column;align-items:center;gap:28px}.oral-wait h2{max-width:760px;margin:0;font-size:clamp(1.8rem,4vw,3.25rem);text-wrap:balance}.oral-clock{--clock:360deg;position:relative;width:190px;height:190px;border-radius:50%;display:grid;place-items:center;align-content:center;gap:3px;background:radial-gradient(circle at center,#201d36 57%,transparent 58%),conic-gradient(var(--mint) var(--clock),#433d59 0);box-shadow:0 0 45px #caff8225}.oral-clock::after{content:'';position:absolute;inset:10px;border:1px solid #ffffff18;border-radius:50%}.oral-clock .hourglass{font-size:2.4rem;line-height:1;animation:hourglass-flip 2s ease-in-out infinite}.oral-clock strong{font-size:3.4rem;line-height:1;font-variant-numeric:tabular-nums}.oral-clock span{color:var(--subtle);font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.reader-zone{align-self:center;display:grid;grid-template-columns:minmax(260px,1fr) minmax(320px,550px);align-items:center;gap:28px}.reader-answer{padding:24px;border-radius:22px;border:1px solid #657d51;background:linear-gradient(145deg,#263b25,#17271a);box-shadow:0 14px 35px #0004}.reader-answer span{display:block;color:var(--mint);font-size:.72rem;font-weight:900;letter-spacing:.16em;text-transform:uppercase;margin-bottom:12px}.reader-answer strong{font-size:clamp(1.25rem,2.2vw,2rem);line-height:1.4}.reader-zone .oral-clock{justify-self:center;width:165px;height:165px}.reader-zone .oral-clock strong{font-size:2.8rem}.turn-result{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;margin:0 auto 28px;padding:24px;border-radius:24px;width:min(620px,100%)}.turn-result span{font-size:clamp(1.5rem,3vw,2.6rem);font-weight:950}.turn-result strong{font-size:clamp(2.8rem,6vw,5rem);line-height:1}.turn-result.correct{color:#d9ff9e;background:#23391f;border:1px solid #6c9851;box-shadow:0 0 45px #a9ef5728}.turn-result.wrong{color:#ffb2c1;background:#3c1e2b;border:1px solid #984763;box-shadow:0 0 45px #e64d7625}@keyframes hourglass-flip{0%,38%{transform:rotate(0)}62%,100%{transform:rotate(180deg)}}@keyframes announce-pulse{50%{transform:scale(1.06);box-shadow:0 0 50px #caff8245}}
@media(max-width:540px){.theme-announcement p{font-size:1.5rem}.announcement-icon{width:68px;height:68px;border-radius:22px;font-size:2.7rem}.oral-wait{gap:24px}.oral-wait h2{font-size:clamp(1.65rem,8vw,2.25rem)}.oral-clock{width:165px;height:165px}.oral-clock strong{font-size:3rem}.reader-zone{align-self:center;grid-template-columns:1fr;gap:14px;width:100%}.reader-answer{padding:18px;border-radius:18px}.reader-answer strong{font-size:1.2rem}.reader-zone .oral-clock{width:125px;height:125px}.reader-zone .oral-clock .hourglass{font-size:1.7rem}.reader-zone .oral-clock strong{font-size:2rem}.reader-zone .question-verdict{width:min(302px,100%)}.turn-result{padding:18px;margin-bottom:18px}}

.nav .brand{color:var(--ink);text-decoration:none}
/* Tirage bonus / malus */
.draw-idle{position:relative;display:grid;place-items:center;width:150px;height:195px;margin:25px 0 40px;border:2px solid #b5a1e4;border-radius:20px;background:linear-gradient(135deg,#344435,#322647 48%,#593044);box-shadow:7px 7px 0 #241e39,11px 11px 0 #625378;transform:rotate(-7deg)}
.draw-idle::before{content:'';position:absolute;inset:12px;border:1px solid #ffffff35;border-radius:12px}.draw-idle span{font-size:5rem;font-weight:950;color:#f4edff}
.surprise-draw{--draw-color:#d4ff83;--draw-ink:#18311e;display:flex;flex-direction:column;align-items:center;padding:16px 0 6px}
.surprise-draw.draw-malus{--draw-color:#ff8197;--draw-ink:#441522}
.draw-scene{position:relative;width:min(240px,100%);height:340px;perspective:1000px;display:grid;place-items:center}
.draw-pile{position:absolute;width:86%;height:282px;top:38px;border-radius:22px;background:#2f2843;border:2px solid #6b5d89;transform:rotate(-6deg);box-shadow:7px 6px 0 #191626,10px 9px 0 #514365}
.draw-moving{position:relative;width:100%;height:300px;transform-style:preserve-3d;transform:translateY(-14px) rotateY(180deg)}
.draw-face{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;border-radius:22px;display:flex;align-items:center;flex-direction:column;padding:22px 18px;border:2px solid #c4b0f0;box-shadow:0 18px 36px #0005;text-align:center;overflow:auto}
.draw-back{justify-content:space-between;background:linear-gradient(135deg,#324c3a,#2e2544 48%,#603245);color:#f9f3ff}.draw-back::after{content:'';position:absolute;inset:10px;border:1px solid #ffffff28;border-radius:14px;pointer-events:none}.draw-back span{font-size:.65rem;font-weight:800;letter-spacing:.16em}.draw-back strong{font-size:6rem;line-height:1}
.draw-front{transform:rotateY(180deg);background:var(--draw-color);color:var(--draw-ink);border-color:var(--draw-color);justify-content:flex-start;gap:18px;padding-top:30px}.draw-front h2{font-size:1.4rem;line-height:1.12;margin:0;font-weight:950;overflow-wrap:anywhere}.draw-front p{font-size:1rem;line-height:1.5;margin:0;overflow-wrap:anywhere}
.draw-actions{min-height:50px;display:grid;place-items:center;margin-top:8px}.draw-actions .button{min-width:170px}

/* Effets pilotés en JavaScript avec la Web Animations API. */
.draw-scene{isolation:isolate}.draw-moving{z-index:3}.draw-pile{z-index:2}
.is-drawing .draw-moving{transform:translateY(28px) rotate(-7deg) rotateY(0deg) scale(.92)}
.draw-aura{position:absolute;inset:55px 25px;border-radius:40px;opacity:0;z-index:0;pointer-events:none}
.draw-burst{position:absolute;width:220px;height:220px;top:56px;border:2px solid var(--draw-color);border-radius:50%;opacity:0;z-index:1;pointer-events:none}
.draw-sparks{position:absolute;inset:0;z-index:4;pointer-events:none}
.draw-spark{position:absolute;left:calc(50% - 3px);top:calc(50% - 3px);width:6px;height:6px;background:var(--draw-color);box-shadow:0 0 9px var(--draw-color);opacity:0;border-radius:2px}
.draw-spark:nth-child(3n){background:#fff6de;border-radius:50%;width:4px;height:4px}
.draw-spark:nth-child(4n){width:4px;height:10px}
.theme-subtitle{color:#d9d4e8;font-size:clamp(.95rem,1.8vw,1.15rem);font-weight:700;letter-spacing:.01em}
.reader-controls{display:flex;flex-direction:column;align-items:center;gap:18px}.reader-controls .button{width:min(270px,100%)}
@media(min-width:881px){.stage-theme .theme-heading{align-self:center;transform:translateY(12px)}.stage-theme .theme-heading .question-theme::after{bottom:-22px}.question-verdict .button{font-size:clamp(1rem,2.2vw,2rem)!important;padding:14px 10px;overflow-wrap:anywhere;white-space:normal}}
@media(max-width:880px){.question-verdict .button{font-size:clamp(1.05rem,4.5vw,1.45rem)!important;padding:12px 8px;white-space:normal;overflow-wrap:anywhere}.reader-controls .button{font-size:.92rem}}
.resolved-layout{display:grid;gap:16px;max-width:980px;margin:0 auto}.resolved-fact{padding:18px 22px;border:1px solid #4a4269;border-radius:18px;background:#121429}.resolved-fact span{display:block;margin-bottom:7px;color:#a98aff;font-size:.72rem;font-weight:950;letter-spacing:.15em;text-transform:uppercase}.resolved-fact strong{display:block;font-size:clamp(1.15rem,2.2vw,1.75rem);line-height:1.35}.resolved-fact.answer{background:#24351f;border-color:#59774a}.resolved-fact.answer span{color:var(--mint)}.turn-result small{font-size:.86rem;color:inherit;opacity:.78;font-weight:700}.next-countdown{font-weight:750}
@media(min-width:881px){.stage-theme .theme-heading{transform:translateY(74px)}.stage-question .question-verdict{width:min(470px,100%)}.stage-question .question-verdict .grid2{gap:18px}.stage-question .question-verdict .button{font-size:clamp(.95rem,1.8vw,1.7rem)!important}}
@media(min-width:881px){.stage-theme .theme-heading{transform:none}.stage-theme .theme-heading .effect-draw{transform:translateY(74px)}.stage-theme .theme-heading .question-theme{transform:translateY(134px)}.stage-theme .theme-heading .question-theme::after{bottom:-22px}}
@media(max-width:880px){.stage-question .question-verdict{width:min(270px,100%)}.stage-question .question-verdict .grid2{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stage-question .question-verdict .button{font-size:clamp(.9rem,4vw,1.25rem)!important;padding:10px 6px}.resolved-fact{padding:15px 16px}.resolved-fact strong{font-size:1.1rem}}
.resolved-layout{display:flex;flex-direction:column;align-items:center;gap:16px}.resolved-layout .resolved-fact{width:min(980px,100%);order:1}.resolved-layout .resolved-fact.answer{order:2}.resolved-layout .turn-result{order:3;width:min(430px,100%);padding:13px 18px;margin:4px auto 0;gap:3px}.resolved-layout .turn-result span{font-size:clamp(1.05rem,2.2vw,1.65rem)}.resolved-layout .turn-result strong{font-size:clamp(2rem,4vw,3.2rem)}.resolved-layout .turn-result small{font-size:.72rem}.resolved-layout+.next-countdown{margin-top:10px}
@media(min-width:881px){.stage-theme .theme-heading .effect-draw{transform:translateY(0)}.stage-theme .theme-heading .question-theme{transform:translateY(124px)}}
.resolved-layout .resolved-fact{text-align:center}
.stage-resolved .stage-content{display:flex;flex-direction:column;min-height:100%}.stage-resolved .resolved-layout{margin-top:auto}.stage-resolved .next-countdown{margin-top:18px!important;padding-bottom:4px}
.stage-resolved .resolved-layout .resolved-fact{transform:translateY(-20px)}.stage-resolved .resolved-layout .turn-result{transform:translateY(-8px)}.stage-resolved .turn-result small{font-size:clamp(1rem,1.7vw,1.35rem);line-height:1.3}
.stage-resolved .resolved-layout .resolved-fact{transform:translateY(-50px)}
.stage-resolved .stage-content{justify-content:center;padding-block:clamp(12px,3.5vh,36px)}.stage-resolved .resolved-layout{margin:0}.stage-resolved .resolved-layout .resolved-fact,.stage-resolved .resolved-layout .turn-result{transform:none}.stage-resolved .next-countdown{margin-top:clamp(14px,2.5vh,24px)!important;padding-bottom:0}
.stage-resolved .stage-content{width:100%;align-items:center}.stage-resolved .resolved-layout{width:min(100%,980px)}.stage-resolved .resolved-layout .resolved-fact{width:100%}.stage-resolved .next-countdown{width:100%}
@media(min-width:881px){.stage-theme .levels{width:min(780px,100%);gap:20px}}
@media(max-width:540px){.stage-theme .levels{width:min(294px,100%);gap:10px;grid-template-columns:repeat(2,minmax(0,138px))}.stage-theme .level:nth-child(3){width:min(138px,100%)}}
.draw-actions:empty{display:none}
.party-toolbar-left{display:flex;align-items:center;gap:12px;min-width:0;flex:1}.turn-badge{display:flex;align-items:center;gap:9px;min-width:0;padding:8px 12px;border:1px solid #494064;border-radius:14px;background:linear-gradient(135deg,#292441,#1b192d);box-shadow:0 8px 22px #0002}.turn-badge.is-me{border-color:#769654;background:linear-gradient(135deg,#2b3d27,#1d2a20);box-shadow:0 0 24px #caff8222}.turn-badge-icon{width:25px;height:25px;display:grid;place-items:center;border-radius:9px;color:#b8a0ff;background:#3c315b;font-size:.85rem}.turn-badge.is-me .turn-badge-icon{color:#18210f;background:var(--mint);animation:turn-badge-pulse 1.7s ease-in-out infinite}.turn-badge-copy{display:flex;align-items:baseline;gap:7px;min-width:0;flex-wrap:wrap}.turn-badge-copy small{color:var(--subtle);font-size:.65rem;font-weight:850;text-transform:uppercase;letter-spacing:.12em}.turn-badge-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.9rem}.turn-badge-copy em{color:var(--mint);font-size:.78rem;font-style:normal;font-weight:900;white-space:nowrap}.party-toolbar-left .party-shortcuts{flex-shrink:0}.party-panel>summary::after{content:'⌄';margin-left:auto;color:#aaa1c4;font-size:.75rem;font-weight:900;line-height:1}.party-panel[open]>summary::after{content:'⌃'}.panel-summary-icon{display:inline-flex;line-height:1}.panel-summary-count{min-width:20px;padding:2px 6px;border-radius:99px;background:#463b61;text-align:center;color:var(--mint)}
@keyframes turn-badge-pulse{50%{transform:scale(1.08);box-shadow:0 0 15px #caff8266}}
@media(max-width:540px){.party-toolbar{flex-wrap:wrap}.party-toolbar-left{width:100%;justify-content:flex-start;gap:7px}.turn-badge{padding:6px 8px;border-radius:11px;max-width:calc(100% - 112px)}.turn-badge-copy{gap:3px}.turn-badge-copy small{font-size:.54rem}.turn-badge-copy strong{font-size:.74rem}.turn-badge-copy em{font-size:.66rem}.turn-badge-icon{width:21px;height:21px}.party-toolbar-left .party-shortcuts{gap:5px;flex:0 0 auto}.party-panel>summary{padding:8px 9px;min-width:40px;justify-content:center}.party-panel>summary::after{font-size:.68rem;margin-left:5px}.party-panel .panel-summary-label{display:none}.panel-summary-count{font-size:.63rem;min-width:17px;padding:2px 4px}}
.party-panel>summary{min-width:46px;justify-content:center;padding-inline:10px}.party-panel .panel-summary-label,.party-panel .panel-summary-count{display:none}.game-menu>.button{width:50px;min-width:50px;padding-inline:0;font-size:0;gap:3px}.game-menu>.button::before{content:'⚙️';font-size:1rem}.game-menu>.button::after{content:'⌄';font-size:.7rem;font-weight:900;line-height:1;color:#aaa1c4}.game-menu>.button[aria-expanded="true"]::after{content:'⌃'}.game-menu>.button span{display:none}
.party-panel>summary,.game-menu>.button{background:transparent;border-color:transparent;box-shadow:none}.party-panel>summary:hover,.party-panel[open]>summary,.game-menu>.button:hover{background:#29263f;border-color:#423c60}.game-menu>.button{min-height:38px}
.party-panel>summary,.game-menu>.button{background:#29263f;border-color:#423c60}.party-panel>summary .panel-summary-icon{min-width:0;padding:0;border-radius:0;background:transparent;color:inherit}.party-panel>summary:hover,.party-panel[open]>summary,.game-menu>.button:hover{background:#332e4c;border-color:#76689e}
.spectator-clock{width:92px;height:92px;border:2px solid #665b8d;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle,#211d38 56%,transparent 57%);box-shadow:0 0 28px #a98aff25;animation:spectator-pulse 2.4s ease-in-out infinite}.spectator-clock span{font-size:2.15rem;display:block;animation:spectator-flip 2.4s ease-in-out infinite}
@keyframes spectator-flip{0%,42%{transform:rotate(0) scale(1)}58%,100%{transform:rotate(180deg) scale(1.04)}}@keyframes spectator-pulse{50%{box-shadow:0 0 40px #a98aff55;border-color:#a98aff}}
@media(max-width:540px){.spectator-clock{width:74px;height:74px}.spectator-clock span{font-size:1.8rem}}
.theme-announcement p,.theme-announcement .spectator-clock{position:relative;top:clamp(40px,8vh,84px)}.theme-announcement p+.spectator-clock{margin-top:18px}
.player-callout{display:flex;flex-wrap:wrap;justify-content:center;gap:.35em;align-items:baseline;text-align:center}.player-name{color:var(--mint);text-shadow:0 0 18px #caff8255;animation:name-glow 1.8s ease-in-out infinite}.next-countdown{margin:18px 0 0;font-weight:750}@keyframes name-glow{50%{text-shadow:0 0 24px #caff8290;transform:translateY(-1px)}}
