/* BASE — tokens, temas, reset e tipografia */
:root {
  --font: "Fredoka", "Baloo 2", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --ink: #2b2250; --ink-soft: #6b6590; --paper: #fff; --paper-2: #f4f0ff;
  --violet: #6c4dff; --violet-d: #4a30d6; --pink: #ff5fa2; --sun: #ffc933; --sun-d: #e0a100;
  --mint: #1fd1a0; --mint-d: #0fa57d; --sky: #35b6ff; --coral: #ff6b5e; --orange: #ff9f43;
  --r-lg: 28px; --r-md: 18px; --r-sm: 12px;
  --shadow: 0 12px 32px rgba(30, 10, 90, .28);
  --bg: linear-gradient(160deg, #4b2fd6 0%, #7b3df0 45%, #ff5fa2 100%);
}
body[data-theme="ocean"] { --bg: linear-gradient(160deg, #0a3d91 0%, #1393d6 55%, #2de1c2 100%); }
body[data-theme="sunset"] { --bg: linear-gradient(160deg, #ff7a45 0%, #d63fa0 50%, #6a2bd8 100%); }
body[data-theme="forest"] { --bg: linear-gradient(160deg, #0b6e4f 0%, #3fae6a 55%, #b6e86a 100%); }
body[data-theme="galaxy"] { --bg: linear-gradient(160deg, #0f0c29 0%, #302b63 50%, #6a3de8 100%); }

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font); color: #fff; background: var(--bg); background-attachment: fixed;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; touch-action: manipulation;
  -webkit-tap-highlight-color: transparent; line-height: 1.35;
}
#bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
#bg i { position: absolute; border-radius: 50%; background: #fff; opacity: .1; animation: floaty 16s ease-in-out infinite; }
#fx { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
#app { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; border: 0; cursor: pointer; background: none; padding: 0; }
button:disabled { cursor: default; }
input { font: inherit; }
:focus-visible { outline: 4px solid #fff; outline-offset: 3px; border-radius: 10px; }
small { font-size: .78em; }
code { background: rgba(108, 77, 255, .12); color: var(--violet-d); padding: 1px 6px; border-radius: 6px; font-size: .9em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
