/* ---------------------------------------------------
   Hum N Play — riso zine + y2k + watercolor
   White / Hot Pink / Teal / Deep Ink
--------------------------------------------------- */

:root {
  --bg: #ffffff;
  --ink: #1a1a2e;
  --ink-soft: #4a4a5e;
  --pink: #FF3D8A;
  --pink-soft: #ffd6e6;
  --teal: #0EBFB5;
  --teal-soft: #c8f0ec;
  --shadow: rgba(255, 61, 138, 0.15);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ---------- Grain texture overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Watercolor blooms in background ---------- */
.bloom {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.bloom-pink {
  width: 500px; height: 500px;
  background: var(--pink);
  top: -100px; right: -100px;
  opacity: 0.25;
}

.bloom-teal {
  width: 600px; height: 600px;
  background: var(--teal);
  top: 400px; left: -200px;
  opacity: 0.25;
}

.bloom-pink-2 {
  width: 400px; height: 400px;
  background: var(--pink);
  bottom: 600px; right: -100px;
  opacity: 0.2;
}

/* ---------- Top bar ---------- */
.top {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: 22px 32px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink);
  z-index: 10;
}

.mark {
  font-weight: 500;
  color: var(--pink);
}

.meta {
  color: var(--ink-soft);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 60px 24px 60px;
  text-align: center;
  z-index: 2;
}

.title {
  font-family: 'Gloock', serif;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 12px 20px;
}

.title-word {
  display: inline-block;
  font-size: clamp(70px, 14vw, 160px);
  position: relative;
}

.title-hum {
  color: var(--ink);
  transform: rotate(-2deg);
}

.title-hum::before {
  content: "hum";
  position: absolute;
  top: 4px;
  left: 4px;
  color: var(--pink);
  opacity: 0.6;
  z-index: -1;
}

.title-play {
  color: var(--ink);
  transform: rotate(1deg);
}

.title-play::before {
  content: "play";
  position: absolute;
  top: -3px;
  left: 4px;
  color: var(--teal);
  opacity: 0.7;
  z-index: -1;
}

.title-amp {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(40px, 8vw, 90px);
  color: var(--pink);
  transform: translateY(-10px) rotate(-8deg);
  display: inline-block;
}

/* ---------- Bird stage ---------- */
.bird-stage {
  position: relative;
  width: 320px;
  height: 240px;
  margin: 20px auto 30px;
}

.splotch {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  pointer-events: none;
}

.splotch-1 {
  width: 200px; height: 160px;
  background: var(--pink);
  opacity: 0.3;
  top: 30px; left: 60px;
}

.splotch-2 {
  width: 180px; height: 140px;
  background: var(--teal);
  opacity: 0.35;
  top: 50px; left: 100px;
}

.bird {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  z-index: 2;
}

.wing {
  transform-origin: 110px 92px;
}

.wing-front {
  animation: wingFlap 0.14s ease-in-out infinite alternate;
}

.wing-back {
  animation: wingFlap 0.14s ease-in-out infinite alternate;
  animation-delay: 0.05s;
}

@keyframes wingFlap {
  from { transform: rotate(-22deg) scaleY(0.7); }
  to   { transform: rotate(22deg) scaleY(1); }
}

.heart {
  transform-origin: 118px 102px;
  animation: heartbeat 0.9s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 60%, 100% { transform: translate(118px, 102px) scale(1); }
  30% { transform: translate(118px, 102px) scale(1.4); }
  45% { transform: translate(118px, 102px) scale(1.1); }
}

/* Sparkles */
.sparkle {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  fill: var(--pink);
  animation: twinkle 2s ease-in-out infinite;
}

.sparkle-2 { fill: var(--teal); animation-delay: 0.5s; }
.sparkle-3 { fill: var(--pink); animation-delay: 1s; }
.sparkle-4 { fill: var(--teal); animation-delay: 1.5s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50%      { opacity: 1;   transform: scale(1.1); }
}

/* ---------- Welcome ---------- */
.welcome {
  max-width: 540px;
  margin: 0 auto;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink);
  position: relative;
  z-index: 2;
}

.audio-note {
  max-width: 540px;
  margin: 18px auto 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-align: center;
  position: relative;
  z-index: 2;
}

/* ---------- Games ---------- */
.games {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 32px 80px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  position: relative;
  z-index: 2;
}

.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 26px 28px 60px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 6px 6px 0 var(--teal);
  overflow: hidden;
}

.card:nth-child(even) {
  box-shadow: 6px 6px 0 var(--pink);
}

.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--teal);
}

.card:nth-child(even):hover {
  box-shadow: 9px 9px 0 var(--pink);
}

/* Subtle watercolor inside card on hover */
.card::after {
  content: "";
  position: absolute;
  width: 200px; height: 200px;
  background: var(--pink);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0;
  bottom: -80px; right: -80px;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.card:nth-child(even)::after { background: var(--teal); }

.card:hover::after { opacity: 0.2; }

.card > * { position: relative; z-index: 1; }

.card h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.arrow {
  position: absolute;
  bottom: 22px;
  right: 28px;
  font-size: 24px;
  color: var(--ink);
  transition: transform 0.25s ease;
  z-index: 2;
}

.card:hover .arrow { transform: translateX(6px); }

/* ---------- Feedback ---------- */
.feedback {
  position: relative;
  padding: 80px 32px 100px;
  text-align: center;
  z-index: 2;
}

.feedback-inner {
  max-width: 620px;
  margin: 0 auto;
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: 24px;
  padding: 50px 40px;
  position: relative;
  box-shadow: 8px 8px 0 var(--pink);
}

.feedback-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--teal);
  margin-bottom: 24px;
}

.feedback-text {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.4;
  margin-bottom: 32px;
  color: var(--ink);
}

.feedback-btn {
  display: inline-block;
  padding: 16px 36px;
  background: var(--pink);
  color: var(--bg);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  border: 2px solid var(--ink);
  border-radius: 999px;
  transition: all 0.25s ease;
  box-shadow: 4px 4px 0 var(--ink);
  font-family: 'Inter', sans-serif;
}

.feedback-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
  background: var(--teal);
}

/* ---------- Footer ---------- */
footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 30px 20px 50px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .top { padding: 18px 20px; font-size: 11px; }
  .hero { padding: 40px 20px 40px; }
  .title-word { font-size: clamp(56px, 18vw, 90px); }
  .title-amp  { font-size: 36px; }
  .bird-stage { width: 240px; height: 180px; }
  .welcome { font-size: 18px; padding: 0 10px; }

  .games {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 20px 60px;
  }

  .card { padding: 22px 22px 56px; }
  .card h2 { font-size: 22px; }

  .feedback { padding: 50px 20px 70px; }
  .feedback-inner { padding: 40px 24px; }
  .feedback-text { font-size: 20px; }
}