@font-face {
  font-family: 'GROBOLD';
  src: url('../fonts/GROBOLD.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --gold: #f5a623;
  --gold-dark: #d4891a;
  --brown: #5c3d1e;
  --brown-dark: #3a2510;
  --sand: #f2d89c;
  --sand-light: #faf0d7;
  --sky: #4db8e8;
  --sky-dark: #1a6ea0;
  --red: #e04040;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: #1a0e05;
  color: #fff;
  overflow-x: hidden;
}

/* ── Navbar ── */
.navbar-game {
  background: linear-gradient(180deg, #3a2510 0%, #5c3d1e 100%);
  border-bottom: 4px solid var(--gold);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  padding: 0.6rem 0;
}

.navbar-brand-text {
  font-family: 'GROBOLD', cursive;
  font-size: 1.6rem;
  color: var(--gold) !important;
  text-shadow: 2px 2px 0 #000, 0 0 10px rgba(245,166,35,0.4);
  letter-spacing: 1px;
}

.navbar-game .nav-link {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--sand) !important;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: color 0.2s;
}

.navbar-game .nav-link:hover {
  color: var(--gold) !important;
}

.btn-download-nav {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #fff !important;
  font-family: 'GROBOLD', cursive;
  font-size: 0.8rem;
  border: 2px solid #fff;
  border-radius: 50px;
  padding: 0.4rem 1.4rem;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
  box-shadow: 0 4px 15px rgba(245,166,35,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-download-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,166,35,0.5);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(26,14,5,0) 0%, rgba(26,14,5,0.7) 100%),
    linear-gradient(180deg, var(--sky) 0%, var(--sky-dark) 40%, var(--sand) 75%, var(--brown) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, #1a0e05);
  z-index: 2;
}

/* Animated sand dunes */
.dune {
  position: absolute;
  bottom: 0;
  width: 200%;
  height: 200px;
  border-radius: 50% 50% 0 0;
  opacity: 0.4;
}

.dune-1 {
  background: var(--sand);
  left: -20%;
  bottom: 20px;
  animation: duneDrift 20s ease-in-out infinite alternate;
}

.dune-2 {
  background: var(--gold-dark);
  left: -40%;
  bottom: 0;
  animation: duneDrift 25s ease-in-out infinite alternate-reverse;
}

@keyframes duneDrift {
  0% { transform: translateX(0); }
  100% { transform: translateX(5%); }
}

/* Floating particles (sand) */
.sand-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--sand);
  border-radius: 50%;
  opacity: 0.5;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0% { transform: translateY(0) translateX(0); opacity: 0.5; }
  50% { opacity: 0.8; }
  100% { transform: translateY(-100vh) translateX(60px); opacity: 0; }
}

.hero-title {
  font-family: 'GROBOLD', cursive;
  font-size: clamp(2.5rem, 7vw, 5rem);
  color: var(--gold);
  text-shadow:
    3px 3px 0 var(--brown-dark),
    0 0 30px rgba(245,166,35,0.4),
    0 0 60px rgba(245,166,35,0.2);
  line-height: 1.1;
}

.hero-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  color: var(--sand-light);
  max-width: 500px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.btn-cta {
  background: linear-gradient(180deg, #e04040 0%, #b02020 100%);
  color: #fff;
  font-family: 'GROBOLD', cursive;
  font-size: 1.2rem;
  border: 3px solid #fff;
  border-radius: 60px;
  padding: 0.9rem 2.8rem;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
  box-shadow:
    0 6px 25px rgba(224,64,64,0.4),
    inset 0 2px 0 rgba(255,255,255,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 35px rgba(224,64,64,0.5);
  color: #fff;
}

.hero-phone {
  position: relative;
  z-index: 1;
}

.phone-mockup {
  width: 280px;
  height: 560px;
  background: linear-gradient(180deg, var(--sky) 0%, var(--sand) 80%, var(--brown) 100%);
  border-radius: 40px;
  border: 6px solid #222;
  box-shadow:
    0 30px 60px rgba(0,0,0,0.5),
    inset 0 0 30px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 25px;
  background: #222;
  border-radius: 0 0 15px 15px;
  z-index: 5;
}

.phone-game-element {
  position: absolute;
  animation: phoneFloat 3s ease-in-out infinite;
}

.balloon-char {
  width: 70px;
  top: 35%;
  left: 25%;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.bat-char {
  width: 60px;
  top: 20%;
  right: 15%;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  animation: batFloat 2s ease-in-out infinite alternate;
}

.pipe-char {
  width: 60px;
  bottom: -20px;
  right: 10%;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes batFloat {
  0% { transform: translateY(0) rotate(-5deg); }
  100% { transform: translateY(-15px) rotate(5deg); }
}

/* Floating hero balloon */
.hero-balloon {
  position: absolute;
  right: 8%;
  top: 15%;
  width: 120px;
  opacity: 0.25;
  animation: heroFloat 4s ease-in-out infinite;
  z-index: 0;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-25px) rotate(3deg); }
}

/* ── Section shared ── */
.section-dark {
  background: linear-gradient(180deg, #1a0e05 0%, #2a1a0c 100%);
  position: relative;
}

.section-sand {
  background: linear-gradient(180deg, #2a1a0c 0%, #1a0e05 100%);
  position: relative;
}

.section-title {
  font-family: 'GROBOLD', cursive;
  color: var(--gold);
  text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
}

.section-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  border-radius: 2px;
  margin: 0.8rem auto 0;
}

/* ── Features ── */
.feature-card {
  background: linear-gradient(180deg, rgba(92,61,30,0.4) 0%, rgba(92,61,30,0.2) 100%);
  border: 2px solid rgba(245,166,35,0.2);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h5 {
  font-family: 'GROBOLD', cursive;
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.feature-card p {
  color: var(--sand);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── How to Play ── */
.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%);
  border: 3px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'GROBOLD', cursive;
  font-size: 1.4rem;
  color: #fff;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
  box-shadow: 0 4px 15px rgba(245,166,35,0.3);
  margin: 0 auto 1rem;
}

.step-card {
  text-align: center;
  padding: 1.5rem;
}

.step-card h5 {
  font-family: 'GROBOLD', cursive;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  color: var(--sand);
  font-size: 0.85rem;
}

/* ── Screenshots ── */
.screenshot-wrapper {
  border-radius: 24px;
  overflow: hidden;
  border: 4px solid rgba(245,166,35,0.3);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-wrapper:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* ── CTA Banner ── */
.cta-banner {
  background:
    linear-gradient(135deg, rgba(224,64,64,0.15) 0%, transparent 50%),
    linear-gradient(180deg, #1a0e05 0%, #2a1a0c 50%, #1a0e05 100%);
  border-top: 3px solid rgba(245,166,35,0.2);
  border-bottom: 3px solid rgba(245,166,35,0.2);
}

.cta-title {
  font-family: 'GROBOLD', cursive;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--gold);
  text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

/* ── Store badges ── */
.store-badge {
  display: inline-block;
  background: #000;
  border: 2px solid #555;
  border-radius: 12px;
  padding: 0.6rem 1.5rem;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s;
  min-width: 180px;
  text-align: center;
}

.store-badge:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  color: #fff;
}

.store-badge-label {
  font-size: 0.65rem;
  opacity: 0.8;
  display: block;
}

.store-badge-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  display: block;
  line-height: 1.2;
}

/* ── Footer ── */
.footer-game {
  background: var(--brown-dark);
  border-top: 3px solid rgba(245,166,35,0.3);
}

.footer-game a {
  color: var(--sand);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-game a:hover {
  color: var(--gold);
}

.footer-brand {
  font-family: 'GROBOLD', cursive;
  color: var(--gold);
  font-size: 1.2rem;
}

/* ── Responsiveness ── */
@media (max-width: 768px) {
  .phone-mockup {
    width: 200px;
    height: 400px;
  }

  .hero {
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-balloon {
    display: none;
  }
}