:root{color-scheme:dark;--wow-safe-top:max(env(safe-area-inset-top),var(--tg-content-safe-area-inset-top,0px));--wow-safe-left:max(env(safe-area-inset-left),var(--tg-content-safe-area-inset-left,0px));--wow-safe-right:max(env(safe-area-inset-right),var(--tg-content-safe-area-inset-right,0px));--wow-safe-bottom:max(env(safe-area-inset-bottom),var(--tg-content-safe-area-inset-bottom,0px));font-family:system-ui,-apple-system,sans-serif}
html,body{overscroll-behavior:none;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}button{font:inherit;touch-action:none;-webkit-tap-highlight-color:transparent}#wow-mobile{position:fixed;inset:0;z-index:10000;pointer-events:none;color:#f6ead8}#wow-mobile button{pointer-events:auto;color:inherit;border:1px solid #a3804c;background:linear-gradient(#292b32,#171a20);border-radius:14px;padding:12px 20px;min-height:48px;font-weight:650}#wow-mobile button:disabled{opacity:.5}#wow-mobile [hidden]{display:none!important}.wow-top{position:absolute;left:max(12px,var(--wow-safe-left));right:max(12px,var(--wow-safe-right));top:calc(var(--wow-safe-top) + 8px);display:flex;align-items:center;gap:8px}.wow-top>.wow-vitals{font-size:12px;padding:7px 10px;background:#111a;border-radius:8px;white-space:pre-line}.wow-top>button{margin-left:auto;padding:8px 14px!important;min-height:40px!important}.wow-stick{position:absolute;left:calc(max(18px,var(--wow-safe-left)) + 10px);bottom:calc(var(--wow-safe-bottom) + 18px);width:140px;height:140px;border:2px solid #d9bd8955;border-radius:50%;background:radial-gradient(#27344077,#16202c55);pointer-events:auto;touch-action:none;box-shadow:0 3px 24px #0007}.wow-stick-knob{position:absolute;width:62px;height:62px;left:39px;top:39px;border-radius:50%;background:radial-gradient(at 35% 25%,#c5d0d9aa,#667c91aa);box-shadow:0 2px 12px #0008;border:1px solid #ebf5ff88;will-change:transform}.wow-actions{position:absolute;right:calc(max(18px,var(--wow-safe-right)) + 10px);bottom:calc(var(--wow-safe-bottom) + 24px);display:flex;align-items:flex-end;gap:16px}.wow-actions .wow-skill{width:102px;height:102px;border-radius:50%!important;padding:8px!important;box-shadow:0 4px 22px #0008}.wow-actions .wow-jump{width:64px;height:64px;border-radius:50%!important;padding:6px!important;font-size:12px}.wow-panel{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;gap:14px;background:radial-gradient(ellipse at 50% 50%,#101b29,#05090e);padding:calc(var(--wow-safe-top) + 18px) max(22px,var(--wow-safe-right)) calc(var(--wow-safe-bottom) + 18px) max(22px,var(--wow-safe-left));pointer-events:auto;text-align:center}.wow-panel h1{font-family:Georgia,serif;font-weight:500;letter-spacing:.03em;font-size:clamp(26px,5vw,42px);margin:0;color:#e5c99a}.wow-panel p{max-width:520px;font-size:14px;color:#bac6d2;line-height:1.5;margin:0}.wow-panel small{color:#8796a7;font-size:11px;max-width:520px;white-space:pre-line}.wow-panel .wow-primary{background:linear-gradient(#536e88,#2c465d)!important;border-color:#9eb9d1!important;min-width:220px}.wow-cards{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:12px;background:#050910db;padding:calc(var(--wow-safe-top) + 40px) 18px calc(var(--wow-safe-bottom) + 18px);pointer-events:auto}.wow-card{width:min(29vw,260px);height:min(65vh,300px);text-align:left;display:flex;flex-direction:column;gap:14px;padding:18px!important;overflow:auto;touch-action:pan-y!important}.wow-card strong{font-family:Georgia,serif;font-size:19px;color:#dfbf86}.wow-card em{font-size:11px;font-style:normal;color:#a6bdcf}.wow-card span{font-size:13px;white-space:pre-line;font-weight:400;line-height:1.5}.wow-card-title{position:absolute;top:calc(var(--wow-safe-top) + 12px);font-family:Georgia,serif;font-size:22px}.wow-portrait{display:none;position:absolute;inset:0;background:#0b1321;place-content:center;text-align:center;pointer-events:auto;padding:28px}.wow-portrait p{max-width:300px;color:#bcc9d5;line-height:1.6}.wow-portrait strong{font-size:26px;color:#e5c99a}.wow-tools{display:flex;gap:8px;align-items:center}.wow-tools button{min-height:40px!important;padding:8px 12px!important;font-size:12px}.wow-status{position:absolute;left:50%;transform:translateX(-50%);bottom:calc(var(--wow-safe-bottom) + 10px);font-size:10px;color:#b4c4d688;background:#0004;border-radius:5px;padding:3px 8px;white-space:nowrap}.wow-error{color:#ffb8a5!important}
@media(orientation:portrait){#wow-mobile{z-index:10010}#benilla{visibility:hidden}.wow-portrait{display:grid;justify-items:center;z-index:40}.wow-portrait small{max-width:300px;color:#8796a7}.wow-stick{width:120px;height:120px}.wow-stick-knob{left:29px;top:29px}}
@media(max-height:430px){.wow-stick{width:120px;height:120px;bottom:calc(var(--wow-safe-bottom) + 10px)}.wow-stick-knob{left:29px;top:29px}.wow-panel{gap:9px}.wow-panel h1{font-size:28px}.wow-panel p{font-size:12px}.wow-actions{bottom:calc(var(--wow-safe-bottom) + 12px)}.wow-card{padding:12px!important;gap:8px}.wow-card strong{font-size:16px}.wow-card span{font-size:11px}}

#wenilla-boot{z-index:10001!important}#wenilla-prefetch{z-index:10002!important}

#wenilla-boot .title{font-size:clamp(32px,6vw,64px)!important}#wenilla-boot .by{margin:.8rem 0 1.4rem!important}

.wow-diagnostic{position:absolute;inset:0;z-index:30;background:#101824;display:flex;flex-direction:column;align-items:center;gap:12px;padding:calc(var(--wow-safe-top) + 12px) 20px calc(var(--wow-safe-bottom) + 12px);pointer-events:auto}.wow-diagnostic h2{font:20px Georgia,serif;margin:0;color:#e5c99a}.wow-diagnostic textarea{width:min(650px,90vw);flex:1;resize:none;background:#080f18;border:1px solid #47566a;border-radius:10px;padding:10px;color:#c7d5e5;font:11px monospace;user-select:text;-webkit-user-select:text;touch-action:pan-y}.wow-diagnostic div{display:flex;gap:10px}

#wow-stage{position:fixed;inset:0;display:grid;place-items:center;overflow:hidden;background:#000}
.wow-fixed-canvas #benilla{width:var(--wow-canvas-width)!important;height:var(--wow-canvas-height)!important;transform:scale(var(--wow-canvas-scale));transform-origin:center}
.wow-menu #benilla{visibility:hidden}

/* Phone HUD: stone and metal frames, health and XP, actual spell icons and ranks. */
.wow-fixed-canvas #benilla{min-width:0!important;min-height:0!important}
.wow-top{align-items:flex-start;gap:12px}.wow-unitframe{display:flex;align-items:center;width:214px;filter:drop-shadow(0 3px 3px #000)}
.wow-portrait-medallion{position:relative;z-index:1;width:58px;height:58px;flex-shrink:0;border-radius:50%;border:3px ridge #a99c7b;background:radial-gradient(#36546b,#111d2c);box-shadow:inset 0 0 0 2px #15120f,0 0 0 1px #1b160e}
.wow-portrait-medallion img{width:100%;height:100%;object-fit:cover;border-radius:50%;opacity:.9}.wow-level{position:absolute;left:-6px;bottom:-4px;display:grid;place-items:center;border:2px ridge #b4a079;border-radius:50%;width:23px;height:23px;background:#17150f;color:#f5d46d;text-shadow:1px 1px #000;font:700 12px Georgia,serif}
.wow-unit-body{flex:1;margin-left:-7px;padding:3px 5px 5px 10px;background:linear-gradient(#343533,#171715);border:3px ridge #a69b83;border-radius:0 5px 5px 0}
.wow-unit-name{font:600 11px Georgia,serif;color:#f1dda1;display:flex;justify-content:space-between;text-shadow:1px 1px #000}.wow-unit-name small{font:9px system-ui;color:#b4c2c7}
.wow-meter{position:relative;overflow:hidden;border:1px solid #070b06;box-shadow:inset 0 1px 3px #000;height:17px;background:#111b0f}
.wow-meter i{position:absolute;inset:0 auto 0 0;width:0;background:linear-gradient(#4fce46 0%,#248c29 48%,#16601e 51%,#258d29 100%);box-shadow:inset 0 1px #cbffa269;transition:width .15s linear}
.wow-meter b{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font:600 10px system-ui;text-shadow:1px 1px 2px #000,-1px -1px 2px #000}
.wow-shield{font-size:9px;color:#a3cbff;margin-top:1px}.wow-run-clock{margin-top:9px;color:#e0d1b1;background:#0d1014b0;border:1px solid #8b795f66;padding:4px 9px;border-radius:4px;font:11px system-ui;text-shadow:1px 1px #000;white-space:nowrap;max-width:38vw;min-width:0;overflow:hidden}.wow-run-clock::after{content:attr(data-boss-timer);display:block;margin-top:3px;color:#e8be6b;overflow:hidden;text-overflow:ellipsis}
.wow-loadout{position:absolute;left:50%;transform:translateX(-50%);bottom:calc(var(--wow-safe-bottom) + 8px);width:clamp(250px,40vw,390px);padding:5px 8px 7px;border:3px ridge #a2987d;border-radius:7px 7px 3px 3px;background:linear-gradient(#292d2cdd,#141615ee);box-shadow:0 4px 12px #000,inset 0 0 0 1px #0b0a07;pointer-events:auto}
.wow-ability-label{font:8px Georgia,serif;color:#cdbd8c;text-align:center;letter-spacing:.12em;margin-bottom:4px;text-shadow:1px 1px #000}
.wow-spells{display:flex;justify-content:center;gap:5px;min-height:37px}.wow-talents{display:flex;justify-content:center;gap:4px;position:absolute;bottom:calc(100% + 6px);left:0;right:0;pointer-events:none}
#wow-mobile .wow-slot{position:relative;padding:0;min-height:0;width:40px;height:40px;flex-shrink:0;border:2px ridge #b2a17c;border-radius:4px;box-shadow:0 1px 5px #000,inset 0 0 4px #000;background:radial-gradient(#446175,#152132);overflow:visible;pointer-events:auto}
.wow-slot img{position:absolute;inset:0;width:100%;height:100%;border-radius:2px}.wow-cooldown{position:absolute;left:0;right:0;bottom:0;background:#030912b3;pointer-events:none;border-radius:2px}
.wow-slot .wow-rank{position:absolute;right:-3px;bottom:-4px;min-width:12px;height:13px;display:grid;place-items:center;background:#171510;border:1px solid #b8a779;border-radius:2px;font:700 9px system-ui;color:#ffeb8e;text-shadow:1px 1px #000;z-index:1}
.wow-slot .wow-cd-number{position:absolute;inset:0;display:grid;place-items:center;font:700 14px system-ui;text-shadow:0 1px 3px #000;color:white}.wow-slot small{position:absolute;top:100%;margin-top:4px;left:50%;transform:translateX(-50%);font:8px system-ui;max-width:49px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#f2e8c7}
.wow-talents .wow-slot{width:23px!important;height:23px!important;border-width:1px!important}.wow-talents .wow-slot small{display:none}.wow-talents .wow-rank{font-size:8px;min-width:10px;height:10px}
.wow-experience{margin-top:17px;height:10px;border:1px solid #a79266;border-radius:2px;background:#151026}.wow-experience i{background:linear-gradient(#c48af4,#7d46ba 48%,#542d8e 52%,#8255be);box-shadow:inset 0 1px #d8b0ff}.wow-experience b{font-size:8px}
.wow-status{top:calc(var(--wow-safe-top) + 50px);bottom:auto;left:auto;right:max(12px,var(--wow-safe-right));transform:none;font-size:8px;padding:2px 5px}
.wow-top>button{background:linear-gradient(#4b4941,#242622)!important;border:2px ridge #b4a17b!important;border-radius:7px!important}
.wow-actions .wow-skill{background:radial-gradient(ellipse at 40% 30%,#426985c4,#142c43e0)!important;border:3px ridge #bdac7b!important;text-shadow:1px 1px #000;font-size:13px;width:86px;height:86px}.wow-actions .wow-jump{background:linear-gradient(#44473bc4,#171f1dda)!important;border:2px ridge #a4997b!important;width:58px;height:58px}
.wow-card{border:3px ridge #9f8c60!important;border-radius:5px!important;background:linear-gradient(140deg,#222d35f5,#10161ff5)!important;position:relative}.wow-card .wow-card-icon{width:36px;height:36px;border:2px ridge #c1a76e;border-radius:4px;align-self:flex-start;box-shadow:0 2px 8px #000}.wow-card strong{font-size:17px}.wow-card span{font-size:12px}.wow-card em{color:#a2e08e}
.wow-spell-detail{position:absolute;z-index:25;left:50%;top:50%;transform:translate(-50%,-50%);width:min(440px,70vw);max-height:70vh;overflow:auto;touch-action:pan-y;padding:18px 22px;background:linear-gradient(#15202b,#080d14);border:3px ridge #b4a47e;box-shadow:0 10px 40px #000;border-radius:5px;pointer-events:auto}.wow-spell-detail>img{width:44px;height:44px;float:left;margin:0 12px 8px 0;border:2px ridge #baa66c}.wow-spell-detail h2{font:20px Georgia,serif;color:#f2d387;margin:0 0 12px}.wow-spell-detail p{white-space:pre-line;font:13px/1.6 system-ui;color:#efdfb6}.wow-spell-detail button{font-size:12px}
@media(max-height:430px){.wow-unitframe{width:195px}.wow-portrait-medallion{width:47px;height:47px}.wow-loadout{width:clamp(245px,37vw,340px);bottom:calc(var(--wow-safe-bottom) + 5px);padding:4px 6px 5px}.wow-spells{gap:4px}.wow-spells .wow-slot{width:34px!important;height:34px!important}.wow-talents .wow-slot{width:21px!important;height:21px!important}.wow-card{height:min(70vh,290px)}.wow-card .wow-card-icon{width:29px;height:29px}.wow-card strong{font-size:15px}.wow-card span{font-size:11px;line-height:1.4}.wow-card{gap:7px}.wow-top .wow-run-clock{font-size:10px}.wow-status{top:calc(var(--wow-safe-top) + 51px)}}
@media(max-width:740px){.wow-loadout{width:230px}.wow-stick{width:100px;height:100px;left:max(12px,var(--wow-safe-left))}.wow-stick-knob{width:52px;height:52px;left:24px;top:24px}.wow-actions{gap:8px;right:max(12px,var(--wow-safe-right))}.wow-actions .wow-skill{width:70px;height:70px;font-size:11px}.wow-actions .wow-jump{width:48px;height:48px;font-size:10px}.wow-slot small{max-width:38px}}

/* Combat HUD: floating spells; the unit's passive buffs sit directly below its portrait. */
.wow-unitframe{position:relative}
.wow-unitframe .wow-talents{top:calc(100% + 7px);bottom:auto;left:0;right:auto;justify-content:flex-start;pointer-events:auto}
.wow-loadout{padding:0 4px 4px;border:0;border-radius:0;background:none;box-shadow:none;pointer-events:none;width:clamp(250px,36vw,360px)}
.wow-ability-label{color:#f0dfad;text-shadow:0 1px 3px #000,1px 0 2px #000;margin-bottom:5px}
.wow-spells{gap:9px;align-items:flex-start;justify-content:center;min-height:40px;pointer-events:none}
.wow-spells .wow-slot{box-shadow:0 2px 5px #000b;pointer-events:auto}
.wow-slot small{white-space:pre-line;overflow:visible;text-overflow:clip;text-align:center;width:43px;max-width:43px;line-height:1.05;font-size:7px;text-shadow:1px 1px 2px #000,-1px -1px 2px #000}
.wow-experience{margin-top:25px;pointer-events:none;box-shadow:0 1px 4px #000;opacity:.95}
.wow-unitframe .wow-talents .wow-slot{margin:0;padding:0!important;min-height:0!important;box-shadow:0 2px 4px #0009}
.wow-unitframe .wow-talents .wow-cd-number{display:none}
@media(max-height:430px){.wow-loadout{width:clamp(240px,35vw,330px);padding:0 4px 3px}.wow-spells{min-height:34px;gap:9px}.wow-experience{margin-top:24px}.wow-unitframe .wow-talents{top:calc(100% + 6px)}}
@media(max-width:740px){.wow-loadout{width:235px}.wow-spells{gap:6px}.wow-slot small{width:38px;max-width:38px;font-size:6.5px}}


/* Classic creation layout: faction banners, fixed icon grids and an open model stage. */
.wow-character-mode .wow-panel{visibility:hidden;pointer-events:none}
.wow-character-mode #benilla{visibility:visible}
.wow-character-screen{position:absolute;inset:0;z-index:32;display:flex;flex-direction:column;pointer-events:auto;box-sizing:border-box;padding:calc(var(--wow-safe-top) + 6px) max(12px,var(--wow-safe-right)) calc(var(--wow-safe-bottom) + 6px) max(12px,var(--wow-safe-left));overflow:hidden;background:linear-gradient(90deg,#080a0c33,transparent 30%,transparent 70%,#080a0c33)}
.wow-character-heading{height:42px;flex-shrink:0;text-align:center;pointer-events:none;text-shadow:0 2px 4px #000}
.wow-character-heading small{font:8px Georgia,serif;letter-spacing:.19em;color:#d4b15f}
.wow-character-heading h1{font:22px Georgia,serif;color:#f2d887;margin:1px 0 0;font-weight:400}
.wow-character-layout{display:grid;grid-template-columns:clamp(124px,18vw,190px) minmax(70px,1fr) clamp(188px,25vw,255px);gap:12px;flex:1;min-height:0}
.wow-character-left,.wow-character-right{box-sizing:border-box;min-height:0;border:3px ridge #8c8775;border-radius:3px;background:linear-gradient(110deg,#111211ed,#171611c9);box-shadow:inset 0 0 0 1px #080909,0 3px 8px #0008;padding:8px}
.wow-character-picks{display:grid;grid-template-rows:minmax(0,4.7fr) 27px minmax(0,3fr);gap:7px;overflow:hidden;touch-action:manipulation;contain:layout paint}
.wow-race-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;min-height:0}
.wow-faction-column{position:relative;display:grid;grid-template-rows:17px repeat(4,minmax(0,1fr));justify-items:center;gap:4px;min-height:0;padding-bottom:5px}
.wow-faction-column:before{content:'';position:absolute;inset:16px 0 0;z-index:0;background:linear-gradient(#315f93c7,#172d5bba);clip-path:polygon(0 0,100% 0,100% 100%,50% 92%,0 100%);border:1px solid #7e9ca95c}
.wow-faction-column.horde:before{background:linear-gradient(#992d25c7,#581b18b5);border-color:#c580555c}
.wow-character-screen h2{font:17px Georgia,serif;color:#efd076;margin:2px 0 6px;text-shadow:1px 1px #000}
.wow-faction-column h2{position:relative;z-index:1;margin:0;font:12px Georgia,serif;line-height:17px}
.wow-class-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));justify-items:center;gap:5px;min-height:0}
#wow-mobile .wow-pick{position:relative;z-index:1;box-sizing:border-box;display:block;height:100%;width:auto;aspect-ratio:1;max-height:48px;max-width:100%;padding:0!important;min-height:0!important;border:2px ridge #a4a694;border-radius:3px;background:#11191e;box-shadow:0 1px 3px #000;touch-action:manipulation}
#wow-mobile .wow-character-screen button[aria-pressed=true]{border-color:#f9d57b;box-shadow:0 0 0 1px #cf9c3e,inset 0 0 4px #fbd777,0 0 5px #f2bf5499;color:#ffe6a0}
#wow-mobile .wow-character-screen .wow-pick:disabled{opacity:.26}
.wow-create-icon{position:relative;display:block;width:100%;height:100%;overflow:hidden;border-radius:1px;background:#1a2531;pointer-events:none}
.wow-create-icon img{position:absolute;width:400%;height:400%;max-width:none;pointer-events:none}
.wow-pick-name{position:absolute;bottom:0;left:-5px;right:-5px;color:#ffdf69;font:8px/1 Georgia,serif;text-shadow:1px 1px #000,-1px -1px #000,0 1px 3px #000;text-align:center;white-space:nowrap;pointer-events:none;letter-spacing:-.1px}
.wow-character-gender{display:flex;justify-content:center;gap:5px;min-height:0}
#wow-mobile .wow-character-gender button{padding:2px!important;min-width:0;min-height:0!important;height:100%;border:2px ridge #9b9b86;border-radius:2px;font:10px Georgia,serif;flex:1;background:linear-gradient(#284563,#111c2a)}
.wow-character-right{display:flex;flex-direction:column;overflow:auto;touch-action:pan-y;overscroll-behavior:contain;scrollbar-width:thin;contain:layout paint}
.wow-character-caption{font:9px Georgia,serif;letter-spacing:.06em;color:#a9a89a;margin-bottom:6px}
.wow-character-screen p{font:12px/1.4 system-ui;color:#e0d6bd;margin:2px 0 11px}
.wow-character-screen .wow-character-rule{color:#bfb08b;font-size:10px;border-top:1px solid #776a424d;padding-top:7px;margin-top:2px}
.wow-character-zone{margin-top:auto;flex-shrink:0;border:2px ridge #b09b67;border-radius:2px;padding:7px 9px;background:linear-gradient(100deg,#7d542aa8,#4c361aaa);color:#ffdc70}
.wow-character-zone small{display:block;font:9px system-ui;color:#c7c5b7;margin-bottom:3px}
.wow-character-zone strong{font:16px Georgia,serif;text-shadow:1px 1px #000}
.wow-character-preview{position:relative;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;min-width:0;pointer-events:none}
.wow-preview-note{position:absolute;left:0;right:0;top:5px;color:#f1d997;font-size:10px;text-shadow:1px 1px #000;text-align:center}
.wow-character-name{display:block;width:min(220px,95%);color:#ead392;text-shadow:1px 1px #000;text-align:center;font:11px Georgia,serif;margin:0 0 2px;pointer-events:auto}
.wow-character-name input{display:block;box-sizing:border-box;width:100%;margin-top:5px;padding:6px 8px;color:#f9e3ac;border:2px ridge #9f9777;border-radius:2px;background:#0c111be8;user-select:text;-webkit-user-select:text;touch-action:manipulation;font:16px Georgia,serif;text-align:center;min-height:32px}
.wow-character-footer{flex-shrink:0;text-align:center;min-height:46px;padding-top:3px}
.wow-character-footer .wow-character-error{font:10px system-ui;color:#ffb9a3;min-height:12px;margin:0 0 2px}
.wow-character-footer-buttons{display:flex;justify-content:center;gap:10px}
#wow-mobile .wow-character-footer button{padding:5px 17px!important;min-height:31px!important;border:3px ridge #9e9980;border-radius:3px;background:linear-gradient(#7e2018,#4a0e0c)!important;font:13px Georgia,serif;color:#ffdb63;text-shadow:1px 1px #000;box-shadow:inset 0 0 0 1px #300a08,0 2px 5px #000}
#wow-mobile .wow-character-footer button:disabled{opacity:.45}
.wow-character-list{overflow:auto;touch-action:pan-y;overscroll-behavior:contain;scrollbar-width:thin}
#wow-mobile .wow-character-entry{display:block;width:100%;text-align:left;padding:9px 7px!important;margin:0 0 7px;min-height:44px!important;border:2px ridge #7d7965;border-radius:2px;font:13px Georgia,serif;color:#ead086;background:linear-gradient(#30332b,#111913)}
.wow-character-entry small{display:block;color:#c6bfae;font:9px/1.3 system-ui;margin-top:4px}
.wow-diagnostic{z-index:50}
.wow-launch-tools{position:fixed;z-index:10003;right:max(9px,var(--wow-safe-right));top:calc(var(--wow-safe-top) + 7px);display:flex;gap:6px;pointer-events:auto}
.wow-launch-tools[hidden]{display:none!important}
.wow-launch-tools button{font:11px Georgia,serif;color:#e8d29f;border:2px ridge #a29a7f;border-radius:3px;background:linear-gradient(#343c3b,#121a20);min-height:30px;padding:5px 9px;text-shadow:1px 1px #000;touch-action:manipulation}
@media(max-height:430px){.wow-character-heading{height:30px}.wow-character-heading small{display:none}.wow-character-heading h1{font-size:18px;line-height:24px}.wow-character-left,.wow-character-right{padding:5px}.wow-character-picks{grid-template-rows:minmax(0,4.7fr) 22px minmax(0,3fr);gap:5px}.wow-faction-column{grid-template-rows:13px repeat(4,minmax(0,1fr));gap:3px;padding-bottom:3px}.wow-faction-column h2{font-size:10px;line-height:13px}.wow-faction-column:before{top:13px}.wow-class-grid{gap:4px}.wow-pick-name{font-size:6.5px}.wow-character-screen h2:not(.wow-faction-column h2){font-size:15px;margin-bottom:4px}.wow-character-screen p{font-size:10px;line-height:1.3;margin-bottom:7px}.wow-character-screen .wow-character-rule{font-size:9px;padding-top:5px}.wow-character-caption{display:none}.wow-character-zone{padding:5px 7px}.wow-character-zone strong{font-size:14px}.wow-character-zone small{font-size:8px}.wow-character-name{font-size:10px}.wow-character-name input{padding:4px 7px;min-height:29px}.wow-character-footer{min-height:42px;padding-top:1px}#wow-mobile .wow-character-footer button{min-height:29px!important;font-size:12px}.wow-launch-tools button{font-size:10px;min-height:27px;padding:3px 7px}}
@media(max-width:740px){.wow-character-layout{grid-template-columns:112px minmax(65px,1fr) 180px;gap:8px}.wow-character-screen{padding-left:max(7px,var(--wow-safe-left));padding-right:max(7px,var(--wow-safe-right))}.wow-character-right{padding:5px}.wow-launch-tools button{font-size:9px}.wow-character-heading h1{font-size:16px}}
@media(orientation:portrait){.wow-character-mode #benilla{visibility:hidden}.wow-launch-tools{display:none}.wow-portrait{z-index:60}}

/* Short phone viewports keep both selectors visible; class icons move to the right frame. */
.wow-short-creator .wow-character-picks{grid-template-rows:minmax(0,1fr) 22px}
.wow-short-creator .wow-character-right .wow-class-grid{height:78px;flex-shrink:0;margin:0 0 5px;gap:3px}
.wow-short-creator .wow-character-right h2{font-size:14px!important;line-height:16px;margin:0 0 3px!important}
.wow-short-creator .wow-character-right .wow-class-description{font-size:8px;line-height:1.2;margin-bottom:5px}
.wow-short-creator .wow-character-rule,.wow-short-creator .wow-character-caption,.wow-short-creator .wow-character-zone small{display:none}
.wow-short-creator .wow-character-zone{padding:3px 6px}
.wow-character-picks{grid-template-columns:minmax(0,1fr)}
.wow-character-gender{min-width:0}
.wow-faction-column{overflow:hidden}
.wow-pick-name{left:0;right:0;font-size:7px;white-space:normal;line-height:1}
@media(max-height:430px){.wow-pick-name{font-size:6px}}

#wow-mobile.wow-report-open{z-index:10004}

/* Persistent character sheet; temporary run upgrades stay in the combat HUD. */
.wow-armory-mode .wow-panel{visibility:hidden;pointer-events:none}.wow-armory-mode #benilla{visibility:visible}
.wow-armory{position:absolute;inset:0;z-index:33;display:flex;flex-direction:column;box-sizing:border-box;padding:calc(var(--wow-safe-top) + 8px) max(12px,var(--wow-safe-right)) calc(var(--wow-safe-bottom) + 7px) max(12px,var(--wow-safe-left));pointer-events:auto;background:linear-gradient(90deg,#0b1119a0,transparent 45%,#0b111944)}
.wow-armory>header{min-height:55px;text-align:center;padding:0 180px 5px;flex-shrink:0}.wow-armory h1{font:21px Georgia,serif;color:#eed18b;margin:0 0 3px;text-shadow:1px 1px #000}.wow-armory h2{font:15px Georgia,serif;color:#e8c574;margin:0 0 9px}.wow-meta-level{font:11px system-ui;margin:0 0 4px;color:#ead8b6}.wow-meta-xp{height:10px;width:min(240px,100%);margin:auto;background:#15192e}.wow-meta-xp i{background:linear-gradient(#8b91ef,#4c56ad)}.wow-meta-xp b{font-size:8px}
.wow-armory-layout{display:grid;grid-template-columns:clamp(140px,21vw,205px) minmax(100px,1fr) clamp(210px,30vw,310px);gap:12px;min-height:0;flex:1}.wow-armory-stats,.wow-armory-bag{padding:9px;border:3px ridge #9c9275;background:linear-gradient(#20221dec,#0b1116df);overflow:auto;touch-action:pan-y;scrollbar-width:thin}.wow-armory-stats p,.wow-item-detail p{white-space:pre-line;font:11px/1.5 system-ui;color:#d9e5c2;margin:6px 0 10px}.wow-armory-stats small{font:10px/1.4 system-ui;color:#aaa58f}
.wow-paperdoll{display:grid;grid-template-columns:36px minmax(25px,1fr) 36px;grid-template-rows:repeat(7,minmax(0,1fr));gap:5px 8px;min-height:0;pointer-events:none}
#wow-mobile .wow-gear-slot{position:relative;pointer-events:auto;min-height:0!important;width:100%;height:100%;padding:0!important;border:2px ridge #a59b80;border-radius:3px;background:#15212bc7;color:#c4b68c;font:7px Georgia,serif;line-height:1;overflow:hidden;box-shadow:0 2px 3px #000}
.wow-gear-slot img,.wow-bag-item img{width:100%;height:100%;object-fit:cover}.wow-gear-slot small{position:absolute;bottom:0;left:0;right:0;font:6px/1 Georgia,serif;color:#f3d78e;text-shadow:1px 1px #000;background:#0005;text-align:center}
.wow-bag-items{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;font-size:11px;color:#bfb59c}
#wow-mobile .wow-bag-item{padding:0!important;min-height:0!important;width:100%;aspect-ratio:1;border:2px ridge #93b778;border-radius:3px;background:#142231;position:relative}.wow-bag-item.equipped:after{content:'✓';position:absolute;bottom:-1px;right:0;background:#101b10c9;color:#9fe184;font-size:11px}.wow-bag-item.rare{border-color:#629bdb!important}
.wow-item-detail{margin-top:9px;border-top:1px solid #6c6b4f}.wow-item-detail h3{font:14px Georgia,serif;margin:7px 0;color:#83ce71}.wow-item-detail .rare{color:#77b4fb}.wow-item-detail p{font-size:10px}.wow-item-detail button{padding:4px 8px!important;min-height:28px!important;font-size:11px!important;border-radius:3px!important;margin:2px 4px 2px 0}.wow-item-detail button[aria-pressed=true]{border-color:#f4cd65!important;color:#ffe397!important}
.wow-armory footer{flex-shrink:0;text-align:center;padding-top:4px}.wow-armory-error{margin:0;color:#f9aa94;font-size:10px;min-height:12px}.wow-armory footer button{background:linear-gradient(#7e2018,#4a0e0c)!important;padding:6px 20px!important;min-height:30px!important;border:3px ridge #a39a7c!important;border-radius:3px!important;color:#f9d880!important;font:12px Georgia,serif!important}
.wow-reward-notice{position:absolute;left:50%;bottom:calc(var(--wow-safe-bottom) + 105px);transform:translateX(-50%);max-width:55vw;padding:7px 12px;border:1px solid #afa16e;background:#122313e8;color:#d4efbb;font:11px/1.4 system-ui;border-radius:3px;z-index:24;text-align:center;pointer-events:none}.wow-run-rewards{white-space:pre-line;color:#c5df9e!important;font-size:12px!important}
@media(max-height:430px){.wow-armory>header{min-height:46px;padding-bottom:3px}.wow-armory h1{font-size:18px}.wow-meta-level{font-size:9px}.wow-armory-layout{gap:8px;grid-template-columns:clamp(130px,19vw,170px) minmax(90px,1fr) clamp(195px,29vw,260px)}.wow-armory-stats,.wow-armory-bag{padding:6px}.wow-armory h2{font-size:12px;margin-bottom:6px}.wow-armory-stats p{font-size:10px;line-height:1.3}.wow-armory-stats small{font-size:8px}.wow-paperdoll{grid-template-columns:29px minmax(25px,1fr) 29px;gap:3px}.wow-armory footer button{min-height:27px!important;padding:3px 15px!important}.wow-reward-notice{font-size:10px;bottom:calc(var(--wow-safe-bottom) + 100px)}}
@media(max-width:740px){.wow-armory-layout{grid-template-columns:110px minmax(80px,1fr) 190px;gap:6px}.wow-armory>header{padding-left:110px;padding-right:190px}.wow-armory h1{font-size:16px}.wow-paperdoll{grid-template-columns:25px minmax(20px,1fr) 25px}.wow-bag-items{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(orientation:portrait){.wow-armory-mode #benilla{visibility:hidden}}

/* A fixed-size Canvas map; the 3D renderer never recomposites minimap textures. */
.wow-minimap{position:absolute;right:max(12px,var(--wow-safe-right));top:calc(var(--wow-safe-top) + 58px);width:clamp(78px,26vh,112px);pointer-events:auto;font:10px system-ui;text-align:center;color:#efd38d;filter:drop-shadow(0 2px 3px #000)}
.wow-map-title{margin-bottom:3px;text-shadow:1px 1px #000}.wow-map-body{display:block;position:relative;width:100%;aspect-ratio:1;padding:0!important;min-height:0!important;border-radius:50%!important;overflow:hidden;border:4px ridge #b4a17b!important;background:#29302c!important;box-shadow:0 0 0 2px #222,0 0 0 3px #928064}.wow-map-body canvas{display:block;width:100%;height:100%}.wow-map-north{position:absolute;top:0;left:46%;font:10px Georgia;color:#fff0ba;text-shadow:1px 1px #000}.wow-map-loading{position:absolute;bottom:20%;left:8%;right:8%;font:9px system-ui;font-weight:400;text-shadow:1px 1px #000;background:#0008}
#wow-mobile .wow-map-toggle{position:absolute;right:-7px;top:-13px;width:27px;height:27px;min-height:27px;padding:0;border-radius:50%;font-size:18px;border:2px ridge #ae9a6d;background:#252b29}.wow-minimap.collapsed .wow-map-body{display:none}.wow-minimap.collapsed{width:83px}.wow-map-legend{position:absolute;right:0;top:100%;width:min(280px,55vw);padding:10px;border:2px ridge #b4a17b;background:#101713f2;text-align:left;z-index:2;color:#e8e4d4}.wow-map-legend p{margin:0 0 7px;line-height:1.5}.wow-map-enemies{white-space:pre-line;color:#f3cf7c}.wow-map-legend>div{display:flex;gap:8px}.wow-map-legend button{min-height:30px!important;padding:3px 10px!important;border-radius:4px!important}
.wow-encounter-notice{position:absolute;top:calc(var(--wow-safe-top) + 77px);left:50%;transform:translateX(-50%);max-width:52vw;padding:7px 12px;color:#ffd66a;background:#211b10bf;border:1px solid #b28a42;border-radius:4px;font:15px Georgia;text-align:center;text-shadow:1px 1px #000;pointer-events:none}
@media(max-height:340px){.wow-minimap{width:76px;top:calc(var(--wow-safe-top) + 51px)}.wow-encounter-notice{font-size:12px;top:calc(var(--wow-safe-top) + 63px)}}
/* Character hub: fixed shell, one inexpensive content scroller. */
#wow-mobile .wow-hub{background:linear-gradient(110deg,#141b20f2,#1e2018e8);padding-top:calc(var(--wow-safe-top) + 38px)}
.wow-hub>header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:0 0 7px;text-align:left;min-height:52px}.wow-hub>header h1{font-size:20px}.wow-hub>header p{font:11px system-ui;margin:0}.wow-hub>header small{font:8px system-ui;letter-spacing:.15em;color:#c8b47c}.wow-hub-tabs,.wow-talent-toolbar{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.wow-hub-tabs button{font-size:12px!important;padding:7px 10px!important;min-height:32px!important}.wow-hub [aria-pressed=true]{background:linear-gradient(#675733,#362e20);border-color:#f1d389}.wow-hub-content{flex:1;min-height:0;overflow:auto;touch-action:pan-y;overscroll-behavior:contain;padding:3px}.wow-hub>footer{padding:4px 0;display:flex;justify-content:space-between;align-items:center}.wow-hub>footer button{font-size:10px!important;min-height:28px!important;padding:4px 10px!important}.wow-hub>footer p{margin:0}.wow-hub .wow-armory-layout{height:100%;min-height:190px}.wow-hub h2{font-size:16px}.wow-hub h3{color:#e8c574;font:14px Georgia,serif}.wow-hub-content>p,.wow-codex-boss p,.wow-location-grid p{font:12px/1.5 system-ui;color:#d8dccf}.wow-location-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.wow-location-grid article{padding:20px;border:3px ridge #8e835e;background:radial-gradient(at top,#45432a,#111a1b)}.wow-location-grid small{color:#d8be73;letter-spacing:.1em;font-size:9px}.wow-location-grid button{margin:7px 5px 0 0;font-size:12px!important;min-height:34px!important;padding:8px 14px!important}.wow-location-soon{filter:grayscale(1);opacity:.45}.wow-location-start{background:linear-gradient(#922b26,#430e0d)!important;color:#ffdc8c!important}.wow-codex-list{display:grid;grid-template-columns:1fr 1fr;gap:10px}.wow-codex-boss{border:1px solid #7c7353;padding:12px;background:#111a1ec9}.wow-codex-boss h3{margin:0 0 7px}.wow-codex-boss p{margin:7px 0}.wow-codex-boss small{font:10px/1.4 system-ui;color:#aeb4a4}.wow-codex-item{display:flex;gap:9px;white-space:pre-line;align-items:center}.wow-codex-item img{width:35px;height:35px;flex-shrink:0}.wow-talent-toolbar{margin:0 0 10px}.wow-talent-toolbar button{padding:5px 8px!important;font-size:11px!important;min-height:30px!important}.wow-talent-toolbar b{font:11px system-ui;color:#e4cd8d;margin:0 8px}.wow-talent-layout{display:grid;grid-template-columns:minmax(300px,1fr) minmax(180px,.6fr);gap:16px}.wow-talent-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(7,minmax(80px,auto));gap:9px;padding:12px;background:radial-gradient(at top,#424630,#0c161d);border:3px ridge #958569}.wow-talent-node{position:relative;display:flex;flex-direction:column;align-items:center;min-width:0}.wow-talent-node>button{display:flex;flex-direction:column;align-items:center;border-color:#81734e;border-radius:3px;padding:4px!important;width:100%;height:64px;min-height:0!important}.wow-talent-node img{width:26px;height:26px}.wow-talent-node span{font:8px/1.2 system-ui;max-width:100%}.wow-talent-node b{font-size:9px;color:#d2eeb8;position:absolute;right:2px;top:2px}.wow-talent-node small{font:7px/1.1 system-ui;color:#c5b681}.wow-talent-ranks{display:flex;width:100%;gap:2px}.wow-talent-ranks button{flex:1;min-height:23px!important;padding:0!important;font:15px system-ui!important}.wow-talent-node.unavailable{filter:grayscale(1);opacity:.4}.wow-talent-info{padding:14px;background:#101a1ce6;border:1px solid #74694c;align-self:start;position:sticky;top:0}.wow-talent-info p{font:12px/1.6 system-ui;white-space:pre-line;color:#d6d7c7}.wow-bag-pages button{padding:3px 12px!important;min-height:27px!important}.wow-bag-pages{font:11px system-ui;margin-top:8px}.wow-item-detail small{display:block;color:#aaa993;font:10px/1.5 system-ui}.wow-armory-stats small{display:block;margin-bottom:10px}.wow-hub .common{color:#eee}.wow-hub .uncommon{color:#70dc78}.wow-hub .rare{color:#6eb6ff}.wow-hub .epic{color:#c38af0}.wow-hub .legendary{color:#ffb45e}
@media(max-width:740px){.wow-hub>header{gap:8px}.wow-hub>header h1{font-size:16px}.wow-hub-tabs{gap:3px}.wow-hub-tabs button{font-size:10px!important;padding:5px 7px!important}.wow-talent-layout{grid-template-columns:minmax(250px,1fr) minmax(150px,.6fr)}.wow-codex-list{grid-template-columns:1fr}.wow-location-grid article{padding:12px}}
.wow-threats{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}.wow-bossframe{position:fixed;left:50%;transform:translateX(-50%);top:calc(var(--wow-safe-top,0px) + 8px);width:min(30vw,280px);padding:4px 8px;border:1px solid #b29b69;background:linear-gradient(#24231cdd,#070907cc);border-radius:4px;pointer-events:none;font-size:12px;text-align:center;z-index:3}.wow-bossframe .wow-meter{height:15px;margin-top:3px}.wow-bossframe i{background:linear-gradient(#ca3630,#68130d)}.wow-bossframe b{font-size:10px}.wow-buffs{position:fixed;left:calc(var(--wow-safe-left,0px) + 17px);top:calc(var(--wow-safe-top,0px) + 85px);display:flex;gap:3px;pointer-events:none;z-index:3}.wow-buffs span{width:23px;height:23px;border:1px solid #c8af77;box-shadow:0 1px 2px #000;border-radius:2px}.wow-buffs img{width:100%;height:100%;object-fit:cover}
/* Keep the clock, temporary passives and active effects clear of the central boss frame. */
.wow-top .wow-run-clock{position:absolute;left:0;top:125px;margin:0;padding:2px 0;max-width:200px;background:transparent;border:0;text-shadow:0 1px 2px #000,1px 0 2px #000}.wow-buffs{top:calc(var(--wow-safe-top,0px) + 101px)}
.wow-boss-hint{display:block;color:#8ceb9b;font:10px/1.25 system-ui}.wow-boss-hint:empty{display:none}

/* Classic talent art and dependency paths stay behind the touch targets. */
.wow-talent-grid{position:relative;isolation:isolate;overflow:hidden;background:#151a1e}
.wow-talent-art{position:absolute;inset:0;display:grid;grid-template-columns:80% 20%;grid-template-rows:66.6667% 33.3333%;z-index:-2;pointer-events:none;opacity:.48}
.wow-talent-art img{width:100%;height:100%;object-fit:fill}
.wow-talent-arrows{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:-1;overflow:visible}
.wow-talent-arrows path{stroke:#797967;stroke-width:2.5;fill:none;stroke-linejoin:round}
.wow-talent-arrows path.learned{stroke:#f3ce65;filter:drop-shadow(0 0 2px #000)}
.wow-talent-node>button{background:linear-gradient(#151b20c9,#0a1017e0)!important;box-shadow:0 2px 5px #0009}
.wow-talent-node:has(.wow-talent-ranks button:not(:disabled)){border-radius:3px}
.wow-talent-node.unavailable{opacity:.55}
.wow-hub .wow-paperdoll{position:relative}
.wow-gear-slot{min-height:32px!important;border-radius:3px!important;box-shadow:0 1px 4px #000b}
.wow-gear-slot.uncommon,.wow-bag-item.uncommon{border-color:#4fba5e!important}.wow-gear-slot.rare,.wow-bag-item.rare{border-color:#458bdd!important}.wow-gear-slot.epic,.wow-bag-item.epic{border-color:#ad64d9!important}.wow-gear-slot.legendary,.wow-bag-item.legendary{border-color:#df9c33!important}
.wow-resume-note{border-left:3px solid #d2b168;padding-left:10px}

.wow-reports-overlay{position:absolute;inset:var(--wow-safe-top) 0 0;z-index:80;background:#101319;display:flex;flex-direction:column;pointer-events:auto}.wow-reports-overlay>button{align-self:flex-end;min-height:34px!important}.wow-reports-overlay iframe{width:100%;flex:1;border:0;min-height:0}

/* Keep the equipped character visible between the two side panels. */
#wow-mobile .wow-hub[data-tab="equipment"]{background:linear-gradient(90deg,#081016a0,transparent 26%,transparent 67%,#081016a0)}
#wow-mobile .wow-hub[data-tab="equipment"]>header{background:linear-gradient(#0a111ce8,#0a111c55);text-shadow:1px 1px 2px #000}
.wow-talent-grid{grid-template-rows:repeat(7,64px);gap:10px;padding:14px}
#wow-mobile .wow-talent-node>button{width:38px;height:38px;padding:3px!important;border:2px ridge #b4a17b!important;border-radius:3px!important;position:relative}
#wow-mobile .wow-talent-node>button img{width:28px;height:28px}
#wow-mobile .wow-talent-node>button span{display:none}
#wow-mobile .wow-talent-node b{right:-6px;top:auto;bottom:-5px;font:bold 10px system-ui;background:#0c120b;padding:0 2px;border:1px solid #827146;z-index:1}
.wow-talent-ranks{width:76px;max-width:100%;margin-top:6px;gap:4px}
#wow-mobile .wow-talent-ranks button{height:24px;min-height:24px!important;border-radius:3px;font-size:16px!important}

/* Mobile menus own their scrolling; only the game canvas / joystick consume raw gestures. */
html,body{touch-action:auto}
#benilla,.wow-stick,.wow-actions button{touch-action:none}
#wow-mobile .wow-hub,#wow-mobile .wow-character-screen{touch-action:pan-y}
#wow-mobile .wow-hub button,#wow-mobile .wow-character-screen button{touch-action:pan-y}
.wow-scroll{min-width:0;min-height:0;overflow-y:auto;overflow-x:hidden;touch-action:pan-y;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#b09b6a #111b1f}
#wow-mobile .wow-hub{inset:0;padding:calc(var(--wow-safe-top) + 36px) max(12px,var(--wow-safe-right)) calc(var(--wow-safe-bottom) + 6px) max(12px,var(--wow-safe-left));gap:4px;background:linear-gradient(110deg,#101611f5,#10161ce8)}
#wow-mobile .wow-hub>header{flex:0 0 auto;min-height:37px;gap:8px;padding:0 2px 5px;border-bottom:1px solid #92734570}
#wow-mobile .wow-hub>header>div{min-width:100px}
#wow-mobile .wow-hub>header h1{margin:0;font:19px Georgia,serif;color:#f1d58c;white-space:nowrap}
#wow-mobile .wow-hub>header h1 small{display:inline;font:11px system-ui;letter-spacing:0;margin-left:7px;color:#c2c4b5}
#wow-mobile .wow-hub>header p{margin:3px 0 0;font:10px system-ui;color:#b9b4a1}
#wow-mobile .wow-hub-tabs{flex-wrap:nowrap;gap:4px}
#wow-mobile .wow-hub-tabs button{border-radius:2px;border:2px ridge #7c7056;font:12px Georgia,serif;min-height:30px;padding:5px 11px;background:linear-gradient(#32342a,#141912)}
#wow-mobile .wow-hub-tabs button[aria-pressed=true]{background:linear-gradient(#84261f,#360a08);color:#ffdf83;border-color:#d0b578}
#wow-mobile .wow-hub-content{flex:1;min-height:0;overflow-y:auto;padding:3px 0;touch-action:pan-y}
#wow-mobile .wow-hub[data-tab=equipment] .wow-hub-content,#wow-mobile .wow-hub[data-tab=talents] .wow-hub-content,#wow-mobile .wow-hub[data-tab=locations] .wow-hub-content{overflow:hidden;display:flex;flex-direction:column}
#wow-mobile .wow-hub>footer{flex:0 0 auto;padding:3px 0 0;gap:6px;min-height:24px}
#wow-mobile .wow-hub>footer p:empty{display:none}
#wow-mobile .wow-hub>footer p{font:11px system-ui;color:#ffc29b;max-width:50%;max-height:35px;overflow:auto;touch-action:pan-y}
#wow-mobile .wow-hub>footer .wow-hub-footer{margin-left:auto;display:flex;gap:5px}
#wow-mobile .wow-hub>footer button{border-radius:2px;min-height:25px;font:11px Georgia,serif;padding:3px 10px}
#wow-mobile .wow-hub[data-tab=equipment]{background:linear-gradient(90deg,#07100ac7,transparent 30%,transparent 57%,#07100aa1)}
#wow-mobile .wow-hub[data-tab=equipment]>header{background:#101810dd}
#wow-mobile .wow-hub .wow-armory-layout{height:100%;min-height:0;width:100%;grid-template-columns:145px minmax(130px,1fr) minmax(260px,35%);gap:10px;overflow:hidden}
#wow-mobile .wow-armory-stats{padding:9px;border:2px ridge #a69770;box-sizing:border-box}
#wow-mobile .wow-armory-stats h2{font:14px Georgia;margin:0 0 8px;color:#e8cc88}
#wow-mobile .wow-armory-stats p{font:11px/1.55 system-ui;margin:0;white-space:pre-line}
#wow-mobile .wow-paperdoll{height:100%;grid-template-columns:34px 1fr 34px;grid-template-rows:repeat(7,minmax(0,1fr));gap:3px 5px;pointer-events:auto}
#wow-mobile .wow-gear-slot{padding:1px!important;width:34px;min-height:0!important;height:100%;max-height:40px;position:relative;overflow:hidden;border:2px ridge #958565;background:#131a15d9}
#wow-mobile .wow-gear-slot img{width:100%;height:100%;object-fit:cover}
#wow-mobile .wow-gear-slot small{position:absolute;bottom:0;left:0;right:0;background:#000b;font:7px Georgia;text-shadow:1px 1px #000;line-height:1.2;color:#e1d4b7;white-space:nowrap}
#wow-mobile .wow-gear-slot.empty{background:linear-gradient(#1e251fb5,#0b0e0acb);border-color:#675d46}
#wow-mobile .wow-armory-bag{display:flex;flex-direction:column;overflow:hidden;min-width:0;min-height:0;padding:8px;gap:6px;border:2px ridge #a69770;box-sizing:border-box;background:linear-gradient(#1e241df2,#0a1014ed)}
.wow-bag-header{display:flex;gap:5px;align-items:center;flex-shrink:0}
#wow-mobile .wow-bag-header button{font:13px Georgia;min-height:29px;padding:3px 9px;border-radius:2px;border:1px solid #756642}
.wow-bag-header small{margin-left:auto;color:#b5ae92;font:9px system-ui;white-space:nowrap}
.wow-bag-filters{display:flex;gap:5px;flex-shrink:0}
.wow-bag-filters select{width:50%;min-width:0;box-sizing:border-box;color:#e3d8b9;background:#131b16;border:1px solid #827049;border-radius:2px;font:11px system-ui;padding:4px;touch-action:pan-y}
#wow-mobile .wow-bag-items{flex:1;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-rows:44px;align-content:start;gap:5px;min-height:0;max-height:none;overflow-y:auto;padding:2px 5px 2px 1px}
#wow-mobile .wow-bag-item{position:relative;width:100%;height:44px;min-height:44px;padding:2px;border:2px ridge #817458;border-radius:2px;background:#0c120e;touch-action:pan-y}
#wow-mobile .wow-bag-item img{width:100%;height:100%;object-fit:cover}
.wow-bag-empty{grid-column:1/-1;font:12px/1.5 system-ui;color:#bdb59f;margin:8px 2px}
.wow-bag-help{font:9px/1.35 system-ui;color:#a8a38d;flex-shrink:0}
.wow-loot-profile{font:10px system-ui;margin-top:12px}
#wow-mobile .wow-loot-profile button{display:block;min-height:26px;font-size:10px;padding:3px 6px;border-radius:2px;margin:4px 0}
.wow-item-modal{position:absolute;inset:0;z-index:70;pointer-events:auto;background:#000b;display:grid;place-items:center;padding:calc(var(--wow-safe-top) + 34px) 18px calc(var(--wow-safe-bottom) + 8px);box-sizing:border-box;touch-action:pan-y}
.wow-item-window{display:flex;flex-direction:column;width:min(620px,100%);max-height:100%;min-height:0;background:linear-gradient(#17221b,#080f13);border:3px ridge #b19b65;box-shadow:0 10px 45px #000;box-sizing:border-box;padding:10px;gap:7px}
.wow-item-window>header{display:flex;align-items:center;gap:12px;flex-shrink:0}
.wow-item-window>header h2{margin:0;font:16px Georgia;flex:1}
#wow-mobile .wow-item-window>header button{border-radius:2px;min-height:30px;padding:2px 10px}
.wow-item-detail{flex:1;min-height:0;padding-right:5px}
.wow-item-comparison{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.wow-item-comparison>article{min-width:0;padding:8px;background:#0005;border:1px solid #77674666}
.wow-item-comparison>article:only-child{grid-column:1/-1}
.wow-item-comparison h3{margin:4px 0;font-size:14px}
.wow-item-comparison small{color:#b3aa8b;font:10px system-ui}
.wow-item-detail p{font:12px/1.45 system-ui;white-space:pre-line;margin:7px 0}
.wow-item-difference{border-top:1px solid #837047;padding-top:7px;color:#c5ddb0!important}
.wow-item-actions{display:flex;gap:7px;align-items:center;flex-shrink:0;flex-wrap:wrap}
#wow-mobile .wow-item-actions button{border-radius:2px;min-height:32px;padding:5px 12px;background:linear-gradient(#77251f,#310b08);font:13px Georgia}
.wow-item-actions small{font:10px system-ui;color:#a49e8a;margin-left:auto}
#wow-mobile .wow-talent-toolbar{margin:0 0 5px;gap:5px;flex-wrap:nowrap;flex-shrink:0}
#wow-mobile .wow-talent-toolbar button{font:11px Georgia;min-height:28px;padding:4px 8px;border-radius:2px;white-space:nowrap}
#wow-mobile .wow-talent-toolbar b{font:10px system-ui;white-space:nowrap;margin:0 3px}
#wow-mobile .wow-talent-layout{flex:1;min-height:0;display:grid;grid-template-columns:minmax(210px,1fr) minmax(210px,.85fr);gap:9px;overflow:hidden}
.wow-talent-scroll{height:100%}
#wow-mobile .wow-talent-grid{height:100%;min-height:156px;box-sizing:border-box;grid-template-rows:repeat(3,minmax(40px,1fr));grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:12px;border:2px ridge #a08c60;background:#121912}
#wow-mobile .wow-talent-node{justify-content:center;overflow:visible}
#wow-mobile .wow-talent-node>button{width:40px;height:40px;min-height:40px;flex-shrink:0}
#wow-mobile .wow-talent-node>button img{width:30px;height:30px}
#wow-mobile .wow-talent-node.selected>button{border-color:#ffe7a0!important;box-shadow:0 0 0 2px #d0a444,0 0 12px #dba53b}
#wow-mobile .wow-talent-node small{display:none}
#wow-mobile .wow-talent-node b{bottom:-4px;right:-5px;font-size:10px}
#wow-mobile .wow-talent-info{display:flex;flex-direction:column;min-height:0;height:100%;box-sizing:border-box;position:static;align-self:stretch;padding:10px;border:2px ridge #84724d;overflow:hidden;gap:7px}
.wow-talent-description{flex:1;min-height:0}
#wow-mobile .wow-talent-info h2{font:16px Georgia;color:#ead08d;margin:0 0 7px}
#wow-mobile .wow-talent-info p{font:12px/1.45 system-ui;margin:0;white-space:pre-line}
.wow-talent-description small{display:block;font:10px/1.4 system-ui;color:#bcb295;margin-top:8px}
.wow-talent-controls{display:flex;gap:7px;flex-shrink:0}
#wow-mobile .wow-talent-controls button{min-height:32px;padding:5px 12px;border-radius:2px;font:13px Georgia}
#wow-mobile .wow-talent-controls button:last-child{flex:1}
#wow-mobile .wow-location-grid{height:100%;min-height:0;display:grid;grid-template-columns:minmax(320px,2fr) minmax(150px,1fr);gap:12px}
#wow-mobile .wow-location-grid article{min-height:0;box-sizing:border-box;border:2px ridge #9c8658;padding:14px;overflow:hidden}
#wow-mobile .wow-zone-card{display:grid;grid-template-columns:.9fr 1.1fr;grid-template-rows:1fr auto;gap:9px 16px;background:radial-gradient(ellipse at 0 0,#7d652a88,transparent 70%),linear-gradient(120deg,#292d19,#101a16)}
.wow-zone-title{align-self:center;text-shadow:0 2px 2px #000}
#wow-mobile .wow-zone-title h2{font:30px Georgia;color:#f0d18c;margin:5px 0 8px}
#wow-mobile .wow-zone-title p{font:11px system-ui;color:#cfc8b1;margin:0}
.wow-zone-facts{overflow-y:auto;touch-action:pan-y;min-height:0}
#wow-mobile .wow-zone-facts p{margin:0 0 10px;font:11px/1.35 system-ui}
.wow-zone-facts b{display:block;font-weight:600;color:#b8a064;font-size:10px;margin-bottom:2px}
.wow-zone-facts span{color:#e1deca}
.wow-zone-actions{grid-column:1/-1;display:flex;gap:6px;align-items:center;flex-wrap:wrap;border-top:1px solid #8d774b66;padding-top:6px}
#wow-mobile .wow-zone-actions button{margin:0;min-height:34px;padding:5px 13px;border-radius:2px;font:13px Georgia}
.wow-zone-actions .wow-resume-note{margin:0 4px;padding-left:6px;font:10px system-ui}
#wow-mobile .wow-location-soon{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:linear-gradient(#131b18,#080d11);filter:none;opacity:.7;border-color:#504e3e}
#wow-mobile .wow-location-soon h2{font:18px Georgia;margin:10px 0 7px;color:#b2ae97}
#wow-mobile .wow-location-soon p{font:11px system-ui;margin:0 0 12px;color:#989b90}
.wow-location-soon strong{font:12px Georgia;color:#b4a26e}
.wow-lock{font:32px Georgia;color:#6f715a}
.wow-classic-backdrop{background-image:linear-gradient(0deg,#0009,transparent 60%),var(--classic-backdrop)!important;background-size:100% 100%!important;background-position:center!important;background-color:#10170d!important}
#wenilla-boot::before,#wenilla-boot .embers{display:none!important}
#wenilla-boot .box{position:absolute;bottom:max(5%,env(safe-area-inset-bottom));left:50%;right:auto;transform:translateX(-50%);max-width:none!important;width:min(720px,82vw)!important;background:linear-gradient(transparent,#000b);border:0;padding:10px 14px;box-sizing:border-box;text-shadow:0 1px 3px #000}
#wenilla-boot .stage{font:14px Georgia!important;color:#ead9ab!important;margin:0 0 9px!important}
#wenilla-boot .bar{width:100%!important;margin:0!important;height:12px!important}
#wenilla-boot .data{margin-top:6px!important;min-height:0!important}
#wenilla-boot .tip{font:12px/1.4 system-ui!important;margin:8px 0 0!important;min-height:0!important;font-style:normal!important}
#wow-mobile .wow-panel{background-color:#121c10;text-shadow:0 1px 2px #000}
#wow-mobile .wow-panel h1:empty,#wow-mobile .wow-panel .wow-intro:empty{display:none}
#wow-mobile .wow-panel .wow-message,#wow-mobile .wow-panel .wow-intro,#wow-mobile .wow-panel .wow-help{background:#08100abf;padding:5px 9px;border-radius:2px}
#wow-mobile .wow-panel .wow-primary{border-radius:2px;background:linear-gradient(#86271d,#3c0b08)!important;border:2px ridge #c9a65b!important;color:#ffe5a0;font:16px Georgia}
@media(max-width:740px){
 #wow-mobile .wow-hub>header h1{font-size:16px}#wow-mobile .wow-hub>header h1 small{display:block;margin:2px 0;font-size:10px}
 #wow-mobile .wow-hub-tabs button{font-size:10px;padding:4px 7px;min-height:28px}
 #wow-mobile .wow-hub .wow-armory-layout{grid-template-columns:118px minmax(90px,1fr) minmax(220px,37%);gap:6px}
 #wow-mobile .wow-paperdoll{grid-template-columns:29px 1fr 29px}#wow-mobile .wow-gear-slot{width:29px}
 #wow-mobile .wow-armory-stats p{font-size:10px;line-height:1.4}#wow-mobile .wow-armory-stats{padding:6px}
 #wow-mobile .wow-armory-bag{padding:5px;gap:4px}#wow-mobile .wow-bag-items{grid-auto-rows:38px;gap:4px}#wow-mobile .wow-bag-item{height:38px;min-height:38px}
 #wow-mobile .wow-talent-toolbar button{font-size:10px;padding:3px 6px}#wow-mobile .wow-talent-toolbar b{font-size:9px}
 #wow-mobile .wow-talent-layout{grid-template-columns:minmax(190px,1fr) minmax(185px,.9fr);gap:6px}
 #wow-mobile .wow-location-grid{grid-template-columns:minmax(310px,2fr) minmax(140px,1fr);gap:8px}#wow-mobile .wow-location-grid article{padding:10px}
}
@media(max-height:340px){
 #wow-mobile .wow-hub{padding-top:calc(var(--wow-safe-top) + 31px)}#wow-mobile .wow-hub>header{min-height:30px}#wow-mobile .wow-hub>header p{display:none}
 #wow-mobile .wow-zone-title h2{font-size:24px}#wow-mobile .wow-zone-facts p{margin-bottom:5px;font-size:10px}
 #wow-mobile .wow-zone-actions button{min-height:29px;font-size:11px}#wow-mobile .wow-talent-toolbar button{min-height:25px}
 #wow-mobile .wow-talent-info p{font-size:11px}#wow-mobile .wow-talent-info h2{font-size:14px}#wow-mobile .wow-talent-info{padding:7px}
}

@media(max-height:340px){#wow-mobile .wow-zone-facts p{font-size:10px;line-height:1.2;margin:0 0 4px}#wow-mobile .wow-zone-facts b{font-size:9px;margin-bottom:1px}}

/* Keep the complete Classic tree browsable, including requirements for future rows. */
#wow-mobile .wow-talent-scroll{overflow-y:auto;overflow-x:hidden;touch-action:pan-y;scrollbar-gutter:stable;scrollbar-width:auto}
#wow-mobile .wow-talent-grid{height:auto;min-height:482px;grid-template-rows:repeat(7,58px)}
.wow-tree-hint{font:10px/1.2 system-ui;color:#d6c28a;margin-left:auto;white-space:nowrap}
.wow-loot-guide{padding:10px 12px;margin:10px 0;border:1px solid #8b7650;background:#121d18}
.wow-loot-guide h3{margin:0 0 6px}.wow-loot-guide p{font:12px/1.5 system-ui;color:#c9c4ad}
#wow-mobile .wow-loot-guide button{font:12px Georgia;min-height:32px;border-radius:2px;padding:5px 12px;margin-right:6px}
@media(max-width:740px){.wow-tree-hint{font-size:9px;white-space:normal;max-width:95px}}

#wow-mobile .wow-talent-node.locked>button img{filter:grayscale(1);opacity:.55}
#wow-mobile .wow-talent-node.locked>button{border-color:#68685c!important}
/* Encounter journal: independent scroll areas instead of an unbroken encyclopedia. */
.wow-codex{display:grid;grid-template-columns:minmax(125px,25%) 1fr;gap:10px;height:100%;min-height:0;text-align:left}
.wow-codex-nav{min-height:0;border-right:1px solid #8d7847;padding-right:7px}
#wow-mobile .wow-codex-nav h3{font:11px Georgia;color:#b8a36a;margin:6px 0}
#wow-mobile .wow-codex-nav button{display:block;width:100%;text-align:left;min-height:37px;border-radius:2px;padding:6px 8px;font:12px Georgia;margin:0 0 5px}
.wow-codex-nav button small{display:block;color:#b0af9b;font:9px/1.4 system-ui;margin-top:3px}
.wow-codex-page{display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:6px;min-height:0;min-width:0}
#wow-mobile .wow-codex-page header h2{font:18px Georgia;color:#eed193;margin:0 0 4px}
.wow-codex-page header small{font:10px system-ui;color:#b9bba9}
.wow-codex-tabs{display:flex;gap:5px}
#wow-mobile .wow-codex-tabs button{font:11px Georgia;border-radius:2px;min-height:27px;padding:4px 10px}
.wow-codex-reading{min-height:0;padding-right:7px;touch-action:pan-y}
#wow-mobile .wow-codex-reading p{font:12px/1.5 system-ui;margin:0 0 9px;color:#d5d5c4}
#wow-mobile .wow-codex-reading h3{font:15px Georgia;color:#d9bf83;margin:0 0 9px}
.wow-codex-drop{border:1px solid #6b6046;background:#0c1514cf;padding:9px;margin-bottom:8px}
.wow-codex-drop-heading{display:flex;align-items:center;gap:8px;margin-bottom:5px;color:#e4d29b;font:14px Georgia}
.wow-codex-drop-heading img{width:31px;height:31px;flex-shrink:0}
.wow-codex-drop details{font:11px/1.5 system-ui;color:#bdbda7}.wow-codex-drop summary{cursor:pointer;touch-action:pan-y;color:#c9ae76}
.wow-codex-drop dl{display:grid;grid-template-columns:1fr auto;gap:4px 10px;margin:8px 0}.wow-codex-drop dd{margin:0}
.wow-preview-ranks{display:flex;gap:4px;align-items:center;margin-bottom:7px;flex-wrap:wrap}
#wow-mobile .wow-preview-ranks small{margin:0 5px 0 0;font:10px system-ui;color:#bfa76c}
#wow-mobile .wow-preview-ranks button{font:11px Georgia;min-width:25px;min-height:25px;border-radius:2px;padding:2px 5px}
.wow-camera-zoom{display:flex;align-items:center;justify-content:center;gap:4px;margin-top:4px;color:#f4dda5;font:9px system-ui;pointer-events:auto}
#wow-mobile .wow-camera-zoom button{width:28px;min-height:26px;padding:0;border-radius:3px;font:18px Georgia;background:#172224dc;border:1px solid #a68f58;touch-action:manipulation}
@media(max-height:340px){.wow-codex{gap:6px;grid-template-columns:125px 1fr}#wow-mobile .wow-codex-nav button{font-size:11px;padding:4px 6px;min-height:32px}#wow-mobile .wow-codex-reading p{font-size:11px}.wow-codex-drop{padding:6px}.wow-codex-drop-heading{font-size:12px}#wow-mobile .wow-codex-page header h2{font-size:15px}.wow-camera-zoom{gap:3px}#wow-mobile .wow-camera-zoom button{min-height:24px;width:26px}}
/* The pause button has its own space beside the map, below native Telegram controls. */
:root{--wow-safe-top:max(env(safe-area-inset-top),var(--tg-safe-area-inset-top,0px),var(--tg-content-safe-area-inset-top,0px),var(--wow-tg-overlay-top,0px));--wow-safe-left:max(env(safe-area-inset-left),var(--tg-safe-area-inset-left,0px),var(--tg-content-safe-area-inset-left,0px));--wow-safe-right:max(env(safe-area-inset-right),var(--tg-safe-area-inset-right,0px),var(--tg-content-safe-area-inset-right,0px));--wow-safe-bottom:max(env(safe-area-inset-bottom),var(--tg-safe-area-inset-bottom,0px),var(--tg-content-safe-area-inset-bottom,0px));--wow-hud-top:calc(var(--wow-safe-top) + 8px);--wow-map-size:clamp(68px,22vh,100px)}
.wow-top{top:var(--wow-hud-top);right:calc(max(12px,var(--wow-safe-right)) + var(--wow-map-size) + 58px)}
#wow-mobile .wow-pause{position:absolute;top:var(--wow-hud-top);right:calc(max(12px,var(--wow-safe-right)) + var(--wow-map-size) + 10px);width:40px;height:40px;min-height:40px;padding:0;border:2px ridge #b4a17b;border-radius:6px;background:#1c2c2bd9;font-size:19px}
.wow-minimap{top:var(--wow-hud-top);width:var(--wow-map-size);right:max(12px,var(--wow-safe-right))}
.wow-map-title{height:24px;line-height:24px;text-align:left;padding-left:3px;font-size:10px}
#wow-mobile .wow-map-toggle{top:0;right:0;width:24px;height:24px;min-height:24px;font-size:16px}
.wow-status{right:calc(max(12px,var(--wow-safe-right)) + var(--wow-map-size) + 10px);top:calc(var(--wow-hud-top) + 42px)}
.wow-buffs{top:calc(var(--wow-hud-top) + 84px)}
#wow-mobile .wow-ultimate{position:relative;width:70px;height:70px;min-height:0;padding:4px;border:2px ridge #bea267;border-radius:50%;overflow:hidden;box-shadow:0 2px 8px #000;background:radial-gradient(#655322,#171f1d);font:10px/1.1 system-ui;text-shadow:0 1px 2px #000}
.wow-ultimate img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.45}
.wow-ultimate span{position:relative;z-index:1;white-space:pre-line}
#wow-mobile .wow-ultimate:not(:disabled){box-shadow:0 0 10px #dec27b77}.wow-ultimate:disabled img{filter:grayscale(1)}
@media(max-width:740px){#wow-mobile .wow-ultimate{width:54px;height:54px;font-size:9px}}
/* Match clock stays below the central boss frame and above the movement controls. */
.wow-top .wow-run-clock{left:226px;top:60px;max-width:200px;font-size:10px}
@media(max-height:430px){.wow-top .wow-run-clock{left:207px;top:60px}}
/* A supersampled backing canvas must stay centred even when wider than its viewport. */
.wow-fixed-canvas #benilla{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(var(--wow-canvas-scale));transform-origin:center}
.wow-ultimate span{overflow-wrap:anywhere}

/* Fixed difficulty / item-level rules; cards scroll within the existing viewport. */
.poor{color:#9d9d9d!important}.wow-difficulty{display:flex;align-items:center;gap:8px;font:12px system-ui;color:#e5c99a;margin:6px 0}.wow-difficulty select{font:inherit;background:#1a1a14;color:#eee3b7;border:1px solid #967b42;padding:6px;max-width:210px;touch-action:manipulation;pointer-events:auto}.wow-ilvl-entry{font-size:11px!important;margin:3px 0!important}.wow-zone-card{overflow-y:auto;touch-action:pan-y!important}.wow-zone-card>*{flex-shrink:0}.wow-codex-stats{white-space:pre-line;font:11px/1.5 system-ui}.wow-codex-mode{margin:0 0 5px;color:#e5c99a}.wow-zone-actions{position:sticky;bottom:0;background:#171a11;padding-top:5px}.wow-gear-summary{font-size:11px;color:#d9c690}

.wow-codex-page{grid-template-rows:auto auto auto minmax(0,1fr)}

.wow-codex-page{grid-template-rows:auto auto minmax(0,1fr)}
.wow-codex-page>header{display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 9px;min-width:0}
.wow-codex-page>header h2,.wow-codex-page>header small{grid-column:1}
.wow-codex-page>header .wow-difficulty{grid-column:2;grid-row:1/3;margin:0;font-size:0}
.wow-codex-page>header .wow-difficulty select{font-size:11px;max-width:135px}
#wow-mobile .wow-zone-card{grid-template-rows:minmax(0,1fr) auto;overflow:hidden}
.wow-zone-title{align-self:start;min-height:0;overflow-y:auto;touch-action:pan-y}
.wow-zone-actions{position:static;background:transparent}
.wow-gear-slot.poor,.wow-bag-item.poor{border-color:#888!important}
@media(max-height:340px){.wow-zone-title>small,.wow-zone-title>p:not(.wow-ilvl-entry){display:none}.wow-zone-title h2{margin:0 0 3px!important;font-size:20px!important}.wow-difficulty{margin:3px 0}.wow-difficulty select{font-size:11px;padding:4px;max-width:150px}.wow-ilvl-entry{font-size:10px!important;line-height:1.25!important}}

/* Shared ranking: names only, with an independent touch scroller. */
.wow-leaderboard{height:100%;min-height:0;display:flex;flex-direction:column;width:min(620px,100%);margin:auto;background:rgba(15,18,15,.9);border:1px solid #8d7747;padding:10px;box-sizing:border-box}
.wow-leaderboard>header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0;margin-bottom:5px}
.wow-leaderboard h2{margin:0;color:#ebd5a0;font-size:20px}.wow-leaderboard small{font:11px system-ui;color:#c7c0ae}
.wow-leaderboard-list{flex:1;min-height:0;list-style:none;margin:0;padding:0;touch-action:pan-y!important;overscroll-behavior:contain}
.wow-leaderboard-list li{padding:10px 12px;border-bottom:1px solid #ffffff18;color:#ecd9a7;font:17px Georgia,serif;overflow-wrap:anywhere}
.wow-leaderboard-list li:nth-child(odd){background:#ffffff04}.wow-leaderboard-actions{display:flex;align-items:center;justify-content:center;flex-shrink:0;font:12px system-ui;gap:8px}
.wow-leaderboard-actions p{margin:3px}.wow-hub-footer{flex-wrap:wrap}

/* Level-up cards: an optional swap is visually separate from an upgrade. */
#wow-mobile .wow-cards{gap:10px;padding-left:max(16px,var(--wow-safe-left));padding-right:max(16px,var(--wow-safe-right))}
#wow-mobile .wow-card{flex:1;max-width:310px;min-width:0;width:auto;max-height:100%;height:100%;box-sizing:border-box;border-radius:2px!important;scrollbar-width:thin;overscroll-behavior:contain;justify-content:flex-start}
#wow-mobile .wow-card>*{flex-shrink:0}.wow-card em{letter-spacing:.02em}.wow-card[data-kind=replace]{border-color:#bd8657!important;background:linear-gradient(140deg,#382a20f5,#14171bf5)!important}
.wow-card[data-kind=passive]{border-color:#6d9872!important}.wow-card[data-kind=ability]{border-color:#779aaa!important}.wow-card .wow-card-rank{font:11px system-ui;color:#c5d3de}
.wow-card-exchange{display:flex;flex-direction:column;width:100%;gap:5px;padding:7px 0;border-block:1px solid #aa835b66}
.wow-card-exchange>div{display:flex;flex-direction:column;gap:2px}.wow-card-exchange small{font:10px system-ui;color:#c2b49f}.wow-card-exchange b{font:12px/1.4 system-ui;white-space:normal}.wow-card-exchange>div:first-child b{color:#edaaa0}.wow-card-exchange>div:last-child b{color:#a7de9a}
@media(max-height:340px){#wow-mobile .wow-cards{padding-top:calc(var(--wow-safe-top) + 35px);padding-bottom:calc(var(--wow-safe-bottom) + 8px)}#wow-mobile .wow-card{padding:8px!important;gap:5px}.wow-card-title{font-size:18px}.wow-card .wow-card-icon{width:26px;height:26px}.wow-card-exchange{padding:4px 0;gap:3px}.wow-card-exchange b{font-size:10px}.wow-card span{font-size:10px!important;line-height:1.35!important}}
.wow-cards:not([hidden])~.wow-status{display:none!important}
.wow-card-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.wow-card-title .wow-reroll{font:12px Georgia,serif!important;min-height:32px!important;padding:5px 10px!important;border-radius:3px!important}.wow-deck-preview{font-size:12px;color:#e5d2a2}.wow-deck-preview summary{cursor:pointer;padding:8px 0}.wow-deck-preview p{line-height:1.5;display:block!important}.wow-deck-preview small{display:block;color:#bcb4a0}
.wow-ring-target{display:flex;gap:8px;margin-bottom:12px;flex-wrap:wrap}.wow-ring-target [aria-pressed=true]{box-shadow:inset 0 0 12px #e7ba5488;border-color:#ffe19c!important}
#wow-mobile .wow-buffs[hidden]{display:none!important}#wow-mobile .wow-ultimate[data-state=ready]{border-color:#fff2a4;box-shadow:0 0 0 2px #b79038,0 0 18px #e6c65c9c;color:#fff9d9}#wow-mobile .wow-ultimate[data-state=ready] img{opacity:1;filter:brightness(1.25) saturate(1.2)}#wow-mobile .wow-ultimate[data-state=cooldown]{border-color:#686b71;box-shadow:none}#wow-mobile .wow-ultimate[data-state=cooldown] img{opacity:.25;filter:grayscale(1)}#wow-mobile .wow-ultimate[data-state=active]{border-color:#8ee8ff;box-shadow:0 0 15px #5bcdea}#wow-mobile .wow-ultimate[data-state=active] img{opacity:.8}.wow-form-mark{position:absolute;left:-4px;top:-5px;min-width:16px;padding:1px 3px;background:#43275b;color:#ffe3ff;border:1px solid #e0a8fa;border-radius:3px;font:700 9px system-ui;font-style:normal}.wow-form-budget{display:block;font:10px system-ui;color:#d4b3e4;letter-spacing:0}.wow-card-title>span{display:block}
/* Workshop: fixed controls, independently scrolling items/recipes on landscape phones. */
#wow-mobile .wow-hub-tabs{min-width:0;overflow-x:auto;touch-action:pan-x;flex-shrink:1;max-width:75%}
#wow-mobile .wow-hub-tabs button{flex-shrink:0}
#wow-mobile .wow-hub[data-tab=professions] .wow-hub-content{overflow:hidden;display:flex;flex-direction:column}
#wow-mobile .wow-workshop{display:flex;flex-direction:column;flex:1;min-height:0;gap:5px;font:12px/1.4 system-ui;background:#091411ed;padding:8px;border:2px ridge #8b7954}
#wow-mobile .wow-workshop h2,#wow-mobile .wow-workshop p{margin:0}
#wow-mobile .wow-workshop-header{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:0 0 auto}
#wow-mobile .wow-workshop-header h2{font:18px Georgia,serif;color:#edcb82}
#wow-mobile .wow-workshop-tabs,#wow-mobile .wow-workshop-actions{display:flex;gap:5px;flex-wrap:wrap}
#wow-mobile .wow-workshop button{border-radius:2px;font-size:12px;padding:5px 9px;min-height:30px}
#wow-mobile .wow-prof-skill,#wow-mobile .wow-material-wallet{font-size:11px;color:#d0c8ad}
#wow-mobile .wow-material-wallet{border-bottom:1px solid #5b5744;padding-bottom:4px}
#wow-mobile .wow-workshop-body{flex:1;min-height:0;display:flex;flex-direction:column;gap:5px}
#wow-mobile .wow-workshop-list,#wow-mobile .wow-recipe-list{flex:1;min-height:0;overflow-y:auto;background:#0a1514}
#wow-mobile .wow-workshop-note{font-size:11px;color:#c4c7b8}
#wow-mobile .wow-salvage-row{display:flex;align-items:center;gap:7px;padding:4px;border-bottom:1px solid #66705560}
#wow-mobile .wow-salvage-row label{display:flex;align-items:center;gap:8px;flex:1;min-width:0}
#wow-mobile .wow-salvage-row img{width:32px;height:32px;flex-shrink:0}
#wow-mobile .wow-salvage-row input{width:22px;height:22px;flex-shrink:0;accent-color:#c7a056}
#wow-mobile .wow-salvage-row span{min-width:0;overflow-wrap:anywhere}
#wow-mobile .wow-salvage-row small{display:block;font:10px/1.4 system-ui;color:#b8c2b1;white-space:pre-line}
#wow-mobile .wow-workshop-pages{flex:0 0 auto;text-align:center}
#wow-mobile .wow-workshop-message{color:#ffba91;font-size:11px;max-height:35px;overflow:auto;flex:0 0 auto}
#wow-mobile .wow-enchant-layout{display:grid;grid-template-columns:minmax(170px,.8fr) minmax(200px,1.4fr);gap:9px;height:100%;min-height:0}
#wow-mobile .wow-enchant-target{display:flex;flex-direction:column;gap:7px;min-width:0;overflow-y:auto;touch-action:pan-y}
#wow-mobile .wow-enchant-target select{max-width:100%;width:100%;font:12px system-ui;min-height:32px;color:#efe0bc;background:#16211c;border:1px solid #a28d61}
#wow-mobile .wow-enchant-info{white-space:pre-line;color:#b9e5a5;font:12px/1.5 system-ui}
#wow-mobile .wow-recipe{display:flex;flex-direction:column;width:100%;text-align:left;gap:3px;margin-bottom:4px}
#wow-mobile .wow-recipe strong{font:14px Georgia,serif;color:#e4c983}
#wow-mobile .wow-recipe small{font:10px/1.4 system-ui;color:#adb7ac}
#wow-mobile .wow-craft-preview{padding:10px;flex:1;min-height:0;overflow-y:auto}
#wow-mobile .wow-craft-preview p{padding-bottom:7px}
#wow-mobile .wow-enchant-text{color:#8bdb72!important;white-space:pre-line}
@media(max-height:340px){#wow-mobile .wow-workshop{padding:4px;gap:3px}#wow-mobile .wow-workshop-header h2{font-size:14px}#wow-mobile .wow-workshop button{font-size:10px;min-height:26px;padding:3px 7px}#wow-mobile .wow-workshop-note{font-size:10px}}

#wow-mobile .wow-workshop-message:empty{display:none}
#wow-mobile .wow-workshop-pages{margin-left:auto;order:10}
@media(max-height:340px){#wow-mobile .wow-workshop-note{display:none}#wow-mobile .wow-workshop-header h2{display:none}#wow-mobile .wow-workshop-body{min-height:50px}#wow-mobile .wow-workshop-actions{flex-wrap:nowrap}#wow-mobile .wow-workshop-header{min-height:26px}#wow-mobile .wow-prof-skill{max-width:240px;font-size:10px}#wow-mobile .wow-recipe{gap:1px;padding:3px 5px}#wow-mobile .wow-recipe strong{font-size:12px}}
/* Compact, read-only dungeon reference: details are selected, not stacked into one long catalog. */
#wow-mobile .wow-codex-chapters{display:flex;flex-direction:column;gap:3px;padding:0 0 7px;margin-bottom:5px;border-bottom:1px solid #9a8254}
#wow-mobile .wow-codex-chapters button{font-size:11px;min-height:27px;padding:4px 5px}
#wow-mobile .wow-dungeon-codex .wow-codex-page>header{align-items:center;gap:6px}
#wow-mobile .wow-dungeon-filters{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end;min-width:0}
#wow-mobile .wow-dungeon-filters select{width:135px;max-width:100%;min-height:28px;font:11px system-ui;background:#18211c;color:#eee0bf;border:1px solid #8e7950}
#wow-mobile .wow-dungeon-summary{width:100%;border-collapse:collapse;font:12px/1.4 system-ui;color:#d1dacb;table-layout:fixed}
#wow-mobile .wow-dungeon-summary th,#wow-mobile .wow-dungeon-summary td{text-align:left;vertical-align:top;padding:7px 5px;border-bottom:1px solid #6b6b4a}
#wow-mobile .wow-dungeon-summary th:nth-child(1){width:10%}#wow-mobile .wow-dungeon-summary th:nth-child(2){width:36%}#wow-mobile .wow-dungeon-summary th:nth-child(3){width:15%}#wow-mobile .wow-dungeon-summary th:nth-child(4){width:39%}
#wow-mobile .wow-dungeon-summary button{border:0;background:none;color:#efd389;font:14px Georgia,serif;padding:0;min-height:28px;text-align:left}
#wow-mobile .wow-dungeon-summary small{display:block;font:10px/1.4 system-ui;color:#b1bda9;margin-top:3px}
#wow-mobile .wow-dungeon-boss-picker{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:8px}
#wow-mobile .wow-dungeon-boss-picker button{font:11px Georgia,serif;min-height:28px;padding:4px 7px;border-radius:2px}
#wow-mobile .wow-dungeon-codex .wow-codex-tabs button{font-size:12px}
@media(max-width:740px){#wow-mobile .wow-dungeon-summary{font-size:10px}#wow-mobile .wow-dungeon-summary button{font-size:12px}#wow-mobile .wow-dungeon-summary td{padding:5px 3px}#wow-mobile .wow-dungeon-filters select{width:112px;font-size:10px}#wow-mobile .wow-dungeon-codex .wow-codex-page header h2{font-size:15px}}

@media(max-height:340px){#wow-mobile .wow-dungeon-codex .wow-codex-page>header h2{margin:0;font-size:14px;line-height:1.2}#wow-mobile .wow-dungeon-codex .wow-codex-page>header small{display:block;font-size:9px;line-height:1.2}#wow-mobile .wow-dungeon-codex .wow-codex-tabs button{min-height:25px;padding:3px 7px;font-size:11px}}
#wow-mobile .wow-dungeon-codex .wow-codex-tabs{overflow-x:auto;white-space:nowrap;touch-action:pan-x;min-width:0}
#wow-mobile .wow-dungeon-codex .wow-codex-tabs button{flex-shrink:0}
#wow-mobile .wow-run-xp-table{margin-bottom:10px}
#wow-mobile .wow-run-xp-table th:nth-child(1){width:28%}#wow-mobile .wow-run-xp-table th:nth-child(2){width:28%}#wow-mobile .wow-run-xp-table th:nth-child(3){width:22%}#wow-mobile .wow-run-xp-table th:nth-child(4){width:22%}

.wow-location-picker{display:flex;gap:6px;overflow-x:auto;flex:0 0 auto;padding:5px 0;touch-action:pan-x}.wow-location-picker button{flex:0 0 auto;min-height:38px}.wow-location-picker .selected{border-color:#ffd16c;color:#ffe5a5;box-shadow:inset 0 0 10px #c4974238}.wow-location-picker span{min-width:140px;align-self:center;color:#a49c89}.wow-hub-content:has(.wow-location-picker){display:flex;flex-direction:column;min-height:0}.wow-location-picker+.wow-location-grid{min-height:0;overflow-y:auto;touch-action:pan-y;grid-template-columns:1fr}.wow-location-picker+.wow-location-grid .wow-zone-card{min-height:min-content}

/* Locations and workshop share the bounded hub viewport; actions have their own
   grid row. Only the information panes scroll, never under the action buttons. */
#wow-mobile .wow-hub[data-tab=locations] .wow-location-picker{min-height:30px;max-height:34px;padding:0;gap:5px;overflow-x:auto;overflow-y:hidden;align-items:center}
#wow-mobile .wow-hub[data-tab=locations] .wow-location-picker button{font:12px Georgia;min-height:29px;padding:4px 10px;white-space:nowrap}
#wow-mobile .wow-hub[data-tab=locations] .wow-location-grid{flex:1 1 0;height:auto;min-height:0;grid-template-columns:1fr;overflow:hidden}
#wow-mobile .wow-hub[data-tab=locations] .wow-zone-card{height:100%;min-height:0;display:grid;grid-template-columns:minmax(180px,.85fr) minmax(220px,1.3fr);grid-template-rows:minmax(0,1fr) auto;gap:7px 16px;padding:10px;overflow:hidden}
#wow-mobile .wow-hub[data-tab=locations] .wow-zone-title{align-self:stretch;min-width:0;min-height:0;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;scrollbar-gutter:stable}
#wow-mobile .wow-hub[data-tab=locations] .wow-zone-title h2{font-size:24px;margin:2px 0 5px}
#wow-mobile .wow-hub[data-tab=locations] .wow-zone-title small{font-size:9px}
#wow-mobile .wow-hub[data-tab=locations] .wow-zone-facts{min-height:0;min-width:0;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;padding-right:8px;scrollbar-gutter:stable}
#wow-mobile .wow-hub[data-tab=locations] .wow-zone-facts p{font:12px/1.4 system-ui;margin:0 0 8px}
#wow-mobile .wow-hub[data-tab=locations] .wow-zone-facts b{font-size:10px}
#wow-mobile .wow-hub[data-tab=locations] .wow-zone-actions{position:static;grid-column:1/-1;grid-row:2;flex:0 0 auto;min-height:32px;padding:5px 0 0;background:transparent;flex-wrap:nowrap;overflow-x:auto}
#wow-mobile .wow-hub[data-tab=locations] .wow-zone-actions button{flex-shrink:0;min-height:30px;font:12px Georgia;padding:4px 12px;white-space:nowrap}
#wow-mobile .wow-hub[data-tab=professions] .wow-workshop{box-sizing:border-box;flex:1 1 0;min-height:0;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto auto;gap:5px;overflow:hidden}
#wow-mobile .wow-hub[data-tab=professions] .wow-workshop-header{min-height:30px;min-width:0;gap:8px}
#wow-mobile .wow-hub[data-tab=professions] .wow-workshop-header h2{display:none}
#wow-mobile .wow-hub[data-tab=professions] .wow-prof-skill{font:11px/1.35 system-ui;max-width:280px}
#wow-mobile .wow-hub[data-tab=professions] .wow-workshop-tabs{flex-wrap:nowrap;flex-shrink:0}
#wow-mobile .wow-hub[data-tab=professions] .wow-material-wallet{min-width:0;font:11px/1.3 system-ui;white-space:nowrap;overflow-x:auto;min-height:17px}
#wow-mobile .wow-hub[data-tab=professions] .wow-workshop-body{min-height:0;overflow:hidden}
#wow-mobile .wow-hub[data-tab=professions] .wow-enchant-layout{flex:1 1 0;min-height:0;height:100%;grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(170px,.8fr) minmax(230px,1.4fr);overflow:hidden}
#wow-mobile .wow-hub[data-tab=professions] .wow-enchant-target{min-height:0;overflow-y:auto;padding-right:7px;scrollbar-gutter:stable}
#wow-mobile .wow-hub[data-tab=professions] .wow-enchant-target>*{flex-shrink:0}
#wow-mobile .wow-hub[data-tab=professions] .wow-recipe-list{display:block;min-height:0;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;padding-right:7px;scrollbar-gutter:stable}
#wow-mobile .wow-hub[data-tab=professions] .wow-recipe{min-height:48px;height:auto;flex:none;font:12px/1.35 system-ui;padding:5px 8px;gap:2px;border:1px solid #756747;box-sizing:border-box;background:#1b2521}
#wow-mobile .wow-hub[data-tab=professions] .wow-recipe strong{font:13px/1.3 Georgia;white-space:normal}
#wow-mobile .wow-hub[data-tab=professions] .wow-recipe span{font:12px/1.3 system-ui;white-space:normal}
#wow-mobile .wow-hub[data-tab=professions] .wow-recipe small{display:none}
#wow-mobile .wow-hub[data-tab=professions] .wow-recipe[aria-pressed=true]{border-color:#f3cd75;background:#3d3824}
#wow-mobile .wow-hub[data-tab=professions] .wow-workshop-actions{min-height:30px;flex-wrap:nowrap;overflow-x:auto;border-top:1px solid #786b45;padding-top:4px}
#wow-mobile .wow-hub[data-tab=professions] .wow-workshop-actions button{flex-shrink:0;font:12px Georgia;min-height:29px;white-space:nowrap}
@media(max-height:340px){
 #wow-mobile .wow-hub[data-tab=locations] .wow-zone-card{padding:6px;gap:4px 12px}
 #wow-mobile .wow-hub[data-tab=locations] .wow-zone-title h2{font-size:20px;margin:0 0 3px}
 #wow-mobile .wow-hub[data-tab=locations] .wow-zone-title>small,#wow-mobile .wow-hub[data-tab=locations] .wow-zone-title>p:first-of-type{display:none}
 #wow-mobile .wow-hub[data-tab=locations] .wow-zone-facts p{font-size:11px;margin-bottom:5px}
 #wow-mobile .wow-hub[data-tab=professions] .wow-workshop{padding:4px;gap:3px}
 #wow-mobile .wow-hub[data-tab=professions] .wow-prof-skill{display:block;font-size:10px;max-width:210px}
 #wow-mobile .wow-hub[data-tab=professions] .wow-workshop-body{min-height:0}
 #wow-mobile .wow-hub[data-tab=professions] .wow-workshop-header{min-height:27px}
 #wow-mobile .wow-hub[data-tab=professions] .wow-workshop-tabs button{min-height:27px;font-size:11px;padding:3px 7px}
}
#wow-mobile .wow-hub[data-tab=professions] .wow-workshop{grid-template-rows:auto minmax(0,1fr) auto auto}
#wow-mobile .wow-hub[data-tab=professions] .wow-workshop-header>div:first-child{min-width:0;max-width:48%}
#wow-mobile .wow-hub[data-tab=professions] .wow-workshop-header .wow-material-wallet{border:0;padding:0;margin-top:2px;min-height:0;font-size:10px;color:#d7cba5}
#wow-mobile .wow-hub[data-tab=professions] .wow-workshop[data-workshop-tab=recipes] [aria-label="Предмет для чар"]{display:none}
@media(max-height:340px){
 #wow-mobile .wow-hub[data-tab=locations] .wow-zone-title h2{font:18px/20px Georgia;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #wow-mobile .wow-hub[data-tab=locations] .wow-difficulty{margin:3px 0;min-height:24px;font-size:11px}
 #wow-mobile .wow-hub[data-tab=locations] .wow-difficulty select{padding:2px 5px;font:11px/16px system-ui;min-height:24px}
 #wow-mobile .wow-hub[data-tab=locations] .wow-ilvl-entry{font:10px/12px system-ui!important;margin:0!important}
}
/* Horizontal lists must retain horizontal gestures through their menu ancestors. */
#wow-mobile .wow-hub{touch-action:pan-x pan-y}
#wow-mobile .wow-hub-tabs button,#wow-mobile .wow-location-picker button{touch-action:pan-x}

/* Release 32: explicit workshop rows and scoped typography keep body copy out of action rows. */
#wow-mobile .wow-hub[data-tab=professions] .wow-workshop {grid-template-rows:auto minmax(0,1fr) auto auto;isolation:isolate}
#wow-mobile .wow-hub[data-tab=professions] .wow-workshop p {font:12px/1.35 system-ui;margin:0;max-width:none}
#wow-mobile .wow-hub[data-tab=professions] .wow-workshop .wow-workshop-note {display:none}
#wow-mobile .wow-hub[data-tab=professions] .wow-workshop .wow-craft-learning {flex:0 0 auto;color:#c8d9ad;font-size:11px;padding:3px 0}
#wow-mobile .wow-hub[data-tab=professions] .wow-workshop-body {display:flex;flex-direction:column;min-height:0;overflow:hidden}
#wow-mobile .wow-hub[data-tab=professions] .wow-workshop-list {flex:1 1 0;min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-y}
#wow-mobile .wow-hub[data-tab=professions] .wow-workshop .wow-prof-skill {font:12px/1.35 system-ui;color:#e3cf97}
#wow-mobile .wow-hub[data-tab=professions] .wow-workshop .wow-material-wallet {font:10px/1.4 system-ui;white-space:nowrap;overflow-x:auto;max-width:100%}
#wow-mobile .wow-hub[data-tab=professions] .wow-workshop .wow-workshop-message {font:11px/1.35 system-ui;max-height:30px;overflow:auto;color:#d7eab7}
#wow-mobile .wow-hub[data-tab=professions] .wow-workshop-actions {position:relative;background:#101b16;z-index:1;min-height:32px;margin:0}
#wow-mobile .wow-hub[data-tab=professions] .wow-craft-preview p {font:14px/1.45 system-ui;padding-bottom:9px}
#wow-mobile .wow-hub[data-tab=professions] .wow-enchant-layout {grid-template-columns:minmax(180px,1fr) minmax(240px,1.3fr)}
#wow-mobile .wow-hub[data-tab=professions] .wow-enchant-info {font:12px/1.5 system-ui;white-space:pre-line;padding:8px;background:#17261d;border:1px solid #655b3d}
#wow-mobile .wow-dungeon-arrival {position:absolute;inset:0;z-index:80;background:#071015d9;display:grid;place-items:center;pointer-events:auto;padding:35px 15px;box-sizing:border-box}
#wow-mobile .wow-dungeon-arrival[hidden],#wow-mobile .wow-route-guide[hidden]{display:none}
#wow-mobile .wow-dungeon-arrival>div {width:min(480px,80vw);text-align:center;background:#12201ef2;border:2px ridge #b49a60;padding:18px;color:#e9debd}
#wow-mobile .wow-dungeon-arrival h2 {font:25px Georgia;margin:8px 0}
#wow-mobile .wow-dungeon-arrival p {font:14px/1.4 system-ui}
#wow-mobile .wow-dungeon-arrival small {display:block;font:11px/1.4 system-ui;margin:8px}
#wow-mobile .wow-route-guide {position:absolute;left:50%;top:calc(var(--wow-safe-top,0px) + 58px);transform:translateX(-50%);max-width:46%;display:flex;align-items:center;gap:6px;z-index:12;pointer-events:none;font:11px/1.3 system-ui;text-align:center;color:#ffe4a1;text-shadow:0 1px 3px #000}
#wow-mobile .wow-route-guide button {pointer-events:auto;font:12px Georgia;min-height:34px;background:#173e4b;border:2px ridge #95d5e3;padding:5px 12px}
#wow-mobile .wow-route-guide:has(button:not([hidden])) span {display:none}

/* Recipe details use a full readable dialog; selection controls do not scroll away. */
#wow-mobile .wow-hub[data-tab=professions] .wow-enchant-layout {display:flex;flex-direction:column;gap:5px}
#wow-mobile .wow-hub[data-tab=professions] .wow-enchant-target {display:flex;flex:0 0 auto;flex-direction:row;overflow:visible;padding:0;gap:6px}
#wow-mobile .wow-hub[data-tab=professions] .wow-enchant-target select {flex:1 1 0;min-width:0;width:auto;font:12px system-ui;min-height:28px}
#wow-mobile .wow-hub[data-tab=professions] .wow-enchant-info {display:none}
#wow-mobile .wow-hub[data-tab=professions] .wow-recipe-list {display:grid;grid-template-columns:1fr 1fr;align-content:start;gap:5px;flex:1 1 0}
#wow-mobile .wow-hub[data-tab=professions] .wow-recipe {margin:0;text-align:left}
#wow-mobile .wow-hub[data-tab=professions] .wow-craft-modal .wow-item-window {max-height:calc(100dvh - 30px)}
@media(max-height:340px){
 #wow-mobile .wow-hub[data-tab=professions] .wow-enchant-layout {display:grid;grid-template-columns:minmax(170px,.75fr) minmax(240px,1.3fr);grid-template-rows:minmax(0,1fr)}
 #wow-mobile .wow-hub[data-tab=professions] .wow-enchant-target {display:flex;flex-direction:column;overflow-y:auto}
 #wow-mobile .wow-hub[data-tab=professions] .wow-enchant-target select {flex:0 0 28px;width:100%}
 #wow-mobile .wow-hub[data-tab=professions] .wow-recipe-list {grid-template-columns:1fr}
}
/* Avoid Safari's landscape text inflation inside fixed-height game panels. */
#wow-mobile {-webkit-text-size-adjust:100%;text-size-adjust:100%}

/* Interior camera controls and a deliberate, recoverable end-run action. */
.wow-map-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:22px;box-sizing:border-box}
#wow-mobile .wow-end-run{position:absolute;inset:0;z-index:95;background:#050907ec;display:grid;place-items:center;padding:12px}
.wow-end-run>div{max-width:480px;border:2px ridge #bca66e;background:#141d18;padding:18px;color:#f1e2c0}
#wow-mobile .wow-end-run h2{font:22px Georgia;margin:0 0 12px}
#wow-mobile .wow-end-run p{font:14px/1.4 system-ui;margin:10px 0}
.wow-end-run footer{display:flex;justify-content:flex-end;gap:10px}
#wow-mobile .wow-end-run button{font:14px Georgia;min-height:38px}
.wow-end-status{color:#e2b988}
#wow-mobile .wow-route-guide{top:calc(var(--wow-safe-top,0px) + 112px);max-width:40%;font-size:10px}

/* Level ranges organize the catalogue; admission is still checked by equipment. */
#wow-mobile .wow-hub[data-tab=locations] .wow-hub-content{display:flex;overflow:hidden;min-height:0}
.wow-location-catalog{display:grid;grid-template-columns:132px minmax(0,1fr);gap:12px;width:100%;height:100%;min-height:0}
#wow-mobile .wow-location-groups{display:flex;flex-direction:column;gap:5px;overflow-y:auto;min-height:0;touch-action:pan-y;overscroll-behavior:contain;padding:2px 5px 2px 0}
#wow-mobile .wow-location-groups button{flex:none;min-height:42px;padding:6px 9px;text-align:left;font:13px Georgia;touch-action:pan-y}
.wow-location-groups small{display:block;font:10px/1.4 system-ui;color:#bdbba7;margin-top:3px}
.wow-location-results{display:flex;flex-direction:column;min-height:0;min-width:0;gap:6px}
.wow-location-heading{display:flex;flex:none;justify-content:space-between;align-items:center;gap:8px;min-height:28px}
#wow-mobile .wow-location-heading h2{font:19px Georgia;color:#e7cc87;margin:0}
#wow-mobile .wow-location-heading button{font:11px Georgia;min-height:27px;padding:4px 8px;white-space:nowrap}
.wow-location-cards{flex:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:max-content;align-content:start;gap:10px;overflow-y:auto;min-height:0;touch-action:pan-y;overscroll-behavior:contain;padding:2px 5px 5px 2px}
#wow-mobile .wow-dungeon-card{display:flex;flex-direction:column;padding:0;background:#19261ff2;border:1px solid #6b6346;border-radius:4px;overflow:hidden;text-align:left}
.wow-dungeon-card>img{width:100%;height:110px;object-fit:cover;flex:none}
.wow-dungeon-card.selected{border-color:#ebcd84!important}
.wow-dungeon-copy{display:flex;flex-direction:column;gap:5px;padding:10px;flex:1;min-width:0}
#wow-mobile .wow-dungeon-copy h3{font:19px/1.1 Georgia;margin:0;color:#f2d597}
#wow-mobile .wow-dungeon-copy p{font:12px/1.3 system-ui;margin:0;color:#d5ddcb}
.wow-dungeon-copy small{font:10px/1.3 system-ui;color:#b6beae}
#wow-mobile .wow-dungeon-copy button{margin-top:auto;font:12px Georgia;min-height:30px;padding:5px 9px;touch-action:pan-y}
.wow-location-empty{grid-column:1/-1;padding:20px;border:1px dashed #716b4c;color:#c7c7b2;text-align:center}
.wow-location-empty p{font:13px/1.4 system-ui}.wow-location-empty small{font:11px system-ui}
.wow-location-detail{flex:1;min-height:0;display:flex}
#wow-mobile .wow-hub[data-tab=locations] .wow-location-detail .wow-location-grid{width:100%;height:100%}
#wow-mobile .wow-hub[data-tab=locations] .wow-location-detail .wow-zone-card{grid-template-columns:minmax(130px,.85fr) minmax(150px,1.15fr);padding:7px;gap:6px 10px}
#wow-mobile .wow-hub[data-tab=locations] .wow-location-detail .wow-zone-title h2{font-size:20px}
#wow-mobile .wow-hub[data-tab=locations] .wow-location-detail .wow-zone-actions{overflow-x:auto;min-width:0}
@media(max-height:550px){
 .wow-location-cards{grid-template-columns:1fr}
 #wow-mobile .wow-dungeon-card{display:grid;grid-template-columns:105px minmax(0,1fr)}
 .wow-dungeon-card>img{width:100%;height:100%;min-height:105px;object-fit:cover}
 .wow-dungeon-copy{padding:7px 9px;gap:4px}
 #wow-mobile .wow-dungeon-copy h3{font-size:17px}
 #wow-mobile .wow-dungeon-card.without-image{grid-template-columns:1fr}
}
@media(max-height:340px){
 .wow-location-catalog{grid-template-columns:108px minmax(0,1fr);gap:8px}
 #wow-mobile .wow-location-groups button{min-height:36px;font-size:11px;padding:4px 7px}
 #wow-mobile .wow-location-heading h2{font-size:15px}
 .wow-location-heading{min-height:24px}
 #wow-mobile .wow-dungeon-card{grid-template-columns:85px minmax(0,1fr)}
 .wow-dungeon-card>img{min-height:96px}
 #wow-mobile .wow-dungeon-copy h3{font-size:15px}
 #wow-mobile .wow-dungeon-copy p{font-size:11px}
 .wow-location-catalog:has(.wow-location-detail){grid-template-columns:1fr}
 #wow-mobile .wow-location-catalog:has(.wow-location-detail) .wow-location-groups{display:none}
}

#wow-mobile .wow-location-groups button,#wow-mobile .wow-dungeon-copy button,#wow-mobile .wow-location-heading button{border-radius:3px}

/* Hero quests keep one bounded scroll area on short landscape screens. */
.wow-quest-board{height:100%;min-height:0;display:flex;flex-direction:column;gap:8px;padding:10px;background:#101a17e8;border:1px solid #bca66a;overflow:hidden}
.wow-quest-board>header{display:block!important;flex:none!important;padding:0!important}.wow-quest-board h2{font:22px Georgia;margin:0;color:#eed99e}.wow-quest-board header p{font-size:13px;margin:4px 0}
.wow-quest-board>nav{display:flex;gap:8px;flex:none}.wow-quest-list{flex:1;min-height:0;overflow-y:auto;touch-action:pan-y;overscroll-behavior:contain;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:10px;padding:3px}
.wow-quest-card{padding:12px;background:#17221f;border:1px solid #6b6349;min-width:0}.wow-quest-card h3{font:18px Georgia;color:#eed99e;margin:0 0 6px}.wow-quest-card h3 small{display:block;font:13px sans-serif;color:#b7caba;margin-top:4px}.wow-quest-card p{font-size:14px;line-height:1.4;margin:5px 0}.wow-quest-card>small{display:block;color:#aaa}.wow-quest-reward{color:#d6c475}.wow-quest-card button{margin-top:8px;font-size:13px}
@media(max-height:340px){.wow-quest-board{gap:4px;padding:6px}.wow-quest-board h2{font-size:18px}.wow-quest-board header p{font-size:11px}.wow-quest-card{padding:8px}.wow-quest-card p{font-size:12px}}
@media(max-width:550px){.wow-quest-list{grid-template-columns:1fr}}

#wow-mobile .wow-quest-board{box-sizing:border-box;pointer-events:auto}#wow-mobile .wow-quest-board>nav button{font:14px Georgia;min-height:32px;padding:5px 12px;border-radius:2px;touch-action:pan-y}#wow-mobile .wow-quest-card button{min-height:30px;padding:5px 9px;touch-action:pan-y;font-size:12px}
@media(max-height:340px){#wow-mobile .wow-quest-board>header{display:none!important}#wow-mobile .wow-quest-board>nav button{min-height:28px;padding:4px 8px;font-size:12px}}

#wow-mobile .wow-quest-list,#wow-mobile .wow-quest-list *{touch-action:none}
