/* BIG3 Honor Archive: black obsidian, aged metal and open museum records. */
.page-player .p-honor-archive {
  --honor-bg: #050506;
  --honor-obsidian: #09090a;
  --honor-graphite: #18191b;
  --honor-steel: #a5a7a8;
  --honor-gold: #b38b46;
  --honor-gold-bright: #d5bd88;
  --honor-text: #e8e5de;
  --honor-muted: #8a8882;
  --honor-line: rgba(224, 222, 216, .12);
  --honor-metal-line: rgba(179, 139, 70, .24);
  padding: 0 0 76px;
  color: var(--honor-text);
  color-scheme: dark;
  background: linear-gradient(180deg, #050506 0%, #080809 58%, #050506 100%);
}

.page-player .p-honor-archive * { letter-spacing: 0; }

.page-player .p-honor-archive > .container {
  width: min(1520px, 100%);
  max-width: 1520px;
}

.p-honor-stage {
  position: relative;
  width: 100%;
  height: clamp(520px, 40vw, 560px);
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background-color: var(--honor-bg);
  background-position: center 53%;
  background-size: cover;
  box-shadow:
    inset 0 -72px 96px rgba(0, 0, 0, .36),
    0 24px 54px rgba(0, 0, 0, .28);
}

.p-honor-stage::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(106deg, rgba(0, 0, 0, .48) 0%, transparent 24%, transparent 70%, rgba(0, 0, 0, .4) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .2) 0%, transparent 24%, transparent 67%, rgba(0, 0, 0, .5) 100%);
}

.p-honor-stage::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: -12% -20%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(108deg, transparent 39%, rgba(244, 231, 202, .055) 48%, transparent 57%);
  transform: translateX(-46%);
  animation: honor-stage-sheen 18s ease-in-out infinite;
}

@keyframes honor-stage-sheen {
  0%, 68%, 100% { opacity: 0; transform: translateX(-46%); }
  76% { opacity: .5; }
  91% { opacity: 0; transform: translateX(46%); }
}

#player-honor-canvas {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
  outline: none;
}

#player-honor-canvas:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(213, 189, 136, .72);
}

.p-honor-stage.is-dragging #player-honor-canvas { cursor: grabbing; }

.p-honor-archive-head {
  position: absolute;
  z-index: 5;
  top: 42px;
  left: 50%;
  display: flex;
  width: min(680px, calc(100% - 340px));
  flex-direction: column;
  align-items: center;
  color: var(--honor-text);
  text-align: center;
  text-shadow: 0 2px 16px #000;
  transform: translateX(-50%);
  pointer-events: none;
}

.p-honor-archive-head > img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  opacity: .88;
  filter: saturate(.72) drop-shadow(0 10px 18px rgba(0, 0, 0, .52));
}

.p-honor-archive-kicker {
  margin-top: 3px;
  color: rgba(213, 189, 136, .7);
  font: 600 9px/1.4 var(--font-mono);
}

.p-honor-archive-head h2,
.p-story-archive-head h3 {
  margin: 2px 0 0;
  color: #ece9e2;
  font-family: var(--font-display);
  font-weight: 900;
}

.p-honor-archive-head h2 { font-size: 28px; }

.p-honor-archive-head p {
  margin: 3px 0 0;
  color: rgba(232, 229, 221, .46);
  font-size: 10px;
}

.p-honor-inventory {
  position: absolute;
  z-index: 6;
  top: 38px;
  left: 24px;
  max-width: 240px;
  padding: 1px 0 1px 11px;
  overflow: hidden;
  border-left: 1px solid var(--honor-metal-line);
  color: rgba(224, 220, 211, .55);
  font: 500 9px/1.55 var(--font-mono);
  text-overflow: ellipsis;
  text-shadow: 0 2px 12px #000;
  white-space: nowrap;
}

.p-honor-stage-loading {
  position: absolute;
  z-index: 6;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(224, 220, 211, .58);
  font: 500 10px/1.6 var(--font-mono);
  text-align: center;
  text-shadow: 0 2px 14px #000;
  pointer-events: none;
}

.p-honor-stage-loading[hidden] { display: none; }

.p-honor-stage-loading img {
  width: 62px;
  opacity: .56;
  filter: saturate(.6);
}

.p-honor-stage-loading strong {
  color: #e6e1d7;
  font: 800 22px/1.1 var(--font-display);
}

.p-honor-stage-loading span {
  max-width: 360px;
  color: rgba(229, 226, 218, .5);
  font: 400 11px/1.7 var(--font-body);
}

.p-honor-motion {
  position: absolute;
  z-index: 7;
  top: 18px;
  right: 22px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(192, 194, 193, .3);
  border-radius: 50%;
  background: rgba(6, 6, 7, .58);
  color: rgba(223, 220, 211, .68);
  font: 700 11px/1 var(--font-mono);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.p-honor-motion:hover,
.p-honor-motion:focus-visible {
  border-color: rgba(213, 189, 136, .68);
  background: rgba(9, 9, 10, .82);
  color: var(--honor-gold-bright);
  outline: none;
}

.p-honor-slide {
  position: absolute;
  z-index: 7;
  top: 52%;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(213, 189, 136, .28);
  border-radius: 50%;
  background: rgba(5, 5, 6, .7);
  color: rgba(235, 229, 216, .74);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
  transition: border-color .2s ease, color .2s ease, background-color .2s ease, opacity .2s ease;
}

.p-honor-slide.is-prev { left: 18px; }
.p-honor-slide.is-next { right: 18px; }

.p-honor-slide:hover,
.p-honor-slide:focus-visible {
  border-color: rgba(222, 195, 137, .72);
  background: rgba(10, 9, 8, .9);
  color: #f0dbad;
  outline: none;
}

.p-honor-slide:disabled {
  opacity: .22;
  cursor: default;
}

.p-honor-slide span { font: 500 17px/1 var(--font-body); }

.p-honor-window {
  position: absolute;
  z-index: 6;
  top: 86px;
  right: 24px;
  color: rgba(224, 220, 211, .4);
  font: 500 7px/1.4 var(--font-mono);
  text-shadow: 0 2px 12px #000;
}

.p-honor-stage[data-honor-empty="true"] .p-honor-slide,
.p-honor-stage[data-honor-empty="true"] .p-honor-window { display: none; }

.p-honor-selector {
  position: absolute;
  z-index: 6;
  right: 52px;
  bottom: 24px;
  left: 52px;
  display: flex;
  justify-content: center;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  pointer-events: auto;
}

.p-honor-selector::-webkit-scrollbar { display: none; }

.p-honor-select {
  position: relative;
  display: grid;
  grid-template-rows: 11px auto;
  gap: 4px;
  align-items: start;
  flex: 0 1 190px;
  min-width: 132px;
  padding: 7px 9px 8px;
  border: 0;
  background: transparent;
  color: rgba(226, 223, 215, .4);
  text-align: center;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease;
}

.p-honor-select::before {
  content: "";
  position: absolute;
  top: 11px;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(218, 216, 210, .14);
}

.p-honor-select:first-child::before { left: 50%; }
.p-honor-select:last-child::before { right: 50%; }

.p-honor-select:hover { color: rgba(240, 237, 230, .76); }

.p-honor-select:focus-visible {
  outline: 1px solid rgba(213, 189, 136, .46);
  outline-offset: -1px;
}

.p-honor-select.is-active {
  color: #ece8df;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .025));
}

.p-honor-select-dot {
  position: relative;
  z-index: 1;
  width: 7px;
  height: 7px;
  margin: 0 auto;
  border: 1px solid rgba(190, 191, 188, .55);
  border-radius: 50%;
  background: #080809;
  box-shadow: 0 0 0 2px #080809;
}

.p-honor-select.is-active .p-honor-select-dot {
  border-color: #d5bd88;
  background: #c29b54;
  box-shadow: 0 0 0 2px #080809, 0 0 12px rgba(194, 155, 84, .34);
}

.p-honor-select-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.p-honor-select-copy strong {
  overflow: hidden;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p-honor-select-copy small {
  overflow: hidden;
  color: rgba(218, 216, 209, .3);
  font: 500 7px/1.35 var(--font-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p-honor-drag-cue {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 7px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(224, 220, 211, .4);
  font: 500 8px/1 var(--font-mono);
  text-shadow: 0 2px 10px #000;
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
}

.p-honor-drag-cue span {
  color: rgba(213, 189, 136, .72);
  font-size: 12px;
}

.p-honor-detail {
  display: grid;
  grid-template-columns: 46px minmax(220px, 1.1fr) minmax(340px, .95fr) minmax(240px, 1fr) auto;
  gap: 20px;
  align-items: center;
  min-height: 106px;
  margin: 0 46px;
  padding: 18px 0;
  border-bottom: 1px solid var(--honor-line);
  background: transparent;
}

.p-honor-detail-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(177, 179, 180, .25);
  border-radius: 50%;
  background: #080809;
  box-shadow: inset 0 0 18px rgba(255, 255, 255, .025);
}

.p-honor-detail-mark img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  opacity: .82;
  filter: saturate(.65);
}

.p-honor-detail-kicker {
  color: rgba(213, 189, 136, .62);
  font: 500 8px/1.4 var(--font-mono);
}

.p-honor-detail-main h3 {
  margin: 3px 0 0;
  color: #efebe3;
  font: 900 21px/1.1 var(--font-display);
}

.p-honor-detail-main p {
  margin: 4px 0 0;
  color: rgba(226, 223, 215, .45);
  font-size: 11px;
}

.p-honor-detail-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(66px, 1fr));
  gap: 0;
  margin: 0;
}

.p-honor-detail-facts > div {
  min-width: 0;
  padding: 0 11px;
  border-left: 1px solid var(--honor-line);
}

.p-honor-detail-facts dt,
.p-honor-detail-roster span {
  color: rgba(214, 212, 205, .35);
  font: 500 7px/1.4 var(--font-mono);
}

.p-honor-detail-facts dd {
  overflow: hidden;
  margin: 4px 0 0;
  color: #ddd9d0;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p-honor-detail-roster {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.p-honor-detail-roster strong {
  overflow: hidden;
  color: rgba(235, 231, 222, .66);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.55;
  text-overflow: ellipsis;
}

.p-honor-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 0 8px 15px;
  border-left: 1px solid var(--honor-line);
  color: var(--honor-gold-bright);
  font: 600 9px/1 var(--font-mono);
  white-space: nowrap;
}

.p-honor-detail-link span { transition: transform .2s ease; }
.p-honor-detail-link:hover { color: #ead7ac; }
.p-honor-detail-link:hover span { transform: translateX(3px); }

.p-honor-empty-line {
  grid-column: 1 / -1;
  color: rgba(225, 221, 212, .46);
  font-size: 12px;
  text-align: center;
}

.p-story-archive {
  position: relative;
  margin: 48px 46px 0;
  padding-top: 24px;
  border-top: 1px solid var(--honor-line);
}

.p-story-archive[hidden] { display: none; }

.p-story-archive-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.p-story-archive-head h3 { font-size: 27px; }

.p-story-archive-head p {
  margin: 0;
  max-width: 400px;
  color: rgba(225, 222, 214, .42);
  font-size: 10px;
  line-height: 1.65;
  text-align: right;
}

.p-story-archive-layout {
  display: grid;
  gap: 14px;
}

.p-story-badge-rail {
  display: flex;
  min-width: 0;
  align-items: start;
  justify-content: center;
  gap: clamp(12px, 2.2vw, 34px);
  overflow-x: auto;
  padding: 22px 12px 17px;
  border-top: 1px solid rgba(224, 222, 216, .09);
  border-bottom: 1px solid rgba(224, 222, 216, .09);
  background: linear-gradient(180deg, rgba(255, 255, 255, .018), transparent 72%);
  scrollbar-width: none;
}

.p-story-badge-rail.is-contained { justify-content: center; }

.p-story-badge-rail::-webkit-scrollbar { display: none; }

.p-story-medal {
  position: relative;
  flex: 0 0 86px;
  min-width: 0;
  min-height: 112px;
  padding: 1px 2px 5px;
  border: 0;
  background: transparent;
  color: rgba(226, 223, 215, .5);
  cursor: pointer;
  perspective: 780px;
  transition: color .2s ease, transform .26s ease, filter .26s ease;
}

.p-story-medal::after {
  content: "";
  position: absolute;
  top: 68px;
  left: 50%;
  width: 48px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, .62), transparent 72%);
  opacity: .64;
  transform: translateX(-50%);
  transition: opacity .24s ease, transform .24s ease;
}

.p-story-medal:hover {
  color: rgba(239, 235, 227, .82);
  transform: translateY(-2px);
}

.p-story-medal:hover::after,
.p-story-medal.is-active::after {
  opacity: .9;
  transform: translateX(-50%) scale(1.08);
}

.p-story-medal.is-active {
  color: #ece7dc;
  filter: drop-shadow(0 10px 13px rgba(0, 0, 0, .42));
  transform: translateY(-4px);
}

.p-story-medal:focus-visible {
  outline: 1px solid rgba(213, 189, 136, .62);
  outline-offset: 3px;
}

.p-story-medal-visual {
  position: relative;
  z-index: 1;
  display: block;
  width: 84px;
  height: 84px;
  margin: 0 auto 1px;
}

.p-story-medal-visual::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 8px;
  left: 50%;
  width: 56px;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 42%, rgba(203, 168, 98, .045) 62%, transparent 72%);
  box-shadow: 0 0 14px rgba(0, 0, 0, .42);
  transform: translateX(-50%);
  transition: opacity .24s ease, box-shadow .24s ease;
  pointer-events: none;
}

.p-story-medal.is-active .p-story-medal-visual::after {
  box-shadow: 0 0 22px rgba(179, 139, 70, .16);
}

.p-story-medal-inner {
  position: absolute;
  inset: 0;
  display: block;
  transform-origin: 50% 42%;
  transform-style: preserve-3d;
  transition: transform .62s cubic-bezier(.2, .72, .2, 1);
}

.p-story-medal.is-flipped .p-story-medal-inner { transform: rotateY(180deg); }

.p-story-medal-face {
  position: absolute;
  inset: 0;
  display: block;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.p-story-medal-face::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 10px;
  border-radius: 50%;
  opacity: .32;
  background: linear-gradient(112deg, transparent 34%, rgba(255, 255, 255, .13) 47%, transparent 59%);
  clip-path: circle(42% at 50% 50%);
  pointer-events: none;
}

.p-story-medal.is-skill .p-story-medal-face::after {
  border-radius: 0;
  clip-path: polygon(29% 5%, 71% 5%, 95% 29%, 95% 71%, 71% 95%, 29% 95%, 5% 71%, 5% 29%);
}

.p-story-medal.is-advanced .p-story-medal-face::after {
  inset: 12px 15px 9px;
  border-radius: 0;
  clip-path: polygon(50% 0, 95% 14%, 88% 58%, 50% 100%, 12% 58%, 5% 14%);
}

.p-story-medal-back { transform: rotateY(180deg); }

.p-story-medal-base {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(.72) brightness(.88) contrast(1.08);
  mix-blend-mode: screen;
}

.p-story-medal.is-legacy .p-story-medal-base {
  clip-path: circle(43% at 50% 50%);
}

.p-story-medal.is-skill .p-story-medal-base {
  clip-path: polygon(29% 8%, 71% 8%, 92% 29%, 92% 71%, 71% 92%, 29% 92%, 8% 71%, 8% 29%);
  filter: saturate(.6) brightness(.86) contrast(1.08);
}

.p-story-medal.is-advanced .p-story-medal-base {
  clip-path: polygon(50% 7%, 80% 16%, 83% 34%, 75% 69%, 50% 92%, 25% 69%, 17% 34%, 20% 16%);
  filter: saturate(.48) brightness(.88) contrast(1.08);
  transform: scale(1.04);
}

.p-story-medal-logo,
.p-story-medal-code,
.p-story-medal-tier,
.p-story-medal-back-label,
.p-story-medal-back strong {
  z-index: 2;
}

.p-story-medal-logo {
  position: absolute;
  top: 19px;
  left: 50%;
  width: 17px;
  height: 17px;
  object-fit: contain;
  opacity: .58;
  filter: saturate(.45);
  transform: translateX(-50%);
  mix-blend-mode: screen;
}

.p-story-medal-code {
  position: absolute;
  top: 36px;
  right: 16px;
  left: 16px;
  color: #dac28f;
  font: 900 11px/1 var(--font-display);
  text-align: center;
  text-shadow: 0 2px 7px #000;
}

.p-story-medal.is-advanced .p-story-medal-code { color: #d3d5d4; }

.p-story-medal-tier {
  position: absolute;
  top: 50px;
  right: 17px;
  left: 17px;
  color: rgba(222, 214, 197, .46);
  font: 600 5px/1 var(--font-mono);
  text-align: center;
}

.p-story-medal.is-level-1 .p-story-medal-tier { color: rgba(213, 207, 194, .4); }
.p-story-medal.is-level-2 .p-story-medal-tier { color: rgba(220, 201, 159, .62); }
.p-story-medal.is-level-3 .p-story-medal-tier { color: #d7b977; text-shadow: 0 0 8px rgba(190, 145, 64, .24); }

.p-story-medal-back-label {
  position: absolute;
  top: 25px;
  right: 16px;
  left: 16px;
  overflow: hidden;
  color: rgba(223, 216, 200, .58);
  font: 600 6px/1.2 var(--font-mono);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p-story-medal-back strong {
  position: absolute;
  top: 39px;
  right: 15px;
  left: 15px;
  color: #e1d2b0;
  font: 800 10px/1.15 var(--font-display);
  text-align: center;
}

.p-story-medal > strong {
  position: relative;
  z-index: 2;
  display: block;
  overflow: hidden;
  color: currentColor;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p-story-medal > small {
  position: relative;
  z-index: 2;
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: rgba(216, 213, 206, .3);
  font: 500 7px/1.3 var(--font-mono);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p-story-badge-focus { min-height: 0; }

.p-story-record {
  display: grid;
  grid-template-columns: 44px minmax(180px, .95fr) minmax(340px, 1.25fr) auto;
  gap: 17px;
  align-items: center;
  min-height: 76px;
  padding: 14px 4px;
  border-top: 1px solid var(--honor-line);
  border-bottom: 1px solid var(--honor-line);
  background: linear-gradient(90deg, rgba(255, 255, 255, .016), transparent 58%);
  transition: border-color .28s ease, box-shadow .28s ease;
}

.p-story-badge-focus.is-flipped .p-story-record {
  border-color: rgba(213, 189, 136, .22);
  box-shadow: inset 2px 0 rgba(179, 139, 70, .52);
}

.p-story-record-mark {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(179, 181, 181, .22);
  border-radius: 50%;
  background: #080809;
}

.p-story-record-mark img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  opacity: .78;
  filter: saturate(.55);
}

.p-story-record-mark span {
  position: absolute;
  right: -6px;
  bottom: -3px;
  padding: 2px 4px;
  background: #070708;
  color: rgba(213, 189, 136, .8);
  font: 700 6px/1 var(--font-mono);
}

.p-story-record-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.p-story-record-kicker {
  color: rgba(213, 189, 136, .56);
  font: 500 7px/1.3 var(--font-mono);
}

.p-story-record-copy > strong {
  color: #ebe6dc;
  font: 900 16px/1.15 var(--font-display);
}

.p-story-record-copy > small {
  overflow: hidden;
  color: rgba(224, 220, 212, .42);
  font-size: 9px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p-story-record dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(88px, 1fr));
  margin: 0;
}

.p-story-record dl > div {
  min-width: 0;
  padding: 0 12px;
  border-left: 1px solid var(--honor-line);
}

.p-story-record dt {
  color: rgba(214, 212, 205, .34);
  font: 500 7px/1.35 var(--font-mono);
}

.p-story-record dd {
  overflow: hidden;
  margin: 4px 0 0;
  color: #dcd8cf;
  font-size: 9px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p-story-record a {
  color: var(--honor-gold-bright);
  font: 600 8px/1 var(--font-mono);
  white-space: nowrap;
}

.p-story-record a span {
  display: inline-block;
  margin-left: 6px;
  transition: transform .2s ease;
}

.p-story-record a:hover span { transform: translateX(3px); }

@media (max-width: 1180px) {
  .p-honor-detail {
    grid-template-columns: 44px minmax(200px, 1fr) minmax(310px, 1fr) auto;
    margin-inline: 28px;
  }

  .p-honor-detail-roster { grid-column: 2 / 4; }
  .p-honor-detail-link { grid-column: 4; grid-row: 1 / 3; }
  .p-story-archive { margin-inline: 28px; }

  .p-story-record {
    grid-template-columns: 42px minmax(170px, .8fr) minmax(320px, 1.2fr) auto;
  }
}

@media (max-width: 760px) {
  .page-player .p-tabs-wrap { position: relative; top: auto; z-index: 4; }
  .page-player .p-tabs-row { display: block; }
  .page-player .p-tab { padding: 14px 18px; }
  .page-player .p-platform-pills { margin: 10px 0; }

  .page-player .p-honor-archive { padding-bottom: 52px; }
  .page-player .p-honor-archive > .container { width: 100%; }

  .p-honor-stage {
    height: 500px;
    min-height: 500px;
    background-position: center 52%;
    background-size: auto 100%;
    box-shadow: inset 0 -54px 72px rgba(0, 0, 0, .42);
  }

  .p-honor-stage::before {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, .38), transparent 22%, transparent 78%, rgba(0, 0, 0, .38)),
      linear-gradient(180deg, rgba(0, 0, 0, .24), transparent 26%, transparent 62%, rgba(0, 0, 0, .54));
  }

  .p-honor-archive-head {
    top: 13px;
    width: calc(100% - 112px);
  }

  .p-honor-archive-head > img { width: 40px; height: 40px; }
  .p-honor-archive-head h2 { margin-top: 1px; font-size: 22px; }
  .p-honor-archive-head p { margin-top: 2px; font-size: 8px; }
  .p-honor-archive-kicker { font-size: 7px; }

  .p-honor-inventory {
    top: 14px;
    left: 12px;
    max-width: 96px;
    padding-left: 7px;
    font-size: 6px;
  }

  .p-honor-motion {
    top: 12px;
    right: 11px;
    width: 32px;
    height: 32px;
  }

  .p-honor-selector {
    right: 0;
    bottom: 27px;
    left: 0;
    justify-content: flex-start;
    padding: 0 15px;
    scroll-padding-inline: 15px;
    scroll-snap-type: x proximity;
  }

  .p-honor-select {
    flex: 0 0 132px;
    min-width: 132px;
    padding-inline: 7px;
    scroll-snap-align: center;
  }

  .p-honor-select:first-child::before { left: 0; }
  .p-honor-select:last-child::before { right: 0; }
  .p-honor-select-copy strong { font-size: 9px; }
  .p-honor-select-copy small { font-size: 6px; }
  .p-honor-drag-cue { bottom: 8px; font-size: 7px; }

  .p-honor-detail {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    min-height: 0;
    margin: 0 16px;
    padding: 16px 0;
  }

  .p-honor-detail-mark { width: 38px; height: 38px; }
  .p-honor-detail-mark img { width: 29px; height: 29px; }
  .p-honor-detail-main h3 { font-size: 19px; }

  .p-honor-detail-facts {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 3px;
  }

  .p-honor-detail-facts > div {
    padding: 8px 10px;
    border-top: 1px solid rgba(224, 222, 216, .08);
  }

  .p-honor-detail-facts > div:nth-child(-n + 2) { border-top: 0; }
  .p-honor-detail-facts > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .p-honor-detail-facts dt { font-size: 7px; }
  .p-honor-detail-facts dd { font-size: 9px; }

  .p-honor-detail-roster {
    grid-column: 1 / -1;
    padding-top: 10px;
    border-top: 1px solid rgba(224, 222, 216, .08);
  }

  .p-honor-detail-roster strong { white-space: normal; }

  .p-honor-detail-link {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-content: flex-start;
    padding: 10px 0 0;
    border-top: 1px solid rgba(224, 222, 216, .08);
    border-left: 0;
  }

  .p-story-archive {
    margin: 38px 16px 0;
    padding-top: 20px;
  }

  .p-story-archive-head { display: block; margin-bottom: 15px; }
  .p-story-archive-head h3 { font-size: 23px; }

  .p-story-archive-head p {
    margin-top: 5px;
    font-size: 9px;
    text-align: left;
  }

  .p-story-badge-rail {
    justify-content: flex-start;
    gap: 2px;
    margin-inline: -16px;
    padding: 20px 13px 14px;
    scroll-padding-inline: 13px;
    scroll-snap-type: x proximity;
  }

  .p-story-badge-rail.is-contained { justify-content: flex-start; }

  .p-story-medal {
    flex-basis: 82px;
    min-height: 108px;
    scroll-snap-align: center;
  }

  .p-story-medal-visual { width: 80px; height: 80px; }

  .p-story-medal-visual::after {
    top: 5px;
    width: 57px;
  }

  .p-story-medal.is-active { transform: translateY(-3px); }
  .p-story-medal-logo { top: 18px; }
  .p-story-medal-code { top: 34px; font-size: 10px; }
  .p-story-medal-tier { top: 48px; }
  .p-story-medal-back-label { top: 24px; }
  .p-story-medal-back strong { top: 37px; }

  .p-story-record {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
    min-height: 0;
    padding: 13px 2px 12px;
  }

  .p-story-record-mark { width: 36px; height: 36px; }
  .p-story-record-mark img { width: 27px; height: 27px; }

  .p-story-record-copy > small {
    overflow: visible;
    white-space: normal;
  }

  .p-story-record dl {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: 4px;
  }

  .p-story-record dl > div { padding: 0 8px; }
  .p-story-record dl > div:first-child { padding-left: 0; border-left: 0; }
  .p-story-record dt { font-size: 6px; }
  .p-story-record dd { font-size: 8px; }
  .p-story-record a { grid-column: 1 / -1; justify-self: end; }
}

@media (max-width: 390px) {
  .p-honor-stage { height: 480px; min-height: 480px; }
  .p-honor-archive-head { width: calc(100% - 96px); }
  .p-honor-archive-head h2 { font-size: 20px; }
  .p-honor-archive-head p { max-width: 190px; }
  .p-honor-select { flex-basis: 124px; min-width: 124px; }
  .p-story-medal { flex-basis: 78px; }
  .p-story-medal-visual { width: 76px; height: 76px; }
  .p-story-medal-visual::after { width: 54px; }
  .p-story-medal-logo { top: 17px; width: 16px; height: 16px; }
  .p-story-medal-code { top: 32px; }
  .p-story-medal-tier { top: 45px; }
  .p-story-medal-back-label { top: 22px; }
  .p-story-medal-back strong { top: 35px; font-size: 9px; }
  .p-story-record dl > div { padding-inline: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .p-honor-stage::after { animation: none; opacity: 0; }

  .p-honor-motion,
  .p-honor-select,
  .p-honor-detail-link span,
  .p-story-medal,
  .p-story-medal::after,
  .p-story-medal-visual::after,
  .p-story-medal-inner,
  .p-story-record,
  .p-story-record a span {
    transition-duration: .01ms;
  }

  .p-story-medal:hover,
  .p-story-medal.is-active { transform: none; }
}

/* Honor Archive V3: continuous museum shelf and individually forged story marks. */
.p-story-archive { margin-top: 56px; }

.p-story-archive-head {
  margin-bottom: 14px;
  padding-inline: 2px;
}

.p-story-archive-head h3 { font-size: 29px; }

.p-story-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 40px;
  border-top: 1px solid rgba(229, 226, 218, .08);
}

.p-story-filters {
  display: inline-flex;
  align-items: center;
  border-right: 1px solid rgba(229, 226, 218, .09);
  border-left: 1px solid rgba(229, 226, 218, .09);
}

.p-story-filters button {
  min-width: 64px;
  height: 39px;
  padding: 0 14px;
  border: 0;
  border-right: 1px solid rgba(229, 226, 218, .08);
  background: transparent;
  color: rgba(227, 223, 214, .42);
  font: 600 9px/1 var(--font-body);
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.p-story-filters button:last-child { border-right: 0; }

.p-story-filters button:hover,
.p-story-filters button:focus-visible {
  color: rgba(242, 236, 223, .82);
  outline: none;
}

.p-story-filters button.is-active {
  background: rgba(187, 146, 73, .09);
  color: #ddc590;
  box-shadow: inset 0 -1px #b68a41;
}

.p-story-count {
  padding-right: 3px;
  color: rgba(224, 220, 211, .36);
  font: 500 7px/1.4 var(--font-mono);
  white-space: nowrap;
}

.p-story-archive-layout { gap: 0; }

.p-story-badge-shelf {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: stretch;
  min-width: 0;
  border-top: 1px solid rgba(229, 226, 218, .1);
  border-bottom: 1px solid rgba(229, 226, 218, .1);
  background: #070708;
  box-shadow: inset 0 22px 46px rgba(255, 255, 255, .012), inset 0 -24px 42px rgba(0, 0, 0, .42);
}

.p-story-badge-shelf::after {
  content: "";
  position: absolute;
  right: 38px;
  bottom: 9px;
  left: 38px;
  height: 1px;
  background: rgba(202, 164, 94, .16);
  pointer-events: none;
}

.p-story-shelf-control {
  position: relative;
  z-index: 3;
  display: grid;
  padding: 0;
  place-items: center;
  border: 0;
  background: rgba(4, 4, 5, .72);
  color: rgba(225, 214, 190, .52);
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, opacity .2s ease;
}

.p-story-shelf-control.is-prev { border-right: 1px solid rgba(229, 226, 218, .07); }
.p-story-shelf-control.is-next { border-left: 1px solid rgba(229, 226, 218, .07); }

.p-story-shelf-control:hover,
.p-story-shelf-control:focus-visible {
  background: rgba(16, 14, 11, .92);
  color: #e0c78f;
  outline: none;
}

.p-story-shelf-control:disabled { opacity: .18; cursor: default; }
.p-story-shelf-control span { font: 500 15px/1 var(--font-body); }

.p-story-badge-rail {
  justify-content: flex-start;
  gap: 14px;
  padding: 18px 8px 22px;
  border: 0;
  background: transparent;
  scroll-padding-inline: 8px;
  scroll-snap-type: x proximity;
}

.p-story-medal {
  flex: 0 0 106px;
  min-height: 145px;
  padding: 0 2px 7px;
  scroll-snap-align: center;
  filter: none;
}

.p-story-medal::after {
  top: 99px;
  width: 72px;
  height: 9px;
  opacity: .74;
}

.p-story-medal-visual {
  width: 104px;
  height: 104px;
  margin-bottom: 1px;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(196, 176, 139, .12), 0 12px 22px rgba(0, 0, 0, .5);
}

.p-story-medal.is-skill .p-story-medal-visual { border-radius: 22%; }
.p-story-medal.is-advanced .p-story-medal-visual { border-radius: 24% 24% 34% 34%; }

.p-story-medal.is-level-1 .p-story-medal-visual {
  box-shadow: 0 0 0 1px rgba(178, 181, 181, .18), 0 12px 22px rgba(0, 0, 0, .5);
}

.p-story-medal.is-level-2 .p-story-medal-visual {
  box-shadow: 0 0 0 1px rgba(196, 160, 91, .34), 0 12px 24px rgba(0, 0, 0, .54);
}

.p-story-medal.is-level-3 .p-story-medal-visual {
  box-shadow: 0 0 0 1px rgba(225, 194, 129, .62), 0 0 0 3px rgba(159, 115, 44, .1), 0 14px 28px rgba(0, 0, 0, .58);
}

.p-story-medal-visual::after { display: none; }

.p-story-medal-inner {
  border-radius: inherit;
  transform-origin: 50% 50%;
  transition-duration: .72s;
}

.p-story-medal-face {
  overflow: hidden;
  border-radius: inherit;
}

.p-story-medal-face::after {
  z-index: 2;
  inset: -18%;
  border-radius: 0;
  opacity: .13;
  background: linear-gradient(112deg, transparent 38%, rgba(255, 244, 214, .26) 49%, transparent 60%);
  clip-path: none !important;
  transform: translateX(-54%);
  pointer-events: none;
}

.p-story-medal.is-active .p-story-medal-face::after {
  animation: story-metal-glint 6.8s ease-in-out infinite;
}

@keyframes story-metal-glint {
  0%, 58%, 100% { transform: translateX(-54%); opacity: 0; }
  70% { opacity: .2; }
  86% { transform: translateX(54%); opacity: 0; }
}

.p-story-medal-base {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: none !important;
  filter: saturate(.72) brightness(.83) contrast(1.06) !important;
  mix-blend-mode: normal;
  transform: none !important;
}

.p-story-medal.is-active .p-story-medal-base { filter: saturate(.84) brightness(.96) contrast(1.04) !important; }

.p-story-medal-logo {
  z-index: 3;
  top: 50%;
  width: 24px;
  height: 24px;
  opacity: .9;
  filter: saturate(.78) drop-shadow(0 2px 4px #000);
  transform: translate(-50%, -50%);
  mix-blend-mode: normal;
}

.p-story-medal-code {
  z-index: 3;
  top: 10px;
  right: 10px;
  left: auto;
  min-width: 24px;
  padding: 3px 5px;
  border: 1px solid rgba(214, 188, 132, .22);
  background: rgba(5, 5, 6, .72);
  color: rgba(229, 211, 171, .74);
  font: 700 6px/1 var(--font-mono);
  text-align: center;
  text-shadow: none;
}

.p-story-medal-tier {
  z-index: 3;
  top: auto;
  right: 14px;
  bottom: 10px;
  left: 14px;
  color: rgba(232, 224, 207, .54);
  font-size: 5px;
  letter-spacing: 0;
  text-shadow: 0 2px 6px #000;
}

.p-story-medal-back .p-story-medal-base {
  filter: saturate(.35) brightness(.25) contrast(1.2) !important;
}

.p-story-medal-back::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 18px;
  border: 1px solid rgba(209, 181, 122, .26);
  border-radius: 50%;
  background: rgba(4, 4, 5, .58);
}

.p-story-medal.is-skill .p-story-medal-back::before,
.p-story-medal.is-advanced .p-story-medal-back::before { border-radius: 22%; }

.p-story-medal-back-label {
  z-index: 3;
  top: 34px;
  right: 21px;
  left: 21px;
  color: rgba(227, 216, 192, .54);
  font-size: 6px;
}

.p-story-medal-back strong {
  z-index: 3;
  top: 49px;
  right: 19px;
  left: 19px;
  color: #e6d4aa;
  font-size: 10px;
}

.p-story-medal-family {
  display: block;
  margin-top: 4px;
  color: rgba(204, 173, 111, .42);
  font: 500 5px/1.3 var(--font-mono);
  text-align: center;
}

.p-story-medal > strong {
  margin-top: 2px;
  color: rgba(235, 231, 222, .7);
  font-size: 9px;
}

.p-story-medal > small { color: rgba(216, 213, 206, .34); }

.p-story-medal:hover { transform: translateY(-3px); }

.p-story-medal.is-active {
  filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .48));
  transform: translateY(-5px);
}

.p-story-badge-focus { padding-top: 14px; }

.p-story-record {
  grid-template-columns: 72px minmax(190px, .9fr) minmax(340px, 1.25fr) auto;
  gap: 20px;
  min-height: 98px;
  padding: 12px 4px 15px;
  border-top: 0;
  background: transparent;
}

.p-story-record-empty {
  display: grid;
  min-height: 84px;
  place-items: center;
  color: rgba(224, 220, 211, .4);
  font-size: 10px;
}

.p-story-record-mark {
  width: 68px;
  height: 68px;
  overflow: hidden;
  border-color: rgba(198, 170, 112, .2);
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .38);
}

.p-story-record-art {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  opacity: .88 !important;
  filter: saturate(.72) brightness(.84) !important;
}

.p-story-record-logo {
  position: relative;
  z-index: 2;
  width: 22px !important;
  height: 22px !important;
  opacity: .92 !important;
  filter: saturate(.74) drop-shadow(0 2px 4px #000) !important;
}

.p-story-record-mark span {
  z-index: 3;
  right: 3px;
  bottom: 3px;
  border: 1px solid rgba(213, 189, 136, .16);
}

.p-story-record-copy > strong { font-size: 18px; }

@media (max-width: 1180px) {
  .p-story-record { grid-template-columns: 68px minmax(170px, .8fr) minmax(310px, 1.2fr) auto; }
}

@media (max-width: 760px) {
  .p-honor-slide { top: 55%; width: 34px; height: 34px; }
  .p-honor-slide.is-prev { left: 8px; }
  .p-honor-slide.is-next { right: 8px; }
  .p-honor-window { top: 60px; right: 13px; font-size: 6px; }

  .p-story-archive { margin-top: 42px; }
  .p-story-archive-head { margin-bottom: 12px; }
  .p-story-toolbar { display: block; min-height: 0; margin-inline: -16px; }

  .p-story-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    border-right: 0;
    border-left: 0;
  }

  .p-story-filters button { min-width: 0; height: 42px; padding-inline: 7px; }
  .p-story-count { display: block; padding: 8px 16px 7px; text-align: right; }

  .p-story-badge-shelf {
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    margin-inline: -16px;
  }

  .p-story-badge-shelf::after { right: 28px; left: 28px; }

  .p-story-badge-rail {
    gap: 7px;
    margin-inline: 0;
    padding: 16px 4px 21px;
  }

  .p-story-medal { flex-basis: 92px; min-height: 132px; }
  .p-story-medal-visual { width: 90px; height: 90px; }
  .p-story-medal::after { top: 86px; width: 64px; }
  .p-story-medal-logo { top: 50%; width: 21px; height: 21px; }
  .p-story-medal-code { top: 8px; right: 8px; }
  .p-story-medal-tier { top: auto; bottom: 8px; }
  .p-story-medal-back-label { top: 30px; }
  .p-story-medal-back strong { top: 44px; }

  .p-story-badge-focus { padding-top: 12px; }
  .p-story-record {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    padding-top: 10px;
  }

  .p-story-record-mark { width: 56px; height: 56px; }
  .p-story-record-logo { width: 19px !important; height: 19px !important; }
  .p-story-record-copy > strong { font-size: 17px; }
}

@media (max-width: 390px) {
  .p-story-medal { flex-basis: 86px; }
  .p-story-medal-visual { width: 84px; height: 84px; }
  .p-story-medal::after { top: 81px; }
}

@media (prefers-reduced-motion: reduce) {
  .p-story-medal.is-active .p-story-medal-face::after { animation: none; }
}
