/* Site color themes. Pink is the default (each page's own :root). Gold and Runner override the same tokens.
   theme.js sets data-theme on <html> before paint, from the visitor's choice. */
html[data-theme="gold"]{--bg:#111110;--panel:#181816;--panel2:#201f1c;--line:#2e2d29;--line2:#6b665d;--fg:#f2eee6;--mute:#b8b1a4;--accent:#e0ad5c;--accent-ink:#17120a;--bad:#e8897d;--good:#9ccc9f}
html[data-theme="runner"]{--bg:#050505;--panel:#0e0f0b;--panel2:#171810;--line:#2c2e1c;--line2:#6d7150;--fg:#f4f6ea;--mute:#b5bb98;--accent:#d6ff1f;--accent-ink:#0b0d00;--bad:#e8897d;--good:#9ccc9f}

/* Runner adds light motion: opacity and transform only, off for reduced motion. */
@media (prefers-reduced-motion: no-preference){
  html[data-theme="runner"] main:not(.smpmain) > *, html[data-theme="runner"] .wrap > header, html[data-theme="runner"] .smpmain > header, html[data-theme="runner"] .smpmain > section, html[data-theme="runner"] .wrap > section{animation:rnIn .45s ease-out both}
  html[data-theme="runner"] .go{transition:transform .15s ease,background-color .15s ease}
  html[data-theme="runner"] .go:hover{transform:translateY(-2px)}
  html[data-theme="runner"] .card:hover,html[data-theme="runner"] a.card:hover{transform:translateY(-2px)}
  html[data-theme="runner"] .sitenav .tab[aria-current]::after{animation:rnBar .35s ease-out both;transform-origin:left}
}
@keyframes rnIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes rnBar{from{transform:scaleX(0)}to{transform:scaleX(1)}}

/* Animated (2026-10-08): rotating official SMITE 2 wallpapers behind the page (theme.js adds #smpArt).
   theme.js sets --accent and --flow from each picture (both 7:1 or more against the dark button text),
   and they fade to the next picture's colors. Panels stay dark enough to read on. */
@property --accent{syntax:'<color>';inherits:true;initial-value:#f7a6d8}
@property --flow{syntax:'<color>';inherits:true;initial-value:#8e9bf6}
html[data-theme="animated"]{--bg:#0b0b0d;--panel:rgba(16,16,19,.62);--panel2:rgba(30,30,35,.55);--line:rgba(255,255,255,.1);--line2:#6c6c75;--fg:#f1f1f4;--mute:#b9b9c2;--accent-ink:#1d0e19;--flow:#8e9bf6;background:#0b0b0d;transition:--accent 2.4s ease,--flow 2.4s ease}
html[data-theme="animated"] body{background:transparent}
#smpArt{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none;background:#0b0b0d}
#smpArt i{position:absolute;inset:0;background:center/cover no-repeat;opacity:0;transition:opacity 1.8s ease;will-change:opacity,transform}
#smpArt i.on{opacity:1}
/* the shade keeps body text readable: lighter at the top so the art shows, darker where the reading is */
#smpArt b{position:absolute;inset:0;background:linear-gradient(180deg,rgba(11,11,13,.5) 0,rgba(11,11,13,.74) 340px,rgba(11,11,13,.86) 70%,rgba(11,11,13,.92) 100%),radial-gradient(ellipse at 50% 40%,transparent 40%,rgba(0,0,0,.45) 100%)}
html[data-theme="animated"] .card,html[data-theme="animated"] a.card{border-color:color-mix(in srgb,var(--accent) 22%,var(--line))}
html[data-theme="animated"] .go.ghost{border-color:color-mix(in srgb,var(--accent) 40%,var(--line2))}
html[data-theme="animated"] .go:not(.ghost),html[data-theme="animated"] .pri{background:linear-gradient(110deg,var(--accent) 0%,var(--flow) 50%,var(--accent) 100%);background-size:220% 100%;border-color:transparent}
#smpTheme{flex-wrap:wrap;max-width:calc(100vw - 32px)}
@media (prefers-reduced-motion: no-preference){
  #smpArt i.kb{animation:smpKb 3s ease-out both}
  html[data-theme="animated"] .go:not(.ghost),html[data-theme="animated"] .pri{animation:smpFlow 8s ease-in-out infinite alternate}
  html[data-theme="animated"] .go.ghost:hover{border-color:var(--flow)}
}
@media (prefers-reduced-motion: reduce){
  html[data-theme="animated"]{transition:none}
  #smpArt i{transition:none}
}
@keyframes smpKb{from{transform:scale(1.05)}to{transform:none}}
@keyframes smpFlow{from{background-position:0% 50%}to{background-position:100% 50%}}

/* Glass pass (2026-10-08, Anthony: menus looked like a box on a picture). Menus and panels are frosted glass over the art:
   the art blurs through, a hairline light on the top edge, a soft shadow under. The art only moves while it changes
   (a 3 s settle as each picture fades in), so the blur is drawn once per picture, not every frame. */
html[data-theme="animated"] .sitenav{background:transparent !important;border-bottom-color:transparent;isolation:isolate}
@media (max-width:1199px){html[data-theme="animated"] .sitenav{position:relative}}
html[data-theme="animated"] .sitenav::before{content:"";position:absolute;z-index:-1;top:0;bottom:0;left:50%;width:100vw;transform:translateX(-50%);
  background:linear-gradient(180deg,rgba(8,8,10,.62),rgba(8,8,10,.42));-webkit-backdrop-filter:blur(22px) saturate(140%);backdrop-filter:blur(22px) saturate(140%);
  border-bottom:1px solid rgba(255,255,255,.08);box-shadow:0 1px 0 color-mix(in srgb,var(--accent) 22%,transparent),0 18px 40px -24px rgba(0,0,0,.7)}
@media (max-width:1199px){html[data-theme="animated"] .sitenav::before{top:-20px}}
html[data-theme="animated"] .sitenav .subtabs{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.1)}
html[data-theme="animated"] .sitenav .sub:not([aria-current]){background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.16)}
html[data-theme="animated"] :is(.sec,header.hero,.pk,.pkc,.byoc,.card,.rcard,.box,.panelbox,.lookbar,.obs,.cctl section,.kit,.zcard,.scard,.vkit,.skit,.ftile,.modecard,.wiz,.view,.mine,.tools,.btabs,.addbox,.kitpromo,.hirez,.pgbox,.step,#start ol li,#smpTheme){
  -webkit-backdrop-filter:blur(16px) saturate(130%);backdrop-filter:blur(16px) saturate(130%);
  border-color:rgba(255,255,255,.1);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 16px 36px -18px rgba(0,0,0,.65)}
/* glass inside glass does not blur twice */
html[data-theme="animated"] :is(.sec,header.hero,.box,.panelbox,.cctl section,.wiz,.view) :is(.card,.rcard,.pk,.pkc,.byoc,.box,.kit,.zcard,.scard,.ftile,.modecard,.step,li){-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
html[data-theme="animated"] :is(.card,.rcard,.pkc,.pk):hover{border-color:color-mix(in srgb,var(--accent) 55%,transparent)}
html[data-theme="animated"] #smpTheme{background:rgba(12,12,14,.55)}
html[data-theme="animated"] :is(input,select,textarea){background-color:rgba(8,8,10,.55)}
html[data-theme="animated"] body{overflow-x:clip}
/* Rounder corners on the glass (Anthony 2026-10-08): big panels 20px, cards 16px, menus and fields 12px */
html[data-theme="animated"] :is(.sec,header.hero,.box,.panelbox,.lookbar,.obs,.cctl section,.wiz,.view,.addbox,.kitpromo,.hirez,.pgbox,.tools,.btabs){border-radius:20px}
html[data-theme="animated"] :is(.card,.rcard,.pk,.pkc,.byoc,.kit,.zcard,.scard,.vkit,.skit,.ftile,.modecard,.step,.mine,#start ol li){border-radius:16px;overflow:hidden}
html[data-theme="animated"] .sitenav .subtabs{border-radius:16px}
html[data-theme="animated"] :is(.sitenav .sub,.go,.pri,input,select,textarea){border-radius:12px}
