:root {
  --bg: #fcfeff;
  --primary: #0b7285;
  --accent: #17c3b2;
  --muted: #7fb5b5;
  --card: #ffffff;
  --text: #0b3c44;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Nunito", system-ui, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
.container {
  --container-hr: 1rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 calc(var(--container-hr) + env(safe-area-inset-left, 0))
    calc(var(--container-hr) + env(safe-area-inset-right, 0));
}
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.85)
  );
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(11, 114, 133, 0.08);
  z-index: 50;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}
.logo {
  height: 42px;
}
.nav-links {
  display: flex;
  gap: 1.6rem;
  align-items: center;
}
.nav-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  padding: 0.2rem 0;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  background: transparent;
  border-radius: 2px;
  transition: background-color 0.18s ease;
}
.nav-links a:hover::after {
  background: var(--primary);
}
.nav-links a:focus {
  outline: 2px solid rgba(11, 114, 133, 0.14);
  outline-offset: 3px;
}
.menu-toggle {
  display: none;
  background: none;
  border: 0;
}
.hero {
  padding: 9rem 0 3rem;
  display: flex;
  align-items: center;
}
.hero .hero-content {
  flex: 1;
}
.hero h1 {
  font-size: 2.4rem;
  color: var(--primary);
  margin-bottom: 0.6rem;
}
.hero p {
  color: var(--text);
  opacity: 0.9;
  margin-bottom: 1rem;
}
.cta {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}
.features {
  padding: 3.5rem 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.feature {
  background: var(--card);
  padding: 1.2rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(11, 114, 133, 0.06);
}
.feature h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}
.game-section {
  padding: 2.5rem 0;
}
.game-container {
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  /* box-shadow: 0 12px 30px rgba(11, 114, 133, 0.06); */
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}
/* Responsive game wrapper that keeps a 16:9 aspect ratio and max width of 900px */
.game-media {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16/9;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(11, 114, 133, 0.06);
}
/* Fallback for browsers that don't support aspect-ratio: use padding-top technique */
.game-media--fallback {
  width: 100%;
  max-width: 900px;
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 12px;
}
.game-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.game-media--fallback .game-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.footer {
  background: linear-gradient(180deg, var(--primary), #07464f);
  color: #e6fbfb;
  padding: 2.5rem 0;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.disclaimer-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 1rem;
  border-radius: 12px;
  margin-top: 1rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  transition: background 0.24s ease, color 0.18s ease, transform 0.12s ease;
}
.footer .disclaimer-card {
  grid-column: 1/-1;
}
.disclaimer-card:hover {
  background: linear-gradient(90deg, #ff8a00, #ff5e3a);
  color: #fff;
  transform: translateY(-4px);
}
.disclaimer-card a {
  color: inherit;
}

.footer h4 {
  font-weight: 1000;
}

.footer a {
  color: #fff;
  text-decoration: none;
  opacity: 0.95;
  text-align: center;
}
.footer a:hover {
  color: #ff8a00;
  opacity: 1;
}
.footer h4 {
  color: #e6fbfb;
  margin-bottom: 0.5rem;
}
.footer .logo {
  height: 46px;
}
.footer .footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  gap: 1rem;
  flex-direction: column;
}
.footer .socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.footer .disclaimer-card {
  margin-bottom: 0.75rem;
}
.footer small {
  color: #dffafa;
  opacity: 0.9;
}
.disclaimer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 39, 44, 0.9);
  /* Hidden by default to avoid a flash of the popup before JS runs. */
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}
.disclaimer-popup {
  background: #fff;
  padding: 1.6rem;
  border-radius: 12px;
  max-width: 520px;
  width: 100%;
}
.accept-button {
  display: block;
  width: 100%;
  padding: 0.9rem;
  border-radius: 10px;
  border: 0;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  color: #fff;
  font-weight: 700;
}

/* Disclaimer popup actions */
.disclaimer-popup {
  max-width: 520px;
}
.disclaimer-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
}
.disclaimer-actions .accept-button {
  flex: 1;
  margin: 0;
  display: inline-block;
}
.exit-button {
  flex: 1;
  background: transparent;
  border: 2px solid rgba(11, 60, 68, 0.08);
  color: var(--text);
  padding: 0.8rem;
  border-radius: 10px;
  cursor: pointer;
}
.exit-button:hover {
  background: rgba(11, 60, 68, 0.03);
}
/* Contact form styles */
.contact-form {
  max-width: 720px;
  margin: 1.6rem auto;
  display: block;
  gap: 1rem;
  padding: 0 0.25rem;
}
.contact-form .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.8rem;
}
.contact-form label {
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(11, 60, 68, 0.08);
  background: linear-gradient(180deg, #fff, #fbffff);
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}
.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}
.submit-button {
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 0;
  font-weight: 700;
  cursor: pointer;
  display: block;
  margin: 0.6rem auto;
}
.submit-button:active {
  transform: translateY(1px);
}

/* Focus outlines for accessibility */
input:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(255, 138, 0, 0.28);
  outline-offset: 3px;
  border-radius: 8px;
}
input:focus,
textarea:focus,
button:focus,
a:focus {
  outline: none;
}

/* Legal page styling */
.legal-page {
  padding: 6.5rem 0;
}
.legal-page h1 {
  color: var(--primary);
  margin-bottom: 0.6rem;
}
.legal-section {
  background: var(--card);
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(11, 114, 133, 0.04);
  margin-bottom: 1rem;
}
.legal-section h2 {
  margin-bottom: 0.5rem;
}

/* Footer improvements: quick links column and layout fixes */
.footer .footer-grid {
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
}
.footer .logo {
  height: 36px;
}
.footer .quick-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.footer .site-meta {
  color: #dffafa;
  margin-top: 0.6rem;
}

/* Hero image and small utilities */
.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image {
  max-width: 320px;
  border-radius: 10px;
  width: 100%;
  height: auto;
}
.site-copy {
  margin-top: 0.5rem;
  color: #dffafa;
}

@media (max-width: 768px) {
  body {
    padding: 0 1rem;
  }

  .navbar {
    padding: 0 1rem;
  }

  .menu-toggle {
    display: block;
    font-size: 1rem;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--card);
    flex-direction: column;
    padding: 1rem;
    gap: 0.6rem;
  }
  .nav-links.show {
    display: flex;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  /* Slightly reduce hero top padding on smaller screens */
  .hero {
    padding: 6.5rem 0 2rem;
  }
  /* On small screens, keep full width and maintain aspect ratio (via aspect-ratio or fallback) */
  .game-media,
  .game-media--fallback {
    max-width: 100%;
  }
  .footer{
    margin: 0 -1rem;
  }
  .footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  /* Increase horizontal padding on small screens so content doesn't touch edges */
  /* Increase horizontal gutter on small screens for comfortable reading */
  :root {
    --container-hr: 1.25rem;
  }
  .contact-form {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }

  /* Stack disclaimer action buttons on narrow screens */
  .disclaimer-actions {
    flex-direction: column;
  }
  .disclaimer-actions .accept-button,
  .disclaimer-actions .exit-button {
    width: 100%;
  }
}

/* Page spacing utility to replace inline padding-top */
.page-spaced {
  padding-top: 4.5rem;
}

/* Center-align all headings site-wide (h1..h6). This keeps existing color/margins
    from more specific selectors but ensures headings are visually centered by default. */
h1,
h2,
h3,
h4,
h5,
h6 {
  text-align: center;
}

/* Keep the hero heading left-aligned (exclude it from the global centering). */
.hero h1,
.hero .hero-content h1 {
  text-align: left;
}

/* Reviews section */
.reviews {
  padding: 2.5rem 0;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.review-card {
  background: var(--card);
  padding: 1.2rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(11, 114, 133, 0.06);
}
.review-card h3 {
  margin-bottom: 0.35rem;
  color: var(--primary);
  font-size: 1.05rem;
}
.review-card .byline {
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.review-card p {
  margin: 0;
  color: var(--text);
  opacity: 0.95;
}
