    /* ── DESIGN TOKENS ── */
    :root {
      /* Color palette */
      --purple-950: #1E0835; --purple-900: #2D1052; --purple-800: #3D1470;
      --purple-700: #52208F; --purple-600: #6B2D8B; --purple-500: #8A4BAA;
      --purple-200: #D9B8EE; --purple-100: #EDD9F8; --purple-50: #FAF4FE;
      --gold-600: #C9A00A; --gold-500: #F5C518; --gold-400: #F7D14A;
      --gold-300: #FAE080; --gold-100: #FDF6D0;
      --green-700: #1E6633; --green-600: #2D8B4E; --green-100: #D4F3DF;
      --text-900: #1A1025; --text-600: #5A4E6B; --text-300: #C2B8CF;
      --surface: #FFFFFF; --surface-2: #F7F2FC; --bg: #FAF8F0; /* Cream, not pure white */
      --accent: var(--accent-override, #0f766e);
      
      /* Border radius */
      --r-sm: 8px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px; --r-pill: 9999px;
      
      /* Shadows */
      --shadow-card: 0 2px 4px rgba(107,45,139,0.06), 0 8px 20px rgba(107,45,139,0.10);
      --shadow-btn: 0 4px 12px rgba(107,45,139,0.30), inset 0 1px 0 rgba(255,255,255,0.15);
      --shadow-gold: 0 4px 14px rgba(245,197,24,0.40);
      --shadow-header: 0 4px 16px rgba(30,8,53,0.35);
      
      /* Animation */
      --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
      --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
      
      /* ══ ACCESSIBILITY: Child-Friendly Defaults (Age 7) ══ */
      /* Typography - larger for young readers */
      --font-family: 'Nunito', -apple-system, sans-serif;
      --font-size-body: clamp(18px, 2.8vw, 24px);      /* Was 16px - now 18-24px */
      --font-size-heading: clamp(28px, 4vw, 36px);     /* Was 22px - now 28-36px */
      --font-size-button: clamp(20px, 3vw, 26px);      /* Was 16px - now 20-26px */
      --font-size-small: clamp(14px, 2vw, 18px);       /* Was 12px - now 14-18px */
      --letter-spacing: 0.02em;
      --line-height: 1.6;
      
      /* Touch targets - minimum 60px for children under 8 */
      --touch-target-min: 60px;
      --touch-target-recommended: 72px;
      --tap-spacing: 16px;
      
      /* Feedback timing */
      --feedback-delay: 150ms;
      --animation-duration: 0.3s;
      
      font-family: var(--font-family);
      font-size: var(--font-size-body);
      line-height: var(--line-height);
      letter-spacing: var(--letter-spacing);
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
    }
    
    /* ══ ACCESSIBILITY: Reduced Motion ══ */
    @media (prefers-reduced-motion: reduce) {
      :root {
        --animation-duration: 0.01ms;
        --ease-spring: linear;
        --ease-out: linear;
      }
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
      }
    }
    
    /* ══ ACCESSIBILITY: High Contrast Mode ══ */
    @media (prefers-contrast: more) {
      :root {
        --surface: #FFFFFF;
        --text-900: #000000;
        --shadow-card: 0 0 0 2px #000000;
      }
    }
    
    /* ══ ACCESSIBILITY: Dark Mode ══ */
    @media (prefers-color-scheme: dark) {
      :root {
        --bg: #1A1025;
        --surface: #2D1052;
        --surface-2: #3D1470;
        --text-900: #F7F2FC;
        --text-600: #D9B8EE;
      }
    }

    /* ── RESET & BASE ── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html, body { height: 100%; overflow: hidden; }
    body {
      height: 100dvh;
      min-height: 100svh;
      display: flex;
      flex-direction: column;
      align-items: center;
      background: linear-gradient(160deg, var(--purple-950) 0%, var(--purple-700) 45%, var(--green-700) 100%);
      color: var(--text-900);
    }

    /* ── APP SHELL ── */
    .app-shell {
      width: min(960px, 100%);
      height: 100dvh;
      min-height: 100svh;
      display: grid;
      grid-template-rows: auto minmax(0, 1fr) auto;
      overflow: hidden;
    }

    /* ── HEADER ── */
    .app-header {
      display: grid;
      grid-template-columns: 56px 1fr auto;
      grid-template-rows: auto auto auto;
      column-gap: 12px;
      row-gap: 0;
      align-items: center;
      padding: max(12px, env(safe-area-inset-top)) 16px 10px;
      background: linear-gradient(135deg, var(--purple-900) 0%, var(--purple-700) 60%, var(--purple-600) 100%);
      box-shadow: var(--shadow-header);
      position: relative;
      z-index: 10;
    }
    .header-avatar {
      grid-row: 1 / 3;
      grid-column: 1;
      width: 48px;
      height: 48px;
      border-radius: var(--r-pill);
      overflow: visible;
      flex-shrink: 0;
    }
    .header-info {
      grid-row: 1;
      grid-column: 2;
      display: flex;
      flex-direction: column;
      gap: 1px;
    }
    .header-mentor-name {
      font-family: 'Fredoka One', cursive;
      font-size: clamp(16px, 2.2vw, 22px);
      color: var(--gold-400);
      line-height: 1.1;
    }
    .header-kid-name {
      font-size: clamp(11px, 1.5vw, 14px);
      color: var(--purple-200);
      font-weight: 700;
    }
    .xp-pill {
      grid-row: 1;
      grid-column: 3;
      background: rgba(245,197,24,0.15);
      border: 1.5px solid var(--gold-500);
      border-radius: var(--r-pill);
      padding: 4px 12px;
      font-size: clamp(12px, 1.6vw, 15px);
      font-weight: 800;
      color: var(--gold-400);
      white-space: nowrap;
      box-shadow: var(--shadow-gold);
      transition: transform 0.3s var(--ease-spring), background 0.2s ease;
    }
    .xp-pill.bump { animation: xpBump 0.4s var(--ease-spring) 1; }
    @keyframes xpBump {
      0%   { transform: scale(1); }
      50%  { transform: scale(1.18); background: rgba(245,197,24,0.35); }
      100% { transform: scale(1); }
    }
    .progress-track {
      grid-row: 2;
      grid-column: 2 / 4;
      height: 5px;
      background: rgba(255,255,255,0.15);
      border-radius: var(--r-pill);
      overflow: hidden;
      margin-top: 6px;
    }
    .progress-fill {
      height: 100%;
      width: 5%;
      background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
      border-radius: var(--r-pill);
      animation: shimmer 2s ease-in-out infinite;
      transition: width 0.6s cubic-bezier(0.16,1,0.3,1);
    }
    @keyframes shimmer {
      0%, 100% { opacity: 0.85; }
      50% { opacity: 1; box-shadow: 0 0 8px var(--gold-400); }
    }

    /* ── SESSION PROGRESS INDICATOR ── */
    .session-progress-row {
      grid-row: 3;
      grid-column: 1 / 4;
      display: flex;
      justify-content: center;
      padding: 4px 0 2px;
    }
    .session-progress-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(245,197,24,0.28);
      border-radius: var(--r-pill);
      padding: 4px 12px 4px 10px;
      font-family: 'Nunito', sans-serif;
      font-size: clamp(11px, 1.5vw, 13px);
      font-weight: 800;
      color: var(--purple-200);
      white-space: nowrap;
      transition: border-color 0.25s ease;
    }
    .session-progress-pill.near-done {
      border-color: rgba(245,197,24,0.65);
      color: var(--gold-300);
    }
    .session-progress-icon {
      font-size: 12px;
      line-height: 1;
    }
    #sessionProgressText {
      letter-spacing: 0.04em;
      min-width: 30px;
    }
    .session-progress-bar-track {
      width: clamp(60px, 12vw, 100px);
      height: 5px;
      background: rgba(255,255,255,0.12);
      border-radius: var(--r-pill);
      overflow: hidden;
    }
    .session-progress-bar-fill {
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, var(--purple-500), var(--gold-500));
      border-radius: var(--r-pill);
      transition: width 0.5s cubic-bezier(0.16,1,0.3,1);
    }
    @keyframes sessionProgressPop {
      0%   { transform: scale(1); }
      45%  { transform: scale(1.10); }
      100% { transform: scale(1); }
    }
    .session-progress-pill.pop { animation: sessionProgressPop 0.35s var(--ease-spring) 1; }

    /* ── EMMA AVATAR ── */
    .emma-avatar {
      display: block;
      width: 100%;
      height: 100%;
      transition: transform 0.3s var(--ease-spring);
    }
    .emma-avatar[data-state="idle"] { animation: emmaIdle 3s ease-in-out infinite; }
    .emma-avatar[data-state="listening"] { transform: scale(1.08); animation: emmaListen 0.6s ease-in-out infinite alternate; }
    .emma-avatar[data-state="thinking"] { animation: emmaThink 1.2s ease-in-out infinite; }
    .emma-avatar[data-state="speaking"] { animation: emmaSpeak 0.4s ease-in-out infinite alternate; }
    .emma-avatar[data-state="proud"] { animation: emmaProud 0.7s var(--ease-spring) 1 forwards; }
    .emma-avatar[data-state="correct"] { animation: emmaCorrect 0.55s var(--ease-spring) 1 forwards; }
    .emma-avatar[data-state="gentle"] { animation: emmaIdle 4s ease-in-out infinite; filter: brightness(0.95); }
    @keyframes emmaIdle {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-3px); }
    }
    @keyframes emmaListen {
      from { transform: scale(1.05); }
      to { transform: scale(1.12); }
    }
    @keyframes emmaThink {
      0%, 100% { transform: rotate(0deg); }
      25% { transform: rotate(-4deg); }
      75% { transform: rotate(4deg); }
    }
    @keyframes emmaSpeak {
      from { transform: scaleY(1); }
      to { transform: scaleY(1.06); }
    }
    @keyframes emmaProud {
      0% { transform: scale(1); }
      40% { transform: scale(1.2) rotate(8deg); }
      70% { transform: scale(1.15) rotate(-4deg); }
      100% { transform: scale(1.1) rotate(0deg); }
    }
    @keyframes emmaCorrect {
      0%   { transform: scale(1) rotate(0deg); }
      35%  { transform: scale(1.15) rotate(6deg); }
      65%  { transform: scale(1.1) rotate(-3deg); }
      100% { transform: scale(1) rotate(0deg); }
    }

    /* ── CONTENT ZONE ── */
    .content-zone {
      min-height: 0;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      display: flex;
      flex-direction: column;
      gap: 8px;
      padding: 10px 12px 4px;
    }

    /* ── PROMPT CARD ── */
    .prompt-card {
      background: linear-gradient(135deg, var(--purple-800) 0%, var(--purple-600) 100%);
      border: 1.5px solid rgba(245,197,24,0.35);
      border-radius: var(--r-lg);
      padding: clamp(10px, 1.8vh, 16px) 14px;
      box-shadow: var(--shadow-card);
      display: grid;
      gap: 6px;
      flex-shrink: 0;
    }
    .voice-kicker {
      font-family: 'Fredoka One', cursive;
      color: var(--gold-400);
      font-size: clamp(11px, 1.6vw, 14px);
      letter-spacing: 0.06em;
      text-transform: uppercase;
      display: none;
    }
    .voice-prompt-text {
      font-size: clamp(16px, 2.6vw, 26px);
      line-height: 1.25;
      font-weight: 900;
      color: var(--purple-50);
      max-height: min(38svh, 260px);
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }
    .voice-state {
      display: none;
      font-size: clamp(12px, 1.7vw, 15px);
      color: var(--purple-200);
      font-weight: 700;
    }
    .sound-wave { display: none; gap: 4px; align-items: flex-end; min-height: 20px; }
    .sound-wave span {
      width: 6px;
      border-radius: var(--r-pill);
      background: linear-gradient(var(--gold-500), var(--gold-300));
      animation: voicePulse 1.05s ease-in-out infinite;
    }
    .sound-wave span:nth-child(1) { height: 9px; }
    .sound-wave span:nth-child(2) { height: 17px; animation-delay: .12s; }
    .sound-wave span:nth-child(3) { height: 12px; animation-delay: .24s; }
    .sound-wave span:nth-child(4) { height: 20px; animation-delay: .36s; }
    .sound-wave span:nth-child(5) { height: 10px; animation-delay: .48s; }
    @keyframes voicePulse {
      0%, 100% { transform: scaleY(0.72); opacity: 0.68; }
      50% { transform: scaleY(1.15); opacity: 1; }
    }

    /* ── MISSION STRIP ── */
    .mission-strip {
      display: none;
    }
    .mission-step {
      background: rgba(245,197,24,0.10);
      border: 1px solid rgba(245,197,24,0.28);
      border-radius: var(--r-md);
      padding: 7px 8px;
      color: var(--gold-300);
      font-size: clamp(11px, 1.6vw, 14px);
      font-weight: 800;
      text-align: center;
    }

    /* ── CHAT AREA ── */
    .chat-area {
      display: none;
      flex: 1;
      min-height: 80px;
      background: rgba(255,255,255,0.07);
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: var(--r-lg);
      padding: 10px;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    }
    .chat-area.active {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .chat-area:empty::before {
      content: '';
      display: none;
    }

    /* ── BUBBLES ── */
    .bubble {
      max-width: 92%;
      margin: 5px 0;
      padding: 9px 12px;
      border-radius: var(--r-md);
      font-size: clamp(17px, 4.5vw, 22px);
      line-height: 1.35;
    }
    .bot {
      background: linear-gradient(135deg, rgba(61,20,112,0.90), rgba(30,102,51,0.75));
      border: 1px solid rgba(245,197,24,0.25);
      color: var(--purple-50);
    }
    .user, .kid {
      margin-left: auto;
      background: rgba(255,255,255,0.18);
      color: #ffffff;
      font-size: clamp(17px, 4.5vw, 22px);
      font-weight: 600;
      border: 1px solid rgba(255,255,255,0.25);
    }

    /* ── QUESTION STATUS ── */
    .question-status {
      display: none;
    }

    /* ── ACTION ZONE ── */
    .action-zone {
      display: grid;
      gap: 7px;
      background: rgba(45,16,82,0.85);
      border-top: 1px solid rgba(245,197,24,0.20);
      padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
    }
    #preview { width: 100%; max-height: 160px; border-radius: var(--r-md); background: #111827; display: none; }
    .input-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 7px;
      align-items: stretch;
    }
    input#utterance {
      border: 1.5px solid rgba(245,197,24,0.30);
      font-size: clamp(16px, 2.5vw, 21px);
      padding: 11px 13px;
      outline: none;
      min-width: 0;
      background: rgba(255,255,255,0.10);
      border-radius: var(--r-md);
      color: var(--purple-50);
      font-family: 'Nunito', sans-serif;
      font-weight: 700;
    }
    input#utterance::placeholder { color: var(--purple-200); }
    button {
      border: none;
      border-radius: var(--r-md);
      background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
      color: var(--purple-950);
      font-family: var(--font-family);
      font-weight: 900;
      font-size: var(--font-size-button);
      padding: 14px 20px;
      min-height: var(--touch-target-min);
      min-width: var(--touch-target-min);
      touch-action: manipulation;
      cursor: pointer;
      box-shadow: var(--shadow-btn);
      transition: transform var(--animation-duration) var(--ease-spring), box-shadow var(--animation-duration) ease;
      /* Accessibility: ensure adequate tap target spacing */
      margin: calc(var(--tap-spacing) / 4);
    }
    button:active { transform: scale(0.96); }
    button:focus-visible {
      outline: 3px solid var(--gold-300);
      outline-offset: 2px;
    }
    .btn-row {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(var(--touch-target-min), 1fr));
      gap: var(--tap-spacing);
    }
    .btn-row button {
      font-size: clamp(12px, 1.7vw, 15px);
      padding: 7px 6px;
      min-height: 44px;
      background: rgba(245,197,24,0.12);
      border: 1px solid rgba(245,197,24,0.30);
      color: var(--gold-300);
      box-shadow: none;
    }
    .btn-row button:active { transform: scale(0.95); }
    .recording {
      background: #dc2626;
      border-color: #dc2626;
      color: white;
    }

    /* ── FENCE PANEL ── */
    .fence-panel {
      display: none;
      background: var(--purple-950);
      color: var(--purple-50);
      border-radius: var(--r-lg);
      padding: 10px;
      box-shadow: 0 12px 28px rgba(15,23,42,0.25);
      gap: 8px;
      min-height: 0;
      overflow: auto;
      border: 2px solid rgba(245,197,24,0.25);
    }
    .fence-panel.active {
      display: grid;
      grid-template-rows: auto minmax(0,1fr) auto;
      position: fixed;
      inset: 0;
      z-index: 9000;
      border-radius: 0;
      padding: 16px;
      overflow: hidden;
    }
    /* When fence is active, hide all other main content */
    body:has(#fencePanel.active) header,
    body:has(#fencePanel.active) .content-zone > *:not(#fencePanel),
    body:has(#fencePanel.active) .bottom-input-row,
    body:has(#fencePanel.active) .action-menu,
    body:has(#fencePanel.active) .skip-idk-row {
      visibility: hidden;
      pointer-events: none;
    }
    .fence-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
      font-weight: 900;
      color: var(--gold-400);
    }
    .fence-stage {
      min-height: 0;
      height: 100%;
      border-radius: var(--r-md);
      background: linear-gradient(135deg, #1e293b, #334155);
      display: grid;
      place-items: center;
      text-align: center;
      padding: 12px;
      font-size: clamp(16px, 2.3vw, 21px);
      overflow: hidden;
    }
    .fence-stage iframe {
      width: 100%;
      height: 100%;
      min-height: 0;
      border: 0;
      border-radius: var(--r-md);
      background: black;
    }
    .watch-video { width: 100%; max-height: 260px; border-radius: var(--r-md); background: #111827; display: block; box-shadow: 0 10px 28px rgba(15,23,42,0.25); }
    .fence-actions {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 7px;
    }
    .fence-actions button {
      background: rgba(255,255,255,0.95);
      color: var(--purple-900);
      font-size: clamp(12px, 1.7vw, 15px);
      box-shadow: none;
    }
    .watch-grid { display: grid; gap: 8px; width: 100%; }
    .watch-card {
      background: rgba(255,255,255,0.96);
      color: #0f172a;
      border-radius: var(--r-md);
      padding: 10px;
      text-align: left;
      display: grid;
      gap: 5px;
    }
    .watch-card button, .watch-request button { justify-self: start; font-size: 15px; padding: 8px 12px; }
    .watch-request {
      background: rgba(255,255,255,0.98);
      color: #0f172a;
      border-radius: var(--r-md);
      padding: 10px;
      display: grid;
      gap: 7px;
    }
    .watch-request input {
      width: 100%;
      border-radius: var(--r-sm);
      border: 1px solid #cbd5e1;
      padding: 10px;
      font-size: 16px;
      color: #172033;
      background: #f8fafc;
    }
    .play-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .play-choice {
      background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
      color: var(--purple-950);
      border: 1.5px solid var(--gold-500);
      min-height: 54px;
      font-size: clamp(16px, 2.4vw, 21px);
      font-weight: 900;
      box-shadow: var(--shadow-gold);
    }

    /* ── GAME FEEDBACK ── */
    .reward-flash { animation: rewardFlash .58s ease-in-out 2; box-shadow: 0 0 0 5px rgba(245,197,24,0.40), 0 0 34px rgba(245,197,24,0.50); }
    .error-shake { animation: errorShake .32s ease-in-out 1; box-shadow: 0 0 0 4px rgba(239,68,68,0.28); }
    .feedback-win { background: linear-gradient(135deg, var(--gold-300), var(--gold-100)); color: var(--purple-950); border: 2px solid var(--gold-500); }
    .feedback-retry { background: linear-gradient(135deg, #fee2e2, #fff7ed); color: #7f1d1d; border: 2px solid #f87171; }
    .game-reward-graphic { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-md); margin-bottom: 4px; background: rgba(255,255,255,0.62); border: 2px solid rgba(245,197,24,0.45); }
    .reward-trophy { font-size: clamp(42px, 7vw, 70px); line-height: 1; filter: drop-shadow(0 7px 10px rgba(180,83,9,0.24)); animation: trophyPop .72s ease-out 1; }
    .reward-confetti { font-size: clamp(20px, 3.2vw, 32px); letter-spacing: .18em; animation: confettiDance .9s ease-in-out 2; }
    .retry-graphic { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-md); margin-bottom: 4px; background: rgba(255,255,255,0.68); border: 2px solid rgba(248,113,113,0.5); }
    .retry-icon { font-size: clamp(36px, 6vw, 58px); line-height: 1; animation: retryBounce .6s ease-in-out 1; }
    @keyframes rewardFlash { 0%,100% { transform: scale(1); } 50% { transform: scale(1.025); } }
    @keyframes errorShake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }
    @keyframes trophyPop { 0% { transform: scale(.72) rotate(-8deg); } 65% { transform: scale(1.12) rotate(5deg); } 100% { transform: scale(1) rotate(0); } }
    @keyframes confettiDance { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
    @keyframes retryBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
    @keyframes mascotBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
    @keyframes splashPulse { 0%,100% { transform: scale(1); box-shadow: 0 6px 24px rgba(245,197,24,0.5); } 50% { transform: scale(1.04); box-shadow: 0 10px 36px rgba(245,197,24,0.75); } }
    @keyframes wrongPopIn { from { opacity:0; transform:scale(0.88) translateY(20px); } to { opacity:1; transform:scale(1) translateY(0); } }

    @keyframes fadeSlideUp {
      from { opacity: 0; transform: translateY(10px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    /* ── MULTIPLE CHOICE ── */
    .mc-choices {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: var(--sp-3);
      padding: var(--sp-2) 0;
    }
    .mc-btn {
      background: var(--surface);
      border: 2.5px solid var(--purple-200);
      border-radius: var(--r-lg);
      padding: clamp(14px,2.2vh,20px) clamp(10px,2vw,16px);
      font-family: var(--font-body);
      font-size: clamp(17px, 2.6vw, 22px);
      font-weight: 700;
      color: var(--text-900);
      cursor: pointer;
      min-height: 70px;
      box-shadow: var(--shadow-card);
      transition: transform 80ms var(--ease-out), border-color 100ms, background 100ms, box-shadow 100ms;
      text-align: center;
      line-height: 1.3;
      position: relative;
      overflow: hidden;
    }
    .mc-btn:active { transform: scale(0.96); background: var(--purple-100); border-color: var(--purple-600); }
    .mc-btn.correct {
      background: linear-gradient(135deg,#d1fae5,#a7f3d0);
      border-color: #059669;
      color: #065f46;
      font-weight: 900;
      animation: correctPop 0.35s var(--ease-spring) 1 forwards;
      box-shadow: 0 0 0 3px rgba(5,150,105,0.25), 0 4px 16px rgba(5,150,105,0.20);
    }
    .mc-btn.correct::after {
      content: '✓';
      position: absolute;
      top: 6px; right: 10px;
      font-size: clamp(14px,2vw,18px);
      color: #059669;
      font-weight: 900;
    }
    .mc-btn.wrong {
      background: linear-gradient(135deg,#fee2e2,#fecaca);
      border-color: #DC2626;
      color: #991B1B;
      animation: wrongShake 0.3s ease-in-out 1;
    }
    .mc-btn:disabled { opacity: 0.55; cursor: default; }
    @keyframes correctPop {
      0%   { transform: scale(1); }
      40%  { transform: scale(1.06); }
      70%  { transform: scale(0.98); }
      100% { transform: scale(1); }
    }
    @keyframes wrongShake {
      0%,100% { transform: translateX(0); }
      25%     { transform: translateX(-6px); }
      75%     { transform: translateX(6px); }
    }

    /* ── CANVAS / CREATE ── */
    .provider-note { color: var(--purple-200); font-size: clamp(12px, 1.7vw, 15px); line-height: 1.25; }
    .creative-canvas {
      width: 100%;
      min-height: 400px;
      height: 60vh;
      background: #fffdf7;
      border-radius: var(--r-lg);
      border: 3px dashed rgba(107,45,139,0.34);
      touch-action: none;
      box-shadow: inset 0 0 0 1px rgba(23,32,51,0.06);
    }
    .creative-canvas.handwriting-mode { min-height: 280px; height: 280px; max-height: 300px; border-color: rgba(107,45,139,0.22); }
    .creative-tools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
    .creative-tools button { background: var(--gold-100); color: var(--purple-900); border: 2px solid var(--gold-500); box-shadow: none; }
    .creative-tools.primary-actions { position: sticky; top: 0; z-index: 2; background: rgba(253,246,208,0.96); border: 2px solid var(--gold-500); border-radius: var(--r-md); padding: 12px; box-shadow: 0 8px 18px rgba(15,23,42,0.22); gap: var(--tap-spacing); }
    .creative-tools.primary-actions button { font-size: var(--font-size-button); min-height: var(--touch-target-min); min-width: var(--touch-target-min); padding: 12px 20px; }

    /* ── MISC ── */
    .small { color: rgba(245,197,24,0.50); font-size: 12px; text-align: center; line-height: 1.2; padding: 4px 0 max(4px, env(safe-area-inset-bottom)); }

    /* ── MG THROW ZONE ── */
    .mg-throw-zone { position: fixed; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: 9000; overflow: hidden; }
    .mg-throw-item { position: absolute; top: -80px; font-size: clamp(36px, 6vw, 56px); animation: mgFall 1.4s cubic-bezier(.36,.07,.19,.97) forwards; pointer-events: none; }
    @keyframes mgFall {
      0%   { transform: translateY(0) rotate(0deg) scale(.7); opacity: 1; }
      60%  { opacity: 1; }
      80%  { transform: translateY(70vh) rotate(520deg) scale(1.1); opacity: .9; }
      100% { transform: translateY(105vh) rotate(720deg) scale(.8); opacity: 0; }
    }
    .mg-catch-burst { position: fixed; bottom: 120px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 9001; pointer-events: none; animation: mgBurst .6s ease-out forwards; }
    @keyframes mgBurst {
      0% { opacity: 0; transform: translateX(-50%) scale(.4); }
      40% { opacity: 1; transform: translateX(-50%) scale(1.25); }
      100% { opacity: 0; transform: translateX(-50%) scale(.9); }
    }

    /* ── SECOND LINE PARADE ── */
    #mgParade { display: none; position: fixed; inset: 0; z-index: 9900; background: linear-gradient(160deg, var(--purple-950) 0%, var(--purple-700) 40%, var(--green-700) 100%); color: var(--gold-500); align-items: center; justify-content: center; flex-direction: column; gap: 18px; padding: 32px; text-align: center; }
    #mgParade.active { display: flex; }
    .mg-float-strip { font-size: clamp(32px, 6vw, 56px); letter-spacing: .1em; animation: floatRoll 3s linear infinite; white-space: nowrap; }
    @keyframes floatRoll { 0% { transform: translateX(60vw); } 100% { transform: translateX(-120vw); } }
    .mg-laissez { font-size: clamp(24px, 4.5vw, 42px); font-weight: 900; color: var(--gold-500); text-shadow: 0 0 24px rgba(245,197,24,0.70), 0 3px 0 var(--purple-700); animation: mgPop .8s ease-out 1; }
    @keyframes mgPop { 0% { transform: scale(.3) rotate(-12deg); opacity: 0; } 70% { transform: scale(1.15) rotate(4deg); opacity: 1; } 100% { transform: scale(1) rotate(0deg); } }
    .mg-rain { position: absolute; inset: 0; pointer-events: none; }
    .mg-rain-drop { position: absolute; top: -60px; font-size: clamp(22px, 3.5vw, 38px); animation: mgRainFall linear forwards; }
    @keyframes mgRainFall { to { transform: translateY(110vh) rotate(540deg); opacity: 0; } }
    .mg-score-bar { display: flex; align-items: center; gap: 10px; background: rgba(245,197,24,0.12); border: 2px solid rgba(245,197,24,0.40); border-radius: var(--r-pill); padding: 8px 18px; font-size: clamp(16px, 2.2vw, 22px); font-weight: 900; color: var(--gold-500); }
