:root {
  --ink: #1d2433;
  --muted: #5e6878;
  --line: #ece4da;
  --cream: #fffdfb;
  --paper: #ffffff;
  --hero: #2b2260;
  --hero-2: #3d3280;
  --yellow: #f5b400;
  --teal: #128f8a;
  --shadow: 0 18px 40px rgba(29, 36, 51, 0.12);
  --radius: 28px;
  --max: 1120px;
  --pad: clamp(20px, 4vw, 40px);
  --space: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Poppins, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-weight: 700; line-height: 1.15; margin: 0 0 12px; }
h1 { font-size: clamp(40px, 5vw, 64px); letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; }
h3 { font-size: 22px; }
p { margin: 0 0 16px; }
a { color: inherit; }

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  background: white;
  padding: 8px 12px;
  z-index: 5;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--max), calc(100% - var(--pad) * 2)); margin: 0 auto; }

.site-header {
  padding: 16px 0;
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 4;
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-header-actions {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  min-width: 0;
}
.nav-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle-bars span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.nav-toggle-bars span { transition: transform 0.2s ease, opacity 0.2s ease; }
body.nav-open { overflow: hidden; }
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 22px;
}
.logo-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.primary-nav { flex: 1; display: flex; justify-content: center; gap: 28px; }
.header-cta { flex-shrink: 0; }
.primary-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
}
.primary-nav a:hover { color: var(--teal); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button-yellow { background: var(--yellow); color: #2a2208; }
.button-yellow:hover { filter: brightness(0.97); }
.button-ink { background: var(--ink); color: white; }

.hero {
  position: relative;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 196, 90, 0.18), transparent 18%),
    linear-gradient(115deg, var(--hero), var(--hero-2) 70%);
  color: white;
  padding: 72px 0 64px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.script {
  font-family: Caveat, cursive;
  font-size: 32px;
  color: #ffe08a;
  margin: 0 0 8px;
}
.lede { font-size: 18px; color: rgba(255, 255, 255, 0.88); max-width: 460px; }
.hero-frame { position: relative; }
.hero-carousel {
  position: relative;
  width: 100%;
  z-index: 0;
}
.hero-carousel-track {
  position: relative;
  width: 100%;
  height: 460px;
  z-index: 0;
}
.hero-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.65s ease;
  pointer-events: none;
}
.hero-carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.hero-frame img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 36px;
  box-shadow: var(--shadow);
}
.hero-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 2;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(43, 34, 96, 0.35);
}
.hero-carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero-carousel-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}
.hero-carousel-dot[aria-selected="true"] {
  background: #ffe08a;
  transform: scale(1.15);
}
.hero-carousel-dot:focus-visible {
  outline: 2px solid #ffe08a;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .hero-carousel-slide {
    transition: none;
  }
  .hero-carousel-dot {
    transition: none;
  }
}
.shape { position: absolute; pointer-events: none; z-index: 3; }
.shape-ring {
  width: 72px;
  height: 72px;
  border: 8px solid #ff8a5b;
  border-radius: 50%;
  left: -18px;
  bottom: 36px;
  background: transparent;
}
.shape-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #7ddef0;
  right: 24px;
  top: -12px;
}
.shape-tri {
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 22px solid #f5b400;
  right: -6px;
  bottom: 80px;
}
.hero-wave {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 72px;
}

.announce { padding: 0 0 16px; }
.announce-card {
  display: block;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 10px 30px rgba(29, 36, 51, 0.04);
  text-decoration: none;
  color: inherit;
}
.announce-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  background: #f4f7fb;
}
.announce-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 8px 4px;
  font-weight: 600;
}
.about { padding: 8px 0 48px; }
.programs, .band, .play, .gallery { padding: 80px 0; }
.about-grid, .band-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.band-grid { align-items: center; }
.portrait { position: relative; width: min(100%, 380px); margin-inline: auto; }
.portrait img {
  width: 320px;
  height: 320px;
  max-width: 100%;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.ring {
  position: absolute;
  border-radius: 50%;
  border: 10px solid #f5b400;
}
.ring-a { width: 84px; height: 84px; right: 8px; bottom: 18px; }
.ring-b { width: 36px; height: 36px; border-color: #7c6cf0; left: 12px; top: 20px; border-width: 8px; }

.eyebrow {
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.quiet { color: var(--muted); max-width: 520px; }
.facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.facts li {
  display: grid;
  gap: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.facts strong { font-size: 16px; }
.facts span { color: var(--muted); }
.count { font-style: normal; font-weight: 600; color: var(--teal); font-size: 14px; }

.sound-toggle {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.center { text-align: center; margin-bottom: 36px; }
.center .quiet { margin-inline: auto; }
.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.offer {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 20px 28px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(29, 36, 51, 0.04);
}
.offer-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.offer-icon img { width: 100%; height: 100%; object-fit: cover; }
.offer p { color: var(--muted); min-height: 68px; }
.text-link {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 2px;
}

.band { background: #fff7ee; }
.band-grid img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.game {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  scroll-margin-top: 96px;
}
.status {
  background: #f6f3ff;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 14px;
}
.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.card {
  border: 0;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1;
  background: #e7e2f6;
  cursor: pointer;
}
.card img { width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.card.up img, .card.matched img { opacity: 1; }
.card.matched { box-shadow: inset 0 0 0 3px #3dbe8b; }

.scene { background: var(--cream); border-radius: 20px; padding: 12px; }
.scene img { width: 100%; height: 220px; object-fit: cover; border-radius: 16px; margin-bottom: 12px; }
.choices { display: grid; gap: 8px; }
.choice {
  text-align: left;
  font: inherit;
  font-weight: 500;
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
}
.choice.good { background: #e5f8ee; border-color: #b7e7cc; }
.choice.soft { background: #fff0ea; border-color: #ffd0c2; }
.sticker-tray { display: flex; gap: 8px; min-height: 44px; }
.sticker { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

.quiz-play {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}
.quiz-question { margin: 0; }
.quiz-options {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}
.quiz-options .choice,
.quiz-next {
  width: 100%;
  justify-content: flex-start;
}
.choice.picked { background: #e7f0ff; border-color: #b9cff5; }
.quiz-score { font-size: 28px; font-weight: 700; margin: 0 0 8px; }
.quiz-congrats-title { font-size: 22px; font-weight: 700; margin: 0 0 4px; color: var(--ink, #1a1a2e); }
.quiz-congrats-message { margin: 12px 0 0; line-height: 1.5; max-width: 36em; }
.quiz-form { display: grid; gap: 12px; margin-top: 16px; }
.puzzle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: min(100%, 420px);
  margin-inline: auto;
}
#puzzle .game-copy { display: flex; flex-direction: column; align-items: stretch; }
.animal-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  grid-column: 1 / -1;
  margin-top: 8px;
}
.animal-pick .choice { width: 100%; justify-content: center; }
.quiz-again { width: 100%; margin-top: 12px; }
.piece {
  aspect-ratio: 1;
  border: 3px solid white;
  border-radius: 8px;
  padding: 0;
  background-repeat: no-repeat;
  background-size: 300% 300%;
  cursor: pointer;
}
.piece.selected { outline: 4px solid var(--yellow); outline-offset: -4px; }
.puzzle.done .piece { outline: 4px solid #3dbe8b; outline-offset: -4px; }

.quiz-form input,
.quiz-form select {
  font: inherit;
  border: 1px solid #ddd4c8;
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
  background: white;
}

.scallop {
  height: 22px;
  background: radial-gradient(circle at 16px -2px, transparent 14px, #fff7ee 15px) left top / 32px 22px repeat-x;
}
.gallery { background: #fff7ee; padding-top: 48px; }
.gallery-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 16px;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.gallery-grid figure { margin: 0; }
.gallery-grid figure:first-child { grid-row: 1 / span 2; }

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  padding: 28px 0;
  font-size: 14px;
}
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: white; }

.register { padding: 48px 0 80px; }
.register-lead { max-width: 640px; }
.rules { margin: 0 0 28px; padding-left: 1.2rem; color: var(--muted); }
.rules li { margin-bottom: 8px; }
.form {
  display: grid;
  gap: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 10px 30px rgba(29, 36, 51, 0.04);
}
.field { display: grid; gap: 6px; }
.field span { font-weight: 600; font-size: 14px; }
.req { color: #b42318; }
.field input, .field select {
  font: inherit;
  border: 1px solid #ddd4c8;
  border-radius: 12px;
  padding: 12px 14px;
  background: white;
  width: 100%;
}
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { margin-top: 4px; }
.form-error {
  background: #fff0ea;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 600;
}
.thanks {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.thanks a { color: var(--teal); }
@media (max-width: 700px) {
  .pair { grid-template-columns: 1fr; }
  .form { padding: 20px; }
}

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

@media (max-width: 768px) {
  .site-header {
    padding: 8px 0;
  }
  .site-header-inner {
    gap: 12px;
  }
  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 5;
    width: 40px;
    height: 40px;
  }
  .nav-toggle[aria-expanded="true"] {
    border-color: var(--hero);
    background: var(--paper);
    color: var(--hero);
    box-shadow: 0 4px 14px rgba(43, 34, 96, 0.18);
  }
  .nav-toggle[aria-expanded="true"]:hover,
  .nav-toggle[aria-expanded="true"]:focus-visible {
    border-color: var(--teal);
    color: var(--teal);
  }
  .site-header .logo {
    position: relative;
    z-index: 5;
  }
  .logo-text {
    display: none;
  }
  .logo-mark {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }
  .site-header-actions {
    position: fixed;
    inset: 0;
    z-index: 3;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 72px var(--pad) var(--pad);
    background: rgba(255, 253, 251, 0.98);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }
  .site-header-actions.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
  .primary-nav {
    flex: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .primary-nav a {
    padding: 14px 16px;
    border-radius: var(--radius);
    font-size: 16px;
  }
  .primary-nav a:hover,
  .primary-nav a:focus-visible {
    background: white;
  }
  .site-header-actions .header-cta {
    margin-top: 16px;
    width: 100%;
  }
}

@media (max-width: 1023px) {
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 599px) {
  .offer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero-grid, .about-grid, .band-grid, .game { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 88px; }
  .hero-frame img, .hero-carousel-track, .band-grid img { height: 280px; }
  .portrait img { width: 240px; height: 240px; }
  .shape-ring { left: 8px; }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .gallery-grid figure:first-child { grid-row: auto; grid-column: 1 / -1; }
  .gallery-grid img { height: 180px; }
  .announce-row { flex-direction: column; align-items: flex-start; }
  .about { padding: 4px 0 40px; }
  .programs, .band, .play, .gallery { padding: 56px 0; }
  .offer p { min-height: 0; }
}

@media (max-width: 560px) {
  .site-header-actions .header-cta { padding: 0 14px; }
}

/* legacy bar removed */
.utility { display: none !important; }
