/* =========================================================
   Kick a Pet — visual system
   ========================================================= */

:root {
  --bg: #07070c;
  --bg-soft: #0c0c15;
  --ink: #f6f6ff;
  --muted: #9d9ab9;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);

  --lime: #d6ff3f;
  --pink: #ff2e88;
  --violet: #8b5cff;
  --cyan: #34e7ff;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --pad: clamp(1.25rem, 4vw, 3rem);
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.02; letter-spacing: -0.03em; margin: 0; }
p { margin: 0; }

::selection { background: var(--lime); color: #08080d; }

/* ---------- background ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, #16112b 0%, transparent 55%),
    radial-gradient(80% 60% at 100% 10%, #10051c 0%, transparent 60%),
    var(--bg);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.b1 { width: 46vw; height: 46vw; left: -12vw; top: -12vw; background: #6c2bff; opacity: 0.32; }
.b2 { width: 40vw; height: 40vw; right: -10vw; top: 28vh; background: #ff2e88; opacity: 0.18; }
.b3 { width: 38vw; height: 38vw; left: 22vw; bottom: -18vw; background: #34e7ff; opacity: 0.12; }

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--lime), var(--cyan), var(--pink));
  z-index: 200;
  transition: width 0.1s linear;
}

/* ---------- typography helpers ---------- */
.label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.grad {
  background: linear-gradient(96deg, var(--lime) 0%, var(--cyan) 45%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lime);
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(214, 255, 63, 0.16);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(214, 255, 63, 0.14); }
  50% { box-shadow: 0 0 0 8px rgba(214, 255, 63, 0.04); }
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0a0a10;
  background: var(--lime);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  padding: 0.72rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.995); }

.btn-primary {
  background: var(--lime);
  color: #0a0a10;
  box-shadow: 0 10px 30px -12px rgba(214, 255, 63, 0.7);
}
.btn-primary:hover {
  background: #e4ff6b;
  transform: translateY(-2px);
  box-shadow: 0 18px 44px -14px rgba(214, 255, 63, 0.8);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--ink);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-2px); }

.btn-play {
  background: var(--ink);
  color: #08080d;
  padding: 0.6rem 1.1rem;
  font-size: 0.9rem;
}
.btn-play:hover { background: var(--lime); transform: translateY(-1px); }

.btn-lg { padding: 0.95rem 1.7rem; font-size: 1.02rem; }

.btn-tiny {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
  font-size: 0.78rem;
  padding: 0.4rem 0.8rem;
  font-family: var(--font-body);
}
.btn-tiny:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.85rem var(--pad);
  transition: padding 0.25s ease;
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.5rem 0.6rem 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled .nav-inner {
  background: rgba(10, 10, 18, 0.72);
  border-color: var(--line);
  box-shadow: 0 20px 50px -30px #000;
  backdrop-filter: blur(18px) saturate(1.4);
}

.brand { display: flex; align-items: center; gap: 0.55rem; }
.brand-mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  font-size: 0.95rem;
  background: linear-gradient(140deg, rgba(214,255,63,0.16), rgba(139,92,255,0.22));
  border: 1px solid var(--line-strong);
  border-radius: 9px;
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}
.brand-text em {
  font-style: normal;
  color: var(--lime);
  margin: 0 0.1em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }

.nav-actions { display: flex; align-items: center; gap: 0.5rem; }

.burger {
  display: none;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  padding: 0;
  place-items: center;
  gap: 4px;
}
.burger span {
  display: block;
  width: 15px; height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------- hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) var(--pad) clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d9d7ea;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.6rem;
}

.hero h1 {
  font-size: clamp(2.9rem, 7vw, 5.1rem);
  letter-spacing: -0.045em;
  line-height: 0.96;
  margin-bottom: 1.15rem;
}

.lede {
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  max-width: 44ch;
  margin-bottom: 2rem;
}

.hero-btns { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 2.4rem; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  margin: 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.hero-stats dt {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.hero-stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.03em;
}

/* stage */
.hero-art { position: relative; }

.stage {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #0a0a12;
  box-shadow:
    0 40px 90px -40px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  transform: rotate(-1.2deg);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.stage:hover { transform: rotate(0deg) scale(1.01); }

.stage img {
  width: 100%;
  aspect-ratio: 4 / 3.1;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,7,12,0.15) 0%, transparent 40%, rgba(7,7,12,0.85) 100%);
  pointer-events: none;
}

.stage-top {
  position: absolute;
  top: 0.9rem; left: 0.9rem; right: 0.9rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.tag-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(7, 7, 12, 0.6);
  border: 1px solid var(--line-strong);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}
.tag-mono {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.lane {
  position: absolute;
  z-index: 3;
  left: 0; right: 0; bottom: 0;
  display: flex;
  gap: 2.2rem;
  padding: 0.7rem 0 0.55rem;
  font-size: 1.4rem;
  overflow: hidden;
  background: linear-gradient(180deg, transparent, rgba(7,7,12,0.6));
}
.lane span {
  animation: run 9s linear infinite;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.6));
}
.lane span:nth-child(2) { animation-delay: -1.8s; }
.lane span:nth-child(3) { animation-delay: -3.6s; }
.lane span:nth-child(4) { animation-delay: -5.4s; }
.lane span:nth-child(5) { animation-delay: -7.2s; }
@keyframes run {
  from { transform: translateX(-120px) translateY(0); }
  50% { transform: translateX(180px) translateY(-3px); }
  to { transform: translateX(520px) translateY(0); }
}

.float-card {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  background: rgba(12, 12, 20, 0.82);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 50px -24px #000;
}
.float-card strong { display: block; font-size: 0.85rem; font-weight: 600; }
.float-card small { display: block; font-size: 0.72rem; color: var(--muted); }
.fc-emoji { font-size: 1.35rem; }
.fc-1 { right: -0.9rem; top: 1.6rem; animation: float 7s ease-in-out infinite; }
.fc-2 { left: -1.4rem; bottom: 3.4rem; animation: float 8.5s ease-in-out infinite reverse; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- ticker ---------- */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  padding: 0.85rem 0;
  margin: clamp(1rem, 3vw, 2rem) 0 0;
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.ticker-track span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #cfcde4;
  white-space: nowrap;
}
.ticker-track b { color: var(--lime); font-size: 0.7rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--pad) 0;
}

.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head .label { margin-bottom: 1rem; display: block; }
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1.03;
  margin-bottom: 0.9rem;
}
.section-head p { color: var(--muted); font-size: 1rem; max-width: 52ch; }
.br { display: none; }

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.step {
  position: relative;
  padding: 1.6rem 1.35rem 1.5rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.step::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214, 255, 63, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.step:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
}
.step:hover::before { opacity: 1; }

.step-num {
  position: absolute;
  right: 1rem; top: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.055);
}
.step-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  font-size: 1.15rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  margin-bottom: 1.1rem;
}
.step h3 { font-size: 1.08rem; letter-spacing: -0.02em; margin-bottom: 0.55rem; }
.step p { color: var(--muted); font-size: 0.9rem; line-height: 1.62; }

/* ---------- pets ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.6rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
  transition: all 0.18s ease;
}
.chip:hover { color: var(--ink); border-color: var(--line-strong); }
.chip .count {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.05rem 0.35rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}
.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #08080d;
}
.chip.active .count { background: rgba(0, 0, 0, 0.15); color: #08080d; }

.pet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: 0.9rem;
}

.pet-card {
  position: relative;
  padding: 1.15rem 1.15rem 1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease;
}
.pet-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rc), transparent);
  opacity: 0.7;
}
.pet-card::before {
  content: "";
  position: absolute;
  top: -60px; right: -50px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: var(--rc);
  filter: blur(46px);
  opacity: 0.14;
  transition: opacity 0.25s ease;
}
.pet-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--rc) 45%, transparent);
}
.pet-card:hover::before { opacity: 0.3; }

.pet-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}
.pet-emoji {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  font-size: 1.4rem;
  border-radius: 13px;
  background: color-mix(in srgb, var(--rc) 14%, rgba(255,255,255,0.04));
  border: 1px solid color-mix(in srgb, var(--rc) 30%, transparent);
}
.pet-rarity {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rc);
  border: 1px solid color-mix(in srgb, var(--rc) 30%, transparent);
  background: color-mix(in srgb, var(--rc) 10%, transparent);
  padding: 0.22rem 0.45rem;
  border-radius: 6px;
  white-space: nowrap;
}
.pet-name {
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}
.pet-ability {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.55;
  min-height: 2.6em;
  margin-bottom: 1rem;
}
.pet-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.pet-chance { color: var(--ink); font-weight: 700; font-size: 0.82rem; }

.note {
  margin-top: 1.3rem;
  font-size: 0.82rem;
  color: var(--muted);
  padding-left: 0.9rem;
  border-left: 2px solid rgba(214, 255, 63, 0.5);
}

/* rarity colours */
.r-common    { --rc: #9aa4b8; }
.r-uncommon  { --rc: #48e08a; }
.r-rare      { --rc: #3ec2ff; }
.r-epic      { --rc: #b06cff; }
.r-legendary { --rc: #ffb42e; }
.r-mythic    { --rc: #ff2e88; }
.r-mythic.pet-rarity { box-shadow: 0 0 20px -4px rgba(255, 46, 136, 0.6); }

/* ---------- panels / codes ---------- */
.codes-wrap {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 1rem;
}
.panel {
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  padding: 1.5rem;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.panel h3 { font-size: 1.05rem; letter-spacing: -0.02em; }

.code-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.code-mono {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--lime);
}
.code-reward { display: block; font-size: 0.78rem; color: var(--muted); }

.codes-empty {
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 1.6rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.015);
}
.codes-empty p { color: var(--muted); font-size: 0.88rem; margin-top: 0.8rem; max-width: 40ch; }
.codes-empty[hidden] { display: none; }

.redeem ol {
  list-style: none;
  counter-reset: step;
  margin: 0 0 1.2rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.redeem li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.redeem li span {
  flex: none;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: #08080d;
  background: var(--lime);
  margin-top: 0.1rem;
}
.redeem strong { color: var(--ink); font-weight: 600; }
.mini { font-size: 0.78rem; color: var(--muted); }

/* ---------- wiki ---------- */
.wiki-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}
.wiki-card {
  position: relative;
  padding: 1.4rem 1.3rem 2.6rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
  overflow: hidden;
}
.wiki-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
}
.wiki-card .soon { margin-bottom: 1.1rem; }
.wiki-card h3 { font-size: 1.02rem; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.wiki-card p { color: var(--muted); font-size: 0.86rem; }
.wiki-card .arrow {
  position: absolute;
  right: 1.2rem; bottom: 1.1rem;
  color: var(--muted);
  transition: transform 0.22s ease, color 0.22s ease;
}
.wiki-card:hover .arrow { transform: translateX(4px); color: var(--lime); }

/* ---------- faq ---------- */
.faq {
  border-top: 1px solid var(--line);
  max-width: 820px;
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: color 0.18s ease;
}
.faq-q:hover { color: var(--lime); }
.faq-icon {
  flex: none;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-size: 0.9rem;
  color: var(--muted);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--lime);
  border-color: var(--lime);
  color: #08080d;
}
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}
.faq-a > p {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 62ch;
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-item.open .faq-a > p { padding-bottom: 1.2rem; }

/* ---------- cta ---------- */
.cta {
  position: relative;
  max-width: var(--maxw);
  margin: clamp(3.5rem, 8vw, 6rem) auto clamp(2rem, 5vw, 3rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  background:
    radial-gradient(90% 130% at 50% 0%, rgba(139, 92, 255, 0.3) 0%, transparent 60%),
    linear-gradient(180deg, #14122a, #0a0a12);
  padding: clamp(2.6rem, 6vw, 4.5rem) var(--pad);
  text-align: center;
}
.cta-lines {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 62px);
  mask-image: radial-gradient(70% 90% at 50% 40%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 90% at 50% 40%, #000, transparent 78%);
  pointer-events: none;
}
.cta-inner { position: relative; }
.cta .label { color: #cfcbe8; margin-bottom: 1rem; display: block; }
.cta h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.045em;
  margin-bottom: 0.7rem;
}
.cta p { color: var(--muted); margin-bottom: 1.8rem; }

/* ---------- footer ---------- */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad) 2rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}
.footer-brand { max-width: 320px; }
.footer-note { color: var(--muted); font-size: 0.82rem; margin-top: 0.9rem; }
.footer-cols { display: flex; gap: clamp(2rem, 6vw, 5rem); }
.footer-cols h4 {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.footer-cols a {
  display: block;
  font-size: 0.88rem;
  color: #d3d1e4;
  padding: 0.22rem 0;
  transition: color 0.15s ease;
}
.footer-cols a:hover { color: var(--lime); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  transform: translate(-50%, 24px);
  background: rgba(16, 16, 26, 0.92);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 0.86rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 46px -20px #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 300;
  max-width: calc(100vw - 2rem);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .wiki-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 2.6rem; }
  .hero-copy { order: 1; }
  .hero-art { order: 2; max-width: 560px; }
  .fc-1 { right: 0; }
  .fc-2 { left: 0; bottom: 3rem; }
  .codes-wrap { grid-template-columns: 1fr; }
  .br { display: inline; }
}

@media (max-width: 760px) {
  .nav { padding: 0.7rem 1rem; }
  .nav-inner { padding: 0.45rem 0.5rem 0.45rem 0.9rem; gap: 0.5rem; }
  .nav.scrolled .nav-inner { background: rgba(10, 10, 18, 0.9); }
  .nav-links {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 1rem; right: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.6rem;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    background: rgba(10, 10, 18, 0.96);
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 60px -30px #000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 0.7rem 0.9rem; font-size: 0.95rem; }
  .burger { display: grid; }
  .btn-play { display: none; }

  .hero { padding-top: 1.6rem; }
  .hero-stats { gap: 1.4rem; }
  .hero-stats > div { flex: 1 1 30%; }
  .float-card { padding: 0.55rem 0.7rem; }
  .float-card strong { font-size: 0.78rem; }
  .stage { transform: none; }
  .stage img { aspect-ratio: 4 / 3.4; }

  .steps { grid-template-columns: 1fr; }
  .wiki-grid { grid-template-columns: 1fr; }
  .pet-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .pet-ability { min-height: 0; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 420px) {
  .hero-btns .btn { width: 100%; }
  .pet-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .pet-card { padding: 0.9rem; }
  .pet-emoji { width: 38px; height: 38px; font-size: 1.15rem; }
  .pet-name { font-size: 0.92rem; }
}

/* ---------- featured guide band ---------- */
.guide-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(214, 255, 63, 0.1) 0%, transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
}
.guide-band h2 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); letter-spacing: -0.03em; margin: 0.6rem 0 0.5rem; }
.guide-band p { color: var(--muted); font-size: 0.92rem; max-width: 52ch; }
.guide-band .label { margin: 0; }

/* ---------- ad slots ---------- */
.ad-slot {
  max-width: 970px;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  text-align: center;
}
.ad-slot[hidden] { display: none; }
.ad-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.ad-slot ins { display: block; }

/* ---------- consent banner ---------- */
.consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 400;
  max-width: 660px;
  margin: 0 auto;
  display: grid;
  gap: 0.85rem;
  padding: 1.1rem 1.2rem;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: rgba(12, 12, 20, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 70px -30px #000;
  animation: consent-in 0.35s ease both;
}
@keyframes consent-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.consent p { font-size: 0.82rem; color: var(--muted); margin: 0; line-height: 1.6; }
.consent strong { color: var(--ink); }
.consent a { color: var(--lime); text-decoration: underline; text-underline-offset: 2px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
