.cq-page{color:#243c58;background:radial-gradient(ellipse at 5% 10%,#dff8ef,transparent 50%),radial-gradient(ellipse at 95% 35%,#eee2ff,transparent 48%),#f9fbff;min-height:100dvh}
.cq-main{padding-block:12px 28px}.cq-intro{display:flex;justify-content:space-between;align-items:end;gap:12px;margin-bottom:14px}.cq-intro h1{font-size:clamp(2rem,4.8vw,3.4rem);letter-spacing:-.06em;line-height:1.06}.cq-intro p:not(.eyebrow){font-size:.85rem;color:#52627b;margin-top:4px}.cq-page .eyebrow{color:#51568d;font-size:.62rem;letter-spacing:.12em}.cq-layout{display:grid;grid-template-columns:218px minmax(0,1fr);align-items:start;gap:12px}
.cq-settings{display:grid;gap:5px;padding:12px;background:#fff;border:1px solid #d9e5eb;border-radius:18px;box-shadow:0 12px 25px #38677914;font-size:.78rem}.cq-guide{display:flex;align-items:center;gap:6px;padding:6px;background:linear-gradient(130deg,#ddf5ea,#eee4ff);border-radius:12px;margin-bottom:5px}.cq-guide img{width:48px;height:60px;object-fit:contain}.cq-guide h2{font-size:1rem;line-height:1.14}.cq-guide p:last-child{font-size:.65rem;color:#466479;font-weight:750;margin-top:4px}.cq-settings>label{font-weight:850;margin-top:4px}
.cq-settings select,.cq-tools select{min-height:38px;min-width:0;border:1px solid #c5d5e3;border-radius:9px;color:#354569;background:#f5f9ff;padding:5px;font:inherit;font-weight:750}.cq-settings select{width:100%}.cq-missions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin-block:9px}.cq-missions button{display:grid;gap:0;place-items:center;min-height:43px;padding:2px;border:1px solid #d5d1eb;border-radius:10px;background:#f7f3ff;color:#584578}.cq-missions button b{font-size:.85rem}.cq-missions button small{font-size:.56rem;line-height:1.1;letter-spacing:-.06em}.cq-missions button[aria-current="true"]{outline:2px solid #8062c4;outline-offset:1px;background:#eae1ff}.cq-missions button[data-solved="true"]{border-color:#83c9af;background:#e5faed;color:#255d4c}.cq-mission-note{padding:8px;border:1px solid #e5d4b6;background:#fff7e8;border-radius:10px;color:#654f2b;font-size:.7rem;line-height:1.4}.cq-mission-note p{margin-top:3px}.cq-save-note{font-size:.64rem;color:#5a6780;line-height:1.4}
.cq-soft,.cq-primary{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:38px;padding:5px 10px;border:1px solid #cec8ea;border-radius:10px;background:#f7f3ff;color:#4f3b7d;font-size:.76rem;font-weight:850;line-height:1.1;text-decoration:none;white-space:nowrap}.cq-primary{border-color:#6350b3;background:linear-gradient(150deg,#8361d6,#5942ac);color:#fff;box-shadow:0 3px 0 #483180}.cq-soft:hover:not(:disabled){background:#ebe4ff}.cq-primary:hover{background:#5b3daf}.cq-soft:disabled,.cq-primary:disabled{opacity:.5;cursor:default}.cq-cabinet{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto auto;gap:6px;min-width:0;height:clamp(540px,calc(100dvh - 225px),850px);padding:9px;border:1px solid #d1dfe7;border-radius:20px;background:linear-gradient(145deg,#fff,#f1f0fc);box-shadow:0 14px 35px #3157731c;overflow:hidden}
.cq-scorebar,.cq-tools{display:flex;align-items:center;gap:5px}.cq-scorebar{justify-content:space-between}.cq-scorebar h2{font-size:clamp(1.16rem,2.5vw,1.85rem);line-height:1.12;letter-spacing:-.04em}.cq-tools select{width:clamp(90px,15vw,220px);font-size:.69rem;min-height:36px}.cq-icon{display:grid;place-items:center;width:37px;min-height:36px;padding:6px;background:#ffffff9e;border:1px solid #cec7ec;border-radius:11px;color:#544384}.cq-icon svg{width:20px;height:20px}.cq-muted,.cq-shrink{display:none}#cq-sound[aria-pressed="true"] .cq-waves{display:none}#cq-sound[aria-pressed="true"] .cq-muted{display:block}
.cq-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.cq-stats>div{display:flex;align-items:center;justify-content:space-between;gap:4px;min-width:0;padding:5px 7px;border:1px solid #c9e0d6;border-radius:9px;background:#eaf9ef;color:#2d5d4d;font-size:.67rem;font-weight:800}.cq-stats>div:nth-child(2){background:#fff3d8;border-color:#edd9b0;color:#705227}.cq-stats>div:nth-child(3){background:#eee6ff;border-color:#d8c9ef;color:#5b4285}.cq-stats>div:nth-child(4){background:#e7f3ff;border-color:#c4d9ed;color:#385a7c}.cq-stats strong{font-size:.87rem;white-space:nowrap;font-variant-numeric:tabular-nums}.cq-stats small{font-size:.58rem;white-space:nowrap}.cq-stats small b{font-weight:800}#cq-time-box[data-low="true"]{background:#ffeadf;border-color:#e6b6a4;color:#854227}
.cq-stage{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:5px;position:relative;isolation:isolate;min-height:0;overflow:hidden;border:1px solid #bdd8da;border-radius:15px;background:#c0ece2 url("festival.webp") center/cover}.cq-stage::before{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(180deg,#effff322,#effff300 25%,#ffedbf22)}.cq-objective{display:flex;align-items:center;justify-content:center;gap:5px;padding:5px 8px;background:#fffcf0e8;border-bottom:1px solid #fff;color:#4f5b57;font-size:.71rem;font-weight:800;line-height:1.3}.cq-objective>span:first-child{color:#8b6330}.cq-objective>p{flex:1;text-align:center}#cq-stars{color:#876020;white-space:nowrap;letter-spacing:-.05em}
.cq-field{position:relative;display:grid;min-width:0;min-height:0;padding:9px 12px 11px}.cq-board-frame{display:grid;place-items:center;min-width:0;min-height:0;container-type:size}.cq-board{display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));grid-template-rows:repeat(var(--rows),minmax(0,1fr));width:min(100%,calc(100cqh * var(--cols) / var(--rows)));aspect-ratio:var(--cols)/var(--rows);padding:clamp(3px,.7cqi,7px);gap:clamp(2px,.5cqi,5px);border:2px solid #e8ffef;border-radius:16px;background:linear-gradient(145deg,#e1f8eff2,#e8e3fbf5);box-shadow:0 6px 0 #799b9ccc,0 13px 25px #355b5655;position:relative;z-index:1}
.cq-grid-row{display:contents}.cq-cell,.cq-empty{min-width:0;min-height:0;position:relative;border-radius:clamp(5px,1.1cqi,12px)}.cq-empty{background:#a9cad82c;box-shadow:inset 0 0 0 1px #a4c0cf33}.cq-cell{container-type:inline-size;display:grid;place-items:center;padding:0;border:1px solid #b9d3d7;background:linear-gradient(145deg,#f9fffd,#c4eae5);box-shadow:0 2px 0 #789b9c;color:#33596d;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.cq-cell:nth-child(2n){background:linear-gradient(145deg,#f8f0ff,#dbd1f3);border-color:#c9b8e0}.cq-cell[data-locked="true"]{background:#e7edf2;box-shadow:inset 0 0 0 1px #fff9;cursor:pointer}.cq-cell[aria-selected="true"]{outline:3px solid #e5a932;outline-offset:1px;z-index:3}.cq-cell:focus-visible{outline:3px solid #5e34a4;outline-offset:2px;z-index:4}.cq-cell:hover{filter:brightness(1.04)}.cq-cell svg{width:100%;height:100%;overflow:visible;filter:drop-shadow(0 1px 1px #5777812b)}.cq-rim,.cq-cable,.cq-current{fill:none;stroke-linecap:round;stroke-linejoin:round}.cq-rim{stroke:#5b8190;stroke-width:21}.cq-cable{stroke:#d5f0ef;stroke-width:13}.cq-current{stroke:#fff4b1;stroke-width:5;stroke-dasharray:10 18;opacity:0}.cq-junction{fill:#cce8e8;stroke:#5b8190;stroke-width:3}.cq-cell[data-powered="true"] .cq-cable{stroke:#f8bd42}.cq-cell[data-powered="true"] .cq-current{opacity:1;animation:cq-flow 1.3s linear infinite}.cq-cell[data-powered="true"] .cq-junction{fill:#fff1ab;stroke:#ab7e29}.cq-cell[data-hint]{animation:cq-hint 1s ease-in-out infinite alternate}.cq-device{fill:#5cb6cc;stroke:#34768d;stroke-width:4}.cq-bolt{fill:#ffdc6b;stroke:#fff2bd;stroke-width:1.5}.cq-gate{fill:#fff8e8;stroke:#8a6caa;stroke-width:4}.cq-gate-name{position:absolute;inset:0;display:grid;place-items:center;color:#604383;font-size:clamp(7px,21cqi,20px);font-weight:950;letter-spacing:-.05em;pointer-events:none}.cq-input-name{position:absolute;right:2px;top:0;color:#fff;background:#225671c9;border-radius:3px;padding:0 2px;font-size:clamp(8px,22cqi,18px);font-weight:950;line-height:1.1}.cq-bulb{fill:#e2e8e8;stroke:#697e86;stroke-width:4}.cq-filament{fill:none;stroke:#819596;stroke-width:4;stroke-linecap:round}.cq-socket{fill:none;stroke:#667386;stroke-width:5;stroke-linecap:round}.cq-cell[data-powered="true"] .cq-bulb{fill:#ffdf6a;stroke:#b58033;filter:drop-shadow(0 0 9px #ffe882)}.cq-cell[data-powered="true"] .cq-filament{stroke:#fffbed}.cq-switch-base{fill:#fff1a5;stroke:#456b7e;stroke-width:3}.cq-switch-arm{fill:none;stroke:#f29383;stroke-width:11;stroke-linecap:round}.cq-lock{position:absolute;left:2px;bottom:-1px;font-size:11px;color:#658197;line-height:1;pointer-events:none}
.cq-story{position:absolute;z-index:0;bottom:12px;width:clamp(80px,12vw,175px);display:none;justify-items:center;pointer-events:none}.cq-story-left{left:18px}.cq-story-right{right:18px}.cq-story img{width:100%;max-height:240px;object-fit:contain;filter:drop-shadow(0 5px 4px #49686166)}.cq-story-note{padding:9px 11px;border:1px solid #fff;border-radius:13px;background:#fffbeeeb;color:#465b61;box-shadow:0 5px 16px #30594d2a;font-size:.72rem;line-height:1.4;margin-bottom:14px}.cq-story-note b{color:#5b4583}.cq-story span#cq-host-name{padding:2px 10px;background:#fff7e5;border:1px solid #fff;border-radius:20px;font-size:.72rem;font-weight:850}.cq-festival{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:15px}.cq-festival-lantern{width:28px;height:33px;border-radius:42%;border:2px solid #72646c;background:var(--lantern);position:relative;opacity:.5}.cq-festival-lantern::before{content:"";position:absolute;left:40%;top:-8px;width:5px;height:8px;background:#756979}.cq-festival-lantern[data-lit="true"]{opacity:1;box-shadow:0 0 18px #fff19f, inset 0 0 10px #fff3bd}.cq-checks{display:flex;justify-content:center;gap:4px;padding:3px 6px 6px;background:#fff6d68c;flex-wrap:wrap}.cq-checks button{display:flex;justify-content:center;align-items:center;gap:5px;min-height:27px;min-width:47px;padding:2px 7px;border:1px solid #c4d5de;border-radius:8px;background:#fffffff0;font-size:.67rem;color:#40566c;font-weight:850}.cq-checks button b{color:#876021;font-size:.89rem}.cq-checks button i{font-style:normal}.cq-checks button[aria-pressed="true"]{outline:2px solid #8962bd}.cq-checks button[data-result="pass"]{background:#e6f9e7;color:#2c6148;border-color:#95c9a5}.cq-checks button[data-result="fail"]{background:#fff0df;border-color:#d8a583;color:#7d4633}
.cq-console{display:grid;gap:6px}.cq-inspector{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 7px;border:1px solid #d5deeb;border-radius:11px;background:#f6faff}.cq-inspector>div:first-child{min-width:0}.cq-inspector strong{font-size:.77rem;color:#355473}.cq-inspector p{font-size:.68rem;color:#596a83;line-height:1.25;margin-top:1px}.cq-part-actions,.cq-controls,.cq-edit-actions,.cq-play-actions{display:flex;align-items:center;gap:5px}.cq-part-actions{flex:none}.cq-part-actions .cq-soft{min-width:36px;min-height:34px;padding:4px 7px}.cq-controls{justify-content:space-between;flex-wrap:wrap}.cq-feedback{display:flex;align-items:center;gap:6px;min-height:34px;padding:4px 7px;border-radius:10px;background:#eaf3ff;color:#3a577b;font-size:.73rem;font-weight:800;line-height:1.25}.cq-feedback img{width:20px;height:27px;object-fit:contain;flex:none}.cq-feedback[data-tone="success"]{background:#e4f7df;color:#345f3b}.cq-feedback[data-tone="retry"]{background:#fff0df;color:#795032}.cq-feedback[data-tone="checking"]{background:#f0e7ff;color:#64468a}
.cq-celebration{position:absolute;z-index:5;left:50%;top:50%;transform:translate(-50%,-50%);pointer-events:none}.cq-celebration>div{display:grid;justify-items:center;gap:4px;padding:14px 24px;border:2px solid #fff;border-radius:20px;background:#fff9e9ed;box-shadow:0 10px 35px #556b6f50;animation:cq-win .6s ease-out;color:#554381;white-space:nowrap}.cq-restore-mark{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#5fac92;color:#fff;font-size:1.8rem;font-weight:900}.cq-earned{color:#98661b;font-size:1.6rem;letter-spacing:.06em}.cq-pause-cover{position:absolute;z-index:7;inset:0;display:grid;place-items:center;background:#edfbf6ed;backdrop-filter:blur(5px)}.cq-pause-cover>div{display:grid;justify-items:center;gap:12px}.cq-pause-cover h3{font-size:1.7rem;letter-spacing:-.04em}.cq-stage[data-phase="paused"] *{animation-play-state:paused!important}.cq-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@keyframes cq-flow{to{stroke-dashoffset:-56}}@keyframes cq-hint{to{box-shadow:0 0 0 4px #eebc4f,0 0 18px #ffe397}}@keyframes cq-win{from{opacity:0;scale:.75;translate:0 20px}to{opacity:1;scale:1}}
.cq-layout:is(:fullscreen,.is-expanded){position:fixed;inset:0;z-index:1000;display:block;width:100%;height:100dvh;padding:max(5px,env(safe-area-inset-top)) max(5px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(5px,env(safe-area-inset-left));overflow:hidden;background:#eff7f7}.cq-layout:is(:fullscreen,.is-expanded) .cq-settings{display:none}.cq-layout:is(:fullscreen,.is-expanded) .cq-cabinet{width:100%;height:100%;min-height:0;box-shadow:none}.cq-layout:is(:fullscreen,.is-expanded) .cq-expand{display:none}.cq-layout:is(:fullscreen,.is-expanded) .cq-shrink{display:block}.cq-layout:is(:fullscreen,.is-expanded) .cq-icon{background:#ffffff90}html:has(.cq-layout.is-expanded){overflow:hidden}.cq-page:has(.cq-layout:is(:fullscreen,.is-expanded)) :is(.site-header,.skip,.cq-intro,.game-crumbs,.game-reading,.games-footer){visibility:hidden}
@media(min-width:1180px) and (min-height:650px){.cq-story{display:grid}.cq-layout:is(:fullscreen,.is-expanded) .cq-story{width:clamp(140px,15vw,230px);bottom:18px}.cq-layout:is(:fullscreen,.is-expanded) .cq-story img{max-height:300px}.cq-layout:is(:fullscreen,.is-expanded) .cq-story-note{font-size:clamp(.76rem,1vw,1rem)}}
@media(max-width:1000px){.cq-layout{grid-template-columns:180px minmax(0,1fr)}.cq-settings{padding:8px}.cq-tools select{width:105px}.cq-guide img{width:38px}.cq-guide .eyebrow{display:none}.cq-scorebar h2{font-size:1.1rem}.cq-stats>div{display:grid;justify-content:center;text-align:center;padding:3px;font-size:.62rem}.cq-stats small{display:block}.cq-inspector p{font-size:.62rem}.cq-controls{justify-content:center}}
@media(max-width:760px){.cq-main{width:calc(100% - 16px)}.cq-layout{grid-template-columns:minmax(0,1fr)}.cq-settings{grid-template-columns:repeat(2,minmax(0,1fr));align-items:center}.cq-guide,.cq-missions,.cq-mission-note,.cq-save-note,.cq-settings>button{grid-column:1/-1}.cq-settings>label{margin:0}.cq-missions{grid-template-columns:repeat(6,minmax(0,1fr));margin:4px 0}.cq-guide{margin:0}.cq-mission-note,.cq-save-note{display:none}.cq-cabinet{height:600px;padding:6px;gap:5px}.cq-intro{align-items:start}.cq-intro h1{font-size:2rem}.cq-intro p:not(.eyebrow){font-size:.73rem}.cq-intro>.cq-soft{padding:5px;font-size:.66rem}.cq-field{padding:6px 7px 8px}.cq-feedback{font-size:.68rem}.cq-inspector{gap:4px;padding:4px}.cq-part-actions{gap:3px}.cq-part-actions .cq-soft{padding:3px 5px;font-size:.64rem}.cq-inspector p{font-size:.6rem}.cq-edit-actions .cq-soft,.cq-play-actions .cq-soft,.cq-play-actions .cq-primary{padding-inline:7px;font-size:.68rem;min-height:34px}.cq-controls{gap:4px}.cq-tools select{width:90px;font-size:.62rem;min-height:34px}.cq-icon{width:33px;min-height:33px;padding:5px}.cq-stats>div{display:grid;justify-content:center;font-size:.58rem;padding:2px}.cq-stats strong{font-size:.75rem}.cq-stats small{font-size:.51rem}.cq-objective{font-size:.65rem;padding:4px 6px}.cq-checks{gap:3px;padding:3px 4px}.cq-checks button{min-width:41px;min-height:24px;padding:1px 4px;font-size:.58rem;gap:3px}.cq-checks button b{font-size:.75rem}}
@media(max-width:440px){.cq-scorebar h2{font-size:.97rem}.cq-scorebar .eyebrow{font-size:.53rem;letter-spacing:.05em}.cq-tools select{width:77px}.cq-cabinet{border-radius:13px}.cq-inspector{display:grid;grid-template-columns:minmax(0,1fr) auto}.cq-inspector p{max-width:30ch;line-height:1.2}.cq-inspector strong{font-size:.67rem}.cq-part-actions #cq-change{max-width:88px;white-space:normal}.cq-stats>div:nth-child(3)>span{font-size:.55rem}.cq-stats small{display:none}.cq-edit-actions{gap:3px}.cq-controls{justify-content:center}.cq-play-actions{gap:4px}.cq-board{border-radius:9px}.cq-cell[aria-selected="true"]{outline-width:2px;outline-offset:0}.cq-feedback{font-size:.64rem;padding:3px 5px}.cq-feedback img{height:23px}.cq-restore-mark{width:30px;height:30px;font-size:1.3rem}.cq-celebration>div{padding:10px 15px;font-size:.83rem}}
@media(max-height:500px) and (min-width:600px){.cq-layout:is(:fullscreen,.is-expanded) .cq-cabinet{gap:3px;padding:4px}.cq-layout:is(:fullscreen,.is-expanded) .cq-scorebar h2{font-size:1rem}.cq-layout:is(:fullscreen,.is-expanded) .cq-stats>div{display:flex;padding:2px 5px}.cq-layout:is(:fullscreen,.is-expanded) .cq-inspector{padding:2px 5px}.cq-layout:is(:fullscreen,.is-expanded) .cq-inspector p{display:none}.cq-layout:is(:fullscreen,.is-expanded) .cq-controls{justify-content:space-between}.cq-layout:is(:fullscreen,.is-expanded) :is(.cq-soft,.cq-primary){min-height:28px;font-size:.65rem;padding:3px 7px}.cq-layout:is(:fullscreen,.is-expanded) .cq-console{gap:3px}.cq-layout:is(:fullscreen,.is-expanded) .cq-feedback{min-height:26px;padding:2px 5px;font-size:.65rem}.cq-layout:is(:fullscreen,.is-expanded) .cq-objective{padding:2px 6px}.cq-layout:is(:fullscreen,.is-expanded) .cq-field{padding:5px 8px 7px}.cq-layout:is(:fullscreen,.is-expanded) .cq-checks{padding:2px 5px;flex-wrap:nowrap}.cq-layout:is(:fullscreen,.is-expanded) .cq-checks button{min-height:22px;min-width:38px;font-size:.6rem}.cq-layout:is(:fullscreen,.is-expanded) .cq-stage{grid-template-columns:minmax(0,1fr) 140px;grid-template-rows:auto minmax(0,1fr)}.cq-layout:is(:fullscreen,.is-expanded) .cq-objective{grid-column:1/-1}.cq-layout:is(:fullscreen,.is-expanded) .cq-field{grid-column:1}.cq-layout:is(:fullscreen,.is-expanded) .cq-checks{grid-column:2;grid-row:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:center}.cq-layout:is(:fullscreen,.is-expanded) .cq-stage:has(.cq-checks[hidden]){grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.cq-cell,.cq-current,.cq-celebration>div{animation:none!important}.cq-pause-cover{backdrop-filter:none}}

/* Compact full-screen controls keep the board at the largest square that fits. */
.cq-cabinet:has(.cq-stage[data-phase="won"]) :is(#cq-power,#cq-pause){display:none}
@media(max-width:440px) and (max-height:680px){
 .cq-layout:is(:fullscreen,.is-expanded) .cq-cabinet{padding:4px;gap:3px}
 .cq-layout:is(:fullscreen,.is-expanded) .cq-scorebar h2{font-size:.91rem}
 .cq-layout:is(:fullscreen,.is-expanded) .cq-stats>div{display:flex;justify-content:space-between;padding:3px;font-size:.52rem;gap:2px}
 .cq-layout:is(:fullscreen,.is-expanded) .cq-stats>div:nth-child(3)>span{font-size:.48rem}
 .cq-layout:is(:fullscreen,.is-expanded) .cq-stats strong{font-size:.64rem}
 .cq-layout:is(:fullscreen,.is-expanded) .cq-objective{padding:3px 5px;font-size:.58rem;line-height:1.2}
 .cq-layout:is(:fullscreen,.is-expanded) .cq-inspector p{display:none}
 .cq-layout:is(:fullscreen,.is-expanded) .cq-inspector strong{font-size:.61rem}
 .cq-layout:is(:fullscreen,.is-expanded) .cq-inspector{padding:3px;min-height:30px}
 .cq-layout:is(:fullscreen,.is-expanded) .cq-part-actions .cq-soft{min-height:26px;min-width:27px;font-size:.57rem;padding:3px 4px}
 .cq-layout:is(:fullscreen,.is-expanded) .cq-console{gap:3px}
 .cq-layout:is(:fullscreen,.is-expanded) .cq-controls{flex-wrap:nowrap;justify-content:space-between;gap:3px}
 .cq-layout:is(:fullscreen,.is-expanded) .cq-edit-actions{gap:3px}
 .cq-layout:is(:fullscreen,.is-expanded) .cq-edit-actions .cq-soft{width:27px;min-height:29px;padding:2px;font-size:.8rem}
 .cq-layout:is(:fullscreen,.is-expanded) .cq-edit-actions .cq-soft span{display:none}
 .cq-layout:is(:fullscreen,.is-expanded) .cq-play-actions{gap:3px}
 .cq-layout:is(:fullscreen,.is-expanded) .cq-play-actions :is(.cq-soft,.cq-primary){min-height:29px;padding:4px 6px;font-size:.61rem}
 .cq-layout:is(:fullscreen,.is-expanded) .cq-checks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;padding:3px 5px}
 .cq-layout:is(:fullscreen,.is-expanded) .cq-checks button{min-height:22px;min-width:0;font-size:.58rem}
 .cq-layout:is(:fullscreen,.is-expanded) .cq-feedback{min-height:26px;font-size:.61rem;line-height:1.2}
 .cq-layout:is(:fullscreen,.is-expanded) .cq-field{padding:5px 6px 7px}
}
@media(max-height:500px) and (min-width:600px){
 .cq-layout:is(:fullscreen,.is-expanded) .cq-cabinet{grid-template:"head head" auto "stage stats" auto "stage console" minmax(0,1fr) "feedback feedback" auto/minmax(0,1fr) 235px}
 .cq-layout:is(:fullscreen,.is-expanded) .cq-scorebar{grid-area:head}
 .cq-layout:is(:fullscreen,.is-expanded) .cq-stats{grid-area:stats;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px}
 .cq-layout:is(:fullscreen,.is-expanded) .cq-stage{grid-area:stage;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto}
 .cq-layout:is(:fullscreen,.is-expanded) .cq-objective{grid-column:1;grid-row:1}
 .cq-layout:is(:fullscreen,.is-expanded) .cq-field{grid-column:1;grid-row:2}
 .cq-layout:is(:fullscreen,.is-expanded) .cq-checks{grid-column:1;grid-row:3;display:flex;flex-wrap:wrap;align-content:center;gap:2px}
 .cq-layout:is(:fullscreen,.is-expanded) .cq-checks button{font-size:.54rem;min-width:36px;padding:1px 3px}
 .cq-layout:is(:fullscreen,.is-expanded) .cq-console{grid-area:console;align-content:end;gap:6px}
 .cq-layout:is(:fullscreen,.is-expanded) .cq-inspector{flex-direction:column;align-items:stretch;gap:4px}
 .cq-layout:is(:fullscreen,.is-expanded) .cq-part-actions{justify-content:center}
 .cq-layout:is(:fullscreen,.is-expanded) .cq-controls{justify-content:center;gap:8px}
 .cq-layout:is(:fullscreen,.is-expanded) .cq-edit-actions .cq-soft{width:33px;min-height:31px;font-size:.88rem}
 .cq-layout:is(:fullscreen,.is-expanded) .cq-edit-actions .cq-soft span{display:none}
 .cq-layout:is(:fullscreen,.is-expanded) .cq-feedback{grid-area:feedback}
}


