/* Transparent journal cutouts: keep the object, remove the source UI/card. */
.role-grid .role-cutout {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 12px;
  object-fit: contain;
  object-position: center;
  border: 0;
  background: none;
  box-shadow: none;
}

.role-grid .role-messenger {
  transform: scale(1.22);
}

.role-grid .role-protagonist {
  transform: scale(1.28);
}

.role-grid .role-wise {
  transform: scale(1.4);
}

.role-grid .role-hero {
  transform: scale(.92);
}

.alert-number {
  color: #d86757;
  font-weight: 700;
  text-shadow: 0 0 14px #b5272440;
}

.story > p:not(.chapter):not(.aside) {
  text-align: center;
}

.achievement > p:not(.chapter) {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.relic-counts {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.matte-cutout {
  mix-blend-mode: screen;
  filter: none !important;
}

.weapon-stats.asset-row {
  gap: clamp(16px, 4vw, 42px);
  align-items: stretch;
}

.weapon-stats.asset-row span {
  display: grid;
  grid-template-rows: minmax(148px, 1fr) auto auto;
  align-items: end;
  gap: 7px;
}

.weapon-stats.asset-row img {
  width: 100%;
  height: 178px;
  aspect-ratio: auto;
  object-fit: contain;
  border: 0;
  background: none;
  box-shadow: none;
  filter: drop-shadow(0 12px 14px #000a);
}

.relic-counts .zero img {
  width: min(230px, 27vw);
  height: 178px;
  object-fit: contain;
  border: 0;
  background: none;
  box-shadow: none;
  filter: drop-shadow(0 12px 14px #0009);
}

.trophies .trophy-cutout {
  display: grid;
  grid-template-rows: auto auto 142px;
  align-items: start;
  gap: 3px;
}

.trophies .trophy-cutout b {
  font: inherit;
  line-height: 1;
}

.trophies .trophy-pyramid,
.trophies .trophy-single {
  display: grid;
  place-items: center;
  width: 100%;
  height: 142px;
  margin: 0;
  padding: 0;
  align-self: end;
  border: 0;
  color: inherit;
  font: inherit;
}

.trophies .trophy-pyramid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, 68px);
}

.trophies .trophy-single img {
  width: 108px;
  height: 132px;
  margin: 0;
  object-fit: contain;
  border: 0;
  background: none;
  box-shadow: none;
}

.trophies .trophy-cutout .trophy-pyramid img {
  width: 72px;
  height: 72px;
  margin: 0;
  object-fit: contain;
  border: 0;
  background: none;
  box-shadow: none;
  filter: drop-shadow(0 9px 12px #000a);
}

.trophy-pyramid img:first-child {
  grid-column: 1 / -1;
  grid-row: 1;
}

.trophy-pyramid img:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}

.trophy-pyramid img:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

.trophies > .trophy-cutout:nth-child(3) .trophy-pyramid img:nth-child(3) {
  transform: translateX(-6px);
}

.necklace,
.combat {
  isolation: isolate;
  overflow: hidden;
}

.necklace > :not(.necklace-bg),
.combat > :not(.guard-bg) {
  position: relative;
  z-index: 1;
}

.necklace-bg {
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: -32px;
  width: min(330px, 44vw);
  height: 300px;
  object-fit: contain;
  opacity: .17;
  transform: translateX(-50%);
  filter: sepia(.32) saturate(.75) drop-shadow(0 0 22px #91dfff55);
  pointer-events: none;
}

.guard-bg {
  position: absolute;
  z-index: 0;
  top: 105px;
  right: -7%;
  width: min(380px, 48vw);
  height: 390px;
  object-fit: contain;
  opacity: .15;
  filter: grayscale(.55) sepia(.42) contrast(1.1);
  pointer-events: none;
}

.guard-bg.matte-cutout {
  filter: grayscale(.55) sepia(.42) contrast(1.1) !important;
}

@media (max-width: 600px) {
  .role-grid .role-cutout {
    width: 76px;
    height: 76px;
  }

  .weapon-stats.asset-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .weapon-stats.asset-row span {
    grid-template-rows: 104px auto auto;
    gap: 4px;
    font-size: .73rem;
    line-height: 1.35;
  }

  .weapon-stats.asset-row img {
    height: 102px;
  }

  .relic-counts .zero img {
    width: 100%;
    height: 122px;
  }

  .relic-counts {
    justify-items: center;
  }

  .trophies .trophy-cutout {
    grid-template-rows: auto auto 122px;
  }

  .trophies .trophy-pyramid {
    grid-template-rows: repeat(2, 58px);
    height: 122px;
  }

  .trophies .trophy-single {
    height: 122px;
  }

  .trophies .trophy-single img {
    width: 92px;
    height: 114px;
  }

  .trophies .trophy-cutout .trophy-pyramid img {
    width: 61px;
    height: 61px;
  }

  .necklace-bg {
    bottom: -30px;
    width: 230px;
    height: 228px;
  }

  .guard-bg {
    top: 118px;
    right: -28%;
    width: 315px;
    height: 330px;
    opacity: .13;
  }

  .final-numbers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .final-numbers span {
    padding: 14px 3px;
    font-size: 1.45rem;
  }

  .final-numbers small {
    font-size: .62rem;
    letter-spacing: .04em;
  }
}
