/* SANFORT Premium — brand tokens from sanfortschools.com */
:root {
  --sanfort-pink: #e62c56;
  --sanfort-pink-dark: #b11e3f;
  --sanfort-pink-light: #ee2a58;
  --sanfort-orange: #e74c25;
  --sanfort-blue: #315b7c;
  --sanfort-sky: #8ed1fc;
  --sanfort-yellow: #fcb900;
  --sanfort-green: #7bdcb5;
  --sanfort-navy: #020d26;
  --sanfort-white: #ffffff;
  --sanfort-cream: #fff8fb;
  --sanfort-shadow: rgba(230, 44, 86, 0.22);
  --sanfort-glass: rgba(255, 255, 255, 0.9);
  --rainbow-pink: #ff6b9d;
  --rainbow-orange: #ff9f43;
  --rainbow-yellow: #ffe066;
  --rainbow-green: #69db7c;
  --rainbow-blue: #4dabf7;
  --rainbow-purple: #9775fa;
  --rainbow-indigo: #748ffc;
  --sky-top: #a8dcff;
  --sky-mid: #d4eeff;
  --sky-bottom: #fff9e6;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--sanfort-navy);
  background: var(--sky-mid);
  overflow-x: hidden;
}

/* Background — cheerful kids rainbow */
.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.kids-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--sky-top) 0%,
    var(--sky-mid) 35%,
    #fff0f5 65%,
    var(--sky-bottom) 100%
  );
}

.rainbow-sky {
  position: absolute;
  inset: -15%;
  background: conic-gradient(
    from 210deg at 50% 105%,
    rgba(255, 107, 157, 0.28) 0deg,
    rgba(255, 159, 67, 0.26) 55deg,
    rgba(255, 224, 102, 0.24) 110deg,
    rgba(105, 219, 124, 0.22) 165deg,
    rgba(77, 171, 247, 0.26) 220deg,
    rgba(151, 117, 250, 0.24) 275deg,
    rgba(230, 44, 86, 0.22) 330deg,
    rgba(255, 107, 157, 0.28) 360deg
  );
  animation: rainbowShift 20s ease-in-out infinite alternate;
  filter: blur(35px);
  opacity: 0.9;
}

.rainbow-arc {
  position: absolute;
  left: 50%;
  bottom: -36%;
  width: min(145vw, 920px);
  height: min(88vw, 560px);
  transform: translateX(-50%);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: linear-gradient(
    180deg,
    transparent 36%,
    var(--rainbow-pink) 38%,
    var(--rainbow-orange) 42%,
    var(--rainbow-yellow) 46%,
    var(--rainbow-green) 50%,
    var(--rainbow-blue) 54%,
    var(--rainbow-indigo) 58%,
    var(--rainbow-purple) 62%,
    transparent 66%
  );
  filter: blur(1px);
  opacity: 0.82;
  animation: arcFloat 12s ease-in-out infinite;
  box-shadow: 0 -8px 40px rgba(255, 107, 157, 0.2);
}

.rainbow-arc-small {
  bottom: -32%;
  width: min(100vw, 640px);
  height: min(62vw, 400px);
  opacity: 0.35;
  filter: blur(4px);
  animation-delay: -4s;
  animation-duration: 16s;
}

.sun {
  position: absolute;
  top: 6%;
  right: 10%;
  width: 72px;
  height: 72px;
  background: radial-gradient(circle, #fff9c4 20%, #ffd43b 55%, #fab005 100%);
  border-radius: 50%;
  box-shadow:
    0 0 40px rgba(255, 212, 59, 0.7),
    0 0 80px rgba(255, 212, 59, 0.35);
  animation: sunPulse 5s ease-in-out infinite;
}

.sun::before,
.sun::after {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 3px dashed rgba(255, 212, 59, 0.45);
  animation: sunSpin 30s linear infinite;
}

.sun::after {
  inset: -28px;
  border-style: dotted;
  animation-direction: reverse;
  animation-duration: 45s;
}

@keyframes sunPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes sunSpin {
  to { transform: rotate(360deg); }
}

.rainbow-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  animation: rainbowPulse 8s ease-in-out infinite;
}

.rainbow-glow-1 {
  width: 280px;
  height: 280px;
  top: 8%;
  left: 5%;
  background: radial-gradient(circle, rgba(255, 107, 157, 0.35), transparent 70%);
}

.rainbow-glow-2 {
  width: 240px;
  height: 240px;
  top: 40%;
  right: 5%;
  background: radial-gradient(circle, rgba(77, 171, 247, 0.32), transparent 70%);
  animation-delay: -3s;
}

.rainbow-glow-3 {
  width: 220px;
  height: 220px;
  bottom: 15%;
  left: 35%;
  background: radial-gradient(circle, rgba(255, 224, 102, 0.35), transparent 70%);
  animation-delay: -6s;
}

.float-bubble {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.65);
  animation: bubbleFloat 14s ease-in-out infinite;
  box-shadow: inset -3px -3px 8px rgba(255, 255, 255, 0.5);
}

.float-bubble-1 {
  width: 48px; height: 48px;
  top: 22%; left: 12%;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.8), rgba(255, 107, 157, 0.45));
}

.float-bubble-2 {
  width: 36px; height: 36px;
  top: 55%; left: 8%;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.8), rgba(77, 171, 247, 0.45));
  animation-delay: -4s;
}

.float-bubble-3 {
  width: 42px; height: 42px;
  top: 30%; right: 15%;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.8), rgba(105, 219, 124, 0.45));
  animation-delay: -8s;
}

.float-bubble-4 {
  width: 32px; height: 32px;
  bottom: 25%; right: 22%;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.8), rgba(151, 117, 250, 0.45));
  animation-delay: -2s;
}

@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0) translateX(0); }
  33% { transform: translateY(-18px) translateX(8px); }
  66% { transform: translateY(-8px) translateX(-6px); }
}

@keyframes rainbowShift {
  0% { transform: rotate(0deg) scale(1); }
  100% { transform: rotate(10deg) scale(1.05); }
}

@keyframes arcFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.78; }
  50% { transform: translateX(-50%) translateY(-14px); opacity: 0.92; }
}

@keyframes rainbowPulse {
  0%, 100% { transform: scale(1); opacity: 0.45; }
  50% { transform: scale(1.1); opacity: 0.7; }
}

.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  filter: blur(0.5px);
  animation: floatCloud 20s ease-in-out infinite;
  box-shadow: 0 10px 28px rgba(77, 171, 247, 0.15);
}

.cloud::before, .cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.cloud-1 { width: 140px; height: 55px; top: 6%; left: -4%; }
.cloud-1::before { width: 65px; height: 65px; top: -32px; left: 18px; }
.cloud-1::after { width: 85px; height: 58px; top: -24px; right: 12px; }

.cloud-2 { width: 110px; height: 45px; top: 52%; right: -2%; animation-delay: -7s; }
.cloud-2::before { width: 55px; height: 55px; top: -28px; left: 12px; }
.cloud-2::after { width: 70px; height: 48px; top: -20px; right: 10px; }

.cloud-3 { width: 95px; height: 40px; bottom: 10%; left: 18%; animation-delay: -14s; }
.cloud-3::before { width: 48px; height: 48px; top: -24px; left: 10px; }

.cloud-4 { width: 80px; height: 34px; top: 18%; right: 28%; animation-delay: -10s; opacity: 0.85; }
.cloud-4::before { width: 42px; height: 42px; top: -20px; left: 8px; }
.cloud-4::after { width: 55px; height: 38px; top: -16px; right: 6px; }

.sparkle {
  position: absolute;
  opacity: 0.9;
  animation: twinkle 3s ease-in-out infinite;
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
}
.sparkle-1 { top: 14%; right: 18%; animation-delay: 0s; }
.sparkle-2 { bottom: 30%; left: 5%; animation-delay: 0.8s; }
.sparkle-3 { top: 36%; left: 40%; animation-delay: 1.6s; font-size: 1.65rem; }
.sparkle-4 { top: 62%; right: 12%; animation-delay: 2.4s; }
.sparkle-5 { bottom: 18%; right: 35%; animation-delay: 3.2s; font-size: 1.35rem; }

/* Flying birds & butterflies */
.sky-creatures {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.creature {
  position: absolute;
  will-change: transform;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.08));
}

.creature svg {
  display: block;
  width: 100%;
  height: 100%;
}

.bird {
  width: 42px;
  height: 26px;
}

.butterfly {
  width: 38px;
  height: 28px;
}

.bird .wing-left {
  transform-origin: 19px 13px;
  animation: birdFlapLeft 0.35s ease-in-out infinite alternate;
}

.bird .wing-right {
  transform-origin: 29px 13px;
  animation: birdFlapRight 0.35s ease-in-out infinite alternate;
}

.butterfly .wing-tl,
.butterfly .wing-bl {
  transform-origin: 24px 18px;
  animation: bfFlapLeft 0.28s ease-in-out infinite alternate;
}

.butterfly .wing-tr,
.butterfly .wing-br {
  transform-origin: 28px 18px;
  animation: bfFlapRight 0.28s ease-in-out infinite alternate;
}

.bird-1 {
  top: 12%;
  left: -60px;
  animation: flyRight1 22s linear infinite;
}

.bird-2 {
  top: 28%;
  right: -60px;
  width: 36px;
  height: 22px;
  transform: scaleX(-1);
  animation: flyLeft1 28s linear infinite;
  animation-delay: -8s;
}

.bird-3 {
  top: 8%;
  left: -60px;
  width: 32px;
  height: 20px;
  animation: flyRight2 34s linear infinite;
  animation-delay: -14s;
}

.butterfly-1 {
  top: 38%;
  left: -50px;
  animation: flyFlutter1 26s ease-in-out infinite;
}

.butterfly-2 {
  top: 52%;
  right: -50px;
  animation: flyFlutter2 30s ease-in-out infinite;
  animation-delay: -6s;
}

.butterfly-3 {
  top: 20%;
  left: -50px;
  width: 34px;
  height: 24px;
  animation: flyFlutter3 24s ease-in-out infinite;
  animation-delay: -12s;
}

.butterfly-4 {
  top: 65%;
  right: -50px;
  width: 32px;
  height: 22px;
  animation: flyFlutter4 32s ease-in-out infinite;
  animation-delay: -18s;
}

@keyframes birdFlapLeft {
  from { transform: rotate(8deg); }
  to { transform: rotate(-28deg); }
}

@keyframes birdFlapRight {
  from { transform: rotate(-8deg); }
  to { transform: rotate(28deg); }
}

@keyframes bfFlapLeft {
  from { transform: rotate(6deg) scale(1); }
  to { transform: rotate(-18deg) scale(0.92); }
}

@keyframes bfFlapRight {
  from { transform: rotate(-6deg) scale(1); }
  to { transform: rotate(18deg) scale(0.92); }
}

@keyframes flyRight1 {
  0% { transform: translate(-10vw, 0); }
  25% { transform: translate(25vw, -18px); }
  50% { transform: translate(55vw, 12px); }
  75% { transform: translate(80vw, -10px); }
  100% { transform: translate(115vw, 5px); }
}

@keyframes flyRight2 {
  0% { transform: translate(-10vw, 0); }
  20% { transform: translate(20vw, 14px); }
  45% { transform: translate(48vw, -20px); }
  70% { transform: translate(75vw, 8px); }
  100% { transform: translate(115vw, -6px); }
}

@keyframes flyLeft1 {
  0% { transform: scaleX(-1) translate(-10vw, 0); }
  30% { transform: scaleX(-1) translate(30vw, 16px); }
  60% { transform: scaleX(-1) translate(60vw, -14px); }
  100% { transform: scaleX(-1) translate(115vw, 4px); }
}

@keyframes flyFlutter1 {
  0% { transform: translate(-8vw, 0) rotate(0deg); }
  15% { transform: translate(15vw, -25px) rotate(8deg); }
  35% { transform: translate(35vw, 10px) rotate(-6deg); }
  55% { transform: translate(55vw, -18px) rotate(10deg); }
  75% { transform: translate(78vw, 8px) rotate(-4deg); }
  100% { transform: translate(110vw, -5px) rotate(6deg); }
}

@keyframes flyFlutter2 {
  0% { transform: translate(-8vw, 0) rotate(0deg); }
  20% { transform: translate(22vw, 20px) rotate(-10deg); }
  45% { transform: translate(48vw, -22px) rotate(8deg); }
  70% { transform: translate(72vw, 14px) rotate(-6deg); }
  100% { transform: translate(110vw, -8px) rotate(5deg); }
}

@keyframes flyFlutter3 {
  0% { transform: translate(-8vw, 0) rotate(0deg); }
  25% { transform: translate(28vw, 18px) rotate(12deg); }
  50% { transform: translate(52vw, -16px) rotate(-8deg); }
  80% { transform: translate(85vw, 12px) rotate(6deg); }
  100% { transform: translate(112vw, 0) rotate(0deg); }
}

@keyframes flyFlutter4 {
  0% { transform: translate(-8vw, 0) rotate(0deg); }
  18% { transform: translate(18vw, -20px) rotate(-8deg); }
  40% { transform: translate(42vw, 16px) rotate(10deg); }
  65% { transform: translate(68vw, -12px) rotate(-5deg); }
  100% { transform: translate(110vw, 6px) rotate(7deg); }
}

@keyframes floatCloud {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(28px, -14px); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.6; transform: scale(1) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.2) rotate(12deg); }
}
/* Layout */
.split-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100dvh - 44px);
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
}

.hero-card {
  width: 100%;
  max-width: 460px;
  background: var(--sanfort-glass);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-radius: var(--radius-xl);
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 8px 32px rgba(77, 171, 247, 0.15),
    0 4px 16px rgba(255, 107, 157, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  animation: fadeUp 0.9s ease-out;
}

.hero-inner { text-align: center; }

.logo-wrap {
  position: relative;
  margin-bottom: 0.75rem;
}

.logo-glow {
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(ellipse, rgba(230, 44, 86, 0.15), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.logo {
  position: relative;
  z-index: 1;
  width: min(100%, 300px);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 10px 28px var(--sanfort-shadow));
}

.hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sanfort-pink);
  background: rgba(230, 44, 86, 0.08);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.65rem;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--sanfort-pink) 0%, var(--sanfort-pink-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.3rem;
}

.hero-sub {
  font-size: clamp(0.88rem, 2vw, 1rem);
  color: var(--sanfort-blue);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

/* Audio controls */
.audio-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  padding: 0.65rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid rgba(230, 44, 86, 0.1);
}

.audio-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border: 2px solid var(--sanfort-pink);
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(230, 44, 86, 0.08), rgba(230, 44, 86, 0.02));
  color: var(--sanfort-pink);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.audio-btn svg { width: 18px; height: 18px; fill: currentColor; }

.audio-btn:hover, .audio-btn:focus-visible {
  transform: scale(1.03);
  box-shadow: 0 4px 16px var(--sanfort-shadow);
}

.toggle-audio {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.65rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  color: #777;
  -webkit-tap-highlight-color: transparent;
}

.toggle-track {
  width: 44px;
  height: 24px;
  background: #ccc;
  border-radius: var(--radius-pill);
  position: relative;
  transition: background 0.25s;
}

.toggle-audio.is-on .toggle-track { background: var(--sanfort-pink); }

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: transform 0.25s var(--ease-bounce);
}

.toggle-audio.is-on .toggle-thumb { transform: translateX(20px); }

.audio-hint {
  font-size: 0.7rem;
  color: #999;
  font-weight: 600;
  width: 100%;
  text-align: center;
}

/* Buttons */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.4rem;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  position: relative;
  overflow: hidden;
  color: var(--sanfort-white);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-height: 52px;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.28) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.55s;
}

.btn:hover::before, .btn:focus-visible::before { transform: translateX(100%); }

.btn svg { width: 22px; height: 22px; fill: currentColor; flex-shrink: 0; }

.btn-social { box-shadow: 0 6px 22px rgba(0,0,0,0.1); }
.btn-social:hover, .btn-social:focus-visible {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0,0,0,0.16);
}

.btn-instagram { background: linear-gradient(135deg, #f09433, #dc2743 50%, #bc1888); }
.btn-facebook { background: linear-gradient(135deg, #1877f2, #0d65d9); }
.btn-youtube { background: linear-gradient(135deg, #ff0000, #cc0000); }

.btn-direction {
  background: linear-gradient(135deg, var(--sanfort-pink), var(--sanfort-pink-dark));
  box-shadow: 0 8px 28px var(--sanfort-shadow);
  font-size: 1.05rem;
  padding: 1.05rem 1.5rem;
}

.btn-direction:hover, .btn-direction:focus-visible {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 36px rgba(230, 44, 86, 0.38);
}

.btn-play {
  background: linear-gradient(135deg, var(--sanfort-yellow), var(--sanfort-orange));
  color: var(--sanfort-navy);
  box-shadow: 0 6px 22px rgba(252, 185, 0, 0.4);
  width: 100%;
  max-width: 280px;
  margin: 0.5rem auto 0;
  display: flex;
}

.btn-play:hover:not(:disabled), .btn-play:focus-visible:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
}

.btn-play:disabled { opacity: 0.65; cursor: default; }

.hero-contact {
  margin-top: 1.5rem;
  font-size: 0.84rem;
  color: #666;
}

.hero-contact a {
  color: var(--sanfort-blue);
  text-decoration: none;
  font-weight: 700;
}

.hero-contact a:hover { color: var(--sanfort-pink); }
.hero-contact .dot { margin: 0 0.35rem; opacity: 0.4; }

.scroll-hint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin-top: 1.25rem;
  color: var(--sanfort-pink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  animation: bounceHint 2.5s ease-in-out infinite;
}

.scroll-hint svg { width: 22px; height: 22px; fill: currentColor; }

@keyframes bounceHint {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Game Console */
.game-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
}

.game-console-card {
  width: 100%;
  max-width: 520px;
  background: var(--sanfort-glass);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-radius: var(--radius-xl);
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 8px 32px rgba(151, 117, 250, 0.12),
    0 4px 16px rgba(105, 219, 124, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  animation: fadeUp 0.9s ease-out 0.12s both;
}

.game-header { text-align: center; margin-bottom: 1rem; }

.game-eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--sanfort-blue);
  margin-bottom: 0.25rem;
}

.game-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 1.85rem);
  color: var(--sanfort-navy);
  margin-bottom: 0.2rem;
}

.game-sub {
  font-size: 0.88rem;
  color: #666;
  margin-bottom: 0.85rem;
}

.game-audio-bar { margin-bottom: 1rem; }

/* Game tabs */
.game-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  background: rgba(49, 91, 124, 0.06);
  padding: 0.35rem;
  border-radius: var(--radius-md);
}

.game-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.65rem 0.5rem;
  border: none;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-display);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
  min-height: 64px;
}

.game-tab .tab-icon { font-size: 1.35rem; }
.game-tab .tab-text { font-size: 0.78rem; font-weight: 600; color: #666; }

.game-tab.active {
  background: white;
  box-shadow: 0 4px 16px rgba(230, 44, 86, 0.12);
  transform: scale(1.02);
}

.game-tab.active .tab-text { color: var(--sanfort-pink); }

/* Game screens */
.game-screen { display: none; text-align: center; }
.game-screen.active { display: block; animation: fadeIn 0.35s ease; }

.game-stats {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.stat {
  flex: 1;
  max-width: 100px;
  background: white;
  padding: 0.45rem 0.6rem;
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  border: 2px solid rgba(230, 44, 86, 0.1);
}

.stat-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #999;
  font-weight: 800;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--sanfort-pink);
  line-height: 1.2;
}

.game-prompt-card {
  background: linear-gradient(145deg, #fff, #fef6f9);
  border: 3px solid rgba(230, 44, 86, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 6px 20px rgba(230, 44, 86, 0.08);
}

.prompt-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sanfort-blue);
  margin-bottom: 0.25rem;
}

.prompt-text {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 700;
  color: var(--sanfort-pink);
  line-height: 1.1;
}

.letter-display { font-size: clamp(3rem, 10vw, 4rem) !important; }

.prompt-word {
  font-size: 0.88rem;
  color: #666;
  margin-top: 0.35rem;
}

.btn-hear {
  margin-top: 0.65rem;
  padding: 0.4rem 0.85rem;
  border: 2px dashed rgba(230, 44, 86, 0.35);
  border-radius: var(--radius-pill);
  background: white;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sanfort-pink);
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.btn-hear:hover { background: rgba(230, 44, 86, 0.06); transform: scale(1.04); }

/* Color choices */
.color-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.color-choice {
  aspect-ratio: 1.2;
  border: 3px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transition: transform 0.15s var(--ease-bounce), box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
  min-height: 80px;
}

.choice-emoji { font-size: clamp(2rem, 6vw, 2.5rem); filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15)); }

.color-choice:hover:not(:disabled) { transform: scale(1.06); box-shadow: 0 10px 28px rgba(0,0,0,0.14); }
.color-choice:active:not(:disabled) { transform: scale(0.96); }

.color-choice.correct {
  animation: correctPop 0.5s var(--ease-bounce);
  box-shadow: 0 0 0 4px var(--sanfort-green), 0 8px 24px rgba(125, 220, 181, 0.5);
}

.color-choice.wrong {
  animation: shake 0.4s ease;
  box-shadow: 0 0 0 4px #ff6b6b;
}

/* Letter choices */
.letter-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.letter-choice {
  aspect-ratio: 1;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, white, #f8f9ff);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  color: var(--sanfort-blue);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(49, 91, 124, 0.12);
  border: 2px solid rgba(49, 91, 124, 0.12);
  transition: transform 0.15s var(--ease-bounce), background 0.15s;
  -webkit-tap-highlight-color: transparent;
  min-height: 64px;
}

.letter-choice:hover:not(:disabled) {
  transform: scale(1.08);
  background: linear-gradient(145deg, #fff5f8, white);
  border-color: var(--sanfort-pink);
  color: var(--sanfort-pink);
}

.letter-choice.correct {
  animation: correctPop 0.5s var(--ease-bounce);
  background: linear-gradient(145deg, #e8fff4, white);
  border-color: var(--sanfort-green);
  color: #2a9d6a;
}

.letter-choice.wrong { animation: shake 0.4s ease; border-color: #ff6b6b; color: #ff6b6b; }

@keyframes correctPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.game-feedback {
  padding: 0.65rem 1rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  animation: fadeIn 0.25s ease;
}

.game-feedback.success {
  background: rgba(125, 220, 181, 0.25);
  color: #1a7a4c;
}

.game-feedback.error {
  background: rgba(255, 107, 107, 0.15);
  color: #c0392b;
}

.game-feedback.hidden { display: none; }

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0.65rem;
  font-size: 0.76rem;
  color: #666;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border-top: 2px solid rgba(255, 255, 255, 0.8);
}

.site-footer a { color: var(--sanfort-pink); text-decoration: none; font-weight: 700; }
.site-footer a:hover { color: var(--rainbow-purple); }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Tablet */
@media (max-width: 960px) {
  .split-layout { grid-template-columns: 1fr; min-height: auto; }
  .hero { padding-bottom: 0.5rem; }
  .game-panel { padding-top: 0.5rem; }
  .hero-card, .game-console-card { max-width: 540px; margin: 0 auto; }
}

/* Mobile */
@media (max-width: 480px) {
  .hero-card, .game-console-card {
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem;
  }

  .logo { width: min(100%, 240px); }

  .audio-bar { flex-direction: column; }

  .color-options { gap: 0.55rem; }
  .letter-options { grid-template-columns: repeat(3, 1fr); gap: 0.45rem; }

  .game-tab { min-height: 58px; padding: 0.5rem; }
  .game-tab .tab-text { font-size: 0.72rem; }

  .stat-value { font-size: 1.15rem; }

  .bird-3, .butterfly-4 { display: none; }
  .bird, .butterfly { opacity: 0.85; }
}

/* Large desktop */
@media (min-width: 1200px) {
  .hero-card { max-width: 480px; }
  .game-console-card { max-width: 560px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .sky-creatures { display: none; }
}
