@import url("https://fonts.googleapis.com/css2?family=Mountains+of+Christmas:wght@700&family=Fredoka:wght@400;600;700&display=swap");

:root {
  --red: #d42a2a;
  --red-dark: #8f1515;
  --green: #1f7a3f;
  --green-dark: #0e4424;
  --gold: #f6c343;
  --snow: #f7fbff;
  --night: #0b1a33;
  --night-2: #13284d;
  --ink: #1b1b1b;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  font-family: "Fredoka", system-ui, sans-serif;
  color: var(--snow);
  background: radial-gradient(ellipse at top, var(--night-2), var(--night) 70%);
  background-attachment: fixed;
  overflow-x: hidden;
}

h1, h2, h3, .festive { font-family: "Mountains of Christmas", "Fredoka", cursive; }

a { color: inherit; }

.btn {
  font: 700 1.05rem "Fredoka", sans-serif;
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 14px;
  padding: .7em 1.5em;
  cursor: pointer;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(180deg, #ec4747, #b31d1d);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 5px 0 #7a1010, 0 12px 26px rgba(0,0,0,.35);
  transition: transform .1s, box-shadow .1s, filter .15s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 2px 0 #7a1010; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; filter: none; }
.btn.green {
  background: linear-gradient(180deg, #2fa35a, #17663a);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 5px 0 #0c3f22, 0 12px 26px rgba(0,0,0,.35);
}
.btn.ghost {
  background: rgba(255,255,255,.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
}
.btn.ghost:active { box-shadow: none; }

/* Fairy-light string along the top of every page */
.lights {
  position: fixed; top: 0; left: 0; right: 0; height: 34px;
  display: flex; justify-content: space-around; pointer-events: none; z-index: 50;
  border-top: 3px solid #2b2b2b;
}
.lights span {
  width: 12px; height: 20px; margin-top: 4px; border-radius: 50%;
  animation: twinkle 1.2s infinite alternate;
}
.lights span:nth-child(4n+1) { background: #ff3b3b; box-shadow: 0 4px 14px #ff3b3b; }
.lights span:nth-child(4n+2) { background: #ffd23b; box-shadow: 0 4px 14px #ffd23b; animation-delay: .3s; }
.lights span:nth-child(4n+3) { background: #3bff7a; box-shadow: 0 4px 14px #3bff7a; animation-delay: .6s; }
.lights span:nth-child(4n)   { background: #3bb7ff; box-shadow: 0 4px 14px #3bb7ff; animation-delay: .9s; }
@keyframes twinkle { from { opacity: .35; } to { opacity: 1; } }

#snow { position: fixed; inset: 0; pointer-events: none; z-index: 40; }

.back-home {
  position: fixed; top: 44px; left: 16px; z-index: 60;
  font-weight: 700; text-decoration: none;
  background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.4);
  padding: .4em 1em; border-radius: 999px; backdrop-filter: blur(4px);
}
.back-home:hover { background: rgba(255,255,255,.25); }
