/* Base: mobile-first (~480px), desktop = colonna centrata, mai bloccato */
* { box-sizing: border-box; margin: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

/* atmosfera: bagliore tramonto + grana */
.glow {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 38% at 50% -6%, rgba(255, 150, 20, .34), transparent 70%),
    radial-gradient(45% 30% at 88% 108%, rgba(255, 90, 20, .12), transparent 70%);
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

a { color: var(--orange); text-decoration: none; }

button { font-family: inherit; }

.app {
  width: 100%;
  max-width: 480px;
  padding: 0 18px 40px;
  flex: 1;
}

.foot {
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  font-size: 13px;
  color: var(--muted);
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center;
}
.foot a { color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.foot a:active, .foot a:hover { color: var(--orange); }
.foot-sep { opacity: .5; }

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