/* ============================================================
   SANTA SLEAZE — Neon Grunge Christmas
   Shared styles, effects, neon/grunge components
   ============================================================ */

:root {
  --bg:        #07070c;
  --bg-2:      #0c0c14;
  --surface:   #12121d;
  --surface-2: #181826;
  --line:      rgba(255,255,255,.08);

  --red:    #ff2d55;
  --red-2:  #ff0033;
  --green:  #2bff88;
  --green-2:#00ff66;
  --gold:   #ffd76a;
  --ice:    #bfe9ff;

  --text:   #f2f2f7;
  --muted:  #9a9ab0;

  --glow-red:   0 0 18px rgba(255,45,85,.55), 0 0 42px rgba(255,45,85,.25);
  --glow-green: 0 0 18px rgba(43,255,136,.55), 0 0 42px rgba(43,255,136,.22);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* layered moody background */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -3;
  background:
    radial-gradient(1100px 600px at 12% -10%, rgba(255,45,85,.16), transparent 60%),
    radial-gradient(1000px 620px at 90% 0%, rgba(43,255,136,.13), transparent 60%),
    radial-gradient(900px 700px at 50% 120%, rgba(120,80,255,.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

/* film grain / grunge noise */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--red); color: #fff; }

/* particles / snow canvas containers */
#snow, #tsparticles {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
}

/* ---------- typography ---------- */
.font-display { font-family: 'Bebas Neue', sans-serif; letter-spacing: .04em; }
.font-glitch  { font-family: 'Rubik Glitch', system-ui, sans-serif; }
.font-xmas    { font-family: 'Mountains of Christmas', cursive; }

.neon-red   { color: var(--red);   text-shadow: var(--glow-red); }
.neon-green { color: var(--green); text-shadow: var(--glow-green); }
.neon-gold  { color: var(--gold);  text-shadow: 0 0 18px rgba(255,215,106,.5); }

.headline {
  font-family: 'Bebas Neue', sans-serif;
  line-height: .92;
  letter-spacing: .02em;
}

/* glitch logo text */
.glitch {
  position: relative; display: inline-block;
  color: var(--text);
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 0; width: 100%;
  clip-path: inset(0 0 0 0);
}
.glitch::before { color: var(--red);   transform: translate(-2px,0); mix-blend-mode: screen; animation: glitch-a 2.6s infinite steps(2); }
.glitch::after  { color: var(--green); transform: translate(2px,0);  mix-blend-mode: screen; animation: glitch-b 3.1s infinite steps(2); }
@keyframes glitch-a { 0%,92%,100%{clip-path:inset(0 0 0 0)} 93%{clip-path:inset(0 0 60% 0); transform:translate(-3px,-2px)} 97%{clip-path:inset(70% 0 0 0); transform:translate(-4px,2px)} }
@keyframes glitch-b { 0%,90%,100%{clip-path:inset(0 0 0 0)} 91%{clip-path:inset(40% 0 20% 0); transform:translate(3px,1px)} 95%{clip-path:inset(0 0 70% 0); transform:translate(4px,-2px)} }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.6rem; border-radius: 999px;
  font-weight: 700; font-size: .95rem; letter-spacing: .02em;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-red {
  background: linear-gradient(180deg, var(--red), var(--red-2));
  color: #fff; box-shadow: var(--glow-red);
}
.btn-red:hover { box-shadow: 0 0 24px rgba(255,45,85,.8), 0 0 60px rgba(255,45,85,.35); }

.btn-green {
  background: linear-gradient(180deg, var(--green), var(--green-2));
  color: #042a14; box-shadow: var(--glow-green);
}
.btn-green:hover { box-shadow: 0 0 26px rgba(43,255,136,.85), 0 0 64px rgba(43,255,136,.35); }

.btn-ghost {
  background: rgba(255,255,255,.03);
  border-color: var(--line); color: var(--text);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--red); box-shadow: var(--glow-red); }

/* ---------- cards / glass-grunge ---------- */
.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(8px);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.04) 50%, transparent 60%);
}
.card-glow-red   { box-shadow: inset 0 0 0 1px rgba(255,45,85,.18), 0 10px 40px rgba(0,0,0,.5); }
.card-glow-green { box-shadow: inset 0 0 0 1px rgba(43,255,136,.18), 0 10px 40px rgba(0,0,0,.5); }

.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .8rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted);
}

.divider-lights {
  height: 2px; width: 100%;
  background: repeating-linear-gradient(90deg, var(--red) 0 10px, transparent 10px 20px, var(--green) 20px 30px, transparent 30px 40px);
  opacity: .5; filter: drop-shadow(0 0 6px rgba(255,255,255,.3));
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s ease, box-shadow .3s ease;
}
.nav.scrolled {
  background: rgba(7,7,12,.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-link {
  color: var(--muted); font-weight: 600; font-size: .9rem; text-decoration: none;
  position: relative; padding: .3rem 0; transition: color .2s ease;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active::after, .nav-link:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: linear-gradient(90deg, var(--red), var(--green));
  border-radius: 2px;
}
/* string lights along the nav */
.lights-string {
  height: 14px; width: 100%;
  background-image: radial-gradient(circle at 10px 4px, var(--red) 2.5px, transparent 3px),
                    radial-gradient(circle at 30px 8px, var(--green) 2.5px, transparent 3px),
                    radial-gradient(circle at 50px 4px, var(--gold) 2.5px, transparent 3px),
                    radial-gradient(circle at 70px 8px, var(--ice) 2.5px, transparent 3px);
  background-size: 80px 14px;
  animation: twinkle 2.2s linear infinite;
  opacity: .85;
}
@keyframes twinkle { 50% { filter: brightness(1.6); } }

/* ---------- marquee ticker ---------- */
.ticker {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(255,45,85,.06);
}
.ticker__track {
  display: inline-block; padding: .6rem 0;
  animation: scroll-x 24s linear infinite;
  font-family: 'Bebas Neue', sans-serif; letter-spacing: .12em; font-size: 1.1rem;
}
.ticker__track span { margin: 0 1.5rem; color: var(--text); }
.ticker__track .hot { color: var(--red); }
.ticker__track .ok  { color: var(--green); }
@keyframes scroll-x { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- floating gifts decoration ---------- */
.floaty { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-14px) rotate(3deg); } }

/* ---------- generator specifics ---------- */
.drop-zone {
  border: 2px dashed rgba(255,255,255,.18);
  border-radius: 18px;
  transition: border-color .2s ease, background .2s ease;
}
.drop-zone.drag {
  border-color: var(--green);
  background: rgba(43,255,136,.06);
  box-shadow: var(--glow-green);
}
.stage-canvas { max-width: 100%; border-radius: 14px; display: block; }
#resultImg { width: 100%; border-radius: 14px; display: block; }

/* mode toggle */
.mode-btn { color: var(--muted); }
.mode-btn:hover { color: var(--text); }
.mode-btn.mode-active {
  color: #fff;
  background: linear-gradient(180deg, rgba(255,45,85,.9), rgba(255,0,51,.9));
  box-shadow: var(--glow-red);
}

/* gift-box reveal overlay */
.gift-overlay {
  position: absolute; inset: 0; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  background: rgba(7,7,12,.85); backdrop-filter: blur(4px);
}
.gift-overlay.hidden { display: none; }
.gift-lid { transform-origin: 50% 100%; }
.spark {
  position: absolute; width: 8px; height: 8px; border-radius: 50%;
  pointer-events: none;
}

/* utility */
.container-x { width: min(1180px, 92%); margin-inline: auto; }
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.eyebrow { letter-spacing: .28em; text-transform: uppercase; font-size: .72rem; color: var(--muted); font-weight: 700; }
a { color: inherit; }

/* hide scrollbar on marquee but keep page scroll */
.no-scrollbar::-webkit-scrollbar { display: none; }

@media (prefers-reduced-motion: reduce) {
  .ticker__track, .glitch::before, .glitch::after, .floaty, .lights-string { animation: none !important; }
  html { scroll-behavior: auto; }
}
