.promotion-notice {
  margin: 0 0 14px;
  padding: 12px 15px;
  border: 1px solid rgba(255, 211, 107, .28);
  border-radius: 14px;
  background: rgba(255, 211, 107, .08);
  color: var(--gold);
  font-weight: 750;
}

.promotion-notice.active {
  border-color: rgba(97, 230, 161, .42);
  background: rgba(97, 230, 161, .1);
  color: var(--green);
}

.product-reward { min-height: 45px; }

.product-items { margin: 14px 0 5px; }
.product-items-label { display: block; margin-bottom: 7px; color: #d8b8ff; font-size: 11px; font-weight: 800; }
.product-item-icons { display: flex; flex-wrap: wrap; gap: 8px; }
.product-item-icon {
  position: relative;
  width: 58px;
  padding: 4px 4px 17px;
  border: 1px solid rgba(255, 211, 107, .32);
  border-radius: 11px;
  background: linear-gradient(145deg, #291b34, #0b080f);
  box-shadow: inset 0 0 18px rgba(184, 124, 255, .1);
}
.product-item-icon:hover { transform: translateY(-2px); border-color: var(--gold); }
.item-icon-visual { width: 48px; height: 48px; display: grid; place-items: center; overflow: hidden; border-radius: 7px; background: #050407; }
.item-icon-visual img { display: block; width: 100%; height: 100%; object-fit: contain; }
.item-icon-fallback { color: var(--gold); font-size: 23px; }
.product-item-icon small { position: absolute; right: 5px; bottom: 3px; max-width: 50px; color: white; font-size: 10px; text-shadow: 0 1px 3px #000; overflow: hidden; }

.modal-open { overflow: hidden; }
.item-preview { position: fixed; inset: 0; z-index: 25; display: grid; place-items: center; padding: 16px; }
.item-preview-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .82); backdrop-filter: blur(4px); }
.item-preview-panel {
  position: relative;
  width: min(620px, 100%);
  max-height: min(820px, calc(100vh - 32px));
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(255, 211, 107, .48);
  border-radius: 17px;
  background: radial-gradient(circle at 100% 0, rgba(85, 58, 24, .4), transparent 36%), linear-gradient(155deg, #11100e, #050506 70%);
  box-shadow: 0 28px 90px #000, inset 0 0 50px rgba(180, 121, 34, .08);
}
.item-preview-close { position: absolute; z-index: 1; top: 10px; right: 11px; padding: 0; width: 38px; height: 38px; color: #ffe7a6; background: transparent; font-size: 32px; line-height: 1; }
.item-preview-header { display: grid; grid-template-columns: 104px 1fr; gap: 17px; align-items: center; padding-right: 30px; }
.item-preview-image { width: 104px; height: 104px; display: grid; place-items: center; overflow: hidden; border: 2px solid #c99b39; border-radius: 11px; background: radial-gradient(circle, #352814, #070605 70%); }
.item-preview-image img { width: 100%; height: 100%; object-fit: contain; image-rendering: auto; }
.item-preview-fallback { color: var(--gold); font-size: 44px; }
.item-preview-heading h2 { margin: 0; color: #ff9f3e; font-size: 24px; }
.item-preview-kind { margin: 5px 0 0; color: #e8d9b5; }
.item-preview-quantity { margin: 5px 0 0; color: var(--gold); font-weight: 800; }
.item-preview-intro, .item-preview-help { margin: 16px 0 0; padding: 11px 13px; border-left: 3px solid #7ebfd8; background: rgba(97, 165, 194, .08); color: #b9e9fa; }
.item-preview-help { margin-top: 8px; border-left-color: #8a7ba2; color: #c9bfd7; }
.item-preview-summary { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; margin: 17px 0 0; padding: 12px 0; border-top: 1px solid #ffffff18; border-bottom: 1px solid #ffffff18; }
.item-preview-summary dt { color: #a9a29a; }
.item-preview-summary dd { margin: 0; text-align: right; color: #f6f0e6; }
.item-property-title { margin: 18px 0 8px; color: #ffcf55; font-size: 16px; }
.item-property-list { display: grid; gap: 4px; }
.item-property-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 15px; align-items: baseline; padding: 5px 7px; border-radius: 7px; }
.item-property-row:nth-child(odd) { background: rgba(255, 255, 255, .025); }
.item-property-row span { color: #59ef4f; font-weight: 700; }
.item-property-row strong { color: #fff76a; text-align: right; overflow-wrap: anywhere; }

.item-details {
  margin: 14px 0 4px;
  border: 1px solid rgba(184, 124, 255, .24);
  border-radius: 13px;
  background: rgba(9, 6, 13, .34);
  overflow: hidden;
}

.item-details summary {
  padding: 10px 12px;
  color: #d8b8ff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.item-details-body { padding: 0 12px 12px; }
.item-real-name { display: block; margin-bottom: 6px; color: var(--gold); }
.product .item-intro, .product .item-help { margin: 5px 0; color: #d8cbe3; font-size: 12px; }
.product .item-help { color: var(--muted); }

.item-stats {
  display: grid;
  grid-template-columns: minmax(100px, auto) 1fr;
  gap: 4px 9px;
  margin: 10px 0 0;
  font-size: 12px;
}

.item-stats dt { color: var(--muted); }
.item-stats dd { margin: 0; text-align: right; overflow-wrap: anywhere; color: var(--text); }

.listing-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.listing-info { min-width: 0; }
.listing-info > strong { display: block; overflow-wrap: anywhere; }
.listing-item-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 66px;
  min-width: 66px;
  padding: 5px;
  border: 1px solid #8e693b;
  border-radius: 12px;
  background: linear-gradient(145deg, #332236, #130e19);
  color: #f4cf71;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.listing-item-preview:hover, .listing-item-preview:focus-visible {
  transform: translateY(-2px);
  border-color: #f4cf71;
  box-shadow: 0 7px 20px #0008, 0 0 14px #c7913744;
  outline: 0;
}
.listing-item-icon { width: 50px; height: 50px; }
.listing-item-quantity {
  max-width: 58px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #f5dda0;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}
.listing-detail-link {
  margin-top: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #efc96d;
  font-size: 11px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.listing-detail-link:hover, .listing-detail-link:focus-visible { color: #fff0ad; outline: 0; }

@media (max-width: 600px) {
  .item-details summary { padding: 12px; }
  .item-stats { grid-template-columns: 1fr; gap: 1px; }
  .item-stats dd { margin-bottom: 5px; text-align: left; }
  .item-preview-panel { padding: 18px; }
  .item-preview-header { grid-template-columns: 78px 1fr; gap: 12px; }
  .item-preview-image { width: 78px; height: 78px; }
  .item-preview-heading h2 { font-size: 19px; }
  .item-property-row { grid-template-columns: 1fr; gap: 1px; }
  .item-property-row strong { text-align: left; }
  .listing-main { align-items: start; }
  .listing-item-preview { width: 62px; min-width: 62px; }
  .listing-item-icon { width: 46px; height: 46px; }
}
