/* Christmas at .shop (December only: the server adds this file and xmas.js while it's in season).
   A winter night: dark-blue sky, snow falling behind the page, a snowy village with lit windows along the bottom,
   a string of lights under the header, snow on the cards, and Christmas red and evergreen in place of the purple. */
:root {
  --bg: #0a0d22;
  --surface: #11152f;
  --surface-2: #171c3c;
  --line: #1f2550;
  --line-2: #2c3468;
  --text: #fbf5ea;            /* warm white */
  --muted: #c9bfdc;           /* lavender cream */
  --faint: #ab9fc6;
  --brand: #e0394b;           /* Christmas red */
  --glow: #b02a3c;
  --xm-red: #c8283c;
  --xm-red-2: #a81f31;
  --xm-green: #1f7a4d;
  --xm-gold: #f2bd57;
  --xm-snow: #eef2ff;
}
body.xmas { background: radial-gradient(1100px 520px at 50% -140px, color-mix(in srgb, var(--glow) 24%, transparent), transparent 72%), radial-gradient(800px 420px at 88% -60px, rgba(242, 189, 87, .09), transparent 70%), var(--bg); background-repeat: no-repeat; }
::selection { background: var(--xm-red); color: #fff; }

/* falling snow (drawn by xmas.js) and the village, both behind everything */
.xm-snow { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.xm-village { position: fixed; left: 0; right: 0; bottom: 0; height: clamp(120px, 22vh, 230px); z-index: -1; pointer-events: none; }
.xm-village svg { width: 100%; height: 100%; display: block; }
.xm-village .win { animation: xm-win 7s ease-in-out infinite; }
.xm-village .win:nth-of-type(3n) { animation-delay: -2.3s; } .xm-village .win:nth-of-type(3n+1) { animation-delay: -4.9s; }
@keyframes xm-win { 0%, 100% { opacity: 1; } 46% { opacity: 1; } 50% { opacity: .78; } 54% { opacity: 1; } }

/* the header: a strand of lights hanging along its bottom edge */
.header { background: rgba(10, 13, 34, .82); }
.xm-lights { position: absolute; left: 0; right: 0; top: 100%; height: 26px; pointer-events: none; overflow: hidden; }
.xm-lights svg { width: 100%; height: 26px; display: block; }
.xm-lights .bulb, .xm-village .bulb { animation: xm-twinkle 3.2s ease-in-out infinite; }
@keyframes xm-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .38; } }
/* the logo: a Christmas ornament for the dot in NitroType.Shop (the real dot stays in the text) */
.brand .bd { display: inline-block; width: .5em; height: .72em; margin: 0 .04em 0 .06em; vertical-align: -.06em; overflow: hidden; text-indent: -9em; color: transparent;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 17'%3E%3Cpath d='M6 .8a1.5 1.5 0 1 1 0 3' fill='none' stroke='%23f2bd57' stroke-width='1'/%3E%3Crect x='4' y='3.4' width='4' height='2.4' rx='.5' fill='%23f2bd57'/%3E%3Ccircle cx='6' cy='11' r='5.6' fill='%23e0394b'/%3E%3Cpath d='M.5 10.2h11v1.6H.5z' fill='%23f2bd57'/%3E%3Ccircle cx='3.9' cy='8.4' r='1.1' fill='%23fbf5ea'/%3E%3C/svg%3E") center bottom / contain no-repeat; }

/* buttons: Christmas red */
.btn-primary { background: var(--xm-red); border-color: var(--xm-red); color: #fff; }
.btn-primary:hover { background: var(--xm-red-2); border-color: var(--xm-red-2); }
.btn:hover { border-color: #46508f; }
.status .dot { background: var(--xm-green); box-shadow: 0 0 0 3px rgba(31, 122, 77, .25); }

/* snow resting on the top of cards and panels */
.card, .acct-card, .rv-card, .category, .ld-tile { position: relative; }
.card::before, .acct-card::before, .category::before, .rv-card::before, .news-post::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9px; z-index: 2; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M0 0h200v4c-6 0-8 3-13 3s-6-4-12-4-7 5-13 5-6-3-11-3-8 2-14 2-7-4-12-4-6 6-12 6-7-4-13-4-8 3-13 3-6-5-12-5-8 3-13 3-6-2-12-2-8 4-13 4S6 4 0 4z' fill='%23eef2ff'/%3E%3C/svg%3E") top / 100% 100% no-repeat;
  opacity: .92;
}

/* the footer: a Christmas wish */

.xm-wish { color: var(--xm-gold); font-size: .85rem; margin-top: 6px; }

/* the limited strip on the home page sits right in the season */
.limited-drop { border-color: rgba(200, 40, 60, .45); }

@media (prefers-reduced-motion: reduce) {
  .xm-lights .bulb, .xm-village .bulb, .xm-village .win { animation: none; }
}
/* phones: the village sits at the very bottom of the page, behind the footer, not over the text */
@media (max-width: 720px) { body.xmas { position: relative; } .xm-village { position: absolute; height: 150px; } }
