/* Interface de jeu : le moteur 3D conserve la même surface de rendu. */
.play-shell{position:relative;width:100%;height:100dvh;overflow:hidden;background:#080c11;--paper:#e6e5db;--soft:#93a1b0}.play-shell button{border:1px solid #ffffff20;background:#131c26;color:#d8e0e6;border-radius:7px;padding:9px 12px}.play-shell button:hover{background:#243445;border-color:#a2bbd15c}.play-shell button:disabled{cursor:default}.play-shell .scene-canvas{position:absolute;inset:0}.game-header{position:absolute;top:24px;left:32px;right:32px;z-index:4;display:flex;justify-content:space-between;align-items:center;gap:15px;pointer-events:none}.game-header>*{pointer-events:auto}.play-shell .wordmark{display:flex;align-items:center;gap:12px;background:none;border:0;padding:0;letter-spacing:.2em;text-align:left;font-size:18px;font-weight:600}.wordmark small{display:block;font-size:7px;font-weight:400;letter-spacing:.24em;color:#a2abb5;margin-top:7px}.game-tools{display:flex;gap:7px;align-items:center}.game-tools button{font-size:11px;display:inline-flex;align-items:center;gap:6px;background:#0d141ba8;backdrop-filter:blur(15px);min-height:36px}.landing{position:absolute;inset:0;background:linear-gradient(90deg,#080d14f5 0%,#080d14e8 24%,#080d1480 47%,#080d1400 77%);pointer-events:none;overflow-y:auto}.landing-copy{width:min(500px,46vw);padding:130px 0 45px;margin-left:7vw;pointer-events:auto}.landing .eyebrow{font-size:9px;color:#96aabe}.landing h1{font-size:clamp(42px,5.3vw,80px);font-weight:350;letter-spacing:-.055em;line-height:1.04;margin:21px 0 20px}.landing h1 em{font-style:normal;color:#c99a7c}.landing-copy>p{font-size:13px;line-height:1.9;color:#9aa6b3;margin:0 0 27px}.setup-fields{display:grid;grid-template-columns:1.3fr 1fr;gap:12px;margin-bottom:16px}.setup-fields label{font-size:8px;letter-spacing:.12em;color:#a2adba}.setup-fields input,.setup-fields select{width:100%;margin:8px 0 0;border:1px solid #ffffff22;border-radius:6px;background:#111b25d9;color:#d9e1e6;height:39px;padding:0 10px;font-size:11px;letter-spacing:0}.setup-fields input::placeholder{color:#637488}.home-choices{display:flex;flex-direction:column;gap:9px}.play-shell .choice{display:flex;width:100%;align-items:center;gap:15px;padding:15px 17px;text-align:left;background:#111b25c7;border:1px solid #8494a533;border-radius:8px;backdrop-filter:blur(18px)}.choice>span{color:#a4c1db;display:grid;place-content:center}.choice>div{flex:1;font-size:14px;font-weight:500}.choice small{display:block;font-size:10px;line-height:1.5;font-weight:400;color:#8d9cab;margin-top:5px}.play-shell .primary-choice{background:var(--paper);color:#1e2c36;border-color:var(--paper)}.play-shell .primary-choice:hover{background:#fffef5}.primary-choice>span,.primary-choice small{color:#566672}.home-facts{display:flex;gap:26px;margin-top:27px;color:#6f8396;font-size:10px}.home-facts b{font-size:16px;font-weight:400;color:#bac5cf;margin-right:5px}.play-shell .resume-button{font-size:11px;padding:11px 0;color:#a5c6e1;background:none;border:0}.demo-label{position:absolute;bottom:34px;right:35px;display:flex;gap:10px;align-items:center;font-size:8px;letter-spacing:.14em;color:#8295a8}.demo-label>span:not(.live-dot){color:#4b5c6b}.live-dot{width:5px;height:5px;border-radius:50%;background:#9bac95;box-shadow:0 0 10px #9bac9544}.game-overlay{position:absolute;inset:0;pointer-events:none}.game-overlay button,.game-overlay details,.game-overlay .match-sidebar,.game-overlay .lesson-panel{pointer-events:auto}.scoreboard{position:absolute;top:21px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:19px;background:#0d151ee0;border:1px solid #ffffff19;backdrop-filter:blur(16px);border-radius:10px;padding:10px 20px;min-width:290px;justify-content:center}.team{display:flex;gap:15px;align-items:center;color:#8c9cab;position:relative}.team span{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.team b{font-weight:450;font-size:28px;font-variant-numeric:tabular-nums}.team.azure b{color:#a7c9ef}.team.copper b{color:#d4a589}.team.active:after{position:absolute;content:'';height:2px;bottom:-11px;left:0;right:0;background:currentColor}.team.azure.active{color:#a7c9ef}.team.copper.active{color:#d4a589}.scoreboard-separator{font-size:8px;color:#687888;letter-spacing:.12em}.turn-banner{position:absolute;top:102px;left:50%;transform:translateX(-50%);text-align:center;padding:10px 20px;border-radius:9px;background:#09121ad9;backdrop-filter:blur(10px);min-width:230px}.turn-banner>span{font-size:13px;color:#d8e3ec}.turn-banner small{display:block;color:#8a9bac;font-size:9px;margin-top:7px}.match-sidebar{position:absolute;top:122px;left:30px;width:270px;max-height:calc(100dvh - 265px);overflow-y:auto;scrollbar-width:thin;background:#0e1721d9;border:1px solid #ffffff1c;border-radius:10px;backdrop-filter:blur(20px)}.room-card,.piece-detail{padding:18px}.room-card{border-bottom:1px solid #ffffff16}.room-card .eyebrow{font-size:8px;color:#9eb8cd}.room-card p,.piece-detail>p{font-size:11px;line-height:1.8;color:#8b9fb1;margin:12px 0}.room-card small{font-size:8px;letter-spacing:.14em;color:#889cb0;display:block;margin-top:17px}.room-card strong{display:block;font-size:31px;font-weight:500;letter-spacing:.18em;margin:7px 0 12px;color:#dfebf5}.room-card button{font-size:10px}.share-buttons{display:flex;gap:6px;flex-wrap:wrap}.share-buttons button{display:inline-flex;gap:6px;align-items:center}.piece-detail h2{font-size:17px;font-weight:450;margin:12px 0}.piece-stats{display:flex;align-items:center;gap:14px}.piece-stats span{font-size:7px;color:#a0b1bf}.piece-stats b{display:block;font-size:22px;font-weight:400;color:#d8e1ea;margin-bottom:3px}.piece-stats span:last-child{margin-left:auto;font-size:12px}.move-options{margin-top:13px;font-size:11px}.move-options summary{cursor:pointer;color:#adc4d8;padding:7px 0}.move-options [data-moves]{max-height:220px;overflow-y:auto;display:grid;gap:5px;margin-top:10px}.move-options button,[data-exits] button{font-size:10px;text-align:left;width:100%}.move-options p{color:#8b9fb1;font-size:10px;line-height:1.6}.play-shell [data-exits] button{margin:5px 0;background:#7496b03b;color:#d4e8f8;border-color:#98bdd459}.piece-roster{position:absolute;bottom:89px;left:50%;transform:translateX(-50%);display:flex;justify-content:center;gap:7px;max-width:90%;flex-wrap:wrap;padding:7px;background:#0d151ec9;border:1px solid #ffffff12;backdrop-filter:blur(14px);border-radius:10px;pointer-events:auto}.piece-roster button{display:flex;flex-direction:column;align-items:center;gap:4px;padding:9px 12px;background:#ffffff03}.piece-roster button.azure{color:#a9caee}.piece-roster button.copper{color:#d5aa90}.piece-roster button[aria-pressed=true]{background:#8ba3b72b;border-color:#a6bacb82}.piece-roster span{font-size:8px;letter-spacing:.05em}.game-bottom{position:absolute;bottom:36px;left:30px;right:30px;display:flex;align-items:center;justify-content:flex-end;gap:8px}.game-bottom>span{font-size:10px;color:#94a7b7;margin-right:auto;max-width:50%;line-height:1.5}.game-bottom button{display:flex;align-items:center;gap:7px;font-size:10px;background:#0d151edb}.play-shell .info-toggle{display:none}.camera-note{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);font-size:8px;letter-spacing:.035em;color:#617587;white-space:nowrap}.lesson-panel{position:absolute;left:30px;top:126px;width:325px;background:#101a25e8;backdrop-filter:blur(20px);border:1px solid #ffffff23;padding:23px;border-radius:12px;max-height:calc(100dvh - 265px);overflow-y:auto;scrollbar-width:thin}.lesson-heading{display:flex;justify-content:space-between;align-items:center}.lesson-heading .eyebrow{font-size:8px;color:#a7bfd2}.lesson-heading button{background:none;border:0;padding:0}.lesson-dots{display:flex;gap:5px;margin-top:18px}.lesson-dots i{height:3px;flex:1;background:#293745;border-radius:2px}.lesson-dots .done{background:#9ebcd2}.lesson-panel h2{font-size:24px;font-weight:400;letter-spacing:-.025em;line-height:1.2;margin:24px 0 15px}.lesson-panel p{font-size:12px;line-height:1.95;color:#99adbd}.lesson-goal{padding:14px 13px;background:#a0bbcc0d;border-left:2px solid #98b5cc;font-size:11px;color:#c3d8e9;line-height:1.8;margin:20px 0 12px}.lesson-success{font-size:11px;color:#b7d0af;line-height:1.7;margin:15px 0}.lesson-controls{display:flex;gap:7px;justify-content:space-between;margin-top:21px}.lesson-controls button{font-size:10px}.play-shell .next-lesson{background:#dce5e7;color:#263545;border:0}.play-shell .lesson-practice button{width:100%;font-size:11px;border-color:#91b9d347}.result-card{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:7;width:min(390px,calc(100vw - 32px));border:1px solid #b2c3ce5c;background:#101c29f5;box-shadow:0 20px 150px #000c;padding:32px;text-align:center;border-radius:14px;backdrop-filter:blur(25px)}.result-card h2{font-size:36px;letter-spacing:-.04em;font-weight:400;margin:18px 0}.result-card p{font-size:12px;line-height:1.8;color:#99acbd}.result-card strong{display:block;font-size:38px;font-weight:350;margin:23px 0}.result-card button{width:100%;margin-top:10px}.game-dialog{width:min(500px,calc(100vw - 32px));max-height:85dvh;overflow-y:auto;border:1px solid #9aafc23d;border-radius:13px;background:#111c29;color:#d8e1e9;padding:28px;box-shadow:0 30px 150px #000a}.game-dialog::backdrop{background:#030a12bb;backdrop-filter:blur(9px)}.dialog-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.dialog-top .eyebrow{font-size:8px}.dialog-top button{padding:3px!important;background:transparent!important;border:0!important}.game-dialog h2{font-weight:400;font-size:29px;letter-spacing:-.035em;margin:23px 0}.game-dialog p{font-size:12px;color:#8fa5b8;line-height:1.9}.game-dialog label{font-size:11px;color:#b3c4d2}.game-dialog input{display:block;width:100%;margin:10px 0 18px;padding:15px;border:1px solid #a7bdce47;border-radius:7px;background:#0a1320;color:#e2ecf4;font-size:28px;letter-spacing:.25em;text-transform:uppercase}.play-shell .dialog-primary{background:#dce4e8;color:#1c2d3c;width:100%;border-color:#dce4e8;padding:13px 17px;font-size:12px;margin-top:18px}.play-shell .dialog-primary:hover{background:#fff}.form-error{color:#e9a58c!important;font-size:11px!important}.scores-table{width:100%;border-collapse:collapse;font-size:12px;margin:20px 0}.scores-table th{font-size:9px;font-weight:400;text-align:left;color:#8ca5b9;padding:9px 0}.scores-table td{border-top:1px solid #ffffff13;padding:12px 0;overflow-wrap:anywhere}.scores-table td:not(:first-child),.scores-table th:not(:first-child){text-align:right}.rules-dialog{width:min(730px,calc(100vw - 32px))}.rules-dialog h3{font-size:15px;font-weight:500;margin-top:26px}.rule-pieces{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin-top:25px}.rule-pieces>div{border:1px solid #ffffff19;border-radius:8px;padding:15px;display:flex;flex-direction:column;gap:10px}.rule-pieces b{font-size:12px;font-weight:500}.rule-pieces span{font-size:9px;color:#a4bdd1}.rule-pieces p{font-size:10px;margin:0}.play-shell .toast{z-index:30;max-width:min(540px,90vw);white-space:normal;text-align:center;bottom:170px}.play-shell .axis-label{color:#b4c5d3;font-size:8px}.play-shell[data-screen=home] .axis-labels{opacity:.45}#components-reconnect-modal{z-index:100}
@media(min-width:1700px){.landing-copy{padding-top:15vh}.landing h1{font-size:86px}.home-choices .choice{padding:20px}.lesson-panel{left:45px;width:350px;top:145px}.match-sidebar{left:45px}}
@media(max-width:1200px){.game-header{left:22px;right:22px}.scoreboard{top:80px}.turn-banner{top:154px}.match-sidebar,.lesson-panel{top:150px;width:265px;left:20px;max-height:calc(100dvh - 300px)}.lesson-panel{top:140px}.lesson-panel h2{font-size:21px}.landing-copy{margin-left:5vw;width:440px;padding-top:115px}.landing h1{font-size:60px}.game-bottom>span{max-width:40%}.piece-roster button{padding:8px 10px}}
@media(max-width:750px){.game-header{top:18px;left:18px;right:18px}.play-shell .wordmark{font-size:14px;letter-spacing:.14em;gap:8px}.wordmark>svg{width:25px}.wordmark small{font-size:6px;letter-spacing:.12em}.game-tools{gap:4px}.game-tools button{font-size:9px;padding:7px;min-height:32px}.game-tools [data-action=fullscreen]{display:none}.landing{background:linear-gradient(0deg,#080d14fa 0%,#080d14e8 45%,#080d1444 100%)}.landing-copy{padding:103px 0 40px;margin:0 auto;width:calc(100% - 42px);max-width:440px}.landing h1{font-size:51px;margin:15px 0 17px}.landing-copy>p{font-size:12px;margin-bottom:20px}.landing .eyebrow{font-size:8px}.play-shell .choice{padding:12px 14px;gap:12px}.choice>div{font-size:13px}.choice small{font-size:9px}.home-facts{margin-top:22px;gap:20px}.demo-label{display:none}.setup-fields{gap:8px}.scoreboard{top:78px;padding:7px 16px;min-width:260px;gap:16px}.team b{font-size:24px}.team span{max-width:110px;font-size:11px}.turn-banner{top:132px;padding:8px 14px;min-width:215px}.turn-banner>span{font-size:11px}.turn-banner small{font-size:8px}.match-sidebar{display:none;top:185px;left:15px;width:calc(100% - 30px);max-height:calc(100dvh - 355px);z-index:3;background:#101c29f5}.show-info .match-sidebar{display:block}.play-shell .info-toggle{display:inline-flex}.game-bottom{left:15px;right:15px;bottom:34px;gap:5px;flex-wrap:wrap}.game-bottom button{font-size:9px;padding:8px}.game-bottom>span{max-width:100%;width:100%;flex-basis:100%;text-align:center;margin:0 0 2px;font-size:9px}.game-bottom [data-action=top]{margin-left:auto}.piece-roster{bottom:112px;gap:4px;padding:5px;max-width:96%;min-width:max-content}.piece-roster button{padding:6px 9px}.piece-roster svg{width:19px;height:19px}.piece-roster span{font-size:7px}.camera-note{font-size:6px;bottom:13px;white-space:normal;width:90%;text-align:center}.lesson-panel{left:14px;right:14px;top:auto;bottom:160px;width:auto;max-height:34dvh;padding:16px;background:#101c29f5;z-index:3}.lesson-panel h2{font-size:20px;margin:15px 0 10px}.lesson-panel p{font-size:11px;line-height:1.75}.lesson-goal{margin:12px 0;padding:10px;font-size:10px}.lesson-controls{margin-top:13px}.lesson-dots{margin-top:12px}.lesson-success{font-size:10px}.play-shell[data-screen=tutorial] .scene-canvas{top:75px;height:calc(100% - 270px)}.play-shell[data-screen=tutorial] .turn-banner{display:none}.play-shell[data-screen=tutorial] .piece-roster{display:none}.play-shell[data-screen=tutorial] .game-bottom{bottom:32px}.play-shell[data-screen=tutorial] .lesson-panel{bottom:85px;max-height:37dvh}.play-shell[data-screen=tutorial] .info-toggle{display:none}.rule-pieces{grid-template-columns:1fr}.rule-pieces>div{gap:7px}.game-dialog{padding:22px}.game-dialog h2{font-size:25px}.play-shell .toast{bottom:185px;font-size:10px}.game-overlay .axis-labels{display:none}}
@media(max-height:760px) and (min-width:751px){.landing-copy{padding-top:105px;padding-bottom:25px}.landing h1{font-size:51px;margin:15px 0}.landing-copy>p{margin-bottom:16px;font-size:12px}.play-shell .choice{padding:11px 15px}.home-facts{margin-top:17px}.lesson-panel{top:115px;max-height:calc(100dvh - 235px);padding:19px}.lesson-panel h2{margin:17px 0 12px;font-size:21px}.lesson-panel p{font-size:11px;line-height:1.8}.lesson-goal{margin:13px 0 9px}.lesson-controls{margin-top:14px}}
