/* Polices Barlow auto-hébergées (ex-import Google Fonts) : pas de chaîne bloquante vers un domaine tiers. */
@font-face{font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/Barlow-400-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}@font-face{font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/Barlow-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}@font-face{font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/Barlow-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}@font-face{font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/Barlow-500-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}@font-face{font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/Barlow-500-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}@font-face{font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/Barlow-500-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}@font-face{font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/Barlow-600-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}@font-face{font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/Barlow-600-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}@font-face{font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/Barlow-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}@font-face{font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/Barlow-700-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}@font-face{font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/Barlow-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}@font-face{font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/Barlow-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}@font-face{font-family: 'Barlow'; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/Barlow-800-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}@font-face{font-family: 'Barlow'; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/Barlow-800-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}@font-face{font-family: 'Barlow'; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/Barlow-800-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}@font-face{font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/BarlowCondensed-700-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}@font-face{font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/BarlowCondensed-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}@font-face{font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/BarlowCondensed-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}@font-face{font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/BarlowCondensed-800-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}@font-face{font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/BarlowCondensed-800-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}@font-face{font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/BarlowCondensed-800-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}@font-face{font-family: 'Barlow Condensed'; font-style: normal; font-weight: 900; font-display: swap; src: url(fonts/BarlowCondensed-900-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}@font-face{font-family: 'Barlow Condensed'; font-style: normal; font-weight: 900; font-display: swap; src: url(fonts/BarlowCondensed-900-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}@font-face{font-family: 'Barlow Condensed'; font-style: normal; font-weight: 900; font-display: swap; src: url(fonts/BarlowCondensed-900-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
:root{font-family:Barlow,Arial,sans-serif;color:#172039;background:#faf7ef}*{box-sizing:border-box}body{margin:0}html,button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:4px solid #eab900;outline-offset:5px}header{height:84px;padding:0 5%;display:flex;align-items:center;gap:24px;border-bottom:1px solid #ddd9d1}header>a{font-weight:900;font-size:30px;letter-spacing:-3px;text-decoration:none;color:#152645}header>a span{color:#e83c3b}header>span{font-size:11px;font-weight:800;letter-spacing:2px}header button{margin-left:auto;background:transparent;border:1px solid #d5d4ce;padding:11px 16px;border-radius:50px;font-size:12px;font-weight:600}main{max-width:1160px;margin:32px auto 0;padding:0 24px}.topline{display:flex;justify-content:space-between;font-size:11px;letter-spacing:1.5px;font-weight:700;margin-bottom:12px}.arena{height:450px;background:#ee4443;position:relative;isolation:isolate;overflow:hidden;border:3px solid #172039;border-radius:6px;box-shadow:6px 6px 0 #172039}.burst{position:absolute;inset:-100%;background:repeating-conic-gradient(from 0deg at 38% 50%,#235ddd 0deg 12deg,#3077ef 12deg 24deg);clip-path:polygon(0 0,49% 0,64% 100%,0 100%);z-index:-2}.stripe{position:absolute;inset:0;background:#f8eed3;clip-path:polygon(53% 0,55% 0,41% 100%,39% 100%);z-index:-1}.portrait{position:absolute;left:6%;bottom:42px;width:360px;height:360px;display:flex;align-items:center;justify-content:center}canvas{width:100%;height:100%;object-fit:contain;filter:drop-shadow(7px 7px 0 #14327455);transition:transform .35s}.revealed canvas{animation:pop .45s ease-out}.headline{position:absolute;right:4%;top:90px;width:47%;transform:rotate(-5deg);color:#ffe24b;text-align:center;filter:drop-shadow(4px 6px 0 #132958)}.headline>span{font-family:'Barlow Condensed',Impact,sans-serif;font-weight:900;font-size:50px;-webkit-text-stroke:2px #173776;paint-order:stroke fill}.headline h1{font:900 clamp(65px,8.6vw,114px)/.95 'Barlow Condensed',Impact,sans-serif;margin:0;letter-spacing:-2px;-webkit-text-stroke:6px #173776;paint-order:stroke fill}.headline h1 span{display:inline-block;transform:rotate(10deg)}.headline p{color:white;font-weight:700;font-size:16px;margin-top:22px;filter:none;letter-spacing:.5px}.question{position:absolute;left:31%;top:7%;font:900 120px 'Barlow Condensed',Impact,sans-serif;color:#ffe24b;-webkit-text-stroke:4px #173776;transform:rotate(15deg)}.revealed .question{display:none}.corner{position:absolute;bottom:16px;right:20px;font-size:10px;font-weight:800;letter-spacing:1.5px;color:#fff8e8}#loading{position:absolute;background:#172039;color:white;padding:12px 16px;font-size:13px;border-radius:4px;text-align:center}.controls{max-width:860px;margin:34px auto 0}.prompt{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:2px;color:#696d79}h2{font-size:27px;margin:5px 0}.score{display:flex;align-items:center;gap:10px}.score strong{font-size:35px;font-weight:800}.score span{font-size:10px;letter-spacing:1px;font-weight:700}.choices{display:grid;grid-template-columns:1fr 1fr;gap:12px}.choice{display:flex;align-items:center;text-align:left;gap:16px;background:white;border:2px solid #dcdcd8;border-radius:6px;padding:17px 20px;font-weight:700;font-size:16px;transition:background .15s,transform .15s}.choice:not(:disabled):hover{border-color:#245ddb;transform:translateY(-2px);background:#edf2ff}.choice .letter{display:grid;place-items:center;background:#f1f2f5;border-radius:4px;width:28px;height:28px;font-size:12px;flex-shrink:0}.choice:disabled{cursor:default;color:#737783}.choice.correct{background:#e0f4d9;border-color:#439033;color:#26551f}.choice.wrong{background:#ffe4e2;border-color:#d9413d;color:#9b302d}.choice.correct .letter{background:#439033;color:white}.choice.wrong .letter{background:#d9413d;color:white}.feedback{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:75px}.feedback p{font-size:13px;color:#686b73}.feedback button,#replay{background:#172c59;color:white;border:0;padding:13px 20px;border-radius:5px;font-weight:700;white-space:nowrap}footer{max-width:1160px;margin:20px auto;padding:20px 24px 25px;display:flex;justify-content:space-between;gap:20px;font-size:11px;color:#777b84}footer a{color:inherit}#result{text-align:center;background:#ffe24b;border:3px solid #172039;border-radius:6px;padding:28px;margin:26px auto;max-width:860px}#result h2{font-size:38px}#result p{margin:10px 0 22px}[hidden]{display:none!important}@keyframes pop{0%{transform:scale(.75)}60%{transform:scale(1.05)}100%{transform:scale(1)}}@media(max-width:700px){header{height:68px;padding:0 20px;gap:15px}header>span{font-size:8px;letter-spacing:1px}header button{font-size:10px;padding:9px 11px}main{margin-top:22px;padding:0 16px}.topline{font-size:8px;letter-spacing:1px}.arena{height:420px}.portrait{width:265px;height:265px;left:-10px;bottom:20px}.headline{top:30px;right:5%;width:75%}.headline>span{font-size:32px}.headline h1{font-size:65px;-webkit-text-stroke:4px}.headline p{font-size:12px;margin-top:12px}.question{font-size:95px;left:auto;right:12%;top:45%}.corner{font-size:7px;right:10px;bottom:8px}.burst{clip-path:polygon(0 0,40% 0,64% 100%,0 100%)}.stripe{clip-path:polygon(25% 0,29% 0,77% 100%,73% 100%)}.controls{margin-top:28px}h2{font-size:23px}.choice{padding:12px 10px;font-size:13px;gap:8px}.choice .letter{width:23px;height:23px}.choices{gap:9px}.feedback{align-items:flex-start;padding-top:8px;flex-wrap:wrap}.feedback p{margin:8px 0}.feedback button{margin-left:auto}footer{flex-direction:column;gap:8px;margin-top:14px;padding:18px 16px}.score strong{font-size:28px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* Composition inspired by the supplied Indigo League interlude. */
.arena{height:auto;aspect-ratio:4/3;max-width:900px;margin-inline:auto;background:repeating-linear-gradient(28deg,transparent 0 24px,#ff718044 27px 32px,transparent 36px 65px),linear-gradient(120deg,#c50036,#ff003a 58%,#f43c40);border-color:#173758;box-shadow:6px 6px 0 #173758}
.burst{inset:0;z-index:-2;background:repeating-conic-gradient(from 3deg at 29% 47%,#ecffff 0deg 1.5deg,#8ddfe2 2deg 4deg,#bbf6ef 4.5deg 6deg,#65c8d8 7deg 9deg);clip-path:polygon(0 0,29% 2%,35% 8%,41% 0,43% 13%,51% 4%,49% 20%,60% 13%,54% 28%,65% 25%,56% 38%,69% 41%,57% 48%,67% 57%,55% 58%,62% 71%,50% 66%,55% 84%,45% 77%,44% 97%,34% 87%,29% 100%,18% 92%,10% 100%,0 100%)}
.burst::after{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 28% 48%,#f2ffff99 0,transparent 43%)}
.stripe{display:none}.portrait{left:5%;bottom:17%;width:46%;height:auto;aspect-ratio:1}.portrait canvas{filter:drop-shadow(-7px 5px 0 #17475b99)}
.headline{top:auto;bottom:9%;right:3%;width:47%;transform:rotate(-8deg);filter:drop-shadow(4px 5px 0 #193f64)}
.headline>span{font-size:clamp(24px,4vw,42px);-webkit-text-stroke:2px #194c77}.headline h1{font-size:clamp(49px,7.5vw,89px);-webkit-text-stroke:5px #194c77;letter-spacing:-1px}.headline h1>span{display:none}.headline p{font-size:15px;line-height:1.3;margin:14px 0 0;min-height:40px;filter:none;text-shadow:none}
.question{left:auto;right:19%;top:9%;font-size:clamp(110px,19vw,210px);line-height:1;color:#ffe52c;-webkit-text-stroke:6px #12627e;paint-order:stroke fill;transform:rotate(-10deg);text-shadow:7px 7px 0 #173e59}
.corner{font-size:8px}.revealed .question{display:block;opacity:0}.revealed .burst{background:repeating-conic-gradient(from 3deg at 29% 47%,#fff9d3 0deg 1.5deg,#f7c957 2deg 4deg,#ffefac 4.5deg 6deg,#eeb741 7deg 9deg)}.revealed .portrait{animation:reveal-flash .5s ease-out}
@keyframes reveal-flash{0%{filter:brightness(3);transform:scale(.94)}100%{filter:brightness(1);transform:scale(1)}}
@media(max-width:700px){.arena{height:auto;aspect-ratio:4/3}.portrait{left:2%;bottom:17%;width:49%;height:auto}.headline{top:auto;bottom:8%;right:2%;width:48%}.headline>span{font-size:clamp(17px,4.8vw,30px)}.headline h1{font-size:clamp(32px,8.5vw,61px);-webkit-text-stroke:3px}.headline p{font-size:10px;min-height:25px;margin-top:9px}.question{top:8%;right:17%;font-size:clamp(85px,23vw,150px);-webkit-text-stroke:4px;text-shadow:4px 4px 0 #173e59}.corner{font-size:5px;letter-spacing:.6px;bottom:6px}.burst{clip-path:polygon(0 0,29% 2%,35% 8%,41% 0,43% 13%,51% 4%,49% 20%,60% 13%,54% 28%,65% 25%,56% 38%,69% 41%,57% 48%,67% 57%,55% 58%,62% 71%,50% 66%,55% 84%,45% 77%,44% 97%,34% 87%,29% 100%,18% 92%,10% 100%,0 100%)}}

header #listen{margin-left:auto}header #sound{margin-left:0}@media(max-width:700px){header{gap:8px}header>span{display:none}header #listen,header #sound{padding:9px;font-size:10px}}

.settings{max-width:900px;margin:24px auto 0;display:flex;align-items:center;gap:14px;flex-wrap:wrap;font-size:12px}.settings>div{margin-right:auto}.settings strong{display:block;font-size:14px}.settings span{display:block;font-size:10px;color:#777b84;margin-top:4px}.settings select{font:inherit;background:white;color:#172039;border:1px solid #d5d4ce;padding:9px;border-radius:5px;margin-left:5px}.settings button{font:inherit;background:transparent;color:#172039;border:1px solid #d5d4ce;padding:10px;border-radius:5px}.choice{overflow-wrap:anywhere}@media(max-width:700px){.settings{gap:10px}.settings>div{width:100%}.settings label{flex:1}.settings button{font-size:11px}}

.arena{--portrait-outline:polygon(0 0,29% 2%,35% 8%,41% 0,43% 13%,51% 4%,49% 20%,60% 13%,54% 28%,65% 25%,56% 38%,69% 41%,57% 48%,67% 57%,55% 58%,62% 71%,50% 66%,55% 84%,45% 77%,44% 97%,34% 87%,29% 100%,18% 92%,10% 100%,0 100%)}.portrait-mask{position:absolute;inset:0;clip-path:var(--portrait-outline);pointer-events:none}.portrait-mask .portrait{left:-8%;bottom:-2%;width:72%;height:auto;aspect-ratio:1}.portrait-mask canvas{filter:none}.burst{clip-path:var(--portrait-outline)}@media(max-width:700px){.portrait-mask .portrait{left:-8%;bottom:-2%;width:72%;height:auto}.burst{clip-path:var(--portrait-outline)}}

.typed-form>label{display:block;font-weight:600;font-size:14px;margin-bottom:12px}.typed-row{display:flex;gap:12px}.typed-row input{flex:1;min-width:0;padding:18px;font:600 18px Barlow,Arial,sans-serif;border:2px solid #dcdcd8;border-radius:6px;background:white;color:#172039}.typed-row input:focus{outline:3px solid #efca3a;border-color:#172c59}.typed-row>button{border:0;border-radius:6px;background:#172c59;color:white;font:700 15px Barlow,Arial,sans-serif;padding:14px 23px}.typed-help{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;font-size:12px;color:#686b73}.typed-help button{background:transparent;color:#172c59;border:0;text-decoration:underline;padding:8px 0;font-size:12px}button:disabled{opacity:.65;cursor:default}.typed-row input:disabled{background:#eceeea}@media(max-width:600px){.typed-row{gap:8px}.typed-row input{font-size:15px;padding:14px 10px}.typed-row>button{padding:12px;font-size:13px}.typed-help{font-size:10px}.settings label{flex:auto}}

body:not([data-stage="game"])>header,body:not([data-stage="game"])>main,body:not([data-stage="game"])>footer{display:none}#startup{min-height:100svh;position:relative;isolation:isolate;overflow:hidden;display:grid;place-items:center;background:linear-gradient(125deg,#102e8b 0 42%,#e90040 42% 100%);color:white;padding:34px 24px}.intro-rays{position:absolute;inset:-100%;z-index:-1;background:repeating-conic-gradient(from 5deg at 50% 50%,transparent 0 10deg,#ffffff0c 10deg 20deg);pointer-events:none}.startup-screen{width:min(900px,100%);text-align:center;perspective:1000px}.intro-kicker{display:block;font-size:11px;letter-spacing:4px;font-weight:800;margin-bottom:35px;color:#fff9d5}.intro-logo{color:#ffe138;transform:rotate(-7deg);font-family:'Barlow Condensed',Impact,sans-serif;font-weight:900;-webkit-text-stroke:8px #153c70;paint-order:stroke fill;text-shadow:1px 2px 0 #123057,2px 4px 0 #123057,3px 6px 0 #123057,4px 8px 0 #123057,5px 10px 0 #123057,6px 12px 0 #123057,10px 18px 0 #0d224966;line-height:.95;margin:20px auto 45px;transform-style:preserve-3d}.intro-logo>span{display:block;font-size:clamp(35px,7vw,70px)}.intro-logo strong{display:block;font-size:clamp(70px,15vw,150px);font-weight:900}.startup-screen>p{font-size:16px;color:#ffefdf;margin:18px 0 30px}.start-primary{display:block;margin:0 auto;background:#ffe138;color:#142d54;border:2px solid #142d54;box-shadow:4px 5px 0 #142d54;border-radius:7px;font:800 17px Barlow,Arial,sans-serif;padding:18px 30px;transition:transform .15s}.start-primary:hover{transform:translateY(-3px)}.start-link{display:block;background:transparent;border:0;color:white;padding:14px;font-size:13px;margin:12px auto 0;text-decoration:underline;text-underline-offset:4px}.startup-screen>small{display:block;color:#ffffffaa;font-size:10px;margin-top:20px}.flying-logo{animation:title-arrives 1.7s cubic-bezier(.16,.9,.25,1) both,title-float 2.3s ease-in-out 1.7s infinite alternate}.intro-caption{font-weight:900;letter-spacing:3px;animation:caption-in .5s 1.45s both}.skip-intro{position:fixed;bottom:28px;right:28px;color:white;background:#0c1e4755;border:1px solid #ffffff55;border-radius:30px;padding:12px 20px;font-size:12px}body[data-stage="intro"] .intro-rays{animation:rays-turn 18s linear infinite}#setupScreen{max-width:760px}#setupScreen h1{font:800 clamp(32px,5vw,50px) Barlow,Arial,sans-serif;margin:0 0 30px}.mode-cards{display:grid;grid-template-columns:1fr 1fr;gap:18px;text-align:left}.mode-card{position:relative;border:2px solid #ffffff55;border-radius:12px;padding:25px;background:#101c4066;cursor:pointer;display:flex;flex-direction:column;gap:13px;transition:background .15s,border .15s}.mode-card:has(input:checked){background:#fff6d9;color:#172c59;border-color:#ffe138;box-shadow:0 0 0 3px #ffe13855}.mode-card input{position:absolute;top:20px;right:20px;accent-color:#173d7a;width:18px;height:18px}.mode-icon{font:800 22px 'Barlow Condensed',Impact,sans-serif;letter-spacing:3px;color:#ffe138}.mode-card:has(input:checked) .mode-icon{color:#d32c48}.mode-card strong{font-size:25px}.mode-card>span:last-child{font-size:13px;line-height:1.5}.setup-options{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:26px 0;font-size:13px;text-align:left}.setup-options select{display:block;margin-top:8px;font:inherit;padding:12px;border:1px solid #ffffff55;border-radius:6px;background:#fff7e3;color:#172c59;min-width:210px}.voice-option{display:flex;gap:9px;align-items:center}.voice-option input{width:18px;height:18px;accent-color:#ffe138}@keyframes title-arrives{0%{opacity:0;transform:translateZ(700px) rotateY(-65deg) rotateZ(-25deg) scale(3)}60%{opacity:1;transform:translateZ(-50px) rotateY(12deg) rotateZ(-5deg) scale(.9)}100%{opacity:1;transform:translateZ(0) rotateY(0) rotateZ(-7deg) scale(1)}}@keyframes title-float{from{transform:rotate(-7deg) translateY(0)}to{transform:rotate(-5deg) translateY(-10px)}}@keyframes rays-turn{to{transform:rotate(360deg)}}@keyframes caption-in{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}@media(max-width:600px){#startup{padding:28px 20px}.intro-kicker{font-size:9px;letter-spacing:2px;margin-bottom:25px}.intro-logo{-webkit-text-stroke:4px;text-shadow:2px 4px 0 #123057,4px 8px 0 #123057,7px 12px 0 #0d224966}.startup-screen>p{font-size:13px}.mode-cards{gap:10px}.mode-card{padding:20px 13px;gap:10px}.mode-card input{top:15px;right:12px}.mode-card strong{font-size:22px}.mode-card>span:last-child{font-size:11px}.setup-options{align-items:flex-end;gap:10px;font-size:11px}.setup-options select{min-width:0;max-width:190px;padding:10px}.voice-option{max-width:110px}.start-primary{font-size:15px}.skip-intro{right:16px;bottom:20px}.intro-caption{letter-spacing:1px}}

.enable-intro-music{position:fixed;left:28px;bottom:28px;color:#172c59;background:#ffe138;border:2px solid #172c59;border-radius:30px;padding:12px 20px;font-weight:700;font-size:12px}@media(max-width:600px){.enable-intro-music{left:16px;bottom:20px;padding:12px}}

body[data-stage="setup"] .intro-rays{animation:rays-turn 18s linear infinite}

.welcome-symbol{display:grid;place-items:center;width:100px;height:100px;border:2px solid #ffe13899;border-radius:50%;margin:0 auto 25px;color:#ffe138;font-size:34px;padding-left:5px;box-shadow:0 0 55px #ffe13822}.welcome-heading{font-size:clamp(30px,6vw,48px);margin:0;font-weight:800}#introScreen{position:static;isolation:isolate}#introScreen>.intro-logo,#introScreen>.intro-kicker,#introScreen>.intro-caption{position:relative;z-index:2}#introHeads{position:absolute;inset:0;pointer-events:none;z-index:1;overflow:hidden}.intro-head{position:absolute;width:clamp(100px,15vw,200px);height:clamp(120px,17vw,225px);opacity:0;filter:drop-shadow(5px 8px 0 #0a183b66);animation:head-arrives .7s cubic-bezier(.2,1.4,.4,1) var(--head-delay) both}.intro-head img{display:block;width:115%;max-width:none;height:auto;margin-left:-7.5%;margin-top:-4%;clip-path:ellipse(44% 37% at 50% 41%);animation:head-bounce 1.1s ease-in-out calc(var(--head-delay) + .7s) infinite alternate;transform-origin:50% 42%}.intro-head-0{left:3%;top:7%;--head-x:-170%;--head-y:-60%}.intro-head-1{right:3%;top:6%;--head-x:170%;--head-y:-70%}.intro-head-2{left:1%;bottom:5%;--head-x:-170%;--head-y:100%}.intro-head-3{right:1%;bottom:5%;--head-x:170%;--head-y:100%}.intro-head-4{left:23%;top:-4%;--head-x:-50%;--head-y:-170%}.intro-head-5{right:23%;top:-5%;--head-x:60%;--head-y:-170%}.intro-head-6{left:27%;bottom:-10%;--head-x:-20%;--head-y:170%}.intro-head-7{right:27%;bottom:-10%;--head-x:20%;--head-y:170%}.skip-intro,.enable-intro-music{z-index:5}#introScreen .intro-logo{filter:drop-shadow(0 0 25px #163f7299)}@keyframes head-arrives{0%{opacity:0;transform:translate(var(--head-x),var(--head-y)) rotate(-45deg) scale(.35)}70%{opacity:1;transform:translate(0,0) rotate(8deg) scale(1.12)}100%{opacity:1;transform:translate(0,0) rotate(0) scale(1)}}@keyframes head-bounce{from{transform:translateY(0) rotate(calc(var(--head-tilt) * -1))}to{transform:translateY(-12px) rotate(var(--head-tilt))}}@media(max-width:600px){.intro-head{width:105px;height:125px}.intro-head-0,.intro-head-1{top:9%}.intro-head-2,.intro-head-3{bottom:12%}.intro-head-4,.intro-head-5{top:-1%}.intro-head-6,.intro-head-7{bottom:0}#introScreen .intro-logo{margin-top:30px;margin-bottom:30px}}@media(prefers-reduced-motion:reduce){.intro-head{opacity:1}.intro-head img{transform:none}}

.round-clock{max-width:900px;margin:17px auto 0}.clock-meta{display:flex;justify-content:space-between;align-items:center;font-size:10px;letter-spacing:1.3px;font-weight:700;color:#656b79;margin-bottom:8px}#timeLeft{font-size:13px;font-weight:800;color:#172c59;font-variant-numeric:tabular-nums;letter-spacing:0}.time-track{height:10px;background:#dddcd5;border-radius:20px;overflow:hidden}.time-fill{width:100%;height:100%;border-radius:20px;background:linear-gradient(90deg,#246adf,#55a8ed);transform-origin:left;transition:transform .1s linear,background .2s}.time-track.urgent .time-fill{background:#eb3844}.setup-options{flex-wrap:wrap}.setup-options select{max-width:240px}@media(max-width:600px){.round-clock{margin-top:15px}.setup-options>label:not(.voice-option){flex:1;min-width:140px}.setup-options select{width:100%;max-width:none;font-size:11px}.time-track{height:8px}}

.intro-head img{filter:brightness(0) saturate(1);transition:filter .08s steps(1);animation-duration:.4s}.intro-head.head-revealed{opacity:1;animation:head-reveal-pop .45s cubic-bezier(.2,1.5,.4,1) both}.intro-head.head-revealed img{filter:none}.intro-head.head-revealed::after{content:'';position:absolute;inset:0;pointer-events:none;border-radius:50%;background:radial-gradient(ellipse at 50% 38%,#fff4ab 0,transparent 60%);mix-blend-mode:screen;animation:head-reveal-flash .35s both}@keyframes head-reveal-pop{0%{transform:scale(.92) rotate(-12deg)}45%{transform:scale(1.2) rotate(8deg)}100%{transform:scale(1) rotate(0)}}@keyframes head-reveal-flash{0%{opacity:.9;transform:scale(.65)}100%{opacity:0;transform:scale(1.3)}}@media(prefers-reduced-motion:reduce){.intro-head.head-revealed{transform:none}.intro-head.head-revealed::after{display:none}}

/* Timer attached directly to the portrait frame. */
.round-clock{position:relative;margin:0 auto;padding:0;max-width:900px}.clock-meta{position:absolute;inset:0 10px;z-index:1;margin:0;height:26px;pointer-events:none;color:#fff;font-size:9px;letter-spacing:1px;text-shadow:0 1px 3px #172039}#timeLeft{color:#fff;font-size:13px;text-shadow:0 1px 3px #172039}.time-track{height:26px;border:3px solid #173758;border-top:0;border-radius:0 0 6px 6px;background:#253d5b;box-shadow:6px 6px 0 #173758}.time-fill{border-radius:0}.arena{border-bottom-left-radius:0;border-bottom-right-radius:0}@media(max-width:600px){.round-clock{margin-top:0}.time-track{height:24px}.clock-meta{height:24px;font-size:8px}#timeLeft{font-size:12px}}

/* Fine vector burst, shared by backdrop and portrait. */
.arena{--burst-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22900%22%20height%3D%22675%22%20viewBox%3D%220%200%20900%20675%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M621.00%2C317.25L585.83%2C335.20L551.10%2C349.67L583.16%2C370.97L628.03%2C398.44L577.82%2C406.33L550.73%2C416.43L569.87%2C441.00L603.85%2C474.56L559.36%2C474.74L519.82%2C473.00L546.38%2C507.28L560.67%2C537.65L531.02%2C538.37L497.90%2C533.19L513.40%2C567.78L521.64%2C599.30L493.65%2C595.29L464.38%2C586.48L471.92%2C620.67L485.34%2C667.29L448.39%2C643.75L414.24%2C618.07L423.22%2C664.35L434.27%2C722.60L396.61%2C682.30L371.65%2C662.22L368.77%2C697.47L367.31%2C745.28L339.90%2C709.75L317.41%2C681.04L310.22%2C719.04L299.10%2C748.67L279.97%2C725.28L261.48%2C684.31L249.36%2C728.41L234.00%2C759.12L218.64%2C728.41L205.42%2C698.93L188.03%2C725.28L165.47%2C771.45L157.78%2C719.04L151.59%2C676.68L128.10%2C709.75L97.28%2C756.21L99.23%2C697.47L99.52%2C654.26L71.39%2C682.30L41.13%2C707.63L44.78%2C664.35L45.91%2C631.17L19.61%2C643.75L-6.16%2C651.72L-3.92%2C620.67L10.96%2C577.90L-25.65%2C595.29L-58.28%2C603.86L-45.40%2C567.78L-29.80%2C533.11L-63.02%2C538.37L-110.36%2C549.59L-78.38%2C507.28L-61.37%2C478.20L-91.36%2C474.74L-139.80%2C476.24L-101.87%2C441.00L-69.54%2C412.30L-109.82%2C406.33L-141.99%2C394.73L-115.16%2C370.97L-90.38%2C350.41L-117.83%2C335.20L-139.59%2C317.25L-117.83%2C299.30L-87.18%2C284.41L-115.16%2C263.53L-145.61%2C239.03L-109.82%2C228.17L-70.49%2C221.91L-101.87%2C193.50L-141.54%2C157.52L-91.36%2C159.76L-63.11%2C155.35L-78.38%2C127.22L-107.98%2C86.52L-63.02%2C96.13L-26.93%2C103.74L-45.40%2C66.72L-55.81%2C33.07L-25.65%2C39.21L9.08%2C54.40L-3.92%2C13.83L-6.89%2C-18.23L19.61%2C-9.25L45.89%2C3.30L44.78%2C-29.85L39.24%2C-76.97L71.39%2C-47.80L100.66%2C-16.90L99.23%2C-62.97L97.02%2C-122.57L128.10%2C-75.25L150.68%2C-46.13L157.78%2C-84.54L166.06%2C-133.04L188.03%2C-90.78L205.59%2C-62.26L218.64%2C-93.91L234.00%2C-121.71L249.36%2C-93.91L261.39%2C-48.59L279.97%2C-90.78L299.47%2C-116.64L310.22%2C-84.54L318.25%2C-50.20L339.90%2C-75.25L368.54%2C-114.71L368.77%2C-62.97L370.31%2C-24.34L396.61%2C-47.80L434.09%2C-87.74L423.22%2C-29.85L414.78%2C15.55L448.39%2C-9.25L482.93%2C-29.43L471.92%2C13.83L465.78%2C46.39L493.65%2C39.21L520.47%2C36.35L513.40%2C66.72L495.02%2C103.66L531.02%2C96.13L563.25%2C95.11L546.38%2C127.22L522.19%2C160.21L559.36%2C159.76L606.70%2C158.73L569.87%2C193.50L550.82%2C218.05L577.82%2C228.17L626.59%2C236.35L583.16%2C263.53L548.37%2C285.11L585.83%2C299.30Z%22%20fill%3D%22white%22%20stroke%3D%22white%22%20stroke-width%3D%221.2%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");--burst-clip:polygon(69.00% 47.00%,65.09% 49.66%,61.23% 51.80%,64.80% 54.96%,69.78% 59.03%,64.20% 60.20%,61.19% 61.69%,63.32% 65.33%,67.09% 70.31%,62.15% 70.33%,57.76% 70.07%,60.71% 75.15%,62.30% 79.65%,59.00% 79.76%,55.32% 78.99%,57.04% 84.12%,57.96% 88.79%,54.85% 88.19%,51.60% 86.89%,52.44% 91.95%,53.93% 98.86%,49.82% 95.37%,46.03% 91.57%,47.02% 98.42%,48.25% 107.05%,44.07% 101.08%,41.29% 98.11%,40.97% 103.33%,40.81% 110.41%,37.77% 105.15%,35.27% 100.89%,34.47% 106.52%,33.23% 110.91%,31.11% 107.45%,29.05% 101.38%,27.71% 107.91%,26.00% 112.46%,24.29% 107.91%,22.82% 103.55%,20.89% 107.45%,18.39% 114.29%,17.53% 106.52%,16.84% 100.25%,14.23% 105.15%,10.81% 112.03%,11.03% 103.33%,11.06% 96.93%,7.93% 101.08%,4.57% 104.83%,4.98% 98.42%,5.10% 93.51%,2.18% 95.37%,-0.68% 96.55%,-0.44% 91.95%,1.22% 85.61%,-2.85% 88.19%,-6.48% 89.46%,-5.04% 84.12%,-3.31% 78.98%,-7.00% 79.76%,-12.26% 81.42%,-8.71% 75.15%,-6.82% 70.84%,-10.15% 70.33%,-15.53% 70.55%,-11.32% 65.33%,-7.73% 61.08%,-12.20% 60.20%,-15.78% 58.48%,-12.80% 54.96%,-10.04% 51.91%,-13.09% 49.66%,-15.51% 47.00%,-13.09% 44.34%,-9.69% 42.13%,-12.80% 39.04%,-16.18% 35.41%,-12.20% 33.80%,-7.83% 32.88%,-11.32% 28.67%,-15.73% 23.34%,-10.15% 23.67%,-7.01% 23.01%,-8.71% 18.85%,-12.00% 12.82%,-7.00% 14.24%,-2.99% 15.37%,-5.04% 9.88%,-6.20% 4.90%,-2.85% 5.81%,1.01% 8.06%,-0.44% 2.05%,-0.77% -2.70%,2.18% -1.37%,5.10% 0.49%,4.98% -4.42%,4.36% -11.40%,7.93% -7.08%,11.18% -2.50%,11.03% -9.33%,10.78% -18.16%,14.23% -11.15%,16.74% -6.83%,17.53% -12.52%,18.45% -19.71%,20.89% -13.45%,22.84% -9.22%,24.29% -13.91%,26.00% -18.03%,27.71% -13.91%,29.04% -7.20%,31.11% -13.45%,33.27% -17.28%,34.47% -12.52%,35.36% -7.44%,37.77% -11.15%,40.95% -16.99%,40.97% -9.33%,41.15% -3.61%,44.07% -7.08%,48.23% -13.00%,47.02% -4.42%,46.09% 2.30%,49.82% -1.37%,53.66% -4.36%,52.44% 2.05%,51.75% 6.87%,54.85% 5.81%,57.83% 5.39%,57.04% 9.88%,55.00% 15.36%,59.00% 14.24%,62.58% 14.09%,60.71% 18.85%,58.02% 23.73%,62.15% 23.67%,67.41% 23.52%,63.32% 28.67%,61.20% 32.30%,64.20% 33.80%,69.62% 35.01%,64.80% 39.04%,60.93% 42.24%,65.09% 44.34%)}/* Découpe géométrique (clip-path) plutôt qu'un masque image : le masque se rastérisait par tuiles sur la couche GPU du portrait et laissait passer la silhouette en blocs. */
.arena .burst,.arena .portrait-mask{clip-path:var(--burst-clip);-webkit-mask-image:none;mask-image:none}.arena .burst{background:repeating-conic-gradient(from 3deg at 26% 47%,#efffff 0deg 1deg,#91dde3 1.4deg 3deg,#c6f8f1 3.5deg 5deg,#73cdda 5.5deg 7deg)}.arena.revealed .burst{background:repeating-conic-gradient(from 3deg at 26% 47%,#fff9d3 0deg 1deg,#f7cf61 1.4deg 3deg,#ffefac 3.5deg 5deg,#efc24f 5.5deg 7deg)}

/* Défilé de députés, piloté par la lecture du générique. */
#introScreen .intro-logo{margin-top:-110px;margin-bottom:130px}.flying-logo{animation:title-float 2.3s ease-in-out infinite alternate}.intro-title-part{display:inline-block;opacity:0;transform:translate3d(0,-80px,250px) rotateY(-45deg) scale(1.8)}.intro-title-part.title-arrived{animation:piece-arrives .5s cubic-bezier(.2,1.4,.4,1) both}@keyframes piece-arrives{to{opacity:1;transform:translate3d(0,0,0) rotateY(0) scale(1)}}
#introHeads{z-index:3;top:auto;height:250px;bottom:10%;border-bottom:2px solid #ffffff35}.intro-head.parade-deputy{position:absolute;top:auto;right:auto;bottom:var(--lane);width:140px;height:225px;animation:none;filter:drop-shadow(3px 5px 0 #0a183b66);will-change:left}.parade-deputy img{position:absolute;top:0;left:15px;width:110px;height:110px;object-fit:cover;margin:0;clip-path:ellipse(36% 37% at 50% 39%);animation:parade-bob .4s ease-in-out var(--walk-time) infinite alternate;transform-origin:50% 45%;z-index:2}.intro-head.parade-deputy.head-revealed{animation:none}.stick-body{position:absolute;left:66px;top:75px;width:8px;height:140px;color:#fff3bf}.stick-body i{position:absolute;display:block;width:7px;background:currentColor;border-radius:8px;transform-origin:50% 4px}.stick-body .torso{height:65px}.stick-body .arm{top:10px;height:54px;animation:stick-stride .4s ease-in-out var(--walk-time) infinite alternate}.stick-body .leg{top:59px;height:69px;animation:stick-stride .4s ease-in-out var(--walk-time) infinite alternate}.stick-body .arm-right,.stick-body .leg-left{animation-direction:alternate-reverse}.head-revealed .stick-body{color:#ffe138}.intro-head.parade-deputy::after{inset:0 0 auto;height:110px}.intro-caption{position:relative;top:-100px}@keyframes stick-stride{from{transform:rotate(-35deg)}to{transform:rotate(35deg)}}@keyframes parade-bob{from{transform:translateY(0) rotate(-4deg)}to{transform:translateY(-6px) rotate(4deg)}}@media(max-width:600px){#introHeads{bottom:13%;height:200px}.intro-head.parade-deputy{transform:scale(.8);transform-origin:bottom center}#introScreen .intro-logo{margin-top:-120px;margin-bottom:130px}}@media(prefers-reduced-motion:reduce){.stick-body .arm,.stick-body .leg,.parade-deputy img,.intro-title-part.title-arrived{animation:none}.intro-title-part.title-arrived{opacity:1;transform:none}}
.parade-deputy img,.stick-body .arm,.stick-body .leg{animation-play-state:paused}

/* Les pieds suivent un sol commun ; le logo passe devant le cortège. */
#introHeads{z-index:1;height:250px;bottom:10%}.intro-head.parade-deputy{bottom:0;height:204px}#introScreen>.intro-logo{z-index:4;margin:0 auto;pointer-events:none;width:min(1050px,100%)}#introScreen .intro-logo>span{font-size:clamp(48px,9vw,100px)}#introScreen .intro-logo strong{font-size:clamp(95px,19vw,205px)}.stick-body .leg{animation-name:grounded-stride}@keyframes grounded-stride{0%{transform:rotate(-35deg) scaleY(1.22)}50%{transform:rotate(0deg) scaleY(1)}100%{transform:rotate(35deg) scaleY(1.22)}}@media(max-width:600px){#introHeads{bottom:16%;height:190px}#introScreen>.intro-logo{margin:0 auto}.intro-head.parade-deputy{height:204px;bottom:0}}
/* Personnages cartoon plus grands, toujours derrière le logo. */
#introHeads{height:370px}.intro-head.parade-deputy{transform:scale(1.55);transform-origin:bottom center;--jacket:#35b9cf;--trousers:#163659}.parade-deputy:nth-child(3n+2){--jacket:#ed9955;--trousers:#473763}.parade-deputy:nth-child(3n){--jacket:#9b86df;--trousers:#263958}.stick-body{color:var(--jacket)}.head-revealed .stick-body{color:var(--jacket)}.stick-body .torso{left:-17px;top:-1px;width:42px;height:68px;border:2px solid #102c4e;border-radius:15px 15px 10px 10px;background:linear-gradient(76deg,transparent 44%,#fff5dc 45% 55%,transparent 56%),var(--jacket);box-shadow:inset -6px 0 #0002;z-index:2}.stick-body .torso::after{content:'';position:absolute;left:18px;top:13px;width:5px;height:25px;background:#ef4266;clip-path:polygon(0 0,100% 0,70% 25%,100% 85%,50% 100%,0 85%,30% 25%)}.stick-body .arm{width:12px;border:1.5px solid #102c4e;background:var(--jacket);z-index:1}.stick-body .arm-left{left:-17px}.stick-body .arm-right{left:19px}.stick-body .arm::after{content:'';position:absolute;bottom:-4px;left:-2px;width:14px;height:15px;border-radius:45%;background:#ffdcac;border:1.5px solid #102c4e}.stick-body .leg{width:13px;background:var(--trousers);border-radius:5px;z-index:0}.stick-body .leg-left{left:-8px}.stick-body .leg-right{left:8px}.stick-body .leg::after{content:'';position:absolute;left:-2px;bottom:0;width:23px;height:10px;background:#10243d;border-radius:8px 10px 3px 3px;box-shadow:inset 0 -2px #fff0c6}.parade-deputy:not(.head-revealed) .stick-body{filter:brightness(.35)}
@media(max-width:600px){#introHeads{height:280px}.intro-head.parade-deputy{transform:scale(1.15)}}@media(max-height:500px){#introHeads{height:250px;bottom:8%}.intro-head.parade-deputy{transform:scale(1.1)}}
/* Le visage reste devant tous les éléments du corps. */
.parade-deputy .stick-body{z-index:1;isolation:isolate}.parade-deputy img{z-index:3}.parade-deputy::after{z-index:4}
/* Défilé agrandi derrière le titre. */
#introHeads{height:460px}.intro-head.parade-deputy{transform:scale(1.95)}@media(max-width:600px){#introHeads{height:330px}.intro-head.parade-deputy{transform:scale(1.45)}}@media(max-height:500px){#introHeads{height:290px}.intro-head.parade-deputy{transform:scale(1.3)}}
/* Accès visible au choix du mode, centré sous le titre. */
#introScreen .skip-intro{position:relative;display:block;bottom:auto;right:auto;margin:38px auto 0;z-index:6;width:max-content;max-width:100%;padding:15px 26px;border:2px solid #ffe138;border-radius:30px;background:#102b59;color:#fff5cf;font-size:15px;font-weight:800;box-shadow:0 4px 0 #081a36,0 0 20px #102b5955;cursor:pointer}#introScreen .skip-intro:hover{background:#ffe138;color:#102b59}#introScreen .skip-intro:focus-visible{outline:3px solid white;outline-offset:5px}@media(max-width:600px){#introScreen .skip-intro{margin-top:28px;padding:13px 22px;font-size:14px}}
/* Le bouton est hors du flux pour préserver le centrage du titre. */
#introScreen .skip-intro{position:absolute;left:50%;top:calc(50% + clamp(95px,14vw,155px));right:auto;bottom:auto;transform:translateX(-50%);margin:0;white-space:nowrap}@media(max-width:600px){#introScreen .skip-intro{top:calc(50% + clamp(95px,14vw,155px));margin:0}}

/* Annonce en trois temps, centrée dans la zone rouge. */
.arena .headline{top:50%;bottom:auto;right:1.5%;width:49%;transform:translateY(-50%) rotate(-6deg)}.arena .headline>span{display:block;font-size:clamp(27px,4.8vw,56px);line-height:1}.round-title-piece{display:inline-block;font-weight:inherit}.arena .headline h1{display:block;font-size:clamp(58px,10vw,116px);line-height:.98}.arena .headline h1>span{display:inline-block}.arena .headline #tagline{font-size:clamp(17px,2.35vw,29px);font-weight:900;line-height:1.15;margin:18px auto 0;min-height:0;max-width:95%;text-wrap:balance}.headline.title-speaking .round-title-piece{opacity:0;transform:translateY(-35px) scale(1.6)}.headline.title-speaking .round-title-piece.word-arrived{animation:round-word-in .38s cubic-bezier(.2,1.4,.4,1) both}@keyframes round-word-in{to{opacity:1;transform:translateY(0) scale(1)}}.affiliation{display:flex;align-items:center;justify-content:center;gap:11px;margin:15px auto 0;padding:10px 13px;max-width:94%;background:#fffaf1;border-radius:10px;color:#173451;transform:rotate(6deg);filter:none;box-shadow:0 3px 0 #16375a44;text-shadow:none}.affiliation img{width:72px;height:48px;object-fit:contain;flex-shrink:0}.affiliation div{text-align:left}.affiliation small{display:block;font:800 8px Barlow,Arial,sans-serif;letter-spacing:1px;color:#637184;margin-bottom:4px}.affiliation strong{display:block;font:800 14px/1.2 Barlow,Arial,sans-serif}.arena .question{display:none}@media(max-width:700px){.arena .headline{right:1%;width:50%;top:48%;bottom:auto}.arena .headline>span{font-size:clamp(18px,4.6vw,34px)}.arena .headline h1{font-size:clamp(33px,9vw,65px);-webkit-text-stroke:3px}.arena .headline #tagline{font-size:clamp(12px,3vw,20px);margin-top:10px}.affiliation{gap:6px;padding:7px;margin-top:8px}.affiliation img{width:42px;height:31px}.affiliation small{font-size:6px;letter-spacing:.3px}.affiliation strong{font-size:clamp(8px,1.9vw,12px)}}@media(prefers-reduced-motion:reduce){.headline.title-speaking .round-title-piece.word-arrived{opacity:1;transform:none}}
/* Révélation lisible : titre distinct, identité horizontale sur fond clair. */
.arena .headline{right:3%;width:46%;transform:translateY(-50%);filter:none}.arena .headline>span,.arena .headline h1{transform:rotate(-5deg);filter:drop-shadow(3px 4px 0 #16375a)}.arena .headline>span{font-size:clamp(25px,4.2vw,48px)}.arena .headline h1{font-size:clamp(53px,8.5vw,101px);letter-spacing:-1px}.arena .headline #tagline{color:#fffdf0;font-size:clamp(16px,2vw,25px);line-height:1.2;margin:25px auto 0;max-width:100%;text-shadow:0 2px 3px #84122c;letter-spacing:0}.arena.revealed .headline #tagline{color:#15334e;background:#fffaf1;border-radius:12px 12px 0 0;margin:25px 0 0;padding:16px 18px 11px;font-size:clamp(19px,2.5vw,30px);text-shadow:none;text-align:left;box-shadow:4px 0 0 #16375a}.arena .affiliation{transform:none;margin:0;max-width:100%;border-radius:0 0 12px 12px;padding:10px 18px 16px;gap:14px;justify-content:flex-start;box-shadow:4px 5px 0 #16375a;position:relative}.arena .affiliation::before{content:'';position:absolute;top:0;left:18px;right:18px;height:1px;background:#dce1e3}.arena .affiliation img{width:68px;height:51px;background:white;border-radius:5px;padding:4px}.arena .affiliation small{font-size:9px;line-height:1.3;letter-spacing:.8px;color:#5b6874}.arena .affiliation strong{font-size:15px;line-height:1.35;color:#173451;text-wrap:balance}.arena .corner{display:none}@media(max-width:700px){.arena .headline{right:3%;width:47%;top:49%}.arena .headline>span{font-size:clamp(16px,4vw,28px)}.arena .headline h1{font-size:clamp(30px,7.8vw,55px)}.arena .headline #tagline{font-size:clamp(12px,2.7vw,18px);margin-top:15px}.arena.revealed .headline #tagline{font-size:clamp(14px,3.4vw,22px);padding:10px 10px 8px;margin-top:15px}.arena .affiliation{padding:9px 10px 10px;gap:8px}.arena .affiliation::before{left:10px;right:10px}.arena .affiliation img{width:43px;height:36px;padding:2px}.arena .affiliation small{font-size:6px;letter-spacing:.3px}.arena .affiliation strong{font-size:clamp(9px,2.2vw,13px);line-height:1.3}}@media(max-width:420px){.arena .affiliation{gap:6px}.arena .affiliation img{width:32px;height:30px}.arena .affiliation small{font-size:5.5px}.arena .affiliation strong{font-size:8.5px}}

.audio-settings-open{position:fixed;top:14px;right:18px;z-index:20;background:#153451;color:#fff6dd;border:1px solid #ffffff75;border-radius:25px;padding:10px 16px;font-weight:800;font-size:13px;box-shadow:0 3px 8px #0002}body[data-stage="game"] .audio-settings-open{top:auto;bottom:16px;right:16px}.audio-settings-panel{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:20px;background:#07162ccc;backdrop-filter:blur(8px)}.audio-settings-card{width:min(440px,100%);max-height:90svh;overflow:auto;border:2px solid #173451;border-radius:18px;background:#fffaf1;color:#173451;padding:26px;box-shadow:8px 8px 0 #07162c55}.audio-settings-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.audio-settings-heading h2{margin:0;font-size:27px}.audio-settings-heading button{background:transparent;border:0;font-size:22px;color:#173451;padding:5px}.audio-settings-card>p{font-size:13px;color:#637184;margin:10px 0 24px}.audio-slider{display:grid;grid-template-columns:1fr auto;gap:10px;font-size:14px;font-weight:700;margin:20px 0}.audio-slider output{font-size:12px;color:#68788a;font-variant-numeric:tabular-nums}.audio-slider input{grid-column:1/-1;width:100%;height:20px;accent-color:#e90040;cursor:pointer}.audio-duck{display:flex;gap:10px;align-items:center;font-size:12px;line-height:1.5;margin:22px 0}.audio-duck input{width:19px;height:19px;accent-color:#e90040}.audio-reset{padding:11px 16px;border:1px solid #c5cbd1;border-radius:7px;color:#173451;background:white;font-size:12px;font-weight:700}.audio-settings-card>small{display:block;margin-top:16px;font-size:10px;color:#68788a}@media(max-width:600px){.audio-settings-card{padding:20px}.audio-settings-open{top:10px;right:10px;padding:9px 13px}}
/* Nom blanc conservé ; groupe parlementaire dans un bandeau distinct. */
.arena.revealed .headline #tagline{background:transparent;color:#fffdf0;padding:0;margin:24px auto 16px;border-radius:0;box-shadow:none;text-align:center;font-size:clamp(20px,2.6vw,31px);font-weight:900;line-height:1.2;transform:rotate(-5deg);text-shadow:0 2px 0 #153451,0 3px 7px #6e002c88}.arena .affiliation{max-width:96%;margin:0 auto;padding:12px 14px;gap:13px;border-radius:10px;background:#fffdf5;box-shadow:0 4px 0 #15345155;text-align:left;align-items:center}.arena .affiliation::before{display:none}.arena .affiliation img{width:76px;height:52px;object-fit:contain;background:white;border-radius:5px;padding:3px}.arena .affiliation small{font-size:8px;color:#667585;font-weight:800;letter-spacing:1px;margin-bottom:5px}.arena .affiliation strong{font-size:15px;line-height:1.3;text-wrap:balance}.arena .affiliation div{flex:1;min-width:0}@media(max-width:700px){.arena.revealed .headline #tagline{font-size:clamp(14px,3.4vw,22px);margin:16px auto 10px;padding:0}.arena .affiliation{gap:8px;padding:9px 10px;max-width:98%}.arena .affiliation img{width:48px;height:36px;padding:2px}.arena .affiliation small{font-size:6px;letter-spacing:.4px;margin-bottom:3px}.arena .affiliation strong{font-size:clamp(9px,2.2vw,13px)}}@media(max-width:420px){.arena .affiliation{gap:6px;padding:8px}.arena .affiliation img{width:35px;height:32px}.arena .affiliation strong{font-size:8.5px}}
/* Composition verticale : nom, groupe, puis logo. */
.arena .affiliation{display:flex;flex-direction:column-reverse;align-items:center;justify-content:center;gap:11px;margin:0 auto;padding:0;max-width:95%;background:transparent;border:0;border-radius:0;box-shadow:none;text-align:center}.arena .affiliation div{text-align:center;flex:none;max-width:100%}.arena .affiliation small{display:none}.arena .affiliation strong{font-size:clamp(13px,1.8vw,21px);font-weight:800;line-height:1.25;color:#fffdf0;text-shadow:0 2px 3px #77102c;max-width:100%;text-wrap:balance}.arena .affiliation img{display:block;width:105px;height:65px;object-fit:contain;background:#fffdf5;padding:7px 10px;border-radius:8px;box-shadow:0 3px 0 #15345144}.arena.revealed .headline #tagline{margin-bottom:16px}@media(max-width:700px){.arena .affiliation{gap:8px;padding:0;margin:0 auto}.arena .affiliation strong{font-size:clamp(10px,2.6vw,16px)}.arena .affiliation img{width:76px;height:46px;padding:5px 7px}.arena.revealed .headline #tagline{margin-bottom:10px}}@media(max-width:420px){.arena .affiliation img{width:63px;height:39px}.arena .affiliation strong{font-size:10px}}
/* Centrage optique du bloc dans la zone rouge. */
.arena .headline{right:0;width:43%}@media(max-width:700px){.arena .headline{right:0;width:43%}}
/* Séparation légère entre le nom et le groupe. */
.arena.revealed .headline #tagline{margin-bottom:27px}@media(max-width:700px){.arena.revealed .headline #tagline{margin-bottom:19px}}
/* Ancrage fixe : la révélation ne recentre plus le bloc selon sa hauteur. */
.arena .headline{top:25%;bottom:auto;transform:none}.headline.title-speaking .round-title-piece{transform:translateY(-35px) rotate(0deg) scale(1.6)}.headline.title-speaking h1.round-title-piece{transform:translateY(-35px) rotate(-5deg) scale(1.6);animation-name:none}.headline.title-speaking h1.round-title-piece.word-arrived{animation-name:round-depute-in}@keyframes round-depute-in{to{opacity:1;transform:translateY(0) rotate(-5deg) scale(1)}}@media(max-width:700px){.arena .headline{top:23%;bottom:auto;transform:none}}@media(prefers-reduced-motion:reduce){.headline.title-speaking h1.round-title-piece.word-arrived{transform:rotate(-5deg)}}
/* Rotation des rayons dorés à l’intérieur du masque fixe. */
@property --gold-ray-angle{syntax:'<angle>';inherits:false;initial-value:3deg}
.arena.revealed .burst{background:repeating-conic-gradient(from var(--gold-ray-angle) at 26% 47%,#fff9d3 0deg 1deg,#f7cf61 1.4deg 3deg,#ffefac 3.5deg 5deg,#efc24f 5.5deg 7deg);animation:gold-rays-spin 36s linear infinite}@keyframes gold-rays-spin{from{--gold-ray-angle:3deg}to{--gold-ray-angle:363deg}}@media(prefers-reduced-motion:reduce){.arena.revealed .burst{animation:none}}

/* En-tête compact : identité, progression et commandes regroupées. */
body[data-stage="game"]>header{height:66px;padding:0 max(24px,calc((100vw - 1112px)/2));gap:14px;border-bottom:1px solid #e6e1d8}header>a{font-size:27px;flex-shrink:0}header .header-progress{margin-right:auto;font-size:10px;letter-spacing:1.3px;color:#667184}header #listen,header #sound{margin-left:0;padding:9px 13px;font-size:11px;border-color:#dedbd4;background:transparent}body[data-stage="game"] main{margin-top:22px}body[data-stage="game"] .audio-settings-open{position:fixed;top:19px;bottom:auto;right:18px;padding:6px 10px;font-size:10px;box-shadow:none;z-index:21}body[data-stage="game"]>header{padding-right:max(95px,calc((100vw - 1112px)/2))}@media(max-width:700px){body[data-stage="game"]>header{height:58px;padding:0 82px 0 16px;gap:9px}header .header-progress{font-size:8px;letter-spacing:.4px}header #listen,header #sound{font-size:9px;padding:7px 8px}body[data-stage="game"] .audio-settings-open{top:18px;right:9px;padding:5px 8px;font-size:9px}body[data-stage="game"] main{margin-top:16px}}@media(max-width:420px){header #sound{display:none}header .header-progress{font-size:8px}header>a{font-size:24px}}

/* Commandes audio en bas, panneau dépliant ancré au bouton. */
.audio-dock{position:fixed;bottom:18px;right:18px;z-index:102;display:flex;align-items:center;gap:6px;padding:5px;background:#fffaf1;border:1px solid #d9ddd9;border-radius:28px;box-shadow:0 4px 16px #112d4922}.audio-dock .audio-mute{display:grid;place-items:center;width:38px;height:38px;padding:0;border:0;border-radius:50%;background:transparent;font-size:19px}.audio-dock .audio-settings-open,body[data-stage="game"] .audio-dock .audio-settings-open{position:static;inset:auto;padding:10px 15px;border:0;border-radius:22px;background:#153451;color:white;font-size:12px;box-shadow:none}.audio-mute:hover{background:#e9edf0}.audio-settings-panel{inset:auto 18px 82px auto;display:block;width:min(370px,calc(100vw - 32px));padding:0;background:transparent;backdrop-filter:none;z-index:101}.audio-settings-card{width:100%;max-height:calc(100svh - 110px);padding:21px;border:1px solid #d2d8de;border-radius:16px;box-shadow:0 10px 40px #07162c44}.audio-settings-heading h2{font-size:22px}.audio-settings-card>p{margin-bottom:17px}.audio-slider{margin:14px 0;font-size:12px}.audio-duck{margin:16px 0}.audio-settings-card>small{font-size:9px}body[data-stage="game"]>header{padding:0 max(24px,calc((100vw - 1112px)/2))}.arena .quiz-listen{position:absolute;top:15px;right:15px;z-index:5;padding:8px 12px;background:#78133444;color:#fff7df;border:1px solid #ffffff60;border-radius:22px;font-size:11px;font-weight:700}.arena .quiz-listen:hover{background:#173451;color:white}@media(max-width:700px){body[data-stage="game"]>header{padding:0 16px}.audio-dock{right:10px;bottom:10px}.audio-settings-panel{right:10px;bottom:74px}.arena .quiz-listen{top:9px;right:9px;font-size:9px;padding:6px 9px}.audio-dock .audio-mute{display:grid}}@media(max-width:420px){.audio-dock #sound{display:grid}}

/* Commandes assorties au quiz : jaune solaire et contours bleu nuit. */
.audio-dock{padding:0;gap:9px;border:0;background:transparent;border-radius:0;box-shadow:none}.audio-dock .audio-mute,.audio-dock .audio-settings-open,body[data-stage="game"] .audio-dock .audio-settings-open{display:flex;align-items:center;justify-content:center;gap:8px;height:43px;border:2px solid #153451;border-radius:8px;background:#ffe138;color:#153451;box-shadow:3px 4px 0 #153451;font-family:'Barlow Condensed',Impact,sans-serif;font-weight:900;font-size:16px;letter-spacing:.7px;transition:transform .12s,box-shadow .12s}.audio-dock .audio-mute{width:45px;padding:10px}.audio-dock .audio-settings-open,body[data-stage="game"] .audio-dock .audio-settings-open{padding:9px 13px}.audio-dock svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}.audio-mute svg>path:first-child{fill:currentColor;stroke-width:1.5}.audio-mute .sound-slash{display:none}.audio-mute.is-muted .sound-slash{display:block;stroke:#e90040;stroke-width:3}.audio-mute.is-muted .sound-waves{display:none}.audio-dock button:hover{background:#fff09a;transform:translateY(-2px);box-shadow:3px 6px 0 #153451}.audio-dock button:active{transform:translate(2px,3px);box-shadow:1px 1px 0 #153451}.audio-chevron{font:800 18px Arial;transition:transform .2s}.audio-settings-open[aria-expanded="true"] .audio-chevron{transform:rotate(180deg)}.audio-settings-card{border:3px solid #153451;background:#fff8e7;box-shadow:5px 6px 0 #153451;border-radius:10px}.audio-settings-heading{border-bottom:2px solid #153451;padding-bottom:12px}.audio-settings-heading h2{font-family:'Barlow Condensed',Impact,sans-serif;font-size:29px;font-weight:900;text-transform:uppercase}.audio-settings-heading button{border:2px solid #153451;border-radius:5px;background:#ffe138;width:29px;height:29px;padding:0;font-size:17px}.audio-slider input{accent-color:#e90040}.audio-reset{border:2px solid #153451;background:#ffe138;box-shadow:2px 2px 0 #153451;border-radius:5px}.arena .quiz-listen{background:#ffe138;color:#153451;border:2px solid #153451;box-shadow:2px 3px 0 #153451;border-radius:6px;font-family:'Barlow Condensed',Impact,sans-serif;font-size:14px;font-weight:900;letter-spacing:.4px}.arena .quiz-listen:hover{background:#fff09a;color:#153451}@media(max-width:700px){.audio-dock .audio-mute,.audio-dock .audio-settings-open,body[data-stage="game"] .audio-dock .audio-settings-open{height:38px;font-size:14px}.audio-dock .audio-mute{width:39px}.audio-dock svg{width:19px;height:19px}.arena .quiz-listen{font-size:11px}}
/* Boutons cartoon cohérents avec le titre du jeu. */
.start-primary,.feedback button,#replay,#validateName,#newGame,.start-link,.skip-intro,.enable-intro-music,.typed-help button{font-family:'Barlow Condensed',Impact,Arial,sans-serif;font-weight:900;letter-spacing:.6px;border:3px solid #153451;border-radius:9px;background:#ffe138;color:#153451;box-shadow:4px 5px 0 #153451;text-decoration:none;transition:transform .12s,box-shadow .12s,background .12s}.start-primary{font-size:22px;padding:15px 30px}.feedback button,#replay,#validateName{font-size:19px;padding:12px 23px}#newGame{font-size:16px;padding:10px 17px}.start-link,.typed-help button{background:#fff8e7;color:#153451;font-size:15px;padding:9px 15px;box-shadow:3px 3px 0 #153451}.start-primary:hover,.feedback button:hover,#replay:hover,#validateName:hover,#newGame:hover,.start-link:hover,.typed-help button:hover{background:#fff091;transform:translateY(-2px);box-shadow:4px 7px 0 #153451}.start-primary:active,.feedback button:active,#replay:active,#validateName:active,#newGame:active,.start-link:active,.typed-help button:active{transform:translate(3px,4px);box-shadow:1px 1px 0 #153451}.choice{border:3px solid #153451;background:#fff8e7;border-radius:11px;box-shadow:4px 5px 0 #153451;color:#153451;font-weight:800;transition:transform .12s,box-shadow .12s,background .12s}.choice .letter{width:33px;height:33px;border:2px solid #153451;border-radius:7px;background:#ffe138;color:#153451;font-family:'Barlow Condensed',Impact,sans-serif;font-weight:900;font-size:19px;transform:rotate(-5deg);flex-shrink:0}.choice:not(:disabled):hover{background:#fff1a6;border-color:#153451;transform:translateY(-2px);box-shadow:4px 7px 0 #153451}.choice:not(:disabled):active{transform:translate(3px,4px);box-shadow:1px 1px 0 #153451}.choice:disabled{color:#647185}.choice.correct{background:#dcf5ba;border-color:#153451;color:#20472d}.choice.correct .letter{background:#7ed75b;color:#153451}.choice.wrong{background:#ffd3d5;border-color:#153451;color:#923044}.choice.wrong .letter{background:#ef4561;color:white}.settings select,.setup-options select{border:2px solid #153451;border-radius:7px;background:#fff8e7;color:#153451;font-weight:700;box-shadow:2px 3px 0 #153451}.mode-card{border:3px solid #153451;border-radius:12px;box-shadow:5px 6px 0 #153451;background:#163d79;color:#fff8e7}.mode-card:has(input:checked){border-color:#153451;background:#ffe138;color:#153451;box-shadow:5px 6px 0 #153451}.mode-card:has(input:checked) .mode-icon{color:#e90040}.typed-row input{border:3px solid #153451;border-radius:8px;background:#fffdf5}.start-primary:disabled,#validateName:disabled{opacity:.55;transform:none;box-shadow:2px 3px 0 #153451;cursor:default}#introScreen .skip-intro{border:3px solid #153451;border-radius:10px;background:#ffe138;color:#153451;box-shadow:4px 5px 0 #153451;font-family:'Barlow Condensed',Impact,sans-serif;font-size:20px;font-weight:900}#introScreen .skip-intro:hover{background:#fff091}@media(max-width:700px){.choice{padding:12px 10px;box-shadow:3px 4px 0 #153451;border-width:2px}.choice .letter{width:27px;height:27px;font-size:16px}.start-primary{font-size:20px}.feedback button,#replay,#validateName{font-size:17px;padding:11px 17px}#newGame{font-size:14px}.start-link,.typed-help button{font-size:13px}#introScreen .skip-intro{font-size:18px}}
/* Harmonisation du panneau de jeu. */
:root{--quiz-ink:#173451;--quiz-yellow:#ffe138;--quiz-paper:#fff9ed;--quiz-red:#ec1746}main{max-width:1160px}.arena{border-color:var(--quiz-ink);border-radius:10px 10px 0 0;box-shadow:5px 5px 0 var(--quiz-ink)}.round-clock{border-color:var(--quiz-ink);border-radius:0 0 8px 8px}.settings{gap:14px;padding:20px 0 22px;margin:0;border-bottom:1px solid #dddcd4;align-items:center}.settings>div strong{font-size:14px;color:var(--quiz-ink)}.settings>div span{font-size:10px;line-height:1.5;color:#6c7782}.settings label{font-size:11px;font-weight:700;gap:8px;color:var(--quiz-ink)}.settings select{min-height:39px;padding:9px 12px;font-family:Barlow,Arial,sans-serif;font-size:12px;font-weight:700;border-radius:7px;box-shadow:2px 3px 0 var(--quiz-ink)}#newGame{min-height:39px;font-size:16px;padding:8px 15px;border-width:2px;box-shadow:3px 4px 0 var(--quiz-ink)}.controls{max-width:none;margin:26px 0 0}.prompt{margin-bottom:20px;gap:20px;align-items:center}.prompt h2{font-size:clamp(23px,2.8vw,31px);line-height:1.2;letter-spacing:-.6px;margin:6px 0 0;color:var(--quiz-ink)}.eyebrow{font-size:9px;letter-spacing:1.6px;color:#667586}.score{gap:9px;background:#fff3b7;border:2px solid var(--quiz-ink);border-radius:10px;padding:8px 14px;box-shadow:3px 3px 0 var(--quiz-ink)}.score strong{font:900 32px/1 'Barlow Condensed',Impact,sans-serif}.score span{font-size:8px;letter-spacing:1px}.choices{gap:15px 17px}.choice{min-height:65px;padding:14px 18px;font-family:Barlow,Arial,sans-serif;font-size:15px;font-weight:800;gap:15px;border:2px solid var(--quiz-ink);border-radius:9px;box-shadow:3px 4px 0 var(--quiz-ink)}.choice:disabled{opacity:1;color:#4f6172;background:#f3efe6;border-color:#738292;box-shadow:3px 4px 0 #738292}.choice:disabled .letter{color:#314a60;border-color:#738292}.choice.correct:disabled{color:#24492f;background:#e0f3c3;border-color:#367c49;box-shadow:3px 4px 0 #367c49}.choice.correct:disabled .letter{background:#8ed66b;border-color:#367c49;color:#20452b}.choice.wrong:disabled{color:#8b263d;background:#ffe1e6;border-color:#bd4761;box-shadow:3px 4px 0 #bd4761}.choice.wrong:disabled .letter{background:#ec5e7b;border-color:#bd4761;color:white}.feedback{min-height:90px;padding:20px 0 0;margin-bottom:12px;align-items:center;gap:20px}.feedback p{font-family:Barlow,Arial,sans-serif;font-size:13px;color:#4f6172;margin:0;line-height:1.5}.feedback button,#validateName,#replay{border-width:2px;border-radius:8px;box-shadow:3px 4px 0 var(--quiz-ink);font-size:19px;padding:12px 22px;min-height:46px}.arena .quiz-listen{border-radius:7px;box-shadow:3px 3px 0 var(--quiz-ink);font-size:14px;padding:8px 12px}.arena .affiliation img{border:2px solid var(--quiz-ink);border-radius:8px;box-shadow:3px 3px 0 var(--quiz-ink)}.typed-row input{font-family:Barlow,Arial,sans-serif;font-size:16px;min-height:49px;border-width:2px;box-shadow:2px 3px 0 var(--quiz-ink)}@media(max-width:700px){.settings{padding:17px 0 20px;gap:12px;flex-wrap:wrap}.settings>div{flex:1 0 100%}.settings label{flex:1;min-width:120px;display:flex;flex-direction:column;align-items:stretch;gap:7px}.settings select{width:100%;font-size:11px;min-width:0}.settings #newGame{flex:1 0 auto;align-self:flex-end}.controls{margin-top:22px}.prompt h2{font-size:23px}.score{padding:7px 10px}.score strong{font-size:27px}.choices{gap:13px 12px}.choice{min-height:60px;padding:12px 10px;font-size:12px;gap:9px}.feedback{padding-top:20px;gap:15px;min-height:85px}.feedback button{font-size:17px;min-height:42px;padding:10px 17px}.feedback p{font-size:12px}.arena .quiz-listen{font-size:11px;padding:6px 9px}}

/* Décor de l’Assemblée en perspective, sous l’interface. */
body{isolation:isolate;background:#faf7ef}.hemicycle-backdrop{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none;perspective:1500px;background:radial-gradient(ellipse at 75% 45%,#ffe13812,transparent 65%)}.hemicycle-orbit{position:absolute;left:50%;top:50%;width:max(125vw,1100px);aspect-ratio:800/460;transform:translate(-50%,-50%);opacity:.15}.hemicycle-model{width:100%;height:100%;transform-style:preserve-3d;animation:hemicycle-turn 100s linear infinite;filter:drop-shadow(0 30px 8px #17345120)}.hemicycle-model svg{display:block;width:100%;height:100%;overflow:visible}body>header{background:#faf7efc9;backdrop-filter:blur(10px)}.settings,.controls,footer{position:relative}.controls{background:#faf7efe8;border-radius:14px;padding:22px;margin-top:24px}.settings{background:#faf7efb8}.hemicycle-backdrop::after{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at center,#faf7ef66 20%,transparent 80%)}@keyframes hemicycle-turn{0%{transform:rotateX(48deg) rotateZ(-22deg) rotateY(-8deg)}50%{transform:rotateX(48deg) rotateZ(158deg) rotateY(8deg)}100%{transform:rotateX(48deg) rotateZ(338deg) rotateY(-8deg)}}@media(max-width:700px){.hemicycle-orbit{width:1500px;opacity:.12}.controls{padding:17px 10px}}@media(prefers-reduced-motion:reduce){.hemicycle-model{animation:none;transform:rotateX(45deg) rotateZ(-20deg)}}

/* Structure unifiée : scène, réponses, puis options secondaires. */
body[data-stage="game"] main{width:min(948px,100%);max-width:948px;margin:20px auto 0;padding:0 24px}.arena{width:100%;max-width:none;margin:0;height:auto;aspect-ratio:16/10}.round-clock{width:100%;max-width:none;margin:0}.arena .headline{top:19%;right:1%;width:43%}.arena .headline>span{font-size:42px}.arena .headline h1{font-size:86px}.arena .headline #tagline,.arena.revealed .headline #tagline{font-size:25px}.arena .affiliation strong{font-size:17px}.arena .affiliation img{height:54px;width:90px}.controls{width:100%;max-width:none;margin:23px 0 0;padding:21px 22px 18px;background:#fffaf1;border:2px solid #173451;border-radius:12px;box-shadow:4px 5px 0 #173451}.prompt{margin:0 0 18px;gap:16px}.prompt h2{font-size:25px}.score{box-shadow:none;background:#fff0a2;padding:7px 11px}.score strong{font-size:29px}.choices{gap:13px 15px}.choice{min-height:58px;padding:11px 14px;font-size:14px}.choice .letter{width:29px;height:29px;font-size:18px}.feedback{min-height:0;padding:19px 0 0;margin:0;gap:16px}.feedback button{min-height:42px;padding:10px 18px;font-size:18px}.feedback p{font-size:12px}.game-options{margin:20px 0 0;border-top:1px solid #d9d9d0;padding:14px 0;color:#173451}.game-options summary{cursor:pointer;font-size:13px;font-weight:800;list-style-position:inside}.game-options summary span{font-size:11px;font-weight:400;color:#738090;margin-left:12px}.game-options .settings{margin:15px 0 0;padding:0 0 8px;border:0;background:transparent;display:flex;flex-wrap:wrap;gap:14px;justify-content:flex-start}.game-options .settings>div{flex:1 0 100%;display:flex;align-items:baseline;gap:10px}.game-options .settings label{display:flex;align-items:center;gap:8px}.game-options .settings #newGame{margin-left:auto}.game-options .settings select{min-width:160px}footer{width:min(948px,100%);margin:0 auto;padding-top:12px}body[data-stage="game"]>header{padding:0 max(24px,calc((100vw - 900px)/2))}.hemicycle-orbit{opacity:.08}@media(max-width:700px){body[data-stage="game"] main{padding:0 14px;margin-top:14px}.arena{aspect-ratio:4/3}.arena .headline{top:22%;right:1%;width:43%}.arena .headline>span{font-size:clamp(16px,4vw,28px)}.arena .headline h1{font-size:clamp(30px,7.8vw,55px)}.arena .headline #tagline,.arena.revealed .headline #tagline{font-size:clamp(14px,3.4vw,22px)}.arena .affiliation strong{font-size:clamp(10px,2.6vw,16px)}.arena .affiliation img{width:65px;height:41px}.controls{padding:16px 13px;margin-top:19px;box-shadow:3px 4px 0 #173451}.prompt h2{font-size:21px}.choice{font-size:12px;min-height:59px;padding:10px 8px;gap:8px}.choice .letter{width:24px;height:25px;font-size:15px}.choices{gap:12px}.score span{display:none}.score{padding:7px 10px}.feedback{padding-top:17px}.game-options summary span{display:none}.game-options .settings label{min-width:0;flex:1 1 42%;align-items:stretch}.game-options .settings select{min-width:0}.game-options .settings>div{display:block}.game-options .settings #newGame{margin-left:0;flex:1 0 100%}body[data-stage="game"]>header{padding:0 16px}}

.depudex-open{margin-left:auto;border:2px solid #173451;background:#ffe138;color:#173451;padding:8px 13px;border-radius:7px;box-shadow:2px 3px 0 #173451;font:900 16px 'Barlow Condensed',Impact,sans-serif;letter-spacing:.5px}.depudex-open span{font:700 10px Barlow,Arial,sans-serif;margin-left:8px}header .header-progress{margin-right:0;margin-left:12px}.depudex-panel{position:fixed;inset:0;z-index:120;background:#faf7ef;overflow:auto;padding:28px max(22px,calc((100vw - 1280px)/2))}.dex-top{display:flex;align-items:center;justify-content:space-between;gap:20px}.dex-top h2{font:900 45px 'Barlow Condensed',Impact,sans-serif;margin:4px 0;color:#173451}.dex-top p{font-size:13px;color:#667586;margin:5px 0}.dex-top>button{width:42px;height:42px;border:2px solid #173451;border-radius:8px;background:#ffe138;color:#173451;box-shadow:3px 3px 0 #173451;font-size:23px}.dex-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px;margin-top:20px}.dex-stage{min-width:0}.dex-viewport{height:min(65vh,610px);min-height:390px;overflow:hidden;position:relative;perspective:1100px;background:radial-gradient(ellipse,#fff8df,#ece7dc);border:2px solid #173451;border-radius:16px;touch-action:pan-y;cursor:grab}.dex-viewport:active{cursor:grabbing}.dex-world{position:absolute;width:920px;height:570px;left:50%;top:50%;transform-style:preserve-3d;transform:translate(-50%,-50%) scale(.8) rotateX(var(--dex-tilt,48deg)) rotateZ(var(--dex-rotation,0deg));transform-origin:center 55%}.dex-floor{position:absolute;left:9px;top:20px;width:902px;height:495px;background:linear-gradient(#e9ddbd,#fff5d7);border:5px solid #b9ab8d;border-radius:460px 460px 15px 15px;box-shadow:0 12px 0 #9e947e,0 23px 35px #17345140;transform:translateZ(-5px)}.dex-rostrum{position:absolute;left:349px;top:412px;width:222px;height:82px;border-radius:100px 100px 10px 10px;background:#173451;color:#ffe138;font:800 12px Barlow,Arial,sans-serif;letter-spacing:1px;text-align:center;padding-top:38px;transform:translateZ(6px);border:4px solid #ffe138}#dexSeats{transform-style:preserve-3d}.dex-seat{position:absolute;width:13px;height:17px;padding:0;border:0;background:none;transform:rotateZ(var(--seat-rotation));transform-style:preserve-3d;--chair:#c1c5c6;cursor:pointer}.dex-seat.discovered{--chair:var(--seat-color)}.dex-seat i{position:absolute;display:block;pointer-events:none}.seat-top{width:13px;height:15px;background:var(--chair);border:1px solid #17345155;border-radius:3px;transform:translateZ(9px)}.seat-back{left:0;top:0;width:13px;height:17px;background:var(--chair);border:1px solid #17345166;transform-origin:top;transform:translateZ(9px) rotateX(90deg);border-radius:3px}.seat-front{left:0;top:14px;width:13px;height:9px;background:var(--chair);filter:brightness(.7);transform-origin:top;transform:translateZ(9px) rotateX(90deg)}.seat-side{left:0;top:0;width:9px;height:15px;background:var(--chair);filter:brightness(.8);transform-origin:left;transform:translateZ(9px) rotateY(90deg)}.dex-seat.discovered:hover .seat-top,.dex-seat:focus-visible .seat-top{background:#ffe138;box-shadow:0 0 0 3px #173451}.dex-camera{display:flex;gap:20px;justify-content:center;margin:18px 0 0}.dex-camera label{font-size:11px;font-weight:700;display:flex;align-items:center;gap:9px}.dex-camera input{accent-color:#e90040;width:120px}.dex-hint{text-align:center;font-size:11px;line-height:1.5;color:#6d7a88}.dex-profile{background:#fffaf1;border:2px solid #173451;border-radius:14px;padding:20px;box-shadow:4px 5px 0 #173451;align-self:start;text-align:center}.dex-empty-icon{display:grid;place-items:center;font:900 65px 'Barlow Condensed',Impact,sans-serif;background:#ffe138;border:3px solid #173451;border-radius:50%;width:95px;height:95px;margin:20px auto;color:#173451}.dex-profile h3{font-size:23px;line-height:1.2;color:#173451}.dex-profile p{font-size:13px;line-height:1.6;color:#637184}.dex-profile small{font-size:10px;color:#72808b;line-height:1.5;display:block}.dex-portrait{background:repeating-conic-gradient(#fff4b9 0 10deg,#ffe138 10deg 20deg);border-radius:10px;overflow:hidden;margin-bottom:20px}.dex-portrait img{width:100%;display:block}.dex-logo{width:100px;height:65px;object-fit:contain;background:white;padding:5px;border-radius:5px}.dex-progress-track{height:10px;background:#e4e7e5;border:1px solid #173451;border-radius:6px;overflow:hidden;margin:23px 0 14px}#dexProgress{height:100%;background:#ffe138;width:0}@media(max-width:950px){.dex-layout{grid-template-columns:1fr}.dex-profile{display:block;max-width:500px;width:100%;margin:0 auto}.dex-portrait{max-width:200px;margin:0 auto 15px}.dex-world{transform:translate(-50%,-50%) scale(.7) rotateX(var(--dex-tilt,48deg)) rotateZ(var(--dex-rotation,0deg))}.dex-viewport{min-height:330px;height:49vh}}@media(max-width:600px){.dex-world{transform:translate(-50%,-50%) scale(.42) rotateX(var(--dex-tilt,48deg)) rotateZ(var(--dex-rotation,0deg))}.dex-viewport{height:310px;min-height:0}.depudex-panel{padding:20px 14px}.dex-camera{gap:12px}.dex-camera input{width:85px}.depudex-open{font-size:13px;padding:7px 9px}.depudex-open span{font-size:8px;margin-left:4px}header .header-progress{margin-left:0}.dex-top h2{font-size:36px}}

/* Une zone rouge dégagée et une identité plus aérée. */
.arena{--burst-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22900%22%20height%3D%22675%22%20viewBox%3D%220%200%20900%20675%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20transform%3D%22translate(-8%200)%20scale(.82%201)%22%20d%3D%22M621.00%2C317.25L585.83%2C335.20L551.10%2C349.67L583.16%2C370.97L628.03%2C398.44L577.82%2C406.33L550.73%2C416.43L569.87%2C441.00L603.85%2C474.56L559.36%2C474.74L519.82%2C473.00L546.38%2C507.28L560.67%2C537.65L531.02%2C538.37L497.90%2C533.19L513.40%2C567.78L521.64%2C599.30L493.65%2C595.29L464.38%2C586.48L471.92%2C620.67L485.34%2C667.29L448.39%2C643.75L414.24%2C618.07L423.22%2C664.35L434.27%2C722.60L396.61%2C682.30L371.65%2C662.22L368.77%2C697.47L367.31%2C745.28L339.90%2C709.75L317.41%2C681.04L310.22%2C719.04L299.10%2C748.67L279.97%2C725.28L261.48%2C684.31L249.36%2C728.41L234.00%2C759.12L218.64%2C728.41L205.42%2C698.93L188.03%2C725.28L165.47%2C771.45L157.78%2C719.04L151.59%2C676.68L128.10%2C709.75L97.28%2C756.21L99.23%2C697.47L99.52%2C654.26L71.39%2C682.30L41.13%2C707.63L44.78%2C664.35L45.91%2C631.17L19.61%2C643.75L-6.16%2C651.72L-3.92%2C620.67L10.96%2C577.90L-25.65%2C595.29L-58.28%2C603.86L-45.40%2C567.78L-29.80%2C533.11L-63.02%2C538.37L-110.36%2C549.59L-78.38%2C507.28L-61.37%2C478.20L-91.36%2C474.74L-139.80%2C476.24L-101.87%2C441.00L-69.54%2C412.30L-109.82%2C406.33L-141.99%2C394.73L-115.16%2C370.97L-90.38%2C350.41L-117.83%2C335.20L-139.59%2C317.25L-117.83%2C299.30L-87.18%2C284.41L-115.16%2C263.53L-145.61%2C239.03L-109.82%2C228.17L-70.49%2C221.91L-101.87%2C193.50L-141.54%2C157.52L-91.36%2C159.76L-63.11%2C155.35L-78.38%2C127.22L-107.98%2C86.52L-63.02%2C96.13L-26.93%2C103.74L-45.40%2C66.72L-55.81%2C33.07L-25.65%2C39.21L9.08%2C54.40L-3.92%2C13.83L-6.89%2C-18.23L19.61%2C-9.25L45.89%2C3.30L44.78%2C-29.85L39.24%2C-76.97L71.39%2C-47.80L100.66%2C-16.90L99.23%2C-62.97L97.02%2C-122.57L128.10%2C-75.25L150.68%2C-46.13L157.78%2C-84.54L166.06%2C-133.04L188.03%2C-90.78L205.59%2C-62.26L218.64%2C-93.91L234.00%2C-121.71L249.36%2C-93.91L261.39%2C-48.59L279.97%2C-90.78L299.47%2C-116.64L310.22%2C-84.54L318.25%2C-50.20L339.90%2C-75.25L368.54%2C-114.71L368.77%2C-62.97L370.31%2C-24.34L396.61%2C-47.80L434.09%2C-87.74L423.22%2C-29.85L414.78%2C15.55L448.39%2C-9.25L482.93%2C-29.43L471.92%2C13.83L465.78%2C46.39L493.65%2C39.21L520.47%2C36.35L513.40%2C66.72L495.02%2C103.66L531.02%2C96.13L563.25%2C95.11L546.38%2C127.22L522.19%2C160.21L559.36%2C159.76L606.70%2C158.73L569.87%2C193.50L550.82%2C218.05L577.82%2C228.17L626.59%2C236.35L583.16%2C263.53L548.37%2C285.11L585.83%2C299.30Z%22%20fill%3D%22white%22%20stroke%3D%22white%22%20stroke-width%3D%221.2%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");--burst-clip:polygon(55.69% 47.00%,52.49% 49.66%,49.32% 51.80%,52.24% 54.96%,56.33% 59.03%,51.76% 60.20%,49.29% 61.69%,51.03% 65.33%,54.13% 70.31%,50.08% 70.33%,46.47% 70.07%,48.89% 75.15%,50.19% 79.65%,47.49% 79.76%,44.48% 78.99%,45.89% 84.12%,46.64% 88.79%,44.09% 88.19%,41.42% 86.89%,42.11% 91.95%,43.33% 98.86%,39.96% 95.37%,36.85% 91.57%,37.67% 98.42%,38.68% 107.05%,35.25% 101.08%,32.97% 98.11%,32.71% 103.33%,32.58% 110.41%,30.08% 105.15%,28.03% 100.89%,27.38% 106.52%,26.36% 110.91%,24.62% 107.45%,22.93% 101.38%,21.83% 107.91%,20.43% 112.46%,19.03% 107.91%,17.83% 103.55%,16.24% 107.45%,14.19% 114.29%,13.49% 106.52%,12.92% 100.25%,10.78% 105.15%,7.97% 112.03%,8.15% 103.33%,8.18% 96.93%,5.62% 101.08%,2.86% 104.83%,3.19% 98.42%,3.29% 93.51%,0.90% 95.37%,-1.45% 96.55%,-1.25% 91.95%,0.11% 85.61%,-3.23% 88.19%,-6.20% 89.46%,-5.03% 84.12%,-3.60% 78.98%,-6.63% 79.76%,-10.94% 81.42%,-8.03% 75.15%,-6.48% 70.84%,-9.21% 70.33%,-13.63% 70.55%,-10.17% 65.33%,-7.22% 61.08%,-10.89% 60.20%,-13.83% 58.48%,-11.38% 54.96%,-9.12% 51.91%,-11.62% 49.66%,-13.61% 47.00%,-11.62% 44.34%,-8.83% 42.13%,-11.38% 39.04%,-14.16% 35.41%,-10.89% 33.80%,-7.31% 32.88%,-10.17% 28.67%,-13.78% 23.34%,-9.21% 23.67%,-6.64% 23.01%,-8.03% 18.85%,-10.73% 12.82%,-6.63% 14.24%,-3.34% 15.37%,-5.03% 9.88%,-5.97% 4.90%,-3.23% 5.81%,-0.06% 8.06%,-1.25% 2.05%,-1.52% -2.70%,0.90% -1.37%,3.29% 0.49%,3.19% -4.42%,2.69% -11.40%,5.62% -7.08%,8.28% -2.50%,8.15% -9.33%,7.95% -18.16%,10.78% -11.15%,12.84% -6.83%,13.49% -12.52%,14.24% -19.71%,16.24% -13.45%,17.84% -9.22%,19.03% -13.91%,20.43% -18.03%,21.83% -13.91%,22.93% -7.20%,24.62% -13.45%,26.40% -17.28%,27.38% -12.52%,28.11% -7.44%,30.08% -11.15%,32.69% -16.99%,32.71% -9.33%,32.85% -3.61%,35.25% -7.08%,38.66% -13.00%,37.67% -4.42%,36.90% 2.30%,39.96% -1.37%,43.11% -4.36%,42.11% 2.05%,41.55% 6.87%,44.09% 5.81%,46.53% 5.39%,45.89% 9.88%,44.21% 15.36%,47.49% 14.24%,50.43% 14.09%,48.89% 18.85%,46.69% 23.73%,50.08% 23.67%,54.39% 23.52%,51.03% 28.67%,49.30% 32.30%,51.76% 33.80%,56.20% 35.01%,52.24% 39.04%,49.07% 42.24%,52.49% 44.34%)}
.arena .headline{right:2%;width:43%;top:20%}.arena .headline>span{font-size:40px}.arena .headline h1{font-size:83px}.arena.revealed .headline #tagline{font-size:25px;line-height:1.25;margin-top:27px;margin-bottom:26px;text-wrap:balance}.arena .affiliation{gap:13px;max-width:94%}.arena .affiliation strong{font-size:16px;line-height:1.35;font-weight:700}.arena .affiliation img{width:99px;height:61px;padding:8px 10px;border:2px solid #173451;border-radius:9px;background:#fffaf1;box-shadow:3px 4px 0 #173451}.arena .quiz-listen{top:14px;right:14px}.arena .burst{background-position:0 0}@media(max-width:700px){.arena .headline{right:2%;width:43%;top:23%}.arena .headline>span{font-size:clamp(16px,3.8vw,27px)}.arena .headline h1{font-size:clamp(29px,7.5vw,53px)}.arena.revealed .headline #tagline{font-size:clamp(13px,3.1vw,20px);margin-top:18px;margin-bottom:17px}.arena .affiliation{gap:9px}.arena .affiliation strong{font-size:clamp(9px,2.3vw,14px)}.arena .affiliation img{width:70px;height:44px;padding:5px 7px}}

/* Dépudex : navigation lisible, zoom et accès direct aux fiches. */
.dex-layout{grid-template-columns:minmax(0,1fr) 310px;align-items:start}.dex-viewport{height:560px;min-height:0;perspective:1500px}.dex-world{transform:translate(-50%,-50%) scale(calc(.78 * var(--dex-zoom,1))) rotateX(var(--dex-tilt,35deg)) rotateZ(var(--dex-rotation,0deg));transition:transform .12s ease-out}.dex-seat{width:19px;height:23px; margin:-3px;outline-offset:5px}.dex-seat.discovered::after{content:'';position:absolute;width:6px;height:6px;left:3px;top:4px;border-radius:50%;background:#fff5b5;transform:translateZ(11px);pointer-events:none}.dex-seat.selected .seat-top{background:#ffe138;box-shadow:0 0 0 4px #173451}.dex-seat.discovered:hover{filter:brightness(1.3)}.dex-seat:not(.discovered){cursor:default}.dex-zoom{display:flex;justify-content:center;gap:8px;margin-top:15px}.dex-zoom button{border:2px solid #173451;border-radius:6px;background:#ffe138;color:#173451;min-width:37px;height:34px;font-weight:800;box-shadow:2px 2px 0 #173451}.dex-zoom button:nth-child(2){font-size:11px;padding:0 14px}.dex-camera{margin-top:15px}.dex-profile{padding:17px}.dex-search-label{display:block;font-size:11px;font-weight:800;text-align:left;margin-bottom:8px}.dex-search{width:100%;border:2px solid #173451;border-radius:7px;padding:10px;font-size:13px;background:white}.dex-list{max-height:165px;overflow:auto;display:flex;flex-direction:column;gap:5px;margin:10px 0 19px;padding:2px}.dex-list button{padding:9px 10px;border:1px solid #d1d8dc;border-radius:5px;background:white;color:#173451;text-align:left;font-size:12px;font-weight:700}.dex-list button:hover,.dex-list button:focus-visible{background:#fff1a0;border-color:#173451}.dex-list p{margin:3px 0;font-size:11px}.dex-portrait{max-width:170px;margin:0 auto 15px}.dex-profile h3{font-size:22px;margin:10px 0}.dex-profile p{margin:8px 0}.dex-empty-icon{width:65px;height:65px;font-size:42px;margin:12px auto}.dex-top{position:sticky;top:-28px;z-index:5;background:#faf7ef;padding:10px 0}.dex-rostrum{pointer-events:none}@media(max-width:1000px){.dex-layout{grid-template-columns:1fr}.dex-profile{width:100%;max-width:none}.dex-viewport{height:470px}.dex-list{max-height:145px;display:grid;grid-template-columns:1fr 1fr}.dex-world{transform:translate(-50%,-50%) scale(calc(.75 * var(--dex-zoom,1))) rotateX(var(--dex-tilt,35deg)) rotateZ(var(--dex-rotation,0deg))}}@media(max-width:600px){.dex-viewport{height:320px}.dex-world{transform:translate(-50%,-50%) scale(calc(.4 * var(--dex-zoom,1))) rotateX(var(--dex-tilt,35deg)) rotateZ(var(--dex-rotation,0deg))}.dex-camera{flex-wrap:wrap}.dex-list{grid-template-columns:1fr 1fr}.dex-top{top:-20px}.dex-layout{gap:16px}}

.menu-depudex{margin:18px auto 0;min-width:220px;background:#fff8e7;font-size:17px;padding:11px 20px}#setupScreen .menu-depudex{display:inline-block;margin:20px 8px 0}#setupScreen #replayIntro{display:inline-block;margin:20px 8px 0}

.dex-reset-collection{display:block;margin:22px auto 0;padding:9px 12px;border:2px solid #173451;border-radius:6px;background:#fff1e8;color:#a22f4b;font-size:11px;font-weight:800}.dex-reset-confirm{margin-top:12px;padding:12px;border:2px solid #bd4761;border-radius:8px;background:#ffe5e9}.dex-reset-confirm p{font-size:12px;color:#8b263d;margin:0 0 12px}.dex-reset-confirm button{padding:8px 10px;border:2px solid #173451;border-radius:5px;background:#fffaf1;color:#173451;font-size:11px;font-weight:800;margin:3px}#dexResetAccept{background:#ed2854;color:white}

/* Places officielles et portraits visibles au-dessus des sièges débloqués. */
.dex-floor{top:5px;height:530px}.dex-rostrum{top:440px}.seat-portrait{position:absolute;left:6px;top:1px;width:31px;height:39px;max-width:none;object-fit:cover;object-position:center 20%;border:2px solid #173451;border-radius:8px 8px 5px 5px;background:#fff5c3;transform-origin:bottom center;transform:translate(-50%,-100%) translateZ(32px) rotateZ(calc(-1 * var(--dex-rotation,0deg))) rotateX(calc(-1 * var(--dex-tilt,35deg)));pointer-events:none;box-shadow:0 2px 5px #17345144}.dex-seat:not(.discovered) .seat-portrait{display:none}.dex-seat.selected .seat-portrait,.dex-seat.discovered:hover .seat-portrait{width:43px;height:53px;border-color:#e90040;background:#ffe138}.seat-number{position:absolute;left:0;top:3px;width:13px;text-align:center;font:800 6px Arial;color:#173451;transform:translateZ(11px);pointer-events:none}.dex-seat.discovered .seat-number{background:#fff8dd;border-radius:2px}.dex-seat.discovered::after{display:none}.dex-world{--dex-tilt:35deg}

/* Dépudex TCG : piles de groupes en hémicycle et cartes à collectionner. */
.dex-stage>.dex-viewport,.dex-stage>.dex-zoom,.dex-stage>.dex-camera,.dex-stage>.dex-hint,.dex-list{display:none}.dex-layout{grid-template-columns:minmax(0,1fr) 280px}.dex-card-hemicycle{height:270px;position:relative;background:radial-gradient(ellipse at 50% 100%,#ffe13833,transparent 70%);border-bottom:2px solid #17345133;margin:0 0 22px}.dex-group-arc{position:absolute;inset:0}.dex-group-stack{position:absolute;width:62px;height:84px;transform:translate(-50%,-50%) rotate(var(--fan-angle));border:2px solid #173451;border-radius:7px;background:#ffe138;padding:5px;box-shadow:2px 3px 0 #173451,5px 6px 0 #fff8e7,6px 7px 0 #173451;color:#173451;transition:translate .15s}.dex-group-stack:hover,.dex-group-stack.active{translate:0 -9px;background:#fff2a0;outline:3px solid #e90040;outline-offset:3px}.group-stack-cover{display:grid;place-items:center;width:100%;height:49px;background:white;border-radius:4px}.group-stack-cover img{width:100%;height:100%;object-fit:contain;padding:4px}.dex-group-stack strong{display:block;font-size:10px;margin-top:7px}.dex-arc-caption{position:absolute;bottom:14px;left:0;right:0;text-align:center;font-size:9px;letter-spacing:2px;font-weight:800;color:#75818a}.dex-card-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:18px}.dex-card-toolbar h3{font-size:16px;color:#173451;margin:0;flex:1 0 100%}.dex-card-toolbar button{background:#ffe138;border:2px solid #173451;border-radius:5px;padding:7px 10px;font-size:11px;font-weight:700}.dex-card-toolbar label{font-size:11px;display:flex;align-items:center;gap:6px}.dex-card-toolbar input{accent-color:#e90040}.dex-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:16px}.dex-collect-card{display:flex;flex-direction:column;text-align:left;min-width:0;padding:8px;border:3px solid #173451;border-radius:11px;background:linear-gradient(135deg,#fff3b9,#ffe138);box-shadow:3px 4px 0 #173451;color:#173451;transition:transform .15s}.dex-collect-card.unlocked:hover{transform:translateY(-5px) rotate(-1deg)}.collect-number{font:800 8px Barlow,Arial,sans-serif;letter-spacing:.6px;padding:3px 2px 7px}.collect-art{display:grid;place-items:center;aspect-ratio:1/1.1;width:100%;overflow:hidden;border:2px solid #173451;border-radius:6px;background:repeating-conic-gradient(from 5deg,#fff7d1 0 10deg,var(--card-color) 10deg 20deg);font:900 70px 'Barlow Condensed',Impact,sans-serif}.collect-art img{width:120%;height:120%;object-fit:contain;align-self:end;max-width:none}.dex-collect-card>strong{font-size:13px;line-height:1.2;margin:10px 0 6px;min-height:31px}.collect-group{font-size:9px;line-height:1.3;border-top:1px solid #17345133;padding-top:6px;min-height:31px}.locked .collect-art{background:repeating-linear-gradient(45deg,#dce1e2 0 9px,#e7ebeb 9px 18px);border-color:#a5adb1;color:#8d9aa2}.dex-profile{position:sticky;top:100px;max-height:calc(100svh - 130px);overflow:auto}.dex-search-label{font-size:11px}.dex-profile .dex-search{margin-bottom:20px}.dex-progress-track{margin-top:20px}@media(max-width:1000px){.dex-layout{grid-template-columns:1fr}.dex-profile{position:static;max-height:none;grid-row:1}.dex-profile #dexEmpty{display:none}.dex-profile .dex-progress-track,.dex-profile>small,.dex-profile>.dex-reset-collection{display:none}.dex-profile .dex-search{margin-bottom:0}.dex-card-hemicycle{height:270px}.dex-cards{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}}@media(max-width:600px){.dex-card-hemicycle{height:190px}.dex-group-stack{width:38px;height:58px;padding:3px;border-radius:5px}.group-stack-cover{height:31px}.group-stack-cover img{padding:2px}.dex-group-stack strong{font-size:7px;margin-top:5px}.dex-arc-caption{font-size:7px;letter-spacing:1px;bottom:5px}.dex-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.dex-collect-card>strong{font-size:13px}}
@media(max-width:1000px){.dex-profile>.dex-reset-collection{display:block;margin-top:14px}}

/* Dépudex de poche : coque rouge, écrans et commandes physiques. */
.depudex-panel{background:linear-gradient(120deg,#e32648,#bb1236);color:#fff7e7;padding:24px max(22px,calc((100vw - 1280px)/2));border:8px solid #173451;box-shadow:inset 0 0 0 3px #f26478}.dex-top{position:relative;top:auto;background:transparent;padding:0 0 21px;border-bottom:3px solid #86152e;box-shadow:0 2px 0 #ff6b7e;justify-content:flex-start;gap:23px}.dex-top .eyebrow{color:#ffd2bd;font-size:8px;letter-spacing:2px}.dex-top h2{color:#fff3be;font-size:40px;letter-spacing:3px;text-shadow:2px 3px 0 #173451;margin:2px 0}.dex-top p{color:#fff0d1;font-size:11px}.dex-top>button{margin-left:auto;background:#fff3b1;flex-shrink:0}.dex-device-lights{display:flex;gap:7px;align-self:flex-start;align-items:flex-start;padding-top:8px}.dex-device-lights i{width:62px;height:62px;border:5px solid #f7f1da;border-radius:50%;background:radial-gradient(circle at 32% 27%,white 0 7%,#a0f2ff 9% 21%,#39bbe4 36%,#126aa9 75%);box-shadow:0 0 0 3px #173451,0 5px 0 #82152e}.dex-device-lights b{width:12px;height:12px;border:2px solid #173451;border-radius:50%;background:#ffda3d;margin-top:0;box-shadow:inset 2px 2px 0 #fff6}.dex-device-lights b:nth-child(3){background:#54d68a}.dex-device-lights b:nth-child(4){background:#fa727b}.dex-layout{margin-top:25px;gap:26px;grid-template-columns:minmax(0,1fr) 290px}.dex-stage{background:#dce0d6;border:4px solid #173451;border-radius:15px 15px 15px 35px;box-shadow:5px 7px 0 #86152e,inset 0 0 0 3px #f2f1df;padding:18px;color:#173451;position:relative}.dex-stage::after{content:'▰ ▰ ▰';display:block;text-align:right;font-size:14px;letter-spacing:4px;color:#17345199;padding-top:15px}.dex-card-hemicycle{height:240px;margin-bottom:14px;border:3px solid #233e43;border-radius:9px;background:radial-gradient(ellipse at 50% 100%,#d4ebae,#94b5a4);box-shadow:inset 0 3px 10px #17345133}.dex-arc-caption{color:#31564b;font-size:8px}.dex-group-stack{border-radius:4px;box-shadow:2px 3px 0 #244b40,4px 5px 0 #c4d8b6;background:#d3e9b6}.dex-group-stack:hover,.dex-group-stack.active{background:#ffe138;outline-color:#c41a3d}.dex-screen-caption{display:flex;justify-content:space-between;gap:10px;font:800 8px/1.5 monospace;letter-spacing:1px;padding:5px 0 12px;color:#36584c}.dex-card-toolbar{padding-bottom:14px;border-bottom:2px solid #aebcb0}.dex-card-toolbar h3{font-family:monospace;font-size:14px}.dex-card-toolbar button{background:#173451;color:#e0f0c5;border-radius:4px;font-size:10px}.dex-cards{max-height:50svh;overflow:auto;padding:3px 7px 10px 2px;grid-template-columns:repeat(auto-fill,minmax(125px,1fr));gap:14px}.dex-collect-card{border-width:2px;border-radius:6px;box-shadow:2px 3px 0 #173451}.collect-art{border-width:1px;border-radius:3px}.dex-profile{position:sticky;top:20px;padding:19px;background:#9fbba0;border:4px solid #173451;border-radius:12px;box-shadow:5px 7px 0 #86152e,inset 0 0 0 3px #cfe0bb;color:#173451;max-height:calc(100svh - 50px)}.dex-profile::before{content:'FICHE · DÉPUTÉ';display:block;text-align:left;font:800 10px monospace;letter-spacing:2px;margin-bottom:17px;border-bottom:2px solid #17345155;padding-bottom:10px}.dex-profile .eyebrow{color:#355648}.dex-profile h3{font-family:'Barlow Condensed',Impact,sans-serif;font-size:27px;font-weight:900}.dex-profile p,.dex-profile small{color:#304e43}.dex-portrait{background:repeating-conic-gradient(#b7d1aa 0 10deg,#93b995 10deg 20deg);border:2px solid #173451;border-radius:5px;max-width:190px}.dex-search{border-radius:4px;background:#dfebcf;font-family:monospace;font-size:12px}.dex-logo{background:#e9efd9}.dex-progress-track{background:#6f937c;border-color:#173451;border-radius:3px}.dex-empty-icon{background:#bdd3a8;border-radius:8px;color:#315543;box-shadow:3px 3px 0 #173451}.dex-reset-collection{background:#173451;color:#f6e6c2;border-radius:4px}.dex-reset-confirm{background:#ffe0cf;color:#173451}.dex-reset-confirm p{color:#7b2138}.dex-profile .dex-search-label{font-family:monospace;font-size:10px}.dex-cards::-webkit-scrollbar{width:8px}.dex-cards::-webkit-scrollbar-thumb{background:#648878;border-radius:4px}.dex-cards::-webkit-scrollbar-track{background:#c1cebd}@media(max-width:1000px){.dex-layout{grid-template-columns:1fr}.dex-profile{position:static;grid-row:auto;max-height:none}.dex-profile #dexEmpty{display:none}.dex-profile:has(#dexIdentity[hidden]){padding-bottom:15px}.dex-cards{max-height:52svh}.dex-card-hemicycle{height:250px}}@media(max-width:600px){.depudex-panel{border-width:4px;padding:18px 12px}.dex-top{gap:14px;padding-bottom:16px}.dex-device-lights{gap:4px}.dex-device-lights i{width:42px;height:42px;border-width:4px}.dex-device-lights b{width:9px;height:9px}.dex-top h2{font-size:29px;letter-spacing:2px}.dex-top .eyebrow{font-size:6px;letter-spacing:1px}.dex-top p{font-size:9px}.dex-top>button{width:34px;height:34px;font-size:18px}.dex-layout{margin-top:20px;gap:20px}.dex-stage{padding:11px;border-width:3px;border-bottom-left-radius:24px}.dex-card-hemicycle{height:175px}.dex-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.dex-screen-caption{font-size:6px;letter-spacing:.5px}.dex-profile{border-width:3px;padding:15px}.dex-card-toolbar label{font-size:10px}.dex-collect-card>strong{font-size:12px}}

.dex-discovery-card{width:220px;padding:12px;border:4px solid #173451;border-radius:14px;background:linear-gradient(135deg,#fff7b1,#ffe138);box-shadow:6px 8px 0 #17345166;color:#173451;display:flex;flex-direction:column;text-align:center;pointer-events:none}.dex-discovery-card small{font:900 10px Barlow,Arial,sans-serif;letter-spacing:1px;padding:5px 0 10px}.dex-discovery-card img{display:block;width:100%;aspect-ratio:1;background:repeating-conic-gradient(#fff2b3 0 10deg,#f5c34b 10deg 20deg);object-fit:contain;border:2px solid #173451;border-radius:7px}.dex-discovery-card strong{font:900 23px/1.1 'Barlow Condensed',Impact,sans-serif;margin:13px 0 5px}.dex-flying-card{position:fixed;width:130px;z-index:110;padding:7px;border-width:3px;box-shadow:3px 4px 0 #17345166}.dex-flying-card small{font-size:6px;padding:3px 0 5px}.dex-flying-card strong{font-size:16px;margin-top:7px}.dex-discovery-overlay{position:fixed;inset:0;z-index:150;display:flex;align-items:center;justify-content:center;background:#07162c99;backdrop-filter:blur(3px);pointer-events:auto}.dex-discovery-banner{position:absolute;top:8%;left:20px;right:20px;text-align:center;color:#fff7c4}.dex-discovery-banner p{font:900 clamp(23px,4vw,36px) 'Barlow Condensed',Impact,sans-serif;text-shadow:2px 3px 0 #173451;margin:0 0 15px}.dex-discovery-banner button{pointer-events:auto;padding:9px 15px;border:2px solid #173451;border-radius:7px;background:#ffe138;color:#173451;font-weight:800;box-shadow:3px 4px 0 #173451}.dex-just-filed{animation:dex-file-flash .7s ease-out}@keyframes dex-file-flash{0%,50%{box-shadow:0 0 0 5px #ffe138,0 0 30px #ffe138}100%{box-shadow:2px 3px 0 #173451}}

/* Capture : le portrait devient une carte et entre dans le Dépudex. */
.dex-capture-scene{position:fixed;inset:0;z-index:115;pointer-events:none;overflow:hidden;perspective:1100px}.capture-portrait{position:absolute;width:225px;height:225px;object-fit:contain;transform:translate(-50%,-50%);filter:drop-shadow(0 0 15px #fff5b0);animation:capture-portrait-lift .45s ease-out both;transition:opacity .25s,filter .3s,transform .4s}.capture-card{position:absolute;width:170px;opacity:0;transform:translate(-50%,-50%) rotateY(90deg) scale(.6);transition:opacity .15s,transform .6s cubic-bezier(.2,1.3,.4,1);z-index:4;box-shadow:0 0 0 3px #fff3a7,0 0 35px #ffe138,6px 8px 0 #17345166}.capture-card strong{font-size:21px}.capture-card small{font-size:8px}.card-formed .capture-card{opacity:1;transform:translate(-50%,-50%) rotateY(0) rotate(-5deg) scale(1)}.card-formed .capture-portrait{opacity:0;filter:brightness(4) drop-shadow(0 0 35px #ffe138);transform:translate(-50%,-50%) scale(.65)}.capture-burst{position:absolute;width:280px;height:280px;background:repeating-conic-gradient(#ffe13800 0 10deg,#ffe138bb 11deg 15deg,#fff5b900 16deg 30deg);border-radius:50%;mix-blend-mode:screen;animation:capture-starburst 1.7s ease-out both;z-index:0}.capture-spark{position:absolute;width:10px;height:10px;background:#fff1a3;clip-path:polygon(50% 0,62% 37%,100% 50%,62% 63%,50% 100%,38% 63%,0 50%,38% 37%);animation:capture-spark-out 1.4s var(--spark-delay) ease-out both;z-index:5}.capture-device{position:absolute;left:77%;top:28%;width:185px;height:240px;transform:translateX(-50%) translateY(40px) scale(.7);opacity:0;transition:opacity .4s,transform .4s;perspective:800px;z-index:3}.device-open .capture-device{opacity:1;transform:translateX(-50%) scale(1)}.capture-device-back,.capture-device-cover{position:absolute;inset:0;background:linear-gradient(125deg,#f83b58,#c11037);border:4px solid #173451;border-radius:16px;box-shadow:5px 7px 0 #17345166}.capture-device-back{padding:15px}.capture-device-back>strong{display:block;font:900 20px 'Barlow Condensed',Impact,sans-serif;letter-spacing:2px;color:#fff1a3;text-shadow:1px 2px #173451;margin-top:18px}.capture-device-light{display:block;width:29px;height:29px;background:radial-gradient(circle at 30% 25%,white,#3ac6ec 45%,#1468a3);border:3px solid #fff5d7;border-radius:50%;box-shadow:0 0 0 2px #173451}.capture-device-screen{margin-top:15px;padding:16px 5px;background:#b5d8a0;border:4px solid #173451;border-radius:7px;text-align:center;color:#294e3b;font:800 9px/1.8 monospace}.capture-device-screen b{font-size:8px}.capture-slot{height:12px;margin:17px 9px 0;background:#102c38;border:2px solid #7a1129;border-radius:7px;box-shadow:0 2px 0 #ff8695}.capture-device-cover{transform-origin:left center;transition:transform .6s ease-in-out;backface-visibility:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px}.capture-device-cover span{width:70px;height:70px;border-radius:50%;border:6px solid #173451;background:radial-gradient(circle,#fff5ce 0 22%,#173451 23% 34%,#e72349 35%);box-shadow:inset 0 0 0 4px #fff5cf}.capture-device-cover strong{font:900 26px 'Barlow Condensed',Impact,sans-serif;color:#fff3b6;letter-spacing:3px;text-shadow:2px 2px #173451}.device-open .capture-device-cover{transform:rotateY(-135deg)}.device-closed .capture-device-cover{transform:rotateY(0)}.capture-device p{position:absolute;top:100%;left:-40px;right:-40px;text-align:center;font:900 24px 'Barlow Condensed',Impact,sans-serif;color:#ffe138;text-shadow:2px 3px #173451;opacity:0;transform:scale(.7);transition:opacity .2s,transform .3s}.card-received .capture-device p{opacity:1;transform:scale(1)}.card-received .capture-device-screen{background:#fff1a1;box-shadow:0 0 20px #ffe138}.card-received .capture-slot{box-shadow:0 0 20px 6px #ffe138}@keyframes capture-portrait-lift{from{opacity:0;transform:translate(-50%,-30%) scale(.6)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}@keyframes capture-starburst{0%{opacity:0;transform:translate(-50%,-50%) rotate(-30deg) scale(.3)}30%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) rotate(50deg) scale(1.6)}}@keyframes capture-spark-out{0%{opacity:0;transform:translate(-50%,-50%) scale(.3)}25%{opacity:1}100%{opacity:0;transform:translate(var(--spark-x),var(--spark-y)) scale(.4) rotate(120deg)}}@media(max-width:650px){.capture-device{left:72%;top:33%;width:145px;height:205px}.capture-device-back{padding:12px}.capture-device-back>strong{font-size:17px;margin-top:12px}.capture-device-screen{padding:12px 3px;margin-top:12px;font-size:8px}.capture-slot{margin-top:12px}.capture-device p{font-size:19px}.capture-card{width:145px}.capture-card strong{font-size:18px}.capture-portrait{width:190px;height:190px}}@media(prefers-reduced-motion:reduce){.capture-spark,.capture-burst{display:none}.capture-device-cover{transition:none}}
.capture-waiting .capture-burst,.capture-waiting .capture-spark{animation-play-state:paused;visibility:hidden}
/* Logos et groupes plus lisibles. */
.arena .affiliation img{width:125px;height:76px;padding:8px 10px}.dex-card-hemicycle{height:280px}.dex-group-stack{width:73px;height:99px;padding:6px}.group-stack-cover{height:60px}.group-stack-cover img{padding:3px}.dex-group-stack strong{font-size:11px;margin-top:8px}.dex-logo{width:130px;height:80px;padding:6px}.dex-profile .dex-logo{max-width:100%}@media(max-width:1000px){.dex-card-hemicycle{height:290px}}@media(max-width:700px){.arena .affiliation img{width:88px;height:55px;padding:6px 8px}}@media(max-width:600px){.dex-card-hemicycle{height:215px}.dex-group-stack{width:46px;height:69px;padding:4px}.group-stack-cover{height:39px}.group-stack-cover img{padding:2px}.dex-group-stack strong{font-size:8px;margin-top:5px}.dex-logo{width:110px;height:68px}}
.dex-awaiting-file{visibility:hidden}.dex-group-stack.dex-just-filed{z-index:6}
.capture-card{transition-duration:.15s,.3s}.capture-device{transition-duration:.2s,.2s}.capture-device-cover{transition-duration:.3s}

.game-options .settings .capture-option{flex:1 0 100%;display:flex;flex-direction:row;align-items:center;gap:9px;font-size:12px}.capture-option input{accent-color:#e90040;width:18px;height:18px}.capture-device{pointer-events:none}.feedback #next:disabled{opacity:.65}
/* Une vraie grande carte entre le portrait et le rangement. */
.capture-card{width:270px;padding:14px;border-width:5px;border-radius:16px;box-shadow:0 0 0 3px #fff5bd,0 0 45px #ffe138aa,7px 9px 0 #17345166}.capture-card strong{font-size:30px;margin:15px 0 8px}.capture-card small{font-size:11px;padding-bottom:12px}.capture-card img{border-width:3px;border-radius:9px}@media(max-width:650px){.capture-card{width:200px;padding:10px;border-width:4px}.capture-card strong{font-size:24px;margin:11px 0 6px}.capture-card small{font-size:8px;padding-bottom:8px}}@media(max-height:550px){.capture-card{width:180px;padding:8px}.capture-card strong{font-size:20px}.capture-card small{font-size:8px}}
/* Métamorphose immédiate dans une fumée cartoon. */
.capture-card{max-width:none;transform:translate(-50%,-50%) scale(.9) rotate(-3deg);transition:opacity .15s,transform .25s ease-out}.card-formed .capture-card{transform:translate(-50%,-50%) scale(1) rotate(-3deg)}.capture-card img{aspect-ratio:1.12}.capture-smoke{position:absolute;left:50%;top:50%;width:var(--smoke-size);height:var(--smoke-size);transform:translate(-50%,-50%);z-index:8;pointer-events:none;animation:smoke-fade .75s ease-out both}.capture-smoke i{position:absolute;left:50%;top:50%;width:45%;height:40%;border-radius:48% 54% 45% 56%;background:radial-gradient(ellipse at 35% 25%,#fffef3 0 40%,#ede9db 65%,#c6cfd0 100%);border:3px solid #173451;box-shadow:inset -5px -7px 0 #b2c1c033;animation:smoke-puff .65s var(--puff-delay) cubic-bezier(.2,.8,.3,1) both}.capture-burst,.capture-spark{display:none}@keyframes smoke-puff{0%{opacity:0;transform:translate(-50%,-50%) scale(.2)}28%{opacity:1;transform:translate(calc(-50% + var(--puff-x)),calc(-50% + var(--puff-y))) scale(1.1)}65%{opacity:1}100%{opacity:0;transform:translate(calc(-50% + var(--puff-x)*1.7),calc(-50% + var(--puff-y)*1.7)) scale(1.35)}}@keyframes smoke-fade{0%,50%{opacity:1}100%{opacity:0}}@media(prefers-reduced-motion:reduce){.capture-smoke{display:none}}
/* Proportions constantes de carte TCG, portrait contenu dans son cadre. */
.capture-card{aspect-ratio:5/7;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:8px;padding:12px;border:5px solid #173451;outline:3px solid #fff2a1;border-radius:15px;background:linear-gradient(130deg,#fff3a4,#ffe138 50%,#efbd29);overflow:hidden}.capture-card small{font-size:clamp(7px,1vw,11px);padding:3px 0;line-height:1.3}.capture-card img{width:100%;height:100%;min-height:0;aspect-ratio:auto;object-fit:contain;object-position:center bottom;border:3px solid #173451;border-radius:8px;background:repeating-conic-gradient(from 8deg,#fff6bf 0 10deg,#f8cf57 10deg 20deg)}.capture-card strong{font-size:clamp(17px,2.6vw,29px);line-height:1.05;margin:3px 0 5px;min-height:1.1em;text-wrap:balance}.capture-smoke{animation:cartoon-cloud-fade .85s ease-out both;filter:drop-shadow(0 4px 0 #17345130)}.capture-smoke i{width:var(--puff-size,42%);height:var(--puff-size,42%);border:3px solid #173451;border-radius:50%;background:#fffbed;box-shadow:inset -6px -7px 0 #d9e1d4;animation:cartoon-cloud-puff .8s var(--puff-delay) cubic-bezier(.2,.7,.25,1) both}.capture-smoke i::before{content:'';position:absolute;left:19%;top:17%;width:25%;height:12%;border-top:3px solid #fff;border-radius:50%;transform:rotate(-25deg)}.capture-smoke i::after{content:'';position:absolute;right:8%;bottom:12%;width:15%;height:9%;border-bottom:2px solid #a7b8b7;border-radius:50%;transform:rotate(-35deg)}@keyframes cartoon-cloud-puff{0%{opacity:0;transform:translate(-50%,-50%) scale(.15)}20%{opacity:1;transform:translate(calc(-50% + var(--puff-x)*.55),calc(-50% + var(--puff-y)*.55)) scale(1.15,.9)}45%{opacity:1;transform:translate(calc(-50% + var(--puff-x)),calc(-50% + var(--puff-y))) scale(1.05) rotate(var(--puff-spin))}100%{opacity:0;transform:translate(calc(-50% + var(--puff-x)*2),calc(-50% + var(--puff-y)*2)) scale(.35) rotate(var(--puff-spin))}}@keyframes cartoon-cloud-fade{0%,65%{opacity:1}100%{opacity:0}}@media(max-width:650px){.capture-card{padding:9px;border-width:4px;gap:6px}.capture-card strong{font-size:20px}.capture-card small{font-size:7px}.capture-card img{border-width:2px}.capture-smoke i{border-width:2px}}

.dex-group-stack.card-group-highlight{z-index:8;translate:0 -12px;background:#fff4a3;outline:4px solid #e90040;outline-offset:4px;box-shadow:0 0 22px #ffe138,3px 4px 0 #173451}.round-hints{position:absolute;bottom:13px;left:14px;right:14px;z-index:9;max-width:65%;padding:10px 13px;background:#173451ed;color:#fff7d7;border:2px solid #ffe138;border-radius:8px;font:700 12px/1.4 Barlow,Arial,sans-serif;box-shadow:2px 3px 0 #17345133}@media(max-width:700px){.round-hints{left:8px;bottom:8px;padding:6px 8px;font-size:9px;max-width:75%}}

.wiki-source{display:inline-block;color:#526878;font:600 10px/1.5 Barlow,Arial,sans-serif;text-underline-offset:3px;margin-left:9px}.dex-profile .wiki-source{display:block;color:#294b3e;margin:14px 0 0;text-align:center}.round-hints{max-width:90%;font-size:11px}@media(max-width:700px){.round-hints{font-size:8px;max-width:95%}}

/* Grand panneau d’indices sous le titre, dans la partie rouge. */
.arena .headline .round-hints{position:relative;inset:auto;width:94%;max-width:none;margin:24px auto 0;padding:15px 17px;min-height:95px;background:#fff8df;color:#173451;border:3px solid #173451;border-radius:11px;box-shadow:4px 5px 0 #173451;white-space:pre-line;text-align:left;font:700 15px/1.65 Barlow,Arial,sans-serif;text-shadow:none;letter-spacing:0;transform:none}.round-hints::first-line{font-family:'Barlow Condensed',Impact,sans-serif;font-size:19px;font-weight:900;letter-spacing:2px;color:#d51943}.headline:has(.round-hints:not([hidden])) #tagline{display:none}@media(max-width:700px){.arena .headline .round-hints{margin-top:15px;min-height:70px;padding:9px 10px;border-width:2px;box-shadow:3px 3px 0 #173451;border-radius:8px;font-size:clamp(9px,2.1vw,13px);line-height:1.5}.round-hints::first-line{font-size:14px;letter-spacing:1px}}

/* Cravates plus lisibles, nouées sous le visage et animées par la marche. */
.stick-body .torso::after{left:14px;top:0;width:11px;height:35px;z-index:5;background:linear-gradient(90deg,#d71947 0 45%,#ff5775 46% 70%,#b4153a 71%);clip-path:polygon(7% 0,93% 0,77% 18%,63% 25%,100% 84%,50% 100%,0 84%,37% 25%,23% 18%);transform-origin:50% 3px;animation:tie-swing .4s ease-in-out var(--walk-time) infinite alternate paused}.stick-body .torso{overflow:visible}.stick-body .torso::before{content:'';position:absolute;left:8px;top:-1px;width:22px;height:13px;background:#fff6dc;clip-path:polygon(0 0,50% 27%,100% 0,83% 100%,50% 43%,17% 100%);z-index:4}.parade-dress .torso{background:var(--jacket);border-radius:15px 15px 8px 8px;box-shadow:inset -6px 0 #0002}.parade-dress .torso::after{display:none}.parade-dress .torso::before{left:-16px;top:38px;width:70px;height:53px;clip-path:polygon(25% 0,75% 0,100% 94%,76% 100%,52% 96%,27% 100%,0 94%);background:repeating-linear-gradient(85deg,transparent 0 13px,#17345118 14px 16px),var(--jacket);border-bottom:3px solid #173451;z-index:3;transform-origin:50% 0;animation:dress-sway .4s ease-in-out var(--walk-time) infinite alternate paused}.parade-dress .leg{background:#ffdcac;width:10px}.parade-dress .leg::after{background:#c71d49}.parade-dress .torso{border-bottom-color:transparent}.parade-dress .arm{background:linear-gradient(var(--jacket) 0 45%,#ffdcac 46% 100%)}@keyframes tie-swing{from{transform:translateY(0) rotate(-13deg)}to{transform:translateY(-5px) rotate(17deg)}}@keyframes dress-sway{from{transform:skewX(-5deg) rotate(-3deg)}to{transform:skewX(5deg) rotate(3deg)}}@media(prefers-reduced-motion:reduce){.stick-body .torso::after,.parade-dress .torso::before{animation:none}}

/* Pluie de points d’interrogation en arrière-plan. */
.question-rain{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none;background:#faf7ef}.question-rain span{position:absolute;left:var(--qx);top:-100px;color:#173451;font:900 var(--qs)/1 'Barlow Condensed',Impact,sans-serif;opacity:.09;animation:question-rain-fall var(--qd) var(--qdelay) linear infinite;will-change:transform}.question-rain span:nth-child(3n){color:#e90040;opacity:.10}.question-rain span:nth-child(3n+1){color:#caa326;opacity:.14}@keyframes question-rain-fall{0%{transform:translate3d(0,-100px,0) rotate(-18deg)}100%{transform:translate3d(var(--qdrift),calc(100vh + 200px),0) rotate(28deg)}}#startup{background:linear-gradient(125deg,#102e8bf2 0 42%,#e90040f2 42% 100%)}@media(prefers-reduced-motion:reduce){.question-rain span{animation:none;top:calc(var(--qx));transform:rotate(-12deg)}}
/* Volutes cel-shading : silhouettes dessinées et spirales en aplats. */
.capture-smoke{filter:drop-shadow(0 5px 0 #8a865d22);animation:volute-cloud-fade 1s ease-out both}.capture-smoke i{width:var(--puff-size,60%);height:auto;aspect-ratio:220/190;background:none;border:0;border-radius:0;box-shadow:none;animation:volute-cloud-out .95s var(--puff-delay) cubic-bezier(.16,.7,.3,1) both;transform-origin:center}.capture-smoke i::before,.capture-smoke i::after{display:none}.capture-smoke svg{display:block;width:100%;height:100%;overflow:visible}@keyframes volute-cloud-out{0%{opacity:0;transform:translate(-50%,-50%) rotate(0deg) scale(.15)}18%{opacity:1;transform:translate(calc(-50% + var(--puff-x)*.5),calc(-50% + var(--puff-y)*.5)) rotate(calc(var(--puff-spin)*-.3)) scale(1.05)}48%{opacity:1;transform:translate(calc(-50% + var(--puff-x)),calc(-50% + var(--puff-y))) rotate(calc(var(--puff-spin)*.4)) scale(1.1)}78%{opacity:.8}100%{opacity:0;transform:translate(calc(-50% + var(--puff-x)*2.2),calc(-50% + var(--puff-y)*2.2)) rotate(var(--puff-spin)) scale(.5)}}@keyframes volute-cloud-fade{0%,75%{opacity:1}100%{opacity:0}}@media(prefers-reduced-motion:reduce){.capture-smoke{display:none}}

/* Fond animé un peu plus présent, sans gêner le quiz. */
.question-rain span{font-size:calc(var(--qs) * 1.22)}.intro-portrait-rain{display:none;position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0}body[data-stage="intro"] .intro-portrait-rain{display:block}.intro-portrait-drop{position:absolute;left:var(--rain-x);top:-170px;width:var(--rain-size);height:var(--rain-size);opacity:.10;animation:intro-portrait-fall var(--rain-duration) var(--rain-delay) linear infinite;will-change:transform}.intro-portrait-drop img{display:block;width:100%;height:100%;object-fit:contain;clip-path:ellipse(36% 37% at 50% 39%);filter:grayscale(1) brightness(1.8);mix-blend-mode:screen}body[data-stage="intro"] .intro-rays{opacity:.7}@keyframes intro-portrait-fall{from{transform:translate3d(0,-150px,0) rotate(var(--rain-tilt))}to{transform:translate3d(60px,calc(100svh + 330px),0) rotate(calc(var(--rain-tilt) * -1))}}@media(max-width:600px){.intro-portrait-drop{width:calc(var(--rain-size) * .75);height:calc(var(--rain-size) * .75)}}@media(prefers-reduced-motion:reduce){.intro-portrait-drop{animation:none;top:var(--rain-x);transform:rotate(var(--rain-tilt))}}

/* Défilé sans fenêtre rectangulaire ni découpe des têtes. */
#introHeads{overflow:visible;border:0;background:none;box-shadow:none}.intro-head.parade-deputy{overflow:visible}body[data-stage="intro"] .intro-portrait-rain{display:none}
/* Création cachée et silhouettes sans transition avant leur révélation. */
.intro-head.parade-deputy:not(.parade-positioned){visibility:hidden}.intro-head.parade-deputy:not(.head-revealed) img{filter:brightness(0) saturate(0)!important;transition:none}.intro-head.parade-deputy.head-revealed img{filter:none;transition:none}#introHeads{left:0;right:0}
/* Petits sauts et bras levés sur les 150 BPM du générique. */
.intro-head.parade-deputy{translate:0 var(--dance-hop,0px);rotate:var(--dance-rock,0deg);transform-origin:50% 100%}.parade-deputy .stick-body .arm{top:12px;animation-name:arms-celebrate;animation-duration:.4s;transform-origin:50% 5px}.parade-deputy .stick-body .arm-left{animation-direction:alternate}.parade-deputy .stick-body .arm-right{animation-name:arms-celebrate-right;animation-direction:alternate}.parade-deputy img{animation-duration:.4s}.parade-deputy .stick-body .leg{animation-duration:.4s}@keyframes arms-celebrate{from{transform:rotate(125deg)}to{transform:rotate(155deg)}}@keyframes arms-celebrate-right{from{transform:rotate(-125deg)}to{transform:rotate(-155deg)}}@media(prefers-reduced-motion:reduce){.intro-head.parade-deputy{translate:none;rotate:none}.parade-deputy .stick-body .arm-left{transform:rotate(135deg)}.parade-deputy .stick-body .arm-right{transform:rotate(-135deg)}}

/* Corps illustrés déformés par un maillage triangulé, cou ancré sous le portrait. */
.parade-deputy .puppet-canvas{position:absolute;left:0;top:0;width:140px;height:204px;object-fit:fill;filter:none;pointer-events:none;z-index:1;opacity:0;animation:none;transition:none}.parade-deputy.puppet-ready .puppet-canvas{opacity:1}.parade-deputy.puppet-ready .stick-body{display:none}.parade-deputy:not(.head-revealed) .puppet-canvas{filter:brightness(0) saturate(0)}.parade-deputy.head-revealed .puppet-canvas{filter:none}.parade-deputy.puppet-ready>img{z-index:3}.parade-deputy.puppet-ready.parade-dress>img{top:1px}

/* Six corps T-pose sans cou, avec bras flottants. */
.parade-deputy .puppet-canvas{left:-70px;top:0;width:280px;height:220px}.parade-deputy.puppet-ready>img{top:0;animation:none;transform:none}.parade-deputy.puppet-ready.parade-dress>img{top:0}

.pause-game{border:2px solid #173451;background:#fff7d8;color:#173451;border-radius:7px;padding:8px 12px;font:900 15px 'Barlow Condensed',Impact,sans-serif;box-shadow:2px 3px 0 #173451;margin-left:auto}.pause-game+.depudex-open{margin-left:0}.game-pause-panel{position:fixed;inset:0;z-index:210;display:grid;place-items:center;background:#173451c9;backdrop-filter:blur(10px);padding:24px}.game-pause-panel>div{width:min(410px,100%);text-align:center;background:#fff8e6;border:4px solid #173451;border-radius:18px;padding:35px 25px;box-shadow:7px 9px 0 #0b2036}.pause-symbol{display:block;color:#e90040;font:900 64px 'Barlow Condensed',Impact,sans-serif}.game-pause-panel h2{color:#173451;font-size:29px}.game-pause-panel p{font-size:13px;color:#637184;line-height:1.6}.game-pause-panel button{background:#ffe138;color:#173451;border:3px solid #173451;border-radius:8px;padding:12px 24px;font:900 21px 'Barlow Condensed',Impact,sans-serif;box-shadow:3px 4px 0 #173451}.quiz-bonuses{margin:0 0 20px;padding:13px 14px;border:1px solid #d9d6c7;background:#f5f0df;border-radius:9px}.bonus-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.bonus-heading strong{font-size:9px;letter-spacing:1px;color:#173451}.bonus-heading>span{font-size:10px;color:#697786}.bonus-actions{display:flex;gap:10px}.bonus-actions button{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:1;min-height:39px;background:#fffaf0;border:2px solid #173451;border-radius:7px;color:#173451;padding:8px 11px;font-weight:800;font-size:12px;box-shadow:2px 3px 0 #173451}.bonus-actions button span{font-size:10px;color:#b02546;white-space:nowrap}.bonus-actions button:not(:disabled):hover{background:#ffe138}.bonus-actions button:disabled{opacity:.4;box-shadow:none;cursor:default}.choice.bonus-eliminated{opacity:.3;text-decoration:line-through;box-shadow:none}@media(max-width:700px){.pause-game{font-size:12px;padding:7px 8px}.quiz-bonuses{padding:10px;margin-bottom:17px}.bonus-heading{align-items:flex-start;flex-direction:column;gap:4px}.bonus-actions{gap:7px}.bonus-actions button{flex-direction:column;gap:3px;padding:7px;font-size:10px}.bonus-actions button span{font-size:9px}}

/* Les mêmes gouttes changent de couleur à la frontière bleu/rouge. */
#startup{background:linear-gradient(125deg,#102e8b 0 42%,#e90040 42% 100%)}.startup-question-rain{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none}.startup-question-rain .question-rain{position:absolute;inset:0;z-index:auto;background:transparent}.startup-question-rain .rain-on-blue{-webkit-mask-image:linear-gradient(125deg,#000 0 41.8%,transparent 42.2% 100%);mask-image:linear-gradient(125deg,#000 0 41.8%,transparent 42.2% 100%)}.startup-question-rain .rain-on-red{-webkit-mask-image:linear-gradient(125deg,transparent 0 41.8%,#000 42.2% 100%);mask-image:linear-gradient(125deg,transparent 0 41.8%,#000 42.2% 100%)}.startup-question-rain .rain-on-blue span:nth-child(n){color:#ff839b;opacity:.18}.startup-question-rain .rain-on-red span:nth-child(n){color:#96dbf4;opacity:.18}
/* Pluie visible seulement à l’intérieur des rayons clairs. */
@property --question-ray-angle{syntax:'<angle>';inherits:false;initial-value:5deg}.startup-question-rain{-webkit-mask-image:repeating-conic-gradient(from var(--question-ray-angle) at 50% 50%,transparent 0deg 10deg,#000 10deg 20deg);mask-image:repeating-conic-gradient(from var(--question-ray-angle) at 50% 50%,transparent 0deg 10deg,#000 10deg 20deg)}body[data-stage="intro"] .startup-question-rain,body[data-stage="setup"] .startup-question-rain{animation:question-ray-mask-turn 18s linear infinite}@keyframes question-ray-mask-turn{from{--question-ray-angle:5deg}to{--question-ray-angle:365deg}}@media(prefers-reduced-motion:reduce){.startup-question-rain{animation:none!important}}

/* Rotation dès l’accueil ; fumée sur la révélation du défilé. */
body[data-stage="welcome"] .intro-rays{animation:rays-turn 18s linear infinite}body[data-stage="welcome"] .startup-question-rain{animation:question-ray-mask-turn 18s linear infinite}.intro-head .intro-reveal-smoke{position:absolute;left:70px;top:71px;width:150px;height:150px;z-index:9;animation-delay:var(--smoke-time,0s);animation-play-state:paused}.intro-head .intro-reveal-smoke i{animation-delay:calc(var(--smoke-time,0s) + var(--puff-delay,0s));animation-play-state:paused}.intro-head.head-revealed::after{display:none}@media(prefers-reduced-motion:reduce){body[data-stage="welcome"] .intro-rays,body[data-stage="welcome"] .startup-question-rain{animation:none}.intro-head .intro-reveal-smoke{display:none}}

/* Final de générique : rideau de velours rouge et passementerie dorée. */
#introScreen{transition:opacity .65s ease,filter .65s ease}.intro-fading #introScreen{opacity:0;filter:blur(5px)}.hemicycle-curtain{position:fixed;inset:0;z-index:80;overflow:hidden;pointer-events:auto;background:transparent}.curtain-panel{position:absolute;top:0;bottom:0;width:51%;background:repeating-linear-gradient(90deg,#5a0b25 0%,#8c1231 5%,#d3264c 10%,#ad173b 15%,#6c0b29 20%);box-shadow:inset -15px 0 30px #28061788,0 0 45px #0b172c77;transition:transform .8s cubic-bezier(.6,0,.25,1);border-bottom:10px solid #dcb54b}.curtain-left{left:0;transform:translateX(-105%);border-right:3px solid #e7c46c;border-radius:0 0 12px 0}.curtain-right{right:0;transform:translateX(105%);border-left:3px solid #e7c46c;border-radius:0 0 0 12px}.curtain-panel::after{content:'';position:absolute;left:0;right:0;bottom:7px;height:4px;background:#ffdf8b;box-shadow:0 -7px 0 #d9a535}.curtain-closing .curtain-panel{transform:translateX(0)}.curtain-pelmet{position:absolute;left:0;right:0;top:0;height:clamp(65px,12vw,145px);transform:translateY(-110%);transition:transform .65s ease}.curtain-pelmet svg{width:100%;height:100%;filter:drop-shadow(0 7px 7px #30051a66)}.curtain-closing .curtain-pelmet{transform:translateY(0)}.curtain-seal{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(.85);color:#ffe49a;text-align:center;opacity:0;transition:opacity .25s .5s,transform .4s .5s;text-shadow:2px 3px 0 #4a0a22}.curtain-seal span{display:grid;place-items:center;width:110px;height:110px;margin:auto;border:3px solid #e5be5c;border-radius:50%;font:900 42px 'Barlow Condensed',Impact,sans-serif;background:#7f102d;box-shadow:0 0 0 6px #8f1533,0 0 0 8px #d6aa43}.curtain-seal small{display:block;font:800 10px Barlow,Arial,sans-serif;letter-spacing:3px;margin-top:24px}.curtain-closing .curtain-seal{opacity:1;transform:translate(-50%,-50%) scale(1)}.curtain-opening .curtain-left{transform:translateX(-105%)}.curtain-opening .curtain-right{transform:translateX(105%)}.curtain-opening .curtain-pelmet{transform:translateY(-110%)}.curtain-opening .curtain-seal{opacity:0;transition-delay:0s;transform:translate(-50%,-50%) scale(.85)}@media(prefers-reduced-motion:reduce){.hemicycle-curtain{display:none}#introScreen{transition:none}}

/* Cartes de collection dorées inspirées de la référence. */
.dex-collect-card,.dex-discovery-card{position:relative;background:linear-gradient(130deg,#fff0a1 0%,#d8a729 12%,#f5d46c 30%,#be8b17 60%,#edce69 83%,#fff0aa 100%);border:3px solid #9e7516;border-radius:14px;box-shadow:inset 0 0 0 2px #fff3ad,inset 0 0 0 6px #c99b2d,inset 0 0 0 7px #fff1a0,3px 5px 0 #17345155;color:#fff7d0;padding:13px}.dex-collect-card .collect-number{color:#583e10;font-size:8px;font-weight:900;letter-spacing:1px;padding:3px 0 10px}.dex-collect-card .collect-art,.dex-discovery-card>img{border:3px solid #fff1aa;outline:2px solid #9e7516;border-radius:50%;background:repeating-conic-gradient(from 10deg,#f7db7c 0 10deg,#d5a82d 10deg 20deg);box-shadow:0 0 0 4px #f8dd7a,0 4px 12px #6d450944;overflow:hidden}.dex-collect-card .collect-art{width:94%;margin:3px auto 8px;aspect-ratio:1}.dex-collect-card .collect-art img{width:125%;height:125%;object-position:center 35%}.dex-collect-card>strong,.dex-discovery-card>strong{display:grid;place-items:center;min-height:37px;background:linear-gradient(#674a13,#49330d);border-radius:8px;padding:8px 6px;text-align:center;color:#fff5c8;font-family:'Barlow Condensed',Impact,sans-serif;font-size:17px;line-height:1.1;margin:10px 0 7px;box-shadow:inset 0 1px #fbe09366;text-shadow:0 1px #352208}.dex-collect-card .collect-group{color:#513b0e;text-align:center;font-weight:800;font-size:9px;border-color:#74511155;min-height:31px}.dex-discovery-card>small{color:#624411;font-weight:900}.dex-discovery-card>strong{font-size:25px}.dex-collect-card.unlocked:hover{box-shadow:inset 0 0 0 2px #fff5bc,inset 0 0 0 6px #d8b147,inset 0 0 0 7px #fff8cd,0 0 24px #ffdf6c99,4px 6px 0 #17345144}.dex-collect-card.locked{background:linear-gradient(130deg,#e6e4d8,#bfc3b8);border-color:#929d93;box-shadow:inset 0 0 0 2px #f3f1e6,inset 0 0 0 6px #c4c9bc,3px 5px 0 #6c7e7555}.dex-collect-card.locked>strong{background:#87968b;color:#edf0e5;box-shadow:none;text-shadow:none}.dex-collect-card.locked .collect-number,.dex-collect-card.locked .collect-group{color:#64776a}.dex-collect-card.locked .collect-art{outline-color:#87968b;border-color:#e2e7d9;box-shadow:0 0 0 4px #c0cbb9}.capture-card{padding:14px;gap:12px}.capture-card>img{border-radius:11px;outline:0;box-shadow:0 0 0 2px #a67a18;aspect-ratio:auto}.capture-card>strong{font-size:clamp(19px,2.6vw,30px);margin:0;padding:10px 8px}.curtain-panel{transition-duration:.5s}.curtain-pelmet{transition-duration:.45s}.curtain-seal{transition-delay:.3s}.curtain-opening .curtain-seal{transition-delay:0s}.intro-fading #introScreen{transition-duration:.4s}@media(max-width:600px){.dex-collect-card{padding:11px}.dex-collect-card>strong{font-size:15px}.capture-card{padding:10px;gap:8px}.capture-card>strong{font-size:21px}}
.hemicycle-curtain{z-index:200}

/* Manipulation 3D des cartes : rotation, verso et reflet mobile. */
.dex-collect-card.unlocked{transform:perspective(850px) rotateX(var(--card-rx,0deg)) rotateY(var(--card-ry,0deg));transform-style:preserve-3d;transition:transform .12s ease-out,box-shadow .15s}.dex-collect-card.unlocked:hover{transform:perspective(850px) rotateX(var(--card-rx,0deg)) rotateY(var(--card-ry,0deg)) translateY(-4px)}.card-inspector{position:fixed;inset:0;z-index:180;background:radial-gradient(ellipse at 50% 42%,#364d60f2,#081b2bf7 70%);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:17px;padding:22px;overflow:auto;color:#fff4c7;backdrop-filter:blur(10px)}.inspect-toolbar{width:min(570px,100%);display:flex;justify-content:space-between;align-items:center;gap:20px}.inspect-toolbar span{font:800 10px Barlow,Arial,sans-serif;letter-spacing:2px}.inspect-toolbar button,.inspect-actions button{border:2px solid #173451;background:#ffe138;color:#173451;border-radius:7px;font-weight:800;box-shadow:3px 4px 0 #061422}.inspect-toolbar button{width:36px;height:36px;font-size:22px}.inspect-stage{width:min(340px,65vw);aspect-ratio:5/7;max-height:65svh;perspective:1100px;touch-action:none;cursor:grab;outline-offset:12px}.inspect-stage:active{cursor:grabbing}.inspect-object{position:relative;width:100%;height:100%;transform-style:preserve-3d;transform:rotateX(var(--inspect-x,0deg)) rotateY(var(--inspect-y,0deg));transition:transform .07s linear;filter:drop-shadow(0 20px 20px #0005)}.inspect-front,.inspect-back{position:absolute;inset:0;width:100%;height:100%;backface-visibility:hidden;-webkit-backface-visibility:hidden;box-sizing:border-box}.inspect-front{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:10px;padding:18px;transform:translateZ(2px);overflow:hidden}.inspect-front>small{font-size:11px;letter-spacing:1px}.inspect-front>img{width:100%;height:100%;min-height:0;object-fit:contain;object-position:center bottom;border-radius:11px;background:repeating-conic-gradient(#ffe9a2 0 10deg,#c89924 10deg 20deg);outline:0;box-shadow:none}.inspect-front>strong{font-size:clamp(20px,4vw,31px);margin:0;padding:11px 6px;z-index:1}.inspect-group{color:#5a410e;text-align:center;font-size:11px;line-height:1.25;font-weight:800;z-index:1}.inspect-front::after{content:'';position:absolute;inset:0;border-radius:12px;pointer-events:none;background:radial-gradient(ellipse at var(--glare-x,50%) var(--glare-y,45%),#fff8cb88 0,transparent 45%),linear-gradient(125deg,transparent 10%,#ffffff16 35%,transparent 55%,#ffe7a02e 80%,transparent);mix-blend-mode:screen;z-index:2}.inspect-back{transform:rotateY(180deg) translateZ(2px);border:4px solid #a67c22;border-radius:14px;background:repeating-conic-gradient(from 10deg at 50% 45%,#bd8e22 0 10deg,#dcae41 10deg 20deg);box-shadow:inset 0 0 0 4px #f9e591,inset 0 0 0 10px #9b731e;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:28px;text-align:center;padding:20px}.inspect-back>strong{display:grid;place-items:center;width:65%;aspect-ratio:1;border:5px solid #fff2b4;border-radius:50%;background:#173451;color:#ffe138;font:900 clamp(40px,8vw,75px) 'Barlow Condensed',Impact,sans-serif;box-shadow:0 0 0 7px #a77b1d}.inspect-back>span{font:900 30px 'Barlow Condensed',Impact,sans-serif;letter-spacing:4px;color:#fff6c8;text-shadow:2px 3px #654a10}.inspect-back>small{font:800 8px Barlow,Arial,sans-serif;letter-spacing:2px;color:#614710}.card-inspector>p{margin:3px 0;color:#e3ddc5;font-size:11px;text-align:center;line-height:1.6}.inspect-actions{display:flex;gap:12px}.inspect-actions button{padding:10px 17px;font-size:12px}@media(max-height:650px){.card-inspector{gap:10px}.inspect-stage{width:220px;max-height:none}.inspect-front{padding:12px;gap:7px}.inspect-front>strong{font-size:20px}.inspect-front>small,.inspect-group{font-size:8px}}@media(prefers-reduced-motion:reduce){.dex-collect-card.unlocked{transition:none}.inspect-object{transition:none}}
/* Retour au style cartoon des cartes, avec manipulation 3D conservée. */
.dex-collect-card,.dex-discovery-card{background:linear-gradient(135deg,#fff3b9,#ffe138);border:3px solid #173451;border-radius:11px;box-shadow:3px 4px 0 #173451;color:#173451;padding:8px}.dex-collect-card .collect-number{color:#173451;font-size:8px;letter-spacing:.6px;padding:3px 2px 7px}.dex-collect-card .collect-art{width:100%;margin:0;aspect-ratio:1/1.1;border:2px solid #173451;border-radius:6px;outline:none;box-shadow:none;background:repeating-conic-gradient(from 5deg,#fff7d1 0 10deg,var(--card-color) 10deg 20deg)}.dex-collect-card .collect-art img{width:120%;height:120%;object-position:center bottom}.dex-collect-card>strong{display:block;background:none;border-radius:0;padding:0;text-align:left;color:#173451;font:800 13px/1.2 Barlow,Arial,sans-serif;margin:10px 0 6px;min-height:31px;box-shadow:none;text-shadow:none}.dex-collect-card .collect-group{color:#173451;text-align:left;font-size:9px;font-weight:500;line-height:1.3;border-top:1px solid #17345133;padding-top:6px}.dex-collect-card.unlocked:hover{box-shadow:3px 5px 0 #173451}.dex-collect-card.locked{background:#eeece5;border-color:#a5adb1;box-shadow:3px 4px 0 #a5adb1;color:#78838b}.dex-collect-card.locked>strong{background:none;color:#78838b}.dex-collect-card.locked .collect-number,.dex-collect-card.locked .collect-group{color:#78838b}.dex-collect-card.locked .collect-art{background:repeating-linear-gradient(45deg,#dce1e2 0 9px,#e7ebeb 9px 18px);border-color:#a5adb1;outline:none;box-shadow:none}.dex-discovery-card{padding:12px;border-width:4px;border-radius:14px;box-shadow:6px 8px 0 #17345166}.dex-discovery-card>small{color:#173451}.dex-discovery-card>img{border:2px solid #173451;border-radius:7px;outline:none;box-shadow:none;background:repeating-conic-gradient(#fff2b3 0 10deg,#f5c34b 10deg 20deg)}.dex-discovery-card>strong{display:block;background:none;color:#173451;font:900 23px/1.1 'Barlow Condensed',Impact,sans-serif;padding:0;margin:13px 0 5px;min-height:0;box-shadow:none;text-shadow:none}.capture-card{padding:12px;gap:8px;border:5px solid #173451;border-radius:15px;outline:3px solid #fff2a1;background:linear-gradient(130deg,#fff3a4,#ffe138 50%,#efbd29)}.capture-card>img{border:3px solid #173451;border-radius:8px}.capture-card>strong{font-size:clamp(17px,2.6vw,29px);margin:3px 0 5px;text-align:center}.inspect-front{padding:18px;gap:10px;border:4px solid #173451;box-shadow:4px 6px 0 #071c2d99}.inspect-front>img{border:2px solid #173451;border-radius:8px}.inspect-front>strong{font-size:clamp(20px,4vw,31px);margin:0;padding:7px 0;text-align:center}.inspect-group{color:#173451}.inspect-back{background:repeating-conic-gradient(from 10deg,#ffe138 0 10deg,#fff0a2 10deg 20deg);border:4px solid #173451;border-radius:14px;box-shadow:inset 0 0 0 4px #fff8da,inset 0 0 0 7px #173451}.inspect-back>strong{border-color:#173451;background:#173451;box-shadow:0 0 0 6px #ffe138}.inspect-back>span{color:#173451;text-shadow:none}.inspect-back>small{color:#173451}@media(max-width:650px){.capture-card{padding:9px;border-width:4px;gap:6px}.capture-card>strong{font-size:20px}.inspect-front{padding:13px}.inspect-front>strong{font-size:23px}}

/* Une carte complète à examiner, avec inclinaison et reflet très légers. */
.dex-layout{grid-template-columns:1fr}.dex-profile{position:static;grid-row:1;width:100%;max-width:none;max-height:none;display:flex;align-items:center;flex-wrap:wrap;gap:10px 18px;padding:14px 18px}.dex-profile::before,.dex-profile #dexEmpty,.dex-profile #dexIdentity{display:none}.dex-profile .dex-search-label{margin:0;flex:0 0 auto}.dex-profile .dex-search{width:min(330px,100%);flex:1;min-width:170px;margin:0}.dex-profile .dex-progress-track{display:block;width:125px;margin:0}.dex-profile>.dex-reset-collection{display:block;margin:0 0 0 auto}.dex-profile>small{flex:1 0 100%;display:block;font-size:9px}.dex-profile .dex-reset-confirm{flex:1 0 100%}.dex-cards{grid-template-columns:repeat(auto-fill,minmax(145px,1fr))}.inspect-stage{width:min(405px,75vw,calc(73svh * 5 / 7));max-height:none;aspect-ratio:5/7;cursor:default}.inspect-stage:active{cursor:default}.inspect-object{transition:transform .16s ease-out;filter:drop-shadow(0 15px 20px #0004)}.inspect-front{grid-template-rows:auto minmax(0,1fr) auto auto auto;padding:17px;gap:9px;transform:none;border:4px solid #173451;background:linear-gradient(130deg,#fff4b8,#ffe138);box-shadow:4px 5px 0 #102b4266;backface-visibility:visible}.inspect-front>img{width:100%;height:100%;min-height:0;border-radius:8px;object-fit:contain;object-position:center bottom;background:repeating-conic-gradient(#fff5c6 0 10deg,#f4d368 10deg 20deg)}.inspect-front>strong{font-size:clamp(20px,3.8vw,29px);padding:5px 0;margin:0;text-align:center}.inspect-front>small{font-size:10px;padding:0;letter-spacing:1px}.inspect-group{display:flex;align-items:center;gap:11px;border-top:2px solid #17345133;padding:9px 0 0;color:#173451;text-align:left;font-size:12px;line-height:1.25}.inspect-group img{width:57px;height:39px;object-fit:contain;flex-shrink:0;background:#fffdf2;border:1px solid #17345144;border-radius:5px;padding:3px}.inspect-group span{font-weight:800}.inspect-facts{background:#fff9df;border:1px solid #17345133;border-radius:6px;padding:9px 11px;color:#173451;line-height:1.4}.inspect-facts p{font-size:11px;margin:0}.inspect-facts a{font-size:9px;color:#52677a;display:inline-block;margin-top:5px;text-underline-offset:3px}.inspect-front::after{background:radial-gradient(ellipse at var(--glare-x,50%) var(--glare-y,45%),#ffffff24,transparent 58%),linear-gradient(120deg,transparent 20%,#fff9d20b 48%,transparent 75%);mix-blend-mode:screen}.inspect-back{display:none}.inspect-actions{display:none}.card-inspector>p{font-size:10px;color:#d8decc}@media(max-width:650px){.dex-profile{padding:12px;gap:9px}.dex-profile .dex-search-label{flex-basis:100%;font-size:10px}.dex-profile .dex-search{min-width:130px;font-size:11px}.dex-profile .dex-progress-track{width:90px}.dex-profile>.dex-reset-collection{font-size:9px;padding:7px 9px}.dex-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.inspect-front{padding:12px;gap:7px;border-width:3px}.inspect-front>small{font-size:8px}.inspect-front>strong{font-size:22px}.inspect-group{font-size:10px;gap:8px;padding-top:7px}.inspect-group img{width:43px;height:30px}.inspect-facts{padding:7px 9px}.inspect-facts p{font-size:10px}.inspect-facts a{font-size:8px}}@media(max-height:650px){.inspect-stage{width:min(290px,calc(72svh * 5 / 7))}.inspect-front{gap:5px;padding:10px}.inspect-front>strong{font-size:19px}.inspect-front>small,.inspect-group{font-size:8px}.inspect-group img{width:35px;height:24px}.inspect-facts{padding:5px}.inspect-facts p{font-size:8px}}
/* Verso caché au clic, aux couleurs du jeu. */
.inspect-object{transition:transform .4s cubic-bezier(.2,.7,.3,1)}.inspect-front{transform:translateZ(2px);backface-visibility:hidden;-webkit-backface-visibility:hidden}.inspect-easter-back{position:absolute;inset:0;transform:rotateY(180deg) translateZ(2px);backface-visibility:hidden;-webkit-backface-visibility:hidden;overflow:hidden;border:4px solid #173451;border-radius:14px;background:linear-gradient(125deg,#173d9d 0 42%,#ee0744 42% 100%);box-shadow:inset 0 0 0 5px #ffe138,inset 0 0 0 8px #173451;display:flex;align-items:center;justify-content:center;padding:25px}.card-back-rays{position:absolute;inset:-100%;background:repeating-conic-gradient(from 5deg,transparent 0 10deg,#ffffff17 10deg 20deg);pointer-events:none}.card-back-logo{position:relative;z-index:1;transform:rotate(-8deg);color:#ffe138;text-align:center;filter:drop-shadow(3px 5px 0 #102d52);font-family:'Barlow Condensed',Impact,sans-serif;font-weight:900;line-height:.94;-webkit-text-stroke:3px #173451;paint-order:stroke fill}.card-back-logo span{display:block;font-size:clamp(24px,5vw,45px)}.card-back-logo strong{display:block;font-size:clamp(40px,7vw,67px);font-weight:900;letter-spacing:-1px}.card-back-mark{position:absolute;bottom:26px;left:20px;right:20px;text-align:center;color:#fff0b3;font:800 7px Barlow,Arial,sans-serif;letter-spacing:1px}.inspect-stage{cursor:pointer}@media(max-height:650px){.card-back-logo span{font-size:25px}.card-back-logo strong{font-size:40px}.card-back-mark{font-size:5px;bottom:18px}.inspect-easter-back{padding:17px}}
/* Carte sélectionnée au premier plan, collection floutée. */
.card-inspector{background:#071b2b75;backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px)}body:has(#cardInspector:not([hidden])) #depudexPanel{filter:blur(7px);pointer-events:none}#depudexPanel{transition:filter .2s ease}.dex-card-hemicycle{height:365px}.dex-group-stack{width:93px;height:126px;padding:8px;border-radius:9px;box-shadow:3px 4px 0 #244b40,6px 7px 0 #c4d8b6,7px 8px 0 #173451}.group-stack-cover{height:78px;border-radius:5px}.group-stack-cover img{padding:4px}.dex-group-stack strong{font-size:13px;margin-top:10px}.dex-arc-caption{font-size:10px;letter-spacing:2px;bottom:18px}@media(max-width:1000px){.dex-card-hemicycle{height:320px}.dex-group-stack{width:76px;height:104px;padding:6px}.group-stack-cover{height:62px}.dex-group-stack strong{font-size:11px;margin-top:9px}}@media(max-width:600px){.dex-card-hemicycle{height:240px}.dex-group-stack{width:51px;height:77px;padding:4px}.group-stack-cover{height:45px}.group-stack-cover img{padding:2px}.dex-group-stack strong{font-size:9px;margin-top:6px}.dex-arc-caption{font-size:7px;bottom:8px;letter-spacing:1px}}@media(prefers-reduced-motion:reduce){#depudexPanel{transition:none}}
/* Garder deux faces distinctes : un filtre sur le parent aplatissait la 3D. */
.inspect-object{filter:none!important;transform-style:preserve-3d;overflow:visible;isolation:auto;opacity:1}.inspect-front{backface-visibility:hidden!important;-webkit-backface-visibility:hidden!important;transform:translateZ(2px);opacity:1;transition:opacity .12s .1s}.inspect-easter-back{backface-visibility:hidden!important;-webkit-backface-visibility:hidden!important;transform:rotateY(180deg) translateZ(2px);opacity:0;transition:opacity .12s .1s}.inspect-object.show-easter-back .inspect-front{opacity:0;pointer-events:none}.inspect-object.show-easter-back .inspect-easter-back{opacity:1}.inspect-easter-back .card-back-rays{animation:rays-turn 35s linear infinite}.inspect-easter-back .card-back-logo{backface-visibility:inherit}.inspect-stage{filter:none}

/* La collection se rabat en pile sous le résultat ou la sélection. */
.dex-cards.dex-folded{position:relative;display:block;min-height:365px;max-height:440px;overflow:hidden;perspective:1000px}.dex-folded .dex-collect-card{position:absolute;left:50%;top:18px;width:165px;transform:translateX(calc(-50% + var(--match-offset,0px))) translateY(var(--pile-offset,0px)) rotate(var(--pile-turn,0deg));transition:transform .55s cubic-bezier(.2,.8,.2,1),opacity .35s;animation:dex-fold-in .5s cubic-bezier(.2,.8,.2,1) both}.dex-folded .dex-fold-under{pointer-events:none;transform:translateX(-50%) translateY(calc(17px + var(--pile-offset))) rotate(var(--pile-turn)) scale(.96);filter:brightness(.72);opacity:.95}.dex-folded .dex-fold-target{transform:translateX(calc(-50% + var(--match-offset))) translateY(0) rotate(0);box-shadow:4px 6px 0 #173451,0 0 22px #ffe13877}.dex-folded .dex-fold-target:hover{transform:translateX(calc(-50% + var(--match-offset))) translateY(-5px)}@keyframes dex-fold-in{from{opacity:.35;translate:0 24px}to{opacity:1;translate:0 0}}@media(prefers-reduced-motion:reduce){.dex-folded .dex-collect-card{animation:none;transition:none}}

/* Un résultat visible par pile, trié par pertinence. */
.dex-cards.dex-folded{height:var(--pile-height,365px);min-height:365px;max-height:65svh;overflow:auto}.dex-folded .dex-collect-card{left:var(--pile-x,50%);top:var(--pile-y,18px)}.dex-folded .dex-fold-target{transform:translateX(-50%) rotate(0)}.dex-folded .dex-fold-target:hover{transform:translateX(-50%) translateY(-5px)}

/* Piles légères : seuls les résultats sont dessinés, les dessous sont décoratifs. */
.dex-cards.dex-folded{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:24px;height:auto;min-height:0;max-height:65svh;overflow:auto;perspective:none;padding:8px 14px 20px}.dex-folded .dex-collect-card.dex-fold-under{display:none}.dex-folded .dex-collect-card.dex-fold-target{position:relative;left:auto;top:auto;width:100%;transform:none;animation:dex-result-in .18s ease-out both;transition:transform .15s;filter:none;isolation:isolate;box-shadow:3px 4px 0 #173451,6px 7px 0 #fff3b9,7px 8px 0 #173451,10px 11px 0 #ffe138,11px 12px 0 #173451}.dex-folded .dex-collect-card.dex-fold-target:hover{transform:translateY(-3px)}.dex-collect-card{content-visibility:auto;contain-intrinsic-size:auto 290px}@keyframes dex-result-in{from{opacity:.6;transform:translateY(5px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.dex-folded .dex-collect-card.dex-fold-target{animation:none}}

/* Logos lisibles et vernis sélectif du portrait. */
.inspect-group img{width:92px;height:61px;padding:4px}.inspect-group{font-size:13px;gap:14px}.inspect-portrait-foil{position:relative;min-height:0;width:100%;height:100%;overflow:hidden;border-radius:8px;background:repeating-conic-gradient(#fff5c6 0 10deg,#f4d368 10deg 20deg);isolation:isolate}.inspect-portrait-foil>img{display:block;width:100%;height:100%;min-height:0;object-fit:contain;object-position:center bottom}.inspect-portrait-foil::after{content:'';position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at var(--spec-x,50%) var(--spec-y,45%),#ffffff90 0%,#fffce332 15%,transparent 43%),linear-gradient(var(--spec-angle,115deg),transparent 20%,#bfefff08 33%,#fff9 43%,#fff2 47%,transparent 58%,#b9dcff24 70%,transparent 80%);background-size:100% 100%,220% 220%;background-position:center,var(--spec-x,50%) var(--spec-y,45%);mix-blend-mode:screen;opacity:.48;transition:background-position .12s ease-out}.dex-group-stack{width:108px;height:145px;padding:8px}.group-stack-cover{height:94px}.dex-group-stack strong{font-size:14px}.dex-card-hemicycle{height:405px}@media(max-width:1000px){.dex-group-stack{width:87px;height:119px;padding:6px}.group-stack-cover{height:74px}.dex-card-hemicycle{height:355px}.dex-group-stack strong{font-size:12px}}@media(max-width:600px){.dex-group-stack{width:59px;height:87px;padding:4px}.group-stack-cover{height:54px}.dex-group-stack strong{font-size:9px;margin-top:6px}.dex-card-hemicycle{height:270px}.inspect-group img{width:70px;height:47px}.inspect-group{font-size:11px;gap:10px}}@media(max-height:650px){.inspect-group img{width:57px;height:38px}.inspect-group{font-size:9px}}

.dex-fold-ghost{content-visibility:visible!important;contain:none!important;animation:none!important;transition:none!important;overflow:hidden;box-shadow:3px 4px 0 #173451}

/* Profondeur douce entre les rayons, le portrait et le vernis. */
.inspect-portrait-foil{background:none}.inspect-portrait-foil::before{content:'';position:absolute;inset:-18px;background:repeating-conic-gradient(#fff5c6 0 10deg,#f4d368 10deg 20deg);transform:translate(var(--portrait-bg-x,0px),var(--portrait-bg-y,0px));transition:transform .14s ease-out;pointer-events:none;z-index:0}.inspect-portrait-foil>img{position:relative;z-index:1;transform:translate(var(--portrait-px,0px),var(--portrait-py,0px)) scale(1.06);transform-origin:50% 65%;transition:transform .14s ease-out}.inspect-portrait-foil::after{z-index:2}@media(prefers-reduced-motion:reduce){.inspect-portrait-foil::before,.inspect-portrait-foil>img{transform:none;transition:none}}

/* Identité du groupe et estampille holographique sous le portrait. */
.collect-art{position:relative;isolation:isolate;background:repeating-conic-gradient(color-mix(in srgb,var(--card-color) 30%,white) 0 10deg,color-mix(in srgb,var(--card-color) 65%,white) 10deg 20deg)}.collect-art>img:not(.collect-holo-emblem){position:relative;z-index:2}.collect-art>img.collect-holo-emblem{position:absolute;z-index:1;width:80%;height:65%;left:10%;top:5%;object-fit:contain;opacity:.22;filter:grayscale(1) contrast(1.3);mix-blend-mode:luminosity;transform:rotate(-14deg);pointer-events:none}.inspect-portrait-foil::before{background:repeating-conic-gradient(color-mix(in srgb,var(--card-color) 25%,white) 0 10deg,color-mix(in srgb,var(--card-color) 70%,white) 10deg 20deg)}.inspect-portrait-foil>img:not(.portrait-holo-emblem){z-index:2}.inspect-portrait-foil>img.portrait-holo-emblem{position:absolute;z-index:1;inset:5% 8% auto;width:84%;height:74%;object-fit:contain;object-position:center;opacity:.27;filter:grayscale(1) contrast(1.5) drop-shadow(1px 0 0 #99faff) drop-shadow(-1px 0 0 #ffc0ff);mix-blend-mode:luminosity;transform:translate(var(--portrait-bg-x,0px),var(--portrait-bg-y,0px)) rotate(-12deg);pointer-events:none}.inspect-portrait-foil::after{z-index:3;background:radial-gradient(ellipse at var(--spec-x,50%) var(--spec-y,45%),#ffffff80 0%,#fffce32a 15%,transparent 43%),linear-gradient(var(--spec-angle,115deg),transparent 18%,#7df9ff20 32%,#f9aaff55 40%,#fff9 44%,#f8ef8b40 49%,#9affc926 55%,transparent 65%);background-size:100% 100%,220% 220%;background-position:center,var(--spec-x,50%) var(--spec-y,45%)}.dex-discovery-card:not(.inspect-front)>img{background:repeating-conic-gradient(color-mix(in srgb,var(--card-color,#ffe138) 25%,white) 0 10deg,color-mix(in srgb,var(--card-color,#ffe138) 65%,white) 10deg 20deg)}

/* Filigrane lisible au-dessus de l'illustration, sous le vernis. */
.inspect-portrait-foil>img.portrait-holo-emblem{z-index:3;inset:4% 3% auto auto;width:61%;height:47%;opacity:.48;filter:grayscale(1) contrast(1.7) drop-shadow(1px 0 0 #8dfaff) drop-shadow(-1px 0 0 #ffb5ed);mix-blend-mode:multiply;transform:translate(var(--portrait-bg-x,0px),var(--portrait-bg-y,0px)) rotate(-13deg)}.inspect-portrait-foil::after{z-index:4;opacity:.57}.collect-art>img.collect-holo-emblem{z-index:3;left:auto;right:3%;top:4%;width:60%;height:45%;opacity:.4;filter:grayscale(1) contrast(1.6);mix-blend-mode:multiply}

/* Fenêtre : cadre immobile, scène reculée et fond plus lointain. */
.inspect-portrait-foil{border:2px solid #173451;box-shadow:inset 0 2px 8px #102b4266;background:color-mix(in srgb,var(--card-color) 50%,white)}.inspect-portrait-foil::before{inset:-45px;transition:transform .1s ease-out}.inspect-portrait-foil>img:not(.portrait-holo-emblem){transform:translate(var(--portrait-px,0px),var(--portrait-py,0px)) scale(1.12);transform-origin:50% 60%;transition:transform .1s ease-out}.inspect-portrait-foil>img.portrait-holo-emblem{transform:rotate(-13deg);transition:none}.inspect-portrait-foil::after{box-shadow:inset 0 8px 13px -7px #102b42aa,inset 7px 0 12px -8px #102b4277,inset 0 0 0 1px #fff8;border-radius:5px}@media(prefers-reduced-motion:reduce){.inspect-portrait-foil::before,.inspect-portrait-foil>img:not(.portrait-holo-emblem){transform:none;transition:none}}

/* Micro-motif holographique, révélé seulement par l'inclinaison. */
.inspect-portrait-foil>img.portrait-holo-emblem,.collect-art>img.collect-holo-emblem{display:none}.portrait-holo-pattern{position:absolute;inset:0;z-index:3;pointer-events:none;background-repeat:repeat;background-size:38px 29px;background-position:0 0;filter:grayscale(1) invert(1) contrast(2);mix-blend-mode:screen;opacity:var(--holo-strength,0);mask-image:linear-gradient(var(--spec-angle,115deg),transparent 12%,#0002 28%,#000 44%,#000 52%,#0002 68%,transparent 85%);mask-size:200% 200%;mask-position:var(--spec-x,50%) var(--spec-y,45%);transition:opacity .12s ease-out,mask-position .12s ease-out}.inspect-portrait-foil::after{opacity:calc(.15 + var(--holo-strength,0) * .7)}@media(prefers-reduced-motion:reduce){.portrait-holo-pattern{transition:none}}

/* Logo principal de la fiche, distinct du micro-motif. */
.inspect-group img{width:126px;height:79px;padding:3px;max-width:42%;border-radius:7px}.inspect-group{gap:15px;min-height:84px;font-size:13px}.inspect-group span{flex:1;min-width:0}@media(max-width:600px){.inspect-group img{width:99px;height:64px;max-width:42%;padding:3px}.inspect-group{min-height:68px;gap:10px;font-size:11px}}@media(max-height:650px){.inspect-group img{width:80px;height:49px;padding:2px}.inspect-group{min-height:52px;font-size:10px;gap:9px}}

/* Filigrane sur la surface jaune ; fenêtre du portrait évidée. */
.inspect-front>.portrait-holo-pattern{position:absolute;inset:0;z-index:5;border-radius:10px;background-size:51px 39px;pointer-events:none;clip-path:inset(100%);mix-blend-mode:screen}.inspect-front>.portrait-holo-pattern~*{position:relative}.inspect-portrait-foil{isolation:isolate}

/* Mobile : limiter les surfaces compositées, garder de vraies cibles tactiles. */
.dex-load-more{grid-column:1/-1;min-height:46px;border:2px solid #173451;border-radius:8px;background:#ffe138;color:#173451;font-weight:800;margin:10px 0;position:relative;z-index:2}.app-in-background *,.app-in-background *::before,.app-in-background *::after{animation-play-state:paused!important}@media(pointer:coarse){button,select,summary{touch-action:manipulation}.choice{min-height:60px}.audio-dock button,.inspect-toolbar button,#closeDepudex{min-width:44px;min-height:44px}.dex-search,.typed-form input,select{font-size:16px!important}.card-inspector{backdrop-filter:none;-webkit-backdrop-filter:none;background:#071b2be8}body:has(#cardInspector:not([hidden])) #depudexPanel{filter:none}.portrait-holo-pattern{filter:grayscale(1) invert(1);transition:opacity .12s}.question-rain span:nth-child(n+13){display:none}.dex-collect-card.unlocked{transform:none;transform-style:flat}.dex-fold-ghost{filter:none!important}.audio-settings-panel{max-height:calc(100dvh - 90px);overflow:auto}.depudex-panel{overscroll-behavior:contain}.dex-group-stack{touch-action:manipulation}.inspect-stage{touch-action:none}}@media(max-width:600px){.dex-group-stack{width:52px;height:81px}.group-stack-cover{height:48px}.dex-group-stack:hover{translate:0 0}.dex-group-stack:focus-visible,.dex-group-stack.active{z-index:5}.inspect-toolbar{flex-shrink:0}.card-inspector{padding:14px 12px;gap:10px}.inspect-stage{width:min(88vw,calc(73dvh * 5 / 7))}.card-inspector>p{text-align:center;line-height:1.4}.audio-dock{bottom:max(12px,env(safe-area-inset-bottom));right:max(12px,env(safe-area-inset-right))}footer{padding-bottom:90px}.dex-top{flex-wrap:nowrap}.dex-top h2{font-size:26px}.dex-top>button{flex-shrink:0}}@media(prefers-reduced-motion:reduce){.question-rain,.intro-question-rain{display:none}}

.hemicycle-3d-panel{position:fixed;inset:0;z-index:195;background:#f7f0df;color:#173451;display:flex;flex-direction:column;padding:22px;gap:12px}.hemicycle-3d-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;max-width:1300px;width:100%;margin:0 auto}.hemicycle-3d-toolbar span{font-size:10px;letter-spacing:2px;font-weight:800}.hemicycle-3d-toolbar h2{margin:4px 0;font-size:30px}.hemicycle-3d-toolbar p{margin:0;font-size:14px}.hemicycle-3d-toolbar button,.hemicycle-3d-controls button,.inspect-seat-button{background:#ffe138;border:2px solid #173451;color:#173451;border-radius:7px;box-shadow:2px 3px 0 #173451;font-weight:800;min-height:44px;padding:8px 14px}.hemicycle-3d-stage{position:relative;flex:1;min-height:0;width:min(1300px,100%);margin:0 auto;border:3px solid #173451;border-radius:12px;overflow:hidden;background:#e8eadd}.hemicycle-3d-stage canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}.hemicycle-3d-stage canvas:active{cursor:grabbing}.hemicycle-seat-label{position:absolute;transform:translate(-50%,-160%);background:#ffe138;border:2px solid #173451;border-radius:6px;padding:5px 10px;font-weight:900;font-size:13px;pointer-events:none;box-shadow:2px 3px 0 #173451;white-space:nowrap}.hemicycle-3d-controls{display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap}.hemicycle-3d-controls span,.hemicycle-3d-panel>small{font-size:11px;text-align:center}.inspect-seat-button{font-size:10px;min-height:36px;margin-top:7px;width:100%}.hemicycle-3d-panel>small{opacity:.75}.hemicycle-3d-stage>p{position:absolute;inset:35% 15%;text-align:center}@media(max-width:600px){.hemicycle-3d-panel{padding:12px 9px;gap:10px}.hemicycle-3d-toolbar h2{font-size:23px}.hemicycle-3d-toolbar p{font-size:11px}.hemicycle-3d-toolbar span{font-size:8px}.hemicycle-3d-controls{gap:10px}.hemicycle-3d-controls span{flex-basis:100%;font-size:10px}.hemicycle-3d-panel>small{font-size:9px}.inspect-facts .inspect-seat-button{font-size:9px;min-height:32px;margin-top:5px;padding:5px}}

/* Carte flottante ancrée au fauteuil choisi. */
.hemicycle-deputy-card{position:absolute;width:162px;transform:translate(-50%,-100%);background:linear-gradient(135deg,#fff2b1,#ffe138);border:3px solid #173451;border-radius:10px;padding:7px;box-shadow:3px 5px 0 #173451,0 10px 18px #17345135;pointer-events:none;text-align:center;display:flex;flex-direction:column;gap:5px}.hemicycle-deputy-card::after{content:'';position:absolute;left:50%;top:100%;height:22px;width:2px;background:#173451}.hemicycle-deputy-card>small{font-size:8px;font-weight:900;letter-spacing:1px}.hemicycle-deputy-card>img,.hemicycle-card-mystery{width:100%;height:117px;object-fit:contain;object-position:center bottom;border:1px solid #173451;border-radius:5px;background:repeating-conic-gradient(#fff6cf 0 10deg,#e5c96c 10deg 20deg)}.hemicycle-deputy-card>strong{font-size:13px;line-height:1.1}.hemicycle-deputy-card>span{font-size:8px;line-height:1.2}.hemicycle-card-mystery{font-size:70px;font-weight:900;color:#173451}@media(max-width:600px){.hemicycle-deputy-card{width:133px;padding:6px;gap:4px}.hemicycle-deputy-card>img,.hemicycle-card-mystery{height:91px}.hemicycle-deputy-card>strong{font-size:11px}.hemicycle-deputy-card>span{font-size:7px}}

.inspect-seat-outside{position:relative;flex-shrink:0;min-height:44px;border:2px solid #173451;border-radius:8px;background:#ffe138;color:#173451;font-weight:800;font-size:13px;padding:10px 20px;box-shadow:3px 4px 0 #173451;cursor:pointer}.inspect-seat-outside:hover{background:#fff093;transform:translateY(-2px)}.inspect-seat-outside:active{transform:translateY(2px);box-shadow:1px 2px 0 #173451}.card-inspector .inspect-stage{width:min(405px,75vw,calc(65dvh * 5 / 7))}@media(max-width:600px){.card-inspector .inspect-stage{width:min(88vw,calc(66dvh * 5 / 7))}.inspect-seat-outside{font-size:12px;padding:8px 16px}}

/* Présentation du fauteuil : carte, affiliation et repère numéroté. */
.hemicycle-3d-panel{background:radial-gradient(ellipse at 50% 20%,#fff9e9,#e6dcc9)}.hemicycle-3d-stage{border:2px solid #294158;box-shadow:0 12px 35px #17345115,inset 0 0 0 3px #fff6}.hemicycle-deputy-card{width:184px;gap:7px;padding:9px;border-radius:13px;box-shadow:3px 5px 0 #173451,0 15px 25px #17345140}.hemicycle-deputy-card>.hemicycle-card-seat{display:block;padding:6px 4px;border-radius:5px;background:#173451;color:#ffe138;font-size:13px;font-weight:900;letter-spacing:1px}.hemicycle-deputy-card>img{height:128px}.hemicycle-deputy-card>strong{font-size:15px;line-height:1.15}.hemicycle-card-group{display:flex;align-items:center;justify-content:center;gap:7px;background:#fff9e5;border-radius:6px;padding:6px;min-height:43px;border:1px solid #17345125}.hemicycle-card-group>img{width:44px;height:31px;object-fit:contain;flex-shrink:0}.hemicycle-card-group>span{font-size:9px;font-weight:800;line-height:1.25;text-align:left}.hemicycle-seat-label{font-size:14px;border-width:3px;padding:7px 12px;color:#173451;background:#ffe138;transform:translate(-50%,-40%)}.hemicycle-deputy-card::after{height:24px;background:linear-gradient(#173451,#d2a93e);width:3px}@media(max-width:600px){.hemicycle-deputy-card{width:149px;padding:7px;gap:5px}.hemicycle-deputy-card>.hemicycle-card-seat{font-size:11px;padding:5px}.hemicycle-deputy-card>img{height:98px}.hemicycle-deputy-card>strong{font-size:12px}.hemicycle-card-group{padding:4px;gap:5px;min-height:37px}.hemicycle-card-group>img{width:34px;height:25px}.hemicycle-card-group>span{font-size:8px}.hemicycle-seat-label{font-size:11px;padding:6px 9px}}

.hemicycle-minimap{position:absolute;right:14px;bottom:14px;width:190px;max-width:30%;border:2px solid #173451;border-radius:10px;background:#fff8e8ed;padding:9px;box-shadow:3px 4px 0 #17345122;pointer-events:none}.hemicycle-minimap>strong{display:block;font-size:8px;letter-spacing:1px;text-align:center;color:#173451}.hemicycle-minimap>svg{display:block;width:100%;height:auto;margin:5px 0}.hemicycle-minimap>span{display:block;text-align:center;font-size:11px;font-weight:900;color:#173451}@media(max-width:600px){.hemicycle-minimap{width:126px;max-width:34%;right:8px;bottom:8px;padding:6px;border-radius:7px}.hemicycle-minimap>strong{font-size:6px;letter-spacing:.5px}.hemicycle-minimap>span{font-size:9px}}

/* DÉPUDEX — console cartoon, LCD et détails républicains. */
#depudexPanel{--dex-navy:#173451;--dex-yellow:#ffe138;--dex-lcd:#e7f1cd;--dex-led:#71d99e;color:#173451;background:radial-gradient(ellipse at 50% 0%,#fff3ad55,transparent 65%),#faf7ee;border:0;border-top:5px solid transparent;border-image:linear-gradient(90deg,#3063b4 0 33.33%,#fffefa 33.33% 66.66%,#ed3758 66.66%) 1;box-shadow:inset 0 0 0 4px #1734510a;padding-top:24px}
#depudexPanel .dex-top{border-bottom:2px solid #17345124;box-shadow:0 2px 0 #fff;gap:19px;padding-bottom:21px}#depudexPanel .dex-top .eyebrow{font-size:9px;color:#536b84;letter-spacing:2px}#depudexPanel .dex-top h2{color:#ffe138;font-size:44px;letter-spacing:3px;-webkit-text-stroke:2px #173451;paint-order:stroke fill;text-shadow:2px 3px 0 #173451;margin:3px 0}#depudexPanel .dex-top p{color:#173451;font-size:12px;font-weight:600}#depudexPanel .dex-republic-seal{display:block;position:relative;width:77px;flex:0 0 77px;padding:0;align-self:center}#depudexPanel .dex-republic-seal svg{display:block;width:100%;height:auto}#depudexPanel .dex-republic-seal::after{content:'';position:absolute;width:11px;height:11px;right:0;bottom:5px;border:2px solid #173451;border-radius:50%;background:#71d99e;box-shadow:0 0 9px #71d99e99;animation:dex-led-pulse 2.8s ease-in-out infinite}#depudexPanel .dex-top>button{background:#ffe138;color:#173451;border:2px solid #173451;border-radius:8px;box-shadow:3px 4px 0 #173451}#depudexPanel .dex-stage{background:linear-gradient(145deg,#fffdf2,#f1edda);border:3px solid #173451;border-radius:14px 14px 14px 28px;box-shadow:4px 6px 0 #173451,inset 0 0 0 3px #fff9;padding:18px}#depudexPanel .dex-stage::after{content:'●  DÉPUDEX  ·  COLLECTION ACTIVE   ▰ ▰ ▰';font:800 8px/1.5 monospace;letter-spacing:1.5px;color:#486276;border-top:2px solid #17345122;margin-top:18px;padding-top:13px}#depudexPanel .dex-card-hemicycle{background:repeating-linear-gradient(0deg,#17345105 0 1px,transparent 1px 4px),radial-gradient(ellipse at 50% 100%,#c1e2e3,#dfeeee 65%);border:3px solid #173451;border-radius:9px;box-shadow:inset 0 4px 8px #17345124,0 2px 0 #fff}#depudexPanel .dex-arc-caption{color:#37546e;letter-spacing:2px;font-size:9px}#depudexPanel .dex-group-stack{background:linear-gradient(135deg,#fff1a0,#ffe138);border:2px solid #173451;border-radius:8px;box-shadow:2px 3px 0 #173451,5px 6px 0 #faf7ee,6px 7px 0 #173451;color:#173451}#depudexPanel .group-stack-cover{background:#fffef8;border:1px solid #17345144;border-radius:5px}#depudexPanel .dex-group-stack strong{color:#d9f0b7;background:#203e43;border:1px solid #173451;border-radius:3px;font-family:monospace;line-height:1.4;letter-spacing:.2px;box-shadow:inset 0 2px 3px #0003}#depudexPanel .dex-group-stack:hover,#depudexPanel .dex-group-stack.active,#depudexPanel .dex-group-stack.card-group-highlight{background:#fff2aa;outline:3px solid #ed3758;outline-offset:3px;box-shadow:2px 3px 0 #173451,0 0 16px #ffe13866}#depudexPanel .dex-screen-caption{color:#375c6d;font-family:monospace;font-size:8px;letter-spacing:1px}#depudexPanel .dex-card-toolbar{border-color:#17345133}#depudexPanel .dex-card-toolbar h3{color:#173451;font-size:15px}#depudexPanel .dex-card-toolbar button,#depudexPanel .dex-load-more{background:#ffe138;color:#173451;border:2px solid #173451;border-radius:7px;box-shadow:2px 3px 0 #173451;font-size:11px;font-weight:800}#depudexPanel .dex-card-toolbar label{color:#173451}#depudexPanel input[type=checkbox]{accent-color:#ed3758}#depudexPanel .dex-profile{color:#173451;background:linear-gradient(130deg,#ffe96c,#ffe138);border:3px solid #173451;border-radius:11px;box-shadow:3px 5px 0 #173451,inset 0 0 0 2px #fff5}#depudexPanel .dex-profile .dex-search-label{color:#173451;font-family:Barlow,Arial,sans-serif;font-weight:800;font-size:11px}#depudexPanel .dex-search{background:repeating-linear-gradient(0deg,#17345105 0 1px,transparent 1px 4px),#e7f1cd;color:#173451;border:2px solid #173451;border-radius:5px;font-family:monospace;min-height:42px;box-shadow:inset 0 3px 5px #17345120}#depudexPanel .dex-search::placeholder{color:#587365}#depudexPanel .dex-search:focus{outline:3px solid #458ac3;outline-offset:2px}#depudexPanel .dex-profile>.dex-reset-collection{background:#fffaf0;color:#9b2540;border:2px solid #173451;border-radius:6px;box-shadow:2px 3px 0 #173451}#depudexPanel .dex-profile>small{color:#536b73}#depudexPanel .dex-progress-track{background:#28454b;border:2px solid #173451;border-radius:4px}#depudexPanel #dexProgress{background:repeating-linear-gradient(90deg,#8cd9b7 0 7px,#28454b 7px 9px)}#depudexPanel .dex-cards::-webkit-scrollbar-thumb{background:#69869b}#depudexPanel .dex-cards::-webkit-scrollbar-track{background:#e0e5dc}#depudexPanel .dex-collect-card.locked{background:#e9ece4;color:#607487;border-color:#74899a;box-shadow:2px 3px 0 #74899a}#depudexPanel .locked .collect-art{background:repeating-linear-gradient(45deg,#d6e1dd 0 9px,#e2e9e3 9px 18px);color:#7a918f;border-color:#829690}#depudexPanel #dexHemicycle3d::after{content:'';display:inline-block;vertical-align:middle;margin-left:7px;width:7px;height:7px;border:1px solid #173451;border-radius:50%;background:#71d99e;box-shadow:0 0 5px #71d99e;animation:dex-led-pulse 3.4s .6s ease-in-out infinite}#depudexPanel button:focus-visible{outline:3px solid #287abb;outline-offset:4px}
/* Le même boîtier est utilisé pendant le rangement animé des cartes. */
.capture-device-back,.capture-device-cover{background:linear-gradient(130deg,#fff19d,#ffe138 65%);border:3px solid #173451;box-shadow:4px 6px 0 #17345155,inset 0 0 0 3px #fff6;border-radius:13px}.capture-device-back::before,.capture-device-cover::before{content:'';position:absolute;top:0;left:13px;right:13px;height:5px;background:linear-gradient(90deg,#3063b4 0 33%,#fffdf2 33% 66%,#ed3758 66%);border-radius:0 0 4px 4px}.capture-device-back>strong,.capture-device-cover strong{color:#173451;text-shadow:1px 1px 0 #fff3a5}.capture-device-light{box-shadow:0 0 0 2px #173451,0 0 10px #77dcf199}.capture-device-screen{background:repeating-linear-gradient(0deg,#1734510a 0 1px,transparent 1px 3px),#d9ebc5;color:#234d46;box-shadow:inset 0 3px 7px #17345133;border:3px solid #173451}.capture-device-screen b{color:#2b5d4e;animation:dex-led-pulse 2.4s ease-in-out infinite}.capture-slot{border-color:#173451;box-shadow:0 2px 0 #fff7;background:#173451}.capture-device-cover span{display:block;background:#fff6b2;border:2px solid #173451;border-radius:12px;box-shadow:2px 3px 0 #173451}.capture-device-cover span svg{width:100%;height:100%;display:block}.card-received .capture-device-screen{background:#d7f3b5;box-shadow:inset 0 2px 5px #17345133,0 0 12px #b9efac}.card-received .capture-slot{box-shadow:0 0 14px 4px #ffe138}
@keyframes dex-led-pulse{0%,100%{opacity:.5}50%{opacity:1}}@media(max-width:600px){#depudexPanel{padding:18px 12px;border-top-width:4px}#depudexPanel .dex-top{gap:12px;padding-bottom:17px}#depudexPanel .dex-republic-seal{width:48px;flex-basis:48px}#depudexPanel .dex-top h2{font-size:31px;letter-spacing:2px}#depudexPanel .dex-top .eyebrow{font-size:7px;letter-spacing:1px}#depudexPanel .dex-top p{font-size:10px}#depudexPanel .dex-stage{padding:11px;border-radius:11px 11px 11px 20px}#depudexPanel .dex-screen-caption{font-size:6px;letter-spacing:.5px}#depudexPanel .dex-arc-caption{font-size:7px;letter-spacing:1px}#depudexPanel .dex-card-toolbar h3{font-size:13px}#depudexPanel .dex-stage::after{font-size:6px;letter-spacing:.7px}#depudexPanel .dex-republic-seal::after{width:8px;height:8px}}@media(prefers-reduced-motion:reduce){#depudexPanel .dex-republic-seal::after,#depudexPanel #dexHemicycle3d::after,.capture-device-screen b{animation:none;opacity:1}}

/* Le Dépudex apparaît comme un objet et devient l'interface de collection. */
.dex-arrival-stage{position:fixed;inset:0;z-index:130;display:grid;place-items:center;overflow:hidden;background:radial-gradient(ellipse,#17345144,transparent 72%);perspective:1100px;outline:none}.dex-arrival-body{width:265px;height:345px;perspective:1000px;filter:drop-shadow(0 24px 22px #17345140)}.dex-arrival-device.capture-device{position:relative;inset:auto;width:100%;height:100%;opacity:1;transform:none;transition:none;perspective:1000px;pointer-events:none}.dex-arrival-device .capture-device-back{padding:23px}.dex-arrival-device .capture-device-back>strong{font-size:31px;margin-top:24px}.dex-arrival-device .capture-device-light{width:35px;height:35px}.dex-arrival-device .capture-device-screen{padding:25px 6px;margin-top:20px;font-size:12px}.dex-arrival-device .capture-device-screen b{font-size:11px}.dex-arrival-device .capture-slot{margin-top:22px}.dex-arrival-device .capture-device-cover{gap:20px;border-width:4px;transform:rotateY(0deg);transition:none}.dex-arrival-device .capture-device-cover>span{width:94px;height:94px;border-radius:16px}.dex-arrival-device .capture-device-cover>strong{font-size:36px;letter-spacing:3px}.dex-arrival-device .capture-device-cover>small{color:#173451;font-size:8px;font-weight:800;letter-spacing:1.5px}@media(max-width:600px){.dex-arrival-body{width:205px;height:282px;filter:none}.dex-arrival-device .capture-device-back{padding:17px}.dex-arrival-device .capture-device-back>strong{font-size:25px;margin-top:18px}.dex-arrival-device .capture-device-screen{padding:18px 4px;font-size:10px}.dex-arrival-device .capture-device-screen b{font-size:9px}.dex-arrival-device .capture-device-cover>span{width:77px;height:77px}.dex-arrival-device .capture-device-cover>strong{font-size:30px}.dex-arrival-device .capture-device-cover{gap:15px}}

/* Coque rouge, panneaux bleus et liserés dorés : même objet au menu et dans le jeu. */
#depudexPanel{background:radial-gradient(ellipse at 12% 0%,#ff738244,transparent 65%),linear-gradient(135deg,#e92f52,#c41b40);color:#fff5df;box-shadow:inset 0 0 0 4px #173451,inset 0 0 0 7px #f2c96788;border-top-color:transparent}#depudexPanel .dex-top{border-bottom:2px solid #f2c96799;box-shadow:0 2px 0 #a51233}#depudexPanel .dex-top .eyebrow{color:#fff0c9}#depudexPanel .dex-top h2{color:#f6d260;text-shadow:2px 3px 0 #173451}#depudexPanel .dex-top p{color:#fff5df}#depudexPanel .dex-top>button{background:#f6d260;border-color:#173451}#depudexPanel .dex-stage{border-color:#173451;box-shadow:4px 6px 0 #891632,inset 0 0 0 3px #fff8;background:linear-gradient(145deg,#fffaf0,#f7efd9)}#depudexPanel .dex-card-hemicycle{background:repeating-linear-gradient(0deg,#ffffff04 0 1px,transparent 1px 4px),radial-gradient(ellipse at 50% 100%,#2f5475,#173451 75%);border:3px solid #c7a65a;box-shadow:inset 0 4px 12px #071a2c66,0 2px 0 #173451;border-radius:10px}#depudexPanel .dex-arc-caption{color:#f3dba6}#depudexPanel .dex-group-stack{background:linear-gradient(135deg,#ffe8a0,#ecc14e);border-color:#173451;box-shadow:2px 3px 0 #071a2c,5px 6px 0 #d4b464,6px 7px 0 #071a2c}#depudexPanel .dex-group-stack:hover,#depudexPanel .dex-group-stack.active,#depudexPanel .dex-group-stack.card-group-highlight{outline-color:#fff4c3;background:#fff0a8}#depudexPanel .dex-profile{color:#fff5df;background:linear-gradient(135deg,#24496b,#173451);border:3px solid #e6bc58;box-shadow:3px 5px 0 #891632,inset 0 0 0 2px #ffffff10}#depudexPanel .dex-profile .dex-search-label{color:#fff0c6}#depudexPanel .dex-search{background:repeating-linear-gradient(0deg,#17345105 0 1px,transparent 1px 4px),#dfeddd;border-color:#dbbc72}#depudexPanel .dex-profile>.dex-reset-collection{background:#fff5dc;color:#9b2542;border-color:#f4d78d;box-shadow:2px 3px 0 #0c2034}#depudexPanel .dex-profile>small{color:#cad9de}#depudexPanel .dex-progress-track{border-color:#c5a65a;background:#0c2438}#depudexPanel #dexProgress{background:repeating-linear-gradient(90deg,#f5d477 0 7px,#173451 7px 9px)}
.capture-device-back,.capture-device-cover{background:linear-gradient(135deg,#f04b62,#ce2043 75%);border:3px solid #173451;box-shadow:4px 6px 0 #17345155,inset 0 0 0 3px #efc768;border-radius:13px}.capture-device-cover::after{content:'';position:absolute;left:6px;top:8px;bottom:8px;width:9px;background:#173451;border-right:2px solid #e4ba58;border-radius:5px 0 0 5px}.capture-device-back>strong,.capture-device-cover strong{color:#f6d260;text-shadow:1px 2px 0 #173451}.capture-device-cover span{background:#173451;border:2px solid #f4d27a;box-shadow:2px 3px 0 #173451}.capture-device-screen{background:repeating-linear-gradient(0deg,#17345108 0 1px,transparent 1px 3px),#dcecdf;border-color:#173451;box-shadow:inset 0 3px 7px #17345133,0 0 0 2px #e7c877}.capture-slot{border-color:#e8c36c;box-shadow:0 2px 0 #8e1630}.dex-arrival-device .capture-device-cover>small{color:#fff1c9}.dex-arrival-device .capture-device-cover{border-color:#173451}.card-received .capture-device-screen{background:#e8f3c6;box-shadow:inset 0 2px 5px #17345133,0 0 13px #f8dd87}.card-received .capture-slot{box-shadow:0 0 14px 4px #f6d260}

/* La collection vit réellement dans le boîtier : seul son couvercle se déploie. */
#depudexPanel{display:grid;place-items:center;padding:20px;background:#071b2b99;border:0;border-image:none;box-shadow:none;overflow:hidden;perspective:1500px}.dex-console{position:relative;width:min(1260px,96vw);height:min(880px,92dvh);min-height:0;transform-origin:50% 55%;transform-style:preserve-3d;border:4px solid #173451;border-radius:22px;background:linear-gradient(135deg,#eb3c57,#c51c40);box-shadow:0 24px 70px #06132666,inset 0 0 0 3px #e6bd62;isolation:auto}.dex-console::before{content:'';position:absolute;left:7px;top:24px;bottom:24px;width:9px;border-radius:8px;background:linear-gradient(90deg,#173451,#355675,#173451);border:1px solid #e6bd62;z-index:1;pointer-events:none}.dex-console-content{height:100%;overflow:auto;overscroll-behavior:contain;border-radius:17px;padding:22px 24px 22px 30px;position:relative;z-index:1;opacity:1}.dex-console-content::before{content:'';display:block;position:absolute;top:3px;left:28px;right:22px;height:5px;background:linear-gradient(90deg,#3868bb 0 33%,#fff9e9 33% 66%,#eb3c57 66%);border-bottom:1px solid #e6bd62;border-radius:0 0 3px 3px}.dex-console-cover{position:absolute;inset:-1px;z-index:3;border:4px solid #173451;border-radius:19px;background:linear-gradient(135deg,#f05266,#cc2143 75%);box-shadow:inset 0 0 0 4px #e6bd62,8px 10px 0 #071b2b44;transform-origin:0% 50%;transform:rotateY(-155deg);backface-visibility:hidden;-webkit-backface-visibility:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;pointer-events:none}.dex-console-cover>span{width:130px;height:130px}.dex-console-cover svg{display:block;width:100%;height:100%}.dex-console-cover>strong{font:900 clamp(45px,7vw,82px)/1 'Barlow Condensed',Impact,sans-serif;letter-spacing:7px;color:#f7d774;-webkit-text-stroke:2px #173451;paint-order:stroke fill;text-shadow:3px 5px 0 #173451}.dex-console-cover>small{color:#fff1c7;font-weight:800;letter-spacing:4px;font-size:11px}.dex-console-cover>i{width:60px;height:9px;border:2px solid #173451;border-radius:8px;background:#78d8aa;box-shadow:0 0 15px #78d8aa55;animation:dex-led-pulse 2.8s ease-in-out infinite}.dex-console-arriving .dex-console-content{opacity:0}.dex-console-arriving .dex-console-cover{transform:rotateY(0deg)}.dex-console-arriving{pointer-events:none}.dex-console-arriving .dex-console{pointer-events:none}#depudexPanel .dex-top{padding-top:3px}#depudexPanel .dex-layout{margin-top:20px}@media(max-width:600px){#depudexPanel{padding:7px}.dex-console{width:calc(100vw - 14px);height:calc(100dvh - 18px);border-width:3px;border-radius:15px}.dex-console-content{padding:17px 11px 18px 19px;border-radius:12px}.dex-console::before{left:4px;width:6px;top:17px;bottom:17px}.dex-console-cover{border-width:3px;border-radius:13px;gap:18px}.dex-console-cover>span{width:95px;height:95px}.dex-console-cover>strong{font-size:43px;letter-spacing:3px}.dex-console-cover>small{font-size:8px;letter-spacing:2px}.dex-console-content::before{left:19px;right:12px;height:4px}}

.dex-console-arriving{pointer-events:auto}

/* États explicites pour éviter le flash d'une console déjà ouverte. */
.dex-console-arriving .dex-console{transform:translateY(110vh) scale(.34) rotate(-6deg)}.dex-console-leaving .dex-console{pointer-events:none}.dex-console-leaving .dex-console-content{pointer-events:none}.dex-console-leaving{pointer-events:auto}.dex-console-cover{will-change:auto}.dex-console-arriving .dex-console-cover,.dex-console-leaving .dex-console-cover{will-change:transform}.dex-console-arriving .dex-console,.dex-console-leaving .dex-console{will-change:transform}

/* Vrai volet à deux faces : l'intérieur reste visible pendant son pivot. */
.dex-console-cover{transform:rotateY(-120deg);transform-style:preserve-3d;backface-visibility:visible;-webkit-backface-visibility:visible}.dex-console-cover>span,.dex-console-cover>strong,.dex-console-cover>small,.dex-console-cover>i{backface-visibility:hidden;-webkit-backface-visibility:hidden;transform:translateZ(3px)}.dex-console-inner-lid{position:absolute;inset:3px;border:4px solid #e6bd62;border-radius:14px;background:linear-gradient(135deg,#214969,#102d49);transform:rotateY(180deg) translateZ(2px);backface-visibility:hidden;-webkit-backface-visibility:hidden;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:26px;box-shadow:inset 0 0 0 5px #173451,inset 0 0 25px #07152566;pointer-events:none}.dex-inner-speaker{width:34%;height:26px;border-top:4px solid #071d32;border-bottom:4px solid #071d32;background:repeating-linear-gradient(0deg,transparent 0 5px,#071d32 5px 9px);border-radius:10px}.dex-inner-lcd{width:72%;padding:30px 10px;border:7px solid #091e32;border-radius:9px;background:repeating-linear-gradient(0deg,#17345109 0 1px,transparent 1px 4px),#dcf0cf;box-shadow:0 0 0 2px #e6bd62,inset 0 4px 9px #17345144;text-align:center;color:#234d46}.dex-inner-lcd>span{display:block;font:900 clamp(20px,4vw,45px) 'Barlow Condensed',Impact,sans-serif;letter-spacing:4px}.dex-inner-lcd>strong{display:block;font:800 11px monospace;letter-spacing:2px;margin-top:12px}.dex-inner-lcd>i{display:block;color:#41865b;font-size:18px;letter-spacing:12px;margin-top:18px;font-style:normal}.dex-inner-controls{display:flex;gap:18px}.dex-inner-controls>b{display:block;width:25px;height:25px;background:#f0ca61;border:3px solid #071d32;border-radius:50%;box-shadow:0 3px 0 #071d32}.dex-inner-controls>b:nth-child(2){background:#e94b61}.dex-inner-controls>b:nth-child(3){background:#70c8c2}@media(max-width:600px){.dex-console-inner-lid{border-width:3px;gap:18px}.dex-inner-lcd{padding:24px 5px;border-width:4px;width:82%}.dex-inner-lcd>strong{font-size:8px;letter-spacing:1px}.dex-inner-lcd>span{font-size:25px}.dex-inner-controls{gap:13px}.dex-inner-controls>b{width:18px;height:18px}}

/* Une seule zone de défilement dans le boîtier, sans barres imbriquées. */
body:has(#depudexPanel:not([hidden])){overflow:hidden}#depudexPanel .dex-console-content{display:flex;flex-direction:column;overflow:hidden;min-height:0}#depudexPanel .dex-top{flex:0 0 auto}#depudexPanel .dex-layout{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable;scroll-padding-top:145px;padding:0 9px 18px 0;gap:18px;overflow-anchor:auto}#depudexPanel .dex-profile{order:-1;position:sticky;top:0;z-index:12;flex:0 0 auto;max-height:none;overflow:visible;margin:0}#depudexPanel .dex-stage{flex:0 0 auto;min-height:0}#depudexPanel .dex-cards,#depudexPanel .dex-cards.dex-folded{overflow:visible;max-height:none;height:auto;min-height:0;perspective:none}#depudexPanel .dex-collect-card{content-visibility:visible;contain-intrinsic-size:none}#depudexPanel .dex-layout::-webkit-scrollbar{width:10px}#depudexPanel .dex-layout::-webkit-scrollbar-track{background:#991c38;border-radius:8px}#depudexPanel .dex-layout::-webkit-scrollbar-thumb{background:#f0ca6e;border:2px solid #991c38;border-radius:8px}#depudexPanel .dex-layout{scrollbar-color:#f0ca6e #991c38;scrollbar-width:thin}@media(max-width:600px){#depudexPanel .dex-layout{gap:13px;margin-top:13px;padding-right:5px;scroll-padding-top:145px}#depudexPanel .dex-profile>small{display:none}#depudexPanel .dex-profile{gap:8px;padding:10px}#depudexPanel .dex-top{padding-bottom:12px}#depudexPanel .dex-top h2{font-size:27px}#depudexPanel .dex-republic-seal{width:42px;flex-basis:42px}}

/* Le passage de grille à colonne doit rétablir l'étirement, pas conserver align-items:start. */
#depudexPanel .dex-layout{align-items:stretch;width:100%;box-sizing:border-box}#depudexPanel .dex-stage,#depudexPanel .dex-profile{width:100%;max-width:none;box-sizing:border-box;align-self:stretch}#depudexPanel .dex-card-hemicycle{width:100%;box-sizing:border-box}#depudexPanel .dex-group-arc{min-width:0}#depudexPanel .dex-cards{width:100%;box-sizing:border-box}#depudexPanel .dex-group-stack{z-index:1}#depudexPanel .dex-group-stack:hover,#depudexPanel .dex-group-stack:focus-visible,#depudexPanel .dex-group-stack.active{z-index:4}@media(max-width:650px){#depudexPanel .dex-card-hemicycle{height:235px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;touch-action:pan-x pan-y}#depudexPanel .dex-group-arc{width:660px;min-width:660px;height:210px;right:auto}#depudexPanel .dex-group-stack{width:55px;height:82px}#depudexPanel .group-stack-cover{height:49px}#depudexPanel .dex-arc-caption{position:sticky;top:214px;left:0;padding:3px 0;width:100%;font-size:7px}}

/* Tablette rétro monobloc : le LCD et sa routine d'allumage remplacent le livre. */
.dex-console{transform-style:flat;padding:17px 17px 21px 25px;background:linear-gradient(130deg,#ed465d,#c92543);border-radius:24px;border:4px solid #173451;box-shadow:0 22px 55px #071b2b55,inset 0 0 0 3px #e5bf64,inset 0 -7px 0 #9e1735}.dex-console::before{left:8px;top:45%;bottom:auto;height:63px;width:9px;background:repeating-linear-gradient(0deg,#18334e 0 5px,#a3233d 5px 9px);border:1px solid #173451}.dex-console-content{border:7px solid #173451;border-radius:11px;background:repeating-linear-gradient(0deg,#17345104 0 1px,transparent 1px 4px),#dfe7c5;box-shadow:inset 0 5px 14px #17345133;padding:16px!important}.dex-console-content::before{display:none}#depudexPanel .dex-top{border-bottom-color:#506a4f66;box-shadow:none;padding-bottom:14px}#depudexPanel .dex-top h2{color:#23483e;text-shadow:none;-webkit-text-stroke:0;letter-spacing:3px}#depudexPanel .dex-top .eyebrow,#depudexPanel .dex-top p{color:#3b5948}#depudexPanel .dex-top>button{background:#eadb92}.dex-tablet-boot{position:absolute;inset:17px 17px 21px 25px;z-index:4;border:7px solid #173451;border-radius:11px;background:repeating-linear-gradient(0deg,#183d340c 0 1px,transparent 1px 4px),#dfe7c5;color:#294c3d;display:none;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:15px;pointer-events:none;font-family:monospace}.dex-tablet-starting .dex-console-content{opacity:0}.dex-tablet-starting .dex-tablet-boot{display:flex}.dex-tablet-starting .dex-console{transform:translateY(110vh) scale(.5)}.dex-tablet-starting .dex-console,.dex-tablet-stopping .dex-console{pointer-events:none;will-change:transform}.dex-boot-pixel-mark{width:96px;height:72px;image-rendering:pixelated}.dex-boot-pixel-mark svg{display:block;width:100%;height:100%}.dex-tablet-boot>strong{font:900 clamp(30px,5vw,55px)/1 monospace;letter-spacing:5px;text-shadow:2px 2px #9ba885}.dex-tablet-boot>span{font-size:9px;letter-spacing:2px}.dex-boot-lines{min-height:52px;font-size:12px;line-height:1.6}.dex-boot-lines p{margin:0;color:#294c3d}.dex-boot-track{width:min(330px,65%);height:18px;border:3px solid #294c3d;padding:2px}.dex-boot-track>i{display:block;width:100%;height:100%;background:repeating-linear-gradient(90deg,#294c3d 0 9px,transparent 9px 12px);transform-origin:left;transform:scaleX(0)}.dex-tablet-boot>small{font-size:8px;letter-spacing:2px}.dex-tablet-stopping .dex-console{background:linear-gradient(130deg,#ed465d,#c92543)}@media(max-width:600px){.dex-console{padding:10px 9px 12px 15px;border-radius:17px}.dex-console-content{padding:9px!important;border-width:4px;border-radius:8px}.dex-tablet-boot{inset:10px 9px 12px 15px;border-width:4px;gap:12px}.dex-console::before{left:4px;width:6px;height:43px}.dex-boot-pixel-mark{width:72px;height:54px}.dex-boot-lines{font-size:10px}.dex-tablet-boot>span{font-size:7px;letter-spacing:1px}}

/* Projection depuis la tablette : faisceau bref et grille au déploiement du relief. */
.holo-deploying::before{content:'';position:fixed;left:var(--holo-origin-x,50%);top:var(--holo-origin-y,80%);width:85vw;height:75vh;transform:translate(-50%,-100%);transform-origin:50% 100%;clip-path:polygon(5% 0,95% 0,52% 100%,48% 100%);background:linear-gradient(0deg,#69e4ef77,#82dffa11 80%,transparent);pointer-events:none;z-index:2;animation:holo-beam 1.05s ease-out both}.holo-deploying .hemicycle-3d-stage::after{content:'';position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(0deg,transparent 0 28px,#70cde966 28px 29px),repeating-linear-gradient(90deg,transparent 0 28px,#70cde966 28px 29px);transform:perspective(700px) rotateX(48deg) scale(1.4);transform-origin:50% 75%;animation:holo-grid 1.05s ease-out both}.holo-deploying .hemicycle-minimap,.holo-deploying .hemicycle-3d-toolbar,.holo-deploying .hemicycle-3d-controls{animation:holo-controls .9s ease-out both}@keyframes holo-beam{0%{opacity:0;scale:.3 1}25%{opacity:1;scale:1 1}70%{opacity:.5}100%{opacity:0}}@keyframes holo-grid{0%{opacity:0}30%{opacity:.8}100%{opacity:0}}@keyframes holo-controls{0%,50%{opacity:0}100%{opacity:1}}@media(prefers-reduced-motion:reduce){.holo-deploying::before,.holo-deploying .hemicycle-3d-stage::after{display:none}}

/* Commandes physiques, diode et LCD d'extinction. */
.dex-console{display:flex;flex-direction:column}.dex-hardware-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex:0 0 35px;margin:0 2px 9px;color:#ffe3a0;font:900 13px 'Barlow Condensed',Impact,sans-serif;letter-spacing:2px}.dex-hardware-bar>span>small{font:700 7px monospace;letter-spacing:1px;margin-left:10px}.dex-hardware-bar>div{display:flex;align-items:center;gap:13px}.dex-power-button{display:grid;place-items:center;width:35px;height:35px;min-width:35px;min-height:35px;background:#173451;color:#f8db90;border:2px solid #e6c16c;border-radius:50%;box-shadow:0 3px 0 #7b1730;padding:6px;cursor:pointer}.dex-power-button svg{width:20px;height:20px}.dex-power-button:active{transform:translateY(2px);box-shadow:0 1px 0 #7b1730}.dex-power-led{width:11px;height:11px;display:block;background:#44483f;border:2px solid #173451;border-radius:50%;box-shadow:inset 0 1px 1px #fff3;transition:background .18s,box-shadow .18s}#depudexPanel[data-power=on] .dex-power-led{background:#74e79e;box-shadow:0 0 9px #74e79e99}#depudexPanel[data-power=booting] .dex-power-led{background:#edc465;box-shadow:0 0 7px #edc46577}#depudexPanel[data-power=stopping] .dex-power-led{background:#ff6570;box-shadow:0 0 9px #ff657099}#depudexPanel .dex-republic-seal::after{display:none}.dex-console-content{height:auto;flex:1;min-height:0}.dex-tablet-boot{top:61px}.dex-tablet-stopping .dex-tablet-boot{display:flex}.dex-tablet-stopping .dex-console-content{pointer-events:none}
/* La carte se range dans l'écran d'une tablette, sans couvercle ni fente. */
.capture-device-cover,.capture-slot{display:none!important}.capture-device{height:265px}.capture-device-back{display:flex;flex-direction:column;padding:13px}.capture-device-back>strong{margin:8px 0 10px;font-size:18px}.capture-device-light{width:12px;height:12px;background:#70e3a0;border:2px solid #173451;box-shadow:0 0 7px #70e3a0}.capture-device-screen{position:relative;flex:1;margin:0;padding:22px 3px;min-height:145px;overflow:hidden;border-width:4px}.capture-pixel-receipt{position:absolute;left:50%;top:6px;transform:translateX(-50%);width:90px;height:108px;image-rendering:pixelated;opacity:0}.capture-pixel-name{position:absolute;left:4px;right:4px;bottom:6px;font:900 9px monospace;color:#234d46;line-height:1.15;opacity:0}.card-received .capture-device-screen{font-size:0;color:transparent}.card-received .capture-device-screen>b{visibility:hidden}.card-received .capture-pixel-receipt,.card-received .capture-pixel-name{opacity:1;transition:opacity .12s}.card-received .capture-pixel-receipt{animation:capture-pixel-lock .3s steps(3) both}@keyframes capture-pixel-lock{from{transform:translateX(-50%) scale(1.12);opacity:.3}to{transform:translateX(-50%) scale(1);opacity:1}}@media(max-width:600px){.dex-hardware-bar{flex-basis:33px;margin-bottom:6px;font-size:11px}.dex-hardware-bar>span>small{display:none}.dex-tablet-boot{top:49px}.capture-device{height:228px}.capture-device-screen{min-height:135px}.capture-pixel-receipt{width:80px;height:96px}.capture-device-back>strong{font-size:15px;margin:6px 0 8px}}

/* Écran cathodique : sous-couche noire persistante et un seul déploiement lumineux. */
.dex-console::after{content:'';position:absolute;inset:61px 17px 21px 25px;background:#050b09;border:7px solid #173451;border-radius:11px;z-index:0;pointer-events:none}.dex-console-content{z-index:1}.dex-tablet-boot{z-index:4}.dex-tablet-starting .dex-tablet-boot{opacity:0}.dex-tablet-starting:not(.dex-screen-ready) .dex-console-content{visibility:hidden}.dex-screen-off .dex-console-content,.dex-screen-off .dex-tablet-boot{visibility:hidden!important}.dex-console-content{position:relative}.dex-console-content::after{content:'';position:absolute;inset:0;pointer-events:none;z-index:20;border-radius:7px;background:repeating-linear-gradient(0deg,#183d3407 0 1px,transparent 1px 4px);box-shadow:inset 0 0 24px #183d3422}.dex-lcd-wordmark{display:block;width:100%;height:auto;image-rendering:pixelated;overflow:visible}#depudexPanel .dex-top{display:grid;grid-template-columns:70px 1fr 70px;align-items:center;gap:12px}#depudexPanel .dex-top::after{content:'';width:70px}#depudexPanel .dex-top>div:nth-child(2){justify-self:center;text-align:center;width:min(460px,100%)}#depudexPanel .dex-top h2{width:100%;margin:8px auto 7px;line-height:1;color:#294c3d;filter:drop-shadow(.8px 0 #c55e5777) drop-shadow(-.8px 0 #6aadb677)}#depudexPanel .dex-top .eyebrow{font-size:8px;letter-spacing:2px}.dex-tablet-boot>strong{width:min(520px,75%);filter:drop-shadow(1px 0 #c55e5777) drop-shadow(-1px 0 #6aadb677)}#depudexPanel .dex-republic-seal{color:#294c3d;width:65px;flex-basis:65px}#depudexPanel .dex-republic-seal svg{width:100%;height:auto}#depudexPanel .dex-screen-caption,.dex-boot-lines,#depudexPanel .dex-group-stack strong{text-shadow:.65px 0 #a4594e66,-.65px 0 #4f899166}.dex-tablet-boot{box-shadow:inset 0 0 32px #183d3422}.dex-tablet-stopping .dex-tablet-boot{opacity:1}@media(max-width:600px){.dex-console::after{inset:49px 9px 12px 15px;border-width:4px}#depudexPanel .dex-top{grid-template-columns:39px 1fr 39px;gap:7px}#depudexPanel .dex-top::after{width:39px}#depudexPanel .dex-republic-seal{width:37px;flex-basis:37px}#depudexPanel .dex-top .eyebrow{font-size:6px;letter-spacing:1px}#depudexPanel .dex-top p{font-size:9px}.dex-tablet-boot>strong{width:80%}}
/* Démonstrations des modes : choisir parmi quatre réponses ou écrire un nom. */
.mode-demo{height:106px;display:flex;align-items:center;gap:13px;position:relative;overflow:hidden;margin-bottom:4px;pointer-events:none}.demo-mystery{display:grid;place-items:center;width:54px;height:74px;flex:0 0 54px;background:#173451;color:#ffe138;border:2px solid #ffe138;border-radius:8px;font:900 46px 'Barlow Condensed',Impact,sans-serif;font-style:normal}.demo-answers{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;width:100%;max-width:140px}.demo-answers>i{display:grid;place-items:center;height:31px;border:2px solid #173451;border-radius:5px;background:#fff6d4;color:#173451;font:900 17px 'Barlow Condensed',Impact,sans-serif;animation:mode-option-arrive 4.5s ease-in-out infinite}.demo-answers>i:nth-child(2){animation-delay:.12s}.demo-answers>i:nth-child(3){animation-delay:.24s}.demo-answers>i:nth-child(4){animation:mode-correct 4.5s ease-in-out infinite}.mode-demo-classic>b{position:absolute;right:0;bottom:3px;background:#83d29a;color:#173451;border:2px solid #173451;border-radius:50%;width:25px;height:25px;text-align:center;animation:mode-tick 4.5s ease-in-out infinite}.mode-demo-hardcore{flex-wrap:wrap;gap:8px 12px;padding-left:66px}.mode-demo-hardcore>.demo-mystery{position:absolute;left:0;top:16px}.demo-type{height:38px;border:2px solid #173451;border-radius:5px;background:#fff8e6;color:#173451;width:100%;display:flex;align-items:center;padding:6px 8px;font:800 14px monospace;overflow:hidden}.demo-type>span{display:block;white-space:nowrap;overflow:hidden;max-width:6ch;animation:mode-typing 4.5s steps(6,end) infinite}.demo-type>i{width:2px;height:17px;background:#173451;animation:mode-caret .8s steps(1) infinite}.demo-keys{display:flex;gap:6px;align-self:flex-start}.demo-keys>i,.demo-keys>b{display:grid;place-items:center;height:26px;min-width:37px;background:#fff0b5;border:2px solid #173451;border-radius:4px;color:#173451;font:900 18px monospace;box-shadow:0 2px 0 #173451}.demo-keys>b{animation:mode-enter 4.5s ease-in-out infinite}@keyframes mode-option-arrive{0%,8%{opacity:.2;transform:translateY(9px)}22%,90%{opacity:1;transform:none}100%{opacity:.2;transform:translateY(9px)}}@keyframes mode-correct{0%,40%,100%{background:#fff6d4;transform:none}55%,88%{background:#8fd4a3;transform:scale(1.04)}}@keyframes mode-tick{0%,45%,100%{opacity:0;transform:scale(.5)}60%,90%{opacity:1;transform:scale(1)}}@keyframes mode-typing{0%,12%{max-width:0}58%,90%{max-width:6ch}100%{max-width:0}}@keyframes mode-caret{50%{opacity:0}}@keyframes mode-enter{0%,60%,100%{transform:none;background:#fff0b5}70%,85%{transform:translateY(2px);box-shadow:none;background:#8fd4a3}}@media(max-width:600px){.mode-demo{height:95px;gap:7px}.demo-mystery{width:37px;height:58px;flex-basis:37px;font-size:34px}.demo-answers{gap:4px}.demo-answers>i{font-size:14px;height:27px}.mode-demo-hardcore{padding-left:43px}.demo-type{font-size:10px;padding:4px;min-width:0}.demo-keys>i,.demo-keys>b{min-width:25px;height:23px;font-size:15px}}@media(prefers-reduced-motion:reduce){.mode-demo *{animation:none!important}.demo-type>span{max-width:6ch}.mode-demo-classic>b{opacity:1}}

/* La maquette 3D occupe le LCD existant et conserve toute la coque de la tablette. */
.dex-console>.hemicycle-3d-panel{position:absolute;inset:61px 17px 21px 25px;z-index:25;border:7px solid #173451;border-radius:11px;padding:12px;gap:10px;background:repeating-linear-gradient(0deg,#17345105 0 1px,transparent 1px 4px),#dfe7c5;overflow:hidden;color:#294c3d}.dex-console>.hemicycle-3d-panel .hemicycle-3d-toolbar{flex:0 0 auto;max-width:none}.dex-console>.hemicycle-3d-panel .hemicycle-3d-toolbar span{font:800 8px monospace;letter-spacing:1px}.dex-console>.hemicycle-3d-panel .hemicycle-3d-toolbar h2{font:900 24px 'Barlow Condensed',Impact,sans-serif;color:#294c3d}.dex-console>.hemicycle-3d-panel .hemicycle-3d-stage{border:2px solid #294c3d;background:#dfe7c5;box-shadow:inset 0 0 18px #17345122;border-radius:6px}.dex-console>.hemicycle-3d-panel .hemicycle-3d-toolbar button{width:auto;height:auto;font-size:11px;padding:7px 12px;min-height:36px;background:#d4e1b4;border:2px solid #294c3d;box-shadow:2px 2px 0 #294c3d;color:#294c3d}.dex-console>.hemicycle-3d-panel .hemicycle-3d-controls button{background:#d4e1b4;border-color:#294c3d;color:#294c3d;box-shadow:2px 2px 0 #294c3d;min-height:35px;font-size:11px}.dex-console>.hemicycle-3d-panel .hemicycle-3d-controls span{font-size:10px}.dex-console>.hemicycle-3d-panel>small{font-size:8px}.dex-console>.hemicycle-3d-panel.holo-deploying::before{position:absolute;left:50%;top:100%;width:100%;height:100%}.dex-console>.hemicycle-3d-panel .hemicycle-minimap{background:#e5edcfee;border-color:#294c3d}.dex-console>.hemicycle-3d-panel .hemicycle-3d-stage::before{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;box-shadow:inset 0 0 22px #17345120;background:repeating-linear-gradient(0deg,#17345104 0 1px,transparent 1px 4px)}@media(max-width:600px){.dex-console>.hemicycle-3d-panel{inset:49px 9px 12px 15px;border-width:4px;padding:8px;gap:8px}.dex-console>.hemicycle-3d-panel .hemicycle-3d-toolbar h2{font-size:19px}.dex-console>.hemicycle-3d-panel .hemicycle-3d-toolbar p{font-size:9px}.dex-console>.hemicycle-3d-panel .hemicycle-3d-controls span{font-size:8px}.dex-console>.hemicycle-3d-panel .hemicycle-3d-controls{gap:7px}}

/* Tablette plus généreuse et audio accessible au-dessus de ses vues. */
#depudexPanel{padding:10px;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);background:#071b2b66}.dex-console{width:min(1460px,98vw);height:min(1040px,96dvh);padding-bottom:62px}.dex-console::after,.dex-tablet-boot{bottom:62px}.dex-console>.hemicycle-3d-panel{bottom:62px}.audio-dock{z-index:221}.audio-settings-panel{z-index:222}body:has(#depudexPanel:not([hidden])) .audio-dock{background:#f7df96;border:2px solid #173451;box-shadow:2px 3px 0 #173451}body:has(#depudexPanel:not([hidden])) .audio-settings-panel{max-height:calc(100dvh - 105px);overflow-y:auto;overscroll-behavior:contain}@media(max-width:600px){#depudexPanel{padding:5px;backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}.dex-console{width:calc(100vw - 10px);height:calc(100dvh - 12px);padding-bottom:60px}.dex-console::after,.dex-tablet-boot,.dex-console>.hemicycle-3d-panel{bottom:60px}.audio-dock{bottom:max(11px,env(safe-area-inset-bottom));right:12px}}

.device-closed .capture-device-light{background:#e96370;box-shadow:0 0 6px #e9637077}.device-closed .capture-device-screen{opacity:0;transition:opacity .2s}

/* Le boîtier en jeu reprend la tablette : rouge/or, commande physique et LCD horizontal. */
.capture-device{width:300px;height:270px;left:75%;top:29%;perspective:none}.capture-tablet-shell{padding:12px 12px 14px 17px;border-radius:15px;display:flex;flex-direction:column;gap:8px;background:linear-gradient(130deg,#ed465d,#c92543);box-shadow:4px 6px 0 #17345166,inset 0 0 0 3px #e5bf64}.capture-mini-hardware{display:flex;align-items:center;gap:10px;height:22px;flex:0 0 22px;color:#f7dda0}.capture-mini-hardware>strong{font:900 10px 'Barlow Condensed',Impact,sans-serif;letter-spacing:2px;margin-right:auto}.capture-mini-hardware>i{display:grid;place-items:center;width:20px;height:20px;border:1px solid #e5bf64;border-radius:50%;background:#173451;font:700 15px monospace;font-style:normal}.capture-tablet-shell .capture-device-light{width:8px;height:8px}.capture-tablet-shell .capture-device-screen{background:repeating-linear-gradient(0deg,#17345108 0 1px,transparent 1px 4px),#dde8bb;border:5px solid #173451;min-height:0;flex:1;margin:0;padding:0;position:relative;box-shadow:inset 0 0 15px #17345133;overflow:hidden}.capture-mini-title{position:absolute;top:7px;left:50%;transform:translateX(-50%);width:100px;color:#294c3d}.capture-mini-title svg{display:block;width:100%;height:auto}.capture-reception-label{position:absolute;top:50%;left:8px;right:8px;font:800 8px monospace;letter-spacing:1px;text-align:center;color:#294c3d}.capture-pixel-receipt{position:absolute;left:50%;top:35px;transform:translateX(-50%);height:calc(100% - 42px);width:auto;max-width:80%;aspect-ratio:5/7;object-fit:contain;image-rendering:pixelated;opacity:0;clip-path:inset(0 0 100% 0);border:0}.capture-feed-slot{position:absolute;left:3px;top:37%;width:5px;height:38%;border:1px solid #e5bf64;border-radius:3px;background:#173451;box-shadow:inset 0 0 3px #050e17}.card-received .capture-pixel-receipt{opacity:1;animation:teletext-receive 1.25s steps(16,end) both;transition:none}.card-received .capture-reception-label{opacity:0}.card-received .capture-device-screen::after{content:'';position:absolute;left:12%;right:12%;top:35px;height:2px;background:#294c3d;box-shadow:0 1px 0 #8da26b;animation:teletext-scan 1.25s steps(16,end) both;pointer-events:none}.card-received .capture-device-screen{color:#294c3d;font-size:inherit;background:repeating-linear-gradient(0deg,#17345108 0 1px,transparent 1px 4px),#dde8bb}.device-closed .capture-mini-hardware .capture-device-light{background:#e96370}.device-closed .capture-device-screen{background:#050b09}@keyframes teletext-receive{from{clip-path:inset(0 0 100% 0)}to{clip-path:inset(0)}}@keyframes teletext-scan{0%{top:35px;opacity:1}96%{top:calc(100% - 8px);opacity:1}100%{top:calc(100% - 8px);opacity:0}}@media(max-width:650px){.capture-device{width:206px;height:231px;left:69%;top:34%}.capture-tablet-shell{padding:9px 9px 10px 13px;gap:6px}.capture-mini-hardware{height:19px;flex-basis:19px}.capture-mini-title{width:78px;top:7px}.capture-pixel-receipt{top:29px;height:calc(100% - 35px)}.capture-tablet-shell .capture-device-screen{border-width:4px}.capture-mini-hardware>strong{font-size:8px}.capture-mini-hardware>i{width:17px;height:17px;font-size:13px}.card-received .capture-device-screen::after{top:29px}}@media(prefers-reduced-motion:reduce){.card-received .capture-pixel-receipt{animation:none;clip-path:none}.card-received .capture-device-screen::after{display:none}}

/* Alimentation par le haut : la descente physique et les lignes LCD partagent la même durée. */
.capture-feed-slot{left:26%;right:26%;top:2px;width:auto;height:5px;border-radius:3px;box-shadow:inset 0 0 3px #050e17}.card-received .capture-pixel-receipt{animation:teletext-receive var(--scan-duration,1500ms) steps(20,end) both}.card-received .capture-device-screen::after{animation:teletext-scan var(--scan-duration,1500ms) steps(20,end) both}.device-closed .capture-tablet-shell .capture-device-screen{opacity:1!important;background:#050b09!important;box-shadow:inset 0 0 10px #0008;transition:background .2s}.device-closed .capture-device-screen>*,.device-closed .capture-device-screen::after{opacity:0!important;visibility:hidden}.device-closed .capture-tablet-shell .capture-device-light{background:#e96370;box-shadow:0 0 7px #e9637066}.device-off .capture-tablet-shell .capture-device-light{background:#414840;box-shadow:none}.device-closed .capture-device>p{opacity:0}.card-scanning .capture-device{z-index:6}

/* Le bord inférieur entre en premier : le télétexte se reconstruit du bas vers le haut. */
.capture-device-screen{--receipt-top:35px}.capture-pixel-receipt{clip-path:inset(100% 0 0 0)}@keyframes teletext-receive{from{clip-path:inset(100% 0 0 0)}to{clip-path:inset(0)}}@keyframes teletext-scan{0%{top:calc(100% - 8px);opacity:1}96%{top:var(--receipt-top,35px);opacity:1}100%{top:var(--receipt-top,35px);opacity:0}}@media(max-width:650px){.capture-device-screen{--receipt-top:29px}}

/* Cartes possédées : carrousel vertical et comparaison de fauteuils. */
.hemicycle-workspace{display:grid;grid-template-columns:minmax(0,1fr) 172px;gap:12px;flex:1;min-height:0;width:100%}.hemicycle-workspace>.hemicycle-3d-stage{height:100%;min-height:0}.hemicycle-carousel{display:flex;flex-direction:column;min-height:0;overflow:hidden;border:2px solid #294c3d;border-radius:8px;background:#c6d7ac;color:#294c3d;padding:8px;gap:7px}.hemicycle-carousel-heading{display:flex;flex-direction:column;gap:3px;text-align:center;font:800 10px monospace}.hemicycle-carousel-heading>span{font-size:8px;font-weight:500}.hemicycle-carousel-nav{display:flex;align-items:center;justify-content:space-between;font:800 9px monospace}.hemicycle-carousel button{border:2px solid #294c3d;border-radius:5px;background:#e7edc9;color:#294c3d;font-weight:800}.hemicycle-carousel-nav>button{min-width:31px;min-height:29px;font-size:21px;line-height:1;padding:1px}.hemicycle-carousel-track{position:relative;flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scroll-snap-type:y mandatory;padding:70px 3px;scrollbar-width:thin;scrollbar-color:#627a50 #c6d7ac}.hemicycle-carousel-item{scroll-snap-align:center;margin:0 0 14px;opacity:.68;transition:opacity .15s;display:flex;flex-direction:column;gap:4px}.hemicycle-carousel-item.is-current{opacity:1}.hemicycle-rail-card{width:100%;display:flex;flex-direction:column;align-items:center;padding:6px;gap:4px;box-shadow:2px 3px 0 #294c3d33}.hemicycle-rail-card>img{width:100%;height:98px;object-fit:contain;object-position:center bottom;background:repeating-conic-gradient(#e9efcf 0 10deg,#c4d3a8 10deg 20deg);border:1px solid #294c3d44;border-radius:3px}.hemicycle-rail-card>strong{font-size:10px;line-height:1.15}.hemicycle-rail-card>small{font-size:8px}.hemicycle-carousel-item.is-current>.hemicycle-rail-card{border-color:#173451;background:#ffe397;box-shadow:0 0 0 2px #173451}.hemicycle-carousel-item>label{display:flex;justify-content:center;align-items:center;gap:5px;font:700 9px monospace;cursor:pointer}.hemicycle-carousel-item input{width:16px;height:16px;accent-color:#294c3d}.hemicycle-clear-compared{min-height:32px;font-size:9px;padding:5px}.hemicycle-carousel>small{font:500 8px/1.4 monospace;text-align:center}.hemicycle-compared-pins{position:absolute;inset:0;pointer-events:none}.hemicycle-compared-pin{position:absolute;transform:translate(-50%,-50%);background:#7ce2be;color:#173451;border:2px solid #173451;border-radius:5px;font:900 10px monospace;padding:3px 5px;box-shadow:1px 2px 0 #17345155}@media(max-width:700px){.hemicycle-workspace{grid-template-columns:1fr;grid-template-rows:minmax(170px,1fr) 133px;gap:7px}.hemicycle-carousel{display:grid;grid-template-columns:32px minmax(0,1fr) 34px;grid-template-rows:1fr;padding:5px;gap:4px}.hemicycle-carousel-heading,.hemicycle-carousel>small{display:none}.hemicycle-carousel-nav{display:contents}.hemicycle-carousel-nav>span{display:none}.hemicycle-carousel-nav>button:first-child{grid-column:1;grid-row:1;align-self:center}.hemicycle-carousel-nav>button:last-child{grid-column:3;grid-row:1;align-self:center}.hemicycle-carousel-track{grid-column:2;grid-row:1;display:flex;gap:10px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;padding:3px max(0px,calc(50% - 45px));height:116px;min-height:0}.hemicycle-carousel-item{flex:0 0 88px;margin:0;gap:3px}.hemicycle-rail-card{padding:3px;gap:2px}.hemicycle-rail-card>img{height:52px}.hemicycle-rail-card>strong{font-size:8px;max-width:100%}.hemicycle-rail-card>small{font-size:6px}.hemicycle-carousel-item>label{font-size:7px}.hemicycle-carousel-item input{width:13px;height:13px}.hemicycle-clear-compared{display:none}.hemicycle-compared-pin{font-size:8px;padding:2px 4px}}

@media(max-width:700px){.hemicycle-workspace .hemicycle-deputy-card{width:108px;padding:5px;gap:4px}.hemicycle-workspace .hemicycle-deputy-card>img{height:57px}.hemicycle-workspace .hemicycle-deputy-card>.hemicycle-card-seat{font-size:8px;padding:4px}.hemicycle-workspace .hemicycle-deputy-card>strong{font-size:9px}.hemicycle-workspace .hemicycle-card-group{min-height:23px;padding:3px;gap:3px}.hemicycle-workspace .hemicycle-card-group>img{width:23px;height:16px}.hemicycle-workspace .hemicycle-card-group>span{font-size:6px}.hemicycle-workspace .hemicycle-clear-compared{display:block;grid-column:1/-1;grid-row:2;font-size:8px;min-height:24px;padding:2px}.hemicycle-workspace{grid-template-rows:minmax(150px,1fr) 151px}.hemicycle-workspace .hemicycle-carousel{grid-template-rows:116px 23px}}

/* La recherche appartient à la collection, entre les groupes et leurs cartes. */
#depudexPanel .dex-stage>.dex-profile{position:sticky;top:0;z-index:12;order:initial;width:100%;margin:10px 0 19px;padding:11px 13px;border-width:2px;box-shadow:2px 3px 0 #17345133;gap:8px 12px}#depudexPanel .dex-stage>.dex-profile>small{display:none}#depudexPanel .dex-stage>.dex-profile .dex-search-label{font-size:10px}#depudexPanel .dex-stage>.dex-profile .dex-search{max-width:none;flex:1;min-width:160px}#depudexPanel .dex-stage>.dex-profile .dex-progress-track{width:90px}#depudexPanel .dex-layout{scroll-padding-top:90px}@media(max-width:600px){#depudexPanel .dex-stage>.dex-profile{margin:9px 0 15px;padding:9px;gap:7px}#depudexPanel .dex-stage>.dex-profile .dex-search-label{flex-basis:100%}#depudexPanel .dex-stage>.dex-profile .dex-progress-track{width:60px}#depudexPanel .dex-stage>.dex-profile>.dex-reset-collection{font-size:8px;padding:6px}.dex-stage>.dex-profile .dex-search{min-width:110px}}

/* Petites cartes de comparaison reliées à chaque fauteuil conservé. */
.hemicycle-compared-pins{z-index:3}.hemicycle-compare-links{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}.hemicycle-compare-links line{stroke:#294c3d;stroke-width:1.5;stroke-dasharray:4 3}.hemicycle-compared-card{position:absolute;transform:translate(-50%,-100%);display:flex;flex-direction:column;gap:3px;padding:4px;border:2px solid #294c3d;border-radius:6px;background:#d9e5ba;box-shadow:2px 3px 0 #294c3d55;color:#294c3d;text-align:center;pointer-events:none}.hemicycle-compared-card>small{font:900 8px monospace}.hemicycle-compared-card>img{display:block;width:100%;aspect-ratio:1.1;object-fit:contain;object-position:center bottom;background:#b8cba0;border-radius:3px}.hemicycle-compared-card>strong{font:800 8px/1.1 Barlow,Arial,sans-serif}.hemicycle-deputy-card{z-index:4}#depudexPanel .dex-top h2{width:min(280px,100%);margin:4px auto}#depudexPanel .dex-top{padding-bottom:9px}#depudexPanel .dex-top>div:nth-child(2){width:min(330px,100%)}#depudexPanel .dex-top p{margin:3px 0;font-size:11px}#depudexPanel .dex-top .eyebrow{font-size:7px;letter-spacing:1.5px}@media(max-width:600px){#depudexPanel .dex-top h2{width:min(190px,100%)}#depudexPanel .dex-top p{font-size:8px}.hemicycle-compared-card{padding:3px;gap:2px}.hemicycle-compared-card>small{font-size:6px}.hemicycle-compared-card>strong{font-size:6px}.hemicycle-compare-links line{stroke-width:1}}

/* L'aperçu 3D et la recherche occupent le centre libre de l'arc, selon le croquis. */
#depudexPanel .dex-card-hemicycle{position:relative;overflow:hidden;height:440px}#depudexPanel .dex-group-viewport{position:absolute;inset:0;overflow:hidden}#depudexPanel .dex-group-arc{inset:0;width:100%;height:100%;min-width:0}#depudexPanel .dex-card-hemicycle>.dex-profile{position:absolute;left:19%;right:19%;bottom:12px;top:auto;z-index:8;width:auto;min-height:0;margin:0;padding:8px 10px;display:flex;gap:7px;flex-wrap:wrap;border:2px solid #d9bf70;background:#24496b;box-shadow:0 3px 0 #102c46}#depudexPanel .dex-card-hemicycle>.dex-profile .dex-search-label{flex:0 0 100%;font-size:9px;margin:0}#depudexPanel .dex-card-hemicycle>.dex-profile .dex-search{width:auto;min-width:80px;min-height:34px;flex:1;font-size:12px}#depudexPanel .dex-card-hemicycle>.dex-profile .dex-progress-track,#depudexPanel .dex-card-hemicycle>.dex-profile>small{display:none}#depudexPanel .dex-card-hemicycle>.dex-profile>.dex-reset-collection{font-size:8px;min-height:31px;padding:5px 7px}#depudexPanel .dex-arc-caption{display:none}.dex-hemicycle-preview{position:absolute;left:50%;top:54%;transform:translate(-50%,-50%);width:38%;max-width:340px;min-width:180px;z-index:3;display:flex;flex-direction:column;align-items:center;padding:5px;border:1px solid #d9bf7080;background:#173451;border-radius:9px;box-shadow:0 5px 16px #071b2b44;color:#f0d68e;cursor:pointer}.dex-hemicycle-preview>canvas{display:block;width:100%;height:auto;aspect-ratio:2}.dex-hemicycle-preview>span{font:800 8px monospace;letter-spacing:.7px;padding:4px 0}.dex-hemicycle-preview:hover{border-color:#ffe397;box-shadow:0 0 14px #f0d68e33}.dex-hemicycle-preview:focus-visible{outline:3px solid #ffe397;outline-offset:3px}@media(max-width:650px){#depudexPanel .dex-card-hemicycle{height:350px;overflow:hidden}#depudexPanel .dex-group-viewport{height:210px;overflow-x:auto;overflow-y:hidden;touch-action:pan-x pan-y}#depudexPanel .dex-group-arc{width:660px;min-width:660px;height:210px}.dex-hemicycle-preview{top:61%;width:50%;min-width:130px;max-width:180px}.dex-hemicycle-preview>span{font-size:6px;letter-spacing:.2px}#depudexPanel .dex-card-hemicycle>.dex-profile{left:8px;right:8px;bottom:8px;padding:7px;gap:5px}#depudexPanel .dex-card-hemicycle>.dex-profile .dex-search-label{font-size:8px}#depudexPanel .dex-card-hemicycle>.dex-profile .dex-search{font-size:16px;min-height:32px}#depudexPanel .dex-card-hemicycle>.dex-profile>.dex-reset-collection{font-size:7px;padding:5px}}

/* Dégagement des cartes et scanner : le support physique est avalé, jamais fondu. */
#depudexPanel .dex-card-hemicycle>.dex-profile .dex-search-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.dex-hemicycle-preview{top:60%;width:32%;max-width:300px}.capture-flying-card{will-change:transform,clip-path}@media(max-width:650px){.dex-hemicycle-preview{top:63%;width:48%;max-width:170px}}

/* Commandes discrètes, contenu immédiatement après la recherche. */
#depudexPanel .dex-top{position:relative}#depudexPanel .dex-reset-tools{position:absolute;right:8px;top:50%;transform:translateY(-50%);z-index:12}#depudexPanel .dex-reset-tools>.dex-reset-collection{display:grid;place-items:center;width:38px;height:38px;min-height:0;padding:7px;margin:0;background:transparent;border:1px solid #294e3b66;border-radius:7px;color:#294e3b;box-shadow:none}#depudexPanel .dex-reset-tools>.dex-reset-collection:hover{background:#294e3b15;border-color:#294e3b}#depudexPanel .dex-reset-collection svg{width:23px;height:23px}#depudexPanel .dex-reset-tools .dex-reset-confirm{position:absolute;right:0;top:45px;width:min(300px,75vw);padding:12px;background:#e0e8c3;border:2px solid #294e3b;box-shadow:0 5px 15px #102c4655;color:#294e3b}#depudexPanel .dex-screen-caption{display:none}#depudexPanel .dex-card-toolbar{margin:9px 0 12px;padding:0 0 9px;gap:8px}#depudexPanel .dex-card-toolbar h3{flex:1 1 auto;margin:0}#depudexPanel .dex-hemicycle-preview{border:0;background:transparent;box-shadow:none;padding:0}#depudexPanel .dex-hemicycle-preview:hover{box-shadow:none;filter:brightness(1.12)}@media(max-width:650px){#depudexPanel .dex-reset-tools{right:0}#depudexPanel .dex-card-toolbar h3{flex-basis:100%}}

/* Miniature détourée sur un socle de projection LCD. */
#depudexPanel .dex-hemicycle-preview{isolation:isolate;overflow:visible}#depudexPanel .dex-hemicycle-preview::before{content:'';position:absolute;z-index:-1;left:15%;right:15%;top:49%;height:28%;border:1px solid #e4d18a88;border-radius:50%;background:radial-gradient(ellipse,#c7e9ae22,transparent 68%);box-shadow:0 0 0 7px #bdd99b08,0 0 22px #bdd99b15;transform:rotate(-3deg)}#depudexPanel .dex-hemicycle-preview>canvas{filter:drop-shadow(0 6px 2px #061b2c55) drop-shadow(0 0 6px #e8d59133);transform:scale(1.1)}#depudexPanel .dex-hemicycle-preview>span{position:relative;font-size:8px;letter-spacing:1px;color:#f2df9f;padding:8px 0 3px}#depudexPanel .dex-hemicycle-preview:hover>canvas{transform:translateY(-3px) scale(1.13)}@media(prefers-reduced-motion:no-preference){#depudexPanel .dex-hemicycle-preview>canvas{transition:transform .2s ease}}

/* Collection pixel art : sources basse résolution, agrandissement sans lissage. */
#depudexPanel .dex-group-stack,#depudexPanel .dex-collect-card,.dex-discovery-card,.inspect-group,.hemicycle-rail-card,.hemicycle-deputy-card,.hemicycle-compared-card{border-radius:2px!important}#depudexPanel .dex-group-stack img,.inspect-group img,.hemicycle-rail-card img,.hemicycle-deputy-card img,.hemicycle-compared-card img,#dexHemicyclePreviewCanvas{image-rendering:pixelated!important}#depudexPanel .dex-collect-card,.dex-discovery-card{box-shadow:3px 3px 0 #173451!important}#depudexPanel .collect-art{border-radius:0;background-image:repeating-linear-gradient(0deg,transparent 0 7px,#ffffff10 7px 8px)}#depudexPanel .dex-hemicycle-preview>canvas{aspect-ratio:128/80;max-height:150px;object-fit:contain;filter:drop-shadow(3px 4px 0 #102c4655)}

/* Le bouton corbeille ne participe pas au placement des trois colonnes LCD. */
#depudexPanel .dex-top>.dex-republic-seal{grid-column:1;grid-row:1;width:auto;justify-self:start}#depudexPanel .dex-top>.dex-title-block{grid-column:2;grid-row:1;width:min(330px,100%);justify-self:center;text-align:center;min-width:0}#depudexPanel .dex-top::after{grid-column:3;grid-row:1}#depudexPanel .dex-console,#depudexPanel .dex-console-content,#depudexPanel .dex-layout,#depudexPanel .dex-stage{min-width:0;box-sizing:border-box}#depudexPanel .dex-top>.dex-reset-tools{width:auto;justify-self:auto}

/* Les emblèmes restent lisibles : aucune interpolation pixel sur les logos. */
#depudexPanel .dex-group-stack img,#depudexPanel .dex-collect-card .collect-holo-emblem,.inspect-group img,.dex-discovery-card .portrait-holo-emblem,.hemicycle-card-group img{image-rendering:auto!important}#depudexPanel .group-stack-cover{border-radius:2px}

/* Transfert continu : le bas de la carte LCD franchit le bord supérieur de l'écran. */
.capture-transfer-window{position:absolute;top:35px;bottom:6px;left:10%;right:10%;overflow:hidden;contain:paint}.capture-transfer-window>.capture-pixel-receipt{position:absolute;left:50%;top:0!important;width:auto!important;max-width:100%;height:100%!important;aspect-ratio:5/7;object-fit:contain;clip-path:none!important;animation:none!important;opacity:1;transition:none;transform:translate(-50%,-100%)}.card-received .capture-device-screen::after{display:block;top:33px!important;height:2px;animation:none;background:#e2efb5;box-shadow:0 0 6px #688751;opacity:.8}.device-closed .capture-transfer-window{visibility:hidden}@media(max-width:650px){.capture-transfer-window{top:29px}.card-received .capture-device-screen::after{top:27px!important}}

/* Rideau pixel art : bandes franches, galon en pixels et lambrequin à marches. */
.hemicycle-curtain .curtain-panel{border-radius:0;background:repeating-linear-gradient(90deg,#580e2c 0 8px,#851335 8px 16px,#b41c43 16px 32px,#e73252 32px 40px,#c32346 40px 48px,#901536 48px 56px,#620e2b 56px 64px);box-shadow:inset 0 8px 0 #490d28,inset 0 -8px 0 #8a562b;border-bottom:8px solid #d4ad52;image-rendering:pixelated}.hemicycle-curtain .curtain-panel::after{bottom:7px;height:6px;background:repeating-linear-gradient(90deg,#f2d681 0 8px,#bf913a 8px 16px);box-shadow:0 -5px 0 #6b1730}.hemicycle-curtain .curtain-left{border-right:4px solid #f2d681}.hemicycle-curtain .curtain-right{border-left:4px solid #f2d681}.hemicycle-curtain .curtain-pelmet{background:repeating-linear-gradient(90deg,#801333 0 16px,#bb2044 16px 40px,#e83453 40px 48px,#991838 48px 64px);clip-path:polygon(0 0,100% 0,100% 70%,96% 70%,96% 82%,92% 82%,92% 90%,84% 90%,84% 82%,80% 82%,80% 70%,76% 70%,76% 82%,72% 82%,72% 90%,64% 90%,64% 82%,60% 82%,60% 70%,56% 70%,56% 82%,52% 82%,52% 90%,44% 90%,44% 82%,40% 82%,40% 70%,36% 70%,36% 82%,32% 82%,32% 90%,24% 90%,24% 82%,20% 82%,20% 70%,16% 70%,16% 82%,12% 82%,12% 90%,4% 90%,4% 82%,0 82%);border-top:8px solid #e7c46c}.hemicycle-curtain .curtain-pelmet svg{visibility:hidden}.hemicycle-curtain .curtain-seal span{border-radius:0;clip-path:polygon(16px 0,calc(100% - 16px) 0,calc(100% - 16px) 8px,100% 8px,100% calc(100% - 8px),calc(100% - 16px) calc(100% - 8px),calc(100% - 16px) 100%,16px 100%,16px calc(100% - 8px),0 calc(100% - 8px),0 8px,16px 8px);box-shadow:4px 4px 0 #490d28;text-shadow:3px 3px #490d28}.hemicycle-curtain .curtain-seal small{font-family:monospace;text-shadow:2px 2px #490d28}

#restartGame{display:none}body[data-stage="game"] #restartGame{display:inline-flex;align-items:center;justify-content:center}.game-pause-panel .restart-paused-game{display:block;margin:12px auto 0;background:#fff1ac;color:#173451;border:2px solid #173451;border-radius:5px;padding:10px 16px;font-weight:800;box-shadow:3px 3px 0 #173451}#restartGame{white-space:nowrap}@media(max-width:650px){body[data-stage="game"] #restartGame{font-size:11px;padding:7px 8px}}

/* Galon supérieur doré, net et crénelé dans le style pixel art. */
.hemicycle-curtain .curtain-pelmet{border-top:0;background:repeating-linear-gradient(90deg,#ffe49a 0 8px,#ddb758 8px 24px,#b68430 24px 32px) top/100% 10px no-repeat,linear-gradient(#8a562b,#8a562b) 0 10px/100% 4px no-repeat,repeating-linear-gradient(90deg,#801333 0 16px,#bb2044 16px 40px,#e83453 40px 48px,#991838 48px 64px)}.hemicycle-curtain .curtain-pelmet::after{content:'';position:absolute;top:14px;left:0;right:0;height:6px;background:repeating-linear-gradient(90deg,#e6bd60 0 8px,transparent 8px 16px);pointer-events:none}.hemicycle-curtain .curtain-panel{border-top:6px solid #ddb758}

.hemicycle-curtain .curtain-pelmet svg{visibility:visible;position:absolute;inset:0;filter:none;pointer-events:none}

#introHeads .intro-head>img{image-rendering:pixelated!important}

#introHeads .puppet-canvas{image-rendering:pixelated!important}

/* Réglages audio : un seul défilement, accessible sur petit écran. */
.audio-settings-card{max-height:calc(100dvh - 110px);overflow-y:auto;overscroll-behavior:contain}
#depudexPanel .dex-hemicycle-preview>span{font-size:clamp(11px,1.05vw,15px);line-height:1.3;letter-spacing:.6px;padding:9px 4px 5px;font-weight:900;text-align:center;color:#ffe6a1}@media(max-width:650px){#depudexPanel .dex-hemicycle-preview>span{font-size:10px;letter-spacing:.2px}}
/* Pixelisation des silhouettes limitée au défilé du générique. */
#introHeads .intro-head>img,#introHeads .puppet-canvas{image-rendering:pixelated!important}#portrait{image-rendering:auto!important}

/* Écran de question : silhouette, chrono et réponses tiennent dans la hauteur de l'écran. */
.quiz-stage{width:100%;margin-inline:auto}
.arena .portrait-mask{will-change:transform}
@media(max-width:999px) and (max-aspect-ratio:1149/1000),(max-width:700px),(orientation:portrait){body[data-stage="game"] .quiz-stage{width:min(100%,max(300px,calc((100dvh - 400px) * 1.6)))}}
@media(max-width:700px){body[data-stage="game"] .quiz-stage{width:min(100%,max(240px,calc((100dvh - 480px) * 4 / 3)))}}
@media(min-width:1000px) and (orientation:landscape),(min-width:701px) and (min-aspect-ratio:23/20){
body[data-stage="game"] main{width:100%;max-width:1440px;display:grid;grid-template-columns:minmax(0,1fr) clamp(350px,30vw,430px);grid-template-rows:auto auto 1fr;column-gap:24px;align-items:start;margin:16px auto 0;padding:0 24px}
body[data-stage="game"] .quiz-stage{grid-column:1;grid-row:1/span 3;justify-self:center;width:min(100%,max(420px,calc((100dvh - 136px) * 1.6)))}
body[data-stage="game"] main>.controls,body[data-stage="game"] main>.game-options,body[data-stage="game"] main>#result{grid-column:2;margin-top:0}
body[data-stage="game"] main>.game-options{margin-top:14px}
body[data-stage="game"]>header{padding:0 max(24px,calc((100vw - 1392px) / 2))}
body[data-stage="game"] .controls{padding:18px 18px 12px}
body[data-stage="game"] .prompt{margin-bottom:14px}
body[data-stage="game"] .quiz-bonuses{margin-bottom:14px;padding:10px 11px}
body[data-stage="game"] .bonus-heading{flex-wrap:wrap;gap:2px 10px}
body[data-stage="game"] .bonus-actions{gap:7px}
body[data-stage="game"] .bonus-actions button{flex-direction:column;align-items:flex-start;gap:2px;padding:7px 9px;min-width:0}
body[data-stage="game"] .choices{grid-template-columns:1fr;gap:9px}
body[data-stage="game"] .feedback{min-height:56px;flex-wrap:wrap}
body[data-stage="game"] .settings{flex-wrap:wrap}
}

/* Téléphone : l'éventail des groupes tient dans la largeur au lieu de défiler hors champ. */
body[data-stage="game"] main{padding-bottom:76px}
@media(max-width:650px){#depudexPanel .dex-group-viewport{overflow:hidden}
#depudexPanel .dex-group-arc{left:8%;right:auto;width:84%;min-width:0}
#depudexPanel .dex-group-stack{width:46px;height:68px}
#depudexPanel .group-stack-cover{height:40px}
#depudexPanel .dex-group-stack strong{font-size:8px}
}

/* Petits écrans : les raccourcis -webkit-text-stroke sans couleur rendaient le contour jaune, d'où des titres empâtés. */
@media(max-width:600px){#introScreen .intro-logo,.intro-logo{-webkit-text-stroke-color:#153c70}}
@media(max-width:700px){body .arena .headline h1{-webkit-text-stroke-color:#194c77}body .headline h1,body .question{-webkit-text-stroke-color:#194c77}}

/* Le titre de l'arène suit la largeur de l'arène (réduite selon la hauteur d'écran), pas celle de la fenêtre. */
.arena{container-type:inline-size}
body .arena .headline>span{font-size:clamp(13px,4.8cqw,40px)}
body .arena .headline h1{font-size:clamp(24px,10cqw,83px)}
body .arena .headline #tagline{font-size:clamp(11px,3cqw,25px)}
body .arena.revealed .headline #tagline{font-size:clamp(13px,3.4cqw,31px)}

/* Écrans moyens (tablette, téléphone pliable ouvert) : panneau de réponses compact pour laisser la place à la silhouette. */
@media(max-width:999px) and (max-aspect-ratio:1149/1000),(max-width:700px),(orientation:portrait){
body[data-stage="game"] .controls{padding:10px 14px 8px;margin-top:14px}
body[data-stage="game"] .prompt{margin-bottom:8px}
body[data-stage="game"] .prompt .eyebrow{display:none}
body[data-stage="game"] .prompt h2{font-size:22px}
body[data-stage="game"] .quiz-bonuses{display:flex;align-items:center;gap:12px;margin-bottom:10px;padding:7px 9px}
body[data-stage="game"] .bonus-heading{flex:0 0 auto;flex-direction:column;align-items:flex-start;gap:2px;max-width:150px;margin:0}
body[data-stage="game"] .bonus-heading span{font-size:10px;line-height:1.2}
body[data-stage="game"] .bonus-actions{flex:1;gap:7px}
body[data-stage="game"] .bonus-actions button{min-height:34px;padding:5px 9px}
body[data-stage="game"] .choices{gap:8px}
body[data-stage="game"] .choice{min-height:44px;padding-top:7px;padding-bottom:7px}
body[data-stage="game"] .feedback{min-height:38px}
body[data-stage="game"] .quiz-stage{width:min(100%,max(300px,calc((100dvh - 405px) * 1.6)))}
}
@media(max-width:700px){body[data-stage="game"] .quiz-stage{width:min(100%,max(300px,calc((100dvh - 400px) * 4 / 3)))}}
@media(max-width:559px){body[data-stage="game"] .quiz-bonuses{display:block}body[data-stage="game"] .bonus-heading{max-width:none;flex-direction:row;margin-bottom:6px}body[data-stage="game"] #bonusCostSummary{display:none}}

/* Mobile et tablette : réglages audio dans la barre du haut, pour ne plus masquer les réponses. */
@media(max-width:999px),(pointer:coarse) and (max-width:1199px){
body[data-stage="game"]>header{padding-right:118px}
body[data-stage="game"] .audio-dock{top:13px;bottom:auto;right:12px}
body[data-stage="game"] .audio-dock .audio-mute,body[data-stage="game"] .audio-dock .audio-settings-open{height:40px;min-height:40px}
body[data-stage="game"] .audio-dock .audio-settings-open>span{display:none}
body[data-stage="game"] .audio-dock .audio-settings-open{padding:8px 10px;min-width:44px}
body[data-stage="game"] .audio-settings-panel{inset:64px 10px auto auto;bottom:auto}
body[data-stage="game"] main{padding-bottom:16px}
}
@media(max-width:700px){
body[data-stage="game"]>header{padding-right:108px}
body[data-stage="game"] .audio-dock{top:10px}
body[data-stage="game"] .audio-dock .audio-mute,body[data-stage="game"] .audio-dock .audio-settings-open{height:38px;min-height:38px;min-width:40px}
body[data-stage="game"] .audio-settings-panel{top:58px}
}
/* Le cadre des indices suit la taille de l'arène. */
body .arena .headline .round-hints{font-size:clamp(8px,2.3cqw,17px)}
body .arena .headline .round-hints{font-size:clamp(10px,2.6cqw,17px)}
@media(max-width:440px){body[data-stage="game"]>header>a{display:none}body[data-stage="game"]>header{gap:6px;padding-left:10px}}

/* Rideau : plaque Q?D aux couleurs du jeu (Q et D jaunes, ? rouge) au lieu d'un carré uni. */
.hemicycle-curtain .curtain-seal{z-index:5}
.hemicycle-curtain .curtain-seal span{width:auto;height:auto;padding:14px 30px 10px;display:block;background:#173451;color:#ffe138;font:900 64px/1 'Barlow Condensed',Impact,sans-serif;letter-spacing:2px;-webkit-text-stroke:0;text-shadow:0 4px 0 #0b1a30,3px 4px 0 #0b1a30;border:0;box-shadow:inset 0 0 0 4px #e5be5c,inset 0 0 0 8px #173451,inset 0 0 0 10px #8f6b25,6px 6px 0 #490d28;clip-path:none;border-radius:6px}
.hemicycle-curtain .curtain-seal span b{color:#ff4b4b;font:inherit;display:inline-block;transform:rotate(8deg) translateY(-2px)}
.hemicycle-curtain .curtain-seal small{display:inline-block;margin-top:16px;padding:6px 12px;background:#173451;border:2px solid #e5be5c;color:#ffe49a;box-shadow:3px 3px 0 #490d28;letter-spacing:3px}
@media(max-width:600px){.hemicycle-curtain .curtain-seal span{font-size:50px;padding:12px 24px 8px}}

/* Rideau : un peu de physique. Les pans prennent de l'élan, se tassent en se rejoignant puis rebondissent ; le bas du tissu traîne derrière le haut. */
.curtain-panel{transform-origin:50% 0}
.curtain-closing .curtain-left{animation:curtain-close-left .5s cubic-bezier(.45,0,.75,.6) both}
.curtain-closing .curtain-right{animation:curtain-close-right .5s cubic-bezier(.45,0,.75,.6) both}
.curtain-closing.curtain-opening .curtain-left{animation:curtain-open-left .6s cubic-bezier(.3,0,.2,1) both}
.curtain-closing.curtain-opening .curtain-right{animation:curtain-open-right .6s cubic-bezier(.3,0,.2,1) both}
.curtain-closing .curtain-seal{animation:curtain-seal-drop .55s .3s cubic-bezier(.3,1.5,.5,1) both}
.curtain-closing.curtain-opening .curtain-seal{animation:none}
@keyframes curtain-close-left{0%{transform:translateX(-105%) skewX(0)}55%{transform:translateX(-35%) skewX(-5deg)}78%{transform:translateX(1.5%) skewX(3deg) scaleX(.97)}90%{transform:translateX(-.8%) skewX(-1.5deg)}100%{transform:translateX(0) skewX(0)}}
@keyframes curtain-close-right{0%{transform:translateX(105%) skewX(0)}55%{transform:translateX(35%) skewX(5deg)}78%{transform:translateX(-1.5%) skewX(-3deg) scaleX(.97)}90%{transform:translateX(.8%) skewX(1.5deg)}100%{transform:translateX(0) skewX(0)}}
@keyframes curtain-open-left{0%{transform:translateX(0) skewX(0)}14%{transform:translateX(1%) skewX(-1deg)}60%{transform:translateX(-70%) skewX(6deg)}100%{transform:translateX(-110%) skewX(0)}}
@keyframes curtain-open-right{0%{transform:translateX(0) skewX(0)}14%{transform:translateX(-1%) skewX(1deg)}60%{transform:translateX(70%) skewX(-6deg)}100%{transform:translateX(110%) skewX(0)}}
@keyframes curtain-seal-drop{0%{opacity:0;transform:translate(-50%,-90%) scale(.85) rotate(-4deg)}60%{opacity:1;transform:translate(-50%,-46%) scale(1.03) rotate(1.5deg)}80%{transform:translate(-50%,-51%) scale(1) rotate(-.8deg)}100%{opacity:1;transform:translate(-50%,-50%) scale(1) rotate(0)}}
@media(prefers-reduced-motion:reduce){.curtain-closing .curtain-panel,.curtain-closing .curtain-seal{animation:none}}

/* Générique : pas de silhouette sans tête (chargement lent ou échoué). */
.intro-head.parade-deputy:not(.head-loaded),.intro-head.parade-deputy.head-failed{visibility:hidden!important}

/* Titre « Qui est ce ou cette députée ? » : plus long, il doit tenir sur deux lignes en mobile. */
#introScreen .intro-logo>span{font-size:clamp(26px,8.4vw,100px)}#introScreen .intro-logo strong{font-size:clamp(48px,16vw,205px)}

/* Grand écran : la page de quiz est agrandie d'un bloc (zoom) au lieu de rester bornée à ~1 400 px. La hauteur disponible est divisée par le zoom pour que tout tienne sans défilement. */
@media(min-width:1000px) and (orientation:landscape),(min-width:701px) and (min-aspect-ratio:23/20){
body[data-stage="game"]{--quiz-zoom:1;--quiz-max:max(1440px,calc((100dvh / var(--quiz-zoom) - 136px) * 1.6 + 502px))}
body[data-stage="game"]>header,body[data-stage="game"]>main,body[data-stage="game"]>footer{zoom:var(--quiz-zoom)}
body[data-stage="game"] main{max-width:var(--quiz-max)}
/* En-tête et pied de page alignés sur les bords du jeu (logo au-dessus de la silhouette, compteur au-dessus des réponses). */
@media not ((pointer:coarse) and (max-width:1199px)){body[data-stage="game"]>header{padding:0 max(24px,calc((100vw / var(--quiz-zoom) - var(--quiz-max)) / 2 + 24px))}}
body[data-stage="game"]>footer{width:min(100%,var(--quiz-max));max-width:none;padding-inline:24px}
body[data-stage="game"] .quiz-stage{width:min(100%,max(420px,calc((100dvh / var(--quiz-zoom) - 136px) * 1.6)))}
}
@media(min-width:1800px) and (min-height:950px) and (orientation:landscape){body[data-stage="game"]{--quiz-zoom:1.25}}
@media(min-width:2200px) and (min-height:1150px) and (orientation:landscape){body[data-stage="game"]{--quiz-zoom:1.5}}
@media(min-width:3000px) and (min-height:1550px) and (orientation:landscape){body[data-stage="game"]{--quiz-zoom:2}}
/* Chrono : passage progressif du bleu au rouge (--time-heat, 0 → 1 sur les dernières secondes) et décompte rouge qui pulse chaque seconde sur les 5 dernières. */
.time-fill{position:relative}
.time-fill::after{content:'';position:absolute;inset:0;border-radius:inherit;background:linear-gradient(90deg,#c4122f,#ff4757);opacity:var(--time-heat,0);transition:opacity .3s linear}
.time-track.urgent .time-fill{background:linear-gradient(90deg,#246adf,#55a8ed)}
.time-track.urgent{box-shadow:6px 6px 0 #173758,0 0 18px #ff2a4a88}
.round-clock:has(.time-track.urgent) #timeLeft{display:inline-block;min-width:2.6em;padding:1px 8px;border-radius:6px;background:#e8112d;color:#fff;font-size:17px;line-height:22px;text-align:center;text-shadow:none;box-shadow:0 0 0 2px #fff,0 0 14px #ff2a4a}
#timeLeft.time-pulse{animation:time-pulse 1s cubic-bezier(.2,.8,.3,1)}
@keyframes time-pulse{0%{transform:scale(1.7);box-shadow:0 0 0 3px #fff,0 0 34px 8px #ff2a4a}35%{transform:scale(1.05)}100%{transform:scale(1);box-shadow:0 0 0 2px #fff,0 0 10px #ff2a4a}}
@media(max-width:600px){.round-clock:has(.time-track.urgent) #timeLeft{font-size:14px;line-height:18px}}
/* Fond des cartes : mêmes rayons que la carte agrandie, teintés de la couleur officielle du groupe. */
#depudexPanel .dex-collect-card.unlocked .collect-art,.dex-discovery-card .inspect-portrait-foil::before,body .dex-discovery-card>img,body .capture-card img,body .inspect-front>img,body .hemicycle-deputy-card>img,#depudexPanel .hemicycle-rail-card>img{background:repeating-conic-gradient(from 5deg,color-mix(in srgb,var(--card-color,#f5c34b) 30%,white) 0 10deg,color-mix(in srgb,var(--card-color,#f5c34b) 85%,white) 10deg 20deg)}
body .inspect-portrait-foil>img:not(.portrait-holo-emblem){background:none}

/* Options de la partie : bouton dans le cadre du quiz, fenêtre centrée au-dessus de la partie. */
#gameOptionsPanel.game-options{margin:0;border:0;padding:0}
#gameOptionsPanel .settings{margin:0}
#gameOptionsPanel .settings>div{display:block;margin-bottom:4px}
#gameOptionsPanel .settings>div span{display:block;font-size:11px;color:#637184;margin-top:3px}
#gameOptionsPanel .settings label{flex:1 1 100%;display:flex;flex-direction:column;align-items:stretch;gap:6px;font-weight:700;font-size:13px}
#gameOptionsPanel .settings .capture-option{flex-direction:row;align-items:center}
#gameOptionsPanel .settings #newGame{flex:1 0 100%;margin:4px 0 0}

/* Grand écran : de l'air autour du cadre, et panneau de réponses aligné sur le cadre. */
@media(min-width:1000px) and (orientation:landscape),(min-width:701px) and (min-aspect-ratio:23/20){
body[data-stage="game"] main{grid-template-rows:auto;align-items:stretch;padding:0 clamp(24px,3vw,64px);margin-top:clamp(16px,2.4vh,40px)}
body[data-stage="game"] .quiz-stage{grid-row:1;align-self:start;width:min(100%,max(420px,calc((100dvh / var(--quiz-zoom,1) - 136px - clamp(32px,6vh,90px)) * 1.6)))}
body[data-stage="game"] main>.controls{grid-row:1;align-self:stretch;display:flex;flex-direction:column}
body[data-stage="game"] main>.controls .choices{flex:1 1 auto;grid-auto-rows:1fr;align-content:stretch}
body[data-stage="game"] main>#result{grid-row:1}
}
.arena .quiz-tools{position:absolute;top:14px;right:14px;z-index:5;display:flex;gap:8px;align-items:center}
.arena .quiz-tools .quiz-listen{position:static;inset:auto;margin:0}
@media(max-width:600px){.arena .quiz-tools{top:9px;right:9px;gap:6px}.arena .quiz-options>span{display:none}}
#gameOptionsPanel:not([hidden]){position:fixed;inset:0;width:auto;max-width:none;height:auto;max-height:none;display:grid;place-items:center;padding:16px;background:#07162c99;backdrop-filter:blur(3px);z-index:230;overflow:auto}
#gameOptionsPanel .audio-settings-card{width:min(420px,100%)}
/* Raccord des ombres entre le cadre et la barre de temps (plus d’encoche en bas à droite). */
body .quiz-stage .time-track{box-shadow:5px 5px 0 #173451,5px 0 0 #173451}
/* Cartes de groupe de l'éventail : teintées de la couleur officielle du groupe. */
#depudexPanel .dex-group-stack{background:repeating-conic-gradient(from 5deg at 50% 38%,color-mix(in srgb,var(--card-color,#ecc14e) 45%,white) 0 10deg,color-mix(in srgb,var(--card-color,#ecc14e) 90%,white) 10deg 20deg);box-shadow:2px 3px 0 #071a2c,5px 6px 0 color-mix(in srgb,var(--card-color,#d4b464) 70%,#fff8e0),6px 7px 0 #071a2c}
#depudexPanel .dex-group-stack:hover,#depudexPanel .dex-group-stack.active,#depudexPanel .dex-group-stack.card-group-highlight{background:repeating-conic-gradient(from 5deg at 50% 38%,color-mix(in srgb,var(--card-color,#ecc14e) 25%,white) 0 10deg,color-mix(in srgb,var(--card-color,#ecc14e) 70%,white) 10deg 20deg)}
/* Étiquettes des fauteuils comparés : même traitement que la grande carte du fauteuil. */
.hemicycle-compared-card{background:linear-gradient(135deg,#fff1a0,#ffe138);border:2px solid #173451;color:#173451;box-shadow:2px 3px 0 #173451}
.hemicycle-compared-card>small{display:block;background:#173451;color:#ffe138;padding:1px 4px;border-radius:2px;letter-spacing:.5px}
body .hemicycle-compared-card>img{border:1px solid #173451;background:repeating-conic-gradient(from 5deg,color-mix(in srgb,var(--card-color,#f5c34b) 30%,white) 0 10deg,color-mix(in srgb,var(--card-color,#f5c34b) 85%,white) 10deg 20deg)}

/* Grandes cases de réponse (grand écran) : fond uni, pastille de lettre droite, nom lisible, verdict discret à droite. */
@media(min-width:1000px) and (orientation:landscape),(min-width:701px) and (min-aspect-ratio:23/20){
body[data-stage="game"] main>.controls .choice{display:flex;align-items:center;gap:18px;padding:0 22px;min-height:56px;text-align:left;border:2px solid #153451;border-radius:10px;background:#fffaf0;box-shadow:4px 5px 0 #153451;transition:transform .12s ease,box-shadow .12s ease,background .12s ease}
body[data-stage="game"] main>.controls .choice>span:not(.letter){font-family:Barlow,Arial,sans-serif;font-size:clamp(17px,1.15vw,24px);font-weight:800;line-height:1.15;color:#153451}
body[data-stage="game"] main>.controls .choice .letter{flex:0 0 auto;display:grid;place-items:center;width:clamp(40px,2.6vw,52px);height:clamp(40px,2.6vw,52px);margin:0;border:2px solid #153451;border-radius:8px;background:#ffe138;color:#153451;font-family:'Barlow Condensed',Impact,sans-serif;font-size:clamp(22px,1.5vw,30px);transform:none;clip-path:none;box-shadow:2px 2px 0 #153451}
body[data-stage="game"] main>.controls .choice::after{content:'';margin-left:auto;font-family:Barlow,Arial,sans-serif;font-size:clamp(22px,1.4vw,30px);font-weight:900;line-height:1}
body[data-stage="game"] main>.controls .choice:not(:disabled):hover{transform:translate(-2px,-2px);box-shadow:6px 7px 0 #153451;background:#fff4c7}
body[data-stage="game"] main>.controls .choice:disabled:not(.correct):not(.wrong){opacity:.5}
body[data-stage="game"] main>.controls .choice.correct{background:#e3f6cf;border-color:#153451}
body[data-stage="game"] main>.controls .choice.correct .letter{background:#7ed75b;color:#153451}
body[data-stage="game"] main>.controls .choice.correct::after{content:none}
body[data-stage="game"] main>.controls .choice.wrong{background:#ffe0e3;border-color:#153451}
body[data-stage="game"] main>.controls .choice.wrong .letter{background:#ef4561;color:#fff}
body[data-stage="game"] main>.controls .choice.wrong::after{content:none}
body[data-stage="game"] main>.controls .choice.bonus-eliminated{opacity:.3}
body[data-stage="game"] main>.controls .choices{gap:12px}
}
/* « Passer à la suite » aligné à droite sous le message. */
body[data-stage="game"] .feedback{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
body[data-stage="game"] .feedback>p{flex:1 1 100%}
body[data-stage="game"] .feedback #next{margin-left:auto}
/* Écharpe tricolore de député enfilée en travers de la bonne réponse, épinglée par une cocarde ✓. */
body .choice.correct{position:relative;overflow:hidden;isolation:isolate;padding-right:44px}
body .choice.correct::before{content:'';position:absolute;z-index:-1;top:-60%;bottom:-60%;right:12px;width:18px;background:linear-gradient(90deg,#0055a4 0 33.4%,#fff 33.4% 66.6%,#ef4135 66.6%);border-inline:2px solid #d9a521;box-shadow:0 0 0 1px #153451;transform:rotate(22deg);animation:deputy-sash .5s cubic-bezier(.2,.8,.3,1.15) both}
@keyframes deputy-sash{from{clip-path:inset(0 0 100% 0)}to{clip-path:inset(0 0 0 0)}}
@media(prefers-reduced-motion:reduce){body .choice.correct::before{animation:none}}
@media(min-width:1000px) and (orientation:landscape),(min-width:701px) and (min-aspect-ratio:23/20){
body[data-stage="game"] main>.controls .choice.correct{padding-right:80px}
body[data-stage="game"] main>.controls .choice.correct::before{right:30px;width:30px}
body[data-stage="game"] main>.controls .choice.correct::after{content:none}
}
.hemicycle-deputy-card,.hemicycle-seat-label,.hemicycle-compare-links{display:none!important}.hemicycle-head-marker{position:absolute;width:0;height:0;pointer-events:none;z-index:2}.hemicycle-marker-arrow{position:absolute;left:0;bottom:12px;transform:translateX(-50%);padding:3px 7px;border:2px solid #0b1f24;border-radius:5px;background:var(--marker-color,#ffe138);color:var(--marker-ink,#173451);font:900 11px monospace;white-space:nowrap;box-shadow:0 0 10px #6fe6f566;transition:bottom .18s ease-out}.hemicycle-marker-arrow::after{content:'';position:absolute;left:50%;top:100%;transform:translateX(-50%);border:7px solid transparent;border-top-color:var(--marker-color,#ffe138);filter:drop-shadow(0 2px 0 #0b1f24)}.hemicycle-head-marker.is-selected .hemicycle-marker-arrow{font-size:13px;bottom:18px}.hemicycle-marker-head{position:absolute;left:0;top:0;width:76px;height:76px;transform:translate(-50%,-50%) scale(.25);clip-path:ellipse(36% 37% at 50% 39%);image-rendering:pixelated;filter:drop-shadow(0 0 6px #6fe6f5);animation:marker-head-grow .2s ease-out forwards}.hemicycle-head-marker.is-hovered .hemicycle-marker-arrow{bottom:44px}@keyframes marker-head-grow{to{transform:translate(-50%,-55%) scale(1)}}@media(prefers-reduced-motion:reduce){.hemicycle-marker-head{animation:none;transform:translate(-50%,-55%)}}
/* Comparaison par cases désactivée pour l'instant : les mini-députés et leurs repères la remplacent (code conservé). */
.hemicycle-carousel-item>label,.hemicycle-clear-compared,.hemicycle-carousel>small{display:none!important}
/* Fond de l'hologramme : halo et grille derrière la maquette (canvas transparent). */
.hemicycle-3d-stage,.dex-console>.hemicycle-3d-panel .hemicycle-3d-stage{background:radial-gradient(ellipse 70% 60% at 50% 62%,#1d5560 0,#0d2a31 55%,#071519 100%),#071519}.hemicycle-3d-stage>canvas{background:repeating-linear-gradient(0deg,#6fe6f50d 0 1px,transparent 1px 26px),repeating-linear-gradient(90deg,#6fe6f50d 0 1px,transparent 1px 26px)}
/* Grand écran : réglages audio dans la barre du haut pendant la partie, pour ne plus masquer « Question suivante ». */
@media(min-width:1000px) and (orientation:landscape),(min-width:701px) and (min-aspect-ratio:23/20){
body[data-stage="game"]>header{padding-right:124px}
body[data-stage="game"] .audio-dock{top:13px;bottom:auto;right:14px}
body[data-stage="game"] .audio-dock .audio-mute,body[data-stage="game"] .audio-dock .audio-settings-open{height:40px;min-height:40px}
body[data-stage="game"] .audio-dock .audio-settings-open>span{display:none}
body[data-stage="game"] .audio-dock .audio-settings-open{padding:8px 10px;min-width:44px}
body[data-stage="game"] .audio-settings-panel{inset:64px 12px auto auto;bottom:auto}
}

/* Écran de fin festif : plein écran tricolore, feux d'artifice et mini-députés qui sautent. */
body[data-stage="game"] main>#result.end-party{position:fixed;inset:0;z-index:200;margin:0;max-width:none;width:auto;border:0;border-radius:0;padding:24px 16px 0;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;overflow:hidden;isolation:isolate;color:#fff;background:repeating-conic-gradient(from 5deg at 50% 45%,transparent 0 10deg,#ffffff0d 10deg 20deg),linear-gradient(125deg,#102e8b 0 42%,#e90040 42% 100%)}
#result.end-party .end-fireworks{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}
#result .end-fireworks,#result .end-crowd,#result .end-cheer:empty{display:none}
#result.end-party .end-fireworks,#result.end-party .end-crowd{display:block}
#result .end-cheer{display:block;font-family:'Barlow Condensed',Impact,sans-serif;font-weight:900;font-size:28px;line-height:1}
#result.end-party .end-card{position:relative;z-index:2;align-self:center;margin:auto 0 0;padding:0 8px;max-width:760px;text-align:center}
#result.end-party .eyebrow{color:#fff5cf;letter-spacing:.2em}
#result.end-party .end-cheer{margin:6px 0 2px;color:#ffe138;font-size:clamp(56px,11vw,132px);text-shadow:4px 5px 0 #153451,0 0 28px #10295599;transform:rotate(-3deg);animation:end-cheer-pop .7s cubic-bezier(.2,1.5,.4,1) both}
#result.end-party h2{margin:4px 0;color:#fff;font-family:'Barlow Condensed',Impact,sans-serif;font-weight:900;font-size:clamp(36px,6vw,64px);text-shadow:3px 4px 0 #153451}
#result.end-party p{margin:6px auto 18px;max-width:520px;font-size:18px;font-weight:700;text-shadow:0 2px 0 #15345199}
#result.end-party #replay{border:3px solid #153451;border-radius:10px;background:#ffe138;color:#153451;box-shadow:4px 5px 0 #153451;font-family:'Barlow Condensed',Impact,sans-serif;font-size:22px;font-weight:900;padding:12px 30px}
#result.end-party #replay:hover{background:#fff091}
#result.end-party .end-crowd{position:relative;z-index:1;flex:0 0 auto;align-self:stretch;height:clamp(190px,30vh,280px);margin:auto -16px 0;border-bottom:10px solid #153451;pointer-events:none}
.party-deputy{position:absolute;bottom:0;left:var(--x);width:140px;height:220px;transform:translate(-50%,0) scale(var(--size,1));transform-origin:50% 100%;filter:drop-shadow(3px 5px 0 #0a183b66);will-change:transform}
.party-deputy:not(.head-loaded){visibility:hidden}
.party-deputy>img{position:absolute;top:0;left:15px;width:110px;height:110px;object-fit:cover;margin:0;clip-path:ellipse(36% 37% at 50% 39%);z-index:2;image-rendering:pixelated}
.party-deputy .puppet-canvas{position:absolute;left:-70px;top:0;width:280px;height:220px;z-index:1;opacity:0;pointer-events:none;image-rendering:pixelated}
.party-deputy.puppet-ready .puppet-canvas{opacity:1}
@keyframes end-cheer-pop{from{opacity:0;transform:rotate(-3deg) scale(2.2)}to{opacity:1;transform:rotate(-3deg) scale(1)}}
@media(max-width:600px){#result.end-party .end-crowd{height:170px}.party-deputy{width:112px;height:176px;margin-bottom:0}.party-deputy>img{left:12px;width:88px;height:88px}.party-deputy .puppet-canvas{left:-56px;width:224px;height:176px}#result.end-party p{font-size:16px}}
@media(max-height:560px){#result.end-party .end-crowd{height:150px}#result.end-party .end-cheer{font-size:52px}}
@media(prefers-reduced-motion:reduce){#result.end-party .end-cheer{animation:none}}
body .capture-card>img{image-rendering:auto}
/* Confirmation de nouvelle partie après un changement de réglage. */
#gameOptionsPanel .game-options-confirm:not([hidden]){flex:1 0 100%;display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:12px;border:2px solid #173451;border-radius:10px;background:#fff1ac;box-shadow:3px 3px 0 #173451}
#gameOptionsPanel .game-options-confirm p{flex:1 0 100%;margin:0;color:#173451;font-weight:800;font-size:14px}
#gameOptionsPanel .game-options-confirm button{flex:1 1 auto;min-height:40px;border:2px solid #173451;border-radius:8px;font-weight:800;color:#173451;background:#fffaf0;box-shadow:2px 2px 0 #173451}
#gameOptionsPanel .game-options-confirm #gameOptionsRestart{background:#ffe138}
.party-deputy.party-back{bottom:58px;filter:drop-shadow(3px 5px 0 #0a183b44) brightness(.9)}
@media(max-width:600px){.party-deputy.party-back{bottom:44px}}
/* Repère au ras de la tête (le mini-député grossit à la place de la tête) ; carrousel en perspective. */
.hemicycle-marker-arrow,.hemicycle-head-marker.is-selected .hemicycle-marker-arrow,.hemicycle-head-marker.is-hovered .hemicycle-marker-arrow{bottom:9px}.hemicycle-carousel-track{perspective:700px}.hemicycle-carousel-item{transform-origin:50% 50%;will-change:transform;transition:opacity .15s}.hemicycle-carousel-item.is-current{opacity:1!important}
/* Frise des fauteuils sous la vue 3D. */
.hemicycle-timeline{position:relative;flex:0 0 auto;height:40px;width:100%;border:2px solid #294c3d;border-radius:8px;background:linear-gradient(#0d2a31,#071519);overflow:hidden}.hemicycle-timeline>canvas{position:absolute;inset:4px 0 6px;width:100%;height:calc(100% - 10px);pointer-events:none;image-rendering:pixelated}.hemicycle-timeline>input{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0 2px;background:transparent;-webkit-appearance:none;appearance:none;cursor:pointer}.hemicycle-timeline>input::-webkit-slider-runnable-track{height:100%;background:transparent}.hemicycle-timeline>input::-moz-range-track{height:100%;background:transparent}.hemicycle-timeline>input::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:36px;margin-top:0;border:2px solid #0b1f24;border-radius:4px;background:#ffe138;box-shadow:0 0 10px #ffe138aa}.hemicycle-timeline>input::-moz-range-thumb{width:12px;height:34px;border:2px solid #0b1f24;border-radius:4px;background:#ffe138;box-shadow:0 0 10px #ffe138aa}.hemicycle-timeline>input:focus-visible{outline:2px solid #ffe138;outline-offset:-2px}@media(max-width:700px){.hemicycle-timeline{height:34px}}
/* Compteur de manches dans le cadre du quiz (plus visible que l'ancien libellé de l'en-tête). */
.arena .arena-progress{position:absolute;top:14px;left:14px;z-index:5;display:flex;align-items:baseline;gap:5px;padding:6px 12px 7px;border:2px solid #173451;border-radius:8px;background:#173451;color:#fff8e6;font:800 13px/1 Barlow,Arial,sans-serif;letter-spacing:.6px;text-transform:uppercase;box-shadow:3px 3px 0 #0b2036}
.arena .arena-progress b{font:900 24px/1 'Barlow Condensed',Impact,sans-serif;color:#ffe138;letter-spacing:0}
.arena .arena-progress span{font-weight:800;color:#c9d6e8}
body[data-stage="game"] header .header-progress{display:none}
@media(max-width:600px){.arena .arena-progress{top:9px;left:9px;padding:4px 8px 5px;font-size:10px}.arena .arena-progress b{font-size:18px}}
.hemicycle-timeline{height:30px;background:linear-gradient(90deg,#071519,#1d5560 50%,#071519)}.hemicycle-timeline::before{content:'';position:absolute;left:10px;right:10px;top:50%;height:2px;margin-top:-1px;background:repeating-linear-gradient(90deg,#6fe6f5aa 0 2px,transparent 2px 14px);pointer-events:none}.hemicycle-timeline>input::-webkit-slider-thumb{width:42px;height:24px;margin-top:1px;border-radius:12px}.hemicycle-timeline>input::-moz-range-thumb{width:38px;height:20px;border-radius:12px}@media(max-width:700px){.hemicycle-timeline{height:30px}}
/* Carrousel piloté en JS (amorti) : plus de scroll natif ni d'aimantation CSS. */
.hemicycle-carousel-track{overflow:hidden!important;scroll-snap-type:none!important;touch-action:none;cursor:grab}.hemicycle-carousel-track:active{cursor:grabbing}.hemicycle-carousel-item{scroll-snap-align:none}
/* Jokers thème Assemblée : suspension de séance, rappel au règlement, question au gouvernement ; un seul par manche. */
body .quiz-bonuses .bonus-actions button.joker{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto auto;align-items:center;justify-items:start;column-gap:6px;row-gap:2px;text-align:left;min-width:0;min-height:52px;padding:6px 9px;position:relative}
body .quiz-bonuses .bonus-actions button.joker .joker-icon{grid-row:1;width:30px;height:30px;flex:none}body .quiz-bonuses .bonus-actions button.joker b,body .quiz-bonuses .bonus-actions button.joker small{grid-column:1/3;max-width:100%;overflow-wrap:normal}body .quiz-bonuses .bonus-actions:has(>.joker:nth-child(4)){display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}body .quiz-bonuses .bonus-actions:has(>.joker:nth-child(4)) button.joker{grid-template-columns:auto minmax(0,1fr) auto;min-height:0}body .quiz-bonuses .bonus-actions:has(>.joker:nth-child(4)) button.joker .joker-icon{grid-row:1/3}body .quiz-bonuses .bonus-actions:has(>.joker:nth-child(4)) button.joker b{grid-column:2/4}body .quiz-bonuses .bonus-actions:has(>.joker:nth-child(4)) button.joker small{grid-column:2/3}body .quiz-bonuses .bonus-actions:has(>.joker:nth-child(4)) button.joker span{grid-row:2;grid-column:3}
body .quiz-bonuses .bonus-actions button.joker b{font:900 13px/1.02 'Barlow Condensed',Impact,sans-serif;letter-spacing:.2px;color:#173451;text-transform:uppercase}
body .quiz-bonuses .bonus-actions button.joker small{font-size:10px;font-weight:700;color:#637184;line-height:1.15}
body .quiz-bonuses .bonus-actions button.joker span{grid-row:1;grid-column:2;justify-self:end;font-size:10px;color:#b02546}
body .quiz-bonuses .bonus-actions button.joker:not(:disabled):hover .joker-icon{animation:joker-icon-wiggle .5s ease-in-out}
body .quiz-bonuses .bonus-actions button.joker.joker-used{opacity:1;background:#173451;color:#fff7d8;box-shadow:none}
body .quiz-bonuses .bonus-actions button.joker.joker-used b,body .quiz-bonuses .bonus-actions button.joker.joker-used small{color:#fff7d8}
body .quiz-bonuses .bonus-actions button.joker.joker-used span{color:#ffe138}body .quiz-bonuses .bonus-actions button.joker.joker-used .joker-icon{background:#fff7d8;border-radius:7px;padding:2px}
body .quiz-bonuses .bonus-actions button.joker.joker-used::after{content:'JOUÉ';position:absolute;top:-8px;right:-6px;background:#e90040;color:#fff;border:2px solid #173451;border-radius:4px;padding:0 5px;font:900 10px/1.5 'Barlow Condensed',Impact,sans-serif;transform:rotate(6deg)}
@media(max-width:559px){body .quiz-bonuses .bonus-actions:has(>.joker:nth-child(4)){grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}body .quiz-bonuses .bonus-actions:has(>.joker:nth-child(4)) button.joker{grid-template-columns:1fr}body .quiz-bonuses .bonus-actions:has(>.joker:nth-child(4)) button.joker b,body .quiz-bonuses .bonus-actions:has(>.joker:nth-child(4)) button.joker span{grid-column:1;grid-row:auto}body .quiz-bonuses .bonus-actions button.joker{grid-template-columns:1fr;justify-items:center;text-align:center;padding:5px 4px;row-gap:2px}body .quiz-bonuses .bonus-actions button.joker .joker-icon{grid-row:auto;grid-column:1/3;width:26px;height:26px}body .quiz-bonuses .bonus-actions button.joker span{grid-row:auto;grid-column:1/3;justify-self:center}body .quiz-bonuses .bonus-actions button.joker b{font-size:10px;letter-spacing:0}body .quiz-bonuses .bonus-actions button.joker small,body .quiz-bonuses .bonus-actions:has(>.joker:nth-child(4)) button.joker small{display:block;grid-column:1/-1;grid-row:auto;font-size:9px;line-height:1.1;text-align:center;color:#40536a}}
@keyframes joker-icon-wiggle{25%{transform:rotate(-10deg)}75%{transform:rotate(8deg)}}
.joker-fx{position:absolute;inset:0;z-index:40;pointer-events:none;overflow:hidden;animation:joker-fx-life 2.3s linear forwards}
.joker-fx-art{position:absolute;left:50%;top:52%;width:min(34%,230px);aspect-ratio:1;transform:translate(-50%,-50%)}
.joker-fx-art svg{position:absolute;inset:0;width:100%;height:100%;filter:drop-shadow(5px 7px 0 #17345155)}
.joker-fx-art i{position:absolute;inset:8%;border-radius:50%;border:5px solid #ffe138;opacity:0}
.joker-fx-banner{position:absolute;left:50%;top:13%;display:grid;gap:3px;justify-items:center;padding:9px 20px 8px;background:#173451;border:3px solid #ffe138;border-radius:8px;box-shadow:5px 6px 0 #b02546;color:#fff7d8;text-align:center;white-space:nowrap;transform:translateX(-50%) rotate(-3deg);animation:joker-stamp .45s cubic-bezier(.2,1.4,.4,1) both}
.joker-fx-banner strong{font:900 clamp(18px,4.2cqw,40px)/1 'Barlow Condensed',Impact,sans-serif;letter-spacing:1px;color:#ffe138}
.joker-fx-banner span{font:700 clamp(10px,1.8cqw,15px)/1.2 Barlow,Arial,sans-serif}
/* Suspension de séance : trois coups de maillet calés sur le son. */
.joker-fx-bonusFifty .joker-fx-art{aspect-ratio:3/2}
.joker-fx-bonusFifty .joker-fx-art svg{overflow:visible}
.joker-fx-bonusFifty .joker-fx-art .gavel-hammer{transform-box:view-box;transform-origin:50px 23px;animation:joker-gavel-strike 1s linear both}
.joker-fx-bonusFifty .joker-fx-art i{border-radius:12px;inset:auto 50% 3% 2%;height:14%;border-color:#fff7d8}
.joker-fx-bonusFifty .joker-fx-art i:nth-child(1){animation:joker-thud .35s ease-out .17s}
.joker-fx-bonusFifty .joker-fx-art i:nth-child(2){animation:joker-thud .35s ease-out .48s}
.joker-fx-bonusFifty .joker-fx-art i:nth-child(3){animation:joker-thud .45s ease-out .81s}
.arena.joker-shake{animation:joker-shake .9s linear}
/* Le mini député pousse les deux propositions écartées hors de l'écran. */
body main>.controls .choice.joker-pushed-out{visibility:hidden}
/* Les déménageurs passent derrière la case qu'ils emportent : seules leurs mains et têtes dépassent. */
body main>.controls .choice.joker-carried,body[data-stage="game"] main>.controls .choice.joker-carried:disabled{position:relative;z-index:270;opacity:1!important}
.joker-push-host{position:fixed;inset:0;z-index:260;pointer-events:none;overflow:hidden}
.joker-puppet{will-change:transform}
.joker-vote-host .joker-puppet{transform-origin:50% 100%}
.joker-vote-host{position:absolute;inset:0;z-index:35;pointer-events:none;overflow:hidden}
.joker-vote-tally{position:absolute;left:50%;top:6%;transform:translateX(-50%);display:grid;justify-items:center;gap:2px;padding:6px 16px;background:#fff7d8;border:3px solid #173451;border-radius:8px;box-shadow:4px 5px 0 #173451;color:#173451;white-space:nowrap;animation:joker-stamp .35s cubic-bezier(.2,1.4,.4,1) both}
.joker-vote-tally b{font:900 clamp(11px,1.6cqw,15px)/1 'Barlow Condensed',Impact,sans-serif;letter-spacing:1px}
.joker-vote-tally span{font:900 clamp(16px,3cqw,28px)/1 'Barlow Condensed',Impact,sans-serif;color:#e90040;transition:opacity .2s,transform .2s}
.joker-vote-tally div{display:flex;gap:14px}
.joker-vote-tally .vote-contre{color:#173451}
.joker-vote-tally.asking-pour .vote-contre,.joker-vote-tally.asking-contre .vote-pour,.joker-vote-tally.vote-adopted .vote-contre,.joker-vote-tally.vote-rejected .vote-pour{opacity:.35}
.joker-vote-tally.asking-pour .vote-pour,.joker-vote-tally.asking-contre .vote-contre,.joker-vote-tally.vote-adopted .vote-pour,.joker-vote-tally.vote-rejected .vote-contre{transform:scale(1.12)}
.joker-vote-tally.vote-adopted b,.joker-vote-tally.vote-rejected b{font-size:clamp(14px,2.2cqw,20px);color:#fff7d8;background:#b02546;padding:2px 8px;border-radius:4px}
.joker-vote-tally.vote-rejected b{background:#173451}
.joker-vote-tally.vote-leaving{opacity:0;transition:opacity .2s}
/* Rappel au règlement : le code s'ouvre, la sonnette du président retentit. */
.joker-fx-bonusText .joker-fx-art{left:18%;top:64%;width:min(22%,150px)}
.joker-fx-bonusText .joker-fx-art svg{animation:joker-book 1.3s cubic-bezier(.2,1.2,.4,1) both}
.joker-fx-bonusText .joker-fx-art i{animation:joker-ring 1s ease-out both}
.joker-fx-bonusText .joker-fx-art i:nth-child(2){animation-delay:.3s}.joker-fx-bonusText .joker-fx-art i:nth-child(3){animation-delay:.6s}
.round-hints.joker-hint-flash{animation:joker-hint 1.4s ease-out}
/* Motion de censure : la silhouette est renversée sous les huées, une nouvelle prend sa place. */
.joker-fx-bonusCensure .joker-fx-art{left:78%;top:62%;width:min(26%,170px)}
.joker-fx-bonusCensure .joker-fx-art svg{animation:joker-censure-stamp .5s cubic-bezier(.2,1.5,.4,1) .55s both}
.joker-fx-bonusCensure .joker-fx-art i{border-color:#e90040;animation:joker-ring .8s ease-out .7s both}
.joker-fx-bonusCensure .joker-fx-art i:nth-child(2){animation-delay:.95s}.joker-fx-bonusCensure .joker-fx-art i:nth-child(3){display:none}
.joker-fx-bonusCensure .joker-fx-banner{background:#b02546;box-shadow:5px 6px 0 #173451}
/* Motion rejetée : le tampon refuse de se poser, trombone et huées, le joker est perdu. */
.joker-fx-bonusCensureRejected .joker-fx-art{left:78%;top:62%;width:min(24%,160px)}
.joker-fx-bonusCensureRejected .joker-fx-art svg{animation:joker-rejected-stamp 1.4s cubic-bezier(.3,.7,.4,1) both;filter:grayscale(.75)}
.joker-fx-bonusCensureRejected .joker-fx-art i{display:none}
.joker-fx-bonusCensureRejected .joker-fx-banner{background:#173451;box-shadow:5px 6px 0 #b02546}
@keyframes joker-rejected-stamp{0%{opacity:0;transform:translateY(-60%) scale(1.3)}25%{opacity:1;transform:translateY(0) scale(1)}35%{transform:rotate(-12deg)}45%{transform:rotate(10deg)}55%{transform:rotate(-7deg)}65%{transform:rotate(4deg)}100%{opacity:.8;transform:translateY(40%) rotate(-20deg) scale(.85)}}
.arena.joker-censure .portrait{animation:joker-topple .85s cubic-bezier(.5,0,.9,.5) both;transform-origin:30% 100%}
/* Question au gouvernement : le micro s'allume, projecteur sur la silhouette. */
.joker-fx-bonusFace::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse 30% 44% at var(--spot-x,50%) var(--spot-y,46%),#fff7d822 0,transparent 62%,#0b2036c9 100%);animation:joker-spot 2.3s ease both}
.joker-fx-bonusFace .joker-fx-art{left:84%;top:70%;width:min(22%,150px)}
.joker-fx-bonusFace .joker-fx-art svg{animation:joker-mic-rise .6s cubic-bezier(.2,1.3,.4,1) both}
.joker-fx-bonusFace .joker-fx-art i{border-color:#e90040;animation:joker-ring 1s ease-out .3s both}
.joker-fx-bonusFace .joker-fx-art i:nth-child(2){animation-delay:.6s}.joker-fx-bonusFace .joker-fx-art i:nth-child(3){animation-delay:.9s}
@keyframes joker-spot{0%{opacity:0}15%,80%{opacity:1}100%{opacity:0}}
@keyframes joker-mic-rise{0%{opacity:0;transform:translateY(80%)}100%{opacity:1;transform:none}}
@keyframes joker-fx-life{0%,82%{opacity:1}100%{opacity:0}}
@keyframes joker-stamp{0%{opacity:0;transform:translateX(-50%) scale(2.4) rotate(-12deg)}100%{opacity:1;transform:translateX(-50%) scale(1) rotate(-3deg)}}
@keyframes joker-gavel-strike{0%{transform:rotate(18deg)}10%{transform:rotate(44deg)}16.8%{transform:rotate(0)}21%{transform:rotate(5deg)}32%{transform:rotate(40deg)}48.1%{transform:rotate(0)}52%{transform:rotate(5deg)}63%{transform:rotate(48deg)}80.6%{transform:rotate(0)}85%{transform:rotate(7deg)}90%,100%{transform:rotate(0)}}
@keyframes joker-thud{0%{opacity:.9;transform:scaleX(.6)}100%{opacity:0;transform:scaleX(1.5)}}
@keyframes joker-shake{0%,4%,23%,54%,100%{transform:none}6%,25%,56%{transform:translate(3px,4px)}9%,28%,60%{transform:translate(-3px,-2px)}12%,31%,64%{transform:translate(1px,1px)}}
@keyframes joker-book{0%{opacity:0;transform:perspective(500px) rotateY(85deg) scale(.6)}35%{opacity:1;transform:perspective(500px) rotateY(0) scale(1.05)}45%{transform:rotate(-8deg)}55%{transform:rotate(7deg)}65%{transform:rotate(-5deg)}75%{transform:rotate(3deg)}100%{transform:none}}
@keyframes joker-ring{0%{opacity:.9;transform:scale(.5)}100%{opacity:0;transform:scale(1.6)}}
@keyframes joker-hint{0%,40%{box-shadow:0 0 0 0 #ffe138,4px 5px 0 #173451;background:#ffe138}100%{box-shadow:0 0 0 14px #ffe13800,4px 5px 0 #173451}}
@keyframes joker-censure-stamp{0%{opacity:0;transform:scale(2.6) rotate(-25deg)}100%{opacity:1;transform:none}}
@keyframes joker-topple{0%{transform:none}18%{transform:rotate(-5deg)}32%{transform:rotate(3deg)}100%{transform:translateY(115%) rotate(32deg);opacity:.2}}
@media(prefers-reduced-motion:reduce){.joker-fx,.joker-fx *,.joker-fx::before,.arena.joker-shake,.arena.joker-censure .portrait,.round-hints.joker-hint-flash{animation-duration:1ms!important;animation-delay:0s!important}.joker-fx{animation:none}}

/* Scan laser du Dépudex : faisceau cyan depuis la tablette, ligne qui balaie le portrait, grille qui reste un instant ; la carte sort de la fente et se pose en grand devant le portrait. */
.capture-laser-beam{position:absolute;z-index:4;pointer-events:none;background:linear-gradient(to left,#e9feffee 0%,#5ff6ffbb 30%,#39f3ff40 100%);opacity:0}
.capture-scan-line{position:absolute;z-index:5;height:3px;margin-top:-1.5px;border-radius:2px;pointer-events:none;background:#fff;box-shadow:0 0 3px 1px #9ffbff,0 0 14px 5px #39f3ffaa,0 0 34px 12px #39f3ff44;opacity:0}
.capture-scan-grid{position:absolute;z-index:3;pointer-events:none;background:repeating-linear-gradient(0deg,#39f3ff3d 0 1px,transparent 1px 7px),repeating-linear-gradient(90deg,#39f3ff26 0 1px,transparent 1px 28px),linear-gradient(#0b3f4a1f,#0b3f4a33);clip-path:inset(0 0 100% 0)}
.capture-laser-emitter{position:absolute;z-index:7;width:30px;height:30px;margin:-15px 0 0 -15px;border-radius:50%;pointer-events:none;background:radial-gradient(circle,#fff 0 22%,#9ffbff 36%,#39f3ff00 70%);animation:capture-laser-emitter .16s ease-in-out 12 alternate}
@keyframes capture-laser-emitter{from{transform:scale(.8)}to{transform:scale(1.25)}}
.dex-capture-scene.laser-scan .capture-device-screen::after{display:none}
.laser-scan:not(.scan-done) .capture-device p{opacity:0}
.card-ejecting .capture-device{z-index:6}
.card-landed .capture-card::after{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(105deg,transparent 38%,#ffffffb3 48%,#9ffbff66 52%,transparent 62%) 0 0/260% 100% no-repeat;animation:capture-card-shine .9s ease-out both}
@keyframes capture-card-shine{from{background-position:120% 0}to{background-position:-60% 0}}
.card-returning .capture-card::after{content:none}
@media(prefers-reduced-motion:reduce){.capture-laser-emitter,.card-landed .capture-card::after{animation:none}}
/* Rareté des cartes (grades Wiki pick) : liseré, pastille, reflets à partir d'Épique, fiche de stats au dos. */
.card-rarity-frame{position:absolute;inset:0;z-index:3;border:4px solid var(--rarity-color,#9ca3af);border-radius:inherit;box-shadow:inset 0 0 0 2px #fffaf0cc;pointer-events:none}
.card-rarity{position:absolute;z-index:4;right:7px;top:7px;display:flex;align-items:center;gap:3px;padding:2px 6px 2px 4px;border:2px solid #173451;border-radius:999px;background:var(--rarity-color,#9ca3af);color:#fff;font:900 10px/1 Barlow,Arial,sans-serif;letter-spacing:.3px;text-transform:uppercase;text-shadow:0 1px 0 #17345199;box-shadow:1px 2px 0 #17345166;pointer-events:none;white-space:nowrap}
.card-rarity i{font-style:normal;font-size:7px;letter-spacing:-1px;opacity:.9}
[data-rarity="commune"]>.card-rarity{color:#173451;text-shadow:none;background:#e5e7eb}
#depudexPanel .dex-collect-card .card-rarity{right:4px;top:4px;padding:1px 4px;font-size:7px;border-width:1px}#depudexPanel .dex-collect-card .card-rarity i{display:none}
[data-rarity="epique"]>.card-rarity-frame::before,[data-rarity="exceptionnelle"]>.card-rarity-frame::before,[data-rarity="legendaire"]>.card-rarity-frame::before,[data-rarity="mythique"]>.card-rarity-frame::before{content:'';position:absolute;inset:0;background:linear-gradient(115deg,transparent 20%,color-mix(in srgb,var(--rarity-color) 35%,transparent) 32%,#ffffff55 40%,color-mix(in srgb,var(--rarity-color) 35%,transparent) 48%,transparent 60%) 0 0/250% 100% no-repeat;mix-blend-mode:screen}
[data-rarity="exceptionnelle"]>.card-rarity-frame{box-shadow:inset 0 0 12px #f59e0b88,0 0 10px #f59e0b66}
[data-rarity="legendaire"]>.card-rarity-frame{box-shadow:inset 0 0 16px #f9731699,0 0 16px #f97316aa}
[data-rarity="mythique"]>.card-rarity-frame{border:5px solid #111;outline:2px solid #eab308;outline-offset:-7px;box-shadow:inset 0 0 18px #eab308aa,0 0 20px #eab308cc,0 0 0 2px #111}
[data-rarity="mythique"]>.card-rarity-frame::before{background:linear-gradient(115deg,transparent 15%,#ff4d6d55 28%,#ffe13866 36%,#4dffb855 44%,#4d8bff55 52%,#c84dff55 60%,transparent 72%) 0 0/250% 100% no-repeat}
[data-rarity="mythique"]>.card-rarity{background:linear-gradient(90deg,#111,#3a2c05 50%,#111);color:#ffd84a;border-color:#eab308}
.capture-card[data-rarity]>.card-rarity-frame::before,.inspect-front[data-rarity]>.card-rarity-frame::before{animation:card-rarity-sheen 3.2s ease-in-out 2}
@keyframes card-rarity-sheen{from{background-position:130% 0}to{background-position:-40% 0}}
.capture-card .card-rarity,.inspect-front .card-rarity{right:10px;top:10px;padding:4px 10px 4px 7px;font-size:13px;border-width:2px}.capture-card .card-rarity i,.inspect-front .card-rarity i{font-size:9px}
.capture-rarity-banner{position:absolute;z-index:8;transform:translate(-50%,-50%) rotate(-4deg);padding:6px 18px 8px;border:3px solid #173451;border-radius:8px;background:var(--rarity-color);color:#fff;font:900 clamp(24px,4vw,40px)/1 'Barlow Condensed',Impact,sans-serif;letter-spacing:1px;text-transform:uppercase;text-shadow:2px 3px 0 #173451;box-shadow:4px 5px 0 #173451,0 0 30px var(--rarity-color);pointer-events:none;white-space:nowrap;animation:capture-rarity-banner .55s cubic-bezier(.2,1.5,.4,1) both}
.capture-rarity-banner[data-rarity="mythique"]{background:linear-gradient(90deg,#111,#3a2c05 50%,#111);color:#ffd84a;border-color:#eab308}
@keyframes capture-rarity-banner{from{opacity:0;transform:translate(-50%,-50%) rotate(-4deg) scale(2.4)}to{opacity:1;transform:translate(-50%,-50%) rotate(-4deg) scale(1)}}
.capture-confetti{position:absolute;z-index:7;width:9px;height:14px;margin:-7px 0 0 -4px;border-radius:2px;pointer-events:none;animation:capture-confetti 1.3s cubic-bezier(.15,.7,.4,1) both}
@keyframes capture-confetti{from{opacity:1;transform:translate(0,0) rotate(0)}to{opacity:0;transform:translate(var(--dx),calc(var(--dy) + 140px)) rotate(var(--spin))}}
.card-returning .capture-rarity-banner,.card-returning .capture-confetti{display:none}
@media(prefers-reduced-motion:reduce){.capture-rarity-banner,.capture-card[data-rarity]>.card-rarity-frame::before,.inspect-front[data-rarity]>.card-rarity-frame::before{animation:none}}
.inspect-easter-back.has-stats{padding:0;display:flex;flex-direction:column;align-items:stretch;justify-content:stretch;place-items:stretch;background:#fffaf0}
.inspect-easter-back.has-stats .card-stats-sheet{flex:1 1 auto;width:100%;height:100%;box-sizing:border-box}
.card-stats-sheet{display:flex;flex-direction:column;gap:6px;min-height:0;padding:12px 13px 10px;border-top:8px solid var(--rarity-color);background:linear-gradient(#fffaf0,#fff2c4);color:#173451;font:600 12px/1.2 Barlow,Arial,sans-serif;overflow:hidden}
.card-stats-sheet .stats-head{display:grid;grid-template-columns:1fr auto;align-items:baseline;gap:2px 8px;padding-bottom:6px;border-bottom:2px solid #173451}
.card-stats-sheet .stats-name{font:900 18px/1 'Barlow Condensed',Impact,sans-serif;text-transform:uppercase}
.card-stats-sheet .stats-grade{display:flex;align-items:center;gap:3px;padding:2px 8px;border:2px solid #173451;border-radius:999px;background:var(--rarity-color);color:#fff;font:900 11px/1 Barlow,Arial,sans-serif;text-transform:uppercase;text-shadow:0 1px 0 #17345199}
.card-stats-sheet .stats-grade i{font-style:normal;font-size:8px;letter-spacing:-1px}
.card-stats-sheet[data-rarity="commune"] .stats-grade{background:#e5e7eb;color:#173451;text-shadow:none}
.card-stats-sheet[data-rarity="mythique"] .stats-grade{background:linear-gradient(90deg,#111,#3a2c05 50%,#111);color:#ffd84a;border-color:#eab308}
.card-stats-sheet .stats-index{grid-column:1/-1;font-size:11px;font-weight:800;color:#41566e}
.card-stats-sheet .stats-list{margin:0;display:flex;flex-direction:column;gap:3px}
.card-stats-sheet .stats-row{position:relative;display:grid;grid-template-columns:1fr auto 34px;align-items:center;gap:6px;padding:2px 6px;border-radius:4px;background:linear-gradient(90deg,color-mix(in srgb,var(--rarity-color) 28%,transparent) var(--share),#17345110 var(--share))}
.card-stats-sheet dt{font-weight:700}.card-stats-sheet dd{margin:0;font-weight:900;font-size:13px}.card-stats-sheet .stats-row small{text-align:right;font-size:10px;font-weight:800;color:#41566e}
.card-stats-sheet .stats-subtitle{display:block;margin:2px 0 3px;font:900 12px/1 Barlow,Arial,sans-serif;text-transform:uppercase;letter-spacing:.5px}
.card-stats-sheet .stats-laws{display:flex;flex-direction:column;gap:2px;min-height:0;overflow:auto}
.card-stats-sheet .stats-law{display:flex;justify-content:space-between;gap:6px;font-size:10px;line-height:13px}.card-stats-sheet .stats-law b{flex:0 0 auto;padding:0 5px;border-radius:3px;font-size:10px;line-height:13px;color:#fff;background:#8a96a8}
.card-stats-sheet .vote-p{background:#1f9d55!important}.card-stats-sheet .vote-c{background:#d6283e!important}.card-stats-sheet .vote-a{background:#d08b0b!important}
.card-stats-sheet .stats-source{margin-top:auto;font-size:9px;font-weight:700;color:#5d6f85}
@media(max-width:600px){.card-stats-sheet{padding:9px 9px 7px;gap:4px;font-size:10.5px}.card-stats-sheet .stats-name{font-size:15px}.card-stats-sheet dd{font-size:11.5px}}

.card-landed .capture-card{transform-style:preserve-3d;will-change:transform}
.capture-card strong{max-width:100%}
[data-rarity]>.card-rarity-frame::before{background-position:130% 0;opacity:.75}
#depudexPanel .dex-collect-card[data-rarity]:hover>.card-rarity-frame::before{animation:card-rarity-sheen 1.2s ease-out 1}
.capture-card[data-rarity]>small:first-child,.inspect-front[data-rarity]>small:first-child{justify-self:start;align-self:center;text-align:left;margin-right:auto;padding-right:8px}
.card-stored .capture-device-screen{box-shadow:inset 0 2px 5px #17345133,0 0 22px #b9efac}
.card-landed .capture-device,.card-parked .capture-device,.card-returning .capture-device{z-index:2}
.card-flinging .capture-rarity-banner,.card-flinging .capture-confetti,.card-flinging .capture-card::after{display:none}
/* Carte posée : retournable (fiche de stats au dos), invite sur la première carte de la partie, éclat de particules du grade. */
.card-parked .capture-card{pointer-events:auto;cursor:pointer}
.card-parked .capture-card:focus-visible{outline:4px solid #2b6cff;outline-offset:4px}
.capture-flip-hint{position:absolute;z-index:9;transform:translateX(-50%);padding:7px 14px 8px;border:2px solid #173451;border-radius:999px;background:#ffe138;color:#173451;font:900 14px/1 Barlow,Arial,sans-serif;box-shadow:3px 4px 0 #173451;white-space:nowrap;pointer-events:none;animation:capture-flip-hint 1.1s ease-in-out .4s 4 both}
@keyframes capture-flip-hint{0%,100%{transform:translateX(-50%) translateY(0)}50%{transform:translateX(-50%) translateY(-6px)}}
.card-flinging .capture-flip-hint,.card-flinging .capture-burst-bit{display:none}
.capture-burst-bit{position:absolute;z-index:3;width:var(--size,8px);height:var(--size,8px);margin:calc(var(--size,8px)/-2) 0 0 calc(var(--size,8px)/-2);border-radius:2px;box-shadow:0 0 8px #fff8;pointer-events:none;opacity:0;animation:capture-burst .75s cubic-bezier(.15,.75,.35,1) both}
.capture-burst-bit:nth-child(odd){border-radius:50%}
@keyframes capture-burst{0%{opacity:1;transform:translate(0,0) scale(.4)}60%{opacity:1}100%{opacity:0;transform:translate(var(--dx),var(--dy)) scale(1) rotate(160deg)}}
/* Rangement express : traînée de particules, trappe du bouton Dépudex, compteur qui roule. */
.dex-fling-trail{position:fixed;inset:0;z-index:118;pointer-events:none;overflow:hidden}
.dex-fling-trail>i{position:absolute;width:var(--size,8px);height:var(--size,8px);margin:calc(var(--size,8px)/-2) 0 0 calc(var(--size,8px)/-2);border-radius:50%;box-shadow:0 0 10px #fff9;animation:dex-trail .6s ease-out both}
@keyframes dex-trail{from{opacity:.95;transform:scale(1)}to{opacity:0;transform:scale(.2) translateY(10px)}}
.dex-trapdoor{position:fixed;z-index:117;pointer-events:none;perspective:220px;border-radius:9px;overflow:visible}
.dex-trapdoor .trap-hole{position:absolute;inset:0;border-radius:9px;background:radial-gradient(ellipse at 50% 55%,#000 0 35%,#0b2036 70%,#173451);box-shadow:inset 0 3px 8px #000c;opacity:0;transition:opacity .12s}
.dex-trapdoor .trap-door{position:absolute;top:0;bottom:0;width:50%;background:repeating-linear-gradient(135deg,#ffe138 0 7px,#f6cd1f 7px 14px);border:2px solid #173451;box-sizing:border-box;transition:transform .2s cubic-bezier(.3,.7,.3,1.2)}
.dex-trapdoor .trap-door-left{left:0;border-radius:9px 0 0 9px;transform-origin:0 50%}
.dex-trapdoor .trap-door-right{right:0;border-radius:0 9px 9px 0;transform-origin:100% 50%}
.dex-trapdoor.open .trap-hole{opacity:1}
.dex-trapdoor.open .trap-door-left{transform:rotateY(-105deg)}
.dex-trapdoor.open .trap-door-right{transform:rotateY(105deg)}
.dex-trapdoor.closing .trap-hole{opacity:1}
.dex-trapdoor.closing .trap-door{transition-duration:.14s;transition-timing-function:cubic-bezier(.6,0,.9,.6)}
.dex-count-roll{position:relative;display:inline-block;overflow:hidden;vertical-align:bottom;height:1.15em;min-width:1.4em;text-align:center}
.dex-count-roll b{display:block;font-weight:inherit}
.dex-count-old{animation:dex-count-out .35s cubic-bezier(.5,0,.8,.5) both}
.dex-count-new{position:absolute;left:0;right:0;top:0;animation:dex-count-in .45s cubic-bezier(.2,1.5,.4,1) .12s both}
@keyframes dex-count-out{to{transform:translateY(-110%);opacity:0}}
@keyframes dex-count-in{from{transform:translateY(110%);opacity:0}to{transform:translateY(0);opacity:1}}
#openDepudex.dex-count-bump{animation:dex-count-bump .6s cubic-bezier(.2,1.4,.4,1)}
@keyframes dex-count-bump{0%{transform:scale(1)}35%{transform:scale(1.18);box-shadow:0 0 0 4px #ffe13899,0 0 24px #ffe138}100%{transform:scale(1)}}
.dex-count-plus{position:fixed;z-index:119;transform:translateX(-50%);color:#e90040;font:900 20px/1 'Barlow Condensed',Impact,sans-serif;text-shadow:2px 2px 0 #fff,0 0 10px #ffe138;pointer-events:none;animation:dex-count-plus .9s ease-out both}
@keyframes dex-count-plus{from{opacity:0;transform:translate(-50%,6px) scale(.6)}25%{opacity:1;transform:translate(-50%,0) scale(1.2)}to{opacity:0;transform:translate(-50%,22px) scale(1)}}
@media(prefers-reduced-motion:reduce){.capture-flip-hint,.capture-burst-bit,.dex-count-old,.dex-count-new,#openDepudex.dex-count-bump,.dex-count-plus{animation-duration:.01s}}
.capture-rarity-banner{animation:capture-rarity-banner .55s cubic-bezier(.2,1.5,.4,1) both,capture-rarity-banner-out .4s ease-in 2.2s forwards}
@keyframes capture-rarity-banner-out{to{opacity:0;transform:translate(-50%,-50%) rotate(-4deg) scale(.7)}}
/* Ouverture du bouton Dépudex en store à lamelles : il s'enroule vers le haut, puis redescend. */
.dex-trapdoor{overflow:hidden;perspective:none}
.dex-trapdoor .trap-door{display:none}
.dex-trapdoor .trap-shutter{position:absolute;inset:0;border:2px solid #173451;border-radius:9px;box-sizing:border-box;background:repeating-linear-gradient(180deg,#ffe138 0 4px,#f2c418 4px 5px,#b8901a 5px 6px);transform-origin:50% 0;transition:transform .24s steps(6,end)}
.dex-trapdoor .trap-box{position:absolute;left:0;right:0;top:0;height:4px;border-radius:9px 9px 0 0;background:#173451;opacity:0;transition:opacity .1s}
.dex-trapdoor.open .trap-shutter{transform:scaleY(.06)}
.dex-trapdoor.open .trap-box{opacity:1}
.dex-trapdoor.closing .trap-shutter{transition:transform .2s steps(5,end)}
.dex-trapdoor.closing .trap-box{opacity:1}
/* Vote de censure : la présidente de l'Assemblée au perchoir pose les questions et frappe du marteau. */
.joker-perchoir{position:absolute;left:50%;top:0;width:170px;height:196px;transform:scale(var(--perchoir-scale,1));transform-origin:0 0;z-index:12;clip-path:inset(-120px -120px 0 -120px);animation:joker-perchoir-in .5s cubic-bezier(.2,1.2,.4,1) both}
.joker-perchoir.leaving{animation:joker-perchoir-out .45s ease-in both}
.joker-perchoir .joker-president{left:50%;top:6px;bottom:auto;transform:translateX(-50%)}
.joker-president.talking>img{animation:joker-talk .2s ease-in-out infinite alternate}
.joker-perchoir-desk{position:absolute;left:-18px;right:-58px;bottom:0;height:46px;z-index:4;background:linear-gradient(#f0c64a 0 7px,#173451 7px);border:3px solid #0b1f36;border-bottom:0;border-radius:7px 7px 0 0;box-shadow:inset 0 -10px 0 #0f2740}
.joker-perchoir-desk::after{content:'';position:absolute;left:50%;top:13px;width:24px;height:24px;transform:translateX(-50%);border-radius:50%;background:radial-gradient(circle,#ef4135 0 30%,#fff 31% 62%,#0055a4 63%);box-shadow:0 0 0 2px #e2b33c}
.joker-gavel-hammer{position:absolute;left:0;top:0;width:0;height:0;z-index:3;transform-origin:0 0;pointer-events:none}
.joker-gavel-hammer svg{position:absolute;left:-4px;top:-14px;width:50px;height:28px;overflow:visible}
.joker-gavel-base{position:absolute;left:0;top:0;width:34px;height:7px;z-index:2;background:#d9a520;border:2px solid #173451;border-radius:2px;box-sizing:border-box}
@keyframes joker-perchoir-in{0%{opacity:0;transform:translateY(-40px) scale(var(--perchoir-scale,1))}100%{opacity:1;transform:scale(var(--perchoir-scale,1))}}
@keyframes joker-perchoir-out{100%{opacity:0;transform:translateY(-40px) scale(var(--perchoir-scale,1))}}
@keyframes joker-talk{0%{transform:translateY(0) rotate(-1deg)}100%{transform:translateY(3px) rotate(2deg)}}
#result.end-party .eyebrow{font-size:clamp(17px,2.2vw,26px);font-weight:900;letter-spacing:.18em;text-shadow:0 2px 0 #153451}
#result.end-party .end-card{max-width:min(1200px,100%)}
#result.end-party .end-cheer{font-size:clamp(36px,8vw,124px);white-space:nowrap}
/* 574 cartes : seules les cartes proches du centre gardent un calque GPU ; les autres sont masquées par updateCoverflow. */
.hemicycle-carousel .hemicycle-carousel-item{will-change:auto;contain:layout style}
.hemicycle-carousel .hemicycle-carousel-item[data-flow="near"]{will-change:transform}
/* Grande carte du quiz : la même carte que celle du Dépudex (faces de l'inspecteur), mise à l'échelle. */
.capture-big-card{position:absolute;z-index:4;opacity:0;transform:translate(-50%,-50%);pointer-events:none}
.capture-big-scale{position:absolute;left:0;top:0;transform-origin:0 0;perspective:1100px}
.capture-big-scale>.inspect-object{width:100%;height:100%}
.card-parked .capture-big-card{pointer-events:auto;cursor:pointer}
.card-parked .capture-big-card:focus-visible{outline:4px solid #2b6cff;outline-offset:4px}

/* Portraits des cartes : images nettes (vignette 256 en collection, portrait 1024 sur les grandes cartes), plus de pixel art agrandi. */
#depudexPanel .dex-collect-card .collect-art>img,.dex-discovery-card img,.hemicycle-carousel .hemicycle-rail-card img{image-rendering:auto!important}

/* Mini-député qui marche à côté de la carte inspectée (game.js startInspectWalker). */
.card-inspector>.inspect-walker{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:30}
/* Cabine d'essayage du mini-député (façon Sims) : gros plan sur un socle à gauche, garde-robe à droite. */
.inspect-buttons{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;flex-shrink:0}
.dressing-room{position:fixed;inset:0;z-index:190;display:flex;flex-direction:column;background:linear-gradient(160deg,#cfe9f6 0%,#9fd0ea 45%,#5a9cc6 100%);color:#173451;font-family:inherit}
.dressing-room[hidden]{display:none}
.dr-head{display:flex;align-items:center;gap:14px;padding:12px 18px;background:#173451;color:#fff4c7;flex-shrink:0}
.dr-head span{font-size:11px;font-weight:900;letter-spacing:2px;text-transform:uppercase;color:#ffe138}
.dr-head b{flex:1;font-size:18px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dr-head button{width:40px;height:40px;border:2px solid #ffe138;border-radius:50%;background:transparent;color:#ffe138;font-size:18px;cursor:pointer}
.dr-body{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,420px);gap:18px;padding:18px}
.dr-stage{position:relative;min-height:0;border-radius:18px;background:radial-gradient(ellipse at 50% 40%,#ffffffd9 0,#e7f4fbb3 45%,#ffffff00 75%);overflow:hidden;touch-action:none;cursor:grab}
.dr-stage:active{cursor:grabbing}
.dr-stage::after{content:"";position:absolute;left:50%;bottom:2.5%;width:min(46%,320px);aspect-ratio:5/1;transform:translateX(-50%);border-radius:50%;background:radial-gradient(ellipse,#17345155 0,#17345122 55%,#0000 72%);pointer-events:none}
.dr-stage canvas{position:absolute;inset:0;width:100%;height:100%;z-index:1}
.dr-hint{position:absolute;left:0;right:0;top:10px;margin:0;text-align:center;font-size:12px;font-weight:700;color:#173451aa;z-index:2;pointer-events:none}
.dr-panel{display:flex;flex-direction:column;gap:14px;min-height:0;overflow:auto;padding:14px;border-radius:18px;background:#fffdf5f0;border:3px solid #173451;box-shadow:6px 6px 0 #173451}
.dr-tabs{display:flex;gap:6px}
.dr-tabs button{flex:1;min-height:42px;border:2px solid #173451;border-radius:21px;background:#fff;color:#173451;font-weight:800;font-size:14px;cursor:pointer}
.dr-tabs button[aria-selected=true]{background:#173451;color:#ffe138}
.dr-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.dr-items button{display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px 4px;border:2px solid #17345133;border-radius:12px;background:linear-gradient(#f3f9fd,#dcecf6);color:#173451;font-size:11px;font-weight:700;line-height:1.2;cursor:pointer;min-width:0}
.dr-items button[aria-selected=true]{border-color:#173451;background:linear-gradient(#fff6c2,#ffe138);box-shadow:0 0 0 2px #ffe138}
.dr-items canvas{width:100%;height:auto;aspect-ratio:1/1}
.dr-colours>span{display:block;font-size:11px;font-weight:900;letter-spacing:1.5px;text-transform:uppercase;margin-bottom:6px}
.dr-swatches{display:flex;flex-wrap:wrap;gap:7px}
.dr-swatches button,.dr-swatches label{width:32px;height:32px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 2px #17345155;cursor:pointer;padding:0;position:relative;overflow:hidden}
.dr-swatches button[aria-pressed=true]{box-shadow:0 0 0 3px #173451}
.dr-swatches .dr-origin{background:conic-gradient(#e83c3b 0 25%,#ffe138 0 50%,#235ddd 0 75%,#2f6b3a 0)}
.dr-swatches label input{position:absolute;inset:-8px;width:48px;height:48px;border:0;padding:0;cursor:pointer;opacity:0}
.dr-swatches label{background:#fff;display:grid;place-items:center;font-weight:900;font-size:18px;color:#173451}
.dr-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto}
.dr-actions button{flex:1 1 auto;min-height:44px;border:2px solid #173451;border-radius:10px;background:#fff;color:#173451;font-weight:800;font-size:13px;padding:8px 12px;box-shadow:3px 3px 0 #173451;cursor:pointer}
.dr-actions .dr-save{flex-basis:100%;background:#ffe138}
@media (max-width:760px){.dr-body{grid-template-columns:1fr;grid-template-rows:minmax(240px,42vh) auto;padding:10px 16px;gap:10px;overflow:auto}.dr-panel{overflow:visible}.dr-head{padding:10px 16px}}
.dr-body{padding-bottom:76px}
/* Pom-pom girls de la réponse : coin bas droit de l’arène, sous le nom et le groupe, devant le portrait mais derrière le titre, le nom et le groupe (ordre du DOM), sans capter les clics. */
.cheer-squad{position:absolute;right:0;bottom:0;width:50%;height:34%;pointer-events:none}
/* Mini-député de la vue carte : derrière la carte quand il en sort, puis devant ; main ouverte sur sa tête, main fermée quand on le tient. */
.card-inspector>.inspect-walker.behind{z-index:-1}
.card-inspector.walker-hover,.card-inspector.walker-hover *{cursor:grab}
.card-inspector.walker-held,.card-inspector.walker-held *{cursor:grabbing}

/* Écran quasi carré (pliable ouvert type Z Fold, tablette en paysage étroite) : jokers sur une seule ligne, réponses compactes ; la silhouette prend la hauteur restante pour que tout tienne sans défiler. */
@media(min-width:701px) and (max-width:999px) and (min-aspect-ratio:4/5) and (max-aspect-ratio:1149/1000){
body[data-stage="game"] .controls{margin-top:10px;padding:8px 12px 4px}
body[data-stage="game"] .prompt{margin-bottom:6px}
body[data-stage="game"] .prompt h2{font-size:19px;line-height:1.1}
body[data-stage="game"] .quiz-bonuses{gap:10px;margin-bottom:8px;padding:6px 8px}
body[data-stage="game"] .bonus-heading{display:none}
body .quiz-bonuses .bonus-actions:has(>.joker:nth-child(4)){grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
body .quiz-bonuses .bonus-actions:has(>.joker:nth-child(4)) button.joker{grid-template-columns:auto minmax(0,1fr);min-height:40px;padding:4px 7px;column-gap:5px}
body .quiz-bonuses .bonus-actions:has(>.joker:nth-child(4)) button.joker .joker-icon{grid-row:1/3;width:26px;height:26px}
body .quiz-bonuses .bonus-actions:has(>.joker:nth-child(4)) button.joker b{grid-column:2;grid-row:1;font-size:clamp(9.5px,2.05cqw,12px);letter-spacing:0}
body[data-stage="game"] main>.controls{container-type:inline-size}
body .quiz-bonuses .bonus-actions:has(>.joker:nth-child(4)) button.joker small{display:none}
body .quiz-bonuses .bonus-actions:has(>.joker:nth-child(4)) button.joker span{grid-column:2;grid-row:2;justify-self:start}
body[data-stage="game"] main>.controls .choices{gap:8px}
body[data-stage="game"] main>.controls .choice{min-height:42px;padding-top:4px;padding-bottom:4px}
body[data-stage="game"] .feedback{min-height:32px;padding-top:6px;flex-wrap:nowrap;gap:8px}
body[data-stage="game"] .feedback>p{flex:1 1 auto;min-width:0}
body[data-stage="game"] .feedback #next{flex:none;min-height:0;padding:5px 14px;font-size:16px}
body[data-stage="game"]{--fold-w:min(100%,max(560px,calc((100dvh - 378px) * 1.6)));--stage-fit-min:480px}
body[data-stage="game"] .quiz-stage,body[data-stage="game"] main>.controls{width:var(--fold-w);margin-inline:auto}
body[data-stage="game"] .prompt{align-items:center}
body[data-stage="game"]{--fold-side:max(12px,calc((100vw - max(var(--fold-w),680px)) / 2))}
body[data-stage="game"]>header{padding-left:max(24px,var(--fold-side));padding-right:calc(var(--fold-side) + 106px)}
body[data-stage="game"] .audio-dock{right:var(--fold-side)}
body[data-stage="game"]>header .restart-game{margin-left:10px}
body[data-stage="game"] .score{padding:2px 10px;box-shadow:2px 2px 0 #173451}
body[data-stage="game"] .score strong{font-size:20px}
}
/* Carte révélée : logo et nom du groupe suivent la largeur de l'arène, pour ne pas déborder en bas quand elle est étroite (Fold ouvert, fenêtre basse). */
@media(min-width:701px){
body .arena.revealed .headline #tagline{margin-top:clamp(10px,3.4cqw,27px);margin-bottom:clamp(8px,2.6cqw,26px)}
body .arena.revealed .affiliation{gap:clamp(6px,1.6cqw,13px)}
body .arena.revealed .affiliation strong{font-size:clamp(12px,2.3cqw,17px);line-height:1.25}
body .arena.revealed .affiliation img{width:clamp(66px,16cqw,125px);height:clamp(40px,9.8cqw,76px);padding:clamp(4px,1cqw,8px) clamp(6px,1.3cqw,10px)}
}

/* Mobile : pendant l'inclinaison, les descendants des faces ne doivent pas devenir des calques GPU séparés.
   Sur Android/iOS, un calque animé (transition de transform/opacity, animation) ou fusionné (mix-blend-mode)
   placé dans le même plan que sa face 3D se dispute la profondeur avec elle : il clignote ou disparaît.
   On fige donc ces effets sur écran tactile ; la carte reste identique au repos. */
@media (hover:none),(pointer:coarse){
.inspect-object{will-change:transform;-webkit-transform-style:preserve-3d}
.inspect-front,.inspect-easter-back{isolation:isolate}
.inspect-front *,.inspect-front ::before,.inspect-front ::after,.inspect-front::before,.inspect-front::after,
.inspect-easter-back *,.inspect-easter-back ::before,.inspect-easter-back ::after{transition:none!important;animation:none!important;mix-blend-mode:normal!important;will-change:auto!important}
.inspect-front::after{opacity:.35}
.inspect-front>.portrait-holo-pattern{opacity:calc(var(--holo-strength,0) * .45)!important}
.inspect-portrait-foil::after{opacity:calc(.08 + var(--holo-strength,0) * .4)!important}
}
/* Vote de censure : perchoir et décompte placés par le script sous la barre d'outils de l'arène, côte à côte ou empilés selon la place ; le titre s'efface le temps du vote. */
.joker-vote-host .joker-vote-tally{transform:none;animation-name:joker-tally-in}
.joker-vote-tally.measuring{visibility:hidden;animation:none}
.arena #roundTitle,.arena #tagline,.arena .cheer-squad{transition:opacity .25s}
.arena.joker-voting #roundTitle,.arena.joker-voting #tagline,.arena.joker-voting .cheer-squad{opacity:0}
.joker-fx-banner{top:var(--fx-top,13%);max-width:calc(100% - 20px);box-sizing:border-box}
.joker-fx-banner span{white-space:normal}
@keyframes joker-tally-in{0%{opacity:0;transform:scale(1.6) rotate(-6deg)}100%{opacity:1;transform:none}}
/* Têtes du générique, des jokers et de la fin : têtes détourées au contour du visage (pixel-intro 64 px, visage normalisé, menton à 72 %), sans ovale. */
#introHeads .parade-deputy>img,#introHeads .parade-deputy.puppet-ready>img{top:-24px;left:-5px;width:150px;height:150px;object-fit:contain;clip-path:none;image-rendering:pixelated}
body .party-deputy>img,body #result.end-party .party-deputy>img{top:-19px;left:-4px;width:120px;height:120px;object-fit:contain;clip-path:none;image-rendering:pixelated}

/* HP sur tous les formats : si la hauteur manque (petit téléphone, paysage), le panneau défile au lieu d'empiler
   carrousel, frise et boutons les uns sur les autres. La 3D garde une hauteur minimale utilisable. */
.dex-console>.hemicycle-3d-panel{overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
.dex-console>.hemicycle-3d-panel>*{flex-shrink:0}
.dex-console>.hemicycle-3d-panel>.hemicycle-workspace{flex:1 1 0;min-height:260px}
@media(max-width:700px){.dex-console>.hemicycle-3d-panel>.hemicycle-workspace{min-height:330px}}
@media(max-height:520px){.dex-console>.hemicycle-3d-panel .hemicycle-3d-toolbar span,.dex-console>.hemicycle-3d-panel .hemicycle-3d-controls span,.dex-console>.hemicycle-3d-panel>small{display:none}
.dex-console>.hemicycle-3d-panel .hemicycle-3d-toolbar h2{font-size:18px}
.dex-console>.hemicycle-3d-panel>.hemicycle-workspace{min-height:290px}
.dex-console>.hemicycle-3d-panel .hemicycle-minimap{transform:scale(.7);transform-origin:100% 100%}}
/* Téléphones : le dock audio défile avec l'en-tête au lieu de flotter sur l'arène ; en paysage, le bouton Paramètres reste une icône pour ne pas couvrir « MANCHE x / 20 ». */
body[data-stage="game"]:not(:has(#depudexPanel:not([hidden]))) .audio-dock{position:absolute}
@media(max-height:520px) and (orientation:landscape){.arena .quiz-options>span{display:none}}
/* Petits téléphones : Pause et Recommencer en icônes (nom gardé en title/aria) pour que l'en-tête tienne sur une ligne à côté du dock audio. */
@media(max-width:420px){body[data-stage="game"] #pauseGame,body[data-stage="game"] #restartGame{font-size:0;min-width:44px;padding-left:0;padding-right:0;justify-content:center}body[data-stage="game"] #pauseGame::before,body[data-stage="game"] #restartGame::before{font-size:18px;line-height:1}body[data-stage="game"] #pauseGame::before{content:'Ⅱ'}body[data-stage="game"] #pauseGame[aria-pressed="true"]::before{content:'▶'}body[data-stage="game"] #restartGame::before{content:'↻'}body[data-stage="game"] #dexMiniCount{white-space:nowrap}}
/* Disposition empilée : largeur de la silhouette calculée par fitQuizStage (game.js) sur la hauteur réelle du panneau de réponses. */
@media(max-width:999px) and (max-aspect-ratio:1149/1000),(max-width:700px),(orientation:portrait){
body.stage-fit[data-stage="game"]{--fold-w:var(--stage-fit)}
body.stage-fit[data-stage="game"] .quiz-stage{width:var(--stage-fit)}
}
/* Téléphone : la silhouette ne descend pas sous 82 % de la largeur ; en hauteur réduite, le panneau de réponses se resserre (jokers sans sous-titre, score et cases compacts). */
@media(max-width:700px){body[data-stage="game"]{--stage-fit-min:.82}}
@media(max-width:700px) and (max-height:860px){
body[data-stage="game"] .controls{margin-top:10px;padding:8px 10px 6px}
body[data-stage="game"] .prompt{margin-bottom:6px;align-items:center}
body[data-stage="game"] .prompt h2{font-size:19px;line-height:1.1}
body[data-stage="game"] .score{padding:2px 9px;box-shadow:2px 2px 0 #173451}
body[data-stage="game"] .score strong{font-size:20px}
body[data-stage="game"] .quiz-bonuses{margin-bottom:8px;padding:6px 7px}
body[data-stage="game"] .bonus-heading{margin-bottom:4px}
body .quiz-bonuses .bonus-actions button.joker small,body .quiz-bonuses .bonus-actions:has(>.joker:nth-child(4)) button.joker small{display:none}
body .quiz-bonuses .bonus-actions button.joker{min-height:0;padding:4px 3px}
body .quiz-bonuses .bonus-actions button.joker .joker-icon{width:22px;height:22px}
body[data-stage="game"] main>.controls .choices{gap:7px}
body[data-stage="game"] main>.controls .choice{min-height:40px;padding-top:3px;padding-bottom:3px}
body[data-stage="game"] .feedback{min-height:30px;padding-top:6px}
body[data-stage="game"] .feedback #next{min-height:0;padding:5px 12px;font-size:15px}
}
/* Carte révélée sur téléphone : logo et nom du groupe proportionnels à l'arène. */
@media(max-width:700px){
body .arena.revealed .headline #tagline{margin-top:clamp(4px,2.4cqw,18px);margin-bottom:clamp(4px,2cqw,17px)}
body .arena.revealed .affiliation{gap:clamp(3px,1.4cqw,9px)}
body .arena.revealed .affiliation strong{font-size:clamp(9px,2.6cqw,16px);line-height:1.2}
body .arena.revealed .affiliation img{width:clamp(40px,15cqw,88px);height:clamp(26px,9.2cqw,55px);padding:clamp(2px,.9cqw,6px) clamp(3px,1.2cqw,8px)}
}
/* Très petits téléphones : libellés des jokers resserrés, compteur du Dépudex retiré pour que le bouton tienne sur une ligne. */
@media(max-width:359px){
body[data-stage="game"]>header #dexMiniCount{display:none}
body[data-stage="game"]>header #openDepudex{white-space:nowrap}
body .quiz-bonuses .bonus-actions button.joker b{font-size:9px;letter-spacing:-.2px}
body[data-stage="game"] main>.controls .choice.correct{padding-right:30px}
body[data-stage="game"] main>.controls .choice.correct::before{right:4px;width:10px}
body[data-stage="game"] main>.controls .choice{gap:6px;padding-left:6px}
}
/* Arène étroite : badge de manche et boutons du haut réduits pour ne pas se toucher. */
@container (max-width:560px){.arena .arena-progress{transform:scale(.86);transform-origin:top left}.arena .quiz-tools{transform:scale(.86);transform-origin:top right}}
@media(min-width:701px){
@container (max-width:460px){.arena .arena-progress{transform:scale(.74)}.arena .quiz-tools{transform:scale(.74)}}
@container (max-width:400px){.arena .arena-progress{transform:scale(.66)}.arena .quiz-tools{transform:scale(.66)}}
}
@media(max-width:700px){@container (max-width:330px){.arena .arena-progress{transform:scale(.8)}.arena .quiz-tools{transform:scale(.8)}}}
/* Toute petite arène : le logo du groupe suffit, son nom en toutes lettres est retiré. */
@container (max-width:330px){.arena.revealed .affiliation strong{display:none}}
/* Arène étroite : « Paramètres de partie » réduit à son engrenage pour ne pas toucher le titre. */
@container (max-width:560px){.arena .quiz-options>span{display:none}}
/* Deux colonnes sur écran peu haut (PC portable, tablette ou téléphone couchés) : colonne de droite resserrée pour tenir dans la hauteur. */
@media(min-width:1000px) and (orientation:landscape) and (max-height:860px),(min-width:701px) and (min-aspect-ratio:23/20) and (max-height:860px){
body[data-stage="game"] main{margin-top:10px;grid-template-columns:minmax(0,1fr) clamp(300px,30vw,430px)}
body[data-stage="game"] .controls{padding:12px 14px 8px}
body[data-stage="game"] .prompt{margin-bottom:8px;align-items:center}
body[data-stage="game"] .prompt .eyebrow{display:none}
body[data-stage="game"] .prompt h2{font-size:20px;line-height:1.1}
body[data-stage="game"] .score{padding:2px 10px;box-shadow:2px 2px 0 #173451}
body[data-stage="game"] .score strong{font-size:20px}
body[data-stage="game"] .quiz-bonuses{margin-bottom:8px;padding:7px 8px}
body[data-stage="game"] #bonusCostSummary{display:none}
body .quiz-bonuses .bonus-actions button.joker small,body .quiz-bonuses .bonus-actions:has(>.joker:nth-child(4)) button.joker small{display:none}
body .quiz-bonuses .bonus-actions:has(>.joker:nth-child(4)) button.joker{min-height:0;padding:4px 7px}
body .quiz-bonuses .bonus-actions:has(>.joker:nth-child(4)) button.joker .joker-icon{width:24px;height:24px}
body .quiz-bonuses .bonus-actions:has(>.joker:nth-child(4)) button.joker span{grid-row:2;grid-column:2/4;justify-self:start}
body[data-stage="game"] main>.controls .choices{gap:7px}
body[data-stage="game"] main>.controls .choices{grid-auto-rows:auto}
body .quiz-bonuses .bonus-actions:has(>.joker:nth-child(4)) button.joker b{font-size:12px;letter-spacing:0}
body[data-stage="game"] main>.controls .prompt+.quiz-bonuses .bonus-heading{margin-bottom:4px}
body[data-stage="game"] main>.controls .choice{min-height:42px;padding-top:3px;padding-bottom:3px}
body[data-stage="game"] main>.controls .choice .letter{width:32px;height:32px}
body[data-stage="game"] .feedback{min-height:32px;padding-top:6px;column-gap:8px;row-gap:4px}
body[data-stage="game"] .feedback .wiki-source{margin-left:0}
body[data-stage="game"] main>.controls .choice.correct{padding-right:44px}
body[data-stage="game"] main>.controls .choice.correct::before{right:10px;width:16px}
body[data-stage="game"] .feedback #next{min-height:0;padding:5px 12px;font-size:15px}
}
/* Écran très bas en deux colonnes (téléphone couché, petite fenêtre) : en-tête aminci et jokers sur une ligne, réduits à l'icône et au coût (le nom reste lu par les lecteurs d'écran). */
@media(min-width:1000px) and (orientation:landscape) and (max-height:560px),(min-width:701px) and (min-aspect-ratio:23/20) and (max-height:560px){
body[data-stage="game"]>header{height:52px}
body[data-stage="game"] .audio-dock{top:6px}
body[data-stage="game"] .bonus-heading{display:none}
body .quiz-bonuses .bonus-actions:has(>.joker:nth-child(4)){grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
body .quiz-bonuses .bonus-actions:has(>.joker:nth-child(4)) button.joker{grid-template-columns:1fr;justify-items:center;padding:3px 2px}
body .quiz-bonuses .bonus-actions:has(>.joker:nth-child(4)) button.joker .joker-icon{grid-row:1;grid-column:1}
body .quiz-bonuses .bonus-actions:has(>.joker:nth-child(4)) button.joker span{grid-row:2;grid-column:1;justify-self:center}
body .quiz-bonuses .bonus-actions:has(>.joker:nth-child(4)) button.joker b{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
@media(min-width:701px) and (min-aspect-ratio:23/20) and (max-height:440px){
body[data-stage="game"] main>.controls .choices{grid-template-columns:repeat(2,minmax(0,1fr))}
body[data-stage="game"] main>.controls .choice{gap:6px;padding-left:6px;padding-right:6px;font-size:13px;line-height:1.1}
body[data-stage="game"] main>.controls .choice .letter{width:22px;height:22px;font-size:14px}
body[data-stage="game"] main>.controls .choice>span:not(.letter){font-size:14px}
body[data-stage="game"] main>.controls .choice.correct{padding-right:40px}
body[data-stage="game"] main>.controls .choice.correct::before{right:6px;width:12px}
}
/* Arène minuscule : « Réécouter » réduit à sa flèche. */
@container (max-width:340px){.arena #listen{font-size:0;padding-inline:8px}.arena #listen::before{content:'↻';font-size:14px}}

/* Dépudex : bouton éteindre et dock audio contenus dans la coque, quel que soit l'écran.
   Le bouton garde 35 px visibles (le cadre noir du LCD est calé dessus) et une zone tactile de 45 px. */
#depudexPanel #closeDepudex.dex-power-button{min-width:35px;min-height:35px;width:35px;height:35px;position:relative}
#depudexPanel #closeDepudex.dex-power-button::before{content:'';position:absolute;inset:-6px;border-radius:50%}
body:has(#depudexPanel:not([hidden])) .audio-dock{position:fixed;top:auto;bottom:calc((100dvh - min(1040px,96dvh)) / 2 + 13px);right:calc((100vw - min(1460px,98vw)) / 2 + 18px)}
@media(max-width:600px){
body:has(#depudexPanel:not([hidden])) .audio-dock{top:auto;bottom:15px;right:18px}
body:has(#depudexPanel:not([hidden])) .audio-dock .audio-mute,body:has(#depudexPanel:not([hidden])) .audio-dock .audio-settings-open{height:40px;min-height:40px}
/* Collection sur téléphone : trois cartes compactes par rangée au lieu de deux cartes géantes. */
#depudexPanel .dex-cards:not(.dex-folded){grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:9px 8px}
#depudexPanel .dex-cards .dex-collect-card{padding:5px 5px 6px;border-radius:6px}
#depudexPanel .dex-cards .dex-collect-card .collect-number{font-size:7px;letter-spacing:.3px;padding:1px 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#depudexPanel .dex-cards .dex-collect-card .collect-art{aspect-ratio:1/1.05;border-width:1.5px}
#depudexPanel .dex-cards .dex-collect-card>strong{font-size:11px;line-height:1.12;margin:5px 0 3px;overflow-wrap:anywhere;hyphens:auto}
#depudexPanel .dex-cards .dex-collect-card .collect-group{font-size:7.5px;line-height:1.25;min-height:0;padding-top:3px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
#depudexPanel .dex-cards .dex-collect-card .card-rarity{top:auto;bottom:auto;right:8px;transform:translateY(16px);font-size:6px;padding:1px 3px}
}
/* Écrans bas (téléphone couché, petit portable) : en-tête LCD sur une ligne, dock audio dans la barre du haut,
   bandeau inférieur réduit, pour laisser la hauteur à la collection. */
@media(max-height:560px) and (min-width:601px){
#depudexPanel .dex-console{padding-top:8px;padding-bottom:14px}
#depudexPanel .dex-console::after,#depudexPanel .dex-tablet-boot,#depudexPanel .dex-console>.hemicycle-3d-panel{top:52px;bottom:14px}
#depudexPanel .dex-hardware-bar{margin-bottom:9px}
body:has(#depudexPanel:not([hidden])) .audio-dock{top:calc((100dvh - min(1040px,96dvh)) / 2 + 9px);bottom:auto;right:calc((100vw - min(1460px,98vw)) / 2 + 110px)}
body:has(#depudexPanel:not([hidden])) .audio-dock .audio-mute,body:has(#depudexPanel:not([hidden])) .audio-dock .audio-settings-open{height:36px;min-height:36px}
#depudexPanel .dex-top{padding:0 0 6px}
#depudexPanel .dex-top .eyebrow{display:none}
#depudexPanel .dex-top h2{width:min(190px,100%);margin:0 auto 2px}
#depudexPanel .dex-top p{margin:0;font-size:9px}
#depudexPanel .dex-top>.dex-republic-seal svg{width:44px;height:auto}
#depudexPanel .dex-layout{margin-top:8px}
}
/* Très grands écrans à densité 1 : la tablette garde des proportions confortables au lieu de rester minuscule. */
@media(min-width:2300px) and (min-height:1400px){#depudexPanel .dex-console{zoom:1.3}body:has(#depudexPanel:not([hidden])) .audio-dock{zoom:1.3;bottom:calc(((100dvh - min(1040px,96dvh) * 1.3) / 2 + 17px) / 1.3);right:calc(((100vw - min(1460px,98vw) * 1.3) / 2 + 23px) / 1.3)}}
@media(min-width:3200px) and (min-height:2000px){#depudexPanel .dex-console{zoom:1.9}body:has(#depudexPanel:not([hidden])) .audio-dock{zoom:1.9;bottom:calc(((100dvh - min(1040px,96dvh) * 1.9) / 2 + 25px) / 1.9);right:calc(((100vw - min(1460px,98vw) * 1.9) / 2 + 34px) / 1.9)}}

/* Scan du quiz : la tablette et la carte se partagent l'arène (placées en JS par captureLayout),
   à l'échelle --dev-scale, sans recouvrir réponses, jokers ni bouton suivant. Le titre de l'arène
   s'efface le temps du scan, la carte affiche le nom. */
.dex-capture-scene .capture-device{transform-origin:50% 0;transform:translateX(-50%) translateY(40px) scale(calc(var(--dev-scale,1) * .7))}
.dex-capture-scene.device-open .capture-device{transform:translateX(-50%) scale(var(--dev-scale,1))}
body.capture-scene-active .arena .headline{visibility:hidden}
/* Écran trop bas pour voir l'arène (téléphone couché) : scène en surimpression avec son propre bouton suivant. */
.dex-capture-scene.capture-overlay{background:#071b2be6;pointer-events:auto}
.capture-overlay-next{position:absolute;right:max(14px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));z-index:9;pointer-events:auto;min-height:44px;padding:9px 18px;border:2px solid #153451;border-radius:8px;background:#ffe138;color:#153451;font:900 16px 'Barlow Condensed',Impact,sans-serif;box-shadow:3px 4px 0 #153451;cursor:pointer}
.capture-overlay-next:disabled{opacity:.5}
/* Fiche de carte : sur grand écran, la carte et ses commandes grandissent au lieu de rester à 405 px. */
@media(min-width:1700px) and (min-height:1000px){.card-inspector>.inspect-toolbar,.card-inspector>.inspect-stage,.card-inspector>.inspect-buttons,.card-inspector>p{zoom:1.25}}
@media(min-width:2300px) and (min-height:1350px){.card-inspector>.inspect-toolbar,.card-inspector>.inspect-stage,.card-inspector>.inspect-buttons,.card-inspector>p{zoom:1.6}}
@media(min-width:3200px) and (min-height:1900px){.card-inspector>.inspect-toolbar,.card-inspector>.inspect-stage,.card-inspector>.inspect-buttons,.card-inspector>p{zoom:2.2}}
/* Fiche de carte sur téléphone couché : carte à gauche (réduite sans couper son contenu), commandes à droite. */
@media(max-height:520px) and (orientation:landscape){
.card-inspector{display:grid;grid-template-columns:auto minmax(0,250px);grid-template-rows:auto 1fr;column-gap:24px;row-gap:6px;align-content:center;justify-content:center;align-items:center;padding:8px 14px}
.card-inspector>.inspect-toolbar{grid-column:1/-1;width:100%}
.card-inspector>.inspect-stage{grid-column:1;grid-row:2;width:270px;max-height:none}
.card-inspector>.inspect-buttons{grid-column:2;grid-row:2;flex-direction:column;align-self:center;margin-bottom:60px}
.card-inspector>p{grid-column:2;grid-row:2;align-self:start;margin-top:10px}
.card-inspector>.inspect-actions{grid-column:2;grid-row:2;align-self:end;margin-bottom:64px}
}
@media(max-height:520px) and (orientation:landscape) and (max-height:420px){.card-inspector>.inspect-stage{zoom:.88}}
@media(max-height:520px) and (orientation:landscape) and (max-height:380px){.card-inspector>.inspect-stage{zoom:.78}}
@media(max-height:520px) and (orientation:landscape) and (max-height:340px){.card-inspector>.inspect-stage{zoom:.66}}
/* Téléphone portrait : la fiche laisse la place au dock audio en bas. */
@media(max-width:600px) and (orientation:portrait){.card-inspector{padding-bottom:66px}}
@media(max-width:600px) and (orientation:portrait) and (max-height:700px){.card-inspector>.inspect-stage{width:268px;zoom:.8}}
@media(max-height:420px) and (min-width:601px){#depudexPanel .dex-top p{display:none}#depudexPanel .dex-top h2{width:min(150px,100%)}#depudexPanel .dex-top>.dex-republic-seal svg{width:34px}#depudexPanel .dex-top{padding-bottom:4px}}
/* Pendant le scan, l'étiquette de manche et les outils de l'arène s'effacent aussi (la carte occupe leur place) ;
   la surimpression est assez opaque pour ne pas laisser deviner le bouton suivant de la page. */
body.capture-card-shown .arena #arenaProgress,body.capture-card-shown .arena .quiz-tools{visibility:hidden}
.dex-capture-scene.capture-overlay{background:#071b2bfa}
/* Noms des cases : coupure entre les mots ou au trait d'union, jamais au milieu d'un mot. */
body .choice>span:not(.letter){overflow-wrap:normal;word-break:normal;min-width:0}
/* Écran quasi carré peu haut (fenêtre ou pliable avec barres du navigateur) : en-tête aminci. */
@media(min-width:701px) and (max-width:999px) and (min-aspect-ratio:4/5) and (max-aspect-ratio:1149/1000) and (max-height:720px){
body[data-stage="game"]>header{height:54px}
body[data-stage="game"] .audio-dock{top:7px}
body[data-stage="game"] main{margin-top:10px}
}
/* Déménageurs : la case emportée sort de l'écran sans élargir la page (sinon le navigateur mobile dézoome). */
html.joker-carrying,body.joker-carrying{overflow-x:clip}
/* Vote de censure : pancarte POUR / CONTRE sur la poitrine de chaque mini député (sans dépasser de sa silhouette), pour vérifier le décompte d'un coup d'œil. */
.joker-vote-chip{position:absolute;left:50%;top:116px;transform:translateX(-50%);z-index:3;padding:2px 7px 1px;border:3px solid #173451;border-radius:6px;font:900 20px/1 'Barlow Condensed',Impact,sans-serif;letter-spacing:1px;white-space:nowrap;box-shadow:3px 3px 0 #173451;animation:joker-chip-in .25s cubic-bezier(.2,1.5,.4,1) backwards;transition:opacity .3s}
.joker-vote-chip.vote-pour{background:#e90040;color:#fff7d8}
.joker-vote-chip.vote-contre{background:#fff7d8;color:#173451}
.joker-vote-chip.lost{opacity:.35}
@keyframes joker-chip-in{0%{opacity:0;transform:translateX(-50%) scale(.3)}100%{opacity:1;transform:translateX(-50%)}}
.joker-vote-host .party-back .joker-vote-chip{top:-32px}
.joker-vote-tally.compact{padding:3px 8px;gap:1px}
.joker-vote-tally.compact b{font-size:10px}
.joker-vote-tally.compact span{font-size:15px}
.joker-vote-tally.compact div{gap:8px}
.joker-vote-tally.compact.vote-adopted b,.joker-vote-tally.compact.vote-rejected b{font-size:12px;padding:1px 5px}
/* Mini-députés des jokers : gabarit du générique, tête calée sur le cou quel que soit l'écran */
body .party-deputy.joker-puppet{width:112px;height:176px}
body .party-deputy.joker-puppet .puppet-canvas{left:-56px;width:224px;height:176px}
body .party-deputy.joker-puppet>img{top:-19px;left:-4px;width:120px;height:120px;object-fit:contain;clip-path:none}
.cheer-squad.cheer-front{position:fixed;z-index:116}
/* Présidente : visage animé (synchro labiale) à la place du portrait fixe */
body .party-deputy.joker-president>canvas.joker-face{position:absolute;top:-19px;left:-4px;width:120px;height:120px;z-index:2;pointer-events:none;image-rendering:pixelated}
body .party-deputy.joker-president.has-face>img{visibility:hidden}
.joker-president.talking>canvas.joker-face{animation:joker-talk .2s ease-in-out infinite alternate}
/* Vue d'ensemble : la mini-carte, redondante, s'efface pour ne pas recouvrir l'hémicycle. */
.hemicycle-minimap{transition:opacity .25s}.hemicycle-overview .hemicycle-minimap{opacity:0}

/* Carrousel du HP : recherche par nom et raccourcis de groupe (logos), compacts sur tous les formats. */
.hemicycle-carousel-tools{display:flex;flex-direction:column;gap:6px;min-width:0}
.hemicycle-carousel-tools input{width:100%;min-width:0;box-sizing:border-box;height:32px;border:2px solid #294c3d;border-radius:5px;background:#eef3d6;color:#294c3d;font:700 12px 'Barlow',sans-serif;padding:0 8px}
.hemicycle-carousel-tools input.is-miss{border-color:#b33a3a}
.hemicycle-group-jumps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
.hemicycle-carousel .hemicycle-group-jump{display:flex;align-items:center;justify-content:center;height:30px;min-width:0;padding:2px;border:2px solid var(--group-color,#294c3d);border-radius:5px;background:#eef3d6;cursor:pointer}
.hemicycle-group-jump img{max-width:100%;max-height:22px;object-fit:contain}
.hemicycle-group-jump span{font:800 10px monospace;color:#294c3d}
.hemicycle-carousel .hemicycle-group-jump[aria-pressed="true"]{background:#ffe397;box-shadow:0 0 0 2px #173451}
@media(max-width:700px){.dex-console>.hemicycle-3d-panel .hemicycle-workspace{grid-template-rows:minmax(150px,1fr) auto}
.hemicycle-workspace .hemicycle-carousel{grid-template-rows:auto 116px}
.hemicycle-carousel-tools{grid-column:1/-1;grid-row:1;flex-direction:row;align-items:center}
.hemicycle-carousel-tools input{flex:0 0 48%;height:30px}
.hemicycle-group-jumps{display:flex;flex:1;overflow-x:auto;scrollbar-width:none;gap:4px}
.hemicycle-carousel .hemicycle-group-jump{flex:0 0 38px;height:30px}
.hemicycle-carousel-nav>button:first-child,.hemicycle-carousel-nav>button:last-child,.hemicycle-carousel-track{grid-row:2}}
@media(min-width:701px){.dex-console>.hemicycle-3d-panel .hemicycle-workspace{grid-template-rows:minmax(0,1fr)}}
@media(max-height:520px){.hemicycle-carousel-heading,.hemicycle-carousel>small{display:none}
.hemicycle-group-jumps{display:flex;overflow-x:auto;scrollbar-width:none}
.hemicycle-carousel .hemicycle-group-jump{flex:0 0 36px;height:28px}
.hemicycle-carousel-tools input{height:28px}}
@media(max-width:700px),(max-height:520px){.hemicycle-group-jumps{-webkit-mask-image:linear-gradient(90deg,#000 85%,transparent);mask-image:linear-gradient(90deg,#000 85%,transparent);padding-right:14px}}
@media(min-width:601px){body #result.end-party .party-deputy>img{top:-24px;left:-5px;width:150px;height:150px}}
/* Hardcore : Suspension de séance, quatre noms à la place du titre de manche (indices en dessous) ; les déménageurs en emportent deux */
.hardcore-fifty{display:flex;flex-direction:column;align-items:stretch;gap:clamp(4px,1.1cqw,10px);margin-bottom:clamp(4px,1.2cqw,10px)}
.arena.hardcore-fifty-on #roundTitle>span,.arena.hardcore-fifty-on #roundDepute{display:none}
.arena.hardcore-fifty-on #tagline,.arena.hardcore-fifty-on .cheer-squad{opacity:0}
.hardcore-plate{min-width:0;padding:clamp(3px,1cqw,10px) clamp(6px,1.6cqw,14px);background:#fff7d8;color:#173451;border:3px solid #173451;border-radius:8px;box-shadow:3px 3px 0 #173451;font:800 clamp(11px,2.5cqw,22px)/1.1 'Barlow Condensed',Barlow,sans-serif;text-align:left;overflow-wrap:anywhere;cursor:pointer;animation:joker-chip-in .25s cubic-bezier(.2,1.4,.4,1) backwards}
.hardcore-plate:nth-child(2){animation-delay:.05s}.hardcore-plate:nth-child(3){animation-delay:.1s}.hardcore-plate:nth-child(4){animation-delay:.15s}
.hardcore-plate:hover:not(:disabled),.hardcore-plate:focus-visible{background:#ffe066}
.hardcore-plate:disabled{cursor:default}
.hardcore-plate.joker-carried{position:relative;z-index:270}
.hardcore-plate.joker-pushed-out{visibility:hidden}
/* Score : largeur réservée pour quatre chiffres, le titre « Alors, vous l'avez ? » ne change pas de ligne quand le score grandit */
.prompt .score #score{display:inline-block;min-width:5ch;text-align:center;font-variant-numeric:tabular-nums}
/* ── Mode Twitch (bêta) : réglages, bandeau du chat, jauges de vote, votes de jokers, classement ── */
.twitch-row{display:flex;gap:8px;min-width:0}
.twitch-row input{flex:1 1 auto;min-width:0;font:inherit;padding:8px 10px;border:2px solid #153451;border-radius:8px;background:#fff}
.twitch-row button{flex:0 0 auto}
.twitch-status{font-weight:700;color:#4b2c86;overflow-wrap:anywhere}
.twitch-status[data-state="error"]{color:#b02546}
.twitch-lobby kbd,.twitch-line kbd,.twitch-vote kbd{font:800 .92em/1 'Barlow',Arial,sans-serif;background:#6441a5;color:#fff;border-radius:4px;padding:2px 5px;white-space:nowrap}
.twitch-line{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-height:2.9em;margin:10px 0 0;padding:6px 10px;border:2px solid #6441a5;border-radius:9px;background:#f6f1ff;color:#2d1a52;font-size:13px;line-height:1.35;box-sizing:border-box}
.twitch-line[hidden]{display:none}
.twitch-line-text{flex:1 1 0;min-width:0;height:2.7em;align-content:center;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.twitch-line-count{flex:0 0 auto;max-width:45%;font-weight:800;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.twitch-dot{flex:0 0 auto;width:9px;height:9px;border-radius:50%;background:#b8b2c4}
.twitch-line[data-state="live"] .twitch-dot{background:#e91916;box-shadow:0 0 0 3px #e9191633}
.twitch-line[data-state="error"] .twitch-dot{background:#b02546}
.chat-gauge{display:none}
body.twitch-on[data-stage="game"] main>.controls .choice{position:relative;padding-bottom:22px}
body.twitch-on .choice .chat-gauge{position:absolute;left:10px;right:10px;bottom:5px;height:14px;display:flex;align-items:center;gap:6px;pointer-events:none}
.chat-gauge i{flex:1 1 auto;height:10px;border-radius:6px;background:#e4dcf3;overflow:hidden;position:relative;border:2px solid #fff;box-shadow:0 0 0 1.5px #153451}
.chat-gauge i::after{content:"";position:absolute;inset:0 auto 0 0;width:calc(var(--chat-share,0)*100%);background:#6441a5;border-radius:4px;transition:width .3s}

.chat-gauge b{flex:0 0 3.4em;font:800 13px/1 'Barlow',Arial,sans-serif;color:#4b2c86;text-align:right}
.twitch-vote{position:absolute;inset:0;z-index:40;display:grid;place-items:center;padding:8px;background:#153451b3;box-sizing:border-box}
.twitch-vote.fixed{position:fixed;z-index:1000;padding:16px}
.twitch-vote-card{width:min(460px,100%);max-height:100%;overflow:auto;box-sizing:border-box;display:grid;gap:clamp(4px,1.2vh,10px);padding:clamp(10px,2vw,18px);border:3px solid #153451;border-radius:12px;background:#fffaf0;box-shadow:4px 5px 0 #153451;color:#153451;text-align:center}
.twitch-vote-eyebrow{font:800 11px/1 'Barlow',Arial,sans-serif;letter-spacing:.08em;color:#6441a5}
.twitch-vote-title{font:800 clamp(16px,2.2vw,24px)/1.1 'Barlow Condensed',Impact,sans-serif;text-transform:uppercase}
.twitch-vote-help{margin:0;font-size:clamp(12px,1.3vw,15px);line-height:1.35}
.twitch-vote-bars{display:grid;gap:6px}
.twitch-bar{display:grid;grid-template-columns:minmax(0,auto) 1fr auto;align-items:center;gap:8px;font-size:13px;font-weight:800;text-align:left}
.twitch-bar i{height:12px;border-radius:6px;background:#e4dcf3;position:relative;overflow:hidden}
.twitch-bar i::after{content:"";position:absolute;inset:0 auto 0 0;width:calc(var(--chat-share,0)*100%);background:#439033;border-radius:6px;transition:width .3s}
.twitch-bar.no i::after{background:#b02546}
.twitch-bar b{min-width:5.5em;text-align:right;white-space:nowrap}
.twitch-vote-foot{font-size:12px;font-weight:700}
.twitch-vote.granted .twitch-vote-foot{color:#2c6d22}
.twitch-vote.refused .twitch-vote-foot{color:#b02546}

.twitch-row button{padding:8px 12px;border:2px solid #153451;border-radius:8px;background:#6441a5;color:#fff;font-weight:800;box-shadow:2px 3px 0 #153451;cursor:pointer}
body.twitch-on .twitch-row button{background:#fffaf0;color:#153451}
.twitch-lobby-open small{font-size:.7em;text-transform:uppercase;letter-spacing:.06em;background:#6441a5;color:#fff;border-radius:4px;padding:1px 5px;margin-left:4px;vertical-align:middle}
.twitch-lobby{width:min(980px,100%);box-sizing:border-box;padding:0 4px}
.twitch-lobby h1{margin-bottom:8px}
.twitch-lobby-lead{margin:0 auto 16px;max-width:680px;color:#fff;font-size:clamp(13px,1.4vw,16px);line-height:1.4}
.twitch-lobby-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:14px;margin:0 0 18px;text-align:left}
.twitch-lobby-panel{min-width:0;display:grid;gap:10px;align-content:start;padding:14px 16px;border:3px solid #153451;border-radius:12px;background:#fffaf0;color:#153451;box-shadow:4px 5px 0 #153451}
.twitch-lobby-panel>label{font-weight:800}
.twitch-lobby-panel p{margin:0;font-size:13px;line-height:1.5}
.twitch-check{display:flex;align-items:center;gap:8px;font-weight:700;font-size:14px}
.twitch-lobby-players strong{font-size:15px}
.twitch-lobby-players ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px;max-height:min(30vh,220px);overflow:auto;align-content:flex-start}
.twitch-lobby-players li{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:3px 9px;border-radius:999px;background:#6441a5;color:#fff;font-weight:700;font-size:13px;animation:twitchJoin .35s ease-out}
.twitch-lobby-players li.more{background:#153451}
.twitch-empty{color:#6b5a8a;font-style:italic}
.twitch-empty[hidden]{display:none}
#twitchLaunch:disabled{opacity:.55;cursor:not-allowed;transform:none}
@keyframes twitchJoin{from{transform:scale(.6);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.twitch-lobby-players li{animation:none}}
@media (max-width:720px){.twitch-lobby-grid{grid-template-columns:minmax(0,1fr)}}
.twitch-line small{font-size:.9em;opacity:.85}
body[data-stage="setup"] #startup{padding-bottom:84px}
.twitch-line-board{flex:1 0 100%;display:flex;flex-wrap:wrap;gap:4px 12px;align-items:center;align-content:flex-start;min-width:0;height:1.5em;overflow:hidden;white-space:nowrap;border-top:1px solid #d9cdf0;padding-top:4px;font-size:12px}
.twitch-line-board b{flex:0 0 auto;line-height:1.5em;text-transform:uppercase;letter-spacing:.05em;font-size:10px;color:#6441a5}
.twitch-line-board span{flex:0 0 auto;max-width:11em;overflow:hidden;text-overflow:ellipsis;font-weight:700}
.twitch-line-board .rank-1{color:#a36a00}
.joker-vote-tally .vote-live{display:block;margin-top:4px;font:800 12px/1.2 'Barlow',Arial,sans-serif;color:#6441a5;white-space:nowrap}
.joker-vote-tally.compact .vote-live{font-size:10px}
.twitch-timers{min-width:0;margin:0;padding:8px 10px 10px;border:2px solid #d9cdf0;border-radius:9px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px}
.twitch-timers legend{padding:0 4px;font-weight:800;font-size:13px;color:#4b2c86}
.twitch-timers label{min-width:0;display:grid;gap:3px;font-size:12px;font-weight:700}
.twitch-timers select{min-width:0;width:100%;font:inherit;font-weight:700;padding:5px 6px;border:2px solid #153451;border-radius:7px;background:#fff;color:#153451}
.twitch-timers .twitch-help{grid-column:1/-1}
@media (max-width:380px){.twitch-timers{grid-template-columns:minmax(0,1fr)}}
.twitch-lobby-players li{display:inline-flex;align-items:center;gap:6px;padding-left:3px}
.twitch-lobby-players li>span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.twitch-lobby-players li img,.twitch-initial{flex:0 0 22px;width:22px;height:22px;border-radius:50%;object-fit:cover;background:#fff;border:2px solid #fff;box-sizing:border-box}
.twitch-initial{display:grid;place-items:center;font:900 11px/1 'Barlow',Arial,sans-serif;font-style:normal;color:#fff;text-shadow:0 1px 1px #0006}
/* Fin de partie Twitch : duel, places 4-15, podium */
#result.end-party.twitch-podium{overflow-y:auto;overscroll-behavior:contain}
#result.twitch-podium .end-crowd{display:none}
.twitch-board{margin:8px auto 12px;max-width:640px;display:grid;gap:8px;color:#fff}
.twitch-board[hidden]{display:none}
.twitch-duel{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px}
.duel-side{display:grid;gap:2px;padding:8px 10px;border:3px solid #153451;border-radius:10px;background:#fffaf0;color:#153451;box-shadow:3px 4px 0 #153451}
.duel-side small{font:800 11px/1 'Barlow',Arial,sans-serif;letter-spacing:.12em;color:#6441a5}
.duel-side b{font:900 clamp(22px,4vw,34px)/1 'Barlow Condensed',Impact,sans-serif}
.duel-side span{font-size:11px;font-weight:700}
.duel-side.win{background:#ffe138}
.duel-vs{font:900 clamp(20px,3.5vw,30px)/1 'Barlow Condensed',Impact,sans-serif;color:#ffe138;text-shadow:2px 2px 0 #153451}
.duel-caption{margin:0!important;font-size:13px;font-weight:700}
.twitch-rest{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,190px),1fr));gap:6px;text-align:left}
.twitch-rest li{display:flex;align-items:center;gap:6px;min-width:0;padding:2px 8px 2px 3px;border:2px solid #153451;border-radius:999px;background:#fffaf0;color:#153451;font-size:13px}
.twitch-rest li b{flex:0 0 auto;min-width:1.8em;text-align:right;font-weight:900}
.twitch-rest li span{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:800}
.twitch-rest li small{flex:0 0 auto;font-weight:800;color:#6441a5}
.rest-avatar{flex:0 0 24px;width:24px;height:24px;border-radius:50%;object-fit:cover;border:2px solid #fff;box-sizing:border-box}
.twitch-podium-stage{position:relative;z-index:1;height:clamp(220px,36vh,340px);margin:6px auto 4px;max-width:660px;display:grid;grid-template-columns:repeat(3,minmax(0,min(210px,31vw)));justify-content:center;align-items:end;border-bottom:10px solid #153451}
.podium-col{position:relative;height:100%;display:flex;flex-direction:column;justify-content:flex-end;min-width:0}
.podium-step{position:relative;z-index:3;display:grid;justify-items:center;align-content:start;gap:1px;padding:6px 6px 0;min-width:0;border:3px solid #153451;border-bottom:0;color:#153451;box-shadow:inset 0 6px 0 #ffffff66}
.podium-step b{font:900 clamp(22px,4vh,36px)/1 'Barlow Condensed',Impact,sans-serif}
.podium-step span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:900;font-size:clamp(12px,1.6vw,16px)}
.podium-step small{font-weight:800;font-size:12px}
.place-1 .podium-step{height:clamp(96px,17vh,140px);background:#ffd23a}
.place-2 .podium-step{height:clamp(78px,13vh,110px);background:#dfe6ef}
.place-3 .podium-step{height:clamp(64px,10vh,90px);background:#e9a46a}
.twitch-podium-stage .party-deputy.twitch-puppet{z-index:2}
body #result .party-deputy.twitch-puppet>.twitch-avatar-head{position:absolute;top:8px;left:23px;width:66px;height:66px;border-radius:50%;object-fit:cover;border:4px solid #fff;box-sizing:border-box;z-index:3;box-shadow:0 2px 0 #153451;image-rendering:auto}
i.twitch-avatar-head{display:grid;place-items:center;font:900 30px/1 'Barlow',Arial,sans-serif;font-style:normal;color:#fff;text-shadow:0 2px 2px #0006}
#result.end-party.twitch-podium{padding-top:12px}
#result.end-party.twitch-podium .end-cheer{font-size:clamp(30px,5vw,64px)}
#result.end-party.twitch-podium h2{font-size:clamp(24px,3.4vw,40px);margin:2px 0}
#result.end-party.twitch-podium #resultText{margin:2px 0 6px;font-size:13px}
.podium-col:not(:has(.twitch-puppet)) .podium-step{opacity:.55;filter:saturate(.4)}
/* Capital de la manche : fond en direct dans la barre du chrono ; largeur réservée pour ne rien faire bouger */
.clock-meta .round-value{display:inline-block;min-width:9.4ch;text-align:center;font-size:13px;font-weight:800;letter-spacing:0;font-variant-numeric:tabular-nums;color:#ffe138;text-shadow:0 1px 3px #172039;white-space:nowrap}
.clock-meta .round-value.value-hit{animation:value-hit 1.5s ease-out}
.clock-meta .round-value.value-won{color:#7dffa8}
.clock-meta .round-value.value-lost{color:#fff;opacity:.75}
@keyframes value-hit{0%,100%{color:#ffe138;transform:none}12%{color:#ff4d63;transform:scale(1.35)}20%{transform:translateX(-4px) scale(1.3)}28%{transform:translateX(4px) scale(1.25)}36%{transform:translateX(-3px) scale(1.15)}44%{transform:none;color:#ff4d63}}
.joker-penalty{position:fixed;left:0;top:0;z-index:10050;pointer-events:none;padding:4px 12px;border-radius:999px;background:#e8112d;color:#fff;font:900 20px/1.1 system-ui,sans-serif;white-space:nowrap;box-shadow:0 0 0 3px #fff,0 6px 18px rgba(23,32,57,.45);font-variant-numeric:tabular-nums;will-change:transform,opacity}
@media(max-width:420px){.clock-meta .round-value{font-size:12px;min-width:9.4ch}.joker-penalty{font-size:17px}}
@media(prefers-reduced-motion:reduce){.clock-meta .round-value.value-hit{animation:none;color:#ff4d63}}
.twitch-podium-stage .podium-dance{animation:podiumHop .86s ease-in-out infinite}
.twitch-podium-stage .place-2 .podium-dance{animation-duration:1.72s;animation-delay:-.43s}
.twitch-podium-stage .place-3 .podium-dance{animation-duration:1.72s;animation-delay:-.86s}
@keyframes podiumHop{0%,100%{translate:0 0}45%{translate:0 -14px}60%{translate:0 -10px}}
@media (prefers-reduced-motion:reduce){.twitch-podium-stage .podium-dance{animation:none}}
.twitch-lobby-players{display:flex;flex-direction:column}
.twitch-lobby-players ul{flex:1 1 0;min-height:150px;max-height:none}
.twitch-lobby-players li{content-visibility:auto;contain-intrinsic-size:auto 26px}
.lobby-avatar{flex:0 0 22px;width:22px;height:22px;border-radius:50%;object-fit:cover;border:2px solid #fff;box-sizing:border-box}
i.lobby-avatar{display:grid;place-items:center;font:900 11px/1 'Barlow',Arial,sans-serif;font-style:normal;color:#fff;text-shadow:0 1px 1px #0006}
@media (max-width:720px){.twitch-lobby-players ul{flex:0 0 auto;max-height:min(50vh,360px)}}
.twitch-line-count{flex:0 0 7.6em!important;width:7.6em;max-width:none!important;font-variant-numeric:tabular-nums;text-align:right}
@media (max-width:420px){.twitch-line-count{flex-basis:6.4em!important;width:6.4em;font-size:12px}}
.twitch-line-board{display:block!important;height:auto!important;overflow:visible!important;white-space:normal!important}
.twitch-line-board>b{display:block;margin-bottom:3px}
.twitch-line-board ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(8.6em,1fr));gap:2px 10px}
.twitch-line-board li{display:flex;align-items:baseline;gap:4px;min-width:0;height:1.45em;font-size:12px;font-weight:700}
.twitch-line-board li i{flex:0 0 1.7em;font-style:normal;text-align:right;color:#6441a5;font-variant-numeric:tabular-nums}
.twitch-line-board li span{flex:1 1 auto;min-width:0;max-width:none!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.twitch-line-board li small{flex:0 0 auto;font-weight:800;color:#6441a5;font-variant-numeric:tabular-nums}
.twitch-line-board li.empty span{color:#b8b2c4}
.twitch-line-board li:nth-child(1) span{color:#a36a00}
.twitch-line-board ol{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(8,auto);grid-auto-flow:column;gap:1px 14px}
/* Podium Twitch : mini-députés en animations BVH, dessinés dans un canvas par-dessus les colonnes (les marches restent devant). */
.twitch-podium-stage>.podium-skin{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none}
/* Mode Twitch : identité du streamer (lobby, duel de fin). --streamer-color = couleur de son pseudo dans le chat, sinon violet Twitch. */
.twitch-streamer{display:flex;align-items:center;gap:10px;min-height:64px;box-sizing:border-box;margin:6px 0 4px;padding:6px 10px;border:2px solid var(--streamer-color,#6441a5);border-left-width:6px;border-radius:10px;background:#fff;color:#153451;min-width:0}
.twitch-streamer.empty{border-style:dashed;border-color:#6441a566;background:#ffffff80;color:#4b2c86}
.twitch-streamer>div{display:grid;gap:2px;min-width:0}
.twitch-streamer b{font:900 18px/1.1 'Barlow Condensed',Impact,sans-serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.twitch-streamer small{font-size:12px;font-weight:700;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.streamer-avatar{flex:0 0 38px;width:38px;height:38px;border-radius:50%;object-fit:cover;border:2px solid var(--streamer-color,#6441a5);box-sizing:border-box}
i.streamer-avatar{display:grid;place-items:center;font:900 18px/1 'Barlow',Arial,sans-serif;font-style:normal;color:#fff;text-shadow:0 1px 1px #0006}
.duel-streamer small{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;letter-spacing:.04em;color:var(--streamer-color,#6441a5)}
.duel-avatar{flex:0 0 22px;width:22px;height:22px;border-radius:50%;object-fit:cover;border:2px solid var(--streamer-color,#6441a5);box-sizing:border-box}
i.duel-avatar{display:grid;place-items:center;font:900 11px/1 'Barlow',Arial,sans-serif;font-style:normal;color:#fff;letter-spacing:0}
/* Lettres du nom en fin de chrono (mode à propositions) : cases sous la silhouette, au-dessus de la barre du chrono */
.name-letters{position:absolute;left:clamp(8px,2cqw,22px);bottom:clamp(8px,1.8cqw,20px);z-index:8;display:flex;flex-wrap:wrap;align-items:center;gap:clamp(2px,.5cqw,5px);max-width:calc(100% - 2*clamp(8px,2cqw,22px));padding:clamp(4px,.8cqw,8px) clamp(6px,1cqw,10px);background:#173451ee;border:2px solid #ffe138;border-radius:8px;box-shadow:2px 3px 0 #17345155;pointer-events:none;animation:letters-in .45s cubic-bezier(.2,.9,.3,1.3)}
.name-letters[hidden]{display:none}
.name-letters b{margin-right:clamp(3px,.6cqw,6px);font:900 clamp(9px,1.6cqw,14px)/1 'Barlow Condensed',Impact,sans-serif;letter-spacing:1px;color:#ffe138}
.name-letters i{display:grid;place-items:center;width:clamp(12px,3.1cqw,30px);height:clamp(16px,4cqw,38px);border-radius:3px;background:#fff8df;color:#173451;font:900 clamp(10px,2.6cqw,24px)/1 'Barlow Condensed',Impact,sans-serif;font-style:normal;box-shadow:inset 0 -2px 0 #17345133}
.name-letters i.on{background:#ffe138;animation:letter-flip .5s .2s both}
.name-letters .word{display:flex;gap:inherit;margin-right:clamp(3px,.8cqw,8px)}
.name-letters i.sep{width:auto;background:none;box-shadow:none;color:#ffe138}
@keyframes letters-in{from{opacity:0;transform:translateY(10px)}}
@keyframes letter-flip{from{transform:rotateX(90deg)}}
@media(prefers-reduced-motion:reduce){.name-letters,.name-letters i.on{animation:none}}
/* Petits formats : en toute fin de chrono, les lettres du nom prennent la place de l'encadré des indices s'ils se chevauchent */
/* Encadré des indices resserré sur les arènes basses (téléphones en paysage, 320 px) : il ne déborde plus sur la barre du chrono */
@media(max-height:440px) and (orientation:landscape),(max-width:340px){body .arena .headline .round-hints{margin-top:6px;min-height:0;padding:6px 8px;font-size:clamp(9px,2.2cqw,12px);line-height:1.35}body .arena .headline .round-hints::first-line{font-size:11px;letter-spacing:1px}}
/* Interviews YouTube au dos des cartes : bouton dans la fiche, lecteur 16:9 au-dessus de l'inspecteur, borné en largeur ET en hauteur ; marge basse pour le dock audio, qui reste au-dessus. */
.card-stats-sheet .stats-foot{margin-top:auto;display:flex;align-items:center;gap:8px;min-width:0}.card-stats-sheet .stats-foot .stats-source{margin-top:0;flex:1 1 auto;min-width:0}
.card-stats-sheet .stats-interview{flex:0 0 auto;display:grid;grid-template-columns:auto auto;align-items:center;column-gap:5px;padding:3px 8px;border:2px solid #173451;border-radius:6px;background:#d6283e;color:#fff;font:900 11px/1.05 Barlow,Arial,sans-serif;text-align:left;text-transform:uppercase;box-shadow:2px 2px 0 #173451;cursor:pointer}
.card-stats-sheet .stats-interview span{grid-row:1/3;font-size:12px}.card-stats-sheet .stats-interview:hover{background:#b81f33}.card-stats-sheet .stats-interview:focus-visible{outline:3px solid #ffe138;outline-offset:2px}
.interview-player{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(76px,calc(env(safe-area-inset-bottom) + 64px)) max(12px,env(safe-area-inset-left));box-sizing:border-box;background:#04101cdd}
.interview-player[hidden]{display:none}
.interview-box{--iv-w:min(960px,100%,calc((100svh - 320px) * 16 / 9));width:max(260px,var(--iv-w));max-width:100%;max-height:100%;display:flex;flex-direction:column;gap:8px;min-height:0;overflow:auto;padding:10px;box-sizing:border-box;border:3px solid #173451;border-radius:12px;background:linear-gradient(130deg,#fff4b8,#ffe138);box-shadow:5px 7px 0 #061422;color:#173451}
.interview-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.interview-head>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.interview-head span{font:800 9px Barlow,Arial,sans-serif;letter-spacing:1.5px}.interview-head strong{font:900 20px/1.05 'Barlow Condensed',Impact,sans-serif;text-transform:uppercase;overflow-wrap:anywhere}.interview-head small{font:600 11px/1.3 Barlow,Arial,sans-serif;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.interview-head button{flex:0 0 auto;width:36px;height:36px;border:2px solid #173451;border-radius:7px;background:#fff;color:#173451;font-size:20px;font-weight:800;box-shadow:2px 3px 0 #173451;cursor:pointer}
.interview-frame{flex:0 0 auto;width:100%;aspect-ratio:16/9;background:#000;border:2px solid #173451;border-radius:6px;overflow:hidden}.interview-frame iframe{display:block;width:100%;height:100%;border:0}
.interview-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:6px;max-height:min(168px,30svh);overflow:auto;flex:0 0 auto;padding:1px 2px 2px 1px}.interview-list[hidden]{display:none}
.interview-list-title{grid-column:1/-1;margin:0;font:900 11px/1.2 Barlow,Arial,sans-serif;letter-spacing:.5px;text-transform:uppercase}
.interview-list button{display:grid;grid-template-columns:76px minmax(0,1fr);align-items:center;gap:8px;min-width:0;padding:4px;border:2px solid #173451;border-radius:6px;background:#fffbe6;color:#173451;text-align:left;cursor:pointer}
.interview-list button img{width:76px;height:43px;object-fit:cover;border-radius:3px;background:#173451}
.interview-list button span{display:flex;flex-direction:column;gap:2px;min-width:0}.interview-list button b{font:700 11px/1.25 Barlow,Arial,sans-serif;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.interview-list button small{font:800 10px/1.1 Barlow,Arial,sans-serif;color:#41566e}
.interview-list button:hover{background:#fff3b0}.interview-list button[aria-pressed="true"]{background:#173451;color:#ffe138}.interview-list button[aria-pressed="true"] small{color:#ffe138}
.card-stats-sheet .stats-interview b{font:inherit}.card-stats-sheet .stats-interview small{font:700 9px/1.05 Barlow,Arial,sans-serif;white-space:nowrap;text-transform:none;letter-spacing:0;opacity:.9}
.interview-foot{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px}.interview-credit{margin:0;font:600 11px/1.35 Barlow,Arial,sans-serif}.interview-credit a{color:#173451;font-weight:900;text-underline-offset:3px}
.interview-youtube{margin-left:auto;font:700 11px Barlow,Arial,sans-serif;color:#173451;text-underline-offset:3px}
/* Paysage très bas (téléphone couché) : vidéo à gauche, titre, liste et crédit dans une colonne à droite. */
@media(max-height:500px) and (min-width:560px){.interview-player{padding-bottom:max(64px,calc(env(safe-area-inset-bottom) + 56px))}.interview-box{display:grid;grid-template-columns:min(calc((100svh - 140px) * 16 / 9),calc(100vw - 250px)) minmax(150px,1fr);grid-template-rows:auto minmax(0,1fr) auto;width:auto;max-width:100%;padding:7px;gap:6px 10px;overflow:hidden}.interview-stage{grid-column:1;grid-row:1/4;align-self:center}.interview-head,.interview-list,.interview-foot{grid-column:2}.interview-head span{display:none}.interview-head strong{font-size:16px}.interview-head button{width:30px;height:30px;font-size:16px}.interview-list{grid-template-columns:1fr;align-content:start;max-height:none;overflow:auto;min-height:0}.interview-foot{flex-direction:column;align-items:flex-start}.interview-youtube{margin-left:0}}
@media(max-height:500px) and (max-width:559px){.interview-box{padding:7px;gap:5px}.interview-head span,.interview-head small{display:none}}
/* Histogrammes du verso : barres franches (or + liseré marine) qui se remplissent à chaque retournement de la carte, en cascade.
   Spécificité volontairement supérieure à « .inspect-easter-back ::before » qui coupe les animations du verso. */
.card-stats-sheet .stats-row{background:#1734510d;isolation:isolate}.card-stats-sheet .stats-row>*{position:relative;z-index:1}
.card-stats-sheet .stats-row::before{content:'';position:absolute;left:0;top:0;bottom:0;width:var(--share);min-width:3px;border-radius:4px;background:linear-gradient(90deg,#ffd84a,#f5a524);box-shadow:inset -2px 0 0 #173451;transform-origin:left center;z-index:0}
.inspect-object.show-easter-back .inspect-easter-back .card-stats-sheet .stats-row::before{animation:stats-bar-grow .75s cubic-bezier(.2,.8,.25,1) calc(.3s + var(--i,0) * 70ms) both!important}
@keyframes stats-bar-grow{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media(prefers-reduced-motion:reduce){.inspect-object.show-easter-back .inspect-easter-back .card-stats-sheet .stats-row::before{animation:none!important}}
.card-stats-sheet dd[data-count]{text-align:right;font-variant-numeric:tabular-nums}
/* Pastille ITW au recto (coin bas gauche du portrait) : signale une interview et l'ouvre directement. */
.inspect-portrait-foil .front-interview{position:absolute;left:6px;bottom:6px;z-index:5;display:flex;align-items:center;gap:4px;padding:3px 7px 3px 6px;border:2px solid #173451;border-radius:999px;background:#d6283e;color:#fff;font:900 11px/1 Barlow,Arial,sans-serif;letter-spacing:.5px;box-shadow:2px 2px 0 #173451;cursor:pointer}
.inspect-portrait-foil .front-interview span{font-size:9px}.inspect-portrait-foil .front-interview small{font:800 9px/1 Barlow,Arial,sans-serif;opacity:.9}
.inspect-portrait-foil .front-interview:hover{background:#b81f33}.inspect-portrait-foil .front-interview:focus-visible{outline:3px solid #ffe138;outline-offset:2px}
@media(max-height:500px){.inspect-portrait-foil .front-interview{left:4px;bottom:4px;padding:2px 5px;font-size:9px}}
.inspect-object:not(.show-easter-back) .inspect-easter-back{pointer-events:none}
.inspect-front .front-interview{pointer-events:auto}

/* Icône « interview disponible » au recto (capture, collection), en bas à gauche pour ne pas couvrir la rareté ; la fiche a sa pastille cliquable .front-interview */
.card-itw-badge{position:absolute;z-index:4;bottom:5px;left:5px;display:inline-flex;align-items:center;gap:3px;padding:2px 5px 2px 4px;border:2px solid #173451;border-radius:5px;background:#d6283e;color:#fff;font:900 10px/1 Barlow,Arial,sans-serif;letter-spacing:.04em;box-shadow:2px 2px 0 #173451;pointer-events:none}
.card-itw-badge i{font-style:normal;font-size:8px}
.collect-art .card-itw-badge{bottom:3px;left:3px;padding:1px 4px 1px 3px;border-width:1.5px;font-size:9px;box-shadow:1px 1px 0 #173451}
/* Lecteur avec plusieurs vidéos : liste en vignettes. Sur écran large, colonne à droite de la vidéo ; sinon sous la vidéo, en réservant sa hauteur. */
.interview-box.has-list{--iv-w:min(960px,100%,calc((100svh - 440px) * 16 / 9))}
@media(min-width:900px) and (min-height:501px){.interview-box.has-list{--iv-fw:min(720px,calc(100vw - 360px),calc((100svh - 290px) * 16 / 9));width:calc(var(--iv-fw) + 300px);display:grid;grid-template-columns:var(--iv-fw) minmax(0,1fr);grid-template-rows:auto auto auto;gap:8px 12px;overflow:hidden}.interview-box.has-list .interview-head,.interview-box.has-list .interview-foot{grid-column:1/-1}.interview-box.has-list .interview-stage{grid-column:1;grid-row:2}.interview-box.has-list .interview-list{grid-column:2;grid-row:2;grid-template-columns:1fr;align-content:start;max-height:none;height:0;min-height:100%}}
/* Avatar de la chaîne Hugo au Perchoir à côté de « ITW » (pastilles du recto et de la collection). */
.itw-avatar{width:16px;height:16px;flex:0 0 auto;border-radius:50%;border:1.5px solid #fff;object-fit:cover;margin:-2px 1px -2px -3px}
.collect-art .card-itw-badge .itw-avatar{width:12px;height:12px;border-width:1px;margin:-1px 0 -1px -2px}
@media(max-height:500px){.inspect-portrait-foil .front-interview .itw-avatar{width:13px;height:13px}}
/* Lecteur maison : scène (vidéo + barre), écran d'attente et contrôles aux couleurs du jeu ; la barre garde sa place même désactivée. */
.interview-stage{display:flex;flex-direction:column;gap:0;min-width:0;border:2px solid #173451;border-radius:6px;overflow:hidden;background:#173451;box-shadow:3px 4px 0 #173451}
.interview-stage .interview-frame{border:0;border-radius:0;position:relative}.interview-holder,.interview-frame iframe{display:block;width:100%;height:100%;border:0}
.interview-poster{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:repeating-conic-gradient(from 8deg,#173451 0 10deg,#1f4468 10deg 20deg);cursor:pointer;overflow:hidden}
.interview-poster-thumb{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:saturate(1.05) contrast(1.05)}
.interview-poster::after{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at center,transparent 35%,#081b2bb3)}
.interview-poster-play{position:absolute;z-index:1;left:50%;top:50%;width:clamp(54px,14%,84px);aspect-ratio:1;transform:translate(-50%,-50%);display:grid;place-items:center;border:3px solid #173451;border-radius:50%;background:#ffe138;box-shadow:4px 5px 0 #173451;transition:transform .15s}
.interview-poster-play svg{width:46%;fill:#173451;margin-left:8%}.interview-poster:hover .interview-poster-play,.interview-poster:focus-visible .interview-poster-play{transform:translate(-50%,-50%) scale(1.08)}
.interview-poster:focus-visible{outline:3px solid #ffe138;outline-offset:-5px}
.interview-poster-tag{position:absolute;z-index:1;left:8px;bottom:8px;display:flex;align-items:center;gap:6px;max-width:calc(100% - 16px);padding:4px 9px 4px 5px;border:2px solid #173451;border-radius:999px;background:#d6283e;color:#fff;font:900 11px/1.1 Barlow,Arial,sans-serif;letter-spacing:.3px;text-transform:uppercase;box-shadow:2px 2px 0 #173451;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.interview-controls{display:flex;align-items:center;gap:8px;min-height:38px;padding:5px 8px;box-sizing:border-box;background:#173451;color:#ffe138}
.interview-controls.is-native{visibility:hidden;min-height:0;height:0;padding:0}
.interview-controls button{flex:0 0 auto;display:grid;place-items:center;width:30px;height:28px;padding:0;border:2px solid #ffe138;border-radius:6px;background:#ffe138;color:#173451;cursor:pointer}
.interview-controls button svg{width:16px;height:16px;fill:currentColor}.interview-controls button:disabled{opacity:.35;cursor:default}
.interview-controls button:focus-visible,.interview-controls input:focus-visible{outline:2px solid #fff;outline-offset:2px}
.iv-ico-pause,.is-playing .iv-ico-play{display:none}.is-playing .iv-ico-pause{display:inline}.iv-ico-slash,.is-muted .iv-ico-waves{display:none}.is-muted .iv-ico-slash{display:inline}
.iv-time{flex:0 0 auto;min-width:9.5ch;font:800 11px/1 Barlow,Arial,sans-serif;font-variant-numeric:tabular-nums;color:#fff4c7;text-align:center}
.interview-controls input[type=range]{-webkit-appearance:none;appearance:none;height:8px;margin:0;border:1.5px solid #ffe138;border-radius:999px;background:linear-gradient(90deg,#ffe138 var(--iv-progress,0%),#0d2236 var(--iv-progress,0%));cursor:pointer}
.interview-controls input[type=range]:disabled{opacity:.35;cursor:default}
.iv-seek{flex:1 1 auto;min-width:60px}.iv-volume{flex:0 1 70px;min-width:40px;--iv-progress:100%}
.interview-controls input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;border:2px solid #173451;border-radius:50%;background:#d6283e;box-shadow:1px 1px 0 #0d2236}
.interview-controls input[type=range]::-moz-range-thumb{width:13px;height:13px;border:2px solid #173451;border-radius:50%;background:#d6283e}
.interview-stage:fullscreen{width:100vw;height:100vh;border:0;border-radius:0;background:#000}.interview-stage:fullscreen .interview-frame{flex:1 1 auto;aspect-ratio:auto;height:auto;min-height:0}
@media(max-width:420px){.iv-volume{display:none}.interview-controls{gap:6px;padding:5px 6px}}
@media(max-height:500px){.interview-controls{min-height:32px;padding:3px 6px}.interview-controls button{width:26px;height:24px}}
.inspect-front .inspect-portrait-foil .front-interview img.itw-avatar,.dex-collect-card .collect-art .card-itw-badge img.itw-avatar,.dex-discovery-card .card-itw-badge img.itw-avatar{all:unset;display:block;box-sizing:border-box;width:16px;height:16px;flex:0 0 auto;border-radius:50%;border:1.5px solid #fff;object-fit:cover;margin:-2px 1px -2px -3px}
.dex-collect-card .collect-art .card-itw-badge img.itw-avatar{width:12px;height:12px;border-width:1px;margin:-1px 0 -1px -2px}
/* Carte centrale du carrousel : pastille « Voir la carte », sans changer la taille de la carte. */
/* Carrousel du HP : chaque entrée reprend le recto de la carte (siège, portrait, nom, groupe, rareté) ; un clic ouvre la carte. */
.hemicycle-carousel .hemicycle-rail-card{position:relative;overflow:hidden;align-items:stretch;gap:3px;padding:6px;border:2px solid #173451;border-radius:7px!important;background:linear-gradient(135deg,#fff3b9,#ffe138);color:#173451;box-shadow:2px 3px 0 #173451;cursor:pointer;text-align:left}
.hemicycle-carousel .hemicycle-carousel-item.is-current>.hemicycle-rail-card{background:linear-gradient(135deg,#fff7cf,#ffe75a);box-shadow:0 0 0 2px #ffe138,3px 4px 0 #173451}
.hemicycle-rail-card .rail-number{font:900 8px/1 Barlow,Arial,sans-serif;letter-spacing:.6px;padding:1px 2px 0;white-space:nowrap}
.hemicycle-rail-card .rail-art{position:relative;display:block;height:98px;overflow:hidden;border:2px solid #173451;border-radius:5px;background:repeating-conic-gradient(from 5deg,#fff7d1 0 10deg,var(--card-color,#f5c34b) 10deg 20deg)}
.hemicycle-rail-card .rail-art>img{display:block;width:100%;height:118%;object-fit:contain;object-position:center bottom}
.hemicycle-carousel .hemicycle-rail-card>strong{font:800 11px/1.15 Barlow,Arial,sans-serif;color:#173451;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:2.3em}
.hemicycle-rail-card .rail-group{display:flex;align-items:center;gap:4px;min-width:0;border-top:1px solid #17345133;padding-top:3px;font:600 8px/1.2 Barlow,Arial,sans-serif}
.hemicycle-rail-card .rail-group>img{flex:0 0 auto;width:14px;height:14px;object-fit:contain}
.hemicycle-rail-card .rail-group>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hemicycle-rail-card .card-rarity-frame{border-width:3px}
.hemicycle-carousel .hemicycle-rail-card .card-rarity{right:4px;top:4px;padding:1px 3px;font-size:0;border-width:1px;gap:0}
.hemicycle-carousel .hemicycle-rail-card .card-rarity i{font-size:7px;letter-spacing:-1px}
.hemicycle-rail-card .card-itw-badge.rail-itw{left:3px;bottom:3px;padding:1px 4px 1px 3px;border-width:1.5px;font-size:9px;box-shadow:1px 1px 0 #173451;pointer-events:none}
.hemicycle-rail-card .card-itw-badge.rail-itw img.itw-avatar{width:12px;height:12px;border-width:1px;margin:-1px 0 -1px -2px}
.hemicycle-rail-card:focus-visible{outline:3px solid #d6283e;outline-offset:2px}
@media(max-width:700px){.hemicycle-carousel .hemicycle-rail-card{padding:3px;gap:1px;border-radius:5px!important}.hemicycle-rail-card .rail-number{font-size:6px;letter-spacing:.3px}.hemicycle-rail-card .rail-art{height:50px;border-width:1.5px;border-radius:3px}.hemicycle-carousel .hemicycle-rail-card>strong{font-size:8px;-webkit-line-clamp:1;min-height:0;white-space:nowrap;display:block}.hemicycle-rail-card .rail-group{font-size:6px;gap:2px;padding-top:1px}.hemicycle-rail-card .rail-group>img{width:9px;height:9px}.hemicycle-rail-card .card-rarity-frame{border-width:2px}.hemicycle-carousel .hemicycle-rail-card .card-rarity{right:2px;top:2px}.hemicycle-carousel .hemicycle-rail-card .card-rarity i{font-size:5px}.hemicycle-rail-card .card-itw-badge.rail-itw{left:2px;bottom:2px;padding:0 3px 0 2px;font-size:7px;border-width:1px;gap:2px}.hemicycle-rail-card .card-itw-badge.rail-itw i{font-size:5px}.hemicycle-rail-card .card-itw-badge.rail-itw img.itw-avatar{width:9px;height:9px}}
@media(max-height:520px) and (min-width:701px){.hemicycle-carousel .hemicycle-rail-card{padding:4px;gap:2px}.hemicycle-rail-card .rail-number{font-size:7px}.hemicycle-rail-card .rail-art{height:54px}.hemicycle-carousel .hemicycle-rail-card>strong{font-size:9px;-webkit-line-clamp:1;min-height:0;white-space:nowrap;display:block}.hemicycle-rail-card .rail-group{font-size:7px}.hemicycle-rail-card .rail-group>img{width:11px;height:11px}}
.hemicycle-carousel .hemicycle-rail-card>strong,.hemicycle-rail-card .rail-group{padding-left:3px;padding-right:3px}
/* Mini présentateur « Hugo au Perchoir » (assets/presenter.js) : calque fixe sans interaction, placé par le script dans une zone libre. */
.presenter{position:fixed;z-index:117;pointer-events:none;contain:strict}
.presenter{transition:opacity .3s ease,visibility .3s}.presenter.presenter-away{opacity:0;visibility:hidden}
.presenter canvas{display:block;width:100%;height:100%}
.presenter canvas{position:relative;z-index:1}
/* Porte du décor (jokers) : chambranle boisé, ouverture sombre et battant qui pivote vers l'intérieur. */
.presenter-door{position:absolute;z-index:0;box-sizing:border-box;border:solid #5a3416;border-width:5px 5px 0;border-radius:4px 4px 0 0;background:linear-gradient(#0b0b12,#1d1622 70%,#2a1d18);box-shadow:inset 0 6px 10px rgba(0,0,0,.7),0 0 0 2px #c9a24a;perspective:300px;opacity:0;transition:opacity .25s}
.presenter-door.shown{opacity:1}
.presenter-cam{position:absolute;z-index:0;box-sizing:border-box;border-radius:8px;overflow:hidden;background:#ece6da}
/* Webcam derrière la barre de temps et le décompte (demande utilisateur) : la barre passe au-dessus du calque du présentateur. */
body.presenter-cam-on .round-clock{position:relative;z-index:119}
.presenter-cam canvas{position:absolute;inset:0;width:100%;height:100%}
.presenter-cam-desk{position:absolute;z-index:2;background:linear-gradient(#5a5f69,#2a2d33 30%,#1c1e22);box-shadow:0 -2px 4px rgba(0,0,0,.35)}
.presenter-cam-live{position:absolute;z-index:3;padding:.15em .5em;border-radius:3px;background:#e0182d;color:#fff;font:800 9px/1.2 Barlow,Arial,sans-serif;letter-spacing:.06em}
.presenter-cam-live::before{content:'● '}
.presenter-door-leaf{position:absolute;inset:0;transform-origin:0 50%;background:linear-gradient(90deg,#7a4a22,#9a6230 45%,#6e4019);box-shadow:inset 0 0 0 3px #4a2a10,inset 0 0 0 6px #b07a3c;transition:transform .38s ease-in-out}
.presenter-door-leaf::before{content:'';position:absolute;inset:12% 16% 52%;border:2px solid #4a2a10;border-radius:2px}
.presenter-door-leaf::after{content:'';position:absolute;right:12%;top:52%;width:9%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 35% 35%,#fff3b0,#d8a830 55%,#7a5510)}
.presenter-door.open .presenter-door-leaf{transform:rotateY(-105deg)}
.presenter-bubble{position:fixed;z-index:118;box-sizing:border-box;padding:.45em .6em;overflow:hidden;background:#fffdf5;color:#173451;border:2px solid #173451;border-radius:12px;box-shadow:2px 2px 0 #d6a636;font:700 12px/1.2 Barlow,Arial,sans-serif;text-align:center;pointer-events:none;animation:presenter-pop .18s ease-out}
.presenter-bubble[hidden],.presenter[hidden]{display:none}
@keyframes presenter-pop{from{transform:scale(.85);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.presenter-bubble{animation:none}}
.presenter-settings{margin:18px 0 6px;padding-top:12px;border-top:1px solid currentColor;border-top-color:color-mix(in srgb,currentColor 25%,transparent)}.presenter-settings h3{margin:0 0 4px;font-size:13px;letter-spacing:.02em}.presenter-settings .audio-duck{margin:8px 0}.presenter-settings label:has(input:disabled){opacity:.5}
/* Question posée en arrivant sur le choix du mode : avec ou sans le mini Hugo (une fois par visite). */
.presenter-ask{position:fixed;inset:0;z-index:230;display:grid;place-items:center;padding:16px;background:#07162ccc}
.presenter-ask[hidden]{display:none}
.presenter-ask-card{box-sizing:border-box;width:min(420px,100%);max-height:calc(100dvh - 32px);overflow:auto;padding:20px 20px 18px;background:#fffdf5;color:#173451;border:3px solid #173451;border-radius:16px;box-shadow:5px 5px 0 #d6a636;text-align:center;font-family:Barlow,Arial,sans-serif}
.presenter-ask-card img{display:block;width:88px;height:88px;margin:0 auto 6px;object-fit:contain}
.presenter-ask-card h2{margin:0 0 8px;font-size:clamp(18px,5vw,22px);line-height:1.15}
.presenter-ask-card p{margin:0 0 16px;font-size:14px;line-height:1.4}
.presenter-ask-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.presenter-ask-actions button{flex:1 1 140px;min-height:44px;padding:8px 14px;border:2px solid #173451;border-radius:10px;font:800 15px/1.1 Barlow,Arial,sans-serif;cursor:pointer;box-shadow:3px 3px 0 #173451}
#presenterAskYes{background:#ffe138;color:#173451}#presenterAskNo{background:#fffdf5;color:#173451}
.presenter-ask-actions button:focus-visible{outline:3px solid #e90040;outline-offset:2px}
@media (max-height:420px){.presenter-ask-card img{width:56px;height:56px}.presenter-ask-card p{margin-bottom:10px}}
.presenter-bubble.has-link{pointer-events:auto}.presenter-bubble.can-flag{pointer-events:auto;cursor:pointer}.presenter-bubble a{color:#6a2fc2;font-weight:800;text-decoration:underline;overflow-wrap:anywhere}
.presenter-bubble{overflow:visible}.presenter-bubble::after{content:"";position:absolute;left:var(--tail,50%);bottom:-8px;width:12px;height:12px;margin-left:-6px;background:#fffdf5;border-right:2px solid #173451;border-bottom:2px solid #173451;transform:rotate(45deg)}
/* Écran de fin (#result.end-party, z 200) : le mini Hugo et sa bulle passent devant. */
body:has(#result.end-party:not([hidden])) .presenter{z-index:201}
body:has(#result.end-party:not([hidden])) .presenter-bubble{z-index:202}
/* Écran de choix du mode : options de partie et Mini Hugo réunies */
.setup-checks{display:flex;flex-direction:column;gap:8px}
.setup-checks .voice-option,.setup-presenter .voice-option{max-width:none;white-space:nowrap}
.setup-presenter{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;flex:1 1 100%;margin:-4px 0 0;padding:4px 12px 8px;border:2px solid #ffffff55;border-radius:8px}
#setupScreen .setup-options{margin-top:16px;margin-bottom:16px;row-gap:12px}
.setup-presenter legend{padding:0 6px;font-weight:800;letter-spacing:.5px}
.setup-presenter input:disabled+*,.setup-presenter label:has(input:disabled){opacity:.5}
/* Le dernier bouton du menu peut défiler au-dessus du dock audio fixe */
#setupScreen::after{content:"";display:block;height:64px}
/* L'écran d'accueil/choix ne doit jamais défiler latéralement (un focus le décalait de 70 px sur téléphone) : clip au lieu de hidden. */
#startup{overflow:clip}
/* Miniature affichée sous le lecteur le temps qu'il charge : la vidéo démarre au clic, au bon moment, sans écran intermédiaire. */
.interview-cover{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:brightness(.6)}.interview-frame .interview-holder,.interview-frame iframe{position:relative;z-index:1}
/* Titre et indices remontés juste sous les boutons du haut ; les indices s'empilent (aucun effacé) et défilent dans leur encadré,
   les lettres du nom arrivent juste en dessous. Le bloc s'arrête au-dessus de la barre du chrono. */
body .arena .headline{top:calc(44px + 3cqw);bottom:clamp(8px,1.6cqw,20px);transform:none;display:flex;flex-direction:column;align-items:stretch}
body .arena .headline>span,body .arena .headline>h1{flex:none}
body .arena .headline .round-hints{flex:0 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d51943 transparent;margin-top:clamp(6px,1.4cqw,18px)}
body .arena .headline .round-hints[hidden]{display:none}
body .arena .headline .name-letters{position:relative;left:auto;bottom:auto;flex:none;align-self:center;max-width:100%;margin-top:clamp(5px,1cqw,12px);justify-content:center}
body .arena .headline .name-letters i{width:clamp(8px,2.2cqw,28px);height:clamp(12px,2.9cqw,36px);font-size:clamp(8px,1.9cqw,22px)}
body .arena .headline .name-letters b{font-size:clamp(8px,1.4cqw,14px)}
body .arena .headline .name-letters .word{margin-right:clamp(2px,.6cqw,7px)}
body .arena .headline .round-hints:not([hidden]){min-height:3.6em}
@container (max-width:300px){body .arena .headline .name-letters{gap:1px;padding:3px 4px;margin-top:4px}body .arena .headline .name-letters b{display:none}body .arena .headline .name-letters i{width:7px;height:10px;font-size:7px;border-radius:2px}body .arena .headline .name-letters .word{margin-right:3px}}
/* Choix du mode : plus de puce ; le mode choisi est entouré d'un cadre de couleur (la puce de démo Hardcore ne la recouvre plus) */
.mode-card input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;z-index:2}
#setupScreen .mode-card:has(input:checked){outline:4px solid #fff;outline-offset:4px;box-shadow:5px 6px 0 #153451,0 0 22px 6px #ffe138aa}
#setupScreen .mode-card:not(:has(input:checked)){opacity:.82}
#setupScreen .mode-card:not(:has(input:checked)):hover{opacity:1}
#setupScreen .mode-card:has(input:focus-visible){outline:4px dashed #fff;outline-offset:4px}
#setupScreen .mode-card:has(input:checked)::after{content:'✓ CHOISI';position:absolute;top:-12px;right:14px;z-index:3;padding:3px 10px;border:2px solid #153451;border-radius:999px;background:#e90040;color:#fff;font:900 12px/1.2 'Barlow Condensed',Impact,sans-serif;letter-spacing:1px;box-shadow:2px 2px 0 #153451}
@media(prefers-reduced-motion:no-preference){#setupScreen .mode-card{transition:opacity .15s,box-shadow .2s,outline-color .2s}}
/* Boutons de l'arène : deux petits carrés jaunes, style des boutons Réglages : ⚙ paramètres de partie et haut-parleur pour réécouter l'annonce */
body .arena .quiz-tools{gap:clamp(4px,.8cqw,10px);transform:none}
body .arena .quiz-tools .quiz-icon{display:grid;place-items:center;width:clamp(26px,4.2cqw,46px);height:clamp(26px,4.2cqw,46px);padding:0;border:2px solid #153451;border-radius:8px;background:#ffe138;color:#153451;box-shadow:2px 3px 0 #153451;font:700 clamp(14px,2.3cqw,24px)/1 system-ui,sans-serif;transition:transform .12s,box-shadow .12s,background .12s}
body .arena .quiz-tools .quiz-icon>span{display:none}
body .arena .quiz-tools .quiz-icon svg{width:58%;height:58%}
body .arena .quiz-tools .quiz-icon:hover,body .arena .quiz-tools .quiz-icon:focus-visible{background:#fff09a;transform:translateY(-2px);box-shadow:2px 5px 0 #153451}
body .arena .quiz-tools .quiz-icon:active{transform:translate(2px,3px);box-shadow:0 0 0 #153451}
body .arena .quiz-tools .quiz-icon[aria-expanded="true"]{background:#fff09a}
body .arena .quiz-tools #listen::before{content:none}
/* Menu Réglages à onglets (ancien menu Audio) */
.settings-tabs{display:flex;gap:6px;margin:14px 0 16px;border-bottom:3px solid #153451}
.settings-tabs [role="tab"]{flex:1;padding:9px 6px 7px;border:3px solid #153451;border-bottom:0;border-radius:9px 9px 0 0;background:#e9e1cc;color:#153451;font:900 15px/1 'Barlow Condensed',Impact,sans-serif;letter-spacing:.5px;cursor:pointer;margin-bottom:-3px}
.settings-tabs [role="tab"][aria-selected="true"]{background:#ffe138;position:relative}
.settings-tabs [role="tab"]:focus-visible{outline:3px dashed #e90040;outline-offset:2px}
.settings-tab[hidden]{display:none}
.audio-settings-card .settings-tab.game-options{margin:0;border-top:0;padding:0}
.audio-settings-card .settings-tab.game-options .settings{margin:0}
.audio-settings-card .settings-tab .capture-option{flex:1 1 100%;display:flex;align-items:center;gap:8px}
.audio-settings-card .settings-tab #setupTimer{display:block;width:100%;margin-top:6px}
.audio-settings-card .presenter-settings{margin-top:0}
body[data-stage="setup"] #newGame,body[data-stage="setup"] #gameOptionsConfirm{display:none}
.audio-settings-card .settings-tab.game-options .settings label:not(.capture-option){flex:1 1 100%;display:flex;flex-direction:column;align-items:stretch;gap:5px;font-weight:700}
.audio-settings-card .settings-tab.game-options .settings select{width:100%;margin:0}
/* Écran du défi : espace net sous les cartes, boutons secondaires alignés sur une même ligne */
#setupScreen #playGame{margin-top:clamp(26px,4.5vh,40px)}
#setupScreen #openTwitchLobby,#setupScreen .menu-depudex,#setupScreen #replayIntro{display:inline-flex;align-items:center;justify-content:center;gap:6px;vertical-align:top;box-sizing:border-box;height:46px;min-width:0;margin:20px 7px 0;padding:0 18px;font-size:16px;background:#fff8e7;white-space:nowrap}
@media(max-width:700px){#setupScreen #openTwitchLobby,#setupScreen .menu-depudex,#setupScreen #replayIntro{height:42px;margin:12px 4px 0;padding:0 13px;font-size:14px}}
@media(max-width:360px){#setupScreen #openTwitchLobby,#setupScreen .menu-depudex,#setupScreen #replayIntro{font-size:13px;padding:0 10px}}
body .arena .quiz-tools #listen svg{width:76%;height:76%}
/* Écran du défi : « Jouer en solo » ou « Jouer avec mon chat Twitch », côte à côte (empilés sur écran étroit) */
#setupScreen .setup-play{display:flex;align-items:center;justify-content:center;gap:clamp(10px,2vw,18px);margin-top:clamp(26px,4.5vh,40px)}
#setupScreen .setup-play #playGame,#setupScreen .setup-play #openTwitchLobby{display:inline-flex;align-items:center;justify-content:center;gap:7px;box-sizing:border-box;flex:0 1 300px;min-width:0;height:62px;margin:0;padding:0 20px;font-size:21px;white-space:nowrap}
#setupScreen .setup-play #openTwitchLobby{background:#ffe138;color:#153451;border:3px solid #153451;border-radius:9px;box-shadow:4px 5px 0 #153451;text-decoration:none;font-family:"Barlow Condensed",Impact,Arial,sans-serif;font-weight:900}
#setupScreen .setup-play #openTwitchLobby:hover{background:#fff091}
#setupScreen .setup-or{flex:none;font:900 18px/1 'Barlow Condensed',Impact,sans-serif;color:#fff8e7;text-transform:uppercase;letter-spacing:1px}
@media(max-width:640px){#setupScreen .setup-play{flex-direction:column;gap:8px}#setupScreen .setup-play #playGame,#setupScreen .setup-play #openTwitchLobby{flex:none;width:min(100%,320px);height:54px;font-size:19px}}
@media(max-width:360px){#setupScreen .setup-play #playGame,#setupScreen .setup-play #openTwitchLobby{font-size:16px;padding:0 12px}}
@media(max-height:500px) and (min-width:641px){#setupScreen .setup-play{margin-top:18px}#setupScreen .setup-play #playGame,#setupScreen .setup-play #openTwitchLobby{height:50px;font-size:18px}}
#setupScreen .setup-play #playGame,#setupScreen .setup-play #openTwitchLobby{flex:1 1 0;max-width:350px;padding:0 14px;font-size:clamp(17px,1.9vw,20px)}
@media(max-width:640px){#setupScreen .setup-play #playGame,#setupScreen .setup-play #openTwitchLobby{flex:none;width:min(100%,330px);max-width:none;font-size:19px}}
@media(max-width:360px){#setupScreen .setup-play #playGame,#setupScreen .setup-play #openTwitchLobby{font-size:16px;padding:0 10px}}
/* Deuxième rangée calée sur la première : mêmes colonnes, mêmes bords */
#setupScreen .setup-more{display:flex;align-items:center;justify-content:center;gap:clamp(10px,2vw,18px);margin-top:16px}
#setupScreen .setup-more .setup-or{visibility:hidden}
#setupScreen .setup-more #replayIntro{flex:1 1 0;max-width:350px;min-width:0;margin:0;height:48px;padding:0 12px}
@media(max-width:640px){#setupScreen .setup-more{width:min(100%,330px);margin:12px auto 0;gap:10px}#setupScreen .setup-more .setup-or{display:none}#setupScreen .setup-more #replayIntro{height:44px;padding:0 8px;font-size:14px}}
@media(max-width:360px){#setupScreen .setup-more #replayIntro{font-size:12.5px;padding:0 5px}}
/* Dépudex miniature (accueil et choix du défi) : la vraie tablette en petit ; elle grossit à l'ouverture et revient à sa place */
.dex-mini{--w:150px;position:relative;display:flex;flex-direction:column;width:var(--w);aspect-ratio:1460/1040;margin:0;padding:calc(var(--w)*.045) calc(var(--w)*.05) calc(var(--w)*.06) calc(var(--w)*.075);box-sizing:border-box;border:3px solid #173451;border-radius:calc(var(--w)*.08);background:linear-gradient(130deg,#ed465d,#c92543);box-shadow:inset 0 0 0 2px #e5bf64,inset 0 -4px 0 #9e1735,4px 5px 0 #153451;color:#173451;font:inherit;cursor:pointer;transition:transform .15s,box-shadow .15s}
.dex-mini::before{content:'';position:absolute;left:calc(var(--w)*.022);top:38%;height:26%;width:calc(var(--w)*.03);border:1px solid #173451;border-radius:3px;background:repeating-linear-gradient(0deg,#18334e 0 3px,#a3233d 3px 5px)}
.dex-mini-bar{display:flex;justify-content:space-between;align-items:center;margin-bottom:calc(var(--w)*.035);color:#fff3c4;font:900 calc(var(--w)*.07)/1 'Barlow Condensed',Impact,sans-serif;letter-spacing:.6px}
.dex-mini-led{width:calc(var(--w)*.045);height:calc(var(--w)*.045);border:1px solid #173451;border-radius:50%;background:#2c4a33}
.dex-mini-screen{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--w)*.04);border:2px solid #173451;border-radius:calc(var(--w)*.03);background:#9bbc0f repeating-linear-gradient(0deg,#0f380f18 0 1px,transparent 1px 3px);box-shadow:inset 0 0 0 2px #8bac0f}
.dex-mini-screen b{color:#0f380f;font:900 calc(var(--w)*.125)/1 monospace;letter-spacing:1px;text-shadow:1px 1px 0 #306230}
.dex-mini-screen small{color:#306230;font:700 calc(var(--w)*.075)/1 monospace}
.dex-mini:hover,.dex-mini:focus-visible{transform:translateY(-3px) rotate(-1.5deg);box-shadow:inset 0 0 0 2px #e5bf64,inset 0 -4px 0 #9e1735,4px 8px 0 #153451}
.dex-mini:hover .dex-mini-led,.dex-mini:focus-visible .dex-mini-led{background:#5dff6a;box-shadow:0 0 6px #5dff6a}
.dex-mini:focus-visible{outline:3px dashed #fff;outline-offset:4px}
.dex-mini.dex-mini-away{visibility:hidden}
#welcomeScreen .dex-mini{margin:26px auto 0}
#setupScreen .setup-col{flex:1 1 0;max-width:350px;min-width:0;display:flex;justify-content:center}
#setupScreen .setup-more{align-items:center}
@media(max-width:640px){.dex-mini{--w:124px}#welcomeScreen .dex-mini{margin-top:20px}}
@media(max-height:500px){.dex-mini{--w:110px}}
/* Choix du défi : Dépudex miniature centré sous « ou », générique dessous, tout sur l'axe central */
#setupScreen .setup-more{flex-direction:column;gap:14px;width:auto;margin:clamp(16px,2.6vh,24px) auto 0}
#setupScreen .setup-more .setup-or{display:none}
#setupScreen .setup-more .setup-col{flex:none;max-width:none}
#setupScreen .setup-more #replayIntro{flex:none;max-width:none;width:auto;height:42px;padding:0 18px;font-size:15px}
@media(max-width:640px){#setupScreen .setup-more{width:auto;gap:12px}#setupScreen .setup-more #replayIntro{height:40px;font-size:14px}}
@media(max-height:500px) and (min-width:641px){#setupScreen .setup-more{flex-direction:row;gap:18px}}
/* Dépudex miniature dans la barre de jeu : la carte gagnée plonge dans son écran, le compteur défile dedans */
body>header .dex-mini-header{--w:80px;flex:none;margin-left:0;padding:calc(var(--w)*.04) calc(var(--w)*.05) calc(var(--w)*.055) calc(var(--w)*.08);border-width:2px;box-shadow:inset 0 0 0 1.5px #e5bf64,inset 0 -3px 0 #9e1735,2px 3px 0 #153451}
body>header .dex-mini-header .dex-mini-bar{font-size:9px;margin-bottom:2px}
body>header .dex-mini-header .dex-mini-led{width:5px;height:5px}
body>header .dex-mini-header .dex-mini-screen{border-width:1.5px;box-shadow:inset 0 0 0 1px #8bac0f}
body[data-stage="game"]>header .dex-mini-header #dexMiniCount{display:block;color:#0f380f;font:700 11px/1.15 monospace;white-space:nowrap}
body>header .dex-mini-header .dex-count-roll{height:1.15em;min-width:1.2em}
body>header .dex-mini-header:hover,body>header .dex-mini-header:focus-visible{transform:translateY(-2px) rotate(-2deg);box-shadow:inset 0 0 0 1.5px #e5bf64,inset 0 -3px 0 #9e1735,2px 5px 0 #153451}
#openDepudex.dex-mini-header.dex-count-bump .dex-mini-led{background:#5dff6a;box-shadow:0 0 6px #5dff6a}
@media(max-width:700px){body>header .dex-mini-header{--w:66px}body>header .dex-mini-header .dex-mini-bar{font-size:7.5px}body[data-stage="game"]>header .dex-mini-header #dexMiniCount{font-size:9px}}
/* Titre rangé : petit, à gauche des boutons ⚙ et Réécouter, dès que les indices arrivent */
.arena .round-title-dock{display:none}
.arena.title-docked #roundTitle>span,.arena.title-docked #roundDepute{display:none}
.arena.title-docked .round-title-dock{display:block;max-width:34cqw;margin-right:clamp(2px,.6cqw,8px);color:#ffe138;font:900 clamp(11px,2.1cqw,22px)/1.02 'Barlow Condensed',Impact,sans-serif;letter-spacing:.4px;text-align:right;text-transform:uppercase;-webkit-text-stroke:3px #153451;paint-order:stroke fill;text-shadow:2px 2px 0 #153451;transform-origin:100% 50%;pointer-events:none}
@container (max-width:330px){.arena.title-docked .round-title-dock{max-width:27cqw;font-size:9.5px;-webkit-text-stroke:2.4px #153451}}
/* Éditeur de t-shirt d'Hugo (bouton sur la webcam, panneau centré) */
.presenter-tee-btn{position:absolute;z-index:3;pointer-events:auto;display:grid;place-items:center;padding:0;border:2px solid #173451;border-radius:8px;background:#fffdf5;box-shadow:2px 2px 0 #173451;cursor:pointer;line-height:1}
.presenter-tee-btn[hidden]{display:none}
.presenter-tee-btn:hover,.presenter-tee-btn:focus-visible{background:#ffe14d;outline:none}
.presenter-tee{position:fixed;z-index:400;left:50%;top:50%;transform:translate(-50%,-50%);width:min(94vw,500px);max-height:94svh;display:flex;flex-direction:column;gap:10px;padding:14px;overflow:auto;background:#fffdf5;color:#173451;border:3px solid #173451;border-radius:14px;box-shadow:6px 6px 0 #173451}
.presenter-tee-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:18px}
.presenter-tee-x{width:34px;height:34px;border:2px solid #173451;border-radius:8px;background:#fff;cursor:pointer;font-size:16px}
.presenter-tee-mode{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:14px;font-weight:700}.presenter-tee-mode label{display:flex;align-items:center;gap:6px;cursor:pointer}
.presenter-tee-grid{display:flex;gap:6px;overflow-x:auto;padding:4px 2px 6px;scrollbar-width:thin}
.presenter-tee-grid .presenter-tee-item{flex:0 0 58px;width:58px;padding:3px;border-radius:8px}.presenter-tee-item[aria-current=true]{border-color:#ffd21f;box-shadow:0 0 0 2px #ffd21f}
.presenter-tee-stage{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:6px}
.presenter-tee-big{aspect-ratio:1;width:100%;max-height:min(52svh,400px);margin:0 auto;display:grid;place-items:center;padding:4%;background:#1a1b20;border:2px solid #173451;border-radius:12px;touch-action:pan-y;user-select:none}
.presenter-tee-big canvas,.presenter-tee-big img{width:100%;height:100%;object-fit:contain;pointer-events:none}
.presenter-tee-nav{width:38px;height:56px;border:2px solid #173451;border-radius:10px;background:#fff;font-size:28px;line-height:1;cursor:pointer}
.presenter-tee-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}.presenter-tee-bar button{white-space:nowrap}.presenter-tee-count{font-weight:700;font-variant-numeric:tabular-nums}
.presenter-tee-ok{padding:9px 14px;border:2px solid #173451;border-radius:10px;background:#ffe14d;box-shadow:2px 2px 0 #173451;font-weight:800;cursor:pointer}
.presenter-tee-item{aspect-ratio:1;min-height:0;overflow:hidden;display:grid;place-items:center;padding:6px;border:2px solid #173451;border-radius:10px;background:#1a1b20;cursor:pointer}
.presenter-tee-item[aria-pressed=true]{outline:3px solid #ffd21f;outline-offset:1px}
.presenter-tee-item canvas,.presenter-tee-item img{width:100%;height:100%;min-height:0;object-fit:contain}
.presenter-tee-foot{display:flex;flex-wrap:wrap;gap:8px}.presenter-tee-up{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border:2px solid #173451;border-radius:10px;background:#ffe14d;font-weight:700;cursor:pointer}
.presenter-tee small{opacity:.75}
/* Scan : la réponse reste affichée en haut du cadre pendant que le Dépudex scanne */
.capture-answer{position:fixed;z-index:7;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;box-sizing:border-box;padding:0 8px;text-align:center;pointer-events:none;color:#fff;transition:opacity .3s}
.capture-answer strong{font:900 clamp(15px,2.6cqw,30px)/1.05 Barlow,Arial,sans-serif;text-shadow:2px 2px 0 #153451,0 0 10px #15345188;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.capture-answer span{font:800 clamp(10px,1.5cqw,16px)/1.1 Barlow,Arial,sans-serif;color:#fff3c4;text-shadow:1px 1px 0 #153451;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.card-landed .capture-answer,.card-parked .capture-answer{opacity:0}
.capture-answer strong{font-size:clamp(18px,3.4cqw,40px)}
.capture-answer span{font-size:clamp(12px,1.9cqw,20px)}
/* Carte ouverte depuis le carrousel du HP : l'hémicycle reste visible derrière le voile. */
.card-inspector.over-hemicycle{background:#071b2b99;backdrop-filter:none;-webkit-backdrop-filter:none}
@media(max-width:700px),(max-height:520px){.card-inspector.over-hemicycle{background:#071b2bc2}}
.presenter-tee-del{margin-left:auto;padding:8px 10px;border:2px solid #173451;border-radius:10px;background:#fff;font-weight:700;cursor:pointer}.presenter-tee-del[hidden]{display:none}
/* Bandeau de réponse (scan en mode superposé seulement) */
.capture-answer{flex-direction:row;flex-wrap:wrap;column-gap:10px}
.capture-answer strong{flex:1 0 100%}
.capture-answer img{height:clamp(16px,2.4cqw,28px);width:auto;max-width:90px;object-fit:contain;padding:2px 5px;border-radius:5px;background:#fff;box-shadow:1px 1px 0 #153451}
/* 13/11 : pendant le scan, la réponse reste affichée comme à la défaite (titre rangé, nom, groupe) ; le Dépudex prend l'espace rouge restant */
body.capture-scene-active .arena.revealed .headline{visibility:visible}
/* Bonne réponse : nom et logo remontés en haut de la colonne, le Dépudex du scan se loge dessous */
body .arena.revealed.scan-info-up .headline{justify-content:flex-start}
body .arena.revealed.scan-info-up .headline #tagline{margin-top:0}
/* Carrousel du t-shirt : visuels toujours contenus dans leur case, quelle que soit leur taille d'origine */
.presenter-tee-big{position:relative;overflow:hidden;width:min(100%,52svh,400px);max-height:none;padding:0}
.presenter-tee-big>canvas,.presenter-tee-big>img{position:absolute;left:4%;top:4%;width:92%;height:92%;object-fit:contain}
.presenter-tee-item{position:relative;overflow:hidden}
.presenter-tee-item>canvas,.presenter-tee-item>img{position:absolute;left:3px;top:3px;width:calc(100% - 6px);height:calc(100% - 6px);object-fit:contain}
.presenter-tee>*{flex-shrink:0}.presenter-tee-grid{min-height:70px}
/* Languette d'options sous la carte du défi choisie, et son panneau dépliant */
#setupScreen .mode-cards{position:relative}
.setup-opts-pill{position:absolute;top:calc(100% + 3px);left:25%;transform:translateX(-50%);z-index:4;display:inline-flex;align-items:center;gap:6px;max-width:calc(50% - 14px);box-sizing:border-box;margin:0;padding:6px 14px 7px;border:3px solid #153451;border-top-width:2px;border-radius:0 0 11px 11px;background:#ffe138;color:#153451;box-shadow:4px 5px 0 #153451;font:900 15px/1.1 'Barlow Condensed',Impact,sans-serif;letter-spacing:.4px;white-space:nowrap;cursor:pointer;transition:left .35s cubic-bezier(.2,.9,.3,1.15),transform .15s,background .15s}
.setup-opts-pill span{overflow:hidden;text-overflow:ellipsis}
.mode-cards[data-mode="hardcore"] .setup-opts-pill{left:75%}
.setup-opts-pill i{font-style:normal;display:inline-block;transition:transform .3s cubic-bezier(.2,1.4,.4,1)}
.setup-opts-pill[aria-expanded="true"] i{transform:rotate(180deg)}
.setup-opts-pill:hover{background:#fff09a;transform:translateX(-50%) translateY(2px)}
.setup-opts-pill:focus-visible{outline:3px dashed #fff;outline-offset:3px}
#setupScreen .setup-play{margin-top:clamp(52px,7vh,64px)}
.setup-opts-panel{position:fixed;z-index:150;width:min(380px,calc(100vw - 16px));box-sizing:border-box;display:grid;gap:12px;padding:14px 16px 16px;border:3px solid #153451;border-radius:12px;background:#fff8e7;box-shadow:6px 7px 0 #153451;color:#153451;text-align:left;transform-origin:50% 0}
.setup-opts-panel[hidden]{display:none}
.setup-opts-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px}
.setup-opts-row>b{width:100%;font:900 14px 'Barlow Condensed',Impact,sans-serif;letter-spacing:.8px;text-transform:uppercase}
.setup-seg{display:inline-flex;max-width:100%;border:2px solid #153451;border-radius:8px;overflow:hidden;box-shadow:2px 3px 0 #153451;background:#fff8e7}
.setup-seg button{flex:1 1 auto;min-width:0;padding:7px 11px;border:0;border-left:2px solid #153451;background:transparent;color:#153451;font:900 15px 'Barlow Condensed',Impact,sans-serif;cursor:pointer;transition:background .15s}
.setup-seg button:first-child{border-left:0}
.setup-seg button[aria-pressed="true"]{background:#ffe138}
.setup-seg button:hover{background:#fff3b8}
.setup-tog{padding:7px 11px;border:2px solid #153451;border-radius:8px;background:#e9e1cc;color:#153451;box-shadow:2px 3px 0 #153451;font:900 15px 'Barlow Condensed',Impact,sans-serif;cursor:pointer;opacity:.75;transition:background .15s,opacity .15s}
.setup-tog[aria-pressed="true"]{background:#ffe138;opacity:1}
.setup-tog[aria-pressed="true"]::after{content:' ✓'}
@media(prefers-reduced-motion:no-preference){
.setup-opts-panel:not([hidden]):not(.closing){animation:setup-opts-unfold .42s cubic-bezier(.2,1.25,.35,1) both}
.setup-opts-panel:not([hidden]):not(.closing) .setup-opts-row{animation:setup-opts-row .32s cubic-bezier(.2,1,.3,1) both}
.setup-opts-panel .setup-opts-row:nth-child(2){animation-delay:.07s!important}
.setup-opts-panel .setup-opts-row:nth-child(3){animation-delay:.14s!important}
.setup-seg button[aria-pressed="true"],.setup-tog[aria-pressed="true"]{animation:setup-opts-pop .28s cubic-bezier(.2,1.6,.4,1)}}
@keyframes setup-opts-unfold{0%{transform:scaleY(.05) translateY(-8px);opacity:0}60%{opacity:1}100%{transform:scaleY(1) translateY(0)}}
@keyframes setup-opts-row{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
@keyframes setup-opts-pop{0%{transform:scale(.85)}100%{transform:scale(1)}}
@media(max-width:640px){.setup-opts-pill{font-size:12.5px;padding:5px 9px 6px;gap:4px;max-width:calc(50% - 8px)}#setupScreen .setup-play{margin-top:46px}.setup-seg button,.setup-tog{font-size:14px;padding:7px 9px}}
@media(max-width:360px){.setup-opts-pill{font-size:11px;padding:5px 6px}.setup-seg button{padding:7px 6px}}
@media(max-width:640px){.setup-opts-pill{white-space:normal;text-align:center;line-height:1.05}}
.setup-opts-panel{max-height:calc(100dvh - 16px);overflow-y:auto}
.setup-opts-pill{width:max-content}

/* Sources des indices à la révélation (Assemblée nationale, Wikipédia, Wikidata) */
.feedback .wiki-source a{color:inherit;text-underline-offset:3px;white-space:nowrap}
/* Les sources partagent la ligne du bouton suivant (pas de ligne en plus : aucune barre de défilement ni saut à la révélation). */
body[data-stage="game"] .feedback .wiki-source{flex:1 1 0;min-width:0;margin:0;line-height:1.35;align-self:center}
@media (max-height:520px){body[data-stage="game"] .feedback .wiki-source .src-label{display:none}}
/* Accueil : la coupure bleu/rouge passe sous les boutons (50 % = centre du tourbillon des rayons) */
@property --cut{syntax:'<percentage>';inherits:true;initial-value:42%}
#startup{--cut:42%;transition:--cut .9s cubic-bezier(.3,.8,.3,1);background:linear-gradient(125deg,#102e8b 0 var(--cut),#e90040 var(--cut) 100%)}
body[data-stage="welcome"] #startup{--cut:50%}
.startup-question-rain .rain-on-blue{-webkit-mask-image:linear-gradient(125deg,#000 0 calc(var(--cut) - .2%),transparent calc(var(--cut) + .2%) 100%);mask-image:linear-gradient(125deg,#000 0 calc(var(--cut) - .2%),transparent calc(var(--cut) + .2%) 100%)}
.startup-question-rain .rain-on-red{-webkit-mask-image:linear-gradient(125deg,transparent 0 calc(var(--cut) - .2%),#000 calc(var(--cut) + .2%) 100%);mask-image:linear-gradient(125deg,transparent 0 calc(var(--cut) - .2%),#000 calc(var(--cut) + .2%) 100%)}
/* Tourbillon des menus ralenti (18 s -> 30 s par tour) */
body[data-stage="welcome"] .intro-rays,body[data-stage="intro"] .intro-rays,body[data-stage="setup"] .intro-rays{animation-duration:30s}
/* Séparation bleu/rouge tournante, passant par le centre du tourbillon, plus lente que les rayons (30 s).
   Le fond tourne via transform (pas de repeinte) ; les masques de la pluie suivent --cutang. */
@property --cutang{syntax:'<angle>';inherits:true;initial-value:125deg}
@keyframes cut-turn{to{--cutang:485deg}}
#startup{--cut:50%;background:#e90040}
#startup::before{content:"";position:absolute;left:50%;top:50%;width:300vmax;height:300vmax;margin:-150vmax 0 0 -150vmax;z-index:-1;pointer-events:none;background:linear-gradient(125deg,#102e8b 0 50%,#e90040 50% 100%);transform:rotate(calc(var(--cutang) - 125deg))}
body[data-stage="welcome"] #startup,body[data-stage="intro"] #startup,body[data-stage="setup"] #startup{animation:cut-turn 90s linear infinite}
.startup-question-rain .rain-on-blue{-webkit-mask-image:linear-gradient(var(--cutang),#000 0 49.8%,transparent 50.2% 100%);mask-image:linear-gradient(var(--cutang),#000 0 49.8%,transparent 50.2% 100%)}
.startup-question-rain .rain-on-red{-webkit-mask-image:linear-gradient(var(--cutang),transparent 0 49.8%,#000 50.2% 100%);mask-image:linear-gradient(var(--cutang),transparent 0 49.8%,#000 50.2% 100%)}
@media(prefers-reduced-motion:reduce){#startup{animation:none!important}}
/* Écrans presque carrés ou peu hauts (Galaxy Z Fold déplié ~673×690…) : le choix du défi tient sans rognage */
@media(min-width:560px) and (max-height:860px) and (min-height:501px){
#startup:has(#setupScreen:not([hidden])){padding-top:18px}
#setupScreen::after{height:0}
#setupScreen .intro-kicker{margin-bottom:12px}
#setupScreen h1{margin-bottom:14px;font-size:clamp(30px,4.6vh,42px)}
#setupScreen .mode-card{padding:16px 20px;gap:8px}
#setupScreen .setup-play{margin-top:44px}
#setupScreen .setup-more{flex-direction:row;gap:18px;margin-top:14px;align-items:center}}
/* Anti-scintillement des menus : la pluie masquée tourne à la même vitesse que les rayons (30 s, avant 18 s : les « ? » clignotaient),
   calques tournants réduits au strict nécessaire (diagonale de l'écran) et bords adoucis d'1 px. */
body[data-stage="welcome"] .startup-question-rain,body[data-stage="intro"] .startup-question-rain,body[data-stage="setup"] .startup-question-rain{animation-duration:30s}
.intro-rays{inset:auto;left:50%;top:50%;width:150vmax;height:150vmax;margin:-75vmax 0 0 -75vmax;will-change:transform;backface-visibility:hidden;background:repeating-conic-gradient(from 5deg at 50% 50%,transparent 0 9.8deg,#ffffff0c 10.2deg 19.8deg,transparent 20.2deg)}
#startup::before{width:150vmax;height:150vmax;margin:-75vmax 0 0 -75vmax;will-change:transform;backface-visibility:hidden;background:linear-gradient(125deg,#102e8b 0 calc(50% - 1px),#e90040 calc(50% + 1px) 100%)}
/* Allègement : une seule pluie de « ? » (teinte neutre), sans masque bleu/rouge recalculé à chaque image. */
.startup-question-rain .rain-on-red{display:none}
.startup-question-rain .rain-on-blue{-webkit-mask-image:none;mask-image:none}
.startup-question-rain .rain-on-blue span:nth-child(n){color:#fff;opacity:.13}
.curtain-deputies{position:absolute;inset:0;z-index:3;pointer-events:none;overflow:hidden}.curtain-deputies .joker-puppet{transform-origin:50% 100%}
/* Réseaux d'Hugo au Perchoir (partenaire) sur le choix du défi (16/11) */
.hugo-socials{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 8px;margin:10px auto 0;max-width:100%;font:700 12px/1.2 inherit}
.hugo-socials-label{color:#fff;opacity:.9;letter-spacing:.02em;white-space:nowrap}
.hugo-social{display:inline-flex;align-items:center;gap:5px;padding:5px 10px;border-radius:999px;border:2px solid #173451;background:#fffdf5;color:#173451;text-decoration:none;font-weight:800;font-size:12px;box-shadow:2px 2px 0 #173451;white-space:nowrap}
.hugo-social svg{width:15px;height:15px;flex:none}
.hugo-social-yt svg{color:#e1261c}.hugo-social-tw svg{color:#7b3fe4}.hugo-social-x svg{color:#111}
.hugo-social:hover,.hugo-social:focus-visible{transform:translate(-1px,-1px);box-shadow:3px 3px 0 #173451}
.hugo-social-ig svg{color:#d6297b}
/* Téléphone : en fin de défilement, le choix du défi (réseaux d'Hugo compris) remonte au-dessus de Mini Hugo, qui ne masque plus rien. */
@media (max-width:1024px){body.presenter-on[data-stage="setup"] .startup-screen:not([hidden]){padding-bottom:calc(var(--hugo-h,0px) + 64px)}}
/* 16/11 (choix utilisateur) : pied de page fixe tout en bas, à gauche du dock son/Réglages (placeSocials dans game.js) ; Mini Hugo se tient au-dessus. */
.hugo-socials{position:fixed;left:12px;bottom:12px;z-index:221;margin:0;justify-content:flex-start;flex-wrap:nowrap;gap:6px;max-width:calc(100vw - 24px)}
.hugo-socials-label{font-size:12px;text-shadow:0 1px 2px rgba(0,0,0,.45)}
.hugo-social{height:36px;padding:0 11px;box-sizing:border-box}
.hugo-socials.compact .hugo-socials-label,.hugo-socials.compact .hugo-social>span{display:none}
.hugo-socials.compact .hugo-social{width:36px;padding:0;justify-content:center}
.hugo-socials.compact .hugo-social svg{width:17px;height:17px}
.hugo-socials[hidden]{display:none!important}
.hugo-socials.wrap{flex-wrap:wrap;width:78px}

/* Karaoké du générique : réserve fixe (pas de saut de mise en page), mots qui surgissent puis se colorent. */
.intro-lyrics{position:absolute;left:50%;position:absolute;top:-999px;width:max-content;max-width:92vw;z-index:5;pointer-events:none;margin:0;text-align:center;transform:translateX(-50%);font:900 clamp(20px,4.6vw,42px)/1.1 'Barlow Condensed',Impact,sans-serif;text-transform:uppercase;letter-spacing:.02em}
.intro-lyrics .kw{display:inline-block;color:#fff;-webkit-text-stroke:3px #153c70;paint-order:stroke fill;text-shadow:3px 4px 0 #123057;opacity:0;transform:translateY(.6em) scale(.4) rotate(calc((var(--i) - 1.5) * 6deg));transition:opacity .12s,transform .28s cubic-bezier(.2,1.8,.4,1),color .25s}
.intro-lyrics .kw.on{opacity:1;transform:none;color:#ffe138}
.intro-lyrics .kw.sung{color:#fff}
@media (prefers-reduced-motion:reduce){.intro-lyrics .kw{transition:opacity .2s;transform:none}}
/* Hugo en direct : miniature du live au-dessus du pied de page des réseaux */
.hugo-live{position:absolute;left:0;bottom:calc(100% + 8px);display:block;width:160px;border:2px solid #173451;border-radius:10px;overflow:hidden;background:#0e0e10;box-shadow:3px 3px 0 #173451;text-decoration:none}
.hugo-live img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.hugo-live-badge{position:absolute;left:6px;top:6px;padding:2px 6px;border-radius:4px;background:#e91916;color:#fff;font:800 10px/1.3 inherit;letter-spacing:.04em;animation:hugoLive 1.6s ease-in-out infinite}
@keyframes hugoLive{50%{opacity:.65}}
@media (prefers-reduced-motion:reduce){.hugo-live-badge{animation:none}}
.hugo-socials.compact .hugo-live{width:112px}
.hugo-socials.is-live .hugo-social-tw{position:relative}
.hugo-socials.is-live .hugo-social-tw::after{content:"";position:absolute;right:-2px;top:-2px;width:9px;height:9px;border-radius:50%;background:#e91916;border:2px solid #fffdf5}
.hugo-live-badge{white-space:nowrap}
.hugo-socials.compact .hugo-live-badge{font-size:9px;left:4px;top:4px;padding:1px 4px}
@media (max-height:520px){.hugo-live{width:auto;border-radius:999px}.hugo-live img{display:none}.hugo-live-badge{position:static;display:block;padding:4px 10px;font-size:11px}}

/* 16/11 : lecteur Twitch en direct (plus grand que l'ancienne miniature), caché hors live */
.hugo-live{width:min(340px,calc(100vw - 24px));border-radius:12px}
.hugo-live iframe{display:block;width:100%;aspect-ratio:16/9;border:0;background:#0e0e10}
.hugo-live .hugo-live-badge{text-decoration:none}
.hugo-socials.compact .hugo-live{width:min(240px,calc(100vw - 24px))}
@media (max-height:520px){.hugo-live{width:auto}.hugo-live iframe{display:none}}
/* Lecteur 400×300 (seuil d'autoplay de Twitch) ou aperçu cliquable */
.hugo-live[data-big="true"]{width:400px}
.hugo-live[data-big="true"] iframe{width:400px;height:300px;aspect-ratio:auto}
.hugo-live-thumb{display:block;position:relative}
.hugo-live-thumb img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.hugo-live-play{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:28px;text-shadow:0 2px 6px rgba(0,0,0,.6)}
@media (max-height:520px){.hugo-live-thumb{display:none}}
/* Menu : pied de page réseaux/live sous le mini Hugo (z 117) : il passe devant le lecteur sans le masquer (ses arrêts l'évitent) ; les panneaux (Dépudex, options…) recouvrent aussi le pied de page */
.hugo-socials{z-index:116}
/* Live dans le flux de l'écran du défi (plus de lecteur flottant au-dessus du pied de page) */
.startup-screen>.hugo-live,.startup-screen>.hugo-live[data-big]{position:relative;left:auto;bottom:auto;flex:none;align-self:center;margin:16px auto 0;width:min(340px,100%);border-radius:12px}
.startup-screen>.hugo-live[data-big="true"]{width:400px}
.startup-screen>.hugo-live[data-big="true"] iframe{display:block;width:400px;height:300px}
@media (max-height:520px){.startup-screen>.hugo-live{width:min(340px,100%);border-radius:12px}.startup-screen>.hugo-live img,.startup-screen>.hugo-live-thumb{display:block}.startup-screen>.hugo-live .hugo-live-thumb{display:block}.startup-screen>.hugo-live[data-big="true"] iframe{display:block}.startup-screen>.hugo-live .hugo-live-badge{position:absolute;padding:3px 8px}}
.hugo-live-frame{width:400px;height:300px;background:#0e0e10}
.hugo-live-frame iframe{display:block;width:400px;height:300px;border:0}
.hugo-live .hugo-live-badge{z-index:2}
.startup-screen>.hugo-live[data-big="true"]{z-index:118;isolation:isolate}
.startup-screen>.hugo-live .hugo-live-head{position:static;display:block;margin:0;border-radius:0;padding:5px 10px;font-size:12px;text-align:left;animation:none}
.hugo-live-slot{flex:none;align-self:center;width:404px;height:334px;margin:16px auto 0}
body>.hugo-live[data-big="true"]{position:fixed;left:0;top:0;bottom:auto;margin:0;width:404px;z-index:118;border-radius:12px}
body>.hugo-live .hugo-live-head{position:static;display:block;margin:0;border-radius:0;padding:5px 10px;font-size:12px;text-align:left;animation:none}
@media (max-height:520px){body>.hugo-live iframe{display:block}body>.hugo-live .hugo-live-head{position:static;display:block}}
/* Lecteur live fixe dans une marge latérale (ne décale plus l'écran du défi) */
body>.hugo-live{position:fixed;top:auto;margin:0;z-index:118;border-radius:12px}
body>.hugo-live[data-mode="thumb"]{width:160px}
body>.hugo-live[data-mode="thumb"] .hugo-live-head{font-size:10px;padding:3px 8px}
@media (max-height:520px){body>.hugo-live[data-mode="thumb"]{width:160px;border-radius:12px}body>.hugo-live[data-mode="thumb"] img{display:block}body>.hugo-live .hugo-live-thumb{display:block}}
/* Essai 16/11 : bulle sous la webcam, pointe vers le haut */
.presenter-bubble.below::after{bottom:auto;top:-8px;transform:rotate(225deg)}
/* Explications des jokers toujours visibles, sur tous les formats (demande utilisateur 16/11) : petites, sur une ou deux lignes. */
body[data-stage="game"] .quiz-bonuses .bonus-actions button.joker small,body[data-stage="game"] .quiz-bonuses .bonus-actions:has(>.joker:nth-child(4)) button.joker small{display:block!important;font-size:clamp(8.5px,.95vmin,11px);line-height:1.1;font-weight:700;color:#40536a;max-width:100%;overflow-wrap:break-word;white-space:normal}
@media(max-height:500px) and (orientation:landscape){body[data-stage="game"] .quiz-bonuses .bonus-actions,body[data-stage="game"] .quiz-bonuses .bonus-actions:has(>.joker:nth-child(4)){grid-template-columns:1fr 1fr!important}
body[data-stage="game"] .quiz-bonuses .bonus-actions button.joker,body[data-stage="game"] .quiz-bonuses .bonus-actions:has(>.joker:nth-child(4)) button.joker{display:grid;grid-template-columns:auto 1fr auto;align-items:center;justify-items:start;column-gap:5px;padding:3px 6px;text-align:left}
body[data-stage="game"] .quiz-bonuses .bonus-actions button.joker small,body[data-stage="game"] .quiz-bonuses .bonus-actions:has(>.joker:nth-child(4)) button.joker small{grid-column:2;grid-row:1;text-align:left}
body[data-stage="game"] .quiz-bonuses .bonus-actions button.joker>svg{grid-column:1;grid-row:1}
body[data-stage="game"] .quiz-bonuses .bonus-actions button.joker>span{grid-column:3;grid-row:1}}
@media(min-width:700px) and (max-height:640px) and (min-height:501px){body[data-stage="game"] .quiz-bonuses .bonus-actions button.joker small{font-size:8.5px;line-height:1.05}body[data-stage="game"] .quiz-bonuses .bonus-actions button.joker{padding-top:2px;padding-bottom:2px}}
@media(min-width:700px) and (max-height:640px) and (min-height:501px){body[data-stage="game"]>footer{padding-top:6px;padding-bottom:10px}}
/* Essai 16/11 (maquette utilisateur) : bulle en bandeau de sous-titre en bas de la webcam, pointe vers le haut */
.presenter-bubble.incam{box-sizing:border-box;max-width:none;border-radius:6px 6px 0 0;border-width:0;box-shadow:none;padding:4px 8px;font-size:12px;line-height:1.25;text-align:left}
.presenter-bubble.incam::after{bottom:auto;top:-7px;border:0;width:14px;height:14px;transform:rotate(45deg)}
/* Karaoké : tête d'Hugo qui rebondit de mot en mot (boule de karaoké) */
.intro-lyrics .kh{position:absolute;left:0;top:0;width:1.7em;height:1.7em;margin-top:.35em;object-fit:contain;pointer-events:none;filter:drop-shadow(2px 3px 0 #123057);will-change:transform}
.app-version{opacity:.75;font-variant-numeric:tabular-nums;white-space:nowrap}
/* Karaoké de l'écran de fin : au-dessus de la foule, place réservée pour la tête qui saute. */
#result .end-lyrics{z-index:3;padding-top:1.45em}
/* Traînée d'étoiles du karaoké */
.intro-lyrics .ks{position:absolute;left:0;top:0;margin:-.25em 0 0 -.2em;font-style:normal;font-size:.55em;line-height:1;color:#ffe138;-webkit-text-stroke:0;text-shadow:0 0 6px #fff6,1px 1px 0 #123057;pointer-events:none;will-change:transform,opacity}
.intro-lyrics .ks:nth-of-type(3n){color:#fff}
/* Karaoké syllabe par syllabe (17/11) : la ligne entière s'affiche d'un coup en blanc, puis les lettres se remplissent de jaune (calque ::after rogné selon --p) au fil du chant. */
.intro-lyrics .kw{position:relative;opacity:1;transform:none;animation:kw-in .3s cubic-bezier(.2,1.8,.4,1) both;animation-delay:calc(var(--i) * 40ms);color:#fff;transition:none}
.intro-lyrics .kw.on,.intro-lyrics .kw.sung{color:#fff;transform:none}
.intro-lyrics .kw::after{content:attr(data-t);position:absolute;left:0;top:0;color:#ffe138;-webkit-text-stroke:3px #153c70;paint-order:stroke fill;text-shadow:none;clip-path:inset(-.3em calc(100% - var(--p,0%)) -.3em -.3em);pointer-events:none}
@keyframes kw-in{from{opacity:0;transform:translateY(.4em) scale(.6)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.intro-lyrics .kw{animation:none}}
/* Karaoké sur le logo du générique : lettres blanches remplies de jaune au fil du chant, tête d'Hugo qui saute de syllabe en syllabe. */
#introScreen .intro-logo{position:relative}
.intro-title-part.kfill{position:relative;color:#fff}
.intro-title-part.kfill::after{content:attr(data-t);position:absolute;left:0;top:0;color:#ffe138;text-shadow:none;white-space:pre;clip-path:inset(-.3em calc(100% - var(--p,0%)) -.3em -.3em);pointer-events:none}
.intro-logo .kh{position:absolute;left:0;top:0;z-index:2;width:clamp(40px,6.5vw,84px);height:clamp(40px,6.5vw,84px);margin-top:.1em;object-fit:contain;pointer-events:none;filter:drop-shadow(2px 3px 0 #123057);will-change:transform;transition:opacity .25s}
.intro-logo .kh.gone{opacity:0}
.intro-logo .ks{position:absolute;left:0;top:0;z-index:2;font-style:normal;font-size:clamp(14px,2vw,24px);line-height:1;color:#ffe138;-webkit-text-stroke:0;text-shadow:0 0 6px #fff6,1px 1px 0 #123057;pointer-events:none}
#introDepute.kfill{display:table;margin-left:auto;margin-right:auto}
/* Place réservée sous Rejouer pour le karaoké de fin (stable pendant toute la fête). */
#result.end-party:not(.twitch-podium) .end-card{padding-bottom:clamp(64px,12vh,120px)}
@media(max-height:560px){#result.end-party:not(.twitch-podium) .end-card{padding-bottom:0}}
/* Sources et crédits (Licence Ouverte 2.0) : fenêtre modale au-dessus de tout, un seul défilement interne, liens discrets aux points d'entrée. */
.credits-panel{position:fixed;inset:0;z-index:10100;display:grid;place-items:center;padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));background:#07162cd9}
.credits-card{display:flex;flex-direction:column;width:min(640px,100%);max-height:100%;min-height:0;background:#fffaf1;color:#172039;border:3px solid #172039;border-radius:12px;box-shadow:5px 6px 0 #172039;overflow:hidden;font:400 14px/1.5 Barlow,Arial,sans-serif;text-align:left}
.credits-head{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px 12px 20px;border-bottom:2px solid #e3ddcf;background:#ffe138}
.credits-head h2{margin:0;font:800 clamp(20px,4.6vw,26px)/1.1 Barlow,Arial,sans-serif;color:#172039}
.credits-head button{flex:0 0 auto;width:44px;height:44px;border:2px solid #172039;border-radius:50%;background:#fffaf1;color:#172039;font-size:18px;line-height:1}
.credits-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:6px 20px 18px;-webkit-overflow-scrolling:touch}
.credits-body h3{margin:16px 0 4px;font:800 12px/1.3 Barlow,Arial,sans-serif;letter-spacing:1.5px;text-transform:uppercase;color:#b02546}
.credits-body p,.credits-body ul{margin:0 0 8px;overflow-wrap:anywhere}
.credits-body a{color:#1d4fb8;text-underline-offset:2px}
.credits-lead{margin-top:12px!important;padding:10px 12px;background:#edf2ff;border-left:4px solid #245ddb;border-radius:4px}
.credits-dates{padding-left:18px}.credits-dates span{font-weight:700}
.credits-open{font:inherit;cursor:pointer}
.start-credits{display:block;margin:10px auto 0;padding:10px 12px;min-height:44px;background:transparent;border:0;color:#ffffffcc;font-size:12px;text-decoration:underline;text-underline-offset:3px}
.start-credits:hover{color:#fff}
footer .footer-credits{padding:0;background:none;border:0;color:inherit;font-size:inherit;text-align:inherit;text-decoration:underline;text-underline-offset:2px}
.settings-credits{display:block;margin:8px 0 0;padding:6px 0;background:none;border:0;color:#1d4fb8;font-size:12px;text-decoration:underline;text-underline-offset:2px;text-align:left}
@media(pointer:coarse){footer .footer-credits,.settings-credits{min-height:44px}}
@media(max-width:420px){.credits-body{padding:4px 14px 14px;font-size:13.5px}.credits-head{padding:10px 10px 10px 14px}}
/* Bonus hardcore : groupe (carrousel de logos) puis siège (carte de l'hémicycle), en surimpression dans le cadre. */
.hc-bonus{position:absolute;inset:0;z-index:40;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(6px,1.6vh,14px);padding:clamp(8px,2vh,18px) 10px;background:radial-gradient(circle at 50% 45%,#1d3f8fee,#0d1d47f5);color:#fff;text-align:center;font-family:Barlow,Arial,sans-serif}
.hc-bonus[hidden]{display:none}
.hc-bonus-title{font:900 clamp(15px,3.2vmin,26px) 'Barlow Condensed',Impact,sans-serif;letter-spacing:2px;color:#ffe138;text-shadow:2px 2px 0 #0a1530}
.hc-carousel{position:relative;width:100%;max-width:520px;display:flex;align-items:center;justify-content:space-between;flex:0 1 auto;height:clamp(90px,34%,190px)}
.hc-track{position:relative;flex:1;height:100%;touch-action:pan-y;user-select:none}
.hc-logo{--d:0;position:absolute;left:50%;top:50%;width:clamp(70px,24vmin,150px);aspect-ratio:1;margin:0;display:grid;place-items:center;background:#fff;border:3px solid #172039;border-radius:14px;box-shadow:4px 4px 0 #0a1530;transform:translate(-50%,-50%) translateX(calc(var(--d)*78%)) scale(calc(1 - min(1,abs(var(--d)))*.38));opacity:calc(1 - min(2,abs(var(--d)))*.32);z-index:calc(10 - abs(var(--d)));transition:transform .28s cubic-bezier(.3,.8,.3,1),opacity .28s;cursor:pointer;font:900 22px 'Barlow Condensed',sans-serif;color:#172039}
.hc-logo img{width:82%;height:82%;object-fit:contain;pointer-events:none}
.hc-logo.on{border-color:#ffe138}.hc-logo.good{border-color:#22c55e;box-shadow:0 0 0 4px #22c55e88,4px 4px 0 #0a1530}.hc-logo.bad{border-color:#ef4444}
.hc-arrow{flex:none;width:clamp(34px,6vmin,46px);height:clamp(34px,6vmin,46px);border-radius:10px;border:2px solid #172039;background:#ffe138;color:#172039;font:900 26px/1 Barlow,sans-serif;box-shadow:3px 3px 0 #0a1530;z-index:20;cursor:pointer}
.hc-group-name{min-height:2.4em;max-width:92%;font:800 clamp(12px,2.4vmin,18px)/1.2 Barlow,sans-serif;display:flex;align-items:center;justify-content:center}
.hc-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
.hc-actions button{border:2px solid #172039;border-radius:8px;padding:clamp(6px,1.2vh,10px) 16px;font:800 clamp(12px,2.2vmin,16px) Barlow,sans-serif;box-shadow:3px 3px 0 #0a1530;cursor:pointer}
.hc-ok{background:#ffe138;color:#172039}.hc-skip{background:#fff6d9;color:#172039}
.hc-actions button:disabled,.hc-arrow:disabled{opacity:.55;cursor:default}
.hc-map{width:min(96%,560px);flex:1 1 auto;min-height:0;display:flex;align-items:center;justify-content:center}
.hc-map-svg{width:100%;height:100%;max-height:100%}
.hc-decor{fill:#ffffff22}
.hc-seat{fill:#dbe4f5;stroke:#0d1d47;stroke-width:1.2;cursor:pointer;transition:fill .15s}
.hc-seat:hover{fill:#ffe138}
.hc-map-svg.done .hc-seat{cursor:default}
.hc-seat.bad{fill:#ef4444}.hc-seat.good{fill:#22c55e}.hc-seat.answer{stroke:#fff;stroke-width:4}
@media(prefers-reduced-motion:reduce){.hc-logo{transition:none}}
#setupOptsPanel .setup-opts-hard{display:none}
body:has(#setupScreen .mode-cards[data-mode="hardcore"]) #setupOptsPanel .setup-opts-hard{display:flex}
.hc-typed{display:flex;flex-direction:column;align-items:center;gap:clamp(6px,1.4vh,12px);width:min(92%,420px)}
.hc-typed-input{width:100%;box-sizing:border-box;padding:clamp(8px,1.6vh,12px) 14px;border:3px solid #172039;border-radius:10px;font:800 clamp(14px,2.6vmin,20px) Barlow,sans-serif;color:#172039;background:#fff7e3;text-align:center}
.hc-typed-input.good{border-color:#22c55e;box-shadow:0 0 0 4px #22c55e66}.hc-typed-input.bad{border-color:#ef4444;box-shadow:0 0 0 4px #ef444466}
.hc-typed-logo{width:clamp(48px,12vmin,90px);aspect-ratio:1;object-fit:contain;background:#fff;border:3px solid #172039;border-radius:12px;padding:4px}
.hc-typed-logo[hidden]{display:none}
#setupOptsPanel.hc-bonus-off .setup-opts-hcsub{display:none!important}
/* Bonus hardcore : verdicts et info-bulle des sièges */
.hc-verdict{position:absolute;left:50%;top:50%;z-index:30;display:flex;flex-direction:column;align-items:center;gap:2px;padding:clamp(8px,1.8vh,16px) clamp(16px,3vw,30px);border:4px solid #172039;border-radius:14px;box-shadow:6px 6px 0 #0a1530;transform:translate(-50%,-50%) rotate(-4deg);animation:hc-stamp .42s cubic-bezier(.2,1.6,.4,1) both;pointer-events:none;max-width:88%}
.hc-verdict strong{font:900 clamp(22px,5.5vmin,46px)/1 'Barlow Condensed',Impact,sans-serif;letter-spacing:1px}
.hc-verdict small{font:800 clamp(12px,2.3vmin,17px)/1.2 Barlow,sans-serif}
.hc-verdict-good,.hc-verdict-near{background:#22c55e;color:#08260f}.hc-verdict-near{background:#a3e635}
.hc-verdict-bad{background:#ef4444;color:#fff}.hc-verdict-skip{background:#fff6d9;color:#172039}
@keyframes hc-stamp{0%{opacity:0;transform:translate(-50%,-50%) rotate(-14deg) scale(2.2)}100%{opacity:1;transform:translate(-50%,-50%) rotate(-4deg) scale(1)}}
.hc-bonus.hc-flash-good{animation:hc-flash-good .7s ease-out}.hc-bonus.hc-flash-bad{animation:hc-shake .45s ease-in-out}
@keyframes hc-flash-good{0%{box-shadow:inset 0 0 0 0 #22c55e}35%{box-shadow:inset 0 0 0 10px #22c55e}100%{box-shadow:inset 0 0 0 0 #22c55e00}}
@keyframes hc-shake{0%,100%{transform:translateX(0)}20%{transform:translateX(-10px)}40%{transform:translateX(9px)}60%{transform:translateX(-6px)}80%{transform:translateX(4px)}}
.hc-logo.bad::after{content:"✕";position:absolute;inset:0;display:grid;place-items:center;color:#ef4444;font:900 clamp(40px,14vmin,110px)/1 Barlow,sans-serif;text-shadow:2px 2px 0 #172039}
.hc-logo.good{animation:hc-good-pulse .8s ease-in-out 2}
@keyframes hc-good-pulse{50%{box-shadow:0 0 0 10px #22c55e66,4px 4px 0 #0a1530}}
.hc-seat-tip{position:absolute;z-index:25;padding:3px 8px;border-radius:6px;background:#ffe138;color:#172039;border:2px solid #172039;font:800 12px/1.2 Barlow,sans-serif;pointer-events:none;white-space:nowrap}
.hc-seat-tip[hidden]{display:none}
.hc-seat.answer{animation:hc-seat-blink .5s steps(2) 4}
@keyframes hc-seat-blink{50%{fill:#fff}}
@media(prefers-reduced-motion:reduce){.hc-verdict,.hc-bonus.hc-flash-good,.hc-bonus.hc-flash-bad,.hc-logo.good,.hc-seat.answer{animation:none}}
/* Bonus dans le panneau de droite : tailles relatives au cadre du bonus (container queries). */
.controls{position:relative}
.controls>.hc-bonus{inset:auto;position:absolute;z-index:30;border-radius:10px;container-type:size;gap:clamp(4px,3cqh,12px);padding:clamp(6px,3cqh,14px) 8px}
.controls>.hc-bonus .hc-bonus-title{font-size:clamp(14px,7cqmin,24px)}
.controls>.hc-bonus .hc-carousel{height:clamp(70px,38cqh,170px)}
.controls>.hc-bonus .hc-logo{width:clamp(56px,min(34cqh,30cqw),140px)}
.controls>.hc-bonus .hc-arrow{width:clamp(30px,10cqmin,44px);height:clamp(30px,10cqmin,44px)}
.controls>.hc-bonus .hc-group-name{font-size:clamp(11px,4.6cqmin,17px)}
.controls>.hc-bonus .hc-actions button{font-size:clamp(12px,4.4cqmin,16px);padding:clamp(5px,2cqh,9px) 14px}
.controls>.hc-bonus .hc-map{width:100%}
.controls>.hc-bonus .hc-verdict strong{font-size:clamp(20px,11cqmin,42px)}
.controls>.hc-bonus .hc-verdict small{font-size:clamp(11px,4.6cqmin,16px)}
.controls>.hc-bonus .hc-typed-input{font-size:clamp(14px,5cqmin,20px)}
.controls>.hc-bonus .hc-logo.bad::after{font-size:clamp(36px,26cqmin,100px)}
.controls>.hc-bonus{overflow:hidden;background:#13296a;padding-left:10px;padding-right:10px;left:8px!important;right:8px!important}
.controls>.hc-bonus .hc-carousel{max-width:100%}
/* Verdict du bonus : après l'impact, le tampon se range en petit à la place du titre pour laisser voir le bon logo / le bon siège. */
/* Le tampon frappe directement à la place du titre : il ne cache jamais les logos (choisi barré, bon logo) ni la carte des sièges. */
.hc-verdict{top:3px;transform-origin:50% 0;transform:translate(-50%,0) rotate(-3deg) scale(var(--hcv-s,.6));animation:hc-stamp-top .42s cubic-bezier(.2,1.6,.4,1) both}
@keyframes hc-stamp-top{0%{opacity:0;transform:translate(-50%,0) rotate(-12deg) scale(1.3)}100%{opacity:1;transform:translate(-50%,0) rotate(-3deg) scale(var(--hcv-s,.6))}}
@container (max-height:300px){.hc-verdict{--hcv-s:.42;top:1px}}
.controls>.hc-bonus .hc-verdict{width:max-content;max-width:calc(100cqw / var(--hcv-s,.6) - 30px)}.controls>.hc-bonus .hc-verdict strong{white-space:nowrap}
@media(prefers-reduced-motion:reduce){.hc-verdict{animation:none}}
.hc-bonus:has(.hc-verdict) .hc-bonus-title{animation:hc-title-off .15s ease-in forwards}
@keyframes hc-title-off{to{opacity:0}}

/* Jauge chaud-froid (hardcore) : barre fine posée sur le bas du champ, sans changer la mise en page. */
#heatGauge{position:absolute;height:6px;border-radius:0 0 8px 8px;background:#17203922;overflow:visible;pointer-events:none;z-index:2}
#heatGauge[hidden]{display:none}
#heatGauge i{display:block;height:100%;width:var(--heat,0%);border-radius:inherit;background:linear-gradient(90deg,#3b82f6,hsl(var(--hue,210) 90% 52%));transition:width .25s ease,background .25s}
#heatGauge span{position:absolute;right:6px;bottom:9px;font:800 11px/1 Barlow,sans-serif;color:hsl(var(--hue,210) 80% 38%);background:#fffd;padding:2px 5px;border-radius:5px;white-space:nowrap}
/* Options de partie sur écran bas (téléphone en paysage) : libellés à gauche des choix pour que tout tienne, jauge chaud-froid comprise. */
@media (max-height:560px){.setup-opts-panel{gap:7px;padding:10px 12px 12px;width:min(540px,calc(100vw - 16px))}.setup-opts-row>b{width:auto;min-width:10.5em}}
/* Le panneau d'options passe devant la barre flottante (son, réglages) pendant qu'il est ouvert. */
.setup-opts-panel{z-index:1000}
.hc-seat.hc-perchoir{stroke-width:2;rx:3}
/* Jauge chaud-froid : effets en particules sur un canvas derrière la case (texte au-dessus). Givre et feu progressifs selon la proximité. */
#typedName.heat-cold{border-color:#8fcaf5!important;box-shadow:0 0 0 3px #8fcaf555!important}
#typedName.heat-warm{border-color:#f5a524!important}
#typedName.heat-hot{border-color:#ef4444!important;box-shadow:0 0 0 3px #ef444455!important}
#typedName.heat-cold,#typedName.heat-warm,#typedName.heat-hot{position:relative;z-index:1;background:transparent!important}
#typedName.heat-dark{color:#fff!important;caret-color:#ffd25a;font-weight:800;-webkit-text-stroke:.6px #1a0702;text-shadow:0 0 2px #000,0 0 4px #000,1px 1px 0 #000,-1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,0 0 10px #000c}
#heatFlames{position:absolute;z-index:0;pointer-events:none;overflow:hidden;border-radius:9px;background:#fffaf3;opacity:0;transition:opacity .3s ease}
#heatFlames::before{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#140804,#2e1006);opacity:var(--ember,0);transition:opacity .4s ease}
#heatFlames.icy{background:linear-gradient(180deg,hsl(205 80% calc(97% - var(--ice,0) * 12%)),hsl(205 75% calc(93% - var(--ice,0) * 16%)))}
#heatFlames.on{opacity:1}
#heatFlames canvas{position:absolute;inset:0;width:100%;height:100%}
/* Les effets suffisent : plus d'étiquette ni de barre, sauf si l'appareil demande moins d'animation (particules coupées). */
#heatGauge span{display:none}
#heatGauge{visibility:hidden}
@media(prefers-reduced-motion:reduce){#heatGauge{visibility:visible}}
/* Pendant le bonus : le reste du panneau (jokers, saisie, aide) est masqué sans bouger la mise en page ; seuls l'en-tête et la boîte du bonus restent. */
.controls.hc-active>*:not(.prompt):not(.hc-bonus){visibility:hidden}
/* Le reflet du scan ne se rejoue pas quand la carte réapparaît (retour de pause, Dépudex refermé). */
.card-landed .capture-card.shine-done::after{animation:none;opacity:0}

/* Filet du scan en canvas (maillage bombé découpé sur la silhouette) : pas de fond quadrillé rectangulaire. */
.capture-scan-grid.capture-scan-mesh{background:none;mix-blend-mode:screen}

/* Sauvegarde du Dépudex (onglet Partie) */
.dex-backup{display:flex;flex-direction:column;gap:6px;align-self:stretch;min-width:0;padding-top:10px;border-top:1px dashed currentColor;border-top-color:rgb(0 0 0/.18)}
.dex-backup>span{font-size:.82em;opacity:.75;overflow-wrap:anywhere}
.dex-backup-actions{display:flex;flex-wrap:wrap;gap:8px}.dex-backup-actions button{flex:1 1 8em;min-width:0}
.dex-backup-box{display:flex;flex-direction:column;gap:6px;min-width:0}.dex-backup-box[hidden]{display:none}
.dex-backup-box textarea{width:100%;box-sizing:border-box;min-width:0;resize:vertical;font:12px/1.35 ui-monospace,monospace;word-break:break-all;padding:6px 8px;border-radius:8px;border:2px solid rgb(0 0 0/.25)}
.dex-backup-box p{margin:0;font-size:.82em;min-height:1.2em;overflow-wrap:anywhere}
.settings .dex-backup{width:100%;box-sizing:border-box;grid-column:1/-1}
.settings .dex-backup-actions{width:100%}.settings .dex-backup-actions button{width:auto;margin:0}
.settings .dex-backup-box,.settings .dex-backup-box textarea,.settings .dex-backup-box button{width:100%;box-sizing:border-box;margin:0}
/* Bonus « Circonscription » : carte de France */
.hc-fr-svg .hc-dep{fill:#f6ecd0;stroke:#1f2d4d;stroke-width:1.2;vector-effect:non-scaling-stroke;cursor:pointer;transition:fill .15s}
.hc-fr-svg .hc-dep:hover,.hc-fr-inset:not(.hc-fr-zoom):hover .hc-dep{fill:#ffd84a}
.hc-fr-svg .hc-inset-box{fill:#fff9ea;stroke:#1f2d4d;stroke-opacity:.35;stroke-width:1;vector-effect:non-scaling-stroke;cursor:pointer}
.hc-fr-svg .hc-inset-label{font:700 22px/1 var(--font-ui,system-ui),sans-serif;fill:#1f2d4d;text-anchor:middle;pointer-events:none}
.hc-fr-svg.done .hc-dep,.hc-fr-svg.done .hc-inset-box{cursor:default}
.hc-fr-svg .hc-dep.good,.hc-fr-svg .hc-inset-box.good{fill:#2fbf71}.hc-fr-svg .hc-dep.bad,.hc-fr-svg .hc-inset-box.bad{fill:#e5484d}
.hc-fr-svg .hc-dep.answer{animation:hc-fr-blink .5s ease-in-out 4 alternate}
@keyframes hc-fr-blink{to{fill:#9ff0c2}}
.hc-fr-tiles{display:flex;flex-wrap:wrap;justify-content:center;gap:4px;min-width:0;max-width:100%}
.hc-fr-tile{font-size:.68em;line-height:1.1;padding:2px 6px;border-radius:999px;border:1.5px solid #1f2d4d;background:#fff9ea;color:#1f2d4d;cursor:pointer;min-width:0}
.hc-fr-tile:hover:not(:disabled){background:#ffd84a}.hc-fr-tile.good{background:#2fbf71;color:#fff}.hc-fr-tile.bad{background:#e5484d;color:#fff}
@media (prefers-reduced-motion:reduce){.hc-fr-svg .hc-dep.answer{animation:none}}
.hc-bonus.hc-circo .hc-verdict{--hcv-s:.42;top:1px}
.controls>.hc-bonus.hc-circo{z-index:60;border-radius:14px;box-shadow:0 10px 30px rgb(0 0 0/.35)}
.controls>.hc-bonus.hc-circo .hc-map{width:100%;max-width:none}
/* Écran large : carte à gauche, question, boutons et réponse dans une colonne à droite */
.controls>.hc-bonus.hc-circo.hc-wide{display:grid;grid-template-columns:minmax(0,1fr) minmax(170px,26%);grid-template-rows:1fr auto auto auto 1fr;column-gap:16px;align-items:center;justify-items:center}
.hc-circo.hc-wide>.hc-fr-map{grid-column:1;grid-row:1/-1;height:100%;width:100%}
.hc-circo.hc-wide>.hc-bonus-title{grid-column:2;grid-row:1;align-self:end}
.hc-circo.hc-wide>.hc-fr-tiles{grid-column:2;grid-row:2}
.hc-circo.hc-wide>.hc-group-name{grid-column:2;grid-row:3}
.hc-circo.hc-wide>.hc-actions{grid-column:2;grid-row:4;align-self:start}
.controls>.hc-bonus.hc-circo.hc-wide .hc-verdict{left:calc(100% - 13% - 10px)}
.hc-fr-svg .hc-fr-zoom .hc-inset-label{font-size:17px}
/* Champ du nom (hardcore) : texte plus grand, case moins haute (demande utilisateur 19/11) */
#typedForm #typedName{font-size:20px!important;line-height:1.2;padding:8px 12px;min-height:44px}

/* Event temporaire « Présidentielle 2027 » : bouton compact sous « Revoir le générique » (même rangée que le Dépudex, aucune hauteur ajoutée sur grand écran) ; le jeu se charge au clic (presidentielle.js/.css). */
.setup-more .setup-links{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0}
.setup-more .event-open{display:inline-flex;align-items:center;justify-content:center;gap:6px;margin:0;height:40px;padding:0 14px;border:2px solid #e9c46a;border-radius:12px;background:linear-gradient(90deg,#1f3a93,#16224a 50%,#a8202c);color:#fff;font:800 15px/1 'Barlow Condensed',Impact,sans-serif;white-space:nowrap;cursor:pointer;box-shadow:0 4px 0 rgba(0,0,0,.25)}
.setup-more .event-open:hover,.setup-more .event-open:focus-visible{border-color:#fff}
.setup-more .event-badge{padding:2px 5px;border-radius:5px;background:#e9c46a;color:#111a3c;font-size:10px;letter-spacing:.1em;text-transform:uppercase}
/* Grand écran : le bouton de la colonne est remplacé par un bouton d'angle (hors de la colonne centrale, qui n'a pas de hauteur à revendre). */
.event-corner{display:none}
@media (min-width:900px){.setup-more .event-open{display:none}
 #setupScreen:not([hidden])~.event-corner{display:flex;position:fixed;top:14px;left:14px;z-index:6;flex-direction:column;align-items:flex-start;gap:3px;max-width:200px;padding:9px 14px;border:2px solid #e9c46a;border-radius:14px;background:linear-gradient(135deg,#1f3a93,#16224a 55%,#a8202c);color:#fff;font:800 17px/1.05 'Barlow Condensed',Impact,sans-serif;text-align:left;cursor:pointer;box-shadow:0 5px 0 rgba(0,0,0,.25)}
 .event-corner:hover,.event-corner:focus-visible{border-color:#fff}
 .event-corner .event-badge{padding:2px 6px;border-radius:5px;background:#e9c46a;color:#111a3c;font-size:10px;letter-spacing:.1em;text-transform:uppercase}
 .event-corner small{font-size:11px;opacity:.8;letter-spacing:.05em;text-transform:uppercase}}
