/* Fine surface finish; preserve the original midnight-blue palette. */
.enriched {
  position: relative;
  isolation: isolate;
  background: radial-gradient(ellipse at 18% 26%, #00000026, transparent 42%), radial-gradient(ellipse at 82% 58%, #0000001c, transparent 44%), linear-gradient(145deg, #0b1922, #08131b 58%, #07121a);
}
.enriched::before {
  content: '';
  position: absolute;
  inset: 500px 0 0;
  z-index: -1;
  pointer-events: none;
  background: url('assets/grain-fin-v7.svg') 0 0 / 160px 160px repeat;
  mix-blend-mode: soft-light;
  mask-image: linear-gradient(transparent, #000 220px, #000 calc(100% - 120px), transparent);
}
/* Crop the upper-left branches of the actual game capture before filtering. */
.forest-shadows {
  position: absolute;
  inset: 640px 0 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.surface-filter-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.forest-shadow {
  position: absolute;
  width: 620px;
  aspect-ratio: 820 / 600;
  overflow: hidden;
  opacity: .05;
  mask-image: radial-gradient(ellipse at 35% 32%, #000 12%, transparent 74%);
}
.forest-shadow > img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 312.073%;
  max-width: none;
  height: auto;
}
.forest-shadow-left { top: 40px; left: -150px; transform: rotate(-12deg); }
.forest-shadow-right { top: 880px; right: -160px; width: 580px; transform: scaleX(-1) rotate(12deg); }
.forest-shadow-lower { top: 2400px; left: -130px; width: 540px; transform: rotate(17deg); }
.pack-body {
  background: url('assets/grain-fin-v7.svg') 0 0 / 160px 160px repeat, radial-gradient(ellipse at 78% 42%, #0000001c, transparent 68%), linear-gradient(145deg, #1b2c37, #11212c 38%, #0b1923);
}
.featured .pack-body {
  background: url('assets/grain-fin-v7.svg') 0 0 / 160px 160px repeat, radial-gradient(ellipse at 45% 15%, #d8c3930b, transparent 60%), linear-gradient(145deg, #20313c, #122530 55%, #0c1c27);
}

/* Keep the fine frames already created for the two horizontal panels. */
.rich-credit, .rich-pack-intro {
  position: relative;
  isolation: isolate;
  border: 0;
  background: none;
}
.rich-credit::before, .rich-pack-intro::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
}
.rich-credit::after, .rich-pack-intro::after {
  content: '';
  position: absolute;
  /* Account for the source's transparent margins and keep all four rails inside the fill. */
  inset: -17px 3px;
  pointer-events: none;
  border: solid transparent;
  border-width: 30px 16px;
  border-image-source: url('assets/cadre-cartouche-encre-v6.png');
  border-image-slice: 40% 12%;
  border-image-width: 30px 16px;
  border-image-repeat: stretch;
  opacity: .65;
}
.rich-credit { padding: 18px; gap: 13px; justify-content: center; container-type: inline-size; }
.rich-credit::before {
  background: url('assets/grain-fin-v7.svg') 0 0 / 160px 160px repeat, radial-gradient(ellipse at 10% 50%, #e3d3ad12, transparent 68%), linear-gradient(115deg, #24323c, #12222d);
}
.tier-1 .rich-credit::after { opacity: .7; }
.tier-2 .rich-credit::after { opacity: .95; }
.tier-2 .rich-credit::before {
  background: url('assets/grain-fin-v7.svg') 0 0 / 160px 160px repeat, radial-gradient(ellipse at 10% 50%, #e3d3ad1b, transparent 72%), linear-gradient(115deg, #293945, #172935);
}
.rich-pack-intro { min-height: 64px; padding: 20px 24px; }
.rich-pack-intro::before {
  background: url('assets/grain-fin-v7.svg') 0 0 / 160px 160px repeat, radial-gradient(ellipse at 72% 50%, #00000024, transparent 60%), linear-gradient(100deg, #1c2b35, #0d1a24 75%);
}
.rich-pack-intro::after { opacity: .45; }
@media (min-width:901px) and (max-width:1150px) {
  .rich-credit { gap: 7px; padding: 14px 9px; }
}
@media (max-width:620px) {
  .forest-shadow { width: 480px; opacity: .035; }
  .forest-shadow-left { top: 120px; left: -220px; }
  .forest-shadow-right { top: 1500px; right: -220px; }
  .forest-shadow-lower { top: 2800px; left: -220px; }
  .rich-pack-intro { padding: 18px; }
  .rich-credit { padding: 18px 13px; }
}
@media (max-width:380px) {
  .rich-credit { gap: 8px; padding: 18px 10px; }
}
