*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --main-width: 460px;
  --side-width: calc((100% - var(--main-width)) / 2);
  --ink: #303044;
  --cream: #fff4da;
  --night-1: #0e1432;
  --night-2: #1e2a5a;
  --night-3: #2e3e70;
  --ridge: #1a244a;
  --orange: #f18a3e;
  --gold: #ebaa3f;
  --sky: #d2e8f7;
  --red: #932334;
  --px: 4px;
}
html { background: var(--night-1); }
body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  color: var(--ink); line-height: 1.8; min-height: 100vh; overflow-x: hidden;
}
img { image-rendering: pixelated; display: block; max-width: 100%; }
.pixel { font-family: "DotGothic16", "Hiragino Sans", sans-serif; letter-spacing: .04em; }

/* ---- shell ---- */
.smaponshibu { display: flex; position: relative; min-height: 100vh; width: 100%; }
.smaponshibu__bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  /* three flat night bands, like the game's menu sky */
  background:
    radial-gradient(circle at 12% 18%, #fff 0 1.5px, transparent 2px),
    radial-gradient(circle at 22% 62%, #aabce8 0 1.5px, transparent 2px),
    radial-gradient(circle at 31% 33%, #fff 0 1.5px, transparent 2px),
    radial-gradient(circle at 8% 78%, #aabce8 0 1.5px, transparent 2px),
    radial-gradient(circle at 72% 14%, #aabce8 0 1.5px, transparent 2px),
    radial-gradient(circle at 84% 44%, #fff 0 1.5px, transparent 2px),
    radial-gradient(circle at 93% 70%, #aabce8 0 1.5px, transparent 2px),
    radial-gradient(circle at 78% 86%, #fff 0 1.5px, transparent 2px),
    linear-gradient(var(--night-1) 0 34%, var(--night-2) 34% 68%, var(--night-3) 68% 100%);
}
.smaponshibu__bg::after { /* stepped mountain ridge along the bottom */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: var(--ridge);
  clip-path: polygon(0 60%, 4% 60%, 4% 40%, 8% 40%, 8% 20%, 12% 20%, 12% 40%, 16% 40%, 16% 70%, 22% 70%, 22% 50%, 26% 50%, 26% 30%, 30% 30%, 30% 55%, 36% 55%, 36% 80%, 64% 80%, 64% 55%, 70% 55%, 70% 30%, 74% 30%, 74% 10%, 78% 10%, 78% 35%, 84% 35%, 84% 60%, 90% 60%, 90% 40%, 95% 40%, 95% 65%, 100% 65%, 100% 100%, 0 100%);
}
#chicks { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.smaponshibu__left, .smaponshibu__right { flex: 1 1 auto; position: relative; z-index: 1; min-height: 100vh; }
.smaponshibu__left-inner, .smaponshibu__right-inner {
  position: fixed; top: 0; width: var(--side-width); height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; color: var(--cream);
}
.smaponshibu__left-inner { left: 0; align-items: center; padding: 48px 24px 32px; gap: 28px; }
.smaponshibu__right-inner { right: 0; align-items: center; justify-content: center; padding: 40px 24px; gap: 20px; }
.smaponshibu__main {
  width: var(--main-width); flex: 0 0 var(--main-width); background: #f4fafe; min-height: 100vh;
  position: relative; z-index: 2;
  border-left: var(--px) solid var(--ink); border-right: var(--px) solid var(--ink);
  box-shadow: 0 0 0 var(--px) rgba(0,0,0,.25);
}

/* ---- left ---- */
.side-logos { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.side-logos img { width: min(220px, 80%); }
.side-nav { display: flex; flex-direction: column; gap: 10px; width: min(240px, 100%); }
.btn {
  display: block; text-align: center; text-decoration: none; font-weight: 700; font-size: .9rem;
  color: var(--ink); background: #fff; padding: 9px 14px;
  border: var(--px) solid var(--ink);
  box-shadow: inset calc(var(--px) * -1) calc(var(--px) * -1) 0 #c9cfdd, inset var(--px) var(--px) 0 #fff;
  clip-path: polygon(0 8px, 4px 8px, 4px 4px, 8px 4px, 8px 0, calc(100% - 8px) 0, calc(100% - 8px) 4px, calc(100% - 4px) 4px, calc(100% - 4px) 8px, 100% 8px, 100% calc(100% - 8px), calc(100% - 4px) calc(100% - 8px), calc(100% - 4px) calc(100% - 4px), calc(100% - 8px) calc(100% - 4px), calc(100% - 8px) 100%, 8px 100%, 8px calc(100% - 4px), 4px calc(100% - 4px), 4px calc(100% - 8px), 0 calc(100% - 8px));
}
.btn:hover { background: var(--cream); }
.btn.dark { background: var(--ink); color: #fff; box-shadow: inset calc(var(--px) * -1) calc(var(--px) * -1) 0 #1b1b2a, inset var(--px) var(--px) 0 #55557a; }
.btn.off { background: #8a93a8; color: #fff; box-shadow: none; cursor: default; }
.side-foot { margin-top: auto; font-size: .75rem; opacity: .8; text-align: center; }
.side-foot a { color: var(--cream); }

/* ---- right ---- */
.store-card {
  width: min(260px, 100%); background: rgba(255,244,218,.96); color: var(--ink); padding: 20px 18px;
  border: var(--px) solid var(--ink); text-align: center;
}
.store-card img { width: 112px; margin: 0 auto 12px; border: var(--px) solid var(--ink); }
.store-card h2 { font-size: 1.05rem; line-height: 1.4; }
.store-card p { font-size: .8rem; color: #5a6b80; margin: 4px 0 14px; }
.facts { width: min(260px, 100%); list-style: none; font-size: .82rem; display: grid; gap: 6px; }
.facts li { display: flex; justify-content: space-between; border-bottom: 2px dotted rgba(255,244,218,.45); padding: 2px 0; }
.facts b { font-weight: 700; }
.qr { display: flex; align-items: center; gap: 14px; width: min(260px, 100%); }
.qr img { width: 124px; height: 124px; background: #fff; padding: 8px; border: var(--px) solid var(--ink); flex: none; }
.qr p { font-size: .95rem; line-height: 1.5; }

/* ---- main ---- */
.hero { position: relative; width: 100%; aspect-ratio: 9 / 16; overflow: hidden; background: #8fc0ea; border-bottom: var(--px) solid var(--ink); }
.hero > img, .hero > video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; image-rendering: pixelated; }
.hero__top { position: absolute; left: 0; right: 0; top: 0; padding: 28px 20px 0; display: flex; justify-content: center; }
.hero__top img { width: 62%; filter: drop-shadow(0 4px 0 rgba(0,0,0,.25)); }
.hero__bottom {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px 22px; color: #fff; text-align: center;
  background: rgba(27,46,71,.86); border-top: var(--px) solid var(--ink);
}
.hero__bottom h1 { font-size: 1.45rem; line-height: 1.45; }
.hero__bottom p { font-size: .85rem; opacity: .9; margin-top: 4px; }
section { padding: 34px 22px; }
section + section { border-top: var(--px) dotted var(--ink); }
h2.title { font-size: 1.35rem; line-height: 1.4; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
h2.title::before { content: ""; width: 16px; height: 16px; background: var(--orange); border: var(--px) solid var(--ink); flex: none; }
.lead { font-size: .95rem; }
.steps { list-style: none; counter-reset: s; display: grid; gap: 12px; margin-top: 4px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; background: #fff; border: var(--px) solid var(--ink); padding: 10px 12px; font-size: .92rem; line-height: 1.6; }
.steps li::before { content: counter(s); font-family: "DotGothic16", sans-serif; font-size: 1.5rem; width: 44px; height: 44px; display: grid; place-items: center; background: var(--ink); color: var(--cream); }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.shots figure { border: var(--px) solid var(--ink); background: #fff; }
.shots figcaption { font-size: .75rem; text-align: center; padding: 4px; border-top: var(--px) solid var(--ink); }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rule { background: #fff; border: var(--px) solid var(--ink); padding: 10px 12px; }
.rule b { display: block; font-family: "DotGothic16", sans-serif; font-size: 1rem; color: var(--red); }
.rule span { font-size: .8rem; line-height: 1.5; display: block; }
.modes { display: grid; gap: 10px; }
.mode { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center; background: var(--ink); color: #fff; padding: 12px 14px; }
.mode b { font-family: "DotGothic16", sans-serif; font-size: 1.15rem; color: var(--gold); }
.mode span { font-size: .85rem; line-height: 1.5; }
.cta { background: var(--sky); text-align: center; }
.cta img { width: 96px; margin: 0 auto 12px; border: var(--px) solid var(--ink); }
.cta .btn { max-width: 280px; margin: 14px auto 0; }
.cta small { display: block; margin-top: 12px; font-size: .78rem; color: #5a6b80; }
footer { padding: 22px; text-align: center; font-size: .78rem; background: var(--ink); color: var(--cream); }
footer a { color: var(--cream); margin: 0 8px; }

@media (max-width: 959px) {
  .smaponshibu { flex-direction: column; }
  .smaponshibu__left, .smaponshibu__right { display: none; }
  /* Between phone and desktop widths the column stays phone-sized and centred. */
  .smaponshibu__main { width: 100%; max-width: 500px; margin: 0 auto; flex: none; }
}
@media (max-width: 500px) {
  .smaponshibu__main { border-left: 0; border-right: 0; }
  .mobile-only { display: block; }
}
@media (min-width: 960px) { .mobile-only { display: none; } }

/* Apple's official App Store badge: keep it unmodified, min. 40px tall */
.store-badge { display: inline-block; line-height: 0; }
.store-badge img { height: 48px; width: auto; image-rendering: auto; }
.cta .store-badge { display: block; width: fit-content; margin: 14px auto 0; }
