/* ═══════════════════════════════════════════════════════════════
   ART ACADEMY 🎓  (owned by academy.js)
   ═══════════════════════════════════════════════════════════════ */
.ac-app {
  --ac-ctl: rgba(255, 255, 255, 0.06);
  --ac-ctl-hover: rgba(255, 255, 255, 0.12);
  --ac-paper: #ffffff;
  --ac-solid: #1b1f35;
  --ac-radius: 24px;
  --ac-tap: 48px;
  font-family: var(--font-body);
  color: var(--text-main);
  position: relative;
  min-width: 0;
}
[data-theme="light"] .ac-app {
  --ac-ctl: rgba(15, 23, 42, 0.05);
  --ac-ctl-hover: rgba(15, 23, 42, 0.1);
  --ac-solid: #ffffff;
}
.ac-app *, .ac-app *::before, .ac-app *::after { box-sizing: border-box; }
.ac-app button { font-family: var(--font-display); color: inherit; }
.ac-app :focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.ac-app [tabindex="-1"]:focus { outline: none; }
.ac-app canvas { max-width: 100%; }
.ac-loading { padding: 40px; text-align: center; color: var(--text-muted); font-family: var(--font-display); font-size: 1.3rem; }
.ac-muted { color: var(--text-muted); font-size: 0.92rem; }
.ac-h { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; margin: 30px 0 14px; }
.ac-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.1; margin: 0; }
.ac-mini-h { font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin-bottom: 8px; }
.ac-card-kicker { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.85; }

/* ── generic buttons ── */
.ac-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--ac-tap); padding: 10px 18px; border-radius: 16px;
  background: var(--ac-ctl); border: 1px solid var(--border-color);
  font-size: 1rem; font-weight: 600; cursor: pointer; line-height: 1.2;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ac-btn:hover:not(:disabled) { background: var(--ac-ctl-hover); border-color: var(--border-hover); transform: translateY(-1px); }
.ac-btn:active:not(:disabled) { transform: translateY(1px); }
.ac-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.ac-btn.ac-primary { background: var(--grad-main); color: #fff; border-color: transparent; box-shadow: 0 8px 22px rgba(139, 92, 246, 0.3); }
.ac-btn.ac-primary:hover:not(:disabled) { background: var(--grad-main); box-shadow: 0 12px 28px rgba(139, 92, 246, 0.45); }
.ac-btn.on { border-color: var(--primary); background: rgba(139, 92, 246, 0.18); }
.ac-btn.ac-glow { animation: acGlow 0.8s ease 2; }
@keyframes acGlow { 50% { box-shadow: 0 0 0 8px rgba(139, 92, 246, 0.35); transform: scale(1.04); } }
.ac-icon-btn {
  width: var(--ac-tap); height: var(--ac-tap); border-radius: 50%; flex: 0 0 auto;
  border: 1px solid var(--border-color); background: var(--ac-ctl); font-size: 1.35rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: transform .15s ease, background .2s ease;
}
.ac-icon-btn:hover { background: var(--ac-ctl-hover); transform: scale(1.06); }
.ac-pill-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.22); color: #fff; font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.ac-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-chip {
  min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--border-color);
  background: var(--ac-ctl); font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: all .15s ease;
}
.ac-chip:hover { border-color: var(--border-hover); transform: translateY(-1px); }
.ac-chip.on { border-color: var(--primary); background: rgba(139, 92, 246, 0.2); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18); }
.ac-chip.big { font-size: 1.6rem; min-width: 60px; min-height: 56px; }

/* ── HOME ── */
.ac-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 26px 28px; border-radius: 30px; color: #fff;
  background: radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.22), transparent 40%), var(--grad-main);
  box-shadow: 0 18px 40px rgba(139, 92, 246, 0.28); position: relative; overflow: hidden;
}
.ac-hero::after { content: '🎨 ✏️ 🖌️'; position: absolute; right: 24px; bottom: -8px; font-size: 3.2rem; opacity: 0.16; letter-spacing: 12px; pointer-events: none; }
.ac-hero-text { min-width: 0; flex: 1 1 280px; }
.ac-sub { margin: 6px 0 12px; font-size: 1.1rem; opacity: 0.95; }
.ac-name { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; flex-wrap: wrap; }
.ac-name input {
  width: 170px; max-width: 52vw; min-height: 44px; padding: 8px 14px; border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.18); color: #fff;
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
}
.ac-name input::placeholder { color: rgba(255, 255, 255, 0.75); }
.ac-name input:focus { outline: none; border-color: #fff; background: rgba(255, 255, 255, 0.28); }
.ac-stats { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ac-stat { background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 18px; padding: 10px 16px; text-align: center; min-width: 92px; }
.ac-stat b { display: block; font-family: var(--font-display); font-size: 1.4rem; }
.ac-stat span { font-size: 0.82rem; opacity: 0.9; }
.ac-hero .ac-icon-btn { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.35); color: #fff; }

.ac-tracks { margin-top: 8px; }
.ac-track-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ac-track {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  padding: 18px 14px; border-radius: var(--ac-radius); border: 3px solid var(--border-color);
  background: var(--bg-card); cursor: pointer; transition: transform .18s ease, border-color .2s ease, box-shadow .2s ease;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.ac-track:hover { transform: translateY(-3px); border-color: var(--border-hover); }
.ac-track.on { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2), 0 14px 30px rgba(139, 92, 246, 0.2); background: var(--bg-card-hover); }
.ac-track-emo { font-size: 2.8rem; line-height: 1; }
.ac-track-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.ac-track-ages { font-weight: 700; color: var(--primary); font-size: 0.9rem; }
.ac-track-desc { font-size: 0.85rem; color: var(--text-muted); }
.ac-tracks.ac-attn .ac-track { animation: acBob 2.4s ease-in-out infinite; }
.ac-tracks.ac-attn .ac-track:nth-child(2) { animation-delay: .2s; }
.ac-tracks.ac-attn .ac-track:nth-child(3) { animation-delay: .4s; }
@keyframes acBob { 50% { transform: translateY(-4px); } }

.ac-home-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.ac-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: left;
  padding: 18px 20px; border-radius: var(--ac-radius); border: none; cursor: pointer; color: #fff;
  background: var(--g, var(--grad-main)); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18); transition: transform .18s ease, box-shadow .2s ease; min-width: 0;
}
.ac-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(0, 0, 0, 0.25); }
.ac-app .ac-card, .ac-app .ac-card * { color: #fff; }
.ac-app .ac-card small { color: rgba(255, 255, 255, 0.92); }
.ac-app .ac-xbar { color: #fff; }
.ac-app .ac-drum { color: #451a03; }
.ac-daily { --g: linear-gradient(135deg, #f59e0b, #ef4444); }
.ac-daily.done { --g: linear-gradient(135deg, #10b981, #0ea5e9); }
.ac-continue-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ac-continue-main b { display: block; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.15; }
.ac-continue-main small { display: block; opacity: 0.9; font-size: 0.9rem; margin-top: 2px; }
.ac-big-emoji { font-size: 3rem; line-height: 1; flex: 0 0 auto; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2)); }

.ac-course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.ac-course {
  position: relative; display: flex; flex-direction: column; gap: 6px; text-align: left; overflow: hidden;
  padding: 18px; border-radius: var(--ac-radius); border: 1px solid var(--border-color); cursor: pointer;
  background: var(--bg-card); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease; min-width: 0;
}
.ac-course::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--g); }
.ac-course:hover { transform: translateY(-4px); border-color: var(--border-hover); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18); }
.ac-course-emoji { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 2rem; background: var(--g); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15); }
.ac-course-emoji.big { width: 84px; height: 84px; font-size: 3rem; border-radius: 24px; background: rgba(255, 255, 255, 0.22); flex: 0 0 auto; }
.ac-course-title { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin-top: 4px; }
.ac-course-desc { color: var(--text-muted); font-size: 0.9rem; line-height: 1.35; flex: 1; }
.ac-course-meta { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.88rem; color: var(--text-muted); margin-top: 6px; }
.ac-course-meta.light { color: rgba(255, 255, 255, 0.95); }
.ac-bar { flex: 1; height: 10px; border-radius: 99px; background: var(--ac-ctl); overflow: hidden; min-width: 50px; }
.ac-course-meta.light .ac-bar { background: rgba(255, 255, 255, 0.25); }
.ac-bar i { display: block; height: 100%; border-radius: 99px; background: var(--g, var(--grad-main)); transition: width .6s ease; }
.ac-course-meta.light .ac-bar i { background: #fff; }
.ac-ribbon { position: absolute; top: 12px; right: 12px; font-size: 1.6rem; animation: acBob 2s ease-in-out infinite; }

.ac-artist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.ac-artist {
  display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 20px; text-align: left; cursor: pointer;
  border: 1px solid var(--border-color); background: var(--bg-card); transition: transform .18s ease, box-shadow .2s ease; min-width: 0;
}
.ac-artist:hover { transform: translateY(-3px) rotate(-0.6deg); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2); }
.ac-art-prev { width: 100%; height: auto; aspect-ratio: 24 / 17; border-radius: 14px; display: block; border: 5px solid #f5e6c8; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); }
.ac-artist-name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin-top: 4px; }
.ac-artist-meta { color: var(--text-muted); font-size: 0.85rem; }

.ac-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.ac-badge { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 14px 8px; border-radius: 20px; border: 1px dashed var(--border-hover); background: var(--ac-ctl); opacity: 0.6; }
.ac-badge.got { opacity: 1; border-style: solid; border-color: rgba(250, 204, 21, 0.6); background: linear-gradient(160deg, rgba(250, 204, 21, 0.2), rgba(236, 72, 153, 0.12)); }
.ac-badge-emo { font-size: 2.1rem; line-height: 1; filter: grayscale(1); }
.ac-badge.got .ac-badge-emo { filter: none; animation: acBob 3s ease-in-out infinite; }
.ac-badge-name { font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; line-height: 1.2; }

/* ── COURSE MAP ── */
.ac-topbar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.ac-course-hero {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 24px; border-radius: 30px; color: #fff;
  background: radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.25), transparent 45%), var(--g);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}
.ac-course-hero > div { flex: 1 1 240px; min-width: 0; }
.ac-course-hero p { margin: 6px 0 10px; opacity: 0.95; }
.ac-cert-btn { background: rgba(255, 255, 255, 0.95) !important; color: #4c1d95 !important; border: none; font-weight: 700; }
.ac-cert-btn.locked { background: rgba(255, 255, 255, 0.25) !important; color: #fff !important; }
.ac-map { list-style: none; margin: 26px 0 0; padding: 0 0 0 10px; position: relative; display: flex; flex-direction: column; gap: 14px; }
.ac-map::before { content: ''; position: absolute; left: 44px; top: 20px; bottom: 20px; border-left: 5px dotted var(--border-hover); }
.ac-map-item { position: relative; }
.ac-map-item:nth-child(even) { margin-left: clamp(0px, 4vw, 48px); }
.ac-map-node {
  display: flex; align-items: center; gap: 14px; width: 100%; max-width: 640px; text-align: left; cursor: pointer;
  padding: 12px 16px 12px 12px; border-radius: 22px; border: 1px solid var(--border-color); background: var(--bg-card);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease;
}
.ac-map-node:hover { transform: translateX(4px); border-color: var(--border-hover); }
.ac-map-item.next .ac-map-node { border: 2px solid var(--primary); box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15); }
.ac-map-num { width: 56px; height: 56px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; background: var(--ac-solid); border: 4px solid var(--border-hover); position: relative; z-index: 1; }
.ac-map-item.done .ac-map-num { background: var(--g); color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.ac-map-emoji { font-size: 2.2rem; flex: 0 0 auto; }
.ac-map-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.ac-map-text b { font-family: var(--font-display); font-size: 1.15rem; }
.ac-map-node .ac-pill-btn { background: var(--grad-main); }
.ac-stars { color: var(--text-faint); letter-spacing: 2px; font-size: 1.15rem; line-height: 1; }
.ac-stars .on { color: #facc15; text-shadow: 0 0 8px rgba(250, 204, 21, 0.5); }
.ac-medal { font-size: 0.82rem; color: var(--text-muted); font-family: var(--font-display); }
.ac-medal.got { color: var(--success); }

/* ── LESSON PLAYER ── */
.ac-lesson-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ac-lesson-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 2.8vw, 1.9rem); margin: 0; flex: 1 1 200px; min-width: 0; }
.ac-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.ac-dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--ac-ctl); border: 2px solid var(--border-hover); transition: all .25s ease; }
.ac-dots i.done { background: var(--g); border-color: transparent; }
.ac-dots i.on { background: var(--primary); border-color: #fff; transform: scale(1.35); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3); }
.ac-lesson-body { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.ac-stage {
  min-width: 0; padding: 14px; border-radius: 28px; background: var(--bg-card); border: 1px solid var(--border-color);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}
.ac-demo { display: block; width: 100%; height: auto; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
.ac-coach {
  position: sticky; top: 12px; display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 28px;
  background: var(--bg-card); border: 1px solid var(--border-color); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}
.ac-coach-head { display: flex; align-items: center; gap: 10px; }
.ac-mascot { font-size: 2.6rem; line-height: 1; animation: acBob 3s ease-in-out infinite; }
.ac-step-count { flex: 1; font-family: var(--font-display); font-weight: 700; color: var(--text-muted); }
.ac-say {
  position: relative; margin: 0; padding: 16px 18px; border-radius: 20px; background: var(--ac-ctl); border: 1px solid var(--border-color);
  font-size: 1.15rem; line-height: 1.45; font-weight: 500;
}
.ac-goal { padding: 12px 14px; border-radius: 16px; border: 2px dashed var(--warning); background: rgba(245, 158, 11, 0.08); font-weight: 600; }
.ac-goal-h { font-family: var(--font-display); color: var(--warning); }
.ac-goal-p { margin-top: 6px; font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.02em; }
.ac-goal.met { border-style: solid; border-color: var(--success); background: rgba(16, 185, 129, 0.12); }
.ac-goal.met .ac-goal-h { color: var(--success); }
.ac-goal.met .ac-goal-h::after { content: ' ✅'; }
.ac-nav { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.ac-nav .ac-btn { min-height: 56px; font-size: 1.1rem; }
.ac-kbd-hint { margin: 0; font-size: 0.8rem; color: var(--text-faint); text-align: center; }
.ac-draw-hint { margin: 10px 0 0; text-align: center; color: var(--text-muted); font-size: 0.92rem; }
.ac-check-done { padding: 40px; text-align: center; font-family: var(--font-display); font-size: 1.5rem; }

/* ── DRAW PAD ── */
.ac-pad { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ac-pad-stage { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--ac-paper); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.06), 0 6px 18px rgba(0, 0, 0, 0.12); }
.ac-pad-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ac-pad-art { touch-action: none; cursor: crosshair; }
.ac-pad-guide { pointer-events: none; }
.ac-pad-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ac-pad-group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 5px; border-radius: 16px; background: var(--ac-ctl); border: 1px solid var(--border-color); }
.ac-tool { width: 46px; height: 46px; border-radius: 12px; border: 2px solid transparent; background: transparent; font-size: 1.35rem; cursor: pointer; display: grid; place-items: center; transition: transform .12s ease, background .15s ease; }
.ac-tool:hover { background: var(--ac-ctl-hover); transform: scale(1.06); }
.ac-tool.on { border-color: var(--primary); background: rgba(139, 92, 246, 0.2); }
.ac-size { width: 40px; height: 46px; border-radius: 12px; border: 2px solid transparent; background: transparent; cursor: pointer; display: grid; place-items: center; }
.ac-size i { display: block; border-radius: 50%; background: var(--text-main); }
.ac-size.on { border-color: var(--primary); background: rgba(139, 92, 246, 0.2); }
.ac-swatch { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.85); background: var(--c); cursor: pointer; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25); transition: transform .12s ease; }
.ac-swatch:hover { transform: scale(1.12); }
.ac-swatch.on { transform: scale(1.18); box-shadow: 0 0 0 3px var(--primary), 0 4px 10px rgba(0, 0, 0, 0.25); }
.ac-swatch.big { width: 46px; height: 46px; }

/* ── CHECKS ── */
.ac-check { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 10px 4px; }
.ac-qimg { width: 320px; max-width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--border-color); }
.ac-options { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; width: 100%; }
.ac-option {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-width: 130px; min-height: 120px; padding: 14px; flex: 0 1 190px; border-radius: 22px; cursor: pointer;
  border: 3px solid var(--border-color); background: var(--ac-ctl); transition: transform .15s ease, border-color .2s ease, background .2s ease;
}
.ac-option:hover:not(:disabled) { transform: translateY(-3px) scale(1.02); border-color: var(--border-hover); }
.ac-option:disabled { opacity: 0.45; cursor: default; }
.ac-option.ok { opacity: 1; border-color: var(--success); background: rgba(16, 185, 129, 0.16); animation: acPop .45s ease; }
.ac-option.no { border-color: rgba(239, 68, 68, 0.6); }
.ac-opt-emoji { font-size: 3rem; line-height: 1; }
.ac-opt-sw { display: flex; gap: 6px; }
.ac-opt-sw i { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.8), 0 3px 8px rgba(0, 0, 0, 0.2); }
.ac-opt-mini { width: 160px; max-width: 100%; height: auto; border-radius: 14px; background: #fff; }
.ac-opt-label { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; text-align: center; }
.ac-opt-letter { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; }
.ac-feedback { min-height: 1.6em; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; text-align: center; }
.ac-feedback.ok { color: var(--success); }
.ac-feedback.try { color: var(--warning); }
.ac-shake { animation: acShake .4s ease; }
@keyframes acShake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@keyframes acPop { 0% { transform: scale(0.9); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
.ac-sort-slots { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.ac-sort-slot { width: 76px; height: 96px; border-radius: 16px; border: 3px dashed var(--border-hover); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; transition: background .25s ease; }
.ac-sort-slot span { font-family: var(--font-display); font-weight: 700; padding: 0 8px; border-radius: 99px; background: var(--ac-solid); }
.ac-sort-slot.filled { border-style: solid; border-color: var(--success); animation: acPop .35s ease; }
.ac-sort-pool { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; min-height: 80px; }
.ac-sort-chip { width: 72px; height: 72px; border-radius: 18px; cursor: pointer; border: 3px solid rgba(255, 255, 255, 0.8); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 6px 14px rgba(0, 0, 0, 0.2); transition: transform .12s ease; }
.ac-sort-chip:hover { transform: translateY(-3px); }
.ac-bins-cur { min-height: 120px; display: grid; place-items: center; }
.ac-bins-swatch { display: block; width: 110px; height: 110px; border-radius: 50%; border: 5px solid #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); animation: acPop .35s ease; }
.ac-bins-done { font-size: 4rem; }
.ac-bins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: 100%; max-width: 520px; }
.ac-bin { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px; min-height: 150px; border-radius: 24px; border: 3px solid var(--border-color); background: var(--ac-ctl); cursor: pointer; transition: transform .15s ease; }
.ac-bin:hover { transform: translateY(-3px); }
.ac-bin:first-child { background: linear-gradient(160deg, rgba(249, 115, 22, 0.25), rgba(239, 68, 68, 0.15)); }
.ac-bin:last-child { background: linear-gradient(160deg, rgba(14, 165, 233, 0.25), rgba(124, 58, 237, 0.15)); }
.ac-bin-emoji { font-size: 2.6rem; }
.ac-bin-label { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.ac-bin-items { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.ac-bin-items i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; animation: acPop .3s ease; }
.ac-wheel { position: relative; width: min(340px, 82vw); aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 0deg, rgba(139, 92, 246, 0.12), rgba(236, 72, 153, 0.12), rgba(139, 92, 246, 0.12)); border: 2px solid var(--border-color); }
.ac-wheel-slot { position: absolute; width: 25%; height: 25%; transform: translate(-50%, -50%); border-radius: 50%; border: 4px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--text-muted); }
.ac-wheel-slot.empty { background: var(--ac-solid); border-style: dashed; border-color: var(--border-hover); cursor: pointer; }
.ac-wheel-slot.empty:hover { border-color: var(--primary); }
.ac-wheel-slot.filled { border-style: solid; border-color: #fff; animation: acPop .35s ease; }
.ac-wheel-slot:disabled { opacity: 1; cursor: default; }
.ac-wheel-hub { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 2.6rem; }
.ac-wheel-chips { display: flex; gap: 16px; justify-content: center; min-height: 76px; }
.ac-wheel-chip { width: 70px; height: 70px; border-radius: 50%; border: 4px solid #fff; cursor: grab; touch-action: none; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25); transition: transform .1s ease; }
.ac-wheel-chip.sel { box-shadow: 0 0 0 5px var(--primary), 0 6px 16px rgba(0, 0, 0, 0.25); transform: scale(1.1); }
.ac-wheel-chip.dragging { cursor: grabbing; z-index: 5; position: relative; transition: none; }
.ac-reveal { margin-top: -4px; }

/* ── LABS ── */
.ac-lab { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ac-lab-canvas { display: block; width: 100%; height: auto; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06), 0 6px 18px rgba(0, 0, 0, 0.1); }
.ac-lab-canvas.ac-cross { cursor: crosshair; touch-action: none; }
.ac-lab-canvas.ac-grab { cursor: grab; touch-action: none; }
.ac-lab-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ac-lab-row.ac-center { justify-content: center; }
.ac-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 14px; background: var(--ac-ctl); border: 1px solid var(--border-color); cursor: pointer; font-weight: 600; }
.ac-toggle input { width: 22px; height: 22px; accent-color: var(--primary); cursor: pointer; }
.ac-toggle.big { font-family: var(--font-display); font-size: 1.1rem; padding: 10px 16px; }
.ac-slider { display: flex; flex-direction: column; gap: 6px; width: 100%; font-weight: 600; }
.ac-slider span { display: flex; justify-content: space-between; gap: 8px; }
.ac-slider b { color: var(--primary); font-family: var(--font-display); }
.ac-slider input { width: 100%; accent-color: var(--primary); height: 28px; cursor: pointer; }
.ac-slider.inline { width: auto; flex: 1 1 200px; }
.ac-mixer { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.ac-beakers { display: flex; align-items: center; gap: clamp(6px, 2vw, 18px); flex-wrap: nowrap; justify-content: center; width: 100%; }
.ac-beaker { position: relative; width: clamp(64px, 14vw, 100px); aspect-ratio: 0.8; border-radius: 10px 10px 28px 28px; border: 4px solid var(--border-hover); background: rgba(255, 255, 255, 0.08); overflow: hidden; cursor: pointer; display: grid; place-items: center; padding: 0; }
.ac-beaker::before { content: ''; position: absolute; top: 8px; left: 10%; width: 14%; height: 55%; border-radius: 8px; background: rgba(255, 255, 255, 0.35); z-index: 2; }
.ac-result { width: clamp(78px, 17vw, 124px); border-color: var(--text-main); cursor: default; }
.ac-liquid { position: absolute; left: 0; right: 0; bottom: 0; height: 0; transition: height .5s cubic-bezier(.3, 1.4, .5, 1), background .4s ease; border-top: 3px solid rgba(255, 255, 255, 0.35); }
.ac-bk-emo { position: relative; z-index: 3; font-size: clamp(1.4rem, 4vw, 2.2rem); font-weight: 700; }
.ac-result.ac-pop { animation: acPop .45s ease; }
.ac-op { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; color: var(--text-muted); }
.ac-formula { font-family: var(--font-display); font-size: 1.2rem; text-align: center; padding: 10px 16px; border-radius: 14px; background: var(--ac-ctl); border: 1px solid var(--border-color); width: 100%; }
.ac-paints { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.ac-paint { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 80px; padding: 10px 12px; border-radius: 18px; border: 3px solid var(--c); background: var(--ac-ctl); cursor: pointer; font-size: 1.6rem; transition: transform .12s ease; }
.ac-paint b { font-size: 0.9rem; }
.ac-paint:hover { transform: translateY(-3px) rotate(-2deg); }
.ac-paint:active { transform: scale(0.95); }
.ac-recipes { width: 100%; }
.ac-recipe-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-recipe { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--ac-ctl); border: 1px solid var(--border-color); font-weight: 600; font-size: 0.92rem; animation: acPop .35s ease; }
.ac-recipe i { width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.ac-harmony { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 18px; align-items: start; }
.ac-harm-wheelwrap { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.ac-harm-wheel { width: 100%; max-width: 360px; height: auto; cursor: pointer; touch-action: none; border-radius: 50%; }
.ac-harm-name { font-family: var(--font-display); font-weight: 700; min-width: 120px; text-align: center; }
.ac-harm-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ac-harm-swatches { display: flex; gap: 8px; min-height: 90px; }
.ac-harm-sw { flex: 1; min-height: 90px; border-radius: 18px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; font-family: var(--font-display); font-weight: 600; font-size: 0.78rem; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); animation: acPop .35s ease; }
.ac-harm-desc { margin: 0; color: var(--text-muted); line-height: 1.45; }
.ac-values { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; align-items: start; }
.ac-values-cv { cursor: crosshair; }
.ac-values-side { display: flex; flex-direction: column; gap: 14px; }
.ac-value-read { padding: 12px; border-radius: 14px; background: var(--ac-ctl); border: 1px solid var(--border-color); font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ac-value-sw { width: 28px; height: 28px; border-radius: 8px; box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0, 0, 0, 0.3); }
.ac-flip { display: flex; flex-direction: column; gap: 10px; }
.ac-flip-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.ac-flip-preview { width: 200px; max-width: 100%; height: auto; border-radius: 12px; background: #fff; border: 3px solid var(--secondary); }
.ac-fab-pickers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ac-fab-col { min-width: 0; }
.ac-fab-col .ac-chip { font-size: 0.88rem; padding: 6px 10px; }
.ac-fab-why { margin: 0; padding: 12px 14px; border-radius: 14px; background: rgba(236, 72, 153, 0.1); border: 1px solid rgba(236, 72, 153, 0.3); line-height: 1.45; font-weight: 500; }
.ac-outfit { display: grid; grid-template-columns: minmax(160px, 260px) minmax(0, 1fr); gap: 18px; align-items: center; }
.ac-doll { width: 100%; height: auto; max-height: 380px; background: radial-gradient(circle, rgba(236, 72, 153, 0.12), transparent 70%); border-radius: 24px; }
.ac-doll path[data-part] { cursor: pointer; transition: fill .3s ease; }
.ac-outfit-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ac-outfit-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-outfit-verdict { min-height: 3em; padding: 12px 14px; border-radius: 14px; background: var(--ac-ctl); border: 1px solid var(--border-color); font-family: var(--font-display); font-size: 1.1rem; }
.ac-rhythm, .ac-melody { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.ac-beats { display: flex; gap: 14px; justify-content: center; }
.ac-beat { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; background: var(--ac-ctl); border: 3px solid var(--border-hover); transition: transform .08s ease, background .08s ease; }
.ac-beat.on { background: var(--grad-main); color: #fff; transform: scale(1.18); border-color: #fff; }
.ac-drum { width: 140px; height: 140px; border-radius: 50%; border: 6px solid #fbbf24; background: radial-gradient(circle at 40% 35%, #fde68a, #f59e0b 60%, #b45309); font-size: 3rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #451a03; box-shadow: 0 10px 24px rgba(180, 83, 9, 0.4); }
.ac-drum span { font-size: 1rem; font-weight: 700; }
.ac-drum.hit { animation: acHit .18s ease; }
@keyframes acHit { 50% { transform: scale(0.9); } }
.ac-tapfb { min-height: 1.6em; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.ac-beatgrid { padding: 12px; border-radius: 18px; background: var(--ac-ctl); border: 1px solid var(--border-color); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; overflow-x: auto; max-width: 100%; }
.ac-beatrow { display: flex; gap: 6px; align-items: center; }
.ac-beatrow > span { width: 30px; font-size: 1.3rem; }
.ac-step { width: 38px; height: 38px; border-radius: 10px; border: 2px solid var(--border-hover); background: var(--ac-solid); cursor: pointer; flex: 0 0 auto; }
.ac-step.down { border-color: var(--text-faint); }
.ac-step.on { background: var(--grad-main); border-color: transparent; }
.ac-step.now { box-shadow: 0 0 0 3px #facc15; }
.ac-xylo { display: flex; gap: clamp(4px, 1vw, 10px); align-items: center; justify-content: center; height: 220px; padding: 10px; }
.ac-xbar { flex: 1 1 0; max-width: 70px; height: var(--h); min-width: 0; border-radius: 12px; border: 3px solid rgba(255, 255, 255, 0.7); background: var(--c); cursor: pointer; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25); transition: transform .1s ease, filter .1s ease; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }
.ac-xbar.hit, .ac-xbar:active { transform: scale(0.94) translateY(4px); filter: brightness(1.3); }
.ac-expr { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 18px; align-items: start; }
.ac-expr-cv { background: transparent; box-shadow: none; }
.ac-expr-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ac-expr-name { font-family: var(--font-display); font-size: 1.6rem; margin-top: 6px; }
.ac-expr-seen { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── v3: story order check ── */
.ac-order-slots { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; width: 100%; }
.ac-order-slot { position: relative; flex: 0 1 170px; aspect-ratio: 4 / 3; border-radius: 16px; border: 3px dashed var(--border-hover); display: grid; place-items: center; overflow: hidden; background: var(--ac-ctl); }
.ac-order-slot > span { position: absolute; top: 6px; left: 6px; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; background: var(--primary); color: #fff; }
.ac-order-slot canvas { width: 100%; height: 100%; display: block; }
.ac-order-slot.filled { border-style: solid; border-color: var(--success); animation: acPop .35s ease; }
.ac-order-pool { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; min-height: 90px; width: 100%; }
.ac-order-chip { flex: 0 1 160px; padding: 6px; border-radius: 18px; border: 3px solid var(--border-color); background: var(--ac-ctl); cursor: pointer; transition: transform .15s ease, border-color .2s ease; }
.ac-order-chip:hover { transform: translateY(-3px); border-color: var(--border-hover); }
.ac-order-chip canvas { width: 100%; height: auto; display: block; border-radius: 12px; }

/* ── v3 labs ── */
.ac-pixel { display: flex; flex-direction: column; gap: 12px; }
.ac-pixel-stage { display: flex; gap: 14px; align-items: flex-start; justify-content: center; }
.ac-pixel-cv { width: min(100%, 480px); touch-action: none; }
.ac-pixel-side { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; border-radius: 16px; background: var(--ac-ctl); border: 1px solid var(--border-color); }
.ac-pixel-prev { width: 64px; height: 64px; image-rendering: pixelated; image-rendering: crisp-edges; background: #fff; border-radius: 6px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2); }
.ac-pixel-pal .ac-swatch { display: grid; place-items: center; }
.ac-pixel-pal .ac-swatch b { font-family: var(--font-display); font-size: 1.1rem; }
.ac-pixel-pal .ac-tool.on { border-color: var(--primary); background: rgba(139, 92, 246, 0.2); }
.ac-snow { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.ac-snow-cv { width: min(100%, 520px); border-radius: 50%; touch-action: none; background: #0b1d51; }
.ac-pop { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.ac-pop-cv { width: min(100%, 560px); cursor: pointer; }
.ac-center-text { text-align: center; margin: 0; }
.ac-mascot-lab { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
.ac-mascot-lab .ac-chips { gap: 6px; }
.ac-mascot-lab .ac-chip.big { font-size: 1.35rem; min-width: 48px; min-height: 48px; padding: 4px 8px; }
.ac-mascot-lab .ac-swatch.big { width: 40px; height: 40px; }
.ac-mascot-lab .ac-mini-h { margin: 4px 0 2px; }
.ac-name-lab { display: flex; flex-direction: column; gap: 12px; }
.ac-name-lab .ac-chips { justify-content: center; }
.ac-name-lab .ac-inline-name input { font-size: 1.2rem; text-transform: uppercase; }

/* ── FINISH ── */
.ac-finish { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 26px 18px; border-radius: 30px; background: var(--bg-card); border: 1px solid var(--border-color); text-align: center; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ac-finish-stars { display: flex; gap: 10px; }
.ac-bigstar { font-size: clamp(3.4rem, 10vw, 5.4rem); line-height: 1; color: var(--text-faint); opacity: 0.4; transform: scale(0.6); animation: acStarIn .5s cubic-bezier(.3, 1.6, .5, 1) forwards; }
.ac-bigstar.on { color: #facc15; opacity: 1; text-shadow: 0 0 22px rgba(250, 204, 21, 0.7); }
@keyframes acStarIn { to { transform: scale(1); } }
.ac-finish-title { font-family: var(--font-display); font-size: 2rem; margin: 0; }
.ac-finish-sub { margin: 0; color: var(--text-muted); font-size: 1.1rem; }
.ac-course-done { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; padding: 12px 18px; border-radius: 18px; background: rgba(250, 204, 21, 0.14); border: 2px solid rgba(250, 204, 21, 0.5); font-size: 1.2rem; }
.ac-finish-art { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: center; }
.ac-finish-art img { width: 260px; max-width: 100%; border-radius: 16px; border: 6px solid #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); transform: rotate(-2deg); }
.ac-send { display: flex; flex-direction: column; gap: 10px; align-items: stretch; text-align: left; }
.ac-send label, .ac-inline-name { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 0.9rem; color: var(--text-muted); }
.ac-inline-name { flex-direction: row; align-items: center; gap: 8px; flex-wrap: wrap; }
.ac-send input, .ac-inline-name input { min-height: 44px; padding: 8px 14px; border-radius: 14px; border: 1px solid var(--border-hover); background: var(--ac-ctl); color: var(--text-main); font-family: var(--font-display); font-size: 1rem; max-width: 100%; }
.ac-challenge-card { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; text-align: left; width: 100%; max-width: 720px; padding: 16px 18px; border-radius: 22px; background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(236, 72, 153, 0.16)); border: 2px solid rgba(139, 92, 246, 0.4); }
.ac-challenge-card > div { flex: 1 1 240px; min-width: 0; }
.ac-challenge-card p { margin: 4px 0 0; }
.ac-challenge-emo { font-size: 2.8rem; }
.ac-finish-nav { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* ── ARTISTS / DAILY / CERTIFICATE ── */
.ac-artist-hero { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 22px; align-items: center; padding: 20px; border-radius: 30px; background: var(--bg-card); border: 1px solid var(--border-color); }
.ac-art-big { width: 100%; height: auto; border-radius: 12px; border: 12px solid #e7d3ab; box-shadow: 0 0 0 4px #a16207, 0 16px 34px rgba(0, 0, 0, 0.3); }
.ac-artist-info { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; min-width: 0; }
.ac-artist-info .ac-artist-meta { margin: 0; font-weight: 600; }
.ac-artist-bio { margin: 0; font-size: 1.12rem; line-height: 1.5; }
.ac-funfact { margin: 0; padding: 12px 14px; border-radius: 16px; background: rgba(250, 204, 21, 0.12); border: 1px solid rgba(250, 204, 21, 0.4); }
.ac-activity .ac-say { margin-bottom: 12px; }
.ac-activity-pad { max-width: 900px; margin: 0 auto; }
.ac-daily-page .ac-activity-pad { margin-top: 16px; }
.ac-daily-hero { display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: 30px; color: #fff; background: linear-gradient(135deg, #f59e0b, #ef4444); box-shadow: 0 16px 34px rgba(239, 68, 68, 0.25); }
.ac-daily-hero > div { flex: 1; min-width: 0; }
.ac-daily-hero .ac-big-emoji { font-size: 4rem; }
.ac-daily-hero p { margin: 4px 0 0; }
.ac-daily-hero .ac-icon-btn { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.4); }
.ac-cert-page { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.ac-cert { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3); }
.ac-cert-page .ac-finish-nav { align-self: center; }
.ac-locked { align-self: stretch; text-align: center; padding: 40px 20px; border-radius: 30px; background: var(--bg-card); border: 1px dashed var(--border-hover); font-size: 1.15rem; }
.ac-locked > span { font-size: 4rem; }

/* ── STUDIO CHALLENGE PILL (lives on <body>) ── */
.ac-pill {
  position: fixed; top: 14px; right: 18px; z-index: 1500;
  display: flex; align-items: center; gap: 10px; max-width: min(560px, calc(100vw - 24px));
  padding: 8px 8px 8px 16px; border-radius: 999px; color: #fff;
  background: linear-gradient(135deg, #6366f1, #a855f7 55%, #ec4899); box-shadow: 0 14px 34px rgba(88, 28, 135, 0.45);
  font-family: var(--font-body); animation: acPillIn .45s cubic-bezier(.3, 1.4, .5, 1);
}
.ac-pill[hidden] { display: none; }
@keyframes acPillIn { from { transform: translateY(-30px); opacity: 0; } }
.ac-pill-emo { font-size: 1.6rem; }
.ac-pill-text { flex: 1; min-width: 0; font-size: 0.95rem; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ac-pill-done { flex: 0 0 auto; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: none; background: #fff; color: #6d28d9; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; cursor: pointer; }
.ac-pill-done:hover { transform: scale(1.05); }
.ac-pill-x { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.15); color: #fff; cursor: pointer; font-size: 1rem; }
.ac-pill button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ── MODAL & CONFETTI ── */
.ac-modal { position: fixed; inset: 0; z-index: 2100; display: grid; place-items: center; padding: 16px; background: rgba(8, 6, 20, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: acFade .25s ease; }
@keyframes acFade { from { opacity: 0; } }
.ac-modal-card { width: min(380px, 100%); padding: 26px 22px; border-radius: 30px; text-align: center; background: var(--bg-app, #0f111a); color: var(--text-main); border: 2px solid rgba(250, 204, 21, 0.6); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); font-family: var(--font-body); }
.ac-modal-card h3 { font-family: var(--font-display); font-size: 1.7rem; margin: 6px 0; }
.ac-modal-card p { margin: 0 0 16px; color: var(--text-muted); }
.ac-modal-card .ac-btn { width: 100%; min-height: 56px; font-size: 1.2rem; font-family: var(--font-display); }
.ac-badge-big { font-size: 5.5rem; line-height: 1.1; animation: acBadge 1s cubic-bezier(.3, 1.6, .5, 1); filter: drop-shadow(0 8px 20px rgba(250, 204, 21, 0.6)); }
@keyframes acBadge { 0% { transform: scale(0) rotate(-40deg); } 70% { transform: scale(1.2) rotate(10deg); } 100% { transform: scale(1) rotate(0); } }
.ac-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 2200; }

/* ── LITTLE ARTISTS: bigger everything, less reading ── */
.ac-t-little { --ac-tap: 60px; }
.ac-t-little .ac-say { font-size: 1.5rem; font-family: var(--font-display); font-weight: 600; }
.ac-t-little .ac-btn { font-size: 1.2rem; padding: 12px 22px; }
.ac-t-little .ac-nav .ac-btn { min-height: 72px; font-size: 1.35rem; }
.ac-t-little .ac-tool { width: 58px; height: 58px; font-size: 1.7rem; }
.ac-t-little .ac-size { width: 50px; height: 58px; }
.ac-t-little .ac-swatch { width: 46px; height: 46px; }
.ac-t-little .ac-course-desc, .ac-t-little .ac-track-desc, .ac-t-little .ac-kbd-hint { display: none; }
.ac-t-little .ac-course-emoji { width: 76px; height: 76px; font-size: 2.8rem; }
.ac-t-little .ac-read { width: 64px; height: 64px; font-size: 1.9rem; background: var(--grad-main); border: none; box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4); }
.ac-t-little .ac-option { min-height: 150px; }
.ac-t-little .ac-opt-emoji { font-size: 4rem; }
.ac-t-pro .ac-say { font-size: 1.05rem; }

/* ── LIGHT THEME tweaks ── */
[data-theme="light"] .ac-swatch { border-color: #fff; }
[data-theme="light"] .ac-modal-card { background: #ffffff; }
[data-theme="light"] .ac-beaker { background: rgba(15, 23, 42, 0.03); }
[data-theme="light"] .ac-art-prev { border-color: #e7d3ab; }

/* ── RESPONSIVE ── */
@media (max-width: 1000px) {
  .ac-lesson-body { grid-template-columns: minmax(0, 1fr); }
  .ac-coach { display: contents; }
  .ac-coach-head, .ac-say, .ac-goal { order: -1; }
  .ac-coach-head { margin-bottom: -8px; }
  .ac-nav { order: 2; position: sticky; bottom: 8px; z-index: 6; padding: 8px; border-radius: 22px; background: var(--bg-card-hover); border: 1px solid var(--border-color); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25); }
  .ac-kbd-hint { display: none; }
  .ac-harmony, .ac-values, .ac-expr, .ac-artist-hero { grid-template-columns: minmax(0, 1fr); }
  .ac-harm-wheelwrap { max-width: 360px; margin: 0 auto; }
}
@media (max-width: 700px) {
  .ac-home-row { grid-template-columns: minmax(0, 1fr); }
  .ac-track-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ac-track { flex-direction: row; text-align: left; padding: 12px 14px; gap: 12px; flex-wrap: wrap; }
  .ac-track-emo { font-size: 2.2rem; }
  .ac-track-desc { flex-basis: 100%; }
  .ac-hero { padding: 20px 18px; border-radius: 24px; }
  .ac-stats { width: 100%; }
  .ac-stat { flex: 1 1 0; min-width: 0; padding: 8px 6px; }
  .ac-stat b { font-size: 1.15rem; }
  .ac-hide-sm { display: none; }
  .ac-stage, .ac-coach { padding: 10px; border-radius: 22px; }
  .ac-outfit { grid-template-columns: minmax(0, 1fr); }
  .ac-doll { max-height: 260px; }
  .ac-fab-pickers { grid-template-columns: minmax(0, 1fr); }
  .ac-map::before { left: 38px; }
  .ac-map-item:nth-child(even) { margin-left: 0; }
  .ac-map-num { width: 46px; height: 46px; font-size: 1.15rem; }
  .ac-map-emoji { font-size: 1.7rem; }
  .ac-map-node .ac-pill-btn { display: none; }
  .ac-course-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .ac-artist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ac-badges { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .ac-option { min-width: 0; flex: 1 1 130px; min-height: 100px; }
  .ac-opt-emoji { font-size: 2.4rem; }
  .ac-pad-group { gap: 4px; padding: 4px; }
  .ac-tool { width: 42px; height: 42px; font-size: 1.2rem; }
  .ac-size { width: 34px; height: 42px; }
  .ac-swatch { width: 30px; height: 30px; }
  .ac-t-little .ac-tool { width: 50px; height: 50px; }
  .ac-t-little .ac-swatch { width: 38px; height: 38px; }
  .ac-sort-slot { width: 52px; height: 70px; }
  .ac-sort-chip { width: 56px; height: 56px; }
  .ac-order-slot { flex-basis: 30%; }
  .ac-order-chip { flex-basis: 30%; padding: 4px; }
  .ac-pixel-stage { flex-direction: column; align-items: center; }
  .ac-pixel-side { flex-direction: row; }
  .ac-pixel-prev { width: 40px; height: 40px; }
  .ac-drum { width: 120px; height: 120px; }
  .ac-beat { width: 50px; height: 50px; }
  .ac-xylo { height: 170px; }
  .ac-pill { top: auto; bottom: 10px; left: 8px; right: 8px; max-width: none; padding-left: 12px; gap: 6px; }
  .ac-pill-emo { display: none; }
  .ac-pill-text { font-size: 0.85rem; }
  .ac-daily-hero { flex-wrap: wrap; padding: 18px; }
  .ac-daily-hero .ac-big-emoji { font-size: 3rem; }
  .ac-finish-title { font-size: 1.6rem; }
  .ac-nav .ac-btn { min-height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .ac-app *, .ac-pill, .ac-modal, .ac-badge-big { animation: none !important; transition: none !important; }
  .ac-bigstar { transform: none; }
}

/* Compact Academy header on phones */
@media (max-width: 600px) {
  .ac-hero { padding: 14px 14px; gap: 10px; border-radius: 20px; }
  .ac-hero::after { display: none; }
  .ac-hero .ac-title { font-size: 1.3rem; margin: 0; }
  .ac-sub { font-size: 0.85rem; margin: 2px 0 8px; }
  .ac-name { font-size: 0.95rem; }
  .ac-name input { min-height: 38px; font-size: 0.95rem; padding: 6px 10px; }
  .ac-stat { padding: 6px 4px; border-radius: 14px; }
  .ac-stat b { font-size: 1rem; }
  .ac-stat span { font-size: 0.72rem; }
  .ac-lesson-title { font-size: 1.15rem; }
}
