@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --night: #34186e;
  --night-deep: #24104f;
  --lip: #5fc9bc;
  --lip-dark: #3fa99c;
  --gum: #ec6a78;
  --tooth: #f8ecca;
  --gold: #ffd447;
  --ink: #1f2350;
  --cloud: #f4effa;
  --measure: 34rem;
}

* { box-sizing: border-box; margin: 0; }

html { -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; }

body {
  font-family: "Fredoka", ui-rounded, system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--cloud);
  background: var(--night);
}

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

a { color: inherit; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }


.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--gold); color: var(--ink); padding: .5rem 1rem; }

/* ---------- Nav ---------- */

.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; gap: 2rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
}
.nav-home { display: flex; align-items: center; gap: .65rem; text-decoration: none; font-weight: 700; font-size: 1.35rem; color: #fff; }
.nav-home img { width: 40px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.nav-links { display: flex; gap: 1.75rem; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 500; color: #fff; text-shadow: 0 1px 8px rgba(20,6,50,.8); }
.nav-links a:hover { color: #fff; }
.nav-cta {
  text-decoration: none; font-weight: 600; color: var(--ink);
  background: var(--gold); padding: .6rem 1.2rem; border-radius: 999px;
  box-shadow: 0 3px 0 #c99a12;
}
.nav-cta:hover { background: #ffe07a; }
@media (max-width: 760px) { .nav-links { display: none; } .nav-cta { margin-left: auto; } }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  min-height: min(100svh, 980px);
  background: #26105c;
  display: flex; align-items: center;
  padding: 7rem clamp(1.25rem, 6vw, 6rem) 9rem;
}
.hero-art { position: absolute; inset: 0; }
.hero-art img {
  width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%;
  transform: translate3d(var(--px, 0), var(--py, 0), 0) scale(1.04);
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(30,10,72,.85) 0%, rgba(30,10,72,.45) 38%, rgba(30,10,72,0) 60%),
    linear-gradient(0deg, rgba(30,10,72,.55) 0%, rgba(30,10,72,0) 30%);
}
.hero-inner { position: relative; z-index: 2; max-width: 36rem; }

.wordmark {
  font-weight: 700; color: var(--gold);
  font-size: clamp(4.5rem, 12vw, 10rem); line-height: .85;
  letter-spacing: -.015em;
  -webkit-text-stroke: .06em var(--ink); paint-order: stroke fill;
  text-shadow: 0 .09em 0 var(--ink), 0 .2em .35em rgba(0,0,0,.35);
  transform: rotate(-4deg); transform-origin: left bottom;
  margin: 0 0 1.75rem -.04em;
}
.tagline { text-wrap: balance; font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; color: #fff; margin-bottom: .6rem; }
.sub { font-size: 1.15rem; color: #ddd3f2; max-width: 26rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2.25rem; }
.free-note { color: #ddd3f2; font-size: 1rem; }

.badge {
  display: inline-flex; align-items: center; gap: .7rem;
  background: #000; color: #fff; text-decoration: none;
  border: 1.5px solid #a6a6a6; border-radius: 13px;
  padding: .55rem 1.25rem .6rem 1rem;
  font-weight: 600; font-size: 1.55rem; line-height: 1;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -.02em;
  transition: transform 150ms, box-shadow 150ms;
}
.badge svg { width: 30px; height: 30px; fill: #fff; flex: none; }
.badge span { display: flex; flex-direction: column; }
.badge small { font-size: .7rem; font-weight: 500; letter-spacing: 0; margin-bottom: .2rem; }
.badge:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.4); }

.hero-teeth {
  position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(56px, 8vw, 116px);
  z-index: 3;
}

/* One entrance: the art settles, the logo lands. */
.hero.is-ready .hero-art img { animation: settle 1400ms cubic-bezier(.2,.7,.2,1) both; }
.hero.is-ready .wordmark { animation: land 700ms 250ms cubic-bezier(.3,1.6,.5,1) both; }
@keyframes settle { from { transform: scale(1.12); filter: brightness(.6); } }
@keyframes land { from { transform: rotate(-4deg) translateY(30px) scale(.8); opacity: 0; } }

@media (max-width: 760px) {
  .hero { align-items: flex-end; min-height: 100svh; padding-bottom: 6.5rem; }
  .hero-art img { object-position: 50% 20%; height: 64%; }
  .hero-art::after {
    content: ""; position: absolute; left: 0; right: 0; top: 34%; height: 31%;
    background: linear-gradient(0deg, #26105c, rgba(38,16,92,0));
  }
  .hero-shade { background: none; }
  .wordmark { font-size: clamp(4rem, 22vw, 6rem); margin-bottom: 1.1rem; }
  .tagline { font-size: 1.45rem; }
  .sub { font-size: 1.05rem; }
  .hero-actions { margin-top: 1.5rem; }
}

.store {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--ink); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 1.05rem;
  padding: .8rem 1.4rem .8rem 1.1rem; border-radius: 999px;
  box-shadow: 0 4px 0 #0d1030;
  white-space: nowrap;
}
.store:hover { background: #2b3070; }
.store:active { transform: translateY(2px); box-shadow: 0 2px 0 #0d1030; }
.store svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- Sections ---------- */

.band { padding: clamp(4rem, 10vw, 8rem) clamp(1.25rem, 5vw, 4rem); }
.wrap { max-width: 72rem; margin: 0 auto; }

h2 {
  font-weight: 700; font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  line-height: 1.02; letter-spacing: -.01em; margin-bottom: 1.25rem;
  max-width: 16ch;
}
h3 { font-weight: 600; font-size: 1.35rem; line-height: 1.2; margin-bottom: .25rem; }
.band p { max-width: var(--measure); }
.band p + p { margin-top: .9rem; }

/* Fold */
.fold { background: var(--lip); color: var(--ink); }
.fold-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .fold-grid { grid-template-columns: 5fr 7fr; } }
.fold figure img { border-radius: 28px; border: 6px solid var(--ink); }
.fold figcaption { font-size: .95rem; margin-top: .75rem; color: #1f2350cc; }
.angle {
  display: inline-block; font-weight: 700; font-size: clamp(4rem, 10vw, 6.5rem);
  line-height: 1; color: var(--ink); margin: .25rem 0 1rem;
}

/* Play */
.play { background: var(--night); }
.play-grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .play-grid { grid-template-columns: 4fr 7fr; } }
.phone {
  width: min(320px, 78vw); margin: 0 auto; border-radius: 40px; overflow: hidden;
  border: 8px solid var(--ink); background: var(--ink);
  box-shadow: 0 0 0 4px var(--lip);
}
.rules { list-style: none; padding: 0; display: grid; gap: 1.6rem; margin-top: 2rem; }
@media (min-width: 640px) { .rules { grid-template-columns: 1fr 1fr; } }
.rules li { display: grid; grid-template-columns: 3rem 1fr; gap: .75rem; align-items: start; }
.rules .glyph { font-size: 2.1rem; line-height: 1; }
.rules p { font-size: 1.05rem; color: #e4dcf3; }

/* Worlds */
.worlds { background: var(--night-deep); padding-left: 0; padding-right: 0; }
.worlds-head { text-align: center; padding: 0 1.25rem; }
.worlds-head h2 { margin-left: auto; margin-right: auto; max-width: 14ch; text-wrap: balance; }
.worlds-head p { margin: 0 auto; color: #d8cef0; }

.strip {
  --edge: max(1.25rem, calc((100vw - 76rem) / 2));
  display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 3rem var(--edge) 2rem; scroll-padding-inline: var(--edge);
  scrollbar-width: none; scroll-behavior: smooth;
}
.strip::-webkit-scrollbar { display: none; }

.world {
  position: relative; flex: 0 0 clamp(270px, 28vw, 380px); aspect-ratio: 820 / 1018;
  scroll-snap-align: start; border-radius: 28px; overflow: hidden;
  background: var(--tint);
  box-shadow: 0 24px 50px -20px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.12);
}
.world-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms cubic-bezier(.2,.7,.2,1); }
.world::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, var(--tint) 4%, color-mix(in srgb, var(--tint) 70%, transparent) 26%, transparent 52%);
}
.world-shot {
  position: absolute; z-index: 2; right: 7%; bottom: 7%;
  width: 30%; border-radius: 14px; border: 4px solid #12142e;
  box-shadow: 0 14px 30px rgba(0,0,0,.45);
  transform: rotate(5deg); transition: transform 400ms cubic-bezier(.2,.7,.2,1);
}
.world-text { position: absolute; z-index: 2; left: 7%; right: 42%; bottom: 7%; }
.world-text h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 700; line-height: 1.05; margin-bottom: .4rem; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.world-text p { font-size: .98rem; line-height: 1.35; color: #fff; opacity: .92; }
.world:hover .world-art { transform: scale(1.04); }
.world:hover .world-shot { transform: rotate(2deg) translateY(-6px); }

.strip-nav { display: flex; justify-content: center; gap: .75rem; }
.strip-nav button {
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35);
  background: transparent; color: #fff; cursor: pointer; padding: 0;
  display: grid; place-items: center;
}
.strip-nav svg { width: 22px; height: 22px; }
.strip-nav button:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* Closer */
.closer { background: var(--gold); color: var(--ink); }
.closer-grid { display: grid; gap: 2rem 4rem; align-items: center; grid-template-columns: 1fr; justify-items: center; text-align: center; }
@media (min-width: 820px) { .closer-grid { grid-template-columns: auto 1fr; justify-items: start; text-align: left; } }
.closer-grid img { width: clamp(200px, 26vw, 340px); filter: drop-shadow(0 20px 30px rgba(120,80,0,.35)); }
.closer h2 { font-size: clamp(2.8rem, 7vw, 5rem); max-width: none; }
.facts { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.25rem 0 2rem; padding: 0; list-style: none; justify-content: inherit; }
@media (max-width: 819px) { .facts { justify-content: center; } }
.facts li { border: 3px solid var(--ink); border-radius: 999px; padding: .35rem 1rem; font-weight: 600; font-size: 1rem; }

/* Journal teaser */
.journal { background: var(--night); }
.post-link {
  display: block; text-decoration: none; max-width: 44rem;
  border-top: 3px solid var(--lip); padding-top: 1.5rem;
}
.post-link h3 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 700; line-height: 1.1; margin: .3rem 0 .6rem; }
.post-link:hover h3 { color: var(--gold); }
.post-link time { color: #c9bfe0; font-size: .95rem; }

/* Footer */
.foot {
  background: var(--ink); color: #c9c6e6; font-size: .95rem;
  padding: 2.5rem clamp(1.25rem, 5vw, 4rem);
}
.foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot .brand { display: flex; align-items: center; gap: .75rem; color: #fff; font-weight: 600; }
.foot .brand img { width: 40px; border-radius: 10px; }

/* ---------- Article (blog) ---------- */
.topbar {
  background: var(--lip); color: var(--ink);
  padding: 1rem clamp(1.25rem, 5vw, 4rem);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.topbar .home { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.35rem; text-decoration: none; }
.topbar .home img { width: 36px; border-radius: 9px; }
.topbar .store { font-size: .95rem; padding: .55rem 1.1rem .55rem .9rem; }

.article { background: var(--cloud); color: var(--ink); padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 5vw, 4rem); }
.article .col { max-width: 38rem; margin: 0 auto; }
.article h1 { font-weight: 700; font-size: clamp(2.3rem, 6vw, 3.6rem); line-height: 1.03; margin-bottom: 1rem; }
.article .meta { color: #5a5a85; font-size: 1rem; margin-bottom: 2.5rem; }
.article h2 { font-size: clamp(1.6rem, 3.5vw, 2rem); margin: 2.75rem 0 .75rem; max-width: none; }
.article p, .article li { font-size: 1.15rem; line-height: 1.65; }
.article p + p { margin-top: 1rem; }
.article ul { margin: 1rem 0; padding-left: 1.25rem; }
.article li + li { margin-top: .4rem; }
.article figure { margin: 2.5rem 0; }
.article figure img { border-radius: 22px; }
.article figcaption { font-size: .95rem; color: #5a5a85; margin-top: .6rem; }
.article a { color: #5b2bc4; }
.article .cta { margin-top: 3rem; }

.index-list { list-style: none; padding: 0; display: grid; gap: 2.5rem; }

@media (prefers-reduced-motion: reduce) {
  .hero.is-ready .hero-art img, .hero.is-ready .wordmark { animation: none; }
  .hero-art img { transition: none; }
  .strip { scroll-behavior: auto; }
}
