/* ===== Bubble Burst — Website Styles ===== */
:root {
  --sky-top: #7dd3fc;
  --sky-mid: #38bdf8;
  --sky-bottom: #0ea5e9;
  --grass: #22c55e;
  --grass-dark: #16a34a;
  --banner-blue: #1d4ed8;
  --banner-blue-dark: #1e40af;
  --yellow: #fbbf24;
  --yellow-dark: #f59e0b;
  --red-banner: #dc2626;
  --red-banner-dark: #b91c1c;
  --btn-green: #22c55e;
  --btn-green-hover: #16a34a;
  --panel-blue: #93c5fd;
  --panel-border: #3b82f6;
  --bubble-glow: rgba(255, 255, 255, 0.4);
  --text-light: #f8fafc;
  --text-dark: #1e293b;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

.sky {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 35%, var(--sky-bottom) 70%, var(--grass-dark) 90%, var(--grass) 100%);
  background-attachment: fixed;
  position: relative;
}

/* ===== Clouds ===== */
.clouds {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  filter: blur(1px);
}

.cloud::before,
.cloud::after {
  content: '';
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.c1 { width: 120px; height: 45px; top: 12%; left: 10%; }
.c1::before { width: 55px; height: 55px; top: -25px; left: 15px; }
.c1::after { width: 70px; height: 40px; top: -15px; left: 45px; }

.c2 { width: 100px; height: 38px; top: 25%; right: 15%; }
.c2::before { width: 50px; height: 50px; top: -22px; left: 10px; }
.c2::after { width: 55px; height: 35px; top: -12px; left: 40px; }

.c3 { width: 90px; height: 35px; top: 45%; left: 5%; }
.c3::before { width: 45px; height: 45px; top: -20px; left: 8px; }

.c4 { width: 110px; height: 42px; top: 60%; right: 8%; }
.c4::before { width: 52px; height: 52px; top: -24px; left: 12px; }
.c4::after { width: 60px; height: 38px; top: -14px; left: 42px; }

.c5 { width: 80px; height: 30px; top: 75%; left: 25%; }
.c5::before { width: 40px; height: 40px; top: -18px; left: 10px; }

/* ===== Decorative bubbles ===== */
.bubbles-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--bubble-glow), transparent 60%);
  border: 2px solid rgba(255, 255, 255, 0.5);
  animation: float 8s ease-in-out infinite;
}

.bubble.b1 { width: 60px; height: 60px; top: 18%; left: 8%; background-color: rgba(34, 197, 94, 0.25); animation-delay: 0s; }
.bubble.b2 { width: 45px; height: 45px; top: 35%; right: 12%; background-color: rgba(56, 189, 248, 0.3); animation-delay: -2s; }
.bubble.b3 { width: 55px; height: 55px; top: 50%; left: 15%; background-color: rgba(239, 68, 68, 0.2); animation-delay: -4s; }
.bubble.b4 { width: 40px; height: 40px; top: 65%; right: 20%; background-color: rgba(168, 85, 247, 0.25); animation-delay: -1s; }
.bubble.b5 { width: 50px; height: 50px; top: 28%; right: 30%; background-color: rgba(249, 115, 22, 0.25); animation-delay: -3s; }
.bubble.b6 { width: 35px; height: 35px; top: 72%; left: 35%; background-color: rgba(34, 197, 94, 0.3); animation-delay: -5s; }
.bubble.b7 { width: 48px; height: 48px; top: 42%; left: 70%; background-color: rgba(56, 189, 248, 0.25); animation-delay: -2.5s; }
.bubble.b8 { width: 42px; height: 42px; top: 55%; right: 5%; background-color: rgba(251, 191, 36, 0.2); animation-delay: -6s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(10px, -15px) scale(1.05); }
  50% { transform: translate(-5px, -8px) scale(0.98); }
  75% { transform: translate(8px, -20px) scale(1.02); }
}

/* ===== Top banner ===== */
.top-banner {
  position: relative;
  z-index: 10;
  background: linear-gradient(180deg, var(--banner-blue) 0%, var(--banner-blue-dark) 100%);
  padding: 14px 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.banner-dots {
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, rgba(255,255,255,0.6) 35%, transparent 70%);
  border-radius: 50%;
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 3.5vw, 1.7rem);
  letter-spacing: 0.06em;
  color: var(--text-light);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-text .logo-sub {
  font-size: 0.85em;
  opacity: 0.95;
}

.banner-curve.yellow {
  height: 8px;
  background: linear-gradient(90deg, transparent, var(--yellow) 20%, var(--yellow) 80%, transparent);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  margin-top: -2px;
}

/* ===== Main content ===== */
main {
  position: relative;
  z-index: 5;
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4.5rem;
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 2rem 0 2rem;
}

.game-logo {
  display: block;
  max-width: min(280px, 60vw);
  height: auto;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.hero-tagline {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 2rem;
  line-height: 1.5;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 999px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.btn-play {
  background: var(--btn-green);
  color: var(--text-light);
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4);
}

.btn-play:hover {
  background: var(--btn-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--banner-blue);
  border: 2px solid var(--banner-blue);
}

.btn-secondary:hover {
  background: var(--text-light);
  transform: translateY(-2px);
}

.btn-large {
  padding: 18px 48px;
  font-size: 1.2rem;
}

.btn-google-play {
  display: inline-block;
  margin-bottom: 1rem;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-google-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-google-play:active {
  transform: translateY(0);
}

.btn-google-play-icon {
  display: block;
  max-width: 200px;
  height: auto;
  max-height: 60px;
  border-radius: 6px;
}

.high-score-badge {
  display: inline-block;
  background: rgba(125, 211, 252, 0.9);
  color: var(--text-dark);
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
}

/* ===== Sections ===== */
.section {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.section-content h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.5rem;
  color: var(--banner-blue);
  margin-bottom: 1rem;
}

.section-content p {
  margin-bottom: 1rem;
  line-height: 1.65;
  color: var(--text-dark);
}

.section-content .accent {
  font-weight: 700;
  color: var(--banner-blue-dark);
}

.section-sub {
  margin-bottom: 1.25rem !important;
  font-size: 0.95rem;
  color: #64748b;
}

/* ===== CTA section ===== */
.cta-section .cta-line {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--banner-blue);
}

.cta-section .cta-question {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.cta-section .btn {
  display: inline-block;
}

/* ===== Bottom banner ===== */
.bottom-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: linear-gradient(180deg, var(--red-banner-dark) 0%, var(--red-banner) 100%);
  padding: 14px 20px;
  text-align: center;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
}

.banner-curve.top {
  margin-bottom: -2px;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  margin-top: 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.footer-tagline {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  letter-spacing: 0.05em;
  color: var(--text-light);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-bubbles::before,
.footer-bubbles::after {
  content: '○';
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 2px;
}

/* Grass strip above footer */
.bottom-banner::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 24px;
  background: linear-gradient(180deg, transparent 0%, var(--grass) 50%, var(--grass-dark) 100%);
  border-radius: 0;
}

/* Add padding so content isn't hidden behind fixed footer */
main {
  padding-bottom: 5.5rem;
}

@media (min-width: 600px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
}
