:root{--night:#10130f;--panel:#171a16;--panel-2:#1b1e19;--edge:#2c3129;--paper:#ece6d4;--muted:#8e9587;--soft:#bdc1b4;--gold:#d8bb74;--lime:#c5ed70;--red:#d77363;--blue:#73a9d8;--font:'DM Sans',Arial,sans-serif;--display:'Manrope',Arial,sans-serif;--mono:'DM Mono',Consolas,monospace}*{box-sizing:border-box}html{min-width:340px;min-height:100%;background:var(--night)}body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 45% -25%,#263024 0,transparent 46%),var(--night);color:#edf0e8;font-family:var(--font);font-size:13px}.app-shell{min-height:100vh}.topbar{height:62px;display:flex;align-items:center;justify-content:space-between;padding:0 34px;border-bottom:1px solid #282d27;background:#121511d9}.brand{display:flex;align-items:center;gap:10px;color:#f3f3ed;text-decoration:none;font:800 16px var(--display);letter-spacing:-.7px}.brand-dot{color:var(--lime)}.brand-mark{width:25px;height:25px;border:1px solid #536043;border-radius:8px;display:flex;align-items:center;justify-content:center;gap:2px;transform:rotate(-7deg)}.brand-mark i{display:block;width:2px;height:8px;border-radius:2px;background:var(--lime)}.brand-mark i:nth-child(2),.brand-mark i:nth-child(4){height:13px}.brand-mark i:nth-child(3){height:18px}.top-context{display:flex;align-items:center;gap:10px;color:#939a8d;font:9px var(--mono);letter-spacing:1px}.context-line{width:19px;height:1px;background:var(--gold)}.top-context strong{font-weight:500;color:#d9dccf}.context-slash{color:#596052}.top-actions{display:flex;align-items:center;gap:13px}.local-state{font:8px var(--mono);letter-spacing:.8px;color:#9daa8d;display:flex;align-items:center;gap:6px}.local-state i,.rec-dot,.state-orb,.chronicle-live-dot{width:5px;height:5px;border-radius:50%;display:block;background:var(--lime);box-shadow:0 0 9px #c5ed7066}.help-button,.profile-mark{width:25px;height:25px;border:1px solid #3b4237;border-radius:50%;display:grid;place-items:center;background:#20251d;color:#c6ceba;font:11px var(--mono)}.help-button{cursor:pointer}.profile-mark{color:var(--lime);font:600 10px var(--display)}.main-content{width:min(1460px,100%);margin:auto;padding:0 34px}.intro-row{display:flex;justify-content:space-between;align-items:flex-end;padding:29px 0 19px}.eyebrow{font:9px var(--mono);letter-spacing:1.15px;color:#a4aa98;display:flex;align-items:center;gap:8px}.eyebrow-star{color:var(--gold);font-size:11px}.intro-row h1{font:700 clamp(28px,3vw,39px)/1.1 var(--display);letter-spacing:-1.8px;margin:8px 0 6px;color:var(--paper)}.intro-row h1 span{color:var(--gold)}.intro-copy{margin:0;color:#9ba193;font-size:11px}.match-state{display:flex;align-items:center;gap:10px;padding:8px 11px;border:1px solid #353b31;border-radius:6px;margin-bottom:2px;background:#171b16}.match-state>div{display:grid;gap:3px}.match-state strong{font:9px var(--mono);letter-spacing:.7px;color:#c4caba}.match-state small{font:8px var(--mono);letter-spacing:.5px;color:#778071}.state-orb{background:#787d6f;box-shadow:none}.match-state.ready .state-orb,.match-state.live .state-orb{background:var(--lime);box-shadow:0 0 9px #c5ed7080}.match-state.live strong{color:var(--lime)}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:13px;align-items:stretch}.play-column{min-width:0}.scene-card,.chronicle-card,.player-card,.objective-card{background:linear-gradient(145deg,#191c18,#151815);border:1px solid #30352d;border-radius:8px;overflow:hidden}.scene-toolbar{height:42px;display:flex;align-items:center;justify-content:space-between;padding:0 13px;border-bottom:1px solid #2b3028}.scene-title{display:flex;align-items:center;gap:7px;font:8px var(--mono);letter-spacing:.85px;color:#bbc0b3}.rec-dot{background:#747d6e;box-shadow:none}.rec-dot.live{background:#ed6957;box-shadow:0 0 8px #ed695788}.scene-separator{color:#636a5f}.scene-title #scene-subtitle{color:#868d80}.scene-actions{display:flex;align-items:center;gap:6px}.camera-select-wrap{height:25px;display:flex;align-items:center;gap:6px;padding:0 7px;background:#20241e;border:1px solid #373d33;border-radius:4px;color:#949b8d;font:8px var(--mono)}.camera-select-wrap select{min-width:74px;max-width:154px;appearance:none;border:0;background:transparent;color:#b7bead;outline:0;font:9px var(--font)}.camera-select-wrap select option{background:#171a16}.camera-select-wrap b{font-weight:400;color:#a4aa98}.small-tool{width:25px;height:25px;border-radius:4px;background:#20241e;border:1px solid #373d33;color:#afb7a6;font-size:14px;cursor:pointer}.small-tool:hover{border-color:#7a8758;color:var(--lime)}.camera-stage{height:clamp(330px,37vw,520px);position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 48%,#293225 0,#1b211a 48%,#131612 100%);touch-action:none}.camera-stage video,.camera-stage canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.camera-stage video{display:none;transform:scaleX(-1)}.camera-stage video.visible{display:block}.camera-stage canvas{z-index:1;pointer-events:none}.scene-shade{position:absolute;inset:0;z-index:2;pointer-events:none;background:radial-gradient(ellipse at center,transparent 46%,#10130f38 100%)}.stage-corner{position:absolute;z-index:3;width:15px;height:15px;opacity:.62;pointer-events:none}.stage-corner.tl{top:13px;left:13px;border-top:1px solid #c5cbb5;border-left:1px solid #c5cbb5}.stage-corner.tr{top:13px;right:13px;border-top:1px solid #c5cbb5;border-right:1px solid #c5cbb5}.stage-corner.bl{bottom:13px;left:13px;border-bottom:1px solid #c5cbb5;border-left:1px solid #c5cbb5}.stage-corner.br{bottom:13px;right:13px;border-bottom:1px solid #c5cbb5;border-right:1px solid #c5cbb5}.camera-empty,.camera-error{position:absolute;z-index:4;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center}.camera-empty{background:radial-gradient(ellipse at center,#1c241b70,transparent 70%)}.empty-emblem{width:78px;height:78px;border:1px solid #82905d60;border-radius:50%;display:grid;place-items:center;position:relative;margin:0 0 16px}.empty-emblem:before,.empty-emblem:after{content:"";position:absolute;border:1px solid #81905b36;border-radius:50%}.empty-emblem:before{inset:9px}.empty-emblem:after{inset:-9px;border-style:dashed}.empty-emblem span{color:var(--gold);font-size:28px}.empty-emblem i,.empty-emblem b{position:absolute;width:4px;height:4px;border-radius:50%;background:var(--lime)}.empty-emblem i{top:7px;right:9px}.empty-emblem b{bottom:11px;left:7px}.empty-overline{font:8px var(--mono);letter-spacing:1.5px;color:var(--gold);margin-bottom:8px}.camera-empty h2{font:600 21px/1.25 var(--display);letter-spacing:-.6px;color:#e8e7db;margin:0}.camera-empty p{font-size:10px;line-height:1.6;color:#a0a697;margin:9px 0 15px}.open-camera-button{height:35px;display:flex;align-items:center;gap:9px;padding:0 11px;background:var(--lime);color:#202819;border:0;border-radius:4px;font:600 10px var(--font);cursor:pointer}.open-camera-button span{font-size:12px}.open-camera-button b{font-size:13px;margin-left:12px}.privacy-hint{margin-top:10px;color:#969e8d;font:8px var(--mono)}.camera-error{background:#11140fee}.camera-error>span{width:28px;height:28px;border:1px solid #956653;color:#efab89;border-radius:50%;display:grid;place-items:center;font:12px var(--mono)}.camera-error h3{font:600 16px var(--display);margin:10px 0 4px}.camera-error p{max-width:290px;color:#aaa;font-size:10px}.camera-error button{background:#2a3220;border:1px solid #5c6d41;color:#d8e9ba;border-radius:4px;padding:7px 10px;cursor:pointer}.stage-meta{position:absolute;z-index:3;display:flex;align-items:center;gap:8px;color:#d7dacc;font:8px var(--mono);letter-spacing:.8px;pointer-events:none;text-shadow:0 1px 3px #000}.meta-top{left:18px;top:16px}.meta-top span+span{color:#b3baa7}.meta-bottom{left:18px;bottom:15px;color:#c6cbbd}.meta-bottom #hand-state-dot{width:5px;height:5px;background:#818a79;border-radius:50%}.meta-bottom #hand-state-dot.active{background:var(--lime);box-shadow:0 0 7px #c5ed70}.meta-separator{color:var(--gold)}.calibration-cue{position:absolute;z-index:5;left:50%;top:18px;transform:translateX(-50%);display:flex;align-items:center;gap:10px;padding:9px 12px;background:#151a13e8;border:1px solid #78884d;border-radius:5px;box-shadow:0 6px 20px #0005;white-space:nowrap}.cue-number{width:21px;height:21px;display:grid;place-items:center;background:#333c25;border-radius:4px;color:var(--lime);font:10px var(--mono)}#cue-text{font-size:10px;color:#e1e8d6}.cue-order{font:7px var(--mono);letter-spacing:.8px;color:#949e87;border-left:1px solid #4a5141;padding-left:9px}.scroll-lane{position:absolute;z-index:3;right:0;top:25%;bottom:22%;width:11%;display:none;align-items:center;justify-content:center;flex-direction:column;gap:8px;border-left:1px dashed #d5d8ba66;background:linear-gradient(90deg,transparent,#14181124);pointer-events:none;opacity:.7}.scroll-lane.visible{display:flex}.scroll-lane span{writing-mode:vertical-rl;transform:rotate(180deg);font:7px var(--mono);letter-spacing:1px;color:#e6e7d6}.scroll-lane i{height:23px;width:1px;background:linear-gradient(var(--gold),transparent)}.toast{position:absolute;z-index:8;left:50%;bottom:48px;transform:translate(-50%,10px);opacity:0;pointer-events:none;padding:8px 12px;border-radius:4px;background:#181d15ed;border:1px solid #687849;color:#e5edda;font-size:10px;white-space:nowrap;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}.scene-footer{height:43px;display:flex;align-items:center;gap:13px;padding:0 13px;border-top:1px solid #2b3028}.scene-stat{display:grid;gap:3px}.scene-stat>span{font:7px var(--mono);letter-spacing:.8px;color:#7d8577}.scene-stat strong{font:9px var(--mono);font-weight:400;color:#bbc4af}.scene-divider{height:21px;width:1px;background:#33382f}.wide-stat{min-width:0}.wide-stat strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:270px}.footer-spacer{flex:1}.text-control{border:0;background:none;color:#939b89;font:8px var(--mono);letter-spacing:.6px;cursor:pointer}.text-control:hover{color:var(--red)}.battle-controls{display:flex;align-items:center;min-height:62px;gap:14px;padding:9px 12px;margin-top:9px;background:#191c18;border:1px solid #30352d;border-radius:7px}.battle-turn{display:flex;align-items:center;gap:9px;min-width:148px}.turn-icon{width:30px;height:30px;border:1px solid #70463e;background:#34231f;border-radius:6px;display:grid;place-items:center;color:#edaa91;font-size:15px}.battle-turn>div{display:grid;gap:4px}.overline,.player-kicker,.objective-card>div>span{font:7px var(--mono);letter-spacing:.8px;color:#92998b}.battle-turn strong{font:9px var(--mono);letter-spacing:.4px;color:#e5b1a1}.turn-message{flex:1;font-size:10px;color:#a6ad9d}.control-buttons{display:flex;gap:6px}.primary-button,.secondary-button{height:31px;border-radius:4px;display:flex;align-items:center;justify-content:center;gap:6px;padding:0 10px;font:600 9px var(--font);cursor:pointer;white-space:nowrap}.primary-button{border:1px solid #d2eb91;background:var(--lime);color:#202719}.primary-button:disabled,.secondary-button:disabled{opacity:.4;cursor:not-allowed}.secondary-button{border:1px solid #444a3e;background:#22261f;color:#c6cbbd}.secondary-button:hover:not(:disabled){border-color:#788554;color:#e0edc7}.restart-button{width:32px;padding:0;font-size:14px}.players-row{display:grid;grid-template-columns:minmax(0,1fr) 26px minmax(0,1fr) 165px;gap:8px;align-items:stretch;margin-top:9px}.player-card{display:flex;align-items:center;gap:8px;padding:8px 9px;min-width:0}.player-insignia{width:29px;height:29px;border-radius:7px;display:grid;place-items:center;font-size:16px;flex:none}.crimson-insignia{background:#3a2621;color:#e48d76;border:1px solid #71483a}.azure-insignia{background:#202e39;color:#91bce1;border:1px solid #3b596d}.player-copy{display:grid;gap:3px;min-width:0}.player-kicker{font-size:6px;letter-spacing:.7px}.player-copy strong{font:600 10px var(--display);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.crimson-card .player-copy strong{color:#e8b7a6}.azure-card .player-copy strong{color:#a9c7e0}.player-copy small{font-size:7px;color:#899183;white-space:nowrap}.player-turn-pill{margin-left:auto;flex:none;color:#d9a391;border:1px solid #69483b;background:#30231f;border-radius:3px;padding:4px 5px;font:6px var(--mono);letter-spacing:.4px}.idle-pill{color:#9ab4cb;border-color:#3e5668;background:#202b32}.versus{display:grid;place-items:center;color:#77806e;font:8px var(--mono)}.objective-card{display:flex;align-items:center;gap:8px;padding:8px}.objective-icon{color:var(--gold);font-size:17px}.objective-card>div{display:grid;gap:4px}.objective-card>div>span{font-size:6px}.objective-card strong{font:500 8px/1.35 var(--font);color:#c4c9ba}.chronicle-card{display:flex;flex-direction:column;min-height:100%;max-height:calc(clamp(330px,37vw,520px) + 86px)}.chronicle-head{height:66px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 15px;border-bottom:1px solid #2c3029}.chronicle-overline{display:flex;align-items:center;gap:6px;color:#a2aa96;font:7px var(--mono);letter-spacing:1px}.chronicle-overline span{width:5px;height:5px;border-radius:50%;background:var(--gold)}.chronicle-head h2{font:600 15px var(--display);letter-spacing:-.4px;color:#eae8dc;margin:5px 0 0}.log-count{font:13px var(--mono);color:#77806e}.chronicle-summary{height:32px;flex:none;padding:0 15px;display:flex;align-items:center;gap:7px;border-bottom:1px solid #292e27;color:#a5ad9e;font-size:9px}.chronicle-live-dot{width:5px;height:5px;background:#788271;box-shadow:none}.chronicle-live-dot.active{background:var(--lime);box-shadow:0 0 6px #c5ed70}.summary-line{height:1px;flex:1;background:linear-gradient(90deg,#454c3c,transparent)}.chronicle-list{flex:1;overflow-y:auto;min-height:180px;padding:9px 12px 13px;scrollbar-color:#555d49 #191c18;scrollbar-width:thin;overscroll-behavior:contain}.chronicle-empty{height:100%;min-height:210px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:20px}.chronicle-empty>span{font-size:23px;color:var(--gold);margin-bottom:8px}.chronicle-empty strong{font:600 12px var(--display);color:#d6d9cb}.chronicle-empty p{font-size:9px;line-height:1.6;color:#929a8d;max-width:200px;margin:6px 0 12px}.chronicle-empty small{font:7px/1.5 var(--mono);color:#798270;max-width:205px}.log-entry{position:relative;display:grid;grid-template-columns:25px 1fr;gap:8px;padding:9px 2px 10px;border-bottom:1px solid #2a2f28;animation:log-in .3s ease both}.log-entry:last-child{border-bottom:0}@keyframes log-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.log-index{font:8px var(--mono);color:#707a66;padding-top:2px}.log-content{min-width:0}.log-tag{display:inline-block;margin-bottom:4px;font:6px var(--mono);letter-spacing:.6px;color:#a8b58d}.log-tag.red{color:#e1957b}.log-tag.blue{color:#8cb9dc}.log-tag.gold{color:var(--gold)}.log-tag.system{color:#afaa94}.log-content p{font-size:9px;line-height:1.45;color:#c1c8b9;margin:0}.log-time{display:block;margin-top:4px;color:#717a6e;font:7px var(--mono)}.chronicle-foot{height:34px;flex:none;border-top:1px solid #2c3029;display:flex;align-items:center;gap:6px;padding:0 11px;color:#808879;font:6px var(--mono);letter-spacing:.45px}.scroll-hint-icon{font-size:11px;color:#b4bc9d}.chronicle-foot-key{margin-left:auto;color:#b6a575}.guide-strip{display:grid;grid-template-columns:1.1fr repeat(4,1fr);gap:0;margin-top:13px;border:1px solid #30352d;border-radius:7px;background:#171a16;overflow:hidden}.guide-title,.guide-step{min-height:61px;display:flex;align-items:center;gap:9px;padding:8px 11px;border-right:1px solid #2d322b}.guide-title{gap:9px}.guide-title>div,.guide-step>div{display:grid;gap:4px}.guide-title>div>span{font:7px var(--mono);letter-spacing:.8px;color:#8e9787}.guide-title>div>strong{font:600 10px var(--display);color:#d9ddce;white-space:nowrap}.guide-spark{color:var(--gold);font-size:17px}.guide-step:last-child{border:0}.step-index{align-self:flex-start;margin-top:6px;font:7px var(--mono);color:#737b6e}.gesture-glyph{width:25px;height:25px;display:grid;place-items:center;border-radius:5px;font-size:14px}.open-glyph{background:#2b3422;color:var(--lime)}.pinch-glyph{background:#27342e;color:#8bd5b6}.fist-glyph{background:#352522;color:#edaa91}.swipe-glyph{background:#2f2b20;color:var(--gold)}.guide-step>div>strong{font:600 8px var(--font);color:#cbd1c2;white-space:nowrap}.guide-step>div>small{font-size:7px;color:#838b7e;line-height:1.3}.page-footer{height:50px;display:flex;align-items:center;justify-content:space-between;color:#777f71;font:7px var(--mono);letter-spacing:.7px}.page-footer i{font-style:normal;color:var(--gold);padding:0 4px}.page-footer button{padding:5px 0;border:0;background:none;color:#a9b097;font:7px var(--mono);letter-spacing:.6px;cursor:pointer}.page-footer button b{color:var(--gold);font-size:10px;margin-left:4px}.hidden{display:none!important}.modal{position:fixed;inset:0;z-index:20;display:grid;place-items:center}.modal-backdrop{position:absolute;inset:0;background:#070906d9;backdrop-filter:blur(5px)}.rules-card{position:relative;width:min(470px,calc(100vw - 30px));max-height:min(80vh,650px);display:flex;flex-direction:column;background:#1b1e19;border:1px solid #444a3c;border-radius:9px;padding:25px}.modal-close{position:absolute;right:14px;top:10px;border:0;background:none;color:#a5ac9b;font-size:24px;cursor:pointer}.rules-card h2{font:650 24px var(--display);letter-spacing:-1px;color:#eeeade;margin:8px 0}.rules-scroll{overflow:auto;padding-right:10px;color:#b5bdab;font-size:10px;line-height:1.65}.rules-scroll p{margin:9px 0}.rules-scroll b{color:#e2d5aa}.rules-done{align-self:flex-end;margin-top:10px;padding:0 14px}
@media(max-width:1140px){.main-content{padding:0 22px}.game-layout{grid-template-columns:minmax(0,1fr) 275px}.players-row{grid-template-columns:minmax(0,1fr) 22px minmax(0,1fr)}.objective-card{grid-column:1/-1;min-height:40px}.guide-strip{grid-template-columns:1fr 1fr}.guide-title,.guide-step{border-bottom:1px solid #2d322b}.guide-step:nth-child(3){border-right:0}.guide-step:nth-child(4),.guide-step:nth-child(5){border-bottom:0}.chronicle-card{max-height:calc(clamp(330px,37vw,520px) + 86px)}}
@media(max-width:790px){.topbar{padding:0 16px}.main-content{padding:0 14px}.top-context{font-size:7px}.intro-row{padding-top:22px}.game-layout{grid-template-columns:1fr}.camera-stage{height:clamp(330px,65vw,520px)}.chronicle-card{min-height:300px;max-height:370px}.chronicle-list{min-height:220px}.battle-controls{flex-wrap:wrap;gap:9px}.turn-message{min-width:40%;}.control-buttons{margin-left:auto}.players-row{grid-template-columns:minmax(0,1fr) 22px minmax(0,1fr)}.objective-card{grid-column:1/-1}.guide-strip{grid-template-columns:1fr 1fr}.chronicle-foot{font-size:6px}.scene-footer{gap:9px}}
@media(max-width:520px){.topbar{height:54px}.brand{font-size:14px}.brand-mark{width:23px;height:23px}.top-context{display:none}.top-actions{gap:9px}.main-content{padding:0 10px}.intro-row{align-items:flex-start;gap:10px;flex-direction:column;padding:20px 0 13px}.intro-row h1{font-size:30px}.intro-copy{font-size:10px}.match-state{align-self:flex-start}.scene-toolbar{padding:0 7px}.scene-title{font-size:7px;gap:5px}.camera-select-wrap{gap:3px;padding:0 5px}.camera-select-wrap select{min-width:59px;max-width:95px;font-size:8px}.small-tool{width:23px;height:23px}.camera-stage{height:clamp(310px,83vw,430px)}.camera-empty h2{font-size:19px}.camera-empty p{font-size:9px}.desktop-only{display:none}.calibration-cue{top:35px;max-width:calc(100% - 24px);white-space:normal;padding:7px}.cue-order{display:none}.scene-footer{height:39px;padding:0 7px;gap:7px}.scene-stat>span{font-size:6px}.scene-stat strong{font-size:7px}.wide-stat{display:none}.text-control{font-size:7px}.battle-controls{padding:8px;gap:8px}.battle-turn{min-width:130px}.turn-message{order:3;flex-basis:100%;font-size:9px}.primary-button,.secondary-button{height:29px;padding:0 7px;font-size:8px}.players-row{grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr);gap:4px}.player-card{padding:6px;gap:6px}.player-insignia{width:24px;height:24px;font-size:13px}.player-copy strong{font-size:8px}.player-copy small{font-size:6px}.player-turn-pill{display:none}.objective-card{padding:6px}.guide-strip{grid-template-columns:1fr 1fr}.guide-title,.guide-step{min-height:53px;padding:6px}.guide-title>div>strong{font-size:8px}.guide-step>div>strong{font-size:7px}.guide-step>div>small{font-size:6px}.gesture-glyph{width:21px;height:21px;font-size:12px}.step-index{font-size:6px}.page-footer{font-size:6px;height:45px}.page-footer>span:nth-child(2){display:none}.page-footer button{font-size:6px}}
#vertical-flip-button.active{border-color:#82965b;color:var(--lime);background:#29301f}
.hand-sides{position:absolute;z-index:4;top:14px;right:17px;display:flex;gap:5px;pointer-events:none}.hand-side{display:flex;align-items:center;gap:5px;padding:5px 7px;background:#141811df;border:1px solid #454c3d;border-radius:4px;color:#adb5a4;font:7px var(--mono);letter-spacing:.5px}.hand-side i{width:5px;height:5px;border-radius:50%;background:#596153}.hand-side b{font-weight:400;color:#727a6e}.hand-side.detected{background:#192116ed;border-color:#627448;color:#e0e8d2}.hand-side.detected i{background:var(--lime);box-shadow:0 0 7px #c5ed70}.hand-side.detected b{color:var(--lime)}.right-side.detected{border-color:#526d75}.right-side.detected i{background:#77d3c3;box-shadow:0 0 7px #77d3c388}.right-side.detected b{color:#91dfd1}
.opacity-menu{position:relative;z-index:6}.opacity-menu>summary{display:grid;place-items:center;list-style:none;cursor:pointer}.opacity-menu>summary::-webkit-details-marker{display:none}.opacity-menu[open]>summary{border-color:#8b9667;color:var(--lime)}.opacity-popover{position:absolute;right:0;top:calc(100% + 8px);width:190px;padding:11px 12px;background:#171b15f5;border:1px solid #5a6349;border-radius:6px;box-shadow:0 9px 24px #0009;display:grid;gap:7px}.opacity-popover label{display:flex;justify-content:space-between;align-items:center;color:#cbd2bf;font:8px var(--mono);letter-spacing:.6px}.opacity-popover output{color:var(--gold)}.opacity-popover input{width:100%;height:14px;margin:0 0 3px;accent-color:var(--lime);cursor:pointer}@media(max-width:520px){.opacity-popover{right:-85px;width:175px}}
.gesture-settings{position:relative;z-index:7}.gesture-settings>summary{display:grid;place-items:center;list-style:none;cursor:pointer}.gesture-settings>summary::-webkit-details-marker{display:none}.gesture-settings[open]>summary{border-color:#8b9667;color:var(--lime)}.gesture-popover{position:absolute;right:0;top:calc(100% + 8px);width:232px;padding:12px;background:#171b15f7;border:1px solid #5a6349;border-radius:6px;box-shadow:0 9px 24px #0009;display:grid;gap:7px}.gesture-popover>strong{font:8px var(--mono);letter-spacing:.8px;color:var(--lime);padding-bottom:3px;border-bottom:1px solid #343a30}.gesture-popover>label:not(.command-guard-label){display:flex;justify-content:space-between;align-items:center;color:#cbd2bf;font:8px var(--mono);letter-spacing:.35px}.gesture-popover output{color:var(--gold)}.gesture-popover input[type=range]{width:100%;height:14px;margin:0 0 3px;accent-color:var(--lime);cursor:pointer}.gesture-popover .command-guard-label{display:grid;grid-template-columns:16px 1fr;align-items:center;column-gap:6px;padding-top:6px;border-top:1px solid #343a30;color:#e0e7d5;font:9px var(--font);cursor:pointer}.command-guard-label input{grid-row:span 2;accent-color:var(--lime)}.command-guard-label small{grid-column:2;color:#929a89;font:7px var(--mono);letter-spacing:.2px}@media(max-width:520px){.gesture-popover{right:-56px;width:220px}}
.game-layout{grid-template-columns:minmax(0,1fr)}.stage-chronicle{position:absolute;z-index:7;left:12px;top:12px;width:clamp(210px,25vw,300px);height:calc(100% - 24px);max-height:none;min-height:0;border:1px solid rgba(155,119,68,.8);border-radius:12px;background:linear-gradient(155deg,rgba(244,226,193,.52),rgba(198,164,108,.30));backdrop-filter:blur(12px) saturate(1.15);-webkit-backdrop-filter:blur(12px) saturate(1.15);box-shadow:0 10px 28px rgba(0,0,0,.22),inset 0 0 0 1px rgba(255,246,222,.25);color:#2b1b0b;pointer-events:auto}.chronicle-clock{height:43px;flex:none;display:grid;grid-template-columns:1fr auto;grid-template-rows:10px 1fr;align-items:center;column-gap:8px;padding:5px 12px 4px;border-bottom:1px solid rgba(90,61,31,.24);color:#5a3d1f}.chronicle-clock span{grid-column:1/3;font:6px var(--mono);letter-spacing:1px;color:#765a35}.chronicle-clock #system-date{font:8px var(--mono);white-space:nowrap}.chronicle-clock #system-time{font:600 11px var(--mono);font-variant-numeric:tabular-nums;color:#35220d}.stage-chronicle .chronicle-head{height:58px;padding:0 12px;border-color:rgba(90,61,31,.22)}.stage-chronicle .chronicle-overline{color:#6a512f}.stage-chronicle .chronicle-overline span{background:#a4772f}.stage-chronicle .chronicle-head h2{font:600 15px Georgia,serif;color:#2b1b0b}.stage-chronicle .log-count{color:#765a35}.stage-chronicle .chronicle-summary{height:29px;padding:0 12px;border-color:rgba(90,61,31,.2);color:#554126;font-size:8px}.stage-chronicle .chronicle-live-dot{background:#9c875f}.stage-chronicle .chronicle-live-dot.active{background:#668a3d;box-shadow:0 0 6px #668a3d99}.stage-chronicle .summary-line{background:linear-gradient(90deg,#8a704d88,transparent)}.stage-chronicle .chronicle-list{min-height:0;padding:7px 10px 8px;scrollbar-color:#98794e66 transparent}.stage-chronicle .chronicle-empty{min-height:0;padding:8px}.stage-chronicle .chronicle-empty>span{color:#a4772f}.stage-chronicle .chronicle-empty strong{color:#382817}.stage-chronicle .chronicle-empty p{color:#554630}.stage-chronicle .chronicle-empty small{color:#6b5a40}.stage-chronicle .log-entry{grid-template-columns:22px 1fr;gap:6px;padding:7px 1px;border-color:rgba(90,61,31,.2)}.stage-chronicle .log-index{color:#765a35}.stage-chronicle .log-tag{font-size:6px}.stage-chronicle .log-tag.red{color:#8d3529}.stage-chronicle .log-tag.blue{color:#315d82}.stage-chronicle .log-tag.gold{color:#8c621f}.stage-chronicle .log-tag.system{color:#645339}.stage-chronicle .log-content p{font-size:8px;line-height:1.4;color:#302316;text-shadow:0 1px rgba(255,249,230,.35)}.stage-chronicle .log-time{color:#705d42}.stage-chronicle .chronicle-foot{height:27px;padding:0 9px;border-color:rgba(90,61,31,.24);color:#705d42;font-size:6px}.stage-chronicle .scroll-hint-icon,.stage-chronicle .chronicle-foot-key{color:#765a35}@media(max-width:520px){.stage-chronicle{left:8px;top:8px;width:min(210px,56%);height:calc(100% - 16px);border-radius:9px}.stage-chronicle .chronicle-head{height:53px}.chronicle-clock{height:40px;padding-left:9px;padding-right:9px}.stage-chronicle .chronicle-summary{padding:0 9px}.stage-chronicle .chronicle-list{padding:5px 8px}.stage-chronicle .chronicle-foot{font-size:5px;letter-spacing:.25px}}
body.xr-active .stage-chronicle{left:12px;right:auto;top:14vh;width:min(280px,34vw);height:72vh;background:linear-gradient(155deg,rgba(244,226,193,.52),rgba(198,164,108,.30));border-color:rgba(155,119,68,.8);backdrop-filter:blur(12px) saturate(1.15)}body.xr-active .stage-chronicle .chronicle-head,body.xr-active .stage-chronicle .chronicle-summary,body.xr-active .stage-chronicle .chronicle-foot{background:transparent}
.stage-chronicle{width:clamp(280px,28vw,360px)}.stage-chronicle .chronicle-clock{height:60px;grid-template-rows:20px 1fr;column-gap:16px;padding:7px 16px}.stage-chronicle .chronicle-clock span{font-size:12px}.stage-chronicle .chronicle-clock #system-date{font-size:16px}.stage-chronicle .chronicle-clock #system-time{font-size:22px}.stage-chronicle .chronicle-head{height:88px;padding:0 24px}.stage-chronicle .chronicle-overline{font-size:14px;gap:12px}.stage-chronicle .chronicle-overline span{width:8px;height:8px}.stage-chronicle .chronicle-head h2{font-size:30px;margin-top:10px}.stage-chronicle .log-count{font-size:26px}.stage-chronicle .chronicle-summary{height:44px;padding:0 24px;gap:12px;font-size:16px}.stage-chronicle .chronicle-live-dot{width:8px;height:8px}.stage-chronicle .chronicle-list{padding:14px 20px 16px}.stage-chronicle .chronicle-empty{padding:16px}.stage-chronicle .chronicle-empty>span{font-size:46px;margin-bottom:16px}.stage-chronicle .chronicle-empty strong{font-size:24px}.stage-chronicle .chronicle-empty p{font-size:18px;max-width:none;margin:12px 0 20px}.stage-chronicle .chronicle-empty small{font-size:14px;max-width:none}.stage-chronicle .log-entry{grid-template-columns:44px 1fr;gap:12px;padding:14px 2px 16px}.stage-chronicle .log-index{font-size:16px;padding-top:4px}.stage-chronicle .log-tag{font-size:12px;letter-spacing:1.2px;margin-bottom:8px}.stage-chronicle .log-content p{font-size:16px;line-height:1.45}.stage-chronicle .log-time{font-size:14px;margin-top:8px}.stage-chronicle .chronicle-foot{height:54px;padding:0 18px;gap:12px;font-size:12px;letter-spacing:.8px}.stage-chronicle .scroll-hint-icon{font-size:22px}@media(max-width:520px){.stage-chronicle{width:min(300px,88%)}.stage-chronicle .chronicle-clock{height:66px;grid-template-columns:1fr;grid-template-rows:16px 1fr 1fr;row-gap:2px;padding:5px 12px}.stage-chronicle .chronicle-clock span{grid-column:1;font-size:12px}.stage-chronicle .chronicle-clock #system-date{font-size:16px}.stage-chronicle .chronicle-clock #system-time{font-size:22px}.stage-chronicle .chronicle-head{height:82px;padding:0 12px}.stage-chronicle .chronicle-overline{font-size:12px}.stage-chronicle .chronicle-head h2{font-size:28px;margin-top:8px}.stage-chronicle .log-count{font-size:24px}.stage-chronicle .chronicle-summary{height:40px;padding:0 12px;font-size:15px}.stage-chronicle .chronicle-list{padding:8px 12px}.stage-chronicle .chronicle-empty>span{font-size:46px}.stage-chronicle .chronicle-empty strong{font-size:24px}.stage-chronicle .chronicle-empty p{font-size:18px}.stage-chronicle .chronicle-empty small{font-size:14px}.stage-chronicle .log-entry{grid-template-columns:40px 1fr;gap:10px;padding:12px 1px 14px}.stage-chronicle .log-index{font-size:16px}.stage-chronicle .log-tag{font-size:12px}.stage-chronicle .log-content p{font-size:16px}.stage-chronicle .log-time{font-size:14px}.stage-chronicle .chronicle-foot{height:50px;padding:0 12px;gap:8px;font-size:11px}.stage-chronicle .scroll-hint-icon{font-size:20px}}
.stage-chronicle{width:clamp(280px,28vw,360px)}.stage-chronicle .chronicle-clock{height:60px;grid-template-rows:20px 1fr;column-gap:16px;padding:7px 16px}.stage-chronicle .chronicle-clock span{font-size:12px}.stage-chronicle .chronicle-clock #system-date{font-size:16px}.stage-chronicle .chronicle-clock #system-time{font-size:22px}.stage-chronicle .chronicle-head{height:88px;padding:0 24px}.stage-chronicle .chronicle-overline{font-size:14px;gap:12px}.stage-chronicle .chronicle-overline span{width:8px;height:8px}.stage-chronicle .chronicle-head h2{font-size:30px;margin-top:10px}.stage-chronicle .log-count{font-size:26px}.stage-chronicle .chronicle-summary{height:44px;padding:0 24px;gap:12px;font-size:16px}.stage-chronicle .chronicle-live-dot{width:8px;height:8px}.stage-chronicle .chronicle-list{padding:14px 20px 16px}.stage-chronicle .chronicle-empty{padding:16px}.stage-chronicle .chronicle-empty>span{font-size:46px;margin-bottom:16px}.stage-chronicle .chronicle-empty strong{font-size:24px}.stage-chronicle .chronicle-empty p{font-size:18px;max-width:none;margin:12px 0 20px}.stage-chronicle .chronicle-empty small{font-size:14px;max-width:none}.stage-chronicle .log-entry{grid-template-columns:44px 1fr;gap:12px;padding:14px 2px 16px}.stage-chronicle .log-index{font-size:16px;padding-top:4px}.stage-chronicle .log-tag{font-size:12px;letter-spacing:1.2px;margin-bottom:8px}.stage-chronicle .log-content p{font-size:16px;line-height:1.45}.stage-chronicle .log-time{font-size:14px;margin-top:8px}.stage-chronicle .chronicle-foot{height:54px;padding:0 18px;gap:12px;font-size:12px;letter-spacing:.8px}.stage-chronicle .scroll-hint-icon{font-size:22px}@media(max-width:520px){.stage-chronicle{width:min(280px,82%);height:calc(100% - 16px)}.stage-chronicle .chronicle-clock{height:52px;grid-template-rows:17px 1fr;padding:6px 12px;column-gap:8px}.stage-chronicle .chronicle-clock span{font-size:10px}.stage-chronicle .chronicle-clock #system-date{font-size:14px}.stage-chronicle .chronicle-clock #system-time{font-size:18px}.stage-chronicle .chronicle-head{height:72px;padding:0 14px}.stage-chronicle .chronicle-overline{font-size:11px}.stage-chronicle .chronicle-head h2{font-size:24px;margin-top:7px}.stage-chronicle .log-count{font-size:21px}.stage-chronicle .chronicle-summary{height:36px;padding:0 14px;font-size:13px}.stage-chronicle .chronicle-list{padding:8px 12px}.stage-chronicle .chronicle-empty>span{font-size:36px}.stage-chronicle .chronicle-empty strong{font-size:19px}.stage-chronicle .chronicle-empty p{font-size:14px}.stage-chronicle .chronicle-empty small{font-size:11px}.stage-chronicle .log-entry{grid-template-columns:34px 1fr;gap:8px;padding:10px 1px 12px}.stage-chronicle .log-index{font-size:13px}.stage-chronicle .log-tag{font-size:10px}.stage-chronicle .log-content p{font-size:13px}.stage-chronicle .log-time{font-size:11px}.stage-chronicle .chronicle-foot{height:42px;padding:0 10px;gap:7px;font-size:9px}.stage-chronicle .scroll-hint-icon{font-size:17px}}
.xr-status{position:absolute;z-index:8;top:15px;left:50%;transform:translateX(-50%);max-width:calc(100% - 30px);padding:9px 12px;border:1px solid #8b9667;border-radius:5px;background:#151a13e8;color:#e1e8d6;text-align:center;font:9px/1.5 var(--mono);box-shadow:0 5px 18px #0007}.xr-place-button,.xr-restart-button{position:absolute;z-index:8;bottom:16px;left:50%;transform:translateX(-50%);min-height:38px;padding:0 17px;border:1px solid #d2eb91;border-radius:5px;background:var(--lime);color:#202719;font:600 10px var(--font);cursor:pointer;box-shadow:0 5px 18px #0008}.xr-restart-button{left:auto;right:16px;transform:none;width:40px;padding:0;border-color:#cfb979;background:#201b10ed;color:#f4d785;font-size:18px}.camera-stage.xr-active{position:fixed;z-index:9999;inset:0;width:100vw;height:100vh;height:100dvh;border:0;border-radius:0;background:transparent;overflow:visible}.camera-stage.xr-active #overlay,.camera-stage.xr-active video,.camera-stage.xr-active .scene-shade,.camera-stage.xr-active .stage-corner,.camera-stage.xr-active .stage-meta,.camera-stage.xr-active .hand-sides,.camera-stage.xr-active .scroll-lane,.camera-stage.xr-active #camera-empty,.camera-stage.xr-active #camera-error,.camera-stage.xr-active #calibration-cue{display:none!important}.camera-stage.xr-active .xr-status{top:max(16px,env(safe-area-inset-top));background:#11170fd9}.camera-stage.xr-active .xr-place-button{bottom:max(18px,env(safe-area-inset-bottom))}.camera-stage.xr-active .xr-restart-button{top:auto;bottom:max(18px,env(safe-area-inset-bottom));right:16px}#calibrate-button{display:none!important}
.xr-status{position:absolute;z-index:8;top:15px;left:50%;transform:translateX(-50%);max-width:calc(100% - 30px);padding:9px 12px;border:1px solid #8b9667;border-radius:5px;background:#151a13e8;color:#e1e8d6;text-align:center;font:9px/1.5 var(--mono);box-shadow:0 5px 18px #0007}.xr-place-button,.xr-restart-button{position:absolute;z-index:8;bottom:16px;left:50%;transform:translateX(-50%);min-height:38px;padding:0 17px;border:1px solid #d2eb91;border-radius:5px;background:var(--lime);color:#202719;font:600 10px var(--font);cursor:pointer;box-shadow:0 5px 18px #0008}.xr-restart-button{left:auto;right:16px;transform:none;width:40px;padding:0;border-color:#cfb979;background:#201b10ed;color:#f4d785;font-size:18px}.camera-stage.xr-active{position:fixed;z-index:9999;inset:0;width:100vw;height:100vh;height:100dvh;border:0;border-radius:0;background:transparent;overflow:visible}.camera-stage.xr-active #overlay,.camera-stage.xr-active video,.camera-stage.xr-active .scene-shade,.camera-stage.xr-active .stage-corner,.camera-stage.xr-active .stage-meta,.camera-stage.xr-active .hand-sides,.camera-stage.xr-active .scroll-lane,.camera-stage.xr-active #camera-empty,.camera-stage.xr-active #camera-error,.camera-stage.xr-active #calibration-cue{display:none!important}.camera-stage.xr-active .xr-status{top:max(16px,env(safe-area-inset-top));background:#11170fd9}.camera-stage.xr-active .xr-place-button{bottom:max(18px,env(safe-area-inset-bottom))}.camera-stage.xr-active .xr-restart-button{top:auto;bottom:max(18px,env(safe-area-inset-bottom));right:16px}#calibrate-button{display:none!important}body.xr-active{overflow:hidden!important;background:transparent!important}body.xr-active .topbar,body.xr-active .intro-row,body.xr-active .battle-controls,body.xr-active .players-row,body.xr-active .guide-strip,body.xr-active .page-footer{display:none!important}body.xr-active .main-content{width:100%;max-width:none;margin:0;padding:0}body.xr-active .game-layout{display:block}body.xr-active .play-column{min-width:0}body.xr-active .scene-card{overflow:visible;background:transparent;border:0;border-radius:0}body.xr-active .scene-toolbar,body.xr-active .scene-footer{display:none!important}body.xr-active .chronicle-card{position:fixed;z-index:10001;top:14vh;right:12px;width:min(240px,34vw);height:72vh;min-height:0;max-height:none;background:#10130fc7;border-color:#b29a5d88;backdrop-filter:blur(8px);pointer-events:auto}body.xr-active .chronicle-list{min-height:0}body.xr-active .chronicle-head,body.xr-active .chronicle-summary,body.xr-active .chronicle-foot{background:#10130f77}.xr-opacity{position:absolute;z-index:9;bottom:max(18px,env(safe-area-inset-bottom));left:14px;color:#e6e8dc;font:9px var(--mono)}.xr-opacity>summary{list-style:none;cursor:pointer;padding:10px 12px;background:#171b15ed;border:1px solid #6d7658;border-radius:5px}.xr-opacity>summary::-webkit-details-marker{display:none}.xr-opacity>div{position:absolute;bottom:42px;left:0;width:185px;padding:10px;background:#171b15ed;border:1px solid #5a6349;border-radius:5px;display:grid;gap:7px}.xr-opacity label{display:flex;justify-content:space-between;color:#cbd2bf;font:8px var(--mono)}.xr-opacity output{color:var(--gold)}.xr-opacity input{width:100%;accent-color:var(--lime)}
.stage-chronicle .log-entry{grid-template-columns:66px minmax(0,1fr);align-items:center;gap:10px;padding:12px 2px}.stage-chronicle .log-track{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0}.stage-chronicle .log-coordinate{max-width:66px;padding:3px 5px;border:1px solid rgba(120,86,42,.42);border-radius:4px;background:rgba(225,178,79,.2);color:#543819;font:700 12px var(--mono);white-space:nowrap}.stage-chronicle .log-index{font-size:10px;padding:0 0 0 2px;color:#806746}.stage-chronicle .log-content{display:flex;align-items:center;gap:8px;min-width:0;white-space:nowrap}.stage-chronicle .log-tag{flex:none;margin:0;font-size:11px;letter-spacing:.65px}.stage-chronicle .log-content p{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px;line-height:1.2}.stage-chronicle .log-time{display:none}@media(max-width:520px){.stage-chronicle .log-entry{grid-template-columns:58px minmax(0,1fr);gap:7px;padding:10px 1px}.stage-chronicle .log-coordinate{font-size:10px;padding:3px}.stage-chronicle .log-content{gap:5px}.stage-chronicle .log-tag{font-size:9px;letter-spacing:.3px}.stage-chronicle .log-content p{font-size:14px}}
.difficulty-menu{position:absolute;z-index:10;top:52px;right:16px;width:min(330px,calc(100% - 32px));display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:10px;border:1px solid rgba(199,220,173,.56);border-radius:9px;background:linear-gradient(145deg,rgba(238,246,223,.84),rgba(179,199,159,.72));backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 8px 28px #0007;color:#20291b}.difficulty-menu>span{grid-column:1/-1;color:#44543a;font:700 10px var(--mono);letter-spacing:1px}.difficulty-menu button{min-height:43px;border:1px solid rgba(77,98,62,.46);border-radius:6px;background:rgba(255,255,255,.36);color:#33422a;font:600 13px var(--font);cursor:pointer}.difficulty-menu button:hover,.difficulty-menu button:focus-visible{outline:2px solid #e8f6c7;outline-offset:1px;background:rgba(255,255,255,.68)}.difficulty-menu button.active{border-color:#5d783d;background:#68844c;color:#fff;font-weight:700;box-shadow:inset 0 0 0 1px #ffffff55}@media(max-width:520px){.difficulty-menu{top:45px;right:8px;width:min(300px,calc(100% - 16px));gap:5px;padding:8px}.difficulty-menu button{min-height:38px;font-size:11px}}
.camera-stage.maximized,.camera-stage:fullscreen,.camera-stage:-webkit-full-screen{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;height:100dvh!important;max-height:none!important;min-height:0!important;z-index:99999!important;border:0!important;border-radius:0!important;overflow:hidden!important}.camera-stage.maximized{left:0!important;top:0!important}.camera-stage.maximized video,.camera-stage.maximized canvas,.camera-stage:fullscreen video,.camera-stage:fullscreen canvas,.camera-stage:-webkit-full-screen video,.camera-stage:-webkit-full-screen canvas{width:100%!important;height:100%!important;object-fit:cover}.body.camera-maximized{overflow:hidden!important}body.camera-maximized{overflow:hidden!important}.stage-fullscreen-exit{position:absolute;z-index:100;top:max(14px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right));width:42px;height:42px;display:grid;place-items:center;border:1px solid #d8e3c699;border-radius:50%;background:#10150edb;color:#f3f5e8;font:28px/1 Arial,sans-serif;cursor:pointer;backdrop-filter:blur(8px);box-shadow:0 3px 14px #0007}.stage-fullscreen-exit:hover{background:#283421eF;border-color:#e2f2ca}.camera-stage.maximized .stage-fullscreen-exit,.camera-stage:fullscreen .stage-fullscreen-exit,.camera-stage:-webkit-full-screen .stage-fullscreen-exit{display:grid!important}
.chronicle-commands{flex:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:8px 10px;border-bottom:1px solid rgba(90,61,31,.2)}.command-status{min-width:0;display:grid;grid-template-columns:16px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;column-gap:4px;row-gap:3px;padding:6px 5px;border:1px solid rgba(90,61,31,.23);border-radius:6px;background:rgba(255,250,235,.18);color:#4e3a22}.command-status-icon{grid-row:1/3;font-size:13px;line-height:1}.command-status-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:700 7px var(--mono);letter-spacing:.2px;color:#765a35}.command-status b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:700 8px var(--mono);color:#5a6b3b}.command-status.is-active{border-color:rgba(104,138,61,.72);background:rgba(194,222,143,.38);box-shadow:inset 0 0 0 1px rgba(255,255,255,.25)}.command-status.is-active b{color:#35511f}.command-status.is-blocked{background:rgba(107,85,54,.1)}.command-status.is-blocked b{color:#856a4a}.stage-chronicle .chronicle-list{flex:1}@media(max-width:520px){.chronicle-commands{gap:4px;padding:6px 8px}.command-status{grid-template-columns:13px minmax(0,1fr);gap:3px;padding:5px 3px}.command-status-icon{font-size:11px}.command-status-name{font-size:6px;letter-spacing:0}.command-status b{font-size:7px}}
.chronicle-commands::before{content:"RIGHT HAND COMMANDS";grid-column:1/-1;color:#765a35;font:700 8px var(--mono);letter-spacing:.8px}
.chronicle-commands{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px;border-bottom:1px solid rgba(90,61,31,.2)}.chronicle-commands::before{content:none}.chronicle-commands>span{flex:none;color:#765a35;font:700 8px var(--mono);letter-spacing:.7px}.chronicle-commands>strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#405b2c;text-align:right;font:700 11px var(--mono);letter-spacing:.3px}@media(max-width:520px){.chronicle-commands{gap:6px;padding:7px 9px}.chronicle-commands>span{font-size:7px}.chronicle-commands>strong{font-size:9px}}
.victory-glyph{background:#293625;color:#d1ed98}
.opacity-popover{width:220px}.opacity-popover>strong{padding:3px 0 1px;border-bottom:1px solid #343a30;color:var(--lime);font:700 8px var(--mono);letter-spacing:.8px}.opacity-popover>strong:not(:first-child){margin-top:3px}#mirror-button.active,#vertical-flip-button.active{border-color:#82965b;color:var(--lime);background:#29301f}@media(max-width:520px){.opacity-popover{width:195px;right:-85px}}
.stage-chronicle{background:linear-gradient(155deg,rgba(244,226,193,.24),rgba(198,164,108,.12));backdrop-filter:blur(20px) saturate(1.35);-webkit-backdrop-filter:blur(20px) saturate(1.35);border-color:rgba(235,213,174,.68);box-shadow:0 12px 34px rgba(0,0,0,.19),inset 0 0 0 1px rgba(255,248,229,.19)}.stage-chronicle .chronicle-head,.stage-chronicle .chronicle-summary,.stage-chronicle .chronicle-foot{background:rgba(255,249,232,.07)}.stage-chronicle .chronicle-head h2,.stage-chronicle .chronicle-overline,.stage-chronicle .log-count,.stage-chronicle .chronicle-summary,.stage-chronicle .chronicle-foot,.stage-chronicle .log-content p,.stage-chronicle .log-index,.stage-chronicle .chronicle-empty strong,.stage-chronicle .chronicle-empty p,.stage-chronicle .chronicle-empty small,.chronicle-commands>span,.chronicle-commands>strong{ text-shadow:0 1px 3px rgba(255,250,234,.92),0 0 8px rgba(255,250,234,.42)}.stage-chronicle .log-entry{background:rgba(255,249,232,.035)}.difficulty-menu{background:linear-gradient(145deg,rgba(238,246,223,.27),rgba(179,199,159,.14));backdrop-filter:blur(20px) saturate(1.35);-webkit-backdrop-filter:blur(20px) saturate(1.35);border-color:rgba(232,244,212,.65);box-shadow:0 10px 30px rgba(0,0,0,.27),inset 0 0 0 1px rgba(255,255,255,.17);color:#20291b}.difficulty-menu>span,.difficulty-menu button{ text-shadow:0 1px 3px rgba(255,255,255,.92),0 0 8px rgba(255,255,255,.4)}.difficulty-menu button{background:rgba(255,255,255,.19);border-color:rgba(239,246,225,.56)}.difficulty-menu button:hover,.difficulty-menu button:focus-visible{background:rgba(255,255,255,.36)}.difficulty-menu button.active{background:rgba(92,126,63,.72);border-color:rgba(242,250,225,.82)}
.stage-chronicle{background:linear-gradient(155deg,rgba(244,226,193,.085),rgba(198,164,108,.035));backdrop-filter:blur(18px) saturate(1.18);-webkit-backdrop-filter:blur(18px) saturate(1.18);border-color:rgba(245,225,188,.58);box-shadow:0 10px 28px rgba(0,0,0,.13),inset 0 0 0 1px rgba(255,248,229,.12)}.stage-chronicle .chronicle-head,.stage-chronicle .chronicle-summary,.stage-chronicle .chronicle-foot{background:rgba(255,249,232,.025)}.stage-chronicle .log-entry{background:rgba(255,249,232,.015)}.difficulty-menu{background:linear-gradient(145deg,rgba(238,246,223,.09),rgba(179,199,159,.035));backdrop-filter:blur(18px) saturate(1.18);-webkit-backdrop-filter:blur(18px) saturate(1.18);border-color:rgba(238,248,222,.58);box-shadow:0 9px 26px rgba(0,0,0,.16),inset 0 0 0 1px rgba(255,255,255,.12)}.difficulty-menu button{background:rgba(255,255,255,.075);border-color:rgba(244,249,232,.48)}.difficulty-menu button:hover,.difficulty-menu button:focus-visible{background:rgba(255,255,255,.16)}.difficulty-menu button.active{background:rgba(92,126,63,.3);border-color:rgba(242,250,225,.74)}
.stage-chronicle{background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:0 6px 18px rgba(0,0,0,.08),inset 0 0 0 1px rgba(255,248,229,.1)}.stage-chronicle .chronicle-head,.stage-chronicle .chronicle-summary,.stage-chronicle .chronicle-foot,.stage-chronicle .log-entry{background:transparent!important}.difficulty-menu{background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none!important}.difficulty-menu button{background:transparent!important}.difficulty-menu button:hover,.difficulty-menu button:focus-visible{background:rgba(255,255,255,.12)!important}.difficulty-menu button.active{background:rgba(92,126,63,.24)!important}

/* Increase the small interface copy while preserving the existing glass layout. */
body{font-size:15px}
.top-context,.scene-title{font-size:10px}
.local-state{font-size:10px}
.intro-row .eyebrow{font-size:11px}
.intro-copy{font-size:14px}
.match-state strong{font-size:11px}
.match-state small{font-size:10px}
.camera-select-wrap,.camera-select-wrap select{font-size:10px}
.opacity-popover>strong,.opacity-popover label,.gesture-popover>strong,.gesture-popover label,.gesture-popover small{font-size:10px}
.camera-empty .empty-overline{font-size:12px}
.camera-empty h2{font-size:clamp(24px,3vw,34px)}
.camera-empty p{font-size:15px;line-height:1.55}
.open-camera-button{font-size:16px}
.privacy-hint{font-size:12px}
.stage-meta{font-size:10px}
.hand-side{font-size:10px}
.scene-stat>span{font-size:9px}
.scene-stat strong{font-size:11px}
.battle-turn .overline{font-size:10px}
.battle-turn strong{font-size:12px}
.turn-message{font-size:14px;line-height:1.4}
.restart-button{font-size:18px}
.player-kicker{font-size:9px}
.player-copy strong{font-size:13px}
.player-copy small{font-size:10px}
.player-turn-pill{font-size:9px}
.objective-card>div>span{font-size:9px}
.objective-card strong{font-size:11px}
.guide-title>div>span{font-size:9px}
.guide-title>div>strong{font-size:12px}
.guide-step{align-items:flex-start;min-height:82px}
.guide-step .step-index{font-size:10px}
.guide-step .gesture-glyph{font-size:21px}
.guide-step>div>strong{font-size:12px;line-height:1.3;white-space:normal}
.guide-step>div>small{font-size:11px;line-height:1.4}
.page-footer{font-size:9px}
.rules-card .eyebrow{font-size:11px}
.rules-card h2{font-size:28px}
.rules-scroll{font-size:14px;line-height:1.6}
.rules-done{font-size:14px}
.stage-chronicle .chronicle-clock span{font-size:13px}
.stage-chronicle .chronicle-clock #system-date{font-size:17px}
.stage-chronicle .chronicle-summary{font-size:17px}
.chronicle-commands>span{font-size:10px}
.chronicle-commands>strong{font-size:13px}
.stage-chronicle .log-index{font-size:12px}
.stage-chronicle .log-tag{font-size:12px}
.stage-chronicle .log-content p{font-size:17px}
.stage-chronicle .chronicle-foot{font-size:11px}
.stage-chronicle .chronicle-empty small{font-size:15px}
.difficulty-menu>span{font-size:12px}
.difficulty-menu button{font-size:15px}
.xr-status{font-size:12px}
.toast{font-size:14px}
@media(max-width:700px){.guide-strip{grid-template-columns:1fr 1fr}.guide-step{min-height:92px}.guide-step>div>small{font-size:12px}}
@media(max-width:520px){.stage-chronicle .chronicle-summary{font-size:14px}.stage-chronicle .log-coordinate{font-size:12px}.stage-chronicle .log-index{font-size:11px}.stage-chronicle .log-tag{font-size:10px}.stage-chronicle .log-content p{font-size:14px}.stage-chronicle .chronicle-empty small{font-size:12px}.chronicle-commands>strong{font-size:10px}.guide-step>div>strong{font-size:11px}.guide-step>div>small{font-size:11px}}
.brand{gap:0;flex:none;width:52px;height:52px}
.brand-logo{display:block;width:52px;height:52px;object-fit:contain;border-radius:9px;filter:drop-shadow(0 0 8px rgba(35,175,255,.24))}
@media(max-width:520px){.brand{width:48px;height:48px}.brand-logo{width:48px;height:48px}}
.scroll-lane span{font-size:14px}
.scroll-lane{opacity:1;border-left:1px solid rgba(245,225,188,.48);background:linear-gradient(90deg,rgba(255,249,232,.07),rgba(255,249,232,.16));box-shadow:inset 1px 0 rgba(255,255,255,.18)}
.scroll-lane span{color:rgba(85,65,38,.74);font-weight:700;text-shadow:0 1px 3px rgba(255,250,234,.92),0 0 8px rgba(255,250,234,.42)}
.scroll-lane i{width:2px;background:linear-gradient(var(--gold),rgba(216,187,116,.18));box-shadow:0 0 8px rgba(216,187,116,.35)}
.scene-actions .opacity-popover,.scene-actions .gesture-popover{right:auto;z-index:100001;overflow-x:hidden}
.scene-actions .opacity-popover label,.scene-actions .gesture-popover>label:not(.command-guard-label){flex-wrap:wrap;gap:3px}
.match-state.winner-knights{background:rgba(42,119,52,.34)!important;border-color:rgba(137,221,143,.68)!important;box-shadow:inset 0 0 0 1px rgba(188,255,194,.14)}
.match-state.winner-lords{background:rgba(155,45,39,.34)!important;border-color:rgba(240,127,116,.68)!important;box-shadow:inset 0 0 0 1px rgba(255,194,186,.14)}
.match-state.winner-knights strong,.match-state.winner-lords strong{display:inline-block!important;visibility:visible!important;opacity:1!important;padding:5px 8px;border-radius:4px;white-space:nowrap;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);text-shadow:0 1px 3px rgba(0,0,0,.5)}
.match-state.winner-knights strong{color:#e1ffdc!important;background:rgba(45,151,58,.6)!important;border:1px solid rgba(161,243,165,.78);box-shadow:inset 0 0 12px rgba(146,239,153,.2)}
.match-state.winner-lords strong{color:#ffe5df!important;background:rgba(192,48,40,.6)!important;border:1px solid rgba(255,158,149,.78);box-shadow:inset 0 0 12px rgba(255,151,139,.2)}
.match-state.winner-knights small,.match-state.winner-lords small{display:block!important;visibility:visible!important;opacity:1!important}
.match-state.winner-knights small{color:#ddf7d8!important}
.match-state.winner-lords small{color:#ffd9d1!important}
.xr-status.winner-knights{background:rgba(42,119,52,.34)!important;border-color:rgba(137,221,143,.68)!important;color:#e1ffdc!important;box-shadow:inset 0 0 0 1px rgba(188,255,194,.14),0 4px 12px rgba(0,0,0,.24)}
.xr-status.winner-lords{background:rgba(155,45,39,.34)!important;border-color:rgba(240,127,116,.68)!important;color:#ffe5df!important;box-shadow:inset 0 0 0 1px rgba(255,194,186,.14),0 4px 12px rgba(0,0,0,.24)}
