/* PEAK Party – the party edition's look (loaded only in PEAK Party, after app.css).
   The shared PEAK frame stays: fonts, header, cards and buttons. Fest's own: a violet party
   night with confetti colours, and – inside an event – the party type's whole theme on top
   (assets/css/fest/types/<type>.css, docs/fest.md). Two themes: "Nat" (dark, the default) and "Dag" (light).
   Their theme-color is in app/editions/fest.php ('theme'); pwa/offline.html repeats the main colours. */

/* Nat: a dark violet party night, lit by confetti. */
:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #150a26;
  --bg-glow: #3a1460;
  --surface: #211336;
  --surface-2: #2a1944;
  --surface-3: #352052;
  --border: rgba(255, 255, 255, 0.1);
  --text: #fbf2ff;
  --muted: #c3aed9;
  --faint: #9a85b3;
  --accent: #ff5fa2;
  --accent-ink: #2a0516;
  --amber: #ffb547;
  --sun: #ffd166;
  --danger: #ff6b7f;
  --danger-ink: #2b0610;
  --ok: #5be3a0;
  --snow: #ffffff;
  --shadow: 0 14px 34px rgba(8, 0, 20, 0.5);
  /* Fest's own: the confetti */
  --fest-gold: #ffd166;
  --fest-pink: #ff5fa2;
  --fest-cyan: #5ad1ff;
  --fest-mint: #8affc1;
  --fest-violet: #b388ff;
  --glow-a: rgba(255, 95, 162, 0.22);
  --glow-b: rgba(90, 209, 255, 0.14);
  --confetti-opacity: 0.55;
}

/* Dag: a bright party afternoon – white tables, deep berry text. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fff6ee;
  --bg-glow: #ffe0ef;
  --surface: #ffffff;
  --surface-2: #fbeef5;
  --surface-3: #f5e1ec;
  --border: rgba(80, 20, 60, 0.14);
  --text: #2a0f2e;
  --muted: #6b4a6e;
  --faint: #7f6181;
  --accent: #c2185b;
  --accent-ink: #ffffff;
  --amber: #a04f00;
  --sun: #b87400;
  --danger: #bf2a43;
  --danger-ink: #ffffff;
  --ok: #12773a;
  --snow: #ffffff;
  --shadow: 0 12px 30px rgba(120, 30, 80, 0.12);
  --fest-gold: #d99a00;
  --fest-pink: #e0407f;
  --fest-cyan: #0a8fc2;
  --fest-mint: #10a36a;
  --fest-violet: #7c4dff;
  --glow-a: rgba(255, 95, 162, 0.16);
  --glow-b: rgba(124, 77, 255, 0.1);
  --confetti-opacity: 0.4;
}

/* Two soft glows and a sprinkle of confetti far behind the content – never under the text's contrast. */
body {
  background:
    radial-gradient(1000px 520px at 92% -12%, var(--glow-a), transparent 62%),
    radial-gradient(900px 560px at -14% 8%, var(--glow-b), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: var(--confetti-opacity);
  background-image:
    radial-gradient(circle at 12% 18%, var(--fest-pink) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 12%, var(--fest-gold) 0 2px, transparent 3px),
    radial-gradient(circle at 64% 44%, var(--fest-cyan) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 22% 72%, var(--fest-mint) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 88% 82%, var(--fest-violet) 0 2px, transparent 3px);
  background-size: 420px 380px;
}

/* ---------- The logo's popper ---------- */

.logo-fest { color: var(--fest-violet); }

/* ---------- Empty states (a party page with nothing in it yet) ---------- */

.fest-empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 34px 22px; }
.fest-empty h2 { margin: 0; }
