@import url('https://fonts.googleapis.com/css2?family=Mountains+of+Christmas:wght@700&family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  --pine: #0c3b2e;
  --pine-deep: #072219;
  --pine-light: #17654c;
  --red: #c8102e;
  --red-deep: #8e0b20;
  --gold: #e8b931;
  --gold-soft: #f6dc8a;
  --cream: #fff8e7;
  --ink: #1d2b24;
  --navy: #34506a;
  --silver: #cfd8dc;
  --bronze: #cd7f32;
  --radius: 14px;
  --festive: 'Mountains of Christmas', 'Georgia', serif;
  --body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--body);
  color: var(--cream);
  background:
    radial-gradient(ellipse at 20% -10%, rgba(232, 185, 49, 0.18), transparent 50%),
    radial-gradient(ellipse at 110% 110%, rgba(200, 16, 46, 0.28), transparent 55%),
    linear-gradient(160deg, var(--pine) 0%, var(--pine-deep) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
.festive { font-family: var(--festive); font-weight: 700; letter-spacing: 0.01em; }

/* Brand logos are navy on transparent — render them cream on the dark theme. */
.logo { filter: brightness(0) invert(1); opacity: 0.95; display: block; }
.logo-gold { filter: brightness(0) invert(1) sepia(1) saturate(4) hue-rotate(5deg) brightness(0.95); }

#snow { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; }

.btn {
  appearance: none; border: 0; cursor: pointer;
  padding: 0.75em 1.2em; border-radius: 999px;
  font-weight: 700; color: var(--cream);
  background: var(--red); box-shadow: 0 3px 0 var(--red-deep);
  transition: transform 0.08s, filter 0.15s, opacity 0.15s;
  touch-action: manipulation;
}
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--red-deep); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.gold { background: var(--gold); color: var(--ink); box-shadow: 0 3px 0 #a7801a; }
.btn.green { background: var(--pine-light); box-shadow: 0 3px 0 #0b3a2b; }
.btn.ghost { background: rgba(255, 255, 255, 0.1); box-shadow: none; }
.btn.small { padding: 0.45em 0.9em; font-size: 0.85em; }

.avatar {
  border-radius: 50%; object-fit: cover; flex: none;
  background: var(--cream); border: 3px solid var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); font-weight: 800; overflow: hidden;
}
.avatar.initials { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); }

.card {
  background: rgba(255, 248, 231, 0.07);
  border: 1px solid rgba(232, 185, 49, 0.25);
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
}

.hidden { display: none !important; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--cream); color: var(--ink); padding: 0.7em 1.2em; border-radius: 999px;
  font-weight: 600; z-index: 100; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  max-width: 90vw; text-align: center;
}
.toast.error { background: var(--red); color: var(--cream); }

.conn-dot { width: 10px; height: 10px; border-radius: 50%; background: #e53935; display: inline-block; }
.conn-dot.on { background: #4caf50; box-shadow: 0 0 8px #4caf50; }
