/* LC-067 presentation only. Entitlements, asset decoding and attributes belong to JS.
   Load after the base/viewport/shop styles. FREE cardbacks never set these attrs. */
#theme-vignette.theme-vignette{display:none;pointer-events:none}

html[data-theme-tier="premium"][data-theme="christmas"]{
  --theme-table-image:url("assets/themes/christmas-table.webp");
  --theme-vignette-image:url("assets/themes/christmas-vignette.webp");
  --theme-accent:#d6bf83;
  --theme-line:#bca56b66;
}
html[data-theme-tier="premium"][data-theme="halloween"]{
  --theme-table-image:url("assets/themes/halloween-table.webp");
  --theme-vignette-image:url("assets/themes/halloween-vignette.webp");
  --theme-accent:#daa477;
  --theme-line:#bb815f66;
}
html[data-theme-tier="premium"][data-theme="easter"]{
  --theme-table-image:url("assets/themes/easter-table.webp");
  --theme-vignette-image:url("assets/themes/easter-vignette.webp");
  --theme-accent:#baca91;
  --theme-line:#91a57366;
}
html[data-theme-tier="premium"][data-theme="thanksgiving"]{
  --theme-table-image:url("assets/themes/thanksgiving-table.webp");
  --theme-vignette-image:url("assets/themes/thanksgiving-vignette.webp");
  --theme-accent:#d9b77b;
  --theme-line:#b5986166;
}

html[data-theme-tier="premium"]:is([data-theme="christmas"],[data-theme="halloween"],[data-theme="easter"],[data-theme="thanksgiving"]){
  --theme-shade:#132019b8;
  --gold:var(--theme-accent);
  --line:var(--theme-line);
}
html[data-theme-tier="premium"]:is([data-theme="christmas"],[data-theme="halloween"],[data-theme="easter"],[data-theme="thanksgiving"]) body{
  background-color:var(--bg);
  background-image:linear-gradient(var(--theme-shade),var(--theme-shade)),var(--theme-table-image);
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
}
html[data-theme-tier="premium"]:is([data-theme="christmas"],[data-theme="halloween"],[data-theme="easter"],[data-theme="thanksgiving"]) .title-screen,
html[data-theme-tier="premium"]:is([data-theme="christmas"],[data-theme="halloween"],[data-theme="easter"],[data-theme="thanksgiving"]) .battlefield{
  background-color:var(--bg);
  background-image:linear-gradient(var(--theme-shade),var(--theme-shade)),var(--theme-table-image);
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  border-color:var(--theme-line);
}
/* Nine-slice keeps corners square and the center empty across viewport ratios.
   The layer is below modal backdrops (z20+) and cannot intercept interactions. */
html[data-theme-tier="premium"]:is([data-theme="christmas"],[data-theme="halloween"],[data-theme="easter"],[data-theme="thanksgiving"]) #theme-vignette.theme-vignette{
  display:block;
  position:fixed;
  inset:0;
  z-index:4;
  box-sizing:border-box;
  border:clamp(64px,10vmin,120px) solid transparent;
  border-image-source:var(--theme-vignette-image);
  border-image-slice:180;
  border-image-repeat:stretch;
  opacity:.55;
  pointer-events:none;
  user-select:none;
}
/* Theme presentation is static, including combat and reduced-motion mode. */
@media(prefers-reduced-motion:reduce){#theme-vignette.theme-vignette{animation:none;transition:none}}
