/* Native-game presentation layer. Last stylesheet, candidate only. */
.native-game .memory-album>.memory-grid:not([hidden]){grid-template-columns:repeat(auto-fit,minmax(145px,1fr))!important}
@media(orientation:landscape) and (max-height:350px){.native-game #view>.compact-friend-picker:not([hidden]){gap:3px!important}}
.native-game .world-concert>.concert-echo-cues{top:60px!important;bottom:auto!important;height:auto!important;min-height:0!important;align-items:center}.native-game .result .concert-echo-cues{display:none!important}
/* Retain semantic hidden even when later component rules specify display. */
body.native-game #view [hidden],body.native-game dialog [hidden]{display:none!important}
body.native-game #qa-launcher{width:auto!important;right:auto!important;max-width:100px!important}
body.native-game{--shell-ink:#42395d;--shell-purple:#8270ca;--shell-lilac:#eee8ff;--shell-surface:#fffdf5;--shell-border:#e6ddcf;--shell-shadow:0 4px 0 #cbbfae;--hud:66px;--dock:76px;color:var(--shell-ink);background:#eee8dd;overflow:hidden;overscroll-behavior:none;-webkit-user-select:none;user-select:none}
.native-game .app{display:grid!important;grid-template-areas:'hud' 'view' 'dock'!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:var(--hud) minmax(0,1fr) var(--dock)!important;gap:8px!important;width:100%;max-width:1600px;height:100dvh!important;min-height:0!important;margin:auto;padding:max(6px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))!important;overflow:hidden;background:radial-gradient(ellipse at 25% 0,#fff9e7,transparent 65%),#f2eddf}
.native-game .app>header{grid-area:hud!important;display:flex!important;position:static!important;flex-direction:row!important;align-items:center;justify-content:flex-start;width:auto!important;min-width:0;min-height:0!important;margin:0!important;gap:10px!important;padding:2px 4px!important}
.native-game .brand{border:0;background:none;box-shadow:none;padding:0;flex:0 0 auto;min-width:0;min-height:44px}
.native-game .brand .game-logo{width:82px!important;height:48px!important;max-width:none!important;object-fit:contain}
.native-game .native-location{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.native-game .native-location-title{font-size:19px;line-height:1.15;letter-spacing:0;font-weight:850;margin:0;color:#63517f;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
.native-game #save-status{font-size:9px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#9a8b80;max-width:100%}
.native-game header>.coin{flex:none;font-size:16px!important;font-weight:800;min-height:36px;min-width:56px;justify-content:center;padding:6px 10px!important;border:2px solid #fff6c8;box-shadow:0 3px 0 #debb6a;background:linear-gradient(#fff6c9,#f9df92);color:#906b27}
.native-game .native-settings-open{width:44px;height:44px;min-width:44px;padding:10px;border:2px solid #fffdf5;background:#e6ddf6;color:#83709e;border-radius:17px;box-shadow:0 3px 0 #c5b7d5;display:grid;place-items:center}
.native-game svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.native-game .app>footer{display:none!important}
.native-game #nav{grid-area:dock!important;position:relative!important;inset:auto!important;display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;grid-template-rows:1fr!important;gap:4px!important;min-height:0!important;min-width:0;width:100%!important;padding:5px!important;margin:0!important;overflow:visible!important;border-radius:24px;background:#fffdf4;border:2px solid #e4d8c8;box-shadow:0 4px 0 #d8cbb5;z-index:5}
.native-game #nav>.native-nav-item{display:flex!important;flex-direction:column!important;justify-content:center;align-items:center;gap:3px;position:relative;min-width:0!important;min-height:44px!important;width:100%;height:100%;padding:4px 1px!important;border:0!important;border-radius:17px!important;background:transparent!important;box-shadow:none!important;color:#9b8c83;font-size:10px!important;line-height:1.05;white-space:normal;overflow:visible;transition:background .16s,transform .16s}
.native-game #nav>.native-nav-item::before,.native-game #nav>.native-nav-item::after,.native-game .compact-settings-open{display:none!important}
.native-game .native-nav-icon{display:grid;place-items:center;width:31px;height:31px;border-radius:12px;background:#f5eee2;color:#b39873;transition:transform .16s}
.native-game #nav>[data-page=home] .native-nav-icon{color:#ce7e9f;background:#fbe6ed}.native-game #nav>[data-page=shop] .native-nav-icon{color:#ce9852;background:#fff0d3}.native-game #nav>[data-page=select] .native-nav-icon{color:#9470b6;background:#f0e6fa}.native-game #nav>[data-page=garden] .native-nav-icon{color:#7d9f74;background:#ebf3db}.native-game #nav>[data-page=album] .native-nav-icon{color:#739ca1;background:#e1f2f0}
.native-game #nav>.native-nav-item[aria-current=page]{background:#eee7fb!important;color:#766097;font-weight:850;box-shadow:inset 0 0 0 2px #d3c2e9!important}
.native-game #nav>[aria-current=page] .native-nav-icon{transform:translateY(-2px) scale(1.06);background:#fff9ff}
.native-game button:active:not(:disabled){translate:0 2px}.native-game button:focus-visible,.native-game select:focus-visible{outline:3px solid #7660ae;outline-offset:2px}
.native-game #view{grid-area:view!important;min-height:0!important;min-width:0;overflow:hidden!important;width:100%;height:100%;margin:0!important;border-radius:26px;position:relative;isolation:isolate;background:#fffcf2;border:2px solid #e9e0cf;box-shadow:0 5px 0 #ddd1ba}
.native-game #view>section,.native-game #view>.panel{height:100%!important;min-height:0!important;max-height:none!important;margin:0!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:10px!important;background:#fffdf6}
.native-game [hidden]{display:none!important}
.native-game .primary{background:linear-gradient(#a98bd9,#8b70bc);box-shadow:0 4px 0 #6f579a,inset 0 1px #d5bff4;border:2px solid #c6ace7;border-radius:18px;font-weight:800;min-height:46px;padding:10px 18px;font-size:14px}
.native-game .secondary{background:#fff9ed;border:2px solid #e0d4be;border-radius:16px;box-shadow:0 3px 0 #d5c7ac;min-height:44px;padding:7px 12px;font-size:13px}
.native-game .scene-tabs{display:flex!important;align-items:center;flex:none;gap:4px!important;min-height:44px;max-height:48px;margin:0 0 8px!important;padding:3px!important;border:1px solid #ebe3d5;border-radius:17px;background:#f4efdf;overflow:visible}
.native-game .scene-tabs>.scene-tab{display:flex;flex:1;min-width:0;align-items:center;justify-content:center;gap:5px;min-height:38px!important;height:auto!important;padding:5px 7px!important;border:0!important;border-radius:13px!important;background:none;box-shadow:none!important;font-size:12px!important;line-height:1.15;color:#98867d}
.native-game .scene-tabs>.scene-tab::before{width:22px!important;height:22px!important;flex:0 0 22px!important}
.native-game .scene-tabs>.scene-tab[aria-pressed=true]{background:#fffdf9;color:#7b5f91;box-shadow:0 2px 4px #ad947326!important}
.native-game .screen-pane{min-height:0;min-width:0}.native-game .native-scroll-pane{overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.native-game .page-controls{display:flex;justify-content:center;align-items:center;gap:12px;min-height:44px;flex:none;margin:6px 0 0}.native-game .page-controls button{width:44px;min-width:44px;min-height:44px;height:44px;padding:3px}
.native-game #action-message{flex:none;margin:4px 0 0;font-size:12px;line-height:1.35}.native-game .native-empty{display:none!important}
/* Town: world is the main surface, not a long web page. */
.native-game .town{display:flex!important;flex-direction:column!important;padding:8px!important;gap:0!important}
.native-game .town>.screen-pane:not([hidden]){flex:1;min-height:0;display:flex;flex-direction:column;gap:8px}
.native-game .town .welcome{display:none!important}
.native-game .town-map.world-three{position:relative;flex:1;height:auto!important;min-height:0!important;width:100%;margin:0!important;border-radius:20px;background:#e3e9cc;overflow:hidden}
.native-game .town-map .world-canvas{width:100%!important;height:100%!important}
.native-game .town .next-activity-card{flex:none;display:grid;grid-template-columns:30px minmax(0,1fr) auto!important;min-height:54px;gap:8px;padding:7px 9px!important;margin:0!important;border-radius:17px;background:linear-gradient(110deg,#f4eafa,#fff4d7);border:1px solid #eadce9;box-shadow:none}
.native-game .next-activity-card>span{width:30px;height:30px;font-size:22px}.native-game .next-activity-card small,.native-game .next-activity-card p{display:none!important}.native-game .next-activity-card strong{font-size:12px;line-height:1.3}.native-game .next-activity-card button{min-height:44px;min-width:58px;max-width:86px;padding:5px 9px;font-size:12px}
.native-game .native-map-tools{position:absolute!important;top:60px;right:8px;inset-inline-start:auto;display:flex!important;flex-direction:column!important;gap:6px!important;padding:0!important;z-index:4;width:auto!important;margin:0!important}
.native-game .native-map-tools button{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;border-radius:15px!important;border:2px solid #fff9ed!important;background:#fff8eae8!important;box-shadow:0 3px 0 #bda9856b;font-size:20px}
.native-game .town-shops,.native-game .town-building-note{display:none!important}
.native-game .world-controls{top:8px!important;left:8px!important;right:8px!important;max-width:calc(100% - 16px);gap:5px;padding:0!important;pointer-events:none}.native-game .world-controls>*{pointer-events:auto}
.native-game .world-controls button{width:44px!important;height:44px!important;min-height:44px!important;min-width:44px!important;border-radius:14px!important;font-size:20px;padding:4px}
.native-game .world-zoom{min-width:0;padding:5px 7px;border-radius:14px;font-size:10px}.native-game .world-zoom input{width:70px;min-width:35px}.native-game .world-hint{display:none!important}
.native-game .world-three{min-width:0}.native-game .life-cards{display:grid;gap:8px}.native-game .visit-card{margin:0}.native-game .life-card,.native-game .visit-card{padding:12px;border-radius:20px}
/* Home and care keep the model and primary controls in one screen. */
.native-game .home-panel{display:flex!important;flex-direction:column!important;gap:6px}
.native-game .home-panel>h1,.native-game .home-panel>.eyebrow{display:none}.native-game .home-tabs{flex:none;min-height:44px;margin:0!important;gap:5px;overflow:auto;scrollbar-width:none;flex-wrap:nowrap}
.native-game .home-tabs button{min-height:44px;padding:5px 12px;font-size:12px;border-radius:16px;flex:1}
.native-game .home-layout{flex:1;min-height:0!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) auto;gap:8px!important}
.native-game .home-preview{height:auto!important;min-height:0!important;margin:0!important;border-radius:20px;overflow:hidden}
.native-game .home-preview .room-stage{height:100%!important;min-height:0!important}.native-game .home-options{min-height:0;padding:0!important;max-height:230px;display:flex;flex-direction:column;gap:4px}
.native-game .home-options>.screen-pane:not([hidden]){display:flex;flex-direction:column;gap:5px;min-height:0}.native-game .home-options .scene-tabs{margin-bottom:3px!important}
.native-game .home-action-rail{gap:5px!important;flex-wrap:nowrap}.native-game .home-action-rail button{min-height:44px;padding:6px 9px;font-size:12px}.native-game .home-play{padding:0!important;margin:0}.native-game .home-play h2,.native-game .home-play p,.native-game .room-hint{display:none!important}
.native-game .room-view-controls{grid-template-columns:44px 44px minmax(0,1fr) 44px!important}.native-game .room-controls{margin:0!important}
.native-game .care-home{display:flex;flex-direction:column;gap:8px}.native-game .care-home>h1,.native-game .care-home>.care-heading{display:none}.native-game .care-layout{flex:1;height:auto!important;min-height:0!important;display:grid;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) minmax(100px,.52fr);gap:8px}
.native-game .care-character-pane,.native-game .care-inventory-pane{min-height:0!important;padding:10px;border-radius:20px}.native-game .care-character-pane{display:flex;flex-direction:column}.native-game .care-character{height:auto!important;min-height:0!important;flex:1}.native-game .hunger-status{padding:5px 8px;min-height:44px;gap:5px;font-size:12px}
/* Market shelf: model + compact, page-able inventory. */
.native-game .shop-panel{display:flex;flex-direction:column;align-items:stretch!important;gap:6px;min-height:0}.native-game .shop-panel>h1,.native-game .shop-panel>p:not(#action-message),.native-game .shop-panel>.eyebrow{display:none}
.native-game .shop-panel>.screen-pane:not([hidden]),.native-game .shop-panel>.life-panel:not([hidden]){flex:1;min-height:0;display:flex;flex-direction:column;gap:6px;padding:0!important}
.native-game .shop-panel>.shop-scene,.native-game .shop-panel>.shop-world,.native-game .shop-panel>.world-three{height:30%!important;min-height:110px!important;flex:0 0 30%;margin:0}
.native-game .food-grid,.native-game .furniture-catalog{gap:7px!important;grid-template-columns:repeat(var(--shop-columns,3),minmax(0,1fr))!important;margin:0;align-content:start}
.native-game .shop-panel .product-pick{min-height:100px!important;height:auto!important;gap:3px;padding:6px 4px;border-radius:17px!important;border-width:1px!important;box-shadow:0 3px 0 #e2d6bf}
.native-game .shop-panel .product-art{height:35px!important;min-height:35px!important;margin:0!important;flex:none}.native-game .shop-panel .product-name{font-size:11px!important;line-height:1.35;white-space:normal;overflow:visible;overflow-wrap:normal}.native-game .shop-panel .product-meta{font-size:11px!important;gap:4px;flex-wrap:wrap;white-space:normal}
.native-game .shop-panel .product-art img{width:33px!important;height:33px!important;object-fit:contain}.native-game .shop-panel .product-art .food-icon{font-size:30px!important}
/* Selection: the action bar stays visible, long options scroll within its shelf. */
.native-game [data-scene=select]{min-height:0}.native-game #view>.scene-tabs{margin:8px 8px 0!important}.native-game #view:has(>.scene-tabs){display:flex;flex-direction:column}
.native-game #view>.panel:not([hidden]){flex:1;min-height:0!important;display:flex;flex-direction:column;gap:6px}
.native-game .compact-friend-picker>h1,.native-game .song-picker>h1,.native-game .memory-album>h1{display:none}.native-game .panel>p{font-size:12px;line-height:1.4;margin:3px 0}
.native-game .friend-grid{flex:1;min-height:0!important;gap:8px!important;margin:0!important;align-content:stretch;grid-template-columns:repeat(3,minmax(0,1fr))!important;overflow:auto}
.native-game .friend-card{min-height:0!important;padding:6px!important;border-radius:23px!important;border-width:2px!important;display:flex;flex-direction:column;gap:3px;box-shadow:0 4px 0 #dfd1bd}
.native-game .friend-model-preview{height:auto!important;min-height:80px;flex:1;max-height:none!important;border-radius:16px;overflow:hidden}.native-game .friend-card b{font-size:14px!important}.native-game .friend-card small{font-size:10px!important;line-height:1.25;min-height:24px}
.native-game .selection-bottom{flex:none;display:flex;align-items:center;gap:8px;min-height:48px;margin:5px 0 0!important;padding:0!important}.native-game .selection-bottom p{flex:1;font-size:11px!important;line-height:1.3;margin:0}.native-game #choose-song{flex:1;font-size:13px;padding:9px}
.native-game .ensemble-counts{display:flex;gap:7px;font-size:11px!important;margin:0!important;justify-content:center}.native-game .concert-goals-open{min-height:38px;padding:5px;font-size:11px;flex:none}
.native-game .song-list{flex:1;min-height:0;display:flex!important;flex-direction:column;flex-wrap:nowrap!important;align-items:stretch!important;justify-content:flex-start!important;gap:8px!important;overflow:auto;margin:0!important}
/* Reset the legacy 50% width before allocating the title column. Never hide overflow to mask unreadable labels. */
.native-game .song-list .song-card{display:grid!important;width:100%!important;min-width:0!important;max-width:none!important;grid-template-columns:32px minmax(0,1fr) minmax(60px,6.5em);grid-template-rows:auto auto;grid-template-areas:'icon title action' 'icon meta action';align-items:center;gap:3px 8px;min-height:88px!important;flex:1 0 auto;max-height:none;padding:10px!important;border-radius:19px!important}
.native-game .song-card>span{grid-area:icon;font-size:30px;line-height:1.2}.native-game .song-card>b{grid-area:title;min-width:0;font-size:14px;line-height:1.35;text-align:left;word-break:normal;overflow-wrap:normal}.native-game .song-card>small{grid-area:meta;min-width:0;font-size:10px;line-height:1.35;text-align:left;overflow-wrap:normal}.native-game .song-card>strong{grid-area:action;min-width:0;max-width:100%;align-self:center;font-size:11px;line-height:1.3;padding:8px 6px;white-space:normal;overflow-wrap:normal}
.native-game .song-picker>.arrangement-toggle{flex:none}.native-game .concert-preparation{max-height:45%;overflow:auto}
/* Sound garden / performance: touch instruments stay on-screen. */
.native-game .music-garden{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:minmax(60px,1fr) minmax(100px,.6fr) auto auto!important;gap:8px!important}
.native-game .music-garden>h1,.native-game .music-garden>p:not(#garden-message),.native-game .music-garden>.eyebrow{display:none!important}.native-game .garden-friend{grid-row:1;position:relative!important;inset:auto!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;margin:0!important;border-radius:22px;overflow:hidden}
.native-game .sound-keyboard{grid-row:2;position:relative!important;inset:auto!important;min-width:0;width:100%!important;height:100%!important;margin:0!important;padding-top:0!important;align-self:stretch}.native-game .sound-flowers{height:100%!important;gap:3px!important;grid-template-columns:repeat(7,minmax(0,1fr))!important}.native-game .sound-flower{height:100%!important;min-height:90px!important;padding:50px 0 8px!important;border-radius:12px!important;justify-content:flex-end!important;gap:5px!important;box-shadow:0 4px 0 #a7bf90}
.native-game .sound-flower>span{font-size:26px!important;height:30px;line-height:30px}.native-game .sound-flower>small{position:static!important;font-size:12px!important;line-height:1.2!important;display:block!important;transform:none!important}
.native-game .sound-black-keys{inset:0!important;height:55%!important;pointer-events:none!important}.native-game .sound-black-key{pointer-events:auto!important;width:8.5%!important;height:100%!important;min-height:44px!important;left:calc(var(--black-slot)*100%/7)!important;transform:translateX(-50%)!important;top:0!important;padding:4px 0!important;border-radius:0 0 9px 9px!important;background:linear-gradient(#645574,#82768d)!important;border:1px solid #6d607d!important;color:#fff9ee!important;box-shadow:0 3px 0 #44364e}.native-game .sound-black-key>span{font-size:16px!important}.native-game .sound-black-key>small{font-size:8px!important;color:#fff9ee!important}
.native-game .echo-play{grid-row:3;display:flex!important;gap:8px;align-items:center;justify-content:center;margin:0!important}.native-game #echo-start{font-size:12px;min-height:44px;padding:6px 10px}.native-game #echo-cues{display:flex;min-width:0;gap:3px;flex-wrap:wrap}.native-game .echo-play~#garden-message{grid-row:4;font-size:12px!important;margin:0!important;min-height:15px}.native-game .garden-actions{grid-row:5;display:flex!important;gap:7px!important;margin:0!important}.native-game .garden-actions button{flex:1;font-size:11px!important;min-height:44px!important;padding:6px!important}
.native-game #view:has(>.live-stage){display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 18px minmax(100px,25%);gap:6px;padding:8px!important}
.native-game .live-stage{height:auto!important;min-height:0!important;border-radius:20px!important}.native-game .keyboard-area{min-height:0!important;padding:0!important;margin:0!important;display:flex;flex-direction:column}.native-game .keyboard-area>.keys{height:100%!important;min-height:80px!important}.native-game .keyboard-area .key{height:100%!important;min-height:80px!important;padding:8px 2px!important}.native-game .keyboard-area .black-key,.native-game .keyboard-area .shifted-black{height:56%!important;min-height:44px!important}.native-game .keyboard-area>.hint{display:none!important}.native-game .concert-progress{margin:0!important;padding:0!important;height:18px}.native-game .live-message{font-size:14px!important;line-height:1.2;bottom:6px!important}.native-game .concert-echo-cues{top:8px!important}
/* Memories and long catalogues use a bounded shelf, never page scrolling. */
.native-game .memory-album{display:flex;flex-direction:column;gap:7px}.native-game .memory-album>.screen-pane:not([hidden]){flex:1;min-height:0;display:flex;flex-direction:column;gap:7px;overflow:auto}.native-game .memory-album>p{display:none}.native-game .memory-grid{flex:1;min-height:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;overflow:auto}.native-game .memory-card{min-height:0;padding:12px!important;border-radius:20px!important}.native-game .memory-card h2{font-size:14px!important}.native-game .memory-card p{font-size:11px!important}.native-game .memory-card>span{font-size:30px!important}.native-game .friend-collection,.native-game .concert-ideas{min-height:0;overflow:auto;margin:0!important;padding:0!important}.native-game .friend-collection-grid{gap:8px!important}.native-game .friend-collection-card{padding:8px;border-radius:20px}.native-game .friend-collection-card h3{font-size:14px}
.native-game .result{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;overflow:auto}.native-game .result h1{font-size:24px}.native-game .result .result-friends{flex:1;min-height:0;max-height:35%;margin:0}.native-game .result .reward{font-size:23px;margin:0}.native-game .result .celebrate{font-size:34px}.native-game .result .result-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
/* Dialogs intentionally retain readable internal scrolling and native focus. */
.native-game dialog{max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));max-width:calc(100vw - 24px);border:2px solid #e0d0ba;border-radius:27px;background:#fffdf5;color:#5a4b6b;box-shadow:0 10px 0 #77695533,0 30px 90px #45374d30;overflow:auto;-webkit-user-select:text;user-select:text}
.native-game dialog::backdrop{background:#42354f66;backdrop-filter:blur(7px)}.native-game .native-settings{width:420px;padding:17px}.native-dialog-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.native-dialog-top h2{font-size:21px;margin:0}.native-close{width:44px;height:44px;border:0;border-radius:15px;background:#f2e9de;font-size:28px}.native-settings .tools{display:grid!important;grid-template-columns:1fr 52px 52px;gap:10px;margin-top:20px;min-height:52px}.native-settings #language{width:100%;max-width:none;min-height:48px;font-size:15px}.native-settings .round{width:48px!important;height:48px!important;font-size:25px;border-radius:16px;background:#f4ecdf;box-shadow:0 3px 0 #d5c6ae}.native-settings .language-picker{min-width:0}.native-settings .sr-only{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
.native-game .first-concert-guide{max-width:calc(100vw - 32px);bottom:calc(var(--dock) + 25px + env(safe-area-inset-bottom));z-index:10;border-radius:20px}.native-game .first-concert-guide p{display:none}.native-game #qa-launcher{position:fixed;left:12px;bottom:4px;font-size:9px;min-height:20px;padding:2px 6px;z-index:12;opacity:.6}
@media(min-width:700px) and (orientation:portrait){.native-game .app{max-width:850px;--hud:76px;--dock:86px;padding-inline:18px!important;gap:12px!important}.native-game .native-nav-label{font-size:13px}.native-game .native-nav-icon{width:38px;height:38px}.native-game .home-layout{grid-template-rows:minmax(0,1fr) 240px}.native-game .home-options{max-height:240px}}
@media(orientation:landscape){
 .native-game{--hud:52px;--dock:72px}.native-game .app{grid-template-areas:'dock hud' 'dock view'!important;grid-template-columns:76px minmax(0,1fr)!important;grid-template-rows:var(--hud) minmax(0,1fr)!important;gap:8px!important;padding:8px max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))!important}
 .native-game #nav{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:repeat(6,minmax(0,1fr))!important;gap:3px!important;border-radius:22px;padding:4px!important;height:100%!important}.native-game .brand .game-logo{width:72px!important;height:40px!important}.native-game .native-location-title{font-size:17px}.native-game #nav>.native-nav-item{min-height:39px!important;font-size:9px!important;gap:1px}.native-game .native-nav-icon{width:28px;height:28px}.native-game .native-nav-icon svg{width:23px;height:23px}.native-game .app>header{padding:0 5px!important}.native-game .native-settings-open{width:40px;height:40px;min-width:44px;box-shadow:0 3px #c5b7d5}
 .native-game #view{border-radius:22px}.native-game .town{padding:7px!important}.native-game .town>.screen-pane:not([hidden]){position:relative;gap:0}.native-game .town .next-activity-card{position:absolute;left:10px;bottom:10px;max-width:330px;z-index:4;min-height:48px;background:#fff9e9ef}.native-game .town .next-activity-card button{min-height:38px}.native-game .scene-tabs{max-height:43px;min-height:39px;margin-bottom:5px!important}.native-game .scene-tabs>.scene-tab{min-height:34px!important}.native-game .world-controls{top:7px!important}.native-game .native-map-tools{top:56px;right:7px;gap:5px!important}
 .native-game .home-panel{gap:5px!important}.native-game .home-layout{grid-template-columns:minmax(0,1.5fr) minmax(210px,1fr)!important;grid-template-rows:minmax(0,1fr)!important;gap:8px!important}.native-game .home-options{max-height:none!important;height:100%}.native-game .home-options>.screen-pane:not([hidden]){flex:1;overflow:auto}.native-game .home-tabs{min-height:40px}.native-game .home-tabs button{min-height:40px!important}.native-game .care-layout{grid-template-columns:minmax(0,1fr) minmax(220px,.8fr)!important;grid-template-rows:minmax(0,1fr)!important}.native-game .care-character-pane>h2{display:none}
 .native-game .music-garden{grid-template-columns:minmax(120px,.65fr) minmax(0,2fr)!important;grid-template-rows:minmax(85px,1fr) auto auto!important;gap:7px!important}.native-game .garden-friend{grid-column:1;grid-row:1/4}.native-game .sound-keyboard{grid-column:2;grid-row:1}.native-game .echo-play{grid-column:2;grid-row:2}.native-game .echo-play~#garden-message{grid-column:2;grid-row:3;font-size:10px!important}.native-game .garden-actions{grid-column:2;grid-row:4}.native-game .sound-flower{min-height:85px!important;padding-top:35px!important}.native-game .sound-flower>span{font-size:23px!important}.native-game .garden-actions button{min-height:38px!important}.native-game .music-garden .garden-friend{grid-row:1/5}
 .native-game .friend-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.native-game .friend-card{display:grid;grid-template-columns:minmax(50px,1fr) minmax(0,1fr);grid-template-rows:1fr 1fr;gap:3px 7px;align-items:center}.native-game .friend-model-preview{grid-row:1/3;height:100%!important;min-height:50px;max-width:none}.native-game .friend-card b{font-size:13px!important;align-self:end}.native-game .friend-card small{align-self:start}.native-game .friend-card .check{right:7px;top:7px;width:22px;height:22px;font-size:12px}.native-game .friend-grid .page-controls{grid-column:1/-1}
 .native-game .song-list{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:minmax(0,1fr);overflow:auto}.native-game .song-card{height:100%;min-height:95px!important;max-height:none;display:flex!important;flex-direction:column;justify-content:center;gap:3px}.native-game .song-card>b{font-size:12px;text-align:center}.native-game .song-card>small{font-size:10px;text-align:center}.native-game .song-card>strong{font-size:11px}.native-game .song-card>span{font-size:26px}.native-game .selection-bottom{min-height:42px;margin-top:0!important}.native-game #choose-song{flex:0 1 240px;min-height:42px}
 .native-game #view:has(>.live-stage){grid-template-columns:minmax(0,1.5fr) minmax(230px,1fr);grid-template-rows:minmax(0,1fr) 18px;gap:8px}.native-game .live-stage{grid-column:1;grid-row:1/3}.native-game .keyboard-area{grid-column:2;grid-row:1}.native-game .concert-progress{grid-column:2;grid-row:2}.native-game .keys{gap:5px!important}.native-game .keyboard-area .key .label{font-size:12px!important}
 .native-game .memory-album>.screen-pane:not([hidden]){min-height:0}.native-game .memory-card>span{font-size:24px!important}.native-game .memory-card h2{font-size:12px!important}.native-game .memory-card p{font-size:10px!important}.native-game .first-concert-guide{bottom:18px;left:auto;right:18px;max-width:370px}.native-game #qa-launcher{left:10px;bottom:0}.native-game .shop-panel .product-pick{height:76px!important;min-height:76px!important}.native-game .shop-panel>.shop-scene,.native-game .shop-panel>.world-three{height:26%!important;min-height:80px!important}
}
@media(orientation:landscape) and (max-height:350px){.native-game .app{grid-template-columns:108px minmax(0,1fr)!important;--hud:44px;gap:5px!important;padding-block:5px!important}.native-game #nav{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(3,minmax(0,1fr))!important}.native-game .scene-tabs>.scene-tab::before{display:none!important}.native-game .native-location-title{font-size:15px}.native-game .brand .game-logo{width:62px!important;height:36px!important}.native-game .next-activity-card{max-width:270px!important}.native-game .world-controls .world-zoom{max-width:140px}.native-game .world-controls button{min-width:38px!important;width:38px!important;height:38px!important;min-height:38px!important}.native-game .selection-bottom p{max-width:45%}.native-game .sound-flower>span{font-size:19px!important}.native-game .music-garden{gap:4px!important}.native-game .garden-actions button{min-height:34px!important}.native-game #garden-message{display:none!important}.native-game .song-card>small{display:none}.native-game .friend-card small{font-size:9px!important}}
@media(max-width:360px) and (orientation:portrait){.native-game{--hud:60px;--dock:70px}.native-game .app{padding-inline:5px!important;gap:6px!important}.native-game .brand .game-logo{width:60px!important;height:40px!important}.native-game .app>header{gap:6px!important;padding:0!important}.native-game .native-location-title{font-size:16px}.native-game #nav{gap:1px!important;padding:4px 2px!important}.native-game #nav>.native-nav-item{font-size:9px!important}.native-game .friend-card b{font-size:12px!important}.native-game .scene-tabs>.scene-tab{font-size:10px!important}.native-game .scene-tabs>.scene-tab::before{display:none!important}}
@media(prefers-reduced-motion:reduce){.native-game *,.native-game *::before,.native-game *::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}

/* Released DOM uses home-content; keep its full camera height, not the old web budget. */
.native-game .home-content{flex:1;min-height:0!important;height:auto!important;max-height:none!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) auto;gap:8px!important}
.native-game .home-preview{position:relative!important}.native-game .home-options{max-height:none!important;height:auto!important}.native-game .home-options>.screen-pane:not([hidden]){overflow:auto;max-height:150px}
.native-game .home-action-rail button{display:grid!important;grid-template-columns:34px minmax(0,1fr);grid-template-rows:auto auto;gap:0 6px;align-items:center;justify-content:center;min-height:58px!important;height:auto!important;padding:6px 12px!important}
.native-game .home-action-rail button>span{grid-row:1/3;font-size:30px!important}.native-game .home-action-rail button>b{font-size:14px!important;text-align:left}.native-game .home-action-rail button>small{font-size:10px!important;text-align:left}
.native-game .native-scene-tools{position:absolute!important;inset:auto!important;top:60px!important;right:8px!important;z-index:4;display:flex!important;flex-direction:column!important;gap:6px!important;margin:0!important;padding:0!important;width:44px!important;height:auto!important;background:none!important;box-shadow:none!important}
.native-game .native-scene-tools button{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:3px!important;border:2px solid #fff8e9!important;border-radius:15px!important;background:#fff8eade!important;box-shadow:0 3px #bda9856b}
.native-game #view:has(>.scene-tabs)>.panel{height:auto!important}
.native-game .home-care-screen{display:flex!important;flex-direction:column;gap:7px}.native-game .home-care-screen>.care-header{flex:none;display:flex;align-items:center;gap:8px;min-height:44px;margin:0!important}.native-game .care-header h1{display:none}.native-game .home-care-screen>.home-tabs{margin:0!important}
@media(orientation:landscape){.native-game .home-content{grid-template-columns:minmax(0,1.5fr) minmax(210px,1fr)!important;grid-template-rows:minmax(0,1fr)!important}.native-game .home-options>.screen-pane:not([hidden]){max-height:none;flex:1}.native-game .home-preview .native-scene-tools{top:8px!important}.native-game .care-layout{flex:1;min-height:0!important}.native-game .home-options{overflow:auto}}

.native-game .food-grid,.native-game .furniture-catalog{grid-template-columns:repeat(var(--native-shelf-cols,3),minmax(0,1fr))!important;flex:none;overflow:visible!important}
.native-game .shop-panel>.screen-pane:has(.food-grid){overflow:auto!important}.native-game .native-shelf-pager{min-height:44px;margin:5px 0}.native-game .native-shelf-pager span{font-size:12px;min-width:54px}
.native-game .echo-play .sound-trails-open{min-height:44px;padding:6px 10px;font-size:12px;background:#f1e7fb;border-color:#d5bde9;color:#806099;box-shadow:0 3px #c7addf}
.native-game .sound-trails-dialog{width:620px;max-width:calc(100vw - 24px);padding:18px;text-align:left}.trail-intro,.trail-note{font-size:12px!important;line-height:1.45!important;margin:12px 0}.trail-note{color:#9d8f86;font-size:10px!important}.trail-levels{display:flex;gap:7px;margin:12px 0}.trail-levels button{flex:1;min-height:44px;border:2px solid #e3d6c5;border-radius:15px;background:#f7f0e3;font-weight:750;font-size:12px}.trail-levels button[aria-pressed=true]{background:#eaddf5;border-color:#cbb1e1;color:#7d5c9c}
.trail-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.trail-cards button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;min-height:118px;border:2px solid #e6d7c2;border-radius:22px;box-shadow:0 4px #ddcbb0;background:linear-gradient(#fffaf0,#f5ecd7)}.trail-cards button:nth-child(2n){background:linear-gradient(#f6efff,#eee5f8);border-color:#ddd0e8;box-shadow:0 4px #cdbbdc}.trail-cards button>span{font-size:36px}.trail-cards button>b{font-size:14px}.trail-cards button>small{font-size:11px;color:#9c8e85}
.trail-name{font-size:17px;margin:12px 0;text-align:center}.trail-progress{display:flex;gap:6px;justify-content:center;margin:10px 0}.trail-progress span{display:grid;place-items:center;border:2px solid #e7dacc;border-radius:13px;min-width:35px;min-height:35px;padding:4px;font-size:12px;background:#f6f0e4}.trail-progress span.done{background:#e5f1d8;border-color:#bad0a5;color:#749557}.trail-progress span[aria-current=step]{border-color:#bb9bdb;background:#eee0fa;color:#7a539c;box-shadow:0 0 0 3px #eee1fa88}
.trail-feedback{min-height:34px;font-size:12px!important;line-height:1.35!important;text-align:center;margin:8px 0!important}.trail-feedback.is-complete{color:#7b995b;font-weight:800}.trail-keyboard{height:165px;position:relative;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;margin:10px 0 14px}.trail-white{height:100%;min-width:0;display:flex;flex-direction:column;justify-content:flex-end;gap:7px;align-items:center;padding:65px 1px 10px;border:1px solid #ddd1bb;border-bottom:5px solid #cabb9c;border-radius:13px;background:#fff9ec}.trail-white>span{font-size:25px}.trail-white>b{font-size:12px}.trail-black{position:absolute;left:calc(var(--slot)*100%/7);transform:translateX(-50%);top:0;width:8.5%;height:55%;min-height:44px;min-width:0;border:1px solid #716180;border-bottom:4px solid #4e3d60;background:linear-gradient(#736180,#9581a3);color:#fff5e6;border-radius:0 0 9px 9px;font-size:9px;padding:3px 0;display:flex;align-items:flex-end;justify-content:center}
.trail-next{outline:3px solid #d8ad62;outline-offset:1px;box-shadow:0 0 16px #edc86f70}.trail-actions{display:flex;gap:7px;justify-content:center}.trail-actions button{flex:1;font-size:11px!important;min-height:44px;padding:6px!important}.trail-finish{display:block;margin:14px auto 0;background:none;border:0;min-height:44px;color:#9a8a80;font-size:12px;text-decoration:underline;text-underline-offset:4px}
@media(orientation:landscape) and (max-height:600px){.native-game .sound-trails-dialog{padding:12px;max-height:calc(100dvh - 16px)}.sound-trails-dialog .native-dialog-top h2{font-size:17px}.sound-trails-dialog .native-close{height:38px}.trail-intro{margin:6px 0!important}.trail-levels{margin:6px 0}.trail-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.trail-cards button{min-height:102px;gap:4px}.trail-cards button>b{font-size:12px}.trail-cards button>span{font-size:28px}.trail-name{margin:3px 0;font-size:14px}.trail-progress{margin:4px 0}.trail-progress span{min-width:30px;min-height:30px}.trail-feedback{min-height:17px;margin:3px 0!important;font-size:11px!important}.trail-keyboard{height:95px;margin:5px 0 8px}.trail-white{padding-top:40px;gap:0}.trail-white>span{font-size:20px}.trail-white>b{font-size:10px}.trail-actions button{min-height:38px!important}.trail-finish{margin:3px auto 0;min-height:34px}.trail-note{margin:6px 0!important}}
.native-game .trail-success .trail-progress{animation:trail-found .45s ease-out}.native-game .trail-success .trail-feedback{font-size:15px!important;font-weight:800;color:#7d9a59}@keyframes trail-found{50%{transform:scale(1.06)}}
.native-game .home-preview{height:100%!important;max-height:100%!important;aspect-ratio:auto!important;align-self:stretch}.native-game .home-content{overflow:hidden}.native-game .home-options{max-height:100%!important;min-height:0!important;align-self:stretch}.native-game .memory-album{position:relative}.native-game .memory-album>.native-scene-tools{top:8px!important;right:8px!important;flex-direction:row!important;width:auto!important}.native-game .memory-album>.scene-tabs{margin-right:102px!important}
body.native-game [hidden]{display:none!important}
.native-game .home-preview>h2,.native-game .home-preview>p{display:none!important}
.native-game .home-care-screen:has(.home-tabs>:only-child){position:relative}.native-game .home-care-screen:has(.home-tabs>:only-child)>.home-tabs{position:absolute;top:12px;right:12px;left:124px;width:auto;z-index:1}.native-game .home-care-screen:has(.home-tabs>:only-child)>.care-header>.eyebrow{display:none}.native-game .care-character-pane>#action-message{min-height:0!important;height:auto!important;padding:0!important}.native-game .care-empty{gap:4px 8px}.native-game .care-empty>span{font-size:28px!important;line-height:28px}
.native-game .care-layout{grid-template-rows:minmax(0,1.3fr) minmax(118px,.7fr)}.native-game .care-character-pane{padding:8px!important;overflow:hidden;gap:4px}.native-game .care-character-pane>h2{display:none}.native-game .care-character-pane>#action-message{margin:0;font-size:11px;line-height:1.25}.native-game .care-character-pane>.hunger-kind-note{font-size:9px;line-height:1.2;flex:none}.native-game .care-character-model{height:100%!important;min-height:0!important;max-height:100%}.native-game .hunger-status{display:grid!important;grid-template-columns:42px minmax(0,1fr);grid-template-rows:16px 12px;gap:2px 5px;flex:none;min-height:38px;height:38px;padding:4px 6px!important;overflow:hidden}.native-game .hunger-status>b{grid-column:1;grid-row:1/3;font-size:10px;align-self:center}.native-game .hunger-status>.hunger-meter{grid-column:2;grid-row:1;height:16px!important;min-height:0!important;gap:4px}.native-game .hunger-meter>span{height:14px!important;min-height:0!important;font-size:9px!important;line-height:12px!important}.native-game .hunger-status>small{grid-column:2;grid-row:2;font-size:8px!important;line-height:12px;white-space:nowrap}.native-game .care-food-pane{min-height:0!important;overflow:auto!important;padding:8px!important;scrollbar-width:thin;display:flex;flex-direction:column;gap:5px}.native-game .care-food-pane>h2{font-size:13px;line-height:1.2;margin:0;flex:none}.native-game .care-empty{display:flex!important;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:center;gap:5px 8px;padding:0!important;margin:auto 0}.native-game .care-empty>span{font-size:30px!important;line-height:32px}.native-game .care-empty>p{flex:1;min-width:100px;font-size:11px;line-height:1.3;margin:0}.native-game .care-empty>button{flex:1 0 100%;min-height:40px!important;padding:5px 10px;font-size:12px}
@media(orientation:landscape){.native-game .care-layout{grid-template-rows:minmax(0,1fr)!important}.native-game .care-empty{flex-direction:column;flex-wrap:nowrap}.native-game .care-empty>p{flex:none}.native-game .care-empty>button{flex:none}}
@media(orientation:landscape) and (max-height:350px){.native-game .care-character-pane>.hunger-kind-note{display:none}.native-game .care-empty{flex-direction:row;flex-wrap:wrap}}
.native-game .memory-album>.native-album-tabs{flex:none;min-height:44px!important;margin:0 102px 6px 0!important}.native-game .memory-album>.native-album-tabs button{font-size:11px!important;min-height:38px!important;padding:4px!important}.native-game .memory-album>.native-album-pane:not([hidden]){flex:1!important;min-height:0!important;max-height:none!important;height:auto!important;overflow:auto!important;margin:0!important;scrollbar-width:thin}.native-game .memory-album>.memory-grid:not([hidden]){display:grid!important;align-content:stretch}.native-game .memory-grid .memory-card{min-height:120px}.native-game .friend-collection-grid{padding-bottom:8px}
@media(orientation:landscape) and (max-height:350px){.native-game #view>.compact-friend-picker{gap:3px}}
.native-game #view>.result{display:flex!important;gap:7px;justify-content:flex-start;overflow:hidden}.native-game .result>h1{font-size:20px;line-height:1.25;margin:0}.native-game .result>p{display:none}.native-game .result>.result-friends{flex:1;width:100%;height:auto!important;min-height:85px!important;max-height:none!important;margin:0}.native-game .result>.reward{flex:none;font-size:22px;line-height:1.3}.native-game .result>.result-actions{flex:none;gap:6px}.native-game .result>.result-actions button{font-size:12px;min-height:44px;padding:6px 10px}.native-game .result>#result-parent{flex:none;min-height:40px;margin:0;font-size:11px;padding:5px 10px}
@media(orientation:landscape){.native-game #view>.result{display:grid!important;grid-template-columns:minmax(0,1.3fr) minmax(230px,1fr);grid-template-rows:auto auto minmax(0,1fr) auto;gap:7px 12px;align-items:center}.native-game .result>.result-friends{grid-column:1;grid-row:1/5;width:100%;height:100%!important;min-height:0!important}.native-game .result>h1{grid-column:2;grid-row:1;font-size:18px}.native-game .result>.reward{grid-column:2;grid-row:2}.native-game .result>.result-actions{grid-column:2;grid-row:3;align-self:center;display:grid;grid-template-columns:1fr 1fr;gap:7px}.native-game .result-actions>#return-town{grid-column:1/3}.native-game .result>#result-parent{grid-column:2;grid-row:4}}
.native-game .song-picker>details{padding:0!important;margin:0!important;flex:none;min-height:40px}.native-game .song-picker>details>summary{min-height:40px;padding:8px!important;font-size:12px!important}.native-game .song-picker>p:not(#start-error){display:none}.native-game .song-picker>.page-controls{margin:0;min-height:40px}.native-game .song-picker>#back-pick{min-height:40px;padding:5px 10px;font-size:12px}
.native-game .song-picker>.arrangement-panel[open]{max-height:65%;overflow:auto}.native-game .arrangement-panel>summary{position:sticky;top:0;background:#fff9ef;z-index:2}
@media(orientation:landscape){.native-game .song-list{align-items:stretch!important}.native-game .song-list .song-card{display:grid!important;grid-template-columns:28px minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;grid-template-areas:'icon title' 'action action';gap:5px 6px;min-height:88px!important;height:auto;flex:none;padding:7px!important}.native-game .song-list .song-card>span{grid-area:icon;font-size:23px;align-self:center}.native-game .song-list .song-card>b{grid-area:title;font-size:12px;text-align:left;align-self:center;line-height:1.3}.native-game .song-list .song-card>small{display:none}.native-game .song-list .song-card>strong{grid-area:action;font-size:10px;padding:5px;line-height:1.3}}

/* A compact shell still needs complete labels and real touch targets. */
.native-game .scene-tabs{min-height:52px;max-height:none!important;height:auto!important;align-items:stretch!important}
.native-game .scene-tabs>.scene-tab{min-height:44px!important;max-height:none!important;height:auto!important;white-space:normal;overflow-wrap:normal;flex-shrink:0}
.native-game .native-settings-open,.native-game .native-close{min-height:44px!important;min-width:44px!important;flex-shrink:0}
.native-game .song-picker>details>summary,.native-game .song-picker>#back-pick,.native-game .concert-goals-open,.native-game .home-tabs button,.native-game .garden-actions button,.native-game .next-activity-card button{min-height:44px!important}
.native-game .home-tabs{align-items:stretch;justify-content:flex-start!important;min-height:48px;scroll-padding-inline:6px}
.native-game .home-tabs>button{flex:0 0 auto!important;width:auto!important;min-width:64px!important;max-width:none;min-height:44px!important;height:auto!important;padding:6px 10px!important;white-space:nowrap;overflow:visible}
.native-game .home-play button,.native-game .care-empty>button{min-height:44px!important;height:auto!important}
.native-game .home-action-rail{padding:0!important;margin:0!important;flex:none}
.native-game .home-action-rail button{margin:0!important}
.native-game .shop-panel>.shop-return{position:static!important;inset:auto!important;flex:none;width:100%;height:auto;margin:0!important;z-index:auto}
.native-game .shop-return>button{width:100%!important;max-width:100%;height:auto!important;min-height:44px!important;min-width:44px;padding:7px 12px!important;font-size:12px!important;line-height:1.35;white-space:normal;overflow-wrap:normal}
.native-game .shop-return>button::before{display:none!important}
.native-game .shop-panel>.screen-pane,.native-game .shop-panel>.life-panel{align-self:stretch!important;width:100%!important;max-width:none!important;position:static!important;margin:0!important}
.native-game .shop-panel .food-grid,.native-game .shop-panel .furniture-catalog{width:100%!important;min-width:0;align-items:stretch!important;justify-content:stretch!important}
.native-game .world-controls :is(.world-zoom,.scene-zoom-slider){display:flex!important;align-items:center;flex:1 1 90px;min-width:0!important;width:auto!important;max-width:100%;gap:3px;padding:0 6px;font-size:10px;min-height:44px}
.native-game .world-controls :is(.world-zoom,.scene-zoom-slider)>:is(span,small){flex:none;line-height:1.2}
.native-game .world-controls :is(.world-zoom,.scene-zoom-slider) input{flex:1 1 0;min-width:24px!important;width:0!important;max-width:100%;height:44px!important;margin:0}
.native-game .native-map-tools{position:static!important;inset:auto!important;display:flex!important;flex-direction:row!important;justify-content:flex-end;flex:none;width:100%!important;min-height:44px!important;height:auto!important;margin:0!important;padding:0!important;gap:6px!important}
.native-game .home-preview>.native-scene-tools,.native-game .garden-friend>.native-scene-tools{top:8px!important;right:8px!important;bottom:auto!important;width:auto!important;flex-direction:row!important}
.native-game .home-options>.native-room-pane>.room-controls{flex:none;min-height:44px}
.native-game .home-play button{font-size:11px!important;line-height:1.3;padding:5px!important;overflow-wrap:normal}
@media(orientation:portrait) and (min-height:540px) and (max-height:700px){.native-game .home-content{grid-template-rows:minmax(100px,1fr) minmax(202px,1.3fr)!important}.native-game .home-options>.screen-pane:not([hidden]){flex:1;min-height:0;max-height:none;overflow:auto}}
.native-game .shop-world>.native-scene-tools{top:auto!important;bottom:8px!important;right:8px!important;width:auto!important;flex-direction:row!important}
.native-game .memory-grid{grid-template-rows:none!important;grid-auto-rows:max-content!important;align-content:start!important;align-items:start!important}
.native-game .memory-card{height:auto!important;min-height:max-content!important;max-height:none!important;min-width:0}
.native-game .memory-card>*{flex-shrink:0;max-width:100%}
.native-game .memory-stamps{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px!important;width:100%;min-width:0}
.native-game .memory-stamps>span{min-width:0!important;width:100%!important;min-height:62px!important;height:auto!important;gap:3px;aspect-ratio:auto}
.native-game .memory-stamps small{font-size:10px!important;line-height:1.3!important;white-space:normal;overflow-wrap:normal;max-width:100%}
.native-game .town .next-activity-card{position:static!important;inset:auto!important;max-width:none!important;width:100%}
.native-game .friend-grid{align-content:start!important;grid-template-rows:none!important;grid-auto-rows:minmax(100px,auto)!important}
.native-game .friend-grid .friend-card{min-height:100px!important;min-width:0;width:100%;height:auto}
@media(orientation:landscape){
 .native-game #view>.compact-friend-picker:not([hidden]){display:grid!important;grid-template-columns:minmax(0,1.6fr) minmax(180px,.8fr);grid-template-rows:auto minmax(0,1fr) auto auto;gap:6px 10px!important;align-items:start}
 .native-game .compact-friend-picker>.eyebrow{display:none!important}
 .native-game .compact-friend-picker>.ensemble-counts{grid-column:2;grid-row:1;flex-wrap:wrap}
 .native-game .compact-friend-picker>p{grid-column:2;grid-row:2;align-self:start;min-width:0}
 .native-game .compact-friend-picker>.concert-goals-open{grid-column:2;grid-row:3;width:100%;margin:0}
 .native-game .compact-friend-picker>.friend-grid{grid-column:1;grid-row:1/4;width:100%;height:100%;min-height:100px!important;align-self:stretch}
 .native-game .compact-friend-picker>.page-controls{grid-column:1;grid-row:4;align-self:end;margin:0}
 .native-game .compact-friend-picker>.selection-bottom{grid-column:2;grid-row:4;flex-direction:column;align-items:stretch;gap:3px;min-height:0;margin:0!important}
 .native-game .compact-friend-picker .selection-bottom p{width:100%;max-width:none!important;flex:none;line-height:1.25}
 .native-game .compact-friend-picker #choose-song{flex:none;width:100%;min-height:44px!important;padding:5px;font-size:12px}
 .native-game .friend-grid .friend-card{display:grid!important;grid-template-columns:minmax(45px,.8fr) minmax(0,1fr);grid-template-rows:auto auto;align-content:center;gap:3px 6px;position:relative}
 .native-game .friend-grid .friend-model-preview{grid-column:1;grid-row:1/3;min-width:0;width:100%;height:100%!important;min-height:64px}
 .native-game .friend-grid .friend-card>b{grid-column:2;grid-row:1;align-self:end;min-width:0;overflow-wrap:normal}
 .native-game .friend-grid .friend-card>small{grid-column:2;grid-row:2;align-self:start;min-width:0;overflow-wrap:normal}
 .native-game .friend-grid .friend-card>.check{position:absolute;right:4px;top:4px;width:22px;height:22px;font-size:12px}
}
@media(orientation:landscape) and (max-height:450px){
 .native-game .home-content{grid-template-columns:minmax(120px,1fr) minmax(280px,1fr)!important}
 .native-game .home-action-rail button{min-height:48px!important;padding:4px 8px!important}
 .native-game .home-action-rail button>span{font-size:26px!important;line-height:1;height:28px}
 .native-game .home-action-rail button>b,.native-game .home-action-rail button>small{line-height:1.25}
}
@media(orientation:landscape){
 .native-game .shop-panel:has(>.shop-world){display:grid!important;grid-template-columns:minmax(150px,.8fr) minmax(0,1.4fr);grid-template-rows:auto minmax(0,1fr) auto;gap:6px 10px}
 .native-game .shop-panel:has(>.shop-world)>.shop-return{grid-column:1/-1;grid-row:1}
 .native-game .shop-panel>.shop-world{grid-column:1;grid-row:2/4;min-height:80px!important;height:100%!important;align-self:stretch;margin:0!important}
 .native-game .shop-panel:has(>.shop-world)>.screen-pane{grid-column:2;grid-row:2;min-height:0;overflow:auto!important}
 .native-game .shop-panel:has(>.shop-world)>#action-message{grid-column:2;grid-row:3}
 .native-game .shop-panel .product-pick{min-height:100px!important;height:auto!important}
}
