@font-face {
  font-family: "Cormorant Unicase";
  font-weight: 400;
  src: url("assets/fonts/CormorantUnicase-Regular.woff2");
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Unicase";
  font-weight: 600;
  src: url("assets/fonts/CormorantUnicase-SemiBold.woff2");
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Unicase";
  font-weight: 700;
  src: url("assets/fonts/CormorantUnicase-Bold.woff2");
  font-display: swap;
}
@font-face {
  font-family: "Tilda Sans";
  font-weight: 400;
  src: url("assets/fonts/TildaSans-Regular.woff2");
  font-display: swap;
}
@font-face {
  font-family: "Tilda Sans";
  font-weight: 600;
  src: url("assets/fonts/TildaSans-Semibold.woff2");
  font-display: swap;
}
@font-face {
  font-family: "Tilda Sans";
  font-weight: 700;
  src: url("assets/fonts/TildaSans-Bold.woff2");
  font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  font-weight: 400;
  src: url("assets/fonts/AlegreyaSans-Regular.woff2");
  font-display: swap;
}
@font-face {
  font-family: Morpheus;
  src: url("assets/fonts/Morpheus.woff2");
  font-display: swap;
}
:root {
  --font-head: "Beaufort for LOL", "Cormorant Unicase", serif;
  --font-body: "Tilda Sans", "Alegreya Sans", system-ui, sans-serif;
  --font-accent: "Morpheus", "Cormorant Unicase", serif;
  --bg: #0b1015;
  --text: #dce4e9;
  --muted: #a7b4be;
  --blue: #a6c7df;
  --line: #7a99ab40;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}
body {
  margin: 0;
  background: var(--bg) url("assets/stone.webp") repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
a,
button,
summary {
  touch-action: manipulation;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #b0d5f0;
  outline-offset: 5px;
}
img {
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
}
p {
  margin-bottom: 1.1em;
}
header {
  height: 96px;
  padding: 0 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0b1117 url("assets/stone.webp");
  position: relative;
  z-index: 5;
}
header:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 10px;
  background: url("assets/divider.png") center/100% 100% no-repeat;
  filter: grayscale(1);
  opacity: 0.65;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-head);
  font-size: 21px;
  letter-spacing: 0.05em;
  line-height: 1.3;
  color: #e4edf2;
  font-weight: 600;
}
.brand img {
  width: 48px;
  height: 65px;
  object-fit: contain;
}
.brand i {
  font-style: normal;
  color: #6f8799;
}
.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.19em;
  color: #98aab7;
  margin-top: 4px;
}
nav {
  display: flex;
  gap: 34px;
}
nav a,
.project {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 600;
  color: #b8c6ce;
}
nav a {
  padding: 34px 0;
  position: relative;
  transition:
    color 0.2s,
    text-shadow 0.2s;
}
nav a:hover,
nav a[aria-current] {
  color: #edf7ff;
  text-shadow: 0 0 12px #a0d9ff60;
}
nav a[aria-current]:after {
  content: "◆";
  position: absolute;
  bottom: 12px;
  left: calc(50% - 4px);
  font-size: 8px;
  color: #89b4d3;
}
.project {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}
.project span {
  margin-left: 12px;
}
.menu {
  display: none;
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 36px;
  padding-right: 36px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: #91adc2;
  text-transform: uppercase;
}
.hero {
  min-height: 820px;
  height: calc(100svh - 96px);
  max-height: 1080px;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  text-align: center;
  background: #10191d url("assets/city.jpg") center 43% / cover;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #07111a75, #070d14a6 65%, #0b1015);
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("assets/stone.webp");
  opacity: 0.09;
  pointer-events: none;
}
.hero-inner {
  padding: 45px 24px 64px;
}
.crest {
  height: 232px;
  width: 230px;
  object-fit: contain;
  margin: 14px 0 8px;
  filter: drop-shadow(0 6px 14px #000a);
}
.hero h1 {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: clamp(70px, 7.8vw, 112px);
  letter-spacing: 0.025em;
  line-height: 1.1;
  color: #c6dfef;
  text-shadow: 0 4px 8px #0009;
  margin: 0 0 12px;
}
.ornament {
  display: block;
  width: min(620px, 90%);
  height: 13px;
  object-fit: fill;
  margin: 0 auto 22px;
  filter: grayscale(1);
  opacity: 0.85;
}
.hero h2 {
  font-family: var(--font-head);
  font-size: 31px;
  margin-bottom: 15px;
  font-weight: 500;
}
.hero p {
  color: #c2cdd4;
  font-size: 18px;
  line-height: 1.65;
  text-shadow: 0 2px 3px #000;
}
.actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 28px 0;
}
.button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 57px;
  min-width: 230px;
  padding: 15px 29px;
  border: 0;
  background: transparent;
  color: #e4eff6;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 1px 3px #071b2c;
  transition: transform 0.15s;
}
.button:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("assets/button-frame.png") center/100% 100% no-repeat;
  filter: hue-rotate(178deg) saturate(0.48) brightness(1.18)
    drop-shadow(0 3px 4px #000a);
  transition: filter 0.2s;
}
.button:hover:before {
  filter: hue-rotate(178deg) saturate(0.55) brightness(1.4)
    drop-shadow(0 3px 9px #18354ca8);
}
.button:active {
  transform: translateY(1px) scale(0.99);
}
.button span {
  font-size: 20px;
  line-height: 1;
}
.hero-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 17px;
  color: #8fa6b8;
  font-size: 11px;
  letter-spacing: 0.12em;
}
.hero-meta b {
  font-size: 8px;
}
.down {
  position: absolute;
  bottom: 12px;
  font-size: 30px;
  color: #94b3c9;
}
.intro {
  text-align: center;
  padding-top: 76px;
  padding-bottom: 26px;
}
.intro h2 {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.25;
  color: #dae7ef;
  margin: 22px 0;
}
.intro p {
  max-width: 790px;
  margin: 0 auto;
  color: #aebcc6;
  font-size: 18px;
  line-height: 1.8;
}
.rule {
  display: block;
  width: 100%;
  height: 10px;
  margin: 43px auto 0;
  filter: grayscale(1);
  opacity: 0.75;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  padding-top: 28px;
}
.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 340px;
  padding: 32px 34px;
  border: 1px solid #58708340;
  background: #101820 url("assets/stone.webp");
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    background-color 0.3s,
    border-color 0.3s,
    transform 0.3s;
}
.card:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #15334816;
  transition: background 0.3s;
}
.card:hover {
  border-color: #7899b880;
  transform: translateY(-3px);
}
.card:hover:before {
  background: #20425c25;
}
.card-art {
  position: absolute;
  width: 210px;
  height: 225px;
  object-fit: contain;
  right: -12px;
  top: 20px;
  z-index: -1;
  opacity: 0.16;
  transform: rotate(-12deg);
  filter: grayscale(0.6);
  transition:
    opacity 0.4s,
    transform 0.4s,
    filter 0.4s;
}
.card:hover .card-art {
  opacity: 0.36;
  transform: rotate(0);
  filter: grayscale(0);
}
.story-card .card-art,
.map-card .card-art {
  width: 250px;
  height: 250px;
}
.number {
  font-size: 12px;
  color: #92a8b9;
  letter-spacing: 0.13em;
}
.card h3 {
  font-family: var(--font-accent);
  font-size: 36px;
  font-weight: 400;
  color: #dbe9f3;
  margin: 26px 0 14px;
}
.card p {
  font-size: 18px;
  color: #aabac6;
  line-height: 1.65;
  margin-bottom: 22px;
}
.card-link {
  min-width: 205px;
  min-height: 48px;
  padding: 13px 24px;
  font-size: 12px;
  justify-content: space-between;
}
.card-link b {
  font-size: 18px;
  line-height: 1;
  font-weight: 400;
}
.closing {
  text-align: center;
  padding-top: 95px;
  padding-bottom: 95px;
}
.closing h2 {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: 48px;
  margin: 22px 0 14px;
}
.closing p {
  color: #a8bbc8;
}
.text-link {
  font-size: 17px;
  color: #a6c9e0;
  border-bottom: 1px solid #6f93ac66;
  padding-bottom: 3px;
  transition: color 0.2s;
}
.text-link:hover {
  color: #e0f1ff;
}
.text-link span {
  margin-left: 18px;
}
footer {
  position: relative;
  background: #080d12 url("assets/stone.webp");
  padding: 36px 0 23px;
}
footer:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 9px;
  background: url("assets/divider.png") center/100% 100%;
  filter: grayscale(1);
  opacity: 0.45;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-top > div {
  display: flex;
  gap: 30px;
  font-size: 15px;
  color: #a5b6c3;
}
.top {
  font-size: 24px;
  color: #91b5ce;
  padding: 5px 15px;
}
.footer-bottom {
  font-size: 12px;
  color: #718696;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid #829ebd20;
}
.footer-bottom details {
  font-size: 13px;
  border: 0;
  padding: 0;
  margin-top: 10px;
  background: none;
  max-width: 900px;
}
.footer-bottom a {
  text-decoration: underline;
}
.inner {
  min-height: 80vh;
  padding: 45px 0 92px;
  position: relative;
}
.inner h1 {
  font-family: var(--font-head);
  font-size: clamp(40px, 4.7vw, 62px);
  color: #d5e6f2;
  margin: 20px 0 16px;
}
.inner > .wrap {
  position: relative;
}
.back {
  display: inline-block;
  font-size: 14px;
  color: #92aabd;
  letter-spacing: 0.06em;
  margin-bottom: 42px;
}
.lead {
  color: #9fb5c6;
  font-size: 21px;
  max-width: 880px;
  margin-bottom: 45px;
}
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr);
  gap: 70px;
}
.article-grid article h2 {
  font-size: 33px;
  font-weight: 600;
  color: #c5dbe9;
  margin: 36px 0 17px;
}
.article-grid article h2:first-child {
  margin-top: 0;
}
.article-grid article p {
  color: #b5c2ca;
  font-size: 19px;
  line-height: 1.8;
}
blockquote {
  margin: 35px 0 10px;
  padding: 20px 24px;
  border-left: 2px solid #7496ac;
  color: #b6d1e3;
  font-family: var(--font-head);
  font-size: 25px;
  line-height: 1.5;
}
aside {
  align-self: start;
  text-align: center;
  background: #17243322;
  padding-top: 15px;
  border-top: 1px solid #829ebd40;
  border-bottom: 1px solid #829ebd40;
}
.aside-emblem {
  display: block;
  width: 190px;
  height: 220px;
  object-fit: contain;
  margin: 0 auto;
}
.aside-body {
  padding: 24px 26px;
}
.aside-body h3 {
  font-family: var(--font-accent);
  font-size: 32px;
  font-weight: 400;
  margin: 15px 0 26px;
}
.aside-body p {
  font-size: 16px;
  color: #b3c5d2;
}
.aside-body .button {
  min-width: 0;
  width: 100%;
  margin: 0 0 20px;
}
.small-divider {
  width: 100%;
  height: 6px;
  object-fit: fill;
  filter: grayscale(1);
  opacity: 0.6;
  margin: 15px 0;
}
.note,
.aside-body .note {
  font-size: 14px;
  color: #8da2b1;
  line-height: 1.6;
}
dl {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
  font-size: 15px;
  text-align: left;
}
dt {
  color: #8fa9bb;
}
dd {
  margin: 0;
  color: #c4d2dc;
}
.group-heading {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: 33px;
  color: #c8ddea;
  margin: 34px 0 12px;
}
.group-intro {
  color: #9badba;
  max-width: 740px;
  margin-bottom: 30px;
}
.factions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}
.faction-entry {
  position: relative;
  min-width: 0;
  padding-top: 5px;
}
.faction-art {
  height: 215px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.faction-art img {
  height: 200px;
  width: 220px;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px #0008);
  transition:
    transform 0.4s,
    filter 0.4s;
}
.faction-entry:hover .faction-art img {
  transform: translateY(-5px);
  filter: brightness(1.08) drop-shadow(0 8px 12px #000a);
}
.faction-body {
  padding: 23px 5px 0;
  position: relative;
}
.faction-body:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: url("assets/divider.png") center/100% 100%;
  opacity: 0.8;
  filter: grayscale(1);
}
.faction-tag {
  display: block;
  font-size: 12px;
  color: #7f9db1;
  letter-spacing: 0.045em;
  text-align: center;
  min-height: 40px;
}
.faction-body h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 31px;
  text-align: center;
  color: #d6e4ed;
  min-height: 75px;
  margin: 3px 0 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faction-body > p {
  font-size: 18px;
  line-height: 1.75;
  color: #acbcc8;
}
.faction-entry details {
  border-top: 1px solid #738b9e35;
  border-bottom: 1px solid #738b9e35;
  background: none;
  margin-top: 24px;
  padding: 15px 0;
  font-size: 16px;
}
.faction-entry summary {
  font-family: var(--font-head);
  font-size: 20px;
  color: #b5cbdc;
}
.leaders {
  display: block;
}
.leaders dt {
  color: #c6dbe9;
  font-weight: 600;
  font-size: 17px;
  margin-top: 17px;
}
.leaders dd {
  font-size: 14px;
  color: #92a9b9;
}
.faction-entry details p {
  font-size: 16px;
  color: #a7b8c6;
  line-height: 1.7;
}
.other-forces {
  padding-top: 38px;
  border-top: 1px solid #809aae35;
  margin-top: 60px;
  margin-bottom: 30px;
}
.faction-admission {
  border-top: 1px solid #809aae35;
  padding-top: 40px;
  margin-top: 55px;
  max-width: 860px;
}
.faction-admission h2 {
  font-size: 34px;
  color: #c2d9e9;
}
.faction-admission p {
  color: #a3b6c4;
  font-size: 18px;
}
.faction-admission .button {
  margin-top: 14px;
}
.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(240px, 1fr);
  gap: 30px;
}
.map-frame {
  position: relative;
  border: 1px solid #6f809455;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #090f14;
  min-height: 300px;
}
.map-frame > img {
  width: 100%;
  height: auto;
}
.place {
  border: 0;
  border-bottom: 1px solid #71899e45;
  background: transparent;
  display: flex;
  width: 100%;
  padding: 20px 8px;
  align-items: center;
  gap: 18px;
  text-align: left;
  font-size: 14px;
  color: #83a8c4;
}
.place span {
  flex: 1;
  font-family: var(--font-head);
  font-size: 24px;
  color: #c7dce9;
}
.place small {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  color: #809bb0;
}
.place.active {
  background: #24456022;
  border-bottom-color: #9cbcd3;
}
.place:hover {
  background: #24456022;
}
#place-description {
  padding: 25px 8px;
}
#place-description h2 {
  font-size: 28px;
}
#place-description p {
  font-size: 18px;
  color: #a9bccb;
}
.map-layout + .note {
  margin-top: 20px;
}
.steps {
  max-width: 900px;
}
.steps article {
  display: flex;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid #7e99b035;
}
.steps article > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.steps article > span {
  font-family: var(--font-accent);
  font-size: 33px;
  color: #7397b0;
}
.steps h2 {
  font-size: 32px;
  margin-bottom: 12px;
  color: #c4daea;
}
.steps p {
  color: #aebfcc;
  font-size: 19px;
}
.steps .note {
  font-size: 15px;
}
.rules-title {
  margin-top: 45px;
  margin-bottom: 28px;
}
details {
  border-top: 1px solid #7c96aa40;
  padding: 20px 0;
  max-width: 1000px;
}
summary {
  cursor: pointer;
  color: #bfd3e2;
  font-size: 21px;
  font-family: var(--font-head);
  font-weight: 600;
}
details p {
  font-size: 18px;
  color: #a9bdcb;
  margin: 18px 0 0;
  line-height: 1.75;
}
code {
  font-size: 0.85em;
  background: #20344666;
  padding: 2px 5px;
}
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  padding: 12px;
  background: #284b66;
  z-index: 100;
}
.skip:focus {
  top: 10px;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  .hero {
    min-height: 870px;
  }
  .crest {
    width: 260px;
    height: 270px;
  }
}
@media (max-width: 1000px) {
  header {
    padding: 0 24px;
  }
  .brand {
    font-size: 17px;
  }
  .project {
    display: none;
  }
  nav {
    gap: 24px;
  }
  .factions-grid {
    gap: 24px;
  }
  .faction-body h2 {
    font-size: 27px;
  }
  .faction-tag {
    min-height: 50px;
  }
  .article-grid {
    gap: 35px;
  }
  .card {
    padding: 28px;
  }
  .map-layout {
    grid-template-columns: 1fr;
  }
  .map-frame {
    min-height: 200px;
  }
  .hero {
    height: auto;
    min-height: 800px;
  }
}
@media (max-width: 720px) {
  .wrap {
    padding-left: 24px;
    padding-right: 24px;
  }
  header {
    height: 80px;
    padding: 0 20px;
  }
  .brand {
    font-size: 18px;
    gap: 11px;
  }
  .brand img {
    width: 35px;
    height: 50px;
  }
  .brand small {
    font-size: 10px;
    letter-spacing: 0.12em;
  }
  .menu {
    display: block;
    border: 1px solid #72889b;
    background: #101b2570;
    width: 42px;
    height: 40px;
  }
  nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #0b121b url("assets/stone.webp");
    padding: 15px 25px;
    border-bottom: 1px solid #8aa6bc65;
  }
  nav.open {
    display: flex;
  }
  nav a {
    padding: 12px 0;
    font-size: 16px;
  }
  nav a[aria-current]:after {
    bottom: 17px;
    left: auto;
    right: 0;
  }
  .hero {
    min-height: 800px;
  }
  .hero-inner {
    padding: 32px 18px 60px;
  }
  .eyebrow {
    font-size: 11px;
    letter-spacing: 0.11em;
  }
  .crest {
    width: 175px;
    height: 200px;
    margin-top: 22px;
  }
  .hero h1 {
    font-size: clamp(48px, 12vw, 78px);
  }
  .hero h2 {
    font-size: 27px;
  }
  .hero p {
    font-size: 17px;
  }
  .actions {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 26px 0;
  }
  .actions .button {
    width: min(320px, 100%);
    min-height: 56px;
  }
  .hero-meta {
    gap: 9px;
    font-size: 9px;
    letter-spacing: 0.05em;
  }
  .intro {
    padding-top: 52px;
  }
  .intro h2 {
    font-size: 32px;
  }
  .intro p {
    font-size: 17px;
  }
  .cards {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .card {
    min-height: 320px;
  }
  .card h3 {
    font-size: 34px;
  }
  .card p {
    font-size: 18px;
  }
  .closing {
    padding-top: 65px;
    padding-bottom: 65px;
  }
  .closing h2 {
    font-size: 35px;
  }
  .footer-top {
    flex-wrap: wrap;
    gap: 24px;
  }
  .footer-top > div {
    order: 3;
    width: 100%;
    gap: 26px;
    font-size: 16px;
  }
  .footer-bottom {
    font-size: 12px;
  }
  .article-grid,
  .factions-grid {
    grid-template-columns: 1fr;
  }
  .article-grid {
    gap: 38px;
  }
  .inner {
    padding-top: 32px;
  }
  .inner h1 {
    font-size: 40px;
    overflow-wrap: break-word;
  }
  .back {
    margin-bottom: 29px;
  }
  .lead {
    font-size: 20px;
    margin-bottom: 32px;
  }
  .article-grid article p {
    font-size: 18px;
  }
  .article-grid article h2 {
    font-size: 31px;
  }
  .factions-grid {
    gap: 40px;
  }
  .faction-art {
    height: 210px;
    margin-bottom: 0;
  }
  .faction-body {
    padding: 20px 0 0;
  }
  .faction-body h2 {
    min-height: 0;
    font-size: 32px;
    margin: 12px 0 19px;
  }
  .faction-tag {
    min-height: 0;
    font-size: 13px;
  }
  .faction-body > p {
    font-size: 18px;
  }
  .group-heading {
    font-size: 28px;
  }
  .other-forces {
    margin-top: 40px;
  }
  .steps article {
    gap: 19px;
  }
  .steps h2 {
    font-size: 29px;
  }
  .steps p {
    font-size: 18px;
  }
  .steps article > span {
    font-size: 27px;
  }
  .map-frame {
    min-height: 150px;
  }
  .ornament {
    height: 9px;
  }
  .aside-emblem {
    height: 190px;
  }
  .button {
    font-size: 13px;
    max-width: 100%;
  }
  .footer-bottom details {
    font-size: 13px;
  }
  summary {
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
/* Physical textures, tinted to Lordaeron blue without gradient panels. */
body,
header,
footer,
.card {
  background-blend-mode: screen;
}
.ornament,
.rule,
.small-divider {
  mix-blend-mode: screen;
  filter: grayscale(1) brightness(2.1);
}
header:after,
footer:before,
.faction-body:before {
  mix-blend-mode: screen;
  filter: grayscale(1) brightness(1.8);
}
.button:before {
  filter: hue-rotate(190deg) saturate(0.48) brightness(1.18)
    drop-shadow(0 3px 4px #000a);
}
.button:hover:before {
  filter: hue-rotate(190deg) saturate(0.55) brightness(1.4)
    drop-shadow(0 3px 9px #18354ca8);
}
.fx {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
.fx i {
  position: absolute;
  left: var(--x);
  bottom: -5%;
  width: 2px;
  height: 2px;
  background: #c9e9ff;
  border-radius: 50%;
  box-shadow: 0 0 7px #a7d8fa;
  opacity: 0;
  animation: drift 16s linear infinite;
  animation-delay: var(--delay);
}
@keyframes drift {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  15% {
    opacity: 0.4;
  }
  80% {
    opacity: 0.15;
  }
  100% {
    transform: translate(30px, -700px);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fx {
    display: none;
  }
}

/* Header and hero updates */
html {
  scroll-padding-top: 112px;
}
main {
  padding-top: 96px;
}
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background-color: #0b1117e8;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px #0008;
}
.project-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.project-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b8c6ce;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  white-space: nowrap;
}
.project-social img,
.project-social svg {
  width: 23px;
  height: 23px;
  object-fit: contain;
  flex: none;
}
.project-social svg {
  fill: currentColor;
}
.project-social b {
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  margin-left: 1px;
}
.project-social:hover {
  color: #edf7ff;
  text-shadow: 0 0 12px #a0d9ff60;
}
.project-social.discord {
  cursor: default;
  opacity: 0.8;
}
.project-social.discord:hover {
  color: #b8c6ce;
  text-shadow: none;
}
.hero {
  background-image: url("assets/lordaeron-art.jpg");
}
.hero .crest {
  width: 210px;
  height: 250px;
  margin: 14px 0 0;
}
.hero h1 {
  margin-bottom: 20px;
}
@media (max-width: 1000px) {
  .project-links {
    display: none;
  }
}
@media (max-width: 720px) {
  html {
    scroll-padding-top: 96px;
  }
  main {
    padding-top: 80px;
  }
  .hero .crest {
    width: 150px;
    height: 210px;
    margin-top: 22px;
  }
  .hero h1 {
    margin-bottom: 18px;
  }
}

/* Icon buttons and full-width section divider */
.project-links {
  gap: 10px;
  padding-left: 20px;
}
.project-social {
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  display: grid;
  place-items: center;
  color: #dce8ef;
  transition:
    transform 0.2s ease,
    color 0.2s ease,
    filter 0.2s ease;
}
.project-social::before {
  content: "";
  position: absolute;
  inset: 1px;
  border: 1px solid #8caabd66;
  opacity: 0;
  transform: scale(0.72);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.project-social::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 1px;
  height: 1px;
  background: #b9d8eb;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}
.project-social:hover {
  color: #fff;
  transform: translateY(-2px);
  text-shadow: 0 0 12px #a0d9ff60;
}
.project-social:hover::before {
  opacity: 1;
  transform: scale(1);
}
.project-social:hover::after {
  transform: scaleX(1);
}
.project-social:active {
  transform: translateY(0) scale(0.94);
}
.project-social img,
.project-social svg {
  width: 22px;
  height: 22px;
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}
.project-social:hover img,
.project-social:hover svg {
  transform: scale(1.12);
}
.project-aviana img {
  filter: brightness(0) invert(1);
}
.project-social.discord {
  cursor: pointer;
  opacity: 1;
}
.project-social.discord:hover {
  color: #fff;
  text-shadow: 0 0 12px #a0d9ff60;
}
.section-divider {
  position: relative;
  width: 100%;
  height: 88px;
  margin-left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0b1015;
}
.section-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 14px;
  transform: translateY(-50%);
  background: linear-gradient(
    180deg,
    #cad3d755,
    #687681aa 48%,
    #111a22cc 52%,
    #bac8d044
  );
  box-shadow: 0 0 12px #b4c9d633;
}
.section-divider img {
  position: relative;
  z-index: 1;
  width: auto;
  height: 88px;
  max-width: none;
  object-fit: contain;
  filter: grayscale(1) brightness(1.2);
  mix-blend-mode: screen;
}
@media (max-width: 720px) {
  .section-divider {
    height: 64px;
  }
  .section-divider::before {
    height: 10px;
  }
  .section-divider img {
    height: 64px;
  }
  .project-social {
    width: 40px;
    height: 40px;
  }
}

/* Reference icon treatment: 26px marks, warm default tone, red lift on hover */
.project-links {
  gap: 28px;
  padding-left: 20px;
}
.project-social {
  width: auto;
  height: auto;
  min-width: 30px;
  min-height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #c9c0ac;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
.project-social::before,
.project-social::after {
  display: none;
}
.project-social:hover {
  color: #c96a60;
  transform: translateY(-1px);
  text-shadow: none;
}
.project-social:active {
  transform: translateY(0);
}
.project-social img,
.project-social svg,
.project-social .aviana-mask {
  width: 30px;
  height: 30px;
  transition:
    background 0.25s ease,
    transform 0.25s ease,
    filter 0.25s ease;
}
.project-social svg {
  fill: currentColor;
  width: 30px;
  height: 24px;
}
.project-social .aviana-mask {
  display: block;
  background: currentColor;
  -webkit-mask: none center/contain no-repeat;
  mask: none center/contain no-repeat;
}
.project-social:hover img,
.project-social:hover svg,
.project-social:hover .aviana-mask {
  transform: none;
}
.project-aviana img {
  display: none;
}
.project-social.discord {
  cursor: pointer;
  opacity: 1;
}
@media (max-width: 720px) {
  .project-links {
    gap: 22px;
  }
  .project-social img,
  .project-social svg,
  .project-social .aviana-mask {
    width: 28px;
    height: 28px;
  }
  .project-social svg {
    height: 22px;
  }
}

/* Local-file-safe Aviana icon and exact full-width boundary divider */
.project-social .aviana-mask {
  display: none;
}
.project-social .aviana-icon {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter 0.25s ease;
}
.project-social:hover .aviana-icon {
  filter: brightness(0) saturate(100%) invert(49%) sepia(19%) saturate(1089%)
    hue-rotate(319deg) brightness(88%) contrast(89%);
}
.section-divider {
  position: relative;
  width: 100%;
  height: auto;
  margin: 0;
  display: block;
  overflow: hidden;
  background: transparent;
  line-height: 0;
}
.section-divider::before {
  display: none;
}
.section-divider img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: fill;
  filter: none;
  mix-blend-mode: normal;
}
@media (max-width: 720px) {
  .section-divider img {
    width: 100%;
    height: auto;
  }
  .project-social .aviana-icon {
    width: 28px;
    height: 28px;
  }
}

/* Center the header navigation and hero content */
@media (min-width: 721px) {
  header nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}
.hero-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero .actions,
.hero .hero-meta {
  width: 100%;
  justify-content: center;
}
@media (max-width: 720px) {
  header nav {
    left: 0;
    right: 0;
    transform: none;
  }
}

/* Cool blue tint for the boundary divider */
.section-divider {
  background: #101a24;
}
.section-divider img {
  filter: grayscale(1) sepia(0.32) hue-rotate(168deg) saturate(0.6)
    brightness(0.62) contrast(1.1);
  opacity: 0.88;
}

/* Tighter hero composition */
.hero {
  height: clamp(720px, calc(100svh - 180px), 900px);
  min-height: 720px;
  max-height: 900px;
}

/* More visible golden motes */
.fx i {
  width: 4px;
  height: 4px;
  background: #e6b85c;
  box-shadow:
    0 0 8px #f8dc92,
    0 0 18px #c58430;
  animation: drift-gold 14s linear infinite;
  animation-delay: var(--delay);
}
.fx i:nth-child(4n) {
  width: 3px;
  height: 3px;
}
.fx i:nth-child(7n) {
  width: 5px;
  height: 5px;
}
@keyframes drift-gold {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  12% {
    opacity: 0.7;
  }
  72% {
    opacity: 0.35;
  }
  100% {
    transform: translate(34px, -760px);
    opacity: 0;
  }
}
@media (max-width: 720px) {
  .hero {
    height: auto;
    min-height: 760px;
    max-height: none;
  }
}

/* Keep the Aviana mark white on hover */
.project-social:hover .aviana-icon {
  filter: brightness(0) invert(1);
}

/* Pin the divider directly to the hero boundary */
.section-divider {
  height: 0;
  overflow: visible;
  position: relative;
  z-index: 4;
  margin: 0;
  line-height: 0;
}
.section-divider img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
  max-width: none;
  pointer-events: none;
}

/* The intro text is constrained separately from its full-width divider. */
.intro .rule {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* Match the intro divider height to the top boundary divider */
.intro .rule {
  height: 25px;
  object-fit: fill;
}
/* Compact story cards with new generated emblems */
.cards {
  gap: 18px;
  padding-top: 20px;
}
.card {
  min-height: 280px;
  padding: 24px 28px;
}
.card h3 {
  font-size: 32px;
  margin: 18px 0 10px;
}
.card p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.card-link {
  min-width: 180px;
  min-height: 44px;
  padding: 11px 18px;
  font-size: 11px;
}
.card-art {
  width: 170px;
  height: 185px;
  right: -8px;
  top: 14px;
}
.story-card .card-art,
.map-card .card-art {
  width: 200px;
  height: 200px;
}
@media (max-width: 720px) {
  .card {
    min-height: 280px;
    padding: 24px;
  }
  .card h3 {
    font-size: 31px;
  }
  .card p {
    font-size: 16px;
  }
  .card-art {
    width: 160px;
    height: 175px;
  }
  .story-card .card-art,
  .map-card .card-art {
    width: 190px;
    height: 190px;
  }
}

/* Reference-style card layout: one wide story card, then three compact cards */
.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding-top: 20px;
}
.story-card {
  grid-column: 1/-1;
  min-height: 240px;
}
.card {
  min-height: 250px;
  padding: 26px 28px;
  gap: 14px;
}
.card > div {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: auto;
}
.card h3 {
  font-size: 32px;
  margin: 0 0 10px;
}
.card p {
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 16px;
}
.card-link {
  min-width: 180px;
  min-height: 44px;
  padding: 11px 18px;
  font-size: 11px;
}
.card-art {
  width: 240px;
  height: 240px;
  right: -60px;
  top: 170px;
  transform: translateY(-50%) rotate(-14deg);
  opacity: 0.1;
}
.story-card .card-art,
.map-card .card-art {
  width: 250px;
  height: 250px;
}
.card:hover .card-art {
  opacity: 0.28;
  transform: translateY(-50%) rotate(0);
}
@media (max-width: 1000px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .story-card {
    grid-column: 1/-1;
  }
}
@media (max-width: 720px) {
  .cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .story-card {
    grid-column: auto;
    min-height: 250px;
  }
  .card {
    min-height: 250px;
    padding: 24px;
  }
  .card-art {
    width: 200px;
    height: 200px;
    right: -45px;
    top: 165px;
  }
  .story-card .card-art,
  .map-card .card-art {
    width: 210px;
    height: 210px;
  }
}

/* Remove the extra gap above card headings while keeping CTAs at the bottom */
.card {
  padding-top: 18px;
}
.card > div {
  margin-top: 0;
  height: 100%;
}
.card-link {
  margin-top: auto;
}
@media (max-width: 720px) {
  .card {
    padding-top: 18px;
  }
}

/* Keep all four sections in one compact row on desktop */
@media (min-width: 1001px) {
  .cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
  .story-card {
    grid-column: auto;
    min-height: 250px;
  }
  .card {
    min-height: 250px;
    padding: 18px 20px;
  }
  .card h3 {
    font-size: 30px;
  }
  .card p {
    font-size: 15px;
    line-height: 1.5;
  }
  .card-art,
  .story-card .card-art,
  .map-card .card-art {
    width: 190px;
    height: 190px;
    right: -48px;
    top: 170px;
  }
}

/* Footer follows the reference: project mark on the left, social links on the right. */
footer {
  padding: 26px 0 30px;
}
.cards {
  padding-bottom: 76px;
}
.footer-top {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
}
.footer-brand {
  margin-right: auto;
}
.footer-brand > span {
  font-family: var(--font-accent);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: #dbe9f3;
}
.footer-socials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  margin-left: auto;
}
.footer-project {
  width: auto;
  min-width: 0;
  min-height: 34px;
  gap: 8px;
  color: #b8c6ce !important;
  letter-spacing: 0.08em;
}
.footer-project span {
  margin-left: 0;
  font-size: 12px;
}
.footer-project img,
.footer-project svg {
  width: 27px;
  height: 27px;
}
.footer-project svg {
  height: 22px;
}
.footer-project:hover {
  color: #edf7ff !important;
  text-shadow: 0 0 12px #a0d9ff60;
}
.footer-project.discord {
  cursor: pointer;
}
.project-social img,
.project-social svg {
  width: 34px;
  height: 34px;
}
.project-social svg {
  height: 27px;
}
.footer-project img,
.footer-project svg {
  width: 32px;
  height: 32px;
}
.footer-project svg {
  height: 25px;
}

@media (max-width: 720px) {
  .cards {
    padding-bottom: 48px;
  }
  footer {
    padding: 22px 0 26px;
  }
  .footer-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }
  .footer-brand {
    margin-right: 0;
  }
  .footer-brand > span {
    font-size: 21px;
  }
  .footer-socials {
    width: 100%;
    justify-content: flex-start;
    gap: 18px;
  }
  .project-social img,
  .project-social svg {
    width: 30px;
    height: 30px;
  }
  .project-social svg {
    height: 23px;
  }
  .footer-project span {
    font-size: 11px;
  }
}

/* Story artwork banner and the same full-width divider used on the home page. */
#story {
  padding-top: 0;
}
.story-hero-art {
  position: relative;
  width: 100%;
  height: clamp(280px, 32vw, 520px);
  margin-left: 0;
  overflow: hidden;
  background: #0a1118;
}
.story-hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}
.story-hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, #080d14a8 0%, #080d1420 45%, #080d14d9 100%),
    linear-gradient(90deg, #080d1460, #080d1400 25%, #080d1400 75%, #080d1460);
}
.story-hero-caption {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px 24px;
  text-align: center;
}
.story-hero-caption .eyebrow {
  margin-bottom: 14px;
  color: #b6cfe0;
  text-shadow: 0 2px 8px #000b;
}
.story-hero-caption h1 {
  margin: 0 0 14px;
  font-family: var(--font-accent);
  font-size: clamp(42px, 5.4vw, 82px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.02em;
  color: #e1edf4;
  text-shadow: 0 4px 12px #000c;
}
.story-hero-caption .lead {
  max-width: 810px;
  margin: 0;
  color: #d1dce3;
  font-size: clamp(16px, 1.5vw, 22px);
  line-height: 1.55;
  text-shadow: 0 2px 6px #000c;
}
.story-hero-divider {
  position: relative;
  width: 100%;
  height: 37px;
  margin-left: 0;
  overflow: hidden;
  line-height: 0;
  background: transparent;
  z-index: 1;
}
.story-hero-divider img {
  display: block;
  width: 100%;
  height: 37px;
  max-width: none;
  object-fit: fill;
  filter: grayscale(0.25) brightness(0.72) saturate(0.7);
}
#story > .wrap {
  padding-top: 46px;
}
.story-roadmap {
  position: relative;
  padding: 8px 0 22px;
}
.story-roadmap-line {
  position: absolute;
  left: 15px;
  top: 24px;
  bottom: 46px;
  width: 2px;
  background: linear-gradient(
    180deg,
    #8aaec344,
    #789bb488 18%,
    #789bb455 82%,
    transparent
  );
}
.story-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(170px, 38%) 1fr;
  gap: 28px;
  padding: 0 0 64px;
}
.story-step:last-child {
  padding-bottom: 16px;
}
.story-step::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 18px;
  width: 14px;
  height: 14px;
  border: 2px solid #abc9da;
  background: #101b24;
  box-shadow:
    0 0 0 5px #101820,
    0 0 16px #9cc8df66;
  transform: rotate(45deg);
  z-index: 2;
}
.story-step-art {
  position: relative;
  min-height: 170px;
  aspect-ratio: 1.45;
  overflow: hidden;
  border: 1px solid #7692a44d;
  background: #0d1720;
  box-shadow: 0 8px 22px #0008;
}
.story-step-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #07111a20, #07111aa8),
    linear-gradient(
      90deg,
      #07111a55,
      transparent 35%,
      transparent 68%,
      #07111a66
    );
  pointer-events: none;
}
.story-step-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) brightness(0.75);
  transition:
    filter 0.35s,
    transform 0.35s;
}
.story-step:hover .story-step-art img {
  filter: saturate(0.98) brightness(0.9);
  transform: scale(1.035);
}
.story-step-content {
  padding: 4px 0 0 30px;
}
.story-step-content h2 {
  margin: 0 0 16px;
  font-family: var(--font-accent);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: #c8dce8;
}
.story-step-content p {
  color: #aebdc7;
  font-size: 17px;
  line-height: 1.8;
}
.story-step:nth-of-type(even) .story-step-art {
  order: 2;
}
.story-step:nth-of-type(even) .story-step-content {
  order: 1;
  padding-left: 30px;
  padding-right: 0;
}
@media (max-width: 720px) {
  .story-hero-art {
    height: clamp(220px, 52vw, 360px);
  }
  .story-hero-caption {
    padding: 24px 18px;
  }
  .story-hero-caption .eyebrow {
    margin-bottom: 9px;
    font-size: 10px;
  }
  .story-hero-caption h1 {
    font-size: clamp(34px, 9vw, 52px);
    margin-bottom: 9px;
  }
  .story-hero-caption .lead {
    font-size: 15px;
    line-height: 1.4;
  }
  .story-hero-divider,
  .story-hero-divider img {
    height: 30px;
  }
  #story > .wrap {
    padding-top: 32px;
  }
}
@media (max-width: 1000px) and (min-width: 721px) {
  .story-step {
    grid-template-columns: minmax(150px, 34%) 1fr;
    gap: 20px;
  }
  .story-step-content h2 {
    font-size: 28px;
  }
  .story-step-content p {
    font-size: 16px;
  }
}
@media (max-width: 720px) {
  .story-roadmap {
    padding-top: 4px;
  }
  .story-roadmap-line {
    left: 13px;
    top: 20px;
    bottom: 34px;
  }
  .story-step {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-bottom: 48px;
  }
  .story-step::before {
    left: 6px;
    top: 12px;
    width: 12px;
    height: 12px;
  }
  .story-step-art {
    width: calc(100% - 30px);
    margin-left: 30px;
    min-height: 0;
    aspect-ratio: 1.55;
  }
  .story-step-content,
  .story-step:nth-of-type(even) .story-step-content {
    order: initial;
    padding: 0 0 0 30px;
  }
  .story-step:nth-of-type(even) .story-step-art {
    order: initial;
  }
  .story-step-content h2 {
    font-size: 29px;
  }
  .story-step-content p {
    font-size: 16px;
    line-height: 1.7;
  }
}

/* Horizontal story roadmap: every event gets its own readable panel. */
@media (min-width: 721px) {
  #story .article-grid {
    display: block;
  }
  #story .story-roadmap {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding: 12px 0 26px;
  }
  #story .story-roadmap-line {
    left: 7%;
    right: 7%;
    top: 28px;
    bottom: auto;
    width: auto;
    height: 2px;
    background: linear-gradient(
      90deg,
      transparent,
      #789bb488 12%,
      #789bb488 88%,
      transparent
    );
  }
  #story .story-step {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 48px 0 0;
    min-width: 0;
  }
  #story .story-step::before {
    left: calc(50% - 7px);
    top: 21px;
    width: 14px;
    height: 14px;
  }
  #story .story-step-art,
  #story .story-step:nth-of-type(even) .story-step-art {
    order: initial;
    width: 100%;
    min-height: 0;
    aspect-ratio: 1.45;
  }
  #story .story-step-content,
  #story .story-step:nth-of-type(even) .story-step-content {
    order: initial;
    display: flex;
    flex-direction: column;
    min-height: 310px;
    padding: 20px 18px 22px;
    background: #101b24c9;
    border: 1px solid #6f8ca044;
    box-shadow: 0 8px 20px #0005;
  }
  #story .story-step-content h2 {
    font-size: 25px;
    margin-bottom: 14px;
  }
  #story .story-step-content p {
    font-size: 15px;
    line-height: 1.65;
  }
  #story .story-step-content blockquote {
    margin-top: auto;
    font-size: 14px;
  }
  #story aside {
    max-width: 440px;
    margin: 48px auto 0;
  }
  #story aside .aside-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  #story aside .aside-body .button {
    margin-top: 22px;
  }
}
@media (max-width: 720px) {
  #story .story-roadmap {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  #story .story-roadmap-line {
    left: 13px;
    right: auto;
    top: 20px;
    bottom: 34px;
    width: 2px;
    height: auto;
    background: linear-gradient(
      180deg,
      #8aaec344,
      #789bb488 18%,
      #789bb455 82%,
      transparent
    );
  }
  #story .story-step {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 0 0 48px;
  }
  #story .story-step::before {
    left: 6px;
    top: 12px;
  }
  #story .story-step-art,
  #story .story-step:nth-of-type(even) .story-step-art {
    order: initial;
    width: calc(100% - 30px);
    margin-left: 30px;
    aspect-ratio: 1.55;
  }
  #story .story-step-content,
  #story .story-step:nth-of-type(even) .story-step-content {
    order: initial;
    min-height: 0;
    padding: 18px 18px 20px 30px;
    background: #101b24c9;
    border: 1px solid #6f8ca044;
  }
  #story aside {
    margin-top: 24px;
  }
}

/* Wider story panels for comfortable reading on desktop. */
@media (min-width: 721px) {
  #story > .wrap {
    max-width: none;
    padding-left: clamp(24px, 4vw, 96px);
    padding-right: clamp(24px, 4vw, 96px);
  }
  #story .story-roadmap {
    gap: 24px;
    align-items: stretch;
  }
  #story .story-step {
    height: 100%;
  }
  #story .story-step-art {
    aspect-ratio: 1.8;
  }
  #story .story-step-content {
    flex: 1;
  }
  #story .story-step-content h2 {
    font-weight: 300;
    text-shadow: none;
  }
}
@media (max-width: 720px) {
  #story > .wrap {
    max-width: none;
    padding-left: 24px;
    padding-right: 24px;
  }
  #story .story-step-content h2 {
    font-weight: 300;
    text-shadow: none;
  }
}

/* Era labels sit above the timeline; diamonds share the exact same centerline. */
.story-step-era {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ebdd0;
  text-align: center;
  text-shadow: 0 1px 8px #0008;
  line-height: 1.35;
}
@media (min-width: 721px) {
  #story .story-roadmap {
    padding-top: 46px;
  }
  #story .story-roadmap-line {
    top: 30px;
  }
  #story .story-step::before {
    top: -23px;
  }
  #story .story-step-era {
    position: absolute;
    width: 100%;
    top: -61px;
    left: 50%;
    transform: translateX(-50%);
  }
}
@media (max-width: 720px) {
  #story .story-step-era {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    align-self: stretch;
    margin: 0 0 -8px 30px;
    text-align: left;
    font-size: 10px;
  }
}

/* The faction link belongs directly beneath the story hero copy. */
.story-factions-button {
  margin-top: 22px;
  min-width: 220px;
}
@media (max-width: 720px) {
  .story-factions-button {
    margin-top: 16px;
    min-width: 190px;
  }
}

/* Factions hero and equal-height faction panels. */
#factions {
  padding-top: 0;
}
.factions-hero-art {
  position: relative;
  width: 100%;
  height: clamp(300px, 34vw, 520px);
  margin-left: 0;
  overflow: hidden;
  background: #0a1118;
}
.factions-hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}
.factions-hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, #080d146e 0%, #080d1420 44%, #080d14df 100%),
    linear-gradient(90deg, #080d1460, #080d1400 25%, #080d1400 75%, #080d1460);
}
.factions-hero-caption {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px 24px;
  text-align: center;
}
.factions-hero-caption .eyebrow {
  margin-bottom: 14px;
  color: #b6cfe0;
  text-shadow: 0 2px 8px #000b;
}
.factions-hero-caption h1 {
  margin: 0 0 14px;
  font-family: var(--font-accent);
  font-size: clamp(42px, 5.4vw, 82px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.02em;
  color: #e1edf4;
  text-shadow: 0 4px 12px #000c;
}
.factions-hero-caption .lead {
  max-width: 800px;
  margin: 0;
  color: #d1dce3;
  font-size: clamp(16px, 1.5vw, 22px);
  line-height: 1.55;
  text-shadow: 0 2px 6px #000c;
}
.factions-hero-divider {
  position: relative;
  width: 100%;
  height: 37px;
  margin-left: 0;
  overflow: hidden;
  line-height: 0;
  background: transparent;
  z-index: 1;
}
.factions-hero-divider img {
  display: block;
  width: 100%;
  height: 37px;
  max-width: none;
  object-fit: fill;
  filter: grayscale(0.25) brightness(0.72) saturate(0.7);
}
#factions > .wrap {
  max-width: 1440px;
  padding-left: clamp(24px, 4vw, 72px);
  padding-right: clamp(24px, 4vw, 72px);
  padding-top: 42px;
}
#factions .factions-content {
  width: 100%;
}
#factions .group-heading {
  margin-top: 0;
  text-align: center;
  font-weight: 400;
}
#factions .group-intro {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
#factions .factions-grid {
  gap: 24px;
  align-items: stretch;
}
#factions .faction-entry {
  display: flex;
  flex-direction: column;
  min-height: 620px;
  padding: 0 22px 22px;
  background: #101b24c9;
  border: 1px solid #6f8ca044;
  box-shadow: 0 8px 20px #0005;
}
#factions .faction-art {
  height: 240px;
  flex: 0 0 240px;
  margin: 0 -22px 0;
}
#factions .faction-art img {
  width: 240px;
  height: 220px;
}
#factions .faction-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 0 0;
}
#factions .faction-body h2 {
  font-weight: 400;
  min-height: 72px;
  margin: 3px 0 17px;
}
#factions .faction-body > p {
  font-size: 17px;
  line-height: 1.7;
}
#factions .faction-entry details {
  margin-top: auto;
}
#factions .other-forces {
  margin-top: 60px;
}
@media (max-width: 1000px) {
  #factions .faction-entry {
    min-height: 0;
  }
  #factions .faction-art {
    height: 220px;
    flex-basis: 220px;
  }
}
@media (max-width: 720px) {
  .factions-hero-art {
    height: clamp(260px, 58vw, 380px);
  }
  .factions-hero-caption {
    padding: 24px 18px;
  }
  .factions-hero-caption .eyebrow {
    margin-bottom: 9px;
    font-size: 10px;
  }
  .factions-hero-caption h1 {
    font-size: clamp(34px, 9vw, 52px);
    margin-bottom: 9px;
  }
  .factions-hero-caption .lead {
    font-size: 15px;
    line-height: 1.4;
  }
  .factions-hero-divider,
  .factions-hero-divider img {
    height: 30px;
  }
  #factions > .wrap {
    padding-top: 32px;
  }
  #factions .factions-grid {
    gap: 22px;
  }
  #factions .faction-entry {
    min-height: 0;
    padding: 0 18px 18px;
  }
  #factions .faction-art {
    height: 210px;
    flex-basis: 210px;
    margin: 0 -18px;
  }
  #factions .faction-body {
    padding-top: 20px;
  }
}

/* Keep natural artwork proportions and match card heights within each row. */
.factions-hero-art {
  height: auto;
  min-height: 0;
}
.factions-hero-art img {
  height: auto;
  aspect-ratio: auto;
  object-fit: initial;
}
#factions .factions-grid {
  align-items: stretch;
}
#factions .faction-entry {
  height: 620px;
  min-height: 0;
}
#factions .faction-entry:has(details[open]) {
  height: auto;
}
@media (max-width: 720px) {
  #factions .faction-entry {
    height: auto;
  }
}

/* Restore the compact hero crop and keep accordion rules inside each card. */
.factions-hero-art {
  height: clamp(300px, 34vw, 520px);
}
.factions-hero-art img {
  object-fit: cover;
}
#factions .faction-entry {
  overflow: hidden;
}
#factions .faction-body,
#factions .faction-entry details {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
#factions .faction-entry details {
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}
@media (max-width: 720px) {
  .factions-hero-art {
    height: clamp(260px, 58vw, 380px);
  }
  .factions-hero-art img {
    height: 100%;
    object-fit: cover;
  }
}

/* Long faction names and opened details must remain fully visible. */
#factions .faction-entry {
  height: auto;
  min-height: 620px;
  overflow: visible;
}
#factions .faction-entry details {
  flex-shrink: 0;
}
@media (max-width: 720px) {
  #factions .faction-entry {
    min-height: 0;
  }
}

/* Full-width interactive map viewer. */
#map {
  padding-top: 0;
}
.map-header {
  text-align: center;
  padding: 58px 24px 32px;
}
.map-header h1 {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-size: clamp(40px, 4.7vw, 62px);
  font-weight: 600;
  color: #d5e6f2;
}
.map-header .lead {
  max-width: 880px;
  margin: 0 auto;
  color: #9fb5c6;
  font-size: 21px;
}
#map > .map-wrap {
  max-width: none;
  padding-left: clamp(24px, 3vw, 56px);
  padding-right: clamp(24px, 3vw, 56px);
}
#map .map-layout {
  display: block;
}
#map .map-frame {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #6f809455;
  background: #090f14;
}
#map .map-frame > #world-map {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}
/* PVE areas follow the artwork and stay below markers and descriptions. */
.map-zones {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.map-zone {
  fill: var(--zone-color);
  fill-opacity: 0.3;
  stroke: var(--zone-color);
  stroke-width: 1.5px;
  stroke-opacity: 0.85;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  pointer-events: visiblePainted;
  cursor: help;
}
.map-zone:hover,
.map-zone:focus-visible {
  fill-opacity: 0.42;
  stroke-opacity: 1;
  stroke-width: 2.5px;
  outline: none;
}
.zone-tooltip {
  position: fixed;
  z-index: 30;
  pointer-events: none;
  width: min(320px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  padding: 16px 18px;
  border: 1px solid #7894a555;
  border-top: 3px solid var(--zone-color);
  background: #0b151ff5;
  box-shadow: 0 8px 24px #0009;
  color: #d5e3ec;
  text-align: left;
}
.zone-tooltip strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}
.zone-tooltip p {
  margin: 0;
  color: #b4c6d3;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}
.map-zone-red {
  --zone-color: #bf4945;
}
.map-zone-yellow {
  --zone-color: #d7ad49;
}
.map-zone-green {
  --zone-color: #5f9764;
}
#map .map-frame.filters-open {
  overflow: visible;
}
.map-filters {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
}
.map-filter-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #758a9f;
  background: #101e2bf5;
  box-shadow: 0 4px 12px #0005;
  color: #d5e3ec;
  font-size: 15px;
  line-height: 1;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.map-filter-toggle:hover,
.map-filter-toggle[aria-expanded="true"] {
  border-color: #d2b67d;
  background: #1b2c3bf5;
  color: #f0d79f;
}
.map-filter-toggle svg,
.map-filter-icon {
  display: block;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.map-filter-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 250px;
  padding: 12px;
  border: 1px solid #7894a566;
  background: #0b151ff7;
  box-shadow: 0 8px 24px #0009;
  color: #d5e3ec;
}
#map-filter-title {
  margin: 0 6px 8px;
  color: #92a9ba;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.map-filter-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px;
  cursor: pointer;
  font-size: 17px;
  line-height: 1.3;
}
.map-filter-option + .map-filter-option {
  border-top: 1px solid #738b9e35;
}
.map-filter-option:hover,
.map-filter-option:focus-within {
  background: #24456055;
}
.map-filter-option span {
  flex: 1;
}
.map-filter-icon-zones {
  color: #93b798;
}
.map-filter-icon-markers {
  color: #edc679;
}
.map-filter-option input {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: #c9ab70;
  cursor: pointer;
}
.map-filter-option input:focus-visible {
  outline: 2px solid #b0d5f0;
  outline-offset: 3px;
}
@media (max-width: 600px) {
  .map-filters {
    top: 8px;
    right: 8px;
  }
  .map-filter-toggle {
    width: 44px;
    height: 44px;
    padding: 0;
  }
  .map-filter-toggle > span {
    display: none;
  }
  .map-filter-panel {
    top: 0;
    right: calc(100% + 8px);
    width: min(230px, calc(100vw - 132px));
    padding: 8px;
  }
  #map-filter-title {
    margin: 0 4px 6px;
    font-size: 11px;
    letter-spacing: 0.04em;
  }
  .map-filter-option {
    min-height: 44px;
    gap: 8px;
    padding: 7px 4px;
    font-size: 15px;
  }
  .map-filter-icon {
    width: 20px;
    height: 20px;
  }
}
.map-markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.map-marker {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  transform: translate(-50%, -100%);
  padding: 0;
  border: 0;
  background: transparent;
  color: #e5edf2;
  text-shadow: 0 2px 5px #000;
  pointer-events: auto;
  white-space: nowrap;
}
.map-marker i {
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid #f1c875;
  background: #172531e8;
  box-shadow:
    0 0 0 4px #07121a99,
    0 0 16px #edbe5b99;
  transform: rotate(45deg);
  transition:
    transform 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}
.map-marker span {
  max-width: 210px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.map-marker:hover i,
.map-marker.active i {
  background: #d9a84f;
  box-shadow:
    0 0 0 4px #07121a99,
    0 0 22px #ffd477;
  transform: rotate(45deg) scale(1.14);
}
.map-marker:hover span,
.map-marker.active span {
  color: #fff1c8;
}
#map .places {
  margin-top: 24px;
}
.map-regions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
#map .map-regions .place {
  min-height: 74px;
  padding: 14px 18px;
  border: 1px solid #6f8ca044;
  background: #101b24c9;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  color: #9db8ca;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
#map .map-regions .place span {
  font-family: var(--font-head);
  font-size: 23px;
  line-height: 1.15;
  color: #c7dce9;
}
#map .map-regions .place small {
  font-family: var(--font-body);
  font-size: 13px;
  color: #829caf;
}
#map .map-regions .place:hover,
#map .map-regions .place.active {
  border-color: #9cbcd3;
  background: #24456055;
  color: #e5f2f8;
}
#map .map-regions .place.active span {
  color: #edf7ff;
}
#map #place-description {
  margin-top: 18px;
  padding: 24px 28px;
  text-align: center;
  border: 1px solid #6f8ca044;
  background: #101b24c9;
}
#map #place-description h2 {
  margin: 0 0 8px;
  font-family: var(--font-accent);
  font-size: 32px;
  font-weight: 400;
  color: #d6e4ed;
}
#map #place-description p {
  max-width: 900px;
  margin: 0 auto;
  color: #aebfcc;
  font-size: 17px;
  line-height: 1.7;
}
#map .map-wrap > .note {
  text-align: center;
  margin: 20px auto 0;
  color: #8499a8;
}
@media (max-width: 720px) {
  .map-header {
    padding: 34px 24px 24px;
  }
  .map-header h1 {
    font-size: 40px;
  }
  .map-header .lead {
    font-size: 18px;
  }
  .map-marker span {
    max-width: 130px;
    font-size: 10px;
  }
  .map-marker i {
    width: 14px;
    height: 14px;
  }
  .map-regions {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  #map .map-regions .place {
    min-height: 62px;
  }
  #map .map-regions .place span {
    font-size: 21px;
  }
  #map #place-description {
    padding: 20px 18px;
  }
}

/* Keep the map compact and put region selection above the artwork. */
#map > .map-wrap {
  max-width: 1320px;
}
#map .map-layout {
  display: flex;
  flex-direction: column;
}
#map .places {
  display: contents;
  margin: 0;
}
#map .map-regions {
  order: -1;
  margin-bottom: 18px;
}
#map .map-frame {
  order: 0;
}
#map #place-description {
  order: 1;
}
.map-marker {
  gap: 0;
}
.map-marker span {
  display: none;
}
#map #place-description {
  display: block;
  min-height: 120px;
}
.place-owner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 15px 0 0;
  padding-top: 12px;
  border-top: 1px solid #738b9e35;
  color: #829caf;
  font-size: 13px;
}
.place-owner span {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
}
.place-owner strong {
  color: #c7dce9;
  font-weight: 600;
}
@media (max-width: 720px) {
  #map > .map-wrap {
    max-width: none;
  }
  .map-regions {
    margin-bottom: 12px !important;
  }
  #map #place-description {
    min-height: 0;
  }
  .place-owner {
    font-size: 12px;
  }
}

/* Location details float over the map instead of creating a separate section below it. */
#map .map-layout {
  position: relative;
}
#map #place-description {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 4;
  width: min(430px, calc(100% - 48px));
  margin: 0;
  padding: 18px 22px;
  background: #0b151fe8;
  border: 1px solid #a5c6d455;
  box-shadow: 0 8px 24px #0009;
  backdrop-filter: blur(5px);
  text-align: left;
}
#map #place-description h2 {
  font-size: 27px;
}
#map #place-description p {
  margin: 0;
  line-height: 1.55;
}
#map #place-description .place-owner {
  justify-content: flex-start;
  margin-top: 12px;
  padding-top: 10px;
}
@media (max-width: 720px) {
  #map #place-description {
    left: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 14px 16px;
  }
  #map #place-description h2 {
    font-size: 23px;
  }
}

/* Marker tooltip: hidden until interaction, positioned by the active marker. */
#map .map-frame {
  position: relative;
}
#map #place-description {
  left: 0;
  top: 0;
  bottom: auto;
  width: 340px;
  max-width: calc(100% - 24px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.16s ease;
  transform: none;
}
#map #place-description.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.map-marker {
  transform: translate(-50%, -50%);
}
.map-marker i {
  width: 10px;
  height: 10px;
  border-width: 1.5px;
  box-shadow:
    0 0 0 3px #07121a99,
    0 0 10px #edbe5b99;
}
.map-marker:hover i,
.map-marker.active i {
  box-shadow:
    0 0 0 3px #07121a99,
    0 0 14px #ffd477;
  transform: rotate(45deg) scale(1.12);
}
#map #place-image {
  display: block;
  width: calc(100% + 44px);
  max-width: none;
  height: 150px;
  object-fit: cover;
  margin: -18px -22px 16px;
  border-bottom: 1px solid #a5c6d455;
  filter: saturate(0.78) contrast(1.06) brightness(0.88);
}
#map #place-image[hidden] {
  display: none;
}
@media (max-width: 720px) {
  #map #place-description {
    left: 0;
    top: 0;
    bottom: auto;
    width: 300px;
    max-width: calc(100% - 16px);
    padding: 14px 16px;
  }
}
@media (max-width: 720px) {
  #map #place-image {
    width: calc(100% + 32px);
    height: 118px;
    margin: -14px -16px 13px;
  }
}

/* Grouped locations and long descriptions remain readable on small screens. */
.place-areas {
  margin: 0 0 12px;
  color: #b7a477;
  font-size: 14px;
  line-height: 1.45;
}
@media (max-width: 900px) {
  #map #place-description {
    display: none;
    position: static;
    width: 100% !important;
    max-width: none;
    margin: 16px 0 0;
    min-height: 0;
  }
  #map #place-description.is-visible {
    display: block;
  }
}

/* Guild Discord links sit beneath each faction's expandable details. */
.faction-discord {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
  padding: 10px 12px;
  border-top: 1px solid #738b9e35;
  color: #b8cddd;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    color 0.2s,
    text-shadow 0.2s;
}
/* Reserve the Discord footer space so collapsed details align across cards. */
@media (min-width: 721px) {
  #factions .faction-body:not(:has(.faction-discord))::after {
    content: "";
    display: block;
    flex: 0 0 45px;
    margin-top: 14px;
  }
}

.faction-discord:hover {
  color: #edf7ff;
  text-shadow: 0 0 12px #a0d9ff60;
}
.faction-discord.is-disabled {
  opacity: 0.48;
  cursor: default;
}
.faction-discord.is-disabled:hover {
  color: #b8cddd;
  text-shadow: none;
}
.discord-mark {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex: 0 0 auto;
}
@media (max-width: 720px) {
  .faction-discord {
    font-size: 11px;
    padding: 9px 10px;
  }
  .discord-mark {
    width: 22px;
    height: 22px;
  }
}

/* Keep every artwork row aligned without forcing artificial text height. */
@media (min-width: 721px) {
  #story .story-step {
    height: auto;
    align-self: stretch;
  }
  #story .story-step-art,
  #story .story-step:nth-of-type(even) .story-step-art {
    height: clamp(220px, 18vw, 340px);
    aspect-ratio: auto;
    flex: 0 0 auto;
  }
  #story .story-step-content {
    min-height: 0;
    flex: 1;
  }
}

#story .story-step-unrevealed .story-step-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  min-height: 260px;
  border-style: dashed;
}
#story .story-step-unrevealed .story-step-content p {
  margin-bottom: 0;
  color: var(--muted);
}

/* Upcoming chapters are separate from the four-part historical timeline. */
#story .story-future {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #6f8ca044;
}
#story .story-future > h2 {
  margin: 0 0 28px;
  font-family: var(--font-accent);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 400;
  color: #c8dce8;
  text-align: center;
}
#story .story-future-grid {
  display: grid;
  /* Match two columns of the four-column timeline, including its 24px gaps. */
  grid-template-columns: repeat(2, minmax(0, calc(25% - 18px)));
  justify-content: center;
  gap: 24px;
}
#story .story-future .story-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  height: auto;
  padding: 0;
}
#story .story-future .story-step::before {
  display: none;
}
#story .story-future .story-step-era {
  position: static;
  width: 100%;
  margin: 0;
  transform: none;
  text-align: left;
}
#story .story-future .story-step-art,
#story .story-future .story-step:nth-of-type(even) .story-step-art {
  width: 100%;
  height: clamp(220px, 22vw, 340px);
  min-height: 0;
  margin: 0;
  aspect-ratio: auto;
  flex: 0 0 auto;
}
#story .story-future .story-step-content {
  flex: 1;
}
#story .story-future .story-step-unrevealed .story-step-content {
  border-style: solid;
  background:
    linear-gradient(180deg, #07111a33, #07111a99 42%, #07111acc),
    url("assets/story-chapter-3-last-prince-vertical.webp") 65% center / cover no-repeat;
  background-repeat: no-repeat;
  background-clip: padding-box;
  box-shadow: none;
}
#story .story-future .story-step-unrevealed .story-step-content h2,
#story .story-future .story-step-unrevealed .story-step-content p {
  color: #e1edf4;
  text-shadow: 0 2px 8px #000;
  overflow-wrap: anywhere;
}
@media (max-width: 720px) {
  #story .story-future-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Faction artwork with a shared overlay for readable descriptions. */
#faction-seekers {
  --faction-background-size: max(100%, 420px) auto;
  --faction-background: url("assets/faction-background-seekers-light.webp");
  --faction-background-position: 50% -45px;
}
#faction-argent {
  --faction-background: url("assets/faction-background-argent.webp");
  --faction-background-position: 52% -220px;
}
#faction-scarlet-flame {
  --faction-background: url("assets/faction-background-scarlet-flame.webp");
  --faction-background-position: 50% -115px;
}
#faction-silver-hand {
  --faction-background-size: auto 520px;
  --faction-background: url("assets/faction-background-silver-hand.webp");
  --faction-background-position: 55% top;
}
#faction-cult {
  --faction-background-size: auto 520px;
  --faction-background: url("assets/faction-background-cult.webp");
  --faction-background-position: 60% top;
}
#faction-azeroth-defenders {
  --faction-background-size: auto 520px;
  --faction-background: url("assets/faction-background-azeroth-defenders.png");
  --faction-background-position: 46% top;
}
#faction-high-blood-enclave {
  --faction-background-size: auto 520px;
  --faction-background: url("assets/faction-background-high-blood-enclave.png");
  --faction-background-position: 50% top;
}
#faction-quelthalas-defenders {
  --faction-background-size: auto 520px;
  --faction-background: url("assets/faction-background-quelthalas-defenders-v2.png");
  --faction-background-position: 58% top;
}
#faction-black-banner {
  --faction-background-size: auto 520px;
  --faction-background: url("assets/faction-background-black-banner.webp");
  --faction-background-position: 23% top;
}
#factions .faction-entry-illustrated {
  background-color: #0b151e;
  background-image:
    linear-gradient(180deg, #07111a26, #07111a66 220px, #07111adb 360px, #07111a 500px),
    var(--faction-background);
  background-position: center, var(--faction-background-position);
  background-size: cover, var(--faction-background-size, cover);
  background-repeat: no-repeat;
  background-clip: padding-box;
}
/* Fade the artwork to solid color before its 520px lower edge. */
#factions .other-forces + .factions-grid .faction-entry-illustrated {
  background-color: #07111a;
  background-image:
    linear-gradient(180deg, #07111a26, #07111a66 220px, #07111adb 360px, #07111a 500px),
    var(--faction-background);
}
#factions #faction-seekers {
  background-image:
    linear-gradient(180deg, #07111a26, #07111a66 180px, #07111a 360px),
    var(--faction-background);
}
#factions .faction-entry-illustrated .faction-body {
  text-shadow: 0 2px 6px #000c;
}
#factions .faction-entry-illustrated .faction-body > p,
#factions .faction-entry-illustrated details {
  color: #d2dce4;
}
#factions .faction-entry-illustrated .faction-tag {
  color: #c3d2de;
}

/* Center compact crests consistently across all illustrated factions. */
#factions .faction-entry-illustrated .faction-art {
  align-items: flex-end;
  justify-content: center;
  padding: 0 18px 14px;
}
#factions .faction-entry-illustrated .faction-art img {
  width: 120px;
  height: 120px;
}

/* Closed row heights are shared; an open card grows independently. */
#factions .factions-grid {
  align-items: start;
}
#factions .faction-entry {
  min-height: var(--faction-closed-height, 620px);
}
#factions .faction-entry-illustrated {
  isolation: isolate;
  background-color: #07111a;
  background-size: 0 0;
}
#factions .faction-entry-illustrated::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--faction-closed-height, 620px) - 2px);
  z-index: -1;
  pointer-events: none;
  background: inherit;
  background-size: cover, var(--faction-background-size, cover);
}
@media (max-width: 720px) {
  #factions .faction-entry {
    min-height: var(--faction-closed-height, 0px);
  }
}
