:root {
  color-scheme: light;
  --sky-top: #9fe8ff;
  --sky-mid: #c7f2ff;
  --sky-bottom: #f6fbff;
  --sun: #ffe37f;
  --cloud: rgba(255, 255, 255, 0.85);
  --panel-bg: rgba(255, 255, 255, 0.9);
  --panel-border: rgba(79, 165, 210, 0.28);
  --ink: #14425d;
  --ink-soft: #3c6780;
  --green: #4bad00;
  --green-dark: #3b8902;
  --orange: #ff8a3d;
  --orange-dark: #e87429;
  --shadow: rgba(22, 98, 139, 0.2);
  font-family: "Trebuchet MS", "Avenir Next Rounded", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, var(--sun) 0%, rgba(255, 227, 127, 0) 25%),
    radial-gradient(circle at 85% 16%, var(--cloud) 0%, rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at 75% 55%, rgba(170, 235, 255, 0.8) 0%, rgba(170, 235, 255, 0) 36%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 48%, var(--sky-bottom) 100%);
  min-height: 100vh;
}

.landing {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.sky-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 86%, rgba(169, 230, 124, 0.45) 0%, rgba(169, 230, 124, 0) 34%),
    radial-gradient(circle at 88% 78%, rgba(255, 196, 114, 0.35) 0%, rgba(255, 196, 114, 0) 36%);
  pointer-events: none;
}

.hero-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  border-radius: 30px;
  padding: clamp(18px, 4vw, 34px);
  background: var(--panel-bg);
  border: 2px solid var(--panel-border);
  box-shadow:
    0 20px 55px var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  text-align: center;
  backdrop-filter: blur(4px);
}

.seo-more {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  width: min(100%, 900px);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(75, 150, 190, 0.28);
  box-shadow: 0 10px 24px rgba(27, 97, 135, 0.14);
  overflow: hidden;
}

.seo-more > summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-weight: 800;
  color: #0f4d70;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(240, 251, 255, 0.85));
}

.seo-more > summary::-webkit-details-marker {
  display: none;
}

.seo-copy {
  padding: 2px 16px 16px;
  color: #155677;
  font-size: 0.95rem;
  line-height: 1.55;
}

.seo-copy h2 {
  font-size: 1.02rem;
  margin: 12px 0 6px;
  color: #0f4d70;
}

.seo-copy p {
  margin: 9px 0;
}

.seo-copy ul {
  margin: 8px 0 0 18px;
  padding: 0;
}

.seo-copy li {
  margin: 4px 0;
}

.game-logo {
  width: min(100%, 380px);
  max-height: 150px;
  object-fit: contain;
  margin: 0 auto 10px;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.16));
}

h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.05;
  color: #0f4d70;
}

.hook,
.subhook {
  margin: 10px auto 0;
  max-width: 36ch;
}

.hook {
  font-size: clamp(1rem, 2.7vw, 1.15rem);
  color: #155677;
  font-weight: 600;
}

.subhook {
  color: var(--ink-soft);
  font-size: clamp(0.92rem, 2.5vw, 1rem);
}

.play-cta {
  margin: 40px auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: min(100%, 360px);
  min-height: 56px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: clamp(1.05rem, 3vw, 1.2rem);
  color: #ffffff;
  background: linear-gradient(180deg, #66ca1e 0%, var(--green) 55%, var(--green-dark) 100%);
  box-shadow:
    0 10px 18px rgba(65, 144, 21, 0.34),
    inset 0 2px 0 rgba(255, 255, 255, 0.45);
  transition: transform 120ms ease, filter 120ms ease;
}

.play-cta:hover,
.play-cta:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.play-cta:active {
  transform: translateY(1px);
}

.store-links {
  margin: 14px auto 0;
  width: min(100%, 360px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.store-badge {
  min-height: 52px;
  border-radius: 16px;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(180deg, #252525 0%, #111111 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  align-items: center;
  padding: 8px 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.store-badge.has-image {
  min-height: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.store-badge-image {
  width: 100%;
  height: auto;
  max-height: 64px;
  display: block;
}

@media (max-width: 380px) {
  .store-links {
    grid-template-columns: 1fr;
  }
}

.store-badge-subtitle {
  font-size: 0.72rem;
  opacity: 0.82;
}

.store-badge-title {
  margin-top: 2px;
  font-size: 1.02rem;
  font-weight: 700;
}

.app-note {
  margin: 10px auto 0;
  font-size: 0.88rem;
  color: #8f4a17;
  background: rgba(255, 202, 149, 0.45);
  border: 1px solid rgba(255, 154, 72, 0.45);
  border-radius: 999px;
  padding: 8px 14px;
  width: fit-content;
  max-width: 100%;
}

.game-preview {
  margin: 15px auto 0;
  width: min(100%, 560px);
}

.game-screenshot-grid {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.game-screenshot-grid.is-visible {
  display: grid;
}

.game-screenshot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 2px solid rgba(69, 157, 205, 0.45);
  box-shadow: 0 10px 18px rgba(32, 109, 153, 0.2);
}

@media (max-width: 560px) {
  .game-screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-screenshot-grid .game-screenshot:nth-child(n + 3) {
    display: none;
  }
}

.screenshot-placeholder {
  min-height: 145px;
  border-radius: 20px;
  border: 2px dashed rgba(90, 151, 182, 0.65);
  display: grid;
  place-items: center;
  padding: 16px;
  color: #46748f;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(236, 247, 253, 0.85)),
    radial-gradient(circle at 20% 15%, rgba(255, 208, 132, 0.5), rgba(255, 208, 132, 0));
  font-weight: 700;
}

@media (min-width: 900px) {
  .hero-panel {
    padding-top: 26px;
  }
}
