@font-face { font-family: 'Cinzel'; font-weight: 500; font-display: swap; src: url('/fonts/cinzel-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cinzel'; font-weight: 600; font-display: swap; src: url('/fonts/cinzel-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 400; font-display: swap; src: url('/fonts/space-grotesk-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 500; font-display: swap; src: url('/fonts/space-grotesk-latin-500-normal.woff2') format('woff2'); }

:root {
  --ink: #0D0B16;
  --nebula: #2A1B4A;
  --pale: #F2ECFF;
  --bloom: #FF4FD8;
  --cyan: #5CE1E6;
  --mist: #A79FC0;
  --line: rgba(242, 236, 255, 0.12);
  --serif: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --sans: 'Space Grotesk', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--pale); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--bloom); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--pale); color: var(--ink); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
.wrap { width: min(1160px, 100% - 48px); margin: 0 auto; }
.narrow { width: min(640px, 100% - 48px); }

h2 { font: 600 clamp(30px, 4.4vw, 46px)/1.1 var(--serif); letter-spacing: 0.04em; margin: 0 0 14px; }
h3 { font: 500 18px/1.3 var(--sans); margin: 0; }
.section-lede { color: var(--mist); max-width: 34em; margin: 0 0 36px; font-size: 18px; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(18px, 4vw, 40px); transition: background .3s ease; }
.nav.scrolled { background: rgba(13, 11, 22, 0.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-mark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--pale); }
.nav-mark svg { width: 26px; height: 26px; color: var(--bloom); }
.nav-mark span { font: 600 17px var(--serif); letter-spacing: 0.12em; }
.nav nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); }
.nav nav a { text-decoration: none; color: var(--mist); font-size: 15px; padding: 10px 2px; }
.nav nav a:hover { color: var(--pale); }
.nav-x svg { width: 17px; height: 17px; display: block; }

/* Hero: the field */
.hero { position: relative; min-height: max(640px, 100svh); overflow: hidden;
  background:
    radial-gradient(60% 45% at 50% 18%, rgba(120, 70, 210, 0.38), transparent 70%),
    radial-gradient(40% 30% at 78% 30%, rgba(255, 79, 216, 0.12), transparent 70%),
    linear-gradient(180deg, #120E22 0%, var(--nebula) 46%, #1A1230 60%, var(--ink) 100%); }
#field { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.hero-copy { position: relative; z-index: 2; text-align: center; padding: clamp(110px, 18vh, 180px) 24px 0; pointer-events: none; }
.hero-copy a { pointer-events: auto; }
.title { font: 600 clamp(58px, 13vw, 176px)/0.95 var(--serif); letter-spacing: 0.06em; margin: 0;
  text-shadow: 0 0 48px rgba(165, 124, 255, 0.35); opacity: 0; transform: translateY(10px);
  transition: opacity 1.4s ease, transform 1.4s ease, letter-spacing 2.2s ease; }
.hero-line { font-size: clamp(18px, 2.2vw, 22px); color: var(--pale); margin: 18px auto 30px; max-width: 30em; opacity: 0; transition: opacity 1.2s ease .5s; }
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; opacity: 0; transition: opacity 1.2s ease .8s; }
.hero-count { color: var(--mist); font-size: 15px; margin-top: 18px; min-height: 1.6em; opacity: 0; transition: opacity 1.2s ease 1s; }
.awake .title { opacity: 1; transform: none; letter-spacing: 0.1em; }
.awake .hero-line, .awake .hero-actions, .awake .hero-count { opacity: 1; }
.hero-hint { position: absolute; z-index: 2; left: 0; right: 0; bottom: 26px; text-align: center; color: var(--mist); font-size: 14px; margin: 0; transition: opacity .8s ease; }
.hero-hint.gone { opacity: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 13px 26px; border-radius: 999px; font: 500 16px var(--sans); text-decoration: none; border: 1px solid transparent; transition: background .2s ease, border-color .2s ease, transform .1s ease; }
.btn:active { transform: translateY(1px); }
.btn-bloom { background: var(--bloom); color: #1A0616; }
.btn-bloom:hover { background: #FF72E0; }
.btn-ghost { border-color: rgba(242, 236, 255, 0.35); color: var(--pale); background: rgba(13, 11, 22, 0.35); }
.btn-ghost:hover { border-color: var(--pale); }

/* Worlds */
.worlds { --tint: #A57CFF; padding: 120px 0 110px; background: radial-gradient(70% 60% at 50% 0%, color-mix(in srgb, var(--tint) 16%, transparent), transparent 70%), var(--ink); transition: background .6s ease; }
.world-rail { --pad: max(24px, calc((100vw - 1160px) / 2)); display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--pad) 24px; scroll-padding-inline: var(--pad); scrollbar-width: thin; scrollbar-color: rgba(242,236,255,.25) transparent; }
.world { flex: 0 0 clamp(240px, 27vw, 330px); scroll-snap-align: start; border-radius: 18px; padding: 12px 12px 20px; background: rgba(242, 236, 255, 0.03); border: 1px solid var(--line); transition: border-color .3s ease, background .3s ease; outline: none; }
.world img { border-radius: 12px; aspect-ratio: 1; object-fit: cover; width: 100%; margin-bottom: 16px; filter: saturate(.85) brightness(.9); transition: filter .3s ease; }
.world h3 { padding: 0 6px; color: var(--pale); }
.world p { padding: 0 6px; margin: 6px 0 0; color: var(--mist); font-size: 15px; }
.world:hover, .world:focus-visible, .world.active { border-color: var(--w); background: color-mix(in srgb, var(--w) 7%, transparent); }
.world:hover img, .world:focus-visible img, .world.active img { filter: none; }
.world.locked h3::after { content: ''; display: inline-block; width: 8px; height: 8px; margin-left: 10px; border-radius: 50%; border: 1.5px solid var(--mist); vertical-align: 2px; }

/* Myth */
.myth { padding: 110px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: radial-gradient(50% 70% at 50% 50%, rgba(42, 27, 74, 0.55), transparent 75%); }
.myth p { font-size: clamp(19px, 2vw, 22px); line-height: 1.7; color: #DCD4F0; margin: 0 0 22px; }
.myth p:last-child { color: var(--pale); margin-bottom: 0; }

/* Archive */
.archive { padding: 110px 0 120px; }
.archive-grid { position: relative; overflow: hidden; padding: 4px; width: min(1160px, 100% - 48px); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.archive-grid img { width: 100%; aspect-ratio: 1; border-radius: 8px; opacity: .78; transition: opacity .25s ease, transform .25s ease; }
.archive-grid img:hover { opacity: 1; transform: scale(1.06); }
.archive-grid::after { content: ''; position: absolute; left: 0; right: 0; height: 18%; top: -18%; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(92, 225, 230, 0.10) 70%, rgba(92, 225, 230, 0.32) 98%, transparent);
  animation: scan 7s linear infinite; }
@keyframes scan { to { top: 100%; } }

/* Mint plan */
.plan { padding: 110px 0 130px; border-top: 1px solid var(--line); }
.windows { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.windows li { padding: 28px 28px 30px 0; border-bottom: 1px solid var(--line); }
.windows li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.windows .price { font: 600 52px/1 var(--serif); margin: 14px 0 14px; color: var(--pale); }
.windows li:first-child .price { color: var(--bloom); }
.windows p:last-child { color: var(--mist); margin: 0; max-width: 24em; }
.plan-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--mist); font-size: 15px; }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-row p { margin: 0; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot nav a { text-decoration: none; padding: 4px 0; }
.foot nav a:hover { color: var(--pale); }
.foot-safe { margin-top: 14px; font-size: 14px; }

@media (max-width: 720px) {
  .nav nav a:not(.nav-x) { display: none; }
  .windows li, .windows li + li { padding: 24px 0; border-left: 0; }
  .worlds, .myth, .archive, .plan { padding-top: 84px; padding-bottom: 84px; }
  .archive-grid { grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .title, .hero-line, .hero-actions, .hero-count { transition: none; }
  .archive-grid::after { animation: none; display: none; }
}
