:root {
  --ink: #100e0c;
  --paper: #f6edd8;
  --paper-deep: #efe2c4;
  --navy: #07131c;
  --navy-2: #0c1d2a;
  --mint: #2effc3;
  --mint-dim: #1ab88c;
  --pink: #ff4d8d;
  --gold: #ffd45e;
  --ginger: #e07a3a;
  --beanie: #1c6b4d;
  --foam: #fffaf0;
  --line: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Nunito", sans-serif;
  background: var(--navy);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── stage: first-person cyber library, sections stay upright ── */
.stage {
  position: relative;
  min-height: 100%;
  isolation: isolate;
}

.stage-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(46, 255, 195, 0.16), transparent 55%),
    radial-gradient(ellipse 40% 30% at 12% 70%, rgba(255, 77, 141, 0.08), transparent 50%),
    radial-gradient(ellipse 45% 35% at 90% 30%, rgba(255, 212, 94, 0.08), transparent 50%),
    linear-gradient(180deg, #061018 0%, #0a1c28 46%, #08141d 100%);
}

.stage-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(16, 14, 12, 0.55) 0.7px, transparent 0.8px);
  background-size: 5px 5px;
  opacity: 0.28;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.45;
}

.orb-a { width: 10px; height: 10px; left: 8%; top: 18%; background: var(--mint); }
.orb-b { width: 7px; height: 7px; left: 22%; top: 62%; background: var(--gold); }
.orb-c { width: 12px; height: 12px; right: 12%; top: 24%; background: var(--mint); }
.orb-d { width: 8px; height: 8px; right: 20%; top: 72%; background: var(--pink); }
.orb-e { width: 6px; height: 6px; left: 48%; top: 12%; background: #fff; }

.vanish {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -8%;
  height: 42vh;
  background:
    linear-gradient(to top, rgba(46, 255, 195, 0.14), transparent 70%),
    repeating-linear-gradient(
      to right,
      transparent 0,
      transparent 72px,
      rgba(46, 255, 195, 0.09) 73px,
      rgba(46, 255, 195, 0.09) 74px
    ),
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 36px,
      rgba(46, 255, 195, 0.07) 37px,
      rgba(46, 255, 195, 0.07) 38px
    );
  transform: perspective(720px) rotateX(68deg);
  transform-origin: center bottom;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.site {
  position: relative;
  z-index: 2;
}

/* ── type ── */
.display {
  font-family: "Bangers", cursive;
  letter-spacing: 0.06em;
  line-height: 0.92;
}

.marker {
  font-family: "Permanent Marker", cursive;
}

.risograph {
  color: var(--foam);
  text-shadow:
    3px 0 0 var(--pink),
    -3px 0 0 var(--mint),
    5px 6px 0 var(--ink);
}

/* ── nav ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 237, 216, 0.94);
  border-bottom: 4px solid var(--ink);
  box-shadow: 0 8px 0 rgba(46, 255, 195, 0.35);
  backdrop-filter: blur(8px);
}

.topbar .navbar {
  padding: 0.45rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: var(--foam);
  border: 3px solid var(--ink);
  border-radius: 10px;
}

.brand-name {
  font-family: "Bangers", cursive;
  font-size: 1.7rem;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.brand-sym {
  display: block;
  font-family: "Permanent Marker", cursive;
  font-size: 0.72rem;
  color: var(--beanie);
  margin-top: -4px;
}

.nav-link {
  font-family: "Bangers", cursive;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  color: var(--ink) !important;
  padding: 0.35rem 0.7rem !important;
}

.nav-link:hover {
  color: var(--beanie) !important;
}

.navbar-toggler {
  border: 3px solid var(--ink) !important;
  border-radius: 10px;
  padding: 0.3rem 0.45rem;
}

.navbar-toggler:focus {
  box-shadow: 3px 3px 0 var(--mint);
}

.btn-ink,
.btn-mint,
.btn-pink,
.btn-gold {
  font-family: "Bangers", cursive;
  letter-spacing: 0.08em;
  border: 3px solid var(--ink) !important;
  box-shadow: 4px 4px 0 var(--ink);
  border-radius: 12px !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-ink:hover,
.btn-mint:hover,
.btn-pink:hover,
.btn-gold:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-ink {
  background: var(--ink) !important;
  color: var(--foam) !important;
}

.btn-mint {
  background: var(--mint) !important;
  color: var(--ink) !important;
}

.btn-pink {
  background: var(--pink) !important;
  color: #fff !important;
}

.btn-gold {
  background: var(--gold) !important;
  color: var(--ink) !important;
}

/* ── comic folio bars ── */
.folio {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Permanent Marker", cursive;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  opacity: 0.72;
  margin-bottom: 1.1rem;
}

/* ── hero ── */
.hero {
  padding: 4.2rem 0 5.2rem;
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--gold);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 0.28rem 0.8rem;
  font-family: "Bangers", cursive;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.burst {
  position: relative;
  display: inline-block;
}

.burst::before {
  content: "";
  position: absolute;
  inset: -18% -8%;
  background: radial-gradient(circle at center, rgba(46, 255, 195, 0.18), transparent 62%);
  z-index: -1;
}

.hero h1 {
  font-size: clamp(3.6rem, 10vw, 7.2rem);
  margin: 0 0 0.15rem;
}

.hero-symbol {
  font-family: "Bangers", cursive;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  letter-spacing: 0.14em;
  color: var(--mint);
  text-shadow: 2px 2px 0 var(--ink);
  margin-bottom: 1.4rem;
}

.speech {
  position: relative;
  background: var(--foam);
  border: 4px solid var(--ink);
  border-radius: 28px;
  padding: 1.15rem 1.3rem 1.25rem;
  box-shadow: 7px 7px 0 var(--mint);
  max-width: 34rem;
}

.speech p {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.45;
}

.speech::after {
  content: "";
  position: absolute;
  left: 2.2rem;
  bottom: -22px;
  width: 28px;
  height: 22px;
  background: var(--foam);
  border-right: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  clip-path: polygon(0 0, 100% 0, 28% 100%);
}

.sfx {
  position: absolute;
  font-family: "Bangers", cursive;
  color: var(--gold);
  text-shadow: 3px 3px 0 var(--ink);
  letter-spacing: 0.08em;
  pointer-events: none;
  user-select: none;
}

.sfx-meow { top: 10%; left: 52%; font-size: clamp(1.6rem, 4vw, 2.8rem); transform: rotate(8deg); }
.sfx-beep { bottom: 14%; left: 3%; font-size: clamp(1.2rem, 3vw, 2rem); transform: rotate(-10deg); color: var(--mint); }

.hero-art {
  margin: 0;
  background: #05080c;
  border: 5px solid var(--ink);
  box-shadow: 10px 10px 0 var(--mint), 14px 14px 0 var(--ink);
  position: relative;
}

.hero-art img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  background: #05080c;
}

.hero-art-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--mint);
  color: var(--ink);
  border: 3px solid var(--ink);
  font-family: "Bangers", cursive;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.6rem;
  box-shadow: 3px 3px 0 var(--ink);
}

.paw {
  position: absolute;
  width: 38px;
  height: 38px;
  opacity: 0.22;
  fill: var(--mint);
  pointer-events: none;
}

.paw-1 { top: 22%; left: 6%; }
.paw-2 { top: 58%; right: 8%; }
.paw-3 { bottom: 10%; left: 18%; }

.ca-bar {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.ca-chip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: 0.45rem 0.7rem 0.45rem 0.85rem;
  box-shadow: 4px 4px 0 var(--pink);
  max-width: 100%;
}

.ca-chip span.label {
  font-family: "Bangers", cursive;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.ca-chip code {
  font-size: 0.86rem;
  font-weight: 800;
  word-break: break-all;
  color: var(--beanie);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.15rem;
}

.hero-actions .btn,
.cta-row .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  font-size: 1.05rem;
}

/* ── shared section shell ── */
.chapter {
  padding: 4.5rem 0 5rem;
  position: relative;
}

.chapter-head {
  margin-bottom: 1.8rem;
}

.chapter-head h2 {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  margin: 0.15rem 0 0.4rem;
}

.chapter-head p.lead {
  max-width: 40rem;
  font-weight: 700;
  font-size: 1.08rem;
  margin: 0;
}

.caption {
  display: inline-block;
  background: var(--gold);
  border: 3px solid var(--ink);
  padding: 0.2rem 0.7rem;
  font-family: "Permanent Marker", cursive;
  font-size: 0.92rem;
  box-shadow: 3px 3px 0 var(--ink);
}

/* ── about: graphic-novel spread ── */
.about {
  background: linear-gradient(180deg, transparent, rgba(246, 237, 216, 0.04) 8%, transparent);
}

.cover {
  background: #05080c;
  border: 5px solid var(--ink);
  box-shadow: 10px 10px 0 var(--mint), 14px 14px 0 var(--ink);
  padding: 0;
  margin-bottom: 2.6rem;
  position: relative;
}

.cover img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #05080c;
}

.cover-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--pink);
  color: #fff;
  border: 3px solid var(--ink);
  font-family: "Bangers", cursive;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.6rem;
  box-shadow: 3px 3px 0 var(--ink);
}

.story {
  background: var(--paper);
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 1.1rem;
  height: 100%;
}

.story.alt {
  background: var(--foam);
}

.story-art {
  background: #1a140f;
  border: 3px solid var(--ink);
  margin-bottom: 0.95rem;
}

.story-art img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.story h3 {
  font-family: "Bangers", cursive;
  letter-spacing: 0.06em;
  font-size: 1.7rem;
  margin-bottom: 0.35rem;
}

.story p {
  margin: 0;
  font-weight: 700;
  line-height: 1.45;
}

.stamp {
  display: inline-block;
  font-family: "Bangers", cursive;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  padding: 0.12rem 0.5rem;
  border: 2px solid var(--ink);
  margin-bottom: 0.45rem;
}

.stamp-green { background: var(--mint); }
.stamp-gold { background: var(--gold); }
.stamp-pink { background: var(--pink); color: #fff; }

/* ── howto: instruction booklet ── */
.howto {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(28, 107, 77, 0.28), transparent 45%),
    transparent;
}

.manual {
  background: var(--paper);
  border: 5px solid var(--ink);
  box-shadow: 10px 10px 0 var(--beanie);
  padding: 1.6rem 1.4rem 1.8rem;
  position: relative;
}

.manual::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 10px;
  bottom: 10px;
  width: 0;
  border-left: 3px dashed rgba(16, 14, 12, 0.28);
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1rem 0.4rem 1rem 1.4rem;
  border-bottom: 3px dashed rgba(16, 14, 12, 0.18);
}

.step:last-child {
  border-bottom: 0;
}

.step-num {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 4px solid var(--ink);
  display: grid;
  place-items: center;
  font-family: "Bangers", cursive;
  font-size: 1.6rem;
  background: var(--mint);
  box-shadow: 3px 3px 0 var(--ink);
  flex-shrink: 0;
}

.step:nth-child(2) .step-num { background: var(--gold); }
.step:nth-child(3) .step-num { background: var(--pink); color: #fff; }
.step:nth-child(4) .step-num { background: var(--beanie); color: var(--foam); }

.step h3 {
  font-family: "Bangers", cursive;
  letter-spacing: 0.05em;
  font-size: 1.45rem;
  margin: 0 0 0.25rem;
}

.step p {
  margin: 0;
  font-weight: 700;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
  padding-left: 1.4rem;
}

/* ── community: transmission board ── */
.community {
  padding-bottom: 5.5rem;
}

.board {
  background: #06151c;
  border: 5px solid var(--mint);
  outline: 4px solid var(--ink);
  outline-offset: 6px;
  padding: 1.8rem 1.5rem 1.9rem;
  box-shadow: 0 0 0 10px rgba(46, 255, 195, 0.08);
}

.board h2 {
  color: var(--foam);
}

.board .lead {
  color: #d9efe6;
}

.cast {
  background: #041015;
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 var(--gold);
}

.cast img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #f3ece0;
}

.social-grid {
  display: grid;
  gap: 0.85rem;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.social-card:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.social-ico {
  width: 48px;
  height: 48px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.ico-x { background: var(--ink); color: #fff; }
.ico-buy { background: var(--mint); color: var(--ink); }
.ico-dex { background: var(--gold); color: var(--ink); }

.social-card strong {
  font-family: "Bangers", cursive;
  letter-spacing: 0.06em;
  font-size: 1.25rem;
  display: block;
}

.social-card span {
  font-weight: 700;
  font-size: 0.92rem;
  opacity: 0.78;
}

/* ── footer ── */
.foot {
  background: var(--paper);
  border-top: 4px solid var(--ink);
  padding: 1.3rem 0;
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: "Bangers", cursive;
  letter-spacing: 0.08em;
  font-size: 1.25rem;
}

.foot-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--foam);
}

.foot p {
  margin: 0;
  font-weight: 700;
  font-size: 0.88rem;
}

.toast-copy {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--mint);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: "Bangers", cursive;
  letter-spacing: 0.08em;
  padding: 0.45rem 0.9rem;
  opacity: 0;
  pointer-events: none;
  z-index: 80;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast-copy.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 767.98px) {
  .hero {
    padding-top: 2.6rem;
    min-height: auto;
  }

  .manual::after {
    display: none;
  }

  .step {
    padding-left: 0.2rem;
  }

  .cta-row {
    padding-left: 0;
  }

  .cover {
    box-shadow: 6px 6px 0 var(--mint), 9px 9px 0 var(--ink);
  }

  .board {
    outline-offset: 4px;
  }

  .sfx-meow { right: 4%; top: 4%; }
  .sfx-beep { display: none; }
}
