/* ==========================================================================
   SilverMU Item Hunt (/item-hunt, /item-hunt/<slug>): search, chips, result cards.
   Loaded by item-hunt.php after the skin; the page sets only $bodyClass = 'svp-inner--itemhunt'
   (not the full svp-inner chrome), so nothing here reaches the other data pages.

   THE MECHANIC (as css/silver-inner.css)
   Everything sits in @layer sv-inner and every declaration carries !important, so it beats the
   legacy item-hunt.css / silver-data.css whatever their specificity. Selectors are scoped under
   body.svp-inner--itemhunt. New class names use the full svp- prefix. The --svp-* tokens are not
   loaded on this page (silver-inner.css is not), so the few values needed are written out here.

   NEVER (fx.js and the page script own these)
   - opacity, transform, transition or animation on section, .white-box, .news-card, .class-panel, .kpi, .info-block
   - display, visibility, opacity or width on anything the script toggles: [hidden], <details> content

   CONTENTS
    1  Search row (input + submit)       4  Result cards (js/item-hunt.js builds them)
    2  Chips (links vs presets)          5  "Show more" row
    3  Type scale                        6  Motion
   ========================================================================== */
@layer sv-inner {

/* --------------------------------------------------------------------------
   1. Search row: the input grows, the submit sits beside it, and wraps under it on phones
   -------------------------------------------------------------------------- */
body.svp-inner--itemhunt .ih-search-wrap {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  gap: 12px !important;
}
body.svp-inner--itemhunt .ih-search-wrap .ih-search-input {
  flex: 1 1 280px !important;
  width: auto !important;
  min-width: 0 !important;
}
body.svp-inner--itemhunt .ih-search-wrap .svp-ih-go {
  flex: 0 0 auto !important;
  min-height: 48px !important;
}
@media (max-width: 560px) {
  body.svp-inner--itemhunt .ih-search-wrap .svp-ih-go {
    flex: 1 1 100% !important;
  }
}
/* An item page's compact search has no status text until a search runs: no dead band under the field */
body.svp-inner--itemhunt .ih-search-box--compact #ihStatus:empty {
  min-height: 0 !important;
  margin: 0 !important;
}

}

@layer sv-inner {

/* --------------------------------------------------------------------------
   2. Chips. Links (currency and bag pages) and presets (searches) read as two kinds:
      links are ice-blue with a chevron, presets are quiet outlines.
   -------------------------------------------------------------------------- */
main .item-hunt .ih-chip-row {
  gap: 8px !important;
}
main .item-hunt .ih-chip {
  box-sizing: border-box !important;
  min-height: 40px !important;
  padding: 0 14px !important;
  border: 1px solid var(--svp-line-2, rgba(214, 222, 236, 0.26)) !important;
  border-radius: 999px !important;
  background: rgba(8, 12, 20, 0.64) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  color: var(--svp-ink, #d0d7e3) !important;
  font: 500 13px/18px var(--sv-font-ui) !important;
  letter-spacing: 0.05em !important;
  filter: none !important;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease !important;
}
main .item-hunt a.ih-chip {
  border-color: rgba(124, 200, 255, 0.4) !important;
  color: #d4ecff !important;
}
main .item-hunt a.ih-chip::after {
  content: "" !important;
  flex: none !important;
  width: 6px !important;
  height: 10px !important;
  margin-left: 7px !important;
  background: currentColor !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 12'%3E%3Cpath d='M1.6 1.2 6.4 6 1.6 10.8' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 12'%3E%3Cpath d='M1.6 1.2 6.4 6 1.6 10.8' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat !important;
}
main .item-hunt a.ih-chip:hover,
main .item-hunt a.ih-chip:focus-visible {
  border-color: rgba(124, 200, 255, 0.75) !important;
  background: rgba(14, 34, 56, 0.72) !important;
  color: #fff !important;
}
main .item-hunt button.ih-chip:hover,
main .item-hunt button.ih-chip:focus-visible {
  border-color: rgba(214, 222, 236, 0.5) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  color: #fff !important;
}
main .item-hunt .ih-chip:active {
  background: rgba(124, 200, 255, 0.16) !important;
}
@media (max-width: 760px), (pointer: coarse) {
  main .item-hunt .ih-chip {
    min-height: 44px !important;
  }
}

}

@layer sv-inner {

/* --------------------------------------------------------------------------
   3. Type scale: 12px floor for labels, 14px for the per-source figures
   -------------------------------------------------------------------------- */
main .item-hunt :is(.ih-badge, .ih-key, .ih-cur-kicker, .ih-cur-stat strong, .ih-cur-card .ih-cur-h, .ih-cur-card .ih-more-hint a) {
  font-size: 12px !important;
}
main .item-hunt .ih-key {
  opacity: 0.8 !important;
}
main .item-hunt .ih-detail {
  font-size: 14px !important;
  opacity: 1 !important;
  color: var(--svp-ink-muted, #a3adbf) !important;
}
/* The live status line (counts, hints): readable, not a faint italic */
body.svp-inner--itemhunt .ih-status {
  font-size: 15px !important;
  font-style: normal !important;
  line-height: 1.4 !important;
  opacity: 1 !important;
  color: var(--svp-ink-muted, #a3adbf) !important;
}
main .item-hunt .ih-pop-count {
  font-size: 13px !important;
  opacity: 1 !important;
  color: var(--svp-ink-muted, #a3adbf) !important;
}

}

@layer sv-inner {

/* --------------------------------------------------------------------------
   4. Result cards: icon + name + type counts on top, the best source of each type below,
      the rest behind "Show N more sources"
   -------------------------------------------------------------------------- */
body.svp-inner--itemhunt #ihResults {
  gap: 12px !important;
}
body.svp-inner--itemhunt #ihResults .ih-card {
  padding: 16px 18px !important;
  border: 1px solid rgba(195, 202, 216, 0.13) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.028) !important;
}
body.svp-inner--itemhunt #ihResults .ih-card:focus-visible {
  outline: 2px solid #7cc8ff !important;
  outline-offset: 3px !important;
}
body.svp-inner--itemhunt #ihResults .svp-ih-head {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin: 0 0 12px !important;
}
body.svp-inner--itemhunt #ihResults .svp-ih-art {
  flex: none !important;
  display: grid !important;
  place-items: center !important;
  box-sizing: border-box !important;
  width: 56px !important;
  height: 56px !important;
  border: 1px solid rgba(195, 202, 216, 0.2) !important;
  border-radius: 10px !important;
  background:
    radial-gradient(circle at 50% 40%, rgba(124, 200, 255, 0.2), rgba(124, 200, 255, 0) 72%),
    rgba(255, 255, 255, 0.05) !important;
}
body.svp-inner--itemhunt #ihResults .svp-ih-art img {
  display: block !important;
  width: 48px !important;
  height: 48px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 0 1px rgba(190, 222, 255, 0.5)) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6)) !important;
}
body.svp-inner--itemhunt #ihResults .svp-ih-id {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
body.svp-inner--itemhunt #ihResults .svp-ih-head h3 {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  gap: 4px 10px !important;
  margin: 0 0 8px !important;
  font-size: 1.15rem !important;
  line-height: 1.25 !important;
  overflow-wrap: anywhere !important;
}
body.svp-inner--itemhunt #ihResults .svp-ih-head h3 a {
  color: #eef2f8 !important;
  text-decoration: none !important;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.35) !important;
}
body.svp-inner--itemhunt #ihResults .svp-ih-head h3 a:hover,
body.svp-inner--itemhunt #ihResults .svp-ih-head h3 a:focus-visible {
  border-bottom-color: #7cc8ff !important;
  color: #fff !important;
}
body.svp-inner--itemhunt #ihResults .svp-ih-types {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin: 0 !important;
}
body.svp-inner--itemhunt #ihResults .svp-ih-types .ih-badge {
  margin: 0 !important;
}
body.svp-inner--itemhunt #ihResults .ih-source-list {
  gap: 8px !important;
}
body.svp-inner--itemhunt #ihResults .ih-source-list li {
  font-size: 17px !important;
  line-height: 24px !important;
}
/* "Show N more sources": a quiet action, a comfortable target */
body.svp-inner--itemhunt #ihResults .ih-more {
  margin-top: 8px !important;
}
body.svp-inner--itemhunt #ihResults .ih-more > summary {
  display: block !important;
  box-sizing: border-box !important;
  min-height: 44px !important;
  padding: 10px 0 !important;
  opacity: 1 !important;
  color: #9fd6ff !important;
  font: 500 13px/24px var(--sv-font-ui) !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
}
body.svp-inner--itemhunt #ihResults .ih-more > summary:hover,
body.svp-inner--itemhunt #ihResults .ih-more > summary:focus-visible {
  color: #fff !important;
}
body.svp-inner--itemhunt #ihResults .ih-card-more {
  margin: 12px 0 0 !important;
  font-size: 14px !important;
}
@media (max-width: 560px) {
  body.svp-inner--itemhunt #ihResults .ih-card {
    padding: 14px !important;
  }
  body.svp-inner--itemhunt #ihResults .svp-ih-head {
    gap: 12px !important;
  }
}

}

@layer sv-inner {

/* --------------------------------------------------------------------------
   5. "Show N more" row (the script creates it after #ihResults and toggles [hidden])
   -------------------------------------------------------------------------- */
body.svp-inner--itemhunt .svp-ih-more-row {
  display: flex !important;
  justify-content: center !important;
  margin: 16px 0 0 !important;
}
body.svp-inner--itemhunt .svp-ih-more-row[hidden] {
  display: none !important;
}
body.svp-inner--itemhunt .svp-ih-more-btn {
  min-height: 48px !important;
  padding-left: 28px !important;
  padding-right: 28px !important;
}
@media (max-width: 560px) {
  body.svp-inner--itemhunt .svp-ih-more-btn {
    width: 100% !important;
  }
}

}

@layer sv-inner {

/* --------------------------------------------------------------------------
   6. Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  main .item-hunt .ih-chip {
    transition: none !important;
  }
}

}
