/* Bubba Bug Gaming — sticker-style, family-friendly */

:root {
  /* Logo-extracted palette */
  --brown: #8B5E3C;
  --brown-warm: #A86F3D;
  --cream: #F5E6C8;
  --bg: #FFFDF8;
  --blue: #4A90D9;
  --red: #E84040;
  --yellow: #F5A623;
  --green: #5BAD6F;
  --dark: #3D1F0A;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 4px 0 rgba(61, 31, 10, 0.15);
  --shadow: 0 8px 0 rgba(61, 31, 10, 0.18), 0 14px 30px rgba(61, 31, 10, 0.12);
  --shadow-lg: 0 10px 0 rgba(61, 31, 10, 0.18), 0 24px 40px rgba(61, 31, 10, 0.18);
  --maxw: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--dark);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Fredoka One', 'Nunito', sans-serif;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin: 0 0 0.6em;
  line-height: 1.15;
}

a { color: var(--blue); text-decoration: none; font-weight: 700; }
a:hover { text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* Multicolor "sticker" letters — match the logo's lettering */
.rainbow-text {
  font-family: 'Fredoka One', sans-serif;
  display: inline-block;
}
.rainbow-text > span {
  display: inline-block;
  text-shadow:
    -2px 0 0 var(--dark),
     2px 0 0 var(--dark),
     0 -2px 0 var(--dark),
     0  2px 0 var(--dark),
    -2px -2px 0 var(--dark),
     2px -2px 0 var(--dark),
    -2px  2px 0 var(--dark),
     2px  2px 0 var(--dark),
     0 4px 0 rgba(61,31,10,0.25);
}
.c-blue   { color: var(--blue); }
.c-yellow { color: var(--yellow); }
.c-red    { color: var(--red); }
.c-green  { color: var(--green); }
.c-cream  { color: var(--cream); }

/* ----------------------------------------------------------
   Header / Nav
---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 4px solid var(--cream);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dark);
}
.brand:hover { text-decoration: none; }
.brand-logo {
  height: 64px;
  width: auto;
}
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-size: 20px;
}
.brand-sub {
  font-family: 'Fredoka One', sans-serif;
  color: var(--blue);
  font-size: 13px;
  letter-spacing: 2px;
  margin-top: 4px;
  -webkit-text-stroke: 0.5px var(--dark);
}
.site-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--dark);
  font-weight: 800;
  font-size: 15px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: all 150ms ease;
}
.site-nav a:hover {
  background: var(--cream);
  border-color: var(--brown);
  text-decoration: none;
}
.site-nav a.active {
  background: var(--yellow);
  border-color: var(--dark);
  color: var(--dark);
  box-shadow: var(--shadow-sm);
}

/* ----------------------------------------------------------
   Hero
---------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--dark);
  color: var(--cream);
  text-align: center;
  padding: 80px 20px 120px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(74,144,217,0.18), transparent 40%),
    radial-gradient(circle at 90% 30%, rgba(232,64,64,0.18), transparent 40%),
    radial-gradient(circle at 30% 90%, rgba(91,173,111,0.16), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(245,166,35,0.20), transparent 40%);
  pointer-events: none;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-logo {
  width: 280px;
  max-width: 80vw;
  height: auto;
  margin-bottom: 24px;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.35));
  animation: gentle-bob 4s ease-in-out infinite;
}
@keyframes gentle-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.tagline {
  font-family: 'Fredoka One', sans-serif;
  font-size: clamp(26px, 4.5vw, 42px);
  color: var(--cream);
  margin: 0 0 32px;
}
.tagline em {
  font-style: normal;
  color: var(--yellow);
}
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  display: block;
}

/* ----------------------------------------------------------
   Buttons
---------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 16px 36px;
  border-radius: 999px;
  font-family: 'Fredoka One', sans-serif;
  font-size: 20px;
  letter-spacing: 0.5px;
  border: 3px solid var(--dark);
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
  box-shadow: var(--shadow);
}
.btn-primary {
  background: var(--yellow);
  color: var(--dark);
}
.btn-primary:hover {
  background: var(--red);
  color: #fff;
  transform: translateY(-3px);
  text-decoration: none;
  box-shadow: var(--shadow-lg);
}
.btn-primary:active {
  transform: translateY(2px);
  box-shadow: var(--shadow-sm);
}

/* ----------------------------------------------------------
   Section heading
---------------------------------------------------------- */
.section-heading {
  font-size: clamp(34px, 5vw, 52px);
  text-align: center;
  margin-bottom: 40px;
}

/* ----------------------------------------------------------
   Games section
---------------------------------------------------------- */
.games-section {
  position: relative;
  background: var(--cream);
  padding: 80px 0 96px;
  overflow: hidden;
}
/* Polka-dot ladybug nod */
.dot-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(232,64,64,0.10) 6px, transparent 7px),
    radial-gradient(circle, rgba(74,144,217,0.10) 5px, transparent 6px);
  background-size: 70px 70px, 90px 90px;
  background-position: 0 0, 35px 45px;
  pointer-events: none;
}

.game-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  justify-items: center;
  position: relative;
  z-index: 1;
}

/* Sticker-style card: thick white border + dark outline + offset shadow */
.sticker {
  background: #fff;
  border: 4px solid var(--dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.sticker::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: calc(var(--radius-lg) + 8px);
  background: #fff;
  z-index: -1;
}

.game-card {
  padding: 36px 32px;
  text-align: center;
  max-width: 480px;
  width: 100%;
  transform: rotate(-1deg);
  transition: transform 200ms ease;
}
.game-card:hover { transform: rotate(0) translateY(-4px); }

.game-icon {
  width: 140px;
  height: 140px;
  border-radius: 32px;
  margin: 0 auto 18px;
  background: var(--bg);
  border: 4px solid var(--dark);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.game-title {
  font-size: 30px;
  color: var(--brown);
  margin-bottom: 8px;
  -webkit-text-stroke: 0;
}
.game-desc { margin: 0 0 22px; color: var(--dark); font-weight: 600; }

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}
.store-badge {
  transition: transform 150ms ease;
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge img {
  height: 52px;
  width: auto;
}

/* ----------------------------------------------------------
   About section
---------------------------------------------------------- */
.about-section {
  position: relative;
  background: var(--brown);
  color: var(--cream);
  padding: 100px 0;
  text-align: center;
}
.about-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(245,166,35,0.18), transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(91,173,111,0.18), transparent 35%);
  pointer-events: none;
}
.wave-top, .wave-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  height: 60px;
  display: block;
  z-index: 1;
}
.wave-top { top: -1px; }
.wave-bottom { bottom: -1px; }

.about-text {
  max-width: 720px;
  margin: 0 auto;
  font-size: 20px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

/* ----------------------------------------------------------
   Privacy section
---------------------------------------------------------- */
.privacy-section {
  background: #fff;
  padding: 88px 0;
}
.privacy-section h3 {
  color: var(--brown);
  margin-top: 1.8em;
  font-size: 24px;
}
.privacy-section .container > p,
.privacy-section .container > h3 {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ----------------------------------------------------------
   Footer
---------------------------------------------------------- */
.site-footer {
  background: var(--dark);
  color: var(--cream);
  padding: 36px 0;
  text-align: center;
  border-top: 6px solid;
  border-image: linear-gradient(
    90deg,
    var(--blue) 0 25%,
    var(--green) 25% 50%,
    var(--yellow) 50% 75%,
    var(--red) 75% 100%
  ) 1;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.footer-logo {
  height: 56px;
  width: auto;
  margin-bottom: 4px;
}
.footer-copy { margin: 0; font-size: 14px; }
.footer-contact { margin: 0; font-size: 14px; }
.footer-contact a { color: var(--yellow); }
.dot-sep { margin: 0 8px; opacity: 0.6; }

/* ----------------------------------------------------------
   Responsive
---------------------------------------------------------- */
@media (max-width: 600px) {
  .nav-wrap { padding: 8px 16px; }
  .brand-logo { height: 52px; }
  .brand-name { font-size: 17px; }
  .brand-sub { font-size: 11px; }
  .site-nav a { padding: 6px 12px; font-size: 14px; }
  .hero { padding: 56px 16px 96px; }
  .hero-logo { width: 220px; }
  .games-section, .about-section, .privacy-section { padding: 64px 0; }
  .game-card { transform: none; padding: 28px 22px; }
  .rainbow-text > span {
    text-shadow:
      -1.5px 0 0 var(--dark),
       1.5px 0 0 var(--dark),
       0 -1.5px 0 var(--dark),
       0  1.5px 0 var(--dark),
       0 3px 0 rgba(61,31,10,0.25);
  }
}
