/* DEJITAR MUSIC QUEST — styles */
:root {
  --purple: #6C3CE9; --purple-d: #4B22B8; --sun: #FFC93C; --coral: #FF6B6B; --teal: #22C3A6; --sky: #3DB7FF;
  --pink: #FF6B9D; --orange: #FF9F43; --ink: #2B1B5A; --muted: #6E6593; --card: #fff; --bg1: #7B4DFF; --bg2: #3DB7FF;
  --r: 22px; --shadow: 0 8px 0 rgba(43, 27, 90, .14), 0 12px 30px rgba(43, 27, 90, .12);
  --font: "Nunito", "Baloo 2", "Segoe UI Rounded", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font); color: var(--ink); font-size: 18px; line-height: 1.45;
  background: radial-gradient(circle at 15% 10%, #FFE680 0 60px, transparent 61px), radial-gradient(circle at 90% 25%, rgba(255,255,255,.25) 0 90px, transparent 91px),
    linear-gradient(160deg, var(--bg1), #9B6BFF 45%, var(--bg2));
  background-attachment: fixed; -webkit-tap-highlight-color: transparent;
}
body[data-screen="topic"], body[data-screen="map"] { background: linear-gradient(170deg, #8F65FF, #55C5FF 60%, #7CE0C3); background-attachment: fixed; }
button { font-family: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 18px; }
h1, h2, h3, h4 { margin: .3em 0; line-height: 1.15; }
.boot { color: #fff; font-size: 28px; text-align: center; padding: 30vh 0; font-weight: 800; }
.small { font-size: 14px; } .muted { color: var(--muted); } .center { text-align: center; }
.big-emoji { font-size: 72px; line-height: 1; display: block; margin: 8px auto; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: rgba(43, 27, 90, .85); backdrop-filter: blur(8px); color: #fff; }
.topbar h1 { font-size: 22px; flex: 1; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-logo { font-size: 26px; }
.tb-right { display: flex; align-items: center; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.18); font-weight: 800; font-size: 15px; white-space: nowrap; }
.chip.off { background: var(--coral); }
.chip.big { font-size: 16px; padding: 6px 14px; background: #F1EBFF; color: var(--purple-d); }
.icon-btn { border: 0; background: rgba(255,255,255,.2); border-radius: 50%; width: 42px; height: 42px; font-size: 20px; display: inline-grid; place-items: center; flex: none; transition: transform .1s; }
.icon-btn:active { transform: scale(.9); }
.screen { max-width: 1040px; margin: 0 auto; padding: 18px 16px 60px; }

/* ---------- buttons ---------- */
.btn { border: 0; border-radius: 16px; padding: 10px 18px; font-weight: 800; font-size: 17px; background: #fff; color: var(--ink); box-shadow: 0 5px 0 #D6CCF5; transition: transform .08s, box-shadow .08s; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 #D6CCF5; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: linear-gradient(180deg, #FFD95A, var(--sun)); box-shadow: 0 5px 0 #E0A800; color: var(--ink); }
.btn.primary:active:not(:disabled) { box-shadow: 0 1px 0 #E0A800; }
.btn.gold { background: linear-gradient(180deg, #FFE27A, #F5B700); }
.btn.big { font-size: 19px; padding: 13px 22px; border-radius: 18px; }
.btn.huge { font-size: 23px; padding: 17px 28px; border-radius: 22px; width: 100%; max-width: 520px; }
.btn.small { font-size: 14px; padding: 6px 12px; box-shadow: 0 3px 0 #D6CCF5; border-radius: 12px; }
.btn.ghost { background: rgba(255,255,255,.2); color: #fff; box-shadow: none; }
.btn.live { background: var(--coral); color: #fff; box-shadow: 0 5px 0 #C94545; animation: pulse 1s infinite; }
.btn.pulse { animation: pulse 1.2s infinite; }
.row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; align-items: center; margin: 14px 0; }
.card { background: var(--card); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); margin: 14px auto; }
.narrow { max-width: 640px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }

/* ---------- welcome ---------- */
.welcome { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; position: relative; overflow: hidden; padding: 24px 16px; }
.float-notes span { position: absolute; bottom: -60px; font-size: 44px; color: rgba(255,255,255,.65); animation: rise 9s linear infinite; }
@keyframes rise { to { transform: translateY(-115vh) rotate(40deg); opacity: 0; } }
.brand-parent { letter-spacing: 3px; font-weight: 800; font-size: 14px; opacity: .85; }
.logo-title { font-size: clamp(38px, 8vw, 74px); font-weight: 900; margin: 4px 0; text-shadow: 0 6px 0 var(--purple-d), 0 10px 24px rgba(0,0,0,.25); letter-spacing: 1px; }
.logo-title span { color: var(--sun); }
.powered { font-size: 18px; }
.tagline { font-size: 22px; font-weight: 800; margin: 6px 0 0; }
.slogan { display: inline-block; background: var(--coral); padding: 6px 18px; border-radius: 999px; font-weight: 900; letter-spacing: 1px; box-shadow: 0 5px 0 #C94545; transform: rotate(-2deg); }
.hero-art { position: relative; width: min(520px, 92vw); height: 210px; margin: 10px 0; }
.cartoon-piano { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 320px; height: 120px; background: var(--ink); border-radius: 18px 18px 10px 10px; padding: 34px 12px 10px; display: flex; gap: 3px; box-shadow: 0 8px 0 #1A0F3A; }
.cartoon-piano i { flex: 1; background: #fff; border-radius: 0 0 6px 6px; }
.cartoon-piano b { position: absolute; top: 34px; width: 22px; height: 46px; background: #111; border-radius: 0 0 4px 4px; margin-left: 12px; }
.hero-emoji { position: absolute; font-size: 54px; animation: bob 3s ease-in-out infinite; }
.e1 { left: 0; top: 40px; } .e2 { right: 0; top: 30px; animation-delay: .6s; } .e3 { left: 18%; top: -10px; animation-delay: 1.2s; } .e4 { right: 18%; top: -14px; animation-delay: 1.8s; }
.hero-melody { position: absolute; left: 50%; bottom: 96px; width: 110px; transform: translateX(-50%); animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.hero-melody { animation-name: bobc; } @keyframes bobc { 0%,100% { transform: translateX(-50%); } 50% { transform: translate(-50%, -10px); } }
.welcome-btns { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; max-width: 520px; z-index: 2; }
.welcome-btns .row { margin: 8px 0; }

/* ---------- tiles ---------- */
.tile { border: 0; border-radius: var(--r); background: #fff; padding: 18px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; box-shadow: var(--shadow); transition: transform .12s; font-size: 17px; }
.tile:hover { transform: translateY(-3px) rotate(-1deg); }
.tile span { font-size: 46px; } .tile small { color: var(--muted); }
.menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
.tile.c1 { background: #FFE4E4; } .tile.c2 { background: #FFF1C9; } .tile.c3 { background: #D4F7EE; } .tile.c4 { background: #DCF0FF; }
.tile.c5 { background: #EDE4FF; } .tile.c6 { background: #FFE0EE; } .tile.c7 { background: #E3F9D5; } .tile.c8 { background: #FFE8D2; }

/* ---------- accounts ---------- */
.profile-grid { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 16px 0; }
.profile { border: 0; background: #F5F0FF; border-radius: var(--r); padding: 14px; width: 150px; display: flex; flex-direction: column; align-items: center; gap: 4px; box-shadow: 0 5px 0 #DCD0FA; }
.profile small { color: var(--muted); }
.form label { display: block; font-weight: 800; margin: 12px 0; }
.form input, .form select, .form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 14px; border: 3px solid #E3DAFF; background: #FBF9FF; font-weight: 600; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--purple); }
.form label.check { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.form label.check input { width: 24px; height: 24px; margin: 0; }
.su-avatar { text-align: center; }
.pin-dots { display: flex; gap: 14px; justify-content: center; margin: 16px 0; }
.pin-dots i { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--purple); }
.pin-dots i.on { background: var(--purple); }
.pinpad { display: grid; grid-template-columns: repeat(3, 72px); gap: 10px; justify-content: center; }
.pinpad button { height: 64px; border-radius: 18px; border: 0; background: #F1EBFF; font-size: 26px; font-weight: 900; box-shadow: 0 4px 0 #D6CCF5; }

/* ---------- teacher ---------- */
.teacher { display: flex; align-items: flex-end; gap: 10px; margin: 14px 0; }
.teacher .melody { width: 110px; flex: none; filter: drop-shadow(0 6px 0 rgba(0,0,0,.12)); }
.teacher.small .melody { width: 80px; }
.bubble { position: relative; background: #fff; border-radius: 22px; padding: 16px 52px 16px 18px; box-shadow: var(--shadow); font-size: 19px; font-weight: 700; flex: 1; }
.bubble::before { content: ""; position: absolute; left: -14px; bottom: 22px; border: 10px solid transparent; border-right: 16px solid #fff; border-left: 0; }
.bubble .speak { position: absolute; right: 8px; top: 8px; background: #F1EBFF; }
.teacher.pop .bubble { animation: popIn .35s; }
.melody .eyes { animation: blink 4s infinite; transform-origin: 60px 64px; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.melody .mouth { transform-origin: 60px 82px; }
.talking .mouth, .melody.talking .mouth { animation: talk .25s infinite alternate; }
@keyframes talk { from { transform: scaleY(.5); } to { transform: scaleY(1.5); } }

/* ---------- dashboard ---------- */
.hello { display: flex; gap: 18px; align-items: center; background: #fff; border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); flex-wrap: wrap; }
.hello-avatar { position: relative; cursor: pointer; text-align: center; }
.hello-avatar small { display: block; font-weight: 800; color: var(--purple); }
.hello-text { flex: 1; min-width: 240px; }
.hello-text h2 { font-size: 30px; color: var(--purple-d); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.stat-col { display: flex; flex-direction: column; gap: 8px; }
.stat { background: #F5F0FF; border-radius: 18px; padding: 10px 16px; text-align: center; min-width: 110px; }
.stat b { display: block; font-size: 28px; color: var(--purple-d); } .stat small { color: var(--muted); font-weight: 700; }
.stats-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 12px 0; }
.progress-line { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--muted); }
.bar { height: 16px; background: #EDE7FF; border-radius: 999px; overflow: hidden; flex: 1; min-width: 120px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--sky)); border-radius: 999px; transition: width .5s; }
.bar.thick { height: 20px; margin: 10px 0; }
.continue { display: flex; margin: 10px auto 16px; }
.daily { display: flex; align-items: center; gap: 14px; background: linear-gradient(90deg, #FFF3C4, #FFE0EE); border-radius: var(--r); padding: 14px 18px; box-shadow: var(--shadow); cursor: pointer; margin-bottom: 12px; font-size: 20px; }
.daily .big-emoji { font-size: 44px; margin: 0; } .daily div { flex: 1; } .daily small { display: block; color: var(--muted); font-size: 15px; }
.daily.done { opacity: .75; } .daily.box { background: linear-gradient(90deg, #D4F7EE, #DCF0FF); }
.foot-links { display: flex; justify-content: center; gap: 10px; }

/* ---------- grades ---------- */
.grade-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.grade-card { position: relative; border: 0; text-align: left; background: #fff; border-radius: var(--r); padding: 16px; display: flex; gap: 16px; box-shadow: var(--shadow); transition: transform .15s; overflow: hidden; }
.grade-card:hover { transform: translateY(-4px); }
.book { width: 100px; height: 136px; flex: none; display: flex; filter: drop-shadow(0 6px 4px rgba(0,0,0,.2)); }
.book-spine { width: 12px; background: color-mix(in srgb, var(--c) 70%, #000); border-radius: 6px 0 0 6px; }
.book-face { flex: 1; background: var(--c); border-radius: 0 10px 10px 0; color: #fff; padding: 8px 6px; display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.05; }
.book-face small { font-size: 10px; } .book-face b { font-size: 13px; } .book-face em { font-style: normal; font-weight: 900; font-size: 15px; background: rgba(255,255,255,.25); padding: 2px 8px; border-radius: 8px; margin-top: auto; }
.book-emoji { font-size: 38px; margin-top: 8px; }
.gc-info { flex: 1; } .gc-info h3 { font-size: 26px; color: var(--c); } .gc-info p { margin: 0 0 10px; color: var(--muted); font-weight: 700; }
.grade-card.locked { filter: grayscale(.8); opacity: .8; }
.lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(255,255,255,.6); font-size: 46px; }
.lock small { font-size: 15px; font-weight: 800; color: var(--ink); }

/* ---------- adventure map ---------- */
.map-head { text-align: center; color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.2); }
.map-head h2 { font-size: 32px; }
.stage { background: rgba(255,255,255,.92); border-radius: 28px; padding: 16px; margin: 18px 0; box-shadow: var(--shadow); border-top: 10px solid var(--c); }
.stage.locked { opacity: .6; filter: grayscale(.6); }
.stage-head { display: flex; align-items: center; gap: 12px; }
.stage-head h3 { color: var(--c); font-size: 26px; margin: 0; } .stage-head small { font-weight: 800; color: var(--muted); }
.stage-badge { font-size: 40px; filter: grayscale(1) opacity(.4); } .stage-badge.earned { filter: none; animation: bob 2s infinite; }
.lock-s { margin-left: auto; font-size: 30px; }
.path { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; position: relative; }
.path::before { content: ""; position: absolute; left: 10%; right: 10%; top: 38px; border-top: 6px dashed color-mix(in srgb, var(--c) 50%, #fff); z-index: 0; }
.node { position: relative; z-index: 1; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 6px; transform: translateY(calc(var(--i) * 0px)); }
.node:nth-child(even) { margin-top: 24px; }
.node-dot { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; font-weight: 900; color: #fff; background: var(--c); box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 65%, #000); border: 5px solid #fff; transition: transform .15s; }
.node:hover .node-dot { transform: scale(1.08); }
.node.done .node-dot { background: linear-gradient(180deg, #FFE27A, #F5B700); box-shadow: 0 6px 0 #C89200; }
.node.locked .node-dot { background: #C9C3DD; box-shadow: 0 6px 0 #9E97B8; font-size: 26px; }
.node.current .node-dot { animation: pulseRing 1.4s infinite; }
@keyframes pulseRing { 0% { box-shadow: 0 6px 0 rgba(0,0,0,.2), 0 0 0 0 rgba(255, 201, 60, .9); } 100% { box-shadow: 0 6px 0 rgba(0,0,0,.2), 0 0 0 22px rgba(255, 201, 60, 0); } }
.node-label { font-size: 14px; font-weight: 800; text-align: center; line-height: 1.2; }
.node-label small { display: block; color: var(--muted); }
.stars { letter-spacing: 1px; font-size: 22px; } .stars i { font-style: normal; color: #D0C8EA; }
.node-label .stars { font-size: 13px; }
.castle { display: flex; align-items: center; gap: 16px; width: 100%; border: 0; border-radius: 28px; padding: 18px 22px; background: linear-gradient(90deg, #FFE27A, #FF9F43); box-shadow: var(--shadow); text-align: left; font-size: 20px; }
.castle span { font-size: 64px; } .castle small { display: block; font-size: 15px; } .castle.locked { filter: grayscale(.9); opacity: .75; }

/* ---------- topic flow ---------- */
.topic-head { background: var(--c); color: #fff; border-radius: var(--r); padding: 14px 20px; box-shadow: var(--shadow); }
.topic-head small { font-weight: 800; opacity: .9; } .topic-head h2 { font-size: 28px; margin: 2px 0 0; }
.steps { display: flex; justify-content: space-between; margin: 16px 0; background: rgba(255,255,255,.9); border-radius: 999px; padding: 8px 10px; box-shadow: var(--shadow); }
.step { display: flex; flex-direction: column; align-items: center; flex: 1; cursor: pointer; }
.step span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #EDE7FF; font-size: 22px; }
.step small { font-weight: 800; font-size: 12px; color: var(--muted); }
.step.done span { background: var(--teal); color: #fff; font-weight: 900; }
.step.now span { background: var(--sun); transform: scale(1.15); box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--sun); }
.step.now small { color: var(--ink); }
.step-body { background: rgba(255,255,255,.95); border-radius: 28px; padding: 20px; box-shadow: var(--shadow); min-height: 300px; }
.discover { display: flex; flex-direction: column; align-items: center; }
.disc-art { width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff, var(--c)); display: grid; place-items: center; font-size: 76px; box-shadow: var(--shadow); animation: bob 3s infinite; }
.objectives { width: 100%; max-width: 640px; } .objectives ul { margin: 6px 0; padding-left: 26px; font-size: 19px; font-weight: 700; } .objectives li { margin: 6px 0; }
.page-dots { display: flex; gap: 8px; justify-content: center; margin-bottom: 10px; }
.page-dots i { width: 14px; height: 14px; border-radius: 50%; background: #E3DAFF; } .page-dots i.on { background: var(--purple); transform: scale(1.3); } .page-dots i.seen { background: var(--teal); }
.lesson-card { text-align: center; padding: 10px; }
.lesson-card h3 { font-size: 30px; color: var(--purple-d); }
.lesson-vis { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; margin: 14px 0; min-height: 80px; }
.lesson-text { font-size: 24px; font-weight: 700; max-width: 760px; margin: 10px auto; }
.lesson-tools { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.nav-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; font-weight: 800; flex-wrap: wrap; }
.pop-in { animation: popIn .4s; }
@keyframes popIn { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }

/* video */
.video-box { background: var(--ink); border-radius: 20px; overflow: hidden; min-height: 300px; display: grid; place-items: center; color: #fff; position: relative; }
.video-box video, .video-box iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; background: #000; }
.video-box .save-off { position: absolute; right: 10px; top: 10px; }
.anim-lesson { width: 100%; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; background: linear-gradient(160deg, #3A2580, #1F6FB0); }
.anim-stage { width: 100%; min-height: 300px; display: grid; place-items: center; text-align: center; }
.anim-slide { display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 760px; }
.anim-slide.in { animation: slideIn .6s; }
@keyframes slideIn { from { transform: translateX(60px); opacity: 0; } to { transform: none; opacity: 1; } }
.anim-slide h3 { font-size: 30px; color: var(--sun); } .anim-slide p { font-size: 22px; font-weight: 700; }
.anim-melody { width: 110px; animation: bob 2s infinite; }
.anim-vis { background: #fff; border-radius: 18px; padding: 10px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; color: var(--ink); animation: popIn .6s .3s both; }
.anim-bar { width: 100%; height: 10px; background: rgba(255,255,255,.2); border-radius: 99px; overflow: hidden; } .anim-bar i { display: block; height: 100%; width: 0; background: var(--sun); transition: width .6s; }

/* ---------- question card ---------- */
.qcard { text-align: center; }
.qmeta { display: flex; justify-content: space-between; font-weight: 800; color: var(--muted); margin-bottom: 6px; }
.qtimer { background: #FFE4E4; color: var(--coral); padding: 2px 12px; border-radius: 99px; }
.qtext { font-size: 25px; font-weight: 800; margin: 8px 0 12px; }
.qtext .read { background: #F1EBFF; width: 38px; height: 38px; font-size: 18px; vertical-align: middle; }
.qvis { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin: 10px auto 14px; min-height: 60px; }
.play-au { margin: 4px 0 14px; background: #DCF0FF; box-shadow: 0 5px 0 #A9D6F5; }
.qopts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 760px; margin: 0 auto; }
.qopts.two { max-width: 520px; }
.opt { border: 0; border-radius: 18px; padding: 16px 12px; background: #F3EEFF; font-size: 20px; font-weight: 800; box-shadow: 0 5px 0 #D6CCF5; transition: transform .08s; min-height: 64px; }
.opt:hover:not(:disabled) { background: #E8DFFF; }
.opt:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 #D6CCF5; }
.opt.right { background: #C8F5E4; box-shadow: 0 5px 0 #22C3A6; animation: popIn .3s; }
.opt.wrong { background: #FFD9D9; box-shadow: 0 5px 0 var(--coral); animation: shake .4s; }
.opt:disabled { cursor: default; }
.opt.big { font-size: 24px; min-height: 84px; }
.qfeedback { min-height: 34px; margin-top: 14px; font-size: 20px; font-weight: 700; }
.good { color: #109B7E; } .nudge { color: #E2554D; } .why { display: inline-block; margin-top: 6px; background: #FFF6D6; padding: 8px 14px; border-radius: 14px; color: var(--ink); font-size: 18px; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.shake { animation: shake .4s; }

/* drag match */
.dm { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dm-col { display: flex; flex-direction: column; gap: 12px; }
.dm-chip { background: #fff; border: 4px solid #E3DAFF; border-radius: 18px; padding: 8px; min-height: 80px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; cursor: grab; touch-action: none; user-select: none; font-size: 20px; }
.dm-chip.sel { border-color: var(--sun); box-shadow: 0 0 0 4px #FFF0B8; }
.dm-chip.placed { border-color: var(--teal); cursor: default; min-height: 50px; padding: 2px; transform: scale(.8); }
.dm-chip .viz-emoji span { font-size: 40px; }
.ghost { position: fixed; z-index: 100; pointer-events: none; transform: translate(-50%, -50%) rotate(-4deg); opacity: .9; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.dm-target { border: 4px dashed #C9BEF2; border-radius: 18px; min-height: 80px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px; font-weight: 800; font-size: 19px; background: #FBF9FF; }
.dm-target.done { border-style: solid; border-color: var(--teal); background: #E6FBF4; }
.hint { color: var(--muted); font-weight: 700; text-align: center; }

/* ---------- games ---------- */
.game { position: relative; }
.game-hud { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; border-radius: 16px; padding: 8px 14px; font-weight: 800; }
.g-title { flex: 1; font-size: 19px; } .g-round, .g-score { background: rgba(255,255,255,.15); padding: 2px 12px; border-radius: 99px; }
.game-prompt { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 26px; font-weight: 900; margin: 14px 0 8px; text-align: center; color: var(--purple-d); }
.game-prompt .icon-btn { background: #F1EBFF; }
.game-fb { min-height: 36px; text-align: center; font-size: 21px; font-weight: 800; margin-top: 10px; }
.game-fb.good { color: #109B7E; } .game-fb.nudge { color: #E2554D; }
.game-done { text-align: center; padding: 20px; }
.game-done h2 { font-size: 34px; color: var(--purple-d); }
.hunt-area { position: relative; height: 380px; background: linear-gradient(180deg, #CDEBFF, #E9F7FF 70%, #C9F2D9); border-radius: 22px; overflow: hidden; }
.floaty { position: absolute; border: 0; background: #fff; border-radius: 50%; width: 120px; height: 120px; display: grid; place-items: center; box-shadow: 0 8px 18px rgba(43,27,90,.18); animation: floaty 4s ease-in-out infinite alternate; padding: 6px; overflow: hidden; }
.floaty svg { max-width: 92px; max-height: 92px; } .floaty .viz-dyn { font-size: 46px; } .floaty .viz-emoji span { font-size: 46px; } .floaty .viz-emoji small { font-size: 11px; }
@keyframes floaty { 0% { transform: translate(0, 0) rotate(-4deg); } 50% { transform: translate(18px, -14px) rotate(3deg); } 100% { transform: translate(-12px, 12px) rotate(-2deg); } }
.floaty.found { animation: found .8s forwards; background: #C8F5E4; }
@keyframes found { 50% { transform: scale(1.35); } 100% { transform: scale(0); opacity: 0; } }
.floaty.miss { animation: shake .4s; background: #FFD9D9; }
.floaty.hint { box-shadow: 0 0 0 6px var(--sun), 0 0 30px var(--sun); }
.catch-seq { display: flex; justify-content: center; gap: 10px; margin: 10px 0; flex-wrap: wrap; }
.catch-seq span, .viz-seq span { min-width: 64px; height: 64px; padding: 0 8px; border-radius: 16px; display: grid; place-items: center; background: #fff; font-size: 32px; font-weight: 900; box-shadow: 0 5px 0 #D6CCF5; border: 3px solid #E3DAFF; }
.catch-seq span.q, .viz-seq span.q { background: #FFF3C4; border: 3px dashed var(--orange); color: var(--orange); }
.catch-seq span.filled { background: #C8F5E4; border: 3px solid var(--teal); color: var(--ink); animation: popIn .4s; }
.catch-sky { position: relative; height: 340px; border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, #2B1B5A, #5B3CC4 70%, #7E62E0); }
.drop { position: absolute; top: -80px; width: 74px; height: 74px; border-radius: 50%; border: 0; background: radial-gradient(circle at 30% 30%, #FFE680, var(--sun)); font-size: 30px; font-weight: 900; color: var(--ink); box-shadow: 0 6px 0 #C89200; animation: fall 5s linear forwards; }
@keyframes fall { to { top: 360px; transform: rotate(30deg); } }
.drop.caught { animation: found .6s forwards; } .drop.miss { background: #FFB3B3; box-shadow: 0 6px 0 #C94545; }
.climb { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: stretch; }
.ladder { position: relative; display: flex; flex-direction: column-reverse; justify-content: space-between; border-left: 8px solid #B07A3C; border-right: 8px solid #B07A3C; border-radius: 6px; padding: 6px 0; min-height: 420px; background: linear-gradient(180deg, #DCF0FF, #E9FCEF); }
.rung { height: 8px; background: #B07A3C; position: relative; text-align: center; font-size: 28px; line-height: 0; }
.climber { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); font-size: 46px; transition: bottom .6s cubic-bezier(.3, 1.6, .5, 1); }
.climb-q .qopts { grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); }
.pg-progress { display: flex; justify-content: center; gap: 8px; margin: 6px 0 12px; min-height: 18px; }
.pg-progress i { width: 18px; height: 18px; border-radius: 50%; background: #E3DAFF; } .pg-progress i.on { background: var(--teal); }

/* piano */
.piano { position: relative; height: 220px; user-select: none; touch-action: none; background: var(--ink); padding: 10px 8px 6px; border-radius: 18px; }
.piano .key { position: absolute; border: 0; padding: 0; }
.piano .white { top: 10px; bottom: 6px; background: linear-gradient(180deg, #fff 80%, #EEE); border: 2px solid var(--ink); border-radius: 0 0 10px 10px; z-index: 1; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; font-weight: 900; font-size: 15px; color: transparent; }
.piano.labels .white { color: var(--purple-d); }
.piano .white small { display: block; font-size: 9px; color: var(--muted); }
.piano .white span { display: flex; flex-direction: column; align-items: center; }
.piano .black { top: 10px; height: 58%; background: linear-gradient(180deg, #333, #000); border-radius: 0 0 7px 7px; z-index: 2; box-shadow: 0 4px 0 #000; }
.piano .key.down { filter: brightness(.85); transform: translateY(2px); }
.piano .white.ok { background: linear-gradient(180deg, #C8F5E4, #8BE6C9); } .piano .black.ok { background: var(--teal); }
.piano .white.bad { background: #FFD9D9; } .piano .black.bad { background: var(--coral); }
.piano .key.hint { box-shadow: 0 0 0 4px var(--sun), 0 0 24px var(--sun); z-index: 3; }

/* rhythm */
.rhythm { text-align: center; }
.r-notation { background: #fff; border-radius: 18px; padding: 10px; display: inline-block; box-shadow: 0 4px 0 #E3DAFF; }
.r-say { font-size: 24px; font-weight: 900; color: var(--purple); letter-spacing: 3px; }
.r-controls { display: flex; justify-content: center; gap: 12px; margin: 14px 0; flex-wrap: wrap; }
.drum-pad { width: 220px; height: 220px; border-radius: 50%; border: 12px solid #B5442C; background: radial-gradient(circle, #FFF7E6 0 55%, #F6DFB5 56%); box-shadow: 0 12px 0 #7A2B1B; font-size: 32px; font-weight: 900; color: #B5442C; touch-action: none; transition: transform .05s; }
.drum-pad:disabled { opacity: .55; }
.drum-pad.live { animation: pulse 1s infinite; }
.drum-pad.hit { transform: scale(.94) translateY(6px); box-shadow: 0 6px 0 #7A2B1B; }
.r-beats { display: flex; justify-content: center; gap: 12px; min-height: 26px; margin-top: 12px; }
.r-beats i { width: 24px; height: 24px; border-radius: 50%; background: #E3DAFF; } .r-beats i.on { background: var(--orange); }
@keyframes pulse { 50% { transform: scale(1.05); } }

/* clock */
.clock-bar { position: relative; height: 26px; background: #EDE7FF; border-radius: 99px; overflow: hidden; margin: 8px 0 14px; }
.clock-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--teal), var(--sun)); transition: width 1s linear; }
.clock-bar i.low { background: var(--coral); }
.clock-bar span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; }

/* listen */
.speaker-btn { display: flex; flex-direction: column; align-items: center; margin: 10px auto 18px; width: 170px; height: 170px; border-radius: 50%; border: 0; background: radial-gradient(circle at 30% 30%, #8EE0FF, var(--sky)); box-shadow: 0 10px 0 #1E8CC8; color: #fff; justify-content: center; }
.speaker-btn span { font-size: 70px; } .speaker-btn small { font-weight: 800; }
.speaker-btn.playing { animation: pulseRing 1s infinite; }
.listen-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; max-width: 760px; margin: 0 auto; }

/* memory */
.mem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; perspective: 900px; }
.mem-card { position: relative; height: 120px; border: 0; background: none; transform-style: preserve-3d; transition: transform .45s; padding: 0; }
.mem-card span { position: absolute; inset: 0; border-radius: 18px; display: grid; place-items: center; backface-visibility: hidden; padding: 8px; font-weight: 800; font-size: 16px; line-height: 1.15; }
.mem-card .back { background: linear-gradient(135deg, var(--purple), var(--pink)); color: #fff; font-size: 44px; box-shadow: 0 5px 0 var(--purple-d); }
.mem-card .front { background: #fff; transform: rotateY(180deg); border: 4px solid #E3DAFF; }
.mem-card .front.a { background: #FFF6D6; } .mem-card .front.b { background: #E6F6FF; }
.mem-card.flip { transform: rotateY(180deg); }
.mem-card.matched .front { border-color: var(--teal); background: #C8F5E4; }
.mem-card.matched { animation: popIn .4s; }

/* ---------- assessment & rewards ---------- */
.assess-top { display: flex; justify-content: space-between; align-items: center; }
.assess-top .chip { background: #F1EBFF; color: var(--purple-d); font-size: 18px; }
.section-name { font-weight: 800; color: var(--purple); }
.rewards h2 { font-size: 28px; color: var(--purple-d); max-width: 720px; margin: 6px auto; }
.trophy-burst { font-size: 110px; animation: trophy 1s; display: inline-block; }
@keyframes trophy { 0% { transform: scale(0) rotate(-30deg); } 70% { transform: scale(1.2) rotate(10deg); } 100% { transform: none; } }
.reward-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 14px 0; }
.reward { background: #F5F0FF; border-radius: 18px; padding: 12px 18px; min-width: 120px; }
.reward b { display: block; font-size: 30px; color: var(--purple-d); } .reward small { font-weight: 700; color: var(--muted); }
.unlock-card { display: flex; align-items: center; gap: 14px; text-align: left; background: linear-gradient(90deg, #FFF3C4, #FFE0EE); border-radius: 18px; padding: 12px 18px; max-width: 560px; margin: 10px auto; animation: popIn .5s; }
.unlock-card span { font-size: 48px; } .unlock-card small { display: block; color: var(--muted); }
.marks { margin: 14px auto; border-collapse: collapse; min-width: 300px; font-size: 17px; }
.marks td, .marks th { padding: 6px 14px; border-bottom: 2px solid #EDE7FF; text-align: left; }
.congrats h1 { font-size: 44px; color: var(--purple-d); } .lead { font-size: 22px; }
.congrats .btn { margin: 6px auto; display: flex; }

/* ---------- certificates ---------- */
.cert-frame { background: #fff; border-radius: 18px; padding: 10px; box-shadow: var(--shadow); }
.cert-svg { width: 100%; height: auto; display: block; }
.cert-wrap .small { color: #fff; } .cert-wrap .small a { color: #fff; word-break: break-all; }
.cert-list { display: flex; flex-direction: column; gap: 12px; }
.cert-item { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow); }
.cert-item > span { font-size: 42px; } .cert-item div { flex: 1; } .cert-item small { display: block; color: var(--muted); }
.cert-item.locked { opacity: .7; } .cert-item.grand { background: linear-gradient(90deg, #FFF3C4, #FFE27A); }

/* ---------- achievements / collection / avatar ---------- */
.wall-title { color: #fff; text-align: center; font-size: 30px; text-shadow: 0 3px 0 rgba(0,0,0,.2); }
.wall-row { background: rgba(255,255,255,.92); border-radius: 22px; padding: 12px 16px; margin: 12px 0; box-shadow: var(--shadow); }
.wall-row h3 { margin: 0 0 8px; color: var(--purple-d); }
.wall { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.badge { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px; border-radius: 16px; background: #F1EEF8; }
.badge span { font-size: 40px; filter: grayscale(1); opacity: .5; } .badge small { font-weight: 800; font-size: 12px; color: var(--muted); }
.badge.earned { background: linear-gradient(180deg, #FFF6D6, #FFE9A8); } .badge.earned span { filter: none; opacity: 1; }
.badge.grand { max-width: 220px; margin: 0 auto; } .badge.grand span { font-size: 64px; }
.collect-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.collect { border: 0; border-radius: 18px; background: rgba(255,255,255,.6); padding: 14px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; box-shadow: var(--shadow); }
.collect span { font-size: 48px; filter: grayscale(1); opacity: .45; } .collect small { font-weight: 800; }
.collect.has { background: #fff; } .collect.has span { filter: none; opacity: 1; }
.collect.bounce { animation: popIn .4s; }
.avatar-edit { display: grid; grid-template-columns: 240px 1fr; gap: 18px; align-items: start; }
.av-preview { background: #fff; border-radius: var(--r); padding: 18px; text-align: center; position: sticky; top: 80px; box-shadow: var(--shadow); }
.av-preview b { display: block; font-size: 24px; }
.av-opts { background: #fff; border-radius: var(--r); padding: 14px 18px; box-shadow: var(--shadow); }
.av-row h4 { margin: 10px 0 6px; }
.av-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.av-choice { position: relative; border: 4px solid #EEE8FF; background: #FBF9FF; border-radius: 16px; padding: 4px; min-width: 54px; min-height: 54px; display: grid; place-items: center; }
.av-choice i { width: 38px; height: 38px; border-radius: 50%; display: block; }
.av-choice.on { border-color: var(--sun); box-shadow: 0 0 0 3px #FFF0B8; }
.av-choice.locked { opacity: .55; } .av-choice em { position: absolute; right: -6px; top: -8px; font-style: normal; }
.av-mini svg { display: block; }
#av-save { margin: 18px auto; display: flex; }

/* ---------- arcade, playground, lab ---------- */
.gsec { color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.2); }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.game-tile { border: 0; border-radius: 20px; background: #fff; padding: 14px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; box-shadow: var(--shadow); text-align: center; transition: transform .12s; }
.game-tile:hover { transform: translateY(-3px); } .game-tile span { font-size: 42px; } .game-tile small { color: var(--muted); font-size: 13px; }
.e-hunt { background: #FFF1C9; } .e-catch { background: #DCF0FF; } .e-climb { background: #D4F7EE; } .e-piano { background: #EDE4FF; } .e-rhythm { background: #FFE4E4; } .e-clock { background: #FFE8D2; } .e-listen { background: #E3F9D5; } .e-memory { background: #FFE0EE; }
.p > center { color: #fff; }
.screen > p.center { color: #fff; font-weight: 700; font-size: 19px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tab { border: 0; border-radius: 14px; padding: 10px 16px; font-weight: 800; background: rgba(255,255,255,.55); font-size: 16px; }
.tab.on { background: #fff; box-shadow: 0 4px 0 #D6CCF5; }
.playground { background: rgba(255,255,255,.95); border-radius: 26px; padding: 18px; box-shadow: var(--shadow); }
.inst-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip-btn { border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 800; background: #F1EBFF; font-size: 15px; }
.chip-btn.on { background: var(--purple); color: #fff; }
.pg-keys .piano { height: 240px; }
.pad-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.pad { border: 0; border-radius: 22px; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(160deg, #FF9F43, #FF6B6B); color: #fff; box-shadow: 0 8px 0 #B2433E; touch-action: none; font-size: 15px; }
.pad:nth-child(3n+2) { background: linear-gradient(160deg, #3DB7FF, #6C3CE9); box-shadow: 0 8px 0 #3B1FA0; }
.pad:nth-child(3n) { background: linear-gradient(160deg, #22C3A6, #16A34A); box-shadow: 0 8px 0 #0E6B3A; }
.pad span { font-size: 40px; } .pad small { opacity: .75; }
.pad.hit { transform: translateY(6px) scale(.96); box-shadow: 0 2px 0 rgba(0,0,0,.3); }
.rec-row { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }
.ask { max-width: 760px; margin: 0 auto; }
.chat { background: rgba(255,255,255,.92); border-radius: 22px; padding: 12px; min-height: 120px; max-height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.chat:empty { display: none; }
.msg { padding: 10px 14px; border-radius: 18px; max-width: 85%; font-weight: 700; }
.msg.you { align-self: flex-end; background: var(--purple); color: #fff; } .msg.her { align-self: flex-start; background: #FFF6D6; }
.ask-form { display: flex; gap: 10px; margin: 12px 0; }
.ask-form input { flex: 1; padding: 14px 16px; border-radius: 16px; border: 0; box-shadow: var(--shadow); }
.ask .small { color: #fff; }

/* ---------- parent & admin ---------- */
.rep-head { display: flex; gap: 14px; align-items: center; }
.tbl { width: 100%; border-collapse: collapse; font-size: 16px; margin: 8px 0; }
.tbl th, .tbl td { padding: 8px 10px; border-bottom: 2px solid #EDE7FF; text-align: left; vertical-align: middle; }
.tbl th { background: #F5F0FF; }
.tbl .ok { color: #109B7E; font-weight: 800; } .tbl .low { color: #E2554D; font-weight: 800; }
.admin .admin-body { background: #fff; border-radius: 22px; padding: 18px; box-shadow: var(--shadow); overflow-x: auto; }
.acts { white-space: nowrap; } .acts .btn { margin: 2px; }
.ce-pick { display: flex; gap: 10px; flex-wrap: wrap; } .ce-pick select { padding: 10px; border-radius: 12px; border: 3px solid #E3DAFF; }
.ce-pick select:last-child { flex: 1; }
.logo-prev { max-width: 120px; display: block; margin: 6px 0; }

/* ---------- modal, toast, confetti ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(43, 27, 90, .55); display: grid; place-items: center; padding: 16px; animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; } }
.modal { position: relative; background: #fff; border-radius: 28px; padding: 26px; max-width: 460px; width: 100%; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.3); animation: popIn .3s; max-height: 92vh; overflow-y: auto; }
.modal.wide { max-width: 760px; }
.modal-x { position: absolute; right: 12px; top: 12px; border: 0; background: #F1EBFF; border-radius: 50%; width: 38px; height: 38px; font-size: 18px; }
.box-open { animation: trophy .8s; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px; font-weight: 800; z-index: 60; box-shadow: 0 10px 30px rgba(0,0,0,.3); animation: popIn .3s; max-width: 92vw; text-align: center; transition: opacity .4s; }
.toast.out { opacity: 0; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 12px; height: 18px; border-radius: 3px; animation: confetti 3s ease-in forwards; }
@keyframes confetti { to { top: 105vh; transform: rotate(720deg) translateX(60px); } }

/* ---------- notation visuals ---------- */
.viz-note, .viz-staff, .viz-keys, .viz-sym { display: inline-block; vertical-align: middle; }
.viz-staff { background: #fff; border-radius: 12px; }
.viz-dyn { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 900; font-size: 54px; color: var(--ink); padding: 0 10px; }
.viz-time { display: inline-flex; flex-direction: column; align-items: center; line-height: .9; font-family: Georgia, serif; font-weight: 900; font-size: 44px; padding: 4px 12px; background: #fff; border-radius: 12px; }
.viz-bar { display: inline-flex; align-items: flex-end; gap: 4px; background: #fff; border-radius: 14px; padding: 6px 12px; border-bottom: 3px solid #D6CCF5; }
.viz-bar .viz-time { font-size: 30px; align-self: center; }
.viz-bar .bl { width: 3px; height: 64px; background: var(--ink); margin: 0 4px; align-self: center; } .viz-bar .bl.thick { width: 8px; margin-left: -2px; }
.viz-bar .qbox { width: 44px; height: 60px; border: 3px dashed var(--orange); border-radius: 10px; display: grid; place-items: center; font-size: 28px; font-weight: 900; color: var(--orange); align-self: center; }
.viz-tree { display: flex; flex-direction: column; gap: 4px; align-items: center; background: #fff; border-radius: 14px; padding: 8px 14px; }
.tree-row { display: flex; gap: 2px; justify-content: center; }
.viz-emoji { display: inline-flex; flex-direction: column; align-items: center; }
.viz-emoji span { font-size: 64px; line-height: 1.1; } .viz-emoji small { font-weight: 800; }
.viz-text { display: inline-block; background: linear-gradient(90deg, #FFF3C4, #FFE0EE); padding: 10px 20px; border-radius: 16px; font-size: 26px; font-weight: 900; color: var(--purple-d); }
.viz-seq { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.viz-seq span { min-width: 52px; height: 52px; font-size: 26px; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .path { grid-template-columns: repeat(3, 1fr); } .path::before { display: none; } .node:nth-child(even) { margin-top: 0; }
  .node-dot { width: 64px; height: 64px; font-size: 24px; }
  .steps .step small { display: none; } .step span { width: 36px; height: 36px; font-size: 18px; }
  .lesson-text { font-size: 20px; } .qtext { font-size: 21px; } .opt { font-size: 18px; }
  .mem-grid { grid-template-columns: repeat(3, 1fr); } .mem-card { height: 104px; } .mem-card span { font-size: 14px; }
  .floaty { width: 96px; height: 96px; } .floaty svg { max-width: 72px; max-height: 72px; }
  .avatar-edit { grid-template-columns: 1fr; } .av-preview { position: static; }
  .wall { grid-template-columns: repeat(4, 1fr); }
  .pad-grid { grid-template-columns: repeat(3, 1fr); }
  .climb { grid-template-columns: 70px 1fr; } .ladder { min-height: 360px; }
  .dm { gap: 10px; } .grid2 { grid-template-columns: 1fr; }
  .topbar .chip:not(.off) { display: none; }
  .teacher .melody { width: 70px; } .bubble { font-size: 17px; }
}
@media print {
  .topbar, .no-print, .toast { display: none !important; }
  body { background: #fff; } .card { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
