.tool-hero--loot {
  background: linear-gradient(90deg, #131a15 14%, #1b2620d9 52%, #1a2524a0),
    url('/assets/guides/gameplay-large-oil-rig.webp') center 54% / cover;
  margin-bottom: .85rem;
}
.tool-hero--loot .tool-hero-items img { filter: drop-shadow(0 12px 10px #101814c9); }
.loot-browser {
  --loot-line: #384a3e;
  --loot-muted: #afc2b4;
  --loot-bright: #e0eccb;
  padding: clamp(12px, 2.6vw, 28px);
  border: 1px solid var(--loot-line);
  border-radius: 16px;
  background: #18221b;
  color: #edf2ec;
}
.loot-browser [hidden] { display: none !important; }
.loot-links { display:flex; flex-wrap:wrap; gap: .6rem; margin: 0 0 1rem; }
.loot-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .8rem;
  border: 1px solid #425346; border-radius: 9px; color: #d5e6cc; background: #212d24;
}
.loot-filters { display: grid; gap: .75rem; }
.loot-switch { display: flex; flex-wrap: wrap; gap: .5rem; }
.loot-switch button, .loot-filter-fields :is(input,select) {
  min-height: 44px; border: 1px solid #4d6454; border-radius: 9px; padding: .45rem .7rem;
  background: #111b15; color: #edf2ec; font: inherit;
}
.loot-switch button { cursor: pointer; }
.loot-switch button[aria-pressed="true"] { background: #415641; border-color: #9eb48d; }
.loot-filter-fields { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: .7rem; }
.loot-filter-fields label { display: grid; align-content: start; gap: .35rem; font-size: .92rem; }
.loot-filter-fields :is(input,select) { width:100%; min-width:0; }
.loot-filter-fields input::placeholder { color: #a3b6a9; }
.loot-odds-fields { grid-template-columns: minmax(0,2fr) repeat(2,minmax(0,1fr)); }
.loot-odds-fields:has([data-loot-category]) { grid-template-columns: minmax(0,2fr) repeat(3,minmax(0,1fr)); }
.loot-help,.loot-count,.loot-notes,.loot-citation { color: #b7c8bb; }
.loot-help,.loot-count { font-size: .9rem; margin:0; }
.loot-count { padding: .9rem 0; }
.loot-browser h2 { margin: 0 0 .8rem; font-size: clamp(1.3rem,2vw,1.8rem); }
.loot-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,255px),1fr)); gap: .55rem; padding:0; margin:0; list-style:none; }
.loot-grid a {
  display:grid; grid-template-columns: 52px minmax(0,1fr) 1em; align-items:center; gap:.6rem;
  min-height: 78px; height:100%; padding:.6rem .7rem; color:inherit; text-decoration:none;
  background: linear-gradient(135deg,#27392f,#202d24 80%); border: 1px solid #3c4d40; border-radius: 11px;
}
.loot-grid a:hover,.loot-grid a:focus-visible { border-color: #9eb48d; background:#354837; }
.loot-grid img { width: 48px; height:48px; object-fit:contain; }
.loot-grid strong,.loot-grid small { display:block; overflow-wrap:anywhere; }
.loot-grid small { color:var(--loot-muted); line-height:1.4; margin-top: .15rem; }
.loot-arrow { color:#b5d7a6; justify-self:end; }
.loot-more { margin-top:1rem; min-height:44px; }
.loot-table-scroll { overflow-x: auto; border: 1px solid var(--loot-line); border-radius: 10px; }
.loot-table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; text-align:left; }
.loot-table caption { text-align:left; padding:.65rem; font-weight:700; background:#29382e; }
.loot-table :is(th,td) { padding:.55rem .65rem; border-top:1px solid var(--loot-line); }
.loot-table thead { color:var(--loot-muted); font-size:.86rem; background:#202e24; }
.loot-table tbody tr:nth-child(even) { background:#1e2b22; }
.loot-table tbody tr:hover { background:#293c2f; }
.loot-table tbody th { width:46%; min-width:120px; font-size:.94rem; }
.loot-table tbody a { display:flex; align-items:center; gap:.65rem; color:#e7efe2; overflow-wrap:anywhere; }
.loot-table tbody img { width:36px; height:36px; object-fit:contain; flex-shrink:0; }
.loot-table td { white-space: nowrap; }
.loot-table td[data-cumulative] { color:var(--loot-bright); font-weight:700; }
.loot-notes,.loot-citation { margin:.85rem 0; font-size:.93rem; }
.loot-notes p { margin: .4rem 0; }
.loot-citation a { color: #d9eac9; }
@media (max-width: 620px) {
  .tool-hero--loot:has(+ .loot-links) .tool-hero-items { display:none; }
  .loot-filter-fields,.loot-odds-fields:has([data-loot-category]) { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .loot-odds-fields label:first-child { grid-column: 1 / -1; }
  .loot-table :is(th,td) { padding:.45rem .37rem; font-size: .80rem; }
  .loot-table tbody img { width:26px; height:26px; }
  .loot-table tbody a { gap:.32rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .loot-grid a { transition: background .2s ease, border-color .2s ease; }
  .loot-grid a img { transition: transform .2s ease; }
  .loot-grid a:is(:hover,:focus-visible) img { transform: scale(1.11) rotate(-5deg); }
}
