:root {
  color-scheme: dark;
  --orange: #ff7b32;
  --blue: #43a7dc;
  --text: #f4f6f8;
  --muted: #c0ccd7;
  --soft: #9eb2c3;
  --line: #ffffff24;
  --panel: #101923e8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  background: #111c28;
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #0a111d18, #0a111d66 52%, #0a111dce), url('assets/brand/los-santos-skyline.webp') center bottom / cover no-repeat;
  pointer-events: none;
}
a { color: inherit; text-underline-offset: 3px; }
header, main, footer { width: min(1160px, calc(100% - 48px)); margin: auto; }
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding: 22px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0f1823e8;
  box-shadow: 0 14px 40px #00000025;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
header img { display: block; width: 255px; height: auto; }
.brand { flex-shrink: 0; }
.home-link {
  padding: 11px 15px;
  border: 1px solid #43a7dc55;
  border-radius: 8px;
  background: #43a7dc0c;
  color: #deeff9;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.home-link:hover { border-color: var(--blue); background: #43a7dc22; }
.hero {
  position: relative;
  margin: 24px 0 20px;
  padding: 42px 42px 36px;
  overflow: hidden;
  border: 1px solid #ffffff30;
  border-radius: 20px;
  background: linear-gradient(110deg, #111c29f5, #111c29df 58%, #13243480);
  box-shadow: 0 18px 55px #00000024;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--blue));
}
.eyebrow {
  display: inline-block;
  margin: 0;
  padding: 8px 11px;
  border: 1px solid #ff7b3247;
  border-radius: 6px;
  background: #ff7b3212;
  color: #ffb183;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
h1 {
  margin: 24px 0 20px;
  font-size: clamp(48px, 7.5vw, 82px);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.03;
}
h1 span {
  color: var(--orange);
  background: linear-gradient(100deg, #ff8b46, #e8a486 45%, #57b2df);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.intro { max-width: 640px; color: #d1dce5; font-size: 17px; line-height: 1.65; }
.stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 27px; }
.stats strong { margin-right: 5px; color: #fff; font-size: 26px; }
.stats span { color: #c2d3e0; font-size: 13px; }
.notice {
  padding: 20px 24px;
  border: 1px solid #ff98535c;
  border-left: 3px solid var(--orange);
  border-radius: 12px;
  background: #131e29ef;
  font-size: 13px;
  line-height: 1.65;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.notice strong { color: #ffd1b6; }
.notice p { margin: 6px 0 0; color: var(--muted); }
.notice a { color: #91d2f5; }
.explorer { padding: 28px 0 38px; }
.filters {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
label { display: flex; flex: 1; flex-direction: column; gap: 8px; min-width: 130px; color: var(--muted); font-size: 12px; }
.search { flex: 2; min-width: 230px; }
input, select, button { font: inherit; }
input, select {
  width: 100%;
  padding: 13px 12px;
  border: 1px solid #57728a70;
  border-radius: 8px;
  background: #0a141fe8;
  color: var(--text);
  font-size: 14px;
}
input::placeholder { color: #91a5b7; }
select option { background: #101b28; color: var(--text); }
button, .download {
  display: inline-block;
  padding: 11px 14px;
  border: 1px solid #ffa5687d;
  border-radius: 8px;
  background: #ff873d;
  color: #1f1711;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.secondary { border: 1px solid #43a7dc60; background: #183245c9; color: #e1f3ff; }
button:hover, .download:hover { filter: brightness(1.1); }
button:disabled { opacity: .4; cursor: default; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #ffae75; outline-offset: 4px; }
.resultbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 16px 0;
  padding: 8px 18px;
  border: 1px solid #ffffff18;
  border-radius: 10px;
  background: #101923df;
  color: var(--muted);
  font-size: 13px;
}
.resultbar a { color: #91d2f5; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #7c9bb536;
  border-radius: 14px;
  background: #0f1925ef;
  box-shadow: 0 12px 32px #00000025;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.weaponimage {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  padding: 26px;
  border-bottom: 1px solid #ffffff12;
  background: radial-gradient(ellipse at 22% 25%, #ff7b3221, transparent 65%), radial-gradient(ellipse at 85% 80%, #43a7dc22, #0b1521 78%);
}
.weaponimage img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 10px #00000065); }
.missing { color: var(--soft); font-size: 13px; line-height: 1.6; text-align: center; }
.content { padding: 20px; }
.category { color: #ffad79; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.card h2 { margin: 8px 0 6px; font-size: 23px; font-weight: 750; letter-spacing: -.025em; }
.code { display: block; overflow-wrap: anywhere; color: var(--muted); font-size: 11px; line-height: 1.7; }
.variantlabel { margin-top: 18px; }
.selected { min-height: 116px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.selected h3 { margin: 5px 0 8px; font-size: 17px; }
.selected small { color: #88c9f1; font-size: 11px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.caption { margin: 12px 0 0; color: var(--soft); font-size: 11px; line-height: 1.6; }
.source { display: inline-block; margin-top: 8px; color: #88c9f1; font-size: 11px; }
.alloptions { margin-top: 18px; color: var(--muted); font-size: 12px; }
.alloptions summary { padding: 8px 0; cursor: pointer; }
.variantrow { padding: 10px 0; border-top: 1px solid #ffffff15; }
.variantrow p { margin: 4px 0; }
.variantrow button { padding: 6px 9px; font-size: 11px; }
.variantrow .download { margin-top: 6px; padding: 6px 9px; font-size: 11px; }
.empty { grid-column: 1 / -1; padding: 60px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--muted); text-align: center; }
#pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; font-size: 13px; }
#pagination span { padding: 7px 12px; border-radius: 6px; background: #101923ed; }
.notes {
  margin-bottom: 24px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.notes h2 { margin-top: 0; font-size: 28px; letter-spacing: -.04em; }
.notesgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.notes p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.notes h3 { color: #ffb487; font-size: 16px; }
.notes a { color: #91d2f5; }
code { overflow-wrap: anywhere; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0 32px; border-top: 1px solid var(--line); color: #b5c6d4; font-size: 12px; line-height: 1.6; }
#toast { position: fixed; bottom: 24px; left: 50%; z-index: 5; display: none; max-width: calc(100% - 32px); padding: 12px 20px; border: 1px solid #ffb683; border-radius: 8px; background: #ff873d; color: #21170f; font-weight: 600; transform: translateX(-50%); box-shadow: 0 8px 30px #00000040; }
@media (max-width: 950px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { gap: 14px; }
  .filters .search { min-width: 100%; }
}
@media (max-width: 600px) {
  header, main, footer { width: calc(100% - 28px); }
  header { gap: 16px; margin-top: 14px; padding: 18px 16px; border-radius: 14px; }
  header img { width: 185px; }
  .home-link { padding: 9px 10px; font-size: 11px; text-align: center; }
  .hero { margin-top: 16px; padding: 30px 22px 28px; }
  .eyebrow { font-size: 9px; letter-spacing: .08em; }
  h1 { font-size: clamp(46px, 14vw, 64px); }
  .intro { font-size: 15px; }
  .stats { gap: 16px; }
  .stats strong { font-size: 23px; }
  .stats span { font-size: 12px; }
  .notice { padding: 17px 18px; }
  .grid, .notesgrid { grid-template-columns: 1fr; }
  .filters { padding: 18px; }
  .filters label { min-width: calc(50% - 12px); }
  .filters .search { min-width: 100%; }
  .resultbar { align-items: start; flex-direction: column; gap: 0; padding: 8px 16px 16px; }
  .weaponimage { height: 200px; }
  .notes { padding: 24px 22px; }
  .notesgrid { gap: 12px; }
  footer { flex-direction: column; gap: 8px; }
}
@media (max-width: 360px) {
  header { gap: 10px; }
  header img { width: 155px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.inventory-items{margin:14px 0;display:grid;gap:6px}.inventory-label{color:#f8b77f;font-size:11px}.inventory-note{font-size:11px;line-height:1.6;color:#99b3c7}.item-name{color:#ffc18e!important;border-color:#865630!important}.inventory-items button{justify-self:start;font-size:11px}.weaponimage.has-png{background-color:#111d2b;background-image:linear-gradient(45deg,#1a2a3b 25%,transparent 25%),linear-gradient(-45deg,#1a2a3b 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#1a2a3b 75%),linear-gradient(-45deg,transparent 75%,#1a2a3b 75%);background-size:24px 24px;background-position:0 0,0 12px,12px -12px,-12px 0}
