/* Adventures (owner, 2026-11-13: the primary feature of 1.7). The reviewed prototype's stylesheet
   (qa/expedition-stage0.css), scoped to the full-window Adventures view (.xp-app) so nothing reaches the rest of the
   game page. No screen needs a page scroll (owner, 2026-11-11); red buttons only; no parchment. */
@font-face{font-family:WarbandFriz;src:url('skin/warsworn-regular.ttf?font=warsworn-v1') format('truetype');font-weight:400 900;font-display:block}
@font-face{font-family:WarbandFriz;src:url('skin/warsworn-light.ttf?font=warsworn-v1') format('truetype');font-weight:100 300;font-display:block}
.xp-app{
 color-scheme:dark;
 --xp-kit-frame:url('skin/ui-kit/frame.png?art=fed1a7c1de722149');
 --xp-kit-bar-health:url('skin/ui-kit/bar-health.png?art=42d774f1e04cd585');
 --xp-kit-bar-mana:url('skin/ui-kit/bar-mana.png?art=dc6534ee0861a377');
 --xp-kit-stone:url('skin/ui-kit/stone-dark.png?art=54db0b108c7a7b4e');
 --xp-kit-title:url('skin/ui-kit/title-plate.png?art=f1544111a2966e42');
 --xp-gold-frame:url('skin/play-flow/frame-gold.png?art=6a781f2f6cdf9c9b');
 --xp-planks:url('skin/campaign/board-tile.jpg?art=board-v3');
 --xp-divider:url('skin/play-flow/divider.png?art=cad47a8b6d4e8fbe');
 --xp-crest:url('skin/faction-crest-ring.png');
 --xp-hero-ring:url('skin/owner-ui/gold-ring.png?art=hero-crest-v1');
 --xp-defeated:url('skin/campaign/defeated-x.png?art=defeated-x-v1');
 --xp-level-ring:url('skin/level-ring.png');
 --xp-ring-enchant:url('skin/card-fx/ring-enchant.png');
 --xp-gold:#ffd100;--xp-title:#f3d78a;--xp-text:#e8dcc4;--xp-muted:#bfb39a;--xp-dim:#8f846d;
 --xp-good:#8fd17a;--xp-bad:#e0705a;
 --xp-ease:cubic-bezier(.2,.75,.25,1);
}
.xp-app,.xp-app *{box-sizing:border-box}
.xp-app{position:fixed;inset:0;z-index:60;overflow:hidden;color:var(--xp-text);font:14px/1.45 Arial,sans-serif;text-shadow:0 1px 1px #000;
 background:radial-gradient(ellipse at 50% 20%,#231c15,#0b0907 80%)}
.xp-loading{padding:40px;text-align:center;color:var(--xp-muted);font:18px WarbandFriz,Georgia,serif}
.xp-app h1,.xp-app h2,.xp-app h3,.xp-app .xp-friz{font-family:WarbandFriz,Georgia,serif;font-weight:400}
.xp-app button{font:inherit;color:inherit}
.xp-app :focus-visible{outline:2px solid #f2ddaa;outline-offset:3px}
.xp-visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---- Shared frames ---------------------------------------------------------------------------------------- */
/* The dialogs' silver frame on the dark stone tile (same slicing as dialog-frames.css). */
.xp-stone{position:relative;border:9px solid transparent;border-image:var(--xp-kit-frame) 115 / 58px / 6px stretch;
 background:linear-gradient(#ffffff06,#00000030),var(--xp-kit-stone) 0 0/256px 256px repeat,#1b1713;background-clip:border-box;
 box-shadow:0 18px 50px #000c;color:var(--xp-text)}
/* The stone title plate (three-slice, 46 px). */
.xp-plate{display:inline-flex;align-items:center;justify-content:center;height:46px;min-width:180px;max-width:100%;margin:0 0 12px;
 padding:0 6px 2px;border:0 solid transparent;border-width:0 40px;border-image:var(--xp-kit-title) 0 123 fill / 0 40px stretch;
 color:var(--xp-gold);font:400 21px/1 WarbandFriz,Georgia,serif;letter-spacing:.02em;text-shadow:0 1px 2px #000,0 0 6px #000;white-space:nowrap}
.xp-plate small{margin-left:10px;color:var(--xp-title);font-size:15px;opacity:.9}
/* The Find Match / campaign card gold line. */
.xp-goldline{border:14px solid transparent;border-image:var(--xp-gold-frame) 34 fill / 14px stretch;background:none}
.xp-divider{height:14px;margin:6px 0 10px;background:var(--xp-divider) center/contain no-repeat;opacity:.85}
.xp-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:14px}
.xp-actions[hidden]{display:none}
.xp-actions .wb-owner-button{min-width:178px}

/* Gold crest: round art inside the faction crest ring. The ring's opening is 80% of its width (measured from the art),
   so the art fills 84% and tucks under the ring. Square Classic icons are zoomed 14% so their baked border is cut away;
   small transparent glyphs (the coin, the quest mark, the emblem) sit whole inside the opening. */
.xp-crest{position:relative;display:inline-block;flex:none;width:var(--crest,48px);height:var(--crest,48px);border-radius:50%;
 background:radial-gradient(circle,#2b2116 0 60%,#120c07 100%)}
.xp-crest::after{content:'';position:absolute;inset:0;background:var(--xp-crest) center/100% 100% no-repeat;pointer-events:none}
.xp-portrait{position:absolute;inset:8%;border-radius:50%;background:var(--portrait) center/114% no-repeat;pointer-events:none}
.xp-portrait.is-glyph{inset:24%;border-radius:0;background-size:contain}

/* ---- Campaigns page (replica of the current page: planks, gold-line cards, zone-art headers) ---------------- */
.xp-page{width:min(1220px,100%);min-height:100dvh;margin:0 auto;padding:clamp(12px,2.4dvh,22px) clamp(10px,2vw,22px);display:flex;flex-direction:column;justify-content:center}
.xp-page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:0 0 14px}
.xp-page-heading h1{margin:0;color:#ffe2a6;font-size:clamp(24px,2.4vw,34px);text-shadow:0 2px 3px #000}
.xp-board-page{padding:18px;background:linear-gradient(#0b070414,#0b070438),var(--xp-planks) 0 0/512px auto repeat;box-shadow:inset 0 0 0 1px #6f5532,inset 0 0 50px #000a}
.xp-campaign-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:24px}
.xp-campaign{display:grid;grid-template-rows:clamp(110px,20dvh,170px) 1fr;min-height:min(430px,62dvh);box-shadow:0 10px 26px #0008}
.xp-campaign-art{position:relative;display:grid;place-items:center;background:linear-gradient(#160e0740,#160e07a8),var(--art) center/cover}
.xp-campaign-art img{width:72px;height:72px;border:2px solid #c09b55;box-shadow:0 3px 18px #000b}
.xp-campaign-art .xp-crest{filter:drop-shadow(0 3px 10px #000c)}
.xp-campaign-art .xp-new{position:absolute;top:10px;right:10px;padding:3px 9px;border:1px solid #c9a35a;background:#2a1d10e6;color:var(--xp-gold);font:12px WarbandFriz,Georgia,serif;letter-spacing:.05em}
.xp-campaign-copy{display:flex;flex-direction:column;gap:10px;padding:22px 24px 24px}
.xp-campaign-copy h2{margin:0;color:#eed392;font-size:24px;line-height:1.2}
.xp-campaign-copy p{margin:0;color:#ddd0b8;max-width:34ch}
.xp-campaign-copy .xp-progress{color:#bdab8a;font-size:13px}
.xp-campaign-copy .xp-progress b{color:#f0d796;font-weight:400}
.xp-campaign-copy .wb-owner-button{margin-top:auto;align-self:stretch}
.xp-campaign.is-context{opacity:.72;filter:saturate(.8)}

/* ---- Run setup -------------------------------------------------------------------------------------------- */
.xp-dialog-wrap{display:grid;grid-template-columns:minmax(0,1fr);place-items:center;min-height:100dvh;padding:clamp(10px,2dvh,24px) 14px}
.xp-dialog{width:min(980px,100%);min-width:0;padding:clamp(12px,2dvh,20px) 26px clamp(14px,2.4dvh,24px)}
.xp-dialog>header{display:flex;flex-direction:column;align-items:center;text-align:center}
.xp-dialog>header p{margin:-2px 0 6px;color:var(--xp-muted);max-width:60ch}
.xp-section-label{margin:14px 0 8px;text-align:center;color:#cfb98b;font:11px Arial,sans-serif;letter-spacing:.08em;text-transform:uppercase}
.xp-slots{display:flex;flex-wrap:wrap;justify-content:center;gap:22px}
.xp-slot{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:110px;color:var(--xp-title);font:15px WarbandFriz,Georgia,serif}
.xp-slot .xp-crest{--crest:74px}
.xp-slot small{color:var(--xp-muted);font:11px Arial,sans-serif;letter-spacing:.06em;text-transform:uppercase}
/* Choose your road: three zones, each shown by its own world map. */
.xp-road-page{width:min(1180px,100%);display:flex;flex-direction:column;align-items:center}
.xp-road-page>header{display:flex;flex-direction:column;align-items:center;text-align:center}
.xp-road-page>header p{margin:-2px 0 0;color:var(--xp-muted);max-width:64ch}
.xp-roads-row{display:flex;justify-content:center;gap:clamp(12px,2vw,26px);width:100%;margin-top:clamp(10px,2.4dvh,22px)}
.xp-road{flex:1 1 0;max-width:360px;min-width:0;display:flex;flex-direction:column;padding:0;color:inherit;text-align:left;background:linear-gradient(#ffffff05,#00000040),var(--xp-kit-stone) 0 0/256px 256px repeat,#1b1713;background-clip:padding-box;
 box-shadow:0 10px 26px #0009;transition:translate .16s var(--xp-ease),filter .16s}
.xp-road:is(:hover,:focus-visible){translate:0 -6px;filter:brightness(1.12)}
.xp-road-art{display:block;aspect-ratio:1002/668;max-height:34dvh;background:linear-gradient(#0000 55%,#14100cdd),var(--art) center/cover no-repeat;border-bottom:1px solid #6f5532}
.xp-road-copy{display:flex;flex-direction:column;gap:clamp(4px,1dvh,9px);padding:clamp(10px,1.8dvh,16px) 18px clamp(12px,2dvh,18px)}
.xp-road-copy strong{color:var(--xp-gold);font:clamp(20px,2vw,26px)/1.1 WarbandFriz,Georgia,serif;font-weight:400}
.xp-road-copy small{color:var(--xp-muted);font-size:12.5px}
.xp-road-boss{display:flex;align-items:center;gap:10px;color:var(--xp-muted);font-size:12px}
.xp-road-boss b{display:block;color:var(--xp-title);font:15px/1.2 WarbandFriz,Georgia,serif;font-weight:400}
.xp-road-portrait{flex:none;width:38px;height:38px;border-radius:50%;background:var(--portrait) center/116% no-repeat,#120c07;box-shadow:0 0 0 2px #c9a35a,0 2px 6px #000c}
.xp-road-portrait.is-glyph{background-size:62%}
.xp-road-portrait+.xp-road-portrait{margin-left:-18px}
.xp-road-facts{color:var(--xp-text);font-size:12.5px}
.xp-road .xp-take{margin-top:2px;color:#ffe6a3;font:13px WarbandFriz,Georgia,serif}

/* ---- Zone intro ------------------------------------------------------------------------------------------- */
.xp-intro{position:fixed;inset:0;z-index:40;display:grid;place-items:center;overflow:hidden;
 background:radial-gradient(ellipse at 50% 55%,#0000 30%,#000d 100%),var(--art) center/cover #000}
.xp-intro::before{content:'';position:absolute;inset:0;background:linear-gradient(#0008,#0000 30%,#0000 60%,#000c)}
.xp-intro-text{position:relative;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}
.xp-intro-text h1{margin:0;color:var(--xp-gold);font-size:clamp(42px,7vw,86px);line-height:1;text-shadow:0 3px 3px #000,0 0 24px #000c;opacity:0;animation:xp-zone-rise 1.1s .25s var(--xp-ease) forwards}
.xp-intro-text p{margin:0;color:#f3e6c4;font:clamp(16px,2vw,22px) WarbandFriz,Georgia,serif;opacity:0;animation:xp-fade .7s .9s forwards}
.xp-intro small{position:absolute;bottom:22px;left:50%;translate:-50% 0;color:#cdbf9f;font-size:12px;opacity:.75}
@keyframes xp-zone-rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes xp-fade{from{opacity:0}to{opacity:1}}

/* ---- Map screen ------------------------------------------------------------------------------------------- */
/* One window, no scroll: a slim header, then the zone board fitted to the space beside the node panel. */
.xp-run{height:100dvh;width:min(1560px,100%);margin:0 auto;padding:clamp(8px,1.4dvh,14px) clamp(10px,1.6vw,24px) clamp(10px,1.6dvh,16px);display:grid;grid-template-rows:auto minmax(0,1fr);gap:clamp(8px,1.2dvh,12px);overflow:hidden}
.xp-run-header{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:clamp(12px,2vw,28px);min-height:58px}
/* The board and its panel sit together in the middle: a tall zone (Durotar, the Barrens) keeps its panel beside it. */
.xp-run-main{container-type:size;display:flex;justify-content:center;gap:var(--gap);min-height:0;--panel:clamp(272px,23vw,330px);--gap:clamp(10px,1.2vw,18px)}
.xp-zone-title{min-width:0}
.xp-zone-title h1{margin:0;color:var(--xp-gold);font-size:clamp(22px,2.2vw,30px);line-height:1.05;letter-spacing:.03em}
.xp-zone-title p{margin:3px 0 0;color:var(--xp-muted);font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.xp-hero{display:flex;align-items:center;gap:10px;justify-self:center}
.xp-hero .xp-hero-crest{position:relative;width:48px;height:48px;flex:none}
/* The gold ring's opening is 69% of its width. */
.xp-hero-crest .xp-portrait{inset:14%}
.xp-hero .xp-hero-crest::after{content:'';position:absolute;inset:0;background:var(--xp-hero-ring) center/contain no-repeat}
.xp-hp{display:grid;gap:3px;min-width:180px}
.xp-hp-row{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font:13px WarbandFriz,Georgia,serif;color:var(--xp-title)}
.xp-hp-row b{font-weight:400;color:#fff}
/* The slim 7 px Hero Health bar: same tone helper and gradient as the top bar. */
.xp-hp-bar{position:relative;height:7px;border-radius:4px;background:#0a0807;box-shadow:inset 0 0 0 1px #000,0 0 0 1px #4a3c27}
.xp-hp-bar::before{content:'';position:absolute;inset:1px auto 1px 1px;width:calc((100% - 2px) * var(--wb-hero-health-fraction,1));border-radius:3px;
 background:linear-gradient(var(--wb-hero-health-light),var(--wb-hero-health-base) 45%,var(--wb-hero-health-dark));transition:width .7s var(--xp-ease)}
.xp-hp.is-hurt .xp-hp-bar{animation:xp-hurt .7s}
@keyframes xp-hurt{0%,100%{box-shadow:inset 0 0 0 1px #000,0 0 0 1px #4a3c27}25%{box-shadow:inset 0 0 0 1px #000,0 0 0 2px #e0503a,0 0 14px #e0503acc}}
.xp-relics{justify-self:end;display:flex;align-items:center;gap:8px;min-height:44px;padding:4px 10px 4px 8px;border:5px solid transparent;border-image:var(--xp-kit-frame) 115 / 26px / 2px stretch;
 background:var(--xp-kit-stone) 0 0/256px repeat,#1b1713}
.xp-relics ol{display:flex;gap:4px;margin:0;padding:0;list-style:none}
.xp-relics li{position:relative;width:32px;height:32px}
.xp-relics li img{width:100%;height:100%;display:block}
/* A relic is an enchantment: blue edge for Basic, purple for Epic. */
.xp-relics li[data-quality]{box-shadow:0 0 0 1px #000,0 0 0 2px #3f7fd0}
.xp-relics li[data-quality='purple']{box-shadow:0 0 0 1px #000,0 0 0 2px #9a5cd6}
.xp-relics li.xp-relics-more{display:grid;place-items:center;color:var(--xp-muted);font:13px WarbandFriz,Georgia,serif}
.xp-relics-empty{color:var(--xp-dim);font-size:12px;padding:0 2px}
.xp-relics li.is-new::after{content:'';position:absolute;inset:-4px;border-radius:4px;box-shadow:0 0 0 2px #ffe09a,0 0 12px #ffd36a;animation:xp-glint 1.6s ease-out forwards}
.xp-relics .xp-dust{display:flex;align-items:center;gap:3px;padding-left:8px;margin-left:2px;border-left:1px solid #ffffff1a;color:#e4d7f6;font:14px WarbandFriz,Georgia,serif}
.xp-relics .xp-dust img{width:18px;height:18px}
@keyframes xp-glint{0%{opacity:0}20%{opacity:1}100%{opacity:0}}

/* The board: the zone's own world map inside the gold line, fitted whole into its cell. Each zone has its own shape (its
   map window); crests and labels scale with the board's height (cqh), so they keep their spacing at every window size. */
.xp-board-cell{container-type:size;display:flex;flex:none;width:min(calc(100cqw - var(--panel) - var(--gap)),calc((100cqh - 26px) * var(--board-ar,1.5) + 26px));min-width:0;min-height:0;padding:13px}
.xp-board-frame{position:relative;flex:none;margin:auto;width:min(100cqw,calc(100cqh * var(--board-ar,1.5)));aspect-ratio:var(--board-ar,1.5)}
.xp-board-frame::after{content:'';position:absolute;inset:-13px;border:14px solid transparent;border-image:var(--xp-gold-frame) 34 / 14px stretch;pointer-events:none}
.xp-board{position:absolute;inset:0;overflow:hidden;container-type:size;background:linear-gradient(#0b070430,#0b070466),var(--xp-kit-stone) 0 0/256px 256px repeat,#14110d;
 --unit:clamp(.56px,.1351cqh,1.2px)}
.xp-terrain{position:absolute;inset:0}
.xp-terrain-art{position:absolute;inset:0;background:var(--map) center/100% 100% no-repeat;filter:brightness(.6) saturate(.72) contrast(1.04) sepia(.12);
 mask-image:radial-gradient(var(--mask,ellipse 72% 72% at 50% 50%),#000 62%,transparent 100%);transition:opacity .35s}
.xp-board[data-terrain='planks'] .xp-terrain-art{opacity:0}
.xp-board::after{content:'';position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 70px #000c}
.xp-roads{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
/* Roads (owner, 2026-11-15: "the level of opacity just feels like it's difficult to track"): every road is drawn on its own
   dark casing, so it reads on light and dark ground alike and, where two must cross, one passes
   cleanly over the other; the four states differ by colour, weight and dashes: roads ahead thin parchment dashes; your next
   steps gold dashes; the one to the selected place solid and bright; your trail solid gold. Roads you have passed by are
   not drawn. */
.xp-roads path{fill:none;vector-effect:non-scaling-stroke;stroke-linecap:round}
.xp-roads .xp-road-line{stroke:#e4dac2;stroke-opacity:.55;stroke-width:1.4px;stroke-dasharray:4 5}
.xp-roads .is-open>.xp-road-line{stroke:#ffc23d;stroke-opacity:1;stroke-width:2.8px;stroke-dasharray:8 5}
.xp-roads .is-chosen>.xp-road-line{stroke:#fff1c4;stroke-opacity:1;stroke-width:3.2px;stroke-dasharray:none}
.xp-roads .is-walked>.xp-road-line{stroke:#d9a83c;stroke-opacity:1;stroke-width:3.4px;stroke-dasharray:none}
.xp-roads .xp-road-case{stroke:#120c07;stroke-opacity:.45;stroke-width:3.8px}
.xp-roads :is(.is-open,.is-chosen,.is-walked)>.xp-road-case{stroke-opacity:.8;stroke-width:6.4px}
.xp-roads .is-chosen>.xp-road-case{stroke:#3a2608;stroke-opacity:.9;stroke-width:7.6px}
/* Crest sizes in board units (1 unit = 1/740 of the board's height): 44 for places, 46 chests and curiosities, 50 rares,
   54 bosses and 66 for the zone boss. The checker (game/expedition-zones.test.mjs) tests spacing with the same sizes. */
.xp-node{position:absolute;left:calc(var(--x) * 1%);top:calc(var(--y) * 1%);z-index:2;translate:-50% -50%;width:var(--crest);height:var(--crest);padding:0;border:0;border-radius:50%;
 background:radial-gradient(circle,#2b2116 0 60%,#120c07 100%);--crest:calc(var(--unit) * 44);transition:scale .15s var(--xp-ease),filter .2s}
.xp-node::before{content:'';position:absolute;inset:0;z-index:1;background:var(--xp-crest) center/100% 100% no-repeat;pointer-events:none}
/* Every named boss carries the owner's boss skull, as the Defias campaign's boss chapters do. */
.xp-node .xp-boss-mark{position:absolute;top:-12%;left:-12%;z-index:4;width:40%;height:auto;pointer-events:none;filter:drop-shadow(0 1px 2px #000)}
.xp-node.is-visited .xp-boss-mark{filter:grayscale(.5) brightness(.7) drop-shadow(0 1px 2px #000)}
.xp-node.is-chest,.xp-node.is-curiosity{--crest:calc(var(--unit) * 46)}
.xp-node.is-rare{--crest:calc(var(--unit) * 50)}
.xp-node.is-miniboss{--crest:calc(var(--unit) * 54)}
.xp-node.is-boss{--crest:calc(var(--unit) * 66)}
/* Rare: the Classic rare colour, a silver crest. */
.xp-node.is-rare::before{filter:grayscale(1) brightness(1.6) contrast(1.15) drop-shadow(0 0 5px #d9e8ff)}
.xp-node.is-miniboss::before{filter:brightness(1.22) saturate(1.3) drop-shadow(0 0 5px #ffb347)}
.xp-node.is-boss::before{filter:drop-shadow(0 0 7px #ff5a2e) drop-shadow(0 0 3px #ffd36a)}
/* A place you can pick next glows like a lit globe (owner, 2026-11-15: the old outer ring was "too wide … a circle around
   the circle"; it "should just be right behind the existing golden ring … a feathered perimeter with a slight glow"): a soft
   gold halo starts under the crest's own ring and feathers out, with no second ring. The selected place glows brighter. */
.xp-node.is-reachable::after{content:'';position:absolute;inset:5%;z-index:0;border-radius:50%;box-shadow:0 0 calc(var(--crest) * .2) calc(var(--crest) * .04) #ffcf5aa6;pointer-events:none}
.xp-node.is-chest.is-reachable::after,.xp-node.is-curiosity.is-reachable::after{box-shadow:0 0 calc(var(--crest) * .24) calc(var(--crest) * .05) #ffcf5abf}
.xp-node.is-selected{scale:1.12;z-index:4;animation:none}
.xp-node.is-selected::after{content:'';position:absolute;inset:5%;z-index:0;border-radius:50%;box-shadow:0 0 calc(var(--crest) * .3) calc(var(--crest) * .08) #ffe7a6e6;pointer-events:none}
/* Not yet on your road, or locked behind its guardian: dim, still clickable to scout. */
.xp-node.is-locked{filter:grayscale(.25) brightness(.85);}
.xp-node.is-guarded .xp-portrait{filter:brightness(.5) grayscale(.5)}
.xp-node.is-visited{filter:grayscale(.75) brightness(.55);}
.xp-node.is-visited::after{content:'';position:absolute;inset:-14%;z-index:3;background:var(--xp-defeated) center/contain no-repeat;filter:drop-shadow(0 1px 2px #000c)}
.xp-node.is-visited.is-noncombat::after{background:none;box-shadow:0 0 0 2px #e8c46a66;inset:0;border-radius:50%}
/* A lair with two bosses: the second boss rides the crest's upper right as a smaller gold-rimmed portrait. */
.xp-partner{position:absolute;right:-16%;top:-12%;z-index:4;width:50%;aspect-ratio:1;border-radius:50%;background:#120d09;box-shadow:0 0 0 2px #c9a35a,0 2px 5px #000c;pointer-events:none}
.xp-partner-art{position:absolute;inset:0;border-radius:50%;background:var(--portrait) center/116% no-repeat}
.xp-partner-art.is-glyph{background-size:70%}
/* The lock: the real key in a small round badge. */
.xp-lock{position:absolute;right:-12%;bottom:-12%;z-index:4;width:46%;aspect-ratio:1;border-radius:50%;background:#120d09;box-shadow:0 0 0 1px #8a7347,0 2px 4px #000c}
.xp-lock-art{position:absolute;inset:2px;border-radius:50%;background:var(--portrait) center/118% no-repeat}
/* Every crest is labelled: bosses and rares by name, other places by the place. */
.xp-node-label{position:absolute;left:50%;top:calc(100% + var(--unit) * 4);translate:-50% 0;z-index:5;white-space:nowrap;padding:.14em .62em .1em;border-radius:2px;background:#0b0806e6;
 box-shadow:0 0 0 1px #5a4a3266;color:#f3e6c4;font:calc(var(--unit) * 12.4)/1.2 WarbandFriz,Georgia,serif;pointer-events:none;transition:color .15s}
.xp-node.is-miniboss>.xp-node-label,.xp-node.is-boss>.xp-node-label{color:#ffd8a0}
.xp-node.is-rare>.xp-node-label{color:#e6eefc}
.xp-node.is-locked>.xp-node-label,.xp-node.is-visited>.xp-node-label{color:#b1a792}
.xp-node:is(:hover,:focus-visible,.is-selected)>.xp-node-label{color:#fff;box-shadow:0 0 0 1px #c9a35a}
.xp-node:hover:not(.is-visited){scale:1.1}
.xp-start{position:absolute;z-index:2;left:calc(var(--x) * 1%);top:calc(var(--y) * 1%);width:calc(var(--unit) * 16);height:calc(var(--unit) * 16);translate:-50% -50%;rotate:45deg;
 border:2px solid #ffe09a;background:linear-gradient(135deg,#ffe9a8,#9a6a1c);box-shadow:0 0 10px #ffcf6a99,0 2px 4px #000c}
.xp-start .xp-node-label{rotate:-45deg;opacity:.9;left:50%;top:50%;translate:-50% calc(var(--unit) * 14)}
/* Where you are (owner, 2026-11-15): first "a little background golden glow … a small arrow with text on top of it that
   says 'You'", then "I want it to be this golden waypoint with the outline around it on top of it". The owner's waypoint
   art (qa/prepare-adventure-waypoint.py): its glow ring breathing behind, the gold diamond, the outline on top, the same
   size at every zoom, in place of the place's own circle; the "You" tag points down at it. Nothing else on the map pulses
   ("I don't want the bosses to pulsate … Just you"). */
.xp-waypoint{--wp:28px;position:absolute;z-index:6;left:calc(var(--x) * 1%);top:calc(var(--y) * 1%);width:var(--wp);height:var(--wp);translate:-50% -50%;pointer-events:none}
.xp-waypoint>i{position:absolute;left:50%;top:50%;translate:-50% -50%;background:center/100% 100% no-repeat}
.xp-waypoint-glow{width:calc(var(--wp) * 1.5);height:calc(var(--wp) * 1.5);background-image:url('skin/adventure-waypoint/glow.png?art=84578ba7847a9b09')!important;animation:xp-here 1.8s ease-in-out infinite}
.xp-waypoint-pin{width:var(--wp);height:var(--wp);background-image:url('skin/adventure-waypoint/pin.png?art=63ef71a299d0bd80')!important;filter:drop-shadow(0 2px 3px #000c)}
.xp-waypoint-line{width:calc(var(--wp) * 26 / 24);height:calc(var(--wp) * 26 / 24);background-image:url('skin/adventure-waypoint/outline.png?art=4c9bc8b99690ddae')!important}
@keyframes xp-here{0%,100%{scale:.86;opacity:.65}50%{scale:1.08;opacity:1}}
.xp-app .xp-node.is-here,.xp-app .xp-start.is-here{visibility:hidden;pointer-events:none}
.xp-you{--lift:calc(28px * 13 / 24 + 16px);position:absolute;z-index:7;left:calc(var(--x) * 1%);top:calc(var(--y) * 1%);translate:-50% calc(-100% - var(--lift));
 padding:.18em .62em .12em;border-radius:3px;background:#0b0806eb;box-shadow:0 0 0 1px #c9a35a;color:#ffd36a;filter:drop-shadow(0 1px 1px #000) drop-shadow(0 2px 6px #000b);
 font:max(12px,calc(var(--unit) * 14))/1.15 WarbandFriz,Georgia,serif;letter-spacing:.04em;white-space:nowrap;pointer-events:none;animation:xp-you 1.8s ease-in-out infinite}
.xp-you::after{content:'';position:absolute;left:50%;top:calc(100% + 3px);translate:-50% 0;border-style:solid;border-color:#ffd36a transparent transparent;border-width:9px 7px 0}
@keyframes xp-you{0%,100%{translate:-50% calc(-100% - var(--lift))}50%{translate:-50% calc(-100% - var(--lift) + 3px)}}
.xp-you.is-right{translate:var(--lift) -50%;animation-name:xp-you-right}
.xp-you.is-left{translate:calc(-100% - var(--lift)) -50%;animation-name:xp-you-left}
@keyframes xp-you-right{0%,100%{translate:var(--lift) -50%}50%{translate:calc(var(--lift) - 3px) -50%}}
@keyframes xp-you-left{0%,100%{translate:calc(-100% - var(--lift)) -50%}50%{translate:calc(-100% - var(--lift) + 3px) -50%}}
.xp-you.is-right::after{left:auto;right:calc(100% + 3px);top:50%;translate:0 -50%;border-color:transparent #ffd36a transparent transparent;border-width:7px 9px 7px 0}
.xp-you.is-left::after{left:calc(100% + 3px);top:50%;translate:0 -50%;border-color:transparent transparent transparent #ffd36a;border-width:7px 0 7px 9px}
@media (prefers-reduced-motion:reduce){.xp-waypoint-glow,.xp-you{animation:none}}
/* The zone quest sits under the zone title, off the board. */
.xp-zone-title .xp-quest{display:flex;align-items:center;gap:6px;margin:4px 0 0;font-size:12.5px;color:var(--xp-text)}
.xp-quest img{width:18px;height:18px;flex:none}
.xp-quest span{overflow:hidden;text-overflow:ellipsis}
.xp-quest b{color:var(--xp-gold);font:13px WarbandFriz,Georgia,serif;font-weight:400}
.xp-quest em{font-style:normal;color:#8fd17a}

/* Node preview: stone panel with the title plate. */
.xp-preview{align-self:stretch;flex:none;width:var(--panel);display:flex;flex-direction:column;gap:clamp(6px,1.1dvh,10px);padding:clamp(10px,1.5dvh,14px) 16px clamp(12px,1.7dvh,16px);min-height:0;overflow:hidden auto;scrollbar-width:thin;scrollbar-color:#8f7750 #1d1813}
.xp-preview .xp-plate{align-self:center;font-size:18px;min-width:0;margin-bottom:2px}
.xp-preview-head{display:flex;align-items:center;gap:12px}
.xp-preview-head .xp-crest{--crest:54px}
.xp-preview-head strong{display:block;color:var(--xp-title);font:18px/1.15 WarbandFriz,Georgia,serif}
.xp-preview-head span{color:var(--xp-muted);font-size:12px}
.xp-kind{display:inline-block;margin-top:3px;padding:1px 8px;border:1px solid #8a7347;color:#f0d796;font:11px WarbandFriz,Georgia,serif;letter-spacing:.05em;text-transform:uppercase}
.xp-kind[data-kind='elite']{border-color:#ffd36a;color:#ffe6a3;box-shadow:0 0 8px #ffd36a55}
.xp-kind[data-kind='boss']{border-color:#ff7a4a;color:#ffc7a8;box-shadow:0 0 8px #ff5a2e55}
.xp-army-icons{display:flex;flex-wrap:wrap;gap:6px}
.xp-army-icons span{position:relative;width:40px;height:40px}
.xp-army-icons img{width:100%;height:100%;display:block;border:1px solid #6f5c3c;border-radius:3px}
.xp-army-icons b{position:absolute;right:-4px;bottom:-4px;min-width:18px;height:18px;padding:0 3px;display:grid;place-items:center;border-radius:9px;background:#120d09;border:1px solid #b89553;color:#f6e4bb;font:bold 10px Arial,sans-serif}
.xp-facts{display:grid;gap:5px;margin:0;padding:0;list-style:none;font-size:12.5px;color:var(--xp-text)}
.xp-facts li{display:flex;gap:7px;align-items:flex-start}
.xp-facts li img{width:18px;height:18px;flex:none;margin-top:1px}
.xp-facts .xp-k{color:var(--xp-muted);min-width:58px}
.xp-facts .xp-pay{color:#ffe6a3}
.xp-odds[data-odds='good']{color:var(--xp-good)}.xp-odds[data-odds='even']{color:#ffe6a3}.xp-odds[data-odds='bad']{color:var(--xp-bad)}
.xp-preview-text{margin:0;color:var(--xp-text);font-size:13px}
.xp-preview .xp-engage{margin-top:auto;align-self:stretch}
.xp-preview-empty{margin:auto 0;text-align:center;color:var(--xp-muted);font:15px WarbandFriz,Georgia,serif}
.xp-brief-line{margin:-4px 0 2px;text-align:center;color:var(--xp-muted);font-size:12.5px}
.xp-preview.is-brief .xp-preview-empty{margin:auto 0 6px;color:var(--xp-title)}
.xp-preview>.xp-kind{align-self:center;margin-top:-2px}
.xp-duo{display:flex;align-items:center;gap:9px;margin:0;padding:5px 8px;background:#0000002e;box-shadow:inset 0 0 0 1px #5a4a3266;color:var(--xp-muted);font-size:12px;line-height:1.3}
.xp-duo b{display:block;color:var(--xp-title);font:14px/1.2 WarbandFriz,Georgia,serif;font-weight:400}
.xp-duo-portrait{flex:none;width:34px;height:34px;border-radius:50%;background:var(--portrait) center/116% no-repeat,#120c07;box-shadow:0 0 0 2px #c9a35a}
.xp-duo-portrait.is-glyph{background-size:66%}
.xp-preview>.xp-target{align-self:center;--u:clamp(1.15px,.105vw,1.45px)!important}

/* The game's target frame (skin/ui-kit/target-frame.png, the battle HUD's unit frame at its 2x art): measured in half-art
   units (--u). The game draws the art 6 units below its text box (ui-kit.css); these offsets are measured from the art. */
.xp-target{position:relative;flex:none;width:calc(var(--u) * 191);height:calc(var(--u) * 65.5);font-family:WarbandFriz,Georgia,serif}
.xp-target>*{position:absolute}
.xp-target-portrait{left:calc(var(--u) * 130);top:calc(var(--u) * 5);width:calc(var(--u) * 53);height:calc(var(--u) * 53);border-radius:50%;background:var(--portrait) center/cover no-repeat,#120c07;z-index:1}
.xp-target-frame{inset:0;width:100%;height:100%;z-index:3;pointer-events:none}
.xp-target-name{left:calc(var(--u) * 3);top:calc(var(--u) * 10);width:calc(var(--u) * 124);height:calc(var(--u) * 13);padding-left:calc(var(--u) * 4);box-sizing:border-box;z-index:4;
 background:linear-gradient(90deg,#c0000077,#c000002a 70%,transparent);border-radius:2px;color:#ffd100;font-size:calc(var(--u) * 10 * var(--name-scale,1));line-height:calc(var(--u) * 13);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:calc(var(--u) * 18)}
.xp-target-level{left:calc(var(--u) * 110);top:calc(var(--u) * 10);width:calc(var(--u) * 17);height:calc(var(--u) * 13);z-index:5;display:grid;place-items:center;color:#ffd100;font-size:calc(var(--u) * 10)}
.xp-target-level img{width:calc(var(--u) * 12);height:auto}
.xp-target-health{left:calc(var(--u) * 3);top:calc(var(--u) * 24);width:calc(var(--u) * 125);height:calc(var(--u) * 20);z-index:2;background:#05080466}
.xp-target-health i,.xp-target-power i{position:absolute;inset:0 auto 0 0;width:100%;background:var(--xp-kit-bar-health) 0 0/calc(var(--u) * 125) 100% no-repeat;transition:width .9s var(--xp-ease)}
.xp-target-power{left:calc(var(--u) * 3);top:calc(var(--u) * 45);width:calc(var(--u) * 125);height:calc(var(--u) * 10);z-index:2;background:#292929}
.xp-target-power i{display:none}
.xp-target-power.is-mana{background:#03081a88}
.xp-target-power.is-mana i{display:block;background:var(--xp-kit-bar-mana) 0 0/calc(var(--u) * 125) 100% no-repeat}
.xp-target-health b,.xp-target-power b{position:absolute;inset:0;display:grid;place-items:center;z-index:1;color:#fff;font:400 calc(var(--u) * 9.5)/1 WarbandFriz,Georgia,serif;text-shadow:0 1px 1px #000}
.xp-target-power b{font-size:calc(var(--u) * 7.5)}
.xp-target-skull{left:calc(var(--u) * 172);top:calc(var(--u) * -4);width:calc(var(--u) * 17);height:auto;z-index:6;filter:drop-shadow(0 1px 2px #000)}
.xp-target[data-kind='rare'] .xp-target-frame{filter:grayscale(1) brightness(1.45) contrast(1.1)}
.xp-kind[data-kind='miniboss']{border-color:#ffb347;color:#ffd8a0;box-shadow:0 0 8px #ff8a3a55}
.xp-boss-quote{margin:0;color:#e9dcbc;font:italic 13.5px/1.45 Georgia,serif;text-align:center}
.xp-boss-quote.is-large{font-size:16px;max-width:52ch;margin-inline:auto}
.xp-boss-lore{margin:0;color:var(--xp-text);font-size:12.5px;line-height:1.4;text-align:center}
/* A zone boss fights in person: its abilities, then its escort with the boss portrait first (owner, 2026-11-14). */
.xp-boss-kit{list-style:none;margin:0;padding:0;display:grid;gap:5px}
.xp-boss-kit li{display:grid;grid-template-columns:24px 1fr;gap:7px;align-items:start;font-size:12px;line-height:1.35;color:var(--xp-text)}
.xp-boss-kit img{width:24px;height:24px;display:block;border-radius:3px}
.xp-boss-kit b{color:#f3d58a;font-weight:600}
.xp-army-icons span.is-boss img{border-color:#d9a640;box-shadow:0 0 6px rgba(217,166,64,.55)}
.xp-spells{display:grid;gap:7px;margin:0;padding:0;list-style:none}
.xp-spells li{display:flex;gap:9px;align-items:center;font-size:12.5px;line-height:1.35;color:var(--xp-text)}
.xp-spells img{width:30px;height:30px;flex:none}
.xp-spells b{display:block;color:var(--xp-title);font:13.5px WarbandFriz,Georgia,serif;font-weight:400}
/* Boss encounter and trophy */
.xp-encounter{width:min(600px,100%);display:flex;flex-direction:column;align-items:center;gap:clamp(8px,1.6dvh,14px)}
.xp-encounter .xp-target{--u:min(2.1px,.26dvh)!important}
.xp-encounter>header{align-self:stretch}
.xp-encounter .xp-spells{align-self:stretch;max-width:440px;margin-inline:auto;padding:10px 14px;background:#0000002e;box-shadow:inset 0 0 0 1px #5a4a3266}
.xp-encounter .xp-spells img{width:36px;height:36px}
.xp-trophy{width:min(520px,100%);display:flex;flex-direction:column;align-items:center;gap:12px}
.xp-trophy>header{align-self:stretch}
.xp-trophy .xp-target-health b{color:#ff9a8a}
/* ---- Battle stand-in -------------------------------------------------------------------------------------- */
.xp-battle{position:fixed;inset:0;z-index:30;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 50%,#0006,#000d),var(--art) center/cover #000}
.xp-battle-note{position:absolute;top:18px;left:50%;translate:-50% 0;padding:6px 14px;background:#000a;border:1px solid #ffffff22;color:#cdbf9f;font-size:12px}
.xp-result-banner{display:flex;flex-direction:column;align-items:center;gap:6px;animation:xp-zone-rise .6s var(--xp-ease)}
.xp-result-banner h1{margin:0;font-size:clamp(46px,7vw,84px);color:var(--xp-gold);text-shadow:0 3px 3px #000,0 0 30px #ffb40066}
.xp-result-banner.is-defeat h1{color:#e0503a;text-shadow:0 3px 3px #000,0 0 30px #c0301a66}
/* Defeat: a red glow between the zone backdrop and the word (owner, 2026-11-12). Only here: never behind cards or
   behind a beaten boss's frame. */
.xp-battle:has(.is-defeat)::before{content:'';position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse 46% 40% at 50% 50%,#d0281899 0,#b01c1066 38%,#8a120a26 68%,transparent 100%),radial-gradient(ellipse at 50% 50%,transparent 45%,#3a060499 100%);animation:xp-fade .5s}
.xp-result-banner{position:relative}
.xp-result-banner p{margin:0;font:18px WarbandFriz,Georgia,serif;color:#f3e6c4}
.xp-spinner{width:56px;height:56px;border-radius:50%;border:3px solid #ffffff22;border-top-color:#ffd36a;animation:xp-spin 1s linear infinite}
@keyframes xp-spin{to{transform:rotate(360deg)}}

/* ---- Modal layer: Spoils, event, camp, treasure, boss victory, run end ---------------------------------- */
.xp-app .xp-overlay{position:fixed;inset:0;z-index:50;display:grid;grid-template-columns:minmax(0,1fr);place-items:center;padding:clamp(8px,1.6dvh,20px) 12px;overflow-x:hidden;overflow-y:auto;background:#050403b8;backdrop-filter:blur(2px);animation:xp-fade .2s}
.xp-app .xp-overlay[hidden]{display:none}
.xp-app .xp-overlay.has-art{background:radial-gradient(ellipse at 50% 40%,#0005,#000d 80%),var(--art) center/cover #000}
.xp-modal{width:min(900px,100%);padding:clamp(10px,1.8dvh,18px) 26px clamp(12px,2.2dvh,22px);animation:xp-rise .35s var(--xp-ease)}
.xp-modal.xp-narrow{width:min(540px,100%)}
.xp-modal.xp-merchant{width:min(640px,100%)}
.xp-modal>header{display:flex;flex-direction:column;align-items:center;text-align:center}
.xp-modal>header p{margin:-4px 0 4px;color:var(--xp-muted)}
@keyframes xp-rise{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}

/* ---- Cards ------------------------------------------------------------------------------------------------
   Every Expedition card speaks the game's own card language (card-frames.css): the frame at its true 178:241 shape,
   the label row that clears the upper gem, a bordered art square, the name, then text or a list, and one short bottom
   line. Only --wb-card-w changes between screens: nothing is stretched, and nothing sits on the frame or its gems.
   Measured from the frame art, in units of the card's width: the metal border ends 8.9 from the top and 9 from each
   side, and begins again at 126.5; the lower gem reaches in from the right below 99 (73% of the height). So the stack
   is 7.5 padding, 10 label row, 28.5 art, the name (10 or 20), the body, and the bottom line ending at 120, above the
   gem's tip; body text flows around the gem corner. The card audit in the review hook measures every card for this. */
.xp-cards{--xp-cols:3;--xp-gap:clamp(12px,2vw,26px);--xp-fit:calc((100cqw - (var(--xp-cols) - 1) * var(--xp-gap) - 24px) / var(--xp-cols));
 --wb-card-w:min(224px,21vw,31dvh,var(--xp-fit));display:flex;justify-content:center;gap:var(--xp-gap);padding:clamp(10px,2dvh,18px) 4px clamp(8px,1.6dvh,14px);perspective:1100px}
.xp-cards[data-count='1']{--xp-cols:1;--wb-card-w:min(210px,29dvh,var(--xp-fit))}
.xp-cards[data-count='2']{--xp-cols:2}
.xp-cards[data-count='4']{--xp-cols:4;--wb-card-w:min(198px,19vw,28dvh,var(--xp-fit))}
.xp-cards[data-count='5']{--xp-cols:5;--xp-gap:clamp(8px,1.2vw,16px);--wb-card-w:min(168px,16vw,24dvh,var(--xp-fit))}
/* Narrow windows: five cards stay in one row and share the width (owner, 2026-11-15: armies are always one row). */
@media (max-width:1060px){.xp-cards[data-count='5']{--wb-card-w:min(168px,24dvh,var(--xp-fit));flex-wrap:nowrap}}
/* Choosing the squad that wears a relic's enchantment. Its own layer, above the dialog that paid the relic. The army's
   squads always stand in one row (.xp-squad-row, owner 2026-11-15); offers of other kinds may wrap. */
.xp-app .xp-place-layer{position:fixed;inset:0;z-index:60;display:grid;grid-template-columns:minmax(0,1fr);place-items:center;padding:clamp(8px,1.6dvh,20px) 12px;overflow:hidden;background:#050403d9;backdrop-filter:blur(2px);animation:xp-fade .2s}
.xp-app .xp-place-layer[hidden]{display:none}
/* The starting band on the setup screen. */
/* Room between the band, its note and the divider below (owner, 2026-11-12: "this feels too crowded"). */
.xp-band-note{margin:clamp(12px,2.2dvh,22px) 0 clamp(4px,1dvh,10px);text-align:center;color:var(--xp-muted);font-size:13px}
.xp-slot-name{white-space:nowrap}
.xp-slot-name b{color:var(--xp-gold);font-weight:normal}
.xp-band-note+.xp-divider{margin:clamp(8px,1.8dvh,18px) 0 clamp(8px,1.6dvh,16px)}
.xp-slots:has(+.xp-band-note){gap:clamp(22px,4vw,56px);margin-top:4px}
@media (max-width:560px){.xp-band-note{display:none}.xp-slots .xp-slot .xp-crest{--crest:44px}.xp-slots{gap:6px;flex-wrap:nowrap}.xp-slots .xp-slot{min-width:0;flex:1 1 0;font-size:11px;text-align:center}.xp-slot-name{white-space:normal}}
.xp-place{width:min(1120px,100%)}
.xp-place .xp-cards{--wb-card-w:min(192px,22dvh,calc(92vw / min(var(--n,5),var(--cols,5)) - 16px));flex-wrap:wrap;gap:clamp(8px,1.2vw,16px)}
@media (max-width:1060px){.xp-place .xp-cards{--cols:4}}
.xp-place-effect{display:flex;align-items:center;justify-content:center;gap:10px;margin:8px auto 0;max-width:560px;text-align:left;color:var(--xp-text)}
.xp-place-effect img{width:36px;height:36px;flex:none;border-radius:4px;box-shadow:0 0 0 1px #000,0 0 0 2px #5a4a32}
.xp-squad:disabled{opacity:.45;filter:grayscale(.5)}
.xp-squad.is-left{opacity:.3;transition:opacity .25s}
.xp-squad.is-chosen{filter:brightness(1.18);transition:filter .25s}
.wb-card-frame-sample .xp-card{display:flex!important;flex-direction:column;align-items:center;text-align:center;font:inherit;transition:translate .16s var(--xp-ease)}
.wb-card-frame-sample div.xp-card,.wb-card-frame-sample button.xp-card:disabled{}
.wb-card-frame-sample button.xp-card:is(:hover,:focus-visible):not(:disabled){translate:0 -6px}
/* The label row: the game's small muted label, centred on the card between the frame's gems (owner, 2026-11-15: "make
   sure all the tags are aligned ... It should be in the middle"); a long label steps down in size (data-top-len). */
.xp-card-top{flex:none;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:calc(var(--wb-card-w) * .1);padding:0 calc(var(--wb-card-w) * .29);
 color:var(--wb-card-muted);font:calc(var(--wb-card-w) * .07)/1.1 Arial,sans-serif;white-space:nowrap}
/* The art square: the game's bronze-bordered picture, a little smaller here so text has room. Transparent glyphs (the
   coin, the emblem) get the same dark ground as other pictures. */
.xp-card-art{flex:none;display:block;width:calc(var(--wb-card-w) * .25);height:calc(var(--wb-card-w) * .25);margin:calc(var(--wb-card-w) * .005) auto calc(var(--wb-card-w) * .03)}
.xp-card-art>img{width:100%;height:100%;box-sizing:border-box;display:block;object-fit:cover;border:2px solid #7d6a4a;border-radius:3px;box-shadow:0 0 0 1px #000c,0 2px 4px #000c;background:#17120d}
.xp-card[data-card-frame*='gold'] .xp-card-art>img{border-color:#d6a640}
/* The name: the game's card title face and size, on one or two balanced lines. */
.xp-card-name{flex:none;box-sizing:border-box;width:100%;max-height:2.3em;overflow:hidden;margin:0 0 calc(var(--wb-card-w) * .02);padding:0 calc(var(--wb-card-w) * .04);
 color:var(--wb-card-title);font:400 calc(var(--wb-card-w) * .09 * var(--wb-name-scale,1))/1.12 WarbandFriz,Georgia,serif;text-shadow:0 1px 1px #000,0 0 3px #000;text-wrap:balance;overflow-wrap:break-word}
.xp-card-name[data-name-length='medium']{--wb-name-scale:.96}
.xp-card-name[data-name-length='long']{--wb-name-scale:.91}
.xp-card-name[data-name-length='xlong']{--wb-name-scale:.84}
/* A card with no picture starts its name lower, clear of the upper gem. */
.xp-card.is-plain-text .xp-card-name{margin-top:calc(var(--wb-card-w) * .1);padding:0 calc(var(--wb-card-w) * .08)}
/* The body fills the space down to the bottom line. On a gem frame an invisible wedge in its lower right corner makes
   text flow around the gem instead of over it. */
.xp-card-body{flex:1 1 0;min-height:0;width:100%;box-sizing:border-box;padding:0 calc(var(--wb-card-w) * .03);overflow:hidden;display:block}
.xp-card:not([data-card-frame$='plain']) .xp-card-body::before{content:'';float:right;width:calc(var(--wb-card-w) * .18);height:100%;shape-outside:polygon(100% calc(100% - var(--wb-card-w) * .19),100% 100%,0 100%)}
.xp-card-text{display:block;color:var(--wb-card-text);font:calc(var(--wb-card-w) * .066)/1.28 Arial,sans-serif;text-wrap:pretty}
/* Costs and gains: icon left, text left-aligned beside it. */
.xp-card-lines{display:grid;gap:calc(var(--wb-card-w) * .028);margin:0 0 calc(var(--wb-card-w) * .03);padding:0;list-style:none;text-align:left;font:calc(var(--wb-card-w) * .066)/1.25 Arial,sans-serif}
.xp-card-lines li{display:grid;grid-template-columns:calc(var(--wb-card-w) * .1) minmax(0,1fr);gap:calc(var(--wb-card-w) * .03);align-items:start}
.xp-card-lines img{width:100%;aspect-ratio:1;display:block}
.xp-card-lines .is-gain{color:var(--xp-good)}
.xp-card-lines .is-cost{color:var(--xp-bad)}
/* The bottom line is short (a count, a price, a quality) and ends above the lower gem's tip. */
.xp-card-foot{flex:none;margin:calc(var(--wb-card-w) * .01) 0 calc(var(--wb-card-w) * .065);max-width:44%;color:var(--wb-card-text);font:calc(var(--wb-card-w) * .07)/1.2 Arial,sans-serif;white-space:nowrap}
.xp-card-foot b{font-weight:400;color:#ffe6a3}
.xp-card-foot i{font-style:normal;color:var(--xp-good)}
.xp-card[data-cursed='true']{filter:drop-shadow(0 0 10px #d03020aa) drop-shadow(0 3px 3px #000a)!important}
.xp-card[data-cursed='true'] :is(.xp-card-top,.xp-card-foot b){color:#ff8a70}
/* A plain frame has no gem, so its bottom line may be longer. */
.xp-card[data-card-frame$='plain'] .xp-card-foot{max-width:100%}
/* Rulesets: the chosen one lifts with the frame's own highlight; locked ones are dimmed. */
.xp-plan.is-selected{translate:0 -6px;--wb-card-hover-art:var(--wb-card-highlight)}
/* A locked ruleset: "Locked" sits at the top centre and a lock lies on the icon itself (owner, 2026-11-12). The card is
   dimmed and its icon greyed; the lock keeps its own gold. */
.xp-plan.is-locked{filter:brightness(.62) drop-shadow(0 3px 3px #000a)!important;}
.xp-plan.is-locked .xp-card-top{justify-content:center;padding:0}
.xp-plan.is-locked .xp-card-art{position:relative}
.xp-plan.is-locked .xp-card-art img{filter:grayscale(1)}
.xp-plan.is-locked .xp-card-art::after{content:'';position:absolute;inset:8%;background:url('skin/achievements/lock-gold.png') center/contain no-repeat;filter:brightness(1.6) drop-shadow(0 2px 2px #000c)}
/* Offerings and what was left behind. */
.xp-offer.is-offered{translate:0 -6px;filter:drop-shadow(0 0 16px #ff8a30cc) drop-shadow(0 3px 3px #000a)!important}
.xp-offer.is-left{filter:grayscale(.8) brightness(.5) drop-shadow(0 3px 3px #000a)!important}
.xp-offer:disabled:not(.is-offered):not(.is-left){opacity:.55;}
.xp-deal.is-chosen .xp-card{filter:drop-shadow(0 0 14px #ffd36acc) drop-shadow(0 3px 3px #000a)!important}
.xp-deal.is-left .xp-card{filter:grayscale(.85) brightness(.5) drop-shadow(0 3px 3px #000a)!important}
.xp-deal.is-left .xp-card[data-cursed='true']{filter:grayscale(.6) brightness(.55) drop-shadow(0 0 6px #d0302066)!important}
.xp-blind-chest .xp-cards{padding-bottom:30px}
/* Touch: the first tap reads a card, the second takes it. */
.xp-card.is-inspected{translate:0 -6px;--wb-card-hover-art:var(--wb-card-highlight)}
.xp-relic-audit{width:min(1100px,100%);max-height:none}

.xp-deal{position:relative;flex:none;width:var(--wb-card-w);height:calc(var(--wb-card-w) * var(--wb-card-ratio));transform-style:preserve-3d}
.xp-deal.is-dealing{animation:xp-deal .42s var(--xp-ease) both;animation-delay:calc(var(--i) * 120ms)}
@keyframes xp-deal{from{transform:translate(calc((1 - var(--i)) * 110%),40px) rotate(calc((var(--i) - 1) * -6deg));opacity:0}to{transform:none;opacity:1}}
.xp-flipper{position:absolute;inset:0;transform-style:preserve-3d;transform:rotateY(180deg)}
.xp-deal.is-up .xp-flipper{transform:none;transition:transform .52s cubic-bezier(.3,.7,.2,1)}
.xp-face{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.xp-face-back{transform:rotateY(180deg);border-radius:6px;background:var(--back) 50% 55.56%/94.38% auto no-repeat,#120d09;box-shadow:0 0 0 2px #6f5532,0 6px 10px #000a}
.xp-dust-fx{position:absolute;left:-30%;top:-30%;width:160%;height:160%;overflow:hidden;pointer-events:none;z-index:-1}
.xp-dust-fx i{position:absolute;left:0;top:0;width:100%;height:1600%;background:var(--dust) center/100% 100% no-repeat;animation:xp-dust .48s steps(16,jump-none) forwards}
@keyframes xp-dust{0%{transform:translateY(0);opacity:1}90%{opacity:1}100%{transform:translateY(-93.75%);opacity:0}}
.xp-deal.is-gone{animation:xp-fold .32s ease-in forwards}
@keyframes xp-fold{to{opacity:0;transform:translateY(16px) scale(.9)}}
.xp-skip{display:flex;justify-content:center;margin-top:2px}
.xp-skip button{border:0;background:none;color:var(--xp-muted);font:13px WarbandFriz,Georgia,serif;text-decoration:underline;text-underline-offset:3px;min-height:44px;padding:0 14px}
.xp-skip button:hover{color:#f3e6c4}
.xp-hint{margin:0;text-align:center;color:var(--xp-dim);font-size:12px}
.xp-hint.is-reading{color:var(--xp-text);font-size:13.5px;line-height:1.45;padding:0 6px}
.xp-hint.is-reading b{color:var(--xp-title);font:15px WarbandFriz,Georgia,serif;font-weight:400}
.xp-hint.is-reading small{color:var(--xp-dim);font-size:11.5px}
.xp-flyer{position:fixed;z-index:80;pointer-events:none;transform-origin:0 0}
.xp-sparkle{position:absolute;inset:0;z-index:12;pointer-events:none;overflow:visible}
.xp-sparkle i{position:absolute;left:calc(var(--x) * 100%);top:calc(var(--y) * 100%);width:calc(var(--s) * 100%);aspect-ratio:1;translate:-50% -50%;overflow:hidden}
.xp-sparkle i::before{content:'';position:absolute;left:0;top:0;width:100%;height:1200%;background:url('skin/card-fx/enchant-sparkle-basic.png?art=10602f0ab334da0b') center/100% 100% no-repeat;animation:xp-sparkle .6s steps(12,jump-none) forwards;animation-delay:var(--d)}
@keyframes xp-sparkle{0%{transform:translateY(0);opacity:1}100%{transform:translateY(-91.667%);opacity:0}}

/* Event: the painted scene behind, choices as framed cards in one row. */
.xp-event{width:min(860px,100%);overflow:hidden}
.xp-event.has-art{padding:0 0 clamp(12px,2.2dvh,22px)}
.xp-event-art{height:min(clamp(140px,22vw,230px),24dvh);background:linear-gradient(#0000 40%,#1b1713),var(--art) center 40%/cover;border-bottom:1px solid #ffffff14}
.xp-event.has-art>header{margin-top:-30px;padding:0 24px}
.xp-speaker{margin:0 0 4px;color:#e6d3a3;font:italic 14px Georgia,serif}
.xp-event-text{max-width:62ch;margin:0 auto 6px;padding:0 24px;text-align:center;font-size:15px;line-height:1.55;color:var(--xp-text)}

/* Camp: four framed tiles with exact results. */

/* Boss victory: Hero Level ring. */
.xp-level{display:flex;align-items:center;justify-content:center;gap:14px;margin:6px 0 2px;color:var(--xp-title);font:16px WarbandFriz,Georgia,serif}
.xp-level .xp-level-hp{color:#9fe08a;font:14px Arial,sans-serif}
.xp-level-ring{position:relative;width:64px;height:64px;display:grid;place-items:center;background:var(--xp-level-ring) center/contain no-repeat;color:#fff;font:24px WarbandFriz,Georgia,serif}
.xp-level-ring::before{content:'';position:absolute;inset:6px;border-radius:50%;background:conic-gradient(#ffd36a calc(var(--p,0) * 1%),#0000 0);mask:radial-gradient(circle,#0000 58%,#000 60%);transition:--p 1s}
.xp-level.is-up .xp-level-ring{animation:xp-pop .5s .9s var(--xp-ease) both}
@keyframes xp-pop{0%{scale:1}40%{scale:1.22;filter:drop-shadow(0 0 14px #ffd36a)}100%{scale:1}}

/* Run end (owner, 2026-11-15: "much sexier… super shareable"). The victory screen's wood and metal frame
   (login-notices.css: scroll title, divider, dark plaques, footer band) on the zone's own backdrop, blurred and dimmed
   so the card reads cleanly. Zones sit in the golden level ring the owner chose: conquered ones stay gold, the zone
   where the army fell turns grey under the red defeated X, and one left by End Run turns grey without it. */
/* Solid behind the card even without a zone picture (a run ended between zones), so no earlier screen shows through. */
.xp-app .xp-overlay:has(.xp-end){background:radial-gradient(ellipse at 50% 40%,#231c15,#0b0907 80%);backdrop-filter:none}
.xp-app .xp-overlay.has-art:has(.xp-end)::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;
 background:radial-gradient(ellipse at 50% 42%,#0000 0,#0008 55%,#000d 100%),var(--art) center/cover no-repeat;filter:blur(7px) brightness(.55) saturate(.9)}
/* The overlay is the space left above the army bar; the card sizes itself by that space (container queries below), not
   by the window, because the bar grows with the window. The stage keeps room above the frame for the scroll and
   centres the card in what is left. */
.xp-app .xp-overlay:has(.xp-end){container:xp-end/size;padding-block:0}
.xp-end-stage{display:grid;place-items:center;align-self:stretch;justify-self:stretch;min-height:100cqh;padding:66px 0 8px}
.xp-app .xp-end{--ln-width:800px;text-shadow:none}
.xp-app .xp-end .wb-login-notice-body{gap:10px;padding:0 26px 14px}
/* The scroll holds the eyebrow above the title, as on the match results. */
.xp-app .xp-end>.wb-login-notice-banner{flex-direction:column;gap:0}
.xp-app .xp-end>.wb-login-notice-banner .wb-login-notice-eyebrow{margin-bottom:4px;white-space:nowrap}
.xp-app .xp-end>.wb-login-notice-banner h2{font-size:32px;white-space:nowrap}
.xp-end-headline{display:flex;align-items:baseline;justify-content:center;gap:12px;margin:0;text-shadow:0 2px 3px #000}
.xp-end-headline b{color:#f5d26f;font:400 58px/1 WarbandFriz,Georgia,serif;text-shadow:0 2px 3px #000,0 0 22px #e0b64f66}
.xp-end-headline span{color:#f1e5c8;font:400 22px/1.2 WarbandFriz,Georgia,serif}
.xp-end-fate{margin:-2px 0 0;color:#f1e5c8;font:15px/1.4 Arial,sans-serif;text-shadow:0 1px 2px #000}
.xp-end-meta{margin:-6px 0 0;color:#c7b791;font:12px/1.3 Arial,sans-serif;letter-spacing:.06em;text-shadow:0 1px 2px #000}
/* The road: one golden ring per zone, its name and (places cleared/places) beneath. Rings shrink as the road grows so
   even a long run fits the window. */
.xp-end-zones{--medal:84px;list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:10px 4px;margin:4px 0 0;padding:0}
.xp-end-zones[data-size=mid]{--medal:66px}
.xp-end-zones[data-size=long]{--medal:46px;gap:4px 0}
.xp-end-zones[data-size=long] .xp-end-zone{gap:3px;padding:0 5px}
.xp-end-zones[data-size=long] .xp-end-zone-name{font-size:12px}
.xp-end-zones[data-size=long] .xp-end-zone-name small{font-size:11px}
.xp-end:has(.xp-end-zones[data-size=long]) .xp-end-headline b{font-size:44px}
/* A long road gets a wider card, so its rings take two rows rather than three. */
.xp-app .xp-end:has(.xp-end-zones[data-size=long]){--ln-width:960px}
.xp-app .xp-end:has(.xp-end-zones[data-size=long]) .xp-end-stat{min-height:48px}
.xp-end-zone{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:calc(var(--medal) + 40px);padding:0 6px}
.xp-end-medal{position:relative;display:block;width:var(--medal);height:var(--medal);filter:drop-shadow(0 4px 6px #000c)}
.xp-end-medal::after{content:'';position:absolute;inset:0;background:var(--xp-level-ring) center/100% 100% no-repeat;pointer-events:none}
.xp-end-medal-art{position:absolute;inset:13%;border-radius:50%;background:var(--art) center/cover no-repeat #120c07;box-shadow:inset 0 0 10px #000c}
.xp-end-zone:not([data-zone-state=conquered]) .xp-end-medal-art{filter:grayscale(1) brightness(.9) contrast(1.1)}
.xp-end-zone:not([data-zone-state=conquered]) .xp-end-medal::after{filter:grayscale(1) brightness(.85)}
.xp-end-medal-x{position:absolute;inset:27%;z-index:1;background:var(--xp-defeated) center/contain no-repeat;filter:drop-shadow(0 1px 2px #000)}
.xp-end-zone-name{white-space:nowrap;color:#f3d78a;font:400 14px/1.2 WarbandFriz,Georgia,serif;text-align:center;text-shadow:0 1px 2px #000,0 0 6px #000}
.xp-end-zone-name small{color:#e2ddd2;font:12px/1.2 Arial,sans-serif;white-space:nowrap}
.xp-end-zone:not([data-zone-state=conquered]) .xp-end-zone-name{color:#c9bda3}
/* The numbers, in the frame's short dark plaques. */
.xp-end-stats{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 8px;margin:2px 0 0;padding:0}
.xp-app .xp-end .xp-end-stat{justify-content:flex-start;gap:12px;min-width:0;min-height:58px;padding:2px 14px}
.xp-end-stat img,.xp-end-level{flex:none;width:36px;height:36px;object-fit:contain;filter:drop-shadow(0 2px 3px #000a)}
.xp-end-stat-text{display:flex;flex-direction:column;align-items:flex-start;min-width:0;text-align:left}
.xp-end-stat b{color:#f5d26f;font:400 24px/1.1 WarbandFriz,Georgia,serif;text-shadow:0 2px 3px #000}
.xp-end-stat small{overflow:hidden;max-width:100%;color:#e2ddd2;font:12px/1.25 Arial,sans-serif;text-overflow:ellipsis;white-space:nowrap;text-shadow:0 1px 2px #000}
/* Hero Level wears the golden level ring with its number inside. */
.xp-end-level{display:grid;place-items:center;width:40px;height:40px;background:var(--xp-level-ring) center/contain no-repeat;color:#fff;font:400 17px/1 WarbandFriz,Georgia,serif;text-shadow:0 1px 2px #000}
.xp-end-score{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px 8px;margin:2px 0 0;color:#e2ddd2;font:14px/1.3 Arial,sans-serif;text-shadow:0 1px 2px #000}
.xp-end-score img{width:28px;height:28px;object-fit:contain;filter:drop-shadow(0 2px 3px #000a)}
.xp-end-score b{color:#f5d26f;font:400 20px/1 WarbandFriz,Georgia,serif}
.xp-end-score span{color:#bfb39a}
/* Little room above the army bar (owner, 2026-11-15: "Show the army bar"; at 1024×768 about 617 px, at 1440×900 about
   700 px): a smaller scroll, tighter gaps, smaller rings and plaques. */
@container xp-end (max-height:800px){
 .xp-end-stage{padding-top:54px}
 .xp-app .xp-end{--ln-banner:330px}
 .xp-app .xp-end>.wb-login-notice-banner h2{font-size:27px}
 .xp-app .xp-end .wb-login-notice-body{gap:6px;padding-bottom:10px}
 .xp-app .xp-end .wb-login-notice-divider{width:min(360px,100%)}
 .xp-end-headline b,.xp-end:has(.xp-end-zones[data-size=long]) .xp-end-headline b{font-size:40px}
 .xp-end-headline span{font-size:19px}
 .xp-end-zones{--medal:58px;gap:6px 2px}
 .xp-end-zones[data-size=mid]{--medal:46px}
 .xp-end-zones[data-size=long]{--medal:36px}
 .xp-end-zones:is([data-size=mid],[data-size=long]) .xp-end-zone{gap:3px}
 .xp-end-zones[data-size=mid] .xp-end-zone-name{font-size:13px}
 .xp-app .xp-end .xp-end-stat,.xp-app .xp-end:has(.xp-end-zones[data-size=long]) .xp-end-stat{min-height:44px;padding:0 12px}
 .xp-end-stat img{width:30px;height:30px}
 .xp-end-level{width:34px;height:34px;font-size:15px}
 .xp-end-stat b{font-size:20px}
 .xp-end-score{margin:0}
 .xp-end-score img{width:24px;height:24px}
}
}
@media(max-width:620px){
 .xp-end-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .xp-end-zones{--medal:58px}
 .xp-end-headline b{font-size:42px}
 .xp-end-headline span{font-size:18px}
}
/* ---- Rares, guarded chests, curiosities and blind picks (owner, 2026-11-07) ------------------------------- */
.xp-kind[data-kind='rare']{border-color:#cfdcf0;color:#e6eefc;box-shadow:0 0 8px #cfdcf055}
.xp-kind[data-kind='chest'],.xp-kind[data-kind='curiosity']{border-color:#ffd36a;color:#ffe6a3}
.xp-faction-line{display:block;margin-top:3px;color:var(--xp-muted);font-size:11.5px}
.xp-locked-note{color:#f0b070}
.xp-preview .xp-engage:disabled{}
/* Blind pick: three face-down cards; the chosen one turns over, then the other two, dimmed. */
.xp-blind-lore{max-width:62ch;margin:-2px auto 4px;color:var(--xp-text);font-size:14.5px;line-height:1.55}
button.xp-blind{border:0;padding:0;background:none;font:inherit;color:inherit;transition:translate .18s var(--xp-ease)}
button.xp-blind:is(:hover,:focus-visible,.is-lifted):not(:disabled){translate:0 -10px}
button.xp-blind:is(:hover,:focus-visible,.is-lifted):not(:disabled) .xp-face-back{box-shadow:0 0 0 2px #ffe09a,0 0 20px #ffd36acc,0 8px 14px #000b}
button.xp-blind:disabled{}
.xp-deal.is-chosen{z-index:2;translate:0 -6px}
.xp-deal.is-left::after{content:'Left behind';position:absolute;left:50%;bottom:-24px;translate:-50% 0;color:var(--xp-dim);font:12px WarbandFriz,Georgia,serif;white-space:nowrap}
.xp-hint b{color:var(--xp-title);font-weight:400;font-family:WarbandFriz,Georgia,serif}
.xp-purse{margin:8px 0 0;text-align:center;color:var(--xp-muted);font-size:13px}
/* An amount: the number in its currency's colour, then the icon. */
.xp-amount{display:inline-flex;align-items:center;gap:.22em;white-space:nowrap;vertical-align:baseline;font-weight:400}
/* A loss is red wherever it is written. */
.xp-loss{color:var(--xp-bad)}
.xp-amount.is-gold{color:#ffd970}
.xp-amount.is-dust{color:#e4d7f6}
.xp-amount img{width:1.1em;height:1.1em;flex:none;object-fit:contain}

/* Curiosities with their own rules: the shrine's offerings, Gadrin's voodoo and the salvage pile. */
.xp-voodoo-row{--wb-card-w:min(118px,17dvh);display:flex;flex-wrap:wrap;justify-content:center;gap:14px;padding:14px 0 6px;perspective:1100px}
.xp-voodoo-pick{display:flex;flex-direction:column;align-items:center;gap:7px;padding:0;border:0;background:none;color:var(--xp-muted);font:12px WarbandFriz,Georgia,serif;}
.xp-voodoo-pick .xp-vdeal{transition:translate .18s var(--xp-ease),filter .2s}
.xp-voodoo-pick:is(:hover,:focus-visible):not(:disabled) .xp-vdeal{translate:0 -5px}
.xp-voodoo-pick[aria-checked='true'] .xp-vdeal{translate:0 -8px;filter:drop-shadow(0 0 14px #6fe0c8) drop-shadow(0 3px 3px #000a)}
.xp-voodoo-pick[aria-checked='true'] small{color:#9ff0dc}
.xp-voodoo-pick.is-left{opacity:.4}
.xp-voodoo-pick:disabled{}
.xp-vdeal .xp-flipper{transform:none;transition:transform .8s cubic-bezier(.3,.7,.2,1)}
.xp-vdeal.is-turned .xp-flipper{transform:rotateY(180deg)}
.xp-face-new{transform:rotateY(180deg)}

.xp-deal.is-woken .xp-face-back{box-shadow:0 0 0 2px #e0503a,0 0 18px #e0503acc;animation:xp-shake .45s}
@keyframes xp-shake{0%,100%{translate:0}20%{translate:-4px 0}40%{translate:4px 0}60%{translate:-3px 0}80%{translate:2px 0}}

/* ---- Review controls (QA chrome, not product) ------------------------------------------------------------ */
/* Review controls are prototype chrome, shown only with ?review in the address: a small bar in the lower left corner. */

/* ---- Short windows, tablet and phone --------------------------------------------------------------------- */
@media (max-height:800px){
 .xp-preview .xp-boss-quote{display:none}
 /* A two-boss lair lists two of the zone boss's spells here; the encounter screen shows all three. */
 .xp-preview:has(.xp-duo) .xp-spells li:nth-child(n+3){display:none}
 .xp-plate{height:40px;font-size:19px;margin-bottom:8px}
 .xp-preview .xp-plate{font-size:16.5px}
 .xp-blind-lore{font-size:13.5px;line-height:1.45}
 .xp-boss-quote.is-large{font-size:14.5px}
}
@media (max-width:1100px){
 .xp-run-header{grid-template-columns:minmax(0,1fr) auto auto}
 .xp-hp{min-width:140px}
}
@media (max-width:820px){
 /* Phones: the title above, the board in the middle, the node panel as a sheet under it. Nothing scrolls the page. */
 .xp-run{padding:8px;gap:8px}
 .xp-run-header{grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;min-height:0}
 .xp-zone-title{grid-column:1/-1}
 .xp-hero{justify-self:start}
 .xp-relics li:nth-last-child(n+6){display:none}
 .xp-run-main{container-type:normal;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:8px}
 .xp-preview{width:auto}
 /* A phone cannot show a whole zone at a readable size, so the board keeps a readable height and pans inside its own
    window (never the page), opening on your crest. */
 .xp-board-cell{width:auto;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:11px;scrollbar-width:none}
 .xp-board-frame{width:auto;height:max(100cqh,620px)}
 .xp-preview{max-height:36dvh}
 .xp-preview .xp-boss-quote{display:none}
 .xp-modal{padding:12px 12px 16px}
 .xp-roads-row{gap:8px}
 .xp-road-copy{padding:8px 10px 10px}
 .xp-road-facts,.xp-road-boss span{font-size:11px}
}
@media (max-width:560px){
 /* Phones: cards keep a readable size in one row that is swiped sideways inside the dialog, the next card peeking in
    from the edge; the page itself never scrolls. */
 .xp-cards,.xp-cards[data-count]{--wb-card-w:min(58vw,224px,33dvh);justify-content:flex-start;flex-wrap:nowrap;gap:10px;max-width:100%;box-sizing:border-box;
  overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;padding:10px calc(50% - var(--wb-card-w) / 2) 30px}
 .xp-cards>*{flex:none;scroll-snap-align:center}
 .xp-event-art{display:none}
 .xp-event.has-art>header{margin-top:0;padding:0}
 .xp-event.has-art{padding:10px 8px 12px}

 .xp-app .xp-overlay{padding:8px 6px;place-items:center}
 .xp-modal{padding:10px 8px 12px}
 .xp-plate{font-size:17px;min-width:0;border-width:0 30px}
 .xp-plate small{display:none}
 .xp-voodoo-row{--wb-card-w:min(96px,15dvh);gap:10px}
 .xp-blind-lore{font-size:13px}
 .xp-preview.is-brief .xp-target,.xp-preview.is-brief .xp-kind{display:none}
 .xp-slots{gap:8px}.xp-slot{min-width:92px;font-size:13px}.xp-slot .xp-crest{--crest:52px!important}
 .xp-dialog{padding:10px 12px 14px}
 .xp-section-label{margin:8px 0 6px}
 .xp-campaign{grid-template-rows:90px 1fr;min-height:0}
 .xp-campaign.is-context{display:none}
 .xp-zone-title p{font-size:11px}
 .xp-preview-head .xp-crest{--crest:46px}
 .xp-army-icons span{width:34px;height:34px}
 .xp-encounter .xp-target,.xp-trophy .xp-target{--u:1.55px!important}
 .xp-boss-quote.is-large{font-size:14px}
 .xp-roads-row{flex-direction:column;align-items:stretch}
 .xp-road{max-width:none;flex-direction:row;flex:none}
 .xp-road-art{flex:none;width:38%;aspect-ratio:auto;max-height:none;border-bottom:0;border-right:1px solid #6f5532}
 .xp-road-facts{display:none}
}
@media (prefers-reduced-motion:reduce){
 *,*::before,*::after{animation-duration:.01ms!important;animation-delay:0ms!important;transition-duration:.12s!important}
}
.xp-reduced *,.xp-reduced *::before,.xp-reduced *::after{animation-duration:.01ms!important;animation-delay:0ms!important;transition-duration:.12s!important}

/* An Adventures fight prepares by formation only (owner, 2026-11-13): the army comes from what it wins, so the battle
   screen shows no recruitment board, Garrison, Gold, Dust or Level Up while an Adventure is on screen. */
:root[data-adventure='true'] :is(#wb-shop,#wb-barracks,.wb-resource-totals,#wb-army-level-help,#wb-level-track,#wb-recruit-journey){display:none!important}
/* A selected squad can be sold (owner, 2026-11-14); the Garrison and battle training stay match-only. */
:root[data-adventure='true'] :is(#wb-target-actions,#wb-card-actions [data-action='reserve']){display:none!important}
.xp-app[hidden]{display:none!important}
/* A labelled way home in place of the X (owner, 2026-11-14); the Adventure is saved where it stands. */
.xp-app .xp-leave{position:absolute;top:10px;right:10px;z-index:5;min-height:44px;width:auto;padding-inline:18px;white-space:nowrap}
.xp-app .xp-road-page{position:relative}
.xp-app .xp-error{position:fixed;left:50%;bottom:14px;transform:translateX(-50%);z-index:80;margin:0;color:#ff8a6e;font:600 14px/1.3 Arial,sans-serif;text-shadow:0 1px 2px #000;pointer-events:none}
.xp-app .xp-error:empty{display:none}
.xp-app .xp-army-list{list-style:none;margin:4px 0 0;padding:0;display:grid;gap:4px}
.xp-app .xp-army-list li{display:flex;align-items:center;gap:8px;color:var(--xp-text)}
.xp-app .xp-army-list img{width:26px;height:26px;border-radius:50%;object-fit:cover;border:1px solid #6b5432}
.xp-app .xp-army-list b{color:#ffd100;margin-left:auto}
.xp-app .xp-army-list em{color:#c69cff;font-style:normal;font-size:12px}
.xp-app .xp-main{position:absolute;inset:0;overflow:hidden}

/* The opening pick (owner, 2026-11-14): chosen starting squads glow gold. */
.xp-app .xp-band .xp-spoil.is-picked{outline:2px solid var(--xp-gold);outline-offset:3px;box-shadow:0 0 22px #ffcf6a66}
/* Which reward screen this is after a fight. */
.xp-app .xp-reward-count{position:absolute;top:clamp(8px,2dvh,22px);left:50%;translate:-50% 0;z-index:2;margin:0;padding:5px 14px;border:1px solid #dfc68759;border-radius:3px;background:#000b;color:#ead9ab;font:14px WarbandFriz,Georgia,serif;letter-spacing:.02em}

/* Map screen (owner, 2026-11-14): one metal-framed stone panel holds the whole map; the place's details sit in a compact
   box at its top right and the action is centred under the map. */
.xp-app .xp-run-main.xp-map-panel{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;justify-items:center;gap:6px;--panel:0px;--gap:0px;padding:clamp(6px,1dvh,12px) clamp(8px,1vw,14px)}
.xp-app .xp-map-panel .xp-board-cell{width:min(100cqw,calc((100cqh - 26px - 64px) * var(--board-ar,1.5) + 26px));height:100%}
.xp-app .xp-map-panel .xp-preview{position:absolute;top:clamp(10px,2dvh,22px);right:clamp(10px,1.4vw,22px);z-index:3;width:min(300px,32%);max-height:min(60%,520px);align-self:auto}
.xp-app .xp-map-panel .xp-preview .xp-boss-quote{display:none}
.xp-app .xp-map-action{display:flex;justify-content:center;align-items:center;min-height:52px;padding:2px 0 4px}
.xp-app .xp-map-action .xp-engage{min-width:min(320px,80vw);min-height:46px}
.xp-app .xp-map-action .xp-preview-empty{margin:0;color:#cdbf9f;font-size:14px}
@media (max-width:820px){
 .xp-app .xp-map-panel .xp-preview{position:static;width:auto;max-height:30dvh}
 .xp-app .xp-map-panel .xp-board-cell{width:100%}
 .xp-app .xp-run-main.xp-map-panel{grid-template-rows:minmax(0,1fr) auto auto}
}

/* The map header holds "Back to Lobby" in its own column so it never covers the relics. */
.xp-app .xp-run-header{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto}
.xp-app .xp-run-header .xp-leave{position:relative;top:auto;right:auto}  /* positioned, so the hover glow stays on the button */
@media (max-width:1100px){.xp-app .xp-run-header{grid-template-columns:minmax(0,1fr) auto auto auto}}
@media (max-width:820px){.xp-app .xp-run-header{grid-template-columns:minmax(0,1fr) auto}}

/* A blind pick (owner, 2026-11-14): the chosen card lifts, turns face up where it lies and settles with the recruit dust;
   the others stay face down and dim. */
.xp-app .xp-deal.is-turning{perspective:1100px}
.xp-app .xp-deal.is-turning .xp-flipper{animation:xp-turn .78s cubic-bezier(.3,.7,.2,1) both}
@keyframes xp-turn{0%{transform:translateY(0) scale(1) rotateY(180deg)}38%{transform:translateY(-22px) scale(1.08) rotateY(180deg)}72%{transform:translateY(-14px) scale(1.07) rotateY(-8deg)}100%{transform:translateY(-6px) scale(1.04) rotateY(0deg)}}
.xp-app .xp-deal.is-turning .xp-dust-fx{opacity:0;animation:xp-show 0s .6s forwards}
.xp-app .xp-deal.is-turning .xp-dust-fx i{animation-delay:.6s}
@keyframes xp-show{to{opacity:1}}
.xp-app .xp-deal.is-unpicked{animation:xp-unpicked .45s .2s ease both}
@keyframes xp-unpicked{to{opacity:.5;filter:brightness(.7)}}
.xp-app .xp-deal.is-chosen{translate:none}
@media (prefers-reduced-motion:reduce){.xp-app .xp-deal.is-turning .xp-flipper{animation:none;transform:translateY(-6px) scale(1.04)}.xp-app .xp-deal.is-turning .xp-dust-fx{display:none}.xp-app .xp-deal.is-unpicked{animation:none;opacity:.5}}

/* Merchant (owner, 2026-11-14): a bought card turns back over and greys with "Sold"; one you cannot afford is dimmed. */
.xp-app .xp-shelf.is-sold .xp-flipper{animation:xp-sell .6s cubic-bezier(.3,.7,.2,1) both}
@keyframes xp-sell{0%{transform:rotateY(0deg)}40%{transform:translateY(-10px) rotateY(0deg)}100%{transform:translateY(0) rotateY(180deg)}}
.xp-app .xp-shelf.is-sold{perspective:1100px}
.xp-app .xp-shelf.is-sold .xp-face-back{filter:grayscale(1) brightness(.55);display:grid;place-items:center}
.xp-app .xp-sold-mark{transform:rotate(-12deg);padding:4px 14px;border:2px solid #c9b48a;border-radius:3px;background:#000a;color:#e8dcc0;font:18px WarbandFriz,Georgia,serif;letter-spacing:.08em;text-transform:uppercase}
.xp-app .xp-shelf.is-dear .xp-card{filter:grayscale(.6) brightness(.72) drop-shadow(0 3px 3px #000a)!important}
.xp-app .xp-shelf.is-dear .xp-card-foot{color:#d88a7a}
@media (prefers-reduced-motion:reduce){.xp-app .xp-shelf.is-sold .xp-flipper{animation:none;transform:rotateY(180deg)}}

/* Visited places (owner, 2026-11-14): the circle and its icon fade so done places read at a glance; the red X and the boss
   skull stay at full strength. */
.xp-app .xp-node.is-visited{filter:none;background:radial-gradient(circle,#2b211680 0 60%,#120c0780 100%)}
.xp-app .xp-node.is-visited::before{opacity:.5}
.xp-app .xp-node.is-visited>.xp-portrait,.xp-app .xp-node.is-visited .xp-partner{opacity:.5;filter:grayscale(.35)}
.xp-app .xp-node.is-visited .xp-boss-mark{filter:drop-shadow(0 1px 2px #000)}

/* The zone's own backdrop behind the map panel (owner, 2026-11-14), darkened so the frame and map stay in front. */
.xp-app .xp-main.has-zone-art{background:linear-gradient(#0b0907b3,#0b090740 18%,#0b090740 82%,#0b0907b3),var(--zone-art) center/cover no-repeat,#0b0907}

/* The result's countdown (owner, 2026-11-14): the game's own gold timer bar under Victory or Defeat. */
.xp-app .xp-result-timer{width:min(320px,70vw);margin-top:14px}

/* Exploration pressure in the zone line (owner, 2026-11-14). */
.xp-app .xp-danger{color:#e2a070}

/* Your army under every Adventure screen (owner, 2026-11-14): the HUD's own deployed-army bar, raised above the
   Adventure view with the rest of the HUD hidden. The screens end above it; it is view-only outside a fight. */
.xp-app .xp-army-dock{display:none}
:root[data-adventure-army='true'] #wb-ui{z-index:65!important;pointer-events:none!important}
:root[data-adventure-army='true'] #wb-ui>:not(#wb-warband){visibility:hidden!important}
:root[data-adventure-army='true'] #wb-ui #wb-warband{visibility:visible;pointer-events:auto;bottom:8px!important}
:root[data-adventure-army='true'] #wb-ui#wb-ui#wb-ui #wb-warband :is(.wb-empty-card,#wb-card-actions,#wb-target-actions,.wb-card-combine-slot){display:none!important}
:root[data-adventure-army='true'] #wb-ui #wb-warband-cards{justify-content:center}
:root[data-adventure-army='true'] #wb-ui #wb-warband button.wb-card{cursor:inherit}
.xp-app.has-army{--xp-army-h:150px}
.xp-app.has-army :is(.xp-main,.xp-overlay,.xp-place-layer){bottom:var(--xp-army-h)!important}
.xp-app.has-army .xp-error{bottom:calc(var(--xp-army-h) + 6px)}
/* The phone layout keeps the army bar in its own dock, so Adventure screens there keep their full height. */
body.wb-mobile-layout .xp-app.has-army :is(.xp-main,.xp-overlay,.xp-place-layer){bottom:0!important}
body.wb-mobile-layout .xp-app.has-army .xp-error{bottom:14px}

/* Enchant a squad (owner, 2026-11-14): what is being enchanted, with its icon and name; every squad on one row. */
.xp-app .xp-enchant-chip{display:flex;align-items:center;gap:12px;margin:10px auto 0;max-width:560px;padding:8px 14px 8px 8px;text-align:left;border:1px solid #0009;border-radius:4px;background:#0007;box-shadow:inset 0 0 0 1px #ffffff14}
.xp-app .xp-enchant-chip img{width:48px;height:48px;flex:none;border-radius:4px;box-shadow:0 0 0 1px #000,0 0 0 2px var(--xp-quality,#2f72d8),0 0 12px var(--xp-quality,#2f72d8)}
.xp-app .xp-enchant-chip[data-quality='epic']{--xp-quality:#a335ee}
.xp-app .xp-enchant-chip[data-quality='basic']{--xp-quality:#2f72d8}
.xp-app .xp-enchant-chip strong{display:block;color:var(--xp-quality);font:17px/1.2 WarbandFriz,Georgia,serif}
.xp-app .xp-enchant-chip small{display:block;color:#cdbf9f;font-size:12px}
.xp-app .xp-enchant-chip span{display:block;color:var(--xp-text)}
.xp-app .xp-cards.xp-squad-row{flex-wrap:nowrap;--xp-cols:var(--n,6);--xp-gap:clamp(6px,1vw,14px);--wb-card-w:min(176px,24dvh,var(--xp-fit))}

/* Every screen says what to do next (owner, 2026-11-14). The run view ends above the army bar: at the full window height
   its last row, the map's red button, lay under the bar where nobody could see or press it. */
.xp-app .xp-run{height:100%}
.xp-app .xp-map-action{flex-direction:column;gap:4px;min-height:74px}
.xp-app .xp-map-hint{margin:0;color:#e9dcb8;font-size:14px;text-shadow:0 1px 2px #000}
.xp-app .xp-map-action .xp-preview-empty{color:#e9dcb8;font-size:15px}
.xp-app .xp-map-panel .xp-board-cell{width:min(100cqw,calc((100cqh - 26px - 86px) * var(--board-ar,1.5) + 26px))}
.xp-app .xp-node-kind{display:block;color:#ffd36a;font-size:.82em;letter-spacing:.04em;text-transform:uppercase;text-align:center}
.xp-app .xp-zone-title p b{color:#ffd8a0;font-weight:600}
.xp-app .xp-intro-text .xp-intro-goal{max-width:min(620px,86vw);font:clamp(15px,1.6vw,19px)/1.4 Arial,sans-serif;color:#f3e6c4;text-shadow:0 1px 3px #000}
.xp-app .xp-intro-text .xp-intro-goal b{color:#ffd8a0}
.xp-app .xp-intro-go{margin-top:14px;min-width:min(320px,80vw);min-height:48px;opacity:0;animation:xp-fade .5s 1.2s forwards}
.xp-app.xp-reduced .xp-intro-go{opacity:1;animation:none}
/* Adventure preparation is formation only: no empty "Deploy squad" slots to wonder about. */
#wb-ui#wb-ui#wb-ui.wb-adventure-active #wb-warband .wb-empty-card{display:none!important}
#wb-ui.wb-adventure-active #wb-warband-cards{justify-content:center}
.xp-app .xp-map-action .xp-engage.xp-engage{min-width:min(320px,80vw)!important;min-height:52px;font-size:19px}
.xp-app .xp-map-panel .xp-preview{max-height:min(84%,520px)}

/* Enemy strength beside Hero Health (owner, 2026-11-14): how hard the matchups have become, always on the map. */
.xp-app .xp-versus{display:flex;align-items:center;gap:clamp(14px,2.4vw,34px);justify-self:center;min-width:0}
.xp-app .xp-versus .xp-hp{min-width:150px}
.xp-app .xp-foe{display:flex;align-items:center;gap:10px;padding-left:clamp(14px,2.4vw,34px);border-left:1px solid #ffffff1f}
.xp-app .xp-foe-crest{width:40px;height:40px;flex:none;display:grid;place-items:center}
.xp-app .xp-foe-crest img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 1px 2px #000)}
.xp-app .xp-foe-rows{display:grid;gap:2px;min-width:176px}
.xp-app .xp-foe-rows strong{color:#ffb08a;font:12px WarbandFriz,Georgia,serif;font-weight:400;letter-spacing:.06em;text-transform:uppercase}
.xp-app .xp-foe .xp-hp-row b.is-up{color:#ff9c6b}
.xp-app .xp-foe-line{display:none}
@media (max-width:1100px){.xp-app .xp-foe{display:none}.xp-app .xp-foe-line{display:inline;color:#e2a070}}

/* An event's result (owner, 2026-11-14): the chosen option's own lines, then Continue. */
.xp-app .xp-notice-lines{list-style:none;margin:16px auto 4px;padding:0;display:grid;gap:10px;justify-content:center;font-size:17px;text-align:left}
.xp-app .xp-notice-lines li{display:flex;align-items:center;gap:10px}
.xp-app .xp-notice-lines img{width:26px;height:26px;flex:none}

/* Map names stay readable on small windows (owner, 2026-11-14): the label scaled with the map and fell under 8px. */
.xp-app .xp-node-label{font-size:max(9.5px,calc(var(--unit) * 12.4))}
.xp-app .xp-node:is(.is-reachable,.is-selected,.is-boss)>.xp-node-label{font-size:max(12px,calc(var(--unit) * 12.4));z-index:6}
/* Adventure preparation has one thing to press: a larger Ready panel whose button glows until it is pressed. */
body:not(.wb-mobile-layout) #wb-ui#wb-ui.wb-adventure-active #wb-resources{transform:scale(calc(var(--wb-hud-scale,1) * 1.12))!important;transform-origin:left bottom}
#wb-ui.wb-adventure-active #wb-ready:not(:disabled){animation:xp-ready-glow 1.6s ease-in-out infinite alternate}
#wb-ui.wb-adventure-active #wb-ready-status{color:#f3e6c4;font-size:12.5px;line-height:16px}
@keyframes xp-ready-glow{from{box-shadow:0 0 0 0 #ffd36a00}to{box-shadow:0 0 0 2px #ffe09acc,0 0 18px 4px #ffd36a99}}
@media (prefers-reduced-motion:reduce){#wb-ui.wb-adventure-active #wb-ready:not(:disabled){animation:none;box-shadow:0 0 0 2px #ffe09acc}}

/* Defeat (owner, 2026-11-14): what to do next, under what was lost. */
.xp-app .xp-defeat-next{margin:10px 0 0;color:#f3e6c4}

/* Victory and Defeat count down on the battle screens' round timer (owner, 2026-11-14): the same ring and number, top
   centre and out of the way, in place of the gold cast bar. */
.xp-app .xp-round-timer{position:absolute;top:clamp(64px,10dvh,96px);left:50%;translate:-50% 0;width:52px;height:52px}
.xp-app .xp-round-timer svg{display:block;width:100%;height:100%;filter:drop-shadow(1px 2px 1px #000)}
.xp-app .xp-round-timer circle{fill:#15120ddd;stroke-width:5}
.xp-app .xp-round-timer .xp-timer-track{stroke:#5e5545}
.xp-app .xp-round-timer .xp-timer-fill{fill:none;stroke:#ffd100;stroke-dasharray:201.06193;stroke-dashoffset:0;animation:xp-timer-drain var(--xp-timer-s,3s) linear forwards}
.xp-app .xp-round-timer span{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font:21px/1 WarbandArial,Arial,sans-serif}
@keyframes xp-timer-drain{to{stroke-dashoffset:201.06193}}

/* Hero Health lost (owner, 2026-11-14): the match's hero-hit pulse, on the Hero Health plate and round the screen. */
.xp-app.is-hit::after{content:'';position:fixed;inset:0;z-index:95;pointer-events:none;box-shadow:inset 0 0 140px 36px #c3342ccc;animation:xp-hit 1s ease-out forwards}
.xp-app.is-hit .xp-hero{border-radius:4px;animation:xp-hit-plate 1s ease-out}
.xp-app.is-hit .xp-hp-row b{color:#ff8a7a}
@keyframes xp-hit{0%,25%{opacity:.9}60%{opacity:.35}100%{opacity:0}}
@keyframes xp-hit-plate{0%,30%{background-color:#8f1515;box-shadow:inset 0 0 22px #ff3636bb,0 0 12px #f22b2b88}55%{background-color:#421313}100%{background-color:transparent;box-shadow:none}}
@media (prefers-reduced-motion:reduce){.xp-app.is-hit::after{animation:none;opacity:.35}.xp-app.is-hit .xp-hero{animation:none}}
/* Slightly smaller places on the map (owner, 2026-11-14), so neighbours and their names crowd less. */
.xp-app .xp-node{--crest:calc(var(--unit) * 38)}
.xp-app .xp-node.is-chest,.xp-app .xp-node.is-curiosity,.xp-app .xp-node.is-site{--crest:calc(var(--unit) * 40)}
.xp-app .xp-node.is-rare{--crest:calc(var(--unit) * 43)}
.xp-app .xp-node.is-miniboss{--crest:calc(var(--unit) * 47)}
.xp-app .xp-node.is-boss{--crest:calc(var(--unit) * 58)}

/* Enemy strength on the road screen too (owner, 2026-11-14), so the next zone's difficulty is known before it is chosen. */
.xp-app .xp-road-foe{display:flex;justify-content:center;margin:2px 0 10px}
.xp-app .xp-road-foe .xp-foe{display:flex;border-left:0;padding-left:0}

/* More on each map (owner, 2026-11-14): places a road has passed by, what the selected road gives up, and road costs. */
/* Places a road has passed by are out of reach for good: colourless and dark, with no road left to them. */
.xp-app .xp-node.is-passed{opacity:.55;filter:grayscale(1) brightness(.55)}
.xp-app .xp-node.is-passed .xp-node-label{text-decoration:line-through;text-decoration-color:#c9b48a99}
.xp-app .xp-node.is-forfeit::after{content:"";position:absolute;inset:-3px;border-radius:50%;border:2px dashed #e0664f;pointer-events:none}
.xp-app .xp-roads .has-toll:not(.is-walked)>.xp-road-line{stroke:#ff7a5c}
.xp-app .xp-toll{position:absolute;left:calc(var(--x)*1%);top:calc(var(--y)*1%);transform:translate(-50%,-50%);z-index:3;display:inline-flex;align-items:center;gap:2px;padding:1px 5px;border-radius:9px;background:#150f0bdd;box-shadow:0 0 0 1px #8a7347;color:#ffd36a;font:700 11px/1.3 Arial,sans-serif;pointer-events:none;white-space:nowrap}
.xp-app .xp-toll.is-hp{color:#ff7a66}
.xp-app .xp-toll img{width:12px;height:12px}
.xp-app .xp-route-facts{margin-top:6px;border-top:1px solid #ffffff14;padding-top:6px}
.xp-app .xp-pass{color:#f0b070}
.xp-app .xp-site .xp-purse{margin:6px 0 0;text-align:center}
.xp-app .xp-site .xp-card[disabled]{filter:grayscale(.7) brightness(.7)}

/* Mystery spots: what one turned out to be. */
.xp-app .xp-mystery-art{display:flex;justify-content:center;margin:10px 0 2px}
.xp-app .xp-mystery-art img{width:64px;height:64px;border-radius:8px;box-shadow:0 0 0 1px #8a7347,0 0 18px #000a}
.xp-app .xp-mystery[data-mystery="curse"] .xp-mystery-art img,.xp-app .xp-mystery[data-mystery="cursed"] .xp-mystery-art img{box-shadow:0 0 0 1px #8b5cc7,0 0 18px #7a3fc299}
.xp-app .xp-mystery .xp-event-text{padding:0 10px}

/* A town's smith and trainer, under the merchant's shelf. */
.xp-app .xp-services{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:10px 0 2px}
.xp-app .xp-service{display:flex;align-items:center;gap:10px;min-height:44px;max-width:330px;padding:6px 12px 6px 6px;border:1px solid #8a7347;border-radius:6px;background:#1b1612e6;color:var(--xp-text);text-align:left;font:inherit;cursor:inherit}
.xp-app .xp-service:not([disabled]):hover,.xp-app .xp-service:focus-visible{border-color:#ffd36a;box-shadow:0 0 8px #ffbf4666}
.xp-app .xp-service[disabled]{opacity:.5}
.xp-app .xp-service img{width:36px;height:36px;border-radius:4px;flex:none}
.xp-app .xp-service b{display:block;color:var(--xp-gold);font:14px WarbandFriz,Georgia,serif;font-weight:400}
.xp-app .xp-service small{display:block;font-size:12px;line-height:1.3}
.xp-app .xp-smith-list{list-style:none;margin:10px auto;padding:0;display:grid;gap:8px;width:min(620px,100%);max-height:52dvh;overflow:auto}
.xp-app .xp-smith-list li{display:flex;align-items:center;gap:10px;padding:6px 8px;border:1px solid #ffffff1a;border-radius:6px;background:#0006}
.xp-app .xp-smith-list li[data-quality="epic"]{border-color:#8b5cc799}
.xp-app .xp-smith-list img{width:36px;height:36px;border-radius:4px;flex:none}
.xp-app .xp-smith-list span{flex:1;min-width:0}
.xp-app .xp-smith-list b{display:block;color:var(--xp-gold);font-weight:400}
.xp-app .xp-smith-list small{display:block;font-size:12px}
.xp-app .xp-smith-list .xp-small{min-width:0;min-height:44px;padding:0 14px;font-size:13px}

/* Map first (owner, 2026-11-15: the map was "really ugly and really small"). While the map shows with no screen over it
   (<html data-adventure-map>, adventure-ui.mjs), the map takes the full height on the left and one right-hand column holds
   the place's details, the action and the army: the HUD's own deployed-army bar, as compact cards. The phone layout and
   narrow windows keep the stacked map; every other Adventure screen keeps the army along the bottom. */
@media (min-width:640px){
 :root[data-adventure-map]{
  --xp-side:clamp(300px,24vw,372px);--xp-army-cols:3;--xp-army-gap:8px;
  --xp-army-card:min(108px,calc((var(--xp-side) - (var(--xp-army-cols) - 1) * var(--xp-army-gap)) / var(--xp-army-cols)));
  /* The army tools, then one row of cards (height 1.36 x width), the "Deployed Army" heading and padding. */
  --xp-army-block:calc(var(--xp-army-card) * 1.36 + 46px + 56px);
  /* The least space before the map, between the map and the column, and after the column. */
  --xp-edge:clamp(14px,1.6vw,28px);
 }
 /* Every squad stands in one row (owner, 2026-11-15: "For all armies, I always want them to be displayed in one row"):
    from a fourth squad the cards share the column's width, and from a fifth the column widens a little and the gaps
    narrow, so seven squads still show their art and troops. */
 :root[data-adventure-map]:has(#wb-warband-cards>.wb-card:nth-of-type(4)){--xp-army-cols:4}
 :root[data-adventure-map]:has(#wb-warband-cards>.wb-card:nth-of-type(5)){--xp-army-cols:5;--xp-army-gap:6px;--xp-side:clamp(320px,27vw,420px)}
 :root[data-adventure-map]:has(#wb-warband-cards>.wb-card:nth-of-type(6)){--xp-army-cols:6;--xp-side:clamp(340px,30vw,460px)}
 :root[data-adventure-map]:has(#wb-warband-cards>.wb-card:nth-of-type(7)){--xp-army-cols:7}
 :root[data-adventure-map] body:not(.wb-mobile-layout) .xp-app.has-army{--xp-army-h:0px!important}
 /* The map's column is as wide as the map, and the space left over is shared equally before the map, between the map
    and the right-hand column, and after it (owner, 2026-11-15: "the same amount of spacing on the left side of the map
    and on the right side of the right-side elements"). */
 :root[data-adventure-map] body:not(.wb-mobile-layout) .xp-app .xp-run-main.xp-map-panel{grid-template-columns:auto var(--xp-side);grid-template-rows:auto auto minmax(var(--xp-army-block),1fr);justify-content:space-evenly;column-gap:0;row-gap:16px;padding-left:0;padding-right:0;justify-items:stretch;align-items:start}
 /* The map fills everything left of the column, top to bottom; adventure-ui.mjs zooms the view to the places. */
 :root[data-adventure-map] body:not(.wb-mobile-layout) .xp-app .xp-map-panel .xp-board-cell{grid-column:1;grid-row:1/-1;width:calc(100cqw - var(--xp-side) - 3 * var(--xp-edge));height:100%;align-self:stretch}
 :root[data-adventure-map] body:not(.wb-mobile-layout) .xp-app .xp-map-panel .xp-board-frame{margin:0;width:100%;height:100%;aspect-ratio:auto}
 :root[data-adventure-map] body:not(.wb-mobile-layout) .xp-app .xp-map-panel .xp-army-slot{display:block;grid-column:2;grid-row:3;align-self:stretch;min-height:var(--xp-army-block)}
 /* The details scroll inside what the action and the army leave them. */
 :root[data-adventure-map] body:not(.wb-mobile-layout) .xp-app .xp-map-panel .xp-preview{position:static;grid-column:2;grid-row:1;width:auto;max-height:calc(100cqh - var(--xp-army-block) - 92px - 2 * 16px);overflow:auto}
 :root[data-adventure-map] body:not(.wb-mobile-layout) .xp-app .xp-map-panel .xp-map-action{grid-column:2;grid-row:2;min-height:0;padding:0;gap:8px}
 :root[data-adventure-map] body:not(.wb-mobile-layout) .xp-app .xp-map-panel .xp-map-action .xp-engage{width:100%;min-width:0}
 /* Pinned to the column's army slot, measured by adventure-ui.mjs. */
 :root[data-adventure-map][data-adventure-army='true'] body:not(.wb-mobile-layout) #wb-ui #wb-warband{left:var(--xp-army-x)!important;right:auto!important;bottom:var(--xp-army-b)!important;width:var(--xp-army-w)!important;transform:none!important}
 :root[data-adventure-map][data-adventure-army='true'] body:not(.wb-mobile-layout) #wb-ui#wb-ui #wb-warband-cards{display:grid!important;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:var(--xp-army-card);justify-content:center!important;gap:var(--xp-army-gap)!important;padding:6px 0 4px!important;overflow:visible}
 :root[data-adventure-map][data-adventure-army='true'] body:not(.wb-mobile-layout) #wb-ui #wb-warband :is(.wb-card,.wb-empty-card){--wb-card-w:var(--xp-army-card)}
 :root[data-adventure-map][data-adventure-army='true'] body:not(.wb-mobile-layout) #wb-ui #wb-warband .wb-warband-heading{text-align:center}
}
/* The army slot only holds the army's place on the map-first screen. */
.xp-app .xp-army-slot{display:none}
/* Place circles grow more slowly than the map (owner, 2026-11-15: "they might be too big"), so a bigger map spreads its
   places out; with the labels gone they are a little larger ("make the circles a little larger as well, since we removed
   the text"): an ordinary place 28 px at 1440 × 900, 34 px at most; a zone boss 42–52 px. */
.xp-app .xp-map-panel .xp-board{--unit:clamp(.6px,.1cqh,.95px)}
/* Labels only where they help (owner, 2026-11-15: "I don't want to have the text under the icons … except for boss
   battles … mousing over them should instantly show the tooltip"). Boss battles keep their names; every other place shows
   its name the moment it is pointed at, focused or selected, above its neighbours. */
.xp-app .xp-map-panel .xp-node:not(.is-miniboss,.is-boss)>.xp-node-label{visibility:hidden;opacity:0}
.xp-app .xp-map-panel .xp-node:is(:hover,:focus-visible,.is-selected)>.xp-node-label{visibility:visible;opacity:1;transition:none}
.xp-app .xp-map-panel .xp-node:is(:hover,:focus-visible,.is-selected){z-index:8}
.xp-app .xp-map-panel .xp-start .xp-node-label{display:none}
/* The place's kind (Skirmish, Treasure, Boss battle…) joins its name whenever the name shows for a place you can reach,
   and for any place the moment it is pointed at, focused or selected. */
.xp-app .xp-map-panel .xp-node:not(.is-reachable,:hover,:focus-visible,.is-selected) .xp-node-kind{display:none}
/* Zoom in / Zoom out (owner, 2026-11-15). Zoomed in, the map shows only you, the places you can reach next, their roads
   and their costs; the button sits in the map's upper right corner, on the map-first screen only. */
.xp-app .xp-zoom{display:none!important}
@media (min-width:640px){
 :root[data-adventure-map] body:not(.wb-mobile-layout) .xp-app .xp-map-panel .xp-zoom{display:inline-flex!important;position:absolute;z-index:9;top:14px;right:14px;margin:0}
}
/* …and the places one road beyond them, at their ordinary size (smaller than your next steps), with the roads to them,
   so a choice can be weighed by where it leads (owner, 2026-11-15). */
.xp-board.is-zoomed :is(.xp-node:not(.is-reachable,.is-here,.is-beyond),.xp-toll:not(.is-next,.is-beyond),.xp-start:not(.is-here)),.xp-board.is-zoomed .xp-roads>g:not(.is-open,.is-beyond){opacity:0;visibility:hidden;pointer-events:none}
/* Zoomed in, the places you can reach next draw 80% larger ("the circles can be bigger", then "a bit bigger in zoomed-in
   view only"); your own place and the "You" marker keep their size. */
.xp-app .xp-map-panel .xp-board.is-zoomed .xp-node.is-reachable{--unit:clamp(1.08px,.18cqh,1.71px)}
/* Roads ahead read a little fainter than your own roads ("make the … instead of white a little more transparent"), and the
   places the selected place leads on to are greyer than the places you can pick ("a little grayer"). */
.xp-app .xp-node.is-beyond:not(.is-reachable){filter:grayscale(.75) brightness(.72)}
.xp-board.is-zooming .xp-terrain{transition:left .5s var(--xp-ease,ease),top .5s var(--xp-ease,ease),width .5s var(--xp-ease,ease),height .5s var(--xp-ease,ease)}
.xp-board.is-zooming :is(.xp-node,.xp-toll,.xp-start,.xp-roads>g){transition:opacity .3s,visibility .3s,width .3s,height .3s}
@media (prefers-reduced-motion:reduce){.xp-board.is-zooming :is(.xp-terrain,.xp-node,.xp-toll,.xp-start,.xp-roads>g){transition:none}}
/* Narrow windows on the map (owner, 2026-11-15: the stacked view was "ugly … can't even see the map, and things aren't even
   centered and aligned"): the map-first layout now runs down to 640 px, and under 900 px its header takes two tidy rows,
   the zone title with Back to Lobby on its right, then Hero Health on the left and the relics on the right. The phone
   rules under 820 px (no size container, a panning board) do not apply to it. */
@media (min-width:640px) and (max-width:899px){
 :root[data-adventure-map] body:not(.wb-mobile-layout) .xp-app .xp-run-main.xp-map-panel{container-type:size}
 :root[data-adventure-map] body:not(.wb-mobile-layout) .xp-app .xp-map-panel .xp-board-cell{overflow:visible;padding:13px}
 :root[data-adventure-map] body:not(.wb-mobile-layout) .xp-app .xp-run-header{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"title title leave" "hero . relics";gap:8px 16px;align-items:center}
 :root[data-adventure-map] body:not(.wb-mobile-layout) .xp-app .xp-run-header .xp-zone-title{grid-area:title;min-width:0}
 :root[data-adventure-map] body:not(.wb-mobile-layout) .xp-app .xp-run-header .xp-versus{grid-area:hero;justify-self:start}
 :root[data-adventure-map] body:not(.wb-mobile-layout) .xp-app .xp-run-header .xp-relics{grid-area:relics;justify-self:end}
 :root[data-adventure-map] body:not(.wb-mobile-layout) .xp-app .xp-run-header .xp-leave{grid-area:leave;justify-self:end;align-self:start;width:auto!important}
}

/* ---- Enchantment control, place badges and the faction passive (player feedback, 2026-11-15) ---------------------- */
/* A curiosity's badge: what kind of place it is, bottom left of its circle (the guard's key takes bottom right). */
.xp-app .xp-mech{position:absolute;left:-12%;bottom:-12%;z-index:4;width:46%;aspect-ratio:1;border-radius:50%;background:#120d09;box-shadow:0 0 0 1px #c9a35a,0 2px 4px #000c;pointer-events:none}
.xp-app .xp-mech-art{position:absolute;inset:2px;border-radius:50%;background:var(--portrait) center/118% no-repeat}
.xp-app .xp-node.is-visited .xp-mech{opacity:.55;filter:grayscale(.4)}
.xp-app .xp-kind img{width:14px;height:14px;margin:0 5px 0 -3px;vertical-align:-2px;border-radius:2px}
/* Above the army (the map's action column, the road page): the faction passive and the button that opens the army panel. */
.xp-app .xp-army-tools{display:flex;justify-content:center;align-items:center;gap:10px;width:100%;margin-top:4px;padding-top:8px;border-top:1px solid #ffffff14}
.xp-app .xp-road-page .xp-army-tools{width:auto;margin:4px auto 6px;border-top:0;padding-top:0}
.xp-app .xp-passive-chip{display:flex;align-items:center;gap:6px;min-height:44px;min-width:0;padding:0 6px 0 2px;border:0;background:none;text-align:left;cursor:inherit}
.xp-app .xp-passive-chip img{width:30px;height:30px;flex:none;border-radius:50%;box-shadow:0 0 0 1px #000,0 0 0 2px #c9a35a}
.xp-app .xp-passive-chip small{display:block;color:var(--xp-dim);font:10px Arial,sans-serif;letter-spacing:.08em;text-transform:uppercase}
.xp-app .xp-passive-chip b{display:block;max-width:120px;overflow:hidden;color:var(--xp-title);font:13px/1.2 WarbandFriz,Georgia,serif;font-weight:400;white-space:nowrap;text-overflow:ellipsis}
.xp-app .xp-passive-chip:hover b,.xp-app .xp-passive-chip:focus-visible b{color:var(--xp-gold)}
.xp-app .xp-army-tools .xp-armory-open{min-height:44px;padding-inline:14px;white-space:nowrap}
/* On the map the tools sit at the top of the army's own row, above the deployed-army bar's single row of cards (the
   row's height, --xp-army-block, counts both). */
@media (min-width:640px){
 :root[data-adventure-map] body:not(.wb-mobile-layout) .xp-app .xp-map-panel .xp-army-tools{grid-column:2;grid-row:3;align-self:start;z-index:1;margin:0;padding:0;border:0}
}
/* Why the selected place cannot be taken now, first in its details. */
.xp-app .xp-closed{margin:-4px 0 10px;padding:6px 10px;border:1px solid #f0b07055;border-radius:4px;background:#2a1a0fb3;color:#f3dfbf;font-size:13px;line-height:1.4;text-align:left}
.xp-app .xp-closed b{margin-right:4px;color:#f0b070;font:13px WarbandFriz,Georgia,serif;font-weight:400;letter-spacing:.04em;text-transform:uppercase}
.xp-app .xp-closed[data-closed='passed-by']{border-color:#ffffff26;background:#1d1a17b3}
.xp-app .xp-closed[data-closed='passed-by'] b{color:var(--xp-muted)}
/* Veteran training among a town's services: its price keeps the coin at text size, not the service icon's 36 px. */
.xp-app .xp-service .xp-amount img{width:1.1em;height:1.1em;border-radius:0}
/* Placing an enchantment: keep it in the stash or skip it. */
.xp-app .xp-wear-actions{margin-top:12px}
/* The army panel: the passive, each squad's enchantments, the stash. */
.xp-modal.xp-armory{width:min(860px,100%)}
.xp-app .xp-passive{display:flex;gap:12px;align-items:flex-start;max-width:640px;margin:2px auto 4px;padding:6px 12px 6px 8px;border:1px solid #8a734766;border-radius:6px;background:#0007}
.xp-app .xp-passive img{width:44px;height:44px;flex:none;border-radius:50%;box-shadow:0 0 0 1px #000,0 0 0 2px #c9a35a}
.xp-app .xp-passive b{color:var(--xp-title);font:16px WarbandFriz,Georgia,serif;font-weight:400}
.xp-app .xp-passive p{margin:2px 0;color:var(--xp-text)}
.xp-app .xp-passive small{color:var(--xp-dim);font-size:12px}
.xp-app .xp-armory-help,.xp-app .xp-armory-bar p{max-width:660px;margin:8px auto 2px;text-align:center;color:var(--xp-muted);font-size:13px}
.xp-app .xp-armory-bar p b{color:var(--xp-title);font:15px WarbandFriz,Georgia,serif;font-weight:400}
.xp-app .xp-armory-bar .xp-actions{margin-top:6px;align-items:center}
.xp-app .xp-armory-bar .xp-skip{margin:0}
.xp-app .xp-armory-list{list-style:none;display:grid;gap:6px;margin:10px auto 4px;padding:0;max-height:min(46dvh,420px);overflow:auto}
.xp-app .xp-armory-squad{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:10px;align-items:center;padding:6px 8px;border:1px solid #ffffff1a;border-radius:6px;background:#0006}
.xp-app .xp-armory-squad.is-target{border-color:#ffd36a99;box-shadow:inset 0 0 12px #ffbf4622}
.xp-app .xp-armory-art{width:44px;height:44px;border-radius:4px;box-shadow:0 0 0 1px #000,0 0 0 2px #8a7347}
.xp-app .xp-armory-who b{color:var(--xp-gold);font:15px WarbandFriz,Georgia,serif;font-weight:400}
.xp-app .xp-armory-who small{display:block;color:var(--xp-muted);font-size:12px}
.xp-app .xp-armory-target{display:flex;flex-direction:column;align-items:flex-end;gap:2px;min-width:0}
.xp-app .xp-armory-target .xp-small{min-height:44px;padding:0 14px;font-size:13px;white-space:nowrap}
.xp-app .xp-armory-note{color:var(--xp-dim);font-size:12px}
.xp-app .xp-ench-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:5px}
.xp-app .xp-ench{display:flex;align-items:center;gap:6px;min-height:44px;max-width:220px;padding:3px 10px 3px 3px;border:1px solid #0009;border-radius:4px;background:#0008;box-shadow:inset 0 0 0 1px #ffffff14;text-align:left;cursor:inherit;--xp-quality:#2f72d8}
.xp-app .xp-ench[data-quality='epic']{--xp-quality:#a335ee}
.xp-app .xp-ench img{width:34px;height:34px;flex:none;border-radius:3px;box-shadow:0 0 0 1px #000,0 0 0 2px var(--xp-quality)}
.xp-app .xp-ench span{min-width:0;overflow:hidden;color:var(--xp-text);font-size:12.5px;line-height:1.25;text-overflow:ellipsis}
.xp-app .xp-ench:hover,.xp-app .xp-ench:focus-visible{box-shadow:inset 0 0 0 1px var(--xp-quality),0 0 10px var(--xp-quality)}
.xp-app .xp-ench.is-picked{background:#2a2113;box-shadow:inset 0 0 0 1px #ffd36a,0 0 12px #ffbf46aa}
.xp-app .xp-stash{max-width:780px;margin:6px auto 0}
.xp-app .xp-stash .xp-ench-row{justify-content:center}
.xp-app .xp-stash .xp-section-label{margin:10px 0 4px}
@media (max-width:640px){
 .xp-app .xp-armory-squad{grid-template-columns:36px minmax(0,1fr)}
 .xp-app .xp-armory-art{width:36px;height:36px}
 .xp-app .xp-armory-target{grid-column:1/-1;align-items:stretch}
 .xp-app .xp-passive-chip b{max-width:84px}
}

/* ---- Owner, 2026-11-15: "We need to prioritize good UI and UX." ----
   Every row of cards fits comfortably inside its frame ("Make the frame bigger or make the cards smaller. Everything must
   fit"): each dialog is an inline-size container and .xp-cards sizes its cards from that width (--xp-fit), keeping 12 px
   either side for the hover lift and the chosen glow. The five starting squads get a wider frame. */
.xp-app .xp-modal{container-type:inline-size}
.xp-app .xp-band.xp-modal{width:min(1040px,100%)}
.xp-card-top[data-top-len='m']{font-size:calc(var(--wb-card-w) * .06)}
.xp-card-top[data-top-len='l']{font-size:calc(var(--wb-card-w) * .05)}
.xp-card-top[data-top-len='xl']{font-size:calc(var(--wb-card-w) * .042)}
/* A chosen starting squad wears a big gold checkmark instead of a "Chosen" label ("If something's chosen, just put a
   checkmark on it"): the owner's gold tick (skin/checkmarks) in the golden level ring, in the card's open middle below its
   name, popping in when chosen. Clicking the card again lets it go. */
.xp-app .xp-band .xp-spoil{position:relative}
.xp-app .xp-check-badge{position:absolute;z-index:3;left:50%;top:calc(var(--wb-card-w) * .76);width:calc(var(--wb-card-w) * .34);aspect-ratio:1;translate:-50% 0;
 border-radius:50%;background:radial-gradient(circle,#1a120add 0 58%,#0000 60%),var(--xp-level-ring) center/100% 100% no-repeat;filter:drop-shadow(0 2px 6px #000c) drop-shadow(0 0 10px #ffcf6a66);
 animation:xp-check-pop .32s var(--xp-ease) both;pointer-events:none}
.xp-app .xp-check-badge>i{position:absolute;inset:24% 20% 26% 24%;background:url('skin/checkmarks/check-gold.png?art=checks-v1') center/contain no-repeat;filter:drop-shadow(0 1px 1px #000)}
@keyframes xp-check-pop{0%{opacity:0;scale:.4}65%{opacity:1;scale:1.12}100%{opacity:1;scale:1}}
@media (prefers-reduced-motion:reduce){.xp-app .xp-check-badge{animation:none}}
.xp-app.xp-reduced .xp-check-badge{animation:none}
/* The zone's title card: its number small and grey above the name, its tagline below (owner, 2026-11-15). */
.xp-app .xp-intro-text .xp-intro-zone{color:#b8b2a6;font:clamp(13px,1.3vw,16px) WarbandFriz,Georgia,serif;letter-spacing:.18em;text-transform:uppercase;text-shadow:0 1px 3px #000;animation-delay:.15s}
.xp-app .xp-intro-text .xp-intro-tagline{margin-top:-2px;color:#f3e6c4;font:clamp(17px,2.1vw,24px) WarbandFriz,Georgia,serif;text-shadow:0 2px 4px #000}
/* The map header: the zone's number above its name, then the checklist of what clears the zone. */
.xp-app .xp-zone-title .xp-zone-number{margin:0 0 1px;color:#a9a397;font:11px WarbandFriz,Georgia,serif;letter-spacing:.16em;text-transform:uppercase}
.xp-app .xp-goals{list-style:none;display:flex;flex-direction:column;gap:3px;margin:5px 0 0;padding:0;min-width:0}
.xp-app .xp-goal{display:flex;align-items:center;gap:6px;min-width:0;color:var(--xp-text);font-size:12.5px;line-height:1.2}
.xp-app .xp-goal b{color:#ffd8a0;font-weight:600}
.xp-app .xp-goal-box{flex:none;width:17px;height:15px;background:url('skin/checkmarks/box.png?art=checks-v1') center/100% 100% no-repeat}
.xp-app .xp-goal.is-done .xp-goal-box{background:url('skin/checkmarks/check-gold.png?art=checks-v1') 55% 40%/76% auto no-repeat,url('skin/checkmarks/box.png?art=checks-v1') center/100% 100% no-repeat}
.xp-app .xp-goal-faces{flex:none;display:flex}
.xp-app .xp-goal-face{position:relative;flex:none;width:26px;height:26px;border-radius:50%;background:var(--xp-level-ring) center/100% 100% no-repeat;filter:drop-shadow(0 1px 2px #000)}
.xp-app .xp-goal-face+.xp-goal-face{margin-left:-5px}
.xp-app .xp-goal-face .xp-portrait{inset:17%}
.xp-app .xp-goal-text{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.xp-app .xp-goal.is-done .xp-goal-text{color:var(--xp-muted);text-decoration:line-through;text-decoration-color:#d9a83c99}
.xp-app .xp-goal.is-done .xp-goal-face{filter:grayscale(.6) brightness(.8)}
.xp-app .xp-zone-title p.xp-foe-line{display:none}
@media (max-width:1100px){.xp-app .xp-zone-title p.xp-foe-line{display:block;color:#e2a070}}
