/* Only integration sizing; original game styles and artwork remain unchanged. */
html{background:transparent}body{min-height:100dvh}header{padding-top:12px}.home-panel{margin-top:22px;margin-bottom:22px}
/* The public page already shows the title; keep only the game's menu here. */
header .brand{display:none}header{justify-content:flex-end}
.sol-fullscreen-game .play-area{max-width:min(var(--board-width),calc(100dvh - 235px))}
body:not(.sol-fullscreen-game) dialog{max-height:calc(var(--sol-host-height,100dvh) - 24px);overflow:auto}
body:not(.sol-fullscreen-game) dialog[data-kind=reward] .reward-image{max-height:max(100px,calc(var(--sol-host-height,100dvh) - 430px))}
body:not(.sol-fullscreen-game) dialog[data-kind=share] .share-preview{max-height:max(90px,calc(var(--sol-host-height,100dvh) - 480px))}
@media(max-height:480px) and (min-width:600px){.sol-fullscreen-game .puzzle-title{margin:2px auto}.sol-fullscreen-game .below-board{margin:2px 0}.sol-fullscreen-game .feedback{margin:0 auto;padding:3px 8px}.sol-fullscreen-game .board-top .icon{height:36px;min-height:36px;width:36px;min-width:36px}}
@media(max-height:480px) and (min-width:600px){.sol-fullscreen-game header{padding:5px 14px}.sol-fullscreen-game .brand{font-size:24px}.sol-fullscreen-game header .icon{height:38px;min-height:38px;width:38px;min-width:38px}.sol-fullscreen-game main{padding:0 12px 8px}.sol-fullscreen-game .game-layout{max-width:650px}.sol-fullscreen-game .play-area{display:grid;grid-template-columns:calc(100dvh - 72px) 210px;gap:5px 14px;max-width:none;width:fit-content;align-items:center}.sol-fullscreen-game #board{grid-column:1;grid-row:1/5}.sol-fullscreen-game .board-top,.sol-fullscreen-game .puzzle-title,.sol-fullscreen-game .below-board,.sol-fullscreen-game .feedback{grid-column:2}.sol-fullscreen-game .board-top{flex-wrap:wrap}.sol-fullscreen-game .board-top .pill{font-size:14px;padding:5px 9px}.sol-fullscreen-game .feedback{font-size:11px}.sol-fullscreen-game dialog{overflow:auto;max-height:calc(100dvh - 12px)}}
/* A modal belongs to the game frame, not the outer studio page. */
@media(max-height:480px) and (min-width:600px){dialog[data-kind=menu]{width:620px}.menu-panel{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px}.menu-heading{grid-column:1/-1}.menu-panel>.menu-continue{display:none}.menu-panel>button{justify-self:center;width:100%;min-height:44px}.menu-panel .setting{font-size:14px}.menu-panel select{min-width:0}.menu-panel>.music-track{grid-column:2;grid-row:3}.menu-panel>.toggle-row{justify-content:space-between}.menu-panel>.menu-about{grid-column:1}.menu-panel>.menu-restart{grid-column:1/-1;width:220px}}
