/* === Base Styles === */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: linear-gradient(135deg, #fff7e6 0%, #ffe0b2 100%);
  color: #2d1a05;
  min-height: 100vh;
  scroll-behavior: smooth;
}

a {
  color: #ff7b54;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #ffb800;
}

/* === Header & Navigation === */
header {
  background: linear-gradient(90deg, #ffb800 0%, #ff7b54 100%);
  padding: 2rem 0 1rem 0;
  box-shadow: 0 4px 24px #ffb80033;
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
  text-align: center;
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
}

.main-nav li a {
  font-family: 'Baloo 2', cursive;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 24px;
  background: linear-gradient(90deg, #ff7b54 0%, #ffb800 100%);
  box-shadow: 0 2px 8px #ffb80033;
  transition: background 0.2s, color 0.2s;
}
.main-nav li a:hover {
  background: #fff;
  color: #ff7b54;
}

.main-title {
  font-family: 'Baloo 2', cursive;
  font-size: 3rem;
  color: #fff;
  margin: 0.2rem 0 0 0;
  letter-spacing: 2px;
  text-shadow: 0 2px 16px #ff7b54cc;
}

.subtitle {
  font-size: 1.3rem;
  color: #fff7e6;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

/* === Welcome Section === */
.welcome-section {
  background: #fffbe6;
  border-radius: 32px;
  box-shadow: 0 4px 32px #ffb80022;
  margin: 2.5rem auto 2rem auto;
  padding: 2.5rem 2rem 2rem 2rem;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-highlight {
  font-family: 'Baloo 2', cursive;
  font-size: 2.2rem;
  color: #ffb800;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px #ffb80044;
  animation: popIn 1s cubic-bezier(.68,-0.55,.27,1.55), sparkle 2.5s infinite;
  position: relative;
  z-index: 1;
}

.start-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.9rem 2.2rem;
  font-size: 1.3rem;
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #ff7b54 0%, #ffb800 100%);
  border: none;
  border-radius: 32px;
  box-shadow: 0 4px 24px #ffb80055;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.start-btn::after {
  content: "✨";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%) scale(0.8);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  font-size: 1.5rem;
  pointer-events: none;
}
.start-btn:hover {
  background: #ffb800;
  color: #fff;
  transform: scale(1.05);
}
.start-btn:hover::after {
  opacity: 1;
  transform: translateY(-50%) scale(1.2) rotate(-10deg);
}

/* === Game Section === */
.game-section {
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 4px 32px #ffb80022;
  margin: 2.5rem auto;
  padding: 2.5rem 2rem;
  max-width: 1100px;
}

.game-title {
  font-family: 'Baloo 2', cursive;
  font-size: 2.1rem;
  color: #ff7b54;
  margin-bottom: 0.5rem;
}
.game-title span {
  color: #ffb800;
}

.game-subtitle {
  font-size: 1.3rem;
  color: #ffb800;
  margin-bottom: 1.2rem;
}

.game-features {
  margin: 1.5rem 0 2rem 0;
  padding-left: 1.2rem;
  color: #2d1a05;
}
.game-features li {
  margin-bottom: 0.7rem;
  font-size: 1.08rem;
  line-height: 1.5;
  list-style: disc inside;
}

/* === Game Frame === */
.game-frame {
  border-radius: 40px;
  border: 6px solid #ffb800;
  box-shadow: 0 16px 64px #ffb800cc, 0 4px 24px #ff7b54cc;
  background: #fff;
  width: 98vw;
  max-width: 1700px;
  height: 85vh;
  min-height: 600px;
  margin: 0 auto;
  display: block;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.game-frame:hover {
  box-shadow: 0 0 32px 8px #ffe06699, 0 16px 64px #ffb800cc, 0 4px 24px #ff7b54cc;
  border-color: #ffe066;
}

/* === Notice === */
.notice {
  background: #fffbe6;
  color: #ff7b54;
  border-radius: 18px;
  padding: 1rem 1.5rem;
  margin: 2rem auto 0 auto;
  max-width: 700px;
  font-size: 1.08rem;
  box-shadow: 0 2px 8px #ffb80022;
  text-align: center;
}

/* === FAQ Section === */
.faq {
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 4px 32px #ffb80022;
  margin: 2.5rem auto;
  padding: 2.5rem 2rem;
  max-width: 900px;
}
.faq h2 {
  font-family: 'Baloo 2', cursive;
  color: #ff7b54;
  margin-bottom: 1.5rem;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.faq-item {
  background: #fffbe6;
  border-radius: 18px;
  padding: 1rem 1.5rem;
  box-shadow: 0 2px 8px #ffb80022;
  font-size: 1.08rem;
  transition: background 0.2s, box-shadow 0.2s, transform 0.18s;
}
.faq-item:hover {
  background: #fff3c1;
  box-shadow: 0 2px 12px #ffb80033;
  transform: scale(1.03) rotate(-1deg);
}
.faq-item strong {
  color: #ffb800;
}

/* === Contact Section === */
.contact {
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 4px 32px #ffb80022;
  margin: 2.5rem auto;
  padding: 2.5rem 2rem;
  max-width: 700px;
  text-align: center;
}
.contact h2 {
  font-family: 'Baloo 2', cursive;
  color: #ff7b54;
  margin-bottom: 1.2rem;
}
.contact a {
  color: #ff7b54;
  font-weight: 700;
  text-decoration: underline;
}
.contact a:hover {
  color: #ffb800;
}

/* === Disclaimer Section === */
.disclaimer {
  background: #fffbe6;
  border-radius: 32px;
  box-shadow: 0 4px 32px #ffb80022;
  margin: 2.5rem auto 2rem auto;
  padding: 2.5rem 2rem;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.disclaimer h2 {
  font-family: 'Baloo 2', cursive;
  color: #ff7b54;
  margin-bottom: 0.7rem;
}
.disclaimer img {
  margin-bottom: 1rem;
  border-radius: 16px;
  box-shadow: 0 2px 8px #ffb80055;
  animation: floatLogo 3s ease-in-out infinite;
}

/* === Footer === */
footer {
  background: linear-gradient(90deg, #ffb800 0%, #ff7b54 100%);
  color: #fff;
  text-align: center;
  padding: 1.2rem 0;
  font-size: 1.08rem;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  margin-top: 2rem;
  letter-spacing: 2px;
  font-family: 'Baloo 2', cursive;
  box-shadow: 0 -4px 24px #ffb80033;
}

/* === Fun Animations & Effects === */
@keyframes bounceIn {
  0% { transform: scale(0.7); opacity: 0; }
  70% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes sparkle {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.4) drop-shadow(0 0 8px #ffe066); }
}

/* Add sparkle to hero-highlight */
.hero-highlight {
  animation: popIn 1s cubic-bezier(.68,-0.55,.27,1.55), sparkle 2.5s infinite;
  position: relative;
  z-index: 1;
}

/* Add a playful hover effect to .start-btn */
.start-btn {
  position: relative;
  overflow: hidden;
}
.start-btn::after {
  content: "✨";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%) scale(0.8);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  font-size: 1.5rem;
  pointer-events: none;
}
.start-btn:hover::after {
  opacity: 1;
  transform: translateY(-50%) scale(1.2) rotate(-10deg);
}

/* Add a subtle bounce to FAQ items on hover */
.faq-item {
  transition: background 0.2s, box-shadow 0.2s, transform 0.18s;
}
.faq-item:hover {
  background: #fff3c1;
  box-shadow: 0 2px 12px #ffb80033;
  transform: scale(1.03) rotate(-1deg);
}

/* Add a glowing border to the game frame on hover */
.game-frame {
  transition: box-shadow 0.3s, border-color 0.3s;
}
.game-frame:hover {
  box-shadow: 0 0 32px 8px #ffe06699, 0 16px 64px #ffb800cc, 0 4px 24px #ff7b54cc;
  border-color: #ffe066;
}

/* Add a confetti background to the welcome section */
.welcome-section {
  position: relative;
  overflow: hidden;
}
.welcome-section::before {
  content: "";
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle at 10% 20%, #ffb800 0.7vw, transparent 1vw),
    radial-gradient(circle at 80% 30%, #ff7b54 0.5vw, transparent 0.8vw),
    radial-gradient(circle at 60% 80%, #ffe066 0.6vw, transparent 1vw),
    radial-gradient(circle at 30% 70%, #ffb800 0.4vw, transparent 0.7vw),
    radial-gradient(circle at 50% 50%, #ff7b54 0.5vw, transparent 0.8vw);
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
}

/* Add a fun underline to section titles */
.game-title, .faq h2, .contact h2, .disclaimer h2 {
  position: relative;
  display: inline-block;
}
.game-title::after,
.faq h2::after,
.contact h2::after,
.disclaimer h2::after {
  content: "";
  display: block;
  width: 60%;
  height: 5px;
  background: linear-gradient(90deg, #ffb800 0%, #ff7b54 100%);
  border-radius: 3px;
  margin: 0.3em auto 0 auto;
  opacity: 0.5;
}

/* Add a floating animation to the BeGambleAware logo */
.disclaimer img {
  animation: floatLogo 3s ease-in-out infinite;
}
@keyframes floatLogo {
  0%, 100% { transform: translateY(0);}
  50% { transform: translateY(-10px);}
}