/* Tema Halloween per Progressi, verifica, privacy e pagina 404. Vale solo con <html data-season="halloween"> (js/season.js).
   Fuori stagione non cambia niente. Per toglierlo basta togliere il <link> dalle pagine. */

/* ragnatele negli angoli: sull'elemento <html>, cosi' non toccano nessun contenuto */
:root[data-season="halloween"]::before, :root[data-season="halloween"]::after {
  content: ""; position: fixed; top: 0; z-index: 1; width: min(24vw, 240px); aspect-ratio: 1; pointer-events: none; opacity: 0.55;
  background: url("/assets/halloween/web.svg") top left / contain no-repeat;
}
:root[data-season="halloween"]::before { left: 0; }
:root[data-season="halloween"]::after { right: 0; transform: scaleX(-1); }
:root[data-season="halloween"][data-theme="light"]::before, :root[data-season="halloween"][data-theme="light"]::after { background-image: url("/assets/halloween/web-light.svg"); opacity: 0.5; }
@media (max-width: 600px) { :root[data-season="halloween"]::after { display: none; } }

/* ───── Progressi ───── */
:root[data-season="halloween"] {
  --accent: #ff9a3e; --accent-2: #d9560b; --pink: #ff6b3d; --ok: #a3e635;
  --line-hi: rgba(255, 154, 62, 0.55);
  --aurora: radial-gradient(55vmax 55vmax at 92% -8%, rgba(255, 138, 31, 0.22), transparent 70%), radial-gradient(50vmax 50vmax at -6% 108%, rgba(181, 124, 255, 0.2), transparent 70%);
}
:root[data-season="halloween"][data-theme="light"] {
  --bg: #f8eef5; --accent: #c2410c; --accent-2: #c2410c; --pink: #be3d0a; --ok: #3f7d0a;
  --line-hi: rgba(194, 65, 12, 0.45); --on-tint: #7c2d12;
  --num-grad: linear-gradient(180deg, #1a1633, #c2410c);
  --aurora: radial-gradient(55vmax 55vmax at 92% -8%, rgba(255, 138, 31, 0.26), transparent 70%), radial-gradient(50vmax 50vmax at -6% 108%, rgba(181, 124, 255, 0.18), transparent 70%);
}
:root[data-season="halloween"] .btn { background: linear-gradient(135deg, #d9560b, #ff9a2e); }
:root[data-season="halloween"] .btn:hover { box-shadow: 0 8px 26px rgba(255, 138, 31, 0.45); }
:root[data-season="halloween"] ::selection { background: rgba(255, 138, 31, 0.6); color: #fff; }

/* ───── verifica (verify.html) ───── */
:root[data-season="halloween"] { --accent-glow: rgba(255, 138, 31, 0.2); --accent-dim: rgba(255, 138, 31, 0.12); }
:root[data-season="halloween"] body { --accent: #ffb676; --accent-2: #ff9a3e; }
:root[data-season="halloween"][data-theme="light"] body { --accent: #c2410c; --accent-2: #c2410c; }

/* ───── pagine statiche con la luna in CSS (privacy, 404): la luna diventa una luna di zucca ───── */
:root[data-season="halloween"] body { background-image: radial-gradient(120% 90% at 50% 112%, #8a3512 0%, #34123f 38%, #07040f 76%); }
:root[data-season="halloween"] .moon { background: radial-gradient(circle at 35% 35%, #fffaf0, #ffd9a8 45%, #ffa24d); box-shadow: 0 0 56px rgba(255, 138, 31, 0.6); }
:root[data-season="halloween"] h2 { color: #ffab5e; }
:root[data-season="halloween"] main p:not(.muted) a, :root[data-season="halloween"] main li a { text-decoration-color: rgba(255, 171, 94, 0.7); }
:root[data-season="halloween"] nav a:not(.alt) { background: #ffd9a8; color: #1f0b05; }
:root[data-season="halloween"] .muted { color: #ffc58f; }
