/* Find Match: the big Find Match button, its menu, queue box, Match Found and the ally pick (find-match.mjs).
   Art is derived from the owner's UI folders by qa/prepare-play-flow-art.py; the frame is a nine-slice
   gold line with a dark inside, recoloured from the source's neon yellow. */
:root{
 --wb-fm-frame:url('./skin/play-flow/frame-gold.png?art=6a781f2f6cdf9c9b');
 --wb-fm-divider:url('./skin/play-flow/divider.png?art=cad47a8b6d4e8fbe');
 --wb-fm-ring:url('./skin/play-flow/ring-grey.png?art=4aaca6ff3c136b98');
 --wb-fm-runes:url('./skin/play-flow/runes.png?art=19740f1348a45aa2');
 --wb-fm-swords:url('./skin/play-flow/emblem.png?art=c9d3d6c93edcc9e7');
 --wb-fm-burst:url('./skin/play-flow/burst.png?art=bc189a2fd0826b81');
 --wb-fm-fig-player:url('./skin/play-flow/fig-player.png?art=4070f4fd7d457ac1');
 --wb-fm-fig-grey:url('./skin/play-flow/fig-grey.png?art=ddc392cc4b1c178b');
 --wb-fm-grp:url('./skin/play-flow/grp-gold.png?art=f3690ddcc53d2902');
 --wb-fm-solo-gold:url('./skin/play-flow/solo-gold.png?art=b715b67d0580053c');
 --wb-fm-solo-grey:url('./skin/play-flow/solo-grey.png?art=ff934ba70e1fb990');
 --wb-fm-duo-gold:url('./skin/play-flow/duo-gold.png?art=abd901804ccb84b9');
 --wb-fm-duo-grey:url('./skin/play-flow/duo-grey.png?art=278268fcb339b66b');
 --wb-fm-group-gold:url('./skin/play-flow/group-gold.png?art=71e8412feef89d48');
 --wb-fm-group-grey:url('./skin/play-flow/group-grey.png?art=4deccc372130cd37');
 --wb-fm-bar-frame:url('./skin/play-flow/bar-frame.png?art=971fb4a9f38c6062');
 --wb-fm-bar-track:url('./skin/play-flow/bar-track.png?art=3d0fb2c612357eae');
 --wb-fm-bar-astral:url('./skin/play-flow/bar-astral.png?art=287cf9867123e0b5');
 --wb-fm-bar-astral-tip:url('./skin/play-flow/bar-astral-tip.png?art=cb53956d4d1ccfe0');
 --wb-fm-bar-gold:url('./skin/play-flow/bar-gold.png?art=6111e405b7cd594c');
 --wb-fm-bar-gold-tip:url('./skin/play-flow/bar-gold-tip.png?art=34337bcc2332ec5a');
 --wb-fm-gold:#f2c75c;--wb-fm-soft:#e6cd8c;--wb-fm-text:#ece2cc;--wb-fm-muted:#a3967c;
}
.wb-find-match{font:14px/1.4 Arial,sans-serif;color:var(--wb-fm-text)}
.wb-find-match [hidden]{display:none!important}
.wb-fm-frame{position:relative;box-sizing:border-box;border:14px solid transparent;border-image:var(--wb-fm-frame) 34 fill / 14px stretch;
 padding:10px 16px 14px;display:flex;flex-direction:column;align-items:center;gap:12px;text-shadow:0 1px 2px #000;filter:drop-shadow(0 14px 30px #000b)}
.wb-fm-frame h2,.wb-fm-frame h3{margin:0;font:400 26px/1.15 WarbandFriz,Georgia,serif;color:var(--wb-fm-gold);text-align:center}
.wb-fm-frame h3{font-size:17px;color:var(--wb-fm-soft);align-self:flex-start}
/* The short gold scroll ornament (owner, 2026-10-13) under titles and modes, scaled down to 160 px. */
.wb-fm-divider{width:min(100%,160px);aspect-ratio:232/31;background:var(--wb-fm-divider) center/contain no-repeat;margin-top:-4px}
.wb-fm-note{margin:0;max-width:44ch;text-align:center;color:#d8ccb0}
.wb-fm-close{position:absolute;right:-4px;top:-4px;width:34px;height:34px;display:grid;place-items:center;border:0;padding:0;cursor:pointer;
 background:var(--wb-fm-ring) center/contain no-repeat;color:#e6dcc4;font:20px/1 Arial,sans-serif;text-shadow:0 1px 2px #000}
.wb-fm-close:is(:hover,:focus-visible){filter:brightness(1.3);outline:0}
.wb-fm-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.wb-fm-figures{display:flex;gap:2px;align-items:flex-end}
/* Players and computer opponents share one figure (players recoloured gold, no glow), one size and one baseline. */
.wb-fm-figures i{display:block;width:20px;height:22px;background:var(--wb-fm-fig-player) center bottom/contain no-repeat}
.wb-fm-figures i.is-bot{background-image:var(--wb-fm-fig-grey);opacity:.75}

/* Timer bars from the casting-bar art. The frame (32 art px tall) is a border image over the stone track; the fill
   drains from the right and its bright tip leads the edge. One art pixel is --h/32. */
.wb-fm-bar{--h:24px;--px:calc(var(--h) / 32);position:relative;flex:none;width:min(100%,340px);height:var(--h)}
.wb-fm-bar::after{content:'';position:absolute;inset:0;border:0 solid transparent;border-image:var(--wb-fm-bar-frame) 16 / calc(var(--h) / 2) stretch;pointer-events:none}
.wb-fm-bar-track{--c:calc(4 * var(--px));position:absolute;inset:calc(5 * var(--px)) calc(5 * var(--px)) calc(5 * var(--px)) calc(7 * var(--px));overflow:hidden;
 background:var(--wb-fm-bar-track) center/100% 100% no-repeat;
 clip-path:polygon(var(--c) 0,calc(100% - var(--c)) 0,100% var(--c),100% calc(100% - var(--c)),calc(100% - var(--c)) 100%,var(--c) 100%,0 calc(100% - var(--c)),0 var(--c))}
.wb-fm-bar-fill,.wb-fm-bar-tip{position:absolute;inset:0;animation-duration:var(--wb-fm-total,12s);animation-timing-function:linear;animation-fill-mode:forwards;
 animation-delay:calc(var(--wb-fm-left,12s) - var(--wb-fm-total,12s))}
.wb-fm-bar-fill{background:var(--wb-fm-bar-astral) left center/100% 100% no-repeat;animation-name:wb-fm-bar-drain}
.wb-fm-bar-tip{background:var(--wb-fm-bar-astral-tip) right center/auto 100% no-repeat;animation-name:wb-fm-bar-tip}
.wb-fm-bar[data-skin=gold] .wb-fm-bar-fill{background:var(--wb-fm-bar-gold) 0 0/100% 1500% no-repeat}
.wb-fm-bar[data-skin=gold] .wb-fm-bar-tip{background-image:var(--wb-fm-bar-gold-tip)}
/* Finished: the full gold fill plays its 15-frame sparkle once and holds the last frame. */
.wb-fm-bar.is-complete .wb-fm-bar-fill{animation:wb-fm-bar-flash .75s steps(15,jump-none) .1s both}
.wb-fm-bar.is-complete .wb-fm-bar-tip{display:none}
.wb-fm-bar-text{position:absolute;inset:0;z-index:1;display:grid;place-items:center;font:400 calc(var(--h) * .58)/1 WarbandFriz,Georgia,serif;color:#fff6dc;
 font-variant-numeric:tabular-nums;text-shadow:0 1px 2px #000,0 0 4px #000,0 0 8px #000a}
@keyframes wb-fm-bar-drain{from{clip-path:inset(0 0 0 0)}to{clip-path:inset(0 100% 0 0)}}
@keyframes wb-fm-bar-tip{from{translate:0}to{translate:-100%}}
@keyframes wb-fm-bar-flash{from{background-position:0 0}to{background-position:0 100%}}

/* Play menu: tabs, mode icons (gold = selected, grey = not) and the red Find Match action. */
/* The menu opens over the queue box (it can open while searching, to stack a queue); Match Found stays above both. */
#wb-play-menu{position:fixed;inset:0;z-index:2960;display:grid;place-items:center;padding:20px;box-sizing:border-box;background:#0008}
.wb-fm-menu{width:min(620px,100%);gap:14px;padding-top:16px}
.wb-banner-picker{position:fixed;inset:0;z-index:2960;display:grid;place-items:center;padding:20px;background:#0008;box-sizing:border-box}
.wb-banner-picker[hidden]{display:none!important}
.wb-banner-picker-frame{width:min(880px,100%);max-height:calc(100dvh - 40px);box-sizing:border-box;display:flex;flex-direction:column;gap:14px}
.wb-banner-picker-frame h2{margin:0;text-align:center;color:var(--wb-fm-gold);font:22px/1.3 Georgia,serif}
.wb-banner-picker-grid{display:grid;width:100%;box-sizing:border-box;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:12px;overflow-y:auto;min-height:0;padding:6px}
.wb-banner-faction{display:flex;flex-direction:column;align-items:center;gap:6px;min-height:112px;border:1px solid transparent;background:#0004;color:var(--wb-fm-text);padding:10px 4px;font:13px/1.2 Arial,sans-serif;cursor:pointer}
.wb-banner-faction-name{display:inline-flex;align-items:center;justify-content:center;gap:.35em}
.wb-banner-faction .wb-faction-favorite-star{display:inline-block;flex:none;width:.85em;height:.85em;object-fit:contain;pointer-events:none}
.wb-banner-faction .wb-faction-crest{width:58px;height:58px}
.wb-banner-faction:enabled:hover,.wb-banner-faction:focus-visible,.wb-banner-faction.is-selected{border-color:var(--wb-fm-gold);background:#b8860b20}
.wb-banner-faction:disabled{color:#999;cursor:default}
.wb-banner-faction:disabled .wb-faction-crest{filter:grayscale(1);opacity:.5}
.wb-banner-faction small{font-size:11px;color:#999}
/* A League-style tab bar (owner, 2026-10-31): a hairline under the row and a gold underline on the open tab, so Practice
   reads as one of four sections rather than plain text. */
.wb-fm-tabs{display:flex;gap:0;justify-content:center;flex-wrap:wrap;border-bottom:1px solid #6b563080}
.wb-fm-tabs [role=tab]{border:0;background:none;padding:6px 16px 8px;margin-bottom:-1px;cursor:pointer;color:#cdbf9f;font:16px/1.2 WarbandFriz,Georgia,serif;letter-spacing:.06em;text-transform:uppercase;border-bottom:3px solid transparent;text-shadow:0 1px 2px #000}
/* The chosen tab is lit and underlined in gold; the ornamental divider still sits under the modes. */
.wb-fm-tabs [role=tab][aria-selected=true]{border-bottom-color:#e8c46a;background:linear-gradient(#e8c46a00,#e8c46a22);color:#f6e3b0;text-shadow:0 0 8px #f2c75c66,0 1px 2px #000}
.wb-fm-tabs [role=tab]:is(:hover,:focus-visible){color:#ffedc1;outline:0}
/* Constant size: all tab panels (and the Find Match mode notes) share one grid cell; only the active one is visible,
   so the frame always fits the largest and never resizes between tabs or modes. */
.wb-fm-stack{display:grid;width:100%}
.wb-fm-stack>.wb-fm-layer{grid-area:1/1;min-width:0}
.wb-fm-layer.is-inactive{visibility:hidden}
.wb-fm-panels>.wb-fm-layer{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px}
.wb-fm-stack:not(.wb-fm-panels,.wb-fm-rows)>.wb-fm-layer{display:grid;justify-items:center}
.wb-fm-rows>.wb-fm-layer{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:12px}
.wb-fm-modes{display:flex;gap:28px;justify-content:center;align-items:flex-end;flex-wrap:wrap}
.wb-fm-mode{display:flex;flex-direction:column;align-items:center;gap:6px;border:0;background:none;padding:2px;cursor:pointer;color:var(--wb-fm-muted);font:17px/1.2 WarbandFriz,Georgia,serif;text-shadow:0 1px 2px #000}
.wb-fm-mode[aria-checked=true]{color:#f3e6c4}
.wb-fm-mode small,.wb-fm-practice small{font:12px/1.2 Arial,sans-serif;letter-spacing:.08em;color:#8d826b}
.wb-fm-mode[aria-checked=true] small,.wb-fm-practice small{color:var(--wb-fm-soft)}
.wb-fm-practice-name{font:17px/1.2 WarbandFriz,Georgia,serif;color:#f3e6c4}
.wb-fm-panels .wb-fm-divider{margin-top:2px}
.wb-fm-mode:is(:hover,:focus-visible){color:#ffedc1;outline:0}
.wb-fm-mode:focus-visible .wb-fm-mode-icon{filter:drop-shadow(0 0 6px #f2c75c)}
.wb-fm-mode-icon{display:block;width:96px;height:96px;background:center/92% no-repeat;opacity:.8}
.wb-fm-mode[aria-checked=true] .wb-fm-mode-icon,.wb-fm-mode-icon[data-lit]{background-size:100%;opacity:1}
.wb-fm-mode-icon[data-icon=solo]{background-image:var(--wb-fm-solo-grey)}
.wb-fm-mode-icon[data-icon=duo]{background-image:var(--wb-fm-duo-grey)}
.wb-fm-mode-icon[data-icon=group]{background-image:var(--wb-fm-group-grey)}
:is(.wb-fm-mode[aria-checked=true],.wb-fm-practice) .wb-fm-mode-icon[data-icon=solo]{background-image:var(--wb-fm-solo-gold)}
.wb-fm-mode[aria-checked=true] .wb-fm-mode-icon[data-icon=duo]{background-image:var(--wb-fm-duo-gold)}
.wb-fm-mode[aria-checked=true] .wb-fm-mode-icon[data-icon=group]{background-image:var(--wb-fm-group-gold)}
.wb-fm-practice{display:flex;flex-direction:column;align-items:center;gap:6px}
.wb-fm-join{display:flex;flex-direction:column;align-items:center;gap:10px}
.wb-fm-join label{font:16px WarbandFriz,Georgia,serif;color:var(--wb-fm-soft)}
.wb-fm-join input{width:220px;padding:8px 10px;border:1px solid #8a6d3a;border-radius:3px;background:#120e0a;color:#f3e6c4;font:18px/1.2 ui-monospace,Menlo,monospace;letter-spacing:.14em;text-align:center;text-transform:uppercase}
.wb-fm-join input:focus-visible{outline:2px solid var(--wb-fm-gold);outline-offset:1px}
.wb-fm-join input::placeholder{font:14px Arial,sans-serif;letter-spacing:0;text-transform:none;color:#7d735f}
.wb-fm-message{margin:0;min-height:2.8em;color:#ff9b7a;text-align:center}
#wb-find-match#wb-find-match#wb-find-match#wb-find-match#wb-find-match .wb-fm-confirm{min-width:220px!important;font-size:17px!important}

/* Queue box: top right, over any tab. The rune ring turns while searching. */
#wb-queue-box{position:fixed;top:14px;right:16px;z-index:2950;width:300px;max-width:calc(100vw - 32px)}
.wb-fm-queue{flex-direction:row;align-items:center;gap:12px;padding:6px 10px 6px 6px;flex-wrap:wrap}
.wb-fm-spinner{position:relative;width:58px;height:58px;flex:none}
.wb-fm-spinner::before{content:'';position:absolute;inset:-4%;background:var(--wb-fm-runes) center/contain no-repeat;animation:wb-fm-turn 7s linear infinite}
.wb-fm-spinner i{position:absolute;inset:22%;background:var(--wb-fm-solo-gold) center/contain no-repeat;-webkit-mask:radial-gradient(closest-side circle,#000 70%,transparent 100%);mask:radial-gradient(closest-side circle,#000 70%,transparent 100%)}
/* The ring holds the queued format's icon. */
.wb-fm-spinner[data-icon=duo] i{background-image:var(--wb-fm-duo-gold)}
.wb-fm-spinner[data-icon=group] i{background-image:var(--wb-fm-group-gold)}
.wb-fm-queue-text{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.wb-fm-queue-text strong{font:400 12px/1.1 Arial,sans-serif;letter-spacing:.16em;text-transform:uppercase;color:var(--wb-fm-soft)}
.wb-fm-clock{display:flex;align-items:baseline;gap:8px}
.wb-fm-clock b{font:400 28px/1 WarbandFriz,Georgia,serif;color:#f6efe0;font-variant-numeric:tabular-nums}
/* The estimate appears on mouse-over or keyboard focus only. */
.wb-fm-clock small{font-size:13px;color:var(--wb-fm-muted);opacity:0;transition:opacity .15s ease-out}
.wb-fm-queue:is(:hover,:focus-within) .wb-fm-clock small{opacity:1}
.wb-fm-queue:focus-visible{outline:1px solid #d7b66b;outline-offset:2px}
.wb-fm-queue .wb-fm-figures i{width:15px;height:18px}
.wb-fm-queue .wb-fm-close{right:-6px;top:-6px;width:28px;height:28px;font-size:16px}
/* The notice hangs just under the box, so the box itself never changes size. */
.wb-fm-notice{position:absolute;left:10px;right:10px;top:calc(100% + 4px);margin:0;padding:4px 8px;font-size:12px;color:#ffd68a;text-align:center;background:#120f0bf0;border:1px solid #5d513b}
.wb-fm-notice[hidden]{display:none}
@keyframes wb-fm-turn{to{rotate:360deg}}

/* Match Found: over everything, with the steel swords on top (no ring); the astral bar is the only timer (12 seconds). */
#wb-match-found,#wb-ally-pick{position:fixed;inset:0;z-index:3000;display:grid;place-items:center;padding:20px;box-sizing:border-box;background:#000a}
/* The rays rise from behind the frame: the burst is drawn first, its base tucked under the frame's top border,
   and faded at the sides and top so no edge of the texture shows. */
.wb-fm-found-wrap{position:relative;width:min(440px,100%)}
.wb-fm-found{width:100%;padding-top:70px}
.wb-fm-found h2{font-size:32px}
.wb-fm-emblem{position:absolute;left:50%;top:-58px;width:112px;height:112px;translate:-50% 0}
.wb-fm-burst{position:absolute;left:50%;bottom:calc(100% - 9px);width:min(150%,640px);aspect-ratio:331/129;translate:-50% 0;background:var(--wb-fm-burst) center bottom/100% 100% no-repeat;opacity:.95;pointer-events:none;
 -webkit-mask:radial-gradient(farthest-side at 50% 100%,#000 45%,transparent 100%);mask:radial-gradient(farthest-side at 50% 100%,#000 45%,transparent 100%)}
.wb-fm-swords{position:absolute;inset:0;background:var(--wb-fm-swords) center/contain no-repeat}
.wb-fm-format{margin:0 0 -6px;font:400 15px/1.2 WarbandFriz,Georgia,serif;letter-spacing:.12em;color:var(--wb-fm-soft)}
.wb-fm-found .wb-fm-figures i{width:24px;height:26px}
.wb-fm-found .wb-fm-bar{--h:26px}
.wb-fm-waiting{min-height:1.4em}

/* Allies: the Main and two slots on top, a glowing suggested row, then every owned faction. */
.wb-fm-allies{width:min(680px,100%);max-height:calc(100vh - 40px);overflow:auto;align-items:stretch}
.wb-fm-allies>header{display:flex;align-items:center;justify-content:center;gap:18px}
.wb-fm-allies>:is(.wb-fm-divider,.wb-fm-bar){align-self:center}
.wb-fm-starting{width:min(440px,100%);align-items:center}
.wb-fm-team{display:flex;justify-content:center;align-items:flex-start;gap:22px}
.wb-fm-main,.wb-fm-slot{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:96px;border:0;background:none;padding:0;color:#f3e6c4;font:14px/1.2 WarbandFriz,Georgia,serif;text-shadow:0 1px 2px #000}
.wb-fm-slot{cursor:pointer}.wb-fm-slot:disabled{cursor:default;opacity:1}
/* The Main is a button: clicking it lists every owned faction to choose a new Main. */
.wb-fm-main{cursor:pointer}.wb-fm-main:disabled{cursor:default;opacity:1}.wb-fm-main:focus-visible{outline:0}
.wb-fm-main:not(:disabled):is(:hover,:focus-visible) .wb-fm-crest,.wb-fm-main.is-choosing .wb-fm-crest{box-shadow:0 0 0 3px var(--wb-fm-gold),0 0 18px #f2c75c,0 2px 6px #000}
.wb-fm-slot small,.wb-fm-main small{font-size:13px;color:#d8ccb0;max-width:120px;text-align:center}
.wb-fm-crest{position:relative;display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:#0d0a07;box-shadow:0 0 0 2px #a8823c,0 2px 6px #000}
.wb-fm-crest img{width:86%;height:86%;border-radius:50%;object-fit:cover}
.wb-fm-crest.is-main{width:74px;height:74px;box-shadow:0 0 0 2px var(--wb-fm-gold),0 0 14px #f2c75c66,0 2px 6px #000}
.wb-fm-crest.is-empty{box-shadow:0 0 0 2px #6b5a3c,0 2px 6px #000}
.wb-fm-crest.is-empty span{font:400 24px WarbandFriz,Georgia,serif;color:#cfb56f}
.wb-fm-slot:not(:disabled):is(:hover,:focus-visible) .wb-fm-crest{box-shadow:0 0 0 2px #ff9b7a,0 2px 6px #000}
.wb-fm-row{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.wb-fm-row.is-suggested{padding:8px;border-radius:8px;background:radial-gradient(ellipse at center,#f2c75c26,#f2c75c00 70%)}
.wb-fm-pick{border:0;background:none;padding:2px;border-radius:50%;cursor:pointer}
.wb-fm-pick .wb-fm-crest{width:50px;height:50px}
.wb-fm-pick.is-suggested .wb-fm-crest{box-shadow:0 0 0 2px var(--wb-fm-gold),0 0 10px #f2c75c88,0 2px 6px #000}
.wb-fm-pick:is(:hover,:focus-visible) .wb-fm-crest{box-shadow:0 0 0 2px #fff6,0 0 14px #fff8;outline:0}
.wb-fm-pick.is-chosen .wb-fm-crest{box-shadow:0 0 0 3px var(--wb-fm-gold),0 0 14px #f2c75c}
.wb-fm-pick:disabled{cursor:default;opacity:.6}
.wb-fm-pick:focus-visible{outline:0}
.wb-fm-caption{margin:0;min-height:2.8em;text-align:center;color:#d0c3a5}
.wb-fm-caption strong{color:var(--wb-fm-gold);font:400 15px WarbandFriz,Georgia,serif}
.wb-fm-allies-foot{display:grid;place-items:center;min-height:48px}
#wb-find-match#wb-find-match#wb-find-match#wb-find-match#wb-find-match .wb-fm-allies-foot>.wb-owner-button{min-width:200px!important}
#wb-find-match#wb-find-match#wb-find-match#wb-find-match#wb-find-match .wb-fm-actions>.wb-owner-button{min-width:150px!important}
.wb-fm-prompt{position:absolute;inset:0;display:grid;place-items:center;background:#000a;padding:14px}
.wb-fm-prompt .wb-fm-frame{max-width:380px}
.wb-fm-prompt p{margin:0;text-align:center;color:#d8ccb0}
/* The Factions footer keeps its draft status on the left and Back to Lobby (rooms only) on the right; Find Match itself
   moved to the Play screen (party-lobby.css). Five ids outrank the footer's older flex rules; :not([hidden]) keeps
   the footer hidden on the other tabs. */
#wb-lobby#wb-lobby#wb-lobby#wb-lobby#wb-lobby .wb-faction-confirm:not([hidden]){display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:16px}
#wb-lobby#wb-lobby#wb-lobby#wb-lobby#wb-lobby .wb-faction-confirm>.wb-draft-status{grid-column:1;min-width:0}
#wb-lobby#wb-lobby#wb-lobby#wb-lobby#wb-lobby .wb-faction-confirm>div{grid-column:2;justify-self:end;margin-left:0!important}
@media(max-width:640px){#wb-lobby#wb-lobby#wb-lobby#wb-lobby#wb-lobby .wb-faction-confirm:not([hidden]){grid-template-columns:1fr;row-gap:8px}#wb-lobby#wb-lobby#wb-lobby#wb-lobby#wb-lobby .wb-faction-confirm>:is(.wb-draft-status,div){grid-column:1}}
/* While queued the Play screen's Find Match reads In Queue (greyed) and the ✕ that leaves the queue hangs to its left,
   outside the slot, so the button itself stays exactly centred. */
/* The lobby's older button rules (wow-skin, dialogue-collection) set borders, backgrounds and fonts with !important. */
#wb-lobby#wb-lobby#wb-lobby#wb-lobby#wb-lobby .wb-play-cancel{position:absolute;right:calc(100% + 12px);top:50%;translate:0 -50%;width:42px;height:42px;display:grid;place-items:center;
 border:0!important;border-image:none!important;border-radius:50%!important;padding:0 0 2px!important;margin:0;cursor:pointer;background:var(--wb-fm-ring) center/contain no-repeat!important;
 color:#e6dcc4!important;font:22px/1 Arial,sans-serif!important;text-shadow:0 1px 2px #000;box-shadow:none!important;min-width:0!important;min-height:0!important}
#wb-lobby#wb-lobby#wb-lobby#wb-lobby#wb-lobby .wb-play-cancel[hidden]{display:none!important}
#wb-lobby#wb-lobby#wb-lobby#wb-lobby#wb-lobby .wb-play-cancel:is(:hover,:focus-visible){filter:brightness(1.3);outline:0}
/* Reduced motion: the rune ring stops and the sparkle shows its last frame; the timers still drain (they carry the time). */
@media(prefers-reduced-motion:reduce){.wb-fm-spinner::before{animation:none}.wb-fm-bar.is-complete .wb-fm-bar-fill{animation:none;background-position:0 100%}}
@media(max-width:560px){.wb-fm-mode-icon{width:72px;height:72px}.wb-fm-modes{gap:16px}.wb-fm-modes:has(> .wb-fm-mode:nth-child(4)){display:grid;grid-template-columns:repeat(2,auto);justify-content:center}.wb-fm-tabs [role=tab]{font-size:14px;padding-inline:9px}.wb-fm-team{gap:12px}.wb-fm-main,.wb-fm-slot{min-width:80px}#wb-queue-box{top:8px;right:8px;width:260px}}

.wb-fm-players-only{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;margin:0;color:#e8dcc4;font-size:14px;cursor:pointer;text-shadow:1px 1px 2px #000;touch-action:manipulation}
.wb-fm-players-only.is-inactive{visibility:hidden}
/* Shared wb-checkbox skin uses the same supplied box and ticks as Remember Me. */
.wb-fm-players-only input{position:static;width:22px;height:20px;flex:none;margin:0;opacity:1;cursor:pointer}
.wb-fm-players-only:focus-within{outline:2px solid #e5bf74;outline-offset:2px}
.wb-fm-policy-tip{display:none;position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);width:min(300px,calc(100vw - 60px));box-sizing:border-box;padding:10px 12px;border:7px solid transparent;border-image:url('./skin/warsworn/trait-panel-frame.png') 16 / 7px stretch;background:#050505;color:#eee;text-shadow:none;font:12px/1.4 Arial,sans-serif;box-shadow:0 3px 10px #0009;pointer-events:none;z-index:2}
.wb-fm-players-only:is(:hover,:focus-within) .wb-fm-policy-tip{display:block}
/* Ranked 1v1 (2026-10-23): the status line under the Ranked choice; a locked choice reads grey. */
.wb-fm-ranked-status{margin:-6px 0 6px;text-align:center;color:#d8ccb0;font-size:13px;text-shadow:1px 1px 2px #000}
.wb-fm-ranked-status.is-locked{color:#a99c82}
/* Stacked queues (owner, 2026-10-23): Find Match on another format adds its queue. The queue box lists each queue with
 * its own wait and ✕ (the same ring art as the box's close, which leaves every queue). A format already held reads
 * In queue under its tile; a format the party is too large for is dimmed. */
.wb-fm-queues{flex-basis:100%;display:grid;gap:2px;margin:2px 0 0;padding:6px 0 0;list-style:none;border-top:1px solid #5a4a2c}
.wb-fm-queues li{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 0 0 6px}
.wb-fm-queues li span{flex:1;color:#e8dcc4;font:15px/1.2 WarbandFriz,Georgia,serif;text-shadow:0 1px 2px #000}
.wb-fm-queues li b{font:400 15px/1 WarbandFriz,Georgia,serif;color:#f6efe0;font-variant-numeric:tabular-nums}
.wb-fm-leave{width:44px;height:44px;flex:none;display:grid;place-items:center;border:0;padding:0;cursor:pointer;background:var(--wb-fm-ring) center/30px no-repeat;color:#e6dcc4;font:16px/1 Arial,sans-serif;text-shadow:0 1px 2px #000}
.wb-fm-leave:is(:hover,:focus-visible){filter:brightness(1.3);outline:0}
.wb-fm-mode.is-unfit .wb-fm-mode-icon{opacity:.4}
.wb-fm-mode.is-unfit{color:#7d735f}
/* Owner-supplied LFG eye: row-major 29-frame atlas, excluding the three empty cells.
   Only a current search animates; recent/popular activity retains the open first frame. */
.wb-fm-eye,.wb-fm-heat{display:inline-block;flex:none;background:url('./skin/lfg-eye.png') 0 0/800% 400% no-repeat}
.wb-fm-eye{width:24px;height:24px;margin:-5px}
.wb-fm-pulse{display:flex;align-items:center;justify-content:center;gap:6px;min-height:18px;margin:6px 0 0;font:12px/1.4 Arial,sans-serif;color:#f4efe6d9;letter-spacing:.02em}
.wb-fm-pulse[data-heat=recent]{color:#f4efe69e}
:is(.wb-fm-pulse,.wb-play-pulse)[data-heat=recent] .wb-fm-eye,.wb-fm-heat[data-heat=recent]{opacity:.65}
.wb-fm-mode-icon{position:relative}
.wb-fm-heat{position:absolute;right:0;top:0;width:28px;height:28px}
:is(.wb-fm-pulse,.wb-play-pulse,.wb-fm-hint)[data-heat=searching] .wb-fm-eye,.wb-fm-heat[data-heat=searching]{animation:wb-fm-eye 2.9s steps(1,end) infinite}
@keyframes wb-fm-eye{
 0.000000%{background-position:0.000000% 0.000000%}
 3.448276%{background-position:14.285714% 0.000000%}
 6.896552%{background-position:28.571429% 0.000000%}
 10.344828%{background-position:42.857143% 0.000000%}
 13.793103%{background-position:57.142857% 0.000000%}
 17.241379%{background-position:71.428571% 0.000000%}
 20.689655%{background-position:85.714286% 0.000000%}
 24.137931%{background-position:100.000000% 0.000000%}
 27.586207%{background-position:0.000000% 33.333333%}
 31.034483%{background-position:14.285714% 33.333333%}
 34.482759%{background-position:28.571429% 33.333333%}
 37.931034%{background-position:42.857143% 33.333333%}
 41.379310%{background-position:57.142857% 33.333333%}
 44.827586%{background-position:71.428571% 33.333333%}
 48.275862%{background-position:85.714286% 33.333333%}
 51.724138%{background-position:100.000000% 33.333333%}
 55.172414%{background-position:0.000000% 66.666667%}
 58.620690%{background-position:14.285714% 66.666667%}
 62.068966%{background-position:28.571429% 66.666667%}
 65.517241%{background-position:42.857143% 66.666667%}
 68.965517%{background-position:57.142857% 66.666667%}
 72.413793%{background-position:71.428571% 66.666667%}
 75.862069%{background-position:85.714286% 66.666667%}
 79.310345%{background-position:100.000000% 66.666667%}
 82.758621%{background-position:0.000000% 100.000000%}
 86.206897%{background-position:14.285714% 100.000000%}
 89.655172%{background-position:28.571429% 100.000000%}
 93.103448%{background-position:42.857143% 100.000000%}
 96.551724%{background-position:57.142857% 100.000000%}
 100%{background-position:0 0}
}
#wb-lobby .wb-play-slot .wb-play-pulse{position:static;display:flex;align-items:center;justify-content:center;gap:6px;max-width:min(360px,calc(100vw - 40px));text-align:center;white-space:normal;pointer-events:none;
 font:12px/1.4 Arial,sans-serif;color:#f4efe6d9;letter-spacing:.02em;text-shadow:0 1px 2px #000}
#wb-lobby .wb-play-slot .wb-play-pulse[data-heat=recent]{color:#f4efe69e}
#wb-lobby .wb-play-slot .wb-play-pulse[hidden]{display:none}
.wb-fm-hint-slot{flex-basis:100%}
.wb-fm-hint-slot:empty{display:none}
.wb-fm-hint{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;margin:0;padding:0 6px;border:0;border-top:1px solid #5a4a2c;background:none;cursor:pointer;
 color:#f4efe6d9;font:12px/1.3 Arial,sans-serif;text-align:left;text-shadow:0 1px 2px #000}
.wb-fm-hint b{font-weight:400;color:#ffd68a;text-decoration:underline;text-underline-offset:3px}
.wb-fm-hint:is(:hover,:focus-visible){color:#fff;outline:0}
.wb-fm-hint:is(:hover,:focus-visible) b{color:#ffe7b0}
@media(prefers-reduced-motion:reduce){.wb-fm-eye,.wb-fm-heat[data-heat=searching]{animation:none!important}}

/* The shared queue uses the existing 4v4 emblem. Ranked's small supplied gold lock explains its level gate. */
.wb-fm-rank-lock{position:absolute;right:4px;bottom:2px;width:20px;height:25px;background:url('./skin/achievements/lock-gold.png') center/contain no-repeat}
.wb-fm-lock-tip{display:none;position:absolute;z-index:5;bottom:32px;left:50%;transform:translateX(-50%);width:205px;padding:9px 12px;border:1px solid #947547;border-radius:4px;background:#17120f;color:#f1dfb5;font:14px/1.4 WarbandFriz,Georgia,serif;text-align:center;pointer-events:none}
.wb-fm-rank-lock:hover .wb-fm-lock-tip,.wb-fm-mode:focus-visible .wb-fm-lock-tip{display:block}
.wb-fm-mode.is-locked{color:#9b8c73}
.wb-fm-mode.is-locked .wb-fm-mode-icon{opacity:.65}

/* Ranked season reward: original Play frame, swords and gold casting-bar artwork. */
.wb-fm-menu{max-height:calc(100dvh - 40px);overflow-y:auto;overflow-x:hidden;scrollbar-color:#746044 #17130d;scrollbar-width:thin}
.wb-ranked-reward{flex:none;align-self:stretch;box-sizing:border-box;border:10px solid transparent;border-image:var(--wb-fm-frame) 34 fill / 10px stretch;padding:10px 14px;display:grid;gap:9px;text-align:left}
.wb-ranked-reward header{display:flex;align-items:center;gap:12px}
.wb-ranked-emblem{width:48px;height:48px;flex:none;background:var(--wb-fm-swords) center/contain no-repeat}
.wb-ranked-reward header div{flex:1}.wb-ranked-reward header p{margin:0 0 2px;color:var(--wb-fm-muted);font-size:12px;letter-spacing:.04em}
.wb-ranked-reward header h2{font-size:23px;text-align:left}.wb-ranked-token{width:44px;height:44px;object-fit:contain}
.wb-ranked-reward p{margin:0}.wb-ranked-prize{color:#f4dfaa;font-size:14px}
.wb-ranked-goal>div:first-child{display:flex;justify-content:space-between;gap:12px;font-size:13px}.wb-ranked-goal b{color:#b8b09b;font-variant-numeric:tabular-nums;white-space:nowrap}.wb-ranked-goal.is-complete b{color:#a7d878}
.wb-ranked-progress{width:100%;--h:20px;margin-top:3px}.wb-ranked-progress .wb-fm-bar-track>i{display:block;height:100%;background:var(--wb-fm-bar-gold) 0 100%/100% 1500% no-repeat}
.wb-ranked-status{color:#f2c75c;font-size:14px}.wb-ranked-reward.is-qualified .wb-ranked-status{color:#bce68d}
.wb-ranked-help{color:#b6a78a;font:12px/1.45 Arial,sans-serif}.wb-ranked-reward footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:2px}.wb-ranked-reward footer>span{font-size:13px;color:#dfc99a}.wb-ranked-reward footer strong{font:24px WarbandFriz,Georgia,serif;color:#f2d479;margin-right:4px}
.wb-ranked-reward .wb-owner-button{min-height:44px;font-size:14px}.wb-ranked-date{font:11px/1.4 Arial,sans-serif;color:#9e947f}
.wb-ranked-collection{width:min(860px,100%);max-height:calc(100dvh - 40px);min-height:0;padding-top:20px}.wb-ranked-collection .wb-ranked-help{margin:0;text-align:center}.wb-ranked-collection-balance{display:flex;align-items:center;gap:8px;margin:0;color:#eacb81}.wb-ranked-collection-balance img{width:32px;height:32px}.wb-ranked-collection-balance strong{font-size:23px}
.wb-ranked-skins{scrollbar-color:#746044 #17130d;scrollbar-width:thin;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;overflow-y:auto;min-height:100px;width:100%;padding:4px;box-sizing:border-box}
.wb-ranked-skin{display:flex;align-items:center;gap:10px;min-height:74px;padding:9px;background:#090b10bb;border:1px solid #635239;color:#ead8af;text-align:left;font:13px Arial,sans-serif;cursor:pointer}.wb-ranked-skin:hover,.wb-ranked-skin:focus-visible{border-color:#d1a652;background:#282219;outline:2px solid #d1a652;outline-offset:-2px}.wb-ranked-skin>img{width:44px;height:44px;object-fit:contain;flex:none}.wb-ranked-skin>span{flex:1;min-width:0;display:grid;gap:5px}.wb-ranked-skin strong{font:15px WarbandFriz,Georgia,serif}.wb-ranked-skin small{color:#a99d87}.wb-ranked-skin>b{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:#d8b96f;white-space:nowrap}.wb-ranked-skin.is-owned>b{color:#a7d878}
@media(max-width:600px){.wb-ranked-reward{padding:8px;border-width:7px}.wb-ranked-reward footer{flex-wrap:wrap}.wb-ranked-reward footer .wb-owner-button{width:100%}.wb-ranked-emblem{width:35px;height:35px}.wb-ranked-reward header h2{font-size:20px}.wb-ranked-skins{grid-template-columns:1fr}.wb-ranked-collection{padding:16px 8px 10px}.wb-ranked-goal>div:first-child{font-size:12px}.wb-ranked-token{width:36px;height:36px}}
