/* =====================================================
   HARRIET'S PAGE — style.css
   Palette: Yellow #FFD700, Black #1a1a1a, White #fff
   ===================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yellow:  #FFD700;
  --yellow2: #FFC200;
  --black:   #1a1a1a;
  --white:   #ffffff;
  --gray:    #f5f5f5;
  --radius:  16px;
  --shadow:  0 4px 20px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }

/* =====================================================
   PASSWORD GATE
   ===================================================== */
.pw-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--yellow) 0%, var(--yellow2) 60%, #ffe066 100%);
  padding: 1.5rem;
}

.pw-gate.unlocking {
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.pw-box {
  background: var(--white);
  border-radius: 24px;
  padding: 3rem 2.5rem 2.5rem;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  max-width: 360px;
  width: 100%;
}

.pw-eagle {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  animation: wobble 3s ease-in-out infinite;
}

.pw-title {
  font-size: 2rem;
  color: var(--black);
  margin-bottom: 0.3rem;
}

.pw-sub {
  font-size: 0.95rem;
  color: #777;
  font-weight: 600;
  margin-bottom: 1.8rem;
}

.pw-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pw-input {
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 1.05rem;
  text-align: center;
  letter-spacing: 2px;
  transition: border-color 0.2s;
  outline: none;
}

.pw-input:focus  { border-color: var(--yellow); }
.pw-input.wrong  { border-color: #e53935; }

.pw-btn {
  padding: 0.8rem;
  background: var(--black);
  color: var(--yellow);
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.pw-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.25); }

.pw-error {
  display: none;
  margin-top: 0.5rem;
  color: #e53935;
  font-size: 0.9rem;
  font-weight: 700;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-8px); }
  40%       { transform: translateX(8px); }
  60%       { transform: translateX(-5px); }
  80%       { transform: translateX(5px); }
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, .hero-sub, .badge {
  font-family: 'Fredoka One', cursive;
  letter-spacing: 0.5px;
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(145deg, var(--yellow) 0%, var(--yellow2) 60%, #ffe066 100%);
  overflow: hidden;
  padding: 2rem;
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeUp 0.9s ease both;
}

.hero-emoji {
  font-size: clamp(4rem, 10vw, 7rem);
  display: block;
  margin-bottom: 0.5rem;
  animation: wobble 3s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(3rem, 9vw, 6rem);
  color: var(--black);
  line-height: 1.1;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.08);
}

.hero-sub {
  margin-top: 0.75rem;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: rgba(0,0,0,0.7);
  font-weight: 700;
}

.hero-btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.85rem 2.2rem;
  background: var(--black);
  color: var(--yellow);
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,0.3); }

/* Background decorative shapes */
.hero-bg-shapes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.18;
  background: var(--black);
}
.s1 { width: 320px; height: 320px; top: -80px; left: -80px; }
.s2 { width: 200px; height: 200px; bottom: 10%; right: 5%; }
.s3 { width: 120px; height: 120px; top: 55%; left: 10%; }

/* =====================================================
   SECTIONS — shared
   ===================================================== */
.section { padding: 5rem 1.5rem; }
.section-alt { background: var(--gray); }

.container {
  max-width: 960px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--black);
  margin-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 5px;
  background: var(--yellow);
  border-radius: 3px;
  margin-top: 0.4rem;
}

.section-lead {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2rem;
  font-weight: 600;
}

/* =====================================================
   ABOUT
   ===================================================== */
.about-card {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow);
  border-left: 6px solid var(--yellow);
}

.about-photo {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.about-photo img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  border: 5px solid var(--yellow);
  box-shadow: 0 4px 18px rgba(0,0,0,0.15);
  display: block;
}

.about-bio { flex: 1 1 280px; }
.about-bio p { font-size: 1.05rem; line-height: 1.7; }

.badge {
  display: inline-block;
  margin-top: 1.2rem;
  background: var(--yellow);
  color: var(--black);
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
}

.school-link {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.35rem 1rem;
  background: #1B3A6B;
  color: #fff;
  font-family: 'Fredoka One', cursive;
  font-size: 0.95rem;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s;
}
.school-link:hover { background: #0d2448; }

.footer-school { margin-top: 0.5rem; }
.footer-school a { color: var(--yellow); opacity: 0.8; font-size: 0.9rem; text-decoration: underline; }
.footer-school a:hover { opacity: 1; }

.fave-list {
  flex: 1 1 220px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.fave-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

.fave-list .icon {
  font-size: 1.4rem;
  width: 2rem;
  text-align: center;
}

/* =====================================================
   ART GALLERY
   ===================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.4rem;
  margin-bottom: 1.5rem;
}

.gallery-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 0 4px var(--yellow), 0 8px 28px rgba(0,0,0,0.18);
}

.gallery-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

/* Placeholder tile styling */
.gallery-img.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.gallery-caption {
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #444;
}

.gallery-note {
  font-size: 0.85rem;
  color: #888;
  background: #fffde7;
  border: 1px dashed var(--yellow2);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  line-height: 1.6;
}

.gallery-note code {
  background: rgba(0,0,0,0.07);
  padding: 0 4px;
  border-radius: 4px;
  font-size: 0.82rem;
}

/* =====================================================
   BASKETBALL STATS
   ===================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--yellow);
  border-radius: var(--radius);
  padding: 1.8rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.stat-card:hover { transform: scale(1.04); }

.stat-num {
  font-family: 'Fredoka One', cursive;
  font-size: 2.4rem;
  color: var(--black);
  line-height: 1;
}

.stat-label {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(0,0,0,0.65);
}

.mascot-callout {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--black);
  color: var(--yellow);
  border-radius: var(--radius);
  padding: 1.2rem 1.8rem;
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
}

.mascot-emoji { font-size: 2rem; }

/* =====================================================
   PIANO
   ===================================================== */
.piano-wrap {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0 2rem;
}

.piano-keys {
  display: flex;
  gap: 4px;
  background: var(--black);
  padding: 12px 12px 0;
  border-radius: 6px 6px 10px 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.key.white {
  position: relative;
  width: 52px;
  height: 160px;
  background: var(--white);
  border-radius: 0 0 8px 8px;
  border: 1.5px solid #ccc;
  transition: background 0.08s;
  cursor: pointer;
  user-select: none;
}

.key.white:hover   { background: #fffde7; }
.key.white.pressed { background: #ffe066; box-shadow: inset 0 -3px 8px rgba(0,0,0,0.2); }

/* Keyboard letter label on each white key */
.key.white::after {
  content: attr(data-key);
  position: absolute;
  bottom: 10px;
  left: 0; right: 0;
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  color: #bbb;
  pointer-events: none;
}

.key.white .black {
  position: absolute;
  top: 0;
  left: 60%;
  width: 30px;
  height: 95px;
  background: var(--black);
  border-radius: 0 0 5px 5px;
  z-index: 2;
  cursor: pointer;
  transition: background 0.08s;
}

/* Keys C, E, B have no sharp (positions 0-indexed: 2, 5, 7) */
.key.white:nth-child(3) .black,
.key.white:nth-child(6) .black,
.key.white:nth-child(8) .black { display: none; }

.key.white .black:hover   { background: #333; }
.key.white .black.pressed { background: #555; }

/* Keyboard letter label on each black key */
.key.white .black::after {
  content: attr(data-key);
  position: absolute;
  bottom: 7px;
  left: 0; right: 0;
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-size: 0.6rem;
  font-weight: 800;
  color: rgba(255,255,255,0.55);
  pointer-events: none;
}

.songs-list {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  box-shadow: var(--shadow);
  border-left: 6px solid var(--yellow);
}

.songs-list h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--black);
}

.songs-list ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.songs-list li { font-size: 1rem; font-weight: 600; }

/* =====================================================
   SWIMMING — TC SHARKS
   ===================================================== */
.swim-banner {
  position: relative;
  background: linear-gradient(180deg, #0277BD 0%, #0288D1 60%, #29B6F6 100%);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 2.2rem 2rem;
  margin-bottom: 2rem;
  min-height: 130px;
}

.wave-wrap { position: absolute; bottom: 0; left: 0; right: 0; height: 50px; }

.wave {
  position: absolute;
  bottom: -10px;
  left: -50%;
  width: 200%;
  height: 60px;
  background: rgba(255,255,255,0.12);
  border-radius: 40% 60% 40% 60% / 50% 50% 50% 50%;
  animation: wave-roll 4s ease-in-out infinite;
}
.w2 { animation-delay: 1.3s; background: rgba(255,255,255,0.08); animation-duration: 5s; }
.w3 { animation-delay: 2.6s; background: rgba(255,255,255,0.06); animation-duration: 6s; }

@keyframes wave-roll {
  0%, 100% { transform: translateX(0)    scaleY(1);    }
  50%       { transform: translateX(5%)  scaleY(1.15); }
}

.swim-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.swim-shark {
  font-size: 4rem;
  animation: swim-wiggle 2s ease-in-out infinite;
}

@keyframes swim-wiggle {
  0%, 100% { transform: translateX(0)   rotate(0deg); }
  50%       { transform: translateX(10px) rotate(3deg); }
}

.swim-text h3 { font-size: 1.5rem; color: white; margin-bottom: 0.3rem; }
.swim-text p  { color: rgba(255,255,255,0.88); font-weight: 600; font-size: 1rem; }

.swim-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.2rem;
}

.swim-card {
  background: #0288D1;
  border-radius: var(--radius);
  padding: 1.8rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.swim-card:hover { transform: scale(1.04); }

.swim-num {
  font-family: 'Fredoka One', cursive;
  font-size: 2.4rem;
  color: var(--white);
  line-height: 1;
}

.swim-label {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.85);
}

/* =====================================================
   FRIENDS
   ===================================================== */
.friend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 2rem 1.5rem;
}

.friend-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
}

.friend-photo-wrap {
  position: relative;
  display: inline-block;
}

/* Shared shape for both real photos and initial avatars */
.friend-avatar,
.friend-card img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 4px solid var(--yellow);
  box-shadow: var(--shadow);
  display: block;
  object-fit: cover;
  object-position: center top;
}

/* Initial / placeholder avatar */
.friend-avatar {
  background: var(--fc, #888);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka One', cursive;
  font-size: 3rem;
  color: white;
  transition: transform 0.2s;
}

.friend-card:hover .friend-avatar,
.friend-card:hover img { transform: scale(1.05); }

.friend-photo-soon {
  position: absolute;
  bottom: 4px;
  right: -4px;
  background: var(--yellow);
  color: var(--black);
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 20px;
  white-space: nowrap;
}

.friend-name {
  font-size: 1.2rem;
  color: var(--black);
}

.friend-fact {
  font-size: 0.88rem;
  color: #666;
  font-weight: 600;
  line-height: 1.4;
}

/* =====================================================
   BOOKS / READING LIST
   ===================================================== */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.4rem;
  margin-bottom: 2.5rem;
}

.book-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem 1.4rem 1.6rem;
  box-shadow: var(--shadow);
  border-left: 6px solid var(--yellow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.book-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
}

.book-delete {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #ccc;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.book-delete:hover { color: #c62828; background: #fde8e8; }

.book-stars-row { margin-bottom: 0.5rem; }
.star-display      { font-size: 1.2rem; }
.star-display.on   { color: var(--yellow); }
.star-display.off  { color: #ddd; }

.book-card-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.15rem;
  color: var(--black);
  margin-bottom: 0.2rem;
  line-height: 1.3;
  padding-right: 1.5rem; /* avoid overlap with × button */
}

.book-card-author {
  font-size: 0.9rem;
  color: #777;
  font-style: italic;
  margin-bottom: 0.3rem;
}

.book-card-date {
  font-size: 0.78rem;
  color: #aaa;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.book-card-notes {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.55;
  font-style: italic;
  border-left: 3px solid var(--yellow);
  padding-left: 0.75rem;
  margin: 0;
}

.no-books {
  font-size: 1rem;
  color: #aaa;
  font-weight: 700;
  text-align: center;
  padding: 2.5rem 1rem;
  grid-column: 1 / -1;
}

/* ---- Add Book Form ---- */
.book-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--yellow);
}

.book-form-title {
  font-size: 1.4rem;
  margin-bottom: 1.3rem;
  color: var(--black);
}

.book-form { display: flex; flex-direction: column; gap: 1.1rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.35rem; }

.form-group label {
  font-size: 0.82rem;
  font-weight: 800;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.req { color: #e53935; }

.form-group input,
.form-group textarea {
  padding: 0.65rem 0.9rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  color: var(--black);
  transition: border-color 0.2s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--yellow); }

/* Star picker */
.star-picker { display: flex; gap: 0.2rem; }

.star-btn {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #ddd;
  cursor: pointer;
  transition: color 0.1s, transform 0.1s;
  line-height: 1;
  padding: 0 2px;
}

.star-btn.lit   { color: var(--yellow); }
.star-btn:hover { transform: scale(1.25); }

.book-submit {
  align-self: flex-start;
  padding: 0.8rem 2rem;
  background: var(--yellow);
  color: var(--black);
  font-family: 'Fredoka One', cursive;
  font-size: 1.05rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 3px 12px rgba(0,0,0,0.15);
}

.book-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.2); }

/* =====================================================
   EAGLE GAME
   ===================================================== */
.game-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #4a90d9;
  cursor: pointer;
}

#eagle-game {
  display: block;
  width: 100%;
  height: auto;
  outline: none;
}

.game-hint {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: #666;
  font-weight: 600;
}

.game-hint kbd {
  display: inline-block;
  padding: 1px 7px;
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.85em;
  color: #333;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--black);
  color: var(--yellow);
  text-align: center;
  padding: 2.5rem 1rem;
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  line-height: 1.8;
}

.footer-tag { font-size: 1rem; opacity: 0.75; }

/* =====================================================
   LIGHTBOX
   ===================================================== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.88);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1.5rem;
  cursor: pointer;
}

.lightbox.open { display: flex; }

.lightbox-img-wrap {
  max-width: min(90vw, 680px);
  max-height: 72vh;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

.lightbox-img-wrap img,
.lightbox-img-wrap .lb-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
}

.lightbox-caption {
  margin-top: 1.2rem;
  color: var(--yellow);
  font-family: 'Fredoka One', cursive;
  font-size: 1.2rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s, transform 0.2s;
}

.lightbox-close:hover { opacity: 1; transform: scale(1.2); }

/* =====================================================
   SCROLL FADE-IN
   Only hide sections when JS is confirmed running.
   Without .js on <html>, all sections are fully visible.
   ===================================================== */
.js .fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.js .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* =====================================================
   RESPONSIVE — 600px breakpoint
   ===================================================== */
@media (max-width: 600px) {
  .about-card { flex-direction: column; padding: 1.5rem; align-items: center; }
  .about-photo img { width: 140px; height: 140px; }
  .swim-inner { flex-direction: column; text-align: center; }
  .friend-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 1.5rem 1rem; }
  .friend-avatar, .friend-card img { width: 100px; height: 100px; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .piano-keys { gap: 2px; }
  .key.white { width: 36px; height: 120px; }
  .key.white .black { width: 22px; height: 70px; }
  .key.white::after, .key.white .black::after { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .book-form-wrap { padding: 1.5rem; }
  .book-grid { grid-template-columns: 1fr; }
  .mascot-callout { font-size: 1rem; }
  .hero-btn { font-size: 1rem; padding: 0.75rem 1.8rem; }
}
