/* Let the world lead. Keep the story close, and every tool within reach. */
.builder-stage .scene-scroll,.builder-layout:not(.collection-open) .scene-scroll{max-height:min(76dvh,850px)}
.builder-stage .scene-canvas,.builder-layout:not(.collection-open) .scene-canvas{width:calc(var(--park-base,100%) * var(--park-zoom,1));min-width:100%;max-width:none;margin:0}
.builder-stage .builder-scene-bar{padding:10px 16px;gap:10px}.builder-stage .builder-scene-tools{gap:6px}.builder-scene-bar>div:first-child{margin-right:auto}.builder-quick-help{margin-left:0}.builder-stage .builder-small-btn,.builder-stage .builder-icon-button,.builder-stage .builder-mode button{min-height:44px;height:auto;font-size:12px}.builder-stage .builder-icon-button{height:44px;width:44px}.builder-stage .builder-mode button{padding:8px 14px}.builder-stage .builder-quick-help{width:44px;height:44px}.park-fullscreen{white-space:nowrap;background:#e8ecda}.builder-stage .park-pan-hint{display:block;font-size:11px;padding:7px;line-height:1.4}.builder-stage .builder-dock{min-height:0}.builder-idle{display:flex;align-items:center;gap:18px}.builder-idle b{font-size:21px;white-space:nowrap}.builder-idle p{font-size:12px;margin:0}.builder-stage .builder-tabs button,.builder-stage .collection-switch button,.builder-stage .builder-categories button{min-height:44px}.builder-stage .builder-voice-row label{min-height:44px}.builder-stage .builder-voice-row .text-btn{min-height:44px}
/* Full screen stays inside the browser, so it works on phones as well. */
body.park-focused{overflow:hidden}.builder-stage.park-immersive{position:fixed;inset:0;z-index:1000;border:0;border-radius:0;display:flex;flex-direction:column;height:100dvh;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);overflow:auto;background:#f8f2e5;isolation:isolate}.park-immersive>*{flex-shrink:0}.builder-stage.park-immersive .scene-scroll{flex:1 1 auto;min-height:140px;max-height:none}.park-immersive .builder-caption{display:none}.park-immersive .builder-placed{margin:0}.park-immersive .builder-placed[open]{max-height:35dvh;overflow:auto}.builder-stage.park-immersive .builder-toolbox{max-height:34dvh;overflow:auto;flex-shrink:1;min-height:150px}.park-immersive .builder-voice-row{padding-top:0;padding-bottom:0}.park-immersive .builder-scene-bar{position:sticky;top:0;z-index:9}.park-immersive.park-visiting .builder-dock{display:none}
/* Shared touch, forms, and short-screen dialogs. */
input,select,textarea{max-width:100%}dialog{max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain;padding-top:54px;scrollbar-gutter:stable}#close{width:44px;height:44px;top:6px;right:8px;line-height:1;border-radius:50%;background:var(--paper);z-index:5}dialog .text-btn{min-height:44px}dialog input:not([type=checkbox]):not([type=range]),dialog select,dialog textarea{font-size:16px;min-height:44px}dialog .btn{min-height:48px}summary{touch-action:manipulation}button{overflow-wrap:normal}.btn,.text-btn{touch-action:manipulation}
@media(max-width:1000px){.builder-stage .builder-scene-tools{width:100%;justify-content:flex-start}.builder-stage .builder-scene-bar>div:first-child{max-width:calc(100% - 190px)}}
@media(max-width:800px){.table-board-column,.game-notebook{min-width:0}
 .builder-stage .builder-scene-bar{padding:9px 10px;gap:7px}.builder-stage .builder-scene-bar>div:first-child{max-width:none;flex:1 1 120px}.builder-scene-bar b{font-size:20px}.builder-scene-bar small{font-size:7px;line-height:1.4}.builder-stage .park-fullscreen{font-size:11px;padding:7px 9px}.builder-quick-help{display:none}.builder-stage .builder-scene-tools{flex-wrap:nowrap;overflow-x:auto;width:100%;max-width:100%;justify-content:flex-start;padding:0 0 2px;margin:0;gap:6px;scrollbar-width:thin}.builder-scene-tools>*{flex-shrink:0}.builder-stage .builder-mode button{padding:7px 11px}.builder-stage .builder-scene-tools .builder-small-btn{font-size:12px;padding:7px 10px}.builder-stage .builder-scene-tools #builder-add{font-size:12px}.builder-stage .builder-scene-tools #builder-add{order:0}.builder-stage .builder-scene-tools #builder-select{order:0}.builder-stage #builder-undo{display:none}.builder-stage.park-building #builder-undo{display:inline-flex}.builder-stage .scene-scroll,.builder-layout:not(.collection-open) .scene-scroll{max-height:62dvh;min-height:280px}.builder-stage .scene-canvas,.builder-layout:not(.collection-open) .scene-canvas{width:calc(var(--park-base,max(100%,700px)) * var(--park-zoom,1));min-width:100%}.builder-stage .builder-dock{position:static;padding:10px 12px}.builder-stage.has-preview .builder-dock{position:sticky;bottom:0;z-index:10}.builder-idle{display:block}.builder-idle b{font-size:21px;white-space:normal}.builder-idle p{font-size:12px;margin:4px 0 0}.builder-stage .preview-controls{gap:7px}.builder-stage .preview-controls .builder-small-btn,.builder-stage .preview-controls>.btn{min-height:44px;font-size:12px}.builder-stage .builder-nudge{display:block}.builder-nudge summary{min-height:44px;font-size:12px}.builder-stage .builder-step-controls{right:auto;left:0}.builder-stage .preview-controls .btn{margin-left:0;flex:1;order:-1}.builder-stage .dock-icon{width:34px}.builder-stage .place-preview p{font-size:12px}.builder-stage .builder-voice-row{flex-wrap:wrap;gap:0 12px}.builder-stage .builder-caption{font-size:11px;line-height:1.6}.builder-caption>span{max-width:none}.builder-toolbox-title{gap:8px}.builder-toolbox-title .eyebrow{font-size:9px;letter-spacing:.6px}.builder-stage .builder-categories button{font-size:12px}.builder-stage .catalogue-piece{min-width:116px;max-width:116px;flex-basis:116px}.builder-stage .catalogue-piece b{font-size:18px}.builder-stage .catalogue-piece small{font-size:10px}.builder-stage .collection-switch button{font-size:12px}.builder-stage .builder-categories{scroll-padding:5px}.builder-stage .builder-catalogue{overscroll-behavior-x:contain}.builder-stage .stand-palettes{grid-template-columns:1fr 1fr}.stand-options button{min-height:44px;font-size:13px}.stand-palettes button{font-size:12px}
 .builder-stage.park-immersive .scene-scroll{min-height:100px;max-height:none}.park-immersive .builder-scene-bar>div:first-child{display:none}.park-immersive .park-fullscreen{margin-left:auto}.park-immersive .park-pan-hint{display:none}.park-immersive .builder-scene-tools{width:auto;flex:1;order:-1;margin:0;max-width:calc(100% - 124px)}.builder-stage.park-immersive .builder-scene-bar{flex-wrap:nowrap}.park-immersive .builder-voice-row{display:none}.park-immersive.park-visiting .builder-placed{display:none}.park-immersive .builder-placed summary{min-height:44px}.park-immersive .builder-placed[open]{max-height:30dvh}.park-immersive .builder-dock .mini{font-size:8px}.park-immersive .builder-toolbox-title .eyebrow{font-size:8px}.park-immersive .builder-toolbox{padding:8px 10px}.park-immersive .builder-toolbox .builder-tabs{margin-bottom:0}.park-immersive .builder-caption{display:none}
 /* The board uses all the available width, with coaching below it. */
 .game-layout{display:grid;grid-template-columns:minmax(0,1fr);width:100%;max-width:none;padding:0;gap:24px;min-height:0!important}.game-layout .board-shell{width:100%;max-width:600px;padding:6px;margin:auto}.game-layout .board{max-width:none;width:100%;margin:0}.game-player{gap:10px}.player-identity small{font-size:11px;line-height:1.4}.player-identity b{font-size:23px}.player-color{font-size:9px;white-space:nowrap}.table-board-column{width:100%}.game-notebook{width:100%;padding:20px 0;border-top:1px solid var(--line)}.game-notebook .coach-panel p{font-size:14px}.movement-controls{display:flex;gap:6px 10px;align-items:center}.movement-controls label,.movement-controls .text-btn{min-height:44px;font-size:12px;display:flex;align-items:center}.movement-controls select{font-size:16px;min-height:44px;max-width:160px}.movement-controls input[type=checkbox]{width:20px;height:20px}.movement-controls .text-btn{padding:8px 10px;border:1px solid #d3dac4;border-radius:5px;margin:0}.movement-controls .draw-action{margin-left:0}.board-caption{font-size:15px;line-height:1.5}.board .square small{font-size:9px}.game-notebook .game-controls{display:flex;gap:10px}.game-controls .btn{min-height:48px;font-size:13px;flex:1}.first-guide-label{flex-wrap:nowrap;gap:7px}.first-guide-label>span{font-size:8px;letter-spacing:.5px}.step-beads{gap:3px}.step-beads>span{width:20px;height:23px}.playing-game .board-move-live{min-height:34px;margin-bottom:0}.playing-game #board-coach-clue{min-height:46px;margin-bottom:8px}.lesson-rule .rule{font-size:15px}.lesson-task .round-listen{width:44px;height:44px}.chapter-strip{flex-wrap:wrap;padding:18px 0;gap:12px}.chapter-strip>div{flex:1;min-width:0}.chapter-strip p{max-width:none;font-size:12px;line-height:1.6}.chapter-strip .btn{width:100%;margin:0;min-height:48px}.world-card{flex-wrap:wrap;gap:14px;padding:20px 0}.world-card>div:nth-child(2){flex:1;min-width:0}.world-card p{font-size:13px}.world-card .btn{margin:0 0 0 69px;min-height:48px}.upgrade-grid{grid-template-columns:1fr}.badge-grid{gap:10px}.badge{padding:18px 12px}.badge h3{font-size:24px}.badge p{font-size:12px}.mochi-voice-notice{bottom:max(12px,env(safe-area-inset-bottom));right:12px;max-width:calc(100vw - 24px)}.mochi-voice-notice button{min-height:44px;font-size:13px}dialog{width:calc(100% - 24px);padding:54px 20px 24px;border-radius:14px}dialog h2{font-size:30px;line-height:1.1}dialog p{font-size:14px}.travel-file{overflow-wrap:anywhere}.flow-letter .park-story{padding:18px 14px}.story-letter p{font-size:22px}.story-goals{grid-template-columns:1fr}.park-community>summary{min-height:60px}.growth-copy{min-width:0}.growth-balance{flex-wrap:wrap}.flow-chapter-gifts button{min-height:44px}
}
@media(max-width:430px){.game-notebook .game-controls{flex-wrap:wrap}.game-controls .btn{min-width:130px}.builder-stage .place-preview>div:not(.preview-controls){min-width:0}.builder-stage .builder-small-btn{font-size:12px}.builder-stage .preview-controls{justify-content:flex-start}.builder-stage .preview-controls .btn{min-width:110px}.builder-stage .preview-controls #builder-cancel{min-width:70px}.builder-stage .builder-nudge{order:2}.builder-stage .preview-controls #builder-remove{order:1}.builder-stage .builder-scene-bar b{font-size:19px}}
@media(max-width:360px){.first-guide-label .step-beads>span{width:16px}.builder-stage .builder-toolbox-title>span{font-size:10px}.builder-voice-row .text-btn{font-size:10px}.badge-grid{grid-template-columns:1fr}}
@media(max-height:500px) and (orientation:landscape){.builder-stage.park-immersive .builder-scene-bar{padding:4px 10px}.park-immersive .builder-scene-bar>div:first-child,.park-immersive .builder-voice-row,.park-immersive .builder-placed,.park-immersive .park-pan-hint{display:none}.park-immersive .builder-scene-tools{width:auto;flex:1;flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;order:-1;max-width:calc(100% - 135px)}.builder-stage.park-immersive .scene-scroll{min-height:100px}.park-immersive .builder-dock .dock-icon,.park-immersive .place-preview p,.park-immersive .place-preview .mini{display:none}.builder-stage.park-immersive .place-preview{flex-wrap:nowrap}.builder-stage.park-immersive .preview-controls{flex-basis:auto!important;max-width:none;width:auto}.park-immersive .builder-dock{padding:4px 10px}.park-immersive .builder-dock b{font-size:17px}.park-immersive .preview-controls .builder-small-btn{font-size:11px;padding:6px}.park-immersive .builder-toolbox{max-height:42dvh;min-height:100px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.btn,.text-btn{transition:none}.btn:hover{transform:none}}
/* A tall phone needs a camera that fills its height, rather than an empty strip. */
.builder-stage.park-immersive .scene-scroll{container-type:size}
.builder-stage.park-immersive .scene-canvas:not([data-fit=true]){width:calc(max(100cqw,148.15cqh,700px) * var(--park-zoom,1))}
.park-immersive .builder-voice-row{display:none}.park-immersive.park-visiting .builder-placed:not([open]){display:none}
.builder-stage.has-preview.is-panning .scene-scroll{touch-action:pan-x pan-y}.builder-stage.is-panning #builder-pan{background:#dde6ce;border-color:#718966}.builder-stage.is-panning .scene-scroll{cursor:grab}
@media(max-width:800px) and (min-height:501px){.builder-stage.park-immersive .builder-scene-bar{flex-wrap:wrap}.park-immersive .builder-scene-tools{display:contents}.park-immersive .builder-mode{order:-3;flex:1 1 calc(100% - 145px)}.park-immersive .park-fullscreen{order:-2;margin-left:0;min-width:124px}.park-immersive .builder-scene-bar #builder-select,.park-immersive .builder-scene-bar #builder-add{order:0}.park-immersive .builder-scene-bar #builder-undo{order:0}.park-immersive .builder-scene-bar #builder-fit{margin-left:auto}.park-immersive .builder-scene-bar #builder-zoom-out,.park-immersive .builder-scene-bar #builder-zoom-in{order:1}}
.first-guide-short,.first-guide-detail{display:none}
@media(max-width:800px){.first-guide-full{display:none}.first-guide-short,.first-guide-detail{display:block}.coach-panel .first-guide-detail{margin:0 0 18px;font-size:14px;line-height:1.7}.first-guide-label{margin-bottom:10px}}
/* Reserve Mochi's turn button so taking a turn never nudges the board. */
.park-immersive.park-visiting .builder-placed[open]{display:block;max-height:35dvh;overflow:auto}
/* Fit is a true overview: both the width and the height stay in view. */
.builder-stage .scene-scroll:has([data-fit=true]){height:min(76dvh,850px);container-type:size;display:grid;place-items:center}
.builder-stage.park-immersive .scene-canvas[data-fit=true]{width:min(100cqw,148.15cqh);min-width:0;max-width:100%;margin:auto}
@media(max-width:800px){.builder-stage .scene-scroll:has([data-fit=true]){height:62dvh}}
.builder-stage.park-immersive .scene-scroll:has([data-fit=true]){height:auto;min-height:100px}
#close{position:sticky;float:right;top:0;margin-top:-48px;margin-right:-8px}

/* Keep the Sakura Chess wordmark together at every screen size. */

.travel-source{display:block;font-size:13px;margin:16px 0}.travel-source select{display:block;width:100%;min-height:44px;margin-top:8px;padding:10px;background:var(--paper);color:var(--ink);border:1px solid var(--line);font:inherit}

.address-move-notice{max-width:900px;margin:24px auto;padding:24px;background:var(--paper);border:1px solid var(--line);display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;color:var(--ink);line-height:1.6}.address-move-notice b{font-family:var(--serif);font-size:28px}.address-move-notice span{flex-basis:100%;font-size:14px}.address-move-notice a,.address-move-notice button{min-height:44px;display:inline-flex;align-items:center}#arrival-notice{color:var(--muted);font-size:12px}@media(max-width:600px){.address-move-notice{margin:16px;padding:20px}}

.app-launch{min-height:75dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:var(--green);text-align:center}.app-launch img{border-radius:17px}.app-launch p{font:22px var(--serif)}.offline-copy-list section{border-top:1px solid #d5ddc8;padding:18px 0}.offline-copy-list h3{font:24px Georgia;margin:0}.offline-copy-list .btn{margin-top:12px}.offline-copy-list details{font-size:13px}
