body.inspect-screen-open { overflow: hidden; }

.inspect-screen {
  position: fixed;
  inset: 0;
  z-index: 220;
  min-width: 980px;
  min-height: 640px;
  overflow: clip;
  color: rgba(248, 246, 237, 0.94);
  background: #332c26;
  isolation: isolate;
}

.inspect-screen::before,
.inspect-screen::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.inspect-screen::before {
  inset: -34px;
  z-index: -2;
  background: url("../assets/mirage-background.png") center / cover no-repeat;
  filter: blur(10px) saturate(0.7) brightness(1.03);
  transform: scale(1.07);
}

.inspect-screen::after {
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 44%, transparent 34%, rgba(21, 22, 21, 0.12) 62%, rgba(12, 13, 13, 0.54) 100%),
    linear-gradient(180deg, rgba(24, 27, 29, 0.2), rgba(37, 37, 34, 0.12) 55%, rgba(22, 24, 24, 0.58));
}

.inspect-identity {
  position: absolute;
  z-index: 8;
  top: 31px;
  left: 50%;
  display: flex;
  max-width: 800px;
  align-items: center;
  transform: translateX(-50%);
  gap: 14px;
  text-align: left;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.58);
}

.inspect-collection-icon { width: 74px; height: 74px; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.48)); }
.inspect-title-copy { display: inline-grid; width: max-content; min-width: 0; max-width: min(76vw, 920px); }
.inspect-new-item { color: rgba(246, 243, 231, 0.56); font-size: 9px; font-weight: 700; letter-spacing: 0.14em; }
.inspect-title-copy h1 { max-width: min(78vw, 1040px); overflow: hidden; margin: 0; color: rgba(255, 254, 248, 0.96); font-size: clamp(26px, 2vw, 39px); font-weight: 400; letter-spacing: 0.015em; line-height: 1.02; text-overflow: ellipsis; white-space: nowrap; }
.inspect-title-copy p { margin: 4px 0 7px; color: rgba(250, 248, 239, 0.62); font-size: clamp(12px, 0.9vw, 16px); }
.inspect-rarity-line { display: block; width: 100%; max-width: 100%; height: 5px; background: var(--inspect-rarity, #4b69ff); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.36); }

.inspect-stage { position: absolute; z-index: 3; inset: 103px 0 154px; display: grid; place-items: center; pointer-events: none; }
.inspect-stage::before { position: absolute; top: 50%; left: 50%; width: min(72vw, 1200px); height: min(56vh, 620px); content: ""; transform: translate(-50%, -50%); background: radial-gradient(ellipse, rgba(246, 239, 218, 0.31), transparent 65%); filter: blur(13px); }
.inspect-item-image { position: relative; z-index: 3; width: min(61vw, 1020px); max-width: calc(100vw - 160px); height: min(55vh, 590px); object-fit: contain; filter: drop-shadow(0 25px 18px rgba(0, 0, 0, 0.5)); animation: inspect-item-in 420ms cubic-bezier(0.16, 0.78, 0.2, 1) both; }
.inspect-screen.kind-container .inspect-item-image, .inspect-screen.kind-display .inspect-item-image, .inspect-screen.kind-graphic .inspect-item-image { width: min(43vw, 700px); height: min(48vh, 510px); }
.inspect-screen.kind-agent .inspect-item-image { width: min(39vw, 620px); height: min(62vh, 660px); }
@keyframes inspect-item-in { from { transform: translateY(8px) scale(0.96); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
.inspect-image-fallback { color: rgba(255, 255, 255, 0.4); font-size: 13px; letter-spacing: 0.1em; }
.inspect-applied-icons { position: absolute; z-index: 15; bottom: 10%; left: 50%; display: flex; transform: translateX(-50%); gap: 7px; pointer-events: auto; }
.inspect-sticker-entry { position: relative; display: grid; width: clamp(39px, 3vw, 57px); height: clamp(39px, 3vw, 57px); place-items: center; cursor: help; outline: 0; }
.inspect-sticker-entry > img { width: 100%; height: 100%; object-fit: contain; opacity: var(--sticker-opacity, 1); filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.62)); transition: transform 90ms ease, filter 90ms ease; }
.inspect-sticker-entry:hover > img, .inspect-sticker-entry:focus-visible > img { transform: translateY(-2px) scale(1.08); filter: drop-shadow(0 6px 4px rgba(0, 0, 0, 0.7)); }
.inspect-sticker-tooltip { position: absolute; bottom: calc(100% + 10px); left: 50%; display: grid; width: max-content; max-width: 260px; min-width: 150px; padding: 8px 10px 7px; transform: translate(-50%, 4px); border-left: 3px solid var(--sticker-rarity, #b0c3d9); background: rgba(20, 21, 20, 0.97); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45); opacity: 0; pointer-events: none; text-align: left; transition: opacity 80ms ease, transform 80ms ease; }
.inspect-sticker-tooltip strong { overflow: hidden; color: rgba(255, 255, 255, 0.94); font-size: 11px; font-weight: 700; line-height: 14px; text-overflow: ellipsis; white-space: nowrap; }
.inspect-sticker-tooltip span { color: var(--sticker-rarity, #b0c3d9); font-size: 9px; letter-spacing: 0.07em; line-height: 12px; text-transform: uppercase; }
.inspect-sticker-tooltip small { margin-top: 3px; color: rgba(255, 255, 255, 0.5); font-size: 8px; letter-spacing: 0.07em; line-height: 11px; }
.inspect-sticker-entry:hover .inspect-sticker-tooltip, .inspect-sticker-entry:focus-visible .inspect-sticker-tooltip { transform: translate(-50%, 0); opacity: 1; }
.inspect-charm-entry { position: absolute; z-index: 16; right: 27%; bottom: 15%; display: grid; width: 72px; height: 72px; place-items: center; cursor: help; outline: 0; pointer-events: auto; }
.inspect-charm { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 4px rgba(0, 0, 0, 0.64)); transition: transform 90ms ease, filter 90ms ease; }
.inspect-charm-entry:hover .inspect-charm, .inspect-charm-entry:focus-visible .inspect-charm { transform: translateY(-2px) scale(1.08); filter: drop-shadow(0 7px 5px rgba(0, 0, 0, 0.7)); }
.inspect-charm-entry:hover .inspect-sticker-tooltip, .inspect-charm-entry:focus-visible .inspect-sticker-tooltip { transform: translate(-50%, 0); opacity: 1; }

.inspect-details {
  position: absolute;
  z-index: 13;
  bottom: 78px;
  left: clamp(45px, 5.5vw, 104px);
  width: min(370px, calc(100vw - 90px));
  min-width: 0;
  max-height: min(590px, calc(100vh - 170px));
  overflow: auto;
  padding: 18px 20px 19px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  background: rgba(10, 11, 13, 0.975);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(4px);
}
.inspect-details::after {
  position: absolute;
  bottom: -7px;
  left: 13px;
  width: 0;
  height: 0;
  content: "";
  border-top: 7px solid rgba(10, 11, 13, 0.975);
  border-right: 7px solid transparent;
  border-left: 7px solid transparent;
}
.inspect-details[hidden] { display: none; }
.inspect-screen.is-information-open .inspect-details { animation: inspect-information-in 90ms ease-out both; }
@keyframes inspect-information-in { from { transform: translateY(4px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.inspect-details-title { display: none; }
.inspect-details-list { display: flex; margin: 0; flex-direction: column; gap: 9px; }
.inspect-detail-row { display: flex; min-height: 0; align-items: baseline; gap: 6px; border: 0; }
.inspect-detail-row dt,
.inspect-detail-row dd { margin: 0; padding: 0; font-family: Arial, sans-serif; font-size: 13px; line-height: 18px; }
.inspect-detail-row dt { flex: 0 0 auto; color: rgba(245, 245, 242, 0.86); font-weight: 700; letter-spacing: 0; }
.inspect-detail-row dd { min-width: 0; overflow-wrap: anywhere; color: rgba(232, 232, 228, 0.92); text-align: left; }

.inspect-detail-separator {
  height: 1px;
  margin: 5px 0 4px;
  background: rgba(255, 255, 255, 0.1);
}

.inspect-description-block { position: absolute; z-index: 9; bottom: 86px; left: 50%; width: min(610px, 48vw); transform: translateX(-50%); text-align: left; text-shadow: 0 2px 3px rgba(0, 0, 0, 0.55); }
.inspect-description-block strong { color: rgba(255, 255, 255, 0.82); font-size: 12px; }
.inspect-description-block p { display: -webkit-box; overflow: hidden; margin: 3px 0 0; color: rgba(246, 243, 233, 0.65); font-family: Arial, sans-serif; font-size: 11px; line-height: 15px; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.inspect-reward-progress { display: inline-block; margin-top: 8px; padding: 6px 9px 4px; border-left: 2px solid #76b04d; background: rgba(23, 30, 20, 0.55); color: #c8dfb3; font-size: 9px; font-weight: 700; letter-spacing: 0.08em; }
.inspect-reward-progress.is-level-up { border-left-color: #d9ca83; background: rgba(64, 58, 34, 0.58); color: #eee0a7; }

.inspect-footer { position: absolute; z-index: 12; right: 0; bottom: 0; left: 0; display: flex; height: 64px; align-items: center; justify-content: space-between; padding: 0 clamp(45px, 5.5vw, 104px); border-top: 1px solid rgba(255, 255, 255, 0.07); background: rgba(18, 20, 20, 0.52); }
.inspect-footer-icons { display: flex; align-items: center; gap: 24px; }
.inspect-footer-actions { display: flex; align-items: center; gap: 8px; }
.inspect-primary-action {
  min-width: 150px;
  height: 36px;
  padding: 0 18px;
  cursor: pointer;
  border: 1px solid rgba(177, 213, 157, 0.2);
  color: #eef5e7;
  background: #638b36;
  font: 700 10px var(--font-ui);
  letter-spacing: 0.065em;
}
.inspect-primary-action:hover,
.inspect-primary-action:focus-visible { background: #739b43; }
.inspect-primary-action:disabled { cursor: wait; opacity: 0.55; }
.inspect-icon-button { display: grid; width: 31px; height: 31px; place-items: center; cursor: default; background: transparent; opacity: 0.48; }
.inspect-icon-button img { width: 23px; height: 23px; filter: invert(1); }
.inspect-icon-button.is-selected { background: rgba(255, 255, 255, 0.07); opacity: 1; }
.inspect-icon-button.is-action { cursor: pointer; }
.inspect-icon-button.is-action:hover, .inspect-icon-button.is-action:focus-visible { background: rgba(255, 255, 255, 0.07); opacity: 1; }
.inspect-close { min-width: 92px; height: 34px; cursor: pointer; background: transparent; color: rgba(255, 255, 255, 0.87); font-size: 11px; font-weight: 700; letter-spacing: 0.07em; }
.inspect-close:hover { background: rgba(255, 255, 255, 0.07); }

@media (max-width: 1280px) {
  .inspect-details { width: min(340px, calc(100vw - 70px)); min-width: 0; padding: 16px 18px 17px; }
  .inspect-item-image { width: 57vw; }
  .inspect-description-block { width: 520px; }
}
