/* Full-viewport app. Only world artwork is uniformly scaled; HUD stays screen-sized. */
#game{position:fixed;inset:0;width:100%;height:100dvh;aspect-ratio:auto;transform:none}
#stage{width:1024px;height:1536px;top:50%;left:50%;transform:translate(-50%,-50%) scale(var(--scene-scale,.419921875));transform-origin:center;isolation:isolate;z-index:1}
.map{width:1024px;height:1536px;object-fit:contain}
#world{position:absolute;inset:0;z-index:2;pointer-events:none}
.ambient-guest{position:absolute;display:block;width:160px;height:160px;transform:translate(-50%,-150px);padding:0;border:0;background:none;pointer-events:auto;cursor:pointer;touch-action:manipulation}
.ambient-guest canvas{display:block;width:160px;height:160px;image-rendering:pixelated;pointer-events:none}
.ambient-name{position:absolute;top:152px;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:22px;line-height:1.3;color:#f2e3ce;padding:4px 9px;background:#21182ad9;border:1px solid #ccb18466;border-radius:3px;opacity:0;transition:opacity .2s;pointer-events:none}
.ambient-guest:is(:hover,:focus-visible) .ambient-name{opacity:1}
.ambient-guest:focus-visible{outline:3px solid #ebd09a;outline-offset:0;border-radius:8px}
.world-title{top:3.5%;z-index:3}
.world-title>span{font-size:22px;letter-spacing:6px}
.world-title h1{font-size:56px;margin:14px 0;letter-spacing:5px}
.world-title h1 i{font-size:25px}
.world-title p{font-size:32px;letter-spacing:10px}
.world-title small{font-size:26px}
.couple-hotspot{top:28%;height:14%;z-index:3}
.couple-hotspot span{font-size:24px;padding:3px 14px}
.couple-hotspot b{font-size:21px;padding:3px 12px}
.sprite canvas{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}
.game-hint{bottom:110px}
.write-action{width:72px;height:72px;bottom:145px}
@media(max-width:700px){.game-hint{bottom:96px}.event-badge{top:76px}.write-action{bottom:140px}}
@media(prefers-reduced-motion:reduce){.ambient-name{transition:none}}
/* HUD anchors to the viewport, including device safe areas. */
#game .top-hud{top:max(12px,env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));gap:8px}
#game .map-badge{padding:6px 9px;gap:7px}
#game .map-badge b{font-size:12px}
#game .map-badge small{font-size:8px;letter-spacing:.5px}
#game .map-badge i{display:none}
#game .map-icon{font-size:23px}
#game .plain-link{padding:10px 9px;font-size:12px}
#game .icon-button{padding:10px 12px}
#game .event-badge{top:76px;right:12px;padding:5px 10px}
#game .event-badge span{font-size:22px}
#game .event-badge b{font-size:10px}
#game .dock{bottom:max(27px,env(safe-area-inset-bottom));width:calc(100% - 24px);max-width:480px;padding:5px}
#game .dock button{min-width:0;flex:1;min-height:55px;font-size:12px}
#game .write-action{width:72px;height:72px;right:18px;bottom:140px}
#game .write-action b{font-size:11px}
#game .game-hint{bottom:96px;font-size:10px}
#game .demo-label{bottom:7px;font-size:9px}
@media(max-width:360px){#game .map-badge b{font-size:10px}#game .plain-link{font-size:10px;padding-inline:7px}#game .map-badge{gap:4px;padding-inline:6px}#game .top-hud{gap:5px}}
