:root{--phone-safe:env(safe-area-inset-bottom,0px)}
.phoneStage{display:flex;align-items:center;justify-content:space-between;margin:18px 0 10px;color:#3b5436}.phoneStage>span{color:#725f2a;font-weight:800}.phoneStages{display:flex;gap:5px;align-items:center;justify-content:center;margin-bottom:14px}.phoneStages .stageCoin{display:none}.phoneObjectives .pictureQuest{min-height:44px;color:#3c5337;border-color:#86967444}.phoneObjectives .pictureQuest small{color:#65705b;font-size:12px}.phoneObjectives .questHint{display:block;color:#586449;font-size:12px}.phoneMenu{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:20px}.phoneMenu button{display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 6px;font-size:13px;min-height:52px}.phoneJournal h2{font-size:22px}
@media(max-width:699px), (max-width:1000px) and (max-height:550px){
 #hud{padding:0;background:linear-gradient(0deg,#172a25d9,transparent 188px);padding-bottom:env(safe-area-inset-bottom,0px)}
 #hud header{position:absolute;top:max(7px,env(safe-area-inset-top));right:max(10px,env(safe-area-inset-right));height:40px;gap:0;z-index:2}
 #hud .brand{display:none!important}.stats{height:38px;gap:3px;padding:2px 4px;border-width:1px;box-shadow:0 2px 4px #15271e44}.stats>span:first-child,#sound,#fullscreen{display:none!important}.stats .coin{display:flex;align-items:center;gap:3px;border:0;padding:2px 5px;font-size:12px}.stats #settings{width:38px;height:34px;font-size:23px;border:0;background:transparent}
 #hud .region{top:max(11px,calc(env(safe-area-inset-top) + 4px));left:max(12px,env(safe-area-inset-left));right:auto;transform:none;text-align:left;max-width:calc(100vw - 140px);height:30px;white-space:nowrap;overflow:hidden}.region #regionName{font-size:14px;letter-spacing:1px;line-height:28px}.region small,#routeStrip,#hud .quest,#clickHint,#hud .saveTag{display:none!important}
 #hud #autoRun{top:auto;bottom:calc(127px + env(safe-area-inset-bottom));left:12px;right:12px;width:auto;min-height:44px;height:44px;padding:5px 12px;border-width:2px;display:grid;grid-template-columns:27px 1fr;align-items:center;text-align:center;gap:0;box-shadow:inset -2px -2px #536d3d,0 3px #253f2b}
 #autoRun>span{grid-row:auto;font-size:23px}#autoRun>b{font-size:16px;margin-right:27px}#autoRun>small{display:none!important}.inCombat #hud #autoRun{display:none!important}
 #hud footer{left:10px;right:10px;bottom:calc(8px + env(safe-area-inset-bottom));transform:none;width:auto;z-index:18}
 #hud .mcQuickbar{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px!important;padding:4px!important;border-width:2px!important}
 #hud .mcQuickbar button{min-height:58px;height:58px!important;border-width:2px!important}#hud .mcQuickbar small{font-size:10px!important;line-height:14px}#hud .mcQuickbar .itemIcon{height:30px!important}.mcQuickbar .atlasIcon{--icon:28px!important}#hud .mcQuickbar button b{font-size:10px!important}
 #hud #pickTool,#hud #potionButton,#hud #armorButton,#hud #map{display:none!important}
 #hud #vitalHUD{left:12px;right:12px;width:auto;transform:none;bottom:calc(84px + env(safe-area-inset-bottom));z-index:18}.vitalRow{gap:16px;margin-bottom:4px}.vitalRow canvas{width:44%;height:auto;max-width:190px}#xpRail{height:8px;border-width:2px}#xpRail b{font-size:13px;line-height:18px;bottom:-1px}
 #hud #toast{top:auto;bottom:calc(183px + env(safe-area-inset-bottom));left:50%;right:auto;max-width:calc(100vw - 24px);width:max-content;max-height:48px;padding:7px 11px;font-size:11px;line-height:16px;overflow:hidden;z-index:6}
 #hud #dangerBanner{top:auto;bottom:calc(183px + env(safe-area-inset-bottom));left:50%;right:auto;transform:translateX(-50%);max-width:calc(100vw - 24px);font-size:10px;padding:6px 10px;white-space:nowrap}.inCombat #hud #dangerBanner,.inCombat #hud #toast{display:none!important}
 .overlay{padding:10px max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))}.panel{max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:24px 17px}.phoneMenu{gap:8px}.phoneStages .stagePip{font-size:11px}.phoneStages i{font-size:13px}
 .questionWrap{inset:auto 8px calc(123px + env(safe-area-inset-bottom)) 8px;width:auto;height:clamp(252px,40dvh,320px);padding:0}.questionCard{height:100%;min-height:0;max-height:none}
 .questionTop{top:7px;left:10px;right:10px;height:30px}.questionTop #battleTag{font-size:10px}.questionTop #leaveQuestion{min-width:62px;min-height:28px;padding:3px 5px}.questionCard #battleProgress{top:42px;left:10px;right:10px;height:16px;font-size:9px}.questionCard h2{top:61px;left:10px;right:10px;height:28px;line-height:28px;font-size:20px}.questionCard #questionVisual{top:95px;left:10px;right:10px;height:calc(100% - 204px);min-height:48px;max-height:116px;padding:3px}.questionCard #answers{bottom:47px;left:10px;right:10px;height:48px;gap:7px}.questionCard #answers button{height:48px;min-height:48px;max-height:48px}.questionCard #answers button>span{font-size:27px}.questionCard #answerHint{bottom:7px;left:10px;right:10px;height:32px;min-height:32px;max-height:32px;font-size:10px;line-height:14px;padding:2px 4px}.countObjects{grid-template-columns:repeat(5,22px);gap:3px}.countObjects .atlasIcon{--icon:22px!important}.compareGroup{height:100%;max-height:94px}.numberTrain>span{min-height:36px;max-height:42px;min-width:39px;font-size:24px}
}
@media(max-width:1000px) and (max-height:550px) and (orientation:landscape){
 #hud{background:linear-gradient(0deg,#172a2566,transparent 150px)}#hud footer{right:auto;width:42vw}#hud #vitalHUD{right:auto;width:41.5vw}#hud #autoRun{left:12px;right:auto;width:41.5vw}#hud #toast,#hud #dangerBanner{left:22%;max-width:42vw}
 .questionWrap{left:auto;right:max(9px,env(safe-area-inset-right));bottom:max(10px,env(safe-area-inset-bottom));width:52vw;height:min(320px,calc(100dvh - 64px - env(safe-area-inset-top) - env(safe-area-inset-bottom)))}.questionCard{min-height:240px}.questionCard #questionVisual{height:calc(100% - 204px)}.phoneJournal{width:min(600px,100%)}.phoneObjectives{display:grid;grid-template-columns:1fr 1fr;gap:4px 15px}.phoneObjectives .questHint{grid-column:1/-1}.phoneMenu{grid-template-columns:repeat(3,1fr)}
}
