#games>h2{margin-bottom:.5rem}
.game-intro{margin:.3rem 0 .7rem}
.game-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem .65rem}
.game-settings .sec{margin:0;min-width:0}
.game-settings:has(>.sec[open]){grid-template-columns:minmax(0,1fr)}
.game-filter{display:flex;align-items:center;justify-content:space-between;gap:.65rem 1rem;flex-wrap:wrap;margin:1rem 0 .85rem;padding:.65rem 0;border-block:1px solid var(--ln)}
.game-levels{display:flex;gap:.3rem;flex-wrap:wrap}
.game-levels button{font:700 .86rem system-ui;min-height:44px;border:1px solid var(--ln);border-radius:7px;background:var(--bt);color:var(--tx);padding:.35rem .65rem;cursor:pointer}
.game-levels button:hover{border-color:var(--ac)}
.game-levels [aria-pressed=true]{background:var(--acb);color:#1a1205;border-color:var(--acb)}
.game-filter-extra{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.game-filter-extra label,.game-filter-extra .st{margin:0}
.game-filter-extra select{width:auto;min-height:44px;margin:0;padding:.35rem .42rem}
.game-filter-extra .st{font-size:.85rem;font-variant-numeric:tabular-nums}
.game-tier{background:none;border:0;padding:0;margin:0 0 1.25rem}
.game-tier-following{border-top:1px solid var(--ln);border-radius:0;padding-top:1rem}
.game-tier[hidden],.gcard[hidden],#game-empty[hidden]{display:none}
.game-tier>h3{margin:0;font-size:1.2rem;line-height:1.25;color:var(--tx)}
.game-tier>p{margin:.3rem 0 .7rem;color:var(--mu);font-size:.9rem}
.gcards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}
.gcard .btn{min-height:44px;text-align:left}
.gcard{position:relative}
.game-star{display:grid;place-items:center;min-width:44px;min-height:44px;padding:0;border:1px solid var(--ln);border-radius:8px;background:var(--bg);color:var(--tx);font:1.4rem/1 system-ui;cursor:pointer}
.gcard .game-star{position:absolute;top:.58rem;right:.58rem}
.game-star[aria-pressed=true]{color:var(--ac);border-color:var(--ac)}
.game-star:hover,.game-star:focus-visible{outline:2px solid var(--ac);outline-offset:2px}
#game-focus-bar[hidden],#game-lobby[hidden],#game-quick-controls[hidden]{display:none}
#game-focus-bar{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin:0 0 .45rem}
#game-back{min-height:44px;display:inline-flex;align-items:center;color:var(--ac);font-weight:700}
#game-quick-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.4rem;margin:.38rem 0 .65rem}
#game-quick-controls label{display:flex;align-items:center;gap:.4rem;background:var(--in);border:1px solid var(--ln);border-radius:7px;color:var(--mu);font-size:.8rem;padding:.24rem .45rem;margin:0}
#game-quick-controls input{margin:0 0 0 auto;max-width:5.25rem;min-height:32px;padding:.25rem .4rem;color:var(--tx)}
.game-focused #games>h2,.game-focused .game-intro{display:none}
.game-focused>header{padding:.4rem .75rem}
.game-focused>header .logo{width:40px;margin:0}
.game-focused>header .tag,.game-focused>header h1{display:none}
.game-focused>header #themeBtn,.game-focused>header .utc{top:.35rem}
.game-focused main{padding-block:.55rem}
.game-focused #games{margin-top:0;padding-top:.65rem}
.game-focused .gpanel{margin-top:.45rem}
.game-focused .gpanel h3[tabindex]:focus{outline:none}
@media(max-width:540px){
 #game-quick-controls label{display:grid;gap:.2rem}
 #game-quick-controls input{max-width:none;width:100%;min-height:36px}
}
#gcards{scroll-margin-top:3.5rem}
#game-empty{padding:.7rem .85rem;margin-bottom:1rem;border:1px dashed var(--ln);border-radius:8px}
#game-empty p{margin:.25rem 0 .5rem;color:var(--mu)}
@media(max-width:760px){.gcards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:510px){
 .gcards{grid-template-columns:minmax(0,1fr)}
 .game-settings{gap:.4rem}
 .game-settings .sumv{display:none}
 .game-settings summary{font-size:.84rem;padding-inline:.45rem;gap:.3rem;min-height:44px;box-sizing:border-box}
 .game-levels{gap:.18rem}
 .game-levels button{padding-inline:.2rem;font-size:.75rem}
}
.g-next{margin:.65rem 0 0;padding:.55rem .65rem;border-top:1px solid var(--ln)}.g-next a,.desk-panel .how a{color:var(--ac)}.game-play-zone,.game-play-entry{display:contents}
@media(min-width:720px) and (max-height:920px) and (pointer:fine){
 .gpanel,.desk-panel{scroll-margin-top:3.35rem}.game-compact .scene,.game-compact .od-scene,.desk-panel .desk-scene{margin:0;min-height:0}
 .game-compact .scene{max-height:230px}.game-compact .od-scene canvas,.game-compact .space-stage canvas{max-height:220px;object-fit:contain}.desk-panel .desk-scene img{height:clamp(115px,27vh,185px);min-height:0;object-position:50% 48%}
 .desk-panel:not(.hide){display:grid;grid-template-columns:minmax(0,1fr);gap:.4rem}.desk-panel .desk-columns{display:contents}.desk-panel .desk-heading{margin:0}.desk-heading h3{margin:.08rem 0 .2rem;font-size:clamp(1.55rem,4vw,2.15rem)}.desk-panel .how,.desk-controls{margin:0}.desk-work,.desk-paper{padding:.62rem .75rem}.desk-work p{margin:.35rem 0}.desk-panel .desk-actions{gap:.35rem}.desk-form{margin:.4rem 0}.desk-panel .desk-controls{grid-row:3}.desk-panel .desk-work{margin:0}.desk-panel .desk-debrief{margin-top:.2rem}.desk-scene figcaption{padding:.3rem .65rem}
 .game-compact .game-play-zone{display:grid;gap:.4rem;scroll-margin-top:3.6rem}.game-compact .game-play-entry{display:block;min-width:0}.game-compact .game-play-entry .st{margin:.3rem 0}.game-compact .game-play-entry .stats,.game-compact .game-play-entry .od-hud{margin:.35rem 0}.game-compact .grid,.game-compact .gbtns{margin:.35rem 0}.game-compact .game-play-entry .tbar{margin:.25rem 0}
}
@media(min-width:1050px) and (max-height:920px) and (pointer:fine){
 body:has(.gpanel:not(.hide)) main{max-width:1080px}
 .desk-panel:not(.hide){grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);grid-template-rows:auto auto auto auto}.desk-panel .desk-heading,.desk-panel>.how,.desk-panel .desk-paper,.desk-panel .desk-debrief{grid-column:1/-1}
 .desk-panel .desk-scene{grid-column:1;grid-row:3/5;align-self:start}.desk-panel .desk-scene img{height:auto;max-height:clamp(220px,43vh,340px);aspect-ratio:16/9}.desk-panel .desk-controls{grid-column:2;grid-row:3}.desk-panel .desk-work{grid-column:2;grid-row:4;align-self:start}
 .game-compact .game-play-zone{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:start;gap:.8rem}.game-compact .game-play-zone .scene,.game-compact .od-scene canvas,.game-compact .space-stage canvas{max-height:clamp(220px,43vh,340px)}.game-compact .game-play-entry .gbtns:first-child{margin-top:0}
 .game-compact .climbwrap .scene.tall{max-height:clamp(215px,43vh,315px)}
}
@media(min-width:720px) and (max-width:1049px) and (max-height:920px) and (pointer:fine){
 .game-compact .game-play-zone .scene,.game-compact .od-scene canvas,.game-compact .space-stage canvas{max-height:clamp(105px,25vh,165px)}
 .game-compact .climbwrap .scene.tall{max-height:clamp(110px,26vh,170px)}
}
