/* ShenmaPlay & Doodle Brawl — 90s Indie Comic Static Web System */
:root {
  --ink: #241522;
  --cream: #fffdf3;
  --cream-warm: #fff6dc;
  --yellow: #ffe24a;
  --pink: #ff4fa3;
  --cyan: #4de1ff;
  --purple: #8a5cff;
  --mint: #4be8a8;
  --radius: 18px;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--cream-warm);
  background-image: radial-gradient(rgba(36, 21, 34, 0.08) 1.25px, transparent 1.25px);
  background-size: 16px 16px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
.pixel-art { image-rendering: pixelated; image-rendering: crisp-edges; }
.pixel-sticker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(2px 0 0 #fffdf3) drop-shadow(-2px 0 0 #fffdf3) drop-shadow(0 2px 0 #fffdf3) drop-shadow(0 -2px 0 #fffdf3) drop-shadow(4px 4px 0 #241522);
}
a { color: var(--ink); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--cream);
  border-bottom: 4px solid var(--ink);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
  padding: 10px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 3px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}
nav.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
nav.nav-links a {
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 2.5px solid transparent;
}
nav.nav-links a:hover, nav.nav-links a[aria-current="page"] {
  background: var(--yellow);
  border-color: var(--ink);
}
.lang-pill {
  background: var(--cream-warm);
  border: 2.5px solid var(--ink) !important;
  box-shadow: 2px 2px 0 var(--ink);
}

/* Comic Panels & Buttons */
.panel {
  background: var(--cream);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.panel-yellow { background: #fff9cc; }
.panel-cyan { background: #e8fbff; }
.panel-pink { background: #fff0f7; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  border-radius: 999px;
  padding: 4px 14px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-cyan { background: var(--cyan); }
.badge-pink { background: #ff9ed2; }
.badge-mint { background: var(--mint); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 900;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 12px;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-sm);
  background: var(--cyan);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn-pink { background: var(--pink); color: #fffdf3; }
.btn-yellow { background: var(--yellow); }
.btn-cream { background: var(--cream); }

/* Hero */
section { padding: 36px 0; }
.hero { padding-top: 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}
h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  margin: 14px 0 14px;
  letter-spacing: -0.025em;
  font-weight: 900;
}
h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  font-weight: 900;
}
h3 {
  font-size: 20px;
  line-height: 1.25;
  margin: 0 0 8px;
  font-weight: 900;
}
.lead { font-size: 17px; margin: 0 0 12px; }
.fact-box {
  margin-top: 18px;
  background: var(--cream-warm);
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14.5px;
}

/* Sprite Stage */
.sprite-stage {
  position: relative;
  border: 4px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #dff6ff;
}
.sprite-stage .bg-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.sprite-strip {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 16px 12px 14px;
  background: var(--cream);
  border-top: 4px solid var(--ink);
  gap: 10px;
}
.sprite-strip img { width: 90px; height: 90px; }

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.stat-card {
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 18px;
}
.stat-num {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--ink);
}
.stat-label { font-size: 13.5px; font-weight: 700; margin-top: 4px; opacity: 0.88; }

/* Chapter Showcase */
.chapter-card {
  border: 4px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--cream);
}
.chapter-art {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 4px solid var(--ink);
}
.chapter-art img.scene { width: 100%; height: 100%; object-fit: cover; }
.chapter-boss {
  position: absolute;
  right: 16px;
  bottom: 10px;
}
.chapter-boss img { width: 90px; height: 90px; }
.chapter-body { padding: 16px; }

/* Screenshots */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.shot-frame {
  background: var(--cream);
  border: 4px solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.shot-frame img { width: 100%; display: block; }
.shot-cap {
  padding: 10px 12px;
  border-top: 3px solid var(--ink);
  font-size: 13px;
  font-weight: 800;
}

/* Table */
.table-wrap { overflow-x: auto; }
table.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
}
table.spec-table th, table.spec-table td {
  padding: 12px 14px;
  border-bottom: 2px solid var(--ink);
  text-align: left;
  font-size: 14.5px;
}
table.spec-table th {
  background: var(--yellow);
  font-weight: 900;
}
table.spec-table tr:last-child td { border-bottom: none; }

/* FAQ */
details.faq-item {
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
  margin-bottom: 12px;
}
details.faq-item summary {
  cursor: pointer;
  font-weight: 900;
  font-size: 16px;
  list-style: none;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item p { margin: 10px 0 0; font-size: 15px; }

/* Footer */
footer.site-footer {
  margin-top: 40px;
  background: var(--ink);
  color: var(--cream);
  padding: 36px 0;
}
footer.site-footer a { color: var(--yellow); text-decoration: none; font-weight: 700; }
footer.site-footer a:hover { text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 24px;
}
.footer-links { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; font-size: 14px; }

@media (max-width: 860px) {
  .hero-grid, .grid-3, .grid-2, .grid-4, .shot-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .shot-grid { grid-template-columns: repeat(2, 1fr); }
  .panel { padding: 20px; }
}
@media (max-width: 480px) {
  .shot-grid { grid-template-columns: 1fr; }
}
