/* Shared festive theme */
:root {
  --pine: #0b2a1e;
  --pine-deep: #04140c;
  --pine-card: #12392a;
  --red: #b3122b;
  --red-bright: #e63946;
  --gold: #f5c542;
  --gold-soft: #ffe08a;
  --silver: #d9e2ec;
  --bronze: #e0995e;
  --snow: #fff8ee;
  --muted: #c9dccf;
  --radius: 16px;
  --font-display: 'Mountains of Christmas', 'Georgia', serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: var(--font-body);
  color: var(--snow);
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at 20% -10%, rgba(230, 57, 70, 0.28), transparent 55%),
    radial-gradient(ellipse at 90% 10%, rgba(245, 197, 66, 0.16), transparent 50%),
    radial-gradient(ellipse at 50% 120%, rgba(46, 204, 113, 0.18), transparent 60%),
    linear-gradient(180deg, var(--pine) 0%, var(--pine-deep) 100%);
  background-attachment: fixed;
}
/* subtle snowy pattern */
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1.6px), radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1.6px);
  background-size: 46px 46px, 73px 73px;
  background-position: 0 0, 20px 30px;
}
body > * { position: relative; z-index: 1; }
.fx-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 50; }

h1, h2, h3 { line-height: 1.15; margin: 0; }
.display { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.01em; }
.gold { color: var(--gold); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* String of Christmas lights */
.lights { display: flex; justify-content: space-around; height: 34px; overflow: hidden; margin: 0; padding: 0 8px; list-style: none; position: relative; }
.lights::before { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: #2b2b2b; border-radius: 2px; }
.lights li { position: relative; width: 12px; height: 20px; margin-top: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 4px 16px 2px var(--c); }
.lights li::before { content: ''; position: absolute; top: -5px; left: 3px; width: 6px; height: 6px; background: #444; border-radius: 2px; }
.lights li:nth-child(4n + 1) { --c: #ff4d5e; }
.lights li:nth-child(4n + 2) { --c: #ffd447; }
.lights li:nth-child(4n + 3) { --c: #4ef08c; }
.lights li:nth-child(4n + 4) { --c: #5ec8ff; }
@media (prefers-reduced-motion: no-preference) {
  .twinkle li { animation: twinkle 1.6s ease-in-out infinite alternate; }
  .twinkle li:nth-child(3n) { animation-delay: 0.5s; }
  .twinkle li:nth-child(3n + 1) { animation-delay: 1s; }
  .paused .twinkle li, .paused * { animation-play-state: paused !important; }
}
@keyframes twinkle { from { opacity: 1; } to { opacity: 0.35; box-shadow: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7em 1.3em; border-radius: 999px;
  font: 800 1rem/1.2 var(--font-body); cursor: pointer;
  border: 2px solid transparent; color: #fff; background: var(--red);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.2);
  text-decoration: none;
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled='true'] { background: #4a5a52; color: #e6ece8; cursor: not-allowed; box-shadow: none; filter: none; }
.btn.gold-btn { background: var(--gold); color: #3a2a00; }
.btn.ghost { background: transparent; border-color: rgba(255, 248, 238, 0.6); box-shadow: none; }
.btn.green { background: #1d7a46; }
.btn.small { min-height: 44px; padding: 0.45em 1em; font-size: 0.9rem; }

.card-surface { background: rgba(18, 57, 42, 0.85); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
