/* Arbor Research spec site, gamer theme. Built on a HUD panel system: clipped corners, one bold element (the XP bar). */
@font-face { font-family: "Tektur"; src: url("../fonts/Tektur-normal-400-900.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("../fonts/AtkinsonHyperlegible-normal-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("../fonts/AtkinsonHyperlegible-normal-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("../fonts/AtkinsonHyperlegible-italic-400.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --void: #0E0A24;
  --panel: #19133A;
  --panel-2: #221A4D;
  --line: #3A2F7A;
  --text: #EDE9FF;
  --muted: #A79FD6;
  --xp: #FF4FD8;
  --loot: #FFC83D;
  --cyan: #34E7F8;
  --bad: #FF6B6B;
  /* item classes: type only, never strength */
  --c-peptide: #5AA9FF;
  --c-blend: #B47BFF;
  --c-small: #3EE6A8;
  --c-supply: #C9C3E8;
  --cut: 14px;
  --display: "Tektur", "Atkinson", system-ui, sans-serif;
  --body: "Atkinson", system-ui, -apple-system, sans-serif;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0; background: var(--void); color: var(--text);
  font: 400 1rem/1.55 var(--body);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 79, 216, .10), transparent 60%),
    linear-gradient(rgba(58, 47, 122, .22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 47, 122, .22) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  background-attachment: fixed, scroll, scroll;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #9ff6ff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
button { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* type scale (1.25 ratio) */
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; margin: 0 0 var(--s3); letter-spacing: .005em; }
h1 { font-size: clamp(2.2rem, 7vw, 4.4rem); font-weight: 800; font-stretch: 112%; }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 650; }
h4 { font-size: 1rem; font-weight: 650; }
p { margin: 0 0 var(--s4); max-width: 66ch; }
.lede { font-size: 1.15rem; color: var(--muted); }
.small { font-size: .875rem; color: var(--muted); }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.section { padding-block: var(--s7); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); }
.section-head p { margin: 0; color: var(--muted); }
@media (min-width: 900px) { .section { padding-block: var(--s8); } }

/* HUD panel: the one container shape on the site */
.hud {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  padding: var(--s5);
}
.hud--flat { background: transparent; }
.hud--lift { background: var(--panel-2); }

/* spec strip */
.spec-strip { background: #000; color: var(--muted); font-size: .8rem; text-align: center; padding: 6px 12px; border-bottom: 1px solid var(--line); }
.spec-strip strong { color: var(--loot); font-weight: 700; }

/* loot drop bar */
.drop-bar { background: linear-gradient(90deg, #2a0f3f, #1a1050); border-bottom: 1px solid var(--line); }
.drop-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px; padding: 8px 0; font-size: .9rem; }
.drop-bar .why { display: none; }
@media (min-width: 700px) { .drop-bar .why { display: inline; } }
.drop-bar b { font-family: var(--display); color: var(--loot); font-weight: 700; }
.timer { font-family: var(--display); font-variant-numeric: tabular-nums; color: var(--text); }

/* header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--void); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: var(--s4); height: 60px; }
.logo { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--text); font-family: var(--display); }
.logo b { font-size: 1.45rem; font-weight: 900; font-stretch: 125%; letter-spacing: .06em; }
.logo span { font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
.nav { display: none; gap: 2px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; padding: 8px 10px; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--cyan); }
.header-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
@media (min-width: 1080px) { .nav { display: flex; } .header-tools { margin-left: var(--s3); } }
.icon-btn { background: none; border: 1px solid transparent; padding: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--text); text-decoration: none; }
.icon-btn:hover { border-color: var(--line); }
.icon-btn svg { width: 22px; height: 22px; }
.bag-count { font-family: var(--display); font-size: .8rem; min-width: 22px; height: 22px; display: inline-grid; place-items: center; background: var(--xp); color: #1a0017; font-weight: 800; padding: 0 5px; }
.menu-btn { display: inline-flex; }
@media (min-width: 1080px) { .menu-btn { display: none; } }
.lvl-chip { display: none; font-family: var(--display); font-size: .8rem; color: var(--xp); border: 1px solid rgba(255, 79, 216, .5); padding: 3px 8px; text-decoration: none; }
@media (min-width: 560px) { .lvl-chip { display: inline-block; } }

/* mobile menu */
.mnav { position: fixed; inset: 0; z-index: 60; background: rgba(5, 3, 15, .7); display: none; }
.mnav.open { display: block; }
.mnav .hud { position: absolute; top: 0; right: 0; width: min(340px, 88vw); height: 100%; clip-path: none; border-width: 0 0 0 1px; display: flex; flex-direction: column; gap: 2px; padding-top: var(--s6); }
.mnav a { color: var(--text); text-decoration: none; font-family: var(--display); font-size: 1.2rem; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.mnav .close { position: absolute; top: 10px; right: 10px; }

/* buttons */
.btn {
  --bg: var(--loot); --fg: #241400;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  background: var(--bg); color: var(--fg); border: 0; cursor: pointer; text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: .01em;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn:hover { color: var(--fg); filter: brightness(1.08); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.btn--ghost { --bg: transparent; --fg: var(--text); box-shadow: inset 0 0 0 1px var(--line); clip-path: none; }
.btn--ghost:hover { --fg: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan); }
.btn--xp { --bg: var(--xp); --fg: #1a0017; }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* XP bar: the signature element */
.xp { --pct: 40%; --pend: 0%; }
.xp-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; font-size: .9rem; }
.xp-top .num { color: var(--xp); font-weight: 700; }
.xp-track { position: relative; height: 18px; background: #0a0720; border: 1px solid var(--line); overflow: hidden; }
.xp-fill, .xp-pend { position: absolute; top: 0; bottom: 0; left: 0; }
.xp-fill { width: var(--pct); background: linear-gradient(90deg, #a6248e, var(--xp)); box-shadow: 0 0 18px rgba(255, 79, 216, .65); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.xp-pend { left: var(--pct); width: var(--pend); background: repeating-linear-gradient(135deg, rgba(255, 79, 216, .55) 0 6px, rgba(255, 79, 216, .18) 6px 12px); transition: left .6s, width .6s; }
.xp-track::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(14, 10, 36, .9) calc(10% - 1px) 10%); pointer-events: none; }
.xp-note { margin-top: 6px; font-size: .85rem; color: var(--muted); }
.xp-note b { color: var(--xp); }
@keyframes lvlpulse { 0% { box-shadow: 0 0 0 0 rgba(255, 79, 216, .8); } 100% { box-shadow: 0 0 0 18px rgba(255, 79, 216, 0); } }
.xp.bump .xp-track { animation: lvlpulse .7s ease-out; }

/* hero */
.hero { padding-block: var(--s6) var(--s7); }
.hero-grid { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: var(--s7); } .hero { padding-block: var(--s8); } }
.hero h1 { margin-bottom: var(--s4); }
.hero h1 .line2 { display: block; color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.hero .ruo { margin-top: var(--s5); font-size: .9rem; color: var(--muted); border-left: 3px solid var(--loot); padding-left: var(--s3); max-width: 56ch; }
.player { display: grid; gap: var(--s4); }
.player-head { display: flex; align-items: center; gap: var(--s4); }
.avatar { width: 64px; height: 64px; flex: none; background: var(--panel-2); border: 1px solid var(--line); display: grid; place-items: center; }
.player-name { font-family: var(--display); font-size: 1.2rem; font-weight: 700; }
.player-rank { color: var(--muted); font-size: .9rem; }
.lvl-big { margin-left: auto; text-align: right; font-family: var(--display); }
.lvl-big .n { font-size: 2.6rem; font-weight: 900; line-height: 1; color: var(--xp); text-shadow: 0 0 22px rgba(255, 79, 216, .55); }
.lvl-big .l { font-size: .8rem; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat-grid > div { background: var(--panel); padding: 10px 12px; }
.stat-grid dt { font-size: .78rem; color: var(--muted); }
.stat-grid dd { margin: 2px 0 0; font-family: var(--display); font-size: 1.15rem; font-weight: 700; }

/* perks row */
.perks { display: grid; gap: var(--s3); grid-template-columns: 1fr; }
@media (min-width: 560px) { .perks { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .perks { grid-template-columns: repeat(4, 1fr); } }
.perk { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s4); }
.perk svg { flex: none; width: 28px; height: 28px; color: var(--loot); }
.perk b { display: block; font-family: var(--display); font-size: .98rem; }
.perk span { font-size: .85rem; color: var(--muted); }

/* tabs / chips */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: var(--s4); scrollbar-width: thin; }
.tab { flex: none; background: transparent; border: 1px solid var(--line); padding: 8px 14px; cursor: pointer; font-size: .92rem; color: var(--text); }
.tab[aria-selected="true"] { background: var(--text); color: var(--void); border-color: var(--text); font-weight: 700; }
.tab .dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; background: var(--cls, var(--muted)); vertical-align: 1px; }

/* item grid and card */
.grid { display: grid; gap: var(--s3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); } }
@media (min-width: 1080px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.item { --cls: var(--c-peptide); display: flex; flex-direction: column; padding: 0; }
.item[data-kind="blend"] { --cls: var(--c-blend); }
.item[data-kind="small-molecule"] { --cls: var(--c-small); }
.item[data-kind="other"] { --cls: var(--c-supply); }
.item-art { position: relative; aspect-ratio: 1 / 1; background: radial-gradient(60% 55% at 50% 58%, color-mix(in srgb, var(--cls) 30%, transparent), transparent 70%), #120d2e; border-bottom: 1px solid var(--line); display: grid; place-items: center; text-decoration: none; }
.item-art svg { width: 58%; height: auto; }
.item-tags { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; justify-content: space-between; gap: 6px; font-size: .72rem; }
.tag { padding: 2px 7px; background: rgba(14, 10, 36, .85); border: 1px solid var(--line); color: var(--text); }
.tag--cls { border-color: var(--cls); color: var(--cls); }
.tag--drop { background: var(--loot); color: #241400; border-color: var(--loot); font-weight: 700; }
.tag--new { background: var(--xp); color: #1a0017; border-color: var(--xp); font-weight: 700; }
.tag--out { color: var(--bad); border-color: var(--bad); }
.item-body { padding: var(--s3) var(--s3) var(--s4); display: flex; flex-direction: column; gap: 4px; flex: 1; }
@media (min-width: 700px) { .item-body { padding: var(--s4); } }
.item-name { font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--text); text-decoration: none; line-height: 1.2; }
.item-name:hover { color: var(--cyan); }
.item-sizes { font-size: .8rem; color: var(--muted); }
.item-price { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 8px; }
.price { font-family: var(--display); font-weight: 800; color: var(--loot); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.price small { font-size: .7rem; color: var(--muted); font-weight: 400; margin-right: 4px; }
.xp-gain { font-size: .78rem; color: var(--xp); font-family: var(--display); white-space: nowrap; }
.item .btn { margin-top: var(--s3); }

/* class list legend */
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .85rem; color: var(--muted); margin-top: var(--s3); }
.legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: 0; }

/* new drops rail */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: var(--s3); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.rail > * { scroll-snap-align: start; }
.drop { display: flex; gap: var(--s3); align-items: center; padding: var(--s3); text-decoration: none; color: var(--text); }
.drop svg { width: 56px; flex: none; }
.drop b { font-family: var(--display); display: block; }
.drop span { font-size: .82rem; color: var(--muted); }

/* feature split */
.split { display: grid; gap: var(--s4); }
@media (min-width: 900px) { .split { grid-template-columns: repeat(3, 1fr); } .split > .wide { grid-column: span 2; } }
.split .hud h3 { margin-top: var(--s2); }
.split .hud p { color: var(--muted); }

/* ranks */
.ranks { display: grid; gap: var(--s3); }
@media (min-width: 760px) { .ranks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .ranks { grid-template-columns: repeat(4, 1fr); } }
.rank { display: flex; flex-direction: column; gap: var(--s2); }
.rank-ico { width: 44px; height: 44px; }
.rank .mult { font-family: var(--display); font-size: 2rem; font-weight: 900; color: var(--xp); line-height: 1; }
.rank .cost { font-family: var(--display); color: var(--loot); font-weight: 700; font-size: 1.15rem; }
.rank ul { list-style: none; padding: 0; margin: var(--s2) 0 var(--s4); font-size: .92rem; color: var(--muted); display: grid; gap: 6px; }
.rank li::before { content: "+"; color: var(--xp); font-family: var(--display); font-weight: 800; margin-right: 8px; }
.rank .btn { margin-top: auto; }
.rank.is-pick { background: var(--panel-2); border-color: var(--xp); }

/* achievements */
.badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
@media (min-width: 760px) { .badges { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .badges { grid-template-columns: repeat(6, 1fr); } }
.badge { text-align: center; padding: var(--s4) var(--s3); display: grid; justify-items: center; gap: 6px; }
.badge svg { width: 54px; height: 54px; filter: grayscale(1) opacity(.45); }
.badge b { font-family: var(--display); font-size: .95rem; }
.badge span { font-size: .8rem; color: var(--muted); }
.badge.got svg { filter: drop-shadow(0 0 10px rgba(255, 200, 61, .5)); }
.badge.got b { color: var(--loot); }

/* proof stats */
.proof { display: grid; gap: var(--s3); grid-template-columns: 1fr; }
@media (min-width: 760px) { .proof { grid-template-columns: repeat(3, 1fr); } }
.proof .hud .big { font-family: var(--display); font-size: 2.1rem; font-weight: 800; color: var(--cyan); line-height: 1.05; }

/* quest log (FAQ) */
.quests { display: grid; gap: var(--s2); }
.quest { padding: 0; }
.quest summary { list-style: none; cursor: pointer; display: flex; gap: var(--s3); align-items: center; padding: var(--s4); font-weight: 700; }
.quest summary::-webkit-details-marker { display: none; }
.quest summary .q-box { flex: none; width: 18px; height: 18px; border: 2px solid var(--muted); display: grid; place-items: center; }
.quest[open] summary .q-box, .quest.done summary .q-box { border-color: var(--xp); background: var(--xp); }
.quest[open] summary .q-box::after, .quest.done summary .q-box::after { content: ""; width: 8px; height: 4px; border: solid #1a0017; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
.quest summary .q-xp { margin-left: auto; font-family: var(--display); font-size: .78rem; color: var(--muted); white-space: nowrap; }
.quest .ans { padding: 0 var(--s4) var(--s4) calc(var(--s4) + 18px + var(--s3)); color: var(--muted); }
.quest .ans p { margin-bottom: var(--s2); }
.qgroup { margin-bottom: var(--s6); }
.qgroup-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); margin-bottom: var(--s3); }
.qgroup-head .num { color: var(--muted); font-size: .9rem; }

/* product page */
.crumbs { font-size: .85rem; color: var(--muted); padding-top: var(--s5); }
.crumbs a { color: var(--muted); }
.pdp { display: grid; gap: var(--s5); padding-block: var(--s4) var(--s7); }
@media (min-width: 900px) { .pdp { grid-template-columns: 1fr 1fr; gap: var(--s7); align-items: start; } .pdp-art { position: sticky; top: 84px; } }
.pdp-art { aspect-ratio: 1 / 1; display: grid; place-items: center; padding: var(--s6); }
.pdp-art svg { width: 62%; }
.pdp h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.pdp .price { font-size: 2rem; }
.opt-label { font-size: .9rem; color: var(--muted); margin: var(--s5) 0 var(--s2); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size { background: transparent; border: 1px solid var(--line); padding: 10px 14px; cursor: pointer; min-width: 72px; text-align: center; }
.size small { display: block; font-size: .75rem; color: var(--muted); }
.size[aria-pressed="true"] { border-color: var(--loot); box-shadow: inset 0 0 0 1px var(--loot); }
.size:disabled { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.buy-row { display: flex; gap: var(--s3); margin-top: var(--s5); }
.qty { display: inline-flex; border: 1px solid var(--line); }
.qty button { width: 44px; background: none; border: 0; cursor: pointer; font-size: 1.2rem; }
.qty output { width: 40px; display: grid; place-items: center; font-family: var(--display); }
.buy-row .btn { flex: 1; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: var(--s5); }
.specs > div { background: var(--panel); padding: 12px; }
.specs dt { font-size: .78rem; color: var(--muted); }
.specs dd { margin: 2px 0 0; font-weight: 700; }
.ruo-box { margin-top: var(--s5); border: 1px solid var(--loot); padding: var(--s4); font-size: .92rem; background: rgba(255, 200, 61, .06); }
.ruo-box b { color: var(--loot); font-family: var(--display); }
.placeholder { border: 1px dashed var(--muted); padding: var(--s4); color: var(--muted); font-size: .9rem; }

/* drawer */
.drawer { position: fixed; inset: 0; z-index: 70; display: none; }
.drawer.open { display: block; }
.drawer-bg { position: absolute; inset: 0; background: rgba(5, 3, 15, .7); }
.drawer-panel { position: absolute; top: 0; right: 0; height: 100%; width: min(420px, 100%); background: var(--panel); border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.3rem; margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: var(--s4) var(--s5); }
.drawer-foot { border-top: 1px solid var(--line); padding: var(--s4) var(--s5); display: grid; gap: var(--s3); }
.line { display: grid; grid-template-columns: 56px 1fr auto; gap: var(--s3); align-items: center; padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.line svg { width: 48px; }
.line .ln-name { font-family: var(--display); font-weight: 700; }
.line .ln-meta { font-size: .8rem; color: var(--muted); }
.line .ln-price { text-align: right; font-family: var(--display); }
.line .ln-price .free { color: var(--xp); font-weight: 800; }
.line .ln-price s { color: var(--muted); font-size: .8rem; display: block; }
.line .ln-ctrl { display: flex; gap: 6px; align-items: center; margin-top: 4px; }
.line .ln-ctrl button { background: none; border: 1px solid var(--line); width: 28px; height: 28px; cursor: pointer; }
.line .ln-ctrl .rm { width: auto; padding: 0 8px; font-size: .8rem; color: var(--muted); }
.totals { display: grid; gap: 4px; font-size: .95rem; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-family: var(--display); font-size: 1.2rem; font-weight: 800; }
.totals .grand span:last-child { color: var(--loot); }
.empty { text-align: center; padding: var(--s7) var(--s3); color: var(--muted); }

/* bag extras */
.ship { margin-bottom: var(--s3); }
.ship-track { height: 8px; background: #0a0720; border: 1px solid var(--line); margin-top: 6px; }
.ship-track i { display: block; height: 100%; background: var(--cyan); }
.suggest { margin-top: var(--s4); padding: var(--s4); }
.suggest b { font-family: var(--display); color: var(--xp); }
.suggest p { margin: 4px 0 var(--s2); }
.sug { display: grid; grid-template-columns: 40px 1fr auto; gap: var(--s3); align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.sug svg { width: 34px; }
.sug s { color: var(--muted); }

/* toast */
.toasts { pointer-events: none; position: fixed; left: 50%; top: 12px; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(380px, calc(100% - 24px)); }
.toast { display: flex; gap: var(--s3); align-items: center; padding: var(--s3) var(--s4); background: var(--panel-2); border: 1px solid var(--loot); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); animation: toastin .35s ease-out; }
.toast svg { width: 36px; height: 36px; flex: none; }
.toast b { font-family: var(--display); color: var(--loot); display: block; }
.toast span { font-size: .85rem; color: var(--muted); }
@keyframes toastin { from { transform: translateY(-16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* gate */
.gate { position: fixed; inset: 0; z-index: 100; background: rgba(5, 3, 15, .94); display: grid; place-items: center; padding: 16px; }
.gate .hud { width: min(520px, 100%); padding: var(--s6) var(--s5); background: var(--panel); }
.gate h2 { font-size: clamp(1.6rem, 6vw, 2.1rem); }
.gate label { display: flex; gap: var(--s3); align-items: flex-start; border: 1px solid var(--line); padding: var(--s4); margin: var(--s4) 0; cursor: pointer; font-size: .95rem; }
.gate input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--xp); flex: none; }
.gate .exit { display: block; text-align: center; margin-top: var(--s3); color: var(--muted); font-size: .9rem; }
.gate .fine { font-size: .78rem; color: var(--muted); margin: var(--s4) 0 0; }

/* forms */
.field { display: grid; gap: 6px; margin-bottom: var(--s4); }
.field label { font-size: .9rem; color: var(--muted); }
.field input, .field select, .field textarea { background: #0a0720; border: 1px solid var(--line); color: var(--text); padding: 12px; font: inherit; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan); outline: none; }
.form-note { font-size: .85rem; color: var(--muted); }

/* page heads */
.page-head { padding-block: var(--s7) var(--s5); }
.page-head p { color: var(--muted); font-size: 1.1rem; }

/* catalog toolbar */
.toolbar { display: grid; gap: var(--s3); margin-bottom: var(--s4); }
@media (min-width: 760px) { .toolbar { grid-template-columns: 1fr auto auto; align-items: center; } }
.toolbar input, .toolbar select { background: #0a0720; border: 1px solid var(--line); color: var(--text); padding: 11px 12px; font: inherit; }
.count { font-size: .9rem; color: var(--muted); margin-bottom: var(--s3); }

/* box builder (squad) */
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); }
.slot { aspect-ratio: 3 / 4; border: 1px dashed var(--line); display: grid; place-items: center; text-align: center; font-size: .78rem; color: var(--muted); padding: 6px; position: relative; min-width: 0; overflow-wrap: anywhere; }
.slot.filled { border-style: solid; border-color: var(--xp); background: var(--panel-2); color: var(--text); }
.slot svg { width: 60%; }
.slot button { position: absolute; top: 2px; right: 2px; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1rem; padding: 4px; }
.box-layout { display: grid; gap: var(--s5); }
@media (min-width: 960px) { .box-layout { grid-template-columns: 1fr 380px; align-items: start; } .box-side { position: sticky; top: 84px; } }
.pick-list { display: grid; gap: 6px; }
.pick { display: grid; grid-template-columns: 40px 1fr auto auto; gap: var(--s3); align-items: center; padding: 8px var(--s3); background: var(--panel); border: 1px solid var(--line); }
.pick svg { width: 34px; }
@media (max-width: 559px) { .pick { grid-template-columns: 34px 1fr auto; } .pick > :last-child { grid-column: 2 / -1; justify-self: start; } }
.pick b { font-family: var(--display); font-size: .95rem; }
.pick .was { color: var(--muted); font-size: .8rem; text-decoration: line-through; margin-right: 6px; }

/* tier meter (bulk) */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: var(--s3); }
.tiers > div { background: var(--panel); padding: 10px; text-align: center; }
.tiers > div.on { background: var(--panel-2); box-shadow: inset 0 -3px 0 var(--xp); }
.tiers b { font-family: var(--display); display: block; font-size: 1.1rem; }
.tiers span { font-size: .78rem; color: var(--muted); }

/* policy */
.policy { display: grid; gap: var(--s5); padding-bottom: var(--s7); }
@media (min-width: 900px) { .policy { grid-template-columns: 240px 1fr; } .policy nav { position: sticky; top: 84px; align-self: start; } }
.policy nav a { display: block; color: var(--muted); text-decoration: none; padding: 6px 0; font-size: .92rem; }
.policy nav a:hover { color: var(--cyan); }
.policy section { margin-bottom: var(--s5); }
.policy h2 { font-size: 1.3rem; }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: var(--s7); padding-block: var(--s7) var(--s6); background: rgba(5, 3, 15, .55); }
.disclaimer { font-size: .85rem; color: var(--muted); border: 1px solid var(--line); padding: var(--s4); margin-bottom: var(--s6); max-width: none; }
.disclaimer b { color: var(--text); }
.foot-cols { display: grid; gap: var(--s5); grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .foot-cols { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.foot-cols h4 { color: var(--text); margin-bottom: var(--s3); }
.foot-cols a { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; font-size: .92rem; }
.foot-cols a:hover { color: var(--cyan); }
.foot-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .foot-brand { grid-column: auto; } }
.news { display: flex; gap: 8px; margin-top: var(--s3); }
.news input { flex: 1; min-width: 0; background: #0a0720; border: 1px solid var(--line); color: var(--text); padding: 10px 12px; font: inherit; }
.copyright { margin-top: var(--s6); font-size: .8rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---- Arbor build additions ---- */
@font-face { font-family: "Fraunces"; src: url("../fonts/Fraunces-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
.logo-svg { height: 34px; width: auto; }
.foot-brand .logo-svg, .gate-logo .logo-svg { height: 40px; }
.gate-logo { margin-bottom: var(--s4); }
.acct-btn { display: none; }
@media (min-width: 560px) { .acct-btn { display: inline-flex; } }
.vial-img { width: 100%; height: auto; object-fit: contain; }
.item-art .vial-img { width: 78%; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .55)); }
.pdp-art .vial-img { width: 82%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6)); }
.pdp-art { background: radial-gradient(60% 55% at 50% 58%, color-mix(in srgb, var(--cls, #5AA9FF) 28%, transparent), transparent 70%), #120d2e; }
.line .vial-img, .sug .vial-img, .pick .vial-img { width: 100%; }
.line > a { display: block; width: 48px; }
.drop .vial-img { width: 56px; flex: none; }
.slot .vial-img { width: 62%; }
.idline { font-family: var(--display); font-size: .85rem; color: var(--muted); margin: -4px 0 var(--s3); }
.pdp .price small { font-family: var(--body); font-weight: 400; }
.rank-state { margin-top: auto; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: var(--s2); }
.rank.is-pick .rank-state { color: var(--xp); font-weight: 700; }
@media (min-width: 1080px) { .ranks--5 { grid-template-columns: repeat(5, 1fr); } .badges--8 { grid-template-columns: repeat(4, 1fr); } }
/* order level meter */
.lmeter { margin: var(--s3) 0 var(--s4); }
.lm-top { display: flex; justify-content: space-between; gap: var(--s3); align-items: baseline; flex-wrap: wrap; margin-bottom: 8px; font-size: .92rem; }
.lm-top b { color: var(--loot); }
.lm-track { position: relative; height: 10px; background: #0a0720; border: 1px solid var(--line); margin-bottom: 34px; }
.lm-track > i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #b8860b, var(--loot)); }
.lm-mark { position: absolute; top: -4px; transform: translateX(-100%); text-align: right; white-space: nowrap; }
.lm-mark::before { content: ""; position: absolute; right: 0; top: 0; width: 2px; height: 16px; background: var(--line); }
.lm-mark.on::before { background: var(--loot); }
.lm-mark b { display: block; margin-top: 18px; font-family: var(--display); font-size: .72rem; color: var(--muted); padding-right: 4px; }
.lm-mark small { display: none; }
.lm-mark.on b { color: var(--loot); }
@media (min-width: 700px) { .lm-mark small { display: block; font-size: .68rem; color: var(--muted); padding-right: 4px; } .lm-track { margin-bottom: 46px; } }
/* search overlay */
.search { position: fixed; inset: 0; z-index: 80; background: rgba(5, 3, 15, .88); display: none; padding-top: 72px; }
.search.open { display: block; }
.search-box { display: flex; gap: 8px; align-items: center; border-bottom: 2px solid var(--cyan); }
.search-box input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text); font: 600 1.4rem var(--display); padding: 14px 4px; }
.search-box input:focus { outline: none; }
.search-res { margin-top: var(--s4); display: grid; gap: 6px; max-height: calc(100vh - 180px); overflow-y: auto; }
.sres { display: grid; grid-template-columns: 44px 1fr auto; gap: var(--s3); align-items: center; padding: 8px var(--s3); background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.sres:hover, .sres:focus-visible { border-color: var(--cyan); color: var(--text); }
.sres small { display: block; color: var(--muted); }
.sres .price { font-size: 1rem; }
/* tables */
.table-wrap { overflow-x: auto; }
.lots { width: 100%; border-collapse: collapse; font-size: .9rem; margin-bottom: var(--s2); }
.lots th { text-align: left; color: var(--muted); font-weight: 400; font-size: .8rem; border-bottom: 1px solid var(--line); padding: 8px 10px; }
.lots td { border-bottom: 1px solid var(--line); padding: 10px; font-variant-numeric: tabular-nums; }
.lots td:first-child { font-family: var(--display); }
.linkbtn { background: none; border: 0; color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0; }
.cert { position: relative; overflow: hidden; }
.specimen { position: absolute; right: -36px; top: 18px; transform: rotate(35deg); background: var(--bad); color: #1a0000; font-family: var(--display); font-weight: 800; font-size: .75rem; padding: 4px 44px; }
.pdp-more { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .pdp-more { grid-template-columns: 1fr 1.3fr; } }
.chk { display: inline-flex; gap: 10px; align-items: center; cursor: pointer; }
.chk input { width: 18px; height: 18px; accent-color: var(--xp); flex: none; }
@media (min-width: 760px) { .toolbar--3 { grid-template-columns: 1fr auto auto; } }
.sel { background: #0a0720; border: 1px solid var(--line); color: var(--text); padding: 10px 12px; font: inherit; }
.lookup { display: flex; gap: 8px; flex-wrap: wrap; }
.lookup input { flex: 1; min-width: 220px; background: #0a0720; border: 1px solid var(--line); color: var(--text); padding: 12px; font: inherit; }
.faq-search { margin-top: var(--s4); max-width: 560px; }
.faq-search input { width: 100%; background: #0a0720; border: 1px solid var(--line); color: var(--text); padding: 12px; font: inherit; }
.field-row { display: grid; gap: var(--s3); grid-template-columns: 2fr 1fr; }
.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 var(--s4); font-family: var(--display); font-size: .85rem; color: var(--muted); }
.steps li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.steps [aria-current] { color: var(--xp); }
.policy nav a[aria-current] { color: var(--text); }
.item-art .vial-img { width: auto; height: 86%; margin-top: 6%; }
.pdp-art .vial-img { width: auto; height: 90%; }
.pdp-art { padding: var(--s4); }
.pdp > *, .box-layout > *, .pdp-more > *, .hero-grid > * { min-width: 0; }
.specs dd, .idline, .ln-meta { overflow-wrap: anywhere; }
.size { max-width: 100%; }
.pdp { padding-bottom: var(--s6); }
.pdp-more h2 { margin-top: 0; }

@media (max-width: 899px) { .pdp-art { aspect-ratio: 4 / 3; } .pdp-art .vial-img { height: 96%; } }

/* fix pass arb2: phone product page keeps price, sizes, quantity and Add to bag above the fold */
@media (max-width: 899px) {
  .crumbs { padding-top: var(--s3); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pdp { gap: var(--s3); padding-top: var(--s2); }
  .pdp-art { aspect-ratio: auto; height: 220px; padding: var(--s2); }
  .pdp-art .vial-img { height: 204px; width: auto; max-width: 100%; object-fit: contain; }
  .pdp h1 { font-size: 1.7rem; margin: 6px 0 4px; line-height: 1.1; }
  .pdp .idline { margin: 0 0 6px; font-size: .78rem; }
  .pdp .price { font-size: 1.6rem; }
  .pdp .opt-label { margin: var(--s3) 0 6px; }
  .pdp .size { padding: 6px 10px; }
  .pdp .buy-row { margin-top: var(--s3); }
  .pdp .qty button { height: 44px; }
}
/* search overlay: one close control, solid backdrop */
.search { background: var(--void); }
.search-box input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }

/* ---------- mobile fix pass (10-21, arbor-mobile-fix BUGS.md) ---------- */
/* 1: phone top chrome, the two bars on one line each */
@media (max-width: 699px) {
  .spec-strip { font-size: .75rem; padding: 4px 10px; line-height: 1.35; }
  .drop-bar .wrap { padding: 5px 0; font-size: .8rem; gap: 2px 8px; flex-wrap: nowrap; white-space: nowrap; }
}
/* 2: toasts come one at a time (app.js queue) and stay compact on phones, so the bag foot and its Check out stay clear */
@media (max-width: 959px) {
  .toast { padding: 10px 12px; }
  .toast svg { width: 28px; height: 28px; }
}
/* 3, 4: phone bar for cart, checkout, box and bulk */
.mbar { display: none; }
@media (max-width: 959px) {
  .mbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: #19133A; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0, 0, 0, .45); padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); transition: transform .2s ease; }
  .mbar.off { transform: translateY(110%); }
  .mbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
  .mbar-sum { min-width: 0; display: grid; line-height: 1.25; }
  .mbar-sum b { font-family: var(--display); color: var(--loot); font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mbar-sum span { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mbar .btn { flex: none; min-height: 48px; padding: 0 20px; }
  body.has-mbar .site-footer { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}
/* 5: selects look and size the same as the inputs in Safari */
select, .sel, .field select, .toolbar select {
  -webkit-appearance: none; appearance: none; min-height: 44px; border-radius: 0; line-height: 1.3;
  padding-right: 38px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A79FD6' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
select option { background: #0a0720; color: var(--text); }
.field input, .toolbar input, .lookup input, .faq-search input, .news input { min-height: 44px; border-radius: 0; }
/* 6: 44 px touch targets on phones and tablets */
@media (max-width: 1079px), (pointer: coarse) {
  .icon-btn { min-width: 44px; min-height: 44px; justify-content: center; }
  .tab { min-height: 44px; }
  .btn--sm { min-height: 44px; }
  .line .ln-ctrl button { width: 44px; height: 44px; }
  .line .ln-ctrl .rm { width: auto; height: 44px; padding: 0 12px; }
  .qty button { min-height: 44px; }
  .qty output { min-height: 44px; }
  .foot-cols a { display: flex; align-items: center; min-height: 44px; padding: 0; }
  .policy nav a { display: flex; align-items: center; min-height: 44px; padding: 0; }
  .crumbs a, .linkbtn, .lots a, main div > a:not([class]) { display: inline-block; padding-block: 13px; margin-block: -13px; }
  .lvl-chip { min-height: 44px; line-height: 36px; }
  .item-name { padding-block: 12px; margin-block: -12px; }
  .mnav a { display: flex; align-items: center; min-height: 48px; }
  .linkbtn, .lots a { min-width: 44px; text-align: center; }
  .slot button { min-width: 44px; min-height: 44px; top: -6px; right: -6px; }
  .news .btn { min-height: 44px; }
  input[type="range"] { height: 44px; margin: 4px 0 !important; }
  .chk { min-height: 44px; }
  .gate label { min-height: 44px; }
}
/* 7: tables keep lot numbers and dates on one line; edge fade shows more columns */
@media (max-width: 699px) {
  .lots { font-size: .84rem; }
  .lots th, .lots td { white-space: nowrap; padding: 9px 8px; }
  .lots td.wrap { white-space: normal; min-width: 96px; }
}
.table-wrap { -webkit-overflow-scrolling: touch; }
.table-wrap.more-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
.table-wrap.more-l { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); }
.table-wrap.more-l.more-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent); }
/* 8: filter tabs fade at the right edge on phones so they read as a scroller */
@media (max-width: 699px) {
  .tabs { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); padding-right: 40px; scroll-padding-inline: 16px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
}
/* 9: 12 px text floor */
.price small { font-size: .75rem; }
.lm-mark b { font-size: .78rem; }
@media (min-width: 700px) { .lm-mark small { font-size: .75rem; } }
/* 11, 12: overlays lock the page behind; heights follow the visible iOS viewport; home bar clearance */
html.ov-open, html.ov-open body { overflow: hidden; }
.search-res { max-height: calc(100dvh - 180px); }
.drawer-foot { padding-bottom: calc(var(--s4) + env(safe-area-inset-bottom)); }
.mnav .hud { overflow-y: auto; padding-bottom: calc(var(--s4) + env(safe-area-inset-bottom)); }
@media (max-width: 1079px), (pointer: coarse) { .crumbs a { padding-inline: 8px; margin-inline: -8px; } }
.icon-btn svg { flex: none; }
/* cart and bag lines on phones: quantity row spans under the name so the price never gets pushed off */
@media (max-width: 559px) {
  .line { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "art name price" "art meta price" "art ctrl ctrl"; column-gap: var(--s3); row-gap: 2px; }
  .line > a { grid-area: art; width: 44px; align-self: start; }
  .line > div:nth-child(2) { display: contents; }
  .line .ln-name { grid-area: name; } .line .ln-meta { grid-area: meta; } .line .ln-ctrl { grid-area: ctrl; margin-top: 6px; }
  .line .ln-price { grid-area: price; align-self: start; }
}
/* box and bulk rows on phones: action stays on the right of the row instead of a second line (halves the list length) */
@media (max-width: 559px) {
  .pick { grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-areas: "art info act" "art price act"; row-gap: 2px; column-gap: var(--s3); }
  .pick > :nth-child(1) { grid-area: art; }
  .pick > :nth-child(2) { grid-area: info; }
  .pick > :nth-child(3) { grid-area: price; justify-self: start; }
  .pick > :last-child { grid-area: act; grid-column: auto; justify-self: end; align-self: center; }
}
/* round 1 review: short spec strip copy on phones, lot numbers never split, policy section index folds on phones */
.ss-short { display: none; }
@media (max-width: 699px) { .ss-long { display: none; } .ss-short { display: inline; } }
.nw { white-space: nowrap; }
.pol-toc summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 44px; color: var(--text); font-family: var(--display); border-top: 1px solid var(--line); margin-top: 8px; }
.pol-toc summary::-webkit-details-marker { display: none; }
.pol-toc summary::after { content: "+"; color: var(--muted); font-size: 1.2rem; }
.pol-toc[open] summary::after { content: "\2212"; }
@media (min-width: 900px) { .pol-toc summary { display: none; } }
@media (min-width: 900px) { .pol-toc { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; } }
/* round 2 review: in-page jumps land below the pinned header; order bar fits 320 px */
html { scroll-padding-top: 72px; }
@media (max-width: 359px) { .drop-bar .wrap { font-size: .75rem; gap: 0 6px; flex-wrap: wrap; white-space: normal; } }
/* round 3 review: toasts sit just under the header wherever it is (app.js sets top); product XP line wraps on narrow phones; qty buttons never shrink */
@media (max-width: 399px) { .xp-gain small { white-space: normal; } }
@media (max-width: 1079px), (pointer: coarse) { .line .ln-ctrl button { flex: none; min-width: 44px; } .line .ln-ctrl .rm { flex: 0 1 auto; min-width: 0; } }
