:root {
  --ink: #273d5c;
  --soft-ink: #65778e;
  --paper: rgba(255, 255, 255, 0.94);
  --purple: #8b6bd8;
  --violet: #7052c2;
  --yellow: #ffd766;
  --pink: #fb8bb3;
  --teal: #47c5b7;
  --shadow: 0 16px 34px rgba(69, 66, 123, 0.18);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Nunito, ui-rounded, system-ui, sans-serif;
  font-weight: 800;
  background: linear-gradient(180deg, #ffe8b1 0%, #fff8de 47%, #d6f5ca 100%);
}
button, a { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 4px solid #324f78; outline-offset: 4px; }
.sky { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.sun { position: absolute; top: 4vh; right: 7vw; font-size: clamp(3rem, 7vw, 6rem); }
.cloud { position: absolute; opacity: .72; font-size: clamp(2.1rem, 5vw, 4.2rem); animation: drift 42s linear infinite; }
.cloud-one { top: 19vh; left: -12vw; }.cloud-two { top: 38vh; left: -25vw; animation-delay: -18s; animation-duration: 56s; }
.floating-note { position: absolute; color: rgba(113, 82, 194, .32); font-size: clamp(2rem, 5vw, 4rem); animation: bob 4s ease-in-out infinite alternate; }
.note-one { top: 18%; left: 18%; }.note-two { top: 63%; left: 7%; animation-delay: -1.2s; }.note-three { top: 53%; right: 8%; animation-delay: -2.3s; }
@keyframes drift { to { transform: translateX(145vw); } }
@keyframes bob { to { transform: translateY(-18px) rotate(10deg); } }
.topbar, .page-shell { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.topbar { min-height: 82px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 15px; align-items: center; padding-top: 13px; }
.brand { min-width: 0; }.brand > span, .kicker { color: #765cc0; font-size: .78rem; letter-spacing: .12em; }.brand h1 { margin: 2px 0 0; font-size: clamp(1.45rem, 3.6vw, 2.5rem); line-height: 1.02; }
.actions { display: flex; gap: 9px; align-items: center; }.icon-button, .grownup-button, .replay-button, .back-button { border: 0; color: var(--ink); background: var(--paper); box-shadow: var(--shadow); }
.icon-button { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 17px; font-size: 1.55rem; text-decoration: none; }.grownup-button { min-height: 52px; padding: 10px 15px; border-radius: 16px; color: #6247a2; background: #f4ecff; }
.page-shell { padding: 10px 0 22px; }.welcome { display: grid; grid-template-columns: minmax(270px, .88fr) minmax(320px, 1.12fr); gap: 26px; align-items: center; min-height: calc(100svh - 112px); }
.music-garden { position: relative; display: grid; place-items: center; min-height: 330px; overflow: hidden; border: 5px solid #fff; border-radius: 34px; background: radial-gradient(circle at 50% 28%, #fff9c8 0 12%, transparent 13%), linear-gradient(150deg, #beedff, #e9d7ff 50%, #bde8a7); box-shadow: 0 22px 46px rgba(69, 66, 123, .2); }
.music-garden::after { content: ""; position: absolute; right: -12%; bottom: -17%; width: 80%; height: 42%; border-radius: 50% 50% 0 0; background: #7ecd7c; box-shadow: -130px 20px 0 #99d98d; }.garden-character { z-index: 1; font-size: clamp(7rem, 17vw, 12rem); filter: drop-shadow(0 9px 0 rgba(55, 90, 65, .14)); animation: character-bounce 2.6s ease-in-out infinite; }.garden-note { position: absolute; z-index: 1; color: #7b54c9; font-size: clamp(2.2rem, 5vw, 4rem); animation: note-float 2.7s ease-in-out infinite; }.garden-note.one { top: 20%; left: 20%; }.garden-note.two { right: 18%; top: 32%; animation-delay: -1.1s; }.garden-note.three { left: 36%; bottom: 25%; animation-delay: -2s; }
@keyframes character-bounce { 50% { transform: translateY(-13px) rotate(-2deg); } } @keyframes note-float { 50% { transform: translateY(-21px) rotate(9deg); } }
.welcome-copy h2 { margin: 0; font-size: clamp(2.1rem, 4.8vw, 3.7rem); line-height: .98; }.welcome-copy > p { max-width: 560px; margin: 12px 0 18px; font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.35; }
.pack-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }.pack-button { min-height: 132px; padding: 14px; border: 4px solid rgba(255,255,255,.78); border-radius: 23px; color: var(--ink); text-align: left; background: var(--paper); box-shadow: var(--shadow); transition: transform 150ms ease, box-shadow 150ms ease; }.pack-button:hover, .pack-button:active { transform: translateY(-3px) scale(1.01); box-shadow: 0 20px 34px rgba(69, 66, 123, .22); }.pack-button .emoji { display: block; margin-bottom: 3px; font-size: 2.45rem; }.pack-button strong { display: block; font-size: 1.17rem; line-height: 1.08; }.pack-button small { display: block; margin-top: 4px; color: var(--soft-ink); font-size: .9rem; }
.play { padding-top: 5px; }.play-heading { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }.back-button { min-height: 48px; padding: 8px 13px; border-radius: 15px; color: #6247a2; }.pack-name { margin: 0; font-size: clamp(1.15rem, 2.5vw, 1.6rem); }.round-count { margin: 2px 0 0; color: var(--soft-ink); font-size: .9rem; }.replay-button { width: 56px; height: 56px; border-radius: 50%; background: #fff2b9; font-size: 1.4rem; }
.sound-stage { position: relative; display: grid; place-items: center; min-height: min(34dvh, 310px); margin-top: 12px; overflow: hidden; border: 5px solid rgba(255,255,255,.88); border-radius: 31px; background: linear-gradient(145deg, #d9f4ff, #f8e9ff 53%, #e7f7cb); box-shadow: var(--shadow); }.scene-icon { z-index: 2; font-size: clamp(5rem, 12vw, 9rem); filter: drop-shadow(0 8px 0 rgba(55, 90, 65, .12)); transition: transform 180ms ease; }.sound-stage.playing .scene-icon { animation: character-bounce .72s ease-in-out infinite; }.sound-orb { position: absolute; z-index: 1; display: grid; place-items: center; width: clamp(100px, 18vw, 160px); aspect-ratio: 1; border: 6px solid rgba(255,255,255,.88); border-radius: 50%; color: #fff; background: radial-gradient(circle at 34% 26%, #f8d57b 0 14%, #ea8dc1 35%, #8063ca 78%); box-shadow: 0 14px 25px rgba(90, 72, 150, .25); transform: translateX(-135%); }.sound-orb span { font-size: clamp(2.4rem, 5vw, 4rem); }.sound-stage.playing .sound-orb { animation: sound-pop .34s ease-in-out infinite alternate; } @keyframes sound-pop { to { transform: translateX(-135%) scale(1.15); filter: brightness(1.08); } }
.beat-lights { position: absolute; z-index: 3; display: flex; gap: 16px; left: 50%; bottom: 14%; transform: translateX(-50%); }.beat-light { width: clamp(34px, 6vw, 52px); aspect-ratio: 1; border: 4px solid rgba(255,255,255,.9); border-radius: 50%; background: rgba(126, 95, 202, .28); box-shadow: inset 0 -6px 0 rgba(66, 51, 119, .12); transition: transform 130ms ease, background 130ms ease; }.beat-light.active { transform: scale(1.28); background: var(--yellow); box-shadow: 0 0 0 8px rgba(255,215,102,.28), inset 0 -6px 0 rgba(165,114,25,.14); }
.prompt-panel { margin-top: 12px; padding: 16px 22px; border: 5px solid rgba(255,255,255,.8); border-radius: 25px; text-align: center; background: var(--paper); box-shadow: var(--shadow); }.prompt { margin: 0; font-size: clamp(1.35rem, 3.5vw, 2.15rem); line-height: 1.1; }.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }.choice { min-height: 155px; padding: 12px; border: 5px solid rgba(255,255,255,.84); border-radius: 25px; color: var(--ink); background: var(--paper); box-shadow: var(--shadow); transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, opacity 150ms ease; animation: rise 300ms both ease-out; }.choice:hover:not(:disabled) { transform: translateY(-4px); }.choice:active:not(:disabled) { transform: scale(.97); }.choice:disabled { cursor: default; opacity: .62; }.choice.correct { border-color: var(--teal); background: #e7fff4; transform: scale(1.025); }.choice.retry { border-color: var(--yellow); background: #fff9de; }.choice-emoji { display: block; font-size: clamp(4rem, 9vw, 6.5rem); line-height: 1; }.choice-label { display: block; margin-top: 8px; color: var(--soft-ink); font-size: .95rem; } @keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.96); } }
.beat-panel { margin-top: 16px; text-align: center; }.tap-count { display: flex; justify-content: center; gap: 12px; min-height: 29px; margin-bottom: 10px; }.tap-dot { width: 25px; height: 25px; border: 3px solid #d6c6f5; border-radius: 50%; background: #fff; }.tap-dot.done { border-color: #e4a620; background: var(--yellow); box-shadow: 0 0 0 5px rgba(255,215,102,.22); }.drum-button { width: min(240px, 60vw); aspect-ratio: 1.8; border: 6px solid rgba(255,255,255,.9); border-radius: 46%; background: linear-gradient(145deg, #f9a5bd, #d96f94); box-shadow: 0 12px 0 #ad486e, 0 20px 32px rgba(98,64,117,.21); font-size: clamp(4rem, 9vw, 6.2rem); transition: transform 100ms ease, box-shadow 100ms ease; }.drum-button:active:not(:disabled) { transform: translateY(10px); box-shadow: 0 2px 0 #ad486e, 0 10px 20px rgba(98,64,117,.18); }.drum-button:disabled { opacity: .7; cursor: default; }
.feedback { min-height: 2em; margin: 13px 0 0; text-align: center; font-size: 1.14rem; }.feedback.good { color: #197a5c; }.feedback.retry-copy { color: #98700d; }
.overlay { position: fixed; inset: 0; z-index: 10; display: none; place-items: center; padding: 22px; background: rgba(42,44,87,.48); backdrop-filter: blur(5px); }.overlay.active { display: grid; }.loading-card, .finish-card, .grownup-card { width: min(560px, 100%); padding: 30px; border: 5px solid #fff; border-radius: 30px; text-align: center; background: #fffdf8; box-shadow: 0 28px 74px rgba(42,44,87,.36); }.loading-card span, .finish-card > span { display: block; font-size: 4rem; }.loading-card p { margin: 8px 0 0; font-size: 1.2rem; }.finish-card h2, .grownup-card h2 { margin: 6px 0; font-size: clamp(1.8rem, 4vw, 2.5rem); }.finish-card p { margin: 0 0 19px; color: var(--soft-ink); font-size: 1.14rem; }.finish-card button { width: 100%; min-height: 55px; border: 0; border-radius: 17px; color: var(--ink); background: var(--yellow); font-weight: 900; font-size: 1.06rem; }.grownup-card { position: relative; max-height: calc(100svh - 38px); overflow-y: auto; text-align: left; }.grownup-card p { color: #50667d; line-height: 1.42; }.close-button { position: absolute; top: 12px; right: 13px; width: 44px; height: 44px; border: 0; border-radius: 50%; color: #50667d; background: #edf4f9; font-size: 2rem; line-height: 1; }
@media (max-width: 720px) { .topbar,.page-shell { width: min(100% - 20px, 640px); }.topbar { min-height: 65px; gap: 8px; padding-top: 8px; }.icon-button { width: 46px; height: 46px; border-radius: 14px; font-size: 1.3rem; }.grownup-button { min-height: 46px; padding: 8px 10px; border-radius: 14px; }.grownup-button span { display: none; }.brand > span { font-size: .65rem; }.brand h1 { font-size: 1.2rem; }.welcome { grid-template-columns: 1fr; gap: 13px; min-height: auto; padding: 10px 0 22px; }.music-garden { min-height: 220px; width: min(320px, 82vw); margin: auto; border-radius: 26px; }.welcome-copy { text-align: center; }.welcome-copy h2 { font-size: 2rem; }.welcome-copy > p { margin: 9px auto 14px; font-size: 1rem; }.pack-grid { gap: 9px; }.pack-button { min-height: 111px; padding: 11px; border-radius: 18px; }.pack-button .emoji { font-size: 2rem; }.pack-button strong { font-size: 1.03rem; }.pack-button small { font-size: .78rem; }.play-heading { gap: 8px; }.back-button { min-height: 43px; padding: 7px 10px; font-size: .86rem; }.replay-button { width: 47px; height: 47px; }.sound-stage { min-height: 225px; margin-top: 9px; border-radius: 22px; }.prompt-panel { margin-top: 9px; padding: 13px 12px; border-radius: 20px; }.prompt { font-size: 1.28rem; }.choices { gap: 10px; margin-top: 11px; }.choice { min-height: 135px; padding: 8px; border-radius: 18px; }.choice-label { margin-top: 5px; font-size: .8rem; }.feedback { margin-top: 8px; font-size: 1rem; }.grownup-card,.loading-card,.finish-card { padding: 25px 20px; border-radius: 25px; } }
@media (min-width: 721px) and (max-width: 1366px) and (orientation: landscape) { html,body { height: 100dvh; overflow: hidden; }.topbar { min-height: 68px; padding-top: 7px; }.icon-button { width: 48px; height: 48px; }.grownup-button { min-height: 46px; }.welcome { grid-template-columns: 280px 1fr; gap: 18px; min-height: calc(100dvh - 80px); }.music-garden { min-height: 270px; border-radius: 25px; }.welcome-copy h2 { font-size: 2.65rem; }.welcome-copy > p { margin: 8px 0 11px; font-size: 1.05rem; }.pack-grid { gap: 9px; }.pack-button { min-height: 97px; padding: 10px; border-radius: 17px; }.pack-button .emoji { float: left; margin: 0 8px 0 0; font-size: 1.7rem; }.pack-button strong { padding-top: 2px; font-size: 1rem; }.pack-button small { font-size: .78rem; }.play-heading { height: 52px; }.sound-stage { min-height: min(32dvh, 250px); margin-top: 8px; }.prompt-panel { margin-top: 8px; padding: 11px; }.prompt { font-size: 1.55rem; }.choices { gap: 11px; margin-top: 11px; }.choice { min-height: 108px; padding: 8px; border-radius: 19px; }.choice-emoji { font-size: 3.8rem; }.choice-label { margin-top: 4px; }.feedback { margin-top: 7px; }.beat-panel { margin-top: 8px; }.drum-button { width: min(190px, 34vw); font-size: 4rem; } }
