:root {
  --ink: #0c0624;
  --pink: #ff2bd6;
  --cyan: #00e5ff;
  --lime: #7dff3a;
  --yellow: #ffe600;
  --blue: #2f3bff;
  --orange: #ff7a00;
  --spine: 96px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--ink); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }

/* ---------- SPINE NAV ---------- */
.spine {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--spine);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 18px 0;
  background: linear-gradient(180deg, var(--pink), var(--blue) 35%, var(--cyan) 65%, var(--lime));
  border-right: 5px solid #000;
  box-shadow: 6px 0 0 rgba(0,0,0,.35);
}
.spine-logo img {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 4px solid #000;
  background: #fff;
  object-fit: contain;
  box-shadow: 3px 3px 0 #000;
  transition: transform .2s;
}
.spine-logo:hover img { transform: scale(1.08) rotate(-6deg); }
.spine-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  justify-content: center;
}
.spine-nav a {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: 'Bangers', cursive;
  font-size: 1.25rem;
  letter-spacing: .12em;
  color: #000;
  background: #fff;
  border: 3px solid #000;
  padding: 14px 6px;
  border-radius: 10px;
  box-shadow: -3px -3px 0 #000;
  transition: background .2s, transform .2s;
}
.spine-nav a:hover, .spine-nav a.active { background: var(--yellow); }
.spine-social { display: flex; flex-direction: column; gap: 10px; }
.spine-social a {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: #000; color: #fff;
  border-radius: 50%;
  font-size: 1.15rem;
  border: 3px solid #fff;
  transition: transform .2s, background .2s, color .2s;
}
.spine-social a:hover { background: var(--yellow); color: #000; transform: scale(1.1); }
.spine-issue {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: 'Bangers', cursive;
  letter-spacing: .15em;
  color: #000;
  font-size: .95rem;
}

.book { margin-left: var(--spine); }

@media (max-width: 1023px) {
  :root { --spine: 0px; }
  .spine {
    inset: 0 0 auto 0;
    width: 100%;
    height: 72px;
    flex-direction: row;
    padding: 0 14px;
    gap: 12px;
    border-right: 0;
    border-bottom: 5px solid #000;
    background: linear-gradient(90deg, var(--pink), var(--blue) 35%, var(--cyan) 65%, var(--lime));
    box-shadow: 0 5px 0 rgba(0,0,0,.35);
  }
  .spine-logo img { width: 48px; height: 48px; }
  .spine-nav { flex-direction: row; justify-content: flex-start; overflow-x: auto; gap: 6px; }
  .spine-nav a {
    writing-mode: horizontal-tb; transform: none;
    font-size: 1rem; padding: 4px 10px; white-space: nowrap;
    box-shadow: 2px 2px 0 #000;
  }
  .spine-social { flex-direction: row; gap: 6px; }
  .spine-social a { width: 38px; height: 38px; font-size: 1rem; }
  .spine-issue { display: none; }
  .book { padding-top: 72px; }
}
@media (max-width: 640px) {
  .spine-nav { display: none; }
  .spine { justify-content: space-between; }
}

/* ---------- PAGES & INK SPLASHES ---------- */
.page {
  position: relative;
  overflow: hidden;
  border-bottom: 6px solid #000;
}
.splash {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .75;
  pointer-events: none;
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, -30px) scale(1.12); }
}

.page-cover {
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255,43,214,.55), transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(0,229,255,.5), transparent 55%),
    linear-gradient(135deg, #1a0a5e, #3a0b7a 50%, #0b2a8a);
}
.s1 { width: 420px; height: 420px; background: var(--yellow); top: -120px; right: 18%; opacity: .45; }
.s2 { width: 360px; height: 360px; background: var(--lime); bottom: -120px; left: -80px; opacity: .5; animation-delay: -4s; }
.s3 { width: 300px; height: 300px; background: var(--orange); top: 40%; left: 40%; opacity: .35; animation-delay: -7s; }
.s4 { width: 280px; height: 280px; background: var(--pink); bottom: 5%; right: -60px; animation-delay: -2s; }

.page-about {
  background:
    radial-gradient(ellipse at 90% 0%, rgba(125,255,58,.55), transparent 50%),
    radial-gradient(ellipse at 0% 100%, rgba(255,43,214,.45), transparent 55%),
    linear-gradient(160deg, var(--yellow), #ffb800 60%, var(--orange));
}
.a1 { width: 380px; height: 380px; background: var(--cyan); top: 20%; left: -120px; opacity: .45; }
.a2 { width: 320px; height: 320px; background: var(--pink); bottom: -100px; right: 10%; opacity: .45; animation-delay: -5s; }

.page-buy {
  background:
    radial-gradient(ellipse at 10% 10%, rgba(0,229,255,.55), transparent 50%),
    radial-gradient(ellipse at 100% 90%, rgba(255,230,0,.4), transparent 50%),
    linear-gradient(200deg, var(--pink), #c21fd6 45%, var(--blue));
}
.b1 { width: 400px; height: 400px; background: var(--lime); top: -140px; right: -60px; opacity: .4; }
.b2 { width: 340px; height: 340px; background: var(--orange); bottom: -120px; left: 30%; opacity: .45; animation-delay: -6s; }

.page-community {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,230,0,.5), transparent 55%),
    radial-gradient(ellipse at 0% 80%, rgba(47,59,255,.45), transparent 55%),
    linear-gradient(170deg, var(--lime), #1fe0b0 50%, var(--cyan));
}
.c1 { width: 360px; height: 360px; background: var(--pink); top: 10%; right: -100px; opacity: .45; }
.c2 { width: 300px; height: 300px; background: var(--blue); bottom: 10%; left: -80px; opacity: .35; animation-delay: -3s; }
.c3 { width: 260px; height: 260px; background: var(--yellow); bottom: -80px; right: 35%; opacity: .5; animation-delay: -8s; }

/* ---------- HERO / COVER ---------- */
.masthead {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: #fff;
  border: 4px solid #000;
  border-radius: 14px;
  box-shadow: 6px 6px 0 #000;
  flex-wrap: wrap;
}
.mh-chip {
  font-family: 'Bangers', cursive;
  font-size: 1.2rem;
  letter-spacing: .08em;
  padding: 4px 14px;
  border: 3px solid #000;
  border-radius: 999px;
}
.mh-line {
  flex: 1;
  text-align: center;
  font-family: 'Bangers', cursive;
  font-size: 1.35rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.cover-title {
  font-family: 'Bangers', cursive;
  font-size: clamp(4.5rem, 13vw, 10rem);
  line-height: .9;
  letter-spacing: .03em;
  background: linear-gradient(90deg, var(--yellow), var(--lime) 30%, var(--cyan) 55%, var(--pink) 80%, var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 3px #000;
  filter: drop-shadow(6px 6px 0 #000);
}
.cover-sub {
  margin-top: 18px;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: #fff;
  line-height: 1.5;
  text-shadow: 2px 2px 0 #000;
  max-width: 34rem;
}
.cover-frame {
  background: #fff;
  padding: 14px;
  border: 5px solid #000;
  border-radius: 22px;
  box-shadow: 14px 14px 0 #000, 14px 14px 0 5px var(--yellow);
}
.cover-frame img { width: 100%; border: 4px solid #000; border-radius: 12px; }
.caption-tag {
  display: inline-block;
  background: var(--yellow);
  border: 3px solid #000;
  padding: 6px 14px;
  font-weight: 700;
  box-shadow: 4px 4px 0 #000;
}

.bubble {
  position: relative;
  width: fit-content;
  max-width: 90%;
  background: #fff;
  border: 4px solid #000;
  border-radius: 40px;
  padding: 14px 26px;
  font-family: 'Bangers', cursive;
  font-size: 1.6rem;
  letter-spacing: .05em;
  box-shadow: 5px 5px 0 #000;
}
.bubble-down::after {
  content: "";
  position: absolute;
  bottom: -22px;
  right: 60px;
  border-width: 22px 18px 0 0;
  border-style: solid;
  border-color: #000 transparent transparent transparent;
}
.bubble-down::before {
  content: "";
  position: absolute;
  bottom: -13px;
  right: 64px;
  border-width: 16px 12px 0 0;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
  z-index: 1;
}

/* ---------- CA BOX & BUTTONS ---------- */
.ca-box {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 4px solid #000;
  border-radius: 14px;
  box-shadow: 6px 6px 0 #000;
  overflow: hidden;
  max-width: 36rem;
}
.ca-box-wide { max-width: none; flex: 1; }
.ca-label {
  display: grid; place-items: center;
  background: var(--pink);
  color: #fff;
  font-family: 'Bangers', cursive;
  font-size: 1.4rem;
  letter-spacing: .08em;
  padding: 0 16px;
  border-right: 4px solid #000;
}
.ca-text {
  flex: 1;
  padding: 12px 14px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: .95rem;
  font-weight: 700;
  word-break: break-all;
  align-self: center;
}
.ca-copy {
  display: flex; align-items: center; gap: 8px;
  background: var(--yellow);
  border-left: 4px solid #000;
  padding: 0 18px;
  font-family: 'Bangers', cursive;
  font-size: 1.2rem;
  letter-spacing: .06em;
  transition: background .2s;
}
.ca-copy:hover { background: var(--lime); }

.pow-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Bangers', cursive;
  font-size: 1.45rem;
  letter-spacing: .06em;
  color: #000;
  padding: 10px 24px;
  border: 4px solid #000;
  border-radius: 14px;
  box-shadow: 6px 6px 0 #000;
  transition: transform .15s, box-shadow .15s;
}
.pow-btn:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 #000; }
.pow-btn:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 #000; }

/* ---------- CHAPTER HEADINGS ---------- */
.chapter-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.chapter-no {
  font-family: 'Bangers', cursive;
  font-size: 1.3rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  background: #000;
  color: var(--yellow);
  padding: 4px 16px;
  border-radius: 6px;
}
.chapter-title {
  font-family: 'Bangers', cursive;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: .03em;
  color: #fff;
  -webkit-text-stroke: 2.5px #000;
  text-shadow: 6px 6px 0 #000;
}
.chapter-head-light .chapter-no { background: var(--yellow); color: #000; border: 3px solid #000; }

/* ---------- ABOUT ---------- */
.panel-frame {
  background: #fff;
  padding: 12px;
  border: 5px solid #000;
  border-radius: 20px;
}
.panel-frame img { width: 100%; border: 4px solid #000; border-radius: 10px; }
.panel-pink { box-shadow: 12px 12px 0 var(--pink), 12px 12px 0 4px #000; }

.narration {
  position: relative;
  background: #fffbe0;
  border: 4px solid #000;
  padding: 22px 24px 20px;
  box-shadow: 7px 7px 0 #000;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.6;
}
.narr-offset { margin-left: 2.5rem; background: #fff; }
@media (max-width: 640px) { .narr-offset { margin-left: 0; } }
.narr-tag {
  position: absolute;
  top: -18px; left: 16px;
  background: var(--cyan);
  border: 3px solid #000;
  padding: 2px 12px;
  font-family: 'Bangers', cursive;
  letter-spacing: .08em;
  font-size: 1.1rem;
}
.sfx-card {
  border: 4px solid #000;
  border-radius: 16px;
  padding: 18px 12px;
  text-align: center;
  box-shadow: 5px 5px 0 #000;
  display: flex; flex-direction: column; gap: 4px;
  transition: transform .2s;
}
.sfx-card:hover { transform: scale(1.05); }
.sfx {
  font-family: 'Bangers', cursive;
  font-size: 2.2rem;
  letter-spacing: .05em;
  -webkit-text-stroke: 1.5px #000;
  color: var(--yellow);
  text-shadow: 3px 3px 0 #000;
}
.sfx-card small { font-weight: 700; font-size: 1rem; }
.token-card {
  display: flex; align-items: center; gap: 18px;
  background: #fff;
  border: 4px solid #000;
  border-radius: 999px;
  padding: 10px 28px 10px 10px;
  box-shadow: 6px 6px 0 #000;
  width: fit-content;
  max-width: 100%;
}
.token-logo {
  width: 78px; height: 78px;
  border-radius: 50%;
  border: 4px solid #000;
  object-fit: contain;
  background: #fff;
  flex-shrink: 0;
}

/* ---------- HOW TO BUY STRIP ---------- */
.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: #000;
  padding: 16px;
  border-radius: 20px;
  box-shadow: 12px 12px 0 var(--yellow);
}
@media (max-width: 1100px) { .strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .strip { grid-template-columns: 1fr; } }
.strip-panel {
  position: relative;
  background: #fff;
  border-radius: 10px;
  padding: 30px 22px 26px;
  transition: background .2s;
}
.strip-panel:hover { background: #fffbe0; }
.step-dot {
  position: absolute;
  top: 14px; right: 14px;
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border: 4px solid #000;
  border-radius: 50%;
  font-family: 'Bangers', cursive;
  font-size: 1.7rem;
}
.strip-icon { font-size: 2.6rem; display: block; }
.strip-sfx {
  margin-top: 10px;
  font-family: 'Bangers', cursive;
  font-size: 2.4rem;
  letter-spacing: .05em;
  -webkit-text-stroke: 1.5px #000;
  text-shadow: 3px 3px 0 #000;
}
.strip-title { font-family: 'Bangers', cursive; font-size: 1.6rem; letter-spacing: .04em; margin-top: 4px; }
.strip-panel p { font-weight: 700; line-height: 1.55; margin-top: 8px; }

.buy-console {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  background: rgba(255,255,255,.18);
  border: 4px solid #000;
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(6px);
}

/* ---------- COMMUNITY ---------- */
.banner-frame {
  background: #fff;
  padding: 12px;
  border: 5px solid #000;
  border-radius: 22px;
  box-shadow: 12px 12px 0 var(--blue), 12px 12px 0 4px #000;
}
.banner-frame img { width: 100%; border: 4px solid #000; border-radius: 12px; }

.hub-card {
  display: flex; flex-direction: column; gap: 6px;
  border: 4px solid #000;
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 7px 7px 0 #000;
  transition: transform .15s, box-shadow .15s;
}
.hub-card:hover { transform: translate(-4px, -4px); box-shadow: 11px 11px 0 #000; }
.hub-icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  background: #000; color: #fff;
  border-radius: 50%;
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.hub-title { font-family: 'Bangers', cursive; font-size: 2rem; letter-spacing: .05em; }
.hub-text { font-weight: 700; }

.to-be-continued { text-align: right; }
.to-be-continued span {
  display: inline-block;
  font-family: 'Bangers', cursive;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: .06em;
  background: var(--yellow);
  border: 4px solid #000;
  padding: 6px 24px;
  box-shadow: 7px 7px 0 #000;
}
.to-be-continued p { margin-top: 16px; font-weight: 700; font-size: 1.1rem; }

/* ---------- FOOTER & TOAST ---------- */
.book-footer { background: var(--ink); }

.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translate(-50%, calc(100% + 40px));
  background: var(--lime);
  border: 4px solid #000;
  border-radius: 14px;
  padding: 10px 26px;
  font-family: 'Bangers', cursive;
  font-size: 1.5rem;
  letter-spacing: .06em;
  box-shadow: 5px 5px 0 #000;
  z-index: 100;
  transition: transform .3s;
}
.toast.show { transform: translate(-50%, 0); }

.stroke-dark { -webkit-text-stroke: 1.5px #000; }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .splash { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
