/* Operation Mistletoe — whimsical Christmas theme: pine green, berry red, tinsel gold, snow. */
:root {
  --bg: #0c2a1b;
  --bg2: #113622;
  --panel: #133b26;
  --panel-2: #184a30;
  --line: rgba(255, 226, 150, 0.28);
  --ice: #ffe39a;          /* warm twinkle-light gold (accent text) */
  --ice-dim: #d9a93f;
  --grinch: #8ee03a;
  --grinch-dark: #3f7d0c;
  --red: #e2333f;
  --red-deep: #a8141f;
  --gold: #ffcf4a;
  --text: #fff8ea;
  --muted: #c4dcc9;
  --hud: "Fredoka", "Baloo 2", system-ui, sans-serif;
  --body: "Fredoka", system-ui, -apple-system, sans-serif;
  --xmas: "Mountains of Christmas", "Fredoka", serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(226, 51, 63, 0.28), transparent 60%),
    radial-gradient(800px 600px at -10% 10%, rgba(255, 207, 74, 0.12), transparent 60%),
    radial-gradient(1200px 700px at 50% 120%, #1d5a37, transparent 65%),
    var(--bg);
  color: var(--text); font-family: var(--body); font-weight: 500;
  overflow-x: hidden;
}
button { font-family: var(--hud); cursor: pointer; }
.hud { font-family: var(--hud); font-weight: 600; letter-spacing: 0.03em; }
.xmas { font-family: var(--xmas); font-weight: 700; }

/* no spy scanlines/grids anymore — kept as no-ops so markup doesn't need changing */
.scan-overlay::before { content: none; }
.grid-bg { background-image: none; }

/* snow */
.snow { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.flake { position: absolute; top: -10px; border-radius: 50%; background: #fff; animation: fall linear infinite; box-shadow: 0 0 6px rgba(255,255,255,0.8); }
@keyframes fall { 0% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(30px, 55vh, 0); } 100% { transform: translate3d(-10px, 110vh, 0); } }

/* string of twinkle lights */
.lights { position: fixed; top: 0; left: 0; right: 0; height: 34px; z-index: 6; pointer-events: none; display: flex; justify-content: space-around; padding: 0 10px; }
.lights::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 18px; border-bottom: 2px solid #2b4a2e; border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.bulb { position: relative; top: 14px; width: 12px; height: 18px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; animation: twinkle 1.6s ease-in-out infinite alternate; }
.bulb::before { content: ""; position: absolute; top: -5px; left: 3px; width: 6px; height: 6px; background: #3b3b3b; border-radius: 2px; }
.bulb.r { background: #ff4b55; box-shadow: 0 2px 14px 3px rgba(255,75,85,0.75); }
.bulb.g { background: #6dfa7a; box-shadow: 0 2px 14px 3px rgba(109,250,122,0.7); }
.bulb.y { background: #ffd84d; box-shadow: 0 2px 14px 3px rgba(255,216,77,0.75); }
.bulb.b { background: #6fc8ff; box-shadow: 0 2px 14px 3px rgba(111,200,255,0.7); }
@keyframes twinkle { from { opacity: 1; } to { opacity: 0.35; box-shadow: none; } }

/* cards with candy-cane borders */
.panel {
  border: 5px solid transparent; border-radius: 22px;
  background:
    linear-gradient(var(--panel), var(--panel-2)) padding-box,
    repeating-linear-gradient(45deg, #e2333f 0 12px, #fff6ec 12px 24px) border-box;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.corners { position: relative; }
.corners::after { content: none; }

.who-seal {
  display: inline-grid; place-items: center; width: 1.1em; height: 1.1em; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff7b84, var(--red) 55%, var(--red-deep));
  color: #fff; font-family: var(--xmas); font-weight: 700; font-size: inherit; line-height: 1;
  box-shadow: inset 0 -0.08em 0.15em rgba(0,0,0,0.3), 0 0 0.3em rgba(226,51,63,0.6);
  position: relative;
}
.who-seal::before { content: ""; position: absolute; top: -0.14em; width: 0.28em; height: 0.16em; background: var(--gold); border-radius: 0.05em; }

.portrait { border-radius: 50%; object-fit: cover; background: var(--panel-2); border: 4px solid var(--gold); box-shadow: 0 0 0 4px var(--red); }
.portrait.fallback { display: grid; place-items: center; font-family: var(--xmas); font-weight: 700; color: var(--gold); }

.glow-ice { text-shadow: 0 0 14px rgba(255,227,154,0.8), 0 0 34px rgba(255,207,74,0.4); }
.glow-green { text-shadow: 0 0 14px rgba(142,224,58,0.85), 0 0 36px rgba(142,224,58,0.4); }
.glow-gold { text-shadow: 0 0 14px rgba(255,207,74,0.9), 0 0 36px rgba(255,207,74,0.45); }

.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.5; } }
.blink { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.wiggle { animation: wiggle 2.4s ease-in-out infinite; display: inline-block; }
@keyframes wiggle { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }

.glitch { position: relative; animation: glitch 0.35s steps(2) infinite; }
@keyframes glitch {
  0% { transform: translate(0); filter: none; }
  25% { transform: translate(-3px, 1px) rotate(-2deg); filter: hue-rotate(30deg); }
  50% { transform: translate(3px, -2px) rotate(2deg); }
  75% { transform: translate(-1px, 2px); filter: saturate(2); }
}
.hidden { display: none !important; }
