/* HOLIDAY THEMES (2026-11-26, lib/holidaytheme.php; loaded only while a theme is on). Everything hangs off <body data-holiday="...">:
   a soft colour wash at the top of the page, the welcome card on the feed, the string lights (Christmas) and the effects canvas (holiday.js).
   Rova's gold stays the brand colour; each theme adds its own second colour (--hl-a / --hl-b). Nothing here touches a live room's video. */
body[data-holiday]{--hl-a:#f5c518;--hl-b:#b8860b;--hl-ink:#fff}
body[data-holiday="thanks"]{--hl-a:#f0913a;--hl-b:#a8391f}
body[data-holiday="xmas"]{--hl-a:#e8c268;--hl-b:#c9303b;--hl-c:#1f6b4f}
body[data-holiday="nye"]{--hl-a:#f6dc8c;--hl-b:#8f7bff}

/* the wash: one fixed layer behind the page, a glow from the top */
body[data-holiday]::before{content:"";position:fixed;inset:0 0 auto 0;height:min(46vh,420px);z-index:-1;pointer-events:none;
  background:radial-gradient(120% 100% at 50% 0,color-mix(in srgb,var(--hl-b) 34%,transparent) 0,color-mix(in srgb,var(--hl-a) 12%,transparent) 42%,transparent 72%)}
body[data-holiday="xmas"]::before{background:radial-gradient(120% 100% at 50% 0,color-mix(in srgb,var(--hl-c) 46%,transparent) 0,color-mix(in srgb,var(--hl-b) 10%,transparent) 46%,transparent 74%)}
[data-theme="light"] body[data-holiday]::before{opacity:.55}

/* effects canvas (holiday.js): above the page, under the header and every sheet */
.holi-fx{position:fixed;inset:0;width:100%;height:100%;z-index:40;pointer-events:none;opacity:1;transition:opacity 1.2s ease}
.holi-fx.is-out{opacity:0}
html.pfv-on .holi-fx,html.tsq-open .holi-fx{opacity:0}

/* the welcome card on the feed */
.holi-card{position:relative;display:flex;align-items:center;gap:14px;max-width:680px;margin:14px auto 14px;padding:14px 46px 14px 16px;border-radius:20px;overflow:hidden;isolation:isolate;
  color:var(--text);border:1px solid color-mix(in srgb,var(--hl-a) 46%,transparent);
  background:linear-gradient(115deg,color-mix(in srgb,var(--hl-b) 26%,var(--menu-bg)) 0,var(--menu-bg) 58%);
  box-shadow:0 14px 34px -18px rgba(0,0,0,.6),inset 0 1px 0 rgba(255,255,255,.07);animation:holiIn .6s cubic-bezier(.2,.9,.3,1.1) both}
.holi-card::after{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(100deg,transparent 30%,color-mix(in srgb,var(--hl-a) 22%,transparent) 50%,transparent 70%);
  background-size:220% 100%;background-position:130% 0;animation:holiSheen 5.5s ease-in-out 1s infinite}
.holi-ic{flex:none;display:grid;place-items:center;width:48px;height:48px;border-radius:50%;font-size:26px;line-height:1;
  background:radial-gradient(circle at 35% 30%,color-mix(in srgb,var(--hl-a) 60%,#fff) 0,var(--hl-b) 78%);box-shadow:0 0 0 1.5px color-mix(in srgb,var(--hl-a) 70%,transparent),0 8px 18px -8px var(--hl-b)}
.holi-tx{min-width:0;display:flex;flex-direction:column;gap:2px}
.holi-tx b{font-size:16px;font-weight:800;letter-spacing:-.01em;color:color-mix(in srgb,var(--hl-a) 80%,var(--text))}
.holi-tx span{font-size:13.5px;line-height:1.4;color:var(--muted)}
.holi-x{position:absolute;top:10px;right:10px;display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:50%;cursor:pointer;color:var(--muted);background:color-mix(in srgb,var(--text) 8%,transparent)}
.holi-x svg{display:block;width:12px;height:12px}
.holi-x:hover{color:var(--text)}
.holi-cd{display:flex;gap:6px;margin-top:8px}
.holi-cd i{font-style:normal;min-width:52px;padding:6px 8px;border-radius:12px;text-align:center;font-size:11px;font-weight:700;letter-spacing:.08em;color:var(--muted);
  background:color-mix(in srgb,var(--text) 6%,transparent);border:1px solid color-mix(in srgb,var(--hl-a) 30%,transparent)}
.holi-cd i b{display:block;font-size:19px;letter-spacing:0;font-variant-numeric:tabular-nums;color:var(--hl-a)}
@keyframes holiIn{from{opacity:0;transform:translateY(-8px) scale(.985)}to{opacity:1;transform:none}}
@keyframes holiSheen{0%,55%{background-position:130% 0}100%{background-position:-110% 0}}

/* Christmas: a string of lights under the header */
.holi-lights{position:fixed;left:0;right:0;top:var(--topbar-h,65px);height:26px;z-index:54;pointer-events:none}
.holi-lights svg{display:block;width:100%;height:100%;overflow:visible}
.holi-lights circle{animation:holiTw 2.1s ease-in-out infinite;filter:drop-shadow(0 0 4px currentColor)}
.holi-lights circle:nth-child(3n){animation-delay:.7s}
.holi-lights circle:nth-child(3n+1){animation-delay:1.4s}
html.tabs-dk .holi-lights,html.pfv-on .holi-lights{display:none}
@keyframes holiTw{0%,100%{opacity:.4}50%{opacity:1}}

/* the admin's preview note */
.holi-pv{position:fixed;left:50%;bottom:calc(16px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:90;display:flex;align-items:center;gap:10px;padding:9px 14px;border-radius:999px;
  font-size:13px;font-weight:700;color:var(--text);background:var(--menu-bg);border:1px solid color-mix(in srgb,var(--hl-a) 50%,transparent);box-shadow:0 14px 34px -12px rgba(0,0,0,.6)}
.holi-pv a{color:var(--hl-a);font-weight:800;text-decoration:none}

@media (prefers-reduced-motion:reduce){ .holi-card,.holi-card::after,.holi-lights circle{animation:none} .holi-fx{display:none} }
