/* Approved Armory landscape, preserving the established site components. */
body {
  --armory-background-opacity: .68;
  position: relative;
  isolation: isolate;
}

body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 860px;
  z-index: -1;
  pointer-events: none;
  opacity: var(--armory-background-opacity);
  background-image:
    linear-gradient(180deg,
      #0c111810 0%, #0c111800 22%, #0c111825 42%,
      #0c111880 65%, #0c1118d4 84%, #0c1118f5 95%, #0c1118 100%),
    linear-gradient(90deg, #0c11186b 0%, #0c11182e 35%, transparent 70%),
    linear-gradient(#76829212, #76829212),
    url("/frostwolf-armory/assets/armory-landscape-v18.webp");
  background-size: 100% 100%, 100% 100%, 100% 100%, cover;
  background-position: center, center, center, 80% top;
  background-repeat: no-repeat;
}

.armory-fire-layer {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 860px;
  z-index: -1;
  opacity: var(--armory-background-opacity);
  pointer-events: none;
  display: block;
  contain: strict;
}

/* Show the canvas only after its complete first frame; keep the photo fallback. */
body.armory-fire-active::before {
  opacity: 0;
}

/* Retain the existing countdown and its markup, remove the old image edge. */
.armory-landscape {
  height: 208px;
  background: transparent;
  border-bottom: 0;
}

/* Remove the former header divider from the now continuous landscape. */
.site-shell > .site-header.guild-site-header {
  border-bottom: 0;
}

/* Keep the original section controls, using the main navigation's translucency. */
.armory-toolbar > .armory-tabs {
  background: linear-gradient(135deg, #15212bbd, #101821b0);
}

/* Cool blue rather than the previous teal wash; retain the purple border pulse. */
.site-shell .companion-card {
  background:
    radial-gradient(ellipse at 6% 0%, #285fbf22, transparent 62%),
    linear-gradient(110deg, #1a3357 0%, #14253e 55%, #111b2d 100%);
  box-shadow: 0 0 0 1px #789fe20d, 0 8px 28px #050d1e52;
}

.site-shell .companion-card::before {
  background: linear-gradient(90deg, transparent, #8cb8f580, transparent);
}

.site-shell .companion-kicker {
  color: #a4c1eb;
}

/* Keep the original podium order and forms; let a little landscape show through. */
.site-shell .pvp-leader {
  background: linear-gradient(145deg, #1c2f3fda, #121d2ae6);
}

.site-shell .pvp-leader-1 {
  border-color: #b79a61;
  background:
    radial-gradient(ellipse at 50% 0%, #d5b6772b, transparent 70%),
    linear-gradient(145deg, #20313bd9, #141f2ae3);
  box-shadow: 0 0 28px #d5b67716, inset 0 1px 0 #ead3a829;
}

/* Apply the same closer section spacing to characters, professions, and PvP. */
.site-shell main > .character-section {
  margin-top: 19px;
}

/* The old banner's separate shadow must not sit on the new page background. */
.armory-landscape::before,
.armory-landscape::after {
  content: none;
  display: none;
}

/* Keep the original navigation spacing as the timer moves into the section. */
.armory-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 9px;
}

.armory-toolbar > .armory-tabs {
  margin: 0;
}

.section-subline > .release-countdown {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  max-width: 100%;
  padding: 10px 15px;
  margin: 0 0 0 auto;
  border: 1px solid #d5b67733;
  border-radius: 5px;
  background: #101b27d9;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.section-subline .release-countdown-label {
  max-width: 90px;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .07em;
  color: #cbb88f;
}

.section-subline .release-countdown-values {
  gap: 12px;
}

.section-subline .countdown-unit {
  gap: 5px;
  min-width: 28px;
}

.section-subline .countdown-unit strong {
  font-size: 22px;
  color: #e4cea0;
}

.section-subline .countdown-unit small {
  font-size: 11px;
  letter-spacing: .04em;
}

@media (max-width: 700px) {
  body::before {
    height: auto;
    aspect-ratio: 941 / 1672;
    background-image:
      linear-gradient(180deg,
        #0c111810 0%, #0c111800 22%, #0c111825 42%,
        #0c111880 65%, #0c1118d4 84%, #0c1118f5 95%, #0c1118 100%),
      linear-gradient(90deg, #0c11186b 0%, #0c11182e 35%, transparent 70%),
      linear-gradient(#76829212, #76829212),
      url("/frostwolf-armory/assets/armory-mobile-extended-v20.webp");
    background-position: center, center, center, center top;
  }

  .armory-fire-layer {
    height: auto;
    aspect-ratio: 941 / 1672;
  }

  .armory-landscape {
    /* Keep the complete central scene above the full-width mobile controls. */
    height: clamp(164px, calc(95vw - 170px), 500px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .armory-fire-layer {
    display: none;
  }
}

@media (max-width: 800px) {
  .site-shell main > .character-section {
    margin-top: 15px;
  }
}

@media (max-width: 700px) {
  .armory-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .section-subline > .release-countdown {
    justify-content: space-between;
    width: auto;
    padding: 11px 14px;
    gap: 10px;
  }

  .section-subline .release-countdown-label {
    max-width: 100px;
  }

  .section-subline .release-countdown-values {
    gap: 13px;
  }
}

@media (max-width: 360px) {
  .section-subline > .release-countdown {
    padding: 10px 12px;
  }

  .section-subline .release-countdown-values {
    gap: 9px;
  }
}

/* Same existing EN/DE control, directly beneath the profession recipe finder. */
#professions > .recipe-finder {
  margin-bottom: 0;
}

#professions > .profession-language-controls:not(:empty) {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 8px 0 18px;
}

#professions > .profession-language-controls > .list-controls {
  margin: 0 0 0 auto;
}

/* Slightly translucent surfaces; text, icons and controls retain full opacity. */
.site-shell #characters > .filters .search-field,
.site-shell #characters > .filters > .select-field {
  background: #1c2936d1;
}
.site-shell #characters > .filters > .select-field > span { background: transparent; }
.site-shell #table-shell { background: #1a2632d6; }
.site-shell #table-shell > table,
.site-shell #table-shell tbody { background: transparent; }
.site-shell #table-shell thead { background: #2a394b80; }
.site-shell #table-shell tbody tr { background: transparent; }
.site-shell #table-shell tbody tr:hover,
.site-shell #table-shell tbody tr:focus-within { background: #759bb21a; }
.site-shell #table-shell tbody tr.character-without-addon {
  background: repeating-linear-gradient(135deg, #aeb9c309 0 1px, transparent 1px 12px), #070b11a6;
}
.site-shell #table-shell tbody tr.character-without-addon:hover,
.site-shell #table-shell tbody tr.character-without-addon:focus-within {
  background: repeating-linear-gradient(135deg, #aeb9c30b 0 1px, transparent 1px 12px), #0a101999;
}
.site-shell #table-shell tbody tr.character-without-addon > td:not(.companion-cell):not(.character-cell) > *,
.site-shell #table-shell tbody tr.character-without-addon .character-button > .character-avatar,
.site-shell #table-shell tbody tr.character-without-addon .character-text > small {
  opacity: .6;
  filter: saturate(.25);
}
.site-shell #table-shell tbody tr.character-without-addon > .rank-cell { color: #697580; }
.site-shell #table-shell tbody tr.character-without-addon > td:not(.companion-cell):not(.character-cell) > :focus-visible { opacity: .85; }
.site-shell #characters > .status-panel { background: #1a2632d6; }

/* Match the quiet translucency of search and filters, wherever language sits. */
.site-shell .list-controls > .game-language,
.site-shell #show-statistics { background: #1c2936d1; }
