/* Nytår – midnight blue and champagne gold, art deco fans and twinkling stars; Bodoni Moda for the big lines.
   A party type's theme (docs/fest.md): [data-type] gives cards and chips their colour anywhere, body[data-fest-type]
   themes the whole page inside the party. Only tokens, art and motion – the layout is assets/css/fest.css. */

[data-type="nytaar"], body[data-fest-type="nytaar"] { --fest-accent: #e8c36a; --fest-accent-2: #9db8ff; --fest-art: url("/assets/img/fest/types/nytaar.svg"); }
:root[data-theme="light"] [data-type="nytaar"], :root[data-theme="light"] body[data-fest-type="nytaar"] { --fest-accent: #8a6512; --fest-accent-2: #3557c9; }

body[data-fest-type="nytaar"] {
  --fest-font: "Bodoni Moda", Georgia, serif;
  --bg: #0a1030; --bg-glow: #1b2a6b; --surface: #121a42; --surface-2: #18225a; --surface-3: #1f2b6e;
  --border: rgba(232, 195, 106, 0.16); --text: #f6f1e3; --muted: #b6bdd9; --faint: #8b93b8;
  --accent: #e8c36a; --accent-ink: #1d1400;
  --glow-a: rgba(232, 195, 106, 0.18); --glow-b: rgba(120, 150, 255, 0.16);
}
:root[data-theme="light"] body[data-fest-type="nytaar"] {
  --bg: #f7f3e8; --bg-glow: #ece2c6; --surface: #fffdf7; --surface-2: #f1ead7; --surface-3: #e8dfc6;
  --border: rgba(20, 26, 58, 0.14); --text: #141a3a; --muted: #4f5675; --faint: #6b7192;
  --accent: #8a6512; --accent-ink: #ffffff;
  --glow-a: rgba(138, 101, 18, 0.12); --glow-b: rgba(53, 87, 201, 0.08);
}
/* Art deco: thin gold fans behind the hero. */
body[data-fest-type="nytaar"] .fest-hero {
  background:
    repeating-conic-gradient(from 270deg at 50% 120%, transparent 0 6deg, color-mix(in srgb, var(--accent) 14%, transparent) 6deg 7deg),
    linear-gradient(160deg, var(--surface-3), var(--surface));
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
body[data-fest-type="nytaar"] .fest-cd-unit { border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
body[data-fest-type="nytaar"] .fest-cd-unit b { color: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  body[data-fest-type="nytaar"] .fest-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
      radial-gradient(circle at 12% 30%, #fff8dc 0 1.5px, transparent 2px),
      radial-gradient(circle at 46% 14%, #fff8dc 0 1px, transparent 1.5px),
      radial-gradient(circle at 70% 64%, #fff8dc 0 1.2px, transparent 1.8px),
      radial-gradient(circle at 88% 22%, #fff8dc 0 1px, transparent 1.5px);
    animation: nytaar-twinkle 3.6s ease-in-out infinite alternate;
  }
}
@keyframes nytaar-twinkle { from { opacity: 0.25; } to { opacity: 0.9; } }
