/* v2 base — minimal, kid-soft. */
* { box-sizing: border-box; }
html, body, #root { margin: 0; padding: 0; min-height: 100vh; width: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: #FFF8E7;
  color: #2A2A33;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; }

.act-splash { display:flex; flex-direction:column; align-items:center; justify-content:center; height:100vh; }
.act-logo-big { font-size: 96px; }

/* Auth */
.act-auth { min-height: 100vh; display:flex; align-items:center; justify-content:center; padding: 24px; background: linear-gradient(180deg,#FFF8E7,#FFE6B0); }
.act-auth-card { background:#fff; border-radius: 24px; padding: 32px 24px; box-shadow: 0 8px 32px rgba(0,0,0,0.08); width: 100%; max-width: 380px; text-align:center; }
.act-logo { font-size: 64px; }
.act-auth-card h1 { font-size: 24px; margin: 8px 0 4px; }
.act-tag { color:#888; margin: 0 0 24px; font-size: 14px; }
.act-auth-card input { width: 100%; padding: 14px 16px; border: 2px solid #FFD580; border-radius: 12px; font-size: 16px; margin-bottom: 12px; }
.act-auth-card button { width:100%; padding: 14px; border: 0; border-radius: 12px; background:#FFB300; color:#fff; font-weight: 700; font-size: 16px; }
.act-auth-card button:disabled { opacity: 0.5; }
.act-ok { background:#D1FAE5; color:#065F46; padding: 10px; border-radius: 10px; margin-top: 12px; font-size: 14px; }
.act-err { background:#FEE2E2; color:#991B1B; padding: 10px; border-radius: 10px; margin-top: 12px; font-size: 14px; }
.act-fineprint { color:#999; font-size: 12px; margin-top: 16px; }

/* Dashboard */
.act-dash { max-width: 720px; margin: 0 auto; padding: 20px; }
.act-dash-top { display:flex; align-items:center; justify-content:space-between; margin-bottom: 16px; }
.act-dash-top h1 { margin: 0; font-size: 22px; }
.act-link { background:none; border:0; color:#666; padding: 8px; }
.act-row-between { display:flex; align-items:center; justify-content:space-between; margin: 20px 0 12px; }
.act-pill { background:#FFB300; color:#fff; border:0; border-radius:999px; padding: 8px 16px; font-weight: 600; }
.act-add-child { display:grid; grid-template-columns: 1fr 80px 1fr auto; gap: 8px; margin: 12px 0 20px; }
.act-add-child input, .act-add-child select { padding: 10px 12px; border: 2px solid #FFE6B0; border-radius: 10px; font-size: 14px; }
.act-add-child button { background:#FFB300; color:#fff; border:0; border-radius: 10px; padding: 0 16px; font-weight: 700; }
@media (max-width: 540px) { .act-add-child { grid-template-columns: 1fr 1fr; } .act-add-child button { grid-column: 1 / -1; padding: 10px; } }

.act-children { display:grid; gap: 14px; }
.act-child-card { background:#fff; border: 2px solid #FFE6B0; border-radius: 18px; padding: 16px; cursor:pointer; transition: transform .1s; }
.act-child-card:hover { transform: translateY(-2px); }
.act-child-head { display:flex; gap: 12px; align-items:center; }
.act-child-emoji { font-size: 40px; }
.act-child-name { font-weight: 700; font-size: 18px; }
.act-child-meta { color:#888; font-size: 13px; }
.act-child-stats { display:grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 10px; }
.act-child-stats > div { background:#FFF8E7; border-radius: 10px; padding: 10px; text-align:center; }
.act-child-stats b { display:block; font-size: 18px; }
.act-child-stats span { color:#888; font-size: 11px; }
.act-child-cta { text-align:right; color:#FFB300; font-weight: 600; font-size: 14px; }
.act-empty { background:#fff; padding: 28px; border-radius: 14px; text-align:center; color:#888; }
.act-loading { padding: 20px; text-align:center; color:#888; }

/* Lessons list */
.act-lessons { max-width: 720px; margin: 0 auto; padding: 20px; }
.act-lessons-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-top: 16px; }
.act-lesson-card { border: 2px solid; border-radius: 18px; padding: 18px; cursor: pointer; text-align: center; }
.act-lesson-emoji { font-size: 48px; }
.act-lesson-title { font-weight: 700; margin-top: 8px; }
.act-lesson-meta { color:#666; font-size: 12px; margin-top: 4px; }

/* Player */
.act-player { min-height: 100vh; display:flex; flex-direction:column; }
.act-player-top { display:flex; align-items:center; gap: 12px; padding: 14px 18px; }
.act-x { background:#fff; border: 0; border-radius: 999px; width: 36px; height: 36px; font-size: 18px; }
.act-progress { flex: 1; height: 10px; background:rgba(0,0,0,0.08); border-radius: 999px; overflow:hidden; }
.act-progress-bar { height: 100%; transition: width .3s; }
.act-coins { font-weight: 700; }
.act-player-body { flex: 1; display:flex; flex-direction:column; align-items:center; justify-content:flex-start; padding: 18px; text-align:center; }
.act-mascot { display:flex; flex-direction:column; align-items:center; margin-bottom: 12px; }
.act-mascot-emoji { font-size: 56px; }
.act-mascot-name { font-weight: 700; font-size: 14px; margin-top: 2px; }
.act-emoji-xl { font-size: 96px; line-height: 1.2; margin: 16px 0; }
.act-block-imagen p, .act-block-audio p { font-size: 22px; margin: 12px 24px; }
.act-quiz-q { font-size: 24px; font-weight: 700; }
.act-play { padding: 16px 28px; border: 0; border-radius: 999px; color:#fff; font-weight: 700; font-size: 18px; margin-top: 12px; }
.act-options { display:grid; grid-template-columns: repeat(auto-fit, minmax(90px,1fr)); gap: 12px; max-width: 420px; width: 100%; margin: 12px auto; }
.act-option { background:#fff; border: 3px solid #FFD580; border-radius: 16px; padding: 22px 0; font-size: 28px; font-weight: 700; }
.act-option.act-ok { background:#34D399; color:#fff; border-color:#10B981; }
.act-option.act-mal { background:#FCA5A5; color:#fff; border-color:#EF4444; }
.act-feedback { margin: 12px 24px; padding: 12px 16px; border-radius: 12px; font-weight: 600; }
.act-feedback.ok { background:#D1FAE5; color:#065F46; }
.act-feedback.mal { background:#FEE2E2; color:#991B1B; }
.act-next { padding: 14px 28px; border: 0; border-radius: 999px; color:#fff; font-weight: 700; font-size: 18px; margin-top: 16px; }
.act-block-reward .act-trofeo { font-size: 96px; }
.act-reward-stars { font-size: 40px; margin: 10px 0; }

/* Done */
.act-done { min-height: 100vh; display:flex; flex-direction:column; align-items:center; justify-content:center; padding: 24px; text-align:center; background: linear-gradient(180deg,#FFE6B0,#FFD580); }
.act-trofeo { font-size: 96px; }
