.horizontal-rail{scroll-padding-inline:var(--gutter)}
.game-panel{flex:0 0 43vw;width:43vw;min-width:420px;max-width:650px;height:100%;padding:20px 30px 8px;border-top:1px solid var(--rule);border-left:1px solid var(--rule);display:flex;flex-direction:column;scroll-snap-align:start;min-height:0}
.horizontal-rail>[data-panel]:first-child{border-left:0;padding-left:0}
.game-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;margin:14px 0 16px;flex:none}
.game-heading h2{font-size:clamp(42px,4.4vw,64px);letter-spacing:-.07em;line-height:1;font-weight:800;white-space:nowrap}
.game-heading h2 br{display:none}.game-heading h2 em{margin-left:.12em}
.game-heading h2 em{font-family:'Bodoni Moda',Georgia,serif;font-weight:600;transition:font-weight .4s,letter-spacing .4s}
.game-heading:hover h2 em{font-weight:900;letter-spacing:-.02em}
.game-heading p{font-size:10px;line-height:1.8;color:var(--muted);padding-bottom:3px;max-width:160px}
.game-heading p>span:first-child{font-weight:700;color:var(--ink);font-size:12px}
.game-main{flex:1;min-height:0;display:flex;justify-content:center;gap:22px;position:relative;container-type:size}
.board-wrap{position:relative;aspect-ratio:1/2;height:100%;max-width:calc(100% - 112px);border:1px solid var(--ink);flex:none}
#blocks-board{display:block;width:100%;height:100%;outline-offset:3px;touch-action:pan-x pan-y}
.game-overlay{position:absolute;inset:0;background:color-mix(in srgb,var(--paper) 90%,transparent);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:8px;text-align:center}
.game-overlay[hidden]{display:none}
.game-overlay>strong{font-family:'Bodoni Moda',Georgia,serif;font-style:italic;font-size:clamp(24px,3vw,42px);line-height:1.05;font-weight:600;letter-spacing:-.04em}
.game-overlay>.pill{font-size:11px;min-height:40px;padding:7px 12px}
.game-sidebar{width:106px;flex:none;min-height:0;display:flex;flex-direction:column;gap:10px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;padding:0 5px 2px 0}
.game-sidebar span,.game-records summary{font-size:9px;line-height:1.6;color:var(--muted)}
.game-stat{display:flex;flex-direction:column;gap:2px;flex:none}
.game-stat output{font:600 32px/1.05 'Barlow Condensed',sans-serif;overflow-wrap:anywhere}
.game-stat.minor output{font:500 22px/1.1 Manrope,sans-serif;letter-spacing:-.05em}
.game-small-stats{display:flex;gap:22px;flex:none}
.game-small-stats>div{display:flex;flex-direction:column;gap:2px}
.game-small-stats output{font:500 18px/1.2 'Courier New',monospace}
.next-piece{display:flex;flex-direction:column;border-top:1px solid var(--rule);padding-top:7px;flex:none}
#blocks-next{display:block;width:82px;height:54px}
.game-records{border-top:1px solid var(--rule);padding-top:7px;flex:none}
.game-records summary{cursor:pointer;color:var(--ink);font-weight:600;line-height:1.8}
.game-records ol{list-style:none;padding:0;margin:7px 0 0;font:9px/1.9 'Courier New','Noto Thai',monospace}
.game-sidebar .score-storage{font-size:8px;line-height:1.6;display:block}
.game-controls{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin-top:15px;flex:none;touch-action:none;user-select:none}
.game-controls button{min-height:48px;border:1px solid var(--rule);display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1px;touch-action:none;user-select:none;-webkit-user-select:none}
.game-controls b{font:400 22px/1.1 Manrope,sans-serif}.game-controls small{font-size:9px;line-height:1.3}
.game-controls button:active:enabled,.game-controls button:focus-visible{color:var(--paper);background:var(--ink)}
.game-controls button:disabled{opacity:.35;cursor:default}
.game-toolbar{display:flex;align-items:center;justify-content:space-between;gap:9px;font-size:10px;min-height:35px;margin-top:5px;flex:none}
.game-toolbar button{min-height:32px;font-weight:650}.game-toolbar button:disabled{opacity:.3;cursor:default}.game-toolbar>span{font-size:9px;color:var(--muted)}
.game-keyboard{font-size:9px;line-height:1.6;color:var(--muted);text-align:center;flex:none}
.game-sidebar{overscroll-behavior:contain}
@media(max-width:1000px){.game-panel{flex-basis:56vw;width:56vw;min-width:360px}.game-heading{display:block}.game-heading h2{font-size:51px}.game-heading p{max-width:none;margin-top:4px;display:flex;gap:8px}.game-heading p br{display:none}.site-header nav{gap:16px}}
@media(max-width:600px){.game-panel{flex-basis:calc(100vw - 40px);width:calc(100vw - 40px);min-width:0;max-width:none;padding:15px 15px 6px}.site-header nav>.play-link{display:block;font-size:10px}.site-header nav{gap:12px}.game-heading{margin:14px 0 15px;gap:9px}.game-heading h2{font-size:53px}.game-heading p{font-size:9px;max-width:125px}.game-heading p>span:first-child{font-size:11px}.game-main{gap:14px}.game-sidebar{width:80px;gap:8px}.board-wrap{max-width:calc(100% - 94px)}.game-stat output{font-size:29px}.game-stat.minor output{font-size:21px}#blocks-next{width:76px;height:46px}.game-overlay>strong{font-size:27px}.game-overlay>.pill{padding:7px 8px;font-size:10px}.game-controls{margin-top:12px;gap:5px}.game-controls button{min-height:48px}.game-keyboard{font-size:8px}.game-toolbar{font-size:10px}.game-toolbar>span{font-size:8px}}
@media(max-height:650px){.game-panel{padding-top:12px}.game-heading{margin:10px 0}.game-heading h2{font-size:40px;line-height:.85}.game-heading p{font-size:9px}.game-controls{margin-top:9px}.game-controls button{min-height:44px}.game-toolbar{min-height:28px;margin-top:1px}.game-toolbar button{min-height:28px}.game-keyboard{font-size:8px}.game-stat output{font-size:25px}.game-sidebar{gap:6px}.game-overlay{gap:10px}.game-overlay>strong{font-size:23px}}
@media(max-height:450px) and (min-width:601px){.game-heading h2 br{display:none}.game-heading h2{font-size:33px}.game-heading{margin:6px 0}.game-keyboard{display:none}.game-controls button{min-height:44px}.game-overlay>strong{display:none}.game-panel{min-width:440px}.game-main{justify-content:space-evenly}.game-sidebar{width:160px;display:grid;grid-template-columns:1fr 1fr;align-content:start}.game-records,.score-storage{grid-column:1/-1}}
/* Keep the board tall; the editorial title and scores share the right column. */
.game-main{margin-top:20px;gap:25px;justify-content:space-evenly}
.board-wrap{height:min(100cqh,calc((100cqw - 180px)*2));max-width:none;align-self:flex-start}
.game-sidebar{width:155px;display:grid;grid-template-columns:1fr 1fr;gap:14px 10px;align-content:start}
.game-sidebar .game-heading{grid-column:1/-1;display:block;margin:0 0 6px}
.game-sidebar .game-heading h2{font-size:47px;line-height:.91;white-space:normal}
.game-sidebar .game-heading h2 br{display:block}
.game-sidebar .game-heading h2 em{margin-left:0}
.game-sidebar .game-heading p{display:block;font-size:9px;line-height:1.7;margin-top:10px;max-width:none}
.game-sidebar .game-heading p br{display:block}
.game-small-stats{flex-direction:column;gap:8px}
.next-piece{border:0;padding-top:0}.next-piece canvas{max-width:100%;height:50px!important}
.game-records,.score-storage{grid-column:1/-1}
.game-overlay>strong{font-size:clamp(24px,2.2vw,34px);overflow-wrap:normal}
@media(max-width:600px){.game-main{margin-top:17px;gap:14px}.game-sidebar{width:100px;gap:10px 6px}.board-wrap{height:min(100cqh,calc((100cqw - 114px)*2))}.game-sidebar .game-heading h2{font-size:36px}.game-sidebar .game-heading p{font-size:8px;margin-top:7px}.game-sidebar .game-heading p>span:first-child{font-size:10px}.game-sidebar .game-heading p>span:last-child{display:none}.game-stat output{font-size:27px}.game-stat.minor output{font-size:20px}.game-small-stats output{font-size:16px}.game-sidebar span,.game-records summary{font-size:8px}.game-overlay>strong{font-size:26px}}
@media(max-height:650px){.game-main{margin-top:12px}.game-sidebar .game-heading h2{font-size:33px}.game-sidebar .game-heading p{margin-top:4px}.game-sidebar .game-heading p>span:last-child{display:none}.game-sidebar{gap:8px}.game-small-stats{gap:5px}}
@media(max-width:360px){.site-header nav{gap:8px;font-size:10px}.site-header{gap:10px}.site-header .brand{width:36px;height:36px}.gallery-heading h1{font-size:19px}.gallery-heading>span:last-child{font-size:8px}.game-sidebar{width:84px}.game-main{gap:10px}.board-wrap{height:min(100cqh,calc((100cqw - 94px)*2))}.game-controls{gap:4px}.game-sidebar .game-heading h2{font-size:31px}.game-stat.minor output{font-size:17px}}
