/* Link Discord (owner, 2026-10-13; discord-link-ui.mjs): the shared login pop-up frame (login-notices.css, owner art
   2026-10-29) over the lobby. The lead sits on the scroll, the three perks in dark bars, then a Join link and one red,
   moderately sized Link Discord button in the footer band. The Discord quest note on the Factions tab and its quest
   marker pulse gold so players see they can click it. */
#wb-lobby .wb-discord-link{position:absolute;inset:0;z-index:60;display:flex;box-sizing:border-box;overflow:auto;padding:calc(16px + var(--wb-login-notice-overhang)) 16px 16px;background:#000a}
#wb-lobby .wb-discord-link[hidden]{display:none!important}
/* The scroll leaves 32 px each side so the corner X never touches its rolled ends, at any width. */
#wb-discord-link .wb-discord-frame{--ln-width:480px;--ln-banner:calc(100% - 64px)}
/* Lobby buttons carry their own frames; the close button keeps only the gold art. #wb-lobby button's
   position:relative outranks the pop-up's corner placement, so restate it here: top-right, clear of the scroll. */
#wb-discord-link .wb-discord-close{position:absolute;padding:0!important;border:0!important;border-image:none!important;background:var(--wb-ln-close) center/28px no-repeat!important;box-shadow:none!important}
#wb-discord-link .wb-discord-close:active{background-size:26px!important}
#wb-discord-link .wb-login-notice-banner>h2.wb-discord-lead{font-size:19px;line-height:1.3}
.wb-discord-perks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;text-align:left}
.wb-discord-perks li{display:flex;align-items:center;gap:12px;padding:2px 6px}
.wb-discord-perks strong{display:block;font:400 15px/1.2 WarbandFriz,Georgia,serif;color:#f3e6c4;text-shadow:0 1px 2px #000}
.wb-discord-perks li.is-gift strong{color:#f0cc77}
.wb-discord-perks small{display:block;margin-top:2px;color:#cfc3a8;font-size:12px}
#wb-lobby .wb-discord-perk-crest{flex:none;width:44px;height:44px}
.wb-discord-perk-icon{flex:none;display:grid;place-items:center;width:44px;height:44px}
.wb-discord-perk-icon svg,.wb-discord-perk-icon img{width:30px;height:30px;object-fit:contain;filter:drop-shadow(0 1px 2px #000c)}
.wb-discord-join{margin:0;color:#e4d6b8;text-shadow:0 1px 2px #000}
.wb-discord-join a{color:#9fcbff;text-decoration:underline;text-underline-offset:3px}
.wb-discord-join a:is(:hover,:focus-visible){color:#cfe4ff;outline:0}
.wb-discord-status{min-height:1.3em;margin:0;color:#e4d6b8;text-shadow:0 1px 2px #000}
.wb-discord-status[data-tone=success]{color:#8fe09a}.wb-discord-status[data-tone=error]{color:#ffab8c}
#wb-discord-link .wb-owner-button.wb-discord-go:is(#wb-ob#wb-ob#wb-ob#wb-ob,.wb-owner-button){--rb-h:46px;min-width:210px!important;font-size:18px!important}

/* Returning-player faction showcase: the crest and reward on the scroll, real recruitment cards in the owner's
   three-card fan. */
#wb-discord-link .wb-discord-frame.wb-discord-offer{--ln-width:520px}
.wb-discord-offer-heading{gap:12px}
.wb-discord-offer-heading h2{text-align:left}
.wb-discord-offer-heading h2>span{display:block;font:400 16px/1.2 WarbandFriz,Georgia,serif;color:#5b3713}
.wb-discord-offer-heading h2>strong{display:block;margin-top:1px;color:#3a1806;font:400 34px/1.05 WarbandFriz,Georgia,serif}
.wb-discord-offer-crest{display:block;flex:none;width:54px;height:54px;filter:drop-shadow(0 2px 3px #0008)}
.wb-discord-offer-crest img{width:100%;height:100%;object-fit:contain}
.wb-discord-cardfan{--wb-card-w:142px;--wb-discord-fan-offset:116px;position:relative;height:245px;margin:0 auto 3px;isolation:isolate}
.wb-discord-preview-card{position:absolute;left:calc(50% - var(--wb-card-w)/2);top:20px;transform:translate(var(--fan-x),var(--fan-y)) rotate(var(--fan-angle));transform-origin:50% 90%;filter:drop-shadow(0 7px 6px #0009)}
.wb-discord-preview-card-0{--fan-x:calc(-1 * var(--wb-discord-fan-offset));--fan-y:18px;--fan-angle:-12deg;z-index:1}
.wb-discord-preview-card-1{--fan-x:0px;--fan-y:0px;--fan-angle:0deg;z-index:3}
.wb-discord-preview-card-2{--fan-x:var(--wb-discord-fan-offset);--fan-y:18px;--fan-angle:12deg;z-index:2}
.wb-discord-preview-card .wb-card{pointer-events:none}
.wb-discord-offer-copy .wb-discord-status:empty{display:none}
.wb-discord-offer-copy .wb-discord-status:not(:empty){font-size:12px}
@media(max-width:560px){
 #wb-lobby .wb-discord-link{padding:calc(12px + var(--wb-login-notice-overhang)) 10px 12px}
 #wb-discord-link .wb-login-notice-banner>h2.wb-discord-lead{font-size:16px}
 .wb-discord-offer-heading{gap:8px}.wb-discord-offer-crest{width:42px;height:42px}
 #wb-discord-link .wb-discord-offer-heading{padding-left:8%;padding-right:8%}
 .wb-discord-offer-heading h2>span{font-size:13px}.wb-discord-offer-heading h2>strong{font-size:27px}
 .wb-discord-cardfan{--wb-card-w:120px;--wb-discord-fan-offset:76px;height:215px}
}
@media(max-width:360px){.wb-discord-cardfan{--wb-card-w:108px;--wb-discord-fan-offset:66px;height:200px}}

/* The pulsing Discord quest note (High Elves on the Factions tab). */
#wb-lobby #wb-faction-detail button.wb-discord-note{width:100%;min-height:0;margin:0;padding:4px 6px!important;border:0!important;border-image:none!important;border-radius:4px;background:none!important;box-shadow:none!important;
 color:#ffd100!important;font:inherit;text-align:left;cursor:pointer;animation:wb-discord-note 2.4s ease-in-out infinite}
#wb-lobby #wb-faction-detail button.wb-discord-note .wb-faction-quest-note-icon{animation:wb-discord-mark 2.4s ease-in-out infinite}
#wb-lobby #wb-faction-detail button.wb-discord-note:is(:hover,:focus-visible){background:#ffd10014!important;outline:0;color:#ffe76a!important}
@keyframes wb-discord-note{0%,100%{text-shadow:0 1px 1px #000}50%{text-shadow:0 1px 1px #000,0 0 10px #ffd100a6}}
@keyframes wb-discord-mark{0%,100%{filter:drop-shadow(0 1px 1px #000c)}50%{filter:drop-shadow(0 1px 1px #000c) drop-shadow(0 0 7px #ffd100)}}
@media(prefers-reduced-motion:reduce){#wb-lobby #wb-faction-detail button.wb-discord-note,#wb-lobby #wb-faction-detail button.wb-discord-note .wb-faction-quest-note-icon{animation:none}}
