@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka-Regular.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka-Bold.ttf") format("truetype");
  font-weight: 700;
}

:root {
  --ink: #12213a;
  --muted: #64748b;
  --sky: #16c7f5;
  --blue: #2268d8;
  --green: #12b981;
  --gold: #f4b840;
  --rose: #ff6f7d;
  --panel: #ffffff;
  --soft: #f4f8ff;
}

body {
  font-family: "Fredoka", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fbfdff;
}

.navbar {
  --bs-navbar-toggler-focus-width: 0;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(18, 33, 58, 0.08);
}

.brand-mark {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 12px;
}

.nav-link {
  font-weight: 700;
  color: var(--ink);
}

.nav-link.active,
.nav-link:hover {
  color: var(--blue);
}

.hero {
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(22, 199, 245, 0.22), transparent 28%),
    radial-gradient(circle at 86% 16%, rgba(244, 184, 64, 0.24), transparent 24%),
    linear-gradient(135deg, #0c1d35 0%, #17406b 48%, #0a1930 100%);
  color: #fff;
}

.hero::after {
  content: "2 + 5 x 8 = ?";
  position: absolute;
  right: 5vw;
  bottom: 1rem;
  color: rgba(255, 255, 255, 0.07);
  font-size: clamp(3rem, 10vw, 9rem);
  font-weight: 700;
  white-space: nowrap;
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5.9rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.78);
}

.hero-art {
  width: min(100%, 520px);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 28px 60px rgba(0, 0, 0, 0.28));
}

.btn {
  border-radius: 999px;
  font-weight: 700;
  padding: 0.8rem 1.25rem;
}

.btn-primary {
  background: var(--sky);
  border-color: var(--sky);
  color: #06223a;
}

.btn-primary:hover {
  background: #56daf8;
  border-color: #56daf8;
  color: #06223a;
}

.section-pad {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.eyebrow {
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
}

.text-muted-soft {
  color: var(--muted);
}

.feature-card,
.game-card,
.table-card,
.contact-panel {
  background: var(--panel);
  border: 1px solid rgba(34, 104, 216, 0.1);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(18, 33, 58, 0.08);
}

.feature-card {
  height: 100%;
  padding: 1.5rem;
}

.icon-tile {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #eaf7ff;
  color: var(--blue);
  font-size: 1.5rem;
}

.game-card {
  height: 100%;
  overflow: hidden;
}

.game-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--soft);
}

.game-card .card-body {
  padding: 1.4rem;
}

.soft-band {
  background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%);
}

.stat {
  border-left: 4px solid var(--sky);
  padding-left: 1rem;
}

.stat strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--blue);
}

.table-card {
  height: 100%;
  padding: 1.25rem;
}

.level-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  background: #eef6ff;
  color: #1857b8;
  padding: 0.35rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.page-hero {
  padding: 7rem 0 4rem;
  background:
    radial-gradient(circle at 85% 20%, rgba(18, 185, 129, 0.18), transparent 24%),
    linear-gradient(135deg, #102846, #1b5da2);
  color: #fff;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 0.98;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.8);
}

.cta-band {
  background: #102846;
  color: #fff;
}

.footer {
  background: #071426;
  color: rgba(255, 255, 255, 0.7);
}

.footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}

.form-control,
.form-select {
  border-radius: 8px;
  padding: 0.85rem 1rem;
}

@media (max-width: 991.98px) {
  .hero {
    padding: 4rem 0 3rem;
    min-height: auto;
  }

  .hero-art {
    max-height: 360px;
  }
}

@media (max-width: 575.98px) {
  .game-card img {
    height: 180px;
  }

  .btn {
    width: 100%;
  }
}
