/* ==========================================================================
   FAKAKEES – site styles (mobile-first)
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face { font-family: "Luckiest Guy"; src: url(/fonts/luckiest-guy-latin.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lilita One"; src: url(/fonts/lilita-one-latin.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(/fonts/nunito-latin.woff2) format("woff2"); font-weight: 500 900; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --ink: #1d0b36;
  --ink-soft: #54446d;
  --purple-950: #160729;
  --purple-900: #220c45;
  --purple-800: #2f1162;
  --purple-700: #45198a;
  --purple-500: #7a3fe0;
  --purple-300: #b9a0f5;
  --orange: #e8803a;
  --orange-700: #b4562c;
  --yellow: #ffc100;
  --yellow-700: #d99a00;
  --yellow-200: #ffe7a0;
  --teal: #2c998e;
  --teal-800: #1b6b63;
  --teal-200: #c4e6e1;
  --sky: #97d3e1;
  --sky-100: #e3f5f9;
  --cream: #fff7e8;
  --white: #ffffff;
  --green: #6fb52f;

  --font-display: "Luckiest Guy", "Lilita One", "Arial Black", system-ui, sans-serif;
  --font-head: "Lilita One", "Arial Black", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 36px;
  --shadow-sm: 0 6px 16px -8px rgba(29, 11, 54, .35);
  --shadow: 0 18px 40px -18px rgba(29, 11, 54, .45);
  --shadow-lg: 0 30px 60px -24px rgba(22, 7, 41, .55);
  --header-h: 68px;
  --gutter: 16px;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 960px) { :root { --header-h: 80px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
/* <picture> is layout-transparent so the <img> behaves as a direct child of grids/flex rows */
picture { display: contents; }
picture > source { display: none; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.05; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--purple-500); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--yellow); }

.container { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
.container-narrow { width: min(100% - 2 * var(--gutter), 820px); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; 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: 10px 18px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-family: var(--font-head); text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ---------- Typography ---------- */
.display { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .01em; line-height: .95; }
.h-xl { font-size: clamp(2.75rem, 5vw + 1.4rem, 5.5rem); }
.h-lg { font-size: clamp(2.15rem, 3.2vw + 1.2rem, 3.75rem); }
.h-md { font-family: var(--font-head); font-size: clamp(1.5rem, 1vw + 1.15rem, 2rem); line-height: 1.1; }
.h-sm { font-family: var(--font-head); font-size: 1.35rem; line-height: 1.15; }
.text-shadow { text-shadow: 0 4px 0 rgba(22, 7, 41, .25); }
.lead { font-size: clamp(1.15rem, .5vw + 1.05rem, 1.35rem); line-height: 1.55; }
.muted { color: var(--ink-soft); }
.text-purple { color: var(--purple-800); }
.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  margin-bottom: 14px; padding: .35em .9em;
  font-family: var(--font-head); font-size: .9rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal-800); background: var(--teal-200); border-radius: 999px;
}
.on-dark .eyebrow { color: var(--ink); background: var(--yellow); }
.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-head h2 + p { margin-top: 16px; }
.on-dark { color: var(--white); }
.on-dark .muted { color: rgba(255, 255, 255, .78); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--yellow); --btn-edge: var(--yellow-700); --btn-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .78em 1.45em .72em;
  font-family: var(--font-head); font-size: 1.1rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  box-shadow: 0 5px 0 var(--btn-edge), 0 14px 24px -10px rgba(22, 7, 41, .5);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn svg { width: 1.15em; height: 1.15em; transition: transform .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--btn-edge), 0 18px 28px -10px rgba(22, 7, 41, .5); filter: brightness(1.04); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--btn-edge), 0 6px 12px -8px rgba(22, 7, 41, .5); }
.btn-sm { font-size: .95rem; padding: .62em 1.1em .56em; box-shadow: 0 4px 0 var(--btn-edge), 0 10px 18px -10px rgba(22, 7, 41, .5); }
.btn-teal { --btn-bg: var(--teal); --btn-edge: var(--teal-800); --btn-fg: var(--white); }
.btn-purple { --btn-bg: var(--purple-700); --btn-edge: var(--purple-950); --btn-fg: var(--white); }

/* ---------- Store badges & social ---------- */
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-badge { display: block; width: 168px; border-radius: 12px; transition: transform .2s ease, filter .2s ease; }
.store-badge img { width: 100%; border-radius: 12px; box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .7); }
.store-badge:hover { transform: translateY(-3px) scale(1.03); filter: brightness(1.08); }
.social { display: flex; gap: 12px; flex-wrap: wrap; }
.social a {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--yellow); color: var(--ink);
  box-shadow: 0 4px 0 var(--yellow-700);
  transition: transform .2s ease, background .2s ease;
}
.social a:hover { transform: translateY(-3px) rotate(-6deg); background: var(--white); }
.social svg { width: 22px; height: 22px; }
.social-lg a { width: 54px; height: 54px; }
.social-lg svg { width: 26px; height: 26px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: box-shadow .3s ease;
}
/* The blur lives on a pseudo-element: backdrop-filter on the header itself would become the
   containing block for the fixed-position mobile menu and squash it to the header's height. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(34, 12, 69, .94);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  transition: background .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6); }
.site-header.is-scrolled::before { background: rgba(22, 7, 41, .96); }
body { padding-top: var(--header-h); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 12px; }
.brand { display: block; width: 128px; flex-shrink: 0; margin-right: auto; transition: transform .2s ease; }
.brand:hover { transform: rotate(-2deg) scale(1.03); }
.brand img { width: 100%; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .35)); }
.header-cta { flex-shrink: 0; }
@media (max-width: 359px) { .header-cta { display: none; } }

.nav-toggle {
  position: relative; z-index: 2; display: grid; place-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 0; border: 0; border-radius: 14px; cursor: pointer;
  background: rgba(255, 255, 255, .1);
}
.nav-toggle span { display: block; width: 22px; height: 3px; border-radius: 3px; background: var(--white); transition: transform .3s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* mobile menu */
.primary-nav {
  position: fixed; inset: var(--header-h) 0 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 28px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background:
    radial-gradient(circle at 85% 10%, rgba(232, 128, 58, .45), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(122, 63, 224, .5), transparent 45%),
    var(--purple-900);
  visibility: hidden; opacity: 0; transform: translateY(-10px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.primary-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s ease, transform .25s ease; }
.primary-nav ul { display: grid; gap: 4px; }
.primary-nav a:not(.store-badge) {
  display: block; padding: 10px 4px;
  font-family: var(--font-display); font-size: 2.3rem; text-transform: uppercase; letter-spacing: .02em; line-height: 1;
  color: var(--white); text-decoration: none;
  text-shadow: 0 4px 0 rgba(0, 0, 0, .3);
  transition: color .2s ease, transform .2s ease;
}
.primary-nav a:not(.store-badge):hover, .primary-nav a[aria-current="page"] { color: var(--yellow); }
.primary-nav a:not(.store-badge):hover { transform: translateX(6px); }
html.nav-open { overflow: hidden; }

@media (min-width: 960px) {
  .brand { width: 168px; }
  .nav-toggle { display: none; }
  .nav-badges { display: none; }
  .primary-nav {
    position: static; inset: auto; z-index: auto; flex-direction: row; padding: 0; overflow: visible;
    background: none; visibility: visible; opacity: 1; transform: none; transition: none;
  }
  .primary-nav ul { display: flex; gap: 4px; }
  .primary-nav a:not(.store-badge) {
    position: relative; padding: 10px 14px;
    font-family: var(--font-head); font-size: 1.05rem; letter-spacing: .06em; text-shadow: none;
  }
  .primary-nav a:not(.store-badge):hover { transform: translateY(-1px); }
  .primary-nav a:not(.store-badge)::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px; border-radius: 3px;
    background: var(--yellow); transform: scaleX(0); transition: transform .25s ease;
  }
  .primary-nav a:not(.store-badge):hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .header-cta { margin-left: 12px; }
}

/* ---------- Sections & waves ---------- */
.section { position: relative; padding-block: clamp(72px, 9vw, 128px); background-color: var(--section-bg, transparent); }
.section > .container, .section > .container-narrow { position: relative; z-index: 2; }
.bg-cream { --section-bg: var(--cream); }
.bg-white { --section-bg: var(--white); }
.bg-sky { --section-bg: var(--sky); background-image: radial-gradient(circle at 15% 0%, rgba(255, 255, 255, .55), transparent 45%), radial-gradient(circle at 90% 100%, rgba(44, 153, 142, .25), transparent 45%); }
.bg-teal { --section-bg: var(--teal); background-image: radial-gradient(circle at 80% 0%, rgba(255, 255, 255, .18), transparent 45%); }
.bg-purple { --section-bg: var(--purple-900); background-image: linear-gradient(112deg, var(--orange-700) 0%, #7a2f5f 38%, var(--purple-800) 70%, var(--purple-900) 100%); }
.bg-night { --section-bg: var(--purple-900); background-image: radial-gradient(circle at 20% 0%, rgba(122, 63, 224, .45), transparent 50%), radial-gradient(circle at 100% 100%, rgba(232, 128, 58, .28), transparent 45%); }

.wave { position: absolute; left: 0; z-index: 1; width: 100%; height: clamp(26px, 5vw, 76px); pointer-events: none; }
.wave-rise { bottom: calc(100% - 1px); }
.wave-drip { top: -1px; transform: scaleY(-1); }
.fill-cream { fill: var(--cream); }
.fill-white { fill: var(--white); }
.fill-sky { fill: var(--sky); }
.fill-teal { fill: var(--teal); }
.fill-purple-900 { fill: var(--purple-900); }
.fill-purple-950 { fill: var(--purple-950); }

/* floating orbs (brand background motif) */
.orbs { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.orbs span { position: absolute; border-radius: 50%; background: linear-gradient(160deg, rgba(240, 145, 70, .75), rgba(110, 40, 110, .05) 75%); }
.orbs span:nth-child(1) { width: 220px; height: 220px; left: -60px; top: 18%; }
.orbs span:nth-child(2) { width: 120px; height: 120px; left: 22%; top: 8%; }
.orbs span:nth-child(3) { width: 90px; height: 90px; left: 40%; bottom: 10%; }
.orbs span:nth-child(4) { width: 260px; height: 260px; right: -80px; top: 40%; background: linear-gradient(160deg, rgba(240, 145, 70, .45), rgba(110, 40, 110, .02) 75%); }
.orbs span:nth-child(5) { width: 150px; height: 150px; right: 22%; top: -40px; background: linear-gradient(160deg, rgba(240, 145, 70, .4), rgba(110, 40, 110, .02) 75%); }
@media (prefers-reduced-motion: no-preference) {
  .orbs span { animation: drift 14s ease-in-out infinite alternate; }
  .orbs span:nth-child(2n) { animation-duration: 18s; animation-delay: -6s; }
  .orbs span:nth-child(3n) { animation-duration: 22s; animation-delay: -3s; }
}
@keyframes drift { to { transform: translate3d(18px, -26px, 0) scale(1.06); } }

/* ---------- Motion helpers ---------- */
@media (prefers-reduced-motion: no-preference) {
  .float { animation: float 6s ease-in-out infinite; }
  .float-slow { animation: float 9s ease-in-out infinite; }
  @supports (animation-timeline: view()) {
    [data-reveal] { animation: reveal linear both; animation-timeline: view(); animation-range: entry 5% cover 25%; }
    [data-reveal="left"] { animation-name: reveal-left; }
    [data-reveal="right"] { animation-name: reveal-right; }
    [data-reveal="pop"] { animation-name: reveal-pop; }
  }
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes reveal { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }
@keyframes reveal-left { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: none; } }
@keyframes reveal-right { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }
@keyframes reveal-pop { from { opacity: 0; transform: scale(.82) rotate(-4deg); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Home
   ========================================================================== */
.hero { position: relative; isolation: isolate; display: grid; min-height: clamp(440px, 49vw, calc(100svh - var(--header-h))); background: var(--purple-900); overflow: hidden; }
.hero-art { position: absolute; inset: 0; z-index: -1; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
@media (prefers-reduced-motion: no-preference) { .hero-art img { animation: kenburns 24s ease-in-out infinite alternate; } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07) translateY(-1%); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(22, 7, 41, .25) 0%, transparent 25%, transparent 55%, rgba(22, 7, 41, .7) 100%); }
.hero-content { align-self: end; display: grid; justify-items: center; padding-bottom: clamp(44px, 6vw, 92px); }
.scroll-cue { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--white); background: rgba(255, 255, 255, .16); border: 2px solid rgba(255, 255, 255, .5); text-decoration: none; }
.scroll-cue svg { width: 20px; transform: rotate(90deg); }
@media (prefers-reduced-motion: no-preference) { .scroll-cue { animation: bob 2s ease-in-out infinite; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* A unique adventure */
.adventure-grid { display: grid; gap: 40px; align-items: center; }
.adventure-media { position: relative; display: grid; place-items: center; }
.adventure-media::before {
  content: ""; position: absolute; width: min(88%, 440px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--yellow) 0%, rgba(255, 193, 0, .35) 55%, transparent 70%);
}
.adventure-media img { position: relative; width: min(78%, 400px); filter: drop-shadow(0 30px 40px rgba(29, 11, 54, .35)); }
.adventure-copy h2 { color: var(--purple-800); margin-bottom: 22px; }
.adventure-copy .store-badges { margin-top: 28px; }
@media (min-width: 860px) {
  .adventure-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; }
}

/* Explore our features */
.features-grid { display: grid; gap: 48px; align-items: center; }
.features-intro h2 { margin-bottom: 18px; }
.features-intro p { font-family: var(--font-head); font-size: 1.25rem; letter-spacing: .02em; color: var(--yellow-200); }
.feature-cards { display: grid; gap: 56px 24px; padding-top: 44px; }
.feature-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  padding: 72px 28px 30px; border-radius: var(--radius); background: var(--white); color: var(--ink);
  box-shadow: var(--shadow-lg);
  transition: transform .3s ease;
}
.feature-card:hover { transform: translateY(-6px) rotate(-.6deg); }
.feature-card .feature-icon { position: absolute; top: -48px; left: 24px; width: 104px; filter: drop-shadow(0 10px 14px rgba(22, 7, 41, .35)); transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.feature-card:hover .feature-icon { transform: rotate(-8deg) scale(1.08); }
.feature-card .eyebrow { margin-bottom: 8px; }
.feature-card h3 { font-family: var(--font-display); font-size: 2.1rem; text-transform: uppercase; color: var(--orange-700); margin-bottom: 12px; }
.feature-card p { color: var(--ink-soft); flex-grow: 1; margin-bottom: 24px; }
@media (min-width: 640px) { .feature-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .features-grid { grid-template-columns: .85fr 1.4fr; gap: 56px; }
  .features-intro { text-align: left; }
}

/* News */
.news-grid { display: grid; gap: 28px; }
.news-card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}
.news-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.news-media { position: relative; aspect-ratio: 1; overflow: hidden; margin: 12px 12px 0; border-radius: calc(var(--radius) - 8px); }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.news-card:hover .news-media img { transform: scale(1.06); }
.news-body { padding: 22px 24px 28px; text-align: center; }
.news-body h3 { font-family: var(--font-display); font-size: 1.85rem; text-transform: uppercase; line-height: .95; margin-bottom: 12px; }
.news-body h3 span { display: block; }
.news-body p { color: var(--ink-soft); font-size: 1rem; }
.news-card:nth-child(1) h3 { color: var(--orange-700); }
.news-card:nth-child(2) h3 { color: var(--purple-700); }
.news-card:nth-child(3) h3 { color: #4e7d12; }
@media (min-width: 700px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   Inner page hero
   ========================================================================== */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--purple-900); color: var(--white); }
.page-hero-art { position: absolute; inset: 0; z-index: -2; }
.page-hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(34, 12, 69, .95) 0%, rgba(47, 17, 98, .85) 45%, rgba(122, 47, 95, .55) 100%); }
.page-hero-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: clamp(260px, 30vw, 380px); padding-block: 48px clamp(72px, 8vw, 110px); }
.page-hero h1 { text-shadow: 0 6px 0 rgba(0, 0, 0, .3); }
.page-hero-icon { width: clamp(110px, 16vw, 200px); flex-shrink: 0; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .45)); }
.breadcrumb { display: flex; gap: 8px; margin-bottom: 12px; font-family: var(--font-head); font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); }
.breadcrumb a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }

/* ==========================================================================
   Gameplay
   ========================================================================== */
.overview-grid { display: grid; gap: 40px; align-items: center; }
.overview-copy h2 { color: var(--purple-800); margin-bottom: 20px; }
@media (min-width: 960px) { .overview-grid { grid-template-columns: 1fr 1.15fr; gap: 64px; } }

/* video facade */
.video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--purple-950); box-shadow: var(--shadow-lg); border: 6px solid var(--white); }
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-play {
  position: absolute; inset: 0; display: grid; place-items: center; text-decoration: none;
  background: linear-gradient(to top, rgba(22, 7, 41, .55), rgba(22, 7, 41, .05) 60%);
}
.video-play span {
  display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%;
  background: var(--yellow); color: var(--ink); box-shadow: 0 6px 0 var(--yellow-700), 0 16px 30px -8px rgba(0, 0, 0, .6);
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
}
.video-play svg { width: 38px; height: 38px; margin-left: 5px; }
.video-play:hover span { transform: scale(1.12); }
.video-title { position: absolute; left: 18px; right: 18px; bottom: 14px; margin: 0; font-family: var(--font-head); font-size: 1.05rem; letter-spacing: .03em; color: var(--white); text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
@media (prefers-reduced-motion: no-preference) { .video-play span { animation: pulse 2.4s ease-in-out infinite; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 6px 0 var(--yellow-700), 0 0 0 0 rgba(255, 193, 0, .55); } 50% { box-shadow: 0 6px 0 var(--yellow-700), 0 0 0 18px rgba(255, 193, 0, 0); } }

/* steps */
.steps { position: relative; display: grid; gap: 48px; }
.step { position: relative; text-align: center; }
.step-media { position: relative; margin: 0 auto 26px; width: min(100%, 320px); padding: 10px; border-radius: 34px; background: var(--white); box-shadow: var(--shadow); transition: transform .35s ease; }
.step:nth-child(1) .step-media { transform: rotate(-2deg); }
.step:nth-child(3) .step-media { transform: rotate(2deg); }
.step:hover .step-media { transform: rotate(0) translateY(-6px); }
.step-media img { width: 100%; border-radius: 26px; }
.step-num {
  position: absolute; top: -18px; left: -14px; z-index: 1;
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  font-family: var(--font-display); font-size: 1.9rem; line-height: 1; padding-top: 6px;
  color: var(--ink); background: var(--yellow); box-shadow: 0 4px 0 var(--yellow-700); border: 4px solid var(--white);
}
.step h3 { font-family: var(--font-display); font-size: 2rem; text-transform: uppercase; color: var(--purple-800); margin-bottom: 10px; }
.step p { max-width: 34ch; margin-inline: auto; color: var(--ink-soft); }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .steps::before {
    content: ""; position: absolute; left: 16%; right: 16%; top: 36%; height: 0;
    border-top: 4px dashed rgba(69, 25, 138, .25);
  }
}

/* attributes */
.attr-grid { display: grid; gap: 24px; }
.attr-card {
  display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center;
  padding: 22px; border-radius: var(--radius); background: var(--white); color: var(--ink);
  box-shadow: 0 8px 0 var(--teal-800), var(--shadow);
  transition: transform .3s ease;
}
.attr-card:hover { transform: translateY(-6px); }
.attr-card img { width: 96px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .25)); transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.attr-card:hover img { transform: rotate(-10deg) scale(1.08); }
.attr-card h3 { font-family: var(--font-display); font-size: 1.7rem; text-transform: uppercase; color: var(--teal-800); margin-bottom: 6px; }
.attr-card p { font-size: 1rem; color: var(--ink-soft); }
@media (min-width: 900px) {
  .attr-grid { grid-template-columns: repeat(3, 1fr); }
  .attr-card { grid-template-columns: 1fr; justify-items: center; align-content: start; text-align: center; padding: 34px 28px; }
  .attr-card img { width: 128px; }
}

/* arcade */
.arcade-head { display: grid; gap: 20px; justify-items: center; text-align: center; max-width: 760px; margin: 0 auto 48px; }
.arcade-head img { width: 120px; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .45)); }
.arcade-head h2 { color: var(--white); }
.arcade-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.game-tile {
  position: relative; overflow: hidden; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .08); border: 2px solid rgba(255, 255, 255, .14);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.game-tile:hover { transform: translateY(-6px) rotate(-1deg); border-color: var(--yellow); background: rgba(255, 255, 255, .14); }
.game-tile img { width: 100%; aspect-ratio: 475 / 278; object-fit: contain; padding: 8px 8px 0; transition: transform .4s ease; }
.game-tile:hover img { transform: scale(1.05); }
.game-tile h3 { padding: 6px 10px 12px; font-family: var(--font-head); font-size: 1.05rem; letter-spacing: .03em; text-align: center; color: var(--white); }
@media (min-width: 640px) { .arcade-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1024px) { .arcade-grid { grid-template-columns: repeat(5, 1fr); } }

/* ==========================================================================
   Creatures
   ========================================================================== */
.egg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
.egg { text-align: center; }
.egg-media { position: relative; display: grid; place-items: center; aspect-ratio: 1; margin-bottom: 14px; }
.egg-media::before { content: ""; position: absolute; inset: 14% 10% 4%; border-radius: 50%; background: radial-gradient(circle at 50% 60%, rgba(255, 193, 0, .55), transparent 68%); transition: transform .4s ease; }
.egg-media img { position: relative; width: 88%; filter: drop-shadow(0 14px 16px rgba(29, 11, 54, .28)); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.egg:hover .egg-media img { transform: translateY(-10px) rotate(-6deg); }
.egg:hover .egg-media::before { transform: scale(1.12); }
.egg h3 {
  display: inline-block; padding: .45em 1.1em .35em; border-radius: 999px;
  font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .04em; line-height: 1;
  color: var(--white); background: var(--purple-700); box-shadow: 0 4px 0 var(--purple-950);
}
.callout {
  display: flex; align-items: center; gap: 14px; justify-content: center; text-align: center;
  max-width: 760px; margin: 52px auto 0; padding: 18px 26px; border-radius: 999px;
  font-family: var(--font-head); font-size: 1.2rem; letter-spacing: .02em; line-height: 1.3;
  background: var(--yellow); color: var(--ink); box-shadow: 0 6px 0 var(--yellow-700), var(--shadow);
}
@media (max-width: 599px) { .callout { border-radius: var(--radius); } }
@media (min-width: 700px) { .egg-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .egg-grid { grid-template-columns: repeat(6, 1fr); } }

/* themes */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 22px; }
.theme-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius);
  background: var(--white); color: var(--ink); box-shadow: var(--shadow-lg);
  transition: transform .3s ease;
}
.theme-card:hover { transform: translateY(-8px) rotate(-.8deg); }
.theme-card:nth-child(even):hover { transform: translateY(-8px) rotate(.8deg); }
.theme-media { aspect-ratio: 1; overflow: hidden; }
.theme-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.theme-card:hover .theme-media img { transform: scale(1.07); }
.theme-body { padding: 18px 20px 22px; }
.theme-body h3 { font-family: var(--font-display); font-size: 1.55rem; text-transform: uppercase; color: var(--purple-700); margin-bottom: 6px; }
.theme-body p { font-size: .98rem; color: var(--ink-soft); }
.theme-card-soon { background: var(--yellow); }
.theme-card-soon .theme-body h3 { color: var(--ink); }
.theme-card-soon .theme-body p { color: var(--ink); }

/* rarities */
.rarity-top { display: grid; gap: 40px; align-items: center; margin-bottom: clamp(56px, 8vw, 100px); }
.rarity-top-copy h2 { color: var(--purple-800); margin-bottom: 18px; }
.rarity-visuals { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; align-items: center; }
.rarity-visuals .rv-post { border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 6px solid var(--white); transform: rotate(-3deg); }
.rarity-visuals .rv-screen { border-radius: 22px; box-shadow: var(--shadow-lg); border: 6px solid var(--white); transform: rotate(3deg) translateY(20px); }
@media (min-width: 960px) { .rarity-top { grid-template-columns: 1fr 1.1fr; gap: 64px; } }

.rarity-bottom { display: grid; gap: 48px; align-items: center; }
.card-fan { position: relative; height: clamp(280px, 62vw, 440px); max-width: 560px; width: 100%; margin-inline: auto; }
.card-fan img {
  position: absolute; left: 50%; bottom: 0; width: 42%; border-radius: 16px;
  transform-origin: 50% 110%; box-shadow: 0 18px 30px -12px rgba(22, 7, 41, .55);
  transition: transform .45s cubic-bezier(.34, 1.4, .64, 1);
}
.card-fan picture:nth-child(1) img { transform: translateX(-50%) rotate(-21deg); }
.card-fan picture:nth-child(2) img { transform: translateX(-50%) rotate(-7deg); }
.card-fan picture:nth-child(3) img { transform: translateX(-50%) rotate(7deg); }
.card-fan picture:nth-child(4) img { transform: translateX(-50%) rotate(21deg); }
.card-fan:hover picture:nth-child(1) img { transform: translateX(-62%) rotate(-28deg); }
.card-fan:hover picture:nth-child(2) img { transform: translateX(-54%) rotate(-10deg) translateY(-12px); }
.card-fan:hover picture:nth-child(3) img { transform: translateX(-46%) rotate(10deg) translateY(-12px); }
.card-fan:hover picture:nth-child(4) img { transform: translateX(-38%) rotate(28deg); }
.rarity-copy p { font-size: 1.1rem; }
.rarity-copy p + p { font-family: var(--font-head); font-size: 1.3rem; letter-spacing: .02em; color: var(--purple-800); }
.rarity-ladder { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.rarity-ladder li {
  padding: .5em 1.05em .4em; border-radius: 12px;
  font-family: var(--font-head); font-size: 1.05rem; letter-spacing: .05em; text-transform: uppercase; line-height: 1.1;
  color: var(--white); background: var(--c); box-shadow: 0 4px 0 rgba(0, 0, 0, .22);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .3);
}
.rarity-ladder .r-common { --c: #79b530; }
.rarity-ladder .r-uncommon { --c: #10b896; }
.rarity-ladder .r-rare { --c: #3a8ff0; }
.rarity-ladder .r-very-rare { --c: #8a6af0; }
.rarity-ladder .r-epic { --c: #be2bec; }
.rarity-ladder .r-legendary { --c: #f39200; }
.rarity-ladder .r-exclusive { --c: #e42a4a; }
@media (min-width: 960px) { .rarity-bottom { grid-template-columns: 1.05fr 1fr; gap: 64px; } }

/* interactions */
.interactions-panel { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 28px; align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: var(--radius-lg); background: #5e9b2c; color: var(--white); box-shadow: var(--shadow-lg); }
.interactions-bg { position: absolute; inset: 0; z-index: -1; }
.interactions-bg img { width: 100%; height: 100%; object-fit: cover; }
.interactions-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(31, 70, 10, .65), rgba(31, 70, 10, .1) 60%); }
.interactions-copy { display: grid; gap: 16px; justify-items: start; }
.interactions-copy .mic { width: 104px; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .4)); }
.interactions-copy h2 { text-shadow: 0 5px 0 rgba(0, 0, 0, .3); }
.interactions-copy p { font-size: 1.15rem; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.interactions-art img { width: 100%; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .35)); }
@media (min-width: 960px) { .interactions-panel { grid-template-columns: .8fr 1.2fr; gap: 40px; } }

/* cosmetics */
.cosmetics-grid { display: grid; gap: 40px; align-items: center; }
.cosmetics-copy { display: grid; gap: 4px; justify-items: start; }
.cosmetics-copy .closet { width: 110px; margin-bottom: 10px; filter: drop-shadow(0 12px 16px rgba(29, 11, 54, .3)); }
.cosmetics-copy h2 { color: var(--purple-800); margin-bottom: 14px; }
@media (min-width: 960px) { .cosmetics-grid { grid-template-columns: 1fr 1.2fr; gap: 64px; } }

/* ==========================================================================
   About
   ========================================================================== */
.about-intro { display: grid; gap: 32px; align-items: center; margin-bottom: 48px; }
.about-intro .app-icon { width: clamp(140px, 22vw, 220px); border-radius: 26%; box-shadow: var(--shadow-lg); justify-self: center; }
.about-intro .lead { font-family: var(--font-head); font-size: clamp(1.4rem, 1.2vw + 1.1rem, 2rem); line-height: 1.25; letter-spacing: .01em; color: var(--purple-800); }
@media (min-width: 760px) { .about-intro { grid-template-columns: auto 1fr; gap: 40px; } }
.about-body p { font-size: 1.12rem; margin-bottom: 1.3em; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 44px 0; }
.stat { padding: 22px 16px; border-radius: var(--radius); text-align: center; background: var(--white); box-shadow: var(--shadow-sm); border-bottom: 6px solid var(--c, var(--teal)); }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(2.3rem, 3vw + 1rem, 3.2rem); line-height: 1; color: var(--c, var(--teal)); padding-top: 4px; }
.stat span { display: block; margin-top: 6px; font-family: var(--font-head); font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); line-height: 1.2; }
.stat:nth-child(1) { --c: var(--orange-700); }
.stat:nth-child(2) { --c: var(--purple-700); }
.stat:nth-child(3) { --c: var(--teal); }
.stat:nth-child(4) { --c: #c2185b; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.about-cta { margin-top: 44px; padding: clamp(28px, 5vw, 48px); border-radius: var(--radius-lg); text-align: center; background: var(--purple-900); background-image: linear-gradient(112deg, var(--orange-700) 0%, #7a2f5f 45%, var(--purple-800) 100%); color: var(--white); box-shadow: var(--shadow-lg); }
.about-cta p { font-family: var(--font-head); font-size: clamp(1.25rem, 1vw + 1rem, 1.6rem); line-height: 1.3; letter-spacing: .01em; max-width: 40ch; margin: 0 auto 24px; }
.about-cta .store-badges { justify-content: center; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; gap: 28px; align-items: start; }
.panel { padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.panel h2 { color: var(--purple-800); margin-bottom: 24px; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--font-head); font-size: 1.05rem; letter-spacing: .03em; color: var(--purple-800); }
.field label span { color: #d32f2f; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 2px solid #e2d9ef; background: #fbf9ff; font-weight: 600;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--purple-500); background: var(--white); box-shadow: 0 0 0 4px rgba(122, 63, 224, .18); }
.form .btn { justify-self: start; margin-top: 6px; }
.form-note { display: none; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--teal-200); color: var(--teal-800); font-weight: 700; }
.form-note.is-visible { display: block; }
.info-panel { background: var(--purple-900); background-image: radial-gradient(circle at 90% 0%, rgba(232, 128, 58, .45), transparent 50%), radial-gradient(circle at 0% 100%, rgba(122, 63, 224, .5), transparent 50%); color: var(--white); }
.info-panel h2 { color: var(--white); }
.info-item + .info-item { margin-top: 28px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .15); }
.info-item h3 { font-family: var(--font-head); font-size: 1.25rem; letter-spacing: .04em; text-transform: uppercase; color: var(--yellow); margin-bottom: 12px; }
.info-email { display: inline-flex; align-items: center; gap: 12px; font-size: 1.2rem; font-weight: 800; text-decoration: none; word-break: break-all; }
.info-email svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--yellow); }
.info-email:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.4fr 1fr; gap: 36px; } }

/* ==========================================================================
   Privacy policy
   ========================================================================== */
.doc { position: relative; padding: clamp(26px, 5vw, 60px); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.doc-head { padding-bottom: 28px; margin-bottom: 32px; border-bottom: 2px dashed #e7def3; }
.doc-head h2 { color: var(--purple-800); }
.doc-date { margin-top: 14px; font-family: var(--font-head); letter-spacing: .05em; text-transform: uppercase; color: var(--teal-800); }
.doc h3 { font-family: var(--font-head); font-size: 1.45rem; letter-spacing: .02em; color: var(--purple-700); margin: 36px 0 12px; }
.doc p, .doc li { font-size: 1.05rem; }
.doc ul { display: grid; gap: 10px; margin: 0 0 1em; }
.doc li { position: relative; padding-left: 30px; }
.doc li::before { content: ""; position: absolute; left: 6px; top: .5em; width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); box-shadow: 0 2px 0 var(--yellow-700); }
.doc a { color: var(--purple-700); font-weight: 800; text-underline-offset: 3px; }

/* ==========================================================================
   404
   ========================================================================== */
.not-found { display: grid; justify-items: center; gap: 22px; text-align: center; }
.not-found img { width: 180px; }
.not-found .app-badge { border-radius: 24%; box-shadow: var(--shadow-lg); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { position: relative; background: var(--purple-950); color: var(--white); }
.site-footer .wave { fill: var(--purple-950); }
.footer-grid { display: grid; gap: 40px; padding-block: 40px 48px; }
.footer-brand { display: grid; gap: 22px; justify-items: start; }
.footer-brand > a img { width: 200px; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .4)); }
.footer-title { font-family: var(--font-display); font-size: clamp(1.6rem, 1.4vw + 1.2rem, 2.2rem); text-transform: uppercase; margin-bottom: 18px; }
.footer-email { margin-top: 22px; font-weight: 700; color: rgba(255, 255, 255, .85); }
.footer-email a { color: var(--yellow); text-decoration: none; }
.footer-email a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 22px calc(22px + env(safe-area-inset-bottom)); font-size: .95rem; color: rgba(255, 255, 255, .7); }
.footer-bottom-inner { display: grid; gap: 14px; justify-items: center; text-align: center; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.footer-nav a, .footer-bottom a { text-decoration: none; font-family: var(--font-head); letter-spacing: .05em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.footer-bottom a:hover { color: var(--yellow); }
.footer-bottom p a { color: var(--yellow); }
.footer-bottom .dot { margin-inline: 6px; opacity: .5; }
@media (min-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; align-items: center; }
  .footer-social { justify-self: end; }
  .footer-bottom-inner { grid-template-columns: 1fr auto; justify-items: stretch; text-align: left; }
  .footer-nav { justify-content: flex-start; }
}

@media print {
  .site-header, .site-footer, .wave, .orbs { display: none !important; }
  body { padding-top: 0; background: #fff; }
}
