:root {
  --lime: #b8e028;
  --lime-deep: #8fc016;
  --olive: #3f6b2e;
  --ink: #12140f;
  --cream: #f4ffe0;
  --pink: #ff5c9a;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  background:
    radial-gradient(1200px 600px at 10% -10%, #d8ff5a 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 20%, #9ad41a 0%, transparent 50%),
    linear-gradient(160deg, #c8f03a 0%, #a6e829 42%, #8ed01a 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.feathers {
  pointer-events: none;
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.feather {
  position: absolute;
  top: -40px;
  width: 14px;
  height: 28px;
  background: var(--pink);
  border: 2px solid var(--ink);
  border-radius: 50% 50% 40% 40%;
  opacity: 0.75;
  animation: feather-fall linear forwards;
}

.nav, main, .footer, .sound-toggle { position: relative; z-index: 1; }

.sound-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  border: 3px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  font-weight: 700;
  font-family: inherit;
  padding: 0.65rem 0.9rem;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
}

.sound-toggle[aria-pressed="true"] {
  background: var(--ink);
  color: var(--lime);
}

.sound-toggle:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

.nav {
  width: min(100% - 2rem, var(--max));
  margin: 1rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border: 3px solid var(--ink);
  background: rgba(244, 255, 224, 0.75);
  backdrop-filter: blur(8px);
  animation: slide-down 0.5s ease both;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: "Lilita One", cursive;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}

.brand img {
  border: 2px solid var(--ink);
  background: var(--lime);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.nav-links a:hover { color: var(--olive); }

.nav-ctas { display: flex; gap: 0.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--ink);
  padding: 0.55rem 0.95rem;
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
  transition: transform 0.18s ease, background 0.18s ease;
}

.btn:hover { transform: translateY(-2px) rotate(-1deg); }
.btn:active { transform: translateY(1px) scale(0.98); }

.btn-solid { background: var(--ink); color: var(--lime); }
.btn-ghost { background: transparent; }
.btn-lg { padding: 0.85rem 1.25rem; font-size: 1.05rem; }

.bounce-btn { animation: soft-bounce 2.4s ease-in-out infinite; }
.bounce-btn:nth-child(2) { animation-delay: 0.35s; }

.hero {
  width: min(100% - 2rem, var(--max));
  margin: 1.5rem auto 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: center;
  min-height: min(78vh, 720px);
}

.eyebrow {
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-family: "Lilita One", cursive;
  font-size: clamp(4.5rem, 12vw, 8rem);
  line-height: 0.9;
  margin: 0;
  letter-spacing: 0.02em;
  text-shadow: 6px 6px 0 rgba(18, 20, 15, 0.15);
  animation: pop-in 0.7s ease both;
}

.wobble-title {
  display: inline-block;
  animation: pop-in 0.7s ease both, title-wobble 2.8s ease-in-out 0.7s infinite;
}

.lede {
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 600;
  max-width: 20ch;
  margin: 1rem 0 1.5rem;
  animation: rise 0.8s ease 0.1s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.8s ease 0.2s both;
}

.tiny {
  margin-top: 1rem;
  opacity: 0.8;
  font-size: 0.92rem;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
}

.mascot-wrap {
  position: relative;
  z-index: 1;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.mascot {
  width: min(100%, 420px);
  border: 4px solid var(--ink);
  background: var(--lime);
  display: block;
  animation: floaty 4s ease-in-out infinite;
  transition: filter 0.2s ease;
}

.mascot-wrap:hover .mascot { filter: saturate(1.15); }
.mascot-wrap.bonk .mascot {
  animation: bonk 0.55s ease;
}

.poke-hint {
  position: absolute;
  right: -0.5rem;
  top: 1rem;
  background: var(--pink);
  color: white;
  border: 3px solid var(--ink);
  padding: 0.25rem 0.55rem;
  font-weight: 700;
  font-size: 0.85rem;
  transform: rotate(8deg);
  animation: hint-pop 1.6s ease-in-out infinite;
}

.speech {
  position: absolute;
  top: 8%;
  left: 4%;
  z-index: 2;
  background: var(--cream);
  border: 3px solid var(--ink);
  padding: 0.45rem 0.7rem;
  font-family: "Lilita One", cursive;
  font-size: 1.1rem;
  transform: rotate(-6deg);
  animation: speech-in 0.35s ease;
}

.halo {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #fff59a 0%, transparent 70%);
  filter: blur(8px);
  z-index: 0;
  animation: pulse 3.5s ease-in-out infinite;
}

.strip {
  width: min(100% - 2rem, var(--max));
  margin: 1.5rem auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 3px solid var(--ink);
  background: rgba(244, 255, 224, 0.7);
}

.strip-item {
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-right: 3px solid var(--ink);
}

.strip-item:last-child { border-right: 0; }
.strip-item strong { font-family: "Lilita One", cursive; font-size: 1.2rem; }

.spin-in:nth-child(1) { animation: rise 0.6s ease 0.05s both; }
.spin-in:nth-child(2) { animation: rise 0.6s ease 0.15s both; }
.spin-in:nth-child(3) { animation: rise 0.6s ease 0.25s both; }

.section {
  width: min(100% - 2rem, var(--max));
  margin: 2.5rem auto;
}

.section-head h2 {
  font-family: "Lilita One", cursive;
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 0.5rem;
}

.section-head p {
  margin: 0;
  max-width: 46ch;
  font-size: 1.05rem;
}

.about-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.panel {
  border: 3px solid var(--ink);
  background: rgba(244, 255, 224, 0.78);
  padding: 1.2rem;
}

.wiggle-card:hover {
  animation: wiggle 0.45s ease;
}

.panel h3 {
  font-family: "Lilita One", cursive;
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.panel p { margin: 0; line-height: 1.55; }

.gallery {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 3px solid var(--ink);
  background: var(--lime);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.tilt-img:hover {
  transform: rotate(-2deg) scale(1.03);
}

.tilt-img:active {
  transform: rotate(3deg) scale(0.98);
}

.link-row {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border: 3px solid var(--ink);
  background: var(--ink);
  color: var(--lime);
  text-decoration: none;
  padding: 1.4rem;
  transition: transform 0.18s ease;
}

.link-card:hover { transform: translate(-4px, -4px); }
.shake-hover:hover { animation: shake 0.4s ease; }
.link-kicker { opacity: 0.75; font-size: 0.85rem; text-transform: lowercase; letter-spacing: 0.04em; }
.link-card strong { font-family: "Lilita One", cursive; font-size: 2rem; }

.cta-band {
  margin-top: 1.75rem;
  padding: 1.25rem 1.35rem;
  border: 3px solid var(--ink);
  background: rgba(244, 255, 224, 0.72);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-band-end { margin-top: 1.4rem; }

.cta-band-copy {
  margin: 0;
  font-family: "Lilita One", cursive;
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  line-height: 1.15;
}

.cta-band .hero-actions { margin: 0; }

.cta-footnote {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

.legal a { color: var(--olive); font-weight: 700; }
.legal p + p { margin-top: 0.85rem; }

.footer {
  width: min(100% - 2rem, var(--max));
  margin: 2rem auto 2.5rem;
  padding-top: 1.25rem;
  border-top: 3px solid var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Lilita One", cursive;
  font-size: 1.2rem;
}

.footer-brand img { border: 2px solid var(--ink); }

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
}

.footer-links a:hover { color: var(--olive); border-color: var(--olive); }

.footer p { margin: 0; opacity: 0.85; }

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1.5deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.05); }
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-down {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes title-wobble {
  0%, 100% { transform: rotate(-1deg); }
  50% { transform: rotate(1.5deg); }
}

@keyframes soft-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes bonk {
  0% { transform: scale(1) rotate(0); }
  30% { transform: scale(1.12) rotate(-6deg); }
  55% { transform: scale(0.94) rotate(5deg); }
  100% { transform: scale(1) rotate(0); }
}

@keyframes hint-pop {
  0%, 100% { transform: rotate(8deg) scale(1); }
  50% { transform: rotate(12deg) scale(1.08); }
}

@keyframes speech-in {
  from { opacity: 0; transform: rotate(-6deg) scale(0.8); }
  to { opacity: 1; transform: rotate(-6deg) scale(1); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-2deg); }
  75% { transform: rotate(2deg); }
}

@keyframes shake {
  0%, 100% { transform: translate(-4px, -4px); }
  25% { transform: translate(-7px, -2px) rotate(-1deg); }
  75% { transform: translate(-2px, -6px) rotate(1deg); }
}

@keyframes feather-fall {
  0% { transform: translateY(0) rotate(0); opacity: 0; }
  10% { opacity: 0.8; }
  100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 1rem 0 0; }
  .hero-art { order: -1; }
  .mascot { width: min(70%, 280px); }
  .strip, .about-grid, .gallery, .link-row { grid-template-columns: 1fr; }
  .strip-item { border-right: 0; border-bottom: 3px solid var(--ink); }
  .strip-item:last-child { border-bottom: 0; }
  .sound-toggle { right: 0.75rem; bottom: 0.75rem; }
}
