:root {
  --void: #05050d;
  --void-2: #150f35;
  --void-3: #24145a;
  --panel: rgba(10, 12, 34, 0.84);
  --panel-strong: rgba(12, 14, 40, 0.96);
  --ink: #f7fbff;
  --muted: #a9c2dc;
  --soft: #dffbff;
  --line: rgba(37, 255, 208, 0.3);
  --line-strong: rgba(255, 213, 106, 0.46);
  --aurora: #25ffd0;
  --blue: #2f8cff;
  --gold: #ffd56a;
  --pink: #ff4ed1;
  --shadow: 0 28px 92px rgba(0, 0, 0, 0.52);
  --max: 1180px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 72% 12%, rgba(47, 140, 255, 0.2), transparent 30%),
    radial-gradient(circle at 16% 22%, rgba(37, 255, 208, 0.13), transparent 28%),
    radial-gradient(circle at 84% 74%, rgba(255, 78, 209, 0.1), transparent 30%),
    linear-gradient(135deg, rgba(37, 255, 208, 0.08) 0 1px, transparent 1px 48px),
    linear-gradient(45deg, rgba(47, 140, 255, 0.07) 0 1px, transparent 1px 52px),
    linear-gradient(180deg, var(--void) 0%, var(--void-2) 48%, #070616 100%);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.72;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    conic-gradient(from 130deg at 50% 12%, transparent 0 24%, rgba(37, 255, 208, 0.1) 25%, transparent 28% 54%, rgba(47, 140, 255, 0.1) 55%, transparent 58% 100%),
    linear-gradient(90deg, transparent 0 18%, rgba(37, 255, 208, 0.1) 18.1%, transparent 18.4% 48%, rgba(255, 78, 209, 0.08) 48.1%, transparent 48.4% 100%),
    linear-gradient(180deg, rgba(255, 213, 106, 0.06), transparent 34%, rgba(47, 140, 255, 0.08) 82%, transparent);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(37, 255, 208, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 140, 255, 0.07) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 84%);
  pointer-events: none;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  color: #061014;
  background: var(--aurora);
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(37, 255, 208, 0.2);
  background: linear-gradient(90deg, rgba(5, 5, 13, 0.9), rgba(21, 15, 53, 0.82));
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(var(--max), calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: block;
  color: transparent;
  font-size: 0;
  text-indent: -9999px;
  overflow: hidden;
  background:
    url("../img/favicon.ico") center/72% 72% no-repeat,
    conic-gradient(from 0deg, rgba(37, 255, 208, 0.4), rgba(47, 140, 255, 0.28), rgba(255, 78, 209, 0.3), rgba(255, 213, 106, 0.42), rgba(37, 255, 208, 0.4));
  box-shadow: 0 0 30px rgba(37, 255, 208, 0.2), inset 0 0 18px rgba(47, 140, 255, 0.16);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text span:first-child {
  font-size: 1rem;
}

.brand-text span:last-child {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.primary-nav a,
.nav-action {
  min-height: 40px;
  padding: 8px 9px;
  color: var(--soft);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.88rem;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.nav-action:hover,
.nav-action:focus-visible {
  color: #081014;
  border-color: rgba(255, 213, 106, 0.58);
  background: linear-gradient(135deg, var(--gold), var(--aurora));
  outline: none;
}

.nav-action {
  color: #0b1018;
  background: linear-gradient(135deg, var(--gold), var(--pink));
  box-shadow: 0 10px 36px rgba(255, 78, 209, 0.2), 0 0 18px rgba(255, 213, 106, 0.12);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(37, 255, 208, 0.06);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.section--tight {
  padding: 58px 0;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--aurora);
  font-size: 0.86rem;
  font-weight: 700;
}

.section-kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.section-head {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-head h2,
.page-head h1,
.hero-copy h1 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-head h2 {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
}

.section-head p,
.page-head p,
.hero-copy p {
  color: var(--muted);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(135deg, rgba(37, 255, 208, 0.08), rgba(47, 140, 255, 0.06));
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  border-color: var(--gold);
  outline: none;
}

.btn-primary {
  color: #071018;
  border-color: rgba(255, 213, 106, 0.64);
  background: linear-gradient(135deg, var(--gold), var(--pink) 46%, var(--aurora));
  box-shadow: 0 14px 44px rgba(255, 78, 209, 0.18), 0 0 28px rgba(37, 255, 208, 0.14);
  font-weight: 800;
}

.btn-ghost {
  background: linear-gradient(135deg, rgba(5, 5, 13, 0.78), rgba(36, 20, 90, 0.56));
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  padding: 72px 0 52px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 5, 13, 0.96) 0%, rgba(21, 15, 53, 0.8) 38%, rgba(36, 20, 90, 0.42) 100%),
    url("../img/hero-character-lineup.webp");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 220px;
  background: linear-gradient(180deg, transparent, var(--void));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: 40px;
}

.hero-copy {
  max-width: 720px;
}

.hero-copy h1 {
  font-size: clamp(3rem, 9vw, 6.8rem);
}

.hero-subtitle {
  margin: 10px 0 16px;
  color: var(--aurora);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
}

.hero-lead {
  max-width: 640px;
  margin: 0 0 26px;
  font-size: 1.05rem;
}

.hero-badges,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-badges {
  margin: 22px 0 0;
}

.badge,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(37, 255, 208, 0.24);
  border-radius: var(--radius);
  color: var(--soft);
  background: linear-gradient(135deg, rgba(10, 12, 34, 0.72), rgba(36, 20, 90, 0.42));
  font-size: 0.86rem;
}

.realm-compass {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1;
  margin-inline: auto;
  border: 1px solid rgba(255, 213, 106, 0.5);
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 12deg, rgba(37, 255, 208, 0.18) 0 8deg, transparent 8deg 24deg, rgba(47, 140, 255, 0.12) 24deg 32deg, transparent 32deg 40deg),
    conic-gradient(from 12deg, rgba(37, 255, 208, 0.18), rgba(47, 140, 255, 0.13), rgba(255, 78, 209, 0.18), rgba(255, 213, 106, 0.17), rgba(37, 255, 208, 0.18)),
    rgba(5, 5, 13, 0.58);
  box-shadow: inset 0 0 88px rgba(37, 255, 208, 0.14), inset 0 0 34px rgba(255, 78, 209, 0.08), 0 30px 96px rgba(0, 0, 0, 0.52);
  animation: compass-turn 42s linear infinite;
}

.realm-compass::before,
.realm-compass::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(37, 255, 208, 0.28);
  border-radius: 50%;
}

.realm-compass::after {
  inset: 28%;
  border-color: rgba(255, 78, 209, 0.32);
}

.realm-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  min-height: 56px;
  display: grid;
  place-items: center;
  translate: -50% -50%;
  border: 1px solid rgba(255, 213, 106, 0.58);
  border-radius: 50%;
  color: var(--ink);
  background: radial-gradient(circle, rgba(36, 20, 90, 0.94), rgba(5, 5, 13, 0.92));
  box-shadow: 0 0 30px rgba(47, 140, 255, 0.2), inset 0 0 18px rgba(37, 255, 208, 0.1);
  font-weight: 800;
  animation: compass-counter 42s linear infinite;
}

.realm-dot:nth-child(1) { transform: rotate(0deg) translateY(-170px); }
.realm-dot:nth-child(2) { transform: rotate(40deg) translateY(-170px); }
.realm-dot:nth-child(3) { transform: rotate(80deg) translateY(-170px); }
.realm-dot:nth-child(4) { transform: rotate(120deg) translateY(-170px); }
.realm-dot:nth-child(5) { transform: rotate(160deg) translateY(-170px); }
.realm-dot:nth-child(6) { transform: rotate(200deg) translateY(-170px); }
.realm-dot:nth-child(7) { transform: rotate(240deg) translateY(-170px); }
.realm-dot:nth-child(8) { transform: rotate(280deg) translateY(-170px); }
.realm-dot:nth-child(9) { transform: rotate(320deg) translateY(-170px); }

@keyframes compass-turn {
  to { transform: rotate(360deg); }
}

@keyframes compass-counter {
  to { rotate: -360deg; }
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 28px;
  align-items: center;
}

.two-col.reverse {
  grid-template-columns: minmax(320px, 1.05fr) minmax(0, 0.95fr);
}

.card,
.fact-card,
.index-card,
.faq-item,
.timeline-item,
.step-card,
.notice-panel {
  border: 1px solid rgba(37, 255, 208, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(37, 255, 208, 0.045), transparent 34%),
    linear-gradient(315deg, rgba(47, 140, 255, 0.06), transparent 44%),
    var(--panel);
  box-shadow: var(--shadow);
}

.card,
.fact-card,
.index-card,
.step-card,
.notice-panel {
  padding: 22px;
}

.card h3,
.fact-card h3,
.index-card h3,
.step-card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.card p,
.fact-card p,
.index-card p,
.step-card p,
.timeline-item p,
.notice-panel p {
  margin: 0;
  color: var(--muted);
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fact-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
}

.image-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 213, 106, 0.36);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(37, 255, 208, 0.08), transparent 36%),
    rgba(5, 5, 13, 0.72);
  box-shadow: var(--shadow);
}

.image-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.image-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(37, 255, 208, 0.22);
  border-radius: var(--radius);
  color: var(--soft);
  background: linear-gradient(135deg, rgba(5, 5, 13, 0.78), rgba(21, 15, 53, 0.72));
  backdrop-filter: blur(10px);
  font-size: 0.88rem;
}

.feature-list,
.clean-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.feature-list li,
.clean-list li {
  position: relative;
  padding-left: 22px;
  margin: 10px 0;
  color: var(--muted);
}

.feature-list li::before,
.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  background: rgba(255, 213, 106, 0.24);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
}

.timeline-date {
  color: var(--gold);
  font-weight: 800;
}

.index-grid,
.guide-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.index-card {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.index-card:hover,
.index-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--gold);
  outline: none;
}

.index-card span {
  margin-top: 18px;
  color: var(--aurora);
  font-weight: 800;
}

.faq-stack {
  display: grid;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
}

.faq-item summary {
  min-height: 58px;
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--aurora);
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
}

.page-hero {
  padding: 78px 0 42px;
  background:
    linear-gradient(90deg, rgba(5, 5, 13, 0.92), rgba(21, 15, 53, 0.78)),
    url("../img/story-cavern-gate.webp");
  background-size: cover;
  background-position: center;
}

.page-head {
  max-width: 820px;
}

.page-head h1 {
  font-size: clamp(2.3rem, 7vw, 4.6rem);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumbs a {
  color: var(--aurora);
  text-decoration: none;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.meta-chip {
  padding: 6px 10px;
  border: 1px solid rgba(37, 255, 208, 0.24);
  border-radius: var(--radius);
  color: var(--soft);
  background: linear-gradient(135deg, rgba(10, 12, 34, 0.76), rgba(36, 20, 90, 0.45));
  font-size: 0.9rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(37, 255, 208, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(47, 140, 255, 0.05), transparent 42%),
    var(--panel);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(37, 255, 208, 0.16);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--gold);
  width: 190px;
}

td {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid rgba(37, 255, 208, 0.2);
  padding: 42px 0;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(5, 5, 13, 0.84), rgba(21, 15, 53, 0.78));
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: 28px;
  align-items: start;
}

.footer-links,
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a,
.friend-links a {
  color: var(--soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(37, 255, 208, 0.28);
}

.friend-links a:hover,
.footer-links a:hover {
  color: var(--gold);
}

.source-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.article-flow {
  max-width: 900px;
}

.article-flow p {
  color: var(--muted);
}

.article-flow h2 {
  margin: 44px 0 12px;
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
}

.article-flow h3 {
  margin: 24px 0 8px;
  color: var(--soft);
}

.callout {
  border: 1px solid rgba(255, 213, 106, 0.34);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--soft);
  background:
    linear-gradient(135deg, rgba(255, 213, 106, 0.1), transparent 38%),
    linear-gradient(315deg, rgba(255, 78, 209, 0.08), transparent 44%),
    var(--panel);
}

.route-card {
  border-left: 3px solid var(--gold);
}

.source-tier {
  display: grid;
  gap: 12px;
  counter-reset: source-tier;
}

.source-tier .card {
  position: relative;
  padding-left: 58px;
}

.source-tier .card::before {
  counter-increment: source-tier;
  content: counter(source-tier);
  position: absolute;
  left: 18px;
  top: 22px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 213, 106, 0.42);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(5, 5, 13, 0.7);
  font-weight: 800;
}

.download-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 5, 13, 0.78);
  backdrop-filter: blur(14px);
}

.download-dialog {
  width: min(460px, 100%);
  border: 1px solid rgba(255, 213, 106, 0.42);
  border-radius: var(--radius);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.download-dialog header,
.download-dialog footer {
  padding: 16px 18px;
}

.download-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(37, 255, 208, 0.2);
}

.download-dialog h2 {
  margin: 0;
  font-size: 1.1rem;
}

.download-dialog .modal-close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(37, 255, 208, 0.22);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(37, 255, 208, 0.06);
  cursor: pointer;
}

.download-dialog .modal-body {
  padding: 18px;
  color: var(--muted);
}

.download-dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid rgba(37, 255, 208, 0.2);
}

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

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-block;
  }

  .primary-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(5, 5, 13, 0.98), rgba(21, 15, 53, 0.96));
  }

  body.nav-open .primary-nav {
    display: flex;
  }

  .primary-nav a,
  .nav-action {
    width: 100%;
    text-align: left;
  }

  .hero-grid,
  .two-col,
  .two-col.reverse,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .realm-compass {
    width: min(86vw, 360px);
  }

  .realm-dot:nth-child(1) { transform: rotate(0deg) translateY(-145px); }
  .realm-dot:nth-child(2) { transform: rotate(40deg) translateY(-145px); }
  .realm-dot:nth-child(3) { transform: rotate(80deg) translateY(-145px); }
  .realm-dot:nth-child(4) { transform: rotate(120deg) translateY(-145px); }
  .realm-dot:nth-child(5) { transform: rotate(160deg) translateY(-145px); }
  .realm-dot:nth-child(6) { transform: rotate(200deg) translateY(-145px); }
  .realm-dot:nth-child(7) { transform: rotate(240deg) translateY(-145px); }
  .realm-dot:nth-child(8) { transform: rotate(280deg) translateY(-145px); }
  .realm-dot:nth-child(9) { transform: rotate(320deg) translateY(-145px); }

  .info-grid,
  .index-grid,
  .guide-grid,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .header-inner,
  .container {
    width: min(100% - 24px, var(--max));
  }

  .brand-text span:last-child {
    display: none;
  }

  .section {
    padding: 62px 0;
  }

  .hero {
    min-height: auto;
    padding: 54px 0 44px;
  }

  .hero-grid {
    gap: 30px;
  }

  .hero-copy h1 {
    font-size: clamp(2.8rem, 16vw, 4.6rem);
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(5, 5, 13, 0.94) 0%, rgba(21, 15, 53, 0.76) 58%, rgba(5, 5, 13, 0.94) 100%),
      url("../img/hero-character-lineup.webp");
    background-size: cover;
    background-position: center top;
  }

  .info-grid,
  .fact-grid,
  .index-grid,
  .guide-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .realm-compass {
    width: min(82vw, 300px);
  }

  .realm-dot {
    width: 44px;
    min-height: 44px;
    font-size: 0.88rem;
  }

  .realm-dot:nth-child(1) { transform: rotate(0deg) translateY(-122px); }
  .realm-dot:nth-child(2) { transform: rotate(40deg) translateY(-122px); }
  .realm-dot:nth-child(3) { transform: rotate(80deg) translateY(-122px); }
  .realm-dot:nth-child(4) { transform: rotate(120deg) translateY(-122px); }
  .realm-dot:nth-child(5) { transform: rotate(160deg) translateY(-122px); }
  .realm-dot:nth-child(6) { transform: rotate(200deg) translateY(-122px); }
  .realm-dot:nth-child(7) { transform: rotate(240deg) translateY(-122px); }
  .realm-dot:nth-child(8) { transform: rotate(280deg) translateY(-122px); }
  .realm-dot:nth-child(9) { transform: rotate(320deg) translateY(-122px); }

  .btn {
    width: 100%;
  }

  .download-dialog footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

.download-confirm-trigger {
  cursor: pointer;
  text-decoration: none;
}

.download-confirm-overlay {
  --download-confirm-panel: #0c0e28;
  --download-confirm-text: #f7fbff;
  --download-confirm-muted: #a9c2dc;
  --download-confirm-accent: #25ffd0;
  --download-confirm-accent-text: #05050d;
  --download-confirm-line: rgba(37,255,208,.3);
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, .72);
}

.download-confirm-dialog {
  width: min(100%, 30rem);
  padding: 1.4rem;
  color: var(--download-confirm-text);
  background: var(--download-confirm-panel);
  border: 1px solid var(--download-confirm-line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .38);
}

.download-confirm-dialog h2 {
  margin: 0 0 .8rem;
  color: inherit;
  font-size: 1.2rem;
}

.download-confirm-dialog p {
  margin: 0;
  color: var(--download-confirm-muted);
  line-height: 1.7;
}

.download-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: .65rem;
  margin-top: 1.3rem;
}

.download-confirm-button {
  min-height: 2.65rem;
  padding: .55rem .95rem;
  color: var(--download-confirm-text);
  background: transparent;
  border: 1px solid var(--download-confirm-line);
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
}

.download-confirm-button-primary {
  color: var(--download-confirm-accent-text);
  background: var(--download-confirm-accent);
  border-color: var(--download-confirm-accent);
  font-weight: 700;
}

.download-confirm-button:focus-visible {
  outline: 2px solid var(--download-confirm-accent);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .download-confirm-dialog {
    padding: 1.1rem;
  }
}
