/* Shared BabyBrain navigation and brand treatment. Homepage values are canonical. */
.dot-wave-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 16px;
  left: 50%;
  width: min(var(--content-width), calc(100% - (var(--page-gutter) * 2)));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 0 30px rgba(73, 60, 98, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  color: #ff6b6b;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 999px;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  background: white;
  outline: none;
}

.nav-links a[aria-current="page"] {
  color: var(--purple);
  background: white;
}

.topbar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: white;
  background: var(--purple);
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 0 22px rgba(123, 85, 195, 0.2);
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.site-footer p {
  max-width: 980px;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  font-weight: 800;
}

.footer-links a {
  color: var(--ink);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--purple);
  outline: none;
}

.footer-company {
  font-size: 0.82rem;
  opacity: 0.82;
}

/* Game artwork is shared by the Game Guide and parent activity guidance. */
.game-art {
  width: 94px;
  height: 94px;
  display: grid;
  flex: 0 0 94px;
  place-items: center;
  border-radius: 22px;
  background: var(--game-bg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
       0 0 22px color-mix(in srgb, var(--game-bg), transparent 74%);
}

.game-art img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.game-cause-effect { --game-bg: #f2b3c7; }
.game-shapes { --game-bg: #f7eb9e; }
.game-colors { --game-bg: #a1ccf5; }
.game-peekaboo { --game-bg: #9cdbb5; }
.game-counting { --game-bg: #f2bd80; }
.game-abc { --game-bg: #c2aded; }
.game-pairs { --game-bg: #8fdbd6; }
.game-sorting { --game-bg: #adc2f0; }
.game-letters { --game-bg: #d1a8e6; }
.game-numbers { --game-bg: #e6c785; }
.game-clock { --game-bg: #b0b5f2; }
.game-drag { --game-bg: #c2e08c; }
.game-moving-target { --game-bg: #bce894; }
.game-follow-path { --game-bg: #8ad6c7; }
.game-color-mix { --game-bg: #e0abe3; }

@media (max-width: 760px) {
  .topbar {
    top: 10px;
    gap: 8px;
    padding: 10px;
  }

  .brand img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .nav-links {
    gap: 2px;
    font-size: 0.88rem;
  }

  .nav-links a {
    padding: 9px 8px;
  }

  .topbar-cta {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.88rem;
  }

  .brand span,
  .topbar-cta {
    display: none;
  }
}


@media (prefers-reduced-motion: reduce) {
  .dot-wave-canvas {
    display: none;
  }
}
