/* Waifunadas Christmas theme. Inert unless <html> or <body> has class "navidad".
   Lightweight, mobile-friendly, pointer-events: none on decorations.
   Toggle: set NAVIDAD in app.js or add ?navidad=1 to the URL. */
.navidad {
  --nav-red: #c41e3a;
  --nav-green: #0f7a3a;
  --nav-gold: #f0c14b;
}

/* Subtle red/green accent on the usual pink/cyan neon */
.navidad { --pink: #e23d5c; --cyan: #3ecf7a; }
.navidad #top {
  border-bottom: 1px solid color-mix(in srgb, var(--nav-gold) 35%, transparent);
  box-shadow: 0 1px 0 #c41e3a33, 0 8px 24px #0f7a3a22;
}
.navidad .logo b { text-shadow: 0 0 10px #c41e3a88, 0 0 22px #0f7a3a55; }
.navidad .btn.pink,
.navidad a.btn.pink {
  background: linear-gradient(180deg, #e23d5c, #a4162e);
  border-color: #f0c14b88;
}
.navidad .hero-art .main { border-color: #c41e3a; box-shadow: 0 0 50px #c41e3a66, 0 18px 50px #000b; }
.navidad .hero-art .mini figure { border-color: #0f7a3a88; }
.navidad .hero-art .mini figure:nth-child(odd) { border-color: #c41e3a99; }
.navidad .sticker { background: #f0c14b; color: #3a0a12; }

/* String lights along the header */
.navidad #top { position: relative; overflow: visible; }
.navidad #top::before {
  content: "";
  pointer-events: none;
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 10px;
  z-index: 8;
  background:
    radial-gradient(circle at 8px 5px, #ff4d4d 0 2.5px, transparent 3px),
    radial-gradient(circle at 24px 3px, #ffe566 0 2.5px, transparent 3px),
    radial-gradient(circle at 40px 6px, #4dff88 0 2.5px, transparent 3px),
    radial-gradient(circle at 56px 3px, #ff4d4d 0 2.5px, transparent 3px),
    radial-gradient(circle at 72px 6px, #ffe566 0 2.5px, transparent 3px),
    radial-gradient(circle at 88px 3px, #4dff88 0 2.5px, transparent 3px);
  background-size: 96px 10px;
  background-repeat: repeat-x;
  filter: drop-shadow(0 0 4px #ffd27a88);
  animation: nav-twinkle 1.8s ease-in-out infinite;
  opacity: .95;
}

/* Hanging ornaments under the header */
.navidad #top::after {
  content: "•  •  •";
  pointer-events: none;
  position: absolute;
  left: 8%;
  right: 8%;
  top: 100%;
  height: 28px;
  z-index: 7;
  display: flex;
  justify-content: space-evenly;
  letter-spacing: 1.6rem;
  font-size: 1.15rem;
  line-height: 1.6;
  color: transparent;
  background:
    radial-gradient(circle at 12% 14px, #c41e3a 0 6px, #8b1024 7px, transparent 8px),
    radial-gradient(circle at 28% 18px, #0f7a3a 0 5px, #064e24 6px, transparent 7px),
    radial-gradient(circle at 50% 12px, #f0c14b 0 6px, #b8860b 7px, transparent 8px),
    radial-gradient(circle at 72% 18px, #c41e3a 0 5px, #8b1024 6px, transparent 7px),
    radial-gradient(circle at 88% 14px, #0f7a3a 0 6px, #064e24 7px, transparent 8px);
  background-repeat: no-repeat;
  filter: drop-shadow(0 3px 2px #0006);
}

/* Subtle falling snow over the page, never intercepts taps */
.navidad #bg::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 2;
  background-image:
    radial-gradient(circle, #fff 0 1.1px, transparent 1.4px),
    radial-gradient(circle, #fff 0 1.6px, transparent 2px),
    radial-gradient(circle, #fff8 0 1px, transparent 1.3px);
  background-size: 90px 90px, 140px 140px, 70px 70px;
  background-position: 0 0, 40px 20px, 10px 60px;
  animation: nav-snow 18s linear infinite;
  opacity: .35;
}

@keyframes nav-twinkle {
  0%, 100% { opacity: .7; filter: drop-shadow(0 0 3px #ffd27a66); }
  50% { opacity: 1; filter: drop-shadow(0 0 6px #fff6); }
}
@keyframes nav-snow {
  from { background-position: 0 0, 40px 20px, 10px 60px; }
  to { background-position: 0 90px, 40px 160px, 10px 130px; }
}

@media (max-width: 700px) {
  .navidad #top::after { height: 22px; background-size: auto 22px; }
  .navidad #bg::after { opacity: .25; }
}

@media (prefers-reduced-motion: reduce) {
  .navidad #top::before,
  .navidad #bg::after { animation: none; }
}


/* Santa hats on the big hero title "WAIFUS" / "LEGION" (flag on only).
   Pure CSS + inline SVG on existing h1 .a / .b — no HTML changes. */
.navidad .hero h1 {
  position: relative;
  overflow: visible;
  margin-top: 0.9rem; /* room for the hat under the club tag */
}
.navidad .hero h1 .a,
.navidad .hero h1 .b {
  position: relative;
  overflow: visible;
}
.navidad .hero h1 .a::before,
.navidad .hero h1 .b::before {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: 3;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2070%2062%22%3E%3Cellipse%20cx%3D%2230%22%20cy%3D%2248%22%20rx%3D%2224%22%20ry%3D%2210%22%20fill%3D%22%23f4efe6%22/%3E%3Cellipse%20cx%3D%2230%22%20cy%3D%2246%22%20rx%3D%2222%22%20ry%3D%228%22%20fill%3D%22%23fff%22/%3E%3Cpath%20d%3D%22M10%2046C14%2022%2022%206%2044%2010c6%202%2010%200%2014-2-10%2010-16%2020-22%2038Z%22%20fill%3D%22%23c41e3a%22/%3E%3Cpath%20d%3D%22M16%2044c4-20%2012-32%2028-30-4%2010-6%2020-10%2030Z%22%20fill%3D%22%23e4455e%22%20opacity%3D%22.4%22/%3E%3Ccircle%20cx%3D%2259%22%20cy%3D%229%22%20r%3D%228%22%20fill%3D%22%23fff%22/%3E%3Ccircle%20cx%3D%2256.5%22%20cy%3D%227%22%20r%3D%223%22%20fill%3D%22%23fffef8%22/%3E%3Cellipse%20cx%3D%2230%22%20cy%3D%2245.5%22%20rx%3D%2220%22%20ry%3D%223.2%22%20fill%3D%22none%22%20stroke%3D%22%23ead9c4%22%20stroke-width%3D%221.1%22/%3E%3C/svg%3E") no-repeat center / contain;
  filter: drop-shadow(0 2px 2px #0008) drop-shadow(0 0 5px #c41e3a55);
}
/* Tilted hat sitting on the W of WAIFUS */
.navidad .hero h1 .a::before {
  width: 0.64em;
  height: 0.56em;
  left: -0.04em;
  top: -0.34em;
  transform: rotate(-26deg);
}
/* Smaller hat on the L of LEGION */
.navidad .hero h1 .b::before {
  width: 0.42em;
  height: 0.37em;
  left: -0.03em;
  top: -0.26em;
  transform: rotate(-18deg);
}
@media (max-width: 700px) {
  .navidad .hero h1 { margin-top: 0.75rem; }
  .navidad .hero h1 .a::before {
    width: 0.7em;
    height: 0.62em;
    left: -0.05em;
    top: -0.36em;
  }
  .navidad .hero h1 .b::before {
    width: 0.46em;
    height: 0.4em;
    top: -0.28em;
  }
}
