/* Account-level reward card on the Play tab (level-track.mjs): the level, the next reward with its own bar, a quiet
   ladder of every checkpoint crest, and the Potion of Experience. One row on wide screens, stacked on narrow ones. */
#wb-lobby .wb-level-track{position:relative;z-index:1;width:min(900px,92%);margin:0 auto;box-sizing:border-box;color:#f3e6c4;font-family:WarbandFriz,Georgia,serif}
#wb-lobby .wb-level-track[hidden]{display:none}
/* Owner, 2026-10-30: the track sits higher, nearer the top bar, than the centred stage would place it.
   Owner, 2026-10-31: a little lower, and never under the top bar. A negative offset inside the centred stage
   slid it beneath the bar on short windows (1109x620), so it now heads the stage at a share of its height and
   the banners and Find Match centre in the space below. */
#wb-lobby .wb-party-stage:has(>.wb-level-track:not([hidden])){padding-top:max(16px,5.5cqh)}
#wb-lobby .wb-party-stage>.wb-level-track{flex:none;margin-bottom:auto}
#wb-lobby .wb-party-stage:has(>.wb-level-track:not([hidden]))>.wb-party-actions{margin-bottom:auto}
#wb-lobby .wb-level-card{display:flex;align-items:center;gap:18px;padding:10px 16px;border:1px solid #6b5536;border-radius:6px;background:linear-gradient(#1a130cee,#0d0906ee);box-shadow:0 4px 14px #000a,inset 0 0 0 1px #00000080}
/* The level */
#wb-lobby .wb-level-now{flex:none;display:flex;align-items:center;gap:10px}
#wb-lobby .wb-level-badge{display:grid;place-items:center;width:38px;height:38px;border:2px solid #c8901c;border-radius:50%;background:radial-gradient(#3a2a14,#140e08);color:#ffd100;font-size:16px;font-weight:normal;text-shadow:1px 1px 0 #000;box-shadow:0 0 8px #ffcc4d40}
#wb-lobby .wb-level-now h2{margin:0;font-size:14px;font-weight:normal;color:#ffd100;text-shadow:1px 1px 0 #000}
#wb-lobby .wb-level-now p{margin:1px 0 0;font:12px/1.3 Arial,sans-serif;color:#d8c9a6;white-space:nowrap}
/* The next reward: the one thing the card asks the player to look at */
#wb-lobby .wb-level-next{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:12px;padding-left:18px;border-left:1px solid #3e3022}
/* Every crest sits under the owner's plain gold ring (owner, 2026-10-30; qa/prepare-ring-bookmark-art.py): the art is cut
   to a circle and the ring is drawn on top of it. faction-emblems.css trims the framed square emblems to that circle. */
#wb-lobby .wb-level-crest{position:relative;display:grid;place-items:center;flex:none;border-radius:50%;background:#120d08}
#wb-lobby .wb-level-crest::after{content:'';position:absolute;inset:-20%;background:url('./skin/level-ring.png?art=level-ring-v1') center/contain no-repeat;pointer-events:none}
#wb-lobby .wb-level-crest img{width:100%;height:100%;border-radius:50%;object-fit:cover}
#wb-lobby .wb-level-next-crest{width:44px;height:44px;margin:6px;padding:0;border:0;font:inherit;color:inherit;cursor:inherit;box-shadow:0 0 12px #ffd10055}
#wb-lobby .wb-level-next-crest img{filter:grayscale(.35) brightness(.9)}
#wb-lobby .wb-level-next-crest:is(:hover,:focus-visible) img{filter:none}
#wb-lobby .wb-level-next-crest:focus-visible{outline:2px solid #ffd100;outline-offset:6px}
#wb-lobby .wb-level-next-body{min-width:0;flex:1 1 auto}
#wb-lobby .wb-level-next-body small{display:block;font:11px/1.2 Arial,sans-serif;letter-spacing:.04em;text-transform:uppercase;color:#b9a77f}
#wb-lobby .wb-level-next-body strong{display:block;font-size:16px;font-weight:normal;line-height:1.25;color:#fff;text-shadow:1px 1px 0 #000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#wb-lobby .wb-level-next-bar{height:7px;margin:5px 0 3px;border:1px solid #000;border-radius:4px;background:#2a2016;box-shadow:inset 0 1px 2px #000;overflow:hidden}
#wb-lobby .wb-level-next-bar i{display:block;height:100%;border-radius:3px;background:linear-gradient(#ffe27a,#c8901c);box-shadow:0 0 6px #ffcc4d80;transition:width .6s ease-out}
#wb-lobby .wb-level-next-meta{display:block;font:12px/1.2 Arial,sans-serif;color:#d8c9a6}
#wb-lobby .wb-level-next.is-complete strong{color:#ffd100}
/* The ladder: every checkpoint, small and quiet; names in the tooltip */
#wb-lobby .wb-level-pips{flex:none;display:flex;align-items:flex-start;gap:6px;margin:0;padding:0;list-style:none}
#wb-lobby .wb-level-pip{display:flex;min-width:34px}
#wb-lobby .wb-level-pip-button{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:34px;min-height:44px;margin:0;padding:3px 0 0;border:0;background:none;color:inherit;font:inherit;cursor:inherit;outline:none}
#wb-lobby .wb-level-pip .wb-level-crest{width:24px;height:24px}
#wb-lobby .wb-level-pip .wb-level-crest img{filter:grayscale(1) brightness(.5)}
#wb-lobby .wb-level-pip .wb-level-crest::after{filter:grayscale(.6) brightness(.7)}
#wb-lobby .wb-level-pip b{font:10px/1.1 Arial,sans-serif;color:#8f7f60}
#wb-lobby .wb-level-pip.is-reached .wb-level-crest img{filter:none}
#wb-lobby .wb-level-pip.is-reached .wb-level-crest::after{filter:none}
#wb-lobby .wb-level-pip.is-reached b{color:#ffd100}
#wb-lobby .wb-level-pip.is-next .wb-level-crest img{filter:grayscale(.3) brightness(.85)}
#wb-lobby .wb-level-pip.is-next .wb-level-crest::after{filter:none}
#wb-lobby .wb-level-pip.is-next .wb-level-crest{box-shadow:0 0 8px #ffd10088}
#wb-lobby .wb-level-pip.is-next b{color:#fff}
/* Hovering a crest lights it so the later rewards can be browsed; clicking opens that faction. */
#wb-lobby .wb-level-pip-button:is(:hover,:focus-visible) .wb-level-crest img{filter:none}
#wb-lobby .wb-level-pip-button:is(:hover,:focus-visible) .wb-level-crest::after{filter:brightness(1.25)}
#wb-lobby .wb-level-pip-button:is(:hover,:focus-visible) b{color:#fff1c2}
#wb-lobby .wb-level-pip-button:focus-visible .wb-level-crest{outline:2px solid #ffd100;outline-offset:5px}
/* The Potion of Experience */
#wb-lobby .wb-level-potion{flex:none;display:flex;align-items:center;gap:9px;min-height:44px;padding:5px 12px 5px 6px;border:1px solid #6b4f8f;border-radius:5px;background:linear-gradient(#2a1d36,#160f1d);box-shadow:inset 0 0 0 1px #00000080,0 2px 6px #0008;color:#efe2ff;font:inherit;text-align:left;cursor:inherit}
#wb-lobby .wb-level-potion img{width:32px;height:32px;border:1px solid #d5ad49;border-radius:2px;box-shadow:0 0 8px #b98aff66}
#wb-lobby .wb-level-potion b{display:block;font-size:13px;font-weight:normal;color:#e6d0ff}
#wb-lobby .wb-level-potion small{display:block;font:11px/1.2 Arial,sans-serif;color:#bda9d6}
/* The general lobby button hover (wow-skin.css) clears backgrounds and adds the panel border art; these buttons keep theirs. */
#wb-lobby .wb-level-potion:is(:hover,:focus-visible){border-color:#a07cd0;border-image:none;background:linear-gradient(#2a1d36,#160f1d);color:#efe2ff;filter:brightness(1.12);outline:0}
#wb-lobby .wb-level-next-crest:hover{border-image:none;background:#120d08}
#wb-lobby .wb-level-pip-button:hover{border-image:none;background:none}
#wb-lobby .wb-level-potion.is-active{border-color:#b98aff}
#wb-lobby .wb-level-potion.is-active img{animation:wb-level-potion-glow 2.4s ease-in-out infinite}
@keyframes wb-level-potion-glow{50%{box-shadow:0 0 14px #d4b0ffcc}}
@media(prefers-reduced-motion:reduce){#wb-lobby .wb-level-potion.is-active img{animation:none}#wb-lobby .wb-level-next-bar i{transition:none}}
@media(max-width:860px){#wb-lobby .wb-level-card{flex-wrap:wrap;gap:10px 14px}#wb-lobby .wb-level-next{order:3;flex-basis:100%;padding:8px 0 0;border-left:0;border-top:1px solid #3e3022}#wb-lobby .wb-level-pips{margin-left:auto}}
@media(max-width:520px){#wb-lobby .wb-level-card{padding:8px 10px}#wb-lobby .wb-level-pips{order:4;margin:0;flex-basis:100%;justify-content:space-between}#wb-lobby .wb-level-potion{order:5;flex-basis:100%}}
/* Show all rewards (owner, 2026-10-30): a small disclosure under the card; the list drops over the stage. */
#wb-lobby .wb-level-all{position:absolute;right:10px;top:calc(100% + 4px);z-index:5;font-family:WarbandFriz,Georgia,serif}
#wb-lobby .wb-level-all>summary{display:inline-flex;align-items:center;gap:6px;min-height:30px;margin-left:auto;padding:0 4px;color:#d9c08a;font-size:13px;cursor:pointer;text-shadow:0 1px 2px #000}
#wb-lobby .wb-level-all>summary:hover{color:#f3dfa6}
#wb-lobby .wb-level-all[open]>summary{color:#f3dfa6}
#wb-lobby .wb-level-all-list{position:absolute;right:0;top:100%;width:380px;scrollbar-color:#5b4a33 #120d08;scrollbar-width:thin;max-height:min(420px,60vh);overflow:auto;margin:4px 0 0;padding:8px;list-style:none;box-sizing:border-box;border:1px solid #6b5630;border-radius:4px;background:linear-gradient(#17120cf5,#0d0a07f7);box-shadow:0 12px 30px #000c}
#wb-lobby .wb-level-all-row{display:grid;grid-template-columns:116px 1fr auto;align-items:center;gap:10px;min-height:56px;padding:3px 6px;border-bottom:1px solid #ffffff10}
#wb-lobby .wb-level-all-row:last-child{border-bottom:0}
/* Every icon sits in the same 56 px slot from the left edge, so crests and frames share one centre line. */
#wb-lobby .wb-level-all-icons{display:flex;align-items:center;justify-content:flex-start;gap:4px}
#wb-lobby .wb-level-all-icons>*{flex:none}
#wb-lobby .wb-level-all-icons>.wb-level-crest{margin:0 8px}
#wb-lobby .wb-level-all-icons .wb-level-crest{flex:none;width:40px;height:40px}
/* A frame preview in a 56 px slot: an empty black portrait with its frame drawn around it by the shared contract in
   achievements.css (art = portrait x --wb-frame-span, whole badge x --wb-frame-scale). The portrait is the size that
   makes the Horde and Eternium art fill the slot exactly, so every frame shows around the same portrait. */
#wb-lobby .wb-level-all-frame{--wb-level-all-portrait:calc(56px / 2.397);position:relative;display:block;flex:none;width:56px;height:56px;scale:var(--wb-frame-scale,1)}
#wb-lobby .wb-level-all-frame::before,#wb-lobby .wb-level-all-frame::after{content:'';position:absolute;left:50%;top:50%;translate:-50% -50%}
#wb-lobby .wb-level-all-frame::before{width:var(--wb-level-all-portrait);height:var(--wb-level-all-portrait);border-radius:50%;background:#000}
#wb-lobby .wb-level-all-frame::after{width:calc(var(--wb-level-all-portrait) * var(--wb-frame-span,2.397));height:calc(var(--wb-level-all-portrait) * var(--wb-frame-span,2.397));background:var(--wb-frame-art) center/100% 100% no-repeat}
#wb-lobby .wb-level-all-text{display:flex;flex-direction:column;min-width:0}
#wb-lobby .wb-level-all-text strong{color:#efe6cf;font-size:14px;font-weight:normal}
#wb-lobby .wb-level-all-text small{color:#a9a08c;font:11px/1.3 Arial,sans-serif}
#wb-lobby .wb-level-all-state{color:#9c917c;font:11px/1 Arial,sans-serif;white-space:nowrap}
#wb-lobby .wb-level-all-row.is-reached .wb-level-all-state{color:#8fd16a}
#wb-lobby .wb-level-all-row:not(.is-reached) .wb-level-crest img{filter:grayscale(.85) brightness(.65)}
#wb-lobby .wb-level-all-row:not(.is-reached) .wb-level-all-frame{filter:grayscale(.25) brightness(.9)}
#wb-lobby .wb-level-track:has([data-level-all][open]){z-index:8}
