#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}
/* No frame equipped (owner, 2026-11-22: "the default frame border should be just a thin yellowish circle… the thing we
   normally use"): the thin gold level ring, whose opening is about 72% of its width, in place of the grey border. */
.wb-ach-frame-preview:not([class*=wb-cosmetic-frame-]){border-color:transparent!important;box-shadow:none}
.wb-ach-frame-preview:not([class*=wb-cosmetic-frame-])::after{content:'';position:absolute;inset:-19%;z-index:3;background:url('./skin/level-ring.png') center/100% 100% no-repeat;filter:drop-shadow(0 2px 3px #000a);pointer-events:none}
.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}

/* Achievements tab, modernized to match the profile (owner, 2026-11-22). The header is a gold-line plaque
   (skin/play-flow/frame-gold.png); the displayed title sits on the dark plaque in gold in place of the parchment scroll;
   the frame dropdown and the list of frame names are replaced by tiles that show each frame and banner colour, lit when
   worn and greyed with its requirement when locked; achievement cards and series sit on the shop's dark bar
   (login-notices.css --wb-ln-bar). The red bookmark, the gold icon frames and the tab bar are unchanged. */
.wb-ach-cosmetics{padding:10px 18px 12px;border:14px solid transparent;border-image:url('./skin/play-flow/frame-gold.png?art=6a781f2f6cdf9c9b') 34 fill / 14px stretch;background:none;box-shadow:none}
.wb-ach-identity{gap:10px}
.wb-ach-identity .wb-ach-frame-preview{width:72px;height:72px;margin:16px 0 8px}
.wb-ach-plaque{display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:220px;max-width:100%;aspect-ratio:auto;padding:3px 22px 5px;border:8px solid transparent;border-image:var(--wb-ln-plaque) 12 fill / 8px stretch;background:none;color:#ffd100;font:400 18px/1.2 WarbandFriz,Georgia,serif;text-shadow:0 1px 2px #000;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wb-ach-pickers{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 22px;padding-top:10px;border-top:1px solid #d6b16a40}
.wb-ach-picker{min-width:0}
.wb-ach-picker h4{display:flex;align-items:center;gap:10px;margin:0 0 6px;color:#ffe9b0;font:400 15px/1.2 WarbandFriz,Georgia,serif;text-shadow:0 1px 2px #000}
.wb-ach-picker h4::after{content:'';flex:1;height:1px;background:linear-gradient(90deg,#d6b16a88,#d6b16a00)}
.wb-ach-picks{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:6px}
.wb-ach-picker-banner .wb-ach-picks{grid-template-columns:repeat(3,96px)}
#wb-achievements-panel button.wb-ach-pick{display:grid;justify-items:center;align-content:start;gap:3px;min-width:0;min-height:104px;margin:0;padding:4px 4px 6px!important;border:8px solid transparent!important;border-image:var(--wb-ln-bar) 12 fill / 8px stretch!important;border-radius:0;background:none!important;box-shadow:none!important;color:#f6e3b0!important;font:400 12px/1.2 WarbandFriz,Georgia,serif!important;text-align:center;text-shadow:0 1px 2px #000;cursor:pointer}
#wb-achievements-panel button.wb-ach-pick b{font-weight:400}
#wb-achievements-panel button.wb-ach-pick small{color:#b9ab8c;font:10px/1.2 Arial,sans-serif;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#wb-achievements-panel button.wb-ach-pick:is(:hover,:focus-visible):not([aria-disabled=true]){filter:brightness(1.18);outline:0}
#wb-achievements-panel button.wb-ach-pick:focus-visible:not(.is-selected){outline:1px solid #f2c25a;outline-offset:-5px}
#wb-achievements-panel button.wb-ach-pick.is-selected{outline:2px solid #ffd100;outline-offset:-5px;filter:drop-shadow(0 0 6px #ffd10066)}
#wb-achievements-panel button.wb-ach-pick.is-selected>b{color:#ffd100}
#wb-achievements-panel button.wb-ach-pick[aria-disabled=true]{cursor:default}
#wb-achievements-panel button.wb-ach-pick[aria-disabled=true]>:is(.wb-ach-frame-preview,.wb-ach-banner-swatch){filter:grayscale(1) brightness(.6)}
#wb-achievements-panel button.wb-ach-pick[aria-disabled=true]>b{color:#9a927f}
.wb-ach-pick .wb-ach-frame-preview{width:34px;height:34px;margin:16px 0 14px}
.wb-ach-pick .wb-ach-frame-preview.wb-cosmetic-frame-winged{margin-inline:0}
.wb-ach-banner-swatch{position:relative;display:block;width:40px;height:60px;margin:2px 0;--ach-cloth:url('./skin/play-flow/banner.png?art=profile-v1');background:var(--ach-cloth) center/100% 100% no-repeat;filter:drop-shadow(0 3px 4px #000a)}
.wb-ach-banner-swatch::before{content:'';position:absolute;inset:0;background:var(--ach-tint,none);mix-blend-mode:overlay;opacity:.85;-webkit-mask:var(--ach-cloth) center/100% 100% no-repeat;mask:var(--ach-cloth) center/100% 100% no-repeat}
.wb-ach-banner-swatch.is-blue{--ach-tint:linear-gradient(#2f6fd6,#173a86)}
.wb-ach-banner-swatch.is-red{--ach-tint:linear-gradient(#c8362a,#6e120c)}
/* Cards and series on the dark bar; an earned card keeps its warmer text, a locked one stays quiet. */
.wb-ach,.wb-ach-series>summary{padding:2px 10px 2px 0;border:8px solid transparent;border-image:var(--wb-ln-bar) 12 fill / 8px stretch;background:none;box-shadow:none}
.wb-ach:hover,.wb-ach-series>summary:hover{filter:brightness(1.15)}
@media(max-width:900px){.wb-ach-pickers{grid-template-columns:minmax(0,1fr)}.wb-ach-picker-banner .wb-ach-picks{grid-template-columns:repeat(auto-fill,minmax(96px,1fr))}}
@media(max-width:640px){.wb-ach-plaque{min-width:0;flex:1;font-size:16px}.wb-ach-identity .wb-ach-frame-preview{width:56px;height:56px;margin:12px 6px}}
.wb-mobile-layout .wb-ach-pickers{grid-template-columns:minmax(0,1fr)}
.wb-mobile-layout .wb-ach-plaque{min-width:0;flex:1;width:auto}
@media(max-width:640px){.wb-ach-picks,.wb-ach-picker-banner .wb-ach-picks{grid-template-columns:repeat(auto-fill,minmax(80px,1fr))}#wb-achievements-panel button.wb-ach-pick{min-height:92px}.wb-ach-pick .wb-ach-frame-preview{margin:14px 0 10px}}
.wb-mobile-layout :is(.wb-ach-picks,.wb-ach-picker-banner .wb-ach-picks){grid-template-columns:repeat(auto-fill,minmax(80px,1fr))}
/* A series opens from its right edge (owner, 2026-11-22: "the plus should not be on the left. It should be on the
   right"). Same shared plus / minus art and red light (disclosure-controls.css); only its place changes. */
#wb-achievements-panel .wb-ach-series>summary{padding-left:0!important;padding-right:calc(var(--wb-disclosure-width) + 22px)!important}
#wb-achievements-panel .wb-ach-series>summary::before{left:auto;right:12px}
#wb-achievements-panel .wb-ach-series>summary::after{left:auto;right:calc(12px + var(--wb-disclosure-width)/2);transform:translate(50%,-50%)}

/* Frame and banner are two buttons in the header that show what is worn; the tiles live in a small window that a click
   opens (owner, 2026-11-22). The window wears the shop's stone frame over wood, the shared close button and a red Done. */
.wb-ach-choices{align-content:center;gap:8px}
#wb-achievements-panel button.wb-ach-edit{display:flex;align-items:center;gap:12px;width:250px;max-width:100%;min-height:58px;margin:0;padding:0 10px 0 4px!important;border:8px solid transparent!important;border-image:var(--wb-ln-bar) 12 fill / 8px stretch!important;border-radius:0;background:none!important;box-shadow:none!important;color:#f6e3b0!important;text-align:left;text-shadow:0 1px 2px #000;cursor:pointer}
#wb-achievements-panel button.wb-ach-edit:is(:hover,:focus-visible){filter:brightness(1.2);outline:0}
#wb-achievements-panel button.wb-ach-edit:focus-visible{outline:1px solid #f2c25a;outline-offset:-5px}
.wb-ach-edit>span:last-child{display:grid;gap:1px;min-width:0}
.wb-ach-edit small{color:#b9ab8c;font:11px/1.2 Arial,sans-serif;letter-spacing:.06em;text-transform:uppercase}
.wb-ach-edit b{overflow:hidden;font:400 15px/1.2 WarbandFriz,Georgia,serif;text-overflow:ellipsis;white-space:nowrap}
.wb-ach-edit .wb-ach-frame-preview{flex:none;width:30px;height:30px;margin:6px 10px}
.wb-ach-edit .wb-ach-frame-preview.wb-cosmetic-frame-winged{margin-inline:10px}
.wb-ach-edit .wb-ach-banner-swatch{flex:none;width:26px;height:38px;margin:0 12px}
#wb-achievements-panel>.wb-ach-editor{position:fixed;inset:0;z-index:9040;display:grid;place-items:center;width:auto;max-width:none;margin:0;padding:20px;box-sizing:border-box;background:#000b}
.wb-ach-editor-frame{--ln-width:720px;--ln-top:30px;--ln-side:10px;--ln-bottom:56px;max-height:calc(100dvh - 40px);margin:0;padding:10px 16px 14px;text-align:left;
 background:linear-gradient(#150c0666,#150c0699),var(--wb-ln-wood) center/cover no-repeat,#3b2314;background-clip:padding-box}
.wb-ach-editor-frame h3{margin:2px 0 10px;color:#ffe9b0;font:400 22px/1.2 WarbandFriz,Georgia,serif;text-shadow:0 2px 3px #000}
.wb-ach-editor-frame .wb-ach-picks{min-height:0;overflow:auto;overscroll-behavior:contain;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:8px;padding:2px}
#wb-achievements-panel .wb-ach-editor-frame button.wb-ach-pick{min-height:118px;font-size:13px!important}
.wb-ach-editor-frame .wb-ach-pick .wb-ach-frame-preview{width:40px;height:40px;margin:20px 0 18px}
.wb-ach-editor-frame .wb-ach-banner-swatch{width:50px;height:76px;margin:4px 0 2px}
#wb-achievements-panel .wb-ach-editor-frame button.wb-stock-close{position:absolute;z-index:5;top:calc(var(--ln-top) / -2 - 22px);right:calc(-1 * var(--ln-side) - 4px);width:44px;height:44px;min-height:44px;margin:0;padding:0!important;font-size:0!important}
.wb-ach-editor-footer{position:absolute;left:0;right:0;bottom:calc(-1 * var(--ln-bottom));display:flex;align-items:center;justify-content:center;height:var(--ln-bottom);padding-top:2px;box-sizing:border-box}
@media(max-width:900px){.wb-ach-choices{justify-items:start}}
@media(max-width:640px){#wb-achievements-panel button.wb-ach-edit{width:100%}#wb-achievements-panel>.wb-ach-editor{padding:8px}.wb-ach-editor-frame{--ln-top:26px;--ln-side:8px;--ln-bottom:52px;max-height:calc(100dvh - 16px);padding:8px 8px 10px}.wb-ach-editor-frame .wb-ach-picks{grid-template-columns:repeat(auto-fill,minmax(96px,1fr))}}
.wb-mobile-layout #wb-achievements-panel button.wb-ach-edit{width:100%}
