/* Reset + fundamenty layoutu */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255,111,94,.16) 0%, rgba(255,111,94,0) 55%),
    radial-gradient(90% 60% at 100% 110%, rgba(247,162,60,.14) 0%, rgba(247,162,60,0) 60%),
    var(--vanilla);
  background-attachment: fixed;
  min-height: 100dvh;
  overscroll-behavior-y: none;
}

/* ziarno na calym tle — delikatne, tryb screen (nie przygasza ciemnego tla) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .045;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='128' height='128' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .01em;
}

h1.bubble {
  font-size: clamp(1.9rem, 7vw, 2.5rem);
  color: var(--pink-hot);
  -webkit-text-stroke: 1.5px var(--ink);
  text-shadow: 3px 3px 0 var(--ink);
}

a { color: var(--red); font-weight: 700; }

img { max-width: 100%; display: block; }

button { font: inherit; color: inherit; }

input, select, textarea { font: inherit; }

/* shell aplikacji */
#app-outlet {
  max-width: var(--view-max);
  margin-inline: auto;
  min-height: 100dvh;
  padding: calc(var(--safe-t) + 16px) 16px calc(var(--tab-h) + var(--safe-b) + 24px);
}

.view { animation: view-enter .25s ease-out; }
@keyframes view-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.center { text-align: center; }
.muted { color: var(--ink-soft); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
