/* MEYDORA V16.34 — picture-first responsive HUD. No external images or layout dependencies. */
:root{--ux-ring:#78dac5;--ux-ink:#eaf6fc;--ux-panel:#092334eb}
/* Never place the full life-simulation panel on top of a map, phone, settings, or minigame. */
#qomLifeHud1627{top:calc(62px + env(safe-area-inset-top))!important;right:10px!important;width:186px!important;padding:5px 8px!important;border-radius:12px!important;box-sizing:border-box!important;z-index:102!important;max-height:min(38dvh,280px);overflow:auto;transition:opacity .18s ease}
#qomLifeHud1627 h3{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:5px!important;margin:0!important;font-size:11px!important;white-space:nowrap}
#qomLifeHud1627 #qomLifeToggle1634{width:33px;height:30px;flex:0 0 33px;color:#b4fff2;background:#0d4347;border:1px solid #65acaa;border-radius:9px;font-size:18px;cursor:pointer;touch-action:manipulation}
#qomLifeHud1627.life-collapsed1634 #qomLifeDetails1634{display:none!important}
#qomLifeHud1627 #qomLifeDetails1634{padding-top:6px}
#qomLifeHud1627 .lifeRow{grid-template-columns:50px 1fr 28px!important;gap:3px!important;margin-bottom:3px!important}
#qomLifeHud1627 .lifeName,#qomLifeHud1627 .lifeValue{font-size:9px!important}
body:has(#worldMapOverlay.open) #qomLifeHud1627,body:has(#qomMenu172:not([hidden])) #qomLifeHud1627,body:has(#qomPhonePanel:not([hidden])) #qomLifeHud1627,body:has(#qomFoodPanel1628:not([hidden])) #qomLifeHud1627,body:has(#storyPanel:not([hidden])) #qomLifeHud1627,body.qom-horror-playing1629 #qomLifeHud1627{display:none!important}
/* Visual, finger-size tiles for menu actions — retain accessible button labels. */
#qomMenu172 .qm-action-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important}
#qomMenu172 .qm-action{display:flex!important;flex-direction:column!important;gap:5px;align-items:center;justify-content:center;min-height:82px!important;padding:8px 3px!important;border-radius:15px!important;line-height:1.5!important}
#qomMenu172 .qm-action-illustration1634{display:grid;place-items:center;width:43px;height:43px;flex:0 0 43px;font-size:25px;background:linear-gradient(135deg,#1b8693,#254768);border:1px solid #b5f2df8a;border-radius:13px;box-shadow:0 5px 18px #00101c75}
#qomMenu172 .qm-action-caption1634{font-size:10px;line-height:1.5;overflow-wrap:anywhere;text-align:center}
#qomMenu172 .qm-tabs button{font-size:12px!important;min-height:47px!important;white-space:normal!important}
#qomMenu172 .qm-status-grid{gap:5px}
/* Map toolbar becomes a short row of recognizable picture buttons on touch displays. */
#mapTools button{touch-action:manipulation}
#qomMissionMapPanel1621 .qm-row i{font-style:normal;font-size:19px}
#qomMissionMapPanel1621 .qm-row{min-height:47px}
/* In the park mini-game the world matters more than overlapping UI panels. */
body.qom-horror-playing1629:before{opacity:.22!important;background:radial-gradient(ellipse at 52% 46%,transparent 42%,#100b1840 90%)!important;animation:none!important}
body.qom-horror-playing1629 #qomFoodOpen1628,body.qom-horror-playing1629 #qomPhoneLauncher191,body.qom-horror-playing1629 #qomMissionNav1621{display:none!important}
#qomHorrorHud1629{top:8px!important;left:8px!important;width:min(280px,calc(100vw - 16px))!important;max-height:min(59dvh,320px)!important;padding:8px 9px!important;box-shadow:0 5px 18px #0008!important;background:#071522e8!important}
#qomHorrorHud1629 header{padding-bottom:5px!important}
#qomHorrorHud1629 header small{display:none!important}
#qomHorrorHud1629 header b{font-size:11px!important}
#qomHorrorHud1629 #horrorTimer1629{font-size:19px!important}
#qomHorrorHud1629 .horrorTop{margin-top:5px!important}
#qomHorrorHud1629 #horrorObjective1629{margin:5px 0!important;padding:5px!important;line-height:1.4!important}
#qomHorrorHud1629 .horrorTarget{margin:4px 0!important;min-height:32px!important;padding:2px 6px!important}
#qomHorrorHud1629 .horrorActions button{min-height:37px!important}
#qomHorrorHud1629 .horrorMessage{margin:2px 0!important;min-height:0!important}
/* Icon launcher in the game world, not a wide brown banner over the speed HUD. */
#qomFoodOpen1628{top:calc(62px + env(safe-area-inset-top))!important;left:10px!important;max-width:48px!important;width:45px!important;height:45px!important;padding:0!important;border-radius:15px!important;font-size:23px!important;display:grid;place-items:center;overflow:hidden}
#qomFoodPanel1628 .qf-warning{font-size:11px}
#qomFoodPanel1628 .qf-venue{min-height:67px;text-align:center;align-items:center;justify-content:center}
#qomFoodPanel1628 .qf-venue strong{font-size:12px;line-height:1.6}
#qomFoodPanel1628 .qf-venue span{font-size:10px}
#qomFoodPanel1628 .qf-venue small{font-size:9px}
#qomFoodPanel1628 .qf-product{min-height:64px}
#qomFoodPanel1628 .qf-arrival1634{padding:18px 12px;border:1px dashed #e2b96a;border-radius:14px;background:#27444c;font-weight:750;color:#ffdfa3;font-size:13px;line-height:2}
#qomFoodPanel1628 .qf-product small{display:none}
#qomFoodPanel1628 .qf-bag{max-height:72px}
#qomFoodPanel1628 .qf-bag:has(.qf-empty){display:none}
/* Diegetic phone should occupy a compact part of a portrait mobile screen, leaving gameplay visible. */
#qomPhonePanel{pointer-events:none!important;align-items:flex-end!important;justify-content:flex-end!important;background:transparent!important;padding:12px!important}
#qomPhonePanel .qom-phone-shell{pointer-events:auto!important;width:min(300px,calc(100vw - 40px))!important;height:min(530px,calc(80dvh - 14px))!important;border-radius:29px!important;padding:4px!important;box-shadow:0 14px 42px #000c!important}
#qomPhonePanel .qp-display{border-radius:25px!important}
#qomPhonePanel .qp-home-top{min-height:101px!important;padding:5px!important}
#qomPhonePanel .qp-home-top h2{font-size:26px!important}
#qomPhonePanel .qp-weather-row{margin-top:5px!important}
#qomPhonePanel .qp-app-grid{gap:8px 4px!important;margin:5px 0 9px!important}
#qomPhonePanel .qp-app-icon{width:42px!important;height:42px!important;border-radius:13px!important}
#qomPhonePanel .qp-app-icon svg{width:23px!important;height:23px!important}
#qomPhonePanel .qp-app-button{font-size:9px!important;gap:3px!important}
#qomPhonePanel .qp-home-card{padding:7px!important}
#qomPhonePanel .qp-home-card strong{margin:2px 0!important}
#qomPhonePanel .qp-page{padding:5px 10px!important}
#qomPhonePanel .qp-statusbar{height:35px!important;padding:7px 14px 0!important}
#qomPhonePanel .qp-content{top:36px!important;bottom:44px!important}
#qomPhonePanel .qp-nav{height:42px!important}
#qomPhoneIncoming{max-width:min(320px,calc(100vw - 18px))!important;box-sizing:border-box;right:8px!important}
@media(max-width:700px){
 #qomLifeHud1627{top:calc(53px + env(safe-area-inset-top))!important;right:5px!important;width:132px!important}
 #qomLifeHud1627 h3{font-size:10px!important}
 #qomFoodOpen1628{top:calc(60px + env(safe-area-inset-top))!important;left:5px!important}
 #qomFoodPanel1628 .qf-toolbar{padding:6px!important}
 #qomFoodPanel1628 .qf-venues{grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:none!important;gap:4px!important}
 #qomFoodPanel1628 .qf-venue{padding:5px!important;min-height:56px!important}
 #qomFoodPanel1628 .qf-venue strong{font-size:10px!important}
 #qomFoodPanel1628 .qf-venue small{display:none}
 #qomFoodPanel1628 .qf-body{grid-template-rows:minmax(65px,24%) minmax(0,1fr)!important}
 #qomFoodPanel1628 .qf-shell header h2{font-size:14px!important}
 #qomFoodPanel1628 .qf-bag{max-height:65px!important}
 #worldMapPanel{overflow:auto!important;max-height:100dvh!important}
 #mapTools{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:5px!important;align-items:center!important}
 #mapTools button.btn{font-size:0!important;min-height:42px!important;min-width:0!important;padding:4px!important;border-radius:11px!important}
 #mapTools button.btn::before{font-size:21px!important}
 #mapZoomIn::before{content:'🔍+'}#mapZoomOut::before{content:'🔍−'}#mapLocate::before{content:'📍'}#mapHome::before{content:'🌆'}#mapNavigate::before{content:'🧭'}#mapTeleport::before{content:'⚡'}#mapClear::before{content:'✕'}#qomMissionMapShortcut1621::before{content:'🎯'}
 #mapZoomValue{font-size:10px!important;text-align:center}
 #mapDestination{grid-column:span 3!important;min-width:0!important;width:100%!important}
 #mapSelection{grid-column:span 2!important;max-width:100%!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #qomMenu172 .qm-action-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 #qomMenu172 .qm-action{min-height:74px!important}
 #qomMenu172 .qm-action-illustration1634{width:39px;height:39px;flex-basis:39px;font-size:23px}
}
@media(max-width:420px){#qomPhonePanel .qom-phone-shell{width:min(262px,72vw)!important;height:min(475px,72dvh)!important}#qomPhonePanel .qp-home-top{min-height:85px!important}#qomPhonePanel .qp-home-top h2{font-size:23px!important}#qomPhonePanel .qp-app-icon{width:38px!important;height:38px!important}}
@media(orientation:landscape) and (max-height:560px){
 #qomPhonePanel .qom-phone-shell{width:min(245px,31vw)!important;height:min(320px,calc(84dvh - 6px))!important}
 #qomPhonePanel .qp-home-top{min-height:62px!important;padding:0!important}
 #qomPhonePanel .qp-home-top h2{font-size:19px!important}
 #qomPhonePanel .qp-app-grid{gap:3px!important}
 #qomPhonePanel .qp-app-icon{width:30px!important;height:30px!important}
 #qomPhonePanel .qp-app-icon svg{width:17px!important;height:17px!important}
 #qomLifeHud1627{top:7px!important;right:6px!important}
 #qomHorrorHud1629{max-height:calc(100dvh - 14px)!important;width:min(238px,34vw)!important}
 #qomHorrorHud1629 .horrorBars{display:flex!important;flex-direction:column;gap:2px!important}
 #qomHorrorHud1629 #horrorObjective1629{font-size:9px!important}
 #qomFoodPanel1628 .qf-body{grid-template-columns:39% 1fr!important;grid-template-rows:minmax(0,1fr)!important}
 #qomFoodPanel1628 .qf-venues{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(prefers-reduced-motion:reduce){#qomPhonePanel .qom-phone-shell{animation:none!important}}
/* Do not let a second floating shortcut cover an active interface. */
body:has(#qomPhonePanel:not([hidden])) #qomFoodOpen1628,body:has(#worldMapOverlay.open) #qomFoodOpen1628,body:has(#qomMenu172:not([hidden])) #qomFoodOpen1628,body:has(#qomFoodPanel1628:not([hidden])) #qomPhoneLauncher191,body:has(#worldMapOverlay.open) #qomPhoneLauncher191,body:has(#qomMenu172:not([hidden])) #qomPhoneLauncher191{display:none!important}
