:root {
  /* Pizza colors on a dark, slightly strange pixel-friendly base. */
  --bg: #110d16;
  --bg-soft: #1b1324;
  --panel: #24172e;
  --panel-strong: #321b34;
  --text: #fff6df;
  --muted: #d9bfa5;
  --red: #f04444;
  --red-dark: #9f2330;
  --yellow: #ffd15a;
  --cheese: #ffe082;
  --green: #42cf7a;
  --line: rgba(255, 209, 90, 0.24);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 50%, transparent 50%) 0 0 / 100% 4px,
    radial-gradient(circle at top left, rgba(240, 68, 68, 0.24), transparent 34rem),
    radial-gradient(circle at 80% 15%, rgba(255, 209, 90, 0.16), transparent 28rem),
    var(--bg);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  line-height: 1.75;
}

a {
  color: inherit;
}

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

.site-header {
  /* Shared header used by all pages. */
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: 0.85rem 1rem;
  border-bottom: 2px solid rgba(255, 209, 90, 0.16);
  background: rgba(17, 13, 22, 0.9);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 900;
  text-decoration: none;
}

.brand-mark,
.feature-icon {
  display: grid;
  place-items: center;
  color: #180f12;
  background: var(--yellow);
  border: 2px solid #fff0b8;
  box-shadow: 4px 4px 0 var(--red-dark);
  font-weight: 900;
}

.brand-mark {
  width: 40px;
  height: 40px;
}

.nav-toggle {
  display: grid;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 2px solid var(--line);
  color: var(--text);
  background: var(--panel);
}

.nav-toggle span {
  display: block;
  height: 3px;
  background: var(--yellow);
}

.site-nav {
  position: absolute;
  top: 64px;
  right: 1rem;
  display: none;
  min-width: 220px;
  padding: 0.75rem;
  border: 2px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.site-nav.is-open {
  display: grid;
}

.site-nav a {
  padding: 0.65rem 0.75rem;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.text-link:hover,
.site-footer a:hover {
  color: var(--yellow);
}

.section,
.hero,
.page-hero {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  padding: 4rem 0;
}

.section-band {
  /* Bordered bands give the page a lightweight game UI feel. */
  position: relative;
  border: 2px solid var(--line);
  background: linear-gradient(145deg, rgba(36, 23, 46, 0.92), rgba(45, 21, 37, 0.88));
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  gap: 2rem;
  margin-top: 1.2rem;
  padding: 2rem 1rem 1rem;
  overflow: hidden;
}

.hero::after,
.section-band::after {
  /* Subtle scanline texture; intentionally soft for readability. */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 8px, rgba(255, 255, 255, 0.035) 8px 9px);
  mix-blend-mode: screen;
}

.hero-copy,
.section-band > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.28;
}

h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(2.7rem, 15vw, 6rem);
  text-shadow: 5px 5px 0 var(--red-dark);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.75rem, 8vw, 3rem);
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
}

.lead {
  color: var(--cheese);
  font-size: 1.18rem;
  font-weight: 800;
}

.subtitle {
  margin-bottom: 0.55rem;
  color: var(--yellow);
  font-size: clamp(1rem, 5vw, 1.45rem);
  font-weight: 900;
  line-height: 1.45;
}

.hero-actions,
.download {
  display: grid;
  gap: 1rem;
  align-items: center;
}

.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: min(100%, 280px);
  min-height: 64px;
  padding: 0.75rem 1rem;
  border: 3px solid #fff0b8;
  color: #180f12;
  background: var(--yellow);
  box-shadow: 6px 6px 0 var(--red);
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.store-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--red);
}

.store-button small {
  display: block;
  font-size: 0.68rem;
}

.store-icon {
  width: 34px;
  height: 34px;
  border: 2px solid #180f12;
  background: #180f12;
  object-fit: cover;
}

.store-button-large {
  margin-inline: auto;
}

.text-link {
  color: var(--muted);
  font-weight: 800;
}

.hero-art {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
  align-items: center;
  justify-content: center;
  gap: clamp(0.65rem, 3vw, 1.2rem);
  width: min(100%, 520px);
  margin-inline: auto;
  align-self: end;
}

.phone-shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 4px solid #fff0b8;
  border-radius: 22px;
  background: #180f12;
  box-shadow: 8px 8px 0 var(--red), 0 22px 34px rgba(0, 0, 0, 0.36);
}

.phone-shot::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 2;
  width: 34%;
  height: 10px;
  border-radius: 999px;
  background: #180f12;
  transform: translateX(-50%);
}

.phone-shot img {
  width: 100%;
  aspect-ratio: 9 / 19.2;
  object-fit: cover;
}

.phone-shot-main {
  transform: rotate(-2deg);
}

.phone-shot-sub {
  margin-left: -18%;
  transform: translateY(8%) rotate(3deg);
}

.section-grid {
  display: grid;
  gap: 1.5rem;
}

.copy-block {
  color: var(--muted);
  font-size: 1rem;
}

.copy-block p:last-child,
.text-page p:last-child,
.download p:last-of-type {
  margin-bottom: 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 1.4rem;
}

.feature-grid,
.mini-game-list {
  display: grid;
  gap: 1rem;
}

.feature-card,
.mini-game-list article,
.text-page article {
  border: 2px solid var(--line);
  background: rgba(17, 13, 22, 0.48);
}

.feature-card {
  padding: 1rem;
}

.feature-icon {
  width: 42px;
  height: 34px;
  margin-bottom: 1rem;
  font-size: 0.78rem;
}

.feature-card p,
.mini-game-list p,
.text-page p,
.download p,
.step-list {
  color: var(--muted);
}

.text-page ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.text-page a {
  color: var(--yellow);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
}

.play-screen-panel {
  padding: clamp(1rem, 3vw, 1.5rem);
}

.screenshot-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.screenshot {
  min-height: 220px;
  margin: 0;
  overflow: hidden;
  border: 4px solid #fff0b8;
  border-radius: 20px;
  background: #180f12;
  box-shadow: 6px 6px 0 var(--red);
}

.screenshot img {
  /* Real screenshots can replace these SVGs without layout shifts. */
  width: 100%;
  aspect-ratio: 9 / 19.2;
  object-fit: cover;
  background: linear-gradient(135deg, var(--panel), var(--panel-strong));
}

.screenshot figcaption {
  min-height: 54px;
  padding: 0.65rem 0.75rem;
  color: var(--cheese);
  font-weight: 800;
  line-height: 1.35;
}

.screenshot.is-missing::before {
  content: "画像準備中";
  display: grid;
  place-items: center;
  min-height: 280px;
  color: var(--muted);
}

.step-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.step-list li {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 1rem;
  border: 2px solid var(--line);
  background: rgba(27, 19, 36, 0.72);
}

.step-list li::before {
  content: counter(steps);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #180f12;
  background: var(--yellow);
  font-weight: 900;
}

.step-list span {
  display: block;
  color: var(--text);
  font-weight: 900;
}

.step-list p {
  grid-column: 2;
  margin: -0.45rem 0 0;
}

.mini-games {
  padding: 2rem 1rem;
}

.mini-game-list article {
  padding: 1rem;
}

.download {
  max-width: 720px;
  text-align: center;
}

.site-footer {
  display: grid;
  gap: 0.75rem;
  padding: 2rem 1rem;
  border-top: 2px solid rgba(255, 209, 90, 0.16);
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin-bottom: 0;
  color: var(--text);
  font-weight: 900;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.2rem;
}

.site-footer a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.sub-page {
  min-height: 60vh;
}

.page-hero {
  margin-top: 1.2rem;
  padding: 2.5rem 1rem;
}

.page-hero h1 {
  font-size: clamp(2.25rem, 12vw, 4.5rem);
}

.text-page {
  display: grid;
  gap: 1rem;
  max-width: 880px;
}

.text-page article {
  padding: 1.25rem;
}

.page-actions {
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
}

.return-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.75rem 1.2rem;
  border: 2px solid #fff0b8;
  color: #180f12;
  background: var(--yellow);
  box-shadow: 5px 5px 0 var(--red);
  font-weight: 900;
  text-decoration: none;
}

.text-page .return-link {
  color: #180f12;
}

.return-link:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--red);
}

.text-page h2 {
  font-size: 1.35rem;
}

.text-page h3 {
  margin-top: 1.25rem;
  color: var(--cheese);
}

.license-block {
  max-width: 100%;
  margin: 1rem 0 0;
  padding: 1rem;
  overflow-x: auto;
  border: 2px solid rgba(255, 209, 90, 0.18);
  color: var(--muted);
  background: rgba(17, 13, 22, 0.72);
  font-size: 0.82rem;
  line-height: 1.55;
  white-space: pre;
}

@media (min-width: 680px) {
  .site-header {
    padding-inline: 1.5rem;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    min-width: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    align-items: center;
    min-height: calc(100vh - 100px);
    padding: 3rem;
  }

  .hero-art {
    width: min(100%, 620px);
  }

  .hero-actions {
    grid-template-columns: max-content max-content;
  }

  .section-grid {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mini-game-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .feature-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .screenshot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
