@font-face {
  font-family: "Luckiest Guy";
  src: url("/assets/LuckiestGuy-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --night: #0b0f2e;
  --night2: #1b1550;
  --gold: #ffd84d;
  --red: #e8332a;
  --ink: #140a1f;
  --snow: #f4f7ff;
  --muted: #b9c3f0;
}

* { box-sizing: border-box; }

html { background: var(--night); }
html, body { margin: 0; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--snow);
  background: radial-gradient(ellipse 120% 900px at 70% 0%, #3a2a8a 0%, var(--night2) 40%, var(--night) 100%) no-repeat var(--night);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}

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

header, main, footer { position: relative; z-index: 1; }

.toon {
  font-family: "Luckiest Guy", "Comic Sans MS", cursive;
  letter-spacing: .02em;
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 5px 0 var(--ink), 0 8px 18px rgba(0,0,0,.45);
}

a { color: var(--gold); }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--snow); font-size: 24px; }
.brand img { width: 46px; height: 46px; border-radius: 12px; border: 3px solid var(--ink); }
.topbar nav { display: flex; gap: 18px; font-weight: 600; }
.topbar nav a { text-decoration: none; }
.topbar nav a:hover { text-decoration: underline; }

main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 10px 22px 60px; }

.hero { text-align: center; padding: 30px 0 10px; }
.hero h1 {
  font-size: clamp(42px, 8vw, 92px); line-height: 1; margin: 0 0 6px;
  color: var(--gold); transform: rotate(-2deg);
}
.hero h1 span { color: var(--red); display: inline-block; transform: rotate(4deg) translateY(4px); }
.hero .tag { font-size: clamp(18px, 2.6vw, 24px); color: var(--muted); margin: 18px auto 0; max-width: 640px; }
.santa { width: min(520px, 90vw); margin: 18px auto 0; display: block; animation: bob 1.6s ease-in-out infinite; filter: drop-shadow(0 18px 18px rgba(0,0,0,.45)); }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }

.cta { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin: 26px 0 8px; }
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: "Luckiest Guy", cursive; font-size: 26px; color: var(--ink);
  background: var(--gold); padding: 14px 30px 10px; border: 4px solid var(--ink); border-radius: 22px 10px 24px 12px;
  box-shadow: 0 7px 0 var(--ink); transform: rotate(-1.5deg); transition: transform .12s;
}
.btn:hover { transform: rotate(1.5deg) scale(1.05); }
.btn.red { background: var(--red); color: var(--snow); -webkit-text-stroke: 1px var(--ink); }
.btn.ghost { background: #7cc7ff; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-top: 46px; }
.card {
  background: rgba(20, 14, 60, .72); border: 4px solid var(--ink); border-radius: 26px 14px 30px 12px;
  padding: 20px 22px; box-shadow: 0 8px 0 var(--ink);
}
.card:nth-child(2n) { transform: rotate(1deg); }
.card:nth-child(2n+1) { transform: rotate(-1deg); }
.card h3 { margin: 0 0 6px; font-size: 26px; color: var(--gold); }
.card p { margin: 0; color: var(--muted); }

.player {
  position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 10px 0 0;
  border: 5px solid var(--ink); border-radius: 20px; overflow: hidden; background: #000; box-shadow: 0 10px 0 var(--ink);
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hint { text-align: center; color: var(--muted); font-size: 15px; margin-top: 18px; }

.doc {
  background: rgba(14, 10, 44, .85); border: 4px solid var(--ink); border-radius: 24px;
  padding: 26px clamp(18px, 4vw, 44px); box-shadow: 0 8px 0 var(--ink);
}
.doc h1 { font-size: clamp(34px, 6vw, 56px); color: var(--gold); margin: 0 0 10px; }
.doc h2 { font-size: 22px; margin: 28px 0 6px; color: var(--gold); font-family: "Luckiest Guy", cursive; letter-spacing: .03em; }
.doc p, .doc li { color: #e4e9ff; }
.doc .small { color: var(--muted); font-size: 14px; }

footer {
  text-align: center; padding: 22px 16px 28px; font-size: 15px; color: var(--muted);
  border-top: 3px dashed rgba(255,255,255,.12);
}
footer .links { margin-top: 6px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
