/* The room is the game surface; menus open away from the floor. */
body.landscape{background:#302939;color:#3d3046}
body.landscape:has(#room-panel:not([hidden])){overflow:hidden}
body.landscape .app-shell{max-width:1400px;margin:auto;padding:0 16px 62px}
body.landscape .app-header{height:36px;padding:4px 0;color:#fff5e4}
body.landscape .app-header a{color:inherit;font-size:14px}
body.landscape #room-panel{position:relative}
body.landscape .greeting{height:32px;margin:0;display:flex;align-items:center;color:#fff5e4}
body.landscape .greeting h1{font:600 14px system-ui;margin:0}
body.landscape .greeting p,.landscape .level-line,.landscape #xp,.landscape #trait-note,.landscape #save-note{display:none}
body.landscape .coin-pill{padding:4px 12px;font-size:12px;background:#fff2c8;color:#543e2a}
body.landscape .pet-room,body.landscape .pet-room.has-family{width:min(100%,calc((100dvh - 170px)*16/7));height:auto!important;min-height:0!important;aspect-ratio:16/7;margin:0 auto;border:4px solid #8c667e;border-radius:4px;background-size:100% 100%;overflow:hidden;touch-action:none}
body.landscape .pet-room:before{display:none}
body.landscape .pet-touch,body.landscape .has-family .pet-touch{position:absolute;width:6.67%;height:auto;aspect-ratio:1;bottom:auto!important;transform:translate(-50%,-86%)!important;translate:none!important;transition:none!important;animation:none!important;padding:0!important;border:0;background:none}
.pet-room[data-native=true] #pet-image,.pet-room[data-native=true] .room-friends img{display:none!important}
.native-pet{display:block;width:100%;height:100%;image-rendering:pixelated;filter:none!important;animation:none!important}
body.landscape .room-friends{position:absolute;inset:0;pointer-events:none;width:100%;height:100%;transform:none;animation:none}
body.landscape .room-friends button{position:absolute;width:6.67%;height:auto;aspect-ratio:1;transform:translate(-50%,-86%)!important;animation:none!important;transition:none!important;background:none;border:0;padding:0;pointer-events:auto}
.room-friends small{position:absolute;top:100%;left:50%;transform:translateX(-50%);font:9px system-ui;background:#fff6dc;padding:1px 4px;border-radius:3px;white-space:nowrap}
body.landscape .room-bed{width:13.33%;height:auto;aspect-ratio:64/40}
body.landscape .room-shelf{width:7%;height:auto}.room-shelf img{width:100%;height:auto}
body.landscape .bowl{width:5%;height:auto;cursor:pointer}
body.landscape .rug{width:22%;height:17%;opacity:.6}
body.landscape .speech{top:6%;left:50%;transform:translateX(-50%);font:12px system-ui;max-width:65%;padding:5px 10px;border:2px solid #70556e;background:#fff8e8;color:#4a3650;z-index:140;pointer-events:none;box-shadow:2px 2px #4c365033}
body.landscape .room-label{font:9px system-ui;bottom:4px;right:4px;left:auto}
body.landscape #accessory{font-size:14px;position:absolute;top:5%;left:40%}
body.landscape #placed-decor{pointer-events:none}.decor-item{pointer-events:auto;cursor:pointer}
body.landscape .decor-item{font-size:20px;width:6%;height:auto}
body.landscape .decor-item img{width:100%;height:auto;image-rendering:pixelated}
body.landscape .room-floor-toy{width:3.5%;height:auto;transform:translate(-50%,-50%);z-index:90}
.pet-room[data-playing=true] .decor-toy{visibility:hidden}
body.landscape .needs{position:absolute;top:3px;left:27%;right:17%;width:auto;display:flex;gap:12px;margin:0;color:#fff8e5}
body.landscape .needs>div{flex:1}.needs label{font-size:9px!important}.needs progress{height:5px!important}
body.landscape .care-actions{position:static;width:auto;display:flex;justify-content:center;gap:6px;margin:6px 0}
body.landscape .care-actions button{min-height:32px;padding:4px 14px;font:12px system-ui;display:flex;align-items:center;gap:5px;border-radius:5px;background:#fff1d6;color:#543c50}.care-actions small{display:none!important}
body.landscape .care-actions span{font-size:15px}
body.landscape .room-tools{position:fixed;right:12px;top:4px;margin:0;display:flex;gap:4px;z-index:12}
body.landscape .room-tools button{font:10px system-ui;padding:5px 7px;min-height:26px;border-radius:4px}
body.landscape .little-actions{display:flex;justify-content:center;margin:2px;gap:5px}.little-actions button{font-size:10px;padding:4px 9px}
body.landscape #toy-adventure{display:none}
body.landscape .bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);height:46px;width:100%;max-width:none;display:flex;justify-content:center;gap:8px;padding:3px;background:#fff3dc;border-top:3px solid #8c667e}
body.landscape .bottom-nav button{min-width:54px;padding:2px 9px;font-size:10px}.bottom-nav span{font-size:15px!important}
body.landscape .tab-panel:not(#room-panel){background:#fff8ed;min-height:calc(100dvh - 100px);padding:20px;border-radius:8px}
body.landscape #decor-editor{position:fixed;z-index:160;right:8px;top:50px;bottom:55px;width:280px;margin:0;overflow:auto;padding:14px;box-shadow:0 8px 30px #0006}
.room-editing #pet-room{position:relative!important;top:auto!important}
@media(max-width:650px){body.landscape .app-shell{padding-left:5px;padding-right:5px}body.landscape .needs{left:35%;right:17%;gap:4px}.room-tools button{font-size:9px!important;padding:4px!important}.app-header .wordmark{font-size:10px!important}body.landscape .pet-room{width:100%}body.landscape .bottom-nav{gap:0}.bottom-nav button{min-width:45px!important;padding:2px 5px!important}}
@media(orientation:portrait){body.landscape:has(#room-panel:not([hidden])){overflow:auto}body.landscape .needs{position:static;margin:5px 0;color:#fff}body.landscape .room-tools{position:static;flex-wrap:wrap;margin:5px 0}body.landscape .pet-room{min-height:210px!important;aspect-ratio:16/10}.pet-room .pet-touch{width:12%!important}}
body.landscape .app-shell{background:transparent;box-shadow:none}
body.landscape #speech{position:absolute;inset:6% auto auto 50%;width:max-content;max-width:65%;transform:translateX(-50%);margin:0;line-height:1.3;min-height:0}
body.landscape .app-header .install-trigger{display:none}
body.landscape .little-actions button{flex:0 1 auto;background:#eee0c9;border:1px solid #9a748c;border-radius:4px}
body.landscape .needs label{display:flex;justify-content:space-between;color:#fff3dc}
body.landscape .room-friends{z-index:100}
body.landscape .room-bed,body.landscape .bowl{z-index:10}
body.landscape #room-panel .room-shelf{z-index:10}
body.landscape #pet-room .speech:after{display:none}
body.landscape .pet-room,body.landscape .pet-room.has-family{width:min(100%,calc((100dvh - 162px)*16/7))}
body.landscape .room-controls{display:flex;justify-content:center;align-items:center;gap:10px;min-height:44px}
body.landscape .care-actions{margin:4px 0}
body.landscape .care-actions button{flex-direction:row;min-height:36px;padding:5px 10px}
body.landscape .room-controls .little-actions{margin:0;gap:5px}
body.landscape .room-controls .little-actions button{min-height:36px;padding:5px 8px}
@media(max-width:650px){body.landscape .room-controls{gap:5px;flex-wrap:wrap}body.landscape .needs{left:28%;right:20%}body.landscape .room-controls button{font-size:10px;padding:4px 7px}}
@media(orientation:portrait){body.landscape .needs{position:static}body.landscape .pet-room{width:100%}body.landscape .room-controls{flex-wrap:wrap}}
.game-native-pet{position:absolute;z-index:2;width:72px;height:72px;image-rendering:pixelated;pointer-events:none}
.pet-room[data-native=true] .decor-toy{animation:none!important}
body.landscape:has(#room-panel:not([hidden])) .app-shell{padding:0 16px 62px}
@media(orientation:landscape) and (max-height:550px){
 body.landscape #petgame-dialog{width:min(94vw,900px);max-width:900px;padding:14px 20px;border-radius:16px}
 #petgame-dialog .eyebrow{display:none}
 #petgame-dialog h2{font-size:24px;margin:0 0 6px}
 #petgame-dialog .hunt-stats{font-size:12px}
 #petgame-dialog #petgame-help{min-height:0;margin:5px 0;line-height:1.3}
 #petgame-dialog #petgame-stage{height:calc(100dvh - 150px);min-height:100px;margin:8px 0 0;border-radius:14px}
 .game-native-pet{width:56px;height:56px}
}
