:root {
  --void: #071018;
  --steel: #101826;
  --paper: #f3e6c8;
  --paper-2: #efe0b6;
  --ink: #0c0a08;
  --ink-soft: #1c2433;
  --cyan: #2ee6d6;
  --magenta: #c44cff;
  --gold: #e7c24a;
  --cream: #fff6de;
  --line: 5px;
  --page: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--cream);
  font-family: "Manrope", sans-serif;
  background: var(--void);
  overflow-x: hidden;
}

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

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

.night {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(46, 230, 214, 0.16), transparent 60%),
    radial-gradient(ellipse 55% 45% at 100% 85%, rgba(196, 76, 255, 0.14), transparent 58%),
    radial-gradient(ellipse 40% 30% at 0% 70%, rgba(231, 194, 74, 0.08), transparent 55%),
    linear-gradient(180deg, #08131d 0%, #071018 40%, #0b1522 100%);
}

.night::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: repeating-radial-gradient(
    circle at 50% 42%,
    transparent 0 86px,
    rgba(46, 230, 214, 0.045) 87px 88px
  );
}

.night::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1.2px);
  background-size: 22px 22px;
  opacity: 0.5;
}

.book {
  position: relative;
  z-index: 1;
}

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 14px 16px 0;
}

.nav-bar {
  max-width: var(--page);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 10px;
  background: rgba(8, 14, 22, 0.92);
  border: var(--line) solid #05070c;
  box-shadow: 6px 6px 0 #05070c, 0 0 0 3px var(--cyan);
  backdrop-filter: blur(10px);
}

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

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #0a0e16;
  border: 3px solid #05070c;
  flex-shrink: 0;
}

.brand strong {
  display: block;
  font-family: "Bangers", cursive;
  font-size: 1.55rem;
  letter-spacing: 0.08em;
  line-height: 1;
  color: #fff;
}

.brand span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 800;
}

.menu {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.menu a:not(.ink-btn) {
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 10px;
  color: #d7e6ef;
}

.menu a:not(.ink-btn):hover {
  color: var(--cyan);
}

.ink-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 3px solid #05070c;
  padding: 8px 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  box-shadow: 3px 3px 0 #05070c;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
  text-decoration: none;
}

.ink-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #05070c;
}

.ink-btn i,
.ink-btn svg {
  font-size: 1rem;
}

.ink-buy {
  background: var(--cyan);
  color: #05201d;
}

.ink-x {
  background: #111;
  color: #fff;
}

.ink-dex {
  background: var(--magenta);
  color: #fff;
}

.ink-copy {
  background: var(--gold);
  color: #1a1403;
  cursor: pointer;
  font-family: inherit;
}

a.ink-buy:hover { color: #05201d; }
a.ink-x:hover { color: #fff; }
a.ink-dex:hover { color: #fff; }

.sheet {
  max-width: var(--page);
  margin: 22px auto;
  padding: 0 16px;
}

.page {
  position: relative;
  border: var(--line) solid #05070c;
  box-shadow: 10px 10px 0 #05070c;
}

.page::before,
.page::after {
  content: "";
  position: absolute;
  left: 14px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #9aa3ad;
  border: 2px solid #05070c;
  z-index: 2;
}

.page::before { top: 22px; }
.page::after { bottom: 22px; }

.cover {
  background:
    linear-gradient(180deg, #101826 0%, #0b1220 100%);
}

.trade {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 18px 10px 36px;
  background: var(--gold);
  color: #1a1403;
  font-family: "Teko", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: var(--line) solid #05070c;
}

.art {
  padding: 14px 18px 8px;
  background: #05070c;
}

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

.bubble-row {
  display: flex;
  justify-content: flex-start;
  padding: 0 18px;
  margin-top: -6px;
  position: relative;
  z-index: 2;
}

.bubble {
  max-width: min(560px, 100%);
  background: #fff;
  color: var(--ink);
  border: 4px solid #05070c;
  border-radius: 28px 28px 28px 8px;
  padding: 14px 18px;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 5px 5px 0 #05070c;
}

.cover-copy {
  padding: 22px 28px 28px 36px;
}

.kicker {
  font-family: "Teko", sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  font-size: 1.25rem;
  margin: 0 0 4px;
}

h1, h2 {
  font-family: "Bangers", cursive;
  letter-spacing: 0.06em;
  line-height: 0.92;
  margin: 0;
}

h1 {
  font-size: clamp(4.2rem, 12vw, 8.4rem);
  background: linear-gradient(90deg, var(--cyan), #7dff9a 42%, var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(3px 3px 0 #05070c);
}

.lede {
  max-width: 640px;
  font-size: 1.12rem;
  line-height: 1.55;
  color: #dce7ef;
  margin: 14px 0 20px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-num {
  position: absolute;
  right: 14px;
  bottom: 10px;
  font-family: "Teko", sans-serif;
  letter-spacing: 0.18em;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.45);
}

.strip {
  background: #0a101c;
}

.strip .art {
  padding: 12px;
}

.strip-cap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 18px 12px 36px;
  background: var(--magenta);
  color: #fff;
  font-family: "Bangers", cursive;
  letter-spacing: 0.08em;
  font-size: 1.55rem;
  border-top: var(--line) solid #05070c;
}

.story {
  background:
    repeating-linear-gradient(
      180deg,
      var(--paper) 0 28px,
      var(--paper-2) 28px 29px
    );
  color: var(--ink);
}

.head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  padding: 22px 24px 12px 36px;
  border-bottom: 4px solid #05070c;
}

.head h2 {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  color: #111;
}

.head em {
  font-style: normal;
  font-family: "Teko", sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5a4630;
  font-size: 1.2rem;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.story-copy {
  padding: 22px 22px 28px 36px;
}

.story-copy p {
  margin: 0 0 14px;
  font-size: 1.02rem;
  line-height: 1.6;
}

.caps {
  display: grid;
  gap: 10px;
  margin: 16px 0 18px;
}

.cap {
  background: var(--cream);
  border: 3px solid #05070c;
  padding: 10px 12px;
  box-shadow: 4px 4px 0 #05070c;
}

.cap b {
  display: block;
  font-family: "Teko", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7a2ad6;
  font-size: 1.1rem;
}

.story-art {
  padding: 18px;
  background: #11161f;
  border-left: 4px solid #05070c;
}

.playbook {
  background: #d9f7f3;
  color: var(--ink);
}

.spine {
  background: #082924;
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-bottom: 4px solid #05070c;
  font-family: "Bangers", cursive;
  letter-spacing: 0.18em;
  font-size: 1.35rem;
  text-align: center;
}

.step-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.step {
  padding: 22px 20px 24px;
  border-bottom: 4px solid #05070c;
  background: #edfffc;
}

.step:nth-child(odd) {
  border-right: 4px solid #05070c;
}

.step:nth-child(3),
.step:nth-child(4) {
  border-bottom: 0;
}

.burst {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--gold);
  border: 3px solid #05070c;
  font-family: "Bangers", cursive;
  font-size: 1.7rem;
  margin-bottom: 10px;
  box-shadow: 3px 3px 0 #05070c;
}

.step h3 {
  margin: 0 0 8px;
  font-family: "Bangers", cursive;
  font-size: 1.7rem;
  letter-spacing: 0.04em;
}

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

.crew {
  background:
    linear-gradient(180deg, #10141f 0%, #151022 100%);
}

.crew .head {
  border-bottom-color: #05070c;
  color: #fff;
}

.crew .head h2 {
  color: #fff;
}

.crew .head em {
  color: var(--cyan);
}

.crew-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}

.crew-art {
  padding: 16px;
  background: #05070c;
}

.crew-copy {
  padding: 24px 24px 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.crew-copy p {
  margin: 0;
  color: #d5e2ec;
  font-size: 1.05rem;
  line-height: 1.6;
}

.socials {
  display: grid;
  gap: 10px;
}

.socials .ink-btn {
  justify-content: center;
  padding: 12px 14px;
}

.ca-rail {
  max-width: var(--page);
  margin: 0 auto 8px;
  padding: 0 16px;
}

.ca-box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  background: #fff6de;
  color: var(--ink);
  border: var(--line) solid #05070c;
  box-shadow: 6px 6px 0 #05070c;
  padding: 8px 10px;
}

.ca-box .tag {
  font-family: "Teko", sans-serif;
  letter-spacing: 0.16em;
  background: #111;
  color: var(--gold);
  padding: 8px 10px;
  font-size: 1.15rem;
}

.ca-box code {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.site-end {
  max-width: var(--page);
  margin: 8px auto 36px;
  padding: 0 16px 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: #9eb0be;
  font-size: 0.88rem;
}

.site-end .end-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Bangers", cursive;
  letter-spacing: 0.08em;
  font-size: 1.4rem;
  color: #fff;
}

.site-end img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border: 3px solid #05070c;
  background: #0a0e16;
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(20px);
  background: var(--gold);
  color: #1a1403;
  border: 3px solid #05070c;
  box-shadow: 4px 4px 0 #05070c;
  padding: 10px 16px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  transition: 0.2s ease;
}

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

@media (max-width: 860px) {
  .nav-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .menu {
    justify-content: flex-start;
  }

  .story-grid,
  .crew-grid,
  .step-list {
    grid-template-columns: 1fr;
  }

  .story-art {
    border-left: 0;
    border-top: 4px solid #05070c;
  }

  .step,
  .step:nth-child(odd) {
    border-right: 0;
  }

  .step:nth-child(3) {
    border-bottom: 4px solid #05070c;
  }

  .ca-box {
    grid-template-columns: 1fr;
  }

  .cover-copy,
  .story-copy,
  .head {
    padding-left: 18px;
  }

  .trade,
  .strip-cap {
    padding-left: 18px;
    font-size: 1.15rem;
  }

  h1 {
    font-size: 4.4rem;
  }

  .site-end {
    flex-direction: column;
    text-align: center;
  }
}
