.arrangement-panel{display:flex;flex-wrap:wrap;gap:12px;padding:18px;margin:10px 0 20px;background:#f5f1e7;border:1px solid #dfd5c6;border-radius:20px}.arrangement-panel h2,.arrangement-panel p{width:100%;margin:0}.arrangement-panel label{display:flex;flex-direction:column;gap:6px;flex:1 1 150px;font-size:13px}.arrangement-panel select{min-height:44px;border-radius:12px;padding:8px;border:1px solid #d5c4ad;background:#fffdf7;color:#594e43;max-width:100%}.quick-camera{display:flex;justify-content:flex-end;gap:8px;margin:4px 0 8px;flex-wrap:wrap}.quick-camera button{min-height:44px}.weather-overlay{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:4;border-radius:inherit}.weather-overlay.weather-cloud{background:linear-gradient(115deg,#d8e2e611,transparent,#cad6dc22)}.weather-rain i,.weather-snow i{position:absolute;top:-12%;width:2px;height:15px;background:#d6e9efaa;animation:weather-fall 1.4s linear infinite}.weather-snow i{width:5px;height:5px;border-radius:50%;background:#fff}.weather-sun{background:linear-gradient(130deg,#ffecae22,transparent 55%)}@keyframes weather-fall{to{transform:translate(-20px,600px)}}.performance-caption{position:absolute;top:8px;left:12px;background:#fff9e9e8;padding:5px 12px;border-radius:15px;z-index:5;font-size:12px}.crowd-friend{opacity:0;translate:0 28px;transition:opacity .9s,translate 1.2s;transition-delay:var(--arrival,0s)}.crowd-friend.audience-present{opacity:1;translate:0 0}.finale-particles{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:8}.finale-particles span{position:absolute;top:-15%;font-size:25px;animation:finale-fall 6s ease-out var(--delay) both}.finale-particles[data-kind=bubbles] span{font-size:42px}.finale-stage .performer{animation:performer-bow 3s ease-in-out}.finale-skip{position:absolute;right:14px;bottom:12px;z-index:10}.result-memory-stage{position:relative;min-height:200px;overflow:hidden;background:linear-gradient(#dae5e1,#f7edda);border-radius:24px}.stamp-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.stamp-cell{display:grid;place-items:center;min-height:56px;background:#fffaf0;border:1px dashed #c8ae8d;border-radius:50%;font-size:14px;white-space:pre-line}.stamp-book{padding:8px 0}.stamp-book small{display:block;font-size:12px}.stamp-book button{min-height:40px}.room-stage.room-three{position:relative!important;width:100%!important;height:clamp(340px,55vh,630px)!important;min-height:340px;max-height:none!important;aspect-ratio:auto!important;background:#ecebe3!important;border-radius:22px;overflow:hidden}.room-three>canvas{display:block;width:100%;height:100%;touch-action:manipulation}.room-three>.room-objects,.room-three>#touch-friend,.room-three>.earned-photo-frame{display:none!important}.room-three:before,.room-three:after{display:none!important}.room-controls{position:absolute;left:10px;right:10px;bottom:30px;display:flex;justify-content:center;gap:5px;flex-wrap:wrap;z-index:6}.room-controls button,.room-controls select{min-height:36px;padding:5px 10px;background:#fffaf0ed;border:1px solid #d3c7b5;border-radius:10px;font-size:12px}.room-controls select{max-width:155px}.room-hint{position:absolute;bottom:3px;left:5px;right:5px;margin:0;text-align:center;font-size:11px;color:#645b50}.home-preview:has(.room-three){padding:0!important;background:none!important;overflow:visible!important}.photo-preview canvas,.photo-preview img{max-width:100%;height:auto}.photo-preview[data-frame^=stamp-]{border:10px solid #e8cf85}.photo-preview[data-frame=stamp-star]{border-color:#b6afd2}.photo-preview[data-frame=stamp-note]{border-color:#9dc6bf}@keyframes finale-fall{0%{opacity:0;transform:translate(0,0) rotate(0)}10%{opacity:1}100%{opacity:0;transform:translate(var(--drift),550px) rotate(220deg)}}@keyframes performer-bow{40%{transform:translateY(7px) rotate(5deg)}70%{transform:none}}@media(max-width:600px){.arrangement-panel{padding:12px;gap:8px}.arrangement-panel label{flex-basis:120px}.room-stage.room-three{height:430px!important}.room-controls{bottom:38px}.room-hint{font-size:10px}.stamp-cell{font-size:11px}.quick-camera{margin-top:5px}}@media(prefers-reduced-motion:reduce){.weather-overlay i{animation:none}.finale-particles span{animation:none;top:35%;opacity:.6}.finale-stage .performer{animation:none}.crowd-friend{transition:none}}
.keyboard-area .keys{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr));gap:5px;position:relative}.keyboard-area .keys .key{width:100%!important;min-width:0!important;position:relative!important;left:auto!important;flex:none!important;min-height:90px}.keyboard-area .keys .shifted-black{background:#756e82;color:#fff}.keyboard-area .keys .key.lit{background:#f5dca0!important;color:#55492c!important;outline:3px solid #b59359}.keyboard-area .keys .label{font-size:13px}.room-photo-still{width:100%;height:auto}.room-photo-still img{display:block;width:100%}@media(max-width:600px){.keyboard-area .keys{grid-template-columns:repeat(6,minmax(0,1fr))}.keyboard-area .keys .key{min-height:58px!important;height:58px!important}.keyboard-area .keys .label{font-size:12px}.room-controls button,.room-controls select{min-height:40px}.room-stage.room-three{height:400px!important}}
.keyboard-area .keys{display:flex!important;height:125px!important;gap:3px}.keyboard-area .keys .key{flex:1!important;width:auto!important;height:125px!important;min-height:125px!important;padding:8px 0}.keyboard-area .keys .shifted-black{position:absolute!important;left:var(--black-position)!important;top:0;width:8%!important;height:76px!important;min-height:76px!important;transform:translateX(-50%);z-index:2;background:#5a5067!important;border-color:#877e8c;color:white;border-radius:0 0 8px 8px}.keyboard-area .keys .shifted-black .label{color:#fff}.keyboard-area .keys .shifted-black.lit{background:#c6a0d9!important}.keyboard-area .keys .shifted-black .tap-guide{width:30px}.result-memory-stage.live-stage{display:block!important;width:100%;min-height:300px}.result-memory-stage .performers{display:flex}.result-friends.live-stage .avatar{max-width:180px}.adventure-toast{bottom:16px!important;top:auto!important;max-width:80%;font-size:13px;pointer-events:none}@media(max-width:600px){.keyboard-area .keys,.keyboard-area .keys .key{height:118px!important;min-height:118px!important}.keyboard-area .keys .shifted-black{height:70px!important;min-height:70px!important}.keyboard-area .keys .label{font-size:11px}.arrangement-panel{gap:6px}.arrangement-panel h2{font-size:17px}.arrangement-panel p{font-size:12px}.arrangement-panel label{flex-basis:125px;font-size:11px}.arrangement-panel label:first-of-type{flex-basis:100%}.arrangement-panel button{min-height:40px;padding:6px 12px}.arrangement-panel select{padding:5px;min-height:40px}}
.quick-camera{align-items:center}.quick-camera label{display:flex;align-items:center;font-size:11px;gap:4px}.quick-camera input{width:18px;height:18px}.stamp-grid{margin-bottom:8px}.camera-stage .weather-overlay.weather-rain{background:linear-gradient(#768ead22,transparent)}
.world-three{position:relative!important;isolation:isolate;overflow:hidden!important;border-radius:22px;background:#e4e9dd!important;max-height:none!important}
.three-pending{visibility:hidden!important}
.garden-friend.garden-three{width:min(100%,420px);height:260px;margin:0 auto 8px;border-radius:24px;overflow:hidden;background:linear-gradient(#dff0ea,#f6ecd1)}.garden-character-canvas{display:block;width:100%;height:100%}
.town-shops{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px 8px}.town-shops button{min-height:52px;white-space:normal;font-size:14px;background:#fff9e9;border:1px solid #d6bd96;border-radius:16px}.town-shops button[data-open=false]{border-style:dashed;background:#eee5d4}.town-building-note{text-align:center;font-size:12px;margin:0 5px 12px}.shop-return{margin-bottom:10px}.opening-icon{font-size:60px}.opening-price{font-size:20px}.opening-dialog p{line-height:1.7}.locked-shop{background:#f7f0df!important}.locked-shop>button{margin:6px}.venue-options button[data-open=false]{background:#ece7df;border-style:dashed}.opening-preview-label{font-size:12px}.opening-toast{z-index:50}
.town-decoration-heading{display:flex;align-items:center;gap:12px;margin:8px 0}.town-decoration-meter{position:relative;display:block;flex:1;height:12px;border-radius:9px;background:#e6dfd0;overflow:hidden}.town-decoration-meter:after{content:"";display:block;width:var(--town-progress);height:100%;background:linear-gradient(90deg,#9fc7ad,#ecc581);border-radius:inherit}.town-decoration-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px}.town-decoration-list article{display:grid;grid-template-columns:38px 1fr;gap:3px 8px;align-items:center;padding:10px;background:#fffaf0;border:1px solid #ddcfb9;border-radius:15px}.town-decoration-list article.is-locked{opacity:.64;background:#eee9df}.town-decoration-list article.is-built{background:#edf5e8;border-color:#b7cda9}.town-decoration-icon{grid-row:1/3;font-size:25px;text-align:center}.town-decoration-list small{font-size:11px;line-height:1.35}.town-decoration-list button{grid-column:1/3;min-height:40px;margin-top:5px}
@media(max-width:600px){.town-shops{gap:4px;padding:8px 0}.town-shops button{font-size:12px;padding:7px 4px;line-height:1.7}.town-map.world-three{height:350px!important}.opening-dialog{max-height:85vh;overflow:auto}}
.world-concert>.live-message{width:auto!important;max-width:none!important;transform:none!important;text-align:center}
.purchase-preview .room-controls select,.purchase-preview .room-controls button:nth-of-type(n+5),.purchase-preview .room-hint{display:none}
.world-three>.world-canvas{display:block;width:100%;height:100%;touch-action:manipulation}
.world-town>.world-canvas{touch-action:none}
.world-three:before,.world-three:after{display:none!important}
.town-map.world-three{height:clamp(340px,54vh,580px)!important;aspect-ratio:auto!important;min-height:340px!important;padding:0!important}
.world-town>.town-art,.world-town>.map-walkers,.world-concert>.stage-scene{display:none!important}
.world-town>.destination{position:absolute!important;top:auto!important;bottom:40px!important;left:auto!important;right:auto!important;transform:none!important;width:auto!important;height:44px!important;min-height:44px!important;z-index:7;padding:0!important;background:transparent!important;border:none!important}
.world-town>.destination-shop{left:8%!important}.world-town>.destination-concert{left:36%!important}.world-town>.destination-home{right:8%!important}
.world-town .destination-label{position:static!important;transform:none!important;display:flex!important;padding:10px 15px!important;font-size:14px!important;background:#fff9e8ef!important;border:1px solid #c9b99b;border-radius:18px;color:#655244}
.world-controls{position:absolute;right:10px;top:10px;display:flex;gap:4px;z-index:7}
.world-controls button{min-width:36px;min-height:40px;padding:4px 9px;border:1px solid #d2c2ac;border-radius:12px;background:#fff7e7e8;color:#665545;font-size:16px}
.scene-zoom-slider{min-height:40px;display:flex;align-items:center;gap:5px;padding:0 8px;border:1px solid #d2c2ac;border-radius:12px;background:#fff7e7e8;color:#665545;touch-action:manipulation}.scene-zoom-slider small{font-size:9px;font-weight:800;white-space:nowrap}.scene-zoom-slider input{width:clamp(72px,12vw,112px);height:30px;accent-color:#a97898;touch-action:manipulation}.room-view-controls{display:flex;align-items:center;gap:5px;flex-wrap:wrap;justify-content:center}
.world-sample-label{position:absolute;bottom:9px;left:10px;right:10px;text-align:center;font-size:10px;color:#645b50;background:#fff6e2c9;border-radius:10px;pointer-events:none;padding:2px}
.shop-world{height:clamp(220px,30vh,330px);width:100%;margin:8px 0 14px}.shop-world .world-controls{top:6px}
.shop-panel:has(.world-three){background:#fbf6e9!important}.shop-panel:has(.world-three):before,.shop-panel:has(.world-three):after{display:none!important}
.shop-panel:has(.world-three) .shop-host{display:none!important}
.furniture-allowance{padding:12px;background:#eee9db;border-radius:14px;font-size:13px;line-height:1.7;color:#605548}
.live-stage.world-three{height:clamp(310px,45vh,480px)!important;min-height:310px!important;display:block!important;padding:0!important}
.world-concert>.audience{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);pointer-events:none}
.world-concert>.live-message{position:absolute!important;bottom:25px!important;left:10px!important;right:10px!important;top:auto!important;z-index:5;color:#fffaf0!important;background:#635d6dbb;border-radius:12px;padding:6px;font-size:14px}
.world-concert>.concert-echo-cues{position:absolute;left:50%;bottom:72px;transform:translateX(-50%);z-index:6;display:flex;gap:7px;padding:7px 10px;border-radius:18px;background:#fffaf0dc;box-shadow:0 4px 14px #30283d44}.concert-echo-cues span{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#eee5f5;color:#79638f;font-weight:700;border:2px solid transparent}.concert-echo-cues .echo-playing{border-color:#d6aa58;background:#fff0b9;transform:scale(1.12)}.concert-echo-cues .echo-done{background:#dcebc9;color:#5e7951}.concert-echo-cues[data-phase=player]{background:#f9edf7e8}
.world-concert>.performance-caption{max-width:48%;font-size:10px;left:8px;top:10px}.world-concert .finale-skip{bottom:55px}
.result-friends.world-three{margin:15px auto;width:100%!important}.purchase-preview:has(.room-three){height:auto!important;min-height:340px;max-height:none!important}.purchase-preview .room-stage.room-three{height:340px!important;min-height:340px}.purchase-preview .room-controls{bottom:25px}
@media(max-width:600px){.world-town .destination-label{padding:10px 9px!important;font-size:12px!important}.world-town>.destination-shop{left:4%!important}.world-town>.destination-concert{left:33%!important}.world-town>.destination-home{right:4%!important}.shop-world{height:220px}.world-controls button{min-width:32px;padding:4px 8px}.live-stage.world-three{height:310px!important}.world-concert>.performance-caption{top:56px;max-width:85%}.furniture-allowance{font-size:12px}.world-three>.weather-overlay{display:none}}
.world-concert>.world-sample-label{display:none}.world-concert>.live-message{bottom:35px!important;font-size:12px!important;padding:4px!important}.world-concert>.world-controls{top:5px;right:5px;gap:4px}.world-concert>.world-controls button{min-width:44px;min-height:44px;font-size:18px;padding:3px 8px;border-width:2px;box-shadow:0 3px 0 #b5a289}
@media(max-width:600px){.world-concert>.concert-echo-cues{bottom:68px;gap:4px;padding:5px 7px}.concert-echo-cues span{width:27px;height:27px;font-size:13px}}
.venue-progress-panel{margin:12px 0;padding:14px;background:#f6efe1;border:1px solid #ddcbaa;border-radius:18px}.venue-progress-panel h2{font-size:18px;margin:2px}.venue-progress-panel p{margin:7px}.venue-effect-list{font-size:12px}.concert-book{margin-top:10px}.concert-book summary{cursor:pointer;min-height:42px;padding:10px}.concert-memory-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:6px}.concert-memory-grid span{padding:8px;background:#fffaf0;border-radius:10px;font-size:11px}.venue-progress-message{color:#9a5265}

/* Keep the first concert choice simple; optional sound settings stay one tap away. */
.arrangement-panel{padding:12px 18px}.arrangement-panel:not([open]){display:block}.arrangement-panel summary{width:100%;min-height:44px;box-sizing:border-box;padding:10px 14px;border-radius:14px;background:#fffaf0;color:#765f72;font-weight:800;cursor:pointer;list-style-position:inside}.world-controls button,.room-controls button,.room-controls select{min-width:44px;min-height:44px;border-width:2px;box-shadow:0 3px 0 #b5a289}
@media(max-width:600px){.arrangement-panel{padding:8px}.world-controls button{min-width:44px;min-height:44px;font-size:18px;padding:3px 8px}}
.venue-preview{position:relative;display:block;width:100%;aspect-ratio:280/145;margin:0 0 8px;border-radius:13px;overflow:hidden;background:linear-gradient(145deg,#d9d4dc,#f4e8d5)}.venue-preview img{display:block;width:100%;height:100%;object-fit:cover}.venue-options button[data-open=false] .venue-preview{filter:saturate(.72) brightness(.88)}.venue-options button[data-open=false] .venue-preview:after{content:'🔒';position:absolute;right:8px;bottom:8px;background:#fff9;border-radius:50%;padding:5px}
.venue-invitation-goals{display:grid;gap:7px;padding:0;list-style:none;text-align:left}.venue-invitation-goals li{padding:9px 12px;border-radius:14px;background:#fff;border:2px dashed #d7bd9c}.venue-invitation-goals li.is-complete{border-style:solid;border-color:#8eb89c;background:#edf8ef;color:#55785f}

/* A four-step, non-blocking first concert guide. */
.first-concert-guide{position:fixed;z-index:90;left:50%;bottom:max(18px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(680px,calc(100vw - 24px));box-sizing:border-box;display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:12px;padding:14px 16px;background:#fff9eefa;border:3px solid #d7b97e;border-radius:22px;box-shadow:0 12px 35px #493f3560;color:#5c4b3f}.first-concert-guide>span{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:#ead8f0;font-size:24px}.first-concert-guide strong{display:block;font-size:17px}.first-concert-guide p{margin:3px 0;font-size:13px;line-height:1.55}.first-concert-guide button{min-height:46px}.first-concert-guide .guide-close{width:46px;padding:0;border:0;border-radius:50%;background:#eee5d7;color:#68594c;font-size:20px}@media(max-width:600px){.first-concert-guide{grid-template-columns:auto 1fr auto;gap:8px;padding:11px}.first-concert-guide>span{width:38px;height:38px}.first-concert-guide strong{font-size:15px}.first-concert-guide p{font-size:12px}.first-concert-guide .primary{grid-column:1/3}.first-concert-guide .guide-close{grid-column:3;grid-row:1/3}}

.friend-collection{margin-top:18px;padding:16px;background:#f7f0e4;border:1px solid #ddcdb7;border-radius:22px}.friend-collection>h2,.friend-collection>p{text-align:center}.friend-collection-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:9px}.friend-collection-card{display:flex;flex-direction:column;align-items:center;min-height:180px;padding:12px;background:#fffaf1;border:2px solid #e0d2c0;border-radius:18px;text-align:center}.friend-collection-card strong{font-size:14px}.friend-collection-card small{min-height:32px;font-size:11px}.friend-collection-card .friend-instrument{margin:.2rem 0 0;font-size:12px;font-weight:700}.friend-token,.friend-silhouette{display:grid;place-items:center;width:72px;height:72px;margin:3px;border-radius:45% 52% 48% 50%;background:#d8c6e3;color:#fff;font-size:35px}.friend-collection-card.is-friend{border-color:#c9d9ad;background:#f7fbeF}.friend-silhouette{position:relative;background:#d7d3d8}.friend-silhouette:before{content:'?';position:relative;z-index:1;color:#fff;font-size:28px;font-weight:800}.friend-silhouette i{position:absolute;bottom:-7px;width:45px;height:30px;border-radius:50% 50% 35% 35%;background:#d7d3d8}.friend-goals{display:grid;gap:3px;width:100%;margin-top:8px}.friend-goals span{padding:4px;background:#eee9e2;border-radius:8px;font-size:10px;text-align:left}.friend-goals span.done{background:#e4efd8;color:#557048}@media(max-width:600px){.friend-collection{padding:10px}.friend-collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.friend-collection-card{min-height:170px;padding:8px}.friend-token,.friend-silhouette{width:58px;height:58px}}
.stamp-grid{grid-template-columns:repeat(7,minmax(0,1fr));align-items:center;width:100%;min-width:0}.stamp-cell{box-sizing:border-box;width:100%;max-width:64px;min-width:0;min-height:0!important;aspect-ratio:1/1;justify-self:center;border-radius:50%;overflow:hidden;font-family:"Apple Color Emoji","Segoe UI Emoji",sans-serif;font-size:clamp(15px,3vw,24px);line-height:1;white-space:normal}
.character-portrait-2d{display:block;width:94px;height:94px;overflow:hidden;border-radius:50%;background:#fff8ed;border:2px solid #ead8c8;box-shadow:0 3px 0 #9e705f18}.character-portrait-2d img{display:block;width:auto;max-width:none;height:100%;transform:translateX(-3%)}.friend-character-portrait{width:82px;height:82px;margin:0 0 5px}.memory-character-portrait{width:120px;height:120px;margin-bottom:3px}@media(max-width:600px){.friend-character-portrait{width:68px;height:68px}.memory-character-portrait{width:92px;height:92px}}

/* Parent information: short, scan-friendly sections for mobile. */
#info .parent-summary{display:grid;gap:8px;margin-bottom:18px}#info .parent-summary h3{margin:7px 0 0;font-size:16px;color:#625875}#info .parent-summary ul{display:grid;gap:4px;margin:0;padding-left:1.35em}#info .parent-summary li{font-size:13px;line-height:1.55}#info .parent-save-note{margin:3px 0 0;padding:9px 12px;border-radius:12px;background:#f6f0f7;font-size:12px;line-height:1.55}

/* Town status markers keep a 48px tap target while their visible bubble follows camera zoom. */
.world-quest-marker,.world-hunger-marker{translate:none!important}
.world-quest-marker,.world-hunger-marker{width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;transform:translate(-50%,-100%)!important;animation:none!important;overflow:visible}.world-marker-visual{display:grid;place-items:center;width:44px;height:44px;border:3px solid #fff8dc;border-radius:50%;background:#f3cf64;color:#684d62;font-size:27px;font-weight:900;line-height:1;box-shadow:0 4px 0 #bd9252,0 5px 16px #5b466055;scale:var(--marker-scale,1);transform-origin:50% 100%;will-change:opacity,scale}.world-quest-marker.is-active .world-marker-visual{background:#bcdbe3;box-shadow:0 4px 0 #739bab,0 5px 16px #5b466055}.world-quest-marker.is-ready .world-marker-visual{background:#f1a9c6;box-shadow:0 4px 0 #bd6f91,0 0 0 5px #fff4b8,0 5px 16px #5b466055}.world-hunger-marker .world-marker-visual{border-color:#fff8e9;background:#fff2bb;box-shadow:0 4px 10px #5f4a3f55;font-size:25px}.world-quest-marker:focus-visible .world-marker-visual,.world-hunger-marker:focus-visible .world-marker-visual{opacity:1!important;outline:4px solid #8472c3;outline-offset:4px}@media(prefers-reduced-motion:reduce){.world-marker-visual{opacity:1!important}}

/* White-key spacing stays inside seven equal tracks so every black key can sit
   exactly on the C-D, D-E, F-G, G-A and A-B boundaries. */
.sound-keyboard .sound-flowers{gap:0}.sound-keyboard .sound-flower{flex:1 1 0;min-width:0;margin-inline:6px}@media(max-width:700px){.sound-keyboard .sound-flower{margin-inline:3px}}
