/* Shared interface. Component rules are owned here, rather than layered across themes. */
:root{--ui-line:#dfe2d8;--ui-muted:#6d776c;--ui-paper:#f6f3e9;--ui-radius:22px}
body{background:var(--ui-paper);color:#283d30}
button,a,input,select,summary{-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #567454;outline-offset:4px}
button:disabled{cursor:default}
[hidden]{display:none!important}
.skip-link{position:fixed;left:16px;top:-80px;z-index:2000;padding:12px 20px;background:#294e3d;color:white;border-radius:6px}
.skip-link:focus{top:12px}
.app-header{display:flex;align-items:center;gap:32px;max-width:1440px;width:calc(100% - 80px);min-height:96px;margin:0 auto;padding:16px 0;border-bottom:1px solid var(--ui-line)}
.brand{display:inline-flex;align-items:center;gap:8px;flex-shrink:0;padding:0;background:none;border:0;color:inherit;font:600 36px/1.1 var(--serif,Georgia);letter-spacing:-.7px;white-space:nowrap}
.brand small{display:block;font:500 8px/1.8 var(--sans,system-ui);letter-spacing:2px;margin-top:3px}
.brand-mark{display:block;width:29px;height:38px}
.brand-mark svg{width:100%;height:100%}
.app-header nav{display:flex;gap:4px;margin-left:48px;align-items:center}
.app-header nav button{display:block;min-width:68px;min-height:44px;padding:10px 16px;border:0;border-radius:22px;background:none;color:var(--ui-muted);font:500 14px/1.3 var(--sans,system-ui)}
.app-header nav button:hover{background:#e9ede3;color:#294e3d}
.app-header nav button[aria-current=page]{background:#294e3d;color:#fcfaf3}
.account{display:flex;align-items:center;gap:24px;margin-left:auto}
.currency{font:13px var(--sans,system-ui);white-space:nowrap;color:#58704d}
.currency>span{font-size:18px;vertical-align:middle;margin-right:3px}
.account-button{min-height:44px;padding:10px 4px;border:0;background:none;color:#42573e;font:500 13px var(--sans,system-ui);white-space:nowrap}
.layout{display:block;width:calc(100% - 80px);max-width:1160px;margin:52px auto 60px;padding:0;min-height:calc(100dvh - 240px)}
.main-content{min-width:0;width:100%}
.layout.is-playing{max-width:1280px}.layout.is-design{max-width:1760px;width:calc(100% - 48px);margin-top:24px}
#main-content:focus{outline:none}
.page-title,.designer-heading h1{font:500 40px/1.15 var(--serif,Georgia);letter-spacing:-1px;margin:0 0 32px;color:#283d30}
.subtext{font:14px/1.6 var(--sans,system-ui);color:var(--ui-muted);margin:0 0 28px}
.designer-heading{display:flex;align-items:center;min-width:0;margin:0 0 20px}.designer-heading h1{margin:0}
.home-screen{display:grid;grid-template-columns:.85fr 1.15fr;align-items:center;gap:48px;min-height:480px}
.home-copy h1{font:500 clamp(46px,5.5vw,72px)/1.05 var(--serif,Georgia);letter-spacing:-2px;margin:0 0 36px}
.home-start{gap:16px;min-height:58px;min-width:230px;padding:8px 22px;font-size:15px;border-radius:8px;justify-content:space-between}
.home-mochi{display:block;width:38px;height:44px;flex:0 0 38px}.home-mochi svg{width:100%;height:100%}
.home-garden{display:block;width:100%;height:480px;object-fit:cover;object-position:center;border-radius:var(--ui-radius)}
.home-links{display:grid;grid-template-columns:1fr 1fr;gap:32px;margin-top:40px;border-top:1px solid var(--ui-line)}
.home-links>button{display:flex;align-items:center;gap:18px;min-height:92px;padding:18px 2px;background:none;border:0;text-align:left;color:#334c38;font:500 16px var(--sans,system-ui)}
.home-links>button:hover{color:#567454}.home-links>button>span:last-child{margin-left:auto}
.home-link-art{display:block;width:32px;height:40px}.home-link-art svg{width:100%;height:100%}
.home-lanterns{display:flex;gap:5px;margin-left:auto}.home-lanterns i{width:8px;height:11px;border:1px solid #a2ad96;border-radius:4px;background:transparent}.home-lanterns i.earned{background:#7f9569;border-color:#7f9569}
.home-links>button>.home-lanterns+span{margin-left:2px}
.app-footer{display:flex;align-items:center;gap:24px;max-width:1440px;width:calc(100% - 80px);margin:0 auto;padding:20px 0 28px;border-top:1px solid var(--ui-line);font:11px/1.5 var(--sans,system-ui);color:var(--ui-muted)}
.app-footer>span{margin-left:auto}.app-footer .text-btn{min-height:36px;padding:8px 0;font-size:12px}
.account-banner{display:flex;align-items:center;justify-content:center;gap:18px;width:calc(100% - 48px);max-width:1440px;margin:10px auto 0;min-height:36px;font:12px/1.4 var(--sans,system-ui);color:#6b744f}
.account-banner .text-btn{font-size:12px}
/* Learning: one rule, one board, one practice action. */
.piece-tabs{display:flex;gap:10px;margin:0 0 28px;flex-wrap:wrap}
.piece-tabs button{width:60px;height:64px;padding:4px;border:1px solid transparent;border-radius:9px;background:transparent}
.piece-tabs button:hover{background:#edf0e6}.piece-tabs button.active{background:#e0e9d8;border-color:#a7b79b}
.piece-tabs svg{width:100%;height:100%}
.explorer{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(300px,1fr);align-items:start;gap:40px;padding:30px;border:1px solid #dcd9c9;border-radius:22px;background:#fcfaf3}
.lesson-copy{min-width:0}.lesson-copy h2{font:500 32px/1.2 var(--serif,Georgia);margin:4px 0 20px}.lesson-copy .rule{font-size:15px;line-height:1.8;padding:0 0 24px;border:0}
.garden-board{width:100%;max-width:520px;margin:0 auto}
.lesson-challenge{display:flex;width:100%;max-width:520px;min-height:52px;margin:16px auto 0;font-size:14px;border-radius:8px}
.lesson-task{margin:0 0 12px}.lesson-task p:empty{display:none}
.voice-status:empty{display:none}
/* Sound has one entry point. Controls remain native and keyboard accessible. */
.garden-sound{float:right;position:relative;z-index:8;margin:0 0 16px 20px;font:12px var(--sans,system-ui)}
.garden-sound>summary{display:list-item;min-height:40px;padding:10px 14px;cursor:pointer;color:#52684b;list-style-position:inside;border:1px solid var(--ui-line);border-radius:7px}
.sound-settings{position:absolute;right:0;top:46px;min-width:230px;padding:18px;background:var(--ui-paper);border:1px solid var(--ui-line);border-radius:8px;box-shadow:0 8px 30px #23352412}
.sound-settings>button{min-height:40px;padding:8px 12px;border:1px solid var(--ui-line);border-radius:6px;background:#e9ede3;color:#344c37;font:inherit}
.sound-settings>label{display:flex;align-items:center;gap:14px;margin-top:14px}.sound-settings input{width:140px;accent-color:#567454}.sound-settings>span{display:block;margin-top:10px}.sound-settings>span:empty{display:none}
/* A welcome step contains its task, not a second explanation of its task. */
.welcome-card{border:1px solid #dcd9c9;border-radius:28px;background:#fcfaf3;max-width:530px;margin:20px auto 50px;text-align:center;min-height:430px;padding:28px 20px}
.welcome-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.welcome-top .eyebrow{letter-spacing:0;font-size:12px}.welcome-top .text-btn{min-height:44px}
.welcome-dots{display:flex;justify-content:center;gap:6px;margin:0 0 32px}.welcome-dots i{height:4px;width:22px;border-radius:3px;background:#dce2d5}.welcome-dots i.current{background:#62805b}
.welcome-mochi{width:105px;height:130px;margin:0 auto 24px}.welcome-mochi>svg{width:100%;height:100%}
.welcome-card h1{font:500 39px/1.15 var(--serif,Georgia);letter-spacing:-.6px;margin:0 0 28px}
.welcome-next{display:flex;align-items:center;justify-content:space-between;min-width:240px;min-height:54px;margin:24px auto 8px;font-size:14px;border-radius:8px}
.welcome-next-picture{display:block;width:30px;height:36px;flex:0 0 30px}.welcome-next-picture>svg{width:100%;height:100%}
.welcome-voice{display:flex;align-items:center;justify-content:center;gap:24px;margin-top:24px;font:12px var(--sans,system-ui)}
.welcome-voice>button{display:flex;align-items:center;gap:8px;min-height:44px}.welcome-voice svg{width:22px;height:22px}.welcome-voice label{display:flex;align-items:center;gap:7px;min-height:44px}
.welcome-mini-board{display:grid;grid-template-columns:repeat(3,1fr);max-width:270px;margin:0 auto;border:5px solid #d3dac8;border-radius:6px;overflow:hidden}
.welcome-square{position:relative;aspect-ratio:1;background:#f0ebd7;border:0;padding:5px}.welcome-square.dark{background:#a6b397}.welcome-square svg{width:100%;height:100%}
.welcome-square.pawn-glow{box-shadow:inset 0 0 0 3px #f0d17b}.welcome-star{font-size:36px;color:#755d1f;background:#eee0a3}.welcome-final-art{position:relative;max-width:300px;height:180px;margin:0 auto 20px}.welcome-final-art>svg{width:100%;height:100%}.welcome-final-art>span{display:block;position:absolute;width:60px;height:85px;right:15px;bottom:0}.welcome-final-art>span>svg{width:100%;height:100%}
/* Park progress is a single actionable row; its story is an intentional disclosure. */
.stream-journey{position:relative;margin:0 0 20px;border:1px solid var(--ui-line);border-radius:9px;background:#eef0e5;padding:14px 18px}
.stream-heading{display:flex;align-items:center;justify-content:flex-end;gap:12px;position:absolute;right:18px;top:12px}.stream-heading .round-listen{height:32px;width:32px}.stream-heading .builder-small-btn{min-height:32px;padding:4px 10px;font-size:12px}
.stream-next{display:flex;align-items:center;gap:16px;min-height:76px;padding-right:150px}
.stream-friend{display:block;width:42px;height:58px;flex:0 0 42px}.stream-friend>svg{width:100%;height:100%}
.stream-next-copy{flex:1;min-width:0}.stream-next h2{font:500 25px/1.2 var(--serif,Georgia);margin:0}
.stream-next>.btn{flex-shrink:0;min-height:42px;padding:10px 18px;font-size:12px;gap:16px;border-radius:7px}
.stream-stops{display:flex;gap:12px;list-style:none;margin:54px 0 18px;padding:0;clear:both}.stream-stops li{flex:1}.stream-stops button{display:flex;flex-direction:column;align-items:center;gap:8px;width:100%;background:none;border:0;color:#68765f;font:12px var(--sans,system-ui);min-height:76px}.stream-stops button>span{display:grid;place-items:center;width:30px;height:30px;background:#dce5d2;border-radius:50%;font:16px Georgia}.stream-stops b{font-weight:400}.stream-now button>span{background:#456342;color:#fff}.stream-done button>span{background:#b6c6a5}.stream-later button:disabled{opacity:.45}
.stream-reward{display:flex;gap:16px;align-items:center;border-top:1px solid #d7ddce;margin-top:18px;padding:14px 0 0}.stream-reward-art{display:flex}.stream-reward-art svg{width:40px;height:45px}.stream-reward p{flex:1;margin:0}.stream-reward small{display:block;font-size:11px;color:var(--ui-muted);margin-bottom:4px}.stream-reward b{font:400 18px var(--serif,Georgia)}
.journey-compact .stream-stops,.journey-compact .stream-reward{display:none}.journey-expanded .stream-next{padding-top:10px}
.builder-dock:empty{display:none}.builder-notice:empty{display:none}.builder-stage .builder-scene-tools{flex:1;justify-content:flex-start}.builder-scene-bar>.park-fullscreen{order:3;margin-left:auto}
.park-view-options,.park-grid-options{position:relative;font:12px var(--sans,system-ui)}
.park-view-options>summary,.park-grid-options>summary{cursor:pointer;padding:10px;min-height:44px;display:list-item;list-style-position:inside;white-space:nowrap}
.park-view-options>div,.park-grid-options>div{position:absolute;right:0;top:46px;z-index:30;display:flex;gap:7px;background:var(--ui-paper);padding:10px;border:1px solid var(--ui-line);border-radius:7px;box-shadow:0 6px 20px #20362518}
.builder-audio{border-top:1px solid var(--ui-line);padding:0 14px;font:12px var(--sans,system-ui)}.builder-audio>summary{min-height:42px;padding:12px 0;cursor:pointer}.builder-stage .builder-audio .builder-voice-row{padding:0 0 14px}.builder-voice-row button:disabled{display:none}
/* Offline status is available on demand, and is promoted only when action is needed. */
.offline-support{font:12px/1.5 var(--sans,system-ui);margin:0 auto;max-width:1440px;width:calc(100% - 80px);color:var(--ui-muted)}
.offline-support>summary{display:list-item;cursor:pointer;padding:10px 0;min-height:38px;list-style-position:inside}.offline-support>div{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 0 18px}.offline-support button[hidden]{display:none}
.offline-support.needs-action>summary{color:#52684b}.offline-support>div button{min-height:36px;font-size:12px}
@media(max-width:900px){.app-header{gap:20px;width:calc(100% - 40px)}.app-header nav{margin-left:12px}.account{gap:16px}.layout{width:calc(100% - 48px);margin-top:32px}.home-screen{gap:28px;min-height:380px}.home-garden{height:400px}.home-copy h1{font-size:54px}.explorer{gap:28px}.app-footer,.offline-support{width:calc(100% - 40px)}}
@media(max-width:650px){.app-header{display:grid;grid-template-columns:1fr auto;gap:8px 16px;min-height:108px;padding:12px 0 0;width:calc(100% - 32px)}.brand{font-size:28px}.brand-mark{width:25px;height:32px}.account{gap:14px;margin:0}.account-button{font-size:12px}.currency{font-size:12px}.app-header nav{grid-column:1/-1;grid-row:2;justify-content:space-between;margin:0;gap:6px;padding:0 0 8px}.app-header nav button{flex:1;min-height:42px;min-width:0;font-size:13px;padding:10px 12px}.layout,.layout.is-design{width:calc(100% - 32px);margin:28px auto 40px;min-height:calc(100dvh - 240px)}.layout.is-design{margin-top:20px}.home-screen{display:flex;flex-direction:column;gap:28px;min-height:0;align-items:stretch}.home-copy{display:flex;flex-direction:column;align-items:flex-start}.home-copy h1{font-size:48px;margin-bottom:24px}.home-start{width:100%;min-height:56px}.home-garden{height:clamp(230px,65vw,340px);object-position:center 46%;order:2}.home-links{gap:0;margin-top:24px;grid-template-columns:1fr}.home-links>button{min-height:72px;border-bottom:1px solid var(--ui-line);gap:14px;font-size:14px}.home-links>button:last-child{border:0}.home-link-art{width:26px;height:34px}.app-footer{width:calc(100% - 32px);gap:16px;flex-wrap:wrap;padding:16px 0 24px}.app-footer>span{font-size:10px}.page-title,.designer-heading h1{font-size:34px;margin-bottom:24px}.designer-heading h1{margin-bottom:0}.piece-tabs{gap:6px;justify-content:space-between;margin-bottom:18px}.piece-tabs button{width:calc((100% - 30px)/6);height:auto;aspect-ratio:1/1.1;max-width:60px}.explorer{grid-template-columns:1fr;gap:24px;padding-top:12px}.lesson-copy h2{font-size:28px;margin:0 0 14px}.lesson-copy .rule{font-size:14px;line-height:1.7;padding-bottom:12px}.garden-sound{margin-left:10px;margin-bottom:8px}.garden-sound>summary{min-height:36px;padding:8px 10px}.sound-settings{top:42px}.welcome-card{padding:8px 0;margin-top:0;min-height:0}.welcome-card h1{font-size:34px}.welcome-next{width:100%}.welcome-card{padding:20px 16px}.welcome-dots{margin-bottom:24px}.welcome-voice{gap:14px}.welcome-mini-board{max-width:240px}.stream-journey{padding:12px;margin-bottom:16px}.stream-heading{right:10px;top:8px}.stream-next{min-height:94px;padding-right:0;padding-top:30px;gap:10px}.stream-friend{width:32px;height:48px;flex-basis:32px}.stream-next h2{font-size:22px}.stream-next>.btn{min-height:44px;padding:10px 14px}.stream-stops{overflow-x:auto;gap:12px;margin-top:32px;padding-top:12px}.stream-stops li{min-width:80px}.stream-reward{gap:12px;flex-wrap:wrap}.stream-reward b{font-size:16px}.stream-reward-art svg{width:30px;height:35px}.stream-heading .round-listen{display:flex}.builder-stage .builder-scene-tools{width:auto;flex-wrap:wrap;overflow:visible}.park-view-options>summary,.park-grid-options>summary{padding:10px 6px;font-size:11px}.builder-scene-bar>.park-fullscreen{margin-left:auto;font-size:11px}.park-immersive .builder-scene-tools{display:flex;flex-wrap:wrap;max-width:none}.builder-audio{display:block}.offline-support{width:calc(100% - 32px)}.offline-support>div{align-items:flex-start}.account-banner{width:calc(100% - 32px);gap:12px;font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important}}

.voice-controls{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:16px 0}.voice-controls .voice-read{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;width:auto;padding:8px 12px;border:1px solid var(--ui-line);border-radius:7px;background:none;color:#405c3e;font:12px var(--sans,system-ui)}.voice-controls .listen-symbol{display:block;width:20px;height:20px}.voice-controls .listen-symbol svg{width:100%;height:100%}.voice-settings{position:relative;font:11px var(--sans,system-ui)}.voice-settings>summary{min-height:40px;padding:12px 0;cursor:pointer;list-style-position:inside;color:var(--ui-muted)}.voice-settings>div{position:absolute;right:0;top:42px;z-index:35;min-width:195px;display:grid;gap:16px;padding:18px;background:var(--ui-paper);border:1px solid var(--ui-line);border-radius:8px;box-shadow:0 8px 30px #23352412}.voice-settings label{display:flex;align-items:center;gap:10px}.voice-settings input{accent-color:#567454}.voice-status{flex-basis:100%;margin:0;font:12px/1.5 var(--sans,system-ui)}
.account-options{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin:20px 0 4px}.account-options .text-btn{min-height:40px;font-size:13px}.travel-account{border-top:1px solid var(--ui-line);margin-top:20px;padding-top:12px}.travel-account>summary,.transfer-options summary{cursor:pointer;min-height:44px;padding:12px 0;font:13px var(--sans,system-ui)}.transfer-options{display:grid;gap:12px}.transfer-options .travel-file{font-size:13px}.transfer-options .text-btn{display:block;text-align:left;min-height:40px}.account-state{font-size:13px}
.first-guide{margin:0 0 16px;padding:16px 18px;border:1px solid #cbd7c0;border-radius:20px;background:#edf1e3;min-height:124px}.first-step-content{display:flex;align-items:center;flex-wrap:nowrap;gap:14px;min-height:76px;height:76px;padding:4px 0}.first-step-content>div{flex:1;min-width:0}.first-step-content h2{font:500 25px/1.15 var(--serif,Georgia);margin:0}.first-step-content p{font-size:13px;line-height:1.5;margin:7px 0 0}.first-step-content>.step-picture{width:43px;height:50px;flex:0 0 43px;font-size:30px;display:grid;place-items:center}.first-step-content>.step-picture>svg{width:100%;height:100%}.first-step-content .round-listen{width:36px;height:36px;flex:0 0 36px}.first-guide-label{margin-bottom:8px}
@media(max-width:650px){.first-guide{min-height:124px;padding:12px;margin-bottom:12px}.first-step-content{gap:10px;min-height:76px}.first-step-content h2{font-size:23px}.first-step-content>.step-picture{width:36px;height:44px;flex-basis:36px}.first-step-content p{font-size:12px}.voice-controls{gap:12px}.voice-settings>div{right:0}.account-options{gap:14px}}
/* The opponent is identified once, above the board. */
.table-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:0;margin:0 0 20px;padding:0}.table-heading h1{margin:0;font-size:36px}.table-seal{height:52px;width:44px;transform:none;border:0;background:none}.table-seal svg{width:100%;height:100%}.game-tip:empty{display:none}.builder-stage[data-camera=fit]:not(.park-immersive) .scene-scroll{container-type:inline-size;display:block;height:auto;min-height:0;max-height:none}
@media(max-width:650px){.table-heading{min-height:0;padding:0;margin-bottom:16px}.table-heading h1{font-size:32px}.table-seal{height:44px;width:36px}.playing-game .layout{margin-top:24px}.playing-game .table-heading>div{padding:0}.playing-game .garden-sound{margin-bottom:8px}}

.first-step-content .fox-next{width:auto;margin:0;padding:9px 13px;min-height:44px;max-width:100%;white-space:normal;font:500 13px var(--sans,system-ui)}

@media(max-width:650px){.builder-scene-bar{position:relative}.builder-stage .builder-scene-tools,.park-grid-options{position:static}.park-grid-options>div{left:12px;right:auto;top:100%}.stream-next h2{overflow-wrap:anywhere}}

.builder-stage[data-camera=fit]:not(.park-immersive) .scene-canvas[data-fit=true]{width:100%;min-width:0;max-width:100%;margin:0}

/* Restored illustrated clubhouse composition. */
.quiet-home{display:grid;grid-template-columns:.93fr 1.07fr;gap:44px;align-items:center;padding:28px 0 38px}.quiet-home-copy h1{font-size:clamp(44px,4.8vw,66px);line-height:1.09;letter-spacing:-2px;margin:20px 0 22px}.quiet-home-copy h1 em{font-weight:400;color:#718064}.quiet-home-copy p{font-size:18px;line-height:1.75;color:#6e7567;margin-bottom:28px}.quiet-home-copy>small{display:block;margin-top:19px;color:#7b8172;font-size:12px}.quiet-home-picture{position:relative;transform:rotate(1.2deg);background:#eee9d9;padding:12px 12px 42px;border-radius:180px 180px 9px 9px;box-shadow:0 16px 40px #4b5a3510}.quiet-home-picture img{display:block;width:100%;height:420px;object-fit:cover;object-position:68% center;border-radius:170px 170px 3px 3px}.quiet-home-picture>span{position:absolute;bottom:13px;left:28px;font-size:17px;color:#68775c}.quiet-home-picture i{font:12px Georgia,serif;margin-left:12px}.quiet-paths{display:flex;border-top:1px solid #dedfd1;border-bottom:1px solid #dedfd1;padding:18px 0;margin-top:15px;gap:30px}.quiet-paths button{background:none;border:0;display:flex;align-items:center;text-align:left;gap:16px;flex:1;padding:10px 12px;cursor:pointer;color:#46593d}.quiet-paths button+button{border-left:1px solid #dedfd1;padding-left:32px}.quiet-paths button>span{width:52px;height:52px}.quiet-paths svg{width:100%;height:100%}.quiet-paths b{display:block;font:23px Georgia,serif}.quiet-paths small{display:block;font-size:13px;color:#7d8273;margin-top:6px}.quiet-paths i{margin-left:auto;font-style:normal}.welcome-replay{display:block;margin:22px auto 12px;font-size:12px;color:#7d8273}
@media(max-width:800px){.quiet-home{gap:22px;padding-top:15px;grid-template-columns:1fr 1fr}.quiet-home-copy h1{font-size:42px}.quiet-home-picture img{height:350px}.quiet-home-copy .eyebrow{font-size:9px}.quiet-home-copy p{font-size:15px}.quiet-home-picture>span{font-size:13px;left:17px}.quiet-home-picture i{font-size:10px;margin-left:5px}}
@media(max-width:550px){.quiet-home{display:flex;flex-direction:column;gap:20px;padding:18px 0 20px}.quiet-home-copy{width:100%;text-align:center}.quiet-home-copy h1{font-size:44px;margin:17px 0}.quiet-home-copy p{font-size:15px;line-height:1.65;margin-bottom:20px}.quiet-home-copy>small{font-size:10px;margin-top:16px}.quiet-home-picture{width:100%;max-width:320px;order:2;padding:8px 8px 30px;border-radius:110px 110px 5px 5px}.quiet-home-picture img{height:210px;border-radius:105px 105px 3px 3px}.quiet-home-picture>span{bottom:8px;font-size:12px}.quiet-paths{gap:6px;padding:10px 0;margin-top:6px}.quiet-paths button{padding:9px 0;gap:6px}.quiet-paths button+button{padding-left:10px}.quiet-paths button>span{width:33px;height:38px;min-width:33px}.quiet-paths b{font-size:17px}.quiet-paths small{font-size:10px;line-height:1.5;margin-top:4px}.quiet-paths i{display:none}}

/* The same painted garden, paper and wood carry through every activity. */
.table-heading,.lesson-heading,.designer-heading{position:relative;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:104px;padding:18px 24px;margin-bottom:24px;border:1px solid #dedbc9;border-radius:24px 24px 12px 12px;background:linear-gradient(90deg,#f8f5e9 12%,#f8f5e9e8 44%,#f8f5e950 72%,#f8f5e920),url('/images/sakura-park.jpg') center 28%/cover;box-shadow:0 5px 18px #4d604409}
.lesson-heading h1,.table-heading h1,.designer-heading h1{margin:0;font-size:40px}.lesson-mochi,.table-seal{display:block;width:58px;height:68px;flex:0 0 58px}.lesson-mochi>svg,.table-seal>svg{width:100%;height:100%}
.board-shell{border:1px solid #a4976a;border-radius:12px;background:linear-gradient(125deg,#dbd1ab,#bdb083 48%,#e4d7b0);box-shadow:0 9px 24px #35483115,inset 0 1px 0 #fff8da;padding:12px}.board{border-radius:4px;overflow:hidden}.square{background-image:linear-gradient(120deg,#fff8dc15,#34493408)}
.piece-tabs button{border-radius:18px}.piece-tabs button.active{box-shadow:inset 0 1px 0 #fff8de,0 3px 10px #43573c0c}.first-guide,.little-step{border-radius:18px;border-color:#cdd4ba;background:linear-gradient(115deg,#f2f3e5,#e7edda);box-shadow:inset 0 1px 0 #fffdf2}.first-guide-label{color:#718064}.explorer{box-shadow:0 9px 28px #4d604408}.builder-stage{box-shadow:0 12px 32px #4e604314}.stream-journey{border-radius:20px;background:linear-gradient(110deg,#faf7e9,#eff0df);border-color:#d9d9c4}.place-preview{background:#f6f1df}
@media(max-width:650px){.table-heading,.lesson-heading,.designer-heading{min-height:72px;padding:10px 16px;margin-bottom:16px;border-radius:20px 20px 10px 10px}.table-heading h1,.lesson-heading h1,.designer-heading h1{font-size:34px}.lesson-mochi,.table-seal{width:40px;height:48px;flex-basis:40px}.board-shell{padding:9px}.explorer{padding:16px 12px}.first-guide{padding:12px}.welcome-card{padding:20px 16px}.quiet-home-picture{max-width:100%}}

/* Painterly sprites keep a crisp silhouette against both square colors. */
.chess-piece.painted-piece{overflow:visible;filter:drop-shadow(0 1px 0 #233c3359)}.chess-piece.painted-piece image{pointer-events:none}.square .chess-piece.painted-piece,.traveling-piece .chess-piece.painted-piece{width:96%;height:96%}.brand-mark .painted-piece{transform:none;width:100%;height:100%}.piece-tabs .painted-piece{width:100%;height:100%}

/* Mochi cheers in a reserved place below the board, never over a square. */
.mochi-companion{display:inline-flex;align-items:center;gap:7px;width:154px;max-width:48%;height:58px;flex:0 1 154px;pointer-events:none;vertical-align:middle}.mochi-reaction-picture{display:block;position:relative;flex:0 0 42px;width:42px;height:52px;transform-origin:50% 90%}.mochi-reaction-picture>svg{display:block;width:100%;height:100%}.mochi-reaction-picture i{position:absolute;opacity:0;font-style:normal;pointer-events:none}.mochi-glimmer{left:-3px;top:5px;color:#9b7a30;font-size:17px}.mochi-leaf{right:-5px;top:18px;color:#67865b;font-size:16px}.mochi-reaction-caption{font:500 12px/1.4 var(--sans,system-ui);color:#55704d;min-width:0}.you-player{min-height:64px;gap:10px}.mochi-finish{display:flex;justify-content:center;max-width:100%;width:100%;height:72px;margin:0 0 12px;gap:12px}.mochi-finish .mochi-reaction-picture{width:58px;height:68px;flex-basis:58px}.mochi-finish .mochi-reaction-caption{width:140px;max-width:140px;flex:0 1 140px;font-size:14px}#modal-content .account-art:empty{display:none}
.mochi-companion[data-reaction=good] .mochi-reaction-picture{animation:mochi-nod .75s ease-in-out 1}.mochi-companion[data-reaction=capture] .mochi-reaction-picture{animation:mochi-hop .85s ease-in-out 1}.mochi-companion[data-reaction=win] .mochi-reaction-picture{animation:mochi-celebrate 1.3s ease-in-out 1}.mochi-companion:is([data-reaction=draw],[data-reaction=loss]) .mochi-reaction-picture{animation:mochi-nod 1s ease-in-out 1}.mochi-companion[data-reaction] .mochi-glimmer{animation:mochi-spark 1.15s ease-out 1}.mochi-companion:is([data-reaction=capture],[data-reaction=win]) .mochi-leaf{animation:mochi-spark 1.25s .12s ease-out 1}
@keyframes mochi-nod{0%,100%{transform:rotate(0)}35%{transform:translateY(2px) rotate(-6deg)}65%{transform:rotate(3deg)}}
@keyframes mochi-hop{0%,100%{transform:translateY(0) rotate(0)}35%{transform:translateY(-5px) rotate(-5deg)}65%{transform:translateY(1px) rotate(4deg)}}
@keyframes mochi-celebrate{0%,100%{transform:translateY(0) rotate(0)}25%{transform:translateY(-6px) rotate(-7deg)}50%{transform:rotate(6deg)}75%{transform:translateY(-3px) rotate(-3deg)}}
@keyframes mochi-spark{0%,100%{opacity:0;transform:translateY(2px) scale(.8)}30%,60%{opacity:.85;transform:translateY(-3px) scale(1)}}
@media(max-width:360px){.mochi-companion{gap:4px;flex-basis:128px}.mochi-reaction-picture{width:34px;height:44px;flex-basis:34px}.mochi-reaction-caption{font-size:11px}.mochi-finish{max-width:100%;width:100%}.mochi-finish .mochi-reaction-caption{font-size:14px}}
@media(prefers-reduced-motion:reduce){.mochi-companion[data-reaction] .mochi-reaction-picture,.mochi-companion[data-reaction] .mochi-reaction-picture i{animation:none}.mochi-companion[data-reaction] .mochi-glimmer{opacity:.8;transform:none}}

/* A single reassuring cue, without moving the board or taking the player's turn. */
.square.gentle-focus{outline:3px solid #315b46;outline-offset:-3px;box-shadow:inset 0 0 0 6px #fff1a6;animation:gentle-focus 1.8s ease-in-out 1}.square.gentle-focus .landing-star{color:#684810;text-shadow:0 0 3px #fff8d5}.btn.gentle-focus{outline:3px solid #b58c3d;outline-offset:3px;animation:gentle-button 1.8s ease-in-out 1}
.mochi-companion:is([data-reaction=help],[data-reaction=idle]) .mochi-reaction-picture{animation:mochi-nod .9s ease-in-out 1}.lesson-heading .mochi-companion{flex-direction:row-reverse;text-align:right}.lesson-heading .mochi-reaction-caption{font-size:11px}
@keyframes gentle-focus{0%,100%{box-shadow:inset 0 0 0 6px #fff1a6}50%{box-shadow:inset 0 0 0 9px #fff1a6}}
@keyframes gentle-button{0%,100%{outline-color:#b58c3d}50%{outline-color:#557849}}
@media(prefers-reduced-motion:reduce){.square.gentle-focus,.btn.gentle-focus,.mochi-companion:is([data-reaction=help],[data-reaction=idle]) .mochi-reaction-picture{animation:none}}

/* A steady table: coaching can scroll independently, the board does not re-center. */
.game-layout{align-items:start}.table-board-column{min-width:0;align-self:start}.playing-game .board-move-live{height:34px;min-height:34px;line-height:16px;margin-bottom:8px;overflow:hidden}.first-guide{min-height:146px}.square.king-alert{outline:3px solid #a97631;outline-offset:-3px;box-shadow:inset 0 0 0 6px #fff0b0}
@media(min-width:851px){.game-notebook{max-height:calc(100dvh - 180px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding-right:10px}}
@media(max-width:360px){.first-step-content h2{font-size:20px}}
.king-safety-entry{display:flex;align-items:center;gap:12px;width:100%;min-height:58px;margin:0 0 24px;padding:8px 18px;background:#efefdf;border:1px solid #d8d9c4;border-radius:18px;color:#3c563f;text-align:left}.king-safety-entry>span{width:34px;height:40px}.king-safety-entry svg{width:100%;height:100%}.king-safety-entry b{font:500 19px var(--serif,Georgia)}.king-safety-entry i{margin-left:auto;font-style:normal}.safety-layout{display:grid;grid-template-columns:minmax(280px,520px) minmax(180px,280px);gap:40px;justify-content:center;align-items:start}.safety-progress{display:flex;justify-content:center;gap:24px;margin:0 0 24px}.safety-progress>span{position:relative;display:block;width:40px;height:46px;opacity:.45;border-bottom:2px solid transparent}.safety-progress>span.current{opacity:1;border-color:#71865a}.safety-progress>span.done{opacity:1}.safety-progress svg{width:100%;height:100%}.safety-progress i{position:absolute;right:-6px;bottom:0;font:10px system-ui;font-style:normal;background:#f7f3e8;border-radius:50%;padding:2px}.safety-instruction{display:flex;align-items:center;gap:14px;height:92px;padding:14px 18px;margin-bottom:18px;border:1px solid #cdd4ba;border-radius:20px;background:linear-gradient(115deg,#f2f3e5,#e7edda)}.safety-instruction>span{width:42px;height:50px;flex:0 0 42px;font-size:32px;color:#527449}.safety-instruction svg{width:100%;height:100%}.safety-instruction h2{font:500 28px/1.15 var(--serif,Georgia);margin:0}.safety-actions{display:flex;align-items:center;gap:16px;min-height:64px;margin-top:14px}.safety-actions>.btn{flex:1;min-height:48px}.safety-actions .round-listen{margin-left:auto;min-width:44px;min-height:44px}.safety-notes{padding:24px;background:#fcfaf3;border:1px solid #dedbc9;border-radius:20px}.safety-notes h2{font:500 28px/1.15 var(--serif,Georgia);margin:0 0 16px}.safety-notes p{font-size:15px;line-height:1.75;color:#65735c}.safety-notes .text-btn{display:block;min-height:44px}.safety-attack{color:#9d7849;opacity:.7}.safety-attack path{fill:none;stroke:currentColor;stroke-width:5;stroke-dasharray:12 10}.watched-mark{position:absolute;right:2px;top:1px;font:700 24px/1 system-ui;color:#8a662c;background:#fff1bd;border-radius:50%;width:24px;height:24px;text-align:center;z-index:8;pointer-events:none}.watched-square{box-shadow:inset 0 0 0 2px #a48247}
@media(max-width:650px){.safety-layout{grid-template-columns:minmax(0,1fr);gap:16px}.safety-progress{gap:20px;margin-bottom:18px}.safety-instruction{height:88px;padding:12px;margin-bottom:12px}.safety-instruction h2{font-size:25px}.safety-notes{padding:20px}.safety-notes h2{font-size:25px}.safety-notes p{font-size:14px}.king-safety-entry{margin-bottom:18px}}
@media(prefers-reduced-motion:reduce){.safety-attack{animation:none}}

.match-learning-controls .btn,.match-learning-controls>.text-btn{height:56px;min-height:56px;padding-top:8px;padding-bottom:8px;line-height:16px}

@media(min-width:851px){.layout:has(.king-safety){margin-top:24px}.king-safety>.lesson-heading{min-height:72px;padding:10px 24px;margin-bottom:14px}.safety-progress{margin-bottom:16px}.safety-progress>span{width:34px;height:38px}.safety-layout{grid-template-columns:clamp(300px,calc(100dvh - 400px),480px) minmax(180px,280px)}.safety-instruction{height:76px;margin-bottom:14px}.safety-instruction h2{font-size:25px}}

.safety-notes h2{min-height:64px}.safety-notes p{min-height:120px}

/* Real-match check cues use the same calm palette and stars as the lesson. */
.square.check-attacker{outline:3px solid #a56c2f;outline-offset:-3px;background-color:#e4cc98}.check-attacker-mark{position:absolute;left:2px;bottom:2px;display:grid;place-items:center;width:12px;height:14px;font:700 11px/1 system-ui;background:#fff1cb;border:1px solid #a56c2f;border-radius:5px;color:#80521c;z-index:7;pointer-events:none}.square.check-rescuer{box-shadow:inset 0 0 0 3px #628366,inset 0 0 0 5px #e9efc6}.square.check-rescuer.selected{outline-color:#315d47}.check-attack-lines{color:#a56c2f;opacity:.65}.check-attack-lines path{fill:none;stroke:currentColor;stroke-width:5;stroke-dasharray:12 10}.square.check-rescuer.king-alert{outline-color:#a97631}
