/* ShunVerified Christmas theme.
   Every rule starts with html.xmas, which js/xmas.js only adds in December,
   so this file changes nothing the rest of the year. */

html.xmas {
  --xmas-red: #c8202f;
  --xmas-red-deep: #9e1726;
  --xmas-green: #1d6b45;
  --xmas-gold: #f2c14e;
}

/* ---------- Santa hat on the logo ---------- */
html.xmas .xmas-logo { position: relative; display: inline-block; line-height: 0; }
html.xmas .xmas-hat { position: absolute; pointer-events: none; display: block; }
html.xmas .xmas-hat svg { width: 100%; height: auto; display: block; }
html.xmas .xmas-logo .xmas-hat { width: 26px; left: -9px; top: -13px; transform: rotate(-22deg); z-index: 2; }

/* ---------- Countdown / greeting bar ---------- */
html.xmas .xmas-bar { background: var(--xmas-red); color: #fff; position: relative; z-index: 40; }
html.xmas.xmas-christmas .xmas-bar { background: var(--xmas-green); }
html.xmas .xmas-bar-inner {
  max-width: 1160px; margin: 0 auto; padding: .6rem 3rem .6rem 1.25rem;
  display: flex; align-items: center; gap: .75rem; position: relative; min-height: 48px;
  font-family: inherit; font-size: .95rem; line-height: 1.35;
}
html.xmas .xmas-bar-hat { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: var(--xmas-gold); display: grid; place-items: center; }
html.xmas .xmas-bar-hat svg { width: 24px; height: auto; display: block; transform: translate(1px, -1px) rotate(-12deg); }
html.xmas .xmas-bar-text { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .6rem; }
html.xmas .xmas-bar-text b { font-weight: 700; }
html.xmas .xmas-clock { display: inline-flex; gap: .35rem; }
html.xmas .xmas-unit {
  display: inline-flex; align-items: baseline; gap: .2rem; background: rgba(255,255,255,.16);
  border-radius: 6px; padding: .12rem .45rem; font-size: .78rem; color: #ffe9ea;
}
html.xmas .xmas-unit b { font-size: 1rem; color: #fff; font-variant-numeric: tabular-nums; }
html.xmas .xmas-promo { color: #fff3d6; }
html.xmas .xmas-promo a { color: var(--xmas-gold); font-weight: 600; text-decoration: underline; }
html.xmas .xmas-close {
  position: absolute; right: .6rem; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent;
  color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer;
}
html.xmas .xmas-close:hover { background: rgba(255,255,255,.15); }
@media (max-width: 600px) {
  html.xmas .xmas-bar-inner { font-size: .88rem; padding-left: 1rem; }
  html.xmas .xmas-bar-hat { width: 30px; height: 30px; }
  html.xmas .xmas-bar-hat svg { width: 21px; }
  html.xmas .xmas-unit { padding: .1rem .35rem; }
}

/* ---------- Snow ---------- */
html.xmas .xmas-snow { position: fixed; inset: 0; pointer-events: none; z-index: 45; }

/* ---------- Dashboard wallet card: Christmas red with snowflakes ---------- */
html.xmas .wallet {
  background-color: var(--xmas-red);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='90' viewBox='0 0 120 90'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.16' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M20 12v16M12 16l16 8M12 24l16-8'/%3E%3Cpath d='M86 50v12M81 53l10 6M81 59l10-6'/%3E%3Cpath d='M52 70v8M48 72l8 4M48 76l8-4'/%3E%3C/g%3E%3Cg fill='%23ffffff' fill-opacity='.18'%3E%3Ccircle cx='60' cy='18' r='2'/%3E%3Ccircle cx='104' cy='30' r='1.6'/%3E%3Ccircle cx='30' cy='62' r='1.8'/%3E%3C/g%3E%3C/svg%3E");
}
html.xmas .wallet::before { background: #e2434f; opacity: .55; }
html.xmas .wallet::after { background: var(--xmas-red-deep); }
html.xmas .wallet .btn-white { color: var(--xmas-red); }
html.xmas .wallet .btn-white:hover { background: #fff1f2; }
html.xmas .wallet .meter span { background: var(--xmas-gold); }
html.xmas .wallet .tip-on-blue:hover,
html.xmas .wallet .tip-on-blue[aria-expanded="true"] { color: var(--xmas-red); }
html.xmas .xmas-hat-wallet { width: 58px; right: 18px; top: -8px; transform: rotate(16deg); z-index: 1; filter: drop-shadow(0 3px 4px rgba(60,0,10,.35)); }
@media (max-width: 640px) {
  html.xmas .xmas-hat-wallet { width: 46px; right: auto; left: 150px; top: -6px; }
}

/* ---------- Dashboard: small festive touches ---------- */
html.xmas .invite { background: #fff4f4; border-color: #f3cfd2; }
html.xmas .invite .kv b { color: var(--xmas-red); }
html.xmas .slot.got { border-left-color: var(--xmas-green); }

/* ---------- Signup / login: festive side panel ---------- */
html.xmas .aside { background: var(--xmas-red); }
html.xmas .aside::before { background: #e2434f; opacity: .5; }
html.xmas .aside::after { background: var(--xmas-red-deep); }
html.xmas .facts li { border-left-color: rgba(255,255,255,.4); }
html.xmas .aside .home { color: #ffdfe2; }

/* ---------- Homepage, bundles and deposit (older page styles) ---------- */
html.xmas body > header { border-bottom: 3px solid var(--xmas-red); }
