@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Rock+Salt&display=swap');

:root {
  --olive-0: #242914;
  --olive-1: #343b1d;
  --olive-2: #4b5429;
  --olive-3: #6e7442;
  --cream: #f1e7cf;
  --cream-2: #d9cfb7;
  --purple: #8f4fe8;
  --purple-2: #b977ff;
  --purple-3: #5f2caf;
  --ink: #17150f;
  --gold: #e5bc58;
  --soft-shadow: 0 24px 70px rgba(10, 9, 6, .28);
  --radius: 32px;
  --scratch: 'Rock Salt', 'Trebuchet MS', cursive;
  --body: 'Nunito', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  background:
    radial-gradient(circle at 12% 16%, rgba(185,119,255,.12), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(229,188,88,.08), transparent 26%),
    linear-gradient(180deg, var(--olive-2), var(--olive-1) 38%, var(--olive-0));
  font-family: var(--body);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: -45vmax;
  z-index: -3;
  opacity: .16;
  background: repeating-conic-gradient(from 0deg, rgba(180,121,255,.55) 0 7deg, transparent 7deg 15deg);
  -webkit-mask-image: radial-gradient(circle at 52% 32%, #000 0 17%, transparent 59%);
  mask-image: radial-gradient(circle at 52% 32%, #000 0 17%, transparent 59%);
  animation: hypnoSpin 34s linear infinite;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: soft-light;
}

@keyframes hypnoSpin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.035); filter: saturate(1.08); } }
@keyframes floaty { 50% { transform: translateY(-9px) rotate(1deg); } }
@keyframes stickerIn { from { opacity: 0; transform: translateY(36px) rotate(-8deg) scale(.65); } to { opacity: 1; transform: translateY(0) rotate(2deg) scale(1); } }
@keyframes stickerOut { to { opacity: 0; transform: translateY(30px) rotate(9deg) scale(.76); } }

body.motion-off *, body.motion-off *::before, body.motion-off *::after { animation-play-state: paused !important; scroll-behavior: auto !important; }

img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-shell { width: min(1180px, calc(100% - 34px)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 12px;
  z-index: 30;
  width: min(1180px, calc(100% - 24px));
  margin: 12px auto 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  background: rgba(38,43,21,.76);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 36px rgba(0,0,0,.18);
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 8px 18px rgba(0,0,0,.25);
}
.logo-word { font-family: var(--scratch); font-size: 15px; line-height: 1; letter-spacing: -.04em; }
.nav-links { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a, .motion-toggle {
  border: 0;
  color: var(--cream);
  background: transparent;
  text-decoration: none;
  font: 800 13px/1 var(--body);
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.nav-links a:hover, .nav-links a.active, .motion-toggle:hover { background: rgba(255,255,255,.09); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
  color: #dcd3b8;
}
.eyebrow::before { content: '✦'; color: var(--purple-2); }

h1, h2, h3, .scratch { font-family: var(--scratch); font-weight: 400; letter-spacing: -.035em; }
h1 { font-size: clamp(48px, 8vw, 102px); line-height: .98; margin: 16px 0 20px; }
h2 { font-size: clamp(34px, 5vw, 62px); line-height: 1.05; margin: 0 0 18px; }
h3 { font-size: clamp(21px, 3vw, 30px); line-height: 1.15; margin: 0 0 10px; }
p { font-size: 17px; line-height: 1.75; color: #e4dcc6; }
.lede { font-size: clamp(18px, 2vw, 22px); max-width: 720px; }
.muted { color: #c2baa2; }
.tiny { font-size: 12px; line-height: 1.5; color: #bdb59f; }

.hero { padding: 74px 0 54px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 42px; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 .accent { color: var(--purple-2); text-shadow: 0 0 26px rgba(185,119,255,.22); }
.hero-actions, .button-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  color: var(--cream);
  background: rgba(255,255,255,.07);
}
.btn:hover { transform: translateY(-2px); background: rgba(255,255,255,.11); }
.btn.primary { color: #19130e; background: linear-gradient(135deg, var(--purple-2), #d2a1ff); border-color: transparent; box-shadow: 0 14px 35px rgba(110,48,186,.34); }
.btn.gold { color: #1c170b; background: linear-gradient(135deg, #e7c46c, #f0dd9c); border-color: transparent; }

.hypno-stage { position: relative; min-height: 560px; display: grid; place-items: center; }
.hypno-disc {
  position: absolute;
  width: min(560px, 92vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-conic-gradient(from 5deg, rgba(182,118,255,.62) 0 10deg, rgba(55,61,31,.25) 10deg 20deg);
  box-shadow: inset 0 0 100px rgba(13,11,9,.55), 0 40px 90px rgba(22,12,35,.3);
  animation: hypnoSpin 22s linear infinite;
}
.hypno-disc::after {
  content: '';
  position: absolute;
  inset: 13%;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(245,235,212,.12), rgba(37,42,21,.92) 69%);
  backdrop-filter: blur(3px);
}
.hero-cat {
  width: min(475px, 88vw);
  aspect-ratio: 1;
  object-fit: cover;
  position: relative;
  z-index: 2;
  border-radius: 44% 44% 34% 34%;
  filter: drop-shadow(0 38px 34px rgba(9,8,6,.4));
  animation: breathe 6s ease-in-out infinite;
}

.section { padding: 74px 0; }
.section-head { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-bottom: 30px; }
.section-head p { max-width: 560px; margin: 0; }

.soft-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 26px;
  background: linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.035));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(14px);
}
.soft-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 40px rgba(255,255,255,.035);
}

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 34px; }
.stat { padding: 18px; border-radius: 22px; background: rgba(20,21,11,.28); border: 1px solid rgba(255,255,255,.09); }
.stat span { display: block; color: #bfb69e; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.stat strong { display: block; font-size: 22px; margin-top: 6px; overflow-wrap: anywhere; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: stretch; }
.image-card { min-height: 420px; padding: 0; }
.image-card img { width: 100%; height: 100%; object-fit: cover; }
.image-card .caption { position: absolute; left: 16px; bottom: 16px; background: rgba(20,22,12,.76); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.1); padding: 10px 14px; border-radius: 14px; font-weight: 800; }

.link-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.social-link { min-height: 80px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 22px; text-decoration: none; font-weight: 900; background: rgba(16,18,9,.34); border: 1px solid rgba(255,255,255,.1); }
.social-link:hover { background: rgba(185,119,255,.14); border-color: rgba(185,119,255,.33); }

.portal {
  min-height: 420px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.portal-ring { width: min(360px, 76vw); aspect-ratio: 1; border-radius: 50%; background: repeating-radial-gradient(circle, var(--purple-2) 0 10px, transparent 10px 22px), repeating-conic-gradient(var(--olive-0) 0 8deg, var(--purple-3) 8deg 16deg); animation: hypnoSpin 18s linear infinite reverse; box-shadow: 0 0 60px rgba(175,111,255,.25); }
.portal-ring::after { content: 'PURR'; position: absolute; font: 400 clamp(42px,7vw,72px)/1 var(--scratch); color: var(--cream); text-shadow: 0 0 24px rgba(0,0,0,.75); }

.story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 30px; align-items: center; }
.story-copy p:first-of-type::first-letter { font: 400 72px/1 var(--scratch); float: left; padding: 6px 10px 0 0; color: var(--purple-2); }

.token-panel { display: grid; grid-template-columns: .78fr 1.22fr; gap: 20px; align-items: stretch; }
.token-meta { display: grid; gap: 12px; }
.token-row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: start; padding: 13px 0; border-bottom: 1px dashed rgba(255,255,255,.14); }
.token-row:last-child { border-bottom: 0; }
.token-row b { color: #c7bea6; }
.ca { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; overflow-wrap: anywhere; color: #efe7d5; }
.dex-frame { width: 100%; min-height: 560px; border: 0; border-radius: 24px; background: #151810; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.dex-placeholder { min-height: 560px; border-radius: 24px; display: grid; place-items: center; text-align: center; padding: 36px; background: radial-gradient(circle, rgba(152,82,230,.15), transparent 45%), rgba(17,19,10,.48); border: 1px solid rgba(255,255,255,.1); }
.loader-orbit { width: 96px; aspect-ratio: 1; border: 8px dotted var(--purple-2); border-radius: 50%; animation: hypnoSpin 3s linear infinite; margin: 0 auto 18px; }

.timeline { display: grid; gap: 18px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 34px; top: 30px; bottom: 30px; width: 2px; background: linear-gradient(var(--purple-2), rgba(185,119,255,.04)); }
.phase { position: relative; padding-left: 92px; min-height: 112px; }
.phase-num { position: absolute; left: 0; top: 0; width: 68px; height: 68px; display: grid; place-items: center; border-radius: 50%; font-family: var(--scratch); background: var(--olive-0); border: 2px solid var(--purple-2); box-shadow: 0 0 28px rgba(185,119,255,.18); }
.phase ul { margin: 10px 0 0; padding-left: 20px; color: #ddd4be; line-height: 1.7; }

.gallery { columns: 3 280px; column-gap: 16px; }
.gallery figure { break-inside: avoid; margin: 0 0 16px; border-radius: 24px; overflow: hidden; border: 1px solid rgba(255,255,255,.11); background: rgba(0,0,0,.15); box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.gallery img { width: 100%; height: auto; transition: transform .45s ease; }
.gallery figure:hover img { transform: scale(1.02); }
.gallery figcaption { padding: 12px 14px; font-size: 13px; color: #cfc6ae; }

.game-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.game-board-shell { padding: 14px; border-radius: 30px; background: rgba(10,11,6,.5); border: 1px solid rgba(255,255,255,.1); box-shadow: var(--soft-shadow); }
#snakeCanvas { width: 100%; aspect-ratio: 1; display: block; border-radius: 20px; background: #202513; image-rendering: pixelated; }
.game-hud { display: grid; gap: 14px; }
.scorebox { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.scorebox div { padding: 16px; border-radius: 20px; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.08); }
.scorebox span { display:block; color:#bfb79f; font-size:12px; text-transform:uppercase; letter-spacing:.08em; }
.scorebox strong { font-size: 26px; }
.dpad { display: grid; grid-template-columns: repeat(3, 58px); justify-content: center; gap: 8px; margin-top: 8px; }
.dpad button { width: 58px; height: 58px; border: 1px solid rgba(255,255,255,.11); border-radius: 17px; background: rgba(255,255,255,.08); color: var(--cream); font-size: 20px; font-weight: 900; cursor: pointer; }
.dpad .blank { visibility: hidden; }

.banner-strip { margin: 20px 0 0; border-radius: 32px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); box-shadow: var(--soft-shadow); }
.banner-strip img { width: 100%; aspect-ratio: 3/1; object-fit: cover; }

.cat-sticker {
  position: fixed;
  z-index: 70;
  width: 156px;
  padding: 8px;
  border-radius: 28px;
  background: rgba(243,232,207,.94);
  box-shadow: 0 24px 65px rgba(0,0,0,.38);
  border: 3px solid rgba(143,79,232,.38);
  color: #241d14;
  animation: stickerIn .55s cubic-bezier(.2,.9,.22,1.3) both;
}
.cat-sticker.out { animation: stickerOut .55s ease forwards; }
.cat-sticker img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; }
.cat-sticker b { display: block; font-family: var(--scratch); font-size: 11px; margin: 8px 4px 4px; text-align: center; }
.cat-sticker button { position: absolute; right: -7px; top: -7px; width: 27px; height: 27px; border-radius: 50%; border: 0; background: #211b13; color: white; cursor: pointer; }

.footer { padding: 28px 0 54px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; align-items: center; border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; }
.footer p { font-size: 13px; margin: 0; color: #b9b098; }

.page-hero { padding: 70px 0 34px; }
.page-hero h1 { max-width: 950px; }
.page-visual { margin-top: 24px; border-radius: 34px; overflow: hidden; border: 1px solid rgba(255,255,255,.11); min-height: 330px; box-shadow: var(--soft-shadow); }
.page-visual img { width: 100%; height: min(58vw, 620px); object-fit: cover; }

.notice { border-left: 3px solid var(--gold); padding: 12px 16px; border-radius: 0 14px 14px 0; background: rgba(229,188,88,.08); color: #ded3b8; }

@media (max-width: 900px) {
  .hero, .split, .story-grid, .token-panel, .game-wrap { grid-template-columns: 1fr; }
  .hero { padding-top: 52px; }
  .hypno-stage { min-height: 470px; }
  .stat-grid, .link-strip { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .game-hud { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  .site-shell { width: min(100% - 20px, 1180px); }
  .topbar { width: calc(100% - 12px); top: 6px; margin-top: 6px; }
  .logo-word { font-size: 12px; }
  .motion-toggle { padding: 9px 10px; }
  h1 { font-size: clamp(42px, 15vw, 66px); }
  .section { padding: 52px 0; }
  .soft-card { padding: 20px; border-radius: 25px; }
  .stat-grid, .link-strip, .game-hud { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .section-head p { margin-top: 12px; }
  .hypno-stage { min-height: 390px; }
  .timeline::before { left: 25px; }
  .phase { padding-left: 72px; }
  .phase-num { width: 52px; height: 52px; }
  .cat-sticker { width: 128px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
