@font-face {
  font-family: "Kenney Future";
  src: url("kenney_future.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Cabin";
  src: url("cabin_bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --sky-top: #4aaeea;
  --sky-bottom: #2e86cf;
  --yellow-face: #ffcc00;
  --yellow-light: #ffea9c;
  --yellow-depth: #dea312;
  --green-mid: #16bb77;
  --green-light: #2fd792;
  --green-dark: #029357;
  --green-darkest: #046d41;
  --panel-face: #f3f5f7;
  --panel-depth: #c3ccd6;
  --panel-outline: #a7b3bf;
  --navy: #1f2a44;
  --ink: #3a4654;
  --ink-soft: #6b7886;
  --display-font: "Kenney Future", "Trebuchet MS", sans-serif;
  --body-font: "Cabin", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--sky-bottom); }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom)) fixed;
  color: var(--ink);
  font-family: var(--body-font);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

.floating-stars { position: fixed; inset: 0; pointer-events: none; z-index: 0; }

.floating-stars img {
  position: absolute;
  animation: drift 6s ease-in-out infinite alternate;
}

.floating-stars img:nth-child(1) { left: 6%;  top: 12%; width: 44px; }
.floating-stars img:nth-child(2) { left: 88%; top: 20%; width: 30px; animation-duration: 4.5s; }
.floating-stars img:nth-child(3) { left: 80%; top: 62%; width: 52px; animation-duration: 7s; }
.floating-stars img:nth-child(4) { left: 4%;  top: 74%; width: 36px; animation-duration: 5s; }
.floating-stars img:nth-child(5) { left: 46%; top: 92%; width: 26px; animation-duration: 4s; }

@keyframes drift {
  from { transform: translateY(-8px) rotate(-10deg); }
  to   { transform: translateY(8px) rotate(10deg); }
}

.page {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.star-crown { display: flex; justify-content: center; align-items: flex-end; gap: 0; margin-bottom: -6px; }
.star-crown img { width: 48px; animation: pop 0.6s cubic-bezier(0.34, 1.8, 0.64, 1) both; }
.star-crown img:nth-child(2) { width: 72px; margin: 0 -10px 14px; animation-delay: 0.14s; }
.star-crown img:nth-child(3) { animation-delay: 0.28s; }

@keyframes pop {
  from { transform: scale(0) rotate(-45deg); }
  to   { transform: scale(1) rotate(0); }
}

.banner {
  position: relative;
  background: linear-gradient(180deg, var(--yellow-light) 0 8px, var(--yellow-face) 8px);
  border: 3px solid var(--yellow-depth);
  border-radius: 14px;
  box-shadow: 0 6px 0 #b48000;
  padding: 18px 20px 16px;
  text-align: center;
  color: var(--navy);
}

.banner h1 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(26px, 7vw, 40px);
  letter-spacing: 0.06em;
  line-height: 1.15;
}

.banner p {
  margin: 6px 0 0;
  font-family: var(--display-font);
  font-size: clamp(13px, 3.6vw, 17px);
  letter-spacing: 0.08em;
}

.summary {
  margin: 28px 0 0;
  background: linear-gradient(180deg, var(--green-light) 0 8px, var(--green-mid) 8px);
  border: 3px solid var(--green-dark);
  border-radius: 14px;
  box-shadow: 0 6px 0 var(--green-darkest);
  padding: 16px 20px;
  color: #fff;
  text-shadow: 0 3px 0 var(--green-darkest);
  font-family: var(--display-font);
  font-size: clamp(16px, 4.4vw, 21px);
  letter-spacing: 0.04em;
  text-align: center;
}

.panel {
  margin-top: 28px;
  background: var(--panel-face);
  border: 2px solid var(--panel-outline);
  border-radius: 14px;
  box-shadow: 0 6px 0 var(--panel-depth);
  padding: 8px 24px 20px;
}

.panel h2 {
  margin: 24px 0 6px;
  font-family: var(--display-font);
  font-size: 19px;
  font-weight: normal;
  letter-spacing: 0.06em;
  color: var(--green-dark);
}

.panel p, .panel li { color: var(--ink); }
.panel ul { padding-left: 1.2em; margin: 6px 0; }
.panel strong { color: var(--navy); }
.panel a { color: var(--sky-bottom); }

footer {
  margin-top: 24px;
  text-align: center;
  color: #fff;
  font-size: 15px;
  text-shadow: 0 2px 0 rgba(20, 60, 110, 0.5);
}

.app-icon {
  display: block;
  width: 96px;
  height: 96px;
  margin: 26px auto 0;
  border-radius: 22px;
  box-shadow: 0 6px 0 rgba(20, 60, 110, 0.35);
}

.tagline {
  margin: 18px auto 0;
  max-width: 34em;
  text-align: center;
  color: #fff;
  font-size: clamp(17px, 4.4vw, 20px);
  text-shadow: 0 2px 0 rgba(20, 60, 110, 0.5);
}

.play-button {
  display: block;
  width: fit-content;
  margin: 26px auto 0;
  background: linear-gradient(180deg, var(--green-light) 0 8px, var(--green-mid) 8px);
  border: 3px solid var(--green-dark);
  border-radius: 14px;
  box-shadow: 0 6px 0 var(--green-darkest);
  padding: 14px 28px;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 3px 0 var(--green-darkest);
  font-family: var(--display-font);
  font-size: clamp(17px, 4.6vw, 22px);
  letter-spacing: 0.04em;
  transition: transform 0.15s cubic-bezier(0.34, 1.8, 0.64, 1);
}

.play-button:hover,
.play-button:focus-visible { transform: scale(1.04); }
.play-button:active { transform: scale(0.96); }

.screenshots {
  display: flex;
  gap: 16px;
  margin: 34px -16px 0;
  padding: 0 16px 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.screenshots img {
  flex: 0 0 auto;
  width: min(220px, 62vw);
  aspect-ratio: 9 / 16;
  border: 3px solid var(--panel-outline);
  border-radius: 16px;
  box-shadow: 0 6px 0 rgba(20, 60, 110, 0.35);
  scroll-snap-align: center;
}

@media (min-width: 760px) {
  .screenshots { overflow: visible; margin: 34px 0 0; padding: 0; }
  .screenshots img { flex: 1 1 0; width: auto; min-width: 0; height: auto; }
}

.features {
  list-style: none;
  padding: 0;
}

.features li {
  margin: 10px 0;
  padding-left: 30px;
  background: url("star.svg") no-repeat 0 4px / 20px 19px;
}

footer a {
  color: #fff;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .floating-stars img, .star-crown img { animation: none; }
  .play-button { transition: none; }
}
