/* ============================================================
   FRESHY THE LITTLE BLUE PENGUIN — styles.css
   Brand CSS — all styles, animations, responsive layout
   ============================================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Nunito', 'Helvetica Neue', Arial, sans-serif;
  background: #fff;
  color: #1a2a3a;
  overflow-x: hidden;
  line-height: 1.6;
}

img, svg { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ---------- CSS VARIABLES ---------- */
:root {
  --sky: #ADE4F5;
  --sky-dark: #7ECDE3;
  --sky-light: #D8F3FC;
  --pink: #FF69B4;
  --pink-light: #FFE4F0;
  --pink-dark: #FF1493;
  --navy: #1a2a4a;
  --navy-light: #2d4a7a;
  --white: #ffffff;
  --off-white: #F0FAFF;
  --text: #1a2a3a;
  --text-light: #5a7a9a;
  --orange: #FF8C42;
  --green: #5CBF6A;
  --yellow: #FFD700;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-xl: 48px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(0,80,140,0.10);
  --shadow-md: 0 6px 24px rgba(0,80,140,0.14);
  --shadow-lg: 0 12px 48px rgba(0,80,140,0.18);
  --shadow-pink: 0 8px 32px rgba(255,105,180,0.25);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- SNOW CANVAS ---------- */
#snowCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: 'Fredoka One', 'Nunito', cursive;
  line-height: 1.2;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.section-title.left { text-align: left; }

.section-sub {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 580px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-badge {
  display: inline-block;
  background: var(--sky);
  color: var(--navy);
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

/* ---------- CONTAINER ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: 'Fredoka One', cursive;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: 3px solid transparent;
  position: relative;
  z-index: 1;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--pink);
  color: var(--white);
  box-shadow: var(--shadow-pink);
  border-color: var(--pink-dark);
}
.btn-primary:hover {
  background: var(--pink-dark);
  box-shadow: 0 12px 40px rgba(255,105,180,0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--sky-dark);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background: var(--sky-light);
  border-color: var(--sky);
}

.btn-large {
  padding: 18px 40px;
  font-size: 1.2rem;
}

.btn-yt {
  background: #FF0000;
  color: white;
  border-color: #cc0000;
  box-shadow: 0 6px 24px rgba(255,0,0,0.3);
}
.btn-yt:hover {
  background: #cc0000;
  box-shadow: 0 10px 36px rgba(255,0,0,0.4);
}

.btn-nav-yt {
  background: #FF0000;
  color: white !important;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-family: 'Fredoka One', cursive;
  font-size: 0.95rem;
  box-shadow: 0 2px 12px rgba(255,0,0,0.3);
  transition: transform var(--transition), background var(--transition);
}
.btn-nav-yt:hover {
  background: #cc0000;
  transform: translateY(-2px);
}

.btn-fact {
  background: var(--sky);
  color: var(--navy);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-family: 'Fredoka One', cursive;
  transition: background var(--transition), transform var(--transition);
}
.btn-fact:hover {
  background: var(--sky-dark);
  transform: translateY(-2px);
}

.btn-merch {
  background: var(--navy);
  color: var(--white);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-family: 'Fredoka One', cursive;
  font-size: 0.9rem;
  transition: background var(--transition), transform var(--transition);
  margin-top: auto;
  align-self: flex-start;
}
.btn-merch:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
}

.btn-newsletter {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-md);
  border-color: var(--navy-light);
  width: 100%;
  justify-content: center;
  font-size: 1.15rem;
}
.btn-newsletter:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
}

.yt-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ---------- WAVE DIVIDERS ---------- */
.wave-divider {
  position: relative;
  z-index: 2;
  margin-bottom: -2px;
  line-height: 0;
}
.wave-divider svg { width: 100%; display: block; }

/* ---------- NAV ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--sky-light);
  box-shadow: 0 2px 20px rgba(0,80,140,0.08);
}

.nav-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fredoka One', cursive;
  font-size: 1.6rem;
  color: var(--navy);
  flex-shrink: 0;
}
.logo-icon { font-size: 1.8rem; }
.logo-face {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(90,180,220,0.4));
}
.logo-text {
  display: inline-flex;
  gap: 1px;
}
.ping-letter {
  display: inline-block;
  animation: letterPing 1.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.12s);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--pink);
}
.nav-logo:hover .ping-letter {
  animation: letterPingFast 0.5s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.07s);
}
@keyframes letterPing {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}
@keyframes letterPingFast {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.2); color: #ff1493; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-links li a {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  transition: background var(--transition), color var(--transition);
}
.nav-links li a:hover {
  background: var(--sky-light);
  color: var(--navy);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background var(--transition);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle:hover { background: var(--sky-light); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--sky) 0%, #c8eef8 40%, #e8f8fd 70%, var(--sky-light) 100%);
  padding: 60px 0 0;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.8), rgba(173,228,245,0.3));
  border: 2px solid rgba(255,255,255,0.6);
  animation: floatBubble linear infinite;
}

.bubble:nth-child(1) { width: 60px; height: 60px; left: 8%; bottom: -60px; animation-duration: 8s; animation-delay: 0s; }
.bubble:nth-child(2) { width: 90px; height: 90px; left: 22%; bottom: -90px; animation-duration: 12s; animation-delay: 1.5s; }
.bubble:nth-child(3) { width: 45px; height: 45px; left: 42%; bottom: -45px; animation-duration: 9s; animation-delay: 3s; }
.bubble:nth-child(4) { width: 75px; height: 75px; left: 62%; bottom: -75px; animation-duration: 11s; animation-delay: 0.5s; }
.bubble:nth-child(5) { width: 55px; height: 55px; left: 78%; bottom: -55px; animation-duration: 7s; animation-delay: 2s; }
.bubble:nth-child(6) { width: 100px; height: 100px; left: 90%; bottom: -100px; animation-duration: 14s; animation-delay: 4s; }

@keyframes floatBubble {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.7; }
  100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.8);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
  border: 2px solid var(--sky-dark);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(94,184,212,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(94,184,212,0); }
}

.hero-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--navy);
  line-height: 1.05;
  margin-bottom: 20px;
}

.highlight {
  color: var(--pink);
  position: relative;
  display: inline-block;
}
.highlight::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 6px;
  background: var(--pink);
  border-radius: var(--radius-pill);
  opacity: 0.4;
}

.hero-sub {
  font-size: 1.15rem;
  color: #2d4a6a;
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-tagline {
  font-family: 'Fredoka One', cursive;
  font-size: 1.6rem;
  color: var(--pink);
  opacity: 0.9;
}

/* Freshy SVG character */
.hero-penguin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.freshy-svg {
  width: 100%;
  max-width: 360px;
  filter: drop-shadow(0 20px 50px rgba(0,80,140,0.2));
  animation: freshy-bob 3s ease-in-out infinite;
  transform-origin: bottom center;
}

@keyframes freshy-bob {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  25% { transform: translateY(-12px) rotate(1deg); }
  75% { transform: translateY(-6px) rotate(-0.5deg); }
}

.waddle-row {
  display: flex;
  gap: 8px;
  font-size: 2rem;
}

.waddle-penguin {
  display: inline-block;
  animation: waddle 0.8s ease-in-out infinite alternate;
}
.waddle-penguin.delay-1 { animation-delay: 0.2s; }
.waddle-penguin.delay-2 { animation-delay: 0.4s; }

@keyframes waddle {
  0% { transform: rotate(-10deg) translateX(-3px); }
  100% { transform: rotate(10deg) translateX(3px); }
}

/* ---------- VIDEOS SECTION ---------- */
.videos-section {
  background: #fff;
  padding: 80px 0 0;
  position: relative;
  z-index: 1;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
  margin-bottom: 48px;
}

.video-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.video-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.video-card.featured {
  grid-column: 1 / -1;
  flex-direction: row;
}

.video-thumb {
  position: relative;
  overflow: hidden;
}

.yt-embed-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: var(--navy);
}
.yt-embed-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

.video-card.featured .video-thumb {
  flex: 0 0 55%;
}

.placeholder-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--sky), var(--sky-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background var(--transition);
}
.placeholder-thumb:hover .play-btn {
  transform: scale(1.15);
  background: rgba(255,255,255,1);
}

.play-overlay {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.play-btn {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--pink);
  transition: transform var(--transition), background var(--transition);
  padding-left: 4px;
}

.placeholder-emoji {
  font-size: 2.5rem;
}

.placeholder-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  color: var(--navy);
  background: rgba(255,255,255,0.85);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.video-info {
  padding: 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.video-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.video-info h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 8px;
  font-family: 'Fredoka One', cursive;
}
.video-info p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.5;
}

.videos-cta {
  text-align: center;
  padding-bottom: 80px;
}

/* ---------- FUN FACTS SECTION ---------- */
.fun-facts-section {
  background: var(--sky);
  padding: 80px 0 0;
  position: relative;
  z-index: 1;
}

.fact-display {
  background: white;
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}

.fact-display::before {
  content: '❄️';
  position: absolute;
  font-size: 4rem;
  top: -20px;
  right: -10px;
  opacity: 0.15;
  transform: rotate(20deg);
}

.fact-penguin-wrap {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.fact-penguin {
  font-size: 5rem;
  animation: wobble 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes wobble {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

.speech-bubble {
  background: var(--sky-light);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  flex: 1;
  min-width: 200px;
  position: relative;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--sky);
}
.speech-bubble::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 28px;
  border: 10px solid transparent;
  border-right-color: var(--sky);
}
.speech-bubble::after {
  content: '';
  position: absolute;
  left: -15px;
  top: 30px;
  border: 8px solid transparent;
  border-right-color: var(--sky-light);
}

#factText {
  font-family: 'Fredoka One', cursive;
  font-size: 1.35rem;
  color: var(--navy);
  line-height: 1.5;
  transition: opacity 0.3s ease;
}

.fact-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.fact-counter {
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  color: var(--text-light);
  min-width: 60px;
  text-align: center;
}

.fact-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.fact-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sky-dark);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}
.fact-dot.active {
  background: var(--pink);
  transform: scale(1.4);
}

.fact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-bottom: 80px;
}

.fact-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  border-bottom: 4px solid var(--sky-dark);
}
.fact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.fact-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.fact-card h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 8px;
  font-family: 'Fredoka One', cursive;
}

.fact-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ---------- PENGUIN GAME SECTION ---------- */
.game-section {
  background: #fff;
  padding: 80px 0 0;
  position: relative;
  z-index: 1;
}

.game-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: start;
}

.game-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.game-canvas-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--sky);
  background: var(--sky-light);
}

#penguinCanvas {
  display: block;
  border-radius: calc(var(--radius-lg) - 4px);
}

.canvas-bg-decoration {
  position: absolute;
  top: 8px;
  left: 0; right: 0;
  display: flex;
  justify-content: space-around;
  font-size: 1.2rem;
  pointer-events: none;
  opacity: 0.6;
}

.game-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.game-name-label {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
  align-self: flex-start;
}

.penguin-name-input {
  width: 100%;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  border: 3px solid var(--sky);
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  color: var(--navy);
  background: var(--off-white);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  text-align: center;
}
.penguin-name-input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255,105,180,0.15);
}
.penguin-name-input::placeholder {
  color: #a0b8c8;
  font-size: 1rem;
}

.game-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 80px;
}

.control-section {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  border: 2px solid var(--sky);
}

.control-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 14px;
}

.color-swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.swatch {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.8);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.swatch:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 16px rgba(0,80,140,0.25);
}
.swatch.active {
  border-color: var(--navy) !important;
  transform: scale(1.2);
  box-shadow: 0 0 0 3px white, 0 0 0 5px var(--navy);
}

.accessory-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.acc-btn {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--sky-dark);
  background: white;
  color: var(--navy);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.acc-btn:hover {
  background: var(--sky-light);
  transform: translateY(-2px);
}
.acc-btn.active {
  background: var(--pink);
  border-color: var(--pink-dark);
  color: white;
}

/* ---------- MERCH SECTION ---------- */
.merch-section {
  background: var(--pink-light);
  padding: 80px 0 0;
  position: relative;
  z-index: 1;
}

.merch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.merch-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.merch-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.merch-img {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}
.merch-img::after {
  content: '✨';
  position: absolute;
  font-size: 1.5rem;
  top: 12px;
  right: 16px;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.7) rotate(20deg); }
}

.merch-emoji {
  animation: merch-bounce 2s ease-in-out infinite;
  display: inline-block;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.15));
}

@keyframes merch-bounce {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-10px) rotate(3deg); }
}

.merch-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.merch-info h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  color: var(--navy);
}
.merch-info p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.5;
  flex: 1;
}

.merch-price {
  display: inline-block;
  background: var(--sky-light);
  color: var(--navy-light);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 2px dashed var(--sky-dark);
}

.merch-cta {
  text-align: center;
  padding-bottom: 80px;
}
.merch-note {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--text-light);
}

/* ---------- NEWSLETTER SECTION ---------- */
.newsletter-section {
  background: var(--sky);
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.newsletter-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
}

.newsletter-penguin {
  font-size: 5rem;
  animation: fresh-bounce 2.5s ease-in-out infinite;
  align-self: flex-start;
  margin-top: 16px;
}

@keyframes fresh-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.05); }
}

.newsletter-badge {
  background: var(--pink-light);
  color: var(--pink-dark);
  border: 2px solid var(--pink);
}

.newsletter-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--navy);
  margin-bottom: 12px;
}

.newsletter-sub {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 28px;
  line-height: 1.6;
  max-width: 500px;
}

.newsletter-form { display: flex; flex-direction: column; gap: 16px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
}

.form-input {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 2.5px solid var(--sky);
  font-size: 1rem;
  color: var(--text);
  background: var(--off-white);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255,105,180,0.15);
}
.form-input::placeholder { color: #a0b8c8; }

.form-consent { }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--pink);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}

.checkbox-text {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.4;
}

.required-star { color: var(--pink); }

.form-privacy {
  font-size: 0.8rem;
  color: var(--text-light);
  text-align: center;
  margin-top: -8px;
}

.form-success {
  text-align: center;
  padding: 32px;
  background: var(--sky-light);
  border-radius: var(--radius-lg);
  border: 2px solid var(--sky);
}
.success-icon { font-size: 3rem; display: block; margin-bottom: 12px; }
.form-success h3 { font-family: 'Fredoka One', cursive; color: var(--navy); font-size: 1.8rem; margin-bottom: 8px; }
.form-success p { color: var(--text-light); }

.newsletter-decoration {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: flex-start;
  margin-top: 16px;
}

.float-emoji {
  font-size: 1.8rem;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}
.float-emoji.delay-1 { animation-delay: 0.5s; }
.float-emoji.delay-2 { animation-delay: 1s; }
.float-emoji.delay-3 { animation-delay: 1.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-8px) rotate(5deg); }
}

/* ---------- ABOUT SECTION ---------- */
.about-section {
  background: #fff;
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: center;
}

.about-penguin-wrap {
  text-align: center;
  position: relative;
}

.about-penguin-big {
  font-size: 10rem;
  display: inline-block;
  animation: about-bounce 3s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(0,80,140,0.2));
}

@keyframes about-bounce {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-16px) rotate(3deg); }
}

.about-hearts {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 1.5rem;
  margin-top: 12px;
}
.about-hearts span { animation: float 2.5s ease-in-out infinite; }
.about-hearts span:nth-child(2) { animation-delay: 0.4s; }
.about-hearts span:nth-child(3) { animation-delay: 0.8s; }

.about-text { display: flex; flex-direction: column; gap: 16px; }

.about-text p {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.75;
}

.about-tagline {
  font-family: 'Fredoka One', cursive !important;
  font-size: 2rem !important;
  color: var(--pink) !important;
  margin: 8px 0 16px !important;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  position: relative;
  z-index: 1;
}

.footer-wave {
  line-height: 0;
  margin-bottom: -2px;
}
.footer-wave svg { width: 100%; display: block; }

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  color: white;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 340px;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.7);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), background var(--transition);
}
.social-link svg {
  width: 20px;
  height: 20px;
  fill: white;
}
.social-link:hover { transform: translateY(-3px); }
.social-link.yt { background: #FF0000; }
.social-link.yt:hover { background: #cc0000; }
.social-link.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-link.tt { background: #010101; border: 1px solid #333; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  color: white;
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--sky); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.copyright {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer-legal {
  font-size: 0.85rem;
}
.footer-legal a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-legal a:hover { color: var(--sky); }

/* ---------- MERCH PAGE ---------- */
.merch-hero {
  background: linear-gradient(135deg, var(--pink-light), var(--sky-light));
  padding: 80px 0 60px;
  text-align: center;
}
.merch-hero-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}
.merch-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--navy);
  margin-bottom: 16px;
}
.merch-hero p {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 480px;
  margin: 0 auto 32px;
}
.merch-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 60px 0;
}
.merch-page-section {
  padding: 60px 0;
  background: #fff;
}

.coming-soon-banner {
  background: var(--navy);
  color: white;
  text-align: center;
  padding: 24px;
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
}
.coming-soon-banner span {
  background: var(--pink);
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  margin: 0 8px;
  font-size: 1rem;
}

/* ---------- SCROLL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- MOBILE RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text { order: 2; }
  .hero-penguin { order: 1; }
  .hero-actions { justify-content: center; }
  .hero-sub { margin: 0 auto 32px; }

  .video-grid { grid-template-columns: 1fr; }
  .video-card.featured { flex-direction: column; }
  .video-card.featured .video-thumb { flex: none; }

  .fact-cards { grid-template-columns: repeat(2, 1fr); }

  .game-layout { grid-template-columns: 1fr; }
  .game-preview { max-width: 400px; margin: 0 auto; }

  .merch-grid { grid-template-columns: repeat(2, 1fr); }

  .newsletter-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .newsletter-penguin { display: none; }
  .newsletter-decoration { display: none; }
  .newsletter-sub { margin: 0 auto 28px; }
  .form-row { grid-template-columns: 1fr; }

  .about-layout { grid-template-columns: 1fr; text-align: center; }
  .about-text { align-items: center; }
  .about-text p { text-align: left; }

  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px;
    border-bottom: 2px solid var(--sky-light);
    box-shadow: var(--shadow-md);
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links li a {
    padding: 12px 16px;
    display: block;
    border-radius: var(--radius-md);
  }
  .nav-links li a.btn-nav-yt {
    text-align: center;
    margin-top: 8px;
  }

  .section-title { font-size: 2rem; }
  .hero-title { font-size: 2.8rem; }
  .fact-cards { grid-template-columns: 1fr; }
  .merch-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .newsletter-card { padding: 32px 24px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .game-canvas-wrap canvas { width: 100%; height: auto; }
  .fact-display { padding: 28px 20px; }
  .speech-bubble { font-size: 0.95rem; }
  #factText { font-size: 1.1rem; }

  .merch-page-grid { grid-template-columns: 1fr; }
}

/* ---------- ACCESSIBILITY ---------- */
:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- UTILITY ---------- */
.text-center { text-align: center; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
