/* Cosmo — Midnight Christmas 2026 (visual-only seasonal layer) */
html[data-xmas] {
  --x-bg:#090909; --x-bg2:#151515; --x-red:#B71C2C; --x-gold:#D4AF37; --x-text:#F5F5F5;
  --bg:#090909 !important; --card:#151515 !important; --muted:#1d1d1d !important; --border:#2a2622 !important;
  --fg:#F5F5F5 !important; --body:#d9d6d0 !important; --sub:#a29d94 !important;
  --primary:#B71C2C !important; --primary-ink:#F5F5F5 !important; --rating:#D4AF37 !important;
  color-scheme: dark;
}
html[data-xmas] body { background:#090909 !important; color:#F5F5F5 !important; }
html[data-xmas] body::before { content:""; position:fixed; inset:0; pointer-events:none; z-index:0;
  background: radial-gradient(ellipse at 50% -10%, rgba(212,175,55,.07), transparent 60%); }
html[data-xmas] main, html[data-xmas] .site-footer, html[data-xmas] .site-header { position:relative; }
html[data-xmas] main, html[data-xmas] .site-footer { z-index:1; }
html[data-xmas] .site-header { position:sticky !important; z-index:30; background:rgba(9,9,9,.94) !important; border-bottom:1px solid rgba(212,175,55,.25) !important; }
html[data-xmas] .site-header, html[data-xmas] .nav { color:#F5F5F5; }
html[data-xmas] .nav { background:transparent; }
@media (max-width:1100px){ html[data-xmas] .nav { background:#151515 !important; border-color:#2a2622 !important; } }
html[data-xmas] .nav a, html[data-xmas] .menu-extra a { color:#d9d6d0 !important; transition:color .2s, background .2s; }
html[data-xmas] .nav a:hover, html[data-xmas] .nav a.active { background:rgba(183,28,44,.16) !important; color:#D4AF37 !important; }
html[data-xmas] .menu-extra strong { color:#D4AF37; }
html[data-xmas] .menu-toggle span { background:#F5F5F5 !important; }
html[data-xmas] .brand img { filter:invert(1) hue-rotate(180deg); }
html[data-xmas] .header-search { background:#151515 !important; border:1px solid #2a2622 !important; color:#a29d94 !important; transition:border-color .2s; }
html[data-xmas] .header-search:hover { border-color:#D4AF37 !important; }

/* Surfaces */
html[data-xmas] .card, html[data-xmas] .post-card, html[data-xmas] .row-card, html[data-xmas] .icon-card,
html[data-xmas] .cat-item, html[data-xmas] .recommend, html[data-xmas] .recommend-item, html[data-xmas] .cover-item,
html[data-xmas] .wp-search, html[data-xmas] .review, html[data-xmas] .stat, html[data-xmas] .quick-link,
html[data-xmas] .legal-page, html[data-xmas] .download-summary, html[data-xmas] .age-box, html[data-xmas] .cosmo-promo {
  background:#151515 !important; border-color:#2a2622 !important; color:#F5F5F5;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
html[data-xmas] .post-card:hover, html[data-xmas] .row-card:hover, html[data-xmas] .icon-card:hover,
html[data-xmas] .cat-item:hover, html[data-xmas] .recommend-item:hover, html[data-xmas] .cover-item:hover, html[data-xmas] .card:hover {
  transform:translateY(-2px); border-color:rgba(212,175,55,.45) !important; box-shadow:0 6px 18px -8px rgba(183,28,44,.45);
}
html[data-xmas] .app-icon, html[data-xmas] .shots img { background:#151515 !important; border-color:#2a2622 !important; }
html[data-xmas] h1, html[data-xmas] h2, html[data-xmas] h3, html[data-xmas] .article-title, html[data-xmas] .blog-heading { color:#F5F5F5 !important; }
html[data-xmas] p, html[data-xmas] .post-desc { color:#d9d6d0; }
html[data-xmas] a { color:inherit; }
html[data-xmas] .post-title, html[data-xmas] .post-title a, html[data-xmas] .recommend-text strong, html[data-xmas] .post-more { color:#F5F5F5 !important; transition:color .2s; }
html[data-xmas] .post-title a:hover, html[data-xmas] .post-more:hover, html[data-xmas] .legal-page a, html[data-xmas] .footer-links a:hover { color:#D4AF37 !important; }
html[data-xmas] .section-title h2 { border-color:#B71C2C !important; }
html[data-xmas] .section-title h2::after { content:" ✦"; color:#D4AF37; font-size:.7em; vertical-align:middle; }
html[data-xmas] .section-title a:hover { background:rgba(183,28,44,.16) !important; }
html[data-xmas] input, html[data-xmas] select, html[data-xmas] textarea, html[data-xmas] .sort-select {
  background:#151515 !important; color:#F5F5F5 !important; border-color:#2a2622 !important; }
html[data-xmas] input:focus, html[data-xmas] select:focus, html[data-xmas] textarea:focus { outline:none; border-color:#D4AF37 !important; }
html[data-xmas] .post-tag, html[data-xmas] .hot-label { background:#B71C2C !important; }
html[data-xmas] .hot-ticker { background:#151515 !important; border-bottom:1px solid #2a2622; }
html[data-xmas] .platform-badge { background:#1d1d1d !important; border-color:#2a2622 !important; color:#d9d6d0 !important; }
html[data-xmas] #progress-bar { background:linear-gradient(90deg,#B71C2C,#D4AF37) !important; }
html[data-xmas] .skeleton, html[data-xmas] .sk-box, html[data-xmas] .sk-line { background:#1d1d1d !important; }

/* Buttons — subtle red accents */
html[data-xmas] .btn, html[data-xmas] .platform-download-button, html[data-xmas] .download-ready,
html[data-xmas] .post-article .download-actions .btn, html[data-xmas] #home .page-number, html[data-xmas] .theme-btn, html[data-xmas] .feature-cta, html[data-xmas] .cosmo-promo-btn {
  background:#151515 !important; color:#F5F5F5 !important; border:1px solid rgba(183,28,44,.7) !important;
  transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
html[data-xmas] .btn:not(.outline), html[data-xmas] .download-ready, html[data-xmas] .post-article .download-actions .btn,
html[data-xmas] #home .page-number:disabled, html[data-xmas] .theme-btn.active { background:#B71C2C !important; border-color:#B71C2C !important; }
html[data-xmas] .btn:hover, html[data-xmas] .platform-download-button:hover, html[data-xmas] #home .page-number:hover:not(:disabled),
html[data-xmas] .feature-cta:hover, html[data-xmas] .cosmo-promo-btn:hover {
  transform:translateY(-1px); border-color:#D4AF37 !important; box-shadow:0 4px 14px -6px rgba(183,28,44,.7); text-decoration:none;
}
html[data-xmas] .site-footer { background:#090909 !important; color:#a29d94 !important; border-top:1px solid rgba(212,175,55,.2) !important; }

/* Lights strip under header */
.xmas-lights { position:absolute; left:0; right:0; bottom:-9px; height:12px; pointer-events:none; overflow:hidden;
  display:flex; justify-content:space-around; }
.xmas-lights::before { content:""; position:absolute; left:0; right:0; top:0; height:1px; background:rgba(212,175,55,.25); }
.xmas-lights i { width:5px; height:7px; margin-top:2px; border-radius:50% 50% 45% 45%; animation:xmasTwinkle 3s ease-in-out infinite; }
.xmas-lights i:nth-child(3n+1){ background:#B71C2C; box-shadow:0 0 6px #B71C2C; }
.xmas-lights i:nth-child(3n+2){ background:#D4AF37; box-shadow:0 0 6px #D4AF37; animation-delay:1s; }
.xmas-lights i:nth-child(3n){ background:#F5F5F5; box-shadow:0 0 5px rgba(245,245,245,.8); animation-delay:2s; }
@keyframes xmasTwinkle { 0%,100%{opacity:1} 50%{opacity:.3} }

/* Homepage banner */
.xmas-banner { position:relative; overflow:hidden; display:flex; align-items:center; gap:12px; margin:0 0 14px;
  padding:12px 14px; border-radius:6px; background:#151515; border:1px solid rgba(212,175,55,.35); color:#F5F5F5; }
.xmas-banner::after { content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  box-shadow: inset 3px 0 0 #B71C2C; }
.xmas-banner .xb-orn { flex:none; width:34px; height:34px; color:#D4AF37; }
.xmas-banner .xb-text { min-width:0; }
.xmas-banner .xb-kicker { font-size:10px; letter-spacing:.18em; text-transform:uppercase; color:#D4AF37; font-weight:700; }
.xmas-banner .xb-title { font-family:Georgia,"Times New Roman",serif; font-size:clamp(16px,3.6vw,20px); line-height:1.2; margin:2px 0 0; letter-spacing:.01em; }
.xmas-banner .xb-title em { color:#D4AF37; font-style:normal; }
.xmas-banner .xb-stars { margin-left:auto; display:flex; gap:8px; color:#D4AF37; font-size:10px; }
.xmas-banner .xb-stars span { animation:xmasTwinkle 2.6s ease-in-out infinite; }
.xmas-banner .xb-stars span:nth-child(2){ animation-delay:.8s; font-size:13px; }
.xmas-banner .xb-stars span:nth-child(3){ animation-delay:1.6s; }
@media (max-width:420px){ .xmas-banner .xb-stars{ display:none; } }

/* Footer greeting */
.xmas-greet { display:block; width:100%; text-align:center; font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:#D4AF37; margin-top:6px; }

/* Snow */
#xmas-snow { position:fixed; inset:0; width:100%; height:100%; pointer-events:none; z-index:25; }
@media (prefers-reduced-motion: reduce){ #xmas-snow{display:none} .xmas-lights i,.xmas-banner .xb-stars span{animation:none} }
