/* Fill the same visible viewport as the legacy game; preserve artwork proportions. */
html,body{margin:0;width:100%;height:100%;overflow:hidden}body{position:fixed;inset:0;display:block;background:#fffaf7}.desktop-note{display:none!important}
#phone{container-type:size;container-name:phone;position:fixed!important;left:var(--visible-left,0)!important;top:var(--visible-top,0)!important;width:var(--screen-width,402px)!important;min-width:0!important;max-width:none!important;height:var(--screen-height,874px)!important;min-height:0!important;max-height:none!important;margin:0!important;transform:scale(var(--screen-scale,1));transform-origin:top left;border-radius:0;overflow:hidden;box-shadow:none}
#app{padding-top:0!important}dialog{transform:scale(var(--screen-scale,1));width:350px;max-height:720px}#phone .page-room .header{padding-top:38px}#phone .page-room .room-tabs{top:87px}
@container phone (min-width:600px){.learning-content,.spirit-profile,.journey-course{max-width:800px;margin-inline:auto}.learning-illustration img{object-position:center 46%}.page-home .home-pet{left:calc(50% - 150px);width:300px}.page-space .space-preview{left:calc(50% - 111px)!important}.space-wardrobe{max-width:660px;margin-inline:auto}.page-kana .kana-content{max-width:760px;margin-inline:auto}}
.market-frame{width:100%!important;height:100%!important}
@container phone (min-width:600px){.page-home .home-pet{top:64%!important;height:23%!important}}
@media(min-width:501px){body{background:#eae5e2}#phone{border-radius:30px;box-shadow:0 16px 64px #48362926}}

/* Keep mobile browser text autosizing from overflowing fixed icon labels. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
dialog{max-width:calc(100% - 24px)}

/* Long holds belong to recording controls, never the browser's image callout. */
.voice-hold-control,.voice-hold-control *{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;touch-action:none}
.voice-hold-control>*{pointer-events:none}
.page-home img,.page-home canvas{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;pointer-events:none}
.pet-study{-webkit-touch-callout:none}
