:root {
  color-scheme: dark;
  --ink: #04060d;
  --panel: rgba(7, 11, 26, 0.68);
  --line: rgba(190, 205, 255, 0.13);
  --text: #e9edf8;
  --muted: #8e9bc0;
  --blue: #6aa8ff;
  --violet: #a98bff;
  --pink: #ff8dba;
}
* { box-sizing: border-box; }
html { height: 100%; }
body {
  position: fixed;
  inset: 0;
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 15px/1.5 "Instrument Sans", system-ui, sans-serif;
  overflow: hidden;
}
a { color: var(--blue); }
#sea { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.panel {
  position: fixed;
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: min(400px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
.panel.login {
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  width: min(380px, calc(100vw - 32px));
  transform: translate(-50%, -50%);
}
header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
h1 { margin: 0; font: 400 36px/1 "Instrument Serif", Georgia, serif; letter-spacing: -0.01em; }
.ghost {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  padding: 6px 2px;
  text-decoration: none;
}
.ghost:hover { color: var(--text); }
.legal { margin: auto 0 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
.legal a { color: var(--muted); }
.legal a:hover { color: var(--text); }
.primary {
  display: block;
  border-radius: 12px;
  padding: 12px 20px;
  font: 600 15px "Instrument Sans", system-ui, sans-serif;
  color: #0a0c18;
  text-decoration: none;
  text-align: center;
  background: linear-gradient(120deg, var(--blue), var(--violet) 55%, var(--pink));
}
.primary:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.notice {
  color: #ffb3c6;
  border: 1px solid rgba(255, 141, 186, 0.3);
  background: rgba(255, 141, 186, 0.06);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
}

/* Pagine di testo: legali ed etica */
body.doc { position: static; height: auto; min-height: 100%; overflow: visible; }
.doc main { max-width: 720px; margin: 0 auto; padding: 48px 24px 64px; }
.doc .back { font-size: 14px; }
.doc h1 { font-size: 44px; margin: 16px 0 8px; }
.doc h2 { font: 400 26px/1.2 "Instrument Serif", Georgia, serif; margin: 32px 0 8px; }
.doc p, .doc li { color: #c5cde3; max-width: 70ch; }
.doc ul { padding-left: 20px; }
.doc .legal { margin-top: 48px; }

@media (max-width: 640px) {
  .panel { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 50vh; }
}
