/* League's Hextech text swatches, from Riot's visual-identity publication.
 * Gold #C8AA6E is also the League download page's live heading color. */
#wb-ui{--wb-hud-text:#f1e7d6;--wb-hud-muted:#dcd6c8;--wb-hud-gold:#c8aa6e;--wb-hud-shadow:#050f19;--wb-army-bottom:12px;--wb-army-height:204px}
/* Central HUD elements share the viewport axis, independent of the side panels. */
#wb-ui :is(#wb-heroes,#wb-round,#wb-shop,#wb-warband,#wb-target,#wb-duel){left:50%!important;right:auto!important}
#wb-ui #wb-heroes{width:min(1640px,calc(100vw - 28px));transform:translateX(-50%)!important;grid-template-columns:repeat(8,minmax(0,1fr))!important;box-sizing:border-box;overflow:visible;padding-bottom:0}
#wb-ui #wb-warband{left:50%!important;right:auto!important;width:min(1050px,calc(100vw - 440px));transform:translateX(-50%)!important;bottom:var(--wb-army-bottom)!important}
#wb-ui.wb-battle #wb-warband{bottom:12px!important}
#wb-ui #wb-warband-cards{justify-content:safe center!important;gap:7px;padding:8px 4px 5px;scroll-padding:4px}
#wb-ui #wb-shop #wb-shop-cards{justify-content:safe center}
#wb-ui .wb-warband-heading{justify-content:center!important;margin:0 0 2px;gap:6px}
#wb-ui .wb-warband-heading h2{font:14px WarbandFriz,Georgia,serif;color:var(--wb-hud-text);text-shadow:0 1px 2px #050f19,1px 1px 1px #000}
#wb-ui .wb-warband-heading h2 small{font:12px Arial,sans-serif;color:var(--wb-hud-muted);margin-left:6px}
#wb-ui #wb-synergies{display:none!important}

#wb-ui #wb-duel{top:calc(var(--wb-header-bottom) + 6px);width:min(460px,calc(100vw - 500px));max-width:none;border:0!important;border-image:none!important;background:none!important;box-shadow:none!important;padding:0!important;border-radius:0}
#wb-ui #wb-duel-names,#wb-ui #wb-duel-values{display:flex;justify-content:space-between;gap:30px;color:var(--wb-hud-text);text-shadow:0 1px 2px #050f19,1px 1px 1px #000}
#wb-ui #wb-duel-names{font:11px Arial,sans-serif;line-height:15px}
#wb-ui #wb-duel-names>span{max-width:48%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#wb-ui #wb-duel-names>span:last-child{text-align:right}
#wb-ui #wb-duel-values{font:18px Arial,sans-serif;font-variant-numeric:tabular-nums}
#wb-ui .wb-duel-own{color:#bce9e1}#wb-ui .wb-duel-enemy{color:#f4b7b4}
#wb-ui .wb-duel-meter{height:5px;margin:4px 0;border:1px solid #050f19;box-shadow:0 1px 3px #050f19;background:#be4a56}
#wb-ui .wb-duel-meter i{background:#3ca99a}

#wb-ui #wb-squads-left,#wb-ui.wb-has-target #wb-squads-left{top:calc(var(--wb-map-bottom) + 8px)!important;left:14px;width:174px;max-height:max(0px,calc(100vh - var(--wb-map-bottom) - 32px));overflow-y:auto}
#wb-ui #wb-squads-right{top:calc(var(--wb-map-bottom) + 8px);right:14px;width:var(--wb-map-width);max-height:calc(100vh - var(--wb-map-bottom) - 32px)}
#wb-ui .wb-squads{gap:4px;background:none;border:0;scrollbar-width:thin;scrollbar-color:#87908d transparent}
#wb-ui .wb-squads>.wb-squad-summary{display:grid;grid-template-columns:22px 29px minmax(0,1fr) 28px;align-items:center;gap:4px;min-height:28px;padding:1px 0!important;border:0!important;border-image:none!important;background:none!important;box-shadow:none!important;color:var(--wb-hud-text);font:10px Arial,sans-serif;line-height:12px;text-shadow:0 1px 2px #050f19,1px 1px 1px #000}
#wb-ui .wb-squad-summary img{width:22px;height:22px;border:1px solid #87908d;box-sizing:border-box;object-fit:cover}
#wb-ui .wb-squad-tier{font:9px/12px Arial,sans-serif;white-space:nowrap;color:var(--wb-hud-gold);font-variant-numeric:tabular-nums}
#wb-ui .wb-squad-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#wb-ui .wb-squad-alive{font:15px Arial,sans-serif;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;min-width:3ch;color:#bce9e1}
#wb-ui #wb-squads-right .wb-squad-alive{color:#f4b7b4}

/* Compact selection stays attached to the army; the unit frame exposes details on hover. */
#wb-ui #wb-target{position:absolute;left:50%!important;top:auto!important;bottom:calc(var(--wb-army-bottom) + var(--wb-army-height) + 10px);width:232px;transform:translateX(-50%) scale(1.25)!important;transform-origin:bottom center}
#wb-ui #wb-target-effects{max-height:none!important;overflow:visible;gap:3px}
#wb-ui #wb-card-panel{background:#050f19f2!important;color:var(--wb-hud-text)!important;border-image-slice:7%!important;padding:12px!important;width:300px!important;font:11px Arial,sans-serif}
#wb-ui #wb-card-panel h3{color:var(--wb-hud-gold);font-size:16px!important}
#wb-ui #wb-card-panel p,#wb-ui #wb-card-panel small,#wb-ui #wb-card-panel label{font-size:11px!important;line-height:1.3;color:var(--wb-hud-muted)!important}
@media(max-width:1100px){#wb-ui #wb-warband{width:calc(100vw - 382px)}#wb-ui #wb-squads-left{width:158px}#wb-ui #wb-duel{width:330px;max-width:calc(100vw - 400px)}}

/* One compact countdown directly above the two duel values. */
#wb-ui #wb-round{left:50%!important;right:auto!important;top:calc(var(--wb-header-bottom) + 4px)!important;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;width:82px!important;gap:1px;padding:0;background:none;border:0}
#wb-ui #wb-timer{order:0;width:44px!important;height:44px!important;margin:0!important;position:relative!important;left:auto!important;top:auto!important;right:auto!important}
#wb-ui #wb-clock{font:19px Arial,sans-serif!important;line-height:44px!important}
#wb-ui #wb-round-number{order:1;font:11px Arial,sans-serif!important;line-height:14px;color:var(--wb-hud-text)}
#wb-ui #wb-buff{display:none!important}
#wb-ui #wb-duel{top:calc(var(--wb-header-bottom) + 70px)!important}
#wb-ui #wb-shop{top:calc(var(--wb-header-bottom) + 76px)!important}
#wb-faction-save-status:empty{display:none}

/* Compact recruits leave room for the army dock on short screens. */
@media(max-height:820px){
 #wb-ui #wb-shop button.wb-card,#wb-ui #wb-shop .wb-empty-card{height:192px!important;min-height:192px!important}
 #wb-ui #wb-shop .wb-card-name{min-height:32px!important}
}

/* Selling stays beside the army rather than behind the portrait. */
#wb-ui #wb-sell-squad{display:flex;align-items:center;gap:10px;margin-left:12px;padding:5px 12px;font:12px Arial,sans-serif;color:#edc99b;min-height:28px}
#wb-ui #wb-sell-squad[hidden],#wb-ui #wb-sell-zone[hidden]{display:none}
#wb-sell-squad span{display:flex;align-items:center;gap:4px}#wb-sell-squad img,#wb-sell-zone img{width:20px;height:20px;object-fit:contain}
#wb-sell-zone{position:absolute;right:0;top:-46px;padding:8px 12px;border:1px dashed #ad9366;border-radius:4px;background:#251b12e8;color:#eed6a9;display:none;align-items:center;gap:8px;font:12px Arial,sans-serif}
.wb-dragging #wb-sell-zone{display:flex}#wb-sell-zone.wb-drop-target{background:#763923;border-color:#f2b77b}
#wb-ui .wb-hero-ready{position:absolute;right:6px;top:5px;color:#8dd989;font:700 17px Arial,sans-serif;text-shadow:0 1px 3px #112410}

/* The compact slider is inside the measured minimap, keeping both army lists aligned. */
#wb-ui #wb-camera-views:not([hidden]){display:grid;--wb-camera-reset-size:24px;grid-template-columns:var(--wb-camera-reset-size) minmax(0,1fr) var(--wb-camera-reset-size);align-items:center;gap:5px;margin-top:4px}
#wb-ui #wb-camera-views[hidden]{display:none}
#wb-ui .wb-camera-slider{grid-column:2;min-width:0}
#wb-ui #wb-camera-rotation{display:block;width:100%;min-width:0;height:20px;margin:0;transform:translateY(2px);padding:0!important;border:0!important;background:transparent!important;appearance:none;-webkit-appearance:none;touch-action:pan-y}
#wb-ui #wb-camera-rotation::-webkit-slider-runnable-track{height:3px;border:1px solid #806b42;border-radius:2px;background:#382c1d}
#wb-ui #wb-camera-rotation::-moz-range-track{height:3px;border:1px solid #806b42;border-radius:2px;background:#382c1d;box-sizing:border-box}
#wb-ui #wb-camera-rotation::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:9px;height:9px;margin-top:-4px;border:1px solid #f1d18a;border-radius:50%;background:#c6a253;cursor:inherit}
#wb-ui #wb-camera-rotation::-moz-range-thumb{width:9px;height:9px;border:1px solid #f1d18a;border-radius:50%;background:#c6a253;box-sizing:border-box;cursor:inherit}
#wb-ui .wb-camera-label{display:block;width:calc(100% + 2 * (var(--wb-camera-reset-size) + 5px));margin-left:calc(-1 * (var(--wb-camera-reset-size) + 5px));text-align:center;color:var(--wb-hud-muted);font:10px/11px Arial,sans-serif;text-shadow:0 1px 2px #000}
#wb-ui#wb-ui #wb-minimap #wb-camera-views button.wb-owner-button.wb-owner-button{top:-2px;--rb-h:20px!important;--edge:8px;--pad:2px!important;width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;font:11px/1.1 WarbandFriz,Georgia,serif!important;letter-spacing:0!important}
#wb-ui .wb-camera-reset-icon{display:block;width:18px;height:18px;background:#ffd100;mask:url('./skin/settings-reset.png?art=688bb1f1a77c11d8') center/contain no-repeat;-webkit-mask:url('./skin/settings-reset.png?art=688bb1f1a77c11d8') center/contain no-repeat;pointer-events:none}
.wb-mobile-layout #wb-ui #wb-camera-views:not([hidden]){--wb-camera-reset-size:44px}
.wb-mobile-layout #wb-ui #wb-camera-rotation{height:44px}
body.wb-mobile-layout #wb-ui#wb-ui #wb-minimap #wb-camera-views button.wb-owner-button.wb-owner-button{--rb-h:44px!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}
