:root {
  --sky: #87CEEB;
  --sky-deep: #5FB8DE;
  --brick: #E8562A;
  --brick-dark: #B33A1A;
  --gold: #FFC93C;
  --gold-dark: #D69E1F;
  --green: #4CAF50;
  --green-dark: #2E7D32;
  --ink: #1A1A1A;
  --cream: #FFF8EC;
  --card: #FFFFFF;
  --border-w: 4px;
  --font-pixel: "Press Start 2P", monospace;
  --font-body: "Inter", -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--sky);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

h1, h2, h3 { font-family: var(--font-pixel); line-height: 1.5; }

/* PIXEL BORDER UTILITY */
.pixel-border {
  border: var(--border-w) solid var(--ink);
  box-shadow: var(--border-w) var(--border-w) 0 var(--ink);
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: var(--border-w) solid var(--ink);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav__brand {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  color: var(--brick);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-pixel);
  text-decoration: none;
  border: var(--border-w) solid var(--ink);
  background: var(--gold);
  color: var(--ink);
  box-shadow: var(--border-w) var(--border-w) 0 var(--ink);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  white-space: nowrap;
}
.btn:active,
.btn.is-pressed {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--ink);
}
.btn--nav {
  padding: 0.6rem 1rem;
  font-size: 0.6rem;
  background: var(--brick);
  color: var(--cream);
  box-shadow: 3px 3px 0 var(--ink);
}
.btn--primary {
  background: var(--gold);
}
.btn--large {
  padding: 1.1rem 1.6rem;
  font-size: 0.8rem;
}

.coin {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFE68A, var(--gold) 60%, var(--gold-dark) 100%);
  border: 2px solid var(--ink);
  animation: coin-spin 1.6s linear infinite;
  flex-shrink: 0;
}
@keyframes coin-spin {
  0%   { transform: scaleX(1); }
  50%  { transform: scaleX(0.15); }
  100% { transform: scaleX(1); }
}

/* HERO */
.hero {
  position: relative;
  padding: 3rem 0 3.5rem;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky) 0%, var(--sky-deep) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero__mascot { margin-bottom: 1.5rem; }
.mascot { width: 128px; height: auto; filter: drop-shadow(4px 4px 0 rgba(0,0,0,0.25)); }

.hero__title {
  font-size: 2.1rem;
  color: var(--brick);
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 4px 4px 0 var(--ink);
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}
.hero__tagline {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 1.75rem;
  color: var(--ink);
}
.hero__caption {
  margin-top: 0.9rem;
  font-size: 0.7rem;
  font-family: var(--font-pixel);
  color: var(--ink);
}

/* PIXEL CLOUDS */
.pixel-cloud {
  position: absolute;
  background: #FFFFFF;
  box-shadow:
    16px -8px 0 #FFFFFF,
    -16px -8px 0 #FFFFFF,
    8px -16px 0 #FFFFFF,
    -8px -16px 0 #FFFFFF;
  width: 40px;
  height: 24px;
  opacity: 0.9;
  z-index: 1;
  animation: drift 18s linear infinite;
}
.pixel-cloud--1 { top: 12%; left: -10%; animation-duration: 22s; }
.pixel-cloud--2 { top: 28%; left: -20%; animation-duration: 30s; animation-delay: -8s; transform: scale(0.7); }
.pixel-cloud--3 { top: 55%; left: -15%; animation-duration: 26s; animation-delay: -14s; transform: scale(0.5); }
@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(130vw); }
}

/* SECTIONS */
section { padding: 3.5rem 0; }
.section-title {
  text-align: center;
  font-size: 1.1rem;
  color: var(--brick-dark);
  margin-bottom: 2.25rem;
  text-shadow: 2px 2px 0 var(--ink);
}

/* FEATURES */
.features { background: var(--cream); border-top: var(--border-w) solid var(--ink); border-bottom: var(--border-w) solid var(--ink); }
.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.card {
  background: var(--card);
  border: var(--border-w) solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 1.5rem;
  text-align: center;
}
.card__icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}
.card h3 {
  font-size: 0.75rem;
  margin-bottom: 0.6rem;
  color: var(--brick);
}
.card p {
  font-size: 0.9rem;
  color: #444;
}

/* SCREENSHOTS / GAME FRAME CAROUSEL */
.carousel { overflow: hidden; }
.carousel__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.25rem;
  padding: 0.5rem 0.25rem 1rem;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }

.game-frame {
  position: relative;
  flex: 0 0 72%;
  scroll-snap-align: center;
  background: var(--ink);
  border: var(--border-w) solid var(--ink);
  box-shadow: 6px 6px 0 var(--brick-dark);
  padding: 10px;
  aspect-ratio: 9/16;
}
.game-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 2px solid var(--ink);
}
.game-frame__notch {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 8px;
  background: var(--gold);
  border: 3px solid var(--ink);
  border-top: none;
}
.game-frame--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-frame--empty::after {
  content: "GASTADORA";
  font-family: var(--font-pixel);
  color: var(--gold);
  font-size: 0.65rem;
  text-align: center;
}
.game-frame--empty img { display: none; }

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 0.5rem;
}
.carousel__dots span {
  width: 10px;
  height: 10px;
  background: var(--card);
  border: 2px solid var(--ink);
  transition: background 0.2s;
}
.carousel__dots span.active { background: var(--brick); }

/* INSTALL */
.install__intro { text-align: center; color: #444; margin-bottom: 2rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.steps { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; max-width: 640px; margin: 0 auto; }
.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--card);
  border: var(--border-w) solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 1rem 1.25rem;
}
.step__badge {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-pixel);
  font-size: 0.9rem;
  background: var(--green);
  color: var(--cream);
  border: 3px solid var(--ink);
}
.step__badge--gold { background: var(--gold); color: var(--ink); }
.step__body h3 { font-size: 0.75rem; margin-bottom: 0.4rem; color: var(--brick); }
.step__body p { font-size: 0.92rem; color: #444; }
.step--final { background: #FFFBEA; }

.note {
  margin-top: 2rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  background: #FFF3D6;
  border: var(--border-w) solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 1.1rem 1.3rem;
  font-size: 0.92rem;
  color: #4A3A1A;
}

/* CTA */
.cta {
  text-align: center;
  background: var(--brick);
  border-top: var(--border-w) solid var(--ink);
  border-bottom: var(--border-w) solid var(--ink);
}
.cta h2 { color: var(--cream); margin-bottom: 1.75rem; font-size: 1.2rem; text-shadow: 3px 3px 0 var(--ink); }

/* FOOTER */
.footer {
  padding: 2.5rem 0 3rem;
  text-align: center;
  background: var(--ink);
  color: var(--cream);
}
.footer__gameover {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  line-height: 1.8;
}
.footer__gameover .accent { color: var(--green); }
.footer__meta {
  font-size: 0.85rem;
  color: #BBB;
  margin-top: 0.3rem;
}
.footer__meta strong { color: var(--gold); }

/* RESPONSIVE */
@media (min-width: 640px) {
  .game-frame { flex: 0 0 42%; }
}

@media (min-width: 860px) {
  .hero__title { font-size: 3rem; }
  .hero__tagline { font-size: 1.4rem; }
  .mascot { width: 160px; }
  .features__grid { grid-template-columns: repeat(4, 1fr); }
  .game-frame { flex: 0 0 22%; }
  .section-title { font-size: 1.4rem; }
}
