:root {
  color-scheme: light;
  --paper: #fbf7ef;
  --paper-deep: #f0e7d6;
  --ink: #181410;
  --ink-soft: #51483e;
  --muted: #817667;
  --line: #e4d8c4;
  --gold: #e7a93a;
  --red: #bb4538;
  --plum: #241d31;
  --purple: #6d4fb0;
  --purple-dark: #4d347f;
  --max: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.shell { width: min(var(--max), calc(100% - 52px)); margin-inline: auto; }
.display, h1, h2, h3, .brand span { font-family: "Bricolage Grotesque", Inter, sans-serif; }
.skip-link { position: absolute; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; color: #fff; background: var(--plum); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: absolute; inset: 0 0 auto; z-index: 10; border-bottom: 1px solid rgba(36,29,49,.1); }
.nav-shell { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.025em; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.brand span { font-size: 1.24rem; }
nav { display: flex; align-items: center; gap: clamp(14px, 2.7vw, 34px); font-size: .9rem; font-weight: 650; }
nav a:not(.nav-download) { color: var(--ink-soft); }
nav a:hover { color: var(--purple); }
.nav-download { padding: 10px 17px; border-radius: 999px; color: #fff; background: var(--plum); box-shadow: 0 3px 0 rgba(24,20,16,.2); }
.nav-download span { padding-left: 4px; color: var(--gold); }
a:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; border-radius: 5px; }

.hero { min-height: 720px; padding-top: 144px; padding-bottom: 70px; position: relative; display: grid; grid-template-columns: 1fr .92fr; gap: clamp(36px, 7vw, 92px); align-items: center; }
.hero::before { content: ""; position: absolute; z-index: -1; width: 430px; height: 430px; left: -220px; top: 110px; border-radius: 50%; background: #f8edcf; filter: blur(2px); }
.hero-copy { position: relative; z-index: 1; padding: 22px 0 36px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #946a25; font-size: .72rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow-line { width: 22px; height: 3px; border-radius: 4px; background: var(--gold); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 12px; font-size: clamp(3.5rem, 8.3vw, 6.5rem); font-weight: 800; letter-spacing: -.065em; line-height: .93; }
h1 em, h2 em { color: var(--purple); font-style: normal; }
.hero-hook { margin-bottom: 17px; color: var(--purple-dark); font-family: "Bricolage Grotesque", sans-serif; font-size: clamp(1.38rem, 2.5vw, 1.85rem); font-weight: 700; letter-spacing: -.025em; }
.hero-lede { max-width: 550px; margin-bottom: 27px; color: var(--ink-soft); font-size: clamp(1rem, 1.35vw, 1.12rem); line-height: 1.72; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.store-button { min-width: 206px; min-height: 58px; padding: 10px 13px; display: flex; align-items: center; gap: 12px; border: 1px solid rgba(255,255,255,.23); border-radius: 13px; color: #fff; background: var(--plum); box-shadow: 0 5px 0 rgba(24,20,16,.16); transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease); }
.store-button:hover { transform: translateY(-2px); background: #342841; box-shadow: 0 7px 0 rgba(24,20,16,.16); }
.store-button img { flex: 0 0 28px; width: 28px; height: 28px; object-fit: contain; }
.store-button span:not(.button-arrow) { display: flex; flex-direction: column; line-height: 1.18; }
.store-button small { color: rgba(255,255,255,.7); font-size: .64rem; letter-spacing: .02em; }
.store-button strong { font-size: .92rem; font-weight: 700; }
.button-arrow { margin-left: auto; color: var(--gold); font-size: .95rem; }
.platform-note, .download-platforms { margin: 16px 0 0; color: var(--muted); font-size: .82rem; font-weight: 600; }

.hero-art { min-height: 486px; position: relative; isolation: isolate; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(36,29,49,.16); border-radius: 34px; background: var(--purple); box-shadow: 0 24px 0 -8px rgba(109,79,176,.19), 0 30px 65px -36px rgba(36,29,49,.5); }
.hero-art::before, .hero-art::after { content: ""; position: absolute; z-index: -1; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; }
.hero-art::before { width: 390px; height: 390px; }
.hero-art::after { width: 300px; height: 300px; }
.hero-art-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 50% 48%, rgba(247,224,170,.36), transparent 48%), linear-gradient(145deg, #8064c2, var(--purple) 60%, #58418e); }
.hero-card-fan { position: relative; z-index: 1; width: min(88%, 430px); height: 390px; display: flex; align-items: center; justify-content: center; }
.fan-card { position: absolute; width: 43%; margin: 0; background: transparent; }
.fan-card img { width: 100%; height: auto; aspect-ratio: 50 / 71; object-fit: contain; filter: drop-shadow(0 18px 12px rgba(26,16,40,.3)); }
.fan-card-left { transform: translate(-54%, 24px) rotate(-13deg); }
.fan-card-center { z-index: 2; transform: translateY(-16px); }
.fan-card-right { transform: translate(54%, 24px) rotate(13deg); }
.hero-card-fan.is-carousel .fan-card { left: 50%; top: 50%; opacity: 0; pointer-events: none; transform: translate(-50%, -50%); transition: opacity .18s linear; will-change: transform, opacity; }
.hero-card-fan.is-carousel .fan-card.is-visible { opacity: 1; }
.hero-fan-toggle { position: absolute; top: 15px; right: 15px; z-index: 3; min-height: 38px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.48); border-radius: 999px; color: #fff; background: rgba(36,29,49,.36); font: inherit; font-size: .74rem; font-weight: 700; cursor: pointer; backdrop-filter: blur(8px); }
.hero-fan-toggle:hover { background: rgba(36,29,49,.58); }
.hero-fan-toggle:focus-visible { outline: 3px solid #f6d68f; outline-offset: 3px; }
.art-caption { position: absolute; right: 18px; bottom: 17px; left: 18px; z-index: 2; display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.9); font-size: .78rem; font-weight: 600; }
.caption-mark { color: #f6d68f; font-size: 1.1rem; }
.scroll-cue { position: absolute; bottom: 18px; left: 0; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.scroll-cue span { color: var(--purple); font-size: 1.1rem; }

.intro-band { background: var(--paper-deep); border-block: 1px solid var(--line); }
.intro-inner { min-height: 115px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.intro-kicker { color: #946a25; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.intro-inner p { max-width: 610px; margin: 0; font-family: "Bricolage Grotesque", sans-serif; font-size: clamp(1.25rem, 2.4vw, 1.8rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }

.how-to { padding-top: 110px; padding-bottom: 112px; }
.section-heading { max-width: 610px; }
.section-heading h2, .download-copy h2 { margin: 15px 0 14px; font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.055em; line-height: .98; }
.section-heading > p:last-child { max-width: 520px; color: var(--ink-soft); font-size: 1.02rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.feature-card { min-height: 310px; padding: 25px 27px 28px; position: relative; overflow: hidden; border: 1px solid rgba(36,29,49,.11); border-radius: 20px; background: #fffdfa; box-shadow: 0 8px 0 rgba(36,29,49,.08); }
.feature-number { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .1em; }
.feature-symbol { width: 66px; height: 56px; margin: 23px 0 20px; display: grid; place-items: center; border-radius: 16px; color: #fff; background: var(--plum); font-family: Inter, sans-serif; font-size: .63rem; font-weight: 800; letter-spacing: .08em; box-shadow: 0 5px 0 rgba(24,20,16,.18); }
.feature-card-spirit .feature-symbol { background: var(--purple); }
.feature-card-enchant .feature-symbol { color: var(--ink); background: #f0c66e; }
.feature-card h3 { margin: 0 0 9px; font-size: 1.45rem; font-weight: 750; letter-spacing: -.035em; }
.feature-card p { max-width: 310px; margin: 0; color: var(--ink-soft); font-size: .93rem; line-height: 1.65; }
.feature-rule { position: absolute; top: 0; right: 0; width: 55px; height: 4px; border-radius: 0 0 0 6px; background: var(--red); }
.feature-card-spirit .feature-rule { background: var(--purple); }
.feature-card-enchant .feature-rule { background: var(--gold); }

.spirits-section { padding: 100px 0 106px; overflow: hidden; color: #fff; background: var(--plum); }
.spirits-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.spirits-section .eyebrow { color: #e7c98e; }
.spirits-section .section-heading h2 { max-width: 700px; }
.spirits-section .section-heading h2 em { color: #c8b3f5; }
.spirits-section .section-heading > p:last-child { color: rgba(255,255,255,.73); }
.spirits-stamp { width: 112px; height: 112px; flex: 0 0 112px; display: grid; place-items: center; border: 1px solid rgba(247,224,170,.64); border-radius: 50%; color: #f7e0aa; transform: rotate(9deg); }
.spirits-stamp span { font-size: .58rem; font-weight: 800; letter-spacing: .1em; line-height: 1.5; text-align: center; }
.spirit-gallery { margin: 38px -3px 0; padding: 12px 3px 25px; display: grid; grid-auto-columns: minmax(190px, calc((100% - 54px) / 4)); grid-auto-flow: column; gap: 18px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-color: rgba(231,169,58,.8) rgba(255,255,255,.13); scrollbar-width: thin; }
.spirit-gallery:focus-visible { outline: 3px solid #f7e0aa; outline-offset: 4px; }
.spirit-tile { min-width: 0; margin: 0; scroll-snap-align: start; }
.spirit-tile img { width: 100%; height: auto; aspect-ratio: 50 / 71; object-fit: contain; filter: drop-shadow(0 12px 12px rgba(0,0,0,.24)); transition: transform .22s var(--ease), filter .22s var(--ease); }
.spirit-tile:hover img { transform: translateY(-5px) rotate(-1deg); filter: drop-shadow(0 18px 15px rgba(0,0,0,.32)); }
.spirit-tile figcaption { margin-top: 12px; color: rgba(255,255,255,.88); font-family: "Bricolage Grotesque", sans-serif; font-size: .96rem; font-weight: 700; }
.gallery-caption { margin: 20px 0 0; color: rgba(255,255,255,.58); font-size: .76rem; letter-spacing: .04em; }

.download-section { padding: 104px 0; background: var(--purple); }
.download-shell { min-height: 460px; position: relative; display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.22); border-radius: 30px; background: linear-gradient(110deg, rgba(36,29,49,.28), transparent 55%), #7659b7; box-shadow: 0 14px 0 rgba(36,29,49,.12); }
.download-shell::before { content: ""; position: absolute; width: 420px; height: 420px; right: -100px; top: -180px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; box-shadow: 0 0 0 36px rgba(255,255,255,.04), 0 0 0 72px rgba(255,255,255,.03); }
.download-art { height: 100%; min-height: 460px; position: relative; overflow: hidden; display: flex; align-items: end; justify-content: center; }
.download-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 50%, rgba(118,89,183,.76) 100%), linear-gradient(0deg, rgba(36,29,49,.28), transparent 45%); }
.download-art img { width: min(78%, 370px); height: auto; aspect-ratio: 1; object-fit: contain; object-position: center; border: 8px solid var(--paper); border-radius: 18px; background: var(--paper); box-shadow: 0 18px 30px rgba(28,17,44,.28); }
.download-seal { position: absolute; z-index: 1; top: 27px; left: 25px; width: 78px; height: 78px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.62); border-radius: 50%; color: #fff; font-size: .59rem; font-weight: 800; letter-spacing: .09em; line-height: 1.35; text-align: center; transform: rotate(-10deg); }
.download-copy { position: relative; z-index: 1; padding: 55px clamp(28px, 5vw, 70px) 55px 24px; color: #fff; }
.eyebrow-light { color: #f4ddb1; }
.download-copy h2 { margin-top: 18px; font-size: clamp(2.7rem, 5.4vw, 4.4rem); }
.download-copy > p:not(.eyebrow) { max-width: 440px; margin-bottom: 26px; color: rgba(255,255,255,.8); }
.download-actions { max-width: 460px; }
.store-button-light { background: var(--plum); }
.download-platforms { color: rgba(255,255,255,.7); }

.site-footer { padding: 55px 0 25px; }
.footer-main { display: flex; justify-content: space-between; gap: 42px; padding-bottom: 38px; }
.footer-brand-block > p { margin: 15px 0 0; color: var(--muted); font-size: .83rem; line-height: 1.75; }
.footer-links { display: flex; gap: clamp(28px, 5vw, 70px); }
.footer-links > div { display: flex; flex-direction: column; align-items: start; gap: 8px; }
.footer-label { margin-bottom: 5px; color: #946a25; font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.footer-links a { color: var(--ink-soft); font-size: .84rem; }
.footer-links a:hover { color: var(--purple); }
.footer-bottom { display: flex; justify-content: space-between; gap: 15px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
.footer-bottom a { color: var(--ink-soft); font-weight: 700; }

@media (max-width: 900px) {
  .hero { min-height: 0; grid-template-columns: 1fr .82fr; gap: 28px; padding-top: 126px; }
  .hero-art { min-height: 400px; }
  .hero-card-fan { width: min(90%, 390px); height: 350px; }
  .store-button { min-width: 195px; }
  .download-shell { grid-template-columns: .8fr 1.2fr; }
}
@media (max-width: 720px) {
  .shell { width: min(var(--max), calc(100% - 36px)); }
  .nav-shell { min-height: 68px; }
  .brand span { font-size: 1.08rem; }
  .brand img { width: 29px; height: 29px; }
  nav { gap: 13px; font-size: .78rem; }
  nav a:nth-child(2), nav a:nth-child(3) { display: none; }
  .nav-download { padding: 9px 13px; }
  .hero { grid-template-columns: 1fr; gap: 22px; padding-top: 119px; padding-bottom: 63px; }
  .hero-copy { padding: 0; }
  h1 { font-size: clamp(3.35rem, 16vw, 5.2rem); }
  .hero-lede { max-width: 610px; }
  .hero-art { min-height: 370px; border-radius: 26px; }
  .hero-card-fan { width: min(90%, 360px); height: 330px; }
  .scroll-cue { bottom: 16px; }
  .intro-inner { min-height: 0; padding-block: 23px; display: block; }
  .intro-inner p { margin-top: 8px; }
  .how-to { padding-block: 76px; }
  .section-heading h2 { font-size: clamp(2.4rem, 10vw, 3.5rem); }
  .feature-grid { grid-template-columns: 1fr; gap: 13px; margin-top: 30px; }
  .feature-card { min-height: 0; padding: 22px; }
  .feature-symbol { margin: 14px 0 14px; }
  .spirits-section { padding-block: 76px; }
  .spirits-stamp { width: 78px; height: 78px; flex-basis: 78px; }
  .spirits-stamp span { font-size: .48rem; }
  .spirit-gallery { grid-auto-columns: minmax(178px, 56%); gap: 12px; }
  .download-section { padding-block: 70px; }
  .download-shell { grid-template-columns: 1fr; border-radius: 24px; }
  .download-art { min-height: 280px; height: 280px; }
  .download-art img { width: min(64%, 270px); }
  .download-art::after { background: linear-gradient(0deg, rgba(118,89,183,.7), transparent 42%); }
  .download-seal { top: 18px; left: 18px; width: 68px; height: 68px; }
  .download-copy { padding: 10px 22px 28px; }
  .download-copy h2 { font-size: clamp(2.7rem, 12vw, 3.6rem); }
  .footer-main { display: block; }
  .footer-links { justify-content: space-between; gap: 18px; margin-top: 34px; }
}
@media (max-width: 420px) {
  .shell { width: calc(100% - 32px); }
  nav { gap: 10px; }
  nav a:first-child { display: none; }
  .hero { padding-top: 108px; }
  .eyebrow { font-size: .64rem; letter-spacing: .12em; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .store-button { width: 100%; min-width: 0; min-height: 58px; }
  .hero-art { min-height: 330px; }
  .hero-card-fan { height: 300px; }
  .hero-fan-toggle { top: 11px; right: 11px; }
  .spirits-heading { align-items: start; }
  .spirits-stamp { width: 64px; height: 64px; flex-basis: 64px; }
  .spirits-stamp span { font-size: .41rem; }
  .spirit-gallery { grid-auto-columns: minmax(160px, 72%); gap: 10px; }
  .download-art { min-height: 245px; height: 245px; }
  .download-art img { width: 72%; }
  .download-actions { display: grid; grid-template-columns: 1fr; }
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; row-gap: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
