/* Neon Shooter, pagina pubblica (paccastudio.com/neonshooter/): stile comune a tutte le lingue */
:root {
  /* colori di src/palette.hpp */
  --bg: #04030c;
  --panel: rgba(9, 9, 30, .78);
  --line: rgba(90, 110, 255, .24);
  --text: #e1ebff;
  --dim: #a3acd6;
  --mute: #7680b4;
  --cyan: #50f0ff;
  --lime: #beff46;
  --magenta: #ff32be;
  --gold: #ffd750;
  --wanderer: #b955ff;
  --dodger: #46ff82;
  --splitter: #ff9628;
  --gunner: #6491ff;
  --dasher: #e6e6ff;
  --blackhole: #ff463c;
  /* boss: ColorFromHSV(hue, 0.78, 1) di src/boss.cpp */
  --hexacore: #ff7a38;
  --serpent: #38ffbd;
  --twins: #e138ff;
  --twin2: #f354cc;
  --tail: #ffd75c;
  --c: var(--cyan);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}
/* la griglia dell'arena, che sfuma verso i bordi */
body::before, body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body::before {
  background:
    linear-gradient(rgba(44, 54, 160, .32) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(44, 54, 160, .32) 1px, transparent 1px) 0 0 / 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 28%, #000 25%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 70% at 50% 28%, #000 25%, transparent 100%);
}
body::after {
  background:
    radial-gradient(ellipse 60% 40% at 50% -6%, rgba(80, 240, 255, .14), transparent 70%),
    radial-gradient(ellipse 50% 40% at 100% 75%, rgba(255, 50, 190, .08), transparent 70%),
    radial-gradient(ellipse 50% 40% at 0% 60%, rgba(190, 255, 70, .05), transparent 70%);
}
a { color: var(--cyan); text-underline-offset: .18em; }
a:hover { color: #b4fbff; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
b, strong { color: #fff; }
code { font: .9em ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; color: #fff; background: rgba(255, 255, 255, .06); padding: .05em .35em; border-radius: 5px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- testo con il font vettoriale del gioco (src/neonfont.cpp) */
.nf { color: var(--c); font: 700 1em/1.2 ui-monospace, Consolas, monospace; letter-spacing: .12em; text-shadow: 0 0 .3em var(--c); }
.nf.on { text-shadow: none; }
.nf svg {
  display: block; max-width: 100%; height: auto; overflow: visible;
  fill: none; stroke: var(--c); stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 .05em var(--c)) drop-shadow(0 0 .22em var(--c));
}
.nf .h { stroke-width: 1.22; stroke-opacity: .22; }
.nf .k { stroke-width: .51; }
.nf .b { stroke: #fff; stroke-width: .16; stroke-opacity: .55; }

/* ---------- icone (geometria di src/draw.cpp) */
.ico { display: block; overflow: visible; }
.ico :is(polygon, path, circle) { fill: none; stroke: var(--c); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.ico polygon { fill: var(--c); fill-opacity: .1; }
.ico .thin { fill: none; stroke-width: 1.4; stroke-opacity: .85; }
.ico .thick { stroke-width: 3; }
.ico .dot { fill: var(--c); fill-opacity: 1; stroke: none; }
.ico .dot.light, .ico .core { fill: color-mix(in srgb, var(--c) 35%, #fff); }
.ico .core { stroke: none; }
.ico .faint { stroke-width: .8; stroke-opacity: .22; }
.ico .half { stroke-width: 1; stroke-opacity: .45; }
.ico .hole { fill: #28000a; stroke: none; }
.ico .eye { fill: #fff; stroke: none; }
.ico .shield { stroke-width: 3.2; stroke: color-mix(in srgb, var(--c) 70%, #fff); }
.ico .beam-halo { stroke-width: 9; stroke-opacity: .18; }
.ico .beam { stroke-width: 3.6; stroke-opacity: .85; }
.ico .beam-core { stroke: #fff; stroke-width: 1.2; }
.ico .bullet { stroke: #fff078; stroke-width: 1.6; }
.ico .link { stroke: var(--gold); stroke-width: 1.6; stroke-dasharray: 3 4; }

/* ---------- barra in alto */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(4, 3, 12, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(80, 240, 255, .12); }
.bar .wrap { display: flex; align-items: center; gap: 18px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 30px; height: 30px; }
.brand .nf { font-size: 13px; }
.bar nav { display: flex; gap: 18px; }
.bar nav a { color: var(--dim); text-decoration: none; font-size: .9rem; }
.bar nav a:hover { color: #fff; }
.bar nav .home { padding-left: 18px; border-left: 1px solid var(--line); color: var(--cyan); }
.btn-s { padding: 7px 14px; border-radius: 8px; border: 1px solid var(--cyan); color: var(--cyan); text-decoration: none; font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 0 12px rgba(80, 240, 255, .25), inset 0 0 10px rgba(80, 240, 255, .12); }
.btn-s:hover { background: rgba(80, 240, 255, .12); color: #fff; }
.lang { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--dim); text-decoration: none; font: 700 .8rem/1 ui-monospace, Consolas, monospace; letter-spacing: .08em; }
.lang:hover { color: #fff; border-color: rgba(80, 240, 255, .5); }
/* su schermi stretti nel menu resta solo la voce paccastudio, e della barra resta l'icona del gioco */
@media (max-width: 680px) { .bar nav a:not(.home) { display: none; } .bar nav .home { padding-left: 0; border-left: 0; } }
@media (max-width: 520px) { .bar .wrap { gap: 12px; } .brand .nf { display: none; } }

/* ---------- testata */
.hero { padding: 52px 0 8px; text-align: center; }
.title { margin: 0 auto; font-size: min(12.6vw, 6.2rem); line-height: 1; font-weight: 400; }
.title .nf { display: block; }
.title .nf svg { margin: 0 auto; }
.title .w1 { --c: hsl(var(--hue) 100% 72.5%); }
.title .w2 { --c: color-mix(in srgb, hsl(var(--hue) 100% 72.5%), var(--cyan)); margin-top: .2em; }
@property --hue { syntax: "<number>"; inherits: true; initial-value: 300; }
.title { --hue: 300; animation: hue 14.4s linear infinite; }
@keyframes hue { to { --hue: 660; } }
@supports not (color: color-mix(in srgb, red, blue)) { .title .w1 { --c: #ff73e6; } .title .w2 { --c: var(--cyan); } }
.tagline { --c: var(--mute); font-size: clamp(.62rem, 2.6vw, .95rem); margin: 1.9em auto 0; }
.tagline svg { margin: 0 auto; filter: none; }
.lead { max-width: 37em; margin: 26px auto 0; color: var(--dim); font-size: 1.08rem; }
.cta { margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 14px; padding: 15px 28px 15px 22px; border-radius: 14px;
  background: linear-gradient(180deg, #8af7ff, #3fdcf2); color: #021219; text-decoration: none; text-align: left;
  box-shadow: 0 0 0 1px rgba(170, 250, 255, .9), 0 0 24px rgba(80, 240, 255, .5), 0 0 70px rgba(80, 240, 255, .22);
  transition: box-shadow .2s, transform .2s;
}
.btn:hover { color: #021219; transform: translateY(-2px); box-shadow: 0 0 0 1px #fff, 0 0 30px rgba(80, 240, 255, .75), 0 0 90px rgba(80, 240, 255, .35); }
.btn:active { transform: translateY(0); }
.dl { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
@media (max-width: 520px) { .dl { flex-direction: column; align-items: stretch; width: 100%; } }
.btn.alt { background: rgba(80, 240, 255, .06); color: var(--cyan); box-shadow: 0 0 0 1px rgba(80, 240, 255, .7), 0 0 18px rgba(80, 240, 255, .18); }
.btn.alt:hover { color: #fff; background: rgba(80, 240, 255, .14); box-shadow: 0 0 0 1px var(--cyan), 0 0 26px rgba(80, 240, 255, .4); }
.btn svg { flex: none; width: 30px; height: 30px; }
.btn > span { display: block; font-weight: 800; font-size: 1.15rem; letter-spacing: .07em; text-transform: uppercase; line-height: 1.25; }
.btn small { display: block; font-weight: 600; font-size: .78rem; letter-spacing: .01em; text-transform: none; opacity: .72; line-height: 1.3; word-break: break-all; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin: 0; padding: 0; list-style: none; color: var(--mute); font-size: .9rem; }
.facts li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 9px 2px 0; border: 1.5px solid var(--gold); transform: rotate(45deg); box-shadow: 0 0 6px var(--gold); }
.phone { display: none; max-width: 30em; margin: 0; padding: 10px 14px; border: 1px dashed rgba(255, 215, 80, .5); border-radius: 10px; color: var(--gold); font-size: .9rem; }
@media (hover: none) and (pointer: coarse) { .phone { display: block; } }

/* ---------- screenshot */
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 12px; background: #000; border: 1px solid rgba(80, 240, 255, .3); box-shadow: 0 0 40px rgba(80, 240, 255, .1), 0 24px 60px rgba(0, 0, 0, .7); }
.shot figcaption { margin-top: 10px; color: var(--mute); font-size: .88rem; }
.hero .shot { margin-top: 44px; }

/* ---------- sezioni */
section { margin-top: 84px; }
h2.nf { font-size: clamp(1.3rem, 5vw, 1.75rem); margin: 0 0 26px; }
h3.nf { font-size: 1.05rem; margin: 0 0 14px; }
.grid2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.notes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid2 + .notes, .grid2 + .grid2, .grid2 + .cards, .cards + .grid2, p + .cards { margin-top: 16px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.panel p { margin: 0 0 12px; }
.panel p:last-child { margin-bottom: 0; }
.muted { color: var(--dim); }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-left: 50px; min-height: 34px; }
.steps li + li { margin-top: 16px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; border: 2px solid var(--cyan); color: var(--cyan); font-weight: 800;
  box-shadow: 0 0 12px rgba(80, 240, 255, .45), inset 0 0 8px rgba(80, 240, 255, .3);
}
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding-left: 28px; }
.checks li + li { margin-top: 10px; }
.checks li::before { content: ""; position: absolute; left: 3px; top: .42em; width: 12px; height: 7px; border: solid var(--lime); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); filter: drop-shadow(0 0 3px var(--lime)); }
.note { border-color: rgba(255, 215, 80, .35); }
.note h3 { margin: 0 0 8px; color: var(--gold); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; }
.chip { display: inline-block; padding: 0 .55em; border: 1px solid rgba(225, 235, 255, .35); border-radius: 6px; background: rgba(255, 255, 255, .06); color: #fff; white-space: nowrap; }
.arrow { color: var(--gold); }

/* ---------- schede: modi di gioco e boss */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { --c: var(--cyan); background: var(--panel); border: 1px solid color-mix(in srgb, var(--c) 32%, transparent); border-radius: 14px; padding: 20px; transition: border-color .2s, box-shadow .2s; }
.card:hover { border-color: color-mix(in srgb, var(--c) 70%, transparent); box-shadow: 0 0 26px color-mix(in srgb, var(--c) 16%, transparent); }
.card .ico { width: 64px; height: 64px; margin-bottom: 12px; }
.card h3.nf { font-size: 1.15rem; margin-bottom: 6px; }
.card .menu { margin: 0 0 10px; color: var(--mute); font: 600 .72rem/1.4 ui-monospace, Consolas, monospace; letter-spacing: .08em; }
.card p { margin: 0; color: var(--dim); font-size: .95rem; }
.card h3.nf + p:not(.menu) { margin-top: 12px; }
.code { --c: var(--gold); display: inline-block; vertical-align: middle; font-size: .9rem; padding: 6px 9px; margin: 2px 2px 4px; border: 1px solid rgba(255, 215, 80, .45); border-radius: 7px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.tags li { padding: 3px 11px; border-radius: 99px; border: 1px solid rgba(255, 50, 190, .45); color: #ffc2ea; font-size: .88rem; background: rgba(255, 50, 190, .07); }
.foes { display: grid; gap: 10px 16px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin: 0; padding: 0; list-style: none; }
.foes li { display: grid; grid-template-columns: 40px 1fr; gap: 0 10px; align-items: center; }
.foes .ico { width: 40px; height: 40px; grid-row: span 2; }
.foes b { color: var(--c); font-size: .95rem; line-height: 1.3; }
.foes span { color: var(--mute); font-size: .84rem; line-height: 1.35; }
.rules { margin: 18px 0 0; padding-left: 1.2em; color: var(--dim); }
.rules li + li { margin-top: 6px; }

/* ---------- comandi */
.table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: 11px 10px; border-bottom: 1px solid var(--line); }
tr:last-child > * { border-bottom: 0; }
thead th { color: var(--mute); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding-top: 0; }
tbody th { font-weight: 600; color: #fff; }
@media (max-width: 480px) { th, td { padding: 10px 6px; } table { font-size: .9rem; } }
.nowrap { white-space: nowrap; }
td { color: var(--dim); }
th:first-child, td:first-child { padding-left: 0; }
kbd {
  display: inline-block; min-width: 1.75em; padding: 0 .4em; margin: 1px 0; border: 1px solid rgba(225, 235, 255, .32); border-bottom-width: 2px; border-radius: 6px;
  background: rgba(255, 255, 255, .05); color: #fff; font: 600 .82em/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; text-align: center; white-space: nowrap;
}
.players { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 18px; }
@media (min-width: 600px) { .players { grid-template-columns: 1fr 1fr; } }
.player { --c: var(--cyan); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); border-radius: 12px; padding: 16px; }
.player h4 { margin: 0 0 12px; color: var(--c); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 0 8px var(--c); }
.keys { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: flex-end; }
.cluster { display: grid; grid-template-columns: repeat(3, 32px); gap: 4px; justify-items: center; }
.cluster kbd { width: 32px; min-width: 0; padding: 0; border-color: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 0 8px color-mix(in srgb, var(--c) 22%, transparent); }
.cluster kbd:first-child { grid-column: 2; }
.cluster kbd:nth-child(2) { grid-column: 1; }
.key-label { display: block; margin-top: 6px; color: var(--mute); font-size: .8rem; text-align: center; }
.key-single kbd { border-color: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 0 8px color-mix(in srgb, var(--c) 22%, transparent); }

/* ---------- chiusura */
.final { text-align: center; }
.final h2.nf svg { margin: 0 auto; }
.final .cta { margin-top: 0; }
footer { margin: 90px 0 0; padding: 26px 0 40px; border-top: 1px solid var(--line); color: var(--mute); font-size: .85rem; }
footer p { margin: 0 0 6px; }
footer a { color: var(--dim); }
footer .langs { margin-top: 12px; }
footer .home-link { margin-bottom: 10px; }
footer .home-link a { color: var(--cyan); font-weight: 600; text-decoration: none; }
footer .home-link a:hover { color: #b4fbff; text-decoration: underline; }
footer .langs [aria-current] { color: var(--text); text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .title { animation: none; }
  .btn, .card { transition: none; }
}
