.wb-selector-tabs{display:flex;gap:6px;margin:8px 0 12px;border-bottom:1px solid #78674a;padding-bottom:8px}
.wb-selector-tabs button{display:flex;align-items:center;gap:6px;font-size:14px;min-height:38px;padding:5px 16px}
.wb-selector-tabs img{width:24px;height:24px;object-fit:contain}
.wb-selector-tabs [aria-selected=true]{color:#ffe395;border-color:#b69554}
#wb-quests-panel{overflow:auto;min-height:0;flex:1;padding:0 6px 12px}
.wb-quests-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.wb-quests-heading span{font-size:12px;color:#bcb4a5}
.wb-quest-list{display:grid;gap:9px;margin-bottom:18px}.wb-quest{display:flex;align-items:center;gap:14px;padding:12px 16px;background:#171613;border:1px solid #5d513b}
.wb-quest>img{width:30px;height:30px;object-fit:contain}.wb-quest>div{flex:1;min-width:0}.wb-quest h3{font-size:15px;color:#f2dca4;margin:0 0 5px}.wb-quest p{margin:0 0 6px;font-size:13px;color:#ddd3be}.wb-quest span{font-size:13px}.wb-quest progress{display:block;width:100%;max-width:360px;height:7px;margin-top:5px;accent-color:#a59353}.wb-quest.is-claimed{opacity:.6}.wb-quest-reward{display:flex;align-items:center;gap:5px;color:#ffe3a1;min-width:65px}.wb-quest-reward img{width:24px;height:24px}.wb-quest button{min-width:100px}.wb-faction-quest strong{color:#e0c98f;font-size:13px}
.wb-quest-actions{display:flex;flex-direction:column;gap:6px}
.wb-starter-quest{border-color:#9c7d3f;background:linear-gradient(90deg,#2a2213,#171613 70%)}.wb-starter-quest .wb-quest-reward{font-size:15px;font-weight:600}.wb-starter-quest:has([data-quest-claim]:not([disabled])){box-shadow:0 0 0 1px #d4ad5c inset,0 0 14px rgba(212,173,92,.28)}
.wb-tutorial-quest{border-color:#a79160;background:linear-gradient(90deg,#242635,#171613 80%)}.wb-tutorial-quest .wb-quest-reward{font-size:15px;font-weight:bold}.wb-tutorial-quest .wb-tutorial-quest-note{margin:4px 0 0;font-size:12px;color:#d7c58e}.wb-tutorial-quest:has(button:not([disabled])){box-shadow:0 0 0 1px #d4ad5c inset,0 0 14px #d4ad5c33}.wb-tutorial-quest button{max-width:145px;white-space:normal}
@media(max-width:640px){.wb-quest{flex-wrap:wrap;gap:8px;padding:10px}.wb-quest-actions{margin-left:auto}.wb-quest>div{flex-basis:calc(100% - 48px)}.wb-quest button{margin-left:auto}.wb-quests-heading{align-items:flex-start;flex-direction:column;gap:3px}}
/* The Discord faction quest: status under the text, Join Discord and Link Discord (or Check again) on the right. */
.wb-discord-quest{border-color:#5865f2a6;background:linear-gradient(90deg,#1b1d33,#171613 70%)}
.wb-discord-quest .wb-discord-status{margin:0;font-size:12px;color:#c7c2e8}
.wb-discord-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;align-items:center}
.wb-discord-actions strong{color:#9fd98f}
@media(max-width:640px){.wb-discord-actions{flex-basis:100%;justify-content:flex-start}}

/* Faction quests (owner, 2026-10-13): the faction crest in the owner's white icon frame, with a smaller quest marker
 * tilted on its bottom-right corner. */
.wb-faction-quest-icon{position:relative;flex:none;box-sizing:border-box;width:36px;height:36px;padding:3px;border-radius:3px;background:radial-gradient(circle at 50% 40%,#2b2218,#0b0805 78%)}
.wb-faction-quest-icon::after{content:'';position:absolute;inset:0;background:url('./skin/play-flow/icon-frame.png') center/100% 100% no-repeat;pointer-events:none}
.wb-faction-quest-icon .wb-faction-quest-crest{display:block;width:30px;height:30px;object-fit:contain}
.wb-faction-quest-icon .wb-faction-quest-marker{position:absolute;z-index:1;right:-7px;bottom:-7px;width:18px;height:18px;object-fit:contain;transform:rotate(14deg);filter:drop-shadow(0 1px 1px #000c)}

/* A quest ready to claim pulses with a glow: blue for dailies, gold for New Recruit quests (owner, 2026-10-13). The Quests
   tab marker does the same while any reward waits. */
img.wb-quest-ready{--wb-quest-glow:#ffcc3ad9;animation:wb-quest-ready 1.6s ease-in-out infinite}
img.wb-quest-ready[data-tone=daily]{--wb-quest-glow:#56c6ffd9}
@keyframes wb-quest-ready{0%,100%{transform:scale(1);filter:drop-shadow(0 0 2px var(--wb-quest-glow))}50%{transform:scale(1.12);filter:drop-shadow(0 0 9px var(--wb-quest-glow)) brightness(1.15)}}
@media(prefers-reduced-motion:reduce){img.wb-quest-ready{animation:none;filter:drop-shadow(0 0 6px var(--wb-quest-glow))}}

/* Finished rewards recede; claimable rewards keep their existing highlight. */
.wb-quest.is-claimed{opacity:.48;filter:grayscale(.85);border-color:#49463e;background:#181817;box-shadow:none}
.wb-quest.is-claimed :is(h3,p,strong,.wb-quest-reward){color:#a7a49c}

/* The Call to Arms (every player's Find Match format today) leads the daily list; the Warband Muster has its own section.
 * Their terms line names the format's seats and usual length before the click (owner, 2026-10-24). */
.wb-call-quest,.wb-weekly-quest{border-color:#4f7fa3;background:linear-gradient(90deg,#14202b,#171613 70%)}
.wb-call-quest .wb-quest-reward,.wb-weekly-quest .wb-quest-reward{font-size:15px;font-weight:600}
.wb-quest .wb-call-terms{margin:0 0 4px;font-size:12px;color:#a9c4d8}
.wb-quest [data-quest-go]{white-space:nowrap}

/* Campaign to multiplayer invitation (multiplayer-invite.mjs, owner 2026-10-24): a Match Found-style card in the Find Match
   art (find-match.css: crossed swords in the turning rune ring over the gold burst) inside the dialogue brown frame. One
   line, the format with its usual length, one Valor bonus and the Ready button. */
.wb-mp-invite-layer{position:fixed;inset:0;z-index:2970;display:grid;place-items:center;padding:16px;background:#05080ccc;animation:wb-mp-invite-fade .25s ease-out both}
.wb-mp-invite-layer[hidden]{display:none}
.wb-mp-invite{position:relative;box-sizing:border-box;width:min(470px,100%);margin-top:56px;padding:66px 26px 18px;text-align:center;color:#eee4ca;font-family:WarbandFriz,Georgia,serif;
 border:20px solid transparent;border-image:url('./skin/dialogue-ui/brown-panel-frame.png') 80/20px stretch;background:radial-gradient(ellipse at 50% 0%,#3a2a12e6,#161410f2 62%),#141412;box-shadow:0 18px 50px #000c;animation:wb-mp-invite-rise .35s ease-out both}
.wb-mp-invite-emblem{position:absolute;left:50%;top:-78px;width:132px;height:132px;translate:-50% 0;pointer-events:none}
/* The rays rise from the frame's top edge behind the card (z-index -1 in the layer's stacking context). */
.wb-mp-invite-burst{position:absolute;z-index:-1;left:50%;bottom:calc(100% - 6px);width:min(420px,120%);aspect-ratio:331/129;translate:-50% 0;background:var(--wb-fm-burst) center bottom/100% 100% no-repeat;opacity:.95;pointer-events:none}
.wb-mp-invite-runes{position:absolute;inset:0;background:var(--wb-fm-runes) center/contain no-repeat;animation:wb-mp-invite-turn 9s linear infinite}
.wb-mp-invite-swords{position:absolute;inset:22%;background:var(--wb-fm-swords) center/contain no-repeat;filter:drop-shadow(0 4px 6px #000a);animation:wb-mp-invite-swords .5s .15s ease-out both}
.wb-mp-invite-eyebrow{margin:0 0 4px;color:#c6ad76;font-size:12px;letter-spacing:.14em;text-transform:uppercase}
.wb-mp-invite h2{margin:0;color:#f6e9c9;font:36px/1.1 WarbandFriz,Georgia,serif;text-shadow:0 3px 6px #000}
.wb-mp-invite>p#wb-mp-invite-line{margin:8px 0 16px;color:#ddd3be;font:14px/1.45 Arial,sans-serif}
/* One clean line, no boxes: the format with its length, then the bonus. */
.wb-mp-invite-terms{display:flex;justify-content:center;align-items:center;gap:8px 20px;flex-wrap:wrap;margin-bottom:18px}
.wb-mp-invite-terms>span{display:flex;align-items:center;gap:7px;color:#f2c75c;font-size:19px;text-shadow:0 2px 3px #000}
.wb-mp-invite-terms small{color:#cdbf9f;font:13px/1.2 Arial,sans-serif;text-shadow:0 1px 2px #000}
.wb-mp-invite-format::before{content:'';width:30px;height:30px;flex:none;background:var(--wb-fm-solo-gold) center/contain no-repeat}
.wb-mp-invite-format[data-icon=duo]::before{background-image:var(--wb-fm-duo-gold)}.wb-mp-invite-format[data-icon=group]::before{background-image:var(--wb-fm-group-gold)}
.wb-mp-invite-terms>span>span{display:flex;align-items:baseline;gap:6px}.wb-mp-invite-terms b{font-weight:normal;line-height:1.1}
.wb-mp-invite-bonus img{width:26px;height:26px;filter:drop-shadow(0 0 6px #f2c75c88)}
.wb-mp-invite .wb-owner-button--ready{min-width:240px;animation:wb-mp-invite-button 2.6s ease-in-out infinite}
.wb-mp-invite-later{display:block;margin:6px auto 0;min-height:44px;padding:5px 16px;background:transparent;border:0;color:#c7b58e;font:13px/1.4 WarbandFriz,Georgia,serif;text-decoration:underline;text-underline-offset:3px}
.wb-mp-invite-later:hover,.wb-mp-invite-later:focus-visible{color:#ffe0a0;text-shadow:0 0 9px #dfb24c88}
@keyframes wb-mp-invite-fade{from{opacity:0}}
@keyframes wb-mp-invite-rise{from{opacity:0;transform:translateY(14px) scale(.98)}}
@keyframes wb-mp-invite-turn{to{rotate:360deg}}
@keyframes wb-mp-invite-swords{from{opacity:0;scale:1.35}}
@keyframes wb-mp-invite-button{0%,100%{filter:drop-shadow(0 0 5px #d2a54b44)}50%{filter:drop-shadow(0 0 11px #eecb6d77)}}
@media(max-width:480px){.wb-mp-invite{padding:62px 14px 14px;border-width:14px;border-image-width:14px}.wb-mp-invite h2{font-size:30px}.wb-mp-invite .wb-owner-button--ready{min-width:0;width:100%}}
@media(prefers-reduced-motion:reduce){.wb-mp-invite-layer,.wb-mp-invite,.wb-mp-invite *{animation:none!important}}

/* A gentle halo draws attention to every claimable reward, behind the existing button artwork. */
.wb-quest-claim-ready:not(:disabled)::after{content:'';position:absolute;inset:4px;z-index:-2;border-radius:5px;background:#edc15b;box-shadow:0 0 15px 6px #edc15b;pointer-events:none;animation:wb-quest-claim-halo 2.6s ease-in-out infinite}
@keyframes wb-quest-claim-halo{0%,100%{opacity:.18}50%{opacity:.46}}
@media(prefers-reduced-motion:reduce){.wb-quest-claim-ready:not(:disabled)::after{animation:none;opacity:.3}}

/* The Quests panel is a quest-log page on the owner's parchment (owner, 2026-10-29; qa/prepare-quest-log-art.py, pieces
   in skin/quest-log). The page is nine-sliced at half size, so its curl, torn sides and rolled foot keep their shape and
   the board scrolls inside the paper. Each section title sits on the ringed rule with the section's quest marker in the
   ring, a notched rule closes each section, and finished quests carry the check stamp. Entries are ink on the paper,
   without dark boxes. Scoped to the panel: the Play tab's recruit card keeps the dark quest row. */
#wb-quests-panel#wb-quests-panel{
 --wb-quest-log-ink:#3b2510;
 padding:2px 12px 6px;border:solid transparent;border-width:65px 60px 80px 60px;
 border-image:url('./skin/quest-log/page.png?art=4380620c2ed6c81f') 130 120 160 120 fill / 65px 60px 80px 60px stretch;
 background:none;color:var(--wb-quest-log-ink);scrollbar-width:thin;scrollbar-color:#8a6a3e transparent;
}
/* The rule is drawn at its own 48 px height under the title, whatever the title's height (titles wrap on phones). The
   ring's opening is 24 px across, centred 21 px in and 27 px above the bottom. */
#wb-quests-panel#wb-quests-panel .wb-quests-heading{position:relative;min-height:48px;margin:4px 0 8px;padding:4px 4px 18px 54px;box-sizing:border-box}
#wb-quests-panel#wb-quests-panel .wb-quests-heading::before{content:'';position:absolute;left:0;right:0;bottom:0;height:48px;box-sizing:border-box;border:solid transparent;border-width:0 15px 0 48px;
 border-image:url('./skin/quest-log/seal-rule.png?art=c4ab7dbe38a1e60b') 0 30 0 96 fill / 0 15px 0 48px stretch;pointer-events:none}
#wb-quests-panel#wb-quests-panel .wb-quests-seal{position:absolute;left:9px;bottom:15px;width:24px;height:24px;object-fit:contain;filter:drop-shadow(0 1px 1px #0006)}
#wb-quests-panel#wb-quests-panel .wb-quests-heading h2{position:relative;margin:0;font:20px/1.1 WarbandFriz,Georgia,serif;color:var(--wb-quest-log-ink);text-shadow:none}
#wb-quests-panel#wb-quests-panel .wb-quests-heading span{position:relative;font:12px/1.3 Arial,sans-serif;color:#523b22;text-shadow:none}
#wb-quests-panel#wb-quests-panel .wb-quest-list{gap:4px;margin-bottom:14px}
/* Owner, 2026-10-30: no divider rule between the quest sections. */
#wb-quests-panel#wb-quests-panel .wb-quest{position:relative;padding:10px 12px;border:0;border-radius:3px;background:transparent;box-shadow:none}
#wb-quests-panel#wb-quests-panel .wb-quest+.wb-quest{border-top:1px solid #7a583230}
#wb-quests-panel#wb-quests-panel .wb-quest:has([data-quest-claim]:not([disabled])){background:linear-gradient(90deg,#e6b85c59,transparent 80%);box-shadow:0 0 0 1px #a8782a inset,0 0 12px #c9963c4d}
/* Every ink keeps 4.5:1 contrast against the paper. */
#wb-quests-panel#wb-quests-panel .wb-quest h3{color:var(--wb-quest-log-ink);text-shadow:none}
#wb-quests-panel#wb-quests-panel .wb-quest :is(p,span){color:#4d3920;text-shadow:none}
#wb-quests-panel#wb-quests-panel .wb-quest progress{appearance:none;border:0;border-radius:3px;background:#6b4a2a33;accent-color:#8b6224}
#wb-quests-panel#wb-quests-panel .wb-quest progress::-webkit-progress-bar{border-radius:3px;background:#6b4a2a33}
#wb-quests-panel#wb-quests-panel .wb-quest progress::-webkit-progress-value{border-radius:3px;background:#8b6224}
#wb-quests-panel#wb-quests-panel .wb-quest progress::-moz-progress-bar{border-radius:3px;background:#8b6224}
/* Faction unlocks keep their purple fill on the paper's track. */
#wb-quests-panel#wb-quests-panel .wb-faction-unlock-track{background:#6b4a2a33;box-shadow:none}
#wb-quests-panel#wb-quests-panel .wb-quest .wb-quest-reward{color:#573209;font-weight:700}
#wb-quests-panel#wb-quests-panel .wb-quest .wb-call-terms{color:#1f405e}
#wb-quests-panel#wb-quests-panel .wb-discord-quest .wb-discord-status{color:#3a3368}
#wb-quests-panel#wb-quests-panel .wb-faction-quest strong{color:#553a14}
#wb-quests-panel#wb-quests-panel .wb-discord-actions strong{color:#1e4a1b}
/* A finished entry fades on the paper and the check stamp takes its marker's place at full strength. A faction crest
   stays under the stamp, since it names the faction. */
#wb-quests-panel#wb-quests-panel .wb-quest.is-claimed{opacity:1;filter:none;background:transparent;box-shadow:none}
#wb-quests-panel#wb-quests-panel .wb-quest.is-claimed>*{opacity:.5;filter:grayscale(.6)}
#wb-quests-panel#wb-quests-panel .wb-quest.is-claimed>img{visibility:hidden}
#wb-quests-panel#wb-quests-panel .wb-quest.is-claimed :is(h3,p,span,strong){color:#5b4a36}
#wb-quests-panel#wb-quests-panel .wb-quest.is-claimed::after{content:'';position:absolute;left:4px;top:50%;width:46px;height:39px;translate:0 -50%;rotate:-8deg;
 background:url('./skin/quest-log/stamp.png?art=e153ca41264fd4e9') center/contain no-repeat;pointer-events:none}
@media(max-width:640px){
 #wb-quests-panel#wb-quests-panel{padding:0 4px 4px;border-width:39px 36px 48px 36px;border-image-width:39px 36px 48px 36px}
 #wb-quests-panel#wb-quests-panel .wb-quests-heading{padding-right:0}
}
/* Owner, 2026-10-30: rewards line up in one column, whatever the button beside them says; every action button has one
   width, and the Valor amount sits right-aligned in a fixed slot before it. */
#wb-quests-panel#wb-quests-panel .wb-quest>.wb-quest-reward{flex:none;width:74px;display:inline-flex;align-items:center;justify-content:flex-end;gap:5px;white-space:nowrap}
#wb-quests-panel#wb-quests-panel .wb-quest>:is(button,a).wb-owner-button{flex:none;width:118px;min-width:118px;box-sizing:border-box;justify-content:center;text-align:center}
/* A claimable quest glows around the outside of its button only: no gold fill behind the art and no lit row. */
.wb-quest-claim-ready:not(:disabled)::after{inset:-1px;background:none;border-radius:4px;box-shadow:0 0 9px 2px #f0c35a}
@keyframes wb-quest-claim-halo{0%,100%{opacity:.45}50%{opacity:.9}}
#wb-quests-panel#wb-quests-panel .wb-quest:has([data-quest-claim]:not([disabled])){background:transparent;box-shadow:none}
/* The log scrolls: a dark grey bar on a visible groove says so. */
#wb-quests-panel#wb-quests-panel{scrollbar-width:auto;scrollbar-color:#3d3d3d #00000026}
#wb-quests-panel#wb-quests-panel::-webkit-scrollbar{width:11px}
#wb-quests-panel#wb-quests-panel::-webkit-scrollbar-track{background:#00000026;border-radius:6px}
#wb-quests-panel#wb-quests-panel::-webkit-scrollbar-thumb{background:#3d3d3d;border:2px solid #d9c08f;border-radius:6px}
#wb-quests-panel#wb-quests-panel::-webkit-scrollbar-thumb:hover{background:#262626}
/* More below (owner, 2026-10-31): while the log can scroll further, a small "Scroll down" with the login notices' gold
   arrow turned downward and bobbing sits at the foot of the page, on a fade of the parchment. A click scrolls on. */
#wb-quests-panel .wb-quests-more{position:sticky;bottom:-6px;z-index:2;display:flex;align-items:center;justify-content:center;gap:7px;width:calc(100% + 24px);margin:0 -12px -6px;padding:22px 0 8px;border:0;
 background:linear-gradient(#cba37100,#cba371f0 55%);color:var(--wb-quest-log-ink,#3b2510);font:13px/1 WarbandFriz,Georgia,serif;letter-spacing:.02em;text-shadow:0 1px 0 #f3dcae80}
#wb-quests-panel .wb-quests-more[hidden]{display:none}
#wb-quests-panel .wb-quests-more i{width:11px;height:17px;background:var(--wb-ln-arrow-gold,url('./skin/login-notices/arrow-gold.png?art=0f5575572c870774')) center/contain no-repeat;rotate:90deg;filter:drop-shadow(0 1px 1px #0007);animation:wb-quests-more-bob 1.3s ease-in-out infinite}
#wb-quests-panel .wb-quests-more:is(:hover,:focus-visible) span{color:#7a1e08}
@keyframes wb-quests-more-bob{0%,100%{translate:0 -2px}50%{translate:0 3px}}
@media(prefers-reduced-motion:reduce){#wb-quests-panel .wb-quests-more i{animation:none}}
/* Claim All (owner, 2026-10-31): centred under the parchment, outside the log's scroll, while rewards wait. */
#wb-quests-footer{display:flex;flex:none;justify-content:center;padding:8px 0 4px}
#wb-quests-footer[hidden],#wb-quests-panel[hidden]+#wb-quests-footer{display:none}
#wb-quests-footer .wb-owner-button:is(#wb-ob#wb-ob#wb-ob#wb-ob,.wb-owner-button){min-width:180px;font-size:15px!important}
