:root {
  --ink: #050810;
  --ink-soft: #0a1020;
  --panel: rgba(11, 18, 34, 0.88);
  --panel-solid: #0b1222;
  --line: rgba(188, 218, 255, 0.16);
  --line-bright: rgba(255, 205, 105, 0.58);
  --gold: #e9b95e;
  --gold-light: #ffe0a0;
  --blue: #59c8ff;
  --violet: #9b70ff;
  --text: #f2f3f8;
  --muted: #aeb9c9;
  --serif: "Cinzel", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1240px;
  --header-height: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 5%, rgba(78, 42, 149, 0.18), transparent 30rem),
    linear-gradient(180deg, #060a12 0%, #08101e 45%, #050810 100%);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
}

img,
video {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

::selection {
  background: rgba(96, 197, 255, 0.28);
  color: white;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-160%);
  background: var(--gold-light);
  color: var(--ink);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.06);
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--gold), var(--violet));
  box-shadow: 0 0 16px var(--blue);
}

#aether-canvas {
  position: fixed;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.48;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: 100%;
  height: var(--header-height);
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(5,8,16,0.95), rgba(5,8,16,0.76));
  backdrop-filter: blur(20px);
}

.wordmark {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  min-width: 206px;
  color: var(--gold-light);
  font-family: var(--serif);
  text-transform: uppercase;
}

.wordmark-star {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255,218,142,0.6);
  border-radius: 50%;
  color: var(--blue);
  box-shadow: inset 0 0 16px rgba(89,200,255,0.2), 0 0 20px rgba(89,200,255,0.1);
}

.wordmark strong,
.wordmark small {
  display: block;
  line-height: 1;
}

.wordmark strong {
  font-size: 17px;
  letter-spacing: 0.08em;
}

.wordmark small {
  margin-top: 5px;
  color: #b8c5d7;
  font-size: 9px;
  letter-spacing: 0.42em;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2.2vw, 34px);
}

.site-nav a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #cad3e0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 50%;
  bottom: -10px;
  left: 50%;
  height: 1px;
  background: var(--gold);
  content: "";
  transition: right 180ms ease, left 180ms ease;
}

.site-nav a:hover {
  color: white;
}

.site-nav a:hover::after {
  right: 0;
  left: 0;
}

.nav-watch,
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid rgba(255,214,126,0.5);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.nav-watch {
  background: rgba(233,185,94,0.08);
  color: var(--gold-light);
}

.nav-watch:hover,
.button:hover {
  transform: translateY(-2px);
  border-color: var(--gold-light);
  box-shadow: 0 10px 34px rgba(0,0,0,0.28), 0 0 22px rgba(233,185,94,0.1);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  display: flex;
  min-height: max(720px, 100svh);
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-backdrop {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  filter: saturate(1.08) contrast(1.05);
  animation: hero-breathe 18s ease-in-out infinite alternate;
}

.hero-wash {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4,7,14,0.98) 0%, rgba(4,7,14,0.77) 28%, rgba(4,7,14,0.12) 67%, rgba(4,7,14,0.4) 100%),
    linear-gradient(0deg, #050810 0%, rgba(5,8,16,0.54) 22%, transparent 55%, rgba(5,8,16,0.4) 100%);
}

.hero-rift {
  position: absolute;
  z-index: -1;
  top: -20%;
  right: 4%;
  width: 42vw;
  height: 70vh;
  border: 1px solid rgba(174,125,255,0.2);
  border-radius: 50%;
  box-shadow: inset 0 0 90px rgba(102,57,204,0.12), 0 0 90px rgba(102,57,204,0.08);
  filter: blur(1px);
  transform: rotate(-16deg);
  opacity: 0.65;
}

.hero-content {
  width: min(760px, calc(100% - 40px));
  margin: 0 0 clamp(76px, 10vh, 120px) clamp(20px, 7vw, 120px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.21em;
  text-transform: uppercase;
}

.eyebrow::before {
  display: inline-block;
  width: 28px;
  height: 1px;
  margin-right: 12px;
  background: currentColor;
  content: "";
  vertical-align: middle;
}

.hero h1 {
  max-width: 800px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(44px, 6.2vw, 92px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.96;
  text-wrap: balance;
}

.hero h1 span,
.hero h1 strong {
  display: block;
}

.hero h1 span {
  color: #f4f0e9;
}

.hero h1 strong {
  margin-top: 8px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold), #f5f4ec 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}

.hero-lead {
  max-width: 660px;
  margin: 26px 0 30px;
  color: #ccd5e3;
  font-size: clamp(16px, 1.4vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button-primary {
  background: linear-gradient(135deg, #f3ca77, #b97727);
  color: #111019;
  box-shadow: 0 10px 40px rgba(190,116,32,0.22);
}

.button-ghost {
  background: rgba(6,10,20,0.5);
  color: white;
  backdrop-filter: blur(10px);
}

.hero-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 34px;
  color: #aeb8c7;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-pillars span::before {
  margin-right: 8px;
  color: var(--blue);
  content: "✦";
}

.hero-scroll {
  position: absolute;
  right: 36px;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.52);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero-scroll span {
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--gold), transparent);
}

.section {
  position: relative;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(90px, 11vw, 150px) 0;
}

.section-deep {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100vw - var(--max)) / 2));
  padding-left: max(20px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background:
    radial-gradient(circle at 12% 12%, rgba(48,112,173,0.1), transparent 30rem),
    radial-gradient(circle at 88% 80%, rgba(101,48,166,0.1), transparent 36rem),
    rgba(4,8,16,0.65);
}

.section-heading {
  max-width: 830px;
  margin-bottom: 58px;
}

.section-heading-centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading-centered .eyebrow::before {
  display: none;
}

.section-heading h2,
.studio-copy h2,
.finale h2 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(38px, 5.2vw, 68px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.section-heading > p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.section-heading-centered > p:last-child {
  margin-right: auto;
  margin-left: auto;
}

.story-sequence {
  display: grid;
  gap: 32px;
}

.story-chapter {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.75fr);
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  box-shadow: 0 26px 90px rgba(0,0,0,0.24);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}

.story-chapter-reverse {
  grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.5fr);
}

.story-chapter-reverse .story-image {
  order: 2;
}

.story-image {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}

.story-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 62%, var(--panel-solid));
  content: "";
}

.story-chapter-reverse .story-image::after {
  background: linear-gradient(270deg, transparent 62%, var(--panel-solid));
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(.2,.8,.2,1);
}

.story-chapter:hover .story-image img {
  transform: scale(1.035);
}

.story-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 4vw, 58px);
}

.story-copy span,
.system-card > span,
.system-card > div > span,
.release-phase > span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.story-copy h3,
.system-card h3,
.release-phase h3,
.pvp-copy h3,
.guild-callout h3 {
  margin: 12px 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.08;
}

.story-copy p,
.system-card p,
.release-phase p {
  margin: 0;
  color: var(--muted);
}

.story-oath {
  position: relative;
  max-width: 930px;
  margin: 100px auto 0;
  padding: 50px 54px;
  border-top: 1px solid var(--line-bright);
  border-bottom: 1px solid var(--line-bright);
  text-align: center;
}

.story-oath::before {
  position: absolute;
  top: -22px;
  left: 50%;
  padding: 4px 16px;
  transform: translateX(-50%);
  background: var(--ink-soft);
  color: var(--gold);
  content: "✦";
}

.story-oath p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(23px, 3vw, 37px);
  font-style: italic;
  line-height: 1.35;
}

.story-oath cite {
  display: block;
  margin-top: 20px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-selector {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-bottom: 22px;
  border: 1px solid var(--line);
  background: rgba(5,9,18,0.86);
}

.hero-tab {
  position: relative;
  min-height: 96px;
  padding: 18px 12px 14px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: #d5dce6;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 15px;
  text-align: left;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.hero-tab:last-child {
  border-right: 0;
}

.hero-tab span,
.hero-tab small {
  display: block;
  font-family: var(--sans);
}

.hero-tab span {
  margin-bottom: 10px;
  color: #637187;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hero-tab small {
  margin-top: 4px;
  color: #8e9db1;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.hero-tab::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--hero-tab-color, var(--gold));
  content: "";
  opacity: 0;
  transform: scaleX(0.3);
  transition: opacity 180ms ease, transform 180ms ease;
}

.hero-tab:nth-child(1) { --hero-tab-color: #ff6a35; }
.hero-tab:nth-child(2) { --hero-tab-color: #4fd9ff; }
.hero-tab:nth-child(3) { --hero-tab-color: #a98bff; }
.hero-tab:nth-child(4) { --hero-tab-color: #d267ff; }
.hero-tab:nth-child(5) { --hero-tab-color: #ffd36d; }
.hero-tab:nth-child(6) { --hero-tab-color: #66e59d; }

.hero-tab:hover,
.hero-tab.is-active {
  background: linear-gradient(180deg, rgba(255,255,255,0.045), transparent);
  color: white;
}

.hero-tab.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero-detail {
  --accent: #ff6a35;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(340px, 0.92fr) minmax(250px, 0.68fr);
  min-height: 620px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 55%);
  background: #070c16;
  box-shadow: 0 30px 100px rgba(0,0,0,0.3), inset 0 1px rgba(255,255,255,0.04);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}

.hero-portrait {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #080d17;
}

.hero-portrait::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, #070c16), linear-gradient(0deg, #070c16, transparent 32%);
  content: "";
  pointer-events: none;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 15% center;
  transition: opacity 180ms ease, transform 600ms ease;
}

.hero-detail:hover .hero-portrait img {
  transform: scale(1.025);
}

.portrait-number {
  position: absolute;
  z-index: 2;
  bottom: 10px;
  left: 22px;
  color: color-mix(in srgb, var(--accent), white 20%);
  font-family: var(--serif);
  font-size: 88px;
  line-height: 1;
  opacity: 0.36;
}

.hero-biography {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px clamp(28px, 3vw, 48px);
}

.hero-element,
.hero-role {
  color: color-mix(in srgb, var(--accent), white 25%);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-biography h3 {
  margin: 7px 0 5px;
  font-family: var(--serif);
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 500;
  line-height: 0.96;
}

.hero-biography h3 span {
  display: block;
  margin-top: 8px;
  color: color-mix(in srgb, var(--accent), white 28%);
  font-size: 0.52em;
  text-transform: uppercase;
}

.hero-origin {
  margin: 24px 0;
  color: #b6c1d0;
}

.hero-kit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-kit div span,
.abilities > span {
  display: block;
  color: #75849a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-kit strong {
  font-size: 13px;
}

.abilities {
  margin-top: 22px;
}

.abilities ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 11px 0 0;
  padding: 0;
  list-style: none;
}

.abilities li,
.mount-skills span,
.fair-play span {
  border: 1px solid color-mix(in srgb, var(--accent), transparent 65%);
  background: color-mix(in srgb, var(--accent), transparent 91%);
  color: #e4e9f1;
  font-size: 10px;
  font-weight: 700;
  padding: 6px 9px;
}

.mount-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border-left: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
}

.mount-art {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 467 / 471;
  object-fit: contain;
  object-position: center;
  background: #060a13;
}

.mount-copy {
  padding: 28px;
  background: linear-gradient(180deg, rgba(6,11,20,0.82), #070c16);
}

.mount-copy > p:first-child {
  margin: 0;
  color: color-mix(in srgb, var(--accent), white 20%);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mount-copy h4 {
  margin: 5px 0 10px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
}

.mount-copy > p:not(:first-child) {
  margin: 0;
  color: #9da9ba;
  font-size: 13px;
}

.mount-skills,
.fair-play {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.noscript-note {
  padding: 14px;
  background: #1d140b;
  color: var(--gold-light);
  text-align: center;
}

.world-atlas {
  display: grid;
  grid-template-columns: 1.5fr 0.72fr;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}

.world-map {
  position: relative;
  min-height: 600px;
  overflow: hidden;
}

.world-map::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 65%, var(--panel-solid));
  content: "";
}

.world-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-ring {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(102,205,255,0.35);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(102,205,255,0.12), inset 0 0 30px rgba(102,205,255,0.08);
  pointer-events: none;
}

.map-ring-one {
  top: 19%;
  left: 16%;
  width: 120px;
  height: 120px;
  animation: map-pulse 3s ease-in-out infinite;
}

.map-ring-two {
  right: 15%;
  bottom: 18%;
  width: 88px;
  height: 88px;
  animation: map-pulse 3.6s ease-in-out infinite 1s;
}

.region-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 4vw, 54px);
}

.region-index {
  margin: 0;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.region-panel h3 {
  margin: 12px 0 18px;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 500;
  line-height: 1.02;
}

.region-panel > p:not(.region-index) {
  color: var(--muted);
}

.region-clue {
  margin-top: 28px;
  padding: 18px;
  border-left: 2px solid var(--gold);
  background: rgba(233,185,94,0.06);
}

.region-clue span {
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.region-clue p {
  margin: 7px 0 0;
  color: #dbe2ec;
  font-family: var(--serif);
  font-style: italic;
}

.region-tabs {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.region-tab {
  min-height: 56px;
  padding: 12px 15px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.018);
  color: #9eabba;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
}

.region-tab:hover,
.region-tab.is-active {
  background: rgba(89,200,255,0.08);
  color: white;
}

.world-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 24px;
  border: 1px solid var(--line);
}

.world-stats div {
  padding: 24px;
  border-right: 1px solid var(--line);
}

.world-stats div:last-child {
  border-right: 0;
}

.world-stats strong,
.world-stats span {
  display: block;
}

.world-stats strong {
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
}

.world-stats span {
  color: #8795a9;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.system-card {
  position: relative;
  min-height: 310px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(17,29,50,0.9), rgba(6,10,19,0.94));
  transition: transform 220ms ease, border-color 220ms ease;
}

.system-card:hover {
  transform: translateY(-5px);
  border-color: rgba(233,185,94,0.42);
}

.system-card-wide {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1.35fr 0.65fr;
  min-height: 430px;
  padding: 0;
}

.system-card-wide img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.system-card-wide > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px;
}

.system-glyph {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 44px;
  place-items: center;
  border: 1px solid rgba(233,185,94,0.32);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 24px;
  transform: rotate(45deg);
}

.system-glyph::first-letter {
  transform: rotate(-45deg);
}

.system-card:not(.system-card-wide) h3 {
  font-size: 28px;
}

.dungeon-console {
  display: grid;
  grid-template-columns: 1.35fr 0.72fr 0.72fr;
  min-height: 610px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #080d17;
}

.dungeon-visual {
  position: relative;
  min-height: 610px;
  overflow: hidden;
}

.dungeon-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, #080d17), linear-gradient(0deg, #080d17, transparent 30%);
  content: "";
}

.dungeon-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 180ms ease, transform 700ms ease;
}

.dungeon-console:hover .dungeon-visual img {
  transform: scale(1.025);
}

.dungeon-danger {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 24px;
  left: 24px;
  padding: 16px;
  border-left: 2px solid var(--gold);
  background: rgba(5,8,16,0.8);
  backdrop-filter: blur(10px);
}

.dungeon-danger span,
.dungeon-danger strong {
  display: block;
}

.dungeon-danger span {
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dungeon-danger strong {
  margin-top: 5px;
  font-size: 12px;
}

.dungeon-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 3.5vw, 50px);
  border-right: 1px solid var(--line);
}

.dungeon-info > p:first-child {
  margin: 0;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dungeon-info h3 {
  margin: 12px 0 6px;
  font-family: var(--serif);
  font-size: clamp(35px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.02;
}

.dungeon-info > span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.boss-seal {
  margin: 35px 0 22px;
  padding: 20px;
  border: 1px solid rgba(155,112,255,0.35);
  background: rgba(102,57,204,0.08);
}

.boss-seal small,
.boss-seal strong {
  display: block;
}

.boss-seal small {
  color: #9d8bc5;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.boss-seal strong {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
}

.dungeon-info > p:last-child {
  color: var(--muted);
}

.dungeon-list {
  display: grid;
  grid-template-rows: repeat(10, 1fr);
}

.dungeon-tab {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  padding: 0 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: #909daf;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.dungeon-tab span {
  color: #56657a;
  font-size: 9px;
}

.dungeon-tab:hover,
.dungeon-tab.is-active {
  background: linear-gradient(90deg, rgba(89,200,255,0.11), transparent);
  color: white;
}

.dungeon-tab.is-active span {
  color: var(--blue);
}

.bosses {
  margin-top: 50px;
  overflow: hidden;
  border-top: 1px solid var(--line-bright);
  border-bottom: 1px solid var(--line-bright);
}

.bosses > p {
  margin: 0;
  padding: 18px 0 0;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.boss-marquee {
  display: flex;
  width: max-content;
  gap: 48px;
  padding: 18px 0 22px;
  color: #d8dfe9;
  font-family: var(--serif);
  font-size: 18px;
  animation: boss-scroll 38s linear infinite alternate;
}

.boss-marquee span::before {
  margin-right: 20px;
  color: var(--violet);
  content: "✦";
}

.release-path {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
}

.release-phase {
  padding: clamp(30px, 4vw, 52px);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(17,29,50,0.75), rgba(6,10,19,0.82));
}

.release-phase.is-current {
  border-color: rgba(89,200,255,0.32);
  box-shadow: inset 0 0 80px rgba(89,200,255,0.04);
}

.release-phase ul {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  color: #d2dae5;
  list-style: none;
}

.release-phase li::before {
  margin-right: 10px;
  color: var(--blue);
  content: "✦";
}

.path-bridge {
  display: flex;
  width: 120px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.path-bridge span {
  width: 1px;
  height: 80px;
  background: linear-gradient(transparent, var(--violet), transparent);
}

.path-bridge strong {
  color: #897aa8;
  font-size: 8px;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.pvp-feature {
  display: grid;
  grid-template-columns: 1.45fr 0.75fr;
  min-height: 520px;
  margin-top: 90px;
  overflow: hidden;
  border: 1px solid rgba(155,112,255,0.32);
  background: #090d18;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}

.pvp-feature > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pvp-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 4vw, 52px);
}

.pvp-copy h3 {
  font-size: clamp(34px, 4vw, 52px);
}

.pvp-copy > p:not(.eyebrow) {
  color: var(--muted);
}

.fair-play span {
  --accent: var(--violet);
}

.guild-callout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 80px;
  align-items: center;
  margin-top: 70px;
  padding: 48px 0;
  border-top: 1px solid var(--line-bright);
  border-bottom: 1px solid var(--line-bright);
}

.guild-callout h3 {
  margin-bottom: 0;
}

.guild-callout > p {
  color: var(--muted);
  font-size: 17px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  gap: 14px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  background: #070b13;
  cursor: zoom-in;
}

.gallery-item-wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.86);
  transition: filter 240ms ease, transform 600ms ease;
}

.gallery-item:hover img {
  filter: saturate(1.08) brightness(1);
  transform: scale(1.035);
}

.gallery-item span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 24px 20px 15px;
  background: linear-gradient(transparent, rgba(4,7,14,0.92));
  color: white;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
}

.studio-panel {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) 1.2fr;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(255,143,44,0.26);
  background: linear-gradient(130deg, #080b11, #101010);
}

.studio-logo {
  display: grid;
  place-items: center;
  padding: 45px;
  background: radial-gradient(circle, rgba(255,135,31,0.11), transparent 62%);
}

.studio-logo img {
  width: min(100%, 470px);
}

.studio-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(36px, 5vw, 70px);
}

.studio-copy p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: 17px;
}

.studio-copy .button {
  margin-top: 18px;
}

.finale {
  position: relative;
  display: grid;
  min-height: 72vh;
  place-items: center;
  overflow: hidden;
  text-align: center;
}

.finale::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #050810 0%, rgba(5,8,16,0.45) 45%, rgba(5,8,16,0.7) 100%);
  content: "";
}

.finale img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.finale > div {
  position: relative;
  z-index: 1;
  padding: 30px;
}

.finale h2 {
  max-width: 820px;
  font-size: clamp(48px, 7vw, 96px);
  text-shadow: 0 6px 35px rgba(0,0,0,0.6);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 34px;
  align-items: center;
  padding: 48px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #04070d;
  color: #758297;
  font-size: 11px;
}

.footer-wordmark {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--gold-light);
  font-family: var(--serif);
  text-transform: uppercase;
}

.footer-wordmark > span {
  color: var(--blue);
  font-size: 25px;
}

.footer-wordmark strong,
.footer-wordmark small {
  display: block;
}

.footer-wordmark small {
  color: #6f7d91;
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.18em;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 18px;
  color: #b1bdcc;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 4px;
}

.site-footer > p {
  margin: 0;
}

.site-footer > p:last-child {
  text-align: right;
}

.rift-dialog,
.gallery-dialog {
  width: min(1180px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(233,185,94,0.42);
  background: #050810;
  color: white;
  box-shadow: 0 30px 120px rgba(0,0,0,0.8);
}

.rift-dialog::backdrop,
.gallery-dialog::backdrop {
  background: rgba(2,4,9,0.9);
  backdrop-filter: blur(12px);
}

.dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 16px 24px;
  border-bottom: 1px solid var(--line);
}

.dialog-bar span {
  color: var(--gold);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.dialog-bar h2 {
  margin: 2px 0 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}

.dialog-bar button,
.gallery-close {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: white;
  cursor: pointer;
  font-size: 25px;
}

.rift-expedition {
  display: grid;
  min-height: min(690px, calc(100vh - 108px));
  grid-template-columns: minmax(0, 1.05fr) minmax(430px, 0.95fr);
}

.rift-visual {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 43%, rgba(173,99,255,0.34), transparent 10%),
    radial-gradient(circle at 50% 46%, rgba(89,200,255,0.19), transparent 31%),
    linear-gradient(150deg, #08152b 0%, #070a15 46%, #130a25 100%);
  isolation: isolate;
  transition: background 500ms ease;
}

.rift-visual::before,
.rift-visual::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.rift-visual::before {
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 45%, black, transparent 72%);
}

.rift-visual::after {
  z-index: -1;
  inset: 12% 8%;
  border: 1px solid rgba(115,196,255,0.11);
  border-radius: 50%;
  box-shadow: inset 0 0 90px rgba(86,119,255,0.1), 0 0 90px rgba(101,68,220,0.1);
  transform: rotate(-12deg);
}

.rift-visual[data-rift-mode="combat"] {
  background:
    radial-gradient(circle at 50% 43%, rgba(255,116,54,0.52), transparent 11%),
    radial-gradient(circle at 50% 46%, rgba(244,178,76,0.18), transparent 34%),
    linear-gradient(150deg, #25100b 0%, #080b15 50%, #2b0d13 100%);
}

.rift-visual[data-rift-mode="explore"] {
  background:
    radial-gradient(circle at 50% 43%, rgba(77,218,255,0.48), transparent 11%),
    radial-gradient(circle at 50% 46%, rgba(73,113,255,0.2), transparent 34%),
    linear-gradient(150deg, #071d2c 0%, #070b17 50%, #0a1735 100%);
}

.rift-visual[data-rift-mode="rebuild"] {
  background:
    radial-gradient(circle at 50% 43%, rgba(255,211,109,0.46), transparent 11%),
    radial-gradient(circle at 50% 46%, rgba(92,230,168,0.17), transparent 34%),
    linear-gradient(150deg, #172111 0%, #080c15 50%, #182111 100%);
}

.rift-orbit {
  position: absolute;
  z-index: 1;
  top: 43%;
  left: 50%;
  border: 1px solid rgba(167,208,255,0.28);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
  animation: rift-orbit 12s linear infinite;
}

.rift-orbit::after {
  position: absolute;
  top: 50%;
  left: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 18px var(--gold);
  content: "";
}

.rift-orbit-one {
  width: min(28vw, 360px);
  height: min(18vw, 230px);
}

.rift-orbit-two {
  width: min(36vw, 470px);
  height: min(27vw, 350px);
  border-color: rgba(185,127,255,0.2);
  animation-direction: reverse;
  animation-duration: 18s;
}

.rift-core {
  position: absolute;
  z-index: 3;
  top: 43%;
  left: 50%;
  display: grid;
  width: clamp(122px, 15vw, 184px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(219,195,255,0.52);
  border-radius: 44% 56% 46% 54% / 57% 42% 58% 43%;
  background: radial-gradient(circle, rgba(240,232,255,0.85) 0 4%, rgba(136,76,255,0.72) 8%, rgba(35,18,83,0.88) 42%, rgba(6,8,18,0.96) 71%);
  box-shadow: 0 0 40px rgba(155,112,255,0.62), inset 0 0 45px rgba(101,201,255,0.35);
  transform: translate(-50%, -50%) rotate(4deg);
  animation: rift-core 4.8s ease-in-out infinite alternate;
}

.rift-core span {
  position: absolute;
  bottom: 23%;
  color: rgba(255,255,255,0.55);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.rift-core strong {
  color: white;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  text-shadow: 0 0 20px white, 0 0 42px var(--violet);
}

.rift-visual.is-reacting .rift-core {
  animation: rift-react 650ms cubic-bezier(.2,.8,.2,1);
}

.rift-sparks i {
  position: absolute;
  z-index: 2;
  top: 43%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #cbdcff;
  box-shadow: 0 0 12px currentColor;
  opacity: 0.8;
  animation: rift-spark 3.8s ease-out infinite;
}

.rift-sparks i:nth-child(2) { animation-delay: -0.5s; transform: rotate(45deg); }
.rift-sparks i:nth-child(3) { animation-delay: -1s; transform: rotate(90deg); }
.rift-sparks i:nth-child(4) { animation-delay: -1.5s; transform: rotate(135deg); }
.rift-sparks i:nth-child(5) { animation-delay: -2s; transform: rotate(180deg); }
.rift-sparks i:nth-child(6) { animation-delay: -2.5s; transform: rotate(225deg); }
.rift-sparks i:nth-child(7) { animation-delay: -3s; transform: rotate(270deg); }
.rift-sparks i:nth-child(8) { animation-delay: -3.5s; transform: rotate(315deg); }

.rift-islands i {
  position: absolute;
  z-index: 1;
  display: block;
  width: 118px;
  height: 38px;
  border: 1px solid rgba(226,194,112,0.2);
  clip-path: polygon(0 18%, 72% 0, 100% 25%, 70% 56%, 54% 100%, 30% 62%, 5% 50%);
  background: linear-gradient(180deg, #344450, #111824 62%, #080b12);
  box-shadow: 0 12px 30px rgba(0,0,0,0.48);
  animation: island-drift 5s ease-in-out infinite alternate;
}

.rift-islands i:nth-child(1) { top: 25%; left: 10%; transform: rotate(-7deg); }
.rift-islands i:nth-child(2) { top: 63%; right: 8%; width: 148px; transform: rotate(5deg); animation-delay: -2s; }
.rift-islands i:nth-child(3) { bottom: 16%; left: 18%; width: 82px; transform: rotate(8deg); animation-delay: -3.5s; }

.rift-stability-visual {
  position: absolute;
  z-index: 5;
  right: 30px;
  bottom: 28px;
  left: 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 16px;
  align-items: center;
}

.rift-stability-visual > span {
  color: #9aaac0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.rift-stability-visual > div {
  grid-column: 1;
  height: 5px;
  overflow: hidden;
  background: rgba(255,255,255,0.1);
}

.rift-stability-visual i {
  display: block;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--blue), var(--gold-light));
  box-shadow: 0 0 18px var(--blue);
  transition: width 650ms cubic-bezier(.2,.75,.2,1);
}

.rift-stability-visual strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: white;
  font-family: var(--serif);
  font-size: 28px;
}

.rift-console {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(28px, 4vw, 52px);
  background:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    #080d18;
  background-size: 100% 44px;
}

.rift-briefing .eyebrow {
  margin-bottom: 13px;
}

.rift-briefing h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 500;
  line-height: 1.06;
}

.rift-briefing > p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.rift-status-strip {
  display: grid;
  margin: 24px 0;
  border: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}

.rift-status-strip > div {
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid var(--line);
}

.rift-status-strip > div:last-child {
  border-right: 0;
}

.rift-status-strip span,
.rift-reward span {
  display: block;
  color: #74849a;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rift-status-strip strong {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: #dce6f4;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rift-choices {
  display: grid;
  margin: 0;
  padding: 0;
  border: 0;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
}

.rift-choices legend {
  width: 100%;
  margin-bottom: 9px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.rift-choices button {
  display: grid;
  min-height: 112px;
  place-items: center;
  padding: 13px 8px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
  color: #dfe6f1;
  cursor: pointer;
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.rift-choices button:hover,
.rift-choices button.is-active {
  border-color: var(--line-bright);
  background: rgba(233,185,94,0.08);
  transform: translateY(-3px);
}

.rift-choices button > span {
  color: var(--blue);
  font-size: 21px;
}

.rift-choices button strong {
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
}

.rift-choices button small {
  color: #76859a;
  font-size: 8px;
}

.rift-result {
  position: relative;
  min-height: 156px;
  margin-top: 18px;
  padding: 18px 20px;
  overflow: hidden;
  border-left: 2px solid var(--violet);
  background: linear-gradient(90deg, rgba(125,78,230,0.12), transparent);
}

.rift-result.is-revealed {
  animation: result-arrive 450ms ease both;
}

.rift-result > span {
  color: var(--gold);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.rift-result h4 {
  margin: 5px 0 3px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}

.rift-result > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.rift-reward {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.rift-reward strong {
  color: var(--gold-light);
  font-size: 10px;
  text-align: right;
}

.rift-another {
  align-self: flex-end;
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: none;
  color: #a8b7ca;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rift-another:hover {
  color: white;
}

.gallery-dialog {
  overflow: auto;
  text-align: center;
}

.gallery-close {
  position: sticky;
  z-index: 2;
  top: 14px;
  float: right;
  margin: 14px 14px -56px 0;
  background: rgba(5,8,16,0.82);
}

.gallery-dialog img {
  width: 100%;
  max-height: calc(100vh - 90px);
  object-fit: contain;
}

.gallery-dialog p {
  margin: 0;
  padding: 16px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms ease, transform 800ms cubic-bezier(.2,.75,.2,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hero-breathe {
  from { transform: scale(1.01); }
  to { transform: scale(1.055); }
}

@keyframes map-pulse {
  0%, 100% { transform: scale(0.88); opacity: 0.35; }
  50% { transform: scale(1.08); opacity: 0.9; }
}

@keyframes boss-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% + 100vw - 80px)); }
}

@keyframes rift-orbit {
  from { transform: translate(-50%, -50%) rotate(-18deg); }
  to { transform: translate(-50%, -50%) rotate(342deg); }
}

@keyframes rift-core {
  from { transform: translate(-50%, -50%) rotate(-3deg) scale(0.94); border-radius: 44% 56% 46% 54% / 57% 42% 58% 43%; }
  to { transform: translate(-50%, -50%) rotate(7deg) scale(1.05); border-radius: 54% 46% 58% 42% / 44% 57% 43% 56%; }
}

@keyframes rift-react {
  0% { transform: translate(-50%, -50%) scale(0.84) rotate(-8deg); }
  55% { transform: translate(-50%, -50%) scale(1.17) rotate(8deg); filter: brightness(1.7); }
  100% { transform: translate(-50%, -50%) scale(1) rotate(2deg); }
}

@keyframes rift-spark {
  0% { translate: 0 0; opacity: 0; }
  18% { opacity: 0.9; }
  100% { translate: 210px 0; opacity: 0; }
}

@keyframes island-drift {
  from { margin-top: -7px; }
  to { margin-top: 8px; }
}

@keyframes result-arrive {
  from { opacity: 0.35; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1160px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    justify-self: end;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
  }

  .nav-toggle span:not(.sr-only) {
    width: 18px;
    height: 1px;
    background: white;
  }

  .site-nav {
    position: absolute;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 16px max(20px, 5vw) 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(5,8,16,0.98);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .nav-watch {
    display: none;
  }

  .hero-selector {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-tab:nth-child(3) {
    border-right: 0;
  }

  .hero-detail {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .mount-card {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .mount-art {
    min-height: 0;
  }

  .mount-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .system-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dungeon-console {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .dungeon-list {
    grid-column: 1 / -1;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: none;
    border-top: 1px solid var(--line);
  }

  .dungeon-tab {
    min-height: 58px;
    border-right: 1px solid var(--line);
  }

  .pvp-feature {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

@media (max-width: 800px) {
  .hero {
    min-height: max(760px, 100svh);
  }

  .hero-backdrop {
    object-position: 88% center;
  }

  .hero-wash {
    background:
      linear-gradient(90deg, rgba(5,8,16,0.9), rgba(5,8,16,0.42) 72%, rgba(5,8,16,0.58)),
      linear-gradient(0deg, #050810 0%, rgba(5,8,16,0.78) 48%, rgba(5,8,16,0.4) 100%);
  }

  .hero-content {
    margin: 0 auto 52px;
  }

  .hero h1 {
    font-size: clamp(40px, 11.2vw, 62px);
  }

  .hero-scroll {
    display: none;
  }

  .rift-dialog {
    overflow: auto;
  }

  .rift-expedition {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .rift-visual {
    min-height: 390px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rift-orbit-one {
    width: min(64vw, 360px);
    height: min(40vw, 230px);
  }

  .rift-orbit-two {
    width: min(82vw, 470px);
    height: min(60vw, 350px);
  }

  .story-chapter,
  .story-chapter-reverse {
    grid-template-columns: 1fr;
  }

  .story-chapter-reverse .story-image {
    order: 0;
  }

  .story-image::after,
  .story-chapter-reverse .story-image::after {
    background: linear-gradient(0deg, var(--panel-solid), transparent 42%);
  }

  .hero-selector {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-tab:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .hero-tab:nth-child(even) {
    border-right: 0;
  }

  .hero-detail,
  .mount-card {
    grid-template-columns: 1fr;
  }

  .hero-portrait {
    min-height: 520px;
  }

  .mount-art {
    height: auto;
    min-height: 0;
    aspect-ratio: 467 / 471;
    object-fit: contain;
  }

  .world-atlas {
    grid-template-columns: 1fr;
  }

  .world-map {
    min-height: 430px;
  }

  .world-map::after {
    background: linear-gradient(0deg, var(--panel-solid), transparent 36%);
  }

  .region-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .world-stats,
  .system-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .system-card-wide {
    grid-template-columns: 1fr;
  }

  .system-card-wide img {
    min-height: 340px;
  }

  .dungeon-console {
    grid-template-columns: 1fr;
  }

  .dungeon-visual {
    min-height: 460px;
  }

  .dungeon-info {
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .dungeon-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .release-path {
    grid-template-columns: 1fr;
  }

  .path-bridge {
    width: auto;
    height: 100px;
    flex-direction: row;
  }

  .path-bridge span {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--violet), transparent);
  }

  .path-bridge strong {
    writing-mode: initial;
  }

  .pvp-feature,
  .guild-callout,
  .studio-panel {
    grid-template-columns: 1fr;
  }

  .pvp-feature > img {
    min-height: 400px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item-wide {
    grid-column: span 2;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav,
  .site-footer > p:last-child {
    justify-content: start;
    text-align: left;
  }
}

@media (max-width: 520px) {
  :root {
    --header-height: 66px;
  }

  .site-header {
    padding-right: 16px;
    padding-left: 16px;
  }

  .wordmark {
    min-width: auto;
  }

  .wordmark strong {
    font-size: 14px;
  }

  .section {
    width: min(var(--max), calc(100% - 28px));
  }

  .section-deep {
    width: 100%;
    padding-right: 14px;
    padding-left: 14px;
  }

  .hero-content {
    width: calc(100% - 28px);
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .hero-pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .rift-dialog {
    width: calc(100% - 16px);
    max-height: calc(100vh - 16px);
  }

  .rift-visual {
    min-height: 320px;
  }

  .rift-console {
    padding: 24px 16px;
  }

  .rift-status-strip {
    grid-template-columns: 1fr;
  }

  .rift-status-strip > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rift-status-strip > div:last-child {
    border-bottom: 0;
  }

  .rift-choices {
    grid-template-columns: 1fr;
  }

  .rift-choices button {
    min-height: 72px;
    grid-template-columns: 34px 1fr;
    justify-items: start;
    text-align: left;
  }

  .rift-choices button small {
    grid-column: 2;
  }

  .rift-reward {
    align-items: flex-start;
    flex-direction: column;
  }

  .rift-reward strong {
    text-align: left;
  }

  .section-heading > p:last-child {
    font-size: 16px;
  }

  .story-oath {
    padding: 42px 18px;
  }

  .hero-tab {
    min-height: 88px;
    font-size: 13px;
  }

  .hero-portrait {
    min-height: 430px;
  }

  .hero-kit,
  .world-stats,
  .system-grid {
    grid-template-columns: 1fr;
  }

  .world-stats div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .mount-art {
    min-height: 0;
  }

  .region-tabs {
    grid-template-columns: 1fr;
  }

  .system-card-wide > div,
  .system-card,
  .hero-biography,
  .pvp-copy,
  .studio-copy {
    padding: 26px;
  }

  .dungeon-list {
    grid-template-columns: 1fr;
  }

  .dungeon-tab {
    min-height: 52px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .gallery-item-wide {
    grid-column: span 1;
  }

  .studio-logo {
    padding: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
