/* Alliance / Warcraft Forever skin — scoped to the Forever subpage only. */

body.wf-alliance {
  --alliance-blue-dark: #071525;
  --alliance-blue: #123a68;
  --alliance-blue-light: #2867a0;
  --royal-blue: #174f8a;
  --stormwind-blue: #0e3159;

  --gold-dark: #7a531c;
  --gold: #c8953e;
  --gold-light: #e8c675;
  --gold-highlight: #f4dea1;

  --steel-dark: #151a20;
  --steel: #292f36;
  --steel-light: #48515b;

  --parchment: #d8c49a;
  --parchment-light: #eee1c1;

  --background: #060b11;
  --surface: #0b131d;
  --surface-raised: #101b28;
  --surface-hover: #152538;

  --text-primary: #f3eee4;
  --text-secondary: #aeb9c5;
  --text-muted: #6f7e8d;

  --success: #4fa66a;
  --warning: #d9a441;
  --danger: #b74a46;
  --arcane: #62b9ed;

  --gold-border: rgba(232, 198, 117, 0.34);
  --gold-border-strong: rgba(200, 149, 62, 0.62);
  --steel-border: rgba(72, 81, 91, 0.55);

  --font-display: "Cinzel", "Morpheus", serif;
  --font-ui: "Nunito", "Inter", sans-serif;
  --radius-panel: 10px;
  --radius-control: 8px;
  --shadow-panel: 0 18px 40px rgba(0, 0, 0, 0.38);

  --bg: var(--background);
  --bg2: var(--surface);
  --card: var(--surface-raised);
  --card2: var(--surface-hover);
  --text: var(--text-primary);
  --text2: var(--text-secondary);
  --muted: var(--text-muted);
  --text-dim: var(--text-secondary);
  --border: var(--steel-border);
  --border2: var(--gold-border);
  --pink: var(--gold-light);
  --pink-l: var(--gold-highlight);
  --purple: var(--alliance-blue-light);
  --purple-l: var(--arcane);

  --surface-base-bg: linear-gradient(180deg, rgba(16, 27, 40, 0.96), rgba(11, 19, 29, 0.98));
  --surface-base-border: var(--steel-border);
  --surface-elevated-bg: linear-gradient(180deg, rgba(21, 37, 56, 0.96), rgba(11, 19, 29, 0.98));
  --surface-elevated-border: rgba(40, 103, 160, 0.35);
  --surface-highlight-bg:
    linear-gradient(160deg, rgba(18, 58, 104, 0.48), rgba(11, 19, 29, 0.96)),
    linear-gradient(180deg, rgba(122, 83, 28, 0.08), transparent 42%);
  --surface-highlight-border: var(--gold-border);

  --bg-overlay-a: 0.28;
  --bg-overlay-b: 0.7;
  --bg-overlay-c: 0.92;
  --bg-accent-opacity: 0.16;

  color: var(--text-primary);
  background: var(--background);
  font-family: var(--font-ui);
}

body.wf-alliance::selection {
  background: rgba(40, 103, 160, 0.55);
  color: var(--gold-highlight);
}

body.wf-alliance::before {
  background:
    radial-gradient(52% 38% at 86% 4%, rgba(232, 198, 117, 0.16), transparent 62%),
    radial-gradient(46% 34% at 8% 10%, rgba(40, 103, 160, 0.34), transparent 66%),
    radial-gradient(28% 22% at 50% 100%, rgba(14, 49, 89, 0.45), transparent 70%),
    linear-gradient(180deg, rgba(6, 11, 17, 0.18) 0%, rgba(6, 11, 17, 0.72) 52%, rgba(6, 11, 17, 0.96) 100%),
    linear-gradient(180deg, var(--alliance-blue-dark), var(--background));
}

body.wf-alliance .stars {
  display: none;
}

body.wf-alliance .hero {
  padding-top: 16px;
}

body.wf-alliance .hero-brand {
  max-width: min(100%, 1120px);
  aspect-ratio: 16 / 9;
}

body.wf-alliance .hero-banner {
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-panel);
  box-shadow:
    0 0 0 1px rgba(7, 21, 37, 0.7),
    0 0 32px rgba(18, 58, 104, 0.4),
    0 18px 42px rgba(0, 0, 0, 0.52);
  filter: none;
}

body.wf-alliance .wf-command-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  flex-wrap: wrap;
  width: min(100%, 1120px);
  margin: 14px auto 0;
  padding: 8px 4px 2px;
  text-align: center;
}

body.wf-alliance .hero-sub {
  margin: 0;
  color: var(--gold-light);
  letter-spacing: 0.28em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
}

body.wf-alliance .auth-top-right {
  position: static;
  justify-content: center;
  margin: 0;
  min-width: 0;
  top: auto;
  right: auto;
}

body.wf-alliance .top-nav {
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-panel);
  background: rgba(7, 21, 37, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(244, 222, 161, 0.06),
    0 10px 24px rgba(0, 0, 0, 0.35);
}

body.wf-alliance .top-nav a {
  font-family: var(--font-ui);
  border-radius: 6px;
  border-color: rgba(40, 103, 160, 0.45);
  background: rgba(14, 49, 89, 0.45);
  color: var(--text-primary);
}

body.wf-alliance .top-nav a::before {
  border-radius: 6px;
  background: linear-gradient(135deg, var(--alliance-blue-light) 0%, var(--royal-blue) 55%, var(--stormwind-blue) 100%);
}

body.wf-alliance .top-nav a:hover {
  border-color: var(--gold-border);
  box-shadow: 0 0 14px rgba(200, 149, 62, 0.28);
  color: var(--gold-highlight);
  transform: none;
}

body.wf-alliance .top-nav a.nav-current {
  border-color: var(--gold-border-strong);
  color: var(--gold-highlight);
  box-shadow:
    0 0 16px rgba(200, 149, 62, 0.28),
    inset 0 0 18px rgba(18, 58, 104, 0.35);
}

body.wf-alliance .top-nav a.nav-current::before {
  opacity: 0.35;
}

body.wf-alliance .top-nav-sep {
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
}

body.wf-alliance .hero-divider {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.55;
  height: 1px;
}

body.wf-alliance .auth-chip,
body.wf-alliance .auth-chip-link,
body.wf-alliance .auth-chip-btn {
  border-color: var(--gold-border);
  background: rgba(14, 49, 89, 0.55);
  color: var(--text-primary);
}

body.wf-alliance .auth-chip-link:hover,
body.wf-alliance .auth-chip-btn:hover {
  color: var(--gold-highlight);
  border-color: var(--gold-border-strong);
  box-shadow: 0 0 12px rgba(200, 149, 62, 0.22);
}

body.wf-alliance .top-nav a:focus-visible,
body.wf-alliance .auth-chip-link:focus-visible,
body.wf-alliance .auth-chip-btn:focus-visible,
body.wf-alliance .wf-tile:focus-visible,
body.wf-alliance .wf-save:focus-visible,
body.wf-alliance .wf-clear:focus-visible,
body.wf-alliance .wf-faction button:focus-visible,
body.wf-alliance .wf-gender button:focus-visible,
body.wf-alliance .wf-role:focus-visible,
body.wf-alliance .wf-spec-tile:focus-visible,
body.wf-alliance .wf-name-input:focus-visible,
body.wf-alliance .wf-locked-card:focus-visible,
body.wf-alliance .wf-card.is-mine:focus-visible,
body.wf-alliance .wf-preview.is-changeable:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

body.wf-alliance .card,
body.wf-alliance .panel {
  background: var(--surface-base-bg);
  border: 1px solid var(--surface-base-border);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
}

body.wf-alliance .panel::before,
body.wf-alliance .card::before {
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  opacity: 0.55;
}

body.wf-alliance .card::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(232, 198, 117, 0.08);
  border-radius: 6px;
  pointer-events: none;
  box-shadow:
    inset 10px 0 0 -9px rgba(200, 149, 62, 0.28),
    inset -10px 0 0 -9px rgba(200, 149, 62, 0.28);
}

body.wf-alliance .surface-highlight {
  background: var(--surface-highlight-bg);
  border-color: var(--surface-highlight-border);
}

body.wf-alliance .section-title,
body.wf-alliance .card h2 {
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  background: linear-gradient(92deg, var(--gold-highlight) 0%, var(--gold-light) 42%, var(--parchment-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.65));
}

body.wf-alliance .subtle {
  color: var(--text-secondary);
}

body.wf-alliance .footer {
  border-top-color: var(--gold-border);
  color: var(--text-muted);
}

body.wf-alliance .footer-legal-links a {
  color: var(--gold-light);
}

body.wf-alliance .footer-legal-links a:hover {
  color: var(--gold-highlight);
}

body.wf-alliance .dots .dot {
  background: var(--gold);
}

body.wf-alliance .dots .dot.big {
  background: var(--gold-light);
}

body.wf-alliance .cookie-notice {
  border-color: var(--gold-border);
  background: rgba(7, 21, 37, 0.96);
  color: var(--text-secondary);
}

body.wf-alliance .cookie-notice a {
  color: var(--gold-light);
}

body.wf-alliance .cookie-notice-btn {
  border-color: var(--gold-border-strong);
  background: rgba(14, 49, 89, 0.7);
  color: var(--gold-highlight);
}

.wf-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.wf-lede {
  width: 100%;
  max-width: none;
  margin: 12px 0 0;
  color: var(--parchment);
  font-family: var(--font-ui);
  font-size: 16px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.65;
}

.wf-lede p {
  margin: 0;
}

.wf-lede p + p {
  margin-top: 1em;
}

.wf-countdown {
  margin-top: 18px;
}

.wf-countdown-units {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.wf-count-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 86px;
  padding: 10px 8px 12px;
  border-radius: var(--radius-control);
  border: 1px solid var(--gold-border);
  background: linear-gradient(180deg, rgba(14, 49, 89, 0.5), rgba(7, 21, 37, 0.78));
  box-shadow: inset 0 0 0 1px rgba(244, 222, 161, 0.05);
}

.wf-count-unit b {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.4vw, 40px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-highlight);
}

.wf-count-unit span {
  margin-top: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.wf-countdown.is-live .wf-countdown-units {
  grid-template-columns: 1fr;
}

.wf-countdown.is-live .wf-count-unit b {
  font-size: clamp(22px, 3vw, 32px);
}

.wf-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.wf-fact {
  padding: 10px 12px;
  border-radius: var(--radius-control);
  border: 1px solid var(--gold-border);
  background: linear-gradient(180deg, rgba(14, 49, 89, 0.45), rgba(7, 21, 37, 0.72));
}

.wf-fact b {
  display: block;
  font-size: 15px;
  color: var(--gold-highlight);
}

.wf-fact span {
  font-size: 12px;
  color: var(--text-muted);
}

.wf-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 960px) {
  .wf-creator-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
  }
}

.wf-step {
  margin: 18px 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--arcane);
}

.wf-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 10px;
}

.wf-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 8px 12px;
  border-radius: var(--radius-control);
  border: 1px solid var(--steel-border);
  background: linear-gradient(180deg, rgba(16, 27, 40, 0.95), rgba(7, 21, 37, 0.96));
  color: var(--text-primary);
  cursor: pointer;
  text-align: center;
  font-weight: 800;
  font-size: 13px;
}

.wf-tile img {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--steel-dark);
  box-shadow: inset 0 0 0 1px rgba(244, 222, 161, 0.08);
}

.wf-portrait--skyborne {
  filter: hue-rotate(165deg) saturate(1.4) brightness(1.12);
}

.wf-tile.is-active {
  border-color: var(--gold-border-strong);
  background: linear-gradient(180deg, rgba(122, 83, 28, 0.38), rgba(11, 19, 29, 0.96));
  color: var(--gold-highlight);
  box-shadow: 0 0 16px rgba(200, 149, 62, 0.18);
}

.wf-tile.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  filter: grayscale(0.8);
}

.wf-tile.is-new {
  box-shadow: inset 0 0 0 1px rgba(98, 185, 237, 0.35);
}

.wf-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wf-pill--new {
  color: var(--arcane);
  border: 1px solid rgba(98, 185, 237, 0.45);
  background: rgba(14, 49, 89, 0.55);
}

.wf-faction,
.wf-gender,
.wf-roles {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.wf-faction button,
.wf-gender button,
.wf-role,
.wf-save,
.wf-clear {
  padding: 8px 14px;
  border-radius: var(--radius-control);
  border: 1px solid var(--steel-border);
  background: rgba(14, 49, 89, 0.55);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.wf-faction button.is-active.alliance,
.wf-tile[data-faction="alliance"].is-active {
  border-color: rgba(98, 185, 237, 0.7);
  color: var(--arcane);
  background: linear-gradient(180deg, rgba(23, 79, 138, 0.55), rgba(7, 21, 37, 0.92));
}

.wf-faction button.is-active.horde {
  border-color: rgba(183, 74, 70, 0.75);
  color: #f0b4b1;
}

.wf-gender button.is-active {
  border-color: var(--gold-border-strong);
  background: linear-gradient(180deg, rgba(122, 83, 28, 0.42), rgba(11, 19, 29, 0.96));
  color: var(--gold-highlight);
}

.wf-roles {
  align-items: stretch;
}

.wf-role {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}

.wf-role img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  object-fit: cover;
}

.wf-role.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  filter: grayscale(0.8);
}

.wf-role-tank.is-active {
  border-color: rgba(98, 185, 237, 0.7);
  color: var(--arcane);
  background: linear-gradient(180deg, rgba(23, 79, 138, 0.55), rgba(7, 21, 37, 0.92));
}

.wf-role-dps.is-active {
  border-color: rgba(196, 90, 64, 0.8);
  color: #f0b4b1;
  background: linear-gradient(180deg, rgba(122, 42, 28, 0.5), rgba(11, 19, 29, 0.96));
}

.wf-role-heal.is-active {
  border-color: rgba(90, 176, 114, 0.75);
  color: #b7e3c2;
  background: linear-gradient(180deg, rgba(24, 92, 48, 0.5), rgba(7, 21, 37, 0.92));
}

.wf-spec-menu {
  margin-top: 8px;
  padding: 10px;
  width: max-content;
  max-width: 100%;
  border-radius: var(--radius-control);
  border: 1px solid rgba(196, 90, 64, 0.45);
  background: linear-gradient(180deg, rgba(72, 28, 22, 0.35), rgba(7, 21, 37, 0.92));
  box-shadow: inset 0 1px 0 rgba(244, 222, 161, 0.06);
}

.wf-spec-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f0b4b1;
}

.wf-specs {
  display: flex;
  flex-wrap: wrap;
  grid-template-columns: none;
}

.wf-spec-tile img {
  width: 48px;
  height: 48px;
}

.wf-spec-tile small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text-muted);
}

.wf-save {
  border-color: var(--gold-border-strong);
  background: linear-gradient(180deg, #c8953e 0%, #7a531c 100%);
  color: #1a1208;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(122, 83, 28, 0.28);
}

.wf-save:hover:not(:disabled) {
  background: linear-gradient(180deg, #e8c675 0%, #c8953e 100%);
}

.wf-save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.wf-clear:hover,
.wf-faction button:hover,
.wf-gender button:hover,
.wf-role:hover:not(:disabled):not(.is-disabled) {
  border-color: var(--gold-border);
}

.wf-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.wf-preview {
  position: sticky;
  top: 16px;
  text-align: center;
  border-color: var(--gold-border);
  background: linear-gradient(180deg, rgba(18, 58, 104, 0.28), rgba(11, 19, 29, 0.96));
}

body.wf-alliance .wf-preview {
  overflow: visible;
}

.wf-preview.is-changeable {
  cursor: pointer;
}

.wf-preview.is-changeable:hover {
  border-color: var(--gold-border-strong);
  box-shadow: 0 0 16px rgba(200, 149, 62, 0.22);
}

.wf-preview img:not(.wf-role-badge) {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
  margin: 0;
  box-shadow: 0 0 0 1px var(--gold-border);
}

.wf-preview .wf-portrait-wrap {
  margin: 10px auto 0;
}

.wf-preview .wf-portrait-frame {
  margin: 0;
}

.wf-preview .wf-portrait-frame img {
  margin: 0;
  box-shadow: none;
  border-radius: 4px;
}

.wf-preview-name {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.04em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.wf-main-line,
.wf-card-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 6px 0 0;
}

.wf-card-main {
  align-items: flex-start;
}

.wf-card .wf-card-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.wf-card .wf-main-kicker,
.wf-card .wf-main-name {
  display: block;
}

.wf-main-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.wf-main-name {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--gold-border-strong);
  border-radius: 6px;
  background: rgba(14, 49, 89, 0.55);
  color: var(--gold-highlight);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  box-shadow:
    0 0 0 1px rgba(244, 222, 161, 0.12),
    0 0 14px rgba(200, 149, 62, 0.18);
}

.wf-card-main .wf-main-name {
  font-size: 13px;
  padding: 3px 10px;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

.wf-preview-note {
  margin-top: 10px;
}

.wf-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 420px;
}

.wf-name-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.wf-name-field span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.wf-name-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-control);
  border: 1px solid var(--steel-border);
  background: rgba(6, 11, 17, 0.72);
  color: var(--text-primary);
}

.wf-name-input:focus {
  outline: none;
  border-color: var(--gold-border-strong);
  box-shadow: 0 0 0 1px rgba(200, 149, 62, 0.25);
}

.wf-status {
  min-height: 1.4em;
  margin: 10px 0 0;
  font-size: 13px;
}

.wf-status.error {
  color: var(--danger);
}

.wf-status.ok {
  color: var(--success);
}

.wf-squad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  padding: 4px 2px 8px;
}

.wf-roster-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 8px 0 14px;
}

.wf-roster-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.wf-roster-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--steel-border);
  border-radius: var(--radius-control);
  background: rgba(7, 14, 24, 0.55);
}

.wf-roster-group-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.wf-roster-slot {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  min-height: 52px;
  padding: 6px 8px;
  border: 1px dashed rgba(180, 160, 110, 0.35);
  border-radius: 6px;
  background: rgba(11, 19, 29, 0.55);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.wf-roster-slot.is-filled {
  border-style: solid;
  border-color: var(--steel-border);
  background: rgba(11, 19, 29, 0.82);
  cursor: grab;
}

.wf-roster-slot.is-filled:active {
  cursor: grabbing;
}

.wf-roster-slot.is-target {
  border-color: var(--gold-highlight);
  box-shadow: 0 0 0 1px rgba(200, 149, 62, 0.35);
}

.wf-roster-slot.is-drop-target,
.wf-roster-bench.is-drop-target {
  border-color: var(--gold-highlight);
  box-shadow: 0 0 0 2px rgba(200, 149, 62, 0.45);
  background: rgba(40, 28, 10, 0.72);
}

.wf-roster-chip.is-dragging,
.wf-roster-slot.is-dragging {
  opacity: 0.45;
}

.wf-roster-slot:focus-visible {
  outline: 2px solid var(--gold-highlight);
  outline-offset: 2px;
}

.wf-roster-slot img {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  object-fit: cover;
}

.wf-roster-slot-empty {
  color: rgba(200, 210, 230, 0.55);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.wf-roster-slot strong {
  display: block;
  font-size: 13px;
  line-height: 1.2;
}

.wf-roster-slot small {
  display: block;
  color: rgba(200, 210, 230, 0.78);
  font-size: 11px;
}

.wf-roster-bench-title {
  margin: 18px 0 8px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--gold-light);
}

.wf-roster-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  border: 1px solid var(--steel-border);
  border-radius: 999px;
  background: rgba(11, 19, 29, 0.82);
  color: inherit;
  font: inherit;
  cursor: grab;
}

.wf-roster-chip:active {
  cursor: grabbing;
}

.wf-roster-bench {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 48px;
  padding: 8px;
  border: 1px dashed transparent;
  border-radius: var(--radius-control);
}

.wf-roster-chip.is-selected {
  border-color: var(--gold-highlight);
  box-shadow: 0 0 0 1px rgba(200, 149, 62, 0.45);
}

.wf-roster-chip:focus-visible {
  outline: 2px solid var(--gold-highlight);
  outline-offset: 2px;
}

.wf-roster-chip img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.wf-roster-chip-empty {
  margin: 0;
  color: rgba(200, 210, 230, 0.6);
  font-size: 13px;
}

@media (max-width: 980px) {
  .wf-roster-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .wf-roster-board {
    grid-template-columns: 1fr;
  }
}

.wf-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: var(--radius-control);
  border: 1px solid var(--steel-border);
  background: rgba(11, 19, 29, 0.82);
  overflow: visible;
}

.wf-locked-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  margin: 12px 0 0;
  padding: 10px;
  border-radius: var(--radius-control);
  border: 1px solid var(--gold-border);
  background: rgba(11, 19, 29, 0.82);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.wf-card.is-mine,
.wf-locked-card {
  cursor: pointer;
}

.wf-card.is-mine {
  border-color: var(--gold-border);
}

.wf-card.is-mine:hover,
.wf-locked-card:hover {
  border-color: var(--gold-border-strong);
  box-shadow: 0 0 14px rgba(200, 149, 62, 0.24);
}

.wf-locked-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.wf-locked-copy strong {
  display: block;
}

.wf-locked-copy small {
  display: block;
  color: var(--text-muted);
}

.wf-change-hint {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-highlight);
}

.wf-locked-card img:not(.wf-role-badge) {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  object-fit: cover;
}

.wf-card img:not(.wf-role-badge) {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  object-fit: cover;
}

.wf-portrait-wrap {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: max-content;
  flex: 0 0 auto;
  overflow: visible;
}

.wf-role-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  z-index: 4;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  object-fit: cover;
  pointer-events: none;
  box-shadow:
    0 0 0 1px rgba(7, 12, 18, 0.92),
    0 2px 8px rgba(0, 0, 0, 0.45);
}

.wf-preview .wf-role-badge {
  top: -6px;
  right: -6px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.wf-portrait-wrap:has(.wf-portrait-frame) .wf-role-badge {
  top: 4px;
  right: 4px;
}

.wf-preview .wf-portrait-wrap:has(.wf-portrait-frame) .wf-role-badge {
  top: 5px;
  right: 5px;
}

.wf-role-badge-tank {
  box-shadow:
    0 0 0 1px rgba(98, 185, 237, 0.85),
    0 2px 8px rgba(0, 0, 0, 0.45);
}

.wf-role-badge-dps {
  box-shadow:
    0 0 0 1px rgba(196, 90, 64, 0.9),
    0 2px 8px rgba(0, 0, 0, 0.45);
}

.wf-role-badge-heal {
  box-shadow:
    0 0 0 1px rgba(90, 176, 114, 0.9),
    0 2px 8px rgba(0, 0, 0, 0.45);
}

.wf-portrait-frame {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: max-content;
  flex: 0 0 auto;
  padding: 8px;
  border-radius: 10px;
  isolation: isolate;
  background: #070c12;
}

.wf-portrait-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

.wf-portrait-frame img {
  position: relative;
  z-index: 1;
  display: block;
}

.wf-portrait-frame.is-tier-1 {
  color: #8a939c;
  box-shadow: 0 0 0 1px rgba(138, 147, 156, 0.28);
}

.wf-portrait-frame.is-tier-1::before {
  background-image: url("/images/wow-forever/frame-initiate.svg");
}

.wf-portrait-frame.is-tier-2 {
  color: #4fa66a;
  box-shadow: 0 0 10px rgba(79, 166, 106, 0.28);
}

.wf-portrait-frame.is-tier-2::before {
  background-image: url("/images/wow-forever/frame-proven.svg");
}

.wf-portrait-frame.is-tier-3 {
  color: #62b9ed;
  box-shadow: 0 0 12px rgba(98, 185, 237, 0.32);
}

.wf-portrait-frame.is-tier-3::before {
  background-image: url("/images/wow-forever/frame-veteran.svg");
}

.wf-portrait-frame.is-tier-4 {
  color: #c084fc;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.38);
}

.wf-portrait-frame.is-tier-4::before {
  background-image: url("/images/wow-forever/frame-champion.svg");
}

.wf-portrait-frame.is-tier-5 {
  color: #f4dea1;
  padding: 9px;
  box-shadow:
    0 0 16px rgba(200, 149, 62, 0.55),
    0 0 28px rgba(232, 198, 117, 0.28);
}

.wf-portrait-frame.is-tier-5::before {
  background-image: url("/images/wow-forever/frame-legend.svg");
}

.wf-frame-legend {
  margin: 4px 0 0;
  font-size: 12px;
}

.wf-frame-tag {
  margin: 8px 0 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-highlight);
}

.wf-frame-chip {
  display: inline-block;
  margin-top: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 55%, transparent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}

.wf-frame-chip.is-tier-1 { color: #8a939c; }
.wf-frame-chip.is-tier-2 { color: #4fa66a; }
.wf-frame-chip.is-tier-3 { color: #62b9ed; }
.wf-frame-chip.is-tier-4 { color: #c084fc; }
.wf-frame-chip.is-tier-5 { color: #f4dea1; }

.wf-card strong {
  display: block;
}

.wf-card > div {
  min-width: 0;
}

.wf-card small {
  display: block;
  color: var(--text-muted);
}

.wf-table-wrap {
  overflow-x: auto;
  margin-top: 12px;
  border-radius: var(--radius-control);
  border: 1px solid rgba(216, 196, 154, 0.22);
  background: linear-gradient(180deg, rgba(216, 196, 154, 0.08), rgba(11, 19, 29, 0.86));
}

.wf-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.wf-matrix th,
.wf-matrix td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(72, 81, 91, 0.45);
  text-align: center;
}

.wf-matrix thead th {
  background: rgba(14, 49, 89, 0.45);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.wf-matrix th:first-child,
.wf-matrix td:first-child {
  text-align: left;
  white-space: nowrap;
}

.wf-matrix .yes {
  color: var(--gold-light);
  font-weight: 800;
}

.wf-matrix .new {
  color: var(--arcane);
  font-weight: 800;
}

.wf-sources a {
  color: var(--gold-light);
}

.wf-sources a:hover {
  color: var(--gold-highlight);
}

.wf-sources li {
  margin: 6px 0;
  color: var(--text-secondary);
}

.wf-class-warrior { color: #c79c6e; }
.wf-class-paladin { color: #f58cba; }
.wf-class-hunter { color: #abd473; }
.wf-class-rogue { color: #fff569; }
.wf-class-priest { color: #f5f5f5; }
.wf-class-shaman { color: #0070dd; }
.wf-class-mage { color: #69ccf0; }
.wf-class-warlock { color: #9482c9; }
.wf-class-druid { color: #ff7d0a; }

.wf-race-human { color: #e8d5a3; }
.wf-race-dwarf { color: #c69b6d; }
.wf-race-nightelf { color: #5ab0a0; }
.wf-race-gnome { color: #c9a0dc; }
.wf-race-skyborne { color: #62b9ed; }
.wf-race-orc { color: #e06a3a; }
.wf-race-undead { color: #8fb59a; }
.wf-race-tauren { color: #d08a4a; }
.wf-race-troll { color: #4caf7a; }

.wf-faction-alliance { color: #69ccf0; }
.wf-faction-horde { color: #e05c4a; }

@media (max-width: 640px) {
  .wf-name-row {
    grid-template-columns: 1fr;
  }

  body.wf-alliance .wf-command-bar {
    justify-content: center;
    text-align: center;
  }

  body.wf-alliance .auth-top-right {
    justify-content: center;
    width: 100%;
  }
}

/* Interactive tavern hero */
body.wf-alliance .hero-brand.wf-tavern {
  position: relative;
  display: block;
  overflow: visible;
  min-height: 220px;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-panel);
  box-shadow:
    0 0 0 1px rgba(7, 21, 37, 0.7),
    0 0 32px rgba(18, 58, 104, 0.4),
    0 18px 42px rgba(0, 0, 0, 0.52);
  background: #120c08;
}

.wf-tavern-scroll {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dark) rgba(7, 21, 37, 0.8);
}

@media (max-width: 820px) {
  .wf-tavern-scroll {
    overflow-x: auto;
    overflow-y: hidden;
  }
}

.wf-tavern-inner {
  position: relative;
  height: 100%;
  min-width: max(100%, 820px);
  aspect-ratio: 2 / 1;
}

.wf-tavern-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
  pointer-events: none;
  user-select: none;
}

.wf-tavern-fire {
  position: absolute;
  left: 12%;
  top: 42%;
  width: 22%;
  height: 28%;
  pointer-events: none;
  background: radial-gradient(ellipse at 45% 70%, rgba(255, 140, 40, 0.32), rgba(255, 80, 0, 0.08) 46%, transparent 72%);
  mix-blend-mode: screen;
  animation: wf-tavern-fire 2.6s ease-in-out infinite;
}

@keyframes wf-tavern-fire {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

.wf-tavern-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.wf-tavern-light,
.wf-tavern-window,
.wf-tavern-motes,
.wf-tavern-foam {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

/* Midday — brighter daylight through shutters */
.wf-tavern[data-time="midday"] .wf-tavern-bg {
  filter: brightness(1.18) saturate(1.08) contrast(1.02);
}

.wf-tavern[data-time="midday"] .wf-tavern-fire {
  opacity: 0.35;
  filter: brightness(0.85);
}

.wf-tavern[data-time="midday"] .wf-tavern-light {
  opacity: 1;
  background:
    radial-gradient(ellipse 55% 40% at 50% 18%, rgba(255, 236, 190, 0.34), transparent 70%),
    linear-gradient(180deg, rgba(255, 245, 220, 0.18), transparent 42%);
  mix-blend-mode: soft-light;
}

.wf-tavern[data-time="midday"] .wf-tavern-window {
  opacity: 1;
  background:
    linear-gradient(105deg, transparent 18%, rgba(255, 240, 200, 0.16) 32%, transparent 48%),
    linear-gradient(250deg, transparent 22%, rgba(255, 250, 230, 0.12) 40%, transparent 58%);
  mix-blend-mode: screen;
}

.wf-tavern[data-time="midday"] .wf-tavern-motes {
  opacity: 0.55;
  background-image:
    radial-gradient(circle, rgba(255, 248, 220, 0.7) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255, 236, 180, 0.45) 0 1px, transparent 2px);
  background-size: 140px 90px, 210px 130px;
  background-position: 10% 20%, 60% 40%;
  animation: wf-tavern-motes 18s linear infinite;
  mix-blend-mode: screen;
}

/* Morning — cool soft open */
.wf-tavern[data-time="morning"] .wf-tavern-bg {
  filter: brightness(1.06) saturate(0.95) hue-rotate(-4deg);
}

.wf-tavern[data-time="morning"] .wf-tavern-fire {
  opacity: 0.5;
}

.wf-tavern[data-time="morning"] .wf-tavern-light {
  opacity: 1;
  background:
    radial-gradient(ellipse 50% 36% at 72% 12%, rgba(190, 220, 255, 0.22), transparent 68%),
    linear-gradient(180deg, rgba(210, 230, 255, 0.14), transparent 38%);
  mix-blend-mode: soft-light;
}

.wf-tavern[data-time="morning"] .wf-tavern-window {
  opacity: 1;
  background: linear-gradient(120deg, transparent 30%, rgba(200, 230, 255, 0.14) 48%, transparent 62%);
  mix-blend-mode: screen;
}

/* Evening — warm beer hall */
.wf-tavern[data-time="evening"] .wf-tavern-bg {
  filter: brightness(1.02) saturate(1.12) sepia(0.12);
}

.wf-tavern[data-time="evening"] .wf-tavern-fire {
  opacity: 1;
  width: 26%;
  height: 32%;
  background: radial-gradient(ellipse at 45% 70%, rgba(255, 150, 40, 0.42), rgba(255, 90, 10, 0.12) 46%, transparent 72%);
}

.wf-tavern[data-time="evening"] .wf-tavern-light {
  opacity: 1;
  background:
    radial-gradient(ellipse 70% 55% at 50% 78%, rgba(180, 90, 20, 0.28), transparent 72%),
    radial-gradient(ellipse 40% 30% at 18% 55%, rgba(255, 170, 60, 0.16), transparent 70%),
    linear-gradient(180deg, transparent 45%, rgba(80, 30, 8, 0.22));
  mix-blend-mode: soft-light;
}

.wf-tavern[data-time="evening"] .wf-tavern-foam {
  opacity: 0.85;
  background-image:
    radial-gradient(circle, rgba(255, 220, 140, 0.55) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(255, 200, 100, 0.35) 0 1.5px, transparent 3px),
    radial-gradient(circle, rgba(255, 240, 200, 0.4) 0 1px, transparent 2px);
  background-size: 90px 110px, 140px 160px, 70px 90px;
  background-position: 12% 80%, 55% 70%, 78% 85%;
  animation: wf-tavern-foam 9s ease-in-out infinite;
  mix-blend-mode: screen;
  mask-image: linear-gradient(180deg, transparent 35%, #000 62%, #000 92%, transparent);
}

.wf-tavern[data-time="evening"] .wf-tavern-wordmark-sub {
  color: #ffd9a0;
}

/* Night — empty & dark */
.wf-tavern[data-time="night"] .wf-tavern-bg {
  filter: brightness(0.48) saturate(0.55) contrast(1.08) hue-rotate(-12deg);
}

.wf-tavern[data-time="night"] .wf-tavern-fire {
  opacity: 0.55;
  filter: brightness(0.75) saturate(0.8);
  animation-duration: 4.2s;
}

.wf-tavern[data-time="night"] .wf-tavern-light {
  opacity: 1;
  background:
    radial-gradient(ellipse 35% 28% at 14% 48%, rgba(255, 120, 40, 0.18), transparent 70%),
    radial-gradient(ellipse 80% 70% at 50% 40%, transparent 30%, rgba(2, 6, 18, 0.72) 100%),
    linear-gradient(180deg, rgba(4, 10, 28, 0.55), rgba(2, 4, 14, 0.35) 40%, rgba(0, 0, 0, 0.55));
  mix-blend-mode: multiply;
}

.wf-tavern[data-time="night"] .wf-tavern-window {
  opacity: 0.7;
  background:
    radial-gradient(ellipse 18% 14% at 78% 18%, rgba(140, 180, 255, 0.22), transparent 70%),
    radial-gradient(circle at 22% 16%, rgba(180, 210, 255, 0.12) 0 1px, transparent 2px),
    radial-gradient(circle at 68% 12%, rgba(200, 220, 255, 0.1) 0 1px, transparent 2px),
    radial-gradient(circle at 84% 22%, rgba(160, 190, 255, 0.14) 0 1px, transparent 2px);
  mix-blend-mode: screen;
}

.wf-tavern[data-time="night"] .wf-tavern-fig {
  filter: brightness(0.72) saturate(0.85);
}

.wf-tavern[data-time="night"] .wf-tavern-name {
  opacity: 0.72;
  background: rgba(4, 10, 22, 0.72);
}

.wf-tavern[data-time="night"] .wf-tavern-wordmark-title {
  color: #9eb6d4;
  text-shadow:
    0 1px 0 #0a1424,
    0 2px 10px rgba(0, 0, 0, 0.9),
    0 0 16px rgba(90, 130, 200, 0.28);
}

.wf-tavern[data-time="night"] .wf-tavern-wordmark-sub {
  color: #7f97b8;
}

.wf-tavern[data-time="night"] .wf-tavern-empty {
  background: rgba(4, 10, 22, 0.78);
  color: #a8bdd8;
}

@keyframes wf-tavern-motes {
  from {
    background-position: 10% 20%, 60% 40%;
  }
  to {
    background-position: 18% 8%, 52% 28%;
  }
}

@keyframes wf-tavern-foam {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.75;
  }
  50% {
    transform: translateY(-10px);
    opacity: 0.95;
  }
}

.wf-tavern-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.wf-tavern-wordmark {
  position: absolute;
  left: 50%;
  top: 5%;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  text-align: center;
}

.wf-tavern-wordmark-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 3.1vw, 34px);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-highlight);
  text-shadow:
    0 1px 0 #3a2408,
    0 2px 10px rgba(0, 0, 0, 0.85),
    0 0 18px rgba(200, 149, 62, 0.35);
}

.wf-tavern-wordmark-sub {
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: clamp(9px, 1.2vw, 13px);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #d8ecff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

.wf-tavern-empty {
  position: absolute;
  left: 50%;
  bottom: 8%;
  z-index: 4;
  margin: 0;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(7, 21, 37, 0.62);
  color: var(--gold-light);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 4px #000;
  pointer-events: none;
}

.wf-tavern-empty[hidden] {
  display: none;
}

.wf-tavern-fig {
  position: absolute;
  width: max-content;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateX(-50%);
  cursor: pointer;
  appearance: none;
}

.wf-tavern-fig:focus-visible {
  outline: 2px solid var(--gold-highlight);
  outline-offset: 3px;
}

.wf-tavern-fig-idle {
  display: block;
  position: relative;
  height: 100%;
  width: auto;
  animation: wf-tavern-idle 3.4s ease-in-out infinite;
}

@keyframes wf-tavern-idle {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.wf-tavern-sprite {
  position: relative;
  display: block;
  height: 100%;
  aspect-ratio: 3 / 4;
  width: auto;
  margin-inline: auto;
  overflow: visible;
}

.wf-tavern-body,
.wf-tavern-gear {
  display: block;
  user-select: none;
  pointer-events: none;
}

/*
 * Worn race×class×spec sprites carry their own look.
 * Keep only a soft ground shadow — no heavy class color wash.
 */
.wf-tavern-fig:not(.is-form) .wf-tavern-gear {
  display: none;
}

.wf-tavern-body {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  z-index: 1;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.62));
}

.wf-tavern-fig.is-form .wf-tavern-gear {
  display: none;
}

.wf-tavern-fig.is-mine .wf-tavern-sprite::after {
  content: "";
  position: absolute;
  inset: auto 18% -6% 18%;
  height: 10%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(244, 222, 161, 0.55), transparent 70%);
  pointer-events: none;
  z-index: 3;
}

.wf-tavern-fig.is-mine .wf-tavern-name {
  color: var(--gold-highlight);
}

.wf-tavern-class-tag {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(230, 236, 248, 0.88);
  text-shadow: 0 1px 3px #000;
  white-space: nowrap;
}

.wf-tavern-fig.is-form .wf-tavern-body {
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 10px rgba(255, 140, 40, 0.28));
}
.wf-tavern-fig[data-spec="feral-bear"].is-form .wf-tavern-body {
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 12px rgba(180, 120, 40, 0.35));
}
.wf-tavern-fig[data-spec="feral-cat"].is-form .wf-tavern-body {
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 12px rgba(100, 180, 255, 0.3));
}
.wf-tavern-name {
  position: absolute;
  left: 50%;
  bottom: 100%;
  z-index: 2;
  margin: 0 0 2px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #7ec8ff;
  font-family: Tahoma, "Nunito", sans-serif;
  font-size: clamp(9px, 1.05vw, 12px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
  white-space: nowrap;
  text-align: center;
  text-shadow:
    0 0 3px #000,
    1px 1px 0 #000,
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000;
  pointer-events: none;
}

.wf-tavern[data-crowd="busy"] .wf-tavern-name {
  font-size: clamp(8px, 0.9vw, 10px);
  max-width: 7.5em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wf-tavern[data-crowd="packed"] .wf-tavern-name {
  opacity: 0;
  font-size: 9px;
}

.wf-tavern[data-crowd="packed"] .wf-tavern-fig:hover .wf-tavern-name,
.wf-tavern[data-crowd="packed"] .wf-tavern-fig:focus-visible .wf-tavern-name,
.wf-tavern[data-crowd="packed"] .wf-tavern-fig.is-mine .wf-tavern-name {
  opacity: 1;
}

.wf-tavern-tip {
  position: absolute;
  z-index: 8;
  min-width: 200px;
  max-width: min(280px, 86%);
  padding: 10px 12px;
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(16, 27, 40, 0.96), rgba(7, 21, 37, 0.96));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  color: var(--text-primary);
  font-size: 13px;
}

.wf-tavern-tip[hidden] {
  display: none;
}

.wf-tavern-tip strong {
  display: block;
  font-size: 14px;
}

.wf-tavern-tip small {
  display: block;
  margin-top: 4px;
  color: var(--text-secondary);
}

.wf-tavern-tip-change {
  display: inline-block;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold-light);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
}

@media (max-width: 720px) {
  body.wf-alliance .hero-brand.wf-tavern {
    min-height: 200px;
  }

  .wf-tavern-name {
    font-size: 10px;
  }

  .wf-tavern-fig {
    max-width: 28%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wf-tavern-fig-idle,
  .wf-tavern-fire,
  .wf-tavern-motes,
  .wf-tavern-foam {
    animation: none;
  }
}
