#scrLB {
  --trophy-ink: #2f2948;
  --trophy-navy: #102f49;
  --trophy-mint: #47c7aa;
  --trophy-gold: #f8c85a;
  --trophy-coral: #f47c68;
  --trophy-paper: rgba(255, 252, 244, .96);
  font-family: var(--body);
}

.trophy-room-stage::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 30%, transparent 22%, rgba(4, 24, 42, .18) 100%),
    linear-gradient(to bottom, rgba(4, 24, 42, .22), transparent 22%, transparent 74%, rgba(4, 24, 42, .28));
}

.trophy-room-loading {
  padding-bottom: calc(128px + env(safe-area-inset-bottom));
  background:
    linear-gradient(rgba(13, 46, 68, .18), rgba(13, 46, 68, .56)),
    #123b5c url("../../assets/trophy-room/trophy-room-preview.png?v=2") center / contain no-repeat;
}

.trophy-room-loading span {
  padding: 12px 22px;
  border: 2px solid rgba(255, 255, 255, .58);
  border-radius: 999px;
  background: rgba(16, 47, 73, .9);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .32);
}

.trophy-room-topbar {
  min-height: 76px;
  gap: 10px;
  padding: 9px;
  border: 2px solid rgba(255, 255, 255, .7);
  border-radius: 24px;
  background: var(--trophy-paper);
  color: var(--trophy-ink);
  box-shadow: 0 14px 42px rgba(7, 28, 46, .3), inset 0 1px 0 white;
  backdrop-filter: blur(18px) saturate(1.25);
}

.trophy-room-back {
  min-width: 56px;
  min-height: 54px;
  border: 2px solid white;
  border-radius: 17px;
  background: linear-gradient(145deg, #fff6cf, var(--trophy-gold));
  color: var(--trophy-ink);
  box-shadow: 0 5px 0 #ca912d, 0 9px 18px rgba(84, 52, 4, .16);
  transition: transform .16s ease, box-shadow .16s ease;
}

.trophy-room-back:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #ca912d, 0 5px 12px rgba(84, 52, 4, .16);
}

.trophy-room-title-lockup {
  min-width: 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.trophy-room-title-lockup > img {
  width: 52px;
  height: 52px;
  border: 2px solid white;
  border-radius: 17px;
  object-fit: cover;
  box-shadow: 0 7px 18px rgba(47, 41, 72, .16);
}

.trophy-room-title-lockup small,
.trophy-room-title-lockup span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trophy-room-title-lockup small {
  color: #ca6659;
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.trophy-room-title {
  color: var(--trophy-ink);
  font-size: clamp(1.02rem, 1.7vw, 1.32rem);
  line-height: 1.05;
  text-align: left;
}

.trophy-room-title-lockup span {
  margin-top: 3px;
  color: #665f78;
  font-size: .69rem;
  font-weight: 800;
}

.trophy-room-periods {
  gap: 3px;
  padding: 4px;
  border: 1px solid #e6dfd6;
  border-radius: 16px;
  background: #f0ebe5;
}

.trophy-room-period {
  min-height: 44px;
  border-radius: 12px;
  color: #6b6479;
  transition: transform .15s ease, background .15s ease;
}

.trophy-room-period[aria-pressed="true"] {
  background: white;
  color: var(--trophy-ink);
  box-shadow: 0 4px 12px rgba(47, 41, 72, .12);
}

.trophy-room-prizes-button {
  min-height: 54px;
  padding: 6px 12px 6px 7px;
  border: 2px solid white;
  border-radius: 17px;
  background: linear-gradient(145deg, #e9fff8, #b9efd9);
  color: var(--trophy-ink);
  box-shadow: 0 5px 0 #70b9a2, 0 9px 18px rgba(15, 102, 79, .14);
}

.trophy-room-prizes-button img {
  width: 40px;
  height: 40px;
  border-radius: 13px;
}

.trophy-room-prizes-button strong {
  background: #118d78;
}

.trophy-room-exhibits {
  gap: 10px;
}

.trophy-room-exhibit {
  position: relative;
  min-height: 78px;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  padding: 10px 12px;
  border: 2px solid rgba(255, 255, 255, .72);
  border-radius: 21px;
  background: rgba(255, 252, 244, .93);
  color: var(--trophy-ink);
  box-shadow: 0 12px 30px rgba(7, 28, 46, .26), inset 0 1px 0 white;
  backdrop-filter: blur(16px) saturate(1.25);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.trophy-room-exhibit:hover,
.trophy-room-exhibit:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 17px 36px rgba(7, 28, 46, .32);
}

.trophy-room-exhibit[aria-pressed="true"] {
  border-color: var(--trophy-gold);
  box-shadow: 0 0 0 3px rgba(248, 200, 90, .28), 0 17px 36px rgba(7, 28, 46, .32);
}

.trophy-room-exhibit img {
  width: 52px;
  height: 52px;
  border: 2px solid white;
  border-radius: 16px;
  box-shadow: 0 5px 13px rgba(47, 41, 72, .14);
}

.trophy-room-exhibit strong {
  font-size: .94rem;
}

.trophy-room-exhibit span span {
  color: #716a80;
  font-size: .72rem;
}

.trophy-room-exhibit > i {
  min-width: 34px;
  padding: 5px 7px;
  border-radius: 999px;
  background: #edf7f3;
  color: #168b75;
  font-style: normal;
  font-size: .7rem;
  font-weight: 900;
  text-align: center;
}

.trophy-room-game-panel {
  top: calc(max(12px, env(safe-area-inset-top)) + 94px);
  width: min(430px, calc(100vw - 24px));
  padding: 20px;
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 28px;
  background: rgba(255, 252, 245, .98);
  box-shadow: 0 24px 70px rgba(7, 28, 46, .42), inset 0 1px 0 white;
  backdrop-filter: blur(18px);
}

.trophy-room-panel-head img {
  border: 2px solid white;
  border-radius: 18px;
  box-shadow: 0 6px 17px rgba(47, 41, 72, .14);
}

.trophy-room-panel-close {
  border: 2px solid white;
  border-radius: 15px;
  background: #eee9f4;
  color: var(--trophy-ink);
  box-shadow: 0 4px 0 #cdc4d8;
}

.trophy-room-game-grid {
  gap: 10px;
}

.trophy-room-game-button {
  min-height: 84px;
  border: 1px solid #e6ded3;
  border-radius: 18px;
  box-shadow: 0 5px 13px rgba(47, 41, 72, .08);
  transition: transform .16s ease, border-color .16s ease;
}

.trophy-room-game-button:hover,
.trophy-room-game-button:focus-visible {
  transform: translateY(-2px);
  border-color: var(--trophy-mint);
}

.trophy-room-game-button img,
.trophy-room-prize-card img {
  border-radius: 15px;
}

.trophy-room-prize-card {
  padding: 10px;
  border: 1px solid #e6ded3;
  border-radius: 18px;
  box-shadow: 0 5px 13px rgba(47, 41, 72, .08);
}

.trophy-room-rank {
  margin-bottom: 6px;
  padding: 9px;
  border: 1px solid #e8e0d7;
  border-radius: 16px;
  background: white;
}

.trophy-room-rank.me {
  border-color: #8dddc8;
  background: #e9f8f2;
  box-shadow: 0 0 0 3px rgba(71, 199, 170, .13);
}

.trophy-room-empty {
  border: 2px dashed #d9d0c5;
  border-radius: 20px;
  background: #f8f3ec;
}

.trophy-room-fallback {
  background:
    linear-gradient(rgba(13, 46, 68, .16), rgba(13, 46, 68, .72)),
    #123b5c url("../../assets/trophy-room/trophy-room-preview.png?v=2") top center / min(100%, 1440px) auto no-repeat;
}

.trophy-room-fallback-card {
  border: 2px solid rgba(255, 255, 255, .8);
  border-radius: 22px;
}

@media (max-width: 820px) {
  .trophy-room-topbar {
    border-radius: 20px;
  }

  .trophy-room-title-lockup {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .trophy-room-title-lockup > img {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .trophy-room-title-lockup span {
    display: none;
  }

  .trophy-room-exhibits {
    gap: 7px;
  }

  .trophy-room-exhibit {
    min-height: 62px;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    padding: 7px 9px;
    border-radius: 17px;
  }

  .trophy-room-exhibit img {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .trophy-room-exhibit span span {
    display: none;
  }

  .trophy-room-game-panel {
    border-radius: 24px;
  }
}

@media (max-width: 520px) {
  .trophy-room-title-lockup small {
    display: none;
  }

  .trophy-room-title {
    font-size: .95rem;
  }

  .trophy-room-period {
    min-width: 0;
    padding-inline: 5px;
    font-size: .72rem;
  }

  .trophy-room-exhibit > i {
    display: none;
  }

  .trophy-room-exhibit {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .trophy-room-exhibit img {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trophy-room-back,
  .trophy-room-exhibit,
  .trophy-room-game-button {
    transition-duration: .01ms;
  }
}
