/* Lexi's Artifacts illustrated landing page
   Scoped to the archive so the individual tools and Playroom remain unchanged. */

.lexi-backdrop.artifacts-page {
  overflow-x: clip;
}

.lexi-backdrop.artifacts-page .artifacts-skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 60;
  min-height: 44px;
  padding: 11px 15px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #5f6fb8;
  box-shadow: 0 0 0 2px var(--lx-v3-line), 0 10px 24px var(--lx-v3-shadow);
  font-weight: 900;
}

.lexi-backdrop.artifacts-page .artifacts-skip:focus {
  top: 16px;
}

.lexi-backdrop.artifacts-page .artifacts-shell {
  position: relative;
  width: min(1360px, calc(100% - 40px));
  margin: 0 auto 58px;
}

.lexi-backdrop.artifacts-page .artifacts-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(28px, 5vw, 72px);
  min-height: 330px;
  margin: 42px 0 34px;
  padding: clamp(34px, 4.4vw, 62px);
  overflow: hidden;
  isolation: isolate;
  border: 2px solid rgba(255, 255, 255, 0.98);
  border-radius: 34px;
  background:
    linear-gradient(96deg, rgba(255, 255, 255, 0.97) 0 42%, rgba(249, 247, 255, 0.81) 60%, rgba(211, 228, 253, 0.26) 100%),
    url("backdrop/illustrated/moonlit-lake-v3.webp") 58% 50% / cover no-repeat;
  box-shadow: var(--lx-v3-shell);
}

.lexi-backdrop.artifacts-page .artifacts-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background:
    linear-gradient(160deg, transparent 0 57%, rgba(181, 219, 249, 0.24) 57% 67%, transparent 67%),
    linear-gradient(160deg, transparent 0 66%, rgba(201, 188, 244, 0.2) 66% 73%, transparent 73%),
    url("backdrop/illustrated/petals-sparkles-v3.webp") center / cover no-repeat;
  opacity: 0.66;
  pointer-events: none;
}

.lexi-backdrop.artifacts-page .artifacts-hero::after {
  content: "";
  position: absolute;
  top: -72px;
  right: clamp(150px, 18vw, 270px);
  z-index: 0;
  width: 104px;
  height: 344px;
  background: url("backdrop/illustrated/celestial-charm-v3.webp") center top / contain no-repeat;
  opacity: 0.72;
  filter: drop-shadow(0 14px 24px rgba(68, 83, 145, 0.19));
  pointer-events: none;
}

.lexi-backdrop.artifacts-page .artifacts-hero > * {
  position: relative;
  z-index: 1;
}

.lexi-backdrop.artifacts-page .artifacts-hero-copy {
  max-width: 720px;
  padding: clamp(18px, 2.3vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 27px;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.48));
  box-shadow: inset 0 0 0 1px rgba(128, 150, 211, 0.2), 0 16px 40px rgba(72, 82, 145, 0.12);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.lexi-backdrop.artifacts-page .artifacts-hero h1 {
  max-width: 700px;
  margin: 13px 0 17px;
  font-size: clamp(2.7rem, 5.7vw, 5.1rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.lexi-backdrop.artifacts-page .artifacts-hero h1 span {
  color: #b56e9d;
  text-shadow: 0 0 20px rgba(225, 171, 205, 0.38);
}

.lexi-backdrop.artifacts-page .artifacts-hero .lede {
  max-width: 560px;
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  line-height: 1.65;
}

.lexi-backdrop.artifacts-page .artifacts-live-link {
  align-self: end;
  min-width: 182px;
  white-space: nowrap;
}

.lexi-backdrop.artifacts-page .artifact-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 24px;
  scroll-margin-top: 28px;
}

.lexi-backdrop.artifacts-page .artifact-card {
  --artifact-accent: #8fa8df;
  --artifact-tint-a: rgba(224, 236, 255, 0.96);
  --artifact-tint-b: rgba(245, 233, 250, 0.94);
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  grid-column: span 6;
  gap: 13px 18px;
  min-width: 0;
  min-height: 230px;
  padding: 26px;
  overflow: hidden;
  isolation: isolate;
  border: 2px solid rgba(255, 255, 255, 0.98);
  border-top: 5px solid var(--artifact-accent);
  border-radius: 27px;
  color: var(--lx-v3-ink-deep);
  text-decoration: none;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.97), var(--artifact-tint-a) 63%, var(--artifact-tint-b));
  box-shadow:
    0 0 0 2px var(--lx-v3-line-soft),
    inset 0 0 0 4px rgba(255, 255, 255, 0.33),
    0 18px 42px rgba(67, 76, 139, 0.14);
  transform: translateY(0);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.lexi-backdrop.artifacts-page .artifact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(154deg, transparent 0 60%, rgba(181, 215, 247, 0.18) 60% 70%, transparent 70%),
    url("backdrop/illustrated/petals-sparkles-v3.webp") center / 900px auto no-repeat;
  opacity: 0.3;
  pointer-events: none;
}

.lexi-backdrop.artifacts-page .artifact-card > * {
  position: relative;
  z-index: 1;
}

.lexi-backdrop.artifacts-page .artifact-card > .artifact-sigil {
  grid-column: 1;
  grid-row: 1 / 4;
  align-self: start;
}

.lexi-backdrop.artifacts-page .artifact-card > div {
  grid-column: 2;
  min-width: 0;
}

.lexi-backdrop.artifacts-page .artifact-card h2 {
  margin: 4px 0 10px;
  font-size: clamp(1.42rem, 2.4vw, 2rem);
  line-height: 1.08;
  text-wrap: balance;
}

.lexi-backdrop.artifacts-page .artifact-card p:not(.eyebrow) {
  max-width: 48ch;
  margin: 0;
  color: var(--lx-v3-body);
  line-height: 1.5;
}

.lexi-backdrop.artifacts-page .artifact-card .eyebrow {
  margin-bottom: 9px;
}

.lexi-backdrop.artifacts-page .artifact-card:hover {
  border-color: rgba(255, 255, 255, 1);
  box-shadow:
    0 0 0 2px var(--artifact-accent),
    inset 0 0 0 4px rgba(255, 255, 255, 0.38),
    0 25px 54px rgba(67, 76, 139, 0.21);
  transform: translateY(-4px);
}

.lexi-backdrop.artifacts-page .featured-artifact {
  grid-column: span 7;
  grid-row: span 2;
  min-height: 470px;
  --artifact-accent: #d693ba;
  --artifact-tint-a: rgba(243, 231, 251, 0.88);
  --artifact-tint-b: rgba(214, 232, 253, 0.55);
  align-content: start;
  background:
    linear-gradient(106deg, rgba(255, 255, 255, 0.97) 0 42%, rgba(245, 239, 252, 0.74) 62%, rgba(201, 224, 251, 0.18) 100%),
    url("backdrop/illustrated/moonlit-lake-v3.webp") 55% 52% / cover no-repeat;
}

.lexi-backdrop.artifacts-page .featured-artifact::before {
  background:
    linear-gradient(153deg, transparent 0 52%, rgba(179, 216, 247, 0.24) 52% 64%, transparent 64%),
    url("backdrop/illustrated/petals-sparkles-v3.webp") center / cover no-repeat;
  opacity: 0.46;
}

.lexi-backdrop.artifacts-page .featured-artifact h2 {
  max-width: 430px;
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.lexi-backdrop.artifacts-page .artifact-card--gallery,
.lexi-backdrop.artifacts-page .artifact-card--tricks {
  grid-column: span 5;
  min-height: 223px;
}

.lexi-backdrop.artifacts-page .artifact-card--gallery {
  --artifact-accent: #8ba6dc;
  --artifact-tint-a: rgba(227, 238, 255, 0.94);
  --artifact-tint-b: rgba(238, 233, 253, 0.92);
}

.lexi-backdrop.artifacts-page .artifact-card--tricks {
  --artifact-accent: #ca91bd;
  --artifact-tint-a: rgba(248, 231, 243, 0.95);
  --artifact-tint-b: rgba(230, 225, 251, 0.92);
}

.lexi-backdrop.artifacts-page .artifact-card--warships {
  --artifact-accent: #6fa9d5;
  --artifact-tint-a: rgba(219, 240, 252, 0.96);
  --artifact-tint-b: rgba(230, 232, 251, 0.93);
}

.lexi-backdrop.artifacts-page .artifact-card--pubg {
  --artifact-accent: #d0a864;
  --artifact-tint-a: rgba(251, 241, 220, 0.95);
  --artifact-tint-b: rgba(239, 228, 250, 0.91);
}

.lexi-backdrop.artifacts-page .artifact-sigil,
.lexi-backdrop.artifacts-page .artifact-sigil.image-sigil {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 0 0 2px var(--artifact-accent), 0 11px 24px rgba(68, 78, 139, 0.15);
}

.lexi-backdrop.artifacts-page .artifact-sigil.image-sigil img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 5px;
  object-fit: contain;
  box-sizing: border-box;
}

.lexi-backdrop.artifacts-page .artifact-card--randomizer .artifact-sigil {
  width: 148px;
  height: 84px;
  background: #171422;
}

.lexi-backdrop.artifacts-page .artifact-card--randomizer .artifact-sigil img {
  padding: 7px;
}

.lexi-backdrop.artifacts-page .artifact-card--pubg .artifact-sigil {
  width: 112px;
  height: 68px;
  background: #22233a;
}

.lexi-backdrop.artifacts-page .artifact-card--pubg .artifact-sigil img {
  padding: 0;
  object-fit: cover;
}

.lexi-backdrop.artifacts-page .artifact-action {
  position: static;
  display: inline-flex;
  grid-column: 2;
  grid-row: 3;
  align-items: center;
  justify-content: center;
  justify-self: start;
  align-self: end;
  min-height: 40px;
  margin-top: 7px;
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(105deg, #6977c2, #758fd3 58%, #77a9d0);
  box-shadow: 0 0 0 1px var(--lx-v3-line), 0 10px 22px rgba(76, 89, 157, 0.18);
  font-size: 0.85rem;
  font-weight: 900;
  white-space: nowrap;
}

.lexi-backdrop.artifacts-page .artifact-action::after {
  content: " ↗";
  margin-left: 5px;
  font-size: 0.78em;
}

.lexi-backdrop.artifacts-page .site-footer {
  width: min(1360px, calc(100% - 40px));
  border-top-color: var(--lx-v3-line-soft);
}

@media (max-width: 1179px) {
  .lexi-backdrop.artifacts-page .artifacts-hero {
    align-items: center;
    gap: 28px;
    min-height: 248px;
    margin: 28px 0 26px;
    padding: 32px;
  }

  .lexi-backdrop.artifacts-page .artifacts-hero-copy {
    padding: 24px;
  }

  .lexi-backdrop.artifacts-page .artifacts-hero h1 {
    margin: 10px 0 13px;
    font-size: clamp(2.7rem, 5.4vw, 3.8rem);
  }

  .lexi-backdrop.artifacts-page .artifacts-live-link {
    align-self: center;
  }

  .lexi-backdrop.artifacts-page .artifacts-hero::after {
    right: 178px;
    opacity: 0.58;
  }

  .lexi-backdrop.artifacts-page .artifact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lexi-backdrop.artifacts-page .featured-artifact {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 230px;
  }

  .lexi-backdrop.artifacts-page .artifact-card--gallery,
  .lexi-backdrop.artifacts-page .artifact-card--tricks,
  .lexi-backdrop.artifacts-page .artifact-card--warships,
  .lexi-backdrop.artifacts-page .artifact-card--pubg {
    grid-column: auto;
  }

  .lexi-backdrop.artifacts-page .artifact-card {
    grid-template-columns: 70px minmax(0, 1fr);
    min-height: 210px;
    padding: 22px;
    gap: 11px 16px;
  }

  .lexi-backdrop.artifacts-page .artifact-card--randomizer {
    grid-template-columns: 148px minmax(0, 1fr);
  }

  .lexi-backdrop.artifacts-page .artifact-card--pubg {
    grid-template-columns: 112px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .lexi-backdrop.artifacts-page .artifacts-shell,
  .lexi-backdrop.artifacts-page .site-footer {
    width: min(100% - 24px, 1360px);
  }

  .lexi-backdrop.artifacts-page .artifacts-hero {
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: 0;
    margin: 28px 0 30px;
    padding: 26px 20px;
    border-radius: 26px;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.86), 0 0 0 5px var(--lx-v3-line-soft), 0 18px 40px var(--lx-v3-shadow);
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(236, 235, 255, 0.74)),
      url("backdrop/illustrated/moonlit-lake-v3.webp") center / cover no-repeat;
  }

  .lexi-backdrop.artifacts-page .artifacts-hero::after {
    top: -44px;
    right: 14px;
    width: 70px;
    height: 226px;
    opacity: 0.38;
  }

  .lexi-backdrop.artifacts-page .artifacts-hero-copy {
    padding: 20px;
    border-radius: 22px;
  }

  .lexi-backdrop.artifacts-page .artifacts-hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.3rem);
  }

  .lexi-backdrop.artifacts-page .artifacts-live-link {
    width: 100%;
  }

  .lexi-backdrop.artifacts-page .artifact-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .lexi-backdrop.artifacts-page .featured-artifact,
  .lexi-backdrop.artifacts-page .artifact-card--gallery,
  .lexi-backdrop.artifacts-page .artifact-card--tricks,
  .lexi-backdrop.artifacts-page .artifact-card--warships,
  .lexi-backdrop.artifacts-page .artifact-card--pubg {
    grid-column: 1;
    grid-row: auto;
    min-height: 0;
  }

  .lexi-backdrop.artifacts-page .artifact-card {
    padding: 22px;
    border-radius: 23px;
  }

  .lexi-backdrop.artifacts-page .featured-artifact {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .lexi-backdrop.artifacts-page .artifact-card,
  .lexi-backdrop.artifacts-page .artifact-card--randomizer,
  .lexi-backdrop.artifacts-page .artifact-card--pubg {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .lexi-backdrop.artifacts-page .artifact-card > .artifact-sigil,
  .lexi-backdrop.artifacts-page .artifact-card > div,
  .lexi-backdrop.artifacts-page .artifact-action {
    grid-column: 1;
    grid-row: auto;
  }

  .lexi-backdrop.artifacts-page .artifact-card--randomizer .artifact-sigil {
    width: min(148px, 100%);
  }

  .lexi-backdrop.artifacts-page .artifact-action {
    width: 100%;
  }

  .lexi-backdrop.artifacts-page .artifacts-hero::after {
    opacity: 0.24;
  }
}

/* A calmer desktop catalogue: keep every artifact easy to scan without one
   card overwhelming the rest of the collection. */
@media (min-width: 1180px) {
  .lexi-backdrop.artifacts-page .artifacts-shell,
  .lexi-backdrop.artifacts-page .site-footer {
    width: min(1420px, calc(100% - 48px));
  }

  .lexi-backdrop.artifacts-page .artifacts-shell {
    margin-bottom: 42px;
  }

  .lexi-backdrop.artifacts-page .artifacts-hero {
    align-items: center;
    gap: 32px;
    min-height: 230px;
    margin: 28px 0 24px;
    padding: 30px 38px;
    border-radius: 29px;
  }

  .lexi-backdrop.artifacts-page .artifacts-hero::after {
    top: -82px;
    right: clamp(170px, 18vw, 260px);
    height: 304px;
  }

  .lexi-backdrop.artifacts-page .artifacts-hero-copy {
    max-width: 660px;
    padding: 20px 24px;
    border-radius: 23px;
  }

  .lexi-backdrop.artifacts-page .artifacts-hero h1 {
    margin: 10px 0 11px;
    font-size: clamp(3rem, 4.2vw, 4.15rem);
    line-height: 0.98;
  }

  .lexi-backdrop.artifacts-page .artifacts-hero .lede {
    font-size: 1rem;
    line-height: 1.5;
  }

  .lexi-backdrop.artifacts-page .artifacts-live-link {
    align-self: center;
  }

  .lexi-backdrop.artifacts-page .artifact-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-flow: row;
    gap: 18px;
    align-items: stretch;
  }

  .lexi-backdrop.artifacts-page .artifact-card,
  .lexi-backdrop.artifacts-page .featured-artifact,
  .lexi-backdrop.artifacts-page .artifact-card--gallery,
  .lexi-backdrop.artifacts-page .artifact-card--tricks {
    grid-column: span 2;
    grid-row: auto;
    grid-template-columns: 64px minmax(0, 1fr);
    min-height: 218px;
    padding: 21px;
    gap: 10px 15px;
    border-radius: 23px;
  }

  .lexi-backdrop.artifacts-page .artifact-card--warships,
  .lexi-backdrop.artifacts-page .artifact-card--pubg {
    grid-column: span 3;
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .lexi-backdrop.artifacts-page .featured-artifact {
    align-content: stretch;
    background:
      linear-gradient(116deg, rgba(255, 255, 255, 0.97) 0 48%, rgba(245, 239, 252, 0.8) 70%, rgba(201, 224, 251, 0.3) 100%),
      url("backdrop/illustrated/moonlit-lake-v3.webp") 62% 52% / cover no-repeat;
  }

  .lexi-backdrop.artifacts-page .artifact-card h2,
  .lexi-backdrop.artifacts-page .featured-artifact h2 {
    max-width: none;
    margin: 3px 0 8px;
    font-size: clamp(1.25rem, 1.55vw, 1.62rem);
    line-height: 1.12;
  }

  .lexi-backdrop.artifacts-page .artifact-card p:not(.eyebrow) {
    font-size: 0.9rem;
    line-height: 1.42;
  }

  .lexi-backdrop.artifacts-page .artifact-card .eyebrow {
    margin-bottom: 7px;
    font-size: 0.68rem;
  }

  .lexi-backdrop.artifacts-page .artifact-sigil,
  .lexi-backdrop.artifacts-page .artifact-sigil.image-sigil {
    width: 62px;
    height: 62px;
    border-radius: 16px;
  }

  .lexi-backdrop.artifacts-page .artifact-card--randomizer .artifact-sigil {
    width: 104px;
    height: 62px;
  }

  .lexi-backdrop.artifacts-page .artifact-card--randomizer {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .lexi-backdrop.artifacts-page .artifact-card--pubg .artifact-sigil {
    width: 82px;
    height: 56px;
  }

  .lexi-backdrop.artifacts-page .artifact-action {
    min-height: 36px;
    margin-top: 3px;
    padding: 7px 13px;
    font-size: 0.79rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lexi-backdrop.artifacts-page .artifact-card {
    transition: none;
  }

  .lexi-backdrop.artifacts-page .artifact-card:hover {
    transform: none;
  }
}

@media (prefers-contrast: more) {
  .lexi-backdrop.artifacts-page .artifacts-hero::before,
  .lexi-backdrop.artifacts-page .artifacts-hero::after,
  .lexi-backdrop.artifacts-page .artifact-card::before {
    opacity: 0.08;
  }

  .lexi-backdrop.artifacts-page .artifacts-hero,
  .lexi-backdrop.artifacts-page .artifacts-hero-copy,
  .lexi-backdrop.artifacts-page .artifact-card {
    background-color: #fff;
  }
}

@media print {
  .lexi-backdrop.artifacts-page .artifacts-hero,
  .lexi-backdrop.artifacts-page .artifact-card {
    box-shadow: none;
  }

  .lexi-backdrop.artifacts-page .artifacts-hero::before,
  .lexi-backdrop.artifacts-page .artifacts-hero::after,
  .lexi-backdrop.artifacts-page .artifact-card::before {
    display: none;
  }
}
