﻿/* Shared hand-painted art hooks for Stone to Stars static site.
   Asset root: /assets/  (absolute paths so nested pages resolve). */

.crest,
.foot-crest {
  transform: none !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  width: 36px !important;
  height: 36px !important;
  padding: 0;
  overflow: visible;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}
.crest > span,
.foot-crest > span {
  display: none !important;
}
.crest::before,
.foot-crest::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  /* Transparent PNG — contain keeps the diamond badge without a dark plate */
  background: url("/assets/crest.png?v=2") center / contain no-repeat;
  border-radius: 0;
  filter: drop-shadow(0 0 6px rgba(242, 193, 78, 0.28));
}
.foot-crest {
  width: 28px !important;
  height: 28px !important;
}
.foot-crest::before {
  filter: drop-shadow(0 0 4px rgba(242, 193, 78, 0.22));
}

.sts-page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(242, 193, 78, 0.22);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
  background-color: rgba(16, 10, 5, 0.72);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.sts-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 10, 5, 0.35), rgba(16, 10, 5, 0.78));
  pointer-events: none;
}
.sts-page-hero > * {
  position: relative;
  z-index: 1;
}
.sts-page-hero h1,
.sts-page-hero .title,
.sts-page-hero p {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

body.sts-art-landing {
  background:
    linear-gradient(180deg, rgba(20, 13, 6, 0.55) 0%, rgba(20, 13, 6, 0.85) 45%, #140d06 78%),
    url("/assets/hero-landing.jpg") center top / cover no-repeat fixed,
    linear-gradient(180deg, #1e140a, #140d06 60%, #100a05) !important;
}
body.sts-art-landing .hero.sts-page-hero {
  max-width: 960px;
  margin: 24px auto 0;
  padding: clamp(56px, 10vw, 110px) var(--pad, 26px) clamp(40px, 7vw, 72px);
  background-image:
    linear-gradient(180deg, rgba(16, 10, 5, 0.35), rgba(16, 10, 5, 0.72)),
    url("/assets/hero-landing.jpg");
}

.era-card.has-art {
  min-height: 210px;
  background:
    linear-gradient(180deg, rgba(24, 16, 8, 0.55) 10%, rgba(24, 16, 8, 0.92) 70%),
    var(--era-art) center / cover no-repeat !important;
}
.era-card.has-art .tag,
.era-card.has-art h3,
.era-card.has-art p {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}

.sys-ico.has-art {
  padding: 0 !important;
  overflow: hidden;
  background: transparent !important;
}
.sys-ico.has-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 7px;
}
.sys-ico.has-art svg {
  display: none !important;
}

/* Sister-page hero plates */
body.sts-art-loot .hero.sts-page-hero,
body.sts-art-loot section.hero {
  background-image:
    linear-gradient(180deg, rgba(16, 10, 5, 0.4), rgba(16, 10, 5, 0.82)),
    url("/assets/page-loot.jpg");
  background-size: cover;
  background-position: center;
}
body.sts-art-market .hero.sts-page-hero,
body.sts-art-market .hero {
  background-image:
    linear-gradient(180deg, rgba(16, 10, 5, 0.4), rgba(16, 10, 5, 0.82)),
    url("/assets/page-market.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 14px;
  border: 1px solid rgba(242, 193, 78, 0.2);
  padding: clamp(28px, 5vw, 48px) clamp(16px, 3vw, 28px) !important;
}
body.sts-art-wiki .hero {
  background-image:
    linear-gradient(180deg, rgba(16, 10, 5, 0.45), rgba(16, 10, 5, 0.85)),
    url("/assets/page-wiki.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 14px;
  border: 1px solid rgba(242, 193, 78, 0.2);
  padding: clamp(36px, 6vw, 64px) 20px !important;
}
body.sts-art-patchnotes .hero.sts-page-hero,
body.sts-art-patchnotes section.hero {
  background-image:
    linear-gradient(180deg, rgba(16, 10, 5, 0.4), rgba(16, 10, 5, 0.82)),
    url("/assets/page-patchnotes.jpg");
  background-size: cover;
  background-position: center;
}
body.sts-art-map .map-page-banner {
  position: relative;
  isolation: isolate;
  max-width: 1200px;
  margin: 16px auto 0;
  padding: clamp(28px, 5vw, 44px) 22px;
  border-radius: 14px;
  border: 1px solid rgba(242, 193, 78, 0.22);
  box-sizing: border-box;
  width: calc(100% - 32px);
  overflow: hidden;
  background: url("/assets/page-map.jpg") center / cover no-repeat;
}
body.sts-art-map .map-page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(16, 10, 5, 0.72) 0%, rgba(16, 10, 5, 0.35) 55%, rgba(16, 10, 5, 0.15) 100%);
  pointer-events: none;
}
body.sts-art-map .map-page-banner h1,
body.sts-art-map .map-page-banner p {
  position: relative;
  z-index: 1;
}
body.sts-art-map .map-page-banner h1 {
  margin: 0 0 8px;
  font-family: "Cinzel", Georgia, serif;
  color: #f4ead2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}
body.sts-art-map .map-page-banner p {
  margin: 0;
  color: #beb296;
  max-width: 520px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

