/* ─── Design tokens ─── */
:root {
  --bg: #fff8fc;
  --card: #ffffff;
  --text: #3b2535;
  --sub: #7a5d68;
  --gold: #c9940c;
  --gold-mid: #e8ab1a;
  --gold-light: #f5c842;
  --gold-pale: #fff8d6;
  --gold-border: rgba(229, 167, 20, 0.45);
  --pink: #e0506a;
  --pink-mid: #ff7a96;
  --pink-pale: #ffeef3;
  --line: #f5d0de;
  --shadow: 0 10px 28px rgba(180, 80, 100, 0.12);
  --shadow-gold: 0 8px 24px rgba(212, 160, 23, 0.25);
  --radius: 20px;
}

/* ─── Reset ─── */
*, *::before, *::after {
  box-sizing: border-box;
}

/* ─── Base ─── */
body {
  margin: 0;
  background: linear-gradient(180deg, #fff5f8 0%, #fff8f0 60%, #fffcf0 100%);
  color: var(--text);
  font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", system-ui, -apple-system, sans-serif;
  line-height: 1.7;
}

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

/* ─── Layout wrapper ─── */
.hero,
.section,
.footer {
  width: min(100% - 24px, 960px);
  margin-inline: auto;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  margin-top: 16px;
  padding: 28px 20px;
  border-radius: 28px;
  background: radial-gradient(circle at 70% 0%, #ffd6e7 0%, #fff8e0 45%, #fff8fc 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Hero: decorative stars */
.hero__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.deco-star {
  position: absolute;
  color: var(--gold-light);
  font-size: 1.4rem;
  line-height: 1;
  animation: twinkle 2.5s ease-in-out infinite;
}

.deco-star--1 { top: 14%; right: 18%; animation-delay: 0s; }
.deco-star--2 { top: 30%; right: 8%;  font-size: 1rem; animation-delay: 0.8s; }
.deco-star--3 { top: 8%;  right: 30%; font-size: 0.9rem; animation-delay: 1.6s; }

.deco-cat {
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-size: 4rem;
  opacity: 0.1;
  transform: scaleX(-1);
  line-height: 1;
}

.hero__eyebrow {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pink);
}

h1 {
  margin: 8px 0 14px;
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  line-height: 1.25;
  color: var(--text);
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.3rem, 4.5vw, 1.8rem);
  line-height: 1.3;
}

.hero__catch {
  margin: 0 0 8px;
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  font-weight: 700;
  color: var(--pink);
  line-height: 1.5;
}

.hero__lead {
  margin: 0 0 20px;
  color: var(--sub);
  font-size: 0.95rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Hero image / placeholder */
.hero__image-wrap {
  margin-top: 20px;
  border-radius: 20px;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, var(--pink-pale), var(--gold-pale));
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.hero__image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.cat-back {
  font-size: 5rem;
  transform: scaleX(-1);
  display: block;
  line-height: 1;
}

.sparkle {
  position: absolute;
  font-size: 1.8rem;
  animation: twinkle 1.8s ease-in-out infinite;
  line-height: 1;
}

.sparkle--1 { top: 15%; right: 20%; animation-delay: 0s; }
.sparkle--2 { bottom: 20%; left: 15%; animation-delay: 0.6s; }
.sparkle--3 { top: 50%; right: 12%; font-size: 1.3rem; animation-delay: 1.2s; }

/* ─── Buttons ─── */
.button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.button--store {
  background: linear-gradient(135deg, var(--gold-mid), var(--gold));
  color: #fff;
  box-shadow: 0 4px 12px rgba(201, 148, 12, 0.3);
}

.button--store--play {
  background: linear-gradient(135deg, var(--pink-mid), var(--pink));
  box-shadow: 0 4px 12px rgba(224, 80, 106, 0.3);
}

.store-icon {
  font-size: 1rem;
}

/* Download section buttons */
.button--download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  width: 100%;
  border-radius: 16px;
  background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.button--download span:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.button--download small {
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.8;
}

.button--download:hover,
.button--download:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

.button--download--play {
  background: linear-gradient(135deg, #1a3c2a, #0d2318);
}

/* Coming-soon state: add this class to disable the button */
.button--coming-soon {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.coming-soon-note {
  margin-top: 12px;
  text-align: center;
  color: var(--sub);
  font-size: 0.88rem;
}

/* ─── Sections ─── */
.section {
  margin-top: 16px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 4px 16px rgba(180, 80, 100, 0.06);
}

.section__lead {
  margin: 0 0 16px;
  color: var(--sub);
}

/* ─── Game intro list ─── */
.intro-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.intro-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pink-pale), var(--gold-pale));
  border: 1px solid var(--line);
  font-size: 0.93rem;
  color: var(--text);
}

/* ─── Features grid ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.feature-card {
  position: relative;
  padding: 16px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(180, 80, 100, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(180, 80, 100, 0.15);
}

.feature-card__icon {
  font-size: 2rem;
  margin-bottom: 6px;
  line-height: 1;
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: var(--text);
}

.feature-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--sub);
  line-height: 1.6;
}

/* BIG HIT card: gold glow + sparkle animation */
.feature-card--bighit {
  background: linear-gradient(145deg, var(--gold-pale), #fff8f0);
  border-color: var(--gold-border);
  box-shadow: var(--shadow-gold);
}

.feature-card--bighit:hover {
  box-shadow: 0 14px 32px rgba(212, 160, 23, 0.35);
}

.feature-card--bighit h3 {
  color: var(--gold);
}

.feature-card--bighit::before,
.feature-card--bighit::after {
  content: "✦";
  position: absolute;
  color: var(--gold-light);
  animation: twinkle 2s ease-in-out infinite;
  pointer-events: none;
}

.feature-card--bighit::before {
  top: 8px;
  right: 12px;
  font-size: 1rem;
}

.feature-card--bighit::after {
  bottom: 8px;
  right: 28px;
  font-size: 0.7rem;
  animation-delay: 1s;
}

/* ─── Screenshots ─── */
.screenshot-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
  margin-top: 14px;
}

.screenshot-scroll::-webkit-scrollbar {
  height: 4px;
}

.screenshot-scroll::-webkit-scrollbar-track {
  background: var(--line);
  border-radius: 4px;
}

.screenshot-scroll::-webkit-scrollbar-thumb {
  background: var(--gold-light);
  border-radius: 4px;
}

.screenshot-item {
  flex: 0 0 180px;
  height: 320px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--pink-pale), var(--gold-pale));
  border: 2px solid var(--gold-border);
  overflow: hidden;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sub);
  font-size: 0.78rem;
}

.screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.screenshot-hint {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--sub);
  text-align: right;
}

/* ─── Howto ─── */
.howto-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.howto-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.howto-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-mid), var(--gold));
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 2px;
}

.howto-text {
  color: var(--sub);
  font-size: 0.93rem;
  line-height: 1.55;
}

.howto-text strong {
  display: block;
  color: var(--text);
  margin-bottom: 2px;
}

/* ─── Download section ─── */
.section--download {
  background: linear-gradient(135deg, var(--pink-pale), var(--gold-pale));
  border-color: var(--gold-border);
}

.download-buttons {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

/* ─── Android closed test section ─── */
.section--android-test {
  background: linear-gradient(135deg, #eefaf1, #f7fff2);
  border-color: #bde3c6;
}

.android-test__headline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #d7f2df;
  color: #1e6b34;
  font-weight: 700;
  font-size: 0.9rem;
}

.android-test__headline::before {
  content: "🤖";
  line-height: 1;
}

.android-test-steps {
  margin: 0;
  padding-left: 1.5em;
  display: grid;
  gap: 10px;
}

.android-test-steps li::marker {
  color: #2f8f4b;
  font-weight: 700;
}

.android-test-steps li {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #d9efde;
  color: #2d4a35;
  font-size: 0.93rem;
}

.android-test-buttons {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.button--android-test {
  width: 100%;
  justify-content: center;
  padding: 14px 16px;
  min-height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2f8f4b, #1d6e37);
  color: #fff;
  box-shadow: 0 6px 16px rgba(47, 143, 75, 0.3);
}

.android-test-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid #d9efde;
  color: #476451;
  font-size: 0.86rem;
}

/* ─── Privacy section ─── */
.privacy-link {
  color: var(--pink);
  font-weight: 700;
  text-decoration: none;
}

.privacy-link:hover {
  text-decoration: underline;
}

.section--privacy p {
  margin: 0 0 8px;
  color: var(--sub);
}

.section--privacy p:last-child {
  margin-bottom: 0;
}

/* ─── Footer ─── */
.footer {
  margin-block: 20px 30px;
  padding: 16px 20px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  text-align: center;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin-bottom: 8px;
}

.footer__nav a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
}

.footer__nav a:hover {
  text-decoration: underline;
}

.footer p {
  margin: 0;
  color: var(--sub);
  font-size: 0.85rem;
}

/* ─── Animations ─── */
@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}

/* ─── Responsive: tablet ─── */
@media (min-width: 600px) {
  .hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
    align-items: center;
    margin-top: 20px;
  }

  .hero__image-wrap {
    margin-top: 0;
    height: 100%;
    aspect-ratio: unset;
  }

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

/* ─── Responsive: desktop ─── */
@media (min-width: 720px) {
  .hero {
    padding: 36px 32px;
    margin-top: 24px;
  }

  .download-buttons {
    grid-template-columns: repeat(2, 1fr);
  }

  .android-test-buttons {
    grid-template-columns: repeat(3, 1fr);
  }

  .screenshot-item {
    flex: 0 0 220px;
    height: 390px;
  }

  .section {
    padding: 28px 28px;
  }
}
