@font-face{font-family:'WC Hand';src:url('../assets/fonts/wc-hand.woff2') format('woff2');font-display:swap;size-adjust:122%}
@font-face{font-family:'WC Hand';src:url('../assets/fonts/wc-hand-ja.woff2') format('woff2');font-display:swap;size-adjust:100%;unicode-range:U+3000-303F,U+3040-30FF,U+4E00-9FFF,U+FF00-FFEF}
/* Fixed-width stage skin (AH/AI watercolor set). Active only when the game runs inside stage.html (html.stage);
   the 390px phone layout is the single layout, so sizes here are absolute px at that width. Art: web/assets/stage. */

/* Corner flower decorations */
html.stage body::before,html.stage body::after{content:'';position:fixed;z-index:0;pointer-events:none;width:190px;aspect-ratio:1/0.92;background:center/contain no-repeat}
html.stage body::before{left:-34px;top:-30px;background-image:url('../assets/stage/corner-blue.webp')}
html.stage body::after{right:-34px;bottom:-26px;background-image:url('../assets/stage/corner-pink.webp');opacity:.9}
html.stage #app{position:relative;z-index:1}

/* Shared pieces */
html.stage .coins{border:0!important;border-image:none!important;background:url('../assets/stage/btn-pill.webp') center/100% 100% no-repeat!important}
html.stage .coins .coin{background-image:url('../assets/stage/icon2-coin.webp')!important;background-size:contain!important;width:28px!important;height:28px!important}
html.stage .topbar .icon-button[data-action="settings"],html.stage .game-screen .zoom-controls button[data-action="zoomOut"],html.stage .game-screen .zoom-controls button[data-action="zoomIn"]{background-image:url('../assets/stage/btn-round.webp')!important;background-size:contain!important}
html.stage img.wci-settings{content:url('../assets/stage/icon2-gear.webp');width:34px!important;height:34px!important}
html.stage .topbar .wc-back{border:0!important;border-image:none!important;background:url('../assets/stage/btn-pill.webp') center/100% 100% no-repeat!important}
html.stage img.wci-back{width:26px!important;height:26px!important}
html.stage :is(.primary,button.primary,a.primary){background-image:url('../assets/stage/btn-primary.webp')!important}
html.stage :is(button.secondary,.text-button,.game-screen .zoom-controls #zoom-label){border:0!important;border-image:none!important;background:url('../assets/stage/btn-pill.webp') center/100% 100% no-repeat!important}

/* Paper cards: one 9-slice painted card */
html.stage :is(.resume-card,.small-card,.settings-section,.album-book,.art-card,.album-resume,.reward-card,.collection-empty,#modal:not(.result),.coin-tip,.calendar-legend,.daily-calendar,.toast,#toast){background:none!important;border:20px solid transparent!important;border-image:url('../assets/stage/card.webp') 64 fill / 20px / 0 stretch!important;box-shadow:none!important}

/* Home */
html.stage .home-screen .resume-card{padding-bottom:6px}
html.stage .home-screen .wc-clip{content:url('../assets/stage/clip.webp');width:26px!important;height:auto!important}
html.stage .home-screen .small-card{border-width:14px!important;border-image-width:14px!important;padding:10px 12px 8px!important}
html.stage .home-screen .small-card .wc-card-art{top:auto!important;bottom:4px!important;left:6px!important;right:6px!important;height:74px!important}
html.stage .home-screen .small-card img.wc-cal{content:url('../assets/stage/art-calendar.webp');width:80px!important;height:auto!important;top:auto!important;left:0!important;bottom:0!important}
html.stage .home-screen .small-card img.wc-vase{display:none!important}
html.stage .home-screen .small-card img.wc-gallery{content:url('../assets/stage/art-frames.webp');width:86px!important;height:auto!important}
html.stage .home-screen .small-card :is(.wc-check,.daily-check,img[src*="check"]){content:url('../assets/stage/stamp-check.webp');width:46px!important;height:46px!important}
html.stage .home-screen :is(.daily-tools,.home-help) button{min-height:52px!important}
html.stage .home-screen img.wc-month{content:url('../assets/stage/icon2-calendar.webp');width:40px!important;height:40px!important;background:none!important}
html.stage .home-screen img.wci-help{content:url('../assets/stage/icon2-help.webp');width:36px!important;height:36px!important}

/* Bottom tab bar */
html.stage .bottom-nav{border:0!important;border-image:none!important;background:url('../assets/stage/tabbar.webp') center/100% 100% no-repeat!important}
html.stage .bottom-nav::after{display:none!important}
html.stage .bottom-nav button::before{background:url('../assets/stage/tab-selected.webp') center/contain no-repeat!important;border:0!important}
html.stage .bottom-nav img.art-icon{width:46px!important;height:46px!important}
html.stage .bottom-nav img.wci-home{content:url('../assets/stage/icon2-home.webp')}
html.stage .bottom-nav img.wci-album{content:url('../assets/stage/icon2-collection.webp')}

/* Play */
html.stage .game-screen .hearts i,html.stage .game-screen .hearts i .half{background-image:url('../assets/stage/icon2-heart.webp')!important}
html.stage .game-screen .hearts i.lost{background-image:url('../assets/stage/icon2-heart-empty-v2.webp')!important}
html.stage .game-screen #region-progress{background-image:url('../assets/stage/bar-track.webp')!important;height:14px!important}
html.stage .game-screen #region-progress>span{background-image:url('../assets/stage/bar-fill.webp')!important}
html.stage .game-screen img.wci-help{content:url('../assets/stage/icon2-help.webp');background:none!important}
html.stage .game-screen .wc-help img.wci-help{width:40px!important;height:40px!important}
html.stage .game-screen .game-tools .tool[data-action="paint"]{background-image:url('../assets/stage/tile-pink.webp')!important}
html.stage .game-screen .game-tools .tool[data-action="erase"]{background-image:url('../assets/stage/tile-blue.webp')!important}
html.stage .game-screen .game-tools .tool[data-action="undo"]{background-image:url('../assets/stage/tile-green.webp')!important}
html.stage .game-screen .game-tools .tool[data-action="hint"]{background-image:url('../assets/stage/tile-yellow.webp')!important}
html.stage .game-screen .game-tools .tool .art-icon{width:42px!important;height:42px!important;top:33%!important}
html.stage .game-screen .game-tools .tool>span:not(.sub):not(.hint-minus){margin-top:8px}
html.stage .game-screen .game-tools img.wci-brush{content:url('../assets/stage/icon2-brush.webp')}
html.stage .game-screen .game-tools img.wci-eraser{content:url('../assets/stage/icon2-eraser.webp')}
html.stage .game-screen .game-tools img.wci-undo{content:url('../assets/stage/icon2-undo.webp')}
html.stage .game-screen .game-tools img.wci-hint{content:url('../assets/stage/icon2-hint.webp')}
html.stage .game-screen .game-tools .tool.active{filter:drop-shadow(0 0 3px rgba(214,90,110,.55))}

/* Home fills the stage height: everything sits above the fixed tab bar; the two small cards absorb the leftover height */
html.stage .home-screen{min-height:100dvh;display:flex;flex-direction:column}
html.stage .home-screen>main{flex:1 1 auto;display:grid!important;grid-template-columns:1fr 1fr!important;grid-template-rows:auto auto minmax(132px,1fr) auto!important;grid-auto-rows:auto!important;gap:10px 12px!important;min-height:0;padding-bottom:var(--stage-bottom,6px)!important}
html.stage .home-screen>main>*{grid-column:1/-1}
html.stage .home-screen>main>.daily-tools{grid-column:1}
html.stage .home-screen>main>.home-help{grid-column:2}
html.stage .home-screen>main>*{margin-top:0!important;margin-bottom:0!important}
html.stage .home-screen .home-bottom{min-height:132px;max-height:250px;display:grid!important;grid-template-columns:1fr 1fr;grid-template-rows:1fr!important;gap:12px}
html.stage .home-screen .small-card{height:auto!important;min-height:0!important;display:flex!important;flex-direction:column}
html.stage .home-screen .small-card>span:has(>h2){display:flex!important;flex-direction:column;flex:1 1 auto;min-height:0;width:100%}
html.stage .home-screen .small-card h2{order:0}
html.stage .home-screen .small-card p{order:1;max-width:none!important;margin:4px 0 0!important}
html.stage .home-screen .small-card .wc-card-art{order:2;position:relative!important;inset:auto!important;flex:1 1 0;min-height:36px;height:auto!important;width:100%!important;display:block!important;margin-top:6px}
html.stage .home-screen .small-card .wc-card-art img{position:absolute!important;top:auto!important;bottom:0!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;height:100%!important;width:auto!important;max-width:100%;object-fit:contain}
html.stage .home-screen .small-card .wc-card-art img.wc-cal{left:0!important;transform:none!important;max-width:74%}
html.stage .home-screen .small-card .wc-card-art img:is([src*="check"],.wc-check,.daily-check){left:auto!important;right:0!important;transform:none!important;height:42%!important}
html.stage .home-screen .resume-card{min-height:max-content!important;flex:0 0 auto}
html.stage .home-screen .hero{flex:0 0 auto}
html.stage .home-screen :is(.daily-tools,.home-help){flex:0 0 auto}
html.stage .game-screen .game-tools .tool .art-icon{top:30%!important;width:40px!important;height:40px!important}
@media(max-height:780px){html.stage .home-screen .hero .wc-logo{height:70px!important;width:auto!important}html.stage .home-screen .resume-card{padding-top:6px!important}html.stage .home-screen .resume-card .wc-card-title{font-size:30px!important}html.stage .home-screen .resume-card .wc-preview{width:84px!important;height:84px!important}}
html.stage .home-screen .resume-card .wc-card-title{white-space:nowrap}
html.stage :lang(ja) .home-screen .resume-card .wc-card-title,html.stage .home-screen .resume-card .wc-card-title:lang(ja){font-size:27px!important}
html.stage :lang(en) .home-screen .resume-card .wc-card-title,html.stage .home-screen .resume-card .wc-card-title:lang(en){font-size:30px!important}
html.stage .home-screen>main>:is(.daily-tools,.home-help){width:auto!important;max-width:none!important;margin:0!important}
html.stage .home-screen>main>:is(.daily-tools,.home-help)>*{width:100%!important;height:52px!important}

/* ===== Stage v2 (AJ): watercolor icons, easel/canvas, hero home cards ===== */
/* One icon size per context */
html.stage .topbar img.wci-settings{width:32px!important;height:32px!important}
html.stage .topbar img.wci-back{content:url('../assets/stage/icon2-back.webp');width:28px!important;height:28px!important}
html.stage .coins .coin{width:30px!important;height:30px!important}
html.stage .bottom-nav img.art-icon{width:46px!important;height:46px!important}
html.stage .bottom-nav img.wci-settings{content:url('../assets/stage/icon2-gear.webp')}
html.stage .game-screen .game-tools .tool .art-icon{width:46px!important;height:46px!important;top:34%!important}
html.stage .home-screen :is(.daily-tools,.home-help) img.art-icon{width:34px!important;height:34px!important}
html.stage img[src*="share"]{content:url('../assets/stage/icon2-share.webp')}
/* Easel fitted to the board: its square opening (measured 4.94-95.06% x, aspect 1.5727) is exactly the board frame */
html.stage .game-screen .board-frame .wc-easel{content:url('../assets/stage/easel2.webp');width:110.956%!important;max-width:none!important;height:auto!important;left:-5.478%!important;right:auto!important;top:-12.351%!important;transform:none!important}
html.stage .game-screen .board-frame .wc-easel-top{display:none!important}
html.stage .game-screen .board-frame::before{background-image:url('../assets/stage/canvas2.webp')!important;background-size:100% 100%!important}
/* Home cards: illustration is the hero, title above it, centred */
html.stage .home-screen .small-card{align-items:stretch}
html.stage .home-screen .small-card>span:has(>h2){align-items:center;text-align:center}
html.stage .home-screen .small-card h2{width:100%;text-align:center}
html.stage .home-screen .small-card p{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;width:100%;text-align:center;font-size:12px!important;line-height:1.3!important;margin:3px 0 0!important}
html.stage .home-screen .small-card .wc-card-art{margin-top:4px}
html.stage .home-screen .small-card .wc-card-art img{left:50%!important;transform:translateX(-50%)!important;height:100%!important}
html.stage .home-screen .small-card img.wc-cal{content:url('../assets/stage/card-daily.webp');max-width:100%!important;left:50%!important;transform:translateX(-50%)!important}
html.stage .home-screen .small-card img.wc-gallery{content:url('../assets/stage/card-collection.webp');max-width:100%!important}
html.stage .home-screen .small-card .wc-card-art img:is([src*="check"],.wc-check,.daily-check){content:url('../assets/stage/icon2-check.webp');left:auto!important;right:-2px!important;top:-4px!important;bottom:auto!important;transform:none!important;height:38px!important;width:38px!important}
html.stage .game-screen .board-frame .wc-easel{clip-path:none!important}
html.stage #app .home-screen .small-card{border-width:12px!important;border-image-width:12px!important;padding:8px 4px 6px!important}
html.stage .game-screen:is(.game-screen) .board-frame{--fw:320px!important;width:320px!important;max-width:320px!important;margin-left:auto!important;margin-right:auto!important;margin-top:46px!important}
html.stage .coins{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;padding:0 16px!important}
html.stage .coins>*{margin:0!important}
html.stage,html.stage body{overflow-x:hidden}
html.stage .home-screen .resume-card{height:auto!important}
html.stage .pwa-status{position:fixed!important;left:0;bottom:0}
/* ===== Play option C (easel + palette, AK3 mockup) — measured easel opening 9.97-90.03% x ===== */
html.stage .game-screen:is(.game-screen){--bw:clamp(230px,calc(100dvh - 428px),312px)}
html.stage .game-screen:is(.game-screen) .game-aside{padding:0!important;text-align:center;margin:0!important}
html.stage .game-screen:is(.game-screen) .game-aside .eyebrow,html.stage .game-screen:is(.game-screen) .game-aside>p{display:none!important}
html.stage .game-screen:is(.game-screen) .game-aside h1{display:inline-block;margin:0 auto!important;padding:7px 52px 9px!important;background:url('../assets/stage/c-title-ribbon.webp') center/100% 100% no-repeat;font-size:22px!important;line-height:1.2}
html.stage .game-screen:is(.game-screen) .board-top{display:grid!important;grid-template-columns:1fr auto!important;grid-template-rows:auto auto!important;gap:6px 10px!important;width:min(300px,calc(var(--bw) - 10px))!important;margin:4px auto 0!important;align-items:center;justify-items:stretch}
html.stage .game-screen:is(.game-screen) .board-top #game-mode{grid-column:1/-1!important;grid-row:1!important;justify-self:center}
html.stage .game-screen:is(.game-screen) .board-top #region-progress{grid-column:1!important;grid-row:2!important;margin:0!important;width:auto!important}
html.stage .game-screen:is(.game-screen) .board-top #game-progress{grid-column:2!important;grid-row:2!important;padding:0!important;font-size:14px!important}
html.stage .game-screen:is(.game-screen) .game-screen .hearts i,html.stage .game-screen:is(.game-screen) .hearts i{font-size:26px}
html.stage .game-screen:is(.game-screen) .board-frame{--fw:var(--bw)!important;width:var(--bw)!important;max-width:none!important;height:var(--bw)!important;padding:calc(var(--bw) * .045)!important;margin:calc(var(--bw) * 0.2366 + 6px) auto 0!important;box-sizing:border-box}
html.stage .game-screen:is(.game-screen) .board-frame::before{inset:0!important;background:url('../assets/stage/canvas2.webp') center/100% 100% no-repeat!important;border:0!important;box-shadow:0 2px 6px rgba(90,60,30,.18)!important}
html.stage .game-screen:is(.game-screen) .board-frame .wc-easel{content:url('../assets/stage/c-easel.webp');clip-path:none!important;width:124.921%!important;max-width:none!important;height:auto!important;left:-12.461%!important;right:auto!important;top:-23.665%!important;transform:none!important;z-index:-2!important}
html.stage .game-screen:is(.game-screen) .board-frame .wc-easel-top{display:none!important}
html.stage .game-screen:is(.game-screen) .board-viewport{border:0!important;box-shadow:inset 0 0 0 2px #c8314a!important}
/* Zoom plate rests on the easel tray */
html.stage .game-screen:is(.game-screen) .board-controls{margin:2px auto 0!important;justify-content:center!important;position:relative;z-index:2}
html.stage .game-screen:is(.game-screen) .zoom-controls{display:flex!important;align-items:center;gap:10px!important;padding:6px 14px!important;background:url('../assets/stage/c-zoom-plate.webp') center/100% 100% no-repeat!important}
html.stage .game-screen:is(.game-screen) .zoom-controls button[data-action="zoomOut"],html.stage .game-screen:is(.game-screen) .zoom-controls button[data-action="zoomIn"]{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;background:url('../assets/stage/c-zoom-btn.webp') center/contain no-repeat!important;border:0!important;font-size:18px!important;line-height:1}
html.stage .game-screen:is(.game-screen) .zoom-controls #zoom-label{background:none!important;border:0!important;min-height:30px!important;min-width:52px!important;font-size:15px!important}
/* Tools: four paint wells on the wooden palette */
html.stage .game-screen:is(.game-screen) .game-caption{display:none!important}
html.stage .game-screen:is(.game-screen) .game-tools{position:relative;display:grid!important;grid-template-columns:repeat(4,74px)!important;justify-content:center!important;align-content:start;gap:14px!important;width:calc(100% + 60px)!important;max-width:none!important;margin:6px -30px 0!important;padding:calc((100% + 60px) * 0.06) 0 0!important;aspect-ratio:1200/617;background:url('../assets/stage/c-palette.webp') center top/100% 100% no-repeat!important;border:0!important;box-shadow:none!important}
html.stage .game-screen:is(.game-screen) .game-tools .tool{position:relative;width:74px!important;height:100px!important;min-height:0!important;padding:0!important;border:0!important;border-image:none!important;box-shadow:none!important;background:center top/74px 74px no-repeat!important;filter:none!important}
html.stage .game-screen:is(.game-screen) .game-tools .tool[data-action="paint"]{background-image:url('../assets/stage/c-well-pink.webp')!important}
html.stage .game-screen:is(.game-screen) .game-tools .tool[data-action="erase"]{background-image:url('../assets/stage/c-well-blue.webp')!important}
html.stage .game-screen:is(.game-screen) .game-tools .tool[data-action="undo"]{background-image:url('../assets/stage/c-well-green.webp')!important}
html.stage .game-screen:is(.game-screen) .game-tools .tool[data-action="hint"]{background-image:url('../assets/stage/c-well-yellow.webp')!important}
html.stage .game-screen:is(.game-screen) .game-tools .tool .art-icon{position:absolute!important;left:50%!important;top:37px!important;width:46px!important;height:46px!important;transform:translate(-50%,-50%)!important;margin:0!important}
html.stage .game-screen:is(.game-screen) .game-tools .tool>span:not(.sub):not(.hint-minus){position:absolute!important;left:-6px;right:-6px;bottom:0;margin:0!important;text-align:center;font-size:14px!important;line-height:20px;color:var(--wc-ink)!important;white-space:nowrap}
html.stage .game-screen:is(.game-screen) .game-tools .tool .sub{display:none!important}
html.stage .game-screen:is(.game-screen) .game-tools .tool::before{content:''!important;display:block!important;position:absolute!important;left:-6px!important;top:-6px!important;width:86px!important;height:86px!important;inset:auto!important;background:url('../assets/stage/c-well-ring.webp') center/contain no-repeat!important;opacity:0;transition:opacity .2s;pointer-events:none;border:0!important;transform:none!important}
html.stage .game-screen:is(.game-screen) .game-tools .tool.active::before{opacity:1}
html.stage .game-screen:is(.game-screen) .game-tools .tool[data-action="hint"][data-count]::after{content:attr(data-count)!important;display:flex!important;align-items:center;justify-content:center;position:absolute!important;top:-6px!important;right:-8px!important;left:auto!important;bottom:auto!important;min-width:26px;height:26px;padding:0 4px;background:url('../assets/stage/c-well-badge.webp') center/100% 100% no-repeat!important;font:700 13px/1 'WC Jua',system-ui;color:var(--wc-ink);border:0!important;box-shadow:none!important;transform:none!important;opacity:1!important}
html.stage .game-screen:is(.game-screen) .game-tools .tool:disabled .art-icon{opacity:.5}
html.stage .game-screen:is(.game-screen) .zoom-controls #zoom-label{white-space:nowrap!important;min-width:60px!important;padding:0!important}
html.stage .game-screen:is(.game-screen) .game-tools{padding-top:calc((100% + 60px) * 0.085)!important}
html.stage .game-screen:is(.game-screen) .board-top .hearts{font-size:30px!important;gap:8px!important}
html.stage .game-screen:is(.game-screen) .game-tools .tool::before{left:37px!important;top:37px!important;width:88px!important;height:88px!important;transform:translate(-50%,-50%)!important}
html.stage .game-screen:is(.game-screen) .game-tools .tool>span:not(.sub):not(.hint-minus){font-size:15px!important}
html.stage .game-screen:is(.game-screen){padding-bottom:0!important;min-height:100dvh;overflow:hidden}
html.stage .game-screen:is(.game-screen) .game-layout,html.stage .game-screen:is(.game-screen) .game-main{padding-bottom:0!important;margin-bottom:0!important}
html.stage .game-screen:is(.game-screen) .game-tools{aspect-ratio:auto!important;height:clamp(150px,calc(100dvh - 292px - var(--bw)),211px)!important;background-size:100% auto!important;background-position:center top!important;margin-bottom:0!important}
html.stage .game-screen:is(.game-screen) .board-frame .wc-easel{margin-top:-5px!important}
html.stage .game-screen:is(.game-screen) .game-tools{grid-template-columns:repeat(4,78px)!important;gap:12px!important}
html.stage .game-screen:is(.game-screen) .game-tools .tool{width:78px!important;height:104px!important;background-size:78px 78px!important}
html.stage .game-screen:is(.game-screen) .game-tools .tool .art-icon{top:39px!important;width:54px!important;height:54px!important}
html.stage .game-screen:is(.game-screen) .game-tools .tool::before{left:39px!important;top:39px!important;width:92px!important;height:92px!important}
html.stage .game-screen:is(.game-screen) .game-tools .tool>span:not(.sub):not(.hint-minus){left:50%!important;right:auto!important;width:max-content!important;transform:translateX(-50%)!important}
html.stage .game-screen:is(.game-screen) .game-tools .tool>span:not(.sub):not(.hint-minus):lang(ja){font-size:13px!important}
/* Handwriting type like the mockup (puzzle numbers on the canvas keep their own bold face) */
html.stage body,html.stage body :where(*):not(.wc-tagline):not(.wc-tagline *){font-family:'WC Hand','WC Jua',system-ui!important}
html.stage .wc-tagline{font-family:'WC Hand','WC Pen',cursive!important}
/* Palette lower: only the wells and labels need to show */
html.stage .game-screen:is(.game-screen) .game-tools{height:clamp(138px,calc(100dvh - 290px - var(--bw)),211px)!important;padding-top:calc((100% + 60px) * 0.07)!important}
/* ===== AM watercolor set ===== */
html.stage,html.stage body{background:#f6efe2 url('../assets/stage/c-background.webp') center top/100% auto no-repeat fixed!important}
html.stage body::before,html.stage body::after{display:none!important}
html.stage :root,html.stage{background-attachment:fixed!important}
html.stage .coins,html.stage .topbar .wc-back{background-image:url('../assets/stage/c-pill-wc.webp')!important}
html.stage .topbar .icon-button[data-action="settings"]{background-image:url('../assets/stage/c-round-wc.webp')!important}
html.stage img.wci-back{content:url('../assets/stage/c-back-wc.webp')!important;width:30px!important;height:auto!important}
html.stage :is(button.secondary,.text-button){background-image:url('../assets/stage/c-pill-wc.webp')!important}
html.stage .game-screen:is(.game-screen) .game-tools{background-image:url('../assets/stage/c-palette-wc.webp')!important}
html.stage .game-screen:is(.game-screen) .zoom-controls{background-image:url('../assets/stage/c-zoom-plate-wc.webp')!important}
html.stage .game-screen:is(.game-screen) .zoom-controls button[data-action="zoomOut"],html.stage .game-screen:is(.game-screen) .zoom-controls button[data-action="zoomIn"]{font-size:0!important;color:transparent!important;width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important}
html.stage .game-screen:is(.game-screen) .zoom-controls button[data-action="zoomOut"]{background-image:url('../assets/stage/c-minus-wc.webp')!important}
html.stage .game-screen:is(.game-screen) .zoom-controls button[data-action="zoomIn"]{background-image:url('../assets/stage/c-plus-wc.webp')!important}
/* ===== Easel wc2 (straight posts), opening 7.00-93.00% ===== */
html.stage .game-screen:is(.game-screen){--bw:clamp(230px,calc(100dvh - 428px),333px)}
html.stage .game-screen:is(.game-screen) .board-frame{margin-top:calc(var(--bw) * 0.1734 + 6px)!important}
html.stage .game-screen:is(.game-screen) .board-frame .wc-easel{width:116.279%!important;left:-8.140%!important;top:-17.345%!important;margin-top:-5px!important}
/* ===== Full-card art (AN): the painting is the whole card, text sits in its white wash ===== */
html.stage #app .home-screen>main{grid-template-rows:auto auto auto auto!important;align-content:start}
html.stage #app .home-screen .home-bottom{min-height:0!important;max-height:none!important;grid-template-rows:auto!important;align-items:start}
html.stage #app .home-screen .small-card{aspect-ratio:0.8655!important;height:auto!important;min-height:0!important;border:0!important;border-image:none!important;background:center/100% 100% no-repeat!important;padding:9% 10% 0!important;box-shadow:none!important;justify-content:flex-start!important}
html.stage #app .home-screen .small-card.daily-card{background-image:url('../assets/stage/card-full-daily.webp')!important}
html.stage #app .home-screen .small-card.collection-card{background-image:url('../assets/stage/card-full-collection.webp')!important}
html.stage #app .home-screen .small-card .wc-card-art,html.stage #app .home-screen .small-card .daily-badge{display:none!important}
html.stage #app .home-screen .small-card>span:has(>h2){flex:0 0 auto!important;height:31%!important;justify-content:center!important;align-items:center!important}
html.stage #app .home-screen .small-card h2{font-size:20px!important;line-height:1.15!important;margin:0!important}
html.stage #app .home-screen .small-card p{margin:5px 0 0!important;font-size:12.5px!important}
html.stage #app .home-screen .small-card{padding-top:8%!important}
html.stage #app .home-screen .small-card>span:has(>h2){height:34%!important}
html.stage #app .home-screen .small-card h2{font-size:19px!important}
html.stage #app .home-screen .small-card p{font-size:11.5px!important;line-height:1.2!important;margin-top:3px!important}
/* ===== Continue full-card (AO1), frame inner 65.62% 22.77% – 88.81% 56.82% ===== */
html.stage #app .home-screen .resume-card{position:relative!important;display:block!important;aspect-ratio:1.4682!important;height:auto!important;min-height:0!important;padding:0!important;border:0!important;border-image:none!important;background:url('../assets/stage/card-full-continue.webp') center/100% 100% no-repeat!important;box-shadow:none!important}
html.stage #app .home-screen .resume-card .resume-info{display:contents!important}
html.stage #app .home-screen .resume-card :is(.wc-card-title,h2,.resume-level,.resume-meter,.primary,.wc-preview){position:absolute!important;margin:0!important;grid-area:auto!important}
html.stage #app .home-screen .resume-card .wc-card-title{left:9%;top:11%;font-size:30px!important;line-height:1.1!important;white-space:nowrap}
html.stage #app .home-screen .resume-card h2{left:9%;top:29%;width:52%;font-size:16px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.stage #app .home-screen .resume-card .resume-level{left:9%;top:38%;font-size:14px!important}
html.stage #app .home-screen .resume-card .resume-meter{left:9%;top:49%;width:46%!important}
html.stage #app .home-screen .resume-card .wc-preview{left:65.62%;top:22.77%;width:23.19%!important;height:34.05%!important}
html.stage #app .home-screen .resume-card .wc-preview canvas{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;margin:0!important}
html.stage #app .home-screen .resume-card .wc-preview :is(.wc-clip,.wc-brush-prop){display:none!important}
html.stage #app .home-screen .resume-card .primary{left:7%;width:58%!important;top:64%;height:24%!important;min-height:0!important}
/* Daily card: check stamp only when today's puzzle is done (painted art has none) */
html.stage #app .home-screen .small-card .wc-card-art{display:block!important;position:absolute!important;inset:auto 6% 5% auto!important;width:auto!important;height:auto!important;margin:0!important}
html.stage #app .home-screen .small-card .wc-card-art img:not([src*="check"]):not(.wc-check):not(.daily-check){display:none!important}
html.stage #app .home-screen .small-card .wc-card-art img:is([src*="check"],.wc-check,.daily-check){position:static!important;transform:none!important;width:34px!important;height:34px!important}
html.stage #app .home-screen .small-card{position:relative!important}
/* ===== Grid pass: one column, even rhythm, aligned rows ===== */
html.stage #app .home-screen{--col:clamp(250px,calc(100dvh * .794 - 300px),350px);--gut:calc((100% - var(--col)) / 2)}
html.stage #app .home-screen>main{width:var(--col)!important;max-width:none!important;margin:0 auto!important;padding-left:0!important;padding-right:0!important;align-content:space-evenly!important;row-gap:10px!important}
html.stage #app .home-screen .resume-card,html.stage #app .home-screen .home-bottom{width:100%!important;max-width:none!important;margin:0!important}
html.stage #app .home-screen .bottom-nav{width:var(--col)!important;max-width:none!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important}
html.stage #app .home-screen .topbar{padding-left:var(--gut)!important;padding-right:var(--gut)!important}
html.stage #app .home-screen .topbar .nav-actions{margin-right:0!important;right:auto!important}
html.stage #app .home-screen .hero .wc-logo{max-width:calc(var(--col) * .88)!important;height:auto!important}
html.stage #app .home-screen>main>:is(.daily-tools,.home-help){align-self:start!important;display:block!important}
html.stage #app .home-screen>main>:is(.daily-tools,.home-help)>*{display:flex!important;margin:0!important;vertical-align:top}
html.stage .game-screen .wc-help{margin-top:-11px!important}
html.stage #app .home-screen>main,html.stage #app .home-screen .home-bottom{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
html.stage #app .home-screen>main>*{min-width:0!important}
html.stage #app .home-screen>main>:is(.daily-tools,.home-help)>*{min-width:0!important;overflow:hidden;white-space:nowrap;font-size:clamp(12px,calc(var(--col) * .042),15px)!important;padding-left:10px!important;padding-right:10px!important;gap:6px!important}
html.stage #app .home-screen>main{padding-bottom:12px!important}
html.stage #app .home-screen>main>.overall-progress,html.stage #app .home-screen>main>.update-notice:empty{display:none!important}
html.stage #app .home-screen .resume-card .wc-card-title{font-size:calc(var(--col) * .085)!important}
html.stage #app .home-screen .resume-card h2{font-size:calc(var(--col) * .046)!important}
html.stage #app .home-screen .resume-card .resume-level{font-size:calc(var(--col) * .04)!important}
html.stage #app .home-screen .resume-card .primary{font-size:calc(var(--col) * .055)!important}
html.stage #app .home-screen .small-card h2{font-size:calc(var(--col) * .054)!important}
html.stage #app .home-screen .small-card p{font-size:calc(var(--col) * .033)!important}
html.stage .topbar .wc-back .wc-label{font-size:15px!important;line-height:1}
html.stage #app .home-screen .home-help>:not(button):not(a){display:none!important}
html.stage #app .home-screen .resume-card :is(.wc-card-title,h2,.resume-level,.resume-meter){left:13%!important}
html.stage #app .home-screen .resume-card .wc-card-title{top:12%!important}
html.stage #app .home-screen .resume-card .resume-meter{width:42%!important}
html.stage .topbar .wc-back .wc-label{font-size:17px!important}
html.stage .bottom-nav button span{font-size:14px!important;line-height:1.1}
html.stage .game-screen .wc-help .wc-label{font-size:13px!important}
/* ===== Type pass: readable captions (min 13px), centred headings ===== */
html.stage #app :is(.pic-album-title .eyebrow,.pic-card-sub,.resume-label,.resume-count,.book-info>p,.album-title>p,.reward-note,.eyebrow,.board-status,.pic-cell>span,.settings .setting-row p,.settings p){font-size:13px!important;line-height:1.3!important}
html.stage #app .collection-tabs button{font-size:13px!important}
html.stage #app .collection-tabs button span{font-size:12px!important}
html.stage #app .home-screen .small-card p{font-size:calc(var(--col) * .038)!important}
html.stage #app main.settings .section-heading,html.stage #app main.settings>header,html.stage #app main.settings .section-heading :is(h1,.eyebrow){text-align:center!important;justify-content:center!important;align-items:center!important;margin-left:auto!important;margin-right:auto!important}
html.stage #app .collection-tabs{align-items:stretch!important}
html.stage #app .collection-tabs button{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:1px!important;min-height:52px!important;height:52px!important;padding:4px 6px!important;white-space:nowrap!important;line-height:1.1!important;text-align:center!important}
html.stage #app .collection-tabs button span{flex:none!important;margin:0!important;padding:0 7px!important;min-width:0!important}
/* ===== Dialog pass ===== */
html.stage #modal:not(.result) :is(#modal-title,.modal-eyebrow,.eyebrow,h2:first-of-type){text-align:center!important;margin-left:auto!important;margin-right:auto!important}
html.stage #modal:not(.result) #modal-body>p:only-of-type,html.stage #modal:not(.result):has(.fail-hearts) #modal-body p{text-align:center!important}
html.stage #modal .fail-hearts{justify-content:center!important}
html.stage #modal .coins,html.stage #modal .wc-res-coins{border:0!important;border-image:none!important;background:url('../assets/stage/c-pill-wc.webp') center/100% 100% no-repeat!important}
html.stage #modal .coins .coin,html.stage #modal .wc-res-coins .coin,html.stage #modal .reward .coin{background-image:url('../assets/stage/icon2-coin.webp')!important;background-size:contain!important}
html.stage #modal:not(.result)>.eyebrow{display:block!important;text-align:center!important}
html.stage #modal:not(.result):has(.fail-hearts)>p,html.stage #modal:not(.result)>p:only-of-type{text-align:center!important}
html.stage #modal.result .result-stats span{white-space:nowrap!important;font-size:clamp(9px,2.6vw,11px)!important;letter-spacing:-.2px}
/* ===== Short stages ===== */
html.stage .topbar{align-items:center!important}
html.stage .topbar .nav-actions{align-items:center!important}
html.stage .topbar :is(.wc-back,.coins,.icon-button[data-action="settings"]){margin-top:0!important;margin-bottom:0!important;align-self:center!important}
@media(max-height:680px){
  html.stage #app .home-screen{--col:clamp(222px,calc(100dvh * .794 - 240px),350px)}
  html.stage #app .home-screen .hero .wc-tagline{display:none!important}
  html.stage #app .home-screen .hero .wc-logo{max-height:58px!important;width:auto!important}
  html.stage #app .home-screen .hero{padding-top:0!important;margin-top:-6px!important}
  html.stage .game-screen .wc-help{margin-top:-3px!important}
}
/* ===== Box pass ===== */
html.stage #app .home-screen>main>:is(.daily-tools,.home-help)>*{white-space:nowrap!important;justify-content:center!important;padding-left:8px!important;padding-right:8px!important;gap:6px!important;color:var(--wc-ink)!important}
html.stage #app .home-screen :is(.daily-tools,.home-help) img.art-icon{width:clamp(26px,calc(var(--col) * .1),34px)!important;height:clamp(26px,calc(var(--col) * .1),34px)!important;flex:none!important}
html.stage .game-screen:is(.game-screen) .game-tools{background-position:18px top!important}
html.stage #app .reward-card .reward-card-copy{text-align:center!important;align-items:center!important;justify-items:center!important}
html.stage #app .reward-card .reward-card-copy>*{margin-left:auto!important;margin-right:auto!important}
html.stage #app .pic-note{max-width:min(300px,calc(100% - 48px))!important;margin-left:auto!important;margin-right:auto!important;text-wrap:balance}
/* ===== Picture screen fit ===== */
html.stage #app .picture-screen.shell{padding-bottom:calc(8px + env(safe-area-inset-bottom))!important}
html.stage #app .picture-screen main{gap:6px!important;padding-bottom:0!important}
html.stage #app .picture-screen main>.pic-stage{width:clamp(180px,calc((100dvh - 398px) / 1.118),380px)!important;max-width:100%!important;margin-left:auto!important;margin-right:auto!important}
html.stage #app .picture-screen .pic-go{min-height:52px!important;height:52px!important}
html.stage #app .picture-screen .pic-steps{margin-top:2px!important;margin-bottom:2px!important}
html.stage #app .picture-screen .bottom-nav{margin-top:6px!important}
html.stage #app .picture-screen .pic-cell.next{container-type:inline-size}
html.stage #app .picture-screen .pic-cell.next>span{display:block;max-width:86%;white-space:normal!important;text-align:center;line-height:1.05!important;font-size:clamp(9.5px,26cqi,13px)!important;overflow-wrap:normal;word-break:keep-all}
/* ===== Dialog box pass ===== */
html.stage #modal.result .modal-actions>button{white-space:nowrap!important;text-wrap:nowrap}
html.stage #modal.result .modal-actions>button.primary,html.stage #modal.result .modal-actions>button:not(.secondary):first-child{font-size:clamp(15px,4.6vw,19px)!important;padding-left:22px!important;padding-right:22px!important}
html.stage #modal.result .modal-actions>button.secondary{font-size:14px!important;padding-left:10px!important;padding-right:10px!important;gap:6px!important}
html.stage #modal .fail-hearts i{background-image:url('../assets/stage/icon2-heart-empty-v2.webp')!important}
html.stage #modal .fail-hearts .breaking .half{background-image:url('../assets/stage/icon2-heart.webp')!important}
html.stage #modal.result .modal-actions>button:not(.secondary):lang(ja),html.stage:lang(ja) #modal.result .modal-actions>button:not(.secondary){font-size:19px!important}
/* ===== Tutorial + slide in option C ===== */
html.stage .game-screen:has(.lesson-guide){--bw:clamp(150px,calc(100dvh - 485px),320px)!important}
html.stage .game-screen:has(.lesson-guide) .zoom-controls{display:none!important}
html.stage .game-screen:has(.lesson-guide) .game-tools{margin-top:10px!important}
html.stage .slide-screen .game-tools.slide-tools{grid-template-columns:repeat(3,78px)!important;gap:22px!important;justify-content:center!important;width:calc(100% + 60px)!important;max-width:none!important}
html.stage .slide-screen .game-tools.slide-tools .tool{width:78px!important;max-width:78px!important}
html.stage .slide-screen .slide-tools .tool[data-action="slideUndo"]{background-image:url('../assets/stage/c-well-green.webp')!important}
html.stage .slide-screen .slide-tools .tool[data-action="slideHint"]{background-image:url('../assets/stage/c-well-yellow.webp')!important}
html.stage .slide-screen .slide-tools .tool#peek{background-image:url('../assets/stage/c-well-blue.webp')!important}
html.stage .slide-screen .slide-tools .tool .art-icon,html.stage .slide-screen .slide-tools .tool .tool-pic{position:absolute!important;left:50%!important;top:39px!important;width:50px!important;height:50px!important;object-fit:contain;transform:translate(-50%,-50%)!important;margin:0!important}
html.stage .slide-screen .slide-tools .tool>span:not(.sub):not(.hint-minus){position:absolute!important;left:50%!important;right:auto!important;bottom:0;width:max-content!important;transform:translateX(-50%)!important;margin:0!important;font-size:15px!important;line-height:20px;color:var(--wc-ink)!important;white-space:nowrap}
html.stage .slide-screen .slide-tray{width:clamp(140px,calc(100dvh - 468px),326px)!important}
@media(max-height:760px){html.stage .slide-screen .pic-heading .eyebrow{display:none!important}}
@media(max-height:660px){html.stage .game-screen:has(.lesson-guide){--bw:clamp(130px,calc(100dvh - 470px),320px)!important}html.stage .game-screen:has(.lesson-guide) .board-top .eyebrow{display:none!important}}
/* ===== AP art ===== */
html.stage #app .collection-empty .card-icon{display:block!important;width:min(240px,72%)!important;height:auto!important;aspect-ratio:520/256;margin:0 auto 6px!important;padding:0!important;background:url('../assets/stage/empty-daily-sketchbook.webp') center/contain no-repeat!important;border:0!important;border-radius:0!important;box-shadow:none!important}
html.stage #app .collection-empty .card-icon>*{display:none!important}
html.stage #app .text-button[data-action="allAlbums"]{padding-left:12px!important;padding-right:14px!important;gap:6px!important;justify-content:center!important}
html.stage .slide-screen .slide-moves{justify-content:center!important;padding-left:12px!important;padding-right:12px!important;gap:6px!important}
html.stage #app .collection-tabs button span{font-size:13px!important;line-height:1.1!important}
html.stage #modal button[data-calendar-month]{position:relative;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;font-size:0!important;color:transparent!important;border:0!important;border-image:none!important;box-shadow:none!important;background:url('../assets/stage/c-round-wc.webp') center/100% 100% no-repeat!important}
html.stage #modal button[data-calendar-month]::after{content:'';position:absolute;left:50%;top:50%;width:24px;height:20px;transform:translate(-50%,-50%);background:url('../assets/stage/c-back-wc.webp') center/contain no-repeat}
html.stage #modal button[data-calendar-month]~button[data-calendar-month]::after{transform:translate(-50%,-50%) scaleX(-1)}
html.stage #modal button[data-calendar-month]:disabled{opacity:.4}
/* ===== PC check: phone-like scrolling inside the stage frame ===== */
html.stage{scrollbar-width:none}
html.stage::-webkit-scrollbar,html.stage body::-webkit-scrollbar{display:none;width:0;height:0}
html.stage:has(.game-screen),html.stage:has(.game-screen) body{overflow:hidden!important}
/* ===== Play D (AR1 canvas): the paper square is the .board-frame box, the board sits inside a 3.56% cream border ===== */
html.stage .game-screen:is(.game-screen):not(:has(.lesson-guide)){--bw:clamp(226px,calc((100dvh - 357px) / 1.0713),378px)}
html.stage .game-screen:is(.game-screen) .board-frame{padding:calc(var(--bw) * .0356)!important;margin-top:calc(var(--bw) * .0713 + 4px)!important}
html.stage .game-screen:is(.game-screen) .board-frame::before{display:none!important}
html.stage .game-screen:is(.game-screen) .board-frame .wc-easel{content:url('../assets/stage/d-canvas.webp');width:102.525%!important;left:-.768%!important;top:-7.126%!important;margin-top:0!important;filter:drop-shadow(0 3px 5px rgba(90,60,30,.16))}
html.stage .game-screen:is(.game-screen) .board-viewport{box-shadow:none!important;border-radius:2px!important}
/* praise floats in the gap above the paper, between the two clips */
html.stage .game-screen .board-frame .praise{top:-3.6%!important}
html.stage .game-screen:is(.game-screen) .board-frame{margin-left:calc(50% - var(--bw) / 2)!important;margin-right:0!important}
/* keyboard focus: a thin warm ink line in the cream border instead of the heavy red outline */
html.stage .game-screen .board-viewport .board:focus-visible,html.stage .game-screen canvas.board:focus-visible{outline:2px solid rgba(122,78,40,.55)!important;outline-offset:-2px!important}
/* short stages: hearts, bar and count share one row; smaller ribbon; zoom plate rests on the palette rim */
@media(max-height:780px){
html.stage .game-screen:is(.game-screen) .game-aside h1{font-size:20px!important;padding:5px 46px 7px!important}
html.stage .game-screen:is(.game-screen) .board-top{grid-template-columns:auto 1fr auto!important;grid-template-rows:auto!important;width:min(350px,calc(var(--bw) - 16px))!important;min-width:280px;gap:0 10px!important;margin-left:auto!important;margin-right:auto!important}
html.stage .game-screen:is(.game-screen) .board-top #game-mode{grid-column:1!important;grid-row:1!important}
html.stage .game-screen:is(.game-screen) .board-top #region-progress{grid-column:2!important;grid-row:1!important}
html.stage .game-screen:is(.game-screen) .board-top #game-progress{grid-column:3!important;grid-row:1!important}
html.stage .game-screen:is(.game-screen) .board-top .hearts{font-size:24px!important;gap:4px!important}
html.stage .game-screen:is(.game-screen) .game-tools{margin-top:-16px!important}
}
@media(max-height:780px){html.stage .game-screen:is(.game-screen):not(:has(.lesson-guide)){--bw:clamp(226px,calc((100dvh - 308px) / 1.0713),378px)}}
@media(max-height:780px){html.stage .game-screen .wc-help .wc-label{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important}html.stage .game-screen .wc-help{margin-top:-3px!important}}
/* slide puzzle on the same clipped paper canvas (tray box = paper square) */
html.stage .slide-screen{--sw:clamp(140px,calc(100dvh - 468px),326px)}
html.stage .slide-screen .slide-tray{width:var(--sw)!important;aspect-ratio:1!important;margin-top:calc(var(--sw) * .07)!important}
html.stage .slide-screen .slide-tray-art{content:url('../assets/stage/d-canvas.webp');width:102.525%!important;height:auto!important;left:-.768%!important;top:-7.126%!important;right:auto!important;bottom:auto!important;filter:drop-shadow(0 3px 5px rgba(90,60,30,.16))}
html.stage .slide-screen .slide-board{left:3.56%!important;top:3.56%!important;right:3.56%!important;bottom:3.56%!important}
/* slide: moves counter shares the row with the last-piece dish; the tray takes the freed height */
html.stage .slide-screen main{display:grid!important;grid-template-columns:1fr auto auto 1fr!important;grid-template-areas:"h h h h" "g g g g" "t t t t" ". l m ." "o o o o";justify-items:center;align-items:center;column-gap:10px}
html.stage .slide-screen .pic-heading{grid-area:h}
html.stage .slide-screen .slide-guide{grid-area:g}
html.stage .slide-screen .slide-tray{grid-area:t}
html.stage .slide-screen .slide-last{grid-area:l}
html.stage .slide-screen .slide-moves{grid-area:m;margin:0!important}
html.stage .slide-screen .slide-tools{grid-area:o;justify-self:center}
html.stage .slide-screen{--sw:clamp(150px,calc((100dvh - 464px) / 1.07),340px)}
@media(max-height:780px){html.stage .slide-screen{--sw:clamp(150px,calc((100dvh - 410px) / 1.07),340px)}}
/* tutorial: the D frame needs less headroom than the easel, so the lesson board grows */
html.stage .game-screen:has(.lesson-guide){--bw:clamp(150px,calc((100dvh - 470px) / 1.0713),350px)!important}
@media(max-height:780px){html.stage .game-screen:has(.lesson-guide){--bw:clamp(130px,calc((100dvh - 405px) / 1.0713),350px)!important}}
@media(max-height:780px){html.stage .game-screen:has(.lesson-guide) .board-top #game-mode{display:none!important}html.stage .game-screen:has(.lesson-guide) .board-top{grid-template-columns:1fr auto!important}html.stage .game-screen:has(.lesson-guide) .board-top #region-progress{grid-column:1!important}html.stage .game-screen:has(.lesson-guide) .board-top #game-progress{grid-column:2!important}}
@media(max-height:780px){html.stage .game-screen .wc-help{margin-top:-14px!important}}
@media(max-height:660px){html.stage .game-screen .wc-help{margin-top:-6px!important}}
/* classic tab: the "current album" arrow uses the watercolor round arrow like the calendar */
html.stage #app .album-resume>:is(svg,img,.art-icon){display:none!important}
html.stage #app .album-resume::after{content:'';flex:0 0 40px;width:40px;height:40px;margin-left:auto;background:url('../assets/stage/c-back-wc.webp') center/22px auto no-repeat,url('../assets/stage/c-round-wc.webp') center/100% 100% no-repeat;transform:scaleX(-1)}
/* mistake: a red glow that follows the paper and clips, not a square ring */
html.stage .game-screen .board-frame.mistake::after{display:none!important}
html.stage .game-screen .board-frame.mistake .wc-easel{animation:d-mistake .5s ease-out}
@keyframes d-mistake{30%{filter:drop-shadow(0 0 3px rgba(200,49,74,.9)) drop-shadow(0 0 12px rgba(200,49,74,.55))}}
html.stage .reduce-motion .board-frame.mistake .wc-easel,html.stage body.reduce-motion .board-frame.mistake .wc-easel{animation:none}
@media(prefers-reduced-motion:reduce){html.stage .board-frame.mistake .wc-easel{animation:none}}
/* big breaking heart: the watercolor heart picture split in two halves instead of a ♥ glyph */
html.stage .big-heart{font-size:150px!important}
html.stage .big-heart .half{color:transparent!important;text-shadow:none!important;background:url('../assets/stage/icon2-heart.webp') center/contain no-repeat;filter:drop-shadow(0 6px 10px rgba(150,40,50,.32))!important}
html.stage .big-heart i::after{display:none!important}
/* all pictures done: the long title wraps beside the frame; the repeated subtitle is hidden */
html.stage #app .home-screen .resume-card.all-done{container-type:inline-size}
html.stage #app .home-screen .resume-card.all-done .wc-card-title{width:55%;white-space:normal!important;font-size:6.4cqw!important;line-height:1.12!important;top:10%}
html.stage #app .home-screen .resume-card.all-done .primary{white-space:nowrap!important;font-size:min(17px,5cqw)!important}
html.stage #app .home-screen .resume-card.all-done h2{display:none!important}
html.stage #app .home-screen .resume-card.all-done .resume-level{top:39%}
html.stage #app .home-screen .resume-card.all-done .primary:lang(ja){font-size:min(15px,4.3cqw)!important}
/* selected tab wash keeps its size when the column narrows (short stages) */
html.stage .bottom-nav button[aria-current]::before{width:78px!important;left:50%!important;right:auto!important;margin-left:-39px!important}
/* volume: watercolor bar (track + painted fill up to the value) and a round paint-badge thumb */
html.stage .volume-control{-webkit-appearance:none!important;appearance:none!important;height:30px!important;background:transparent!important;accent-color:auto}
html.stage .volume-control::-webkit-slider-runnable-track{height:12px;border:0;background:url('../assets/stage/bar-fill.webp') left center/var(--v,70%) 100% no-repeat,url('../assets/stage/bar-track.webp') center/100% 100% no-repeat}
html.stage .volume-control::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:28px;height:28px;margin-top:-8px;border:0;background:url('../assets/stage/c-well-badge.webp') center/contain no-repeat;filter:drop-shadow(0 1px 2px rgba(90,60,30,.3))}
html.stage .volume-control::-moz-range-track{height:12px;border:0;background:url('../assets/stage/bar-track.webp') center/100% 100% no-repeat}
html.stage .volume-control::-moz-range-progress{height:12px;background:url('../assets/stage/bar-fill.webp') center/100% 100% no-repeat}
html.stage .volume-control::-moz-range-thumb{width:28px;height:28px;border:0;border-radius:0;background:url('../assets/stage/c-well-badge.webp') center/contain no-repeat}
/* album-finishing result (gift badge + 4 buttons): drop the cheer line (the badge says it), three secondary buttons share one row, home is icon-only */
html.stage #modal.result:has(.album-gift-earned) .wc-cheer{display:none!important}
html.stage #modal.result:has(.album-gift-earned):has(.modal-actions>button:nth-child(4)) .modal-actions{display:grid!important;grid-template-columns:1fr 1fr 58px!important;gap:8px!important;justify-items:stretch}
html.stage #modal.result:has(.album-gift-earned):has(.modal-actions>button:nth-child(4)) .modal-actions>button.primary{grid-column:1/-1;justify-self:center}
html.stage #modal.result:has(.album-gift-earned):has(.modal-actions>button:nth-child(4)) .modal-actions>button.secondary{width:auto!important;min-width:0!important;padding-left:6px!important;padding-right:6px!important;font-size:13px!important}
html.stage #modal.result:has(.album-gift-earned):has(.modal-actions>button:nth-child(4)) .modal-actions>button.secondary:last-child{font-size:0!important;padding:0!important;gap:0!important}
html.stage #modal.result:has(.album-gift-earned):has(.modal-actions>button:nth-child(4)) .modal-actions>button.secondary:last-child :is(img,svg){width:28px!important;height:28px!important;margin:0!important}
html.stage #modal.result:has(.album-gift-earned) .result-collection{display:none!important}
html.stage #modal.result:has(.album-gift-earned):has(.modal-actions>button:nth-child(4)) .modal-actions>.secondary:last-child{grid-column:auto!important;width:58px!important;justify-self:end}
@media(min-height:800px){html.stage #modal.result:has(.album-gift-earned) .wc-cheer{display:block!important}}
html.stage #modal.result .modal-actions>button.secondary:not(:last-child):lang(en),html.stage:lang(en) #modal.result:has(.album-gift-earned):has(.modal-actions>button:nth-child(4)) .modal-actions>button.secondary:not(:last-child){font-size:12px!important}
/* gift / reward viewer: bigger painting, content centred vertically */
html.stage #modal.result[open]:has(.reward-stage){display:flex!important;flex-direction:column;justify-content:center;align-items:center}
html.stage #modal.result:has(.reward-stage) .reward-stage{width:min(330px,calc(100dvh - 360px))!important;max-width:100%!important;margin-left:auto!important;margin-right:auto!important}
html.stage #modal.result:has(.reward-stage) .reward-art{width:100%!important;max-width:100%!important;height:auto!important}
@media(max-height:670px){html.stage #modal.result .wc-cheer{display:none!important}}
/* coin +N floats just left of the coin pill (empty top-bar space) instead of over the heading below */
html.stage .coin-gain.side{translate:-100% 0;font-size:20px}
/* short stages: the picture-spot note sits beside the title, above the one-row hearts/progress */
@media(max-height:780px){html.stage .game-screen .board-top>.pic-minimap{width:38px!important;top:-45px!important}}
/* daily tab: the streak-gift shelf is one paper card (no hairline, text never sits on the flower background) */
html.stage .collection-screen .reward-shelf{margin-top:18px!important;padding:6px 8px 4px!important;border:20px solid transparent!important;border-image:url('../assets/stage/card.webp') 64 fill / 20px / 0 stretch!important}
html.stage .collection-screen .reward-shelf .reward-card{border-width:14px!important;border-image-width:14px!important}
html.stage .collection-screen .reward-shelf{padding-left:0!important;padding-right:0!important;border-left-width:14px!important;border-right-width:14px!important}
html.stage .collection-screen .reward-shelf .reward-grid{gap:8px!important}
html.stage .collection-screen .reward-shelf .reward-card .eyebrow{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;font-size:13px!important}
/* continue card: sizes follow the card width; English titles are longer */
html.stage #app .home-screen .resume-card{container-type:inline-size}
html.stage #app .home-screen .resume-card .primary{white-space:nowrap!important}
html.stage #app .home-screen .resume-card:not(.all-done) .wc-card-title:lang(en),html.stage:lang(en) #app .home-screen .resume-card:not(.all-done) .wc-card-title{font-size:min(30px,7.4cqw)!important;max-width:57%}
html.stage #app .home-screen .resume-card:not(.all-done) .primary:lang(en),html.stage:lang(en) #app .home-screen .resume-card:not(.all-done) .primary{font-size:min(18px,5.2cqw)!important}
html.stage .picture-screen .pic-go{white-space:nowrap!important}
html.stage .picture-screen .pic-go:lang(ja),html.stage:lang(ja) .picture-screen .pic-go{font-size:min(19px,5.2vw)!important;padding-left:18px!important;padding-right:18px!important}
/* picture result: the framed painting shrinks with the stage height so the last button stays on screen */
html.stage #modal.result .pic-finale{max-width:min(100%,calc((100dvh - 363px) / 1.34))!important}
html.stage #modal.result:has(.album-gift-earned) .pic-finale{max-width:min(100%,calc((100dvh - 433px) / 1.34))!important}
html.stage #modal:has(.share-text) .modal-actions{margin-top:8px!important}
html.stage #modal:has(.share-text) .share-status{margin:4px 0 0!important;min-height:18px}
/* hint spent: a handwritten amber -1 rising over the yellow well (same look as the coin +N) */
html.stage .coin-gain.hint-gain{font-size:22px}
/* settings: balanced description lines (no lone '· 코인 절반' / '줘요'), backup buttons on one line */
html.stage .settings .setting-row p,html.stage .settings-section p{text-wrap:pretty}
html.stage .settings :is(button[data-action="export"],button[data-action="import"],button[data-action="saveHistory"]){white-space:nowrap!important;padding-left:12px!important;padding-right:12px!important}
html.stage .settings :is(button[data-action="export"],button[data-action="import"]):lang(en),html.stage:lang(en) .settings :is(button[data-action="export"],button[data-action="import"]){font-size:14px!important}
html.stage .settings .setting-row p:lang(ko),html.stage:lang(ko) .settings .setting-row p{word-break:keep-all}
html.stage:lang(en) .settings :is(button[data-action="export"],button[data-action="import"]){font-size:13px!important;padding-left:10px!important;padding-right:10px!important}
/* streak protection offer: [calendar][help] row, then the protect button across the column */
html.stage #app .home-screen>main:has(>.daily-tools [data-action="protectStreak"]){grid-auto-flow:row dense!important}
html.stage #app .home-screen>main>.daily-tools:has([data-action="protectStreak"]){display:contents!important}
html.stage #app .home-screen>main>.daily-tools>[data-action="dailyCalendar"]{grid-column:1!important}
html.stage #app .home-screen>main>.daily-tools>[data-action="protectStreak"]{grid-column:1/-1!important;width:100%!important;max-width:none!important;flex:none!important;order:0!important}
html.stage #app .home-screen>main:has(>.daily-tools [data-action="protectStreak"])>.home-help{grid-column:2!important;order:0!important;margin-top:0!important;width:auto!important}
html.stage #app .home-screen>main>.daily-tools:has([data-action="protectStreak"])>[data-action="dailyCalendar"]{order:0!important;margin-top:0!important;width:auto!important}
html.stage #app .home-screen:has(.daily-tools [data-action="protectStreak"]){--col:clamp(236px,calc(100dvh * .794 - 330px),340px)}
html.stage #app .home-screen:has(.daily-tools [data-action="protectStreak"]) .wc-tagline{display:none!important}

/* new-gift notice on home: one paper banner across the column (not the full-art small card) */
html.stage #app .home-screen .small-card.gift-earned{grid-column:1/-1!important;aspect-ratio:auto!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:10px;min-height:56px!important;padding:6px 8px 6px 12px!important;border:14px solid transparent!important;border-image:url('../assets/stage/card.webp') 64 fill / 14px / 0 stretch!important;background:none!important;text-align:left;color:var(--wc-ink)}
html.stage #app .home-screen .small-card.gift-earned>span{flex:1 1 auto;font-size:15px!important;line-height:1.3;min-width:0}
html.stage #app .home-screen .small-card.gift-earned>:is(svg,img,.art-icon){display:none!important}
html.stage #app .home-screen .small-card.gift-earned::after{content:'';flex:0 0 36px;width:36px;height:36px;background:url('../assets/stage/c-back-wc.webp') center/20px auto no-repeat,url('../assets/stage/c-round-wc.webp') center/100% 100% no-repeat;transform:scaleX(-1)}
html.stage #app .home-screen .small-card.gift-earned .gift-line{display:block;font-size:13px;color:var(--wc-ink-soft,#6b5a4a)}
html.stage #app .home-screen .small-card.gift-earned .gift-name{display:block;font-size:17px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.stage #app .home-screen:has(.small-card.gift-earned){--col:clamp(236px,calc(100dvh * .794 - 345px),330px)}
html.stage #app .home-screen:has(.small-card.gift-earned) .wc-tagline{display:none!important}
html.stage #app .home-screen .small-card.gift-earned .gift-line::after{content:none}
html.stage #app .home-screen .small-card.gift-earned .gift-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:min(13px,calc(var(--col) * .042))!important}
html.stage #app .home-screen .small-card.gift-earned .gift-line{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;font-size:12px!important;line-height:1.25}
/* album shelf: the three picture cards share rows, so 'Complete' lines up even when one name wraps */
html.stage #app .pic-cards{align-items:stretch!important}
html.stage #app .pic-card{display:flex!important;flex-direction:column;align-items:center}
html.stage #app .pic-card .pic-card-name{flex:1 1 auto;display:flex;align-items:center;justify-content:center;text-align:center}
html.stage #app .pic-card .pic-card-name:lang(ja),html.stage:lang(ja) #app .pic-card .pic-card-name{font-size:13px!important;word-break:auto-phrase;overflow-wrap:normal!important;text-wrap:balance}
/* classic shelf: titles start on the same line under the covers even when one wraps */
html.stage #app .album-book .book-info{align-content:space-between!important;align-items:end!important}
html.stage #app .album-book .book-info h2{align-self:start!important}
/* long play titles stay on one ribbon line */
html.stage .game-screen:is(.game-screen) .game-aside h1{white-space:nowrap!important;max-width:calc(100% - 96px)}
html.stage .game-screen:is(.game-screen) .game-aside h1[data-fit="l"]{font-size:18px!important;padding-left:48px!important;padding-right:48px!important;max-width:none}
html.stage .game-screen:is(.game-screen) .game-aside h1[data-fit="xl"]{font-size:15px!important;padding-left:50px!important;padding-right:50px!important;max-width:none}
/* 761-819px stages: the 150px minimum easel pushed the last result button 3-17px off screen */
@media(min-height:761px) and (max-height:819px){html.stage #modal.result .completion-scene{--s:clamp(104px,calc(100dvh * .21 - 24px),230px)!important}}
/* 709-780px: the board is already at its max, so the spare height is split above the canvas and above the palette */
@media(min-height:709px) and (max-height:780px){html.stage .game-screen:is(.game-screen):not(:has(.lesson-guide)) .board-frame{margin-top:calc(var(--bw) * .0713 + 4px + (100dvh - 708px) * .4)!important}html.stage .game-screen:is(.game-screen):not(:has(.lesson-guide)) .game-tools{margin-top:calc(-16px + (100dvh - 708px) * .3)!important}}
/* tutorial: the palette art ends at the stage bottom (no extra scroll) and labels keep >=16px below */
html.stage .game-screen:has(.lesson-guide) .game-tools{height:auto!important;max-height:none!important;padding-bottom:18px!important;background-size:100% auto!important;margin-bottom:0!important}
html.stage .game-screen:has(.lesson-guide){--bw:clamp(150px,calc((100dvh - 482px) / 1.0713),340px)!important}
@media(max-height:780px){html.stage .game-screen:has(.lesson-guide){--bw:clamp(130px,calc((100dvh - 405px) / 1.0713),340px)!important}}
@media(min-height:721px) and (max-height:780px){html.stage .game-screen:has(.lesson-guide){--bw:clamp(130px,calc((100dvh - 445px) / 1.0713),340px)!important}}
/* slide: tray size from the real fixed heights per band (heading, guide, dish row, tools) */
@media(min-height:781px){html.stage .slide-screen{--sw:clamp(150px,calc((100dvh - 500px) / 1.07),340px)}}
@media(min-height:741px) and (max-height:780px){html.stage .slide-screen{--sw:clamp(150px,calc((100dvh - 456px) / 1.07),340px)}}
/* slide: the palette art always reaches the stage bottom */
html.stage .slide-screen main{min-height:calc(100dvh - 60px);grid-template-rows:auto auto auto auto 1fr!important}
html.stage .slide-screen .slide-tools{align-self:stretch!important;height:auto!important;min-height:138px}
html.stage .slide-screen main>.slide-tools{align-self:end!important;margin-bottom:0!important}
html.stage .slide-screen main{align-content:start!important}
/* play: the palette art reaches the stage bottom at every height (it is cut by the stage edge like the mockup) */
html.stage .game-screen:is(.game-screen):not(:has(.lesson-guide)) .game-main{display:flex!important;flex-direction:column;min-height:calc(100dvh - 108px)}
html.stage .game-screen:is(.game-screen):not(:has(.lesson-guide)):not(.slide-screen) .game-tools{flex:1 0 auto;height:auto!important;min-height:138px;margin-bottom:-8px!important}
html.stage .game-screen:has(.lesson-guide) .game-tools{padding-bottom:40px!important;margin-bottom:-24px!important}
/* master test banner takes ~54px at the top: the home column shrinks with it so pills stay above the nav */
html.stage body:has(#master-banner) #app .home-screen{--col:clamp(230px,calc((100dvh - 54px) * .794 - 300px),350px)}
html.stage body:has(#master-banner) .home-screen{min-height:calc(100dvh - 54px)!important}
html.stage body:has(#master-banner) .home-screen>main{padding-bottom:12px!important}
@media(max-height:760px){html.stage body:has(#master-banner) #app .home-screen{--col:clamp(220px,calc((100dvh - 54px) * .794 - 330px),350px)}html.stage body:has(#master-banner) #app .home-screen .wc-tagline{display:none!important}}
/* pressed: the painted button dips and darkens a touch; no leftover teal/CSS shadows */
html.stage :is(.primary,.secondary,.text-button,.icon-button,.game-tools .tool,.album-resume,.album-book,.small-card):active{box-shadow:none!important}
html.stage :is(.primary,.secondary,.text-button,.icon-button):not(:disabled):active{filter:brightness(.94)}
html.stage .slide-screen main>.slide-tools{padding-bottom:20px!important;box-sizing:border-box;height:auto!important;min-height:158px!important}
@media(min-height:721px) and (max-height:740px){html.stage .slide-screen{--sw:clamp(150px,calc((100dvh - 414px) / 1.07),340px)}}
@media(max-height:680px){html.stage .game-screen .lesson-guide:lang(en),html.stage:lang(en) .game-screen .lesson-guide{line-height:1.25!important;padding-top:6px!important;padding-bottom:6px!important}html.stage:lang(en) .game-screen:has(.lesson-guide){--bw:clamp(120px,calc((100dvh - 420px) / 1.0713),340px)!important}}
/* the tagline stays on one line as the column narrows (it wrapped to two lines around 740-760px and pushed the pills under the nav) */
html.stage:not(:lang(en)) #app .home-screen .hero .wc-tagline{white-space:nowrap;font-size:min(20px,calc(var(--col) * .062))!important}
@media(min-height:681px) and (max-height:720px){html.stage:lang(en) .game-screen:has(.lesson-guide){--bw:clamp(130px,calc((100dvh - 423px) / 1.0713),340px)!important}}
@media(min-height:721px) and (max-height:780px){html.stage:lang(en) .game-screen:has(.lesson-guide){--bw:clamp(130px,calc((100dvh - 463px) / 1.0713),340px)!important}}
/* ===== Visual pass (2026-10-11): centres measured on the painted face (Tools/browser-qa/stage-center.mjs) ===== */
/* palette: the left tip sits on the stage edge and the four wells sit on the broad board (they poked over the narrow left tip) */
html.stage .game-screen:is(.game-screen):not(.slide-screen) .game-tools{width:442px!important;max-width:none!important;margin-left:-20px!important;margin-right:0!important;background-size:442px auto!important;background-position:0 top!important;padding:44px 0 0 40px!important;grid-template-columns:repeat(4,72px)!important;gap:10px!important;justify-content:start!important}
html.stage .game-screen:is(.game-screen):not(.slide-screen) .game-tools .tool{width:72px!important;height:96px!important;background-size:72px 72px!important}
html.stage .game-screen:is(.game-screen):not(.slide-screen) .game-tools .tool .art-icon{top:36px!important;width:50px!important;height:50px!important}
html.stage .game-screen:is(.game-screen):not(.slide-screen) .game-tools .tool::before{left:36px!important;top:36px!important;width:86px!important;height:86px!important}
/* title ribbon: the glyphs sat 3px above the ribbon's painted middle */
html.stage .game-screen:is(.game-screen) .game-aside h1{padding-top:10px!important;padding-bottom:6px!important}
@media(max-height:780px){html.stage .game-screen:is(.game-screen) .game-aside h1{padding-top:8px!important;padding-bottom:4px!important}}
/* painted pills have a heavier bottom rim: lift their content to the light face's middle */
html.stage .topbar :is(.wc-back,.coins){padding-top:0!important;padding-bottom:4px!important}
html.stage #app .home-screen>main>:is(.daily-tools,.home-help)>*{padding-top:0!important;padding-bottom:5px!important}
/* continue button: centred in the card */
html.stage #app .home-screen .resume-card .primary{left:21%!important}
/* collection tabs: a little taller so the two lines never touch the edge; content centred on the painted face */
html.stage #app .collection-tabs button{min-height:58px!important;height:58px!important;padding:6px 6px 2px!important}
/* progress row: its own long paper plate (AS1), 9-sliced so the rounded ends keep their shape; the count sits inside it */
html.stage .game-screen .board-top::before{background:none!important;border-style:solid!important;border-width:0!important;border-image:url('../assets/stage/progress-plate.webp') 41 46 fill / 18px 20px / 0 stretch!important;margin:-10px -20px!important}
/* the ▶ glyph on painted primary buttons is the watercolor play icon (AS2) */
html.stage :is(#app .home-screen .resume-card .primary,.picture-screen .pic-go)>span[aria-hidden="true"]:first-child{display:inline-block!important;flex:none!important;width:1.05em!important;height:1.05em!important;font-size:inherit!important;color:transparent!important;-webkit-text-fill-color:transparent!important;text-shadow:none!important;overflow:hidden;background:url('../assets/stage/icon2-play.webp') center/contain no-repeat!important;margin:0 .4em 0 0!important;vertical-align:-.12em}
/* short stages: hearts, bar and count share one row, so the plate sits behind that row */
@media(max-height:780px){html.stage .game-screen .board-top::before{grid-row:1!important;grid-column:1/-1!important;margin:-6px -14px!important}}
/* short stages: wells a little higher on the board and the palette 4px higher, so the labels keep their bottom gap */
@media(max-height:780px){html.stage .game-screen:is(.game-screen):not(:has(.lesson-guide)):not(.slide-screen) .game-tools{padding-top:38px!important;margin-top:-20px!important}}
@media(min-height:709px) and (max-height:780px){html.stage .game-screen:is(.game-screen):not(:has(.lesson-guide)):not(.slide-screen) .game-tools{margin-top:calc(-20px + (100dvh - 708px) * .3)!important}}
/* settings backup card: even top/bottom padding, the button rows centred on the card's middle line */
html.stage .settings .backup-section .setting-row{padding:10px 15px 10px!important}
html.stage .settings .backup-section .setting-row>div{flex:1 1 auto!important;min-width:0}
html.stage .settings .backup-section .setting-actions{display:flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:10px!important;padding:0!important}
/* label rows with a control: the label sits on the control's middle line */
html.stage .settings .setting-row:has(>select,>label>select,select){align-items:center!important}
html.stage .settings .backup-section .setting-actions>*{flex:0 0 auto!important;width:auto!important;max-width:none!important;grid-column:auto!important}
/* tutorial card: balanced lines (no lone last word) */
html.stage .game-screen .lesson-guide :is(p,span,strong){text-wrap:balance}
/* result stats: the hand font is ~22% larger than Jua, so '00:00' touched the pill's right end */
html.stage #modal.result .result-stats strong{font-size:15px!important;line-height:1.15!important;letter-spacing:-.2px}
/* picture plate: the caption was tiny inside the big hanging tag */
html.stage .pic-finale .pic-plate-caption{font-size:16px!important;line-height:1.15!important}
html.stage .pic-finale .pic-plate-size{font-size:13px!important}
/* old teal inset line on progress fills (visible at 100%) */
html.stage :is(.progress,.board-progress,.resume-meter .progress)>span{box-shadow:none!important}
html.stage .game-tools .tool,html.stage .game-tools .tool *{text-shadow:none!important}
/* coin tip: the CSS-drawn pointer sat 19px left of the coin and inside the painted card; the painted card hangs right under the coin pill without it */
html.stage .coin-tip::before{display:none!important}
/* calendar legend: painted chips + words only (the white rounded pills were plain CSS) */
html.stage #modal .calendar-legend li{background:none!important;border-radius:0!important;box-shadow:none!important;padding:2px 4px!important}
/* gift viewer: the painting hangs in the painted gold frame (same art as the picture finale) instead of a CSS white mat + yellow glow */
html.stage #modal.result .reward-stage{position:relative!important;display:block!important;aspect-ratio:728/756!important}
html.stage #modal.result .reward-stage::after{content:'';position:absolute;inset:0;z-index:2;pointer-events:none;background:url('../assets/pic/gold-frame.webp') center/100% 100% no-repeat}
html.stage #modal.result:has(.reward-stage) .reward-stage .reward-art{position:absolute!important;left:12.1%!important;top:19.7%!important;width:74.8%!important;max-width:none!important;height:69.3%!important;object-fit:cover;margin:0!important;transform:none!important;translate:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;animation:paint-spread .65s .45s cubic-bezier(.3,.7,.3,1) both!important}
html.stage #modal.result:has(.reward-stage) .reward-stage{width:min(380px,calc(100dvh - 330px))!important}
html.stage #modal.result:has(.reward-stage) .reward-stage{margin-bottom:8px!important}
/* English titles are wider: a smaller ribbon line keeps 20px+ of pink on both ends */
html.stage:lang(en) .game-screen:is(.game-screen) .game-aside h1:not([data-fit]){font-size:20px!important}
@media(max-height:780px){html.stage:lang(en) .game-screen:is(.game-screen) .game-aside h1:not([data-fit]){font-size:18px!important}}
/* bottom nav: icon+label group sat 1.5-2.5px below the painted bar's middle */
html.stage .bottom-nav button{padding-top:2px!important;padding-bottom:6px!important}
/* language select: no native control look (Safari drew a grey box, Chrome a system arrow); the paper pill + a painted arrow turned down */
html.stage .settings select#language{-webkit-appearance:none!important;appearance:none!important;background-color:transparent!important;padding-right:34px!important;padding-left:16px!important}
html.stage .settings .setting-row:has(>select#language){position:relative}
html.stage .settings .setting-row:has(>select#language)::after{content:'';position:absolute;right:calc(var(--sel-right,15px) + 12px);top:50%;width:13px;height:11px;margin-top:-5px;background:url('../assets/stage/c-back-wc.webp') center/contain no-repeat;transform:rotate(-90deg);pointer-events:none}
/* master test banner (54px) pushed the slide tools 14-54px under the stage edge: the tray gives that height back */
html.stage body:has(#master-banner) .slide-screen .slide-tray{width:calc(var(--sw) - 51px)!important;margin-top:calc((var(--sw) - 51px) * .07)!important}
html.stage body:has(#master-banner) .slide-screen main{min-height:calc(100dvh - 114px)!important}
html.stage body:has(#master-banner) .game-screen:is(.game-screen):not(:has(.lesson-guide)):not(.slide-screen) .board-frame{width:calc(var(--bw) - 52px)!important;height:calc(var(--bw) - 52px)!important;--fw:calc(var(--bw) - 52px)!important;margin-left:calc(50% - (var(--bw) - 52px) / 2)!important}
html.stage body:has(#master-banner) .game-screen:is(.game-screen):not(:has(.lesson-guide)):not(.slide-screen) .game-main{min-height:calc(100dvh - 162px)!important}
/* replay levels: the number sat on top of the painted check (unreadable) -> cream dot + number; level 10 is its slide-puzzle art alone */
html.stage .pic-replay-levels button{background-image:url('../assets/pic/dot-empty.webp')!important;color:var(--wc-ink)!important;font-size:17px!important;padding-bottom:2px!important}
html.stage .pic-replay-levels button:last-child{background-image:url('../assets/pic/step10-on.webp')!important;font-size:0!important;color:transparent!important}
/* dialog paragraphs: no lone last word ('있어요.') */
html.stage #modal p{text-wrap:pretty}
/* ===== Result screen pass (user review 2026-10-11) ===== */
/* next-button arrow: the '›' glyph -> the same painted play triangle as home */
html.stage #modal.result .modal-actions>.primary::after{content:''!important;display:inline-block!important;flex:none!important;width:20px!important;height:20px!important;margin-left:12px!important;vertical-align:-2px!important;font-size:0!important;line-height:1!important;background:url('../assets/stage/icon2-play.webp') center/contain no-repeat!important}
/* bottom pair (share / home): shorter, icon + words on the paper face's middle */
html.stage #modal.result .modal-actions>button.secondary{min-height:0!important;height:50px!important;padding-top:2px!important;padding-bottom:7px!important;align-items:center!important}
html.stage #modal.result .modal-actions>button.secondary :is(img,svg){margin-top:0!important;margin-bottom:0!important}
/* coin pill top right: digits sat low on the painted face */
html.stage #modal.result .wc-res-coins{padding-top:0!important;padding-bottom:4px!important}
/* picture title + album collection: one paper card (the title floats in the card's top padding) */
html.stage #modal.result .picture-title{position:relative;z-index:1;display:block!important;width:min(100%,300px)!important;margin:10px auto 0!important;padding:0!important;height:30px;line-height:30px!important;text-align:center}
html.stage #modal.result .result-collection{position:relative;z-index:0;box-sizing:border-box;width:min(100%,300px)!important;margin-top:-34px!important;padding:32px 8px 2px!important;border:16px solid transparent!important;border-image:url('../assets/stage/card.webp') 64 fill / 16px / 0 stretch!important}
/* +N coins: its own painted plaque (AS3, 9-slice keeps the rounded ends) instead of the recoloured brush button stretched */
html.stage #modal.result .reward::before{display:none!important}
html.stage #modal.result .reward{border:1px solid transparent!important;padding:9px 38px 12px 32px!important;border-image:url('../assets/stage/reward-plate.webp') 52 60 fill / 50% 30px / 0 stretch!important;background:none!important;min-height:0!important;line-height:1!important}
/* result: keep the card + plaque inside short stages */
html.stage #modal.result .picture-title{height:26px!important;line-height:26px!important;margin-top:6px!important}
html.stage #modal.result .result-collection{margin-top:-28px!important;padding:26px 8px 0!important;border-width:12px!important;border-image-width:14px!important}
html.stage #modal.result .reward{padding-top:7px!important;padding-bottom:10px!important;margin-top:8px!important}
@media(max-height:720px){html.stage #modal.result:not(:has(.pic-finale)) .completion-scene{--s:clamp(70px,calc(100svh * .4 - 178px),226px)!important}html.stage #modal.result .result-stats{margin-top:6px!important}}
html.stage:lang(en) #modal.result .modal-actions>.primary{padding-left:16px!important;padding-right:16px!important}
/* Japanese arc title: smaller so both ends stay on the ribbon */
html.stage:lang(ja) #modal.result .wc-arc text{font-size:36px!important}
/* cheer line under the ribbon: two lines in every engine (Safari wrapped it to three) */
html.stage #modal.result .wc-cheer{width:auto!important;max-width:320px!important;margin-left:auto!important;margin-right:auto!important;font-size:clamp(17px,5.6vw,22px)!important;text-wrap:balance}
/* history list: the dialog focuses it on open (black system focus box) and its native scrollbar showed on PC */
html.stage #modal .recovery-list{outline:none!important;scrollbar-width:none}
html.stage #modal .recovery-list::-webkit-scrollbar{display:none;width:0}
html.stage #modal .recovery-list:focus-visible{outline:2px solid rgba(122,78,40,.45)!important;outline-offset:2px}
html.stage #modal,html.stage #modal *{scrollbar-width:none}
html.stage #modal::-webkit-scrollbar,html.stage #modal *::-webkit-scrollbar{display:none;width:0;height:0}
html.stage body:has(#master-banner) .game-screen:has(.lesson-guide) .board-frame{width:calc(var(--bw) - 54px)!important;height:calc(var(--bw) - 54px)!important;--fw:calc(var(--bw) - 54px)!important;margin-left:calc(50% - (var(--bw) - 54px) / 2)!important}
/* slide guide: the words ran into the chip's rounded ends */
html.stage .slide-screen .slide-guide{padding-left:30px!important;padding-right:30px!important;padding-bottom:12px!important;padding-top:8px!important}
/* collection tab counts: no CSS white oval behind the number */
html.stage #app .collection-tabs button span,html.stage #app .collection-tabs .count{background:none!important;box-shadow:none!important;border-radius:0!important}
/* classic level cards: watercolor check stamp instead of the CSS green circle + glyph */
html.stage #app .art-card .check{background:url('../assets/stage/icon2-check.webp') center/contain no-repeat!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:transparent!important;font-size:0!important;width:34px!important;height:34px!important}
/* result card (user review 2): title a little lower; '그림 모음 수집 n/m' sits right on the bar; the bar's bottom line = the album icon's bottom line */
html.stage #modal.result .picture-title{margin-top:12px!important}
html.stage #modal.result .result-collection{margin-top:-30px!important;padding:30px 10px 4px!important;grid-template-rows:auto 9px!important;row-gap:4px!important;align-items:end!important}
html.stage #modal.result .result-collection .wc-col-icon{grid-row:1/3!important;align-self:end!important;width:32px!important;height:32px!important;margin:0!important;display:block}
html.stage #modal.result .result-collection>span:nth-of-type(1),html.stage #modal.result .result-collection .wc-col-count{line-height:1.1!important;align-self:end!important}
html.stage #modal.result .result-collection .wc-col-bar{align-self:end!important;margin:0!important}
/* coin pill: digits up a little more */
html.stage #modal.result .wc-res-coins{padding-bottom:7px!important}
/* gift viewer: its only button closes, so no forward arrow */
html.stage #modal.result:has(.reward-stage) .modal-actions>.primary::after{display:none!important}
/* calendar legend 'done' chip: a painted check stamp inside the chip instead of the thin text check */
html.stage #modal .legend-chip.collected{color:transparent!important;-webkit-text-fill-color:transparent!important;background:url('../assets/stage/icon2-check.webp') center/72% no-repeat,url('../assets/pic/cell-done.webp') center/100% 100% no-repeat!important}
/* result coin pill sits exactly on the top-bar coin pill (196,13 116x46), so opening/closing the result never shows two pills side by side */
html.stage #modal.result .wc-res-coins{position:fixed!important;top:13px!important;right:auto!important;left:calc(50% - 195px + 196px)!important;width:116px!important;height:46px!important;box-sizing:border-box!important;justify-content:center!important;padding-left:0!important;padding-right:0!important}
/* picture screen next cell: the label was small in the big pink frame */
html.stage #app .picture-screen .pic-cell.next>span{font-size:clamp(11px,24cqi,16px)!important;line-height:1.1!important;padding-bottom:2px}
/* share memo: focusing it on open drew a pink glow around the paper; keep only a thin warm line for keyboard focus */
html.stage #modal textarea.share-text:focus,html.stage #modal textarea.share-text:focus-visible{filter:none!important;outline:none!important}
html.stage #modal textarea.share-text:focus-visible{box-shadow:none!important}
/* slide 'last piece' label stays on one line (Japanese broke off a lone ス) */
html.stage .slide-screen .slide-last-label{white-space:nowrap!important;flex:none!important;width:auto!important}
html.stage:lang(ja) .slide-screen .slide-last-label{font-size:13px!important}
/* PC wheel: body overflow-x:hidden made the body its own (non-scrolling) scroll box, so the mouse wheel latched onto it and the page never moved. The page root keeps the horizontal clip; game screens and open dialogs keep their scroll lock. */
html.stage:not(:has(.game-screen)):not(:has(dialog[open])) body{overflow:visible!important}
/* top-right pair (user review): the round settings button matches the coin pill's height so both share one top and bottom line; contents lifted to the light face's middle */
html.stage .topbar .icon-button[data-action="settings"]{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;margin-top:-3px!important;margin-bottom:-1px!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;background-size:100% 100%!important}
html.stage .topbar img.wci-settings{width:30px!important;height:30px!important;margin:-3px 0 0!important}
html.stage .topbar .coins{padding-bottom:7px!important}
/* resume button (user review): centred on the card's white wash (23-83% wide) and a little slimmer, so the wash shows around the stroke instead of being covered */
html.stage #app .home-screen .resume-card:not(.all-done) .primary{left:26%!important;width:54%!important;top:67%!important;height:20%!important;padding-top:0!important;padding-bottom:3px!important}
/* top bar (user review): back / coins / settings sit at the same 12px on every screen (home 14, play 12, lists 11 before) */
html.stage .topbar{align-items:flex-start!important;padding-top:12px!important}
html.stage .topbar :is(.wc-back,.coins,.icon-button[data-action="settings"],.nav-actions){align-self:flex-start!important;margin-top:0!important;margin-bottom:0!important}
html.stage .topbar img.wci-settings{margin-top:-5px!important}
/* back pill: arrow + label lifted to the light face's middle (user review) */
html.stage .topbar .wc-back{padding-bottom:6px!important}
/* PC hover: no lift/scale (the 2px rise + 2% scale made labels shift); a light brightening instead */
@media(hover:hover){html.stage :is(.primary,.secondary,.text-button,.small-card,.icon-button,.album-book,.album-resume,.coins):hover:not(:active){transform:none!important;filter:brightness(1.04)}}
/* ===== Progress bars (user review): the fill is painted once at the full 100% length and the value only cuts it off (never stretched).
   Track = 9-sliced groove (caps = half the bar height); the fill sits inside the groove's outline (inset), its cut end is rounded. ===== */
html.stage :is(#app,#modal) :is(.progress,.board-progress,#region-progress),html.stage #app .game-screen #region-progress{container-type:size;position:relative;isolation:isolate;box-sizing:border-box;padding:var(--bar-inset,2px)!important;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important}
html.stage :is(#app,#modal) :is(.progress,.board-progress,#region-progress)::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;border:0 solid transparent;border-image:url('../assets/stage/bar-track.webp') 0 38 fill / 0 calc(50cqh + var(--bar-inset,2px)) / 0 stretch}
html.stage :is(#app,#modal) :is(.progress,.board-progress,#region-progress)>span{position:relative;display:block;height:100%!important;max-width:100%;box-sizing:border-box;background:none!important;border:0!important;border-image:none!important;border-radius:50cqh;overflow:hidden;box-shadow:none!important}
html.stage :is(#app,#modal) :is(.progress,.board-progress,#region-progress)>span::before{content:'';position:absolute;left:0;top:0;bottom:0;width:100cqw;border:0 solid transparent;border-image:url('../assets/stage/bar-fill.webp') 0 38 fill / 0 50cqh / 0 stretch;pointer-events:none}
html.stage :is(#app,#modal) :is(.progress,.board-progress,#region-progress)>span:not([style*="width: 0%"]):not([style*="width:0%"]){min-width:100cqh}
/* volume: the same bar under a transparent range track; only the round thumb is drawn by the range */
html.stage .volume-wrap{position:relative;display:block;flex:1 1 auto;min-width:0;max-width:220px;height:30px}
html.stage .volume-wrap .volume-bar{position:absolute;left:0;right:0;top:50%;height:12px;margin-top:-6px}
html.stage .volume-wrap .volume-control{position:relative;z-index:1;width:100%;margin:0}
html.stage .volume-control::-webkit-slider-runnable-track{background:none!important}
html.stage .volume-control::-moz-range-track{background:none!important}
html.stage .volume-control::-moz-range-progress{background:none!important}
html:not(.stage) .volume-bar{display:none}
html.stage .volume-wrap .volume-control{width:100%!important;max-width:none!important;min-width:0!important}
/* volume: same size/place as before the bar change (flex 90..170px), the range fills the wrapper so the thumb sits on the bar's centre line */
html.stage .setting-row:has(#volume) .volume-wrap{flex:1 1 90px!important;min-width:90px!important;max-width:170px!important;width:auto!important;height:30px!important}
html.stage .volume-wrap .volume-control{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:30px!important;margin:0!important}
/* ===== Puzzle calendar (user review 2026-10-12): every cell shows its whole painted tile; marks are pictures, identical in the cells and the legend ===== */
html.stage #modal .calendar-day{background-size:100% 100%!important;background-position:center!important;background-repeat:no-repeat!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:1px!important;opacity:1!important}
html.stage #modal .calendar-day>span{font-size:17px!important;line-height:1!important}
html.stage #modal .calendar-day.future>span,html.stage #modal .calendar-day.unavailable>span{color:#a2958a!important}
html.stage #modal .calendar-day>small{display:flex!important;align-items:center;justify-content:center;gap:1px;height:11px;font-size:0!important;color:transparent!important;line-height:1}
/* today / resume: painted play triangle; resume keeps three dots */
html.stage #modal .calendar-day.open>small::before,html.stage #modal .legend-chip.open::before{content:'';display:block;width:11px;height:11px;background:url('../assets/stage/icon2-play.webp') center/contain no-repeat;filter:drop-shadow(0 0 1px rgba(46,90,134,.9)) brightness(.55) sepia(1) hue-rotate(170deg) saturate(3)}
html.stage #modal .calendar-day.resume>small{font-size:12px!important;color:#2e5a86!important;letter-spacing:-1px}
/* missed dates: small coin + price, like the legend */
html.stage #modal .calendar-day.locked>small{font-size:10px!important;color:var(--wc-ink)!important}
html.stage #modal .calendar-day.locked>small::before,html.stage #modal .legend-chip.locked::before{content:'';display:block;width:10px;height:10px;flex:none;background:url('../assets/stage/icon2-coin.webp') center/contain no-repeat}
/* the done and protected tiles already carry their painted check / diamond: no extra glyph */
html.stage #modal .calendar-day:is(.collected)>small{display:none!important}
/* legend: the same tiles at chip size with the same pictures; no text symbols */
html.stage #modal .calendar-legend{display:flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:6px 12px!important}
html.stage #modal .calendar-legend li{display:inline-flex!important;align-items:center!important;gap:5px!important}
html.stage #modal .legend-chip{display:inline-flex!important;align-items:center;justify-content:center;width:24px!important;height:24px!important;min-width:24px!important;padding:0!important;font-size:0!important;color:transparent!important;-webkit-text-fill-color:transparent!important;background-size:100% 100%!important;background-repeat:no-repeat!important;border:0!important}
html.stage #modal .legend-chip.collected{background:url('../assets/pic/cell-done.webp') center/100% 100% no-repeat!important}
html.stage #modal .legend-chip:is(.open,.resume){background:url('../assets/pic/cell-today.webp') center/100% 100% no-repeat!important}
html.stage #modal .legend-chip.locked{background:url('../assets/pic/cell-open.webp') center/100% 100% no-repeat!important}
html.stage #modal .legend-chip.protected{background:url('../assets/pic/cell-protected.webp') center/100% 100% no-repeat!important}
html.stage #modal .legend-chip.resume::before{content:'…';font-size:13px;color:#2e5a86;-webkit-text-fill-color:#2e5a86;line-height:1;margin-top:-4px}
/* close: a normal-size paper pill, centred, ends kept (9-slice) instead of a full-width stretched strip */
html.stage #modal:has(.calendar-grid) .modal-actions{justify-content:center!important;display:flex!important}
html.stage #modal:has(.calendar-grid) .modal-actions>button{flex:0 0 auto!important;width:150px!important;min-width:150px!important;max-width:150px!important;height:46px!important;min-height:46px!important;padding:0 0 4px!important;background:none!important;border:1px solid transparent!important;border-image:url('../assets/stage/c-pill-wc.webp') 95 112 fill / 23px 28px / 0 stretch!important}
html.stage #modal:has(.calendar-grid) .modal-actions>button{margin-left:auto!important;margin-right:auto!important;justify-self:center!important;align-self:center!important}
/* calendar month arrows: painted round box matches the month text's ink top/bottom (44px touch area kept); the stretched pill rule outranked the old round rule */
html.stage #modal .calendar-heading button[data-calendar-month][data-calendar-month]{background:url('../assets/stage/c-round-wc.webp') center/22px 22px no-repeat!important;border:0!important;border-image:none!important;box-shadow:none!important}
html.stage #modal .calendar-heading button[data-calendar-month][data-calendar-month]::before{display:none!important}
html.stage #modal .calendar-heading button[data-calendar-month][data-calendar-month]::after{width:13px!important;height:13px!important}
/* close label on the pill's light face middle */
html.stage #modal:has(.calendar-grid) .modal-actions>button{padding-bottom:7px!important}
/* zoom plate: -, 100%, + on the plate's light face middle (2px up; the plate art has a heavier bottom rim) */
html.stage .game-screen:is(.game-screen) .zoom-controls{padding-top:4px!important;padding-bottom:8px!important}
/* hearts centred between the title ribbon's painted bottom and the progress plate's top (user review) */
html.stage .game-screen:is(.game-screen) .board-top .hearts{position:relative;top:-6px}
@media(max-height:780px){html.stage .game-screen:is(.game-screen) .board-top .hearts{top:0}}
/* ===== Tool shelf (mockup C, user choice 2026-10-12): the wooden palette is replaced by a slim shelf the round paint wells stand on, with a paper name tag under each ===== */
html.stage #app .game-screen .game-tools.game-tools{position:relative!important;display:grid!important;grid-auto-flow:column!important;grid-template-columns:none!important;grid-auto-columns:72px!important;justify-content:center!important;align-content:start!important;column-gap:16px!important;width:auto!important;max-width:none!important;margin-left:0!important;margin-right:0!important;padding:10px 0 0!important;background:none!important;border:0!important;box-shadow:none!important;aspect-ratio:auto!important}
html.stage #app .game-screen .game-tools.game-tools::before{content:''!important;display:block!important;position:absolute!important;left:22px!important;right:22px!important;top:66px!important;height:24px!important;z-index:0!important;border:0 solid transparent;border-image:url('../assets/stage/tool-shelf.webp') 0 30 fill / 0 13px / 0 stretch;pointer-events:none;opacity:1!important;transform:none!important;width:auto!important;background:none!important}
html.stage #app .game-screen .game-tools .tool{position:relative!important;z-index:1;width:72px!important;max-width:72px!important;height:116px!important;background-size:72px 72px!important;background-position:center top!important}
/* name tags: a small painted paper tag under the shelf, the label centred on it */
html.stage #app .game-screen .game-tools.game-tools .tool.tool>span:not(.sub):not(.hint-minus){position:absolute!important;grid-area:1/1/2/2!important;inset:92px auto auto 50%!important;top:92px!important;bottom:auto!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:auto!important;min-width:60px;box-sizing:border-box;padding:2px 10px 5px!important;line-height:17px!important;font-size:14px!important;text-align:center;border:0 solid transparent;border-image:url('../assets/stage/tool-tag.webp') 0 40 fill / 0 12px / 0 stretch;white-space:nowrap!important}
html.stage #app .game-screen .game-tools.game-tools .tool.tool>span:not(.sub):not(.hint-minus):lang(ja){font-size:12px!important}
html.stage #app .game-screen .game-tools.game-tools::before{left:calc(50% - var(--shelf-half,186px))!important;right:auto!important;width:calc(var(--shelf-half,186px) * 2)!important}
html.stage #app .slide-screen .game-tools.game-tools{--shelf-half:150px}
/* tool shelf v2 (user review vs mockup C): thick plank (top + front face) 30px tall that the wells sink 17px into, a soft painted shadow under each well, and wider name tags hanging right under the shelf front */
html.stage #app .game-screen .game-tools.game-tools::before{top:50px!important;height:42px!important;border-image:url('../assets/stage/tool-shelf-v2.webp') 0 40 fill / 0 20px / 0 stretch!important}
html.stage #app .game-screen .game-tools.game-tools{--shelf-half:184px}
html.stage #app .slide-screen .game-tools.game-tools{--shelf-half:148px}
html.stage #app .game-screen .game-tools .tool[data-action="paint"]{background:url('../assets/stage/c-well-pink.webp') center top/72px 72px no-repeat,url('../assets/stage/well-shadow.webp') center 60px/84px 20px no-repeat!important}
html.stage #app .game-screen .game-tools .tool:is([data-action="erase"],#peek){background:url('../assets/stage/c-well-blue.webp') center top/72px 72px no-repeat,url('../assets/stage/well-shadow.webp') center 60px/84px 20px no-repeat!important}
html.stage #app .game-screen .game-tools .tool:is([data-action="undo"],[data-action="slideUndo"]){background:url('../assets/stage/c-well-green.webp') center top/72px 72px no-repeat,url('../assets/stage/well-shadow.webp') center 60px/84px 20px no-repeat!important}
html.stage #app .game-screen .game-tools .tool:is([data-action="hint"],[data-action="slideHint"]){background:url('../assets/stage/c-well-yellow.webp') center top/72px 72px no-repeat,url('../assets/stage/well-shadow.webp') center 60px/84px 20px no-repeat!important}
html.stage #app .game-screen .game-tools.game-tools .tool.tool>span:not(.sub):not(.hint-minus){inset:74px auto auto 50%!important;top:74px!important;min-width:78px!important;padding:4px 12px 7px!important;line-height:18px!important;font-size:16px!important}
html.stage #app .slide-screen .game-tools.game-tools{column-gap:30px!important;--shelf-half:164px}
/* name tags span the whole tool box (the tool's own grid has two half-width columns, so left:50% landed on the 18px line) */
html.stage #app .game-screen .game-tools.game-tools .tool.tool>span:not(.sub):not(.hint-minus){grid-area:1/1/-1/-1!important}
html.stage #app .game-screen .game-tools.game-tools .tool.tool{display:block!important}
/* wells stand on the shelf's top surface (not sunk into it) like mockup C; tags hang from the front edge */
html.stage #app .game-screen .game-tools.game-tools::before{top:60px!important}
html.stage #app .game-screen .game-tools.game-tools .tool.tool>span:not(.sub):not(.hint-minus){inset:84px auto auto 50%!important;top:84px!important}
html.stage #app .game-screen .game-tools .tool.tool{height:122px!important}
/* tool shelf v3 (user review vs mockup C): round contact shadows drawn as one layer between the shelf and the wells (wider than each well, never clipped);
   wells a little deeper into the shelf, name tags overlapping the shelf front like the mockup */
html.stage #app .game-screen .game-tools .tool:is([data-action],#peek){background-image:var(--well)!important;background-size:72px 72px!important;background-position:center top!important;background-repeat:no-repeat!important}
html.stage #app .game-screen .game-tools .tool[data-action="paint"]{--well:url('../assets/stage/c-well-pink.webp')}
html.stage #app .game-screen .game-tools .tool:is([data-action="erase"],#peek){--well:url('../assets/stage/c-well-blue.webp')}
html.stage #app .game-screen .game-tools .tool:is([data-action="undo"],[data-action="slideUndo"]){--well:url('../assets/stage/c-well-green.webp')}
html.stage #app .game-screen .game-tools .tool:is([data-action="hint"],[data-action="slideHint"]){--well:url('../assets/stage/c-well-yellow.webp')}
html.stage #app .game-screen .game-tools.game-tools::after{content:'';position:absolute;z-index:0;pointer-events:none;top:58px;height:24px;left:50%;width:336px;margin-left:-168px;background:url('../assets/stage/well-shadow.webp') 0 0/88px 24px no-repeat,url('../assets/stage/well-shadow.webp') 88px 0/88px 24px no-repeat,url('../assets/stage/well-shadow.webp') 176px 0/88px 24px no-repeat,url('../assets/stage/well-shadow.webp') 264px 0/88px 24px no-repeat;background-origin:border-box;transform:translateX(-8px)}
html.stage #app .slide-screen .game-tools.game-tools::after{width:276px;margin-left:-138px;background:url('../assets/stage/well-shadow.webp') 0 0/88px 24px no-repeat,url('../assets/stage/well-shadow.webp') 102px 0/88px 24px no-repeat,url('../assets/stage/well-shadow.webp') 204px 0/88px 24px no-repeat}
html.stage #app .game-screen .game-tools.game-tools .tool.tool>span:not(.sub):not(.hint-minus){inset:76px auto auto 50%!important;top:76px!important}
/* contact shadows: under the well bottoms, doubled for strength */
html.stage #app .game-screen .game-tools.game-tools::after{top:61px!important;height:26px!important;transform:translateX(-10px)!important;width:360px!important;background:url('../assets/stage/well-shadow.webp') 0px 0/92px 26px no-repeat,url('../assets/stage/well-shadow.webp') 0px 0/92px 26px no-repeat,url('../assets/stage/well-shadow.webp') 88px 0/92px 26px no-repeat,url('../assets/stage/well-shadow.webp') 88px 0/92px 26px no-repeat,url('../assets/stage/well-shadow.webp') 176px 0/92px 26px no-repeat,url('../assets/stage/well-shadow.webp') 176px 0/92px 26px no-repeat,url('../assets/stage/well-shadow.webp') 264px 0/92px 26px no-repeat,url('../assets/stage/well-shadow.webp') 264px 0/92px 26px no-repeat!important}
html.stage #app .slide-screen .game-tools.game-tools::after{width:300px!important;background:url('../assets/stage/well-shadow.webp') 0px 0/92px 26px no-repeat,url('../assets/stage/well-shadow.webp') 0px 0/92px 26px no-repeat,url('../assets/stage/well-shadow.webp') 102px 0/92px 26px no-repeat,url('../assets/stage/well-shadow.webp') 102px 0/92px 26px no-repeat,url('../assets/stage/well-shadow.webp') 204px 0/92px 26px no-repeat,url('../assets/stage/well-shadow.webp') 204px 0/92px 26px no-repeat!important}
html.stage #app .game-screen .game-tools.game-tools::after{top:70px!important;height:24px!important;transform:translateX(-14px)!important;width:372px!important;background:url('../assets/stage/well-shadow.webp') 0px 0/100px 24px no-repeat,url('../assets/stage/well-shadow.webp') 0px 0/100px 24px no-repeat,url('../assets/stage/well-shadow.webp') 88px 0/100px 24px no-repeat,url('../assets/stage/well-shadow.webp') 88px 0/100px 24px no-repeat,url('../assets/stage/well-shadow.webp') 176px 0/100px 24px no-repeat,url('../assets/stage/well-shadow.webp') 176px 0/100px 24px no-repeat,url('../assets/stage/well-shadow.webp') 264px 0/100px 24px no-repeat,url('../assets/stage/well-shadow.webp') 264px 0/100px 24px no-repeat!important}
html.stage #app .slide-screen .game-tools.game-tools::after{width:312px!important;background:url('../assets/stage/well-shadow.webp') 0px 0/100px 24px no-repeat,url('../assets/stage/well-shadow.webp') 0px 0/100px 24px no-repeat,url('../assets/stage/well-shadow.webp') 102px 0/100px 24px no-repeat,url('../assets/stage/well-shadow.webp') 102px 0/100px 24px no-repeat,url('../assets/stage/well-shadow.webp') 204px 0/100px 24px no-repeat,url('../assets/stage/well-shadow.webp') 204px 0/100px 24px no-repeat!important}
/* wells a little higher on the shelf, tags overlapping the shelf front more (user review) */
html.stage #app .game-screen .game-tools.game-tools::before{top:65px!important}
html.stage #app .game-screen .game-tools.game-tools::after{top:73px!important}
html.stage #app .game-screen .game-tools.game-tools .tool.tool>span:not(.sub):not(.hint-minus){inset:78px auto auto 50%!important;top:78px!important}
/* name tags a touch taller, top line unchanged; hint count digit on the badge's middle */
html.stage #app .game-screen .game-tools.game-tools .tool.tool>span:not(.sub):not(.hint-minus){padding-top:6px!important;padding-bottom:9px!important}
html.stage .game-screen:is(.game-screen) .game-tools .tool[data-action="hint"][data-count]::after{box-sizing:border-box!important;min-width:34px!important;height:26px!important;padding:3px 4px 0!important}
/* resume button centred on the card itself (it followed the off-centre white wash, 11px right) */
html.stage #app .home-screen .resume-card:not(.all-done) .primary{left:23%!important}
/* ===== Puzzle calendar redesign (mockup AV5, user-approved 2026-10-13): ring-bound desk-calendar page, pink month band,
   weekday paper chips (Sun rose / Sat blue), legend on a taped torn-paper strip with painted key tiles, blue paper-tag close ===== */
html.stage #modal:has(.calendar-grid){background:none!important;box-shadow:none!important;border-style:solid!important;border-color:transparent!important;border-width:46px 22px 24px!important;border-image:url('../assets/stage/cal-page.webp') 300 40 230 40 fill / 150px 20px 115px 20px / 0 stretch!important;padding:2px 8px 6px!important}
html.stage #modal:has(.calendar-grid) .calendar-heading{position:relative;align-items:center!important;background:url('../assets/stage/cal-month-band.webp') center/100% 100% no-repeat!important;padding:0 6px!important;min-height:46px}
html.stage #modal .calendar-heading button[data-calendar-month][data-calendar-month]{background-size:32px 32px!important}
html.stage #modal .calendar-heading button[data-calendar-month][data-calendar-month]::after{width:17px!important;height:17px!important}
html.stage #modal:has(.calendar-grid) .calendar-week{gap:0!important;margin:6px 0 4px!important}
html.stage #modal:has(.calendar-grid) .calendar-week>span{display:flex!important;align-items:center;justify-content:center;height:24px;padding-bottom:2px;box-sizing:border-box;background:url('../assets/stage/cal-chip-plain.webp') center/36px 23px no-repeat;font-size:13px!important}
html.stage #modal:has(.calendar-grid) .calendar-week>span:first-child{background-image:url('../assets/stage/cal-chip-sun.webp');color:#a2384a!important}
html.stage #modal:has(.calendar-grid) .calendar-week>span:last-child{background-image:url('../assets/stage/cal-chip-sat.webp');color:#2e5a86!important}
/* legend: taped paper strip + painted key tiles (replaces the card frame and the chip-on-tile layers) */
html.stage #modal .calendar-legend.calendar-legend{border:0!important;border-image:none!important;background:url('../assets/stage/cal-legend-paper.webp') center/100% 100% no-repeat!important;padding:20px 18px 22px!important;margin-top:10px!important}
html.stage #modal .legend-chip.legend-chip::before{display:none!important;content:none!important}
html.stage #modal .legend-chip.legend-chip{width:24px!important;height:24px!important;min-width:24px!important;background-size:100% 100%!important;background-position:center!important;background-repeat:no-repeat!important}
html.stage #modal .legend-chip.legend-chip.collected{background-image:url('../assets/stage/cal-key-done.webp')!important}
html.stage #modal .legend-chip.legend-chip.open{background-image:url('../assets/stage/cal-key-open.webp')!important}
html.stage #modal .legend-chip.legend-chip.resume{background-image:url('../assets/stage/cal-key-resume.webp')!important}
html.stage #modal .legend-chip.legend-chip.locked{background-image:url('../assets/stage/cal-key-locked.webp')!important}
html.stage #modal .legend-chip.legend-chip.protected{background-image:url('../assets/stage/cal-key-protected.webp')!important}
/* close: blue paper tag with a brass eyelet; the label sits right of the eyelet, in the tag's paper */
html.stage #modal:has(.calendar-grid) .modal-actions>button{width:170px!important;min-width:170px!important;max-width:170px!important;height:46px!important;min-height:46px!important;border:0!important;border-image:none!important;background:url('../assets/stage/cal-close-tag.webp') center/100% 100% no-repeat!important;padding:0 0 3px 16px!important}
/* keep the title and note clear of the corner flowers; close label centred on the tag face */
html.stage #modal:has(.calendar-grid) :is(.eyebrow,#modal-title,.calendar-note){padding-left:52px!important;padding-right:52px!important;box-sizing:border-box}
html.stage #modal:has(.calendar-grid) .calendar-note{font-size:12.5px!important;line-height:1.35!important;text-wrap:balance}
html.stage #modal:has(.calendar-grid) .modal-actions>button{padding:2px 0 0 18px!important}
@media(max-height:720px){html.stage #modal:has(.calendar-grid){border-top-width:40px!important;border-bottom-width:16px!important;padding-top:0!important;padding-bottom:2px!important}html.stage #modal:has(.calendar-grid) .eyebrow{display:none!important}html.stage #modal:has(.calendar-grid) .calendar-note{font-size:11.5px!important;margin-bottom:2px!important}html.stage #modal:has(.calendar-grid) .calendar-week{margin:3px 0 2px!important}html.stage #modal .calendar-legend.calendar-legend{padding:13px 16px 15px!important;margin-top:6px!important}html.stage #modal:has(.calendar-grid) .modal-actions{margin-top:6px!important}html.stage #modal:has(.calendar-grid) .calendar-heading{min-height:40px}}
/* calendar v2 (user review vs mockup): mockup-cut month band (wider than the heading, ragged), mockup-cut close tag, date tiles with a clear outline, smaller day numbers */
html.stage #modal:has(.calendar-grid) .calendar-heading{background:url('../assets/stage/cal-month-band-v2.webp') center/calc(100% + 24px) 100% no-repeat!important;margin-left:-10px!important;margin-right:-10px!important;padding:0 14px!important;min-height:50px}
html.stage #modal:has(.calendar-grid) .modal-actions>button{width:178px!important;min-width:178px!important;max-width:178px!important;height:55px!important;min-height:55px!important;background:url('../assets/stage/cal-close-tag-v2.webp') center/100% 100% no-repeat!important;padding:0 0 4px 22px!important}
html.stage #modal .calendar-day.calendar-day{background-size:100% 100%!important;background-position:center!important;background-repeat:no-repeat!important;background-image:url('../assets/stage/cal-day-past.webp')!important;padding:1px 0 4px!important}
html.stage #modal .calendar-day.calendar-day:is(.future,.unavailable){background-image:url('../assets/stage/cal-day-future.webp')!important}
html.stage #modal .calendar-day.calendar-day:is(.open,.resume),html.stage #modal .calendar-day.calendar-day[aria-current]{background-image:url('../assets/stage/cal-day-today.webp')!important}
html.stage #modal .calendar-day.calendar-day.collected{background-image:url('../assets/stage/cal-day-done.webp')!important}
html.stage #modal .calendar-day.calendar-day.collected::after{display:none!important}
html.stage #modal .calendar-day.calendar-day>span{font-size:15px!important}
html.stage #modal .calendar-day.calendar-day.locked>small{font-size:9px!important}
html.stage #modal .calendar-day.calendar-day.locked>small::before{width:9px!important;height:9px!important}
html.stage #modal .calendar-day.calendar-day{background-origin:padding-box!important;background-clip:padding-box!important}
@media(max-height:720px){html.stage #modal .calendar-legend.calendar-legend{padding:12px 16px 13px!important}}
/* resume preview sits ON the clipboard paper of the card art: measured paper corners (617,141)(795,165)(592,320)(774,346) of 900x613 -> centre 77.17%/39.64%, tilt 7.8deg, 94% of the paper */
html.stage #app .home-screen .resume-card:not(.all-done) .wc-preview{left:67.77%!important;top:25.84%!important;width:18.8%!important;height:27.6%!important;transform:rotate(7.8deg)!important;transform-origin:50% 50%!important}
html.stage #app .home-screen .resume-card:not(.all-done) .wc-preview canvas{transform:none!important;box-shadow:none!important;border-radius:0!important}

/* calendar: completed days show their check under the number (like coin/play/resume marks), not in the tile corner */
html.stage #modal .calendar-day.calendar-day.collected{background-image:url('../assets/stage/cal-day-done-plain.webp')!important}
html.stage #modal .calendar-day.calendar-day.collected>small{display:flex!important}
html.stage #modal .calendar-day.calendar-day.collected>small::before{content:'';display:block;width:12px;height:12px;flex:none;background:url('../assets/stage/cal-day-check.webp') center/contain no-repeat}
/* no leftover tint square around the rounded tile pictures */
html.stage #modal .calendar-day.calendar-day:is(.collected,.open,.resume,[aria-current]){background-color:transparent!important}

/* slide: last piece sits in a square wooden slot (AZ1) instead of the round bowl; moves count is plain text in the same paper pill as the coin counter (no round counter disc) */
html.stage .slide-screen .slide-dish{width:74px!important;height:74px!important}
html.stage .slide-screen .slide-dish>img{content:url('../assets/stage/slide-last-slot.webp');object-fit:contain}
html.stage .slide-screen .slide-moves{border:0!important;border-image:none!important;background:url('../assets/stage/c-pill-wc.webp') center/100% 100% no-repeat!important;min-width:112px!important;height:44px!important;box-sizing:border-box!important;padding:0 16px 3px!important;gap:7px!important}
html.stage .slide-screen .slide-counter{display:inline-block!important;position:static!important;width:auto!important;height:auto!important}
html.stage .slide-screen .slide-counter img{display:none!important}
html.stage .slide-screen .slide-counter b{position:static!important;display:inline-block;font-size:18px!important;color:var(--wc-ink)!important;line-height:1!important}
html.stage .slide-screen .slide-dish>#last{width:48px!important;height:48px!important;transform:none!important}
/* slide guide: proper 9-slice paper note (AZ2) instead of the stretched chip */
html.stage .slide-screen .slide-guide{background:none!important;border:1px solid transparent!important;border-image:url('../assets/stage/slide-guide-box.webp') 46 fill / 17px / 0 stretch!important;padding:7px 18px 9px!important;min-height:40px!important;box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important}

/* slide ready: the empty slot breathes a soft square light (AZ5) instead of the rayed gold frame pulsing in scale */
html.stage .slide-screen .slide-slot .slot-glow{content:url('../assets/stage/slide-slot-light.webp');left:-48%!important;top:-48%!important;width:196%!important;height:196%!important;transform:none!important;filter:none!important}
html.stage .slide-screen .slide-board.assembled .slot-glow{opacity:1;animation:slot-breathe 1.8s ease-in-out infinite!important}
@keyframes slot-breathe{0%,100%{opacity:.5}50%{opacity:1}}
html.stage body.reduce-motion .slide-screen .slide-board.assembled .slot-glow{animation:none!important;opacity:.85}
/* finale: no static watercolor sparkles; small crisp glints twinkle on the frame and one band of light crosses the picture */
html.stage .pic-finale .pic-spark{display:none!important}
html.stage .pic-finale-frame .pic-glints{display:block;position:absolute;inset:0;pointer-events:none;z-index:3}
html.stage .pic-finale-frame .pic-glints img{position:absolute!important;inset:auto!important;width:32%!important;height:auto!important;aspect-ratio:1;margin:-16% 0 0 -16%;opacity:0;transform:scale(0);animation:finale-glint 3.2s ease-in-out infinite}
html.stage .pic-finale-frame .pic-glints .g1{left:7%!important;top:12%!important;animation-delay:1.0s}
html.stage .pic-finale-frame .pic-glints .g2{left:93%!important;top:30%!important;width:24%!important;margin:-12% 0 0 -12%;animation-delay:1.6s}
html.stage .pic-finale-frame .pic-glints .g3{left:38%!important;top:36%!important;width:22%!important;margin:-11% 0 0 -11%;animation-delay:2.2s}
html.stage .pic-finale-frame .pic-glints .g4{left:90%!important;top:89%!important;animation-delay:2.8s}
html.stage .pic-finale-frame .pic-glints .g5{left:66%!important;top:70%!important;width:22%!important;margin:-11% 0 0 -11%;animation-delay:3.4s}
@keyframes finale-glint{0%,100%{opacity:0;transform:scale(0) rotate(0)}7%{opacity:1;transform:scale(1) rotate(12deg)}16%{opacity:0;transform:scale(.25) rotate(30deg)}}
html.stage .pic-finale-frame .pic-sweep{display:block;position:absolute;overflow:hidden;pointer-events:none;z-index:1}
html.stage .pic-finale-frame .pic-sweep img{position:absolute;inset:auto!important;top:-10%!important;height:120%!important;width:40%!important;left:0!important;opacity:0;transform:translateX(-100%) skewX(-16deg)}
html.stage .pic-finale.celebrate .pic-sweep img{animation:land-sweep .9s .55s cubic-bezier(.45,0,.35,1) forwards}
html.stage body.reduce-motion .pic-finale-frame :is(.pic-glints,.pic-sweep){display:none!important}
@media (prefers-reduced-motion:reduce){html.stage .pic-finale-frame :is(.pic-glints,.pic-sweep){display:none!important}}

/* finale frame (AZ3, 2x sharper): 9-slice so the hole is exactly square; the picture fills the hole and tucks under the inner lip (no side gaps) */
html.stage .pic-finale-frame{aspect-ratio:720/765!important}
html.stage .pic-finale-frame>img{visibility:hidden!important}
html.stage .pic-finale-frame::after{content:'';position:absolute;inset:0;z-index:2;pointer-events:none;border:0 solid transparent;border-image:url('../assets/stage/result-frame-gold.webp') 135 92 93 92 fill / 17.647% 12.778% 12.157% 12.778% / 0 stretch}
html.stage .pic-finale-frame canvas{left:12.0%!important;right:auto!important;top:16.9%!important;width:76.0%!important;height:71.53%!important;z-index:1}
html.stage .pic-finale-frame .pic-sweep{left:12.0%;top:16.9%;width:76.0%;height:71.53%}
html.stage .slide-screen .slide-board.merging .slot-glow{opacity:0!important;animation:none!important;transition:opacity .25s}
/* short screens: the two-line guide (all pieces placed) stays inside the screen */
@media (max-height:780px){html.stage .slide-screen .slide-guide{padding-top:3px!important;padding-bottom:5px!important;line-height:1.18!important;min-height:36px!important}}
/* tool shelf sits on the bottom edge of the screen like the home menu bar (labels end 12px above the bottom) */
html.stage #app :is(.game-screen,.slide-screen) .game-tools.game-tools{position:fixed!important;top:calc(100dvh - 133px)!important;bottom:auto!important;left:50%!important;margin:0!important;transform:translateX(-50%)!important;z-index:5;width:350px!important;box-sizing:border-box!important}
html.stage #app .slide-screen .game-tools.game-tools{width:276px!important}
/* short stages (play): hearts on their own row between the title and the bar, the bar row a little lower (the canvas clips are gone, so the board keeps its place) */
@media(max-height:780px){html.stage .game-screen:not(:has(.lesson-guide)) .board-top{grid-template-columns:1fr auto!important;grid-template-rows:auto auto!important;row-gap:9px!important;margin-top:0!important;margin-bottom:-18px!important}html.stage .game-screen:not(:has(.lesson-guide)) .board-top #game-mode{grid-column:1/-1!important;grid-row:1!important;justify-self:center!important}html.stage .game-screen:not(:has(.lesson-guide)) .board-top #region-progress{grid-column:1!important;grid-row:2!important}html.stage .game-screen:not(:has(.lesson-guide)) .board-top #game-progress{grid-column:2!important;grid-row:2!important}html.stage .game-screen:not(:has(.lesson-guide)) .board-top::before{grid-row:2!important;grid-column:1/-1!important}}
@media(max-height:640px){html.stage .game-screen:not(:has(.lesson-guide)) .board-top{margin-top:-3px!important;row-gap:7px!important;margin-bottom:-13px!important}}
/* picture finale: tag text and +N coins text optically centred in their painted boxes (measured: tag text 2.5px low, coins text 3.7px high) */
html.stage #modal.result .pic-finale .pic-plate strong{transform:translateY(-2.5px)}
html.stage #modal.result .reward.reward>*{transform:translateY(3px)}
/* attendance board (replaces the date calendar): same desk-calendar paper, band shows the total, 30 stamps in rows of six, gift rows below */
html.stage #modal .attendance-heading{justify-content:center!important}
html.stage #modal .attendance-heading h3{margin:0 auto!important}
html.stage #modal .calendar-grid.attendance-grid{grid-template-columns:repeat(7,1fr)!important;gap:6px!important;margin-top:4px!important}
html.stage #modal .attendance-grid .calendar-day{aspect-ratio:1/0.9;min-height:0!important;cursor:default!important;pointer-events:none}
html.stage #modal .attendance-grid .calendar-day.gift:not(.collected)>small{display:flex!important}
html.stage #modal .attendance-grid .calendar-day.gift:not(.collected)>small::before{content:'';display:block;width:15px;height:15px;flex:none;background:url('../assets/pic/gift-box-closed.webp') center/contain no-repeat}
html.stage #modal .attendance-grid .calendar-day.gift.collected>small::after{content:'';display:block;width:13px;height:13px;margin-left:1px;flex:none;background:url('../assets/pic/gift-box-open.webp') center/contain no-repeat}
html.stage #modal .attendance-gifts.attendance-gifts{display:flex!important;flex-direction:column!important;gap:6px!important;padding:12px 18px!important}
html.stage #modal .attendance-gifts li{display:flex!important;align-items:center!important;gap:10px!important;width:100%;justify-content:flex-start!important}
html.stage #modal .attendance-gifts .attendance-gift-icon{width:36px;height:36px;flex:none}
html.stage #modal .attendance-gifts li>span{display:flex;flex-direction:column;flex:1;min-width:0;line-height:1.2;text-align:left}
html.stage #modal .attendance-gifts li b{font-weight:400;font-size:15px;color:var(--wc-ink)}
html.stage #modal .attendance-gifts li em{font-style:normal;font-size:13px;color:var(--wc-ink-soft)}
html.stage #modal .attendance-gifts li small{flex:none;font-size:13px;color:#b0536a}
html.stage #modal .attendance-gifts li.got small{color:#4c7a3f}
html.stage #modal:has(.attendance-grid) .modal-actions>button.primary{color:var(--wc-ink)!important;-webkit-text-fill-color:var(--wc-ink)!important;text-shadow:none!important}
@media(max-height:620px){html.stage #modal .calendar-grid.attendance-grid{gap:3px 6px!important}html.stage #modal .attendance-grid .calendar-day{aspect-ratio:1/0.8}html.stage #modal .attendance-gifts.attendance-gifts{padding:8px 18px!important;gap:3px!important}}
html.stage #modal:has(.attendance-grid) .calendar-note{padding-left:50px!important;padding-right:50px!important;text-wrap:balance}
html.stage:lang(ja) #modal:has(.attendance-grid) .calendar-note{word-break:keep-all}
html.stage #modal .attendance-grid .calendar-day{aspect-ratio:1/0.92}
@media(max-height:620px){html.stage #modal .attendance-grid .calendar-day{aspect-ratio:1/0.82}}
html.stage #modal.result .hint-gift{display:flex;align-items:center;justify-content:center;gap:4px;margin:2px 0 0!important;font-size:15px;color:var(--wc-ink-soft)}
html.stage #modal.result .hint-gift img{width:22px;height:22px}
/* daily result on a gift day (4 buttons + gift note): drop the cheer line like the album-gift result */
html.stage #modal.result:has(.gift-earned) .wc-cheer{display:none!important}
@media(max-height:760px){html.stage #modal.result:has(.gift-earned) .result-stats{display:none!important}}

/* hint badge: free hints (mint pill "무료 3") vs coin price (cream pill, coin + 100); an AD pill on the other side when the free hints are gone */
html.stage .game-screen:is(.game-screen) .game-tools .tool[data-action="hint"][data-count]::after{background:url('../assets/stage/hint-badge-coin.webp') center/100% 100% no-repeat!important;height:24px!important;min-width:0!important;padding:2px 9px 0!important;white-space:nowrap;font-size:13px!important}
html.stage .game-screen:is(.game-screen) .game-tools .tool[data-action="hint"][data-kind="free"]::after{background-image:url('../assets/stage/hint-badge-free.webp')!important;color:#2f5e3b!important;right:-14px!important}
html.stage .game-screen:is(.game-screen) .game-tools .tool[data-action="hint"][data-kind="coin"]::after{background:url('../assets/stage/icon2-coin.webp') 6px 52%/14px 14px no-repeat,url('../assets/stage/hint-badge-coin.webp') center/100% 100% no-repeat!important;padding-left:23px!important;right:-16px!important}
html.stage .game-screen .game-tools .tool .ad-badge{display:none}
html.stage .game-screen:is(.game-screen) .game-tools .tool[data-action="hint"][data-kind="coin"] .ad-badge{display:flex;align-items:center;justify-content:center;position:absolute;top:-6px;left:-11px;z-index:3;height:24px;padding:2px 6px 0;box-sizing:border-box;background:url('../assets/stage/hint-badge-ad.webp') center/100% 100% no-repeat;font:700 12px/1 'WC Jua',system-ui;font-style:normal;color:#8a3348;letter-spacing:.02em;pointer-events:none}
.ad-badge{display:none}
/* dialog buttons: secondary buttons (cancel/close) use the same compact cream pill as the result screen instead of a stretched full-width pill; the rewarded-ad button is a sky-blue brush stroke (BD2) with a small AD mark */
html.stage #modal:not(.result):not(:has(.calendar-grid)) .modal-actions>button.secondary{border:0!important;border-image:none!important;background:url('../assets/stage/c-pill-wc.webp') center/100% 100% no-repeat!important;width:auto!important;min-width:180px!important;max-width:240px!important;height:50px!important;min-height:0!important;padding:0 28px 4px!important;margin-left:auto!important;margin-right:auto!important;align-self:center!important;justify-self:center!important}
html.stage #modal .modal-actions>button.ad-action{background:none!important;border:0 solid transparent!important;border-image:url('../assets/stage/btn-ad.webp') 50 90 fill / 20px 30px / 0 stretch!important;color:#fff!important;-webkit-text-fill-color:#fff!important;text-shadow:0 1px 2px rgba(30,70,100,.45)!important;display:flex!important;align-items:center;justify-content:center;gap:8px}
html.stage #modal .modal-actions>button.ad-action .ad-mark{display:inline-flex;align-items:center;justify-content:center;height:22px;padding:2px 7px 0;box-sizing:border-box;background:url('../assets/stage/hint-badge-ad.webp') center/100% 100% no-repeat;font:700 12px/1 'WC Jua',system-ui;font-style:normal;color:#8a3348;-webkit-text-fill-color:#8a3348;text-shadow:none}
/* ad button hover: the same brush sweep as the coin button, in blue */
html.stage #modal .modal-actions>button.ad-action::before{display:block!important;background-image:none!important;border:1px solid transparent!important;border-image:url('../assets/stage/btn-ad.webp') 50 90 fill / 20px 30px / 0 stretch!important}
/* cancel/close pill: same 56px box as the brush buttons with its painted face as tall as the brush faces (about 42px), text centred */
html.stage #modal:not(.result):not(:has(.calendar-grid)) .modal-actions>button.secondary{height:56px!important;background-size:100% 71.5%!important;padding:0 28px 5px!important}
/* daily tab tools (today's puzzle / attendance): same cream tab art and 58px height as the collection tabs, two equal halves spanning the card grid width */
html.stage #app .collection-screen .daily-tools{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important;width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important}
html.stage #app .collection-screen .daily-tools>button{width:100%!important;min-width:0!important;max-width:none!important;height:58px!important;min-height:58px!important;margin:0!important;background:none!important;border:1px solid transparent!important;border-image:url('../assets/wc/btn-cream.webp') 42 60 fill / 20px 28px / 0 stretch!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;padding:5px 10px 3px!important;font-size:15px!important;white-space:nowrap!important;box-shadow:none!important}
html.stage #app .collection-screen .daily-tools>button img.art-icon{width:30px!important;height:30px!important;flex:none!important;margin:0!important}

/* attendance board: opened-but-unfinished puzzles are grey stamps with "…"; two reward rows (daily free hint + nearest picture) */
html.stage #modal .calendar-day.calendar-day.opened{background-image:url('../assets/stage/cal-day-open.webp')!important}
html.stage #modal .attendance-grid .calendar-day.opened>span{color:#6f6a66!important}
html.stage #modal .attendance-grid .calendar-day.opened>small{display:flex!important;font-size:14px!important;line-height:.5!important;color:#5d5752!important;letter-spacing:-1px}
html.stage #modal .attendance-gifts li.daily-hint small{color:#4c7a3f}
html.stage #modal .attendance-gifts.attendance-gifts{gap:2px!important;padding-top:8px!important;padding-bottom:8px!important}
html.stage #modal .attendance-gifts .attendance-gift-icon{width:32px!important;height:32px!important}

/* attendance board v3: bigger stamps (gap 4px, square), opened puzzles are glowing gold quest buttons, taller 9-slice reward paper (BE1) */
html.stage #modal .calendar-grid.attendance-grid{gap:4px!important}
html.stage #modal .attendance-grid .calendar-day{aspect-ratio:1/1!important;padding:2px 0 3px!important;justify-content:center!important}
html.stage #modal .attendance-grid .calendar-day>span{font-size:14px!important;line-height:1!important}
html.stage #modal .attendance-grid .calendar-day.gift>small::before,html.stage #modal .attendance-grid .calendar-day.gift.collected>small::after{width:13px!important;height:13px!important}
html.stage #modal .calendar-day.calendar-day.opened{background-image:url('../assets/stage/cal-day-quest.webp')!important;border:0!important;cursor:pointer!important;pointer-events:auto!important;filter:drop-shadow(0 0 3px rgba(255,205,70,.85));animation:quest-glow 1.6s ease-in-out infinite}
html.stage #modal .attendance-grid .calendar-day.opened>span{color:#7a4f00!important}
html.stage #modal .attendance-grid .calendar-day.opened>small{display:flex!important;font-size:15px!important;line-height:.5!important;color:#9a6200!important;letter-spacing:-1px}
html.stage #modal .attendance-grid .calendar-day.opened:hover{filter:drop-shadow(0 0 5px rgba(255,200,60,1)) brightness(1.06)}
html.stage #modal .attendance-grid .calendar-day.opened:active{transform:scale(.94)}
@keyframes quest-glow{0%,100%{filter:drop-shadow(0 0 2px rgba(255,205,70,.6))}50%{filter:drop-shadow(0 0 6px rgba(255,200,60,1)) brightness(1.05)}}
html.stage body.reduce-motion #modal .attendance-grid .calendar-day.opened{animation:none}
@media (prefers-reduced-motion:reduce){html.stage #modal .attendance-grid .calendar-day.opened{animation:none}}
html.stage #modal .calendar-legend.attendance-gifts.attendance-gifts{background:none!important;border:0 solid transparent!important;border-image:url('../assets/stage/cal-reward-paper.webp') 46 52 fill / 20px 22px / 0 stretch!important;padding:14px 20px 14px 22px!important;margin-top:8px!important}
@media(max-height:620px){html.stage #modal .attendance-grid .calendar-day{aspect-ratio:1/.92!important}html.stage #modal .calendar-legend.attendance-gifts.attendance-gifts{padding-top:10px!important;padding-bottom:10px!important}}
html.stage #modal .shared-date{text-align:center!important;font-size:16px!important;margin:0 0 4px!important;color:var(--wc-ink-soft)!important}
html.stage #modal:has(.shared-date)>p{text-align:center!important}

/* hint target picking: the board frame glows gold and a paper guide chip with Cancel sits over the top edge of the board */
html.stage .game-screen .board-frame.hint-picking .wc-easel{filter:drop-shadow(0 0 6px rgba(255,200,60,.95))!important;animation:quest-glow 1.6s ease-in-out infinite}
html.stage .game-screen .board-frame.hint-picking #board{cursor:crosshair}
html.stage .game-screen:is(.game-screen) .board-top{position:relative!important}
html.stage .game-screen .board-top>.hint-pick-guide{grid-row:2!important;grid-column:1/-1!important;position:relative;left:auto!important;top:auto!important;transform:none!important;z-index:6;align-self:stretch;justify-self:stretch;margin:-10px -20px!important;display:flex;align-items:center;justify-content:center;gap:10px;white-space:nowrap;padding:0 14px 2px;border:0 solid transparent;border-image:url('../assets/stage/progress-plate.webp') 41 46 fill / 18px 20px / 0 stretch;font-size:15px;color:#7a4f00;animation:quest-glow 1.6s ease-in-out infinite}
html.stage .game-screen .board-top:has(.hint-pick-guide)>:is(#region-progress,#game-progress),html.stage .game-screen .board-top:has(.hint-pick-guide)::before{visibility:hidden}
@media(max-height:780px){html.stage .game-screen .board-top>.hint-pick-guide{margin:-6px -14px!important;font-size:14px}}
html.stage .game-screen .board-top>.hint-pick-guide button{background:none!important;border:0!important;border-image:none!important;height:auto!important;min-height:0!important;min-width:0!important;width:auto!important;padding:2px 4px!important;font-size:14px!important;color:#b0536a!important;-webkit-text-fill-color:#b0536a!important;text-decoration:underline;text-underline-offset:3px;box-shadow:none!important}
