:root {
  color-scheme: light;
  --plum: #4a1d55;
  --plum-deep: #180d27;
  --plum-soft: #6c3b7a;
  --cream: #fff8e8;
  --cream-deep: #f8e9c8;
  --orange: #ff7640;
  --orange-dark: #e9522f;
  --gold: #ffd864;
  --cyan: #51d2df;
  --cyan-dark: #159aaa;
  --sky: #c8efff;
  --ink: #36163f;
  --muted: #735d76;
  --white: #fffdf5;
  --content: 1180px;
  --shadow: 0 14px 0 rgba(74, 29, 85, 0.14), 0 24px 50px rgba(74, 29, 85, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: "Trebuchet MS", "Avenir Next", Avenir, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.58;
}

img { max-width: 100%; }
a { color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 4px solid var(--cyan);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-150%);
  border-radius: 12px;
  background: var(--plum-deep);
  color: white;
}

.skip-link:focus { transform: none; }

.site-header {
  position: absolute;
  z-index: 20;
  top: 18px;
  left: 50%;
  width: min(calc(100% - 36px), var(--content));
  min-height: 72px;
  padding: 10px 16px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 3px solid rgba(255, 248, 232, 0.9);
  border-radius: 24px;
  background: rgba(74, 29, 85, 0.91);
  box-shadow: 0 8px 0 rgba(31, 14, 44, 0.22);
  backdrop-filter: blur(12px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img,
.footer-brand img {
  flex: none;
  border: 2px solid var(--gold);
  border-radius: 14px;
  box-shadow: 0 4px 0 rgba(17, 8, 28, 0.32);
}

.brand span {
  color: var(--cream);
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0.07em;
}

nav {
  display: flex;
  align-items: center;
  gap: 7px;
}

nav a {
  padding: 9px 13px;
  border-radius: 12px;
  color: #fff4c7;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

nav a:hover,
nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.13);
  color: var(--gold);
}

.hero {
  position: relative;
  min-height: min(88svh, 900px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 8px solid var(--cream);
}

.hero-art,
.hero-wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-art { object-fit: cover; object-position: center; }

.hero-wash {
  background:
    linear-gradient(90deg, rgba(49, 18, 59, 0.90) 0%, rgba(74, 29, 85, 0.67) 37%, rgba(74, 29, 85, 0.08) 68%),
    linear-gradient(0deg, rgba(65, 24, 72, 0.62) 0%, transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  padding: 170px 0 94px;
}

.chapter-pill {
  display: inline-flex;
  margin-bottom: 28px;
  padding: 10px 20px;
  border: 3px solid var(--gold);
  border-radius: 999px;
  background: var(--plum);
  box-shadow: 0 6px 0 rgba(44, 17, 53, 0.36);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3 { margin: 0; line-height: 1.05; }

.hero h1 {
  max-width: 720px;
  color: var(--cream);
  font-size: clamp(4.2rem, 9vw, 8.6rem);
  letter-spacing: -0.055em;
  text-shadow: 0 8px 0 rgba(42, 15, 51, 0.30), 0 18px 40px rgba(30, 8, 37, 0.42);
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 34px;
  color: #fff3d0;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 12px 24px;
  border: 3px solid #fff1c3;
  border-radius: 18px;
  box-shadow: 0 7px 0 rgba(91, 35, 55, 0.40);
  font-size: 0.9rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.button span { font-size: 1.5rem; line-height: 0; }
.button-primary { background: var(--orange); color: white; }
.button-primary:hover { background: #ff8e50; transform: translateY(-2px); }

.release-status {
  color: #fff2c8;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.spark {
  position: absolute;
  z-index: 2;
  width: 18px;
  height: 18px;
  rotate: 45deg;
  border: 2px solid #fff8dc;
  background: var(--gold);
  box-shadow: 0 0 22px #fff;
  animation: float 4s ease-in-out infinite;
}

.spark-one { top: 29%; right: 14%; }
.spark-two { top: 49%; right: 39%; width: 11px; height: 11px; animation-delay: -1.4s; }
.spark-three { top: 21%; right: 31%; width: 8px; height: 8px; animation-delay: -2.7s; }

@keyframes float { 50% { translate: 0 -14px; rotate: 135deg; } }

.heartshard-strip {
  position: relative;
  z-index: 4;
  width: min(calc(100% - 40px), var(--content));
  min-height: 96px;
  margin: -35px auto 0;
  padding: 17px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 8px;
  border: 4px solid var(--gold);
  border-radius: 26px;
  background: var(--plum);
  box-shadow: var(--shadow);
  color: var(--cream);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-align: center;
}

.heartshard-strip span + span { border-left: 1px solid rgba(255, 216, 100, 0.36); }
.heartshard-strip b { margin-right: 7px; color: var(--gold); font-size: 1.1rem; }

.journey-section {
  padding: 120px max(20px, calc((100% - var(--content)) / 2));
  background:
    radial-gradient(circle at 8% 10%, rgba(81, 210, 223, 0.25), transparent 27rem),
    linear-gradient(180deg, #d9f3ff, #fff4df 72%);
}

.section-heading { max-width: 790px; margin-bottom: 48px; }
.section-heading h2,
.flight-copy h2,
.heartforge-heading h2,
.boss-copy h2,
.fair-play h2,
.document-header h1 { font-size: clamp(2.5rem, 5.4vw, 5rem); letter-spacing: -0.04em; }

.section-heading > p:last-child,
.flight-copy > p,
.boss-copy > p,
.fair-play-copy p {
  color: var(--muted);
  font-weight: 650;
}

.feature-window,
.game-frame,
.boss-frame {
  margin: 0;
  overflow: hidden;
  border: 6px solid var(--cream);
  border-radius: 30px;
  background: var(--plum);
  box-shadow: var(--shadow);
}

.feature-window > img,
.game-frame > img,
.boss-frame > img { display: block; width: 100%; }

.feature-window figcaption {
  padding: 19px 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #fff1c7;
  font-size: 0.8rem;
  font-weight: 800;
}

.feature-window figcaption b { color: var(--gold); }

.objective-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.objective-card {
  padding: 28px;
  border: 3px solid var(--plum);
  border-radius: 24px;
  box-shadow: 0 8px 0 rgba(74, 29, 85, 0.13);
  background: var(--cream);
}

.objective-card h3 { margin-top: 14px; font-size: 1.35rem; }
.objective-card p { margin-bottom: 0; color: var(--muted); font-size: 0.92rem; }

.objective-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 3px solid var(--plum);
  border-radius: 16px;
  color: white;
  font-size: 1.2rem;
}

.objective-orange .objective-icon { background: var(--orange); }
.objective-cyan .objective-icon { background: var(--cyan); }
.objective-purple .objective-icon { background: var(--plum-soft); }

.flight-section,
.boss-section {
  padding: 105px max(20px, calc((100% - var(--content)) / 2));
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: 64px;
  background: var(--cream);
}

.feature-list {
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 13px;
  list-style: none;
  color: var(--plum);
  font-size: 0.9rem;
  font-weight: 850;
}

.feature-list li::before { content: "◆"; margin-right: 11px; color: var(--orange); }

.game-frame { border-color: var(--gold); border-radius: 28px; }
.game-frame figcaption {
  padding: 14px 20px;
  color: var(--gold);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-align: center;
}

.heartforge-section {
  padding: 100px max(20px, calc((100% - var(--content)) / 2));
  background:
    radial-gradient(circle at 80% 20%, rgba(81, 210, 223, 0.20), transparent 26rem),
    var(--plum-deep);
}

.heartforge-card {
  padding: 34px;
  border: 4px solid var(--orange);
  border-radius: 30px;
  background: #171125;
  box-shadow: 0 15px 0 rgba(0, 0, 0, 0.18);
  color: var(--cream);
}

.heartforge-heading {
  margin-bottom: 30px;
  padding-bottom: 24px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 2px solid rgba(255, 118, 64, 0.42);
}

.shard-counter {
  padding: 12px 17px;
  border: 2px solid var(--gold);
  border-radius: 16px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 950;
}

.heartforge-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 38px;
}

.heartforge-content img {
  display: block;
  border: 2px solid var(--cyan);
  border-radius: 20px;
}

.heartforge-content h3 { color: var(--cyan); font-size: 1.55rem; }
.heartforge-content p { color: #cbbdd0; }

.power-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.power-tags span {
  padding: 7px 10px;
  border: 1px solid var(--cyan);
  border-radius: 9px;
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 900;
}

.no-purchases { color: var(--gold) !important; font-size: 0.74rem; font-weight: 900; }

.boss-section {
  grid-template-columns: 1.25fr 0.75fr;
  background: linear-gradient(135deg, #ffe4c9, #f4d6ed);
}

.boss-frame { border-color: var(--orange); }
.boss-health { height: 16px; margin-top: 30px; overflow: hidden; border: 2px solid var(--orange); border-radius: 999px; background: #edd5e9; }
.boss-health span { display: block; width: 84%; height: 100%; background: linear-gradient(90deg, var(--orange), #d23c7d); }

.fair-play {
  padding: 105px max(20px, calc((100% - var(--content)) / 2));
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: end;
  gap: 68px;
  background: var(--cream);
}

.text-link { color: var(--orange-dark); font-size: 0.78rem; font-weight: 950; letter-spacing: 0.05em; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

footer {
  padding: 34px max(20px, calc((100% - var(--content)) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-top: 4px solid var(--gold);
  background: var(--plum);
  color: #cab9cc;
  font-size: 0.78rem;
}

.footer-brand { color: var(--cream); }
.footer-brand div { display: grid; }
.footer-brand strong { letter-spacing: 0.08em; }
.footer-brand span { color: var(--gold); font-size: 0.63rem; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: #fff2c9; font-weight: 800; text-decoration: none; }
footer > p { margin: 0; text-align: right; }

.document-shell {
  min-height: calc(100vh - 120px);
  padding: 150px max(20px, calc((100% - 960px) / 2)) 100px;
  background:
    radial-gradient(circle at 90% 8%, rgba(255, 216, 100, 0.42), transparent 25rem),
    linear-gradient(180deg, #d9f3ff, #fff4df);
}

.document-header {
  padding: 38px;
  border: 4px solid var(--gold);
  border-radius: 28px;
  background: var(--plum);
  box-shadow: var(--shadow);
  color: var(--cream);
}

.document-header > p:last-child { margin: 16px 0 0; color: #d8c6dd; font-weight: 750; }

.legal-document {
  margin-top: 28px;
  padding: 38px;
  border: 3px solid rgba(74, 29, 85, 0.18);
  border-radius: 28px;
  background: rgba(255, 253, 245, 0.94);
  box-shadow: 0 12px 0 rgba(74, 29, 85, 0.10);
}

.legal-document h2 { margin-top: 34px; color: var(--plum); font-size: 1.45rem; }
.legal-document h2:first-child { margin-top: 0; }
.legal-document p, .legal-document li { color: var(--muted); }
.legal-document a { color: var(--orange-dark); font-weight: 850; }

.support-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.support-grid article {
  min-height: 220px;
  padding: 28px;
  border: 3px solid var(--plum);
  border-radius: 24px;
  background: var(--cream);
  box-shadow: 0 8px 0 rgba(74, 29, 85, 0.12);
}

.support-grid article:nth-child(3n + 1) { border-color: var(--orange); }
.support-grid article:nth-child(3n + 2) { border-color: var(--cyan-dark); }
.support-grid h2 { color: var(--plum); font-size: 1.35rem; }
.support-grid p { color: var(--muted); }
.support-grid a { color: var(--orange-dark); font-weight: 850; }

@media (max-width: 900px) {
  .site-header { align-items: flex-start; }
  nav { justify-content: flex-end; flex-wrap: wrap; }
  .heartshard-strip { grid-template-columns: repeat(2, 1fr); }
  .heartshard-strip span + span { border-left: 0; }
  .objective-grid { grid-template-columns: 1fr; }
  .flight-section,
  .boss-section,
  .fair-play,
  .heartforge-content { grid-template-columns: 1fr; }
  .boss-copy { grid-row: 1; }
  footer { grid-template-columns: 1fr; text-align: center; }
  .footer-brand, .footer-links { justify-content: center; }
  footer > p { text-align: center; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .site-header { top: 10px; width: calc(100% - 20px); min-height: 62px; padding: 8px 10px; border-radius: 19px; }
  .brand img { width: 40px; height: 40px; }
  .brand span { display: none; }
  nav { gap: 1px; }
  nav a { padding: 9px 7px; font-size: 0.67rem; }
  .hero { min-height: 780px; }
  .hero-art { object-position: 61% center; }
  .hero-wash { background: linear-gradient(0deg, rgba(49, 18, 59, 0.95) 0%, rgba(74, 29, 85, 0.66) 62%, rgba(74, 29, 85, 0.12) 100%); }
  .hero-content { padding-bottom: 72px; }
  .hero h1 { font-size: clamp(3.6rem, 19vw, 5.4rem); }
  .chapter-pill { font-size: 0.65rem; }
  .heartshard-strip { width: calc(100% - 24px); padding: 16px 12px; font-size: 0.67rem; }
  .journey-section, .flight-section, .boss-section, .heartforge-section, .fair-play { padding-top: 76px; padding-bottom: 76px; }
  .feature-window, .game-frame, .boss-frame { border-width: 4px; border-radius: 20px; }
  .feature-window figcaption { display: grid; }
  .heartforge-card { padding: 22px; border-radius: 22px; }
  .heartforge-heading { align-items: flex-start; flex-direction: column; }
  .support-grid { grid-template-columns: 1fr; }
  .document-shell { padding-top: 115px; }
  .document-header, .legal-document { padding: 25px; border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spark { animation: none; }
  .button-primary:hover { transform: none; }
}
