/* Mobile UI v2: narrow, touch-friendly, existing game artwork */
@media(max-width:599px){
.mu-shell{display:block}.mu-top{height:42px;display:flex;align-items:center;gap:7px;padding:4px 8px;background:linear-gradient(180deg,#2c121a,#110e15);border:1px solid #63303c;color:#f0d09b;box-sizing:border-box}
.mu-top span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:700 13px Georgia,serif}.mu-top button{border:1px solid #81414c;background:#21131a;color:#ffdbb5;width:36px;height:34px;flex:none;font-size:19px}.mu-top a{position:relative;display:flex;align-items:center;justify-content:center;width:34px;height:34px;flex:none;border:1px solid #493343;background:#1b1720}.mu-top img{width:23px;height:23px;object-fit:contain}.mu-top b{position:absolute;right:-4px;top:-5px;background:#bc2634;color:#fff;border-radius:10px;padding:1px 4px;font-size:10px}
.mu-classic .mu-top,.mu-header .mu-top{display:none}
.header-panel.mu-header-header,.header-panel.mu-header-sidebar{padding:7px!important;background:linear-gradient(140deg,#211629,#11141b)!important;border:1px solid #4e3a65!important;border-radius:3px!important}
.header-panel.mu-header-header .hp-row,.header-panel.mu-header-sidebar .hp-row{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:6px!important}
.header-panel.mu-header-header .hp-avatar,.header-panel.mu-header-sidebar .hp-avatar{float:left;margin-right:9px}
.header-panel.mu-header-header .hp-row,.header-panel.mu-header-sidebar .hp-row{display:block!important}
.header-panel.mu-header-header .hp-info,.header-panel.mu-header-sidebar .hp-info{min-height:45px;padding-top:2px}
.header-panel.mu-header-header .hp-res,.header-panel.mu-header-sidebar .hp-res{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));max-width:none!important;width:100%;gap:4px;margin-top:7px;clear:both}
.header-panel.mu-header-header .hp-res-item,.header-panel.mu-header-sidebar .hp-res-item{height:34px;min-width:0;display:flex;justify-content:center;position:relative;padding:2px!important;font-size:12px!important;border:1px solid #49354e;background:#1b1825;border-radius:3px!important}
.header-panel.mu-header-header .hp-res-item img,.header-panel.mu-header-sidebar .hp-res-item img{width:19px!important;height:19px!important}
.header-panel.mu-header-header .hp-res-item .val,.header-panel.mu-header-sidebar .hp-res-item .val{overflow:hidden;text-overflow:ellipsis}
.header-panel.mu-header-header .hp-xp-panel,.header-panel.mu-header-sidebar .hp-xp-panel{margin-top:6px!important;padding:5px 7px!important}
.header-panel.mu-header-header .hp-xp-details,.header-panel.mu-header-sidebar .hp-xp-details{display:flex!important;font-size:9px!important}
.mu-backdrop{display:none;position:fixed;inset:0;background:#000b;z-index:99990}.mu-drawer{position:fixed;z-index:99991;top:0;bottom:0;left:0;width:min(290px,85vw);overflow-y:auto;overscroll-behavior:contain;transform:translateX(-105%);transition:transform .2s;background:#10141a;border-right:2px solid #9a3344;box-shadow:0 0 30px #000;color:#eee}.mu-shell.mu-opened .mu-backdrop{display:block}.mu-shell.mu-opened .mu-drawer{transform:translateX(0)}
.mu-drawer-head{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;background:#2b121b;color:#f1c887;font:700 15px Georgia,serif}.mu-drawer-head button{font-size:24px;background:none;border:0;color:#fff;min-width:35px;min-height:35px}.mu-player{display:flex;gap:10px;padding:10px;color:#f5d48c;text-decoration:none;align-items:center}.mu-player img{width:42px;height:42px;border:1px solid #a07b40;border-radius:50%;object-fit:cover}.mu-player small{display:block;color:#a9a6ac;margin-top:4px}.mu-links{padding-bottom:20px}.mu-links a{display:flex;align-items:center;gap:10px;padding:7px 12px;border-top:1px solid #2b3037;color:#e4dfd9;text-decoration:none;font-size:13px;min-height:33px}.mu-links a span{flex:1}.mu-links img{width:24px;height:24px;object-fit:contain;flex:none}.mu-count,.mu-ready{margin-left:auto;background:#b81e32;color:white;border-radius:3px;padding:3px 6px;font-size:10px;white-space:nowrap}.mu-ready{background:#347c3b}.mu-ready[hidden]{display:none!important}
}
@media(min-width:600px){.mu-shell{display:none}}.mu-shell:not(.mu-opened) .mu-backdrop{pointer-events:none}

/* v3: sidebar is a genuinely small HUD; no duplicated action tiles */
@media(max-width:599px){
.mu-top{height:39px;padding:3px 5px;gap:5px}
.mu-top span{font-size:12px}.mu-top a{width:29px;height:30px}.mu-top img{width:20px;height:20px}
.mu-top button{height:30px;width:33px}
.header-panel.mu-header-sidebar{padding:5px 7px!important}
.header-panel.mu-header-sidebar .hp-row{display:flex!important;flex-wrap:wrap;gap:4px!important;align-items:center}
.header-panel.mu-header-sidebar .hp-avatar{float:none!important;flex:0 0 31px;width:31px;height:31px;margin:0 3px 0 0!important}
.header-panel.mu-header-sidebar .hp-avatar img{width:31px;height:31px}
.header-panel.mu-header-sidebar .hp-avatar .lvl{min-width:16px;height:16px;line-height:13px;font-size:9px;bottom:-3px;right:-3px}
.header-panel.mu-header-sidebar .hp-info{flex:1 1 115px;min-height:0;padding:0}
.header-panel.mu-header-sidebar .hp-name{font-size:11px}
.header-panel.mu-header-sidebar .hp-sub{font-size:10px}
.header-panel.mu-header-sidebar .hp-power{font-size:10px}
.header-panel.mu-header-sidebar .hp-res{display:flex!important;flex:1 1 100%;clear:both;margin-top:2px;gap:3px;flex-wrap:nowrap;max-width:100%!important}
.header-panel.mu-header-sidebar .hp-res-item{height:25px;flex:1 1 0;min-width:0;font-size:11px!important;gap:3px}
.header-panel.mu-header-sidebar .hp-res-item img{height:15px!important;width:15px!important}
.header-panel.mu-header-sidebar .hp-res .hp-reward-shortcut{display:none!important}
.header-panel.mu-header-sidebar .hp-xp-panel{padding:4px 6px!important;margin-top:3px!important}
.header-panel.mu-header-sidebar .hp-xp-label{font-size:10px!important;margin-bottom:3px!important}
.header-panel.mu-header-sidebar .hp-xp-track{height:7px!important}
.header-panel.mu-header-sidebar .hp-xp-details{display:none!important}
.mu-drawer{width:min(275px,84vw)}.mu-links a{min-height:31px;padding:5px 10px}
.mu-links img{width:22px;height:22px}
.mu-setting-choice{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid #39303c;margin:6px 0;background:#17191e;border-radius:3px;font-size:13px;min-height:40px}
.mu-setting-choice input{margin:0;flex:none;accent-color:#c38a44}
.mu-setting-choice:has(input:checked){border-color:#b68a48;background:#261e19}
}

/* v4: sidebar mode - only menu/title, resources, XP; hide duplicated hero identity */
@media(max-width:599px){
 .header-panel.mu-header-sidebar .hp-avatar,
 .header-panel.mu-header-sidebar .hp-info,
 .header-panel.mu-header-sidebar .hp-sub,
 .header-panel.mu-header-sidebar .hp-power{display:none!important}
 .header-panel.mu-header-sidebar .hp-row{display:block!important}
 .header-panel.mu-header-sidebar .hp-res{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;width:100%!important;margin:0!important;gap:4px!important}
 .header-panel.mu-header-sidebar .hp-res-item{height:27px!important;min-height:0!important;padding:2px 3px!important;font-size:11px!important;justify-content:center!important}
 .header-panel.mu-header-sidebar .hp-res-item img{width:16px!important;height:16px!important}
 .header-panel.mu-header-sidebar .hp-xp-panel{margin-top:4px!important;padding:4px 6px!important}
 .header-panel.mu-header-sidebar .hp-xp-label{font-size:10px!important;margin-bottom:3px!important}
 .header-panel.mu-header-sidebar .hp-xp-track{height:7px!important}
 .header-panel.mu-header-sidebar .hp-xp-details{display:none!important}
 .mu-top{height:37px!important}
 .mu-top span{font-size:12px!important}
 .mu-drawer .mu-player{padding:7px 9px!important}
 .mu-drawer .mu-links a{padding:5px 10px!important;min-height:30px!important}
 .mu-setting-choice{display:flex!important;flex-direction:row!important;align-items:center!important;gap:10px!important;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;white-space:normal!important;overflow-wrap:anywhere!important;padding:10px!important;margin:6px 0!important}
 .mu-setting-choice input{flex:0 0 auto!important;position:static!important;width:17px!important;height:17px!important;margin:0!important}
 .mu-setting-choice span{display:block!important;flex:1 1 auto!important;min-width:0!important;width:auto!important;position:static!important;float:none!important;white-space:normal!important;overflow-wrap:anywhere!important}
 .mu-setting-panel{box-sizing:border-box!important;width:auto!important;max-width:100%!important;overflow:hidden!important}
}
