/* Owner-supplied UI art (qa/prepare-owner-ui-art.py; provenance in qa/verification-current/owner-ui-art.json).
   Loaded last by shell.html. Tier pennants replace the "Tier N" block on cards, the gold spiked ring frames
   the three faction slots, and .wb-owner-button is a reusable button kept for review (not used in game yet). */

/* Tier text labels (tooltips) follow the same per-tier colours as the pennants. */
[data-tier='1']{--wb-tier-top:#747980;--wb-tier-bottom:#393d44;--wb-tier-edge:#c1c5ce}
[data-tier='2']{--wb-tier-top:#4f7a3a;--wb-tier-bottom:#26401c;--wb-tier-edge:#9cc77d}
[data-tier='3']{--wb-tier-top:#2458a8;--wb-tier-bottom:#112a57;--wb-tier-edge:#7fb0ff}
[data-tier='4']{--wb-tier-top:#7a3aa8;--wb-tier-bottom:#3a1655;--wb-tier-edge:#c592ec}
[data-tier='5']{--wb-tier-top:#b5620c;--wb-tier-bottom:#5c2c04;--wb-tier-edge:#ffb357}
[data-tier='6']{--wb-tier-top:#ad2a17;--wb-tier-bottom:#56110a;--wb-tier-edge:#ff7a5c}

/* ---- Tier pennants --------------------------------------------------------------------------- */
.wb-tier-banner[data-banner='grey']{--wb-banner-art:url('./skin/owner-ui/banner-grey.png?art=8429464111ac4a9f')}
.wb-tier-banner[data-banner='green']{--wb-banner-art:url('./skin/owner-ui/banner-green.png?art=dbf2bdbe49191dcd')}
.wb-tier-banner[data-banner='blue']{--wb-banner-art:url('./skin/owner-ui/banner-blue.png?art=37623e66c3c378cf')}
.wb-tier-banner[data-banner='purple']{--wb-banner-art:url('./skin/owner-ui/banner-purple.png?art=3c86c120bdf951d7')}
.wb-tier-banner[data-banner='orange']{--wb-banner-art:url('./skin/owner-ui/banner-orange.png?art=a8676a64897624ba')}
.wb-tier-banner[data-banner='red']{--wb-banner-art:url('./skin/owner-ui/banner-red.png?art=113950dad3a4dbdc')}
.wb-tier-banner{
 position:relative;display:block;box-sizing:border-box;width:31px;height:34px;
 background:var(--wb-banner-art) center/100% 100% no-repeat;filter:drop-shadow(0 2px 1.5px #000c);
}
:is(#wb-ui,#wb-lobby,.wb-owner-ui-sample) .wb-tier-badge.wb-tier-banner{
 width:31px;height:34px;padding:0!important;border:0!important;border-radius:0!important;
 background:var(--wb-banner-art) center/100% 100% no-repeat!important;box-shadow:none!important;
 color:#fff!important;text-shadow:none;filter:drop-shadow(0 2px 1.5px #000c);
}
.wb-tier-banner .wb-tier-numeral{
 position:absolute;left:0;right:0;top:24%;display:block;height:auto!important;margin:0!important;text-align:center;
 font:700 var(--wb-tier-numeral-size,17px)/1 WarbandFriz,Georgia,serif!important;color:#fff!important;letter-spacing:0;
 text-shadow:0 0 2px #000,1px 1px 0 #000,-1px 1px 0 #000,1px -1px 0 #000,-1px -1px 0 #000,0 2px 2px #000;
}
#wb-ui #wb-warband .wb-tier-badge.wb-tier-banner,
#wb-ui #wb-barracks .wb-tier-badge.wb-tier-banner{width:26px;height:29px}
#wb-ui :is(#wb-warband,#wb-barracks) .wb-tier-banner{--wb-tier-numeral-size:15px}
#wb-lobby #wb-faction-library .wb-library-card .wb-tier-badge.wb-tier-banner{left:-7px;top:-8px;width:31px;height:34px}
.wb-mobile-layout #wb-ui :is(#wb-shop,#wb-warband) .wb-tier-badge.wb-tier-banner{width:27px!important;height:30px}
.wb-mobile-layout #wb-ui :is(#wb-shop,#wb-warband) .wb-tier-banner{--wb-tier-numeral-size:16px}

/* ---- Gold ring around the three faction slots ------------------------------------------------ */
.wb-owner-ring{position:relative;display:grid;place-items:center;flex:none;width:62px;height:62px;margin:-5px 0}
.wb-owner-ring::after{
 content:'';position:absolute;inset:0;z-index:3;pointer-events:none;
 background:url('./skin/owner-ui/gold-ring.png?art=0ec55a3b3c7b3f8c') center/100% 100% no-repeat;
 filter:drop-shadow(0 2px 2px #000a);transition:filter .14s;
}
#wb-lobby #wb-faction-slots .wb-owner-ring>:is(.wb-faction-crest,.wb-empty-slot),
.wb-owner-ring>:is(.wb-faction-crest,.wb-empty-slot){
 width:46px!important;height:46px!important;margin:0!important;border:0!important;outline:0!important;
 border-radius:50%;box-shadow:none!important;background:#0e0c09;
}
.wb-owner-ring>.wb-empty-slot{display:grid;place-items:center;font:26px/1 Georgia,serif;color:#9b8862}
/* The gold ring replaces the stock crest rim inside the slot. */
#wb-lobby .wb-owner-ring>.wb-faction-crest::after{content:none}
.wb-owner-ring[data-ring-state='empty']::after{filter:saturate(.3) brightness(.6) drop-shadow(0 2px 2px #000a)}
.wb-draft-slot-target:is(:hover,:focus-visible) .wb-owner-ring::after{filter:brightness(1.12) drop-shadow(0 2px 2px #000a)}
.wb-draft-slot-target:is(:hover,:focus-visible) .wb-owner-ring[data-ring-state='empty']::after{filter:saturate(.55) brightness(.8) drop-shadow(0 2px 2px #000a)}
/* The selected roster slot is no longer haloed (owner, 2026-10-13); its gold label still marks it. */
.wb-draft-slot-active .wb-owner-ring::after{filter:brightness(1.08) drop-shadow(0 2px 2px #000a)}
.wb-draft-slot-active .wb-owner-ring[data-ring-state='empty']::after{filter:saturate(.75) brightness(1) drop-shadow(0 2px 2px #000a)}
.wb-draft-slot-active .wb-owner-ring>.wb-empty-slot{color:#eed391}
:is(.wb-drop-hover,.wb-dragging-faction .wb-draft-slot:hover) .wb-owner-ring::after{filter:brightness(1.1) drop-shadow(0 0 3px #75c9ff) drop-shadow(0 0 8px #4cb5ff)}
.wb-faction-account-locked .wb-owner-ring::after,
.wb-owner-ring[data-ring-state='locked']::after{filter:grayscale(1) brightness(.62) drop-shadow(0 2px 2px #000a)}
.wb-faction-account-locked .wb-owner-ring>.wb-faction-crest,
.wb-owner-ring[data-ring-state='locked']>.wb-faction-crest{filter:grayscale(1) brightness(.7)}
#wb-lobby #wb-faction-slots .wb-draft-slot{height:114px!important;min-height:114px!important}
@media(max-height:760px){
 #wb-lobby #wb-faction-slots .wb-draft-slot{height:106px!important;min-height:106px!important}
 #wb-lobby #wb-faction-slots .wb-owner-ring{width:56px;height:56px;margin:-4px 0}
 #wb-lobby #wb-faction-slots .wb-owner-ring>:is(.wb-faction-crest,.wb-empty-slot){width:41px!important;height:41px!important}
}
/* Touch layout: the full-width Remove bar sits below the ring and name instead of covering them. */
.wb-mobile-layout #wb-lobby #wb-faction-slots .wb-draft-slot{height:154px!important;min-height:154px!important}
.wb-mobile-layout #wb-lobby #wb-faction-slots .wb-draft-slot.wb-filled .wb-draft-slot-target{height:110px}
.wb-mobile-layout #wb-lobby #wb-faction-slots .wb-draft-slot-clear{
 isolation:isolate;left:4px!important;right:4px!important;width:auto!important;bottom:2px!important;
 background:none!important;border:0!important;color:#ece6d6!important;font:13px/1 WarbandFriz,Georgia,serif!important;text-shadow:0 1px 0 #000,0 0 3px #000;
}
.wb-mobile-layout #wb-lobby #wb-faction-slots .wb-draft-slot-clear::before{
 content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;border:solid transparent;border-width:0 19px;
 border-image:url('./skin/owner-ui/iron-pill.png?art=568edfbf69a5e96e') 34 40 35 40 fill / 50% 19px stretch;
}
.wb-mobile-layout #wb-lobby #wb-faction-slots .wb-draft-slot-clear:active::before{filter:brightness(.84)}
.wb-mobile-layout #wb-lobby #wb-faction-slots .wb-owner-ring{width:62px;height:62px;margin:-5px 0}
.wb-mobile-layout #wb-lobby #wb-faction-slots .wb-owner-ring>:is(.wb-faction-crest,.wb-empty-slot){width:46px!important;height:46px!important}
@media(prefers-reduced-motion:reduce){.wb-owner-ring::after{transition:none}}

/* ---- Owner-art buttons: wood (primary), parchment (secondary), iron pill (tertiary) ----------
   Applied to real game buttons. The doubled-id :is() gives the component enough weight to replace each
   button's older paint (background, border art, colours, font) while the button keeps its own layout
   (width, margins, position), ids, data-action hooks and states. Sizes: --small, default, --large.
   .is-hover/.is-pressed/.is-focus pin a state for the review page. */
.wb-owner-button:is(#wb-ob#wb-ob#wb-ob#wb-ob,.wb-owner-button){
 --edge:13px;--cap:23px;--pad:22px;--wb-owner-button-filter:none;
 isolation:isolate;align-items:center!important;justify-content:center!important;align-content:center!important;gap:7px;
 box-sizing:border-box!important;min-height:44px!important;min-width:44px;padding:0 var(--pad)!important;
 border:0!important;border-image:none!important;border-radius:6px!important;background:none!important;box-shadow:none!important;
 color:#f6e3b4!important;font:15px/1.12 WarbandFriz,Georgia,serif!important;font-weight:400!important;letter-spacing:.3px!important;
 text-transform:none!important;text-align:center!important;text-decoration:none!important;
 text-shadow:0 1px 0 #000,0 0 3px #000!important;opacity:1;cursor:pointer;user-select:none;-webkit-user-select:none;
 touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:color .12s,translate .06s;
}
/* Display stays the context's (some layouts hide or stack buttons); flex is only the default, and
   align-content centres the label when a context keeps block display. */
.wb-owner-button:not([hidden]){display:inline-flex}
/* Positioned for the art layer; a context that places the button absolutely keeps that. */
.wb-owner-button{position:relative}
.wb-owner-button:is(#wb-ob#wb-ob#wb-ob#wb-ob,.wb-owner-button)::before{
 content:''!important;display:block!important;position:absolute!important;inset:0!important;z-index:-1!important;
 width:auto!important;height:auto!important;margin:0!important;pointer-events:none!important;box-sizing:border-box!important;
 border:var(--edge) solid transparent!important;border-radius:0!important;
 border-image:var(--wb-owner-button-art) 46 fill / var(--edge-y,var(--edge)) var(--edge) stretch!important;
 background:none!important;box-shadow:none!important;opacity:1!important;transform:none!important;
 filter:var(--wb-owner-button-filter)!important;transition:filter .12s;
}
.wb-owner-button:is(#wb-ob#wb-ob#wb-ob#wb-ob,.wb-owner-button).wb-owner-button--wood{--wb-owner-button-art:url('./skin/owner-ui/wood-panel.png?art=0fccc7c210489f95')}
.wb-owner-button:is(#wb-ob#wb-ob#wb-ob#wb-ob,.wb-owner-button).wb-owner-button--parchment{
 --wb-owner-button-art:url('./skin/owner-ui/parchment-panel.png?art=e2cd796251b9794f');
 --edge-y:calc(var(--edge) - 3px);min-height:46px!important;color:#22140a!important;text-shadow:0 1px 0 #f6e6c299!important;
 /* Brightened so dark text keeps at least 4.5:1 contrast on the tan interior. */
 --wb-owner-button-filter:brightness(1.25);
}
.wb-owner-button:is(#wb-ob#wb-ob#wb-ob#wb-ob,.wb-owner-button).wb-owner-button--iron{--pad:24px;min-height:40px!important;color:#ece6d6!important}
.wb-owner-button:is(#wb-ob#wb-ob#wb-ob#wb-ob,.wb-owner-button).wb-owner-button--iron::before{
 border-width:0 var(--cap)!important;
 border-image:url('./skin/owner-ui/iron-pill.png?art=568edfbf69a5e96e') 34 40 35 40 fill / 50% var(--cap) stretch!important;
}
.wb-owner-button:is(#wb-ob#wb-ob#wb-ob#wb-ob,.wb-owner-button).wb-owner-button--small{--edge:10px;--cap:19px;--pad:16px;min-height:34px!important;font-size:13px!important}
.wb-owner-button:is(#wb-ob#wb-ob#wb-ob#wb-ob,.wb-owner-button).wb-owner-button--parchment.wb-owner-button--small{min-height:36px!important}
.wb-owner-button:is(#wb-ob#wb-ob#wb-ob#wb-ob,.wb-owner-button).wb-owner-button--iron.wb-owner-button--small{--pad:20px;min-height:32px!important}
.wb-owner-button:is(#wb-ob#wb-ob#wb-ob#wb-ob,.wb-owner-button).wb-owner-button--large{--edge:16px;--cap:29px;--pad:30px;min-height:56px!important;font-size:19px!important}
.wb-owner-button:is(#wb-ob#wb-ob#wb-ob#wb-ob,.wb-owner-button).wb-owner-button--parchment.wb-owner-button--large{min-height:58px!important}
.wb-owner-button:is(#wb-ob#wb-ob#wb-ob#wb-ob,.wb-owner-button).wb-owner-button--iron.wb-owner-button--large{--pad:36px;min-height:50px!important}
.wb-owner-button:is(#wb-ob#wb-ob#wb-ob#wb-ob,.wb-owner-button):is(:hover,.is-hover):not(:disabled,[aria-disabled='true']){--wb-owner-button-filter:brightness(1.14) saturate(1.06);color:#fff3cf!important}
.wb-owner-button:is(#wb-ob#wb-ob#wb-ob#wb-ob,.wb-owner-button).wb-owner-button--parchment:is(:hover,.is-hover):not(:disabled,[aria-disabled='true']){--wb-owner-button-filter:brightness(1.38) saturate(1.05);color:#120a03!important}
.wb-owner-button:is(#wb-ob#wb-ob#wb-ob#wb-ob,.wb-owner-button):is(:active,.is-pressed):not(:disabled,[aria-disabled='true']){--wb-owner-button-filter:brightness(.84);translate:0 1px}
/* Toggle buttons (tier filters, room filters): the chosen one glows gold. */
.wb-owner-button:is(#wb-ob#wb-ob#wb-ob#wb-ob,.wb-owner-button):is([aria-pressed='true'],.is-selected){--wb-owner-button-filter:brightness(1.2) drop-shadow(0 0 2px #f2c25a);color:#ffd36a!important}
/* Freeze keeps the metal texture clean: a gold alpha glow catches its internal slice seams. */
.wb-owner-button:is(#wb-ob#wb-ob#wb-ob#wb-ob,.wb-owner-button)#wb-freeze[aria-pressed='true']{--wb-owner-button-filter:brightness(1.15)}
.wb-owner-button:is(#wb-ob#wb-ob#wb-ob#wb-ob,.wb-owner-button).wb-owner-button--parchment:is(:active,.is-pressed):not(:disabled,[aria-disabled='true']){--wb-owner-button-filter:brightness(1.08)}
.wb-owner-button:is(#wb-ob#wb-ob#wb-ob#wb-ob,.wb-owner-button).wb-owner-button--parchment:is([aria-pressed='true'],.is-selected){--wb-owner-button-filter:brightness(1.4) drop-shadow(0 0 2px #f2c25a);color:#4a2a00!important}
.wb-owner-button:is(#wb-ob#wb-ob#wb-ob#wb-ob,.wb-owner-button):is(:focus-visible,.is-focus){outline:2px solid #f2c25a!important;outline-offset:3px!important;box-shadow:0 0 0 5px #f2c25a2e,0 0 12px #f2c25a73!important}
.wb-owner-button:is(#wb-ob#wb-ob#wb-ob#wb-ob,.wb-owner-button):is(:disabled,[aria-disabled='true']){
 --wb-owner-button-filter:grayscale(.85) brightness(.66);cursor:not-allowed;color:#a59d8b!important;text-shadow:0 1px 0 #000!important;
}
.wb-owner-button:is(#wb-ob#wb-ob#wb-ob#wb-ob,.wb-owner-button).wb-owner-button--parchment:is(:disabled,[aria-disabled='true']){--wb-owner-button-filter:grayscale(.85) brightness(.92);color:#4f493f!important;text-shadow:none!important}
.wb-owner-button:is(#wb-ob#wb-ob#wb-ob#wb-ob,.wb-owner-button)>img:not(.wb-currency-icon){width:20px;height:20px;flex:none}
/* Touch layouts keep 44px targets for every size. */
:is(.wb-mobile-layout,.wb-touch-input) .wb-owner-button:is(#wb-ob#wb-ob#wb-ob#wb-ob#wb-ob,.wb-owner-button){min-height:44px!important}
.wb-mobile-layout .wb-owner-button:is(#wb-ob#wb-ob#wb-ob#wb-ob#wb-ob,.wb-owner-button).wb-owner-button--large{--edge:13px;--cap:23px;--pad:16px;font-size:16px!important}
@media(prefers-reduced-motion:reduce){.wb-owner-button:is(#wb-ob#wb-ob#wb-ob#wb-ob,.wb-owner-button),.wb-owner-button:is(#wb-ob#wb-ob#wb-ob#wb-ob,.wb-owner-button)::before{transition:none}}

/* Ready and Level Up use the owner's red/gold button (qa/prepare-ready-button.py): each state is a left
   cap, a 64px-periodic centre and a right cap. The button's own border-image is the 9-slice, so the
   chamfered caps keep their shape at any width while the centre and rims tile; --u is one atlas pixel
   (button height / 130). ::before carries the supplied red mouse-over light between the rims. */
.wb-owner-button:is(#wb-ob#wb-ob#wb-ob#wb-ob,.wb-owner-button).wb-owner-button--ready{
 --rb-h:44px;--u:calc(var(--rb-h) / 130);--pad:calc(44 * var(--u) + 6px);--wb-owner-button-filter:none;
 --wb-ready-art:url('./skin/owner-ui/ready-normal.png?art=dfd274382288c3d0');
 min-height:var(--rb-h)!important;min-width:calc(250 * var(--u));translate:none;border:0 solid transparent!important;border-radius:calc(14 * var(--u))!important;
 border-image:var(--wb-ready-art) 30 76 30 80 fill / calc(30 * var(--u)) calc(76 * var(--u)) calc(30 * var(--u)) calc(80 * var(--u)) round stretch!important;
 color:#ffd100!important;text-shadow:0 1px 0 #000,0 0 3px #000,0 0 6px #2a0000!important;
}
.wb-owner-button:is(#wb-ob#wb-ob#wb-ob#wb-ob,.wb-owner-button).wb-owner-button--ready.wb-owner-button--small{--rb-h:34px}
.wb-owner-button:is(#wb-ob#wb-ob#wb-ob#wb-ob,.wb-owner-button).wb-owner-button--ready.wb-owner-button--large{--rb-h:56px}
:is(.wb-mobile-layout,.wb-touch-input) .wb-owner-button:is(#wb-ob#wb-ob#wb-ob#wb-ob,.wb-owner-button).wb-owner-button--ready:is(#wb-ob,.wb-owner-button){--rb-h:44px}
.wb-owner-button:is(#wb-ob#wb-ob#wb-ob#wb-ob,.wb-owner-button).wb-owner-button--ready::before{
 inset:calc(24 * var(--u)) calc(30 * var(--u))!important;border:0!important;border-image:none!important;
 background:url('./skin/owner-ui/ready-glow.png?art=5b6171bb32ad6d09') center/100% 100% no-repeat!important;
 filter:none!important;mix-blend-mode:screen;opacity:0!important;transition:opacity .18s ease-out!important;
}
.wb-owner-button:is(#wb-ob#wb-ob#wb-ob#wb-ob,.wb-owner-button).wb-owner-button--ready:is(:hover,.is-hover):not(:disabled,[aria-disabled='true']){color:#ffe36a!important}
.wb-owner-button:is(#wb-ob#wb-ob#wb-ob#wb-ob,.wb-owner-button).wb-owner-button--ready:is(:hover,.is-hover):not(:disabled,[aria-disabled='true'])::before{opacity:1!important;transition-duration:.12s!important}
.wb-owner-button:is(#wb-ob#wb-ob#wb-ob#wb-ob,.wb-owner-button).wb-owner-button--ready:is(:active,.is-pressed):not(:disabled,[aria-disabled='true']){
 --wb-ready-art:url('./skin/owner-ui/ready-pressed.png?art=e8bb646b85d76562');translate:none;color:#f2c200!important;
}
.wb-owner-button:is(#wb-ob#wb-ob#wb-ob#wb-ob,.wb-owner-button).wb-owner-button--ready:is(:active,.is-pressed):not(:disabled,[aria-disabled='true'])::before{opacity:.55!important}
.wb-owner-button:is(#wb-ob#wb-ob#wb-ob#wb-ob,.wb-owner-button).wb-owner-button--ready:is(:disabled,[aria-disabled='true']){
 --wb-ready-art:url('./skin/owner-ui/ready-disabled.png?art=a60c8bea094b2b39');color:#a3a3a3!important;text-shadow:0 1px 0 #000,0 0 3px #000!important;
}
.wb-owner-button:is(#wb-ob#wb-ob#wb-ob#wb-ob,.wb-owner-button).wb-owner-button--ready:is(:disabled,[aria-disabled='true']) .wb-upgrade-cost{color:inherit}
@media(prefers-reduced-motion:reduce){.wb-owner-button:is(#wb-ob#wb-ob#wb-ob#wb-ob,.wb-owner-button).wb-owner-button--ready::before{transition:none!important}}

/* 2026-10-12 owner: the pennant sits inside the card's corner so a sliver of the card shows beside it. */
:is(#wb-ui,.wb-owner-ui-sample) .wb-tier-badge.wb-tier-banner,
.sample-card .wb-tier-badge.wb-tier-banner,
#wb-lobby #wb-faction-library .wb-library-card .wb-tier-badge.wb-tier-banner{left:6px}
#wb-ui #wb-barracks button.wb-card[data-card='barracks']>.wb-card-top .wb-tier-badge.wb-tier-banner{left:auto;right:6px}
