/* Sito di Raffica: stessi colori e caratteri del gioco. Magenta per agire, ciano per informare, vetro scuro. */
@font-face {
  font-family: 'Audiowide';
  src: url('fonts/audiowide.woff2') format('woff2');
  font-display: swap;
}

:root {
  --neon: #ff4fb8;
  --neon-2: #4fe3ff;
  --ink: #f5f6ff;
  --ink-2: rgba(235, 238, 255, 0.74);
  --ink-3: rgba(235, 238, 255, 0.5);
  --bg: #05060b;
  --glass: rgba(16, 20, 36, 0.72);
  --glass-edge: rgba(255, 255, 255, 0.14);
  --display: 'Audiowide', -apple-system, system-ui, sans-serif;
  --font: -apple-system, system-ui, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  overflow-wrap: anywhere;
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 79, 184, 0.22), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(79, 227, 255, 0.1), transparent 70%);
  background-attachment: fixed;
  color: var(--ink);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

main { max-width: 720px; margin: 0 auto; padding: 32px 16px 48px; }

.hero { text-align: center; padding: 24px 0 8px; }
.hero svg { width: 76px; height: 96px; overflow: visible; }
.logo {
  font-family: var(--display);
  font-size: clamp(36px, 10vw, 56px);
  letter-spacing: 0.06em;
  margin: 12px 0 0;
  color: #fff7fc;
  text-shadow: 0 0 18px rgba(255, 79, 184, 0.85), 0 0 2px #fff;
}
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neon-2);
}
.lead { color: var(--ink-2); max-width: 30em; margin: 8px auto 0; }
.hero .btn { margin-top: 20px; }
.hero h2 { margin-top: 36px; }

h1, h2 { font-weight: 800; line-height: 1.25; }
h1 { font-size: 28px; margin: 32px 0 8px; }
h2 { font-size: 20px; margin: 0 0 8px; }
p { margin: 0 0 12px; }
a { color: var(--neon-2); }
a:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 2px solid var(--neon-2); outline-offset: 3px; border-radius: 8px; }

.card {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 20px;
  padding: 20px;
  margin: 16px 0;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.card.accent { border-color: rgba(255, 79, 184, 0.45); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(90deg, #ff4fb8, #c86bff 55%, #4fe3ff);
  box-shadow: 0 8px 24px rgba(255, 79, 184, 0.35);
}

ol, ul { padding-left: 22px; margin: 0 0 12px; }
li { margin: 4px 0; }
.path { font-weight: 700; color: var(--ink); }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }

details { border-top: 1px solid var(--glass-edge); padding: 4px 0; }
details:first-of-type { border-top: 0; }
summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  padding: 12px 28px 12px 0;
  position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 8px;
  font-size: 22px;
  color: var(--neon);
}
details[open] summary::after { content: '–'; }
details > :not(summary) { color: var(--ink-2); }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-top: 1px solid var(--glass-edge); }
th { color: var(--ink); font-weight: 700; width: 45%; }
td { color: var(--ink-2); }

/* La lingua: la bandierina rotonda dell'altra lingua in alto a destra, con un bordo di vetro che si accende al neon. */
nav.lang { display: flex; justify-content: flex-end; }
nav.lang a { display: block; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.28), 0 6px 18px rgba(0, 0, 0, 0.5); transition: transform 0.2s, box-shadow 0.2s; }
nav.lang a:hover { transform: scale(1.08); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6), 0 0 22px rgba(255, 79, 184, 0.55); }
nav.lang svg { display: block; width: 100%; height: 100%; }
nav.lang a:focus-visible { outline: 2px solid var(--neon-2); outline-offset: 3px; border-radius: 50%; }

footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  border-top: 1px solid var(--glass-edge);
  color: var(--ink-3);
  font-size: 13px;
  text-align: center;
}
footer a { color: var(--ink-2); }

@media (prefers-reduced-motion: no-preference) {
  .hero svg .hull { animation: accendi 2.4s ease-in-out infinite alternate; }
  @keyframes accendi { from { filter: drop-shadow(0 0 4px #ff4fb8); } to { filter: drop-shadow(0 0 12px #ff4fb8); } }
}
