:root{color-scheme:dark;--bg:#0b111b;--panel:#141d2b;--line:#2c3749;--muted:#8595ab;--ink:#e8eff7;--red:#fb6575;--blue:#60b5ff;--gold:#f2cd83}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.4 system-ui,"Noto Sans CJK SC",sans-serif;overflow:hidden;display:flex;flex-direction:column;height:100dvh}button{font:inherit;color:inherit;border:1px solid var(--line);background:#182233;border-radius:7px;padding:9px 13px;cursor:pointer;white-space:nowrap;transition:background .15s,border-color .15s}button:hover{background:#263247;border-color:#66768e}button:focus-visible{outline:2px solid var(--gold);outline-offset:3px}button:disabled{opacity:.4;cursor:default}button.primary{background:var(--gold);color:#191c23;border-color:var(--gold);font-weight:650}button.primary:hover{background:#ffe0a9}kbd{font:11px system-ui;border:1px solid currentColor;border-radius:3px;padding:1px 4px;opacity:.6;margin-left:6px}header{height:74px;flex-shrink:0;padding:0 26px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px;background:#0e1520}.brand{display:flex;gap:13px;align-items:center}.mark{display:grid;place-items:center;width:39px;height:39px;border:1px solid #5d5369;border-radius:10px;background:linear-gradient(145deg,#342132,#182c41);font-weight:800;color:var(--gold);letter-spacing:-1px}h1{font-size:21px;font-weight:650;margin:0;letter-spacing:.025em}h1 span{font-size:14px;color:var(--muted);font-weight:400;margin:0 7px}.brand p{margin:2px 0 0;color:var(--muted);font-size:11px;letter-spacing:.12em}.toolbar{display:flex;gap:9px;align-items:center}.connection{font-size:12px;margin-right:10px;color:var(--muted)}.connection:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:#74849b;margin-right:7px}.connection.online:before{background:#60d6a5}.connection.offline:before{background:var(--red)}main{position:relative;flex:1;min-height:260px;overflow:hidden}canvas{display:block;width:100%;height:100%;outline:none}.scoreboard{position:absolute;top:22px;left:50%;transform:translateX(-50%);display:flex;width:610px;height:86px;border:1px solid #3a4355;border-radius:10px;overflow:hidden;box-shadow:0 12px 40px #0005;background:#0d1423e8;pointer-events:none}.score{position:relative;flex:1;display:flex;align-items:center;justify-content:space-between;padding:10px 20px;gap:15px}.score.red{background:linear-gradient(110deg,#462632de,#211c2cdb);border-left:4px solid var(--red)}.score.blue{background:linear-gradient(110deg,#172639db,#193c58de);border-right:4px solid var(--blue)}.score span{font-size:13px;font-weight:600;white-space:nowrap}.score small{display:block;color:var(--muted);font-size:11px;letter-spacing:.15em;margin-top:3px}.score.blue div{text-align:right}.score strong{font-size:43px;line-height:1;font-weight:600;font-variant-numeric:tabular-nums}.score.red strong{color:#ff9ba6}.score.blue strong{color:#98d4ff}.score em{position:absolute;bottom:3px;font-style:normal;font-size:11px;color:var(--gold);left:20px;right:20px;text-align:center}.score.flash{box-shadow:inset 0 0 40px #f4c56b55}.clock{width:132px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-left:1px solid #ffffff12;border-right:1px solid #ffffff12}.clock small{font-size:10px;letter-spacing:.15em;color:var(--muted)}.clock strong{font-size:29px;font-weight:550;line-height:1.2;font-variant-numeric:tabular-nums}.clock span{font-size:11px;color:var(--gold);margin-top:2px}.camera-tools{position:absolute;right:20px;top:128px;display:flex;gap:6px}.camera-tools button{font-size:11px;padding:6px 10px;background:#101a28dc}.camera-tools .selected{border-color:#8a7957;color:var(--gold)}.readout{position:absolute;bottom:18px;left:24px;max-width:65%;padding:11px 15px;border-left:2px solid #69788d;background:#0c1420d4;border-radius:0 7px 7px 0;pointer-events:none}.readout>div{display:flex;align-items:center;gap:8px;white-space:nowrap;margin:3px 0;font-size:11px}.readout b{font-weight:500;color:var(--muted);margin-right:3px}.dot{width:5px;height:5px;border-radius:50%}.red-dot{background:var(--red)}.blue-dot{background:var(--blue)}.readout small{display:block;color:#72859b;font-size:10px;margin-top:7px}.hint{position:absolute;bottom:23px;right:22px;font-size:12px;color:#b5c2d3;pointer-events:none}.loading{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;background:#0b111bcc;backdrop-filter:blur(4px);z-index:3}.loading strong{font-size:21px;font-weight:500}.loading p{color:var(--muted);font-size:13px;max-width:85%;text-align:center}.spinner{width:32px;height:32px;border:2px solid #ffffff18;border-top-color:var(--gold);border-radius:50%;animation:spin 1.1s linear infinite;margin-bottom:20px}@keyframes spin{to{transform:rotate(360deg)}}.result{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);text-align:center;width:360px;padding:25px;border:1px solid #bd9d61;border-radius:12px;background:#121c2ff2;box-shadow:0 20px 70px #0008;z-index:2}.result>span{font-size:12px;letter-spacing:.16em;color:var(--gold)}.result h2{font-size:37px;margin:9px 0;font-weight:650}.result p{font-size:18px;font-variant-numeric:tabular-nums;color:#c5d0df;margin:0 0 21px}.result .primary{padding:9px 28px}footer{min-height:96px;flex-shrink:0;display:flex;align-items:center;justify-content:center;gap:23px;padding:14px 22px;background:#0e1520;border-top:1px solid var(--line)}.key-group{display:flex;flex-direction:column;gap:7px;align-items:center}.keys{display:flex;gap:5px}.keys button{height:30px;min-width:30px;padding:3px 8px;border-bottom-width:3px;font-size:13px;font-weight:600;touch-action:none;user-select:none}.keys button.held{background:var(--gold);color:#17202c;border-color:#c5a262;transform:translateY(1px)}.key-group>span{color:var(--muted);font-size:10px;white-space:nowrap}.rules{padding-left:20px;border-left:1px solid var(--line);font-size:11px;line-height:1.9;color:var(--muted);margin:0}.rules strong{color:#c4cfdc;font-weight:500}[hidden]{display:none!important}@media(max-width:1100px){footer{gap:12px;padding:12px}.rules{display:none}header{padding:0 16px}.connection{display:none}}@media(max-width:720px){header{height:65px;padding:0 12px}.mark{display:none}h1{font-size:17px}.toolbar{gap:5px}.toolbar button{padding:8px;font-size:12px}.toolbar kbd{display:none}.scoreboard{top:13px;width:calc(100% - 24px);height:75px}.score{padding:9px 12px}.score strong{font-size:34px}.clock{width:105px}.camera-tools{top:105px;right:12px}footer{flex-wrap:wrap;gap:10px 16px}.key-group{gap:3px}.keys button{min-width:27px;height:28px;padding:3px 6px}.readout{bottom:45px;left:12px;max-width:calc(100% - 24px);padding:6px 10px}.readout>div{font-size:9px}.hint{bottom:15px;font-size:11px}.result{width:min(340px,90%)}.brand p{font-size:9px}}

.project-link{color:#b9c8db;text-decoration:none;padding:7px 8px;font-size:12px}.project-link:hover{color:#f2cd83}
/* Full-window arena and floating controls, inspired by the PHP demo. */
body{display:block}main{position:absolute;inset:0;min-height:0}header{position:absolute;top:16px;left:18px;right:18px;height:54px;padding:0;background:transparent;border:0;z-index:4;pointer-events:none}.brand,.toolbar{pointer-events:auto}.brand{padding:9px 13px;background:#0e1726d9;border:1px solid #61708044;border-radius:10px;backdrop-filter:blur(9px)}.brand p{font-size:9px}.brand h1{font-size:18px}.brand .mark{width:30px;height:30px}.toolbar{padding:7px;background:#111b2bd9;border:1px solid #61708044;border-radius:10px;backdrop-filter:blur(9px)}.toolbar .connection{display:none}.toolbar button{font-size:12px;padding:7px 10px}.toolbar .project-link{font-size:11px;padding:7px}.scoreboard{top:88px;z-index:1}.camera-tools{top:190px}.readout{bottom:23px;max-width:calc(100% - 450px)}.hint{bottom:140px;left:24px;right:auto;font-size:11px}footer{position:absolute;bottom:20px;right:20px;width:382px;min-height:0;display:grid;grid-template-columns:1fr 1fr;gap:15px 20px;padding:21px;background:#f4f6faed;color:#253042;border:1px solid #ffffffaa;border-radius:14px;backdrop-filter:blur(10px);z-index:1;box-shadow:0 12px 35px #0003}footer:before{content:'How to Play';grid-column:1/-1;font-size:18px;font-weight:650;letter-spacing:-.02em}.key-group{align-items:flex-start;gap:5px}.key-group>span{color:#56657b;font-size:10px}.keys button{color:#344457;background:#e1e7ef;border-color:#cad3df;font-size:12px;min-width:28px;height:29px;padding:2px 7px}.keys button:hover{background:#d0d8e5}.keys button.held{background:#e8c881;color:#1c2635;border-color:#bb9b5d}.rules{grid-column:1/-1;display:block;padding:10px 0 0;border-left:0;border-top:1px solid #cbd3df;font-size:10px;line-height:1.6;color:#65748a}.rules strong{color:#344457}.loading{z-index:3}@media(max-width:1000px){.toolbar kbd{display:none}footer{width:320px;gap:10px 12px;padding:16px}.readout{max-width:calc(100% - 375px)}.scoreboard{width:560px}.hint{max-width:45%}}@media(max-width:720px){header{left:10px;right:10px;top:10px;gap:5px;height:45px}.brand{padding:7px 10px;gap:0}.brand h1{font-size:15px}.brand .mark,.brand p,.toolbar .project-link{display:none}.toolbar{padding:4px;gap:4px}.toolbar button{padding:6px;font-size:11px}.scoreboard{top:72px;width:calc(100% - 20px);height:70px}.camera-tools{top:155px;right:10px}footer{right:10px;bottom:10px;width:285px;gap:8px;padding:12px}.key-group>span{font-size:9px}footer:before{font-size:15px}.keys button{min-width:25px;height:25px;padding:1px 6px}.rules{font-size:9px}.readout{bottom:280px;left:12px;max-width:90%;padding:6px 10px}.hint{bottom:365px;left:12px;max-width:90%;font-size:10px}.result{top:43%;z-index:5}}

@media(max-width:720px){.toolbar #quality{font-size:10px;padding:6px 5px}.brand h1{font-size:13px}.toolbar button{padding:6px 5px}.brand{padding:7px}}
/* Mode selection and an explicit, collapsible keyboard guide. */
.toolbar .mode-button{border-color:#a38a55;color:#f2cd83}.toolbar .mode-button[aria-pressed="true"]{background:#e9c987;color:#17202c;border-color:#e9c987}footer:before{content:none}.help-heading{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px}.help-heading h2{font-size:18px;margin:0;font-weight:650}.help-heading button{padding:3px 8px;background:transparent;color:#52647c;border-color:#c8d1df;font-size:11px}.mode-note{grid-column:1/-1;color:#52647c;font-size:11px;line-height:1.65;margin:-4px 0 1px}.session-keys{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:7px 10px;padding-top:10px;border-top:1px solid #cbd3df;font-size:10px;color:#52647c}.session-keys kbd{font-size:10px;margin-left:0;opacity:1;border-color:#c1ccdb;background:#e6ebf2;color:#344457}.ai-mode .key-group{opacity:.5}footer{max-height:calc(100dvh - 210px);overflow:auto}.key-group>span{line-height:1.6}@media(max-width:1100px){.toolbar{flex-wrap:wrap;justify-content:flex-end}.toolbar .project-link{display:none}footer{gap:10px 14px;padding:16px}}@media(max-width:720px){header{height:auto;align-items:flex-start}.brand{flex:0 0 94px;padding:8px 5px}.brand h1{font-size:11px;white-space:nowrap}.brand h1 span{font-size:10px;margin:0 2px}.toolbar{max-width:calc(100% - 102px);flex-wrap:wrap;justify-content:flex-end;padding:4px;gap:4px}.toolbar button{font-size:10px;padding:5px 6px}.toolbar #quality{padding:5px 6px}.scoreboard{top:100px}.camera-tools{top:183px}footer{max-height:calc(100dvh - 234px);width:285px;padding:12px;gap:9px 12px}.help-heading h2{font-size:15px}.mode-note{font-size:10px}.readout{bottom:16px;left:12px;max-width:calc(100% - 24px);z-index:0}.hint{bottom:auto;top:224px;font-size:10px;max-width:calc(100% - 24px)}.session-keys{font-size:9px;gap:6px}.result{top:43%}}
.showcase-panel{position:absolute;top:92px;left:50%;transform:translateX(-50%);width:min(650px,calc(100% - 32px));padding:15px 18px;border:1px solid #4c596c;border-radius:12px;background:#111c2be8;backdrop-filter:blur(8px);z-index:1}.showcase-title{display:flex;align-items:center;gap:16px}.showcase-title>span{font-size:11px;color:#bca979}.showcase-title strong{font-size:21px;font-weight:550;flex:1}.showcase-title small{color:#a4b5c9;font-size:11px}.showcase-panel progress{width:100%;height:4px;border:0;display:block;margin:12px 0;accent-color:#f2cd83}.showcase-controls{display:flex;gap:8px}.showcase-controls button{font-size:11px;padding:7px 10px}.showcase-controls select{flex:1;min-width:0;background:#202e40;color:#dce5ef;border:1px solid #43526b;border-radius:6px;padding:5px;font-size:12px}.showcase-panel p{font-size:10px;color:#879cb5;margin:9px 0 0}.mouse-help{grid-column:1/-1;font-size:11px;color:#5b6c83;margin:0}.session-keys{border:0;padding-top:0}.showcase-panel~.camera-tools{top:252px}@media(max-width:720px){.showcase-panel{top:109px;padding:12px}.showcase-title strong{font-size:16px}.showcase-title{gap:8px}.showcase-title small{font-size:9px}.showcase-controls button{font-size:10px;padding:6px}.showcase-controls select{font-size:11px}.showcase-panel~.camera-tools{top:282px}.hint{top:329px}footer{max-height:calc(100dvh - 355px)}}
.hit-banner{position:absolute;bottom:160px;left:50%;transform:translateX(-50%);padding:10px 24px;border:2px solid #ffc26a;border-radius:9px;background:#5c281ae8;box-shadow:0 0 35px #ff862e55;font-size:22px;font-weight:750;color:#fff0c4;pointer-events:none;z-index:3}@media(max-width:720px){.hit-banner{bottom:auto;top:222px;font-size:17px;padding:8px 14px;white-space:nowrap}}
/* Larger top controls, with the repository link always visible. */
header{height:auto;align-items:flex-start}.brand{padding:11px 15px;gap:12px}.brand .mark{width:40px;height:40px;font-size:20px}.brand h1{font-size:22px}.brand p{font-size:11px}.toolbar{gap:8px;padding:9px}.toolbar button{font-size:16px;font-weight:550;padding:10px 13px;min-height:44px}.toolbar kbd{font-size:12px}.toolbar .github-link{display:inline-flex!important;align-items:center;gap:9px;min-height:44px;padding:9px 14px;border:1px solid #f0ce83;border-radius:8px;background:#f0ce83;color:#17202b;font-size:16px;font-weight:750;box-shadow:0 3px 14px #eabf6240}.github-link svg{width:25px;height:25px;flex:none}.toolbar .github-link:hover{background:#ffe6b0;box-shadow:0 4px 18px #edc77766}.camera-tools button{font-size:14px;padding:8px 12px}.showcase-controls button,.showcase-controls select{font-size:14px;padding:8px}.scoreboard{top:108px}.showcase-panel{top:108px}.showcase-title strong{font-size:23px}@media(max-width:1500px){header{gap:14px}.brand h1{font-size:20px}.brand{padding:10px}.toolbar{gap:6px;padding:7px;max-width:calc(100% - 245px);flex-wrap:wrap;justify-content:flex-end}.toolbar button{font-size:14px;padding:9px 10px;min-height:40px}.toolbar .github-link{font-size:14px;padding:8px 11px;min-height:40px}.github-link svg{width:23px;height:23px}.scoreboard,.showcase-panel{top:126px}.showcase-panel~.camera-tools{top:285px}}@media(max-width:1000px){.brand h1{font-size:17px}.brand .mark{width:32px;height:32px;font-size:16px}.brand{gap:8px}.toolbar{max-width:calc(100% - 205px)}.toolbar button{font-size:13px;padding:8px;min-height:36px}.toolbar .github-link{font-size:14px;min-height:36px}.scoreboard,.showcase-panel{top:161px}.showcase-panel~.camera-tools{top:323px}}@media(max-width:720px){header{display:flex;flex-wrap:wrap;gap:7px;left:10px;right:10px;top:8px}.brand{flex:0 0 auto;padding:7px 10px}.brand h1{font-size:17px}.brand h1 span{font-size:12px;margin:0 5px}.toolbar{width:100%;max-width:100%;justify-content:flex-start;padding:6px;gap:5px}.toolbar button,.toolbar #quality{font-size:12px;min-height:32px;padding:6px 8px}.toolbar .github-link{font-size:13px;min-height:32px;padding:5px 9px;gap:6px}.github-link svg{width:21px;height:21px}.camera-tools button{font-size:11px;padding:6px 8px}.scoreboard,.showcase-panel{top:192px}.showcase-panel~.camera-tools{top:356px}.showcase-title strong{font-size:18px}.showcase-controls button,.showcase-controls select{font-size:11px;padding:6px}.hint{top:399px}.hit-banner{top:389px}footer{max-height:calc(100dvh - 434px)}.readout{font-size:10px}}

/* Manual keyboard guide stays anchored at the bottom right. */
.manual-keys{grid-column:1/-1;border-block:1px solid #cbd3df;padding:10px 0}.manual-keys h3{font-size:13px;margin:0 0 9px;color:#9c3648}.manual-keys h3 span{font-size:10px;font-weight:400;color:#65748a;margin-left:10px}.manual-keys>div{display:grid;grid-template-columns:1fr 1fr;gap:8px 10px;font-size:11px;color:#43546d}.manual-keys kbd{margin-left:0;opacity:1;font-size:11px;border-color:#becbdc;background:#e6ebf2;color:#253a55}.manual-keys span{white-space:nowrap}.toolbar{flex-wrap:wrap;justify-content:flex-end;max-width:calc(100% - 270px)}
@media(max-width:1500px){.toolbar{max-width:calc(100% - 245px)}}
@media(max-width:1000px){.toolbar{max-width:calc(100% - 205px)}.manual-keys>div{font-size:10px;gap:7px}.manual-keys kbd{font-size:10px}}
@media(max-width:720px){.toolbar{max-width:100%;justify-content:flex-start}.manual-keys>div{font-size:9px;gap:6px}.manual-keys kbd{font-size:9px}}

/* Readable keyboard instructions on desktop and small screens. */
#controls-panel{width:440px;max-height:min(660px,calc(100dvh - 350px));gap:12px 18px}
#controls-panel .help-heading h2{font-size:22px}
#controls-panel .help-heading button{font-size:13px;padding:5px 10px}
#controls-panel .mode-note{font-size:14px;line-height:1.65}
#controls-panel .manual-keys h3{font-size:16px}
#controls-panel .manual-keys h3 span{font-size:12px}
#controls-panel .manual-keys>div{font-size:14px;gap:9px 12px}
#controls-panel .session-keys{font-size:14px;gap:9px 12px}
#controls-panel kbd{font-size:13px;font-weight:600}
#controls-panel .mouse-help,#controls-panel .rules{font-size:13px;line-height:1.65}
@media(max-width:1000px){#controls-panel{width:380px;max-height:calc(100dvh - 390px)}}
@media(max-width:720px){#controls-panel{width:min(380px,calc(100% - 20px));max-height:calc(100dvh - 434px);gap:10px 12px}#controls-panel .help-heading h2{font-size:20px}#controls-panel .mode-note,#controls-panel .manual-keys>div,#controls-panel .session-keys{font-size:13px}#controls-panel .manual-keys h3{font-size:15px}#controls-panel kbd,#controls-panel .mouse-help,#controls-panel .rules{font-size:12px}}
@media(max-width:359px){#controls-panel .manual-keys>div,#controls-panel .session-keys{grid-template-columns:1fr}}

/* Independent low-level controllers and recorded highlights. */
.scoreboard{height:102px}.score small{font-size:10px;letter-spacing:.04em;margin:2px 0}.policy-select{display:block;pointer-events:auto;font:600 14px system-ui;color:#f2cd83;background:#18283b;border:1px solid #aa925d;border-radius:6px;padding:3px 18px 3px 7px;min-height:27px;cursor:pointer}.score.blue .policy-select{margin-left:auto}.score .policy-select:disabled{opacity:.5}.showcase-policy{display:flex;flex-direction:column;gap:3px;flex:none}.showcase-policy .policy-select{font-size:13px}.replay-panel{position:absolute;top:235px;left:50%;transform:translateX(-50%);width:min(530px,calc(100% - 32px));padding:13px 18px;border:1px solid #f2cd83;border-radius:10px;background:#101b2bea;z-index:2;box-shadow:0 8px 32px #0005}.replay-panel>strong{color:#f2cd83;font-size:16px;letter-spacing:.1em}.replay-panel>span{display:block;font-size:14px;margin:5px 0 10px}.replay-panel>div{display:flex;gap:8px}.replay-panel button,.replay-panel select{font:13px system-ui;padding:6px 10px}.replay-panel select{background:#18283b;color:#e8eff7;border:1px solid #526178;border-radius:6px}.replay-panel progress{display:block;width:100%;height:5px;margin-top:12px;accent-color:#f2cd83}.camera-tools #highlights:disabled{opacity:.45}
@media(max-width:1000px){.scoreboard{height:102px}.replay-panel{top:275px}}
@media(max-width:720px){.scoreboard{height:106px}.score{padding:8px 10px;gap:8px}.score span{font-size:12px}.score strong{font-size:29px}.score small{font-size:9px}.policy-select{font-size:12px;min-height:25px}.showcase-policy .policy-select{font-size:11px}.replay-panel{top:309px;padding:10px 12px}.replay-panel>span{font-size:12px}.replay-panel button,.replay-panel select{font-size:12px}.camera-tools button{padding:6px}.camera-tools kbd{display:none}}

.replay-panel{top:auto;left:24px;bottom:165px;transform:none}
@media(max-width:720px){.replay-panel{top:auto;left:10px;bottom:10px;width:calc(100% - 20px)}}
/* Leave room for the extra showcase selector at intermediate widths. */
.showcase-panel:not([hidden])~.camera-tools{top:290px}
body:has(.showcase-panel:not([hidden])) #controls-panel{max-height:min(660px,calc(100dvh - 385px))}
@media(max-width:1500px){.showcase-panel:not([hidden])~.camera-tools{top:306px}}
@media(max-width:1000px){.showcase-panel:not([hidden])~.camera-tools{top:344px}body:has(.showcase-panel:not([hidden])) #controls-panel{max-height:calc(100dvh - 410px)}}
@media(max-width:720px){.showcase-panel:not([hidden])~.camera-tools{top:370px}.showcase-panel:not([hidden])~.hint{display:none}body:has(.showcase-panel:not([hidden])) #controls-panel{max-height:calc(100dvh - 434px)}}

/* Small shared counters below the title; never block scene interaction. */
.site-stats{position:absolute;top:89px;left:20px;display:flex;align-items:center;gap:15px;padding:7px 10px;border:1px solid #61708044;border-radius:8px;background:#0e1726d9;color:#aebfd2;font-size:12px;z-index:2;backdrop-filter:blur(8px)}.site-stats>span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.site-stats svg{width:16px;height:16px;fill:none;stroke:#f2cd83;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.site-stats strong{color:#f2cd83;font-size:14px;font-variant-numeric:tabular-nums}.site-stats small{font-size:11px}.site-stats .stats-unavailable{color:#99a7ba}
@media(max-width:1000px){.site-stats{top:125px;font-size:11px;gap:12px}.site-stats strong{font-size:13px}}
@media(max-width:720px){.site-stats{top:151px;left:10px;gap:15px;padding:6px 9px;font-size:12px}.site-stats strong{font-size:14px}}
.brand{flex-shrink:0}.brand h1{white-space:nowrap}

.site-stats{z-index:4}


/* Two locked camera rigs: larger controls and a clear selected state. */
.showcase-panel~.camera-tools{top:242px;align-items:center;gap:8px}.camera-tools button{font-size:18px;font-weight:600;padding:10px 15px;min-height:46px}.camera-tools kbd{font-size:13px}.camera-tools button.selected{background:#f0ce83;color:#17202b;border-color:#f0ce83}
@media(max-width:1000px){.showcase-panel~.camera-tools{top:277px}.camera-tools button{font-size:16px;padding:9px 12px;min-height:42px}}
@media(max-width:720px){.showcase-panel~.camera-tools{top:310px;left:10px;right:10px;display:grid;grid-template-columns:1fr 1fr;gap:7px}.camera-tools button{font-size:15px;padding:9px 8px;min-height:42px}.hint{top:407px}body:has(#controls-panel:not([hidden])) .hint{display:none}.showcase-panel:not([hidden])~.camera-tools{top:350px}body:has(.showcase-panel:not([hidden])) #controls-panel{max-height:calc(100dvh - 466px)}}
