/* ASTRAL CARDS: CC0 fantasy asset skin.
   Licensed sprite assets stored locally in assets/cc0.
   Kenney Fantasy UI Borders and Animal Pack Remastered, Creative Commons Zero.
   See ASSET_CREDITS.md for source links and license provenance. */

/* Stone runes improve the arenas and contrast with jewel-colored spell effects. */
.battle-side,.ac-sidebar,.deck-summary{
  background-image:
    linear-gradient(160deg,rgba(17,19,37,.95),rgba(26,20,43,.91)),
    url('./assets/cc0/kenney-stone-pattern.png');
  background-size:auto,80px 80px;
  background-blend-mode:normal,luminosity;
}
.card-illustration::after{
  content:'';
  position:absolute;
  inset:-2px;
  border:10px solid transparent;
  border-image-source:url('./assets/cc0/kenney-border-arcane.png');
  border-image-slice:16;
  border-image-width:10px;
  border-image-repeat:stretch;
  filter:sepia(.7) saturate(.8) hue-rotate(342deg) drop-shadow(0 1px 2px #160c20);
  pointer-events:none;
  z-index:2;
  opacity:.85;
}
.game-card.rank-SSS .card-illustration::after,
.game-card.rank-USR .card-illustration::after,
.game-card.rank-USR\+ .card-illustration::after{filter:sepia(1) saturate(1.4) drop-shadow(0 0 4px #ffde88);opacity:1}
.game-card .card-effect{
  border:2px solid #c19a66;
  border-image-source:url('./assets/cc0/kenney-border-ornate.png');
  border-image-slice:16;
  border-image-width:7px;
  border-image-repeat:stretch;
  background-image:linear-gradient(160deg,#f9e9c8,#d7bb98);
}
.card-illustration>.cost-orb{z-index:4}

/* True animal portraits: only for names with direct creature-type matches.
   Atlas illustrations take precedence for the original 16 showcase monsters. */
.licensed-art{
  display:flex;
  position:absolute;
  inset:0;
  isolation:isolate;
  justify-content:center;
  align-items:center;
  overflow:hidden;
  background:
     radial-gradient(ellipse at 52% 56%,var(--element-glow,#7565e188),transparent 72%),
     url('./assets/cc0/kenney-stone-pattern.png') center/128px,
     linear-gradient(135deg,#121b36,#292247 60%,#17132b);
}
.licensed-art::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 50% 50%,transparent 35%,#080b1de5 97%);z-index:1}
.licensed-halo{position:absolute;inset:11% 10%;border-radius:50%;border:2px solid var(--element-color,#ba9ee9);box-shadow:0 0 22px var(--element-glow,#7970c9),inset 0 0 16px #ffffff13;opacity:.65}
.licensed-halo::after{content:'';position:absolute;inset:9px;border-radius:50%;border:1px dashed #ffe1ac85}
.licensed-art img{
  display:block;width:77%;height:77%;
  max-width:230px;object-fit:contain;position:relative;z-index:2;
  filter:drop-shadow(0 7px 13px #01040bbb);
}
.licensed-spark{position:absolute;top:13%;right:18%;color:#ffdf91;font-size:24px;z-index:3;text-shadow:0 0 15px #f4bf6a}
.collection-tile .licensed-art img{width:73%;height:75%}
.ac-creature-art .licensed-art img{width:70%;height:70%}
.ac-shop-portrait .licensed-art img{width:65%;height:72%}
.slot-art .licensed-art img{width:68%;height:80%}
.card-illustration .licensed-art{inset:0}
.license-credit-link{color:#ebd2a0;text-decoration:underline;text-underline-offset:2px}
@media (max-width:650px){
 .card-illustration::after{border-width:7px;border-image-width:7px}
 .licensed-art img{width:77%;height:75%}
 .licensed-spark{font-size:17px}
}

/* CC0 effect / stat badges from Kenney Board Game Icons (64px). */
.effect-type{display:flex;align-items:center;gap:4px}
.effect-icon,.stat-icon{display:inline-block;width:13px;height:13px;flex:0 0 13px;object-fit:contain;filter:brightness(.24) sepia(.25);vertical-align:middle}
.game-card .card-foot span{display:flex;align-items:center;gap:3px}
.game-card .card-foot span .stat-icon{width:12px;height:12px;flex-basis:12px}
@media(max-width:650px){.effect-icon{width:11px;height:11px;flex-basis:11px}.stat-icon{width:10px;height:10px;flex-basis:10px}.game-card .card-foot span .stat-icon{width:10px;height:10px;flex-basis:10px}}
