:root {
  --paper: #efe3c4;
  --paper-2: #e4d4aa;
  --ink: #16120c;
  --gutter: #0d0b08;
  --muted: #5c5344;
  --green: #1f8a32;
  --lime: #7adf3c;
  --yellow: #ffe14a;
  --red: #e23b2a;
  --cream: #fff8e8;
  --shadow: 10px 14px 0 #0d0b08;
  --font-sfx: "Bangers", Impact, sans-serif;
  --font-mark: "Permanent Marker", "Comic Sans MS", cursive;
  --font-body: "Comic Neue", "Comic Sans MS", sans-serif;
  --font-cap: "Special Elite", "Courier New", monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.45;
  background: #1c2618;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

code {
  font-family: ui-monospace, "IBM Plex Mono", monospace;
}

/* ===== newsstand background + shine ===== */
.newsstand {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 20% -10%, rgba(122, 223, 60, 0.22), transparent 55%),
    radial-gradient(800px 460px at 110% 80%, rgba(226, 59, 42, 0.12), transparent 50%),
    #24301f;
}

.newsstand-art {
  position: absolute;
  inset: -8%;
  opacity: 0.28;
  filter: saturate(1.2) contrast(1.1);
}

.newsstand-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.newsstand-wash {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(239, 227, 196, 0.04) 0 2px,
      transparent 2px 18px
    ),
    linear-gradient(180deg, rgba(28, 38, 24, 0.2), rgba(28, 38, 24, 0.72));
}

.newsstand-dots {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(#0d0b08 1px, transparent 1.2px);
  background-size: 8px 8px;
}

.newsstand-shine {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background: linear-gradient(
    118deg,
    transparent 32%,
    rgba(255, 255, 255, 0.08) 42%,
    rgba(255, 248, 210, 0.28) 50%,
    rgba(122, 223, 60, 0.12) 54%,
    transparent 66%
  );
  background-size: 220% 220%;
  mix-blend-mode: screen;
  animation: cover-shine 8s ease-in-out infinite;
}

@keyframes cover-shine {
  0% { background-position: 130% 0; }
  50% { background-position: -10% 40%; }
  100% { background-position: 130% 0; }
}

.mast,
.issue,
.back-cover {
  position: relative;
  z-index: 2;
}

/* ===== masthead ===== */
.mast {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 0.9rem;
  background: var(--yellow);
  border-bottom: 5px solid var(--gutter);
  box-shadow: 0 8px 0 rgba(13, 11, 8, 0.2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border: 3px solid var(--gutter);
  background: #000;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  font-family: var(--font-sfx);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.brand-copy em {
  font-family: var(--font-cap);
  font-style: normal;
  font-size: 0.68rem;
}

.nav {
  display: flex;
  gap: 0.55rem;
  margin-left: auto;
  font-family: var(--font-sfx);
  letter-spacing: 0.06em;
}

.nav a {
  padding: 0.25rem 0.55rem;
  border: 3px solid var(--gutter);
  background: var(--cream);
}

.nav a:hover {
  background: var(--lime);
}

.nav-buy {
  background: var(--red) !important;
  color: #fff;
}

.mast-socials {
  display: flex;
  gap: 0.35rem;
}

.mast-socials a {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.4rem;
  border: 3px solid var(--gutter);
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--font-sfx);
}

/* ===== 3D issue ===== */
.issue {
  width: min(1080px, calc(100% - 1.4rem));
  margin: 1.1rem auto 2rem;
  perspective: 1800px;
  transform-style: preserve-3d;
}

.page {
  position: relative;
  margin: 0 0 1.15rem;
  padding: 0.85rem;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.35), transparent 28%),
    repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(22, 18, 12, 0.04) 28px),
    var(--paper);
  border: 6px solid var(--gutter);
  box-shadow: var(--shadow);
  transform: rotateX(var(--tilt-x, 1.8deg)) rotateY(var(--tilt-y, -1.2deg));
  transform-origin: 50% 0;
}

.page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.18) 49%,
    transparent 58%
  );
  mix-blend-mode: soft-light;
}

.page-rule,
.running {
  margin: 0 0 0.7rem;
  font-family: var(--font-cap);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-rule {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding-bottom: 0.45rem;
  border-bottom: 3px solid var(--gutter);
}

.panel {
  position: relative;
  overflow: hidden;
  background: #111;
  border: 4px solid var(--gutter);
}

.panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.caption {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  margin: 0;
  padding: 0.35rem 0.5rem;
  background: var(--yellow);
  border: 3px solid var(--gutter);
  font-family: var(--font-cap);
  font-size: 0.78rem;
  color: var(--ink);
}

.caption.top-cap {
  top: 12px;
  bottom: auto;
  left: 14px;
  right: auto;
  max-width: 16rem;
}

.speech {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 0.55rem 0.75rem 0.45rem;
  background: #fff;
  border: 3px solid var(--gutter);
  border-radius: 1.2rem 1.2rem 1.2rem 0.2rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-style: italic;
}

.speech::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -12px;
  border: 8px solid transparent;
  border-top-color: var(--gutter);
}

.burst {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  min-width: 92px;
  min-height: 92px;
  padding: 0.4rem;
  rotate: -12deg;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-sfx);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  clip-path: polygon(
    50% 0%, 63% 16%, 86% 8%, 80% 32%, 100% 42%,
    82% 54%, 94% 78%, 70% 72%, 58% 100%, 46% 78%,
    22% 90%, 28% 64%, 0 52%, 22% 40%, 10% 16%, 36% 24%
  );
}

.burst-b { background: var(--lime); rotate: 8deg; }
.burst-c { background: var(--red); color: #fff; rotate: -4deg; }

.page-no {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 4;
  padding: 0.12rem 0.35rem;
  background: var(--cream);
  border: 2px solid var(--gutter);
  font-family: var(--font-cap);
  font-size: 0.68rem;
}

/* splash — cinematic comic splash, not a stacked landing */
.splash {
  padding: 0.7rem;
}

.splash-frame {
  position: relative;
  height: min(86vh, 760px);
  min-height: 520px;
  overflow: hidden;
  border: 5px solid var(--gutter);
  background: #050605;
  clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
}

.banner-fallback,
.banner-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.banner-video {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.banner-video.is-live {
  opacity: 1;
}

.splash-ink {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(13, 11, 8, 0.15), transparent 30%, rgba(13, 11, 8, 0.55) 100%),
    repeating-conic-gradient(from 8deg at 80% 20%, transparent 0 7deg, rgba(255, 225, 74, 0.08) 7.3deg 7.8deg);
}

.sfx-title {
  position: absolute;
  left: 4%;
  bottom: 18%;
  z-index: 3;
  margin: 0;
  display: grid;
  font-family: var(--font-sfx);
  font-size: clamp(4rem, 14vw, 8.4rem);
  line-height: 0.78;
  letter-spacing: 0.03em;
  color: var(--yellow);
  -webkit-text-stroke: 4px var(--gutter);
  paint-order: stroke fill;
  text-shadow: 8px 9px 0 #0d0b08;
}

.hero-speech {
  position: absolute;
  right: 5%;
  top: 22%;
  z-index: 3;
  max-width: 14rem;
  rotate: 4deg;
}

.caption-row {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.75rem;
}

.ca-bar,
.ca-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.ca-bar {
  padding: 0.55rem 0.65rem;
  background: var(--cream);
  border: 4px solid var(--gutter);
}

.ca-label {
  flex: none;
  padding: 0.12rem 0.4rem;
  background: var(--red);
  color: #fff;
  font-family: var(--font-sfx);
  letter-spacing: 0.06em;
}

.ca-bar code,
.ca-inline code {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.84rem;
  font-weight: 700;
}

.ca-copy {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 3px solid var(--gutter);
  background: var(--yellow);
}

.ca-copy:hover,
.ca-copy.copied {
  background: var(--lime);
}

.ca-toast {
  font-family: var(--font-cap);
  font-size: 0.72rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  border: 3px solid var(--gutter);
  background: var(--cream);
  font-family: var(--font-sfx);
  letter-spacing: 0.05em;
  box-shadow: 4px 4px 0 var(--gutter);
}

.btn:hover {
  translate: 1px 1px;
  box-shadow: 2px 2px 0 var(--gutter);
}

.btn-pop {
  background: var(--lime);
}

/* mosaic spread — broken comic grid, not equal cards */
.mosaic {
  display: grid;
  gap: 0.7rem;
}

.panel.wide {
  min-height: 240px;
}

.panel.wide img {
  min-height: 240px;
  object-position: center 40%;
}

.burst-a {
  top: 10px;
  left: 10px;
}

.panel.tall {
  min-height: 280px;
  background: #050505;
  display: grid;
  place-items: center;
  padding: 1.2rem 0.8rem 2rem;
}

.panel.tall img {
  width: min(220px, 70%);
  height: auto;
}

.panel.tall .speech {
  position: absolute;
  top: 14px;
  right: 10px;
}

.dutch {
  rotate: -3.5deg;
  z-index: 2;
}

.panel.slash {
  min-height: 190px;
  clip-path: polygon(0 12%, 100% 0, 100% 88%, 0 100%);
}

.panel.slash img {
  min-height: 190px;
  filter: contrast(1.08) saturate(1.1);
}

/* strip — three stamps, each a different tilt */
.strip-row {
  display: grid;
  gap: 0.8rem;
}

.panel.stamp {
  min-height: 280px;
  padding: 1.1rem 0.9rem 1rem;
  background: var(--cream);
  color: var(--ink);
}

.panel.stamp img {
  width: 120px;
  height: 120px;
  margin: 1.4rem auto 0.7rem;
  object-fit: cover;
  border: 3px solid var(--gutter);
}

.panel.stamp img.crop {
  width: 100%;
  height: 110px;
  object-position: 30% 60%;
}

.panel.stamp h2 {
  margin: 0 0 0.3rem;
  font-family: var(--font-sfx);
  font-size: 1.7rem;
  letter-spacing: 0.04em;
}

.panel.stamp p {
  margin: 0;
  color: var(--muted);
}

.panel.stamp .burst {
  top: -8px;
  left: -6px;
}

.skew {
  rotate: 2.4deg;
}

/* sniff — circular inset bursting from a bleed panel */
.inset-wrap {
  position: relative;
  min-height: 420px;
}

.panel.bleed {
  height: 420px;
}

.panel.bleed img {
  height: 420px;
  filter: grayscale(0.15) contrast(1.1);
}

.inset {
  position: absolute;
  right: 6%;
  top: 50%;
  width: min(340px, 86%);
  translate: 0 -50%;
  padding: 1rem 1rem 1.1rem;
  background: var(--paper);
  border: 6px solid var(--gutter);
  border-radius: 50% 12% 50% 12% / 18% 50% 18% 50%;
  box-shadow: 8px 10px 0 var(--gutter);
  text-align: center;
}

.inset h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-sfx);
  font-size: 2rem;
}

.meter-face {
  position: relative;
  height: 120px;
  margin: 0 auto 0.7rem;
  border: 3px solid var(--gutter);
  background:
    repeating-radial-gradient(circle at 50% 110%, var(--yellow) 0 8px, var(--cream) 8px 16px);
}

.meter-needle {
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 5px;
  height: 88px;
  background: var(--red);
  transform-origin: 50% 100%;
  transform: translateX(-50%) rotate(-50deg);
  transition: transform 0.85s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.meter-needle.is-hot {
  transform: translateX(-50%) rotate(50deg);
}

.meter-label {
  position: absolute;
  bottom: 6px;
  font-family: var(--font-sfx);
  font-size: 0.78rem;
}

.meter-label.left { left: 8px; }
.meter-label.right { right: 8px; color: var(--green); }

.meter-read {
  position: absolute;
  left: 0;
  right: 0;
  top: 18px;
  font-family: var(--font-sfx);
  font-size: 1.6rem;
}

.sniff-quote {
  margin: 0.7rem 0 0;
  font-family: var(--font-mark);
  font-size: 0.95rem;
}

/* collector card with foil shine */
.foil-card {
  position: relative;
  overflow: hidden;
  padding: 1.1rem;
  background:
    linear-gradient(160deg, #fff6d4, var(--paper) 42%, #d7ecb8);
  border: 6px solid var(--gutter);
}

.foil-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    transparent 20%,
    rgba(255, 255, 255, 0.55) 45%,
    rgba(122, 223, 60, 0.25) 52%,
    transparent 70%
  );
  background-size: 220% 100%;
  mix-blend-mode: overlay;
  animation: foil 5.5s linear infinite;
}

@keyframes foil {
  from { background-position: 140% 0; }
  to { background-position: -40% 0; }
}

.token-id {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.4rem;
}

.token-id img {
  width: 92px;
  height: 92px;
  border: 4px solid var(--gutter);
  background: #000;
}

.token-name {
  margin: 0;
  font-family: var(--font-sfx);
  font-size: 2rem;
  letter-spacing: 0.04em;
  line-height: 0.9;
}

.token-ticker,
.token-chain {
  margin: 0.2rem 0 0;
  font-family: var(--font-cap);
  font-size: 0.82rem;
}

.token-ticker { color: var(--green); }

.facts {
  list-style: none;
  margin: 0.4rem 0 1rem;
  padding: 0;
}

.facts li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 3px dotted var(--gutter);
}

.facts span {
  font-family: var(--font-cap);
  font-size: 0.78rem;
}

.facts .ca-inline {
  flex: 1;
  justify-content: flex-end;
}

/* back cover */
.back-cover {
  width: min(1080px, calc(100% - 1.4rem));
  margin: 0 auto 2.2rem;
  padding: 1.1rem;
  background: var(--ink);
  color: var(--cream);
  border: 6px solid var(--yellow);
  text-align: center;
  font-family: var(--font-cap);
  font-size: 0.84rem;
}

.upc {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.7rem;
}

.upc img {
  width: 64px;
  height: 64px;
  border: 3px solid var(--yellow);
  background: #000;
}

.upc p { margin: 0; text-align: left; }

.foot-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0.7rem 0;
  font-family: var(--font-sfx);
}

.foot-links a:hover { color: var(--lime); }

.disclaimer,
.copyright {
  margin: 0.55rem auto 0;
  max-width: 40em;
  color: #cfc3a4;
}

@media (min-width: 860px) {
  .mosaic {
    grid-template-columns: 1.5fr 0.9fr;
    grid-template-rows: auto auto;
  }

  .panel.wide {
    grid-column: 1;
    grid-row: 1 / span 2;
    min-height: 100%;
  }

  .panel.wide img {
    min-height: 100%;
  }

  .strip-row {
    grid-template-columns: 1fr 0.9fr 1.1fr;
    align-items: start;
  }

  .sfx-title {
    bottom: 22%;
  }
}

@media (max-width: 859px) {
  .nav a:not(.nav-buy) { display: none; }
  .brand-copy em { display: none; }
  .page-rule span:nth-child(2) { display: none; }
  .hero-speech { max-width: 10rem; top: 16%; }
  .sfx-title { font-size: clamp(3.2rem, 18vw, 5.4rem); bottom: 28%; }
  .ca-toast { display: none; }
  .splash-frame { min-height: 460px; height: 78vh; }
  .inset {
    position: relative;
    right: auto;
    top: auto;
    translate: none;
    width: 100%;
    margin-top: -5rem;
    border-radius: 18px;
  }
  .dutch, .skew, .page { rotate: 0; transform: none; }
  .facts .ca-inline { max-width: 70%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .newsstand-shine,
  .foil-shine,
  .meter-needle {
    animation: none;
    transition: none;
  }
}
