/* Mr White: base. Stile "sticker": bordi spessi, ombre piene, colori vivi su fondo notte. */
:root {
  --bg: #1b1740;
  --bg-2: #26215a;
  --bg-3: #322c75;
  --deep: #0c0a26;
  --paper: #fff9ec;
  --ink: #17132f;
  --text: #f6f2ff;
  --muted: #b3aee0;
  --coral: #ff6b6b;
  --mint: #3ddc97;
  --sky: #56b6ff;
  --grape: #a78bfa;
  --lemon: #ffd93d;
  --tang: #ff9f45;
  --pink: #ff8ad8;
  --civ: var(--mint);
  --und: var(--tang);
  --white: var(--paper);
  --r: 18px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Quicksand", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(900px 500px at 85% -10%, #3b2f94 0%, transparent 60%),
    radial-gradient(700px 500px at -10% 110%, #2b2470 0%, transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: contain;
}
.app { max-width: 520px; margin: 0 auto; padding: calc(14px + var(--safe-t)) 16px 0; min-height: 100dvh; display: flex; flex-direction: column; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.01em; font-weight: 900; }
h1 { font-size: clamp(2.4rem, 11vw, 3.4rem); }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.15rem; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-lg { display: flex; flex-direction: column; gap: 22px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.hidden { display: none !important; }

:focus-visible { outline: 3px solid var(--lemon); outline-offset: 3px; border-radius: 10px; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

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