@font-face{font-family:'WC Jua';src:url('../assets/fonts/wc-jua.woff2') format('woff2');font-display:swap}
@font-face{font-family:'WC Jua';src:url('../assets/fonts/wc-round-ja.woff2') format('woff2');font-display:swap;unicode-range:U+3000-303F,U+3040-30FF,U+4E00-9FFF,U+FF00-FFEF}
@font-face{font-family:'WC Pen';src:url('../assets/fonts/wc-pen.woff2') format('woff2');font-display:swap}
@font-face{font-family:'WC Pen JA';src:url('../assets/fonts/wc-yomogi.woff2') format('woff2');font-display:swap}
/* Design v3 "오늘의 수채화": hand-painted watercolor art (artifacts/design-v3/B3-final-reference.png).
   Every surface is a cut-out image from assets/wc; CSS only places them and sets type. */
:root{--wc-ink:#2f2a26;--wc-ink-soft:#5d554d;--wc-rose:#d8384f;--wc-paper:#f6efe2}

body{color:var(--wc-ink)}
.shell{background:none}

/* Shared pieces */
/* Icons reuse the old .art-icon size rules per place; only the drawing changes. */
img.art-icon.wc-icon{background:none;object-fit:contain;pointer-events:none}

/* Top bar: paper coin pill and round paper buttons */
.home-screen .topbar{position:relative;z-index:2;display:flex;justify-content:flex-end;align-items:center;gap:10px;height:auto;padding:14px 16px 0;background:none;box-shadow:none;border:0}
.home-screen .topbar .wordmark{display:none}
.topbar .coins{display:flex;align-items:center;gap:8px;height:46px;padding:0 20px 0 12px;background:url('../assets/wc/pill.webp') center/100% 100% no-repeat;border:0;box-shadow:none;border-radius:0;color:var(--wc-ink);font-size:17px;font-weight:600}
.topbar .coins .coin{width:26px;height:26px;background:url('../assets/wc/coin.webp') center/contain no-repeat;color:transparent;font-size:0;box-shadow:none;border:0}
.topbar .icon-button{width:48px;height:48px;padding:10px;background:url('../assets/wc/btn-round.webp') center/100% 100% no-repeat;border:0;box-shadow:none;border-radius:50%}

/* Home: logo + handwritten tagline on paper */
.home-screen main{padding:0 16px 120px}
.home-screen .hero.wc-hero{position:relative;display:block;height:auto;min-height:0;margin:0;padding:8px 0 0;background:none;border:0;box-shadow:none;overflow:visible;aspect-ratio:auto}
.home-screen .hero.wc-hero .hero-copy{position:static;inset:auto;display:flex;flex-direction:column;align-items:center;width:auto;max-width:none;padding:0;background:none;transform:none;text-align:center}
.home-screen .wc-hero .hero-logo.wc-logo{display:block;width:88%;max-width:440px;height:auto;aspect-ratio:2028/564;margin:6px auto 0;filter:none}
.wc-wordmark{display:flex;align-items:flex-end;justify-content:center;flex-wrap:wrap;max-width:100%;gap:4px;font:700 clamp(32px,11vw,44px)/1.1 Georgia,'Times New Roman',serif;color:#2e5aa6;letter-spacing:-.5px}
.wc-wordmark img{width:28px}
.home-screen .hero.wc-hero h1.wc-tagline{align-self:center;margin:4px 0 0;transform:none;font:400 clamp(15px,5.6vw,22px)/1.2 'WC Pen',cursive;color:var(--wc-ink);letter-spacing:.3px;text-align:center;text-shadow:none;white-space:normal;max-width:100%}
.home-screen .hero.wc-hero h1.wc-tagline:lang(ja){font-family:'WC Pen JA',cursive;font-size:clamp(13px,4.4vw,17px)}
.home-screen .hero.wc-hero h1.wc-tagline:lang(en){font-size:clamp(14px,4.6vw,19px)}

/* Continue card */
.home-screen .resume-card{position:relative;display:grid;grid-template-columns:1fr 38%;grid-template-rows:auto auto auto 1fr auto;gap:0 10px;margin:26px 0 0;padding:26px 22px 20px;background:url('../assets/wc/card-large.webp') center/100% 100% no-repeat;border:0;box-shadow:none;border-radius:0;min-height:0}
.resume-card .wc-card-title{grid-column:1;grid-row:1;font:800 clamp(22px,7.6vw,30px)/1.15 'WC Jua',system-ui;overflow-wrap:anywhere;color:var(--wc-ink);letter-spacing:-.5px}
.resume-card .wc-preview{position:relative;grid-column:2;grid-row:1/5;align-self:start;display:block;margin:2px 0 0}
.resume-card .resume-preview,.resume-card .resume-placeholder{display:block;width:100%;height:auto;aspect-ratio:1;border:0;border-radius:2px;background:#fffdf8;box-shadow:0 2px 6px #6b553633;transform:rotate(1.5deg)}
.wc-preview .wc-clip{position:absolute;top:-24px;right:24%;width:30px;transform:rotate(4deg)}
.wc-preview .wc-brush-prop{position:absolute;right:-30px;bottom:-78px;width:62px;transform:rotate(-28deg);transform-origin:50% 100%;pointer-events:none}
.resume-card .resume-info{display:contents}
.resume-card .resume-info .eyebrow{display:none}
.resume-card .resume-info h2{grid-column:1;grid-row:2;align-self:start;margin:12px 0 0;overflow-wrap:anywhere;font:700 16px/1.3 'WC Jua',system-ui;color:var(--wc-ink)}
.resume-card .resume-level{grid-column:1;grid-row:3;align-self:start;margin:4px 0 0;font:500 15px/1.3 'WC Jua',system-ui;color:var(--wc-ink-soft)}
.resume-card .resume-meter{grid-column:1;grid-row:4;align-self:end;display:flex;margin:14px 0 4px}
.resume-card .resume-meter strong{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.resume-card .progress,.overall-progress .progress{display:block;width:100%;height:12px;background:url('../assets/wc/bar-track.webp') center/100% 100% no-repeat;border:0;border-radius:0;box-shadow:none;overflow:hidden}
.resume-card .progress>span,.overall-progress .progress>span{display:block;height:100%;background:url('../assets/wc/bar-fill.webp') left center/100% 100% no-repeat;border-radius:0;box-shadow:none}
.resume-card .primary{grid-column:1/3;grid-row:5;justify-self:stretch;display:flex;align-items:center;justify-content:center;gap:12px;height:66px;margin:14px -8px 0;background:url('../assets/wc/btn-primary.webp') center/100% 100% no-repeat;border:0;box-shadow:none;border-radius:0;color:#fff;font:700 22px/1 'WC Jua',system-ui;text-shadow:0 1px 2px #8a1d2c66}
.resume-card .primary>span[aria-hidden]{font-size:26px}
.resume-card .primary::after{display:none}

/* Daily + collection cards */
.home-screen .home-bottom{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0 0}
.home-screen .home-bottom .small-card{position:relative;display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;gap:0;min-height:186px;padding:18px 16px 12px;background:url('../assets/wc/card-medium.webp') center/100% 100% no-repeat;border:0;box-shadow:none;border-radius:0;text-align:left;color:var(--wc-ink);overflow:visible}
.home-screen .home-bottom .small-card h2{margin:0;font:800 20px/1.2 'WC Jua',system-ui;color:var(--wc-ink)}
.home-screen .home-bottom .small-card p{margin:10px 0 0;font:500 13.5px/1.5 'WC Jua',system-ui;color:var(--wc-ink-soft)}
.home-bottom .small-card>svg,.home-bottom .small-card .calendar-icon,.home-bottom .small-card .card-icon,.home-bottom .small-card .daily-badge,.home-bottom .small-card .streak-chip{display:none}
.wc-card-art{position:absolute;left:8px;right:8px;bottom:8px;height:44%;display:block;pointer-events:none}
.wc-card-art img{position:absolute;bottom:0;height:auto}
.wc-card-art .wc-cal{left:2px;width:70%}
.wc-card-art .wc-vase{right:0;width:38%;bottom:6px}
.wc-card-art .wc-gallery{left:50%;width:94%;transform:translateX(-50%)}

/* Not part of the v3 home: kept for function (calendar link) but quiet */
.home-screen .daily-tools .secondary{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;background:none;border:0;box-shadow:none;color:var(--wc-ink-soft);font:600 13px 'WC Jua',system-ui;text-decoration:underline;text-underline-offset:3px}
.home-screen .overall-progress,.home-screen .daily-card::after,.home-screen .collection-card::after,.home-screen .home-help>span{display:none}
/* Calendar and how-to links share one quiet row between the cards and the tab bar. */
.home-screen .daily-tools,.home-screen .home-help{display:inline-flex;vertical-align:top;width:calc(50% - 4px);justify-content:center;margin:12px 0 0}
.home-screen .home-help .text-button{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 10px;background:none;border:0;color:var(--wc-ink-soft);font:600 13px 'WC Jua',system-ui;text-decoration:underline;text-underline-offset:3px}
.home-screen .home-help .text-button .art-icon{width:20px;height:20px}

/* Bottom tab bar: paper strip, pink wash behind the current tab */
.bottom-nav{left:16px;right:16px;bottom:10px;height:84px;padding:6px 10px;background:url('../assets/wc/tabbar.webp') center/100% 100% no-repeat;border:0;box-shadow:none;border-radius:0}
.bottom-nav button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;background:none;border:0;box-shadow:none;color:var(--wc-ink);font:600 12px 'WC Jua',system-ui}
.bottom-nav button[aria-current=page]::before{content:'';position:absolute;inset:4px 14%;z-index:-1;background:url('../assets/wc/tab-selected.webp') center/100% 100% no-repeat}
.bottom-nav button[aria-current=page]{color:var(--wc-ink)}
.home-screen .home-bottom .small-card h2,.home-screen .home-bottom .small-card p{position:relative;z-index:1}
.home-screen .home-bottom .small-card h2:lang(en),.home-screen .home-bottom .small-card h2:lang(ja){font-size:17px}.home-screen .home-bottom .small-card p:lang(en),.home-screen .home-bottom .small-card p:lang(ja){font-size:12px;margin-top:6px}

/* ===== Play screen (ref/play.png) ===== */
.game-screen .topbar{position:relative;z-index:3;display:flex;align-items:flex-start;justify-content:space-between;height:auto;padding:12px 14px 0;background:none;border:0;box-shadow:none}
.game-screen .topbar .wc-back,.album-screen .topbar .wc-back,.topbar .wc-back{display:inline-flex;align-items:center;gap:6px;width:auto;height:46px;padding:0 16px 0 12px;background:url('../assets/wc/pill.webp') center/100% 100% no-repeat;border-radius:0}
.topbar .wc-back .art-icon{width:22px;height:22px}
.topbar .wc-back .wc-label{font:600 14px/1 'WC Jua',system-ui;color:var(--wc-ink)}
.game-screen .nav-actions{position:relative;display:flex;align-items:flex-start;gap:8px}
.game-screen .topbar .wc-help{position:absolute;right:2px;top:56px;display:flex;flex-direction:column;align-items:center;gap:2px;width:48px;height:auto;padding:0;background:none;border-radius:0}
.game-screen .topbar .wc-help .art-icon{position:static;order:0;width:40px;height:40px;padding:6px;box-sizing:border-box;background:url('../assets/wc/btn-round.webp') center/100% 100% no-repeat}
.game-screen .topbar .wc-help .wc-label{order:1;font:600 11px/1 'WC Jua',system-ui;color:var(--wc-ink-soft)}

.game-screen .game-layout{gap:6px;padding:0 16px 18px}
.game-screen .game-aside{padding:0;margin:0;background:none;border:0;box-shadow:none;text-align:center}
.game-screen .game-aside>.eyebrow,.game-screen .game-aside>p,.game-screen .aside-note,.game-screen .game-caption{display:none}
.game-screen .game-aside h1{margin:-4px 0 0;font:800 26px/1.2 'WC Jua',system-ui;color:var(--wc-ink);letter-spacing:-.4px}
.game-screen .reference-guide{margin:2px auto 0;padding:0;background:none;border:0;box-shadow:none}
.game-screen .reference-guide>.eyebrow,.game-screen .reference-guide>strong{display:none}
.game-screen .quick-rules summary{display:inline-block;padding:2px 6px;background:none;border:0;color:var(--wc-ink-soft);font:600 12px 'WC Jua',system-ui;text-decoration:underline;text-underline-offset:3px;cursor:pointer;list-style:none}
.game-screen .quick-rules summary::-webkit-details-marker{display:none}
.game-screen .quick-rules p{margin:6px auto 0;max-width:330px;padding:10px 14px;background:url('../assets/wc/chip.webp') center/100% 100% no-repeat;font:500 13px/1.5 'WC Jua',system-ui;color:var(--wc-ink)}
.game-screen .lesson-guide{margin:6px auto 0;max-width:360px;padding:12px 16px;background:url('../assets/wc/card-large.webp') center/100% 100% no-repeat;border:0;box-shadow:none;border-radius:0;color:var(--wc-ink)}

/* Hearts and the "완성 8/20" plate */
.game-screen .board-top{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:8px 10px;width:min(100%,300px);margin:0 auto;padding:0;background:none;border:0}
.game-screen .board-top #game-mode{grid-column:1/-1;justify-self:center}
.game-screen .board-top::before{content:'';grid-column:1/-1;grid-row:2;align-self:stretch;margin:-8px -18px;background:url('../assets/wc/plate.webp') center/100% 100% no-repeat}
.game-screen #game-progress{grid-column:1;grid-row:2;position:relative;padding-left:4px;font:600 13px/1 'WC Jua',system-ui;color:var(--wc-ink)}
.game-screen #region-progress{grid-column:2;grid-row:2;position:relative;height:12px;margin:0 4px 0 0;background:url('../assets/wc/bar-track.webp') center/100% 100% no-repeat;border:0;border-radius:0;box-shadow:none;overflow:hidden}
.game-screen #region-progress>span{display:block;height:100%;background:url('../assets/wc/bar-fill.webp') left center/100% 100% no-repeat;border-radius:0;box-shadow:none}
.game-screen #region-progress>span::after{display:none}
.game-screen #game-time{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.game-screen .board-top .hearts{display:flex;flex-direction:row-reverse;gap:6px;font-size:30px;letter-spacing:0}
.game-screen .hearts i,.game-screen .hearts i .half{width:1em;height:.9em;color:transparent;background:url('../assets/wc/heart.webp') center/contain no-repeat}
.game-screen .hearts i.lost{background-image:url('../assets/wc/heart-empty.webp')}
.game-screen .hearts i.just-lost{color:transparent}

/* Easel + canvas paper board with pencil coordinates */
.game-screen .board-frame{isolation:isolate;margin:34px auto 0;padding:14px 14px 30px 30px;background:none;border:0;border-radius:0;box-shadow:none;overflow:visible}
.game-screen .board-frame::before{content:'';position:absolute;inset:0;z-index:-1;background:url('../assets/wc/canvas.webp') center/100% 100% no-repeat;filter:drop-shadow(0 3px 4px #5a3f2433)}
.game-screen .board-frame .wc-easel{position:absolute;z-index:-2;left:50%;top:-31%;width:114%;max-width:none;height:auto;transform:translateX(-50%);clip-path:inset(15.3% 0 0 0);pointer-events:none}
.game-screen .board-frame .wc-easel-top{position:absolute;z-index:-1;left:50%;top:-24px;width:30%;height:auto;transform:translateX(-50%);pointer-events:none}
.game-screen .board-viewport{background:none;border-radius:0;box-shadow:none}
.wc-coords{position:absolute;inset:0;pointer-events:none;font:500 11px/1 'WC Jua',system-ui;color:#6b6259}
.wc-coords .wc-rows{position:absolute;left:0;top:14px;bottom:30px;width:30px;display:grid;grid-template-rows:repeat(var(--h),1fr);align-items:center;justify-items:center}
.wc-coords .wc-cols{position:absolute;left:30px;right:14px;bottom:4px;height:24px;display:grid;grid-template-columns:repeat(var(--w),1fr);align-items:center;justify-items:center}
.wc-coords i{font-style:normal}
.board-frame.zoomed .wc-coords{visibility:hidden}

/* Status + zoom sit on the easel tray */
.game-screen .board-controls{position:relative;display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:34px;margin:6px 0 0;padding:0 6px}
.game-screen .board-status{font:500 12px/1.3 'WC Jua',system-ui;color:var(--wc-ink-soft)}
.game-screen .zoom-controls{display:flex;gap:4px}
.game-screen .zoom-controls button{min-width:40px;min-height:36px;padding:0 8px;background:url('../assets/wc/btn-cream.webp') center/100% 100% no-repeat;border:0;box-shadow:none;border-radius:0;color:var(--wc-ink);font:700 14px 'WC Jua',system-ui}

/* Tool tiles */
.game-screen .game-tools{position:relative;z-index:1;display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:8px 0 0;padding:0;background:none;border:0;box-shadow:none;border-radius:0}
.game-screen .game-tools .tool,.game-screen .game-tools .tool.active{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:96px;padding:8px 2px;border:0;box-shadow:none;border-radius:0;background:url('../assets/wc/tile-pink.webp') center/100% 100% no-repeat;color:var(--wc-ink);font:700 15px/1.1 'WC Jua',system-ui}
.game-screen .game-tools .tool[data-action="erase"]{background-image:url('../assets/wc/tile-blue.webp')}
.game-screen .game-tools .tool[data-action="undo"]{background-image:url('../assets/wc/tile-green.webp')}
.game-screen .game-tools .tool[data-action="hint"]{background-image:url('../assets/wc/tile-yellow.webp')}
.game-screen .game-tools .tool.active>span:not(.sub){color:var(--wc-rose)}
.game-screen .game-tools .tool:disabled{opacity:.6}
.game-screen .game-tools .tool .sub{font:600 11px/1 'WC Jua',system-ui;color:var(--wc-ink-soft);background:none}
.game-screen .game-tools .tool:not([data-action="hint"]) .sub{display:none}
.game-screen .game-tools .tool::after{display:none}

/* v3 has no corner leaves */
.collection-screen::before,.collection-screen::after,.game-screen::before,.game-screen::after,body::before,body::after{display:none!important}
/* Rules link tucked under the back button (empty in the design); its note drops down over the board. */
.game-screen .game-layout{position:relative}
.game-screen .reference-guide{position:absolute;left:16px;top:-6px;z-index:4;margin:0;text-align:left}
.game-screen .quick-rules p{position:absolute;left:0;top:100%;width:min(330px,calc(100vw - 32px))}
.game-screen .game-aside h1{margin-top:22px}
/* Tools rest at the bottom of the screen, in front of the easel legs. */
.game-screen .game-layout{min-height:calc(100svh - 64px)}
.game-screen .game-main{display:flex;flex-direction:column;flex:1}
.game-screen .game-tools{margin-top:auto}
.game-screen .game-tools .tool,.game-screen .game-tools .tool.active{min-height:106px;font-size:16px}
.game-screen .game-tools .tool .art-icon{width:46px;height:46px}
/* Guidance text only during the tutorial; zoom chips stay small on the tray. */
.game-screen:not(:has(.lesson-guide)) .board-status{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.game-screen .board-controls{justify-content:flex-end;margin-top:2px}
.game-screen .zoom-controls button{min-width:36px;min-height:30px;font-size:13px}
/* Tutorial guidance sits on a paper slip so it reads on the wooden tray. */
.game-screen:has(.lesson-guide) .board-status{flex:1;padding:6px 12px;background:url('../assets/wc/chip.webp') center/100% 100% no-repeat;color:var(--wc-ink);font-size:12px}
/* Short screens: shrink the chrome around the board so the tools stay on screen. */
@media(max-height:760px){
  .game-screen .game-aside h1{margin-top:14px;font-size:22px}
  .game-screen .board-top .hearts{font-size:24px}
  .game-screen .board-top{gap:6px 10px}
  .game-screen .board-frame{margin-top:28px;padding:12px 12px 24px 24px}
  .wc-coords .wc-rows{top:12px;bottom:24px;width:24px}
  .wc-coords .wc-cols{left:24px;right:12px;height:20px}
  .game-screen .game-tools .tool,.game-screen .game-tools .tool.active{min-height:78px;font-size:14px;gap:2px}
  .game-screen .game-tools .tool .art-icon{width:34px;height:34px}
}
@media(max-height:660px){
  .game-screen .topbar{padding-top:8px}
  .game-screen .topbar .wc-back,.topbar .coins{height:40px}
  .game-screen .topbar .wc-help{top:48px}
  .game-screen .game-aside h1{margin-top:10px;font-size:20px}
  .game-screen .board-top .hearts{font-size:20px}
  .game-screen .board-frame{margin-top:24px}
  .game-screen .game-tools .tool,.game-screen .game-tools .tool.active{min-height:66px;font-size:13px}
  .game-screen .game-tools .tool .art-icon{width:28px;height:28px}
  .game-screen .zoom-controls button{min-height:26px}
}
@media(max-width:400px){.game-screen .quick-rules summary{font-size:11px}.game-screen .game-aside h1{padding:0 54px}}
.game-screen .nav-actions [data-action="settings"]{width:44px;height:44px;padding:9px}

/* ===== Result (ref/result.png): a full paper sheet, not a floating card ===== */
#modal.result{width:100vw;max-width:none;height:100svh;max-height:none;margin:0;padding:max(10px,env(safe-area-inset-top)) 18px max(14px,env(safe-area-inset-bottom));border:0;border-radius:0;box-shadow:none;background:#f4ecdc url('../assets/wc/bg-paper.webp') center/cover;flex-direction:column;align-items:center;overflow-y:auto}
#modal.result[open]{display:flex}
#modal.result::backdrop{background:#f4ecdc}
#modal.result>*{flex-shrink:0}
#modal.result>.eyebrow{display:none}
/* Ribbon title */
#modal.result:not(:has(.reward-art)) #modal-title{position:relative;z-index:0;width:min(100%,380px);margin:4px auto 0;padding:22px 0 30px;font:800 clamp(24px,8vw,32px)/1 'WC Jua',system-ui;color:#5b2430;text-shadow:0 1px 0 #fff8;letter-spacing:-.5px;white-space:nowrap}
#modal.result:not(:has(.reward-art)) #modal-title::before{content:'';position:absolute;z-index:-1;left:50%;top:50%;width:112%;height:auto;aspect-ratio:1388/388;transform:translate(-50%,-50%);background:url('../assets/wc/ribbon.webp') center/contain no-repeat}
#modal.result .wc-cheer{margin:-6px 0 0;font:400 clamp(18px,6vw,24px)/1.2 'WC Pen',cursive;color:var(--wc-ink);text-align:center}
#modal.result .wc-cheer:lang(ja){font-family:'WC Pen JA',cursive;font-size:clamp(13px,4vw,16px)}
/* Picture on the small easel */
#modal.result .completion-scene{--s:clamp(140px,27svh,236px);position:relative;display:flex;flex-direction:column;align-items:center;width:auto;height:auto;margin:10px auto 0;isolation:isolate}
#modal.result .completion-scene::before{display:none}
#modal.result .wc-res-top{position:relative;z-index:2;width:calc(var(--s)*.34);margin-bottom:-10px}
#modal.result .wc-res-canvas{position:relative;z-index:1;display:block;padding:calc(var(--s)*.1);background:url('../assets/wc/canvas.webp') center/100% 100% no-repeat;filter:drop-shadow(0 3px 4px #5a3f2433)}
#modal.result .completion-scene .result-art{display:block;width:calc(var(--s)*.8);height:calc(var(--s)*.8);margin:0;border:0;border-radius:0;box-shadow:none;background:none;image-rendering:auto;animation:none}
#modal.result .wc-res-tray{position:relative;z-index:2;width:calc(var(--s)*1.18);margin-top:-12px}
#modal.result .wc-splat{position:absolute;z-index:0;width:calc(var(--s)*.42);opacity:.9;pointer-events:none}
#modal.result .wc-splat.s1{left:calc(var(--s)*-.42);top:20%}
#modal.result .wc-splat.s2{right:calc(var(--s)*-.44);top:4%}
#modal.result .wc-splat.s3{right:calc(var(--s)*-.38);bottom:8%}
#modal.result .picture-title{margin:8px 0 0;font:800 20px/1.2 'WC Jua',system-ui;color:var(--wc-ink)}
#modal.result .result-note{display:none}
/* Album progress row */
#modal.result .result-collection{display:grid;grid-template-columns:auto auto 1fr;grid-template-rows:auto auto;align-items:center;gap:2px 8px;width:min(100%,270px);margin:6px auto 0;color:var(--wc-ink)}
#modal.result .result-collection .wc-col-icon{grid-row:1/3;width:30px}
#modal.result .result-collection>span:nth-of-type(1){font:600 13px 'WC Jua',system-ui}
#modal.result .result-collection .wc-col-count{justify-self:end;font:600 13px 'WC Jua',system-ui}
#modal.result .result-collection .wc-col-bar{grid-column:2/4;height:9px}
#modal.result .result-collection .collection-dots,#modal.result .result-collection .result-mosaic{display:none}
/* Stat chips */
#modal.result .result-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;width:100%;max-width:380px;margin:12px auto 0;padding:0;background:none;border:0}
#modal.result .result-stats>div{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;align-items:center;gap:0 6px;padding:10px 8px;background:url('../assets/wc/chip.webp') center/100% 100% no-repeat;text-align:left}
#modal.result .result-stats .wc-stat{grid-row:1/3;width:30px;height:30px;object-fit:contain}
#modal.result .result-stats span{grid-column:2;grid-row:1;font:600 11px/1.2 'WC Jua',system-ui;color:var(--wc-ink-soft)}
#modal.result .result-stats strong{grid-column:2;grid-row:2;font:800 17px/1.2 'WC Jua',system-ui;color:var(--wc-ink)}
/* Coin reward on a yellow wash */
#modal.result .reward{position:relative;display:inline-flex;align-items:center;gap:10px;margin:12px auto 0;padding:12px 40px;background:none;border:0;box-shadow:none;border-radius:0;color:var(--wc-ink);font:800 19px 'WC Jua',system-ui;isolation:isolate}
#modal.result .reward::before{content:'';position:absolute;inset:0;z-index:-1;background:url('../assets/wc/btn-primary.webp') center/100% 100% no-repeat;filter:hue-rotate(42deg) saturate(.55) brightness(1.95)}
#modal.result .reward .coin{width:34px;height:26px;background:url('../assets/wc/coins.webp') center/contain no-repeat;color:transparent;font-size:0;box-shadow:none;border:0;animation:none}
/* Buttons: red brush stroke, blue and cream paper */
#modal.result .modal-actions{width:100%;max-width:400px;margin:14px auto 0;gap:10px}
#modal.result .modal-actions>.primary{min-height:62px;background:url('../assets/wc/btn-primary.webp') center/100% 100% no-repeat;border:0;box-shadow:none;border-radius:0;color:#fff;font:700 21px 'WC Jua',system-ui;text-shadow:0 1px 2px #8a1d2c66}
#modal.result .modal-actions>.primary::after{content:'›';position:static;display:inline;width:auto;height:auto;margin-left:10px;background:none;transform:none;animation:none;font-size:30px;line-height:0;vertical-align:-2px}
#modal.result .modal-actions>.secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:52px;background:url('../assets/wc/btn-cream.webp') center/100% 100% no-repeat;border:0;box-shadow:none;border-radius:0;color:var(--wc-ink);font:700 15px 'WC Jua',system-ui}
#modal.result .modal-actions>.secondary:has(.wci-share){background-image:url('../assets/wc/btn-blue.webp')}
#modal.result .modal-actions .art-icon{width:24px;height:24px}
#modal.result .progress{display:block;background:url('../assets/wc/bar-track.webp') center/100% 100% no-repeat;border:0;border-radius:0;box-shadow:none;overflow:hidden}
#modal.result .progress>span{display:block;height:100%;background:url('../assets/wc/bar-fill.webp') left center/100% 100% no-repeat;border-radius:0;box-shadow:none}
#modal.result .result-stats>div{padding:12px 8px}
#modal.result .result-stats .wc-stat{width:34px;height:34px}
#modal.result .modal-actions>.secondary{min-height:54px}
@media(max-height:700px){#modal.result .completion-scene{--s:clamp(120px,24svh,200px)}#modal.result .result-stats{margin-top:8px}#modal.result .reward{margin-top:8px;padding:8px 32px}#modal.result .modal-actions{margin-top:10px}#modal.result .modal-actions>.primary{min-height:54px}#modal.result .modal-actions>.secondary{min-height:46px}}
#modal.result .reward{padding:12px 64px;font-size:20px}#modal.result .reward .coin{width:44px;height:32px}@media(max-height:700px){#modal.result .reward{padding:8px 48px}}
#modal.result .album-gift-earned,#modal.result .gift-earned,#modal.result .archive-note{margin:6px auto 0;padding:8px 16px;background:url('../assets/wc/chip.webp') center/100% 100% no-repeat;border:0;border-radius:0;color:var(--wc-ink);font:600 13px/1.4 'WC Jua',system-ui}
/* Very short screens (e.g. 375x548 with browser bars): everything shrinks a step so all of it fits. */
@media(max-height:620px){
  #modal.result{padding-top:4px;padding-bottom:8px}
  #modal.result:not(:has(.reward-art)) #modal-title{padding:14px 0 20px;font-size:22px;width:min(100%,300px)}
  #modal.result .completion-scene{--s:clamp(96px,19svh,150px);margin-top:4px}
  #modal.result .picture-title{margin-top:4px;font-size:17px}
  #modal.result .result-collection{margin-top:4px}
  #modal.result .result-stats{margin-top:6px;gap:6px}
  #modal.result .result-stats>div{padding:6px 6px}
  #modal.result .result-stats .wc-stat{width:24px;height:24px}
  #modal.result .result-stats strong{font-size:15px}
  #modal.result .reward{margin-top:6px;padding:6px 40px;font-size:17px}
  #modal.result .reward .coin{width:34px;height:24px}
  #modal.result .modal-actions{margin-top:8px;gap:6px}
  #modal.result .modal-actions>.primary{min-height:48px;font-size:18px}
  #modal.result .modal-actions>.secondary{min-height:42px;font-size:13px}
}

/* ===== One phone-width column on every screen size (the design is a portrait phone screen) ===== */
.shell{max-width:440px;margin:0 auto;padding-left:0;padding-right:0}
.home-screen.shell{padding-bottom:calc(112px + env(safe-area-inset-bottom))}
.game-screen .game-layout{display:flex;flex-direction:column;grid-template-columns:none;max-width:none;justify-content:flex-start;padding-top:0}
.game-screen .game-aside,.game-screen .game-main{width:100%;max-width:none;position:static}
.game-screen .game-layout{position:relative}
.bottom-nav{position:fixed;left:50%;right:auto;bottom:max(10px,env(safe-area-inset-bottom));z-index:5;width:min(408px,calc(100vw - 32px));max-width:none;margin:0;transform:translateX(-50%);display:flex;justify-content:space-around;gap:0}
.bottom-nav button{flex:1}
#modal.result{width:min(100vw,440px);margin:0 auto;inset:0}
#modal.result::backdrop{background:#f4ecdc url('../assets/wc/bg-paper.webp') center/cover}
/* Tool tiles: icon in the wash, label underneath (as in the design); disabled tools stay legible. */
.game-screen .game-tools .tool,.game-screen .game-tools .tool.active{display:grid;grid-template-rows:1fr auto auto;justify-items:center;align-items:center;gap:0;padding:10% 4px 9%}
.game-screen .game-tools .tool .art-icon{grid-row:1;align-self:center;width:44%;height:auto;aspect-ratio:1;max-width:48px;margin:0}
.game-screen .game-tools .tool>span:not(.sub){grid-row:2;margin-top:4px;font:700 15px/1.1 'WC Jua',system-ui;color:var(--wc-ink)}
.game-screen .game-tools .tool.active>span:not(.sub){color:#c8314a}
.game-screen .game-tools .tool .sub{grid-row:3;margin-top:2px}
.game-screen .game-tools .tool:disabled{opacity:1}
.game-screen .game-tools .tool:disabled .art-icon{opacity:.45}
.game-screen .game-tools .tool:disabled>span:not(.sub){color:#9a9088}
/* Column letters sit below the canvas edge, not under its torn border. */
.game-screen .board-frame{padding-bottom:34px}
.wc-coords .wc-cols{bottom:2px;height:22px}
.game-screen .game-tools .tool .art-icon{width:46px;height:46px;max-width:none;aspect-ratio:auto}
.game-screen .game-tools .tool>span{text-shadow:none!important}
@media(max-height:760px){.game-screen .game-tools .tool .art-icon{width:36px;height:36px}}
@media(max-height:660px){.game-screen .game-tools .tool .art-icon{width:28px;height:28px}}

/* Jua (user choice) for every UI text; the logo image and handwritten lines keep their own fonts. Jua has one weight. */
body,body :where(*):not(.wc-tagline):not(.wc-cheer):not(.wc-tagline *){font-family:'WC Jua',system-ui!important;font-synthesis:none}
body :where(h1,h2,h3,strong,b,button,.primary,.secondary){font-weight:400!important}
.shell:not(.game-screen){padding-bottom:calc(116px + env(safe-area-inset-bottom))}
/* A full-screen sheet fades in instead of popping, so buttons never move under a finger. */
#modal.result[open]{animation:pd-fade .25s ease-out both}
/* Jua's comma reads like a full stop; the coin count uses a clear numeral face. */
.coins [data-coins]{font-family:Georgia,'Times New Roman',serif!important;font-size:18px;letter-spacing:.3px}
.home-screen .home-bottom .small-card p{max-width:9.5em}
.home-screen .home-bottom .small-card{min-height:204px}
.wc-card-art{height:42%!important}
.wc-card-art img{max-height:100%;width:auto!important}
.wc-card-art .wc-cal{height:100%}
.wc-card-art .wc-vase{height:82%}
.wc-card-art .wc-gallery{height:100%}
.home-screen .home-bottom{margin-top:10px}
.home-screen .home-bottom .small-card{min-height:196px}
.wc-card-art{height:52%!important}
.home-screen .daily-tools,.home-screen .home-help{margin-top:4px}
.home-screen .daily-tools .secondary,.home-screen .home-help .text-button{height:30px;font-size:12px}
.resume-card .wc-card-title{font-size:clamp(24px,8.4vw,34px)}
.resume-card .resume-preview{box-shadow:0 2px 6px #6b553633,0 0 0 4px #fffdf7}
/* Canvas paper shows a real margin around the grid; coordinates are pencilled on it (design). */
.game-screen .board-frame{padding:22px 20px 40px 36px}
.game-screen .board-frame::before{inset:-4px -6px -2px -6px}
.wc-coords .wc-rows{left:6px;top:22px;bottom:40px;width:28px}
.wc-coords .wc-cols{left:36px;right:20px;bottom:12px;height:24px}
.wc-coords{font-size:12px;color:#5d554d}
@media(max-height:760px){.game-screen .board-frame{padding:18px 16px 32px 30px}.wc-coords .wc-rows{top:18px;bottom:32px;width:24px}.wc-coords .wc-cols{left:30px;right:16px;bottom:8px;height:20px}}
.game-screen .board-top .hearts{font-size:34px;gap:8px}@media(max-height:760px){.game-screen .board-top .hearts{font-size:26px}}

/* Result polish (ref/result.png) */
#modal.result:not(:has(.reward-art)) #modal-title{font-size:clamp(26px,8.6vw,34px);padding:24px 0 34px}
#modal.result .completion-scene{--s:clamp(150px,31svh,262px)}
#modal.result .wc-res-canvas{padding:calc(var(--s)*.05)}
#modal.result .completion-scene .result-art{width:calc(var(--s)*.9);height:calc(var(--s)*.9)}
#modal.result .result-stats strong[data-count]::after{content:var(--unit,'')}
#modal.result .reward{padding:12px 76px}
#modal.result .modal-actions>.primary{font-size:22px}
#modal.result .modal-actions>.primary::after{font-size:34px;font-weight:400;margin-left:12px}
#modal.result .modal-actions>.secondary{min-height:58px;font-size:16px}
#modal.result .modal-actions .art-icon{width:28px;height:28px}
@media(max-height:620px){#modal.result .completion-scene{--s:clamp(96px,19svh,150px)}#modal.result .modal-actions>.secondary{min-height:42px;font-size:13px}#modal.result .reward{padding:6px 44px}}
#modal.result .completion-scene{--s:clamp(140px,28svh,236px);margin-top:6px}
#modal.result .wc-cheer{margin-top:-10px}
#modal.result .picture-title{margin-top:6px}
#modal.result .result-stats{margin-top:10px}
#modal.result .result-stats>div{padding:12px 8px;min-height:56px}
#modal.result .reward{margin-top:10px}
#modal.result .modal-actions{margin-top:10px}
/* The picture takes whatever height is left, so the whole sheet always fits one screen. */
#modal.result .completion-scene{--s:clamp(110px,calc(100svh - 600px),236px)}
#modal.result:has(.album-gift-earned,.gift-earned,.archive-note) .completion-scene{--s:clamp(96px,calc(100svh - 650px),220px)}
@media(max-height:620px){#modal.result .completion-scene{--s:clamp(70px,calc(100svh - 450px),150px)}#modal.result:has(.album-gift-earned,.gift-earned,.archive-note) .completion-scene{--s:clamp(64px,calc(100svh - 490px),140px)}}
@media(max-height:620px){#modal.result{padding-bottom:4px}#modal.result .result-collection{margin-top:2px}}

/* Narrow screens: stat chips drop their icons and tighten labels; 3 secondary buttons share one row. */
@media(max-width:360px){#modal.result .result-stats .wc-stat{display:none}#modal.result .result-stats>div{grid-template-columns:1fr;text-align:center;padding:8px 4px}#modal.result .result-stats span{grid-column:1;font-size:10px;line-height:1.15}#modal.result .result-stats strong{grid-column:1}
#modal.result .modal-actions>.secondary{font-size:12px;padding:4px}#modal.result .modal-actions>.secondary .art-icon{display:none}}
#modal.result .result-stats span:lang(ja){font-size:10px;line-height:1.15}
/* The easel is wider than the board; never let it widen the page (mobile browsers would zoom out). */
.game-screen{overflow-x:clip}
html,body{overflow-x:clip}

/* ===== Goal 2: every other screen in the same paper / brush language ===== */
/* Torn paper panel as a 9-slice, so tall or wide panels keep a thin deckled edge. */
.settings-section,.album-book,.album-resume,.art-card,.album-gift-panel,.collection-empty,.reward-card,.recovery-card,.update-notice,.small-card.gift-earned,#modal:not(.result),.coin-tip,.calendar-legend,.daily-calendar,.toast,#toast{
  background:none!important;border:22px solid transparent!important;border-image:url('../assets/wc/card-large.webp') 46 fill / 22px / 0 stretch!important;border-radius:0!important;box-shadow:none!important;outline:0}
.settings-section,.album-book,.album-resume,.art-card,.album-gift-panel{padding:0!important}
.settings-section>*,.album-resume>*{position:relative}
#modal:not(.result){padding:4px 6px 6px!important;color:var(--wc-ink)}
#modal:not(.result)::backdrop{background:#3b2d2055;backdrop-filter:blur(2px)}
#modal:not(.result) .eyebrow{color:#8a7f74;font-size:12px}
#modal:not(.result) #modal-title{color:var(--wc-ink);font-size:24px}
#modal:not(.result) p{color:var(--wc-ink-soft)}
/* Brush primary and paper secondary buttons everywhere */
#modal:not(.result) .primary,.settings .primary,.album-screen .primary,.collection-screen .primary{min-height:56px;background:url('../assets/wc/btn-primary.webp') center/100% 100% no-repeat!important;border:0!important;box-shadow:none!important;border-radius:0!important;color:#fff!important;text-shadow:0 1px 2px #8a1d2c66}
#modal:not(.result) .primary::after{display:none}
#modal:not(.result) .secondary,.settings .secondary,.collection-screen .secondary,.daily-tools .secondary:not(.home-screen *){min-height:48px;background:url('../assets/wc/btn-cream.webp') center/100% 100% no-repeat!important;border:0!important;box-shadow:none!important;border-radius:0!important;color:var(--wc-ink)!important}
#modal:not(.result) .secondary:disabled,#modal:not(.result) .primary:disabled{opacity:.5}
/* Coin guide bubble: paper with an ink tail */
.coin-tip{padding:6px 8px!important;color:var(--wc-ink)}
.coin-tip::before{background:#fbf6ea;border-color:#d9c9ae}
.coin-tip strong.earn{color:#4f7a3a}.coin-tip strong.spend{color:#b34a3a}
/* Toast on a paper slip */
#toast{padding:2px 10px!important;color:var(--wc-ink)!important}
/* Collection screen: titles in ink, tabs as paper labels, progress as watercolor bars */
.collection-screen h1,.collection-screen h2,.album-screen h1{color:var(--wc-ink)}
.collection-screen .eyebrow,.collection-screen .section-heading p{color:#8a7f74}
.collection-tabs button{min-height:44px;background:url('../assets/wc/btn-cream.webp') center/100% 100% no-repeat!important;border:0!important;box-shadow:none!important;border-radius:0!important;color:var(--wc-ink)!important}
.collection-tabs button[aria-pressed=true]{background-image:url('../assets/wc/btn-blue.webp')!important}
.collection-tabs button span,.collection-tabs .count{background:#fffdf7aa!important;color:var(--wc-ink)!important}
.album-book .progress,.album-resume .progress,.album-gift-panel .progress{height:10px;background:url('../assets/wc/bar-track.webp') center/100% 100% no-repeat!important;border:0;border-radius:0;box-shadow:none}
.album-book .progress>span,.album-resume .progress>span,.album-gift-panel .progress>span{background:url('../assets/wc/bar-fill.webp') left center/100% 100% no-repeat!important;border-radius:0;box-shadow:none}
.album-book img,.album-book .album-cover{border-radius:2px}
.album-book.current{animation:none}
.album-book h2,.album-book strong,.art-card strong,.art-card h3{color:var(--wc-ink)}
.art-card .thumb,.art-card canvas{background:#fffdf7;border-radius:0}
.album-resume .art-icon{width:40px;height:40px}
/* Settings: ink text, rose switches */
.settings h1{color:var(--wc-ink)}
.setting-row{border-color:#e4d6bf!important}
.setting-row strong{color:var(--wc-ink)}
.setting-row small,.setting-row p{color:#8a7f74}
.switch{background:#dccfb9!important;border:0!important;box-shadow:inset 0 1px 2px #6b553633!important}
.switch[aria-checked=true]{background:#d8384f!important}
.switch span{background:#fffdf7!important;box-shadow:0 1px 2px #5a3f2455!important}
.volume-control{accent-color:#d8384f}
.setting-row select{background:#fffdf7!important;border:1px solid #d9c9ae!important;color:var(--wc-ink)}
/* Calendar: paper day tiles */
.calendar-day{background:#fffdf7!important;border:1px solid #e4d6bf!important;color:var(--wc-ink)!important;border-radius:6px!important}
.calendar-day.collected{background:#e3eedb!important;border-color:#b7cfa6!important;color:#3f6a30!important}
.calendar-day.open,.calendar-day.resume{background:#e4eef8!important;border-color:#a9c3de!important;color:#2e5a86!important}
.calendar-day.future,.calendar-day.unavailable{background:#f1ebe0!important;color:#a99c8b!important}
.calendar-day[aria-current]{outline:2px solid #d8384f!important}
.calendar-heading button{background:url('../assets/wc/btn-round.webp') center/100% 100% no-repeat!important;border:0!important;box-shadow:none!important;border-radius:0!important;min-width:44px}
.calendar-week{color:#8a7f74!important}
.calendar-legend{padding:4px!important;border-width:16px!important;border-image-width:16px!important}
.calendar-legend li{background:#fffdf7;box-shadow:none;color:var(--wc-ink-soft)}
.switch{border-radius:20px!important}
/* Album paging and other round icon buttons outside the top bar */
.album-paging .icon-button,.album-paging button{background:url('../assets/wc/btn-round.webp') center/100% 100% no-repeat!important;border:0!important;box-shadow:none!important;border-radius:0!important}
.album-paging .art-icon{width:26px;height:26px}
.settings .section-heading,.settings>main>.eyebrow{padding-left:16px}
/* Gift / album announcements on home: ink text, watercolor play arrow */
.home-screen .small-card.gift-earned{display:flex;align-items:center;gap:10px;margin-top:12px;padding:6px 10px!important;color:var(--wc-ink)!important;font-size:15px}
.home-screen .small-card.gift-earned span{color:var(--wc-ink)!important}
.home-screen .small-card.gift-earned svg,.home-screen .small-card.gift-earned .art-icon{width:26px;height:26px;flex-shrink:0}
/* Done marks: small ink-green watercolor check instead of teal */
.check{background:#6f9a5a!important;border:2px solid #fffdf7!important;box-shadow:0 1px 2px #5a3f2444!important;color:#fffdf7!important}
/* Failure hearts use the painted heart images */
.fail-hearts i{width:1em;height:.9em;color:transparent!important;background:url('../assets/wc/heart-empty.webp') center/contain no-repeat}
.fail-hearts .breaking .half{color:transparent!important;background:url('../assets/wc/heart.webp') center/contain no-repeat}
/* Reward viewing sheet: pink ribbon label and ink title (no yellow kit ribbon) */
#modal.result:has(.reward-stage)>.eyebrow{display:block;margin:10px auto 8px;padding:16px 46px 22px;color:#5b2430;font-size:14px;text-shadow:none}
#modal.result:has(.reward-stage)>.eyebrow::before{width:100%;height:auto;aspect-ratio:1388/388;top:50%;background:url('../assets/wc/ribbon.webp') center/contain no-repeat}
#modal.result:has(.reward-art) #modal-title{color:var(--wc-ink);font-size:24px;text-shadow:none;margin:4px 0 10px}
#modal.result .reward-art{border-radius:2px;box-shadow:0 3px 8px #5a3f2433;border:6px solid #fffdf7}
#modal.result:has(.reward-art) p{color:var(--wc-ink-soft)}

/* Startup recovery: paper buttons */
.startup-recovery button{min-height:50px;padding:0 22px;background:url('../assets/wc/btn-cream.webp') center/100% 100% no-repeat!important;border:0!important;box-shadow:none!important;border-radius:0!important;color:var(--wc-ink)!important}
.startup-recovery button:first-of-type{background-image:url('../assets/wc/btn-primary.webp')!important;color:#fff!important}
.startup-recovery h1{color:var(--wc-ink)}.startup-recovery p{color:var(--wc-ink-soft)}

/* ===== User feedback 2026-10-06 ===== */
/* Curved ribbon title */
#modal.result #modal-title:has(.wc-arc){padding:0;margin:2px auto 0;width:min(100%,400px)}
#modal.result #modal-title:has(.wc-arc)::before{top:52%}
.wc-arc{display:block;width:100%;height:auto;overflow:visible}
.wc-arc text{font-family:'WC Jua',system-ui;font-size:44px;fill:#5b2430;paint-order:stroke;stroke:#fff6;stroke-width:2px}
.wc-arc path{stroke:none}
/* Balance pill on the result sheet */
#modal.result .wc-res-coins{position:relative;align-self:flex-end;display:inline-flex;align-items:center;gap:8px;height:40px;margin:2px 0 -4px;padding:0 18px 0 10px;background:url('../assets/wc/pill.webp') center/100% 100% no-repeat;color:var(--wc-ink);font:400 17px Georgia,serif}
#modal.result .wc-res-coins .coin{width:24px;height:24px;background:url('../assets/wc/coin.webp') center/contain no-repeat;color:transparent;font-size:0}
#modal.result .completion-scene{--s:clamp(104px,calc(100svh - 640px),230px)}
#modal.result:has(.album-gift-earned,.gift-earned,.archive-note) .completion-scene{--s:clamp(90px,calc(100svh - 690px),210px)}
@media(max-height:620px){#modal.result .wc-res-coins{height:32px;font-size:14px;margin-bottom:-8px}#modal.result .completion-scene{--s:clamp(64px,calc(100svh - 490px),140px)}#modal.result:has(.album-gift-earned,.gift-earned,.archive-note) .completion-scene{--s:clamp(58px,calc(100svh - 530px),130px)}.wc-arc text{font-size:40px}}
/* Canvas paper covers the whole frame so coordinates sit on the paper, not outside it */
.game-screen .board-frame::before{inset:-19px -16px -16px -30px}
/* Paper background painted on the root (iOS ignores fixed backgrounds and cut the washes under the tools) */
:root{background:#f4ecdc url('../assets/wc/bg-paper.webp') center top/100% 100% no-repeat;min-height:100%}
body{background:transparent!important;min-height:100svh}
@media(min-aspect-ratio:2/3){:root{background-size:cover;background-attachment:scroll}}
/* Home content keeps its natural size on tall screens. */
.home-screen main{display:flex;flex-direction:column}
.wc-month{width:22px!important;height:22px!important}
.home-screen main{flex-direction:row;flex-wrap:wrap;align-content:flex-start}
.home-screen main>*{width:100%}
.home-screen main>.daily-tools,.home-screen main>.home-help{width:50%}
img[src*="assets/wc/"]{height:auto}

/* ===== Goal 3: effects in watercolor tones ===== */
.board-frame.won{animation:wc-won 1.1s ease-out}
@keyframes wc-won{40%{filter:drop-shadow(0 0 10px #ffd46ecc) drop-shadow(0 0 22px #e88aa088)}}
.board-frame.region-done{animation:wc-region .6s ease-out}
@keyframes wc-region{35%{filter:drop-shadow(0 0 8px #9fc28a)}}
.praise{color:#fffdf7;-webkit-text-stroke-color:#5b2430;font-family:'WC Jua',system-ui}
.praise.level-2{-webkit-text-stroke-color:#2e5aa6}.praise.level-3{-webkit-text-stroke-color:#c8314a}.praise.level-4{-webkit-text-stroke-color:#b7791f}
/* Screen change: a paper wash in the destination's paint colour instead of bright plastic */
.paint-wipe{background:#f4ecdc url('../assets/wc/bg-paper.webp') center/cover!important}
.paint-wipe::before{content:'';position:absolute;inset:0;background:var(--wipe);opacity:.35;mix-blend-mode:multiply}
.paint-wipe.wipe-game{--wipe:#9fc28a}.paint-wipe.wipe-album{--wipe:#e7c46c}.paint-wipe.wipe-settings{--wipe:#e88aa0}.paint-wipe.wipe-home{--wipe:#8fb3df}
.tutorial-hand{filter:drop-shadow(0 3px 3px #563b2833)}
/* Rules link above the title never collides with it */
.game-screen .game-aside h1{margin-top:24px!important}
@media(max-height:660px){.game-screen .game-aside h1{margin-top:20px!important;font-size:19px}}
.game-screen .game-tools .tool>span:not(.sub):lang(ja),.game-screen .game-tools .tool>span:not(.sub):lang(en){font-size:13px;white-space:nowrap;letter-spacing:-.3px}
.home-screen .home-bottom .small-card h2:lang(ja){font-size:16px}
html[lang=ja] .game-screen .game-tools .tool>span:not(.sub){font-size:11.5px!important;letter-spacing:-.6px}
/* Collection screen sections keep the 16px page gutter */
.collection-screen main>section,.collection-screen .reward-shelf,.collection-screen .section-heading{padding-left:16px;padding-right:16px;box-sizing:border-box;max-width:100%}
.reward-shelf .reward-card{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;min-width:0}
.reward-shelf .reward-card-copy{flex:1}
.reward-shelf .reward-card-copy>span:last-child{margin-top:auto}
.collection-screen .reward-shelf h2,.collection-screen .reward-shelf p{overflow-wrap:anywhere}
.reward-locked{background:#f1ebe0!important;color:#8a7f74!important}
.collection-screen hr,.collection-screen .reward-shelf{border-top-color:#e4d6bf!important}
.collection-screen footer,.collection-screen .collection-footer,.collection-screen main>p:last-child{padding-left:16px;color:#8a7f74}

/* ===== Feedback 2026-10-06 (2) ===== */
/* One painted backdrop for every screen: a fixed layer the size of the whole screen (incl. the notch / Dynamic Island area), never stretched with the page. */
:root{background:#f4ecdc!important}
body::before{content:'';position:fixed;left:0;right:0;top:calc(-1 * env(safe-area-inset-top,0px));bottom:calc(-1 * env(safe-area-inset-bottom,0px));z-index:-1;background:#f4ecdc url('../assets/wc/bg-paper.webp') center/cover no-repeat;pointer-events:none;display:block!important}
body{isolation:isolate}
.shell{padding-top:env(safe-area-inset-top,0px)}
#modal.result,#modal.result::backdrop{background:#f4ecdc url('../assets/wc/bg-paper.webp') center/cover no-repeat!important}
#modal.result{padding-top:calc(max(10px,env(safe-area-inset-top)))}
/* Home: date-puzzle and how-to as small paper buttons */
.home-screen .daily-tools .secondary,.home-screen .home-help .text-button{height:38px;padding:0 16px;background:url('../assets/wc/btn-cream.webp') center/100% 100% no-repeat!important;text-decoration:none;color:var(--wc-ink);font-size:13px}
/* Result: the balance pill sits on the same line as the play screen's coin pill, above the ribbon */
#modal.result{position:fixed}
#modal.result .wc-res-coins{position:absolute;top:calc(12px + env(safe-area-inset-top,0px));right:14px;margin:0;height:46px;font-size:18px;z-index:3}
#modal.result #modal-title:has(.wc-arc){margin-top:50px}
@media(max-height:620px){#modal.result #modal-title:has(.wc-arc){margin-top:40px}#modal.result .wc-res-coins{height:36px;top:6px}}
#modal.result .completion-scene{--s:clamp(96px,calc(100svh - 650px),226px)}
/* No blue focus boxes on dialog buttons; keyboard focus gets a soft rose glow instead */
#modal button,#modal a{outline:none!important;-webkit-tap-highlight-color:transparent}
#modal button:focus-visible{filter:drop-shadow(0 0 4px #d8384f99)}
button,a{-webkit-tap-highlight-color:transparent}
/* Play canvas closer to the design: wider deckled paper, roomy margins, smaller pencil coordinates */
.game-screen .board-frame{width:min(100%,330px);margin-left:auto;margin-right:auto;padding:24px 22px 40px 38px}
.game-screen .board-frame::before{inset:-20px -18px -16px -30px}
.wc-coords .wc-rows{left:8px;top:24px;bottom:40px;width:28px}
.wc-coords .wc-cols{left:38px;right:22px;bottom:12px}
.wc-coords{font-size:11px;color:#6b6259}
.game-screen .board-frame .wc-easel{width:128%}
.game-screen .board-frame .wc-easel{top:calc(-31% - 46px)}
.game-screen .board-controls{margin-top:-4px;position:relative;z-index:2}
.game-screen .board-top::before{margin:-8px -6px}
.game-screen .board-top{width:min(100%,270px)}
.game-screen .board-frame .wc-easel{width:116%;top:calc(-27% - 30px)}

/* ===== Feedback 2026-10-06 (3) ===== */
/* Backdrop sized to the large viewport so it never rescales when the browser toolbars show/hide */
body::before{top:0;bottom:auto;height:100lvh;background-size:cover}
#modal.result,#modal.result::backdrop{background-size:auto 100lvh!important;background-position:center top!important}
#modal.result{height:100svh;max-height:none}
.home-screen.shell{padding-bottom:calc(98px + env(safe-area-inset-bottom))}
/* Screen change */
.paint-wipe.wc-wipe{inset:0;height:100lvh;transform:none;display:grid;place-items:center;background:#f4ecdc url('../assets/wc/bg-paper.webp') center top/auto 100lvh!important;animation:wc-wipe .5s ease-out forwards}
.paint-wipe.wc-wipe::before,.paint-wipe.wc-wipe::after{display:none!important}
.paint-wipe.wc-wipe img{width:70%;max-width:320px;opacity:.85;animation:wc-bloom .5s ease-out forwards}
@keyframes wc-wipe{0%{opacity:1}35%{opacity:1}100%{opacity:0}}
@keyframes wc-bloom{0%{transform:scale(.5) rotate(-8deg)}100%{transform:scale(1.7) rotate(6deg);opacity:0}}
/* Album paging arrows */
.wc-flip{display:inline-flex;transform:scaleX(-1)}
/* Text never hugs the screen edge */
.collection-screen main,.settings main,.album-screen main{padding-left:20px!important;padding-right:20px!important}
.collection-screen .reward-shelf,.collection-screen main>section,.collection-screen .section-heading{padding-left:4px;padding-right:4px}
.settings .section-heading,.settings>main>.eyebrow{padding-left:0}
#modal:not(.result){padding-left:10px!important;padding-right:10px!important}
#modal.result{padding-left:22px;padding-right:22px}
.game-screen .game-layout{padding-left:18px;padding-right:18px}
/* Album picture sheet: bigger picture on paper, stat chips centred whatever their count */
#modal.result>.result-art{width:min(62vw,240px);height:min(62vw,240px);margin:14px auto 6px;border:10px solid #fffdf7;border-radius:2px;box-shadow:0 4px 12px #5a3f2440;background:#fffdf7}
#modal.result .result-stats{grid-template-columns:repeat(auto-fit,minmax(0,1fr));justify-content:center}
#modal.result .result-stats:not(:has(.wc-stat))>div{grid-template-columns:1fr;text-align:center}
#modal.result .result-stats:not(:has(.wc-stat)) span,#modal.result .result-stats:not(:has(.wc-stat)) strong{grid-column:1}
main.settings{padding-left:20px!important;padding-right:20px!important;box-sizing:border-box}
.album-grid,.art-grid,.reward-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-width:100%}
.album-grid>*,.art-card,.album-book{min-width:0;max-width:100%}
.art-card *{overflow-wrap:anywhere}
/* ===== One 20px gutter everywhere: top-bar buttons, content, tab bar and sheets share the same vertical lines ===== */
:root{--wc-gutter:20px}
.topbar,.home-screen .topbar,.game-screen .topbar{padding-left:var(--wc-gutter)!important;padding-right:var(--wc-gutter)!important}
.home-screen main,.collection-screen main,main.settings,.album-screen main{padding-left:var(--wc-gutter)!important;padding-right:var(--wc-gutter)!important}
.game-screen .game-layout{padding-left:var(--wc-gutter)!important;padding-right:var(--wc-gutter)!important}
.game-screen .topbar .wc-help{right:0}
.game-screen .reference-guide{left:var(--wc-gutter)}
.bottom-nav{width:min(400px,calc(100vw - 2 * var(--wc-gutter)))!important}
#modal.result{padding-left:var(--wc-gutter)!important;padding-right:var(--wc-gutter)!important}
#modal.result .wc-res-coins{right:var(--wc-gutter)}
.collection-screen .reward-shelf,.collection-screen main>section,.collection-screen .section-heading{padding-left:0!important;padding-right:0!important}
.topbar .nav-actions{gap:10px!important}

/* ===== Feedback 2026-10-06 (4) ===== */
/* Backdrop painted on the page canvas itself: Safari draws the canvas under the Dynamic Island and the address bar, so the paper reaches every edge. Sized by lvh/vw only, so it never rescales while the toolbars move. */
:root{background:#f4ecdc url('../assets/wc/bg-paper.webp') center top/max(100vw,66.7lvh) auto repeat-y!important}
body::before{display:none!important}
/* Result sheet: transparent so the same page backdrop shows; the screen underneath is hidden while it is open */
#modal.result,#modal.result::backdrop{background:transparent!important}
body:has(#modal.result[open]) #app>.shell,body:has(#modal.result[open]) .wc-fade-host{visibility:hidden}
/* Plain canvas, larger board */
.game-screen .board-frame{width:min(100%,360px);padding:14px!important}
.game-screen .board-frame::before{inset:-14px -14px -12px -14px}
@media(max-height:760px){.game-screen .board-frame{padding:12px!important;width:min(100%,330px)}}
.game-screen .board-frame .wc-easel{top:calc(-27% - 18px)}
/* Crossfade between screens */
.wc-fade{position:fixed!important;left:0;right:0;margin:0 auto!important;z-index:60;pointer-events:none;animation:wc-fade-out .32s ease-in forwards}
@keyframes wc-fade-out{from{opacity:1;filter:blur(0)}to{opacity:0;filter:blur(3px)}}
#app>.shell{animation:wc-fade-in .32s ease-out both}
@keyframes wc-fade-in{from{opacity:0}to{opacity:1}}
.paint-wipe{display:none!important}
.game-screen .nav-actions .icon-button{width:48px!important;height:48px!important}
@media(prefers-reduced-motion:reduce){.wc-fade{display:none}#app>.shell{animation:none}}
.reduce-motion .wc-fade{display:none}.reduce-motion #app>.shell{animation:none}
.wc-fade-host{position:fixed;inset:0;z-index:60;pointer-events:none}
.wc-fade{animation-duration:.2s!important}
#app>.shell{animation:wc-fade-in .3s .1s ease-out both}
/* No text selection, image drag or long-press "Copy/Save" menu on decorative art and while playing */
img,.wc-easel,.wc-easel-top,.board-frame,.game-screen,.game-tools,.bottom-nav,.topbar,#modal{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-user-drag:none}
img{pointer-events:none}
button img,a img{pointer-events:none}
html,body,#app,#app *,#modal,#modal *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
img,canvas,a{-webkit-user-drag:none;user-drag:none}
input,select,textarea,#app input,#app textarea,#modal input,#modal textarea{-webkit-user-select:auto;user-select:auto;-webkit-touch-callout:default}
input,select,textarea{-webkit-user-select:auto;user-select:auto}
.album-shelf{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:15px 13px!important}
.album-shelf>.album-book:last-child:nth-child(odd){grid-column:1/-1;justify-self:center;width:calc(50% - 6.5px)}
/* Wide screens: no leftover corner decorations, master banner within the column */
.collection-screen::before,.collection-screen::after,.game-screen::before,.game-screen::after{display:none!important}
#master-banner{max-width:400px;margin-left:auto!important;margin-right:auto!important}

/* ===== Feedback 2026-10-06 (5) ===== */
.wc-fade-host{display:none!important}
#app>.shell{animation:wc-fade-in .22s ease-out both}
/* Backdrop reaches past both screen edges; no rubber-band scrolling that reveals its end */
html,body{overscroll-behavior:none}
:root{background-size:max(100vw,66.7lvh) auto!important;background-position:center calc(-1 * env(safe-area-inset-top,0px))!important}
/* Date calendar fits one screen with the close button visible */
#modal:has(.calendar-grid){max-height:calc(100svh - 16px);overflow-y:auto;margin:auto}
#modal:has(.calendar-grid) #modal-title{font-size:20px;margin:2px 0 4px}
#modal:has(.calendar-grid) .eyebrow{display:none}
#modal:has(.calendar-grid) .calendar-note{font-size:11.5px;line-height:1.4;margin:0}
#modal:has(.calendar-grid) .calendar-heading{margin:6px 0 4px}
#modal:has(.calendar-grid) .calendar-week{margin-bottom:2px}
.calendar-day{min-height:40px!important;padding:2px 0!important;gap:0!important}
.calendar-day small{font-size:9px!important}
.calendar-legend{margin:8px 0 0!important}
#modal:has(.calendar-grid) .modal-actions{margin-top:10px}
#modal:has(.calendar-grid) .modal-actions button{min-height:44px}
@media(max-width:360px) and (max-height:600px){
  #modal:has(.calendar-grid) .calendar-grid{gap:3px}
  #modal:has(.calendar-grid) .calendar-day{min-height:34px!important}
  #modal:has(.calendar-grid) .calendar-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 4px;padding:2px!important;border-width:12px!important;border-image-width:12px!important}
  #modal:has(.calendar-grid) .calendar-legend li{min-width:0;min-height:22px;padding:1px 3px;white-space:normal;font-size:10.5px;line-height:1.1}
  #modal:has(.calendar-grid) .calendar-legend .legend-chip{flex:none;min-width:20px;height:20px}
  #modal:has(.calendar-grid) .modal-actions{margin-top:4px}
}
/* Settings: backup buttons stack evenly; help / about as one centred pair */
.settings .setting-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:10px}
.settings .setting-actions>button:nth-child(3):last-child,.settings .setting-actions>button:nth-child(3){grid-column:1/-1}
.wc-links{display:flex;justify-content:center;gap:12px;margin:18px 0 8px}
.wc-links .text-button{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 18px;background:url('../assets/wc/btn-cream.webp') center/100% 100% no-repeat!important;text-decoration:none!important;color:var(--wc-ink);font-size:13px}
.wc-links .art-icon{width:20px;height:20px}

/* ===== Feedback 2026-10-06 (6) ===== */
/* Paper + its vertical mirror: repeats down any page length with no seam line */
:root{background:#f4ecdc url('../assets/wc/bg-paper-tile.webp') center calc(-1 * env(safe-area-inset-top,0px))/max(100vw,66.7lvh) auto repeat-y!important}
/* No page scrolling behind any open dialog (date calendar, help, results...) */
html:has(dialog[open]),html:has(dialog[open]) body{overflow:hidden}
dialog{overscroll-behavior:contain}
/* A heart that just broke stays the painted empty heart (no grey ♥ glyph on top once the animation ends) */
.game-screen .hearts i.just-lost,.game-screen .hearts i .half{color:transparent!important}
/* Result sheet coin pill opens the coin guide like the top-bar one */
#modal.result .wc-res-coins{cursor:pointer;-webkit-tap-highlight-color:transparent;outline:none}
#modal .coin-tip{position:fixed}
/* Easel canvas: full deckled paper, a little larger */
.game-screen .board-frame{--fw:min(calc(100vw - 28px),372px);width:var(--fw);margin-left:calc((100% - var(--fw)) / 2)!important;margin-right:0!important;padding:16px!important}
.game-screen .board-frame::before{inset:0;background-image:url('../assets/wc/canvas-paper.webp')}
@media(max-height:760px){.game-screen .board-frame{--fw:min(calc(100vw - 28px),356px);padding:14px!important}}
@media(max-height:680px){.game-screen .board-frame{--fw:min(calc(100vw - 28px),330px);padding:12px!important}}
.game-screen .board-controls{justify-content:center}
#modal.result .wc-res-coins{box-shadow:none!important;border:0!important;border-radius:0}
#modal.result .coin-tip{animation:pd-fade .18s ease-out both!important}
#modal,#modal:focus,#modal:focus-visible{outline:none}
/* Home scroll ends right under the last buttons, just above the tab bar (main had a second 120px bottom padding) */
.home-screen main{padding-bottom:8px!important}
/* Canvas rests on the easel tray: easel is 116% of the (square) frame wide, 1004/564 tall; its tray top sits at 65.7% of its height.
   0.657 x 1.16 x 1004/564 = 1.357 frame heights, so top = -35.7% puts the tray top on the canvas bottom; 5px more tucks the canvas into the groove. */
.game-screen .board-frame .wc-easel{width:116%!important;top:calc(-35.7% - 5px)!important}
/* Grid edge drawn on the canvas paper: brown ink line with a soft shade, so the puzzle reads apart from the paper */
.game-screen .board-viewport{box-shadow:0 0 0 2px #7a6550,0 0 0 3px #7a655033,0 2px 6px 2px #5a3f2422!important}

/* ---------- Picture campaign (pictures.js): GPT art from assets/pic, CSS only places it ---------- */
.picture-screen main,.slide-screen main{display:flex;flex-direction:column;align-items:center;gap:12px}
.pic-heading{text-align:center}.pic-heading .eyebrow{font-size:13px}
.pic-heading h1{margin:4px 0 0;font-family:'WC Jua',sans-serif;font-weight:400;font-size:clamp(24px,7vw,30px);color:var(--wc-ink)}
.pic-stage{position:relative;width:min(100%,380px);aspect-ratio:476/532}
.pic-stage-frame{position:absolute;inset:0;width:100%;height:100%}
.pic-stage-hole{position:absolute;left:19.3%;top:26.7%;right:19.5%;bottom:18.9%}
.pic-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2px;width:100%;height:100%}
.pic-cell{position:relative;display:grid;place-items:center;padding:0;border:0;background:none;min-width:0}
.pic-cell canvas,.pic-cell img{position:absolute;inset:0;width:100%;height:100%}
.pic-cell.blank img{opacity:.8}
.pic-cell.next{background:#fff8ef;cursor:pointer}
.pic-cell.next img{inset:-12%;width:124%;height:124%;max-width:none;animation:pic-pulse 1.6s ease-in-out infinite}
.pic-cell.next span{position:relative;font-family:'WC Jua',sans-serif;font-size:14px;color:var(--wc-rose)}
.pic-cell.reveal canvas{animation:pic-reveal .9s cubic-bezier(.2,.8,.2,1.2)}
.pic-stage.fin .pic-whole{display:block;width:100%;height:100%}
.pic-steps{display:flex;align-items:center;gap:5px;margin:0;padding:0;list-style:none}
.pic-steps li{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font:11px 'WC Jua',sans-serif;background:#efe4cf;color:#a8957a}
.pic-steps li.on{background:#7fa38a;color:#fff}
.pic-steps li.last{width:32px;height:32px;background:none}.pic-steps li.last img{width:100%;height:100%;filter:grayscale(.8) opacity(.55)}.pic-steps li.last.on img{filter:none}
.pic-go{min-width:240px}
.pic-note,.pic-shelf-note{margin:0;max-width:330px;font-size:14px;line-height:1.5;color:var(--wc-ink-soft);text-align:center}
.pic-shelf-note{margin:4px auto 0;font-size:13px}
/* Album shelf */
.pic-album{margin:4px 0 18px}
.pic-album-head{display:flex;align-items:center;gap:12px}
.pic-book{width:92px;height:auto;flex:none}
.pic-album-title{display:flex;flex-direction:column;gap:2px;text-align:left}
.pic-album-title strong{font-family:'WC Jua',sans-serif;font-weight:400;font-size:20px;color:var(--wc-ink)}
.pic-album-count{font-size:13px;color:var(--wc-ink-soft)}
.pic-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:8px}
.pic-card{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0;padding:0;border:0;background:none;text-align:center;cursor:pointer}
.pic-card:disabled{cursor:default}
.pic-thumb{position:relative;display:block;width:100%;aspect-ratio:1}
.pic-thumb-art{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.pic-in-frame{position:absolute;left:22.5%;top:26.7%;width:54.7%;height:54.5%}
.pic-mini{position:absolute;left:16%;top:21%;width:68%;height:68%;display:grid;grid-template-columns:repeat(3,1fr);gap:1px}
.pic-mini canvas{width:100%;height:100%;display:block}
.pic-card.locked .pic-thumb-art{opacity:.8}
.pic-card.current .pic-thumb{filter:drop-shadow(0 0 6px rgba(216,56,79,.45))}
.pic-card-name{font-family:'WC Jua',sans-serif;font-size:15px;color:var(--wc-ink);overflow-wrap:anywhere}
@media(max-width:360px){html[lang=ja] .pic-card-name{font-size:12px;word-break:auto-phrase;text-wrap:pretty}}
.pic-card-sub{font-size:12px;color:var(--wc-ink-soft)}
.pic-minimap{display:grid;grid-template-columns:repeat(3,9px);gap:2px;flex:none}
.pic-minimap i{width:9px;height:9px;border-radius:2px;background:#e7dbc4}.pic-minimap i.got{background:#a9c3ae}.pic-minimap i.here{background:var(--wc-rose)}
/* Level 10: the wooden tray. Board = the tray floor measured on tray.webp. */
.slide-guide{min-height:40px;margin:0;max-width:340px;font-size:14px;line-height:1.45;color:var(--wc-ink-soft);text-align:center}
.slide-tray{position:relative;width:min(92vw,360px);aspect-ratio:740/732}
.slide-tray-art{position:absolute;inset:0;width:100%;height:100%}
.slide-board{position:absolute;left:9.7%;top:8.7%;right:8.6%;bottom:10.4%;outline:none;touch-action:none}
.slide-piece,.slide-slot{position:absolute;width:calc(100%/3);height:calc(100%/3);left:calc(var(--x)*100%/3);top:calc(var(--y)*100%/3);padding:0;border:0;background:none;transition:left .16s ease-out,top .16s ease-out}
.slide-board .slide-piece canvas,.slide-slot canvas{position:absolute;inset:4%;width:92%;height:92%;border-radius:4px;box-shadow:0 2px 0 rgba(60,40,20,.35);transition:inset .5s,width .5s,height .5s,border-radius .5s,box-shadow .5s}
.piece-edge{display:none}
.slide-piece.home canvas{box-shadow:0 2px 0 rgba(60,40,20,.35),0 0 0 2px rgba(127,163,138,.9)}
.slide-piece.hinted canvas{animation:pic-hinted 1s ease-in-out 2}
.slide-piece.nope canvas{animation:pic-nope .25s}
.slide-slot .slot-glow{position:absolute;left:-66%;top:-66%;width:227%;height:227%;max-width:none;opacity:0;pointer-events:none;transition:opacity .3s}
.slide-board.assembled .slot-glow{opacity:1;animation:pic-glow 1.1s ease-in-out infinite}
.slide-board.assembled .slide-slot{cursor:pointer;z-index:2}
.slide-board.merging .slide-piece canvas,.slide-board.merging .slide-slot canvas{inset:0;width:100%;height:100%;border-radius:0;box-shadow:none}
.slide-board.merging .slot-glow{opacity:0;animation:none}
.slide-peek{position:absolute;inset:0;width:100%;height:100%;border-radius:4px;opacity:0;pointer-events:none;transition:opacity .15s;z-index:3}
.slide-board.peeking .slide-peek{opacity:.92}
.slide-last{display:flex;align-items:center;gap:12px}
.slide-dish{position:relative;width:96px;height:94px;display:grid;place-items:center}
.slide-dish>img{position:absolute;inset:0;width:100%;height:100%}
.last-piece{position:relative;width:54px;height:54px;padding:0;border:0;background:none}
.last-piece canvas,.slide-flying canvas{position:absolute;inset:0;width:100%;height:100%;border-radius:4px;box-shadow:0 2px 0 rgba(60,40,20,.35)}
.last-piece canvas{filter:grayscale(.45) opacity(.6)}
.slide-last.ready .last-piece canvas{filter:none;animation:pic-bob 1s ease-in-out infinite}
.slide-last-label{font-family:'WC Jua',sans-serif;font-size:15px;color:var(--wc-ink-soft)}
.slide-last.ready .slide-last-label{color:var(--wc-rose)}
.slide-flying{position:fixed;z-index:60;margin:0;padding:0;border:0;background:none;pointer-events:none}
.slide-tools .tool-pic{width:30px;height:auto}
/* Finish sheet */
.pic-finale{position:relative;width:min(74vw,290px);margin:6px auto 0}
.pic-finale-frame{position:relative;display:block;aspect-ratio:728/756}
.pic-finale-frame img{position:absolute;inset:0;width:100%;height:100%}
.pic-finale-frame canvas{position:absolute;left:14%;top:20.1%;width:70.9%;height:68.3%}
.pic-plate{position:relative;display:grid;place-items:center;width:64%;margin:-3% auto 0;aspect-ratio:384/116}
.pic-plate img{position:absolute;inset:0;width:100%;height:100%}
.pic-plate strong{position:relative;font-family:'WC Jua',sans-serif;font-weight:400;font-size:14px;color:#5b4524}
.pic-spark{position:absolute;width:32%;height:auto;pointer-events:none;z-index:2;opacity:.85}
.pic-spark.s1{left:-14%;top:-8%}.pic-spark.s2{right:-14%;top:4%}.pic-spark.s3{left:-12%;bottom:12%}.pic-spark.s4{right:-12%;bottom:4%}
.pic-finale.celebrate .pic-spark{opacity:0;animation:pic-spark .7s cubic-bezier(.2,.9,.3,1.3) forwards}
.pic-finale.celebrate .s2{animation-delay:.15s}.pic-finale.celebrate .s3{animation-delay:.3s}.pic-finale.celebrate .s4{animation-delay:.45s}
.pic-finale.celebrate canvas{animation:pic-art 1.1s ease-out}
@keyframes pic-pulse{50%{transform:scale(1.05);opacity:.8}}
@keyframes pic-reveal{0%{clip-path:circle(0% at 50% 50%);transform:scale(.85)}70%{transform:scale(1.05)}100%{clip-path:circle(75% at 50% 50%);transform:scale(1)}}
@keyframes pic-hinted{50%{transform:scale(.9);box-shadow:0 0 0 4px #edbb5c}}
@keyframes pic-nope{30%{transform:translateX(-3px)}70%{transform:translateX(3px)}}
@keyframes pic-glow{50%{filter:brightness(1.15);transform:scale(1.04)}}
@keyframes pic-bob{50%{transform:translateY(-5px) rotate(-4deg)}}
@keyframes pic-spark{from{opacity:0;transform:scale(.3) rotate(-20deg)}to{opacity:.9;transform:scale(1) rotate(0)}}
@keyframes pic-art{from{filter:saturate(.2) brightness(1.2)}}
.reduce-motion .pic-cell.next img,.reduce-motion .slide-board.assembled .slot-glow,.reduce-motion .slide-last.ready .last-piece canvas{animation:none}
@media (prefers-reduced-motion:reduce){.pic-cell.next img,.pic-cell.reveal canvas,.slide-board.assembled .slot-glow,.slide-last.ready .last-piece canvas,.pic-finale.celebrate .pic-spark{animation:none;opacity:.85}.slide-piece,.slide-slot{transition:none}}
.picture-screen .pic-go{display:flex;align-items:center;justify-content:center;gap:10px;width:min(100%,300px);min-height:62px;padding:0 24px;background:url('../assets/wc/btn-primary.webp') center/100% 100% no-repeat!important;border:0!important;box-shadow:none!important;border-radius:0!important;color:#fff!important;font:700 20px/1 'WC Jua',system-ui;text-shadow:0 1px 2px #8a1d2c66}

/* Picture campaign polish 1: album sections on torn paper, numbered sketchbooks, lock badges, easel note map, height-fit frame */
.pic-album{margin:0 0 14px;padding:4px 2px 8px;border:22px solid transparent;border-image:url('../assets/wc/card-large.webp') 46 fill / 22px / 0 stretch}
.pic-album-head{gap:10px;margin-top:-6px}
.pic-book{position:relative;width:84px;flex:none;display:block}
.pic-book img{display:block;width:100%;height:auto}
.pic-book b{position:absolute;left:52%;top:46%;transform:translate(-50%,-50%);font:400 19px/1 'WC Jua',sans-serif;color:#3c4f78}
.pic-album-title{flex:1;min-width:0}
.pic-album-title .eyebrow{margin:0}
.pic-album-title strong{font-size:19px;line-height:1.15}
.pic-album-meter{display:flex;align-items:center;gap:8px;margin-top:4px}
.pic-album-meter .progress{flex:1;display:block;height:11px;background:url('../assets/wc/bar-track.webp') center/100% 100% no-repeat;overflow:hidden}
.pic-album-meter .progress>span{display:block;height:100%;background:url('../assets/wc/bar-fill.webp') left center/100% 100% no-repeat}
.pic-album-count{flex:none;font-family:'WC Jua',sans-serif;font-size:14px}
.pic-cards{gap:6px;margin-top:6px}
.pic-card-name{font-size:14px;line-height:1.2}
.pic-card.fin .pic-card-sub{color:#5d8a68}
.pic-card.locked .pic-thumb-art{opacity:.7;filter:saturate(.6)}
.pic-card.locked .pic-card-name{color:#a6998a}
.pic-lock{position:absolute;left:50%;top:50%;width:30%;height:auto;transform:translate(-50%,-46%);filter:drop-shadow(0 2px 2px rgba(60,40,20,.3))}
/* Where this tile sits: a sketch note pinned at the top right of the easel */
.game-screen .board-top{position:relative}
.board-top>.pic-minimap{position:absolute;left:0;top:-40px;z-index:4;width:46px;height:auto;display:block;transform:rotate(-4deg);filter:drop-shadow(0 3px 3px rgba(60,40,20,.25));pointer-events:none}
.pic-minimap img{display:block;width:100%;height:auto}
.pic-minimap .pic-minimap-grid{position:absolute;left:16%;top:21%;width:68%;height:63%;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:1px}
.pic-minimap-grid canvas,.pic-minimap-grid i{display:block;width:100%;height:100%;border-radius:1px}
.pic-minimap-grid i.here{background:rgba(216,56,79,.25);box-shadow:inset 0 0 0 2px var(--wc-rose)}
/* The framed picture shrinks with the screen height so the main button stays above the tab bar */
.pic-stage{width:min(100%,380px,max(220px,calc((100svh - 340px)*476/532)))}
.picture-screen main{padding-bottom:110px}
/* Picture polish 2: the sliding guide sits on a paper chip like the play screen's notes */
.slide-screen .slide-guide{min-height:0;padding:9px 16px;background:url('../assets/wc/chip.webp') center/100% 100% no-repeat;font:500 13px/1.45 'WC Jua',system-ui;color:var(--wc-ink)}
.picture-screen .pic-note{font-size:13px}

/* Picture polish 3: level steps, card badges, desk props and the move counter drawn with watercolor art */
.pic-steps{gap:3px}
.pic-steps li{position:relative;width:27px;height:27px;background:none;border-radius:0;color:#8f7d66}
.pic-steps li>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.pic-steps li>b{position:relative;font:400 12px/1 'WC Jua',sans-serif}
.pic-steps li:not(.on):not(.now):not(.last)>img{opacity:.75}
.pic-steps li:not(.on):not(.now):not(.last)>b{color:#b3a48e}
.pic-steps li.on{background:none}
.pic-steps li.on>img{inset:0;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 1px 1px rgba(60,40,20,.2))}
.pic-steps li.now::after{content:'';position:absolute;inset:-6px;background:url('../assets/pic/next-ring.webp') center/100% 100% no-repeat;animation:pic-pulse 1.6s ease-in-out infinite}
.pic-steps li.now>b{color:var(--wc-rose)}
.pic-steps li.last{width:34px;height:34px}
.pic-stage{isolation:isolate}
.pic-prop{position:absolute;height:auto;pointer-events:none}
.pic-prop.splat{left:-14%;top:30%;width:44%;z-index:-1;opacity:.55}
.pic-prop.vase{left:-6%;bottom:-3%;width:17%;z-index:2;transform:rotate(-4deg);filter:drop-shadow(0 4px 4px rgba(60,40,20,.25))}
.pic-prop.brush{right:-7%;bottom:-2%;width:21%;z-index:2;transform:rotate(8deg);filter:drop-shadow(0 4px 4px rgba(60,40,20,.25))}
.pic-badge{position:absolute;right:-2%;top:-4%;width:32%;height:auto;z-index:2;pointer-events:none;filter:drop-shadow(0 2px 2px rgba(60,40,20,.25))}
.pic-card{position:relative}
.slide-moves{display:inline-flex;align-items:center;gap:6px;padding:7px 16px 7px 10px;background:url('../assets/wc/pill.webp') center/100% 100% no-repeat;font:400 14px/1 'WC Jua',sans-serif;color:var(--wc-ink)}
.slide-moves img{width:24px;height:auto}
.slide-moves b{font-weight:400;font-size:17px;color:var(--wc-rose);min-width:1.4em;text-align:center}
@media (prefers-reduced-motion:reduce){.pic-steps li.now::after{animation:none}}
.reduce-motion .pic-steps li.now::after{animation:none}
.pic-cell.next span{white-space:nowrap;font-size:13px}
.pic-cell.next span:lang(ja),.pic-cell.next span:lang(en){font-size:11px}

/* Picture polish 4: dedicated GPT art for steps, badges, desk props and the move counter (assets/pic, C group) */
.pic-steps{position:relative;padding:0 2px}
.pic-steps::before{content:'';position:absolute;left:12px;right:20px;top:50%;height:6px;transform:translateY(-50%);background:url('../assets/pic/dot-line.webp') left center/auto 100% repeat-x;opacity:.55;z-index:-1}
.pic-steps li{width:28px;height:28px}
.pic-steps li.now::after{content:none}
.pic-steps li.now{animation:pic-pulse 1.6s ease-in-out infinite}
.pic-steps li.on>img{filter:none}
.pic-steps li:not(.on):not(.now):not(.last)>img{opacity:1}
.pic-steps li:not(.on):not(.now):not(.last)>b{color:#9d8c74}
.pic-steps li.now>b{color:var(--wc-rose)}
.pic-steps li.last{width:36px;height:36px}
.pic-steps li.last>img{filter:none}
.pic-prop.palette{left:-9%;bottom:-6%;width:22%;transform:none}
.pic-prop.jar{right:-6%;bottom:-4%;width:12%;transform:rotate(3deg)}
.pic-badge.rosette{right:-1%;top:-6%;width:24%}
.pic-badge.bookmark{right:10%;top:-5%;width:13%;filter:drop-shadow(0 2px 1px rgba(60,40,20,.25))}
.slide-moves{padding:4px 8px 4px 16px;gap:8px}
.slide-counter{position:relative;display:grid;place-items:center;width:34px;height:34px}
.slide-counter img{position:absolute;inset:0;width:100%;height:100%}
.slide-counter b{position:relative;font-size:15px;color:#5b4524;min-width:0}
.slide-last{position:relative}
.slide-pencils{width:46px;height:auto;margin-left:4px;transform:rotate(-8deg);filter:drop-shadow(0 2px 2px rgba(60,40,20,.25))}
.reduce-motion .pic-steps li.now{animation:none}
@media (prefers-reduced-motion:reduce){.pic-steps li.now{animation:none}}
.pic-prop.palette{left:-3%}
.pic-prop.jar{right:-2%}

/* ---------- Feedback 2026-10-06 (picture polish 5) ---------- */
/* Picture screen: props stand in front of the frame corners, fully visible, never over the tiles */
.pic-prop.palette{left:-2%;bottom:-3%;width:17%;z-index:5}
.pic-prop.jar{right:-1%;bottom:-2%;width:10%;z-index:5}
/* Every cell is the same square: painted tiles, question papers and the next-level cell */
.pic-grid{gap:3px}
.pic-cell{overflow:visible;aspect-ratio:1}
.pic-cell canvas{inset:0;width:100%;height:100%;border-radius:2px}
.pic-cell.blank img{left:-6.2%;top:-6.6%;width:113.9%;height:115.6%;opacity:1}
.pic-cell.next{background:#fff8ef;border-radius:3px}
.pic-cell.next img{left:-4.3%;top:-4.4%;width:109.3%;height:110.4%;inset:auto;animation:pic-pulse 1.6s ease-in-out infinite}
/* Album cards: badges sit on the card, softened to the paper tone */
.pic-badge.rosette{right:7%;top:1%;width:21%;filter:saturate(.75) sepia(.12) drop-shadow(0 1px 1px rgba(60,40,20,.2))}
.pic-badge.bookmark{right:18%;top:2%;width:10%;filter:saturate(.7) sepia(.1) drop-shadow(0 1px 1px rgba(60,40,20,.2))}
/* Collection tabs span the same width as the cards below */
.collection-tabs{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:8px!important;width:100%;margin-left:0;margin-right:0}
.collection-tabs button{justify-content:center;min-height:48px!important;padding:8px 6px!important;font-size:13px!important}
/* Home: card text keeps the same breathing room as the resume card */
.home-screen .home-bottom .small-card{padding:24px 20px 14px}
/* Home: the two small buttons line up with the cards above (two columns, same gap) */
.home-screen main{display:flex;flex-wrap:wrap;column-gap:12px;align-content:flex-start}
.home-screen main>*{width:100%}
.home-screen main>.daily-tools,.home-screen main>.home-help{width:calc(50% - 6px)!important;margin-top:12px!important;display:flex}
.home-screen main>.daily-tools>*,.home-screen main>.home-help>.text-button{flex:1;justify-content:center;width:100%;height:50px!important;font-size:14px!important}
.home-screen main>.overall-progress{display:none}
/* Play screen: the back button label reads clearly */
.topbar .wc-back .wc-label{font:700 15px/1 'WC Jua',system-ui;color:#2f2a26;letter-spacing:.01em}
.topbar .wc-back .art-icon{width:24px;height:24px}
/* Tool tiles: the icon sits on the watercolor blot, the label below it */
.game-screen .game-tools .tool,.game-screen .game-tools .tool.active{position:relative;justify-content:flex-end;padding-bottom:9px}
.game-screen .game-tools .tool .art-icon,.game-screen .game-tools .tool .tool-pic{position:absolute;left:50%;top:44%;transform:translate(-50%,-50%);margin:0}
.game-screen .game-tools .tool>span:not(.sub){position:relative}
.slide-tools .tool .tool-pic{width:40px}
.home-screen .home-bottom .small-card{min-height:178px}
.home-screen main>.daily-tools,.home-screen main>.home-help{margin-top:10px!important}
.home-screen main>.daily-tools>*,.home-screen main>.home-help>.text-button{height:46px!important}
@media (max-width:360px){.home-screen .home-bottom .small-card{padding:20px 14px 12px}.home-screen .home-bottom .small-card p{font-size:11.5px;line-height:1.4;max-width:none}}
@media (max-width:360px){.home-screen .home-bottom .small-card h2:lang(ja){font-size:15px;white-space:nowrap}.home-screen .home-bottom .small-card p:lang(ja){font-size:11px;margin-top:4px}.home-screen main>.daily-tools>*,.home-screen main>.home-help>.text-button{font-size:12px!important;white-space:nowrap;padding:0 8px!important}}
@media (max-height:700px),(max-width:360px){.game-screen .game-tools .tool .art-icon,.game-screen .game-tools .tool .tool-pic{top:36%;width:28px!important;height:28px!important}.game-screen .game-tools .tool,.game-screen .game-tools .tool.active{padding-bottom:6px;font-size:11.5px}}
.slide-tools .tool[data-action="slideUndo"]{background-image:url('../assets/wc/tile-green.webp')!important}
.slide-tools .tool[data-action="slideHint"]{background-image:url('../assets/wc/tile-yellow.webp')!important}
.slide-tools .tool#peek{background-image:url('../assets/wc/tile-blue.webp')!important}
.game-screen .game-tools .tool[data-action="hint"] .art-icon{top:38%}
.slide-screen .game-tools.slide-tools{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;width:100%;max-width:420px;margin:0 auto}
.slide-screen .game-tools.slide-tools .tool{width:100%;max-width:none}
.pic-badge.rosette,.pic-badge.bookmark{filter:drop-shadow(0 1px 1px rgba(60,40,20,.2))}
@media (min-width:361px){.home-screen .home-bottom .small-card{padding-top:20px}}
/* Bookmark tucked into the top edge of the sketch, hanging down like a ribbon in a book */
.pic-badge.bookmark{left:20%;right:auto;top:-3%;width:12%;z-index:2}
/* Polish 7: tool tile labels were pushed to the right edge by justify-content:flex-end on a grid; center them and keep the hint counter clear of the icon */
.game-screen .game-tools .tool,.game-screen .game-tools .tool.active{justify-content:center;justify-items:center;align-content:end;text-align:center}
.game-screen .game-tools .tool>span:not(.sub),.game-screen .game-tools .tool .sub{width:100%;text-align:center}
.game-screen .game-tools .tool[data-action="hint"]{padding-bottom:7px}
.game-screen .game-tools .tool[data-action="hint"] .art-icon{top:34%}
.home-screen .home-bottom .small-card p{text-wrap:balance}
.pic-finale-frame canvas{left:14.5%}
/* Japanese phrase-aware wrapping: no orphaned "ます" on the narrow home cards */
.home-screen .home-bottom .small-card p:lang(ja){word-break:auto-phrase;text-wrap:pretty}
/* Home date/help buttons: same width in every language (the date button shrank to its text) */
.home-screen main>.daily-tools>.secondary{width:100%!important;min-width:0}
/* Collection tabs in Japanese at 320px: label and count no longer overlap */
html[lang=ja] .collection-tabs button{font-size:11px!important;letter-spacing:0!important;gap:3px!important;padding:6px 4px!important;flex-wrap:wrap;line-height:1.15;text-align:center}
html[lang=ja] .collection-tabs button span{min-width:0!important;padding:0 5px!important;font-size:11px!important}
@media(max-width:360px){html[lang=ja] .collection-tabs button{flex-direction:column;flex-wrap:nowrap;min-height:52px!important;gap:2px!important}}
@media(max-width:499px){html[lang=ja] .pic-album-title strong{font-size:clamp(15px,4vw,18px);word-break:auto-phrase;text-wrap:balance}}
/* Finale: hanging paper tag (GPT art) replaces the title plate; the title already sits on the ribbon */
.pic-finale .pic-plate{width:56%;margin:-6% auto 0;aspect-ratio:548/316;z-index:2}
.pic-finale .pic-plate strong{position:relative;width:78%;margin-top:12%;text-align:center;font-size:13px;line-height:1.25;color:#5b4524;text-wrap:balance}
/* Result: the coin pill and primary button never wrap or overflow in en/ja at 320px */
#modal.result .reward,#modal.result .reward .reward-text{white-space:nowrap}
#modal.result .reward{padding-left:clamp(36px,12vw,64px);padding-right:clamp(36px,12vw,64px);max-width:100%}
@media(max-width:360px){#modal.result .modal-actions>.primary{font-size:clamp(15px,5.4vw,19px);white-space:nowrap;padding-left:22px;padding-right:22px}#modal.result .modal-actions>.primary::after{margin-left:6px}}
.pic-finale .pic-plate{width:66%;margin-top:-8%}
.pic-finale .pic-plate strong{width:84%;margin-top:13%;font-size:12px;line-height:1.2}
html[lang=ko] .pic-finale .pic-plate strong{font-size:14px;width:80%}
.pic-finale .pic-plate strong{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;width:80%;margin-top:15%;font-size:12px;line-height:1.08;white-space:nowrap}
.pic-finale .pic-plate-size{font-size:11px;letter-spacing:.02em}
html[lang=ko] .pic-finale .pic-plate strong{width:80%;font-size:13px}
@media(max-width:360px){html[lang=en] .pic-finale .pic-plate-caption,html[lang=ja] .pic-finale .pic-plate-caption{font-size:11px}}
/* Settings backup block: columns may shrink and Japanese text wraps instead of being cut at 320px */
.settings .setting-actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
.settings .setting-actions>button{min-width:0;white-space:normal;line-height:1.2;padding-left:8px;padding-right:8px}
.settings .settings-section p,.settings .setting-row p{overflow-wrap:anywhere;word-break:normal}
html[lang=ja] .settings .settings-section p{word-break:auto-phrase;letter-spacing:0}
@media(max-width:360px){html[lang=ja] .settings .setting-actions>button{letter-spacing:0!important}}
/* Press feedback (flatten, then spring back) for the cards and tabs that had none */
.collection-tabs button,.pic-card,.pic-cell,.art-card,.pic-go,.resume-card .primary{transition:transform .14s cubic-bezier(.3,1.6,.5,1)}
.collection-tabs button:active,.pic-card:active,.art-card:active,.pic-cell:not(.locked):active,.pic-go:active{transform:translateY(2px) scale(.97,.94);transition-duration:.06s}
.reduce-motion .collection-tabs button,.reduce-motion .pic-card,.reduce-motion .pic-cell,.reduce-motion .art-card,.reduce-motion .pic-go{transition:none}
.reduce-motion .collection-tabs button:active,.reduce-motion .pic-card:active,.reduce-motion .art-card:active,.reduce-motion .pic-cell:active,.reduce-motion .pic-go:active{transform:none}
@media(prefers-reduced-motion:reduce){.collection-tabs button,.pic-card,.pic-cell,.art-card,.pic-go{transition:none}.collection-tabs button:active,.pic-card:active,.art-card:active,.pic-cell:active,.pic-go:active{transform:none}}
.calendar-day:not(:disabled){transition:transform .14s cubic-bezier(.3,1.6,.5,1)}.calendar-day:not(:disabled):active{transform:translateY(2px) scale(.94)}
.reduce-motion .calendar-day,.reduce-motion .calendar-day:active{transition:none;transform:none}
@media(prefers-reduced-motion:reduce){.calendar-day,.calendar-day:active{transition:none;transform:none}}
/* Classic album covers: one GPT watercolor painting per album (replaces the cartoon atlases) */
.book-cover img.pic-cover{position:absolute;inset:0;left:0!important;top:0!important;width:100%!important;height:100%!important;object-fit:contain;border-radius:0}
/* Settings pattern preview uses the GPT paint chips */
.pattern-preview{display:flex;gap:8px;margin-top:10px}.pattern-preview img{width:30px;height:30px;object-fit:contain}.pattern-preview i{display:none}
.book-cover:has(.pic-cover){background:none!important;box-shadow:none!important;border:0!important}
/* Tutorial hint pill: centered, balanced two-line text that stays inside the paper chip (en/ja at 320px) */
.game-screen:has(.lesson-guide) .board-status{display:flex;align-items:center;justify-content:center;text-align:center;min-height:38px;padding:5px 18px;line-height:1.15;text-wrap:balance;overflow-wrap:anywhere}
@media(max-width:360px){html:not([lang=ko]) .game-screen:has(.lesson-guide) .board-status{font-size:11px;padding:4px 16px}}
/* Locked classic albums read as "not yet": muted cover, current/open ones stay vivid */
.album-book.locked-book .pic-cover{filter:saturate(.3) brightness(1.04);opacity:.72}
/* Album titles: phrase-aware wrapping in Japanese, balanced lines elsewhere */
.album-book .book-info h2{text-wrap:balance}
html[lang=ja] .album-book .book-info h2{word-break:auto-phrase}
/* Fresh, not yet started album: the rose sticker (GPT art) on the cover corner */
.book-cover .book-new{position:absolute;left:4px;top:4px;width:34px;height:auto;z-index:3;pointer-events:none;filter:drop-shadow(0 1px 1px rgba(60,40,20,.25))}
.reduce-motion .book-cover .book-new{animation:none}
/* Safari report (classic album result): the test-only master banner showed through the result sheet, and tall phones left the easel small with empty space below */
body:has(#modal.result[open]) #master-banner{visibility:hidden}
@media(min-height:780px){#modal.result .completion-scene{--s:clamp(150px,21svh,230px)}}
/* Praise pops near the top of the board so it never covers the numbers (seen in 3-language frame capture) */
.board-frame .praise{top:16%}
/* Result/finish sheets: 0.4s tighter staging (reward was 1.15s, buttons 1.4s after the sheet opened). JS coin timers in flyCoins() follow. */
#modal.result[open]:not(:has(.reward-stage))>:is(strong,p,div:not(.modal-actions):not(.result-stats):not(.completion-scene)){animation-delay:.5s}
#modal.result[open]>.result-stats>div:nth-child(1){animation-delay:.6s}
#modal.result[open]>.result-stats>div:nth-child(2){animation-delay:.68s}
#modal.result[open]>.result-stats>div:nth-child(3){animation-delay:.76s}
#modal.result[open] .reward{animation-delay:.75s}
#modal.result[open] .modal-actions>*:nth-child(1){animation-delay:1s}
#modal.result[open] .modal-actions>*:nth-child(2){animation-delay:1.08s}
#modal.result[open] .modal-actions>*:nth-child(n+3){animation-delay:1.16s}
.book-cover .book-new{left:-3px;top:-3px}
/* Slide hint chip: balanced lines inside the paper chip in ja/en at 320px (a stray "1 / 8" line used to leak out of the chip) */
.slide-screen .slide-guide{text-wrap:balance;overflow-wrap:anywhere;padding:10px 22px;line-height:1.35}
html[lang=ja] .slide-screen .slide-guide{word-break:auto-phrase;letter-spacing:0;font-size:12.5px}
/* Keyboard focus ring in the atelier's rose instead of the plain blue (kept visible for accessibility) */
button:focus-visible,a:focus-visible,select:focus-visible,canvas:focus-visible,.coins:focus-visible{outline:3px solid #c8314a;outline-offset:3px}
/* Album gift box sits on the panel corner and no longer covers the title */
.album-gift-panel::after{right:-6px;top:-30px;width:58px;height:58px}
.album-gift-copy .eyebrow,.album-gift-copy h3{padding-right:34px}
.album-gift-copy .eyebrow,.album-gift-copy h3{padding-right:26px}
.board-frame .praise{top:-1%}
/* Dialog body text never runs under the paper edge (Japanese help at 320px clipped its line ends) */
#modal:not(.result) p,#modal:not(.result) li{overflow-wrap:anywhere;word-break:normal;padding-right:2px}
html[lang=ja] #modal:not(.result) p{word-break:auto-phrase;letter-spacing:0}
html[lang=ja] #modal:not(.result) #modal-title{word-break:auto-phrase}
.coin-tip,.coin-tip li,.coin-tip p{text-wrap:pretty}
html[lang=ja] .coin-tip li{word-break:auto-phrase}
@media(max-width:360px){.coin-tip{width:calc(100vw - 24px)}}
html[lang=ko] #modal:not(.result) p,html[lang=ko] #modal:not(.result) li{overflow-wrap:break-word;word-break:keep-all}
/* Settings volume row: the label keeps one line and the slider takes the rest ("Master volume" used to wrap) */
.setting-row:has(#volume) label{flex:0 0 auto;white-space:nowrap}
.setting-row:has(#volume) .volume-control{flex:1 1 90px;min-width:90px;width:auto;max-width:170px}
/* Short phones: the hint counter moves into a small pill on the tile corner so it is never cut off */
@media(max-height:730px){.game-screen .game-tools .tool[data-action="hint"] .sub{display:block!important;position:absolute;right:4px;top:4px;margin:0;padding:1px 6px;font-size:10px;line-height:1.2;background:#fffdf7d9;border-radius:9px;white-space:nowrap;color:var(--wc-ink)}}
@media(max-height:730px){.game-screen .game-tools .tool[data-action="hint"] .sub{top:6px!important;bottom:auto!important;right:6px!important;left:auto!important;grid-row:auto!important}}
/* Daily card: finished today shows the hand-painted check stamp (GPT art) in the corner */
.daily-card{position:relative}.daily-card .daily-done-check{position:absolute;right:8px;top:8px;width:34px;height:34px;pointer-events:none;z-index:3;filter:drop-shadow(0 1px 1px rgba(60,40,20,.25))}
/* Offline pill in paper style instead of a flat navy capsule */
#offline-pill{background:url('../assets/wc/chip.webp') center/100% 100% no-repeat!important;color:var(--wc-ink)!important;border-radius:0!important;box-shadow:none!important;padding:7px 18px!important;font:600 12px 'WC Jua',system-ui!important;filter:drop-shadow(0 2px 2px rgba(60,40,20,.2))}
.daily-card .daily-done-check{top:auto;bottom:10px;right:10px}
#offline-pill{background:url('../assets/wc/btn-cream.webp') center/100% 100% no-repeat!important;padding:8px 22px!important;min-height:34px}
/* Share dialog: paper-toned text box (was a teal-outlined white field) and a shorter box so the buttons stay on screen at 320px */
#modal textarea{background:#fffaf0;border:2px solid #b69a76!important;border-radius:10px!important;box-shadow:inset 0 1px 3px rgba(90,63,36,.15)!important;color:var(--wc-ink);outline:none;min-height:0;height:clamp(84px,17dvh,130px);resize:none;font:500 13px/1.5 'WC Jua',system-ui;padding:8px 10px}
#modal textarea:focus-visible{border-color:#c8314a!important}
/* Recovery list: ink-toned text instead of the teal/navy left over from the old palette; footnote keeps clear of the paper edge */
.recovery-card .recovery-reason,.recovery-card .recovery-open{color:#7a3b2e}
.recovery-card strong,.recovery-card span:not(.recovery-reason):not(.recovery-open){color:var(--wc-ink)}
.recovery-footnote{padding-right:12px}
/* Touch targets: switches are 47x28 visually; an invisible 44px-tall hit area wraps them. Language select reaches 44px. */
.switch{position:relative}
.switch::before{content:'';position:absolute;left:-6px;right:-6px;top:50%;height:44px;transform:translateY(-50%)}
.settings select,#language{min-height:44px}
/* Zoom buttons (36x34) keep their look; the hit area grows to 44px */
.zoom-controls button{position:relative}
.zoom-controls button::after{content:'';position:absolute;inset:-5px -3px}
/* Calendar days: seven columns cap the width at ~39px, so the height reaches the 44px touch minimum */
.calendar-day{min-height:44px}
/* Safety net: with the OS "reduce motion" preference or the in-game switch, every remaining CSS animation/transition collapses to its end state (input stays live) */
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-delay:0s!important;animation-iteration-count:1!important;transition-duration:.01ms!important;transition-delay:0s!important;scroll-behavior:auto!important}}
.reduce-motion *,.reduce-motion *::before,.reduce-motion *::after{animation-duration:.01ms!important;animation-delay:0s!important;animation-iteration-count:1!important;transition-duration:.01ms!important;transition-delay:0s!important}
/* Japanese body copy breaks on phrases everywhere (empty states used to split "こ/こに"); engines without support keep the default */
html[lang=ja] p,html[lang=ja] li,html[lang=ja] h2,html[lang=ja] h3{word-break:auto-phrase;line-break:strict}
/* Special-picture cards: balanced lines so a single kana never hangs alone on the last line */
.art-card strong,.art-card span,.art-card h3{text-wrap:balance}
html[lang=ja] .art-card{font-size:12px}
.reward-card-copy>strong{text-wrap:wrap}
.reward-card-copy>.eyebrow,.reward-card-copy>span:last-child{white-space:nowrap}
@media(max-width:360px){html[lang=en] .reward-card[data-reward="30"] .eyebrow{white-space:normal;text-wrap:balance}}
html[lang=ja] .reward-card-copy{font-size:12px;letter-spacing:0}
html[lang=ja] .reward-card-copy strong{word-break:auto-phrase}
/* Resume-album mark: the hand-painted brush (GPT art) replaces the old teal icon tile */
.album-resume .resume-mark{background:url('../assets/wc/brush.webp') center/78% no-repeat!important;border:0!important;box-shadow:none!important;border-radius:0!important}
.album-resume .resume-mark svg{display:none}
/* Last teal leftovers found by palette-audit */
.album-gift-progress{color:#2e5aa6}
.legend-chip{color:var(--wc-ink);border-color:#d9c9ae}
.legend-chip.open,.legend-chip.resume{color:#2e5aa6;background:#e6eefb;border-color:#a9bde0}
/* Loading screen: the painted water drop instead of the old teal "P" tile */
.loading .loading-drop{display:block;width:56px;height:auto;margin:0 auto 6px;animation:wc-drop-bob 1.6s ease-in-out infinite}
@keyframes wc-drop-bob{50%{transform:translateY(-6px)}}
/* Album-complete result on short phones carries an extra bonus note: shrink the easel and tighten the stack so the three action buttons stay on screen */
@media(max-height:700px){#modal.result:has(.album-gift-earned) .completion-scene{--s:clamp(92px,15svh,124px)}
#modal.result:has(.album-gift-earned) .result-stats{margin-top:4px}#modal.result:has(.album-gift-earned) .reward{margin-top:4px;padding-top:4px;padding-bottom:4px}
#modal.result:has(.album-gift-earned) .modal-actions{margin-top:6px;gap:6px}#modal.result:has(.album-gift-earned) .modal-actions>.primary{min-height:48px}
#modal.result:has(.album-gift-earned) .album-gift-earned{margin:2px 0}}
/* Picture finish sheet on short phones: the framed picture scales with the height so both buttons stay on screen */
@media(max-height:700px){#modal.result .pic-finale{width:min(70vw,36svh,290px)}#modal.result:has(.pic-finale) .modal-actions{margin-top:6px}#modal.result:has(.pic-finale) .reward{margin-top:4px}}
@media(min-width:361px) and (max-width:499px) and (min-height:701px) and (max-height:780px){#modal.result:has(.pic-finale):not(:has(.album-gift-earned)) .pic-finale{width:min(70vw,clamp(200px,calc(100svh - 496px),270px))}}
@media(min-width:500px) and (min-height:701px) and (max-height:780px){#modal.result:has(.pic-finale):not(:has(.album-gift-earned)) .pic-finale{width:min(60vw,clamp(200px,calc(100svh - 496px),270px))}}
@media(min-width:500px) and (max-height:700px){#modal.result:has(.pic-finale):not(:has(.album-gift-earned)) .pic-finale{width:min(60vw,25svh,175px)}}
@media(min-width:361px) and (max-width:499px) and (max-height:700px){
  #modal.result:has(.pic-finale):not(:has(.album-gift-earned)){--rgap:6px}
  #modal.result:has(.pic-finale):not(:has(.album-gift-earned)) .pic-finale{width:min(70vw,31svh,220px)}
}
/* GPT watercolor parts replace CSS-drawn cells, switches and the locked reward plate (H group) */
.calendar-day{background:url('../assets/pic/cell-open.webp') center/100% 100% no-repeat!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:var(--wc-ink)!important}
.calendar-day.open,.calendar-day.resume,.calendar-day[aria-current]{background-image:url('../assets/pic/cell-today.webp')!important}
.calendar-day.collected{background-image:url('../assets/pic/cell-done.webp')!important}
.calendar-day.future,.calendar-day.unavailable{background-image:url('../assets/pic/cell-locked.webp')!important;color:#9a9088!important}
.calendar-day[aria-current]{outline:0!important}
.switch,.switch[aria-checked=true]{background:url('../assets/pic/switch-off.webp') center/100% 100% no-repeat!important;border-radius:0!important;box-shadow:none!important}
.switch[aria-checked=true]{background-image:url('../assets/pic/switch-on.webp')!important}
.switch span{background:url('../assets/pic/switch-knob.webp') center/contain no-repeat!important;box-shadow:none!important;border-radius:0!important}
.reward-locked{background:url('../assets/pic/plate-locked.webp') center/100% 100% no-repeat!important;color:var(--wc-ink)!important}
.reward-locked svg{display:none}
.reward-locked strong{margin-top:34%}
.calendar-day.future,.calendar-day.unavailable{opacity:.7}
.reward-locked>*:not(strong){display:none!important}
.reward-locked{background-size:92% 92%!important}
.reward-locked strong{margin-top:28%}

/* ===== Polish batch from player feedback (2026-10-07) ===== */
/* 1. The painted brush sits in front of the resume button */
.home-screen .resume-card .wc-preview{z-index:4}
.home-screen .resume-card .primary{position:relative;z-index:1}
/* 2. Progress plate: the label sits inside the paper plate */
.game-screen .board-top{width:min(100%,336px)}
.game-screen #game-progress{padding-left:22px}
.game-screen #region-progress{margin-right:14px}
/* 3. Tutorial hint lives inside the lesson card as a handwritten second line */
.lesson-guide .board-status.in-guide{display:block!important;position:static!important;flex:none;width:auto!important;height:auto!important;clip:auto!important;overflow:visible!important;margin:8px 0 0;padding:7px 0 0;background:none!important;border:0;border-top:1px dashed #cdb890;color:#7a3b2e;font:500 13px/1.35 'WC Jua',system-ui;text-align:center;text-wrap:balance}
.game-screen:has(.lesson-guide) .board-controls{justify-content:center}
/* 4. Settings: no round "home" button next to the coins (the tab bar already has Home) */
body:has(main.settings) .topbar .nav-actions>.icon-button{display:none}
/* 5. Backup block: all three buttons share one grid so none looks stretched */
.settings .setting-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;padding:0 6px}
.settings .setting-actions>button,.settings .setting-actions>button:nth-child(3){grid-column:auto!important;width:100%;min-height:50px}
.settings .setting-actions>button:nth-child(3):last-child{grid-column:1/-1!important;justify-self:center;width:calc(50% - 5px)}
/* 6. Hover: the button looks painted in from the left (mouse only; skipped when motion is reduced) */
@media(hover:hover) and (prefers-reduced-motion:no-preference){
  .secondary,.modal-actions>.secondary,.settings .setting-actions>button{position:relative;overflow:hidden;isolation:isolate}
  .secondary::before,.settings .setting-actions>button::before{content:'';position:absolute;inset:3px 4px;z-index:-1;background:url('../assets/wc/btn-primary.webp') center/100% 100% no-repeat;opacity:.3;clip-path:inset(0 100% 0 0);transition:clip-path .38s ease-out;pointer-events:none}
  .secondary:hover::before,.settings .setting-actions>button:hover::before{clip-path:inset(0 0 0 0)}
  .primary:hover{filter:saturate(1.15) brightness(1.04);transition:filter .2s}
}
/* 7. Reward pill after finishing: a paper chip like the stat chips, coin and amount on one line */
#modal.result .reward{background:url('../assets/wc/chip.webp') center/100% 100% no-repeat!important;padding:10px 30px!important;min-width:176px;justify-content:center;box-shadow:none!important;filter:drop-shadow(0 2px 2px rgba(60,40,20,.15))}
/* 8. Result sheet: one rhythm of 14px between blocks */
#modal.result{--rgap:14px}
#modal.result .result-collection,#modal.result .result-stats,#modal.result .reward,#modal.result .modal-actions,#modal.result .result-note,#modal.result .album-gift-earned{margin-top:var(--rgap)!important;margin-bottom:0!important}
#modal.result .result-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%}
#modal.result .result-stats>div{min-width:0}
@media(max-height:700px){#modal.result{--rgap:8px}}
/* 9. Home: cap the column width so wide windows do not stretch it */
.home-screen main{max-width:440px;margin-left:auto;margin-right:auto}
/* 10. Home cards: keep headings and descriptions inside the painted frame */
.home-screen .home-bottom .small-card{padding:22px 20px 14px 22px!important}
@media(max-width:360px){.home-screen .home-bottom .small-card{padding:20px 12px 12px 18px!important}.home-screen .home-bottom .small-card h2{font-size:17px}}
.home-screen .home-bottom .small-card h2{margin:0 0 4px}
.home-screen .home-bottom .small-card p{margin:0 0 8px;line-height:1.35}
.home-screen .home-bottom .wc-card-art{height:44%!important}
.settings .backup-section .setting-row{padding-bottom:8px}
.settings .backup-section .setting-actions{margin:12px 0 0}
/* 11. Home utility buttons follow the cards; the shell already clears the fixed tab bar. */
.home-screen main>.daily-tools,.home-screen main>.home-help{position:static;margin-top:12px!important;width:calc(50% - 6px)!important;height:46px}
.home-screen main>.daily-tools>*,.home-screen main>.home-help>.text-button{height:46px!important}
.home-screen main>.daily-tools:has([data-action="protectStreak"]){display:contents}
.home-screen main>.daily-tools:has([data-action="protectStreak"])>[data-action="dailyCalendar"],.home-screen main:has(>.daily-tools [data-action="protectStreak"])>.home-help{order:1;margin-top:12px!important;width:calc(50% - 6px)!important;height:46px}
.home-screen main>.daily-tools>[data-action="protectStreak"]{order:2;flex:0 0 min(100%,260px);width:min(100%,260px)!important;min-width:0;margin:0 auto!important;white-space:normal;text-align:center}
.home-screen main{padding-bottom:24px!important}
#modal.result .reward::before{display:none}
/* Empty daily collection: let the action appear before the fixed tab bar on short phones. */
.collection-screen .collection-empty{padding:8px 20px 12px}
.collection-screen .daily-tools{margin:0 0 12px;align-items:flex-start}
.collection-screen .daily-tools button[data-action="dailyCalendar"]{width:auto;padding-inline:18px}
.collection-screen .collection-tabs{margin-bottom:10px}
.collection-screen .daily-grid>.art-card:last-child:nth-child(odd){grid-column:1/-1;justify-self:center;width:calc((100% - 12px)/2)}
.collection-screen .collection-empty .card-icon{margin-bottom:8px}
.collection-screen .collection-empty p{margin:8px 0 4px}
@media(max-width:360px){.collection-screen .collection-empty h2{font-size:20px}}
@media(max-width:360px){html[lang=ja] .settings .setting-actions>button:nth-child(3):last-child{grid-column:1/-1!important;justify-self:center;width:min(100%,180px)!important}}
.settings .setting-actions{width:100%;box-sizing:border-box}
html[lang=ja] .settings .setting-actions>button:nth-child(3):last-child{width:100%}
@media(max-width:360px){.settings .setting-actions>button:nth-child(3):last-child{width:100%}}
.lesson-guide .board-status.in-guide{align-self:stretch;width:100%!important;box-sizing:border-box;grid-column:1/-1;font-size:13px!important;min-height:0!important}
html[lang] body .game-screen .lesson-guide .board-status.in-guide{padding:7px 0 0!important;font-size:13px!important;letter-spacing:0!important;white-space:normal!important;max-width:none!important;text-align:center}
/* New painted coin (J1) replaces the old coin art in the top bar, the result chip and the result coin counter */
.topbar .coins .coin,#modal.result .wc-res-coins .coin{background-image:url('../assets/pic/coin-one.webp')!important}
#modal.result .reward .coin{background-image:url('../assets/pic/coin-stack.webp')!important;width:40px!important;height:34px!important}
.wc-month{width:30px!important;height:30px!important;object-fit:contain}
/* Hover correction: the paint-in effect belongs to the red brush buttons (.primary), not the plain paper buttons */
@media(hover:hover) and (prefers-reduced-motion:no-preference){
  .secondary::before,.settings .setting-actions>button::before{display:none!important}
  .secondary,.modal-actions>.secondary,.settings .setting-actions>button{overflow:visible}
  .primary{position:relative;isolation:isolate}
  .primary::before{content:'';position:absolute;inset:0;z-index:-1;background:url('../assets/wc/btn-primary.webp') center/100% 100% no-repeat;filter:brightness(.78) saturate(1.35);clip-path:inset(0 100% 0 0);transition:clip-path .42s cubic-bezier(.3,.7,.3,1);pointer-events:none}
  .primary:hover::before,.primary:focus-visible::before{clip-path:inset(0 0 0 0)}
  .primary:hover{filter:none}
}
.reduce-motion .primary::before{display:none}
@media(max-width:360px){html[lang=ja] .settings .setting-actions>button:nth-child(-n+2){font-size:12px!important;word-break:break-all!important;overflow-wrap:anywhere;white-space:normal!important;overflow:hidden!important}}
@media(max-width:360px) and (max-height:700px){
  .slide-screen main{gap:6px}
  .slide-screen .slide-tray{width:min(84vw,240px)}
  .slide-screen .slide-dish{width:72px;height:70px}
  .slide-screen .last-piece{width:44px;height:44px}
  .slide-screen .game-tools.slide-tools .tool{min-height:72px;font-size:12px;padding-bottom:6px}
  .slide-screen .game-tools.slide-tools .tool .art-icon,.slide-screen .game-tools.slide-tools .tool .tool-pic{top:37%;width:28px!important;height:28px!important}
}
@media(max-width:360px) and (max-height:600px){
  .picture-screen main{gap:6px}
  .picture-screen .pic-stage{width:min(100%,210px)}
  .slide-screen main{gap:5px}
  .slide-screen .slide-tray{width:min(76vw,198px)}
  .slide-screen .slide-dish{width:64px;height:62px}
  .slide-screen .game-tools.slide-tools .tool{min-height:64px}
}
@media(max-height:600px){#modal.result .pic-finale{width:min(65vw,30svh,180px)}}
@media(max-width:360px){
  .home-screen .home-bottom{grid-template-columns:repeat(2,minmax(0,1fr))}
  html[lang=ja] .home-screen .home-bottom .small-card h2{font-size:14px;white-space:normal;overflow-wrap:anywhere}
  html[lang=en] .home-screen .home-bottom .small-card{min-height:196px}
  html[lang=en] .home-screen .home-bottom .wc-card-art{height:35%!important}
  html[lang=en] .collection-tabs button{flex-direction:column;gap:2px!important;min-height:60px!important;padding:7px 4px!important;font-size:11px!important;line-height:1.15;text-align:center}
  html[lang=en] .collection-tabs button span{flex:none;padding:1px 6px;font-size:10px}
  html[lang=ja] .collection-tabs button{font-size:10px!important;letter-spacing:-.03em!important}
}
@media(min-width:361px) and (max-width:499px){
  html[lang=en] .collection-tabs button{flex-direction:column;gap:2px!important;min-height:58px!important;padding:7px 4px!important;font-size:12px!important;line-height:1.15;text-align:center}
  html[lang=en] .collection-tabs button span{flex:none;padding:1px 6px;font-size:10px}
}
.settings>.setting-actions:not(:has(>button:not([hidden]))){display:none!important}
body:has(.home-screen) #offline-pill{top:14px;bottom:auto;left:max(16px,calc(50vw - 204px));transform:none;max-width:120px;min-height:0;padding:7px 10px!important;white-space:normal;font-size:11px!important;line-height:1.15;text-align:center}
.home-screen .resume-card.all-done .resume-info h2{display:none}
.home-screen .resume-card.all-done .resume-meter{align-self:start;margin-top:8px}
.pic-album-meter .progress{border:0;border-radius:0;box-shadow:none}
.pic-replay-label{margin:0;font:700 14px/1.2 'WC Jua',system-ui;color:var(--wc-ink-soft)}
.pic-replay-levels{display:grid;grid-template-columns:repeat(5,44px);gap:4px 8px;justify-content:center}
.pic-replay-levels button{width:44px;height:44px;padding:0;border:0;background:url('../assets/pic/dot-done.webp') center/100% 100% no-repeat;color:#274b35;font:700 14px/1 'WC Jua',system-ui;cursor:pointer}
.pic-replay-levels button:last-child{background-image:url('../assets/pic/step10-on.webp')}
.pic-replay-levels button:focus-visible{outline:3px solid var(--wc-rose);outline-offset:2px}
.slide-screen .slide-dish{align-items:center}
.slide-screen .last-piece{transform:translateY(4px)}
.slide-screen .last-piece canvas{filter:none}
.slide-last.ready .last-piece canvas{animation:none}
.slide-screen .game-tools.slide-tools{max-width:300px;gap:6px}
.slide-screen .game-tools.slide-tools .tool{min-height:66px;padding-bottom:5px}
.slide-screen .game-tools.slide-tools .tool .art-icon,.slide-screen .game-tools.slide-tools .tool .tool-pic{top:36%;width:27px!important;height:27px!important}
.slide-screen .game-tools.slide-tools .tool>span:not(.sub){font-size:13px}
@media(max-width:360px){.slide-screen .game-tools.slide-tools{max-width:270px;gap:5px}.slide-screen .game-tools.slide-tools .tool{min-height:62px}.slide-screen .game-tools.slide-tools .tool .art-icon,.slide-screen .game-tools.slide-tools .tool .tool-pic{width:24px!important;height:24px!important}.slide-screen .game-tools.slide-tools .tool>span:not(.sub){font-size:11px}}
@media(max-width:360px) and (max-height:700px){
  .home-screen .wc-hero .hero-logo.wc-logo{width:80%;margin-top:0}
  .home-screen .resume-card{margin-top:14px;padding:20px 20px 14px}
  .home-screen .resume-card .resume-meter{margin-top:8px}
  .home-screen .resume-card .primary{height:58px;margin-top:8px}
  .home-screen .home-bottom{margin-top:8px}
}
@media(min-height:601px) and (max-height:800px){
  .home-screen .wc-hero .hero-logo.wc-logo{width:70%}
  .home-screen .resume-card{margin-top:0;padding:12px 20px 10px}
  .home-screen .resume-card .wc-preview{width:90px;justify-self:end}
  .home-screen .resume-card .resume-info h2{margin-top:4px}
  .home-screen .resume-card .resume-meter{margin-top:4px}
  .home-screen .resume-card .primary{height:50px;margin-top:4px}
  .home-screen .home-bottom{margin-top:4px}
  .home-screen .home-bottom .small-card{min-height:136px}
  html[lang=en] .home-screen .home-bottom .small-card{min-height:136px}
  .home-screen .home-bottom .wc-card-art{height:30%!important}
  .home-screen main>.daily-tools,.home-screen main>.home-help{margin-top:4px!important}
}
@media(min-width:600px) and (min-height:601px) and (max-height:800px){
  .home-screen .home-bottom .small-card{min-height:132px}
  html[lang=en] .home-screen .home-bottom .small-card{min-height:132px}
  .home-screen .home-bottom .wc-card-art{height:26%!important}
}
@media(min-width:680px) and (min-height:601px) and (max-height:800px){
  .home-screen .home-bottom .small-card{min-height:160px}
  html[lang=en] .home-screen .home-bottom .small-card{min-height:160px}
  .home-screen .home-bottom .wc-card-art{height:34%!important}
}
@media(min-height:750px) and (max-height:800px){
  .home-screen .wc-hero .hero-logo.wc-logo{width:80%}
  .home-screen .resume-card{margin-top:8px;padding:16px 20px 12px}
  .home-screen .resume-card .wc-preview{width:100px}
  .home-screen .resume-card .resume-info h2{margin-top:6px}
  .home-screen .resume-card .resume-meter{margin-top:6px}
  .home-screen .resume-card .primary{height:54px;margin-top:6px}
  .home-screen .home-bottom{margin-top:8px}
  .home-screen .home-bottom .small-card{min-height:150px}
  html[lang=en] .home-screen .home-bottom .small-card{min-height:150px}
  .home-screen .home-bottom .wc-card-art{height:35%!important}
  .home-screen main>.daily-tools,.home-screen main>.home-help{margin-top:8px!important}
}
@media(min-height:801px) and (max-height:820px){
  .home-screen .resume-card{margin-top:12px}
  .home-screen main>.daily-tools,.home-screen main>.home-help{margin-top:8px!important}
}
@media(min-width:361px) and (max-width:559px) and (min-height:791px) and (max-height:820px){
  .slide-screen .slide-tray{width:min(92vw,352px)}
}
@media(max-width:360px){.slide-screen .game-tools.slide-tools .tool{min-height:62px;padding-bottom:5px}.slide-screen .game-tools.slide-tools .tool .art-icon,.slide-screen .game-tools.slide-tools .tool .tool-pic{top:35%;width:24px!important;height:24px!important}}
@media(max-width:360px) and (max-height:600px){.slide-screen .game-tools.slide-tools .tool{min-height:58px}}
@media(min-width:361px) and (max-width:559px) and (max-height:790px){
  .slide-screen .slide-tray{width:min(92vw,clamp(200px,calc(100svh - 430px),360px))}
  .slide-screen .slide-dish{width:72px;height:70px}
  .slide-screen .last-piece{width:44px;height:44px}
}
/* Keep the original watercolor button artwork; the wider paper plaque below fits the full album message. */
#modal.result:has(.pic-finale) .album-gift-earned{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:min(100%,320px);min-height:62px;margin-left:auto!important;margin-right:auto!important;padding:10px 28px;background:url('../assets/wc/album-bonus-wide-v2.webp') center/100% 100% no-repeat!important;font:700 14px/1.25 'WC Jua',system-ui;text-align:center;text-wrap:balance;word-break:keep-all}
@media(max-width:360px){#modal.result:has(.pic-finale) .album-gift-earned{min-height:58px;padding:8px 22px;font-size:13px}}
@media(max-height:700px){#modal.result:has(.pic-finale):has(.album-gift-earned) .pic-finale{width:min(64vw,32svh,270px)}}
@media(min-height:701px) and (max-height:780px){#modal.result:has(.pic-finale):has(.album-gift-earned) .pic-finale{width:min(64vw,clamp(160px,calc(100svh - 555px),225px))}}
@media(max-height:620px){#modal.result:has(.pic-finale):has(.album-gift-earned){--rgap:6px}#modal.result:has(.pic-finale):has(.album-gift-earned) .pic-finale{width:min(46vw,26svh,150px)}}
@media(max-width:360px) and (max-height:600px){#modal.result:has(.pic-finale):has(.album-gift-earned) .pic-finale{width:min(44vw,24svh,138px)}}
@media(min-width:500px) and (max-height:620px){#modal.result:has(.pic-finale):has(.album-gift-earned) .pic-finale{width:min(42vw,22svh,126px)}}
@media(min-width:500px) and (max-height:560px){
  #modal.result:has(.pic-finale):has(.album-gift-earned){--rgap:4px}
  #modal.result:has(.pic-finale):has(.album-gift-earned) #modal-title:has(.wc-arc){width:min(100%,270px)}
  #modal.result:has(.pic-finale):has(.album-gift-earned) .pic-finale{width:126px}
  #modal.result:has(.pic-finale):has(.album-gift-earned) .reward{padding:5px 24px!important}
  #modal.result:has(.pic-finale):has(.album-gift-earned) .album-gift-earned{min-height:54px;padding:7px 24px;font-size:13px}
  #modal.result:has(.pic-finale):not(:has(.album-gift-earned)){--rgap:4px}
  #modal.result:has(.pic-finale):not(:has(.album-gift-earned)) #modal-title:has(.wc-arc){width:min(100%,270px)}
  #modal.result:has(.pic-finale):not(:has(.album-gift-earned)) .pic-finale{width:130px}
}
@media(min-width:500px) and (max-height:500px){#modal.result:has(.pic-finale):not(:has(.album-gift-earned)) .pic-finale{width:122px}}
@media(min-width:680px) and (max-height:460px){#modal.result:has(.pic-finale):not(:has(.album-gift-earned)){--rgap:2px}#modal.result:has(.pic-finale):not(:has(.album-gift-earned)) .pic-finale{width:100px}}

/* Keep the painted end caps at their drawn size. Only the middle can expand for translated labels. */
:is(button,a).primary,.picture-screen .pic-go,.startup-recovery button:first-of-type{
  background-image:none!important;border:1px solid transparent!important;
  border-image:url('../assets/wc/btn-primary.webp') 50 90 fill / 20px 30px / 0 stretch!important;
}
:is(button,a).secondary,.collection-tabs button,.home-screen .home-help .text-button,.wc-links .text-button,.startup-recovery button:not(:first-of-type),.game-screen .zoom-controls button{
  background-image:none!important;border:1px solid transparent!important;
  border-image:url('../assets/wc/btn-cream.webp') 42 60 fill / 20px 28px / 0 stretch!important;
}
#modal.result .modal-actions>.secondary:has(.wci-share),.collection-tabs button[aria-pressed=true]{
  border-image-source:url('../assets/wc/btn-blue.webp')!important;
}
.home-screen .daily-tools button.secondary,.settings .setting-actions>button.secondary,.collection-tabs button[aria-pressed=true]{
  background-image:none!important;border:1px solid transparent!important;
}
.home-screen .daily-tools button.secondary,.settings .setting-actions>button.secondary{
  border-image:url('../assets/wc/btn-cream.webp') 42 60 fill / 20px 28px / 0 stretch!important;
}
.collection-tabs button[aria-pressed=true]{border-image:url('../assets/wc/btn-blue.webp') 42 60 fill / 20px 28px / 0 stretch!important}
#modal:not(.result) button.primary,.settings button.primary,.album-screen button.primary,.collection-screen button.primary{
  background-image:none!important;border:1px solid transparent!important;
  border-image:url('../assets/wc/btn-primary.webp') 50 90 fill / 20px 30px / 0 stretch!important;
}
#modal:not(.result) button.secondary,.collection-screen button.secondary{
  background-image:none!important;border:1px solid transparent!important;
  border-image:url('../assets/wc/btn-cream.webp') 42 60 fill / 20px 28px / 0 stretch!important;
}
.home-screen .resume-card .primary{justify-self:center;width:min(100%,260px);margin-left:0;margin-right:0}
.picture-screen .pic-go{width:min(100%,260px)}
#modal.result .modal-actions>.primary{flex:0 1 260px;max-width:260px;margin-left:auto;margin-right:auto}
#modal.result .modal-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));justify-items:center}
#modal.result .modal-actions>.primary{grid-column:1/-1;width:min(100%,260px)}
#modal.result .modal-actions>.secondary{width:100%;max-width:190px}
#modal.result .modal-actions>.secondary:only-child,#modal.result .modal-actions:has(>.primary)>.secondary:last-child:nth-child(even){grid-column:1/-1;width:min(100%,220px)}
.game-screen .zoom-controls button[data-action="zoomOut"],.game-screen .zoom-controls button[data-action="zoomIn"]{width:38px;height:38px;min-width:38px;min-height:38px;background:url('../assets/wc/btn-round.webp') center/contain no-repeat!important;border:0!important;border-image:none!important}
.game-screen .zoom-controls #zoom-label{min-width:58px;min-height:36px}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
  .primary::before{background-image:none;border:1px solid transparent;border-image:url('../assets/wc/btn-primary.webp') 50 90 fill / 20px 30px / 0 stretch}
}
/* The four paint tools and the three sliding tools use square watercolor tile art. */
.game-screen .game-tools .tool,.game-screen .game-tools .tool.active{aspect-ratio:1;min-height:0!important;background-size:100% 100%!important}
.game-screen .game-tools .tool[data-action="hint"] .sub{display:block!important;position:static!important;grid-row:3!important;margin:0!important;padding:0!important;background:none!important;color:var(--wc-ink-soft);font-size:10px!important;white-space:nowrap}
.slide-screen .game-tools.slide-tools{grid-template-columns:repeat(3,72px);justify-content:center;gap:8px;max-width:none}
.slide-screen .game-tools.slide-tools .tool{width:72px;height:72px;min-height:0!important;background-size:100% 100%!important}
@media(max-height:700px){.slide-screen .game-tools.slide-tools{grid-template-columns:repeat(3,64px)}.slide-screen .game-tools.slide-tools .tool{width:64px;height:64px}}
/* The picture is a viewing screen: keep its navigation after the artwork instead of covering it. */
.picture-screen main{padding-bottom:0}
.picture-screen .bottom-nav{position:relative;left:auto;right:auto;bottom:auto;transform:none;margin:16px auto 0}
.picture-screen.shell{padding-bottom:calc(24px + env(safe-area-inset-bottom))}
/* An opaque paper dock prevents scrolling card labels from showing through the fixed tabs. */
.bottom-nav{background:none!important;isolation:isolate}
.bottom-nav::before{content:'';position:absolute;z-index:-2;left:50%;bottom:-16px;width:100vw;height:calc(100% + 24px);transform:translateX(-50%);pointer-events:none;background:url('../assets/wc/bg-paper-tile.webp') center/cover no-repeat;-webkit-mask-image:linear-gradient(to bottom,transparent,black 20px);mask-image:linear-gradient(to bottom,transparent,black 20px)}
.bottom-nav::after{content:'';position:absolute;z-index:-1;inset:0;pointer-events:none;border:1px solid transparent;border-image:url('../assets/wc/tabbar.webp') 60 70 fill / 24px 28px / 0 stretch}
.picture-screen .bottom-nav::before{display:none}
/* Scale each oval pill vertically as one image and expand only its paper center. */
.topbar .wc-back,.topbar .coins,.slide-moves,#modal.result .wc-res-coins{
  background-image:none!important;
  border:1px solid transparent!important;
  border-image:url('../assets/wc/pill.webp') 52 80 fill / 17px 26px / 0 stretch!important;
}
/* The desktop tutorial uses the same paper guidance as mobile; the old teal step rule clashes with it. */
.game-screen .lesson-guide .guide-steps{display:none}
/* Coin help list uses the same painted coin as the header instead of old gradient dots. */
.coin-tip li{padding-left:20px}
.coin-tip li::before{top:.18em;width:16px;height:16px;border:0;border-radius:0;box-shadow:none;background:url('../assets/pic/coin-one.webp') center/contain no-repeat}
/* Give Japanese victory lettering the same visual weight as the painted Korean/English title. */
html[lang=ja] #modal.result .wc-arc text{font-family:system-ui,sans-serif;font-weight:800;stroke-width:1px}
/* Rule sheet stays readable on short phones while leaving paper around each paragraph. */
#modal:not(.result):has(>.help-copy-second)>p{line-height:1.5}
#modal:not(.result)>.help-copy-second{margin-top:10px}
/* On short landscape phones, the board and paint tools remain visible together. */
@media (orientation:landscape) and (max-height:440px) and (max-width:900px){
  .game-screen .game-main{display:grid;grid-template-columns:minmax(0,1fr) 140px;grid-template-rows:auto auto auto;align-items:center;column-gap:8px;flex:none;width:100%}
  .game-screen .board-top{grid-column:1;grid-row:1;width:min(100%,230px)}
  .game-screen .board-frame{grid-column:1;grid-row:2;--fw:min(calc(100svh - 96px),220px);margin-top:12px!important}
  .game-screen .board-controls{grid-column:1;grid-row:3;margin-top:0}
  .game-screen .game-tools{grid-column:2;grid-row:2;display:grid;grid-template-columns:repeat(2,64px);justify-content:center;align-self:center;gap:4px;width:auto;margin:0;padding:0}
  .game-screen .game-tools .tool,.game-screen .game-tools .tool.active{width:64px;height:64px}
  .slide-screen main{display:grid;grid-template-columns:210px 140px;grid-template-rows:auto auto auto auto;justify-content:center;align-items:center;gap:4px 10px}
  .slide-screen .pic-heading,.slide-screen .slide-guide{grid-column:1/-1}
  .slide-screen .slide-moves{grid-column:1;grid-row:3;justify-self:center}
  .slide-screen .slide-tray{grid-column:1;grid-row:4;justify-self:center;width:min(60svh,210px)}
  .slide-screen .slide-last{grid-column:2;grid-row:4;align-self:start;justify-self:center;width:140px;gap:2px}
  .slide-screen .slide-dish{width:54px;height:54px}
  .slide-screen .last-piece{width:34px;height:34px}
  .slide-screen .slide-last-label{max-width:76px;font-size:11px;line-height:1.15}
  .slide-screen .slide-pencils{display:none}
  .slide-screen .game-tools.slide-tools{grid-column:2;grid-row:4;grid-template-columns:repeat(2,56px);align-self:end;justify-self:center;gap:4px;width:116px;margin:0}
  .slide-screen .game-tools.slide-tools .tool{width:56px;height:56px}
  .slide-screen .game-tools.slide-tools .tool:last-child{grid-column:1/-1;justify-self:center}
  .slide-screen .game-tools.slide-tools .tool>span:not(.sub){font-size:10px}
}
/* The first desktop lesson can use the available width instead of stacking above the canvas. */
@media (min-width:900px) and (min-height:620px){
  .game-screen:has(.lesson-guide).shell{max-width:820px}
  .game-screen:has(.lesson-guide) .game-layout{display:grid;grid-template-columns:290px minmax(0,430px);column-gap:28px;align-items:start;justify-content:center;min-height:calc(100svh - 64px)}
  .game-screen:has(.lesson-guide) .game-aside{grid-column:1;grid-row:1;padding-top:40px;text-align:left}
  .game-screen:has(.lesson-guide) .game-aside h1{margin:0 0 18px;font-size:29px;text-align:center}
  .game-screen:has(.lesson-guide) .lesson-guide{max-width:none;margin:0;padding:18px 20px}
  .game-screen:has(.lesson-guide) .game-main{grid-column:2;grid-row:1;min-width:0}
  .game-screen:has(.lesson-guide) .board-frame{--fw:400px}
  .game-screen:has(.lesson-guide) .game-tools{grid-template-columns:repeat(4,88px);justify-content:center;gap:12px;margin-top:16px}
  .game-screen:has(.lesson-guide) .game-tools .tool{width:88px;height:88px}
}
/* Tablet widths have room for two columns; a single stack pushed the tools below the fold. */
@media (min-width:760px) and (max-width:899px) and (min-height:620px){
  .game-screen:has(.lesson-guide).shell{max-width:760px}
  .game-screen:has(.lesson-guide) .game-layout{display:grid;grid-template-columns:240px minmax(0,400px);column-gap:20px;align-items:start;justify-content:center;min-height:calc(100svh - 64px)}
  .game-screen:has(.lesson-guide) .game-aside{grid-column:1;grid-row:1;padding-top:30px;text-align:left}
  .game-screen:has(.lesson-guide) .game-aside h1{margin:0 0 16px!important;font-size:26px;text-align:center}
  .game-screen:has(.lesson-guide) .lesson-guide{max-width:none;margin:0;padding:14px 16px}
  .game-screen:has(.lesson-guide) .game-main{grid-column:2;grid-row:1;min-width:0}
  .game-screen:has(.lesson-guide) .board-frame{--fw:380px}
  .game-screen:has(.lesson-guide) .game-tools{grid-template-columns:repeat(4,80px);justify-content:center;gap:10px;margin-top:12px}
  .game-screen:has(.lesson-guide) .game-tools .tool{width:80px;height:80px}
}
@media (min-width:680px) and (max-width:759px) and (min-height:620px){
  .game-screen:has(.lesson-guide).shell{max-width:700px}
  .game-screen:has(.lesson-guide) .game-layout{display:grid;grid-template-columns:220px minmax(0,380px);column-gap:16px;align-items:start;justify-content:center;min-height:calc(100svh - 64px)}
  .game-screen:has(.lesson-guide) .game-aside{grid-column:1;grid-row:1;padding-top:24px;text-align:left}
  .game-screen:has(.lesson-guide) .game-aside h1{margin:0 0 12px!important;font-size:24px;text-align:center}
  .game-screen:has(.lesson-guide) .lesson-guide{max-width:none;margin:0;padding:12px 14px}
  .game-screen:has(.lesson-guide) .game-main{grid-column:2;grid-row:1;min-width:0}
  .game-screen:has(.lesson-guide) .board-frame{--fw:350px}
  .game-screen:has(.lesson-guide) .game-tools{grid-template-columns:repeat(4,76px);justify-content:center;gap:8px;margin-top:10px}
  .game-screen:has(.lesson-guide) .game-tools .tool{width:76px;height:76px}
}
@media (min-width:600px) and (max-width:679px) and (min-height:600px){
  .game-screen:has(.lesson-guide).shell{max-width:680px}
  .game-screen:has(.lesson-guide) .topbar .wc-help{right:-20px}
  .game-screen:has(.lesson-guide) #region-progress{margin-right:26px}
  .game-screen:has(.lesson-guide) .game-layout{display:grid;grid-template-columns:190px minmax(0,350px);column-gap:12px;align-items:start;justify-content:center;min-height:calc(100svh - 64px)}
  .game-screen:has(.lesson-guide) .game-aside{grid-column:1;grid-row:1;padding-top:20px;text-align:left}
  .game-screen:has(.lesson-guide) .game-aside h1{margin:0 0 10px!important;font-size:22px;text-align:center}
  .game-screen:has(.lesson-guide) .lesson-guide{max-width:none;margin:0;padding:10px 12px}
  .game-screen:has(.lesson-guide) .game-main{grid-column:2;grid-row:1;min-width:0}
  .game-screen:has(.lesson-guide) .board-frame{--fw:330px;max-width:330px}
  .game-screen:has(.lesson-guide) .game-tools{grid-template-columns:repeat(4,70px);justify-content:center;gap:6px;margin-top:8px}
  .game-screen:has(.lesson-guide) .game-tools .tool{width:70px;height:70px}
}
@media (min-width:600px) and (max-width:679px) and (min-height:600px) and (max-height:680px){
  .game-screen:not(:has(.lesson-guide)) .board-frame{--fw:310px;max-width:310px;margin-top:24px!important}
  .game-screen:not(:has(.lesson-guide)) .game-tools{grid-template-columns:repeat(4,72px);justify-content:center;gap:8px;margin-top:2px}
  .game-screen:not(:has(.lesson-guide)) .game-tools .tool{width:72px;height:72px}
}
@media (min-width:680px) and (min-height:600px) and (max-height:680px){
  .game-screen:not(:has(.lesson-guide)) .game-tools{grid-template-columns:repeat(4,72px);justify-content:center;gap:8px;margin-top:2px}
  .game-screen:not(:has(.lesson-guide)) .game-tools .tool{width:72px;height:72px}
}
@media (min-width:680px) and (min-height:600px) and (max-height:607px){
  .game-screen:not(:has(.lesson-guide)) .board-frame{--fw:310px;max-width:310px;margin-top:24px!important}
}
@media (min-width:680px) and (min-height:608px) and (max-height:616px){
  .game-screen:not(:has(.lesson-guide)) .board-frame{--fw:320px;max-width:320px;margin-top:24px!important}
}
@media (min-width:680px) and (min-height:580px) and (max-height:599px){
  .game-screen:not(:has(.lesson-guide)) .board-frame{--fw:290px;max-width:290px;margin-top:24px!important}
  .game-screen:not(:has(.lesson-guide)) .game-tools{grid-template-columns:repeat(4,72px);justify-content:center;gap:8px;margin-top:2px}
  .game-screen:not(:has(.lesson-guide)) .game-tools .tool{width:72px;height:72px}
}
@media (min-width:680px) and (min-height:560px) and (max-height:579px){
  .game-screen:not(:has(.lesson-guide)) .board-frame{--fw:270px;max-width:270px;margin-top:24px!important}
  .game-screen:not(:has(.lesson-guide)) .game-tools{grid-template-columns:repeat(4,72px);justify-content:center;gap:8px;margin-top:2px}
  .game-screen:not(:has(.lesson-guide)) .game-tools .tool{width:72px;height:72px}
}
@media (min-width:680px) and (min-height:540px) and (max-height:559px){
  .game-screen:not(:has(.lesson-guide)) .board-frame{--fw:260px;max-width:260px;margin-top:24px!important}
  .game-screen:not(:has(.lesson-guide)) .game-tools{grid-template-columns:repeat(4,64px);justify-content:center;gap:8px;margin-top:2px}
  .game-screen:not(:has(.lesson-guide)) .game-tools .tool{width:64px;height:64px}
}
@media (min-width:900px) and (min-height:620px) and (max-height:699px){
  .game-screen:has(.lesson-guide) .board-frame{--fw:350px}
  .game-screen:has(.lesson-guide) .game-tools{grid-template-columns:repeat(4,76px);gap:10px;margin-top:10px}
  .game-screen:has(.lesson-guide) .game-tools .tool{width:76px;height:76px}
}
@media (min-width:760px) and (max-width:899px) and (min-height:620px) and (max-height:659px){
  .game-screen:has(.lesson-guide) .board-frame{--fw:360px}
}
/* Keep the quick success word clear of the puzzle's numbered cells. */
.game-screen .board-frame .praise{font-size:clamp(22px,6vw,29px);-webkit-text-stroke-width:3px;text-shadow:0 2px 3px #5b243066}
.game-screen .board-frame .praise.level-3,.game-screen .board-frame .praise.level-4{font-size:clamp(24px,6.4vw,31px)}
/* Short phones still need tappable cells in the first lesson. Reclaim the title gap before shrinking the board. */
@media(max-width:360px) and (max-height:600px){
  .game-screen:has(.lesson-guide) .game-aside h1{margin-top:2px!important}
  .game-screen:has(.lesson-guide) .board-frame{--fw:220px;max-width:220px;flex-shrink:0;margin-top:12px!important}
  .game-screen:has(.lesson-guide) .game-tools{width:252px;max-width:100%;align-self:center;gap:4px}
  .game-screen:has(.lesson-guide) .game-tools .tool{min-height:58px}
  .game-screen .topbar .wc-help .wc-label{display:none}
  .game-screen .board-frame .praise{top:10%;font-size:20px}
  .game-screen .board-frame .praise.level-3,.game-screen .board-frame .praise.level-4{font-size:22px}
}
/* The selected-tab watercolor blot is square art; let it keep its shape inside each wide tab. */
.bottom-nav button[aria-current=page]::before{background-size:contain!important}
html[lang=ko] .settings .backup-section p{word-break:keep-all;overflow-wrap:normal}
@media(min-width:500px){.settings .backup-section .setting-actions>button:nth-child(3):last-child{width:min(100%,220px)!important}}
@media(min-width:361px) and (max-width:499px){html[lang=ja] .settings .backup-section .setting-actions>button:nth-child(-n+2){font-size:13px;letter-spacing:0;padding-left:6px;padding-right:6px}}
@media(min-width:560px) and (min-height:441px) and (max-height:800px){
  .slide-screen.shell{max-width:600px;padding-left:16px;padding-right:16px}
  .slide-screen main{display:grid;grid-template-columns:minmax(0,340px) minmax(0,1fr);grid-template-rows:auto auto auto auto 1fr;align-items:start;justify-content:center;gap:7px 10px;width:100%;max-width:600px;margin:12px auto 0}
  .slide-screen .slide-tray{grid-column:1;grid-row:1/6;align-self:start;width:min(56vw,340px)}
  .slide-screen .pic-heading{grid-column:2;grid-row:1;margin:0;min-width:0;text-align:center}
  .slide-screen .pic-heading h1{font-size:clamp(23px,4vw,30px);line-height:1.1}
  .slide-screen .pic-heading .eyebrow{font-size:12px;line-height:1.3}
  .slide-screen .slide-guide{grid-column:2;grid-row:2;max-width:none;min-width:0;padding:8px 12px;font-size:12px}
  .slide-screen .slide-moves{grid-column:2;grid-row:3;justify-self:center;margin:0}
  .slide-screen .slide-last{grid-column:2;grid-row:4;justify-self:center;gap:4px}
  .slide-screen .slide-dish{width:64px;height:64px}
  .slide-screen .last-piece{width:40px;height:40px}
  .slide-screen .slide-last-label{font-size:12px}
  .slide-screen .slide-pencils{display:none}
  .slide-screen .game-tools.slide-tools{grid-column:2;grid-row:5;grid-template-columns:repeat(3,54px);justify-content:center;align-self:start;gap:5px;width:100%;margin:0}
  .slide-screen .game-tools.slide-tools .tool{width:54px;height:54px;font-size:10px}
  .slide-screen .game-tools.slide-tools .tool>span:not(.sub){font-size:10px}
  .slide-screen .game-tools.slide-tools .tool .art-icon,.slide-screen .game-tools.slide-tools .tool .tool-pic{width:22px!important;height:22px!important}
  .slide-screen .game-tools.slide-tools .tool .art-icon,.slide-screen .game-tools.slide-tools .tool .tool-pic{top:33%}
  .slide-screen .game-tools.slide-tools .tool>span:not(.sub){position:absolute;left:2px;right:2px;bottom:6px;width:auto;margin:0;line-height:1.1;white-space:nowrap}
  html[lang=ja] .slide-screen .game-tools.slide-tools .tool>span:not(.sub){font-size:10px!important;letter-spacing:-.4px}
}
@media(min-width:600px) and (min-height:441px) and (max-height:800px){
  .slide-screen .game-tools.slide-tools{grid-template-columns:repeat(3,64px)}
  .slide-screen .game-tools.slide-tools .tool{width:64px;height:64px}
  .slide-screen .game-tools.slide-tools .tool .art-icon,.slide-screen .game-tools.slide-tools .tool .tool-pic{width:25px!important;height:25px!important}
  .slide-screen .game-tools.slide-tools .tool>span:not(.sub){font-size:11px}
  html[lang=ja] .slide-screen .game-tools.slide-tools .tool>span:not(.sub){font-size:11px!important}
}
@media(min-width:900px) and (min-height:441px) and (max-height:800px){
  .slide-screen.shell{max-width:760px}
  .slide-screen main{max-width:760px;grid-template-columns:minmax(0,400px) minmax(0,1fr)}
  .slide-screen .slide-tray{width:min(400px,calc(100svh - 100px))}
}
@media(min-width:560px) and (min-height:700px) and (max-height:800px){.slide-screen main{margin-top:clamp(12px,calc((100svh - 550px)/2),125px)}}
/* Keep the home action above the fixed tabs on short, wide phone viewports. */
@media(min-width:500px) and (max-height:560px){
  .home-screen .wc-hero .hero-logo.wc-logo{width:72%;margin-top:0}
  .home-screen .resume-card{margin-top:12px;padding:18px 22px 14px}
  .home-screen .resume-card .resume-info h2{margin-top:8px}
  .home-screen .resume-card .resume-meter{margin-top:8px}
  .home-screen .resume-card .primary{height:58px;margin-top:8px}
}
@media(min-width:680px) and (max-height:500px){
  .home-screen .wc-hero .hero-logo.wc-logo{width:60%}
  .home-screen .resume-card{margin-top:4px;padding:12px 18px 8px}
  .home-screen .resume-card .wc-preview{width:min(100%,110px);justify-self:end}
  .home-screen .resume-card .resume-info h2{margin-top:4px}
  .home-screen .resume-card .resume-meter{margin-top:4px}
  .home-screen .resume-card .primary{height:50px;margin-top:4px}
}
@media(min-width:500px) and (max-width:679px) and (min-height:700px) and (max-height:850px){
  .home-screen .wc-hero .hero-logo.wc-logo{width:78%}
  .home-screen .resume-card{margin-top:12px;padding-top:20px;padding-bottom:14px}
  .home-screen .resume-card .primary{height:58px;margin-top:8px}
}
@media(min-width:500px) and (max-width:679px) and (min-height:700px) and (max-height:790px){
  .home-screen .wc-hero .hero-logo.wc-logo{width:76%}
  .home-screen .resume-card{margin-top:12px;padding-top:16px}
  .home-screen .resume-card .primary{height:54px}
  .home-screen main>.daily-tools,.home-screen main>.home-help{margin-top:8px!important}
}
@media(min-width:680px) and (min-height:750px) and (max-height:850px){
  .home-screen .wc-hero .hero-logo.wc-logo{width:72%}
  .home-screen .resume-card{margin-top:8px;padding-top:16px;padding-bottom:12px}
  .home-screen .resume-card .primary{height:54px;margin-top:6px}
  .home-screen main>.daily-tools,.home-screen main>.home-help{margin-top:8px!important}
}
@media(min-width:680px) and (min-height:750px) and (max-height:767px){
  .home-screen .wc-hero .hero-logo.wc-logo{width:68%}
  .home-screen .resume-card{margin-top:4px;padding-top:12px;padding-bottom:10px}
  .home-screen .resume-card .primary{height:50px}
  .home-screen main>.daily-tools,.home-screen main>.home-help{margin-top:4px!important}
}
@media(min-width:500px) and (max-height:520px){
  .settings .section-heading{margin:6px 0 2px}
  .settings .settings-section:first-of-type .setting-row{padding-top:9px;padding-bottom:9px}
}
@media(min-width:800px) and (max-height:520px){
  body:has(main.settings) .shell{max-width:760px}
  .settings{max-width:720px}
  .settings .settings-section:first-of-type{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .settings .settings-section:first-of-type .setting-row:nth-child(3){grid-column:1/-1}
}
@media(min-width:800px) and (max-height:460px){.settings .section-heading .eyebrow{display:none}}
@media(min-width:800px) and (max-height:520px){
  .collection-screen:has(.pic-album).shell{max-width:760px}
  .collection-screen main:has(.pic-album){display:grid;grid-template-columns:300px minmax(0,1fr);gap:12px 18px}
  .collection-screen main:has(.pic-album) .section-heading{grid-column:1;grid-row:1;align-self:center;margin:0}
  .collection-screen main:has(.pic-album) .collection-tabs{grid-column:2;grid-row:1;align-self:center;margin:0!important}
  .collection-screen main:has(.pic-album) .pic-album,.collection-screen main:has(.pic-album) .pic-shelf-note{grid-column:1/-1}
}
/* These last painted surfaces also need fixed end caps when their text makes them wider. */
#modal.result .reward::before{
  background-image:none!important;border:1px solid transparent;
  border-image:url('../assets/wc/btn-primary.webp') 50 90 fill / 20px 30px / 0 stretch;
}
@media(min-width:1100px) and (min-height:700px){
  body:has(main.settings) .shell{max-width:860px}
  main.settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px;max-width:none}
  .settings .section-heading{grid-column:1/-1;grid-row:1;margin:12px 0 0}
  .settings .settings-section{margin:0;align-self:start}
  .settings .settings-section:first-of-type{grid-column:1;grid-row:2}
  .settings .settings-section:nth-of-type(2){grid-column:2;grid-row:2/span 4}
  .settings .backup-section{grid-column:1;grid-row:3}
  .settings>.setting-actions{grid-column:1;grid-row:4}
  .settings>.wc-links{grid-column:2;grid-row:1;justify-self:end;align-self:end;margin:0 0 8px}
  .collection-screen:has(.pic-album).shell{max-width:860px}
  .collection-screen main:has(.pic-album){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px;align-items:start}
  .collection-screen main:has(.pic-album) .section-heading{grid-column:1;grid-row:1;align-self:center;margin:0}
  .collection-screen main:has(.pic-album) .collection-tabs{grid-column:2;grid-row:1;align-self:center;margin:0!important}
  .collection-screen main:has(.pic-album) .pic-album{margin:0}
  .collection-screen main:has(.pic-album) .pic-album:last-of-type{grid-column:1/-1;width:calc((100% - 24px)/2);justify-self:center}
  .collection-screen main:has(.pic-album) .pic-shelf-note{grid-column:1/-1;max-width:none}
}

/* Region progress: the fill eases forward and glows when a region is finished */
.game-screen #region-progress>span{transition:width .55s cubic-bezier(.22,1,.36,1)}
.game-screen #region-progress.gain>span{animation:wc-bar-gain .7s ease-out}
.game-screen #game-progress.gain{animation:wc-count-pop .45s ease-out}
@keyframes wc-bar-gain{0%{filter:none}30%{filter:brightness(1.25) saturate(1.3) drop-shadow(0 0 4px #ffd66e)}100%{filter:none}}
@keyframes wc-count-pop{0%{transform:none}35%{transform:scale(1.12)}100%{transform:none}}
@media(prefers-reduced-motion:reduce){.game-screen #region-progress>span{transition:none}.game-screen #region-progress.gain>span,.game-screen #game-progress.gain{animation:none}}

/* Screen changes: the fixed top bar and bottom tabs stay put; only the content fades in, so cards never show through a half-transparent tab bar */
#app>.shell{animation:none}
#app>.shell:not(.home-screen):not(.collection-screen)>:not(.topbar):not(.bottom-nav){animation:wc-fade-in .22s ease-out both}
#app>.shell>:is(.topbar,.bottom-nav){animation:none!important}
.reduce-motion #app>.shell>*{animation:none!important}
@media(prefers-reduced-motion:reduce){#app>.shell>*{animation:none!important}}

/* Result: the paint splats burst in one after another, then drift gently */
#modal.result .wc-splat{animation:wc-splat-in .6s cubic-bezier(.2,1.5,.4,1) both,wc-splat-float 3.6s ease-in-out infinite alternate}
#modal.result .wc-splat.s1{animation-delay:.35s,1s}
#modal.result .wc-splat.s2{animation-delay:.5s,1.3s}
#modal.result .wc-splat.s3{animation-delay:.65s,1.6s}
@keyframes wc-splat-in{from{opacity:0;transform:scale(.2) rotate(-28deg)}to{opacity:.9;transform:none}}
@keyframes wc-splat-float{from{translate:0 0;rotate:0deg}to{translate:0 -5px;rotate:4deg}}
.reduce-motion #modal.result .wc-splat{animation:none}
@media(prefers-reduced-motion:reduce){#modal.result .wc-splat{animation:none}}

/* Calendar legend: each chip uses the same painted cell as the day it explains */
.calendar-legend .legend-chip{background:url('../assets/pic/cell-open.webp') center/100% 100% no-repeat!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:var(--wc-ink)!important;font-weight:700}
.calendar-legend .legend-chip.collected{background-image:url('../assets/pic/cell-done.webp')!important;color:#2f6b45!important}
.calendar-legend .legend-chip.open,.calendar-legend .legend-chip.resume{background-image:url('../assets/pic/cell-today.webp')!important;color:#2e5aa6!important}
.calendar-legend .legend-chip.protected{background-image:url('../assets/pic/cell-protected.webp')!important;color:#6b4fa0!important}

/* Share text: a small torn-paper note (same painted 9-slice as the cards) instead of a CSS box; focus is a soft rose glow */
#modal textarea{background:none!important;border:14px solid transparent!important;border-image:url('../assets/wc/card-large.webp') 46 fill / 14px / 0 stretch!important;border-radius:0!important;box-shadow:none!important;padding:2px 4px!important}
#modal textarea:focus-visible{border-color:transparent!important;filter:drop-shadow(0 0 3px #e8a0ad)}
#modal .share-status{margin:4px 0 0;min-height:1.2em}
/* Short phones: the binder clip sits lower so it never covers the tagline's last letters */
@media(max-height:760px){.wc-preview .wc-clip{top:-13px}}

/* Locked picture cards keep their dimmed look but can be tapped for a nudge */
.pic-card[aria-disabled="true"]{cursor:default;opacity:.42}
.pic-card.nudge{animation:wc-nudge .42s ease-out}
.pic-card.nudge .pic-lock{animation:wc-lock-wiggle .5s ease-out}
@keyframes wc-nudge{20%{translate:-5px 0}40%{translate:5px 0}60%{translate:-3px 0}80%{translate:2px 0}}
@keyframes wc-lock-wiggle{0%,100%{rotate:0deg;scale:1}25%{rotate:-14deg;scale:1.12}50%{rotate:11deg}75%{rotate:-6deg}}
.reduce-motion .pic-card.nudge,.reduce-motion .pic-card.nudge .pic-lock{animation:none}

[data-level][aria-disabled="true"]{cursor:default}
[data-level].nudge{animation:wc-nudge .42s ease-out}
.reduce-motion [data-level].nudge{animation:none}

/* Locked level cards: same look as the former disabled buttons */
.art-card[aria-disabled="true"]{opacity:1;color:var(--muted);background:#dcedf9}
.art-card[aria-disabled="true"] .thumb{opacity:.65}
.art-card[aria-disabled="true"]{background:#f4f8fd;color:var(--pd-ink-soft)}

/* Locked level thumbnails use the painted sealed envelope and brass lock */
.art-card .thumb.locked{position:relative;background:#fbf6ec url('../assets/pic/sealed.webp') center/auto 108% no-repeat!important;border:0!important;box-shadow:none!important}
.art-card .thumb.locked>svg{display:none!important}
.art-card .thumb.locked::after{content:'';position:absolute;left:50%;top:50%;width:min(34%,44px);aspect-ratio:1;translate:-50% -50%;background:url('../assets/pic/lock.webp') center/contain no-repeat}

/* Classic cover badges: painted check stamp and brass lock */
.album-book .check{background:url('../assets/pic/check-v2.webp') center/contain no-repeat!important;border:0!important;box-shadow:none!important;color:transparent!important;font-size:0!important}
.album-book .cover-lock{background:url('../assets/pic/lock.webp') center/contain no-repeat!important;border:0!important;box-shadow:none!important;border-radius:0!important;filter:drop-shadow(0 1px 1px rgba(80,50,20,.3))}
.album-book .cover-lock>*{display:none!important}
/* Language picker sits on the same painted cream button as the other settings controls */
#language{background:url('../assets/wc/btn-cream.webp') center/100% 100% no-repeat!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:0 8px 0 14px!important;color:var(--wc-ink);font-family:'WC Jua',system-ui}

[data-action="saveHistory"]{white-space:nowrap;min-width:9.5em;padding-left:18px!important;padding-right:18px!important}
.settings .setting-actions>[data-action="saveHistory"]:nth-child(3):last-child{width:auto!important;justify-self:center}

/* Painted watercolor star instead of the old glossy UI-kit star */
.album-book.complete-book::after,.daily-badge,.calendar-day.collected::after{background:url('../assets/pic/star.webp') center/contain no-repeat!important}

@media(max-width:360px){html[lang=ko] .collection-tabs button{flex-direction:column;flex-wrap:nowrap;gap:2px!important;min-height:52px!important;padding:6px 4px!important;white-space:nowrap;text-align:center}html[lang=ko] .collection-tabs button span{flex:none}}

/* AF: watercolor gift boxes and glow wash replace the old glossy UI-kit cells */
.gift-open{background:url('../assets/pic/gift-box-closed.webp') center/contain no-repeat!important;animation:pd-gift 1.35s ease-out both,wc-gift-open 1.35s steps(1) both!important}
@keyframes wc-gift-open{0%{background-image:url('../assets/pic/gift-box-closed.webp')}45%{background-image:url('../assets/pic/gift-box-open.webp')}}
.album-gift-panel::after{background:url('../assets/pic/gift-box-closed.webp') center/contain no-repeat!important}
.reward-stage::before,.result-mosaic i.newest::after,.completion-scene::before{background:url('../assets/pic/glow-wash.webp') center/contain no-repeat!important}
/* AG: album-complete line on a flowered paper badge (ends kept by 9-slice, plain middle stretches) */
#modal.result .album-gift-earned,#modal.result .gift-earned,#modal.result .archive-note{background:none!important;border:solid transparent!important;border-width:9px 34px!important;border-image:url('../assets/pic/result-album-badge.webp') 48 190 fill / 9px 34px / 0 stretch!important;border-radius:0!important;box-shadow:none!important;padding:2px 2px!important;min-height:0}
#modal textarea{height:clamp(104px,19dvh,150px)!important;border-width:12px!important;border-image-width:12px!important;line-height:1.45}
.reward-card :is(h2,h3,strong,b){text-wrap:balance}
@media(max-width:360px){.reward-card{border-width:16px!important;border-image-width:16px!important;padding-left:2px!important;padding-right:2px!important}.reward-card strong{text-wrap:balance!important}}

/* Slide hint: lift + gold glow on the piece to move */
.slide-piece.hinted{z-index:3;animation:wc-hint-lift .9s ease-in-out 2}
.slide-piece.hinted canvas{box-shadow:0 0 0 3px #f2c14e,0 0 14px 4px #ffd66ecc}
@keyframes wc-hint-lift{0%,100%{translate:0 0;scale:1;filter:none}50%{translate:0 -5px;scale:1.06;filter:drop-shadow(0 6px 8px rgba(120,70,20,.35)) brightness(1.08)}}
.reduce-motion .slide-piece.hinted{animation:none}
.slide-piece.hinted::after{content:'';position:absolute;inset:0;z-index:2;border:3px solid #f2b83c;border-radius:5px;box-shadow:inset 0 0 16px 5px rgba(255,214,110,.9);background:rgba(255,236,170,.18);pointer-events:none;animation:wc-hint-flash .9s ease-in-out 2 both}
@keyframes wc-hint-flash{0%{opacity:0}30%,70%{opacity:1}100%{opacity:.15}}
.reduce-motion .slide-piece.hinted::after{animation:none;opacity:1}

/* Earned coins rise from the top counter */
.coin-gain{position:fixed;z-index:70;translate:-50% 0;pointer-events:none;font:700 18px/1 'WC Jua',system-ui;color:#b5711a;text-shadow:0 0 3px #fffaf0,0 0 6px #fffaf0,0 1px 0 #fff;animation:wc-coin-gain 1.4s ease-out both}
@keyframes wc-coin-gain{0%{opacity:0;transform:translateY(14px) scale(.7)}18%{opacity:1;transform:translateY(0) scale(1.15)}30%{transform:scale(1)}75%{opacity:1}100%{opacity:0;transform:translateY(-6px)}}
.topbar .coins.gain-bump{animation:coin-bump .5s ease-out}
.reduce-motion .coin-gain{display:none}

/* Tall tablets: a bigger easel canvas (room is measured against the screen height so the tools stay visible) */
@media(min-width:700px) and (min-height:900px){.game-screen:not(:has(.lesson-guide)) .board-frame{--fw:min(calc(100vw - 140px),calc(100dvh - 500px),580px);max-width:var(--fw)}}
@media(min-width:700px) and (min-height:900px){.shell.game-screen:not(:has(.lesson-guide)){max-width:660px!important}}
@media(min-width:700px) and (min-height:900px){.slide-screen .slide-tray{width:min(calc(100vw - 140px),calc(100dvh - 520px),560px)}}

/* Laptop screens: picture screen side by side, everything above the tab bar */
@media(min-width:900px) and (min-height:560px) and (max-height:880px){
  .shell.picture-screen{max-width:900px!important}
  .picture-screen main{display:grid;grid-template-columns:auto 330px;grid-template-rows:1fr auto auto auto 1fr;column-gap:40px;row-gap:14px;justify-content:center;align-items:center;min-height:calc(100dvh - 190px)}
  .picture-screen main>.pic-stage{grid-column:1;grid-row:1/-1;width:min(440px,calc((100dvh - 200px) * .894));max-width:none}
  .picture-screen main>.pic-heading{grid-column:2;grid-row:2;width:auto;margin:0;text-align:center}
  .picture-screen main>.pic-steps{grid-column:2;grid-row:3;margin:0 auto}
  .picture-screen main>.pic-go{grid-column:2;grid-row:4;margin:0 auto}
  .picture-screen main>.pic-note{grid-column:2;grid-row:5;align-self:start;margin:0 auto}
}
@media(min-width:900px) and (min-height:560px) and (max-height:880px){.picture-screen main>.pic-go{width:auto!important;min-width:260px;max-width:330px;white-space:nowrap;padding-left:28px!important;padding-right:28px!important}}

/* Calendar: gaps belong to the day cells (transparent border) so every tap hits a date; the painted cell keeps its size */
#modal .calendar-grid{gap:0!important}
#modal .calendar-day{border:2px solid transparent!important;background-origin:content-box!important;background-clip:content-box!important;box-sizing:border-box}
@media(max-width:360px),(max-height:620px){#modal .calendar-day{border-width:1.5px!important}}
.game-screen .zoom-controls{gap:8px}.game-screen .zoom-controls button::after{inset:-5px -4px}
@supports not (word-break:auto-phrase){.home-screen .home-bottom .small-card p:lang(ja){word-break:keep-all;overflow-wrap:anywhere}}
@supports not (word-break:auto-phrase){:lang(ja) :is(#modal-title,#modal h2,.reward-card strong,.small-card h2){word-break:keep-all;overflow-wrap:anywhere}}
.reduce-motion .game-screen #region-progress>span{transition:none}.reduce-motion .game-screen #region-progress.gain>span,.reduce-motion .game-screen #game-progress.gain{animation:none}

/* ===== Mobile Safari feedback 2026-10-09 ===== */
/* Bottom bar backing: plain paper right behind the bar (no cut-off band of the watercolor backdrop), fading in softly at the top */
.bottom-nav::before{left:-10px!important;right:-10px!important;width:auto!important;transform:none!important;top:-14px!important;bottom:calc(-1 * env(safe-area-inset-bottom,0px) - 24px)!important;height:auto!important;background:#f7f1e5!important;-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 14px);mask-image:linear-gradient(to bottom,transparent 0,#000 14px);border-radius:18px 18px 0 0}
/* Master test banner: one compact row on phones */
@media(max-width:600px){#master-banner{flex-wrap:nowrap!important;padding:6px 8px 6px 12px!important;gap:8px!important;border-radius:12px!important}
  #master-banner p,#master-banner span:not(:first-child),#master-banner small{display:none!important}
  #master-banner strong,#master-banner b{font-size:12px!important;line-height:1.25}
  #master-banner button{flex:none;min-height:34px!important;padding:4px 10px!important;font-size:11px!important}}
/* Bigger paintings inside buttons */
.game-screen .game-tools .tool .art-icon{width:min(44px,48%)!important;height:auto!important;aspect-ratio:1/1;top:28%!important}
.bottom-nav button img,.bottom-nav button .art-icon{width:40px!important;height:40px!important}
.home-screen :is(.daily-tools,.home-help) img{width:34px!important;height:34px!important}
.home-screen .home-help img[src*="ui-help"]{width:30px!important;height:30px!important}
.home-screen .home-bottom .small-card img[src*="calendar"]{width:60px!important;height:auto!important}
.home-screen .home-bottom .small-card img[src*="gallery"]{width:68px!important;height:auto!important}
.home-screen .home-bottom .small-card img[src*="vase"]{width:32px!important;height:auto!important}
/* Master test (taller page): the last home buttons can scroll fully above the fixed bar */
body:has(#master-banner) .home-screen main{padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))!important}
.home-screen .resume-card.all-done .wc-card-title{font-size:clamp(21px,6.4vw,27px)!important;line-height:1.22}
:lang(ja) .home-screen .resume-card.all-done .wc-card-title{word-break:keep-all}
/* User decision: nothing behind the bottom bar but its own painting (transparent around it) */
.bottom-nav::before{display:none!important}
.small-card.gift-earned .gift-line::after{content:' ·'}

/* slide landing fx (last piece) and finale glints/sweep; the finale bits are only styled in the stage skin */
.land-fx{position:fixed;margin:0;padding:0;border:0;background:none;overflow:visible;pointer-events:none;z-index:70;inset:auto}
.land-fx>img{position:absolute;pointer-events:none;max-width:none}
.land-clip{position:absolute;inset:0;overflow:hidden;border-radius:4px}.land-clip>img{position:absolute;max-width:none}
.land-bloom{opacity:0;animation:land-bloom .62s cubic-bezier(.2,.7,.3,1) forwards}
.land-sweep{top:-10%;height:120%;width:38%;left:0;opacity:0;animation:land-sweep .75s .12s cubic-bezier(.45,0,.35,1) forwards}
.land-glint{opacity:0;transform:scale(0);animation:land-glint .55s ease-out forwards}
@keyframes land-bloom{0%{opacity:.95;transform:scale(.62)}100%{opacity:0;transform:scale(1.25)}}
@keyframes land-sweep{0%{opacity:0;transform:translateX(-100%) skewX(-16deg)}15%{opacity:1}85%{opacity:1}100%{opacity:0;transform:translateX(270%) skewX(-16deg)}}
@keyframes land-glint{0%{opacity:0;transform:scale(0) rotate(0)}45%{opacity:1;transform:scale(1) rotate(20deg)}100%{opacity:0;transform:scale(.4) rotate(45deg)}}
.pic-sweep,.pic-glints{display:none}
.slide-flying canvas{filter:none!important}
/* attendance board on every skin (the stage skin refines it in stage.css) */
#modal .calendar-grid.attendance-grid{grid-template-columns:repeat(7,1fr)}
#modal .attendance-grid .calendar-day{cursor:default;pointer-events:none}
#modal .attendance-heading{justify-content:center}
#modal .attendance-gifts{display:flex;flex-direction:column;gap:6px;padding:10px 12px}
#modal .attendance-gifts li{display:flex;align-items:center;gap:8px;width:100%;white-space:normal;min-width:0}
#modal .attendance-gifts .attendance-gift-icon{width:32px;height:32px;flex:none}
#modal .attendance-gifts li>span{display:flex;flex-direction:column;flex:1;min-width:0;line-height:1.2;text-align:left}
#modal .attendance-gifts li b{font-weight:400}
#modal .attendance-gifts li em{font-style:normal;font-size:.85em;opacity:.8}
#modal .attendance-gifts li small{flex:none;font-size:.85em}
#modal.result .hint-gift{display:flex;align-items:center;justify-content:center;gap:4px;margin:2px 0 0}
#modal.result .hint-gift img{width:22px;height:22px}
.game-tools .tool .ad-badge{display:none}
.game-tools .tool[data-action="hint"][data-kind="coin"] .ad-badge{display:block;position:absolute;top:-4px;left:-4px;padding:1px 6px;border-radius:9px;background:#f6d3da;color:#8a3348;font:700 11px/1.3 system-ui;font-style:normal;pointer-events:none}
#modal .modal-actions>button.ad-action{background:#6fb0d6;color:#fff}
#modal .ad-mark{font-style:normal;font-size:.75em;padding:1px 5px;margin-right:6px;border-radius:8px;background:#f6d3da;color:#8a3348}
#modal .attendance-grid .calendar-day.opened{pointer-events:auto;cursor:pointer;background:#f7d36b;border:0;color:#7a4f00}
.hint-pick-guide{position:absolute;left:50%;top:-12px;transform:translateX(-50%);z-index:6;display:flex;align-items:center;gap:8px;white-space:nowrap;padding:4px 8px;border-radius:16px;background:#fff8e6;box-shadow:0 2px 6px rgba(0,0,0,.15)}
.board-frame.hint-picking{box-shadow:0 0 0 3px #f2c94c}
