/* Deep foliage, warm brass, and a quiet frame around the puzzle. */
:root{
 color-scheme:light;--paper:#163b30;--ink:#fff1d7;--quiet:#d2dfbe;--green:#235444;--wash:#285647;
 --line:#729273;--brass:#e7b968;--rose:#f29684;--vellum:#f6ebd1;--deep-ink:#234638;
 --game-column-max:460px;--common-bottom:0px;--book-offset:0px;--side:clamp(10px,3vw,16px);
 font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-synthesis:none;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;min-height:100dvh;overflow:hidden;color:var(--ink)}
button,input,summary{font:inherit}
button{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
button:disabled{cursor:default}
:where(button,input,summary,[tabindex]):focus-visible{outline:3px solid #ffdda3;outline-offset:3px}
.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Promotion measurement and banner alignment are shared with the previous shell. */
#gameShell,#commonBottom,#promotionMeasure{width:min(100%,var(--game-column-max))}
#gameShell{height:calc(100dvh - var(--common-bottom));top:var(--book-offset);margin:auto;position:relative;background:var(--paper);box-shadow:0 14px 80px #071d17bb}
#commonBottom{position:fixed;bottom:var(--book-offset);left:50%;transform:translateX(-50%);height:var(--common-bottom);display:flex;flex-direction:column;align-items:center;justify-content:flex-start;background:var(--paper)}
#promotions{width:100%;flex:0 0 auto}
#banner{position:absolute;top:0;left:50%;width:min(100%,320px);transform:translateX(-50%)}
#promotionMeasure{position:fixed;top:-2000px;left:0;visibility:hidden;pointer-events:none}

/* The title art remains the visual focus. Only the two entry actions and sound are offered. */
#titleScreen{height:100%;position:relative;isolation:isolate;display:grid;padding:calc(env(safe-area-inset-top) + 12px) var(--side) 17px;overflow:hidden;background:#134538;text-align:center}
.title-art{position:absolute;inset:0;z-index:-2}
.title-art img{display:block;height:100%;width:100%;object-fit:cover;object-position:50% 52%}
#titleScreen::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,#0a2924ab,#0d302e45 28%,transparent 50%,transparent 63%,#103027b9 84%,var(--paper))}
.title-cover{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:space-between;min-height:0}
#gameTitle{width:min(90%,380px);flex:none;margin:clamp(74px,16.25dvh,176px) 0 0;line-height:0}
#gameTitle img{display:block;width:100%;height:auto}
.title-actions{width:min(100%,258px);display:grid;gap:8px}
.load-status{margin:0;font-size:13px;text-shadow:0 1px 3px #071f16}
#titleSoundBtn{position:absolute;top:calc(env(safe-area-inset-top) + 12px);right:var(--side);background:#193d31df}

/* The stage chooser is a real screen. Its scroll never reaches the reserved advert area. */
#app{height:100%;overflow:hidden;background:var(--paper)}
#selectScreen,#playScreen{height:100%;min-height:0;padding-top:env(safe-area-inset-top);overflow:hidden}
#selectScreen{display:grid;grid-template-rows:auto minmax(0,1fr)}
.select-head{display:grid;grid-template-columns:44px 1fr 44px;gap:8px;align-items:center;padding:12px var(--side) 9px}
.select-head h2{margin:0;text-align:center;color:#ffebc5;font-family:Georgia,"Times New Roman",serif;font-size:clamp(24px,7vw,33px);line-height:1.1;letter-spacing:-.018em}
#stageGrid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-rows:minmax(46px,auto);align-content:start;gap:7px;min-height:0;margin:0 var(--side) 12px;padding:7px 6px 14px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#98b184 #1b4335;scroll-padding-block:8px}
#stageGrid:focus-visible{outline-offset:0}
#stageGrid [data-stage-id]{position:relative;display:grid;place-items:center;min-width:0;min-height:46px;padding:0 1px;border:1px solid #6f8c6d;border-radius:11px;background:linear-gradient(150deg,#37614c,#244b3c);color:#fff0d5;box-shadow:inset 0 1px 0 #b7d49826;line-height:1}
#stageGrid [data-stage-id]:not(:disabled):hover{background:#496c53}
#stageGrid [data-stage-id]:not(:disabled):active{transform:translateY(1px);background:#59795a}
#stageGrid .stage-number{font-size:clamp(15px,4.5vw,20px);font-weight:750;font-variant-numeric:tabular-nums}
#stageGrid [data-stage-id]:is([data-completed=true],[data-cleared=true],.cleared,.completed){color:#274837;background:linear-gradient(160deg,#e1edc1,#b9d2a3);border-color:#8cad82}
#stageGrid [data-stage-id]:is([data-completed=true],[data-cleared=true],.cleared,.completed)::after{content:"";position:absolute;right:5px;top:5px;width:7px;height:4px;border:solid #416b47;border-width:0 0 2px 2px;transform:rotate(-45deg);pointer-events:none}
#stageGrid [data-stage-id]:is([data-current=true],[aria-current=true],[aria-current=step],[aria-current=page],.current){border-color:#f1cf8f;outline:2px solid #f1cf8f;outline-offset:-4px;box-shadow:0 1px 7px #deba6c42}
#stageGrid [data-stage-id]:focus-visible{outline:3px solid #fff3bf;outline-offset:-2px}

/* Keep stage and pause controls at the screen edges and objectives beside the board. */
#playScreen{position:relative;isolation:isolate;display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.play-head{padding:7px var(--side) 4px;display:flex;align-items:center;justify-content:space-between;gap:7px;background:linear-gradient(180deg,#173b30fa,#173b3000)}
.round-btn,.level-btn{min-height:44px;border:1px solid #819777;border-radius:13px;color:#fff1d7;background:linear-gradient(160deg,#315f4b,#204638);box-shadow:inset 0 1px 0 #b5cc8b37,0 2px 7px #091f1754}
.round-btn{flex:0 0 44px;width:44px;height:44px;display:grid;place-items:center;padding:0}
.round-btn svg{width:21px;height:21px}
.round-btn:disabled,.level-btn:disabled{opacity:.58}
.level-btn{padding:0 8px;min-width:49px;white-space:nowrap}
#levelsBtn{display:flex;align-items:center;gap:5px}
#levelsBtn svg{width:16px;height:16px;flex:none}
#stageNo{font-size:16px;line-height:1;font-variant-numeric:tabular-nums}
.board-area{display:grid;grid-template-rows:auto minmax(0,1fr);row-gap:2px;min-width:0;min-height:0;margin:0 6px}
.play-objectives{
 display:flex;justify-self:center;align-items:center;gap:7px;max-width:100%;padding:2px 5px;
 border:1px solid #caad76;border-radius:12px;background:#fff4d8;box-shadow:0 2px 4px #71613726;
 transform:translateY(var(--board-top-inset,0px));pointer-events:none;
}
.leaf-stock{
 display:flex;align-items:center;justify-content:center;gap:5px;flex:none;min-height:31px;padding:0 7px;
 border-radius:8px;background:#2b5338;color:#fff8de;
}
.stock-leaf{display:block;width:35px;height:22px;flex:none;transform:rotate(-10deg);filter:drop-shadow(0 1px 1px #143724)}
#remaining{font-size:22px;font-weight:800;line-height:1;font-variant-numeric:tabular-nums}
#targets{display:flex;flex:0 1 auto;align-items:center;justify-content:center;flex-wrap:wrap;gap:3px;min-width:0}
.target-flower{display:grid;place-items:center;width:31px;height:31px;flex:0 0 31px;opacity:.92}
.target-flower[data-bloomed=true]{opacity:1;filter:drop-shadow(0 1px 2px #aa723746)}
.target-flower svg{width:100%;height:100%;overflow:visible}
.target-check{visibility:hidden}
.target-flower[data-bloomed=true] .target-check{visibility:visible}
.target-flower[data-bloomed=false] .target-petals{filter:saturate(.86)}
.board-zone{position:relative;min-height:0;isolation:isolate;user-select:none;touch-action:manipulation;filter:drop-shadow(0 6px 9px #09281e9c)}
canvas{display:block;width:100%;height:100%;pointer-events:none}
#slots{position:absolute;inset:0}
.slot{position:absolute;transform:translate(-50%,-50%);border:0;background:transparent;border-radius:50%;padding:0;min-width:44px;min-height:44px;color:transparent;touch-action:none}
.slot:focus-visible{outline:2px solid #fff8c9;outline-offset:0;background:#fff6}
.slot:active:not(:disabled){background:#fff4}
.tap-cue{position:absolute;left:49%;top:50%;width:36px;height:42px;pointer-events:none;filter:drop-shadow(0 2px 2px #493c2c7f);animation:tap-cue 1.3s ease-in-out 3 forwards}
@keyframes tap-cue{
 0%,100%{opacity:0;transform:translate(7px,7px)}
 20%,80%{opacity:1}
 50%{opacity:1;transform:translate(-2px,-2px)}
}

/* The run action is the only large control. Management actions read as small icons. */
.play-action-area{position:relative;min-width:0;grid-row:3}
.footer{padding:4px var(--side) 7px;background:var(--paper)}
.dock{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;align-items:center;width:min(100%,272px);margin-inline:auto}
.tool{position:relative;display:grid;place-items:center;width:44px;height:44px;border:1px solid #7b9271;border-radius:11px;padding:0;color:#fff2d9;background:linear-gradient(145deg,#37624a,#284b3d);box-shadow:inset 0 1px 0 #bad39333}
.tool svg{width:20px;height:20px}
.primary{width:100%;min-height:47px;border:1px solid #f2c687;border-radius:13px;background:linear-gradient(180deg,#ffdd9a,#eab26e);color:#251f16;display:flex;align-items:center;justify-content:center;gap:7px;padding:5px 8px;font-size:16px;font-weight:780;letter-spacing:.014em;box-shadow:0 3px 0 #875436,0 5px 12px #101e1261,inset 0 1px 0 #fff1c7;text-shadow:0 1px 0 #fff0b77a;transition:background .16s,transform .12s}
.primary:hover:not(:disabled){background:linear-gradient(180deg,#ffe7ae,#f4bb78)}
.primary:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px 0 #875436}
.primary:disabled{color:#e6ecd2;background:#416652;border-color:#7b9b76;text-shadow:none;box-shadow:none}
.primary svg{width:21px;height:21px;flex:none}
.run-action{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0}
#dropLabel{white-space:nowrap}
/* The celebration covers the play screen while the dock retains its height. */
#playScreen:has(#clearScreen:not([hidden])) #playFooter{visibility:hidden;pointer-events:none}
#clearScreen{
 position:absolute;inset:0;z-index:5;display:grid;place-items:center;overflow:auto;
 overscroll-behavior:contain;padding:12px clamp(10px,4vw,22px);
 background:radial-gradient(ellipse at center,#34333128,#3433314d 86%);
 backdrop-filter:blur(1px);
}
.clear-card{
 --celebration-max:clamp(294px,82vw,340px);
 width:min(100%,var(--celebration-max),max(44px,calc((100dvh - var(--common-bottom) - 28px) * 1.16)));
 animation:clear-arrive .5s ease-in-out both;
}
.celebration-art{
 display:block;width:100%;height:auto;aspect-ratio:64/55;object-fit:contain;user-select:none;
}
@keyframes clear-arrive{
 from{opacity:0}
 to{opacity:1}
}

/* Secondary actions sit in the same garden paper rather than on the board. */
.overlay{position:fixed;inset:0;z-index:10;display:grid;place-items:center;padding:12px;background:#09291ebc}
#adLayer{z-index:1000}
.dialog{position:relative;width:min(100%,386px);max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;background:radial-gradient(ellipse at 89% 0%,#ffe5a88a,transparent 50%),linear-gradient(155deg,#fff2d8,#ede0bf);color:var(--deep-ink);border:1px solid #c8a56c;border-radius:21px;padding:17px;box-shadow:0 22px 65px #071e16d9,inset 0 0 0 3px #fff8df85}
.dialog h2{margin:0 0 9px;padding-bottom:8px;border-bottom:1px solid #ad956752;font-size:22px;line-height:1.25;color:#214a37;font-weight:800}
.dialog p{margin:8px 0 12px;font-size:14px;color:#495d42;line-height:1.45}
.dialog .primary{margin:10px 0 4px}
.dialog .secondary{display:block;width:100%;min-height:44px;margin-top:7px;padding:7px 10px;border:1px solid #a7af84;border-radius:12px;background:linear-gradient(155deg,#ebefd7,#d9e1bd);color:#294637;font-weight:720;font-size:14px;text-align:center;box-shadow:inset 0 1px 0 #fff9e8}
.dialog .secondary:disabled{opacity:.53}
.dialog .sound-toggle[aria-pressed=false]{background:#e5dbbc}
.dialog :focus-visible{outline-color:#246f68}
.setting{display:flex;align-items:center;gap:8px;min-height:44px;font-size:14px;color:#214a37}
.setting input{width:18px;height:18px;accent-color:#285f49}
.play-help{border-top:1px solid #ad956752;color:#495d42;font-size:13px}
.play-help summary{cursor:pointer;min-height:44px;align-content:center}
.hint-preview{height:57px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(110deg,#efe2ba,#e5d5a6);color:#79541a}
.hint-preview svg{width:72px;height:54px}

@media(max-width:340px){
 .play-head{gap:5px}
 #stageGrid{gap:5px;padding-inline:3px}
}
@media(max-height:650px) and (orientation:portrait){
 #titleScreen{padding-bottom:13px}#titleSoundBtn{top:calc(env(safe-area-inset-top) + 7px)}
 .play-head{padding-block:4px 2px}.footer{padding-block:3px 5px}.select-head{padding-block:8px 6px}
}
@media(orientation:landscape) and (max-height:540px){
 :root{--game-column-max:860px}
 #titleScreen{padding:10px 20px}.title-art img{object-position:50% 68%}
 #titleScreen::after{background:linear-gradient(90deg,#0a2e21c9,transparent 50%,#0b2f2559)}
 .title-cover{width:min(47%,300px);align-items:flex-start;justify-content:center;gap:clamp(8px,calc(9dvh - 15px),19px)}
 .title-actions{width:min(100%,240px)}
 #stageGrid{grid-template-columns:repeat(9,minmax(0,1fr))}
 #playScreen{grid-template-columns:minmax(0,1fr) minmax(248px,36%);grid-template-rows:auto minmax(0,1fr)}
 .play-head{grid-column:1 / -1;grid-row:1;padding:5px 9px 2px;gap:5px}
 .board-area{grid-column:1;grid-row:2}.play-action-area{grid-column:2;grid-row:2;align-self:end}.footer{padding:5px 10px 6px;background:transparent}
 .clear-card{--celebration-max:276px}
}
@media(min-width:650px) and (min-height:940px){
 :root{--book-height:805px;--book-offset:max(0px,calc((100dvh - var(--common-bottom) - var(--book-height))/2))}
 #gameShell{height:min(calc(100dvh - var(--common-bottom)),var(--book-height))}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* Sunlit garden palette and ImageGen button faces. Geometry remains shared with the game shell. */
:root{
 --paper:#f6ebd4;--ink:#264436;--quiet:#526747;--green:#29714b;--wash:#d9efbf;
 --line:#a9b980;--brass:#c18331;--rose:#ed8979;--vellum:#fff2d9;--deep-ink:#304837;
 --art-play:url("./assets/sunroom-labels/play.webp");
 --art-continue:url("./assets/sunroom-labels/continue.webp");
 font-family:"Trebuchet MS",system-ui,sans-serif;
}
body{background:radial-gradient(ellipse at 35% -15%,#fffae4 5%,transparent 56%),linear-gradient(135deg,#e5f1cb 2%,#c9e4ac 64%,#f6e8bf) no-repeat;color:var(--ink)}
#gameShell{box-shadow:0 14px 65px #52683736}
#titleScreen{background:#daedba}
#titleScreen::after{background:linear-gradient(180deg,#fff1cf13 65%,#f9e9bb32 85%,var(--paper));}
.title-actions{width:min(100%,236px);gap:6px}
#startBtn,#continueBtn{min-height:44px;aspect-ratio:16/5}
#titleStagesBtn{--button-art:url("./assets/sunroom-labels/stages.webp");justify-self:center;width:72%;min-height:44px;aspect-ratio:420/153}
.load-status{color:#632e27;text-shadow:0 1px #fff5dc}
#titleSoundBtn{background-color:transparent}
#selectScreen,#playScreen{
 background-color:#e5edc4;
 background-image:linear-gradient(180deg,#fff2d08f,#e4f1c398 43%,#f6ebd4e6 96%),url("./assets/sunroom-ui/title.webp");
 background-position:center,center 46%;
 background-size:cover;
 background-repeat:no-repeat;
}
#selectScreen{background-image:linear-gradient(180deg,#fff5d7b0,#eff6d4bf 54%,#fff0d49e),url("./assets/sunroom-ui/title.webp")}
#playScreen{background-image:linear-gradient(180deg,#fff4d8a1,#f2f7ce5c 32%,#f6ebd4b5 91%),url("./assets/sunroom-ui/title.webp")}
.select-head h2{color:#315744;font-size:clamp(27px,8vw,37px);text-shadow:0 1px 0 #fff4db}
#stageGrid{scrollbar-color:#8fa66c #f2e7c3;gap:6px}
#stageGrid [data-stage-id]{min-height:48px;border:0;border-radius:13px;background:transparent url("./assets/sunroom-ui/stage.webp") center/auto 100% no-repeat;color:#213c2a;box-shadow:none;padding:0}
#stageGrid [data-stage-id]:not(:disabled):hover{background:transparent url("./assets/sunroom-ui/stage.webp") center/auto 100% no-repeat;filter:brightness(1.04)}
#stageGrid [data-stage-id]:not(:disabled):active{background:transparent url("./assets/sunroom-ui/stage.webp") center/auto 100% no-repeat;transform:translateY(2px) scale(.97);filter:brightness(.94)}
#stageGrid [data-stage-id]:is([data-completed=true],.cleared){background:transparent url("./assets/sunroom-ui/stage.webp") center/auto 100% no-repeat;color:#17432c}
#stageGrid .stage-number{
 position:absolute;inset:0;
 display:grid;place-items:center;
 padding-top:3px;
 pointer-events:none;
}
#stageGrid [data-stage-id]:is([data-completed=true],.cleared)::after{
 content:"✓";
 position:absolute;top:3px;left:calc(50% + 12px);
 box-sizing:border-box;width:13px;height:13px;
 display:grid;place-items:center;
 border:1px solid #31774e;border-radius:50%;
 background:#f5f8df;color:#1c5c3a;
 font:900 9px/1 system-ui,sans-serif;
 transform:none;
}
#stageGrid [data-stage-id]:is([aria-current=step],.current,:focus-visible){
 outline:none;
 box-shadow:none;
}
#stageGrid [data-stage-id]::before{
 content:"";
 position:absolute;
 box-sizing:border-box;width:min(43px,100%);height:43px;
 left:50%;top:calc(50% + 1px);
 transform:translate(-50%,-50%);
 border:2px solid transparent;border-radius:12px;
 pointer-events:none;
}
#stageGrid [data-stage-id]:is([aria-current=step],.current)::before{border-color:#9a4d20}
#stageGrid [data-stage-id]:focus-visible::before{outline:2px solid #246748;outline-offset:1px}
:where(button,input,summary,[tabindex]):focus-visible{outline-color:#287653}
.play-head{background:linear-gradient(180deg,#faf0d4d6,#faf0d400)}
.board-zone{filter:drop-shadow(0 4px 5px #687c4634)}
.slot:focus-visible{outline-color:#2e7650;outline-offset:2px}
.footer{background:#f6ebd4}
.overlay{background:#35473575;backdrop-filter:blur(2px)}
.dialog{color:#304837;border:2px solid #d4a96c;background:radial-gradient(ellipse at 85% 4%,#fff8db,transparent 66%),linear-gradient(150deg,#fff4dc,#ffe9bd);box-shadow:0 15px 45px #40593159,inset 0 0 0 4px #fffaf17d;border-radius:24px}
.dialog[data-kind]{padding:15px 17px 17px}
.dialog h2{margin-right:46px;color:#3d6245;border-color:#d9c29b;font-family:Georgia,"Times New Roman",serif;font-size:25px}
.dialog[data-kind=complete] h2{color:#a74829}
.hint-preview{background:#f4e6be;color:#7c511d;border:1px solid #e4ce9e}
.result-bloom{display:block;width:72px;height:80px;object-fit:contain;margin:8px auto 12px}
.setting{color:#365a43}
.setting[data-action=trail]{padding-left:41px;background:url("./assets/sunroom-ui/trail.webp") left center/34px 34px no-repeat}
.setting input{accent-color:#378255}
button[data-action=play]{--button-art:var(--art-play)}
button[data-action=continue]{--button-art:var(--art-continue)}
button[data-action=dropping]{--button-art:url("./assets/sunroom-labels/dropping.webp")}
button[data-action=resume]{--button-art:url("./assets/sunroom-labels/resume.webp")}
button[data-action=drop]{--button-art:url("./assets/sunroom-labels/drop.webp")}
button[data-action=retry]{--button-art:url("./assets/sunroom-labels/retry.webp")}
button[data-action=stages]{--button-art:url("./assets/sunroom-ui/stages.webp")}
button[data-action=pause]{--button-art:url("./assets/sunroom-ui/pause.webp")}
button[data-action=hint]{--button-art:url("./assets/sunroom-ui/hint.webp")}
button[data-action=reset]{--button-art:url("./assets/sunroom-ui/reset.webp")}
button[data-action=undo]{--button-art:url("./assets/sunroom-ui/undo.webp")}
button[data-action=remove]{--button-art:url("./assets/sunroom-ui/remove.webp")}
button[data-action=home]{--button-art:url("./assets/sunroom-ui/home.webp")}
button[data-action=sound-on]{--button-art:url("./assets/sunroom-ui/sound-on.webp")}
button[data-action=sound-off]{--button-art:url("./assets/sunroom-ui/sound-off.webp")}
button[data-action=replay]{--button-art:url("./assets/sunroom-ui/replay.webp")}
button[data-action=watch-ad]{--button-art:url("./assets/sunroom-ui/watch-ad.webp")}
button[data-action=back]{--button-art:url("./assets/sunroom-ui/back.webp")}
button[data-action=close]{--button-art:url("./assets/sunroom-ui/close.webp")}
#gameShell button[data-action],#dialog button[data-action]{
 color:#30251b;
 border:0;
 text-shadow:0 1px 0 #fff5dcaa;
 box-shadow:none;
 background:transparent var(--button-art) center/contain no-repeat;
 transition:filter .14s,transform .1s;
}
#gameShell button[data-action]:not(:disabled):hover,#dialog button[data-action]:not(:disabled):hover{filter:brightness(1.05) saturate(1.06)}
#gameShell button[data-action]:not(:disabled):active,#dialog button[data-action]:not(:disabled):active{transform:translateY(2px) scale(.97);filter:brightness(.93) saturate(1.08)}
#gameShell button[data-action]:disabled,#dialog button[data-action]:disabled{opacity:.52;filter:saturate(.5)}
#gameShell button[data-action] svg{display:none}
#gameShell :is(#startBtn,#continueBtn,#titleStagesBtn,#dropBtn){
 background-size:contain;
 background-position:center;
 padding:0;
}
#gameShell #dropBtn{min-height:44px;aspect-ratio:16/5}
#runBtn{width:100%;height:100%}
#gameShell #nextBtn{position:relative;display:block;width:100%;min-width:44px;min-height:44px;padding:0;border-radius:15px;background:none}
#gameShell #stageBtn{background-position:0 center;background-size:42px auto;min-width:66px;padding:0 7px 0 42px}
#gameShell #stageNo{color:#335039}
#dialog button[data-action]{
 width:min(100%,190px);
 min-height:44px;
 height:54px;
 margin:2px auto;
 padding:0;
 border:0;
 background:var(--button-art) center/contain no-repeat;
}
#dialog button[data-action=resume]{width:min(100%,212px);height:66px;margin-top:4px}
#dialog button[data-action=home]{--button-art:url("./assets/sunroom-labels/home.webp")}
#dialog button[data-action=stages]{--button-art:url("./assets/sunroom-labels/stages.webp")}
#dialog button[data-action=replay]{--button-art:url("./assets/sunroom-labels/replay.webp")}
#dialog button[data-action=watch-ad]{--button-art:url("./assets/sunroom-labels/watch-ad.webp")}
#dialog button[data-action=back]{--button-art:url("./assets/sunroom-labels/back.webp")}
#dialog button[data-action=sound-on]{--button-art:url("./assets/sunroom-labels/sound-on.webp")}
#dialog button[data-action=sound-off]{--button-art:url("./assets/sunroom-labels/sound-off.webp")}
#dialog .dialog-close[data-action=close]{position:absolute;right:11px;top:10px;width:44px;height:44px;margin:0}
#dialog .setting[data-action=trail]{
 position:relative;
 width:min(100%,184px);
 min-height:50px;
 margin-inline:auto;
 padding:0;
 gap:8px;
 background:url("./assets/sunroom-labels/trail.webp") right center/calc(100% - 42px) auto no-repeat;
}
#dialog .setting input{
 flex:none;
 width:21px;height:21px;
 margin:0 9px;
}
@media(max-height:650px) and (orientation:portrait){
 #gameTitle{margin-top:clamp(38px,11.5dvh,80px)}
 .title-actions{width:min(100%,220px)}
}
@media(orientation:landscape) and (max-height:540px){
 #gameTitle{width:min(96%,70dvh);margin-top:0}
 #titleScreen::after{background:linear-gradient(90deg,#fff0cfae,transparent 67%)}
 #titleScreen .title-actions{width:min(100%,185px)}

 .footer{background:#f6ebd4d4}
}
