/* Keep map gestures clear; the ATS action lives beside its settings. */
#er-tile-coordinate{display:none!important;}
html.er-mobile{--mobile-nav:44px!important;--mobile-dock:94px!important;--mobile-safe:0px!important;}
html.er-mobile #gameScreen .arena{bottom:calc(var(--mobile-dock) + var(--mobile-nav))!important;}
html.er-mobile #gameScreen .mobile-dock{bottom:var(--mobile-nav)!important;height:var(--mobile-dock)!important;min-height:var(--mobile-dock)!important;max-height:var(--mobile-dock)!important;padding:5px 8px 4px!important;gap:5px!important;justify-content:space-between!important;box-sizing:border-box!important;}
html.er-mobile #gameScreen .mobile-loot{bottom:calc(var(--mobile-dock) + var(--mobile-nav) + 4px)!important;}
html.er-mobile #gameScreen #er-combat-sound{bottom:calc(var(--mobile-dock) + var(--mobile-nav) + 144px)!important;}
html.er-mobile #gameScreen:has(.mobile-loot:not(.er411-chat-open)) #er-combat-sound{bottom:calc(var(--mobile-dock) + var(--mobile-nav) + 108px)!important;}
html.er-mobile #gameScreen .mobile-run{display:grid;grid-template-columns:minmax(0,1fr) 48px 48px 62px;grid-template-rows:28px 12px;gap:0 5px;height:40px!important;flex:0 0 40px!important;align-items:center;margin:0!important;}
html.er-mobile #gameScreen .mobile-run>div:not(.mobile-ats){display:contents;padding:0;}
html.er-mobile #gameScreen .mobile-run>div::before{display:none;}
html.er-mobile #gameScreen .mobile-run-heading{grid-column:1;grid-row:1;flex-wrap:nowrap;justify-content:flex-start;gap:6px;min-width:0;font-size:12px;}
html.er-mobile #gameScreen .mobile-run-heading::before{content:'';width:6px;height:6px;flex:0 0 6px;background:#777;border-radius:50%;}
html.er-mobile #gameScreen .mobile-run[data-running=true] .mobile-run-heading::before{background:#8ede59;box-shadow:0 0 5px #9fee67;}
html.er-mobile #gameScreen .mobile-run small{grid-column:1/-1;grid-row:2;font-size:11px;line-height:12px;white-space:nowrap;}
html.er-mobile #gameScreen .mobile-run>.mobile-ats{display:block;grid-column:3;grid-row:1;position:static!important;inset:auto!important;transform:none!important;width:48px!important;min-width:0!important;height:28px!important;min-height:28px!important;margin:0;padding:0;border:2px ridge #b99a64;border-radius:7px;background:radial-gradient(circle at 35% 30%,#6e7158,#2d3335 65%);color:#ecd6ac;font:bold 12px/1.05 Georgia,serif;box-shadow:inset 0 0 0 1px #15191b;white-space:pre-line;touch-action:manipulation;}
html.er-mobile #gameScreen .mobile-run>.mobile-ats[data-running=true]{background:radial-gradient(circle at 35% 30%,#a64e3e,#4b1a19 65%);}
html.er-mobile #gameScreen .mobile-run>.mobile-ats[hidden]{display:none!important;}
html.er-mobile #gameScreen .mobile-run>.mobile-pvp{display:block;grid-column:2;grid-row:1;width:48px;min-width:0;min-height:28px;height:28px;margin:0;padding:0;border:2px ridge #777;border-radius:7px;background:linear-gradient(#565b5d,#272b2d);color:#9ca3a6;font:bold 13px Georgia,serif;touch-action:manipulation;}
html.er-mobile #gameScreen .mobile-run>.mobile-pvp.is-active{border-color:#f1cb70;background:radial-gradient(circle at 35% 30%,#e2a232,#6b271d 68%);color:#fff1b6;box-shadow:0 0 8px #ffb62e99,inset 0 0 0 1px #25140d;}
html.er-mobile #gameScreen .mobile-run>.mobile-ats-settings{grid-column:4;grid-row:1;width:62px;min-height:28px;height:28px;margin:0;padding:2px 4px;font-size:11px;}
html.er-mobile #gameScreen .mobile-quick{height:39px!important;min-height:39px!important;flex:0 0 39px!important;margin:0!important;}
html.er-mobile #gameScreen .mobile-quick button{height:39px!important;min-height:39px!important;padding:2px 4px!important;}
html.er-mobile #gameScreen .mobile-quick img{width:26px;height:26px;}
html.er-mobile #gameScreen .mobile-nav{bottom:0!important;height:44px!important;min-height:44px!important;padding-bottom:0!important;}
html.er-mobile #gameScreen .mobile-nav button{height:44px!important;min-height:44px!important;padding:2px 0!important;font-size:11px;}
html.er-mobile #gameScreen .mobile-nav button img,html.er-mobile #gameScreen .mobile-nav button svg{max-height:20px!important;width:auto!important;}
@media(max-height:520px){
 html.er-mobile{--mobile-nav:38px!important;--mobile-dock:74px!important;--mobile-safe:0px!important;}
 html.er-mobile #gameScreen .mobile-dock{bottom:var(--mobile-nav)!important;height:var(--mobile-dock)!important;padding:2px 8px 2px!important;gap:2px!important;}
 html.er-mobile #gameScreen .mobile-run{height:36px!important;flex-basis:36px!important;grid-template-rows:23px 13px;}
 html.er-mobile #gameScreen .mobile-run>.mobile-ats,html.er-mobile #gameScreen .mobile-run>.mobile-pvp,html.er-mobile #gameScreen .mobile-run>.mobile-ats-settings{height:23px!important;min-height:23px!important;font-size:10px;}
 html.er-mobile #gameScreen .mobile-run small{font-size:10px;line-height:13px;}
 html.er-mobile #gameScreen .mobile-quick{height:32px!important;flex-basis:32px!important;}
 html.er-mobile #gameScreen .mobile-quick img{width:24px;height:24px;}
}
