@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Bebas+Neue&family=Archivo+Black&family=JetBrains+Mono:wght@400;500;700&family=Noto+Sans+JP:wght@500;700;900&display=swap');

:root {
  --paper: #f0ede8;
  --paper-2: #e5e1da;
  --paper-3: #d8d4cd;
  --ink: #0a0a0a;
  --ink-2: #1f1f1f;
  --ink-soft: #666666;
  --red: #e12b28;
  --red-deep: #b42220;
  --warn: #f0d878;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* GRAIN OVERLAY */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.15;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

/* TOP NAVIGATION */
.top-nav {
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
}
.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 40px;
}
.nav-links a {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--red);
}
.nav-util {
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav-burger {
  display: none;
  background: transparent;
  border: 2px solid var(--ink);
  width: 44px;
  height: 36px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
}
.icon {
  font-size: 18px;
  cursor: pointer;
  filter: brightness(1) brightness(0.35);
  transition: filter 0.2s;
}
.icon:hover {
  filter: brightness(0) invert(1) brightness(0.5);
}
.icon-img { filter: none; display: inline-flex; align-items: center; }
.icon-img img { width: 28px; height: auto; display: block; }
.icon-img:hover img { opacity: 0.6; }
.cart {
  position: relative;
}
.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
}

/* HERO SECTION */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #141414;
  color: var(--paper);
  padding: 60px 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(20, 20, 20, 0.35) 1px, transparent 1px);
  background-size: 6px 6px;
  opacity: 0.25;
  mix-blend-mode: multiply;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 1;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1) brightness(1);
}
.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.7;
  mix-blend-mode: multiply;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 60px;
  gap: 40px;
  align-items: center;
}
.hero-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero-logo h1 {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(60px, 10vw, 120px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--paper);
  text-transform: uppercase;
}
.hero-tagline {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 3vw, 36px);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.red {
  color: var(--red);
}
.jp {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  opacity: 0.8;
  color: var(--paper);
}
.hero-desc {
  font-size: 12px;
  line-height: 1.6;
  max-width: 40ch;
  opacity: 1;
  color: var(--paper);
}
.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 14px;
  transition: all 0.15s;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary,
.hero .btn-primary {
  background: var(--red);
  color: #fff;
  border: 2px solid var(--red);
}
.btn-primary:hover,
.hero .btn-primary:hover {
  background: var(--red-deep);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 rgba(255, 59, 31, 0.3);
}
.btn-outline,
.hero .btn-outline {
  background: transparent;
  color: var(--paper);
  border: 2px solid var(--paper);
}
.btn-outline:hover,
.hero .btn-outline:hover {
  background: var(--paper);
  color: #050505;
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 rgba(240, 237, 232, 0.2);
}
.btn-small {
  padding: 8px 16px;
  font-size: 11px;
}

/* HERO RIGHT */
.hero-right {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  overflow: hidden;
}
.hero-illustration {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1);
}
.warning-side {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
}
/* CARDS SECTION */
.section-gap {
  height: 20px;
  background: var(--paper);
  border-top: 3px solid var(--ink);
}
.cards-section {
  background: var(--paper);
  padding: 20px 40px;
  max-width: 100%;
  margin: 0;
}
.cards-section .cards-grid {
  max-width: 1400px;
  margin: 0 auto;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card {
  background: var(--paper-2);
  border: 2px solid var(--ink);
  overflow: hidden;
  transition: transform 0.2s;
}
.card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 rgba(255, 59, 31, 0.2);
}
.card-image {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: var(--paper-3);
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.2) grayscale(0.7);
}
.card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  text-transform: uppercase;
}
.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card-content h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.card-content p {
  font-size: 12px;
  line-height: 1.6;
  opacity: 0.8;
}
.terminal {
  background: var(--ink);
  color: #6cf06c;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}
.terminal-content {
  line-height: 1.8;
}
.prompt::before {
  content: "> ";
}
.ok {
  color: #6cf06c;
}
.dim {
  color: #4a8a4a;
}
.status-indicator {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
}
.status-indicator.green {
  color: #6cf06c;
}

/* RIBBON SEPARATOR */
.ribbon {
  background: var(--ink);
  border-top: 2px solid var(--ink-2);
  border-bottom: 2px solid var(--ink-2);
  padding: 20px 0;
  overflow: hidden;
}
.ribbon-inner {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.ribbon-item {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ribbon-item .atlas {
  opacity: 1;
  filter: brightness(0) invert(1) brightness(1.8);
}

/* FOOTER */
.footer {
  background: var(--paper-2);
  border-top: 2px solid var(--ink);
  padding: 60px 40px 24px;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
}
.footer-col h4 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--ink);
}
.footer-desc {
  font-size: 12px;
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 20px;
  color: var(--ink-2);
}
.footer-form {
  display: flex;
  gap: 8px;
}
.footer-input {
  flex: 1;
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 10px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink);
}
.footer-input::placeholder {
  color: var(--ink-soft);
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  font-size: 12px;
  color: var(--ink-2);
  opacity: 0.9;
  transition: opacity 0.2s;
  text-decoration: none;
}
.footer-links a:hover {
  opacity: 1;
  color: var(--red);
}
.social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.social-link {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}
.social-link:hover {
  color: var(--red);
}
.footer-section-label {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
  opacity: 0.85;
}
.social-utility {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.social-icons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin-left: -7px;
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 7px;
  color: var(--ink);
  transition: color 0.2s, transform 0.15s;
  text-decoration: none;
  border-radius: 2px;
}
.social-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.social-icon:hover {
  color: var(--red);
  transform: translateY(-1px);
}
.social-icon:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
@media (max-width: 720px) {
  .social-icons-row { gap: 6px; }
  .social-icon { width: 44px; height: 44px; padding: 10px; }
}
.footer-meta {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.barcode-footer {
  display: flex;
  gap: 2px;
}
.footer-id {
  font-size: 10px;
  letter-spacing: 0.1em;
  opacity: 0.6;
}
.footer-bottom {
  max-width: 1400px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--ink-soft);
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
  color: var(--ink-2);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-right {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    overflow: hidden;
  }
  .hero-illustration::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(20,20,20,0.7) 0%, rgba(20,20,20,0.3) 60%, transparent 100%);
    z-index: 1;
  }
  .warning-side {
    display: none;
  }
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr 1.6fr;
  }
}

@media (max-width: 640px) {
  .nav-inner {
    padding: 0 16px;
  }
  .nav-burger {
    display: flex;
  }
  .nav-links {
    display: none;
  }
  .top-nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    padding: 16px 20px;
    gap: 14px;
    z-index: 99;
  }
  .top-nav.open .nav-links a {
    font-size: 18px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--ink);
  }
  .nav-util {
    gap: 8px;
  }
  .nav-util .icon {
    transform: scale(0.7);
    transform-origin: center;
  }
  .hero-content {
    padding: 40px 20px;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

/* ============================================================
   SITE CHROME (mountChrome-injected, used by all zine pages)
   ============================================================ */

.bar-top {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--ink-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
}
.bar-top-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 6px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.bar-top .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  margin-right: 8px;
  box-shadow: 0 0 6px var(--red);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.35; }
}

.marquee {
  background: var(--paper-2);
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
  position: relative;
}
.marquee-inner {
  display: inline-flex;
  white-space: nowrap;
  padding: 8px 0;
  gap: 36px;
  animation: marquee var(--marquee-speed, 36s) linear infinite;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  will-change: transform;
}
.marquee-inner > span {
  flex-shrink: 0;
}
.marquee-inner .star {
  color: var(--red);
  font-size: 13px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.nav {
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav .nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  height: 64px;
  gap: 20px;
}
.nav .nav-logo {
  display: inline-flex;
  align-items: center;
  font-family: 'Archivo Black', sans-serif;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.nav .nav-logo .red-block {
  display: inline-block;
  background: var(--red);
  color: var(--paper);
  padding: 0 6px;
  margin-right: 1px;
}
.nav .nav-links {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav .nav-links a {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  position: relative;
  padding: 6px 0;
  transition: color 0.15s;
}
.nav .nav-links a .jp {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 9px;
  font-weight: 500;
  opacity: 0.55;
  letter-spacing: 0.02em;
  margin-left: 4px;
  color: inherit;
}
.nav .nav-links a:hover,
.nav .nav-links a.active {
  color: var(--red);
}
.nav .nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  background: var(--red);
}
.nav .nav-cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  padding: 10px 16px;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
}
.nav .nav-cart:hover { background: var(--red); }
.nav-cart-count {
  background: var(--red);
  color: var(--paper);
  padding: 2px 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0;
}

/* ============================================================
   ZINE PAGE UTILITIES (border helpers, typography, tags)
   ============================================================ */

.b-b { border-bottom: 2px solid var(--ink); }
.b-r { border-right:  2px solid var(--ink); }
.b-t { border-top:    2px solid var(--ink); }
.b-l { border-left:   2px solid var(--ink); }
.b-all { border: 2px solid var(--ink); }

.display {
  font-family: 'Archivo Black', sans-serif;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: inherit;
}

.label-tiny {
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.7;
}
.tiny  { font-size: 11px; line-height: 1.5; }
.upper { text-transform: uppercase; letter-spacing: 0.08em; }

.tag {
  display: inline-block;
  border: 1px solid var(--ink);
  padding: 2px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  color: var(--ink);
}
.tag.solid { background: var(--ink); color: var(--paper); }
.tag.red   { background: var(--red); color: var(--paper); border-color: var(--red); }

.divider-thin {
  border-top: 1px solid var(--ink);
  opacity: 0.4;
}

/* halftone block (caption-tagged red panel used as illustration placeholder) */
.halftone {
  position: relative;
  background:
    radial-gradient(circle at 25% 25%, var(--ink) 1.5px, transparent 1.6px) 0 0/8px 8px,
    radial-gradient(circle at 75% 75%, var(--ink) 1.5px, transparent 1.6px) 4px 4px/8px 8px,
    var(--paper-2);
  overflow: hidden;
}
.halftone.red {
  background:
    radial-gradient(circle at 25% 25%, var(--red-deep) 1.6px, transparent 1.7px) 0 0/8px 8px,
    radial-gradient(circle at 75% 75%, var(--red-deep) 1.6px, transparent 1.7px) 4px 4px/8px 8px,
    var(--red);
}
.halftone img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: contrast(1.05) saturate(0.95);
}
.halftone::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 25%, rgba(0,0,0,0.18) 1px, transparent 1.4px) 0 0/6px 6px,
    radial-gradient(circle at 75% 75%, rgba(0,0,0,0.18) 1px, transparent 1.4px) 3px 3px/6px 6px;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: multiply;
  opacity: 0.55;
}
.halftone:has(img)::after { display: none; }
.ht-cap {
  position: absolute;
  bottom: 12px;
  left: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--paper);
  color: var(--ink);
  padding: 3px 8px;
  border: 1px solid var(--ink);
  z-index: 3;
}
.ht-cap.tr { left: auto; right: 14px; bottom: auto; top: 12px; }

.parental {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  border: 2px solid var(--ink);
  padding: 4px 8px;
}
.parental .m {
  background: var(--ink);
  color: var(--paper);
  padding: 1px 6px;
  margin-right: 2px;
}

/* btn variants used in zine pages */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.btn:hover  { background: var(--ink); color: var(--paper); }
.btn.solid  { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: var(--red); border-color: var(--red); }
.btn.red    { background: var(--red); color: var(--paper); border-color: var(--red); }
.btn.red:hover   { background: var(--ink); border-color: var(--ink); }
.btn-small  { padding: 6px 12px; font-size: 11px; }

/* ============================================================
   FOOT (mountChrome footer)
   ============================================================ */

.foot {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 22px 22px;
  border-top: 2px solid var(--ink);
  margin-top: 60px;
}
.foot-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.foot-grid h4 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--paper);
}
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 8px; }
.foot-grid a {
  font-size: 12px;
  color: var(--paper);
  opacity: 0.75;
  text-decoration: none;
  transition: opacity 0.15s, color 0.15s;
}
.foot-grid a:hover { opacity: 1; color: var(--red); }
.foot-logo {
  font-family: 'Archivo Black', sans-serif;
  font-size: 36px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--paper);
}
.foot .barcode {
  display: inline-flex;
  gap: 1px;
  align-items: flex-end;
}
.foot .barcode i {
  display: inline-block;
  background: var(--paper);
}
.foot-bottom {
  max-width: 1400px;
  margin: 36px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--ink-soft);
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.65;
  flex-wrap: wrap;
  gap: 8px;
}
.foot-bottom .jp { color: var(--paper); opacity: 0.8; }

/* ============================================================
   AGE GATE
   ============================================================ */

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10,10,10,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.age-gate-box {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 28px;
  max-width: 460px;
  width: 100%;
}
.age-gate-box .btn { font-size: 12px; padding: 10px 14px; }

/* links inherit color on dossier-style pages (kill default browser blue) */
body[data-screen-label] a,
body[data-screen-label] a:visited {
  color: inherit;
  text-decoration: none;
}
body[data-screen-label] a:hover {
  color: var(--red);
}

/* responsive */
@media (max-width: 1024px) {
  .nav .nav-links { gap: 16px; }
  .nav .nav-links a { font-size: 11px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav .nav-inner { flex-wrap: wrap; height: auto; padding: 12px 16px; }
  .nav .nav-links { order: 3; flex-basis: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 12px; }
  .bar-top-inner { font-size: 10px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   GLOBAL MOBILE FIX-UPS  —  pages use lots of inline grid styles,
   so we override them at narrow widths with !important.
   ============================================================ */

@media (max-width: 900px) {
  /* TOP-LEVEL section grids collapse to 1 column.
     Direct-child selector preserves nested grids (thumbnails, etc.) */
  section[class*="b-b"] > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }
  /* Strip vertical borders that were only sensible in row layout */
  section[class*="b-b"] .b-r {
    border-right: 0 !important;
    border-bottom: 1px solid var(--ink);
  }
  /* Halftone hero blocks shouldn't tower */
  section[class*="b-b"] .halftone {
    aspect-ratio: 16/10;
    min-height: 0 !important;
  }
  section[class*="b-b"] .halftone img.hero-img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 640px) {
  /* Body padding for breathing room — but only inline-styled containers */
  section[class*="b-b"] > div > div[style*="padding"] {
    padding: 18px 14px !important;
  }
  /* Display headlines shouldn't blow past the viewport */
  .display { font-size: clamp(44px, 13vw, 96px) !important; line-height: 0.9 !important; }
  /* Section gaps tighten */
  .section-gap { height: 24px; }
  /* Cards grid: enforced 1 column even when JS-rendered */
  .cards-grid { grid-template-columns: 1fr !important; }
  /* games.html grid + list */
  #games-grid { grid-template-columns: 1fr !important; }
  #games-grid > a > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  /* Catalog list view — let table scroll horizontally rather than overflow */
  #list-section { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #list-section table { min-width: 640px; }
  /* Filter bar wraps cleanly */
  #filterStatus { flex-basis: 100%; }
  #filterStatus button { padding: 10px 12px !important; font-size: 11px !important; }
  /* Manifesto articles stack the big numeral above the body */
  #manifesto-articles article { grid-template-columns: 1fr !important; gap: 6px !important; }
  #manifesto-articles article > div:first-child { font-size: 40px !important; }
  /* Pitch CTA block stacks */
  body[data-screen-label] section[style*="background"] > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  /* Game.html related card row collapses to stack */
  #related > a { flex-direction: column !important; }
  #related > a > div:first-child { flex: 0 0 auto !important; border-right: 0 !important; border-bottom: 1px solid var(--ink); aspect-ratio: 16/9 !important; }
  /* Journal archive table scrolls */
  body[data-screen-label] table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* Warning side panel hidden on phones */
  .warning-side { display: none !important; }
  /* Hero CTA buttons wrap and full-width */
  .hero-cta { flex-wrap: wrap; gap: 10px; }
  .hero-cta .btn { flex: 1 1 100%; text-align: center; }
  .hero-desc { font-size: 13px; line-height: 1.55; }
  /* Sticky top-nav: collapse padding */
  .top-nav .nav-inner { padding: 0 16px; }
  /* Breadcrumb / utility lines wrap properly */
  body[data-screen-label] .tiny.upper { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .display { font-size: clamp(36px, 14vw, 72px) !important; }
  section[class*="b-b"] > div > div[style*="padding"] {
    padding: 16px 12px !important;
  }
  /* Hide JP labels and form codes that crowd phone widths */
  body[data-screen-label] .jp.tiny { display: none; }
}

/* ---- Dossier page (game.html) — mobile breathing room ----
   The dossier stacks five sections on phones; without breathing room every
   block runs into the next. These rules give each section visible separation
   and pad the inner cells more generously than the global 18px/16px. */
@media (max-width: 900px) {
  body[data-screen-label="03 Dossier Fragment"] section.b-b {
    margin-bottom: 22px;
  }
  body[data-screen-label="03 Dossier Fragment"] section > div > div[style*="padding"] {
    padding: 26px 22px !important;
  }
  /* Each collapsed grid cell gets a thicker divider so SECTION A / B / C
     read as distinct stacked blocks instead of a wall of text. */
  body[data-screen-label="03 Dossier Fragment"] section.b-b .b-r {
    border-bottom-width: 2px !important;
  }
  /* Headlines/paragraphs in the dossier sections breathe more */
  body[data-screen-label="03 Dossier Fragment"] section h2 {
    margin-bottom: 4px;
  }
  body[data-screen-label="03 Dossier Fragment"] section p {
    margin-top: 12px !important;
    line-height: 1.75 !important;
  }
  body[data-screen-label="03 Dossier Fragment"] section ul li {
    padding: 10px 0 !important;
  }
  /* Section D dispatch quotes need more space between the two stacked blockquotes */
  body[data-screen-label="03 Dossier Fragment"] section blockquote {
    padding-top: 4px;
    padding-bottom: 4px;
  }
  /* Hero panel: extra vertical room between tags, blurb, status, terminal */
  body[data-screen-label="03 Dossier Fragment"] section > div > div[style*="flex-direction:column"] {
    gap: 18px !important;
  }
}

@media (max-width: 640px) {
  body[data-screen-label="03 Dossier Fragment"] section.b-b {
    margin-bottom: 18px;
  }
  body[data-screen-label="03 Dossier Fragment"] section > div > div[style*="padding"] {
    padding: 22px 16px !important;
  }
}

@media (max-width: 480px) {
  body[data-screen-label="03 Dossier Fragment"] section > div > div[style*="padding"] {
    padding: 20px 14px !important;
  }
}













