/* BORN school landing page.
   Layout: full-bleed key-art hero -> glowing feature row -> tilted explore cards
   -> location carousel -> character line-up -> closing PLAY NOW band.
   Single deliberate night-time neon look (no light theme). */

@font-face { font-family: "Kanit"; font-weight: 400; font-display: swap; src: url("fonts/kanit-thai-400.woff2") format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Kanit"; font-weight: 400; font-display: swap; src: url("fonts/kanit-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Kanit"; font-weight: 600; font-display: swap; src: url("fonts/kanit-thai-600.woff2") format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Kanit"; font-weight: 600; font-display: swap; src: url("fonts/kanit-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Kanit"; font-weight: 700; font-display: swap; src: url("fonts/kanit-thai-700.woff2") format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Kanit"; font-weight: 700; font-display: swap; src: url("fonts/kanit-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Russo One"; font-weight: 400; font-display: swap; src: url("fonts/russo-one-latin-400.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --night: #0b0a24;
  --night-2: #151140;
  --panel: #1b1550;
  --ink: #f6f3ff;
  --muted: #bfb6ec;
  --pink: #ff4fb3;
  --pink-deep: #e2238a;
  --cyan: #52dcff;
  --violet: #8b5cff;
  --line: rgba(160, 130, 255, 0.45);
  --display: "Russo One", "Kanit", "Arial Black", system-ui, sans-serif;
  --body: "Kanit", "Noto Sans Thai", "Leelawadee UI", system-ui, sans-serif;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--night);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 8px 14px; border-radius: 999px;
  background: var(--pink); color: #fff; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--display); letter-spacing: 0.04em; text-decoration: none;
  color: #fff; white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn-pink {
  background: linear-gradient(180deg, #ff8fd0 0%, var(--pink) 42%, var(--pink-deep) 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.55),
    inset 0 -3px 0 rgba(120, 0, 70, 0.35),
    0 0 0 2px rgba(255, 190, 230, 0.85),
    0 0 22px rgba(255, 79, 179, 0.75);
  text-shadow: 0 1px 2px rgba(110, 0, 60, 0.45);
}
.btn-pink:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: inset 0 2px 0 rgba(255,255,255,.6), inset 0 -3px 0 rgba(120,0,70,.35), 0 0 0 2px rgba(255,210,240,.95), 0 0 34px rgba(255,79,179,.95); }
.btn-pink:active { transform: translateY(0); }
.btn-sm { padding: 0.5em 1.15em; font-size: 0.82rem; }
.btn-xl { padding: 0.62em 1.6em; font-size: clamp(1.05rem, 1.9vw, 1.7rem); }
.btn[aria-disabled="true"] { cursor: default; filter: saturate(0.75); }
.btn[aria-disabled="true"]:hover { transform: none; }

.chev {
  display: inline-block; width: 0.5em; height: 0.5em;
  border-right: 0.16em solid currentColor; border-top: 0.16em solid currentColor;
  transform: rotate(45deg); margin-left: -0.1em;
}
.chev-left { transform: rotate(-135deg); margin: 0 -0.1em 0 0.1em; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
  transition: background 0.25s ease, box-shadow 0.25s ease;
  background: linear-gradient(180deg, rgba(11, 10, 36, 0.88) 0%, rgba(11, 10, 36, 0.55) 60%, rgba(11, 10, 36, 0) 100%);
}
.site-header.is-solid {
  background: rgba(13, 11, 42, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(0, 0, 0, 0.35);
}
.header-inner {
  max-width: 1320px; margin: 0 auto; height: 68px;
  display: flex; align-items: center; gap: 24px;
}
.brand img { width: 108px; filter: drop-shadow(0 0 10px rgba(82, 220, 255, 0.35)); }
.main-nav { display: flex; gap: clamp(14px, 2.4vw, 34px); margin-left: clamp(8px, 6vw, 90px); }
.main-nav a {
  position: relative; padding: 6px 0;
  font-size: 0.92rem; font-weight: 600; text-decoration: none; color: var(--ink);
  text-shadow: 0 1px 6px rgba(10, 6, 40, 0.8);
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  border-radius: 2px; background: var(--pink); box-shadow: 0 0 8px var(--pink);
  transform: scaleX(0); transition: transform 0.2s ease;
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.socials { display: flex; gap: 12px; }
.social {
  display: grid; place-items: center; width: 30px; height: 30px; color: #fff;
  filter: drop-shadow(0 0 6px rgba(82, 220, 255, 0.55));
  transition: color 0.2s ease, transform 0.2s ease;
}
.social svg { width: 22px; height: 22px; fill: currentColor; }
a.social[href]:hover { color: var(--cyan); transform: translateY(-1px); }
.social:not([href]) { opacity: 0.7; cursor: default; }
.menu-toggle {
  display: none; width: 42px; height: 42px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(27, 21, 80, 0.75); color: #fff;
}
.menu-bars, .menu-bars::before, .menu-bars::after {
  display: block; width: 18px; height: 2px; margin: 0 auto; border-radius: 2px;
  background: currentColor; position: relative; transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--night); }
.hero-stage {
  position: relative; max-width: 1920px; margin: 0 auto;
  aspect-ratio: 1672 / 941; overflow: hidden;
}
.hero-art { width: 100%; height: 100%; object-fit: cover; }
.hero-stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 10, 36, 0.35) 0%, rgba(11, 10, 36, 0) 16%),
    linear-gradient(180deg, rgba(40, 20, 110, 0) 58%, rgba(28, 16, 80, 0.55) 80%, var(--night) 100%);
}
.petals { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.hero-cta {
  position: absolute; z-index: 2; left: 67%; top: max(88px, 10%); transform: translateX(-50%);
  display: grid; justify-items: center; gap: clamp(8px, 1.4vw, 20px);
}
.hero-cta .btn { animation: pulse 2.6s ease-in-out infinite; }
.hero-logo {
  width: clamp(240px, 31vw, 540px);
  filter: drop-shadow(0 0 22px rgba(82, 220, 255, 0.45)) drop-shadow(0 8px 18px rgba(11, 10, 36, 0.55));
}
@keyframes pulse {
  0%, 100% { box-shadow: inset 0 2px 0 rgba(255,255,255,.55), inset 0 -3px 0 rgba(120,0,70,.35), 0 0 0 2px rgba(255,190,230,.85), 0 0 22px rgba(255,79,179,.7); }
  50% { box-shadow: inset 0 2px 0 rgba(255,255,255,.55), inset 0 -3px 0 rgba(120,0,70,.35), 0 0 0 2px rgba(255,210,240,.95), 0 0 40px rgba(255,79,179,1); }
}

/* ---------- Features ---------- */
.features {
  position: relative; z-index: 3;
  margin-top: clamp(-130px, -7vw, -40px);
  padding-left: var(--gutter-l); padding-right: var(--gutter-r); padding-block: 0 24px;
}
.feature-list {
  max-width: 980px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.feature { display: grid; justify-items: center; text-align: center; gap: 2px; }
.feature img {
  width: clamp(72px, 9vw, 104px); margin-bottom: 8px;
  filter: drop-shadow(0 0 14px rgba(139, 92, 255, 0.7));
  transition: transform 0.25s ease;
}
.feature:hover img { transform: translateY(-4px) scale(1.04); }
.feature h2 { font-size: clamp(1.05rem, 1.8vw, 1.4rem); font-weight: 700; line-height: 1.25; text-shadow: 0 2px 10px rgba(10, 6, 40, 0.9); }
.feature p { font-size: clamp(0.8rem, 1.2vw, 0.95rem); color: var(--muted); }

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
  padding-block: clamp(40px, 6vw, 72px);
}
.section > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.explore {
  background:
    linear-gradient(180deg, var(--night) 0, rgba(11, 10, 36, 0) 140px),
    radial-gradient(60% 50% at 50% 12%, rgba(139, 92, 255, 0.28), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
}
.world { background: linear-gradient(180deg, var(--night-2) 0%, var(--night) 100%); }
.crew {
  background:
    radial-gradient(50% 60% at 50% 60%, rgba(82, 220, 255, 0.12), transparent 70%),
    var(--night);
}

.section-title {
  display: grid; justify-items: center; gap: 0; text-align: center;
  margin-bottom: clamp(24px, 4vw, 40px);
  font-family: var(--display); font-weight: 400; line-height: 1.05;
  text-wrap: balance;
}
.section-title .eyebrow {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  font-size: clamp(1.1rem, 2.4vw, 1.75rem); letter-spacing: 0.08em; text-transform: uppercase;
  background: linear-gradient(90deg, #ff9ad6, var(--pink) 60%, #c86bff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 8px rgba(255, 79, 179, 0.6));
}
.section-title .eyebrow::before, .section-title .eyebrow::after {
  content: ""; width: clamp(28px, 6vw, 70px); height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}
.section-title .eyebrow::after { background: linear-gradient(90deg, var(--cyan), transparent); }
.title-main {
  position: relative;
  font-size: clamp(1.9rem, 5vw, 3.4rem); letter-spacing: 0.03em;
  background: linear-gradient(180deg, #ffffff 10%, #a6efff 55%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 2px rgba(255,255,255,.5)) drop-shadow(0 0 14px rgba(82, 220, 255, 0.55)) drop-shadow(0 3px 0 rgba(90, 40, 200, 0.9));
}
.title-main::before, .title-main::after {
  content: ""; position: absolute; top: 50%; width: clamp(16px, 2.4vw, 26px); aspect-ratio: 1;
  background: url("assets/deco-sparkle.webp") center / contain no-repeat;
  transform: translateY(-80%);
}
.title-main::before { left: calc(-1 * clamp(26px, 4vw, 44px)); }
.title-main::after { right: calc(-1 * clamp(26px, 4vw, 44px)); }
.section-title-inline { display: block; font-size: clamp(1.6rem, 4vw, 2.6rem); letter-spacing: 0.04em; }
.title-cyan, .title-pink { -webkit-background-clip: text; background-clip: text; color: transparent; }
.title-cyan { background-image: linear-gradient(180deg, #e6fbff, var(--cyan)); filter: drop-shadow(0 0 10px rgba(82, 220, 255, 0.6)); }
.title-pink { background-image: linear-gradient(180deg, #ffd1ec, var(--pink)); filter: drop-shadow(0 0 10px rgba(255, 79, 179, 0.7)); }

/* ---------- Explore cards ---------- */
.explore-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px);
  perspective: 1400px;
}
.explore-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, var(--panel), #120e3a);
  box-shadow: 0 0 0 2px rgba(255, 120, 210, 0.75), 0 0 24px rgba(255, 79, 179, 0.4), 0 18px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.explore-card:nth-child(1) { transform: rotateY(9deg); transform-origin: right center; }
.explore-card:nth-child(3) { transform: rotateY(-9deg); transform-origin: left center; }
.explore-card:hover { transform: translateY(-6px); box-shadow: 0 0 0 2px #ffc0e6, 0 0 36px rgba(255, 79, 179, 0.7), 0 22px 44px rgba(0, 0, 0, 0.5); }
.explore-art { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.explore-body {
  display: flex; align-items: center; gap: 12px; flex: 1;
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(255, 140, 215, 0.45);
  background: linear-gradient(180deg, rgba(60, 30, 140, 0.55), rgba(20, 14, 60, 0.95));
}
.explore-body img { width: 46px; flex: none; filter: drop-shadow(0 0 8px rgba(139, 92, 255, 0.7)); }
.explore-body div { min-width: 0; }
.explore-body h3 { font-size: clamp(1rem, 1.6vw, 1.25rem); font-weight: 700; line-height: 1.3; }
.explore-body p { font-size: 0.86rem; color: var(--muted); line-height: 1.4; }

/* ---------- World carousel ---------- */
.carousel { position: relative; display: flex; align-items: center; gap: 10px; }
.carousel-track {
  flex: 1; min-width: 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 14px) / 5); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 10px 4px 14px; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.place {
  position: relative; scroll-snap-align: start; overflow: hidden;
  border-radius: 14px; aspect-ratio: 4 / 5; background: var(--panel);
  box-shadow: 0 0 0 2px rgba(110, 190, 255, 0.7), 0 0 18px rgba(82, 220, 255, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.place:hover { transform: translateY(-4px); box-shadow: 0 0 0 2px #bdf2ff, 0 0 28px rgba(82, 220, 255, 0.65); }
.place img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.place:hover img { transform: scale(1.06); }
.place span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 8px 10px; text-align: center;
  font-weight: 600; font-size: clamp(0.85rem, 1.3vw, 1rem);
  background: linear-gradient(180deg, transparent, rgba(12, 8, 44, 0.92) 60%);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.carousel-btn {
  flex: none; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  border: 2px solid rgba(255, 190, 230, 0.9); color: #fff; font-size: 1rem;
  background: radial-gradient(circle at 35% 30%, #ff8fd0, var(--pink-deep));
  box-shadow: 0 0 16px rgba(255, 79, 179, 0.7);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.carousel-btn:hover { transform: scale(1.06); }
.carousel-btn:disabled { opacity: 0.35; cursor: default; transform: none; }
.carousel.is-static .carousel-btn { visibility: hidden; }

/* ---------- Crew ---------- */
.crew-stage { display: grid; gap: clamp(20px, 4vw, 40px); }
.poses {
  display: flex; justify-content: center; align-items: flex-end; flex-wrap: wrap;
  gap: clamp(4px, 1.6vw, 22px);
}
.poses img {
  height: clamp(120px, 15vw, 196px); width: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 16px rgba(255, 120, 210, 0.25));
  transition: transform 0.3s ease;
}
.poses li:hover img { transform: translateY(-8px) rotate(-2deg); }
.buddies {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
  max-width: 820px; margin: 0 auto; width: 100%;
}
.buddy {
  margin: 0; display: grid; justify-items: center; align-content: end; gap: 8px;
  padding: 16px 10px 12px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(139, 92, 255, 0.16), rgba(27, 21, 80, 0.6));
  box-shadow: inset 0 0 0 1px var(--line);
}
.buddy img { height: clamp(74px, 9vw, 110px); width: auto; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.45)); }
.buddy figcaption { font-weight: 600; font-size: 0.95rem; }

/* ---------- Play band ---------- */
.play {
  position: relative; overflow: hidden;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r); padding-block: clamp(36px, 6vw, 64px);
  background:
    linear-gradient(90deg, rgba(11, 10, 36, 0.92) 0%, rgba(11, 10, 36, 0.55) 55%, rgba(11, 10, 36, 0.2) 100%),
    url("assets/castle.webp") center 40% / cover no-repeat;
  box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line);
}
.play-inner {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: 24px;
}
.play-mascot { width: 100%; max-width: 380px; justify-self: center; filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.5)); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.play-copy { display: grid; justify-items: start; gap: 14px; min-width: 0; }
.play-copy h2 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); font-weight: 700; line-height: 1.2; text-wrap: balance; text-shadow: 0 2px 14px rgba(10, 6, 40, 0.9); }
.play-copy p { color: var(--ink); max-width: 34em; text-shadow: 0 1px 8px rgba(10, 6, 40, 0.9); }
.play-copy .play-note { color: var(--muted); font-size: 0.9rem; }

/* ---------- Journey: one long painted background behind every section between hero and PLAY band ----------
   world-long.webp is a single tall artwork (Codex panels stitched top to bottom). The calm centre column
   carries the text; a soft vignette keeps copy readable without breaking the painting into blocks. */
.journey {
  position: relative; isolation: isolate; display: flow-root; /* feature row overlaps the hero, not this background */
  background: var(--night) url("assets/world-long.webp") center top / cover no-repeat;
}
.journey::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, var(--night) 0, rgba(11, 10, 36, 0) 260px, rgba(11, 10, 36, 0) calc(100% - 200px), var(--night) 100%),
    linear-gradient(90deg, rgba(11, 10, 36, 0.25) 0%, rgba(11, 10, 36, 0.62) 22%, rgba(11, 10, 36, 0.62) 78%, rgba(11, 10, 36, 0.25) 100%);
}
.journey .section { background: none; }
.journey .section-lead { text-shadow: 0 2px 12px rgba(6, 4, 24, 0.9); }

/* ---------- Game guide sections (schools, balance, events, systems) ---------- */
ol { margin: 0; padding: 0; list-style: none; }
.section-lead {
  max-width: 46em !important; margin-top: calc(-1 * clamp(10px, 2vw, 22px)); margin-bottom: clamp(22px, 3.5vw, 36px);
  text-align: center; color: var(--muted); text-wrap: pretty;
}
.step-no {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  font-family: var(--display); font-size: 1.2rem; color: #fff;
  background: radial-gradient(circle at 35% 30%, #ff8fd0, var(--pink-deep));
  box-shadow: 0 0 0 2px rgba(255, 190, 230, 0.85), 0 0 14px rgba(255, 79, 179, 0.7);
}
.schools { background: linear-gradient(180deg, var(--night-2) 0%, var(--night) 100%); }
.balance { background: radial-gradient(60% 40% at 50% 20%, rgba(82, 220, 255, 0.12), transparent 70%), var(--night); }
.events { background: radial-gradient(60% 40% at 50% 10%, rgba(255, 79, 179, 0.14), transparent 70%), linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); }
.systems { background: linear-gradient(180deg, var(--night-2) 0%, var(--night) 100%); }

.chip {
  display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; justify-self: start; align-self: start; padding: 3px 12px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; line-height: 1.5; white-space: nowrap;
  color: #ffe3f3; background: rgba(255, 79, 179, 0.18); box-shadow: inset 0 0 0 1px rgba(255, 140, 215, 0.6);
}
.chip-pink { color: #fff; background: linear-gradient(180deg, #ff8fd0, var(--pink-deep)); box-shadow: 0 0 12px rgba(255, 79, 179, 0.6); }
.chip-cyan { color: #e6fbff; background: rgba(82, 220, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(82, 220, 255, 0.6); }
.chip-gold { color: #2a1a00; background: linear-gradient(180deg, #ffe9a3, #f5b93a); }
.chip-muted { color: var(--muted); background: rgba(191, 182, 236, 0.1); box-shadow: inset 0 0 0 1px rgba(191, 182, 236, 0.4); }

.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; line-height: 1.55; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.5em; width: 12px; height: 12px;
  background: url("assets/deco-sparkle.webp") center / contain no-repeat;
  filter: drop-shadow(0 0 4px rgba(255, 79, 179, 0.8));
}
.ticks strong { color: #fff; font-weight: 600; }
.note { margin-top: 14px; padding: 10px 14px; border-radius: 12px; font-size: 0.9rem; color: var(--muted); background: rgba(139, 92, 255, 0.12); box-shadow: inset 0 0 0 1px var(--line); }
.was { color: var(--muted); font-size: 0.88em; }
.dmg { color: #ff5d6c; font-weight: 700; text-shadow: 0 0 8px rgba(255, 60, 80, 0.7); }
.heal { color: #5dff9a; font-weight: 700; text-shadow: 0 0 8px rgba(60, 255, 130, 0.6); }

.split-art { margin: 0; }
.balance-art, .events-art { margin-top: 0; }
.split-art img, .balance-art img, .events-art img, .feature-event-art, .system-card > img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
}
.split-art, .balance-art, .events-art, .feature-event-art {
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 0 0 2px rgba(255, 120, 210, 0.7), 0 0 26px rgba(255, 79, 179, 0.35), 0 18px 40px rgba(0, 0, 0, 0.45);
}

.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 4vw, 48px); }
.split + .split { margin-top: clamp(32px, 5vw, 56px); }
.split-rev .split-art { order: 2; }
.split-copy { display: grid; gap: 14px; min-width: 0; }
.split-copy h3, .feature-event-copy h3 { font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 700; line-height: 1.3; text-wrap: balance; }
.split-copy > p { color: var(--ink); }
.split-copy .note { margin-top: 0; }

.balance-art { max-width: 860px !important; margin-bottom: clamp(24px, 4vw, 40px); }
.phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); counter-reset: phase; }
.phase {
  position: relative; display: grid; align-content: start; gap: 10px; min-width: 0;
  padding: 22px 20px 20px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(60, 30, 140, 0.5), rgba(20, 14, 60, 0.95));
  box-shadow: 0 0 0 1px rgba(110, 190, 255, 0.55), 0 0 18px rgba(82, 220, 255, 0.18);
}
.phase-tag { font-family: var(--display); font-size: 0.9rem; letter-spacing: 0.06em; color: var(--cyan); text-shadow: 0 0 8px rgba(82, 220, 255, 0.6); }
.phase h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.phase p { color: var(--muted); font-size: 0.95rem; }
.mini { display: grid; gap: 6px; margin-top: 4px; font-size: 0.9rem; }
.mini li { position: relative; padding-left: 16px; }
.mini li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 6px var(--pink); }

.events-art { max-width: 960px !important; margin-bottom: clamp(20px, 3vw, 32px); }
.event-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.event-card {
  display: grid; align-content: start; gap: 8px; min-width: 0; padding: 16px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(139, 92, 255, 0.18), rgba(27, 21, 80, 0.7));
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.event-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(255, 140, 215, 0.8), 0 0 18px rgba(255, 79, 179, 0.3); }
.event-card h3 { font-family: var(--display); font-weight: 400; font-size: 1.1rem; letter-spacing: 0.02em; line-height: 1.25; }
.event-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.event-card.is-soon { opacity: 0.8; }

.feature-event { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 4vw, 48px); margin-top: clamp(36px, 5vw, 60px); }
.feature-event-rev .feature-event-art { order: 2; }
.feature-event-copy { display: grid; gap: 14px; min-width: 0; }

.system-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.system-card {
  display: flex; flex-direction: column; min-width: 0; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, var(--panel), #120e3a);
  box-shadow: 0 0 0 2px rgba(255, 120, 210, 0.6), 0 0 22px rgba(255, 79, 179, 0.25), 0 18px 40px rgba(0, 0, 0, 0.45);
}
.system-body { display: grid; align-content: start; gap: 12px; padding: 18px 18px 20px; border-top: 1px solid rgba(255, 140, 215, 0.45); flex: 1; }
.system-body h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.system-body .ticks { font-size: 0.93rem; }


@media (max-width: 980px) {
  .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .system-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px !important; }
  .phases { grid-template-columns: minmax(0, 1fr); max-width: 640px !important; }
}
@media (max-width: 720px) {
  .split, .feature-event { grid-template-columns: minmax(0, 1fr); }
  .split-rev .split-art, .feature-event-rev .feature-event-art { order: 0; }
  .event-grid { gap: 10px; }
  .event-card { padding: 14px 12px; }
}
@media (max-width: 359px) {
  .event-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Sub pages and page cards ---------- */
.page-top { padding-top: calc(clamp(40px, 6vw, 72px) + 68px + env(safe-area-inset-top, 0px)); }
.more { padding-top: clamp(16px, 3vw, 32px); }
.page-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.page-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 980px !important; }
.page-card a {
  display: flex; flex-direction: column; height: 100%; border-radius: 18px; overflow: hidden; text-decoration: none;
  background: linear-gradient(180deg, var(--panel), #120e3a);
  box-shadow: 0 0 0 2px rgba(255, 120, 210, 0.6), 0 0 22px rgba(255, 79, 179, 0.25), 0 18px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.page-card a:hover { transform: translateY(-5px); box-shadow: 0 0 0 2px #ffc0e6, 0 0 32px rgba(255, 79, 179, 0.6), 0 22px 44px rgba(0, 0, 0, 0.5); }
.page-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.page-card-body { display: grid; gap: 4px; padding: 14px 16px 16px; flex: 1; align-content: start; border-top: 1px solid rgba(255, 140, 215, 0.45); }
.page-card-eyebrow { font-family: var(--display); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pink); }
.page-card-title { font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.page-card-desc { color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
.page-card-more { margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.9rem; color: var(--cyan); }
@media (max-width: 980px) {
  .page-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px !important; }
  .page-cards-3 .page-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 559px) {
  .page-cards, .page-cards-3 { grid-template-columns: minmax(0, 1fr); max-width: 460px !important; }
  .page-cards-3 .page-card:last-child { grid-column: auto; }
}

/* ---------- Footer ---------- */
.site-footer {
  display: grid; justify-items: center; gap: 8px; text-align: center;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r); padding-block: 32px 40px;
  color: var(--muted); font-size: 0.85rem;
}
.site-footer img { width: 120px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .main-nav {
    position: absolute; top: 100%; left: var(--gutter-l); right: var(--gutter-r); margin: 0;
    display: none; flex-direction: column; gap: 0; padding: 8px;
    border-radius: 16px; background: rgba(17, 13, 54, 0.97);
    box-shadow: 0 0 0 1px var(--line), 0 20px 40px rgba(0, 0, 0, 0.5);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 14px; border-radius: 10px; }
  .main-nav a::after { display: none; }
  .main-nav a:hover, .main-nav a[aria-current="page"] { background: rgba(139, 92, 255, 0.2); }
  .menu-toggle { display: grid; place-items: center; }
  .site-header:has(.is-open) { background: rgba(13, 11, 42, 0.95); }
}

@media (max-width: 720px) {
  .socials { display: none; }
  .brand img { width: 90px; }
  .header-actions { gap: 10px; }
  /* Portrait poster: crop the key art around the character (its baked-in logo
     stays out of frame), fade its lower part into the page and pull the logo +
     CTA up into that fade so the face stays clear. */
  .hero-stage { aspect-ratio: auto; --art-h: min(124vw, 580px); --art-top: 48px; min-height: calc(var(--art-h) + var(--art-top)); }
  .hero-art {
    height: var(--art-h); margin-top: var(--art-top); object-position: 7% top;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 52%, rgba(0, 0, 0, 0.55) 74%, transparent 98%);
    mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 52%, rgba(0, 0, 0, 0.55) 74%, transparent 98%);
  }
  .hero-stage::after { background: linear-gradient(180deg, rgba(11, 10, 36, 0.55) 0, rgba(11, 10, 36, 0) 90px); }
  .hero-cta {
    position: relative; left: auto; top: auto; transform: none;
    margin-top: calc(var(--art-h) * -0.36);
    display: grid; justify-items: center; gap: 6px;
    padding-left: var(--gutter-l); padding-right: var(--gutter-r);
    padding-bottom: 48px; /* room for the button glow, which the stage would otherwise clip */
  }
  .hero-logo {
    width: min(78vw, 380px);
    filter: drop-shadow(0 0 18px rgba(82, 220, 255, 0.45)) drop-shadow(0 6px 14px rgba(11, 10, 36, 0.8));
  }
  .hero-cta .btn-xl { font-size: 1.2rem; }
  .features { margin-top: -28px; padding-block: 0 8px; }
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .explore-grid { grid-template-columns: minmax(0, 1fr); max-width: 460px; }
  /* The phone page is ~2x longer than the artwork: keep it sharp and let it repeat
     (its top and bottom both fade to --night, so the loop has no seam). */
  .journey { background-size: 230% auto; background-repeat: repeat-y; }
  .explore-card:nth-child(n) { transform: none; }
  .carousel-track { grid-auto-columns: 42%; }
  .carousel-btn { width: 36px; height: 36px; }
  .buddies { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .play-inner { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .play-mascot { max-width: 260px; }
  .play-copy { justify-items: center; }
}

@media (max-width: 400px) {
  .header-actions .btn-sm { padding: 0.45em 0.9em; font-size: 0.74rem; }
  .carousel-btn { display: none; }
  .carousel-track { grid-auto-columns: 46%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .carousel-track { scroll-behavior: auto; }
}
