/* Little Haunt site theme — mirrors the in-game menu (#90E0EF sky, Fredoka). */
@font-face {
  font-family: "Fredoka";
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  src: url("Fredoka-latin.woff2") format("woff2");
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  min-height: 100%;
}
body {
  background: linear-gradient(
    180deg,
    #90e0ef 0%,
    #7ad0e4 26%,
    #4aa7c1 54%,
    #23708b 80%,
    #0b3547 100%
  );
  background-attachment: fixed;
  color: #f2fbff;
  font-family: "Fredoka", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-weight: 500;
  display: flex;
  justify-content: center;
  text-align: center;
  overflow-x: hidden;
  padding: 44px 24px 60px;
}
/* Drifting stars, like the game's parallax sky (add .stars div + site.js) */
.stars {
  position: fixed;
  inset: -60px;
  pointer-events: none;
}
.stars span {
  position: absolute;
  border-radius: 50%;
  animation: drift linear infinite;
}
@keyframes drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-120px);
  }
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}
@keyframes coinspin {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}
main {
  position: relative;
  max-width: 640px;
  width: 100%;
}
.ghost-img {
  filter: drop-shadow(0 0 30px rgba(191, 239, 255, 0.55));
  animation: bob 3.4s ease-in-out infinite;
}
h1 {
  margin-top: 6px;
  font-size: clamp(34px, 8vw, 56px);
  font-weight: 600;
  letter-spacing: 2px;
  color: #f2fbff;
  text-shadow: 0 3px 0 rgba(10, 31, 56, 0.25), 0 0 30px rgba(191, 239, 255, 0.6);
}
.tag {
  margin-top: 8px;
  font-size: clamp(16px, 3.4vw, 21px);
  color: #0a1f38;
  font-weight: 600;
  letter-spacing: 0.4px;
}
/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 36px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 1px;
  text-decoration: none;
  transition: transform 0.12s ease;
}
.btn:active {
  transform: translateY(2px) scale(0.98);
}
.btn-gold {
  background: #ffd670;
  color: #0a1f38;
  box-shadow: 0 4px 0 rgba(10, 31, 56, 0.25), 0 0 32px rgba(255, 214, 112, 0.45);
}
.btn-ghost {
  background: rgba(10, 31, 56, 0.35);
  color: #f2fbff;
  border: 1px solid rgba(191, 239, 255, 0.35);
}
/* Cards */
.card {
  background: linear-gradient(
    160deg,
    rgba(12, 58, 74, 0.62),
    rgba(6, 30, 42, 0.72)
  );
  border: 1px solid rgba(191, 239, 255, 0.22);
  border-radius: 22px;
  padding: 24px 26px;
  backdrop-filter: blur(4px);
}
/* Long-form text pages (privacy, terms, support) */
.doc {
  max-width: 720px;
  text-align: left;
}
.doc header {
  text-align: center;
  margin-bottom: 28px;
}
.doc header img {
  width: 96px;
  height: 96px;
}
.doc .card {
  margin-top: 18px;
}
.doc h2 {
  font-size: 19px;
  font-weight: 600;
  color: #bfefff;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
}
.doc p,
.doc li {
  color: #eaf6ff;
  opacity: 0.92;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
}
.doc p + p {
  margin-top: 10px;
}
.doc ul,
.doc ol {
  padding-left: 22px;
  margin-top: 8px;
}
.doc li + li {
  margin-top: 6px;
}
.doc a {
  color: #ffd670;
}
.doc .updated {
  color: rgba(242, 251, 255, 0.6);
  font-size: 13px;
  margin-top: 8px;
}
strong {
  color: #ffd670;
  font-weight: 600;
}
/* Footer nav shared by all pages */
footer {
  margin-top: 46px;
  color: rgba(242, 251, 255, 0.55);
  font-size: 13px;
  font-weight: 400;
}
footer nav {
  margin-bottom: 10px;
}
footer nav a {
  color: rgba(242, 251, 255, 0.8);
  text-decoration: none;
  margin: 0 10px;
  font-weight: 500;
}
footer nav a:hover {
  color: #ffd670;
}
