:root {
  --ink: #16101a;
  --paper: #fff4d6;
  --yellow: #ffd23f;
  --red: #ff3348;
  --cyan: #3ec1ff;
  --green: #3ee06a;
  --navy: #121629;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);
  --border: 4px solid var(--ink);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--navy);
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.display {
  font-family: "Archivo Black", Impact, "Arial Black", sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.condensed {
  font-family: "Anton", Impact, "Arial Narrow", sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Top Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(18, 22, 41, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 4px solid var(--ink);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--yellow);
  font-size: 1.3rem;
  text-shadow: 2px 2px 0 var(--ink);
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 3px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  opacity: 0.9;
  transition: opacity 0.15s, color 0.15s;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--yellow);
}

.nav-links a.nav-cta {
  background: var(--yellow);
  color: var(--ink);
  padding: 7px 14px;
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  opacity: 1;
}

.nav-links a.nav-cta:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
}

/* Main container */
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

/* Hero Comic Panel */
.hero {
  position: relative;
  border: 5px solid var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: #0d1020;
  min-height: 490px;
  display: flex;
  align-items: flex-end;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  filter: saturate(1.06);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(12, 10, 22, 0.88) 0%,
    rgba(12, 10, 22, 0.62) 48%,
    rgba(12, 10, 22, 0.15) 100%
  ),
  linear-gradient(
    0deg,
    rgba(12, 10, 22, 0.85) 0%,
    rgba(12, 10, 22, 0.0) 55%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 38px;
  max-width: 660px;
  color: #fff;
}

.hero-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  border: 4px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  flex-shrink: 0;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 0.94;
  color: var(--yellow);
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 5px 5px 0 var(--ink);
}

.hero-title span {
  display: block;
  color: var(--red);
}

.hero-tag {
  margin: 0 0 24px;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 700;
  color: var(--paper);
  text-shadow: 2px 2px 0 var(--ink);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 4px solid var(--ink);
  box-shadow: var(--shadow);
  text-decoration: none;
  font-weight: 900;
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

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

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--ink);
}

.btn-play {
  background: var(--yellow);
  color: var(--ink);
}

.btn-ios {
  background: var(--paper);
  color: var(--ink);
}

.btn-ios .sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  opacity: 0.72;
  line-height: 1;
  margin-bottom: 2px;
}

.btn-ios .main {
  display: block;
  font-size: 1rem;
  line-height: 1.05;
}

/* Strip Badges */
.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 26px 0 34px;
}

.pill {
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  text-align: center;
}

.pill-title {
  margin: 0;
  font-size: 1.35rem;
  color: var(--red);
}

.pill-sub {
  margin: 4px 0 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

/* Comic Screenshot Grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.shot-card {
  position: relative;
  background: var(--ink);
  border: 5px solid var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.15s ease;
}

.shot-card:hover {
  transform: translate(-2px, -2px);
}

.shot-card img {
  display: block;
  width: 100%;
  aspect-ratio: 2868 / 1320;
  object-fit: cover;
}

.shot-caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: var(--yellow);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 5px 12px;
  font-size: 0.95rem;
  line-height: 1.1;
}

.shot-caption small {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

/* Web Play Banner */
.play-banner {
  margin-top: 34px;
  background: var(--yellow);
  border: 5px solid var(--ink);
  box-shadow: var(--shadow-lg);
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.play-banner h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--ink);
}

.play-banner p {
  margin: 4px 0 0;
  font-weight: 700;
  font-size: 0.98rem;
}

.play-banner .btn {
  background: var(--red);
  color: #fff;
}

/* Paper Page (Privacy & Support) */
.paper-card {
  background: var(--paper);
  border: 5px solid var(--ink);
  box-shadow: var(--shadow-lg);
  padding: 34px 36px;
  max-width: 820px;
  margin: 12px auto 0;
}

.paper-card h1 {
  margin: 0 0 6px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--red);
}

.paper-card .meta {
  margin: 0 0 24px;
  font-weight: 700;
  opacity: 0.7;
  font-size: 0.9rem;
}

.paper-card h2 {
  margin: 26px 0 8px;
  font-size: 1.25rem;
  color: var(--ink);
  border-bottom: 3px solid var(--ink);
  padding-bottom: 4px;
}

.paper-card p, .paper-card li {
  font-size: 1rem;
  color: #241c2b;
}

.controls-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 14px 0 8px;
}

.ctrl-box {
  background: #fffdf5;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 14px 16px;
}

.ctrl-box h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--red);
}

.ctrl-box ul {
  margin: 0;
  padding-left: 18px;
}

/* Footer */
.footer {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 20px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  color: rgba(255, 244, 214, 0.8);
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--paper);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--yellow);
  text-decoration: underline;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 8, 16, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 96vw;
  max-height: 92vh;
  border: 5px solid var(--yellow);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

@media (max-width: 780px) {
  .hero {
    min-height: 400px;
  }
  .hero-content {
    padding: 26px 22px;
  }
  .hero-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
  }
  .strip, .gallery, .controls-grid {
    grid-template-columns: 1fr;
  }
  .paper-card {
    padding: 24px 20px;
  }
}
