#wb-achievements-panel{overflow:auto;min-height:0;flex:1;padding:0 6px 16px;color:#ddd3be;font:13px/1.35 Arial,sans-serif}
/* One centred column: the header, the category tabs and the cards share the same width. */
#wb-achievements-panel>*{box-sizing:border-box;width:100%;max-width:1160px;margin-inline:auto}
/* Header: totals | the displayed identity (crest in its frame above the title plaque) | title and frame choices,
   then the five portrait frames as one centred row. */
.wb-ach-cosmetics{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:10px 28px;padding:12px 22px 10px;margin-bottom:12px;
 background:linear-gradient(#1f1b14,#121110);border:1px solid #5d513b;box-shadow:inset 0 1px 0 #ffffff0d,0 6px 18px #0006}
.wb-ach-total{display:flex;align-items:center;gap:14px;min-width:0;color:#f2dca4}
.wb-ach-total>div{display:grid;gap:2px;min-width:0;flex:1;max-width:260px}
.wb-ach-count{white-space:nowrap}.wb-ach-total b{font:400 19px/1.1 WarbandFriz,Georgia,serif;color:#f6e3b0}
.wb-ach-total small{color:#bcb4a5;font-size:12px}
.wb-ach-play-time{display:grid;gap:2px;margin:8px 0 0;color:#bcb4a5;font-size:12px}
.wb-ach-play-time strong{color:#f2dca4;font:400 15px/1.3 WarbandFriz,Georgia,serif;font-variant-numeric:tabular-nums}
.wb-ach-total .wb-ach-progress{margin-top:4px;max-width:none}
.wb-ach-identity{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;max-width:100%}
.wb-ach-choices{display:grid;justify-items:end;gap:8px}
.wb-ach-cosmetics label{display:flex;align-items:center;justify-content:flex-end;gap:8px;color:#cbbb9f;font-size:12px}
.wb-ach-cosmetics select{width:190px;max-width:100%;min-height:30px;background:#0f0e0c;color:#f2dca4;border:1px solid #6b5a3b;font:13px Arial,sans-serif}
.wb-ach-frames{grid-column:1/-1;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:0;padding:10px 0 0;border-top:1px solid #3a3226;list-style:none}
/* One compact chip per frame: swatch beside its name and how to earn it. */
.wb-ach-frames li{display:grid;grid-template-columns:auto minmax(0,auto);grid-template-rows:auto auto;column-gap:8px;align-items:center;justify-content:center;min-width:0;color:#8f866f}
.wb-ach-frames li>.wb-ach-frame-swatch{grid-row:1/3}
.wb-ach-frames li b{font:400 13px/1.2 WarbandFriz,Georgia,serif;color:#a99c83}
.wb-ach-frames li small{font-size:11px;line-height:1.25;max-width:22ch}
.wb-ach-frames li.is-earned b{color:#f2dca4}.wb-ach-frames li.is-earned small{color:#cbbb9f}
.wb-ach-frames .wb-ach-frame-swatch{width:20px;height:20px}
.wb-ach-frame-swatch,.wb-ach-frame-preview{display:inline-block;width:14px;height:14px;border-radius:50%;border:2px solid #4a4134;background:#26221b}
.wb-ach-frame-preview{display:grid;place-items:center;width:52px;height:52px;box-sizing:border-box;overflow:visible}
.wb-ach-frame-preview img{width:100%;height:100%;border-radius:50%;object-fit:cover}
.wb-ach-points{display:inline-grid;place-items:center;min-width:30px;height:30px;padding:0 3px;box-sizing:border-box;clip-path:polygon(50% 100%,0 70%,0 0,100% 0,100% 70%);background:linear-gradient(#d9b45a,#8b6522);color:#2a1a07;font:bold 12px/1 Arial,sans-serif}
.wb-ach-points-large{min-width:46px;height:50px;font-size:16px}
/* The summary total sits on the owner's red bookmark (owner, 2026-10-30; qa/prepare-ring-bookmark-art.py), not the gold shield. */
/* It hangs over the frame's top edge like a real bookmark: the frame sits 14px down its scrolling panel so the ribbon can rise
   past the top padding and border, and the text beside it stays centred in its row. */
#wb-achievements-panel>.wb-ach-cosmetics{margin-top:14px}
.wb-ach-cosmetics>.wb-ach-total{align-self:stretch;align-items:flex-start}.wb-ach-cosmetics>.wb-ach-total>div{align-self:center}
.wb-ach-cosmetics>.wb-ach-total>.wb-ach-points-large{margin-top:-25px;background-position:center top;filter:drop-shadow(0 3px 4px #000c)}
.wb-ach-total .wb-ach-points-large{width:74px;min-width:74px;height:125px;padding:0 0 30px;font-size:30px;clip-path:none;background:url('./skin/achievement-bookmark.png?art=ach-bookmark-v1') center/contain no-repeat;color:#ffe9b0;text-shadow:0 1px 0 #000,0 0 4px #000}
/* Category tabs: centred, the game's tab style with a gold underline, earned / total beside each name. */
.wb-ach-categories{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 30px}
#wb-achievements-panel .wb-ach-categories button{position:relative;display:inline-flex;align-items:center;gap:7px;min-height:40px;margin:0;padding:6px 0 10px!important;
 border:0!important;border-image:none!important;border-radius:0;background:none!important;box-shadow:none!important;color:#bcae92!important;font:16px/1.2 WarbandFriz,Georgia,serif!important;text-shadow:none;cursor:pointer}
#wb-achievements-panel .wb-ach-categories button small{padding:1px 7px;border-radius:9px;background:#2a241a;color:#c9b88f;font:11px/1.4 Arial,sans-serif}
#wb-achievements-panel .wb-ach-categories button::after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:2px;background:#d7b66b;opacity:0;pointer-events:none}
#wb-achievements-panel .wb-ach-categories [aria-pressed=true]{color:#f2deac!important}
#wb-achievements-panel .wb-ach-categories [aria-pressed=true]::after{opacity:1}
#wb-achievements-panel .wb-ach-categories [aria-pressed=true] small{background:#4a3a1c;color:#f6e3b0}
#wb-achievements-panel .wb-ach-categories button:is(:hover,:focus-visible){color:#ffedc1!important;outline:0}
#wb-achievements-panel .wb-ach-categories button:focus-visible::after{opacity:1;background:#f6e2aa}
/* Cards: two columns on a wide screen; a series spans the row with its own cards centred underneath. */
.wb-ach-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,460px),1fr));gap:10px}
.wb-ach-series{grid-column:1/-1}
.wb-ach,.wb-ach-series>summary{display:flex;align-items:center;gap:12px;padding:8px 16px 8px 6px;background:linear-gradient(#1b1915,#141310);border:1px solid #4d4332;box-shadow:inset 0 1px 0 #ffffff08}
.wb-ach:hover,.wb-ach-series>summary:hover{border-color:#7d6a45}
.wb-ach.is-earned{border-color:#8f7238;background:linear-gradient(90deg,#2c2414,#171511 75%)}
.wb-ach-icon{position:relative;flex:none;width:44px;height:44px}
.wb-ach-icon>img:first-child{width:44px;height:44px;border:1px solid #6b5a3b;border-radius:4px;object-fit:cover}
.wb-ach.is-locked .wb-ach-icon>img:first-child{filter:grayscale(1) brightness(.62)}
.wb-ach-badge{position:absolute;right:-5px;bottom:-5px;width:22px;height:22px;border-radius:50%;border:1px solid #6b5a3b;background:#0f0e0c}
.wb-ach-copy{flex:1;min-width:0;display:grid;gap:3px}
.wb-ach h3,.wb-ach-series h3{margin:0;font:400 16px/1.2 WarbandFriz,Georgia,serif;color:#f2dca4}.wb-ach.is-locked h3{color:#c9bda3}
.wb-ach p{margin:0}.wb-ach-flavor{font-style:italic;color:#a99c83}.wb-ach-criteria{color:#ddd3be}.wb-ach-reward{font-size:12px;color:#e8c46a}
.wb-ach-valor{display:flex;align-items:center;gap:5px;margin-top:4px;color:#e8c46a;font-size:12px;line-height:20px}
.wb-ach-valor img{width:18px;height:18px;object-fit:contain}
.wb-ach-side{display:grid;justify-items:center;gap:4px;flex:none;min-width:64px}.wb-ach-side time{font-size:11px;color:#a99c83;white-space:nowrap}
.wb-ach.is-locked .wb-ach-points{filter:grayscale(1) brightness(.7)}
.wb-ach-progress{position:relative;display:block;max-width:320px;height:14px;margin-top:3px;background:#0d0c0a;border:1px solid #5d513b;border-radius:2px;overflow:hidden}
.wb-ach-progress i{position:absolute;inset:0 auto 0 0;background:linear-gradient(#6f9f33,#3d6a17)}
.wb-ach-progress b{position:relative;display:block;text-align:center;font:bold 10px/12px Arial,sans-serif;color:#fff3d0;text-shadow:0 1px 1px #000}
.wb-ach-series>summary{cursor:pointer;list-style:none}.wb-ach-series>summary::-webkit-details-marker{display:none}
.wb-ach-series[open]>summary{border-color:#7d6a45}
.wb-ach-series>summary:focus-visible{outline:1px solid #d7b66b;outline-offset:2px}
.wb-ach-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));gap:8px;padding:10px 0 6px}
.wb-ach-compact{padding:6px 10px 6px 4px;gap:8px}.wb-ach-compact h3{font-size:14px}.wb-ach-compact .wb-ach-criteria{font-size:11px;color:#bcb4a5}.wb-ach-compact .wb-ach-side{min-width:40px}.wb-ach-compact .wb-ach-points{min-width:24px;height:24px;font-size:10px}
/* Earned toast: shown only outside automatic combat. */
.wb-ach-toast{position:fixed;z-index:60;left:50%;top:14px;transform:translateX(-50%);display:flex;align-items:center;gap:12px;min-width:280px;max-width:calc(100vw - 32px);box-sizing:border-box;padding:9px 14px;background:linear-gradient(#2b2416,#14110b);border:1px solid #c9a44f;box-shadow:0 0 0 1px #000,0 6px 22px #000a;color:#f2dca4;font:13px/1.3 Arial,sans-serif;pointer-events:none}
.wb-ach-toast[hidden]{display:none}.wb-ach-toast .wb-ach-copy small{color:#cbbb9f;text-transform:uppercase;letter-spacing:.06em;font-size:10px}.wb-ach-toast b{font-size:15px}
/* Cosmetic portrait frames: restrained rings on the account crest, preview and swatches. */
.wb-cosmetic-frame-bronze{border-color:#a8743e!important;box-shadow:0 0 0 1px #3b2614}
.wb-cosmetic-frame-silver{border-color:#cfd3d8!important;box-shadow:0 0 0 1px #3a3d42}
.wb-cosmetic-frame-gold{border-color:#e8bd52!important;box-shadow:0 0 0 1px #4a3610,0 0 6px #e8bd5266}
.wb-cosmetic-frame-legendary{border-color:#ff8000!important;box-shadow:0 0 0 1px #4a2500,0 0 7px #ff800066}
.wb-cosmetic-frame-fel{border-color:#6fdc3c!important;box-shadow:0 0 0 1px #173a0c,0 0 7px #6fdc3c66}
/* Hallow's End: jack-o'-lantern orange with a violet dusk glow. */
.wb-cosmetic-frame-hallowed{border-color:#ff8f1f!important;box-shadow:0 0 0 1px #3b1606,0 0 7px #ff8f1f88,0 0 12px #7b3fb455}
.wb-cosmetic-frame-winged{border-color:#e8bd52!important;box-shadow:0 0 0 1px #4a3610}
#wb-lobby .wb-account-trigger .wb-account-avatar[class*=wb-cosmetic-frame-]{border-width:2px;border-style:solid}
.wb-account-identity{display:grid;min-width:0;text-align:left}.wb-account-title{font-size:11px;color:#c9a65d;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wb-account-title[hidden]{display:none}
.wb-achievement-title{display:block;margin-top:2px;font-size:11px;color:#8a6a2d;font-style:italic}
.wb-leaderboard-name[class*=wb-cosmetic-frame-]{padding:0 4px;border:1px solid;border-radius:3px}
@media(max-width:900px){
 .wb-ach-cosmetics{grid-template-columns:1fr auto;padding:12px 14px}.wb-ach-identity{grid-row:1/3;grid-column:2}.wb-ach-choices{justify-items:start}.wb-ach-cosmetics label{justify-content:flex-start}
 .wb-ach-frames{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}
}
@media(max-width:640px){
 .wb-ach,.wb-ach-series>summary{gap:8px;padding:8px 10px 8px 4px}
 .wb-ach-side{min-width:44px}.wb-ach-grid{grid-template-columns:1fr}
 /* A phone shows the list sooner: the frame row is hidden (the Portrait frame menu lists every frame and its lock)
    and the crest sits beside the title plaque. */
 .wb-ach-cosmetics{grid-template-columns:1fr;gap:10px}.wb-ach-identity{grid-row:auto;grid-column:auto;flex-direction:row;justify-content:center;gap:10px}.wb-ach-frame-preview{width:42px;height:42px}
 .wb-ach-total>div{max-width:none}.wb-ach-frames{display:none}
 .wb-ach-choices{justify-items:stretch}.wb-ach-cosmetics label{justify-content:space-between}.wb-ach-cosmetics select{flex:1;width:auto;max-width:220px}
 .wb-ach-categories{gap:4px 18px}#wb-achievements-panel .wb-ach-categories button{font-size:14px!important}
 .wb-ach-toast{top:8px;min-width:0}
}
/* The phone layout class mirrors the narrow-width rules for touch devices in landscape. */
.wb-mobile-layout .wb-ach,.wb-mobile-layout .wb-ach-series>summary{gap:8px;padding:8px 10px 8px 4px}
.wb-mobile-layout .wb-ach-grid{grid-template-columns:1fr}
.wb-mobile-layout .wb-ach-cosmetics{grid-template-columns:1fr;gap:10px}.wb-mobile-layout .wb-ach-identity{grid-row:auto;grid-column:auto;flex-direction:row;justify-content:center;gap:10px}.wb-mobile-layout .wb-ach-frames{display:none}
.wb-mobile-layout .wb-ach-choices{justify-items:stretch}.wb-mobile-layout .wb-ach-cosmetics label{justify-content:space-between}.wb-mobile-layout .wb-ach-cosmetics select{flex:1;width:auto;max-width:220px}
/* Four selector tabs on a phone: one row that still fits, with horizontal scroll only as a last resort.
   `nav.` raises specificity above account-ui.css, which loads later. */
@media(max-width:640px){#wb-lobby nav.wb-selector-tabs{gap:18px;overflow-x:auto;scrollbar-width:none}#wb-lobby nav.wb-selector-tabs [role=tab]{flex:none;white-space:nowrap}}
@media(max-width:440px){#wb-lobby nav.wb-selector-tabs{gap:10px}#wb-lobby nav.wb-selector-tabs [role=tab]{gap:4px;font-size:14px!important}#wb-lobby nav.wb-selector-tabs [role=tab] img{width:16px;height:16px}}
.wb-seat-title{display:block;font-size:11px;font-style:italic;color:#c9a65d;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-height:500px){.wb-ach-frames{display:none}.wb-ach-cosmetics{padding:7px 10px;margin-bottom:8px}}
/* Owner atlas pieces (skin/achievements, qa/prepare-achievement-ui-art.py). The gold frame's window is
   42x42 at (28,15) inside 99x84, so the icon column scales from one window size --w. */
/* Every achievement icon sits in the gold frame: rows, series headers and the small cards inside a series.
   A locked achievement's frame is greyed with its icon, so earned frames still stand out. */
:is(.wb-ach,.wb-ach-series>summary) .wb-ach-icon{--w:40px;width:calc(var(--w)*99/42);height:calc(var(--w)*84/42)}
.wb-ach.wb-ach-compact .wb-ach-icon{--w:30px}
:is(.wb-ach,.wb-ach-series>summary) .wb-ach-icon>img:first-child{position:absolute;left:calc(var(--w)*28/42);top:calc(var(--w)*15/42);width:var(--w);height:var(--w);border:0;border-radius:0}
:is(.wb-ach,.wb-ach-series>summary) .wb-ach-icon::before{content:'';position:absolute;inset:0;z-index:1;background:url('./skin/achievements/frame-gold.png') center/100% 100% no-repeat;pointer-events:none}
.wb-ach.is-locked .wb-ach-icon::before{filter:grayscale(1) brightness(.72)}
:is(.wb-ach,.wb-ach-series>summary) .wb-ach-badge{z-index:2}
.wb-ach.is-locked:not(.wb-ach-compact) .wb-ach-icon::after{content:'';position:absolute;z-index:2;right:calc(var(--w)*20/42);bottom:0;width:calc(var(--w)*.62);height:calc(var(--w)*.76);background:url('./skin/achievements/lock-ribbon.png') center/contain no-repeat;pointer-events:none}
.wb-ach-compact.is-locked .wb-ach-icon::after{content:'';position:absolute;z-index:2;right:calc(var(--w)*18/42);bottom:calc(var(--w)*2/42);width:calc(var(--w)*.46);height:calc(var(--w)*.62);background:url('./skin/achievements/lock-gold.png') center/contain no-repeat;pointer-events:none}
.wb-ach-series-lock{display:inline-block;width:13px;height:16px;margin-left:7px;vertical-align:-2px;background:url('./skin/achievements/lock-ribbon.png') center/contain no-repeat}
.wb-ach{position:relative}.wb-ach.is-new::after{content:'';position:absolute;top:-1px;right:14px;width:16px;height:15px;background:url('./skin/achievements/ribbon-new.png') center/100% 100% no-repeat;pointer-events:none}
/* On a small card the points shield sits in the top-right corner, so the new ribbon marks the left edge instead. */
.wb-ach-compact.is-new::after{right:auto;left:8px}
/* The owner's parchment scroll (qa/prepare-achievement-title-scroll.py, 610x238 shown at half size). The padding keeps
   the title on the flat parchment between the rolled ends and inside the torn top and bottom edges. */
.wb-ach-plaque{display:inline-grid;place-items:center;width:305px;max-width:100%;min-width:0;aspect-ratio:610/238;padding:22px 46px 26px;box-sizing:border-box;background:url('./skin/achievements/title-scroll.png') center/100% 100% no-repeat;color:#3a2408;font:18px/1.1 WarbandFriz,Georgia,serif;white-space:normal;text-align:center;overflow-wrap:break-word}
/* Section dividers: the owner's gold rule with the scroll centred under it. */
.wb-ach-divider{display:grid;justify-items:center;margin:0 auto 12px}
.wb-ach-divider .wb-rule{max-width:820px}
.wb-ach-divider .wb-flourish{margin-top:-3px}
/* Bronze, silver and gold portrait frames share the owner's ouroboros artwork.
   Bronze tints the original silver art, preserving its dragon silhouette and alpha. */
/* Crop the image itself when a decorative frame needs visible overflow. The inverse radius
   keeps the circular crop at the crest's edge after account-ui.css enlarges the image 1.18x. */
#wb-lobby .wb-account-trigger .wb-account-avatar>img{clip-path:circle(calc(50% / 1.18))}
#wb-lobby .wb-account-trigger .wb-account-avatar:is(.wb-cosmetic-frame-bronze,.wb-cosmetic-frame-silver,.wb-cosmetic-frame-gold){overflow:visible}
#wb-lobby .wb-account-trigger .wb-account-avatar:is(.wb-cosmetic-frame-bronze,.wb-cosmetic-frame-silver,.wb-cosmetic-frame-gold)::before,.wb-ach-frame-preview:is(.wb-cosmetic-frame-bronze,.wb-cosmetic-frame-silver,.wb-cosmetic-frame-gold)::before,.wb-ach-frame-swatch:is(.wb-cosmetic-frame-bronze,.wb-cosmetic-frame-silver,.wb-cosmetic-frame-gold)::before{content:'';position:absolute;inset:-28%;z-index:3;background:center/contain no-repeat;pointer-events:none}
:is(.wb-account-avatar,.wb-ach-frame-preview,.wb-ach-frame-swatch).wb-cosmetic-frame-bronze::before{background-image:url('./skin/achievements/ring-silver.png')!important;filter:sepia(1) saturate(1.55) hue-rotate(345deg) brightness(.8)}
:is(.wb-account-avatar,.wb-ach-frame-preview,.wb-ach-frame-swatch).wb-cosmetic-frame-silver::before{background-image:url('./skin/achievements/ring-silver.png')!important}
:is(.wb-account-avatar,.wb-ach-frame-preview,.wb-ach-frame-swatch).wb-cosmetic-frame-gold::before{background-image:url('./skin/achievements/ring-gold.png')!important}
.wb-ach-frame-preview,.wb-ach-frame-swatch{position:relative}.wb-ach-frame-preview:is(.wb-cosmetic-frame-bronze,.wb-cosmetic-frame-silver,.wb-cosmetic-frame-gold),.wb-ach-frame-swatch:is(.wb-cosmetic-frame-bronze,.wb-cosmetic-frame-silver,.wb-cosmetic-frame-gold){border-color:transparent!important;box-shadow:none}
/* Winged Frame: the owner's winged seal (skin/ornaments, qa/prepare-ornament-art.py; 160x80, medallion centred at
   (79,39), 64.8px opening). The crest, or the whole level ring in the top bar, sits in the medallion; the seal is
   drawn behind them, and the trigger makes room for the wings. */
#wb-lobby .wb-account-level:has(>.wb-cosmetic-frame-winged),.wb-ach-frame-preview.wb-cosmetic-frame-winged{isolation:isolate}
#wb-lobby .wb-account-level:has(>.wb-cosmetic-frame-winged)::after,.wb-ach-frame-preview.wb-cosmetic-frame-winged::before{content:'';position:absolute;z-index:-1;left:50%;top:50%;
 width:var(--wb-seal-w);height:calc(var(--wb-seal-w)/2);transform:translate(calc(-100%*79/160),calc(-100%*39/80));background:url('./skin/ornaments/seal-winged.png') center/100% 100% no-repeat;pointer-events:none}
#wb-lobby .wb-account-level:has(>.wb-cosmetic-frame-winged){--wb-seal-w:calc(100%*160/64);margin-inline:40px}
@media(max-width:900px){#wb-lobby .wb-account-level:has(>.wb-cosmetic-frame-winged){margin-inline:33px}}
.wb-ach-frame-preview.wb-cosmetic-frame-winged{--wb-seal-w:calc(100%*160/62);margin-inline:30px;border-color:transparent!important;box-shadow:none}
.wb-ach-frames .wb-ach-frame-swatch.wb-cosmetic-frame-winged,.wb-ach-frame-swatch.wb-cosmetic-frame-winged{width:46px;height:23px;border:0;border-radius:0;background:url('./skin/ornaments/seal-winged.png') center/contain no-repeat;box-shadow:none}
@media(max-width:640px){:is(.wb-ach:not(.wb-ach-compact),.wb-ach-series>summary) .wb-ach-icon{--w:30px}.wb-ach-plaque{flex:1;max-width:320px}}
.wb-mobile-layout :is(.wb-ach:not(.wb-ach-compact),.wb-ach-series>summary) .wb-ach-icon{--w:30px}

.wb-mobile-layout .wb-ach-cosmetics{grid-template-columns:minmax(0,1fr)}
.wb-mobile-layout .wb-ach-plaque{flex:1 1 0;width:0;max-width:305px}
@media(max-width:640px){.wb-ach-cosmetics{grid-template-columns:minmax(0,1fr)}.wb-ach-plaque{flex:1 1 0;width:0;max-width:305px}}

/* Rarity is available to pointer and keyboard users without adding another line to each card. */
.wb-ach{position:relative}
.wb-ach-rarity{display:none;position:absolute;right:8px;bottom:8px;z-index:4;max-width:calc(100% - 32px);padding:8px 10px;border:1px solid #b79b60;border-radius:3px;background:#13100bf5;color:#f3e5c4;font:12px/1.4 Arial,sans-serif;box-shadow:0 3px 10px #000a;pointer-events:none}
.wb-ach:is(:hover,:focus-visible) .wb-ach-rarity{display:block}
.wb-ach:focus-visible{outline:1px solid #e6cd8c;outline-offset:2px}
/* Account-level portrait frames (owner, 2026-10-30; qa/prepare-level-portrait-frames.py, receipt
   qa/verification-current/level-portrait-frames.json). Every presentation uses the owner's gallery contract: the
   element wearing the class is the portrait; its 128x128 frame is drawn --wb-frame-span (128 / window diameter) times
   that size around it, so the window seats the portrait; and the whole badge, portrait included, is drawn at
   --wb-frame-scale (the receipt's displayScale: Alliance 0.62, so its outer size is about the Horde frame's). These six
   rules are the only per-frame values; the top bar and Show all rewards (level-track.css) read them. The scale is never
   set on the bare class, which also marks leaderboard and recent-player names. */
.wb-cosmetic-frame-alliance{--wb-frame-art:url('./skin/portrait-frames/alliance.png?art=aaf53797c54e5216');--wb-frame-span:3.333;--wb-frame-scale:.62}
.wb-cosmetic-frame-horde{--wb-frame-art:url('./skin/portrait-frames/horde.png?art=623efb00e2f17b60');--wb-frame-span:2.397;--wb-frame-scale:1}
.wb-cosmetic-frame-eternium{--wb-frame-art:url('./skin/portrait-frames/eternium.png?art=6344c63d9b215752');--wb-frame-span:2.397;--wb-frame-scale:1}
.wb-cosmetic-frame-ice{--wb-frame-art:url('./skin/portrait-frames/ice.png?art=ad54e1d4dadd4ce3');--wb-frame-span:2.431;--wb-frame-scale:1}
.wb-cosmetic-frame-fire{--wb-frame-art:url('./skin/portrait-frames/fire.png?art=b3d6c85218c76e18');--wb-frame-span:2.431;--wb-frame-scale:1}
.wb-cosmetic-frame-arcane{--wb-frame-art:url('./skin/portrait-frames/arcane.png?art=d921ca1727cbb95a');--wb-frame-span:2.805;--wb-frame-scale:1}
:is(.wb-account-avatar,.wb-ach-frame-preview,.wb-ach-frame-swatch):is(.wb-cosmetic-frame-alliance,.wb-cosmetic-frame-horde,.wb-cosmetic-frame-eternium,.wb-cosmetic-frame-ice,.wb-cosmetic-frame-fire,.wb-cosmetic-frame-arcane){overflow:visible;border-color:transparent!important;box-shadow:none;scale:var(--wb-frame-scale,1)}
:is(.wb-account-avatar,.wb-ach-frame-preview,.wb-ach-frame-swatch):is(.wb-cosmetic-frame-alliance,.wb-cosmetic-frame-horde,.wb-cosmetic-frame-eternium,.wb-cosmetic-frame-ice,.wb-cosmetic-frame-fire,.wb-cosmetic-frame-arcane)::before{content:'';position:absolute;left:50%;top:50%;z-index:3;width:calc(100% * var(--wb-frame-span));height:calc(100% * var(--wb-frame-span));transform:translate(-50%,-50%);background:var(--wb-frame-art) center/100% 100% no-repeat;pointer-events:none}
/* Top bar. The crest there is also a .wb-faction-crest, whose `:is(#wb-lobby,…) .wb-faction-crest{overflow:hidden}`
   (account-ui.css) outranked the rule above and clipped every level frame to the portrait circle, so the frame never
   showed. The bar is 64 px tall at the top of the window, so a framed portrait is drawn at --wb-topbar-frame-portrait
   instead of the 46 px crest (22 px for the 36 px narrow crest), so each badge fills about the 56 px level ring it replaces
   and the tallest frame (Arcane) keeps its solid art on screen; the XP ring under the frame is hidden
   (the level plate stays on top) and the level slot widens so the frame clears the tabs and the name. */
#wb-lobby .wb-account-level{--wb-topbar-frame-portrait:28px}
@media(max-width:900px){#wb-lobby .wb-account-level{--wb-topbar-frame-portrait:22px}}
#wb-lobby .wb-account-trigger .wb-account-avatar:is(.wb-cosmetic-frame-alliance,.wb-cosmetic-frame-horde,.wb-cosmetic-frame-eternium,.wb-cosmetic-frame-ice,.wb-cosmetic-frame-fire,.wb-cosmetic-frame-arcane){overflow:visible}
#wb-lobby .wb-account-level>.wb-account-avatar:is(.wb-cosmetic-frame-alliance,.wb-cosmetic-frame-horde,.wb-cosmetic-frame-eternium,.wb-cosmetic-frame-ice,.wb-cosmetic-frame-fire,.wb-cosmetic-frame-arcane){width:var(--wb-topbar-frame-portrait);height:var(--wb-topbar-frame-portrait)}
#wb-lobby .wb-account-level:has(>.wb-account-avatar:is(.wb-cosmetic-frame-alliance,.wb-cosmetic-frame-horde,.wb-cosmetic-frame-eternium,.wb-cosmetic-frame-ice,.wb-cosmetic-frame-fire,.wb-cosmetic-frame-arcane)){margin-inline:6px}
#wb-lobby .wb-account-level:has(>.wb-account-avatar:is(.wb-cosmetic-frame-alliance,.wb-cosmetic-frame-horde,.wb-cosmetic-frame-eternium,.wb-cosmetic-frame-ice,.wb-cosmetic-frame-fire,.wb-cosmetic-frame-arcane))::before{content:none}
