/* Motor de idiomas: identity.css. Classes da identidade visual (engine/illustrations.js): mascote, ilustrações de
   tema, cenas, símbolo e wordmark. Outras frentes usam SÓ estas classes para posicionar a arte:
     .mascot  .mascot--xs (40) --sm (64) --md (120) --lg (180) --xl (240)   tamanho do mascote
     .mascot--float   flutua devagar (tela de boas-vindas, estados vazios)
     .mascot--pop     entra com um pulo (resultado, conquista), 300 ms
     .mascot--wave    mexe a asa direita (use com pose 'wave')
     .theme-art  .theme-art--sm (44) --md (72) --lg (120)                     ilustração de tema
     .scene  .scene--sm (200) --md (280) --lg (360)                            cena (largura máxima; altura proporcional)
     .wordmark  (+ .wordmark--lg)                                              símbolo + nome do app
   Todas as animações respeitam prefers-reduced-motion. Cores do mascote vêm do próprio SVG (--m-*); aqui só a
   sombra no chão muda no modo escuro. */
:root { --m-shadow: rgb(20 22 30 / .13); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --m-shadow: rgb(0 0 0 / .42); } }
:root[data-theme="dark"] { --m-shadow: rgb(0 0 0 / .42); }

.illu { display: inline-block; vertical-align: middle; flex: none; overflow: visible; }

/* mascote: sem classe de tamanho vale o {size} passado a Illu.mascot (atributos width/height do SVG) */
.mascot--xs { width: 40px; height: 40px; }
.mascot--sm { width: 64px; height: 64px; }
.mascot--md { width: 120px; height: 120px; }
.mascot--lg { width: 180px; height: 180px; }
.mascot--xl { width: 240px; height: 240px; }
.mascot .m-figure { transform-box: view-box; transform-origin: 100px 186px; }
.mascot .m-wing-r { transform-box: fill-box; transform-origin: 20% 90%; }
.mascot .m-eyes { transform-box: fill-box; transform-origin: 50% 55%; }

@media (prefers-reduced-motion: no-preference) {
  .mascot--float .m-figure { animation: m-float 3.2s ease-in-out infinite; }
  .mascot--float .m-shadow { animation: m-shadow 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 50%; }
  .mascot--pop .m-figure { animation: m-pop .3s cubic-bezier(.34, 1.56, .64, 1) both; }
  .mascot--wave .m-wing-r { animation: m-wave 1.1s ease-in-out 2; }
  .mascot--float .m-eyes, .mascot--blink .m-eyes { animation: m-blink 4.6s ease-in-out infinite; }
  .scene .sc-rays { animation: m-spin 24s linear infinite; transform-box: view-box; transform-origin: 160px 112px; }
}
@keyframes m-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes m-shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.9); opacity: .75; } }
@keyframes m-pop { 0% { transform: translateY(10px) scale(.86); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes m-wave { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(10deg); } }
@keyframes m-blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
@keyframes m-spin { to { transform: rotate(360deg); } }

/* ilustração de tema (unidades, histórias) */
.theme-art--sm { width: 44px; height: 44px; }
.theme-art--md { width: 72px; height: 72px; }
.theme-art--lg { width: 120px; height: 120px; }

/* cenas (onboarding, resultado, estados vazios) */
.scene { width: 100%; max-width: var(--scene-size, 280px); height: auto; display: block; margin-inline: auto; }
.scene--sm { --scene-size: 200px; }
.scene--md { --scene-size: 280px; }
.scene--lg { --scene-size: 360px; }

/* símbolo e wordmark */
.symbol { border-radius: 22%; }
.wordmark { display: inline-flex; align-items: center; gap: .45em; font-family: var(--font-display); font-weight: 800;
  font-size: 1.25rem; letter-spacing: -.01em; color: var(--brand-ink, var(--ink)); line-height: 1; text-decoration: none; }
.wordmark .symbol { width: 1.6em; height: 1.6em; box-shadow: 0 1px 0 rgb(0 0 0 / .08); }
.wordmark--lg { font-size: 1.75rem; }
