/* BuyOrBorrow Music · Buyers Club prototype · mobile first */
@font-face { font-family: 'Bison'; src: url('fonts/bison-bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Proxima Nova'; src: url('fonts/proxima-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Proxima Nova'; src: url('fonts/proxima-bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Hyperwave'; src: url('fonts/hyperwave.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --teal: #00A89C;
  --teal-ink: #007a71;
  --pink: #DB458A;
  --pink-ink: #b72f6d;
  --yellow: #FFF50A;
  --gold: #FFC70D;
  --navy: #2B3873;
  --navy-deep: #262661;
  --cyan: #6AF5FB;
  --purple: #7972F6;
  --ink: #111111;
  --text: #333333;
  --muted: #666666;
  --line: #e3e3e6;
  --soft: #f6f6f8;
  --white: #ffffff;

  --display: 'Bison', 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Proxima Nova', 'Helvetica Neue', Arial, sans-serif;
  --script: 'Hyperwave', 'Bison', cursive;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --pill: 999px;
  --gutter: 16px;
  --head-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 8px); }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.5; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, p { margin: 0; }
svg { width: 1em; height: 1em; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 20px; border-radius: var(--pill); font-family: var(--display); font-style: italic; font-size: 17px; letter-spacing: .02em; text-transform: uppercase; line-height: 1; white-space: nowrap; transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease; }
.btn:active { transform: scale(.97); }
.btn svg { width: 14px; height: 14px; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #f3ea00; box-shadow: 0 3px 0 rgba(17,17,17,.12); }
.btn-outline { background: var(--white); color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline:hover { background: var(--soft); }
.btn-pink { background: var(--pink); color: var(--white); }
.btn-pink:hover { background: var(--pink-ink); }
.btn-lg { min-height: 52px; font-size: 20px; padding-inline: 28px; }
.btn-lg svg { width: 16px; height: 16px; }
.btn-block { width: 100%; }

/* ---------- prototype strip + header ---------- */
.proto-strip { background: var(--navy-deep); color: #d9dbf2; font-size: 12px; text-align: center; padding: 6px 12px; line-height: 1.3; }
.site-head { position: sticky; top: 0; z-index: 40; background: var(--white); border-bottom: 1px solid var(--line); }
.head-inner { display: flex; align-items: center; justify-content: space-between; height: var(--head-h); }
.logo img { width: 128px; height: auto; }
.member-pill { display: inline-flex; align-items: center; gap: 5px; font-family: var(--display); font-style: italic; font-size: 14px; text-transform: uppercase; letter-spacing: .03em; color: var(--pink-ink); background: #fbe4ef; padding: 6px 12px; border-radius: var(--pill); }
.member-pill svg { width: 12px; height: 12px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: var(--white); background: linear-gradient(105deg, #DB458A 0%, #8f3a7e 38%, #4a2c6e 68%, #262661 100%); padding: 26px 0 40px; }
.hero::after { content: ""; position: absolute; left: -4%; right: -4%; bottom: -1px; height: 26px; background: url('img/brush.png') center bottom / 100% 100% no-repeat; z-index: 2; }
.hero-pattern { position: absolute; inset: 0 0 0 40%; opacity: .16; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Cpath d='M4 20 L16 20 L16 8 Z' fill='%23ffffff'/%3E%3C/svg%3E") 0 0 / 26px 26px; -webkit-mask-image: linear-gradient(115deg, transparent 15%, #000 75%); mask-image: linear-gradient(115deg, transparent 15%, #000 75%); }
.hero-circles { display: none; }
.hero-inner { position: relative; z-index: 1; }
.hero h1 { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 58px; line-height: .9; text-transform: uppercase; letter-spacing: .01em; }
.hero-script { font-family: var(--script); color: var(--yellow); font-size: 53px; line-height: 1; margin: -2px 0 0 2px; transform: rotate(-1.5deg); transform-origin: left center; }
.hero-lede { font-size: 15px; line-height: 1.5; margin-top: 14px; max-width: 34ch; color: #fff; }
.restock { display: flex; align-items: center; gap: 7px; margin: 0 0 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: rgba(255,255,255,.92); }
.restock svg { color: var(--yellow); width: 13px; height: 13px; }

/* ---------- section heads ---------- */
.section { padding-block: 22px 8px; }
.sec-head { margin-bottom: 14px; }
.sec-head h2, .dig-top h2, .pile-head h2 { font-family: var(--display); font-style: italic; font-weight: 700; color: var(--ink); text-transform: uppercase; font-size: 30px; line-height: 1; display: flex; align-items: center; gap: 8px; }
.sec-bolt { color: var(--pink); width: 22px; height: 22px; }
.sec-note { font-size: 14px; color: var(--muted); margin-top: 6px; }
.kicker { font-family: var(--display); font-style: italic; text-transform: uppercase; font-size: 14px; letter-spacing: .05em; color: var(--pink-ink); }

/* ---------- crates ---------- */
.crate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.crate { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--r-md); overflow: hidden; text-align: left; color: var(--white); background: var(--navy) center / cover no-repeat; box-shadow: 0 0 0 0 var(--yellow); transition: box-shadow .15s ease, transform .15s ease; isolation: isolate; }
.crate::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,60,0) 30%, rgba(20,20,60,.62) 100%); z-index: -1; }
.crate:hover { transform: translateY(-2px); }
.crate.is-active { box-shadow: 0 0 0 3px var(--yellow), 0 0 0 4px rgba(17,17,17,.15); }
.crate-label { position: absolute; left: 10px; right: 10px; bottom: 8px; }
.crate-name { display: block; font-family: var(--display); font-style: italic; font-size: 21px; line-height: .95; text-transform: uppercase; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.crate-count { display: block; font-size: 12px; font-weight: 700; margin-top: 3px; opacity: .95; }
.crate-hot { position: absolute; top: 8px; left: 8px; font-family: var(--display); font-style: italic; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--ink); background: var(--yellow); padding: 3px 8px; border-radius: var(--pill); }

/* ---------- dig section ---------- */
.dig { padding-top: 26px; }
.dig-top h2 { font-size: 34px; margin-top: 2px; }
.crate-chips { display: flex; gap: 8px; overflow-x: auto; margin: 12px calc(var(--gutter) * -1) 0; padding: 2px var(--gutter) 4px; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); }
.crate-chips::-webkit-scrollbar { display: none; }
.chip { flex: none; scroll-snap-align: start; min-height: 36px; padding: 6px 14px; border-radius: var(--pill); border: 1.5px solid var(--line); background: var(--white); font-family: var(--display); font-style: italic; font-size: 15px; text-transform: uppercase; letter-spacing: .02em; color: var(--ink); white-space: nowrap; }
.chip[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }

.toolbar { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; margin-top: 14px; align-items: start; }
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.search-wrap input { width: 100%; height: 46px; padding: 0 12px 0 38px; border: 1.5px solid var(--line); border-radius: var(--pill); background: var(--soft); font-size: 16px; }
.search-wrap input:focus { outline: none; border-color: var(--purple); background: var(--white); }
.btn-filter { display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--pill); background: var(--white); font-weight: 700; font-size: 14px; color: var(--ink); }
.btn-filter svg { width: 18px; height: 18px; }
.btn-filter[aria-expanded="true"] { border-color: var(--ink); }
@media (max-width: 419px) { .btn-filter { padding: 0 13px; } .btn-filter > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
.filter-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: var(--pill); background: var(--pink); color: var(--white); font-size: 12px; }
.filter-count[hidden] { display: none; }
.btn-dig { height: 46px; min-height: 46px; padding-inline: 18px; }
.filter-panel { grid-column: 1 / -1; grid-row: 2; display: none; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; background: var(--soft); border-radius: var(--r-md); }
.filter-panel.open { display: grid; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink); }
.field select, .field input { width: 100%; height: 46px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--white); font-size: 16px; color: var(--ink); }
.field select { appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23111' stroke-width='2' fill='none'/%3E%3C/svg%3E") right 12px center no-repeat; padding-right: 32px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(121,114,246,.18); }

.dig-stage { margin-top: 16px; min-height: 120px; }

/* dig animation */
.digging { text-align: center; padding: 28px 16px 30px; border-radius: var(--r-lg); background: linear-gradient(120deg, #262661 0%, #1f4d7a 55%, #00A89C 100%); color: var(--white); position: relative; overflow: hidden; }
.crate-anim { position: relative; width: 210px; height: 116px; margin: 0 auto 18px; perspective: 700px; }
.crate-anim .box { position: absolute; left: 0; right: 0; bottom: 0; height: 44px; background: var(--ink); border-radius: var(--r-sm); z-index: 10; display: grid; place-items: center; }
.crate-anim .box::after { content: "BUYERS CLUB"; font-family: var(--display); font-style: italic; font-size: 18px; letter-spacing: .08em; color: var(--yellow); }
.crate-anim .sleeve { position: absolute; bottom: 18px; left: 50%; width: 112px; height: 92px; margin-left: -56px; border-radius: 3px; transform-origin: 50% 100%; animation: sleeve 1.4s ease-in-out infinite; box-shadow: 0 -1px 0 rgba(0,0,0,.2); }
.crate-anim .sleeve::after { content: ""; position: absolute; top: 16px; left: 50%; width: 40px; height: 40px; margin-left: -20px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); box-shadow: inset 0 0 0 7px rgba(0,0,0,.08); }
.crate-anim .sleeve:nth-child(1) { background: var(--pink); animation-delay: 0s; }
.crate-anim .sleeve:nth-child(2) { background: var(--yellow); animation-delay: .23s; }
.crate-anim .sleeve:nth-child(3) { background: var(--teal); animation-delay: .46s; }
.crate-anim .sleeve:nth-child(4) { background: var(--purple); animation-delay: .69s; }
.crate-anim .sleeve:nth-child(5) { background: var(--cyan); animation-delay: .92s; }
.crate-anim .sleeve:nth-child(6) { background: var(--gold); animation-delay: 1.15s; }
@keyframes sleeve { 0%, 100% { transform: rotateX(0deg) translateY(0); } 30% { transform: rotateX(-58deg) translateY(-4px); } 55% { transform: rotateX(-70deg) translateY(-2px); } }
.dig-msg { font-family: var(--display); font-style: italic; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; min-height: 1.2em; }
.dig-sub { font-size: 13px; opacity: .85; margin-top: 4px; }
.meter { margin: 16px auto 0; width: min(360px, 100%); height: 8px; background: rgba(255,255,255,.2); border-radius: var(--pill); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--yellow), var(--pink)); border-radius: inherit; transition: width .35s ease; }

/* pile */
.pile-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.pile-head h2 { font-size: 26px; }
.pile-head p { font-size: 13px; color: var(--muted); }
.pile { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.row-head { display: none; }
.item { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; column-gap: 8px; align-items: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px 14px 12px; }
.item-no { grid-column: 1; grid-row: 1; font-family: var(--display); font-style: italic; font-size: 14px; color: #8a8a94; padding-top: 1px; }
.item-main { grid-column: 2; grid-row: 1; min-width: 0; }
.item > .tag { grid-column: 3; grid-row: 1; }
.item-type { display: none; }
.item-brand { display: inline; font-family: var(--display); font-style: italic; font-weight: 700; font-size: 22px; line-height: 1; text-transform: uppercase; letter-spacing: .01em; color: var(--ink); }
.item-main .tag-fresh { margin-left: 6px; font-size: 11px; padding: 2px 7px; vertical-align: 3px; }
.item-title { font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--ink); margin-top: 4px; overflow-wrap: anywhere; }
.item-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.m-kind:not(:empty) + .m-fin::before { content: " · "; }
.tag { flex: none; font-family: var(--display); font-style: italic; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; padding: 3px 9px; border-radius: var(--pill); line-height: 1.1; white-space: nowrap; }
.tag-new { background: #dff4f2; color: var(--teal-ink); }
.tag-used { background: #ecebfe; color: #4c44c9; }
.tag-open { background: #fff3c4; color: #7d5b00; }
.tag-pick { background: #fbe4ef; color: var(--pink-ink); }
.tag-fresh { background: var(--yellow); color: var(--ink); }
.item-actions { grid-column: 1 / -1; grid-row: 2; display: flex; gap: 8px; margin-top: 12px; }
.item-actions .btn { flex: 1; min-height: 42px; font-size: 16px; padding-inline: 12px; }
.btn-peek { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: var(--pill); border: 1.5px solid var(--ink); background: var(--white); font-family: var(--display); font-style: italic; font-size: 16px; text-transform: uppercase; letter-spacing: .02em; color: var(--ink); }
.btn-peek svg { width: 16px; height: 16px; }
.btn-peek[aria-expanded="true"] { background: var(--ink); color: var(--white); }
.peek { grid-column: 1 / -1; grid-row: 3; display: none; }
.peek.open { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.peek-img { width: 132px; aspect-ratio: 1; flex: none; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--white); overflow: hidden; display: grid; place-items: center; }
.peek-img img { width: 100%; height: 100%; object-fit: contain; }
.peek-note { font-size: 13px; color: var(--muted); }

.pile-cta { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r-md); background: #fbe4ef; border: 1px dashed #e9a3c3; }
.pile-cta strong { display: block; font-family: var(--display); font-style: italic; font-weight: 700; font-size: 22px; text-transform: uppercase; color: var(--ink); line-height: 1; }
.pile-cta span { font-size: 14px; color: var(--text); }
.pile-cta .btn { align-self: flex-start; }

.pile-foot { display: grid; gap: 10px; margin-top: 16px; }
.pile-foot .btn { width: 100%; }
.pile-foot .ghost { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; font-weight: 700; font-size: 14px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.pile-foot .ghost svg { width: 16px; height: 16px; }
.pile-hint { font-size: 13px; color: var(--muted); text-align: center; }

.bottom-out { text-align: center; padding: 28px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--soft); }
.bottom-out h2 { font-family: var(--display); font-style: italic; text-transform: uppercase; font-size: 26px; color: var(--ink); line-height: 1; }
.bottom-out p { font-size: 14px; color: var(--muted); margin: 8px auto 16px; max-width: 40ch; }
.bottom-out .acts { display: grid; gap: 10px; justify-content: center; }

/* ---------- staff picks ---------- */
.staff { padding-top: 30px; }
.staff-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px var(--gutter) 10px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.staff-row::-webkit-scrollbar { display: none; }
.pick { flex: 0 0 74%; max-width: 300px; scroll-snap-align: start; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; }
.pick .tag { align-self: center; }
.pick-img { position: relative; aspect-ratio: 4 / 3; margin: 8px 0 10px; }
.pick-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pick-brand { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 22px; line-height: 1; text-transform: uppercase; letter-spacing: .01em; color: var(--ink); }
.pick-title { font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--ink); margin-top: 4px; flex: 1; }
.pick .btn { margin-top: 12px; width: 100%; font-size: 16px; }

/* ---------- still band ---------- */
.still-band { position: relative; overflow: hidden; margin-top: 30px; padding: 40px 0 44px; color: var(--white); text-align: center; background: linear-gradient(115deg, #262661 0%, #1f4d7a 55%, #00A89C 100%); }
.band-lines { position: absolute; inset: 0; opacity: .14; background: repeating-linear-gradient(135deg, var(--cyan) 0 2px, transparent 2px 14px); -webkit-mask-image: radial-gradient(ellipse at 100% 0%, #000 0 35%, transparent 65%); mask-image: radial-gradient(ellipse at 100% 0%, #000 0 35%, transparent 65%); }
.band-inner { position: relative; }
.still-band h2 { font-family: var(--display); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: 36px; line-height: .95; }
.still-band p { font-size: 15px; margin: 10px auto 20px; max-width: 36ch; }

.site-foot { background: var(--white); border-top: 1px solid var(--line); padding: 18px 0 96px; }
.foot-inner { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.foot-inner img { width: 40px; height: 40px; }

/* ---------- FAB ---------- */
.head-actions { display: flex; align-items: center; gap: 10px; }
.head-hunt { display: none; align-items: center; gap: 7px; min-height: 40px; padding: 0 16px; border-radius: var(--pill); background: var(--pink); color: var(--white); font-family: var(--display); font-style: italic; font-size: 15px; text-transform: uppercase; letter-spacing: .02em; }
.head-hunt svg { width: 14px; height: 14px; }
.head-hunt:hover { background: var(--pink-ink); }
.fab { position: fixed; left: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 45; display: inline-flex; align-items: center; gap: 7px; min-height: 48px; padding: 0 18px; border-radius: var(--pill); background: var(--pink); color: var(--white); font-family: var(--display); font-style: italic; font-size: 19px; text-transform: uppercase; letter-spacing: .02em; box-shadow: 0 6px 18px rgba(43,56,115,.28); transition: transform .2s ease, opacity .2s ease; }
.fab svg { width: 17px; height: 17px; }
.fab:hover { background: var(--pink-ink); }
.fab.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }

/* ---------- sheets (dialogs) ---------- */
.sheet { border: 0; padding: 0; margin: auto auto var(--kb, 0px); width: 100%; max-width: 100%; max-height: 92vh; max-height: min(92dvh, calc(var(--vvh, 100dvh) - 10px)); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--white); color: var(--text); box-shadow: 0 -8px 30px rgba(0,0,0,.18); }
.sheet[open] { animation: sheet-up .26s cubic-bezier(.2,.8,.2,1); }
.sheet::backdrop { background: rgba(38,38,97,.55); }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-body[hidden] { display: none !important; }
.sheet.kb-pad .sheet-body { padding-bottom: 46vh; }
.sheet-body { position: relative; display: grid; gap: 12px; padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); }
.grab { justify-self: center; width: 40px; height: 4px; border-radius: var(--pill); background: #d2d2d8; margin-bottom: 4px; }
.sheet-x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); }
.sheet-x:hover { background: var(--soft); }
.sheet-x svg { width: 18px; height: 18px; }
.sheet h2 { font-family: var(--display); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: 30px; line-height: 1; color: var(--ink); padding-right: 40px; }
.sheet-sub { font-size: 14px; color: var(--muted); margin-top: -4px; }
.ask-item { border-radius: var(--r-md); background: var(--soft); padding: 12px 14px; }
.ask-item .item-brand { display: block; }
.ask-item .item-brand { font-size: 20px; }
.ask-item .item-title { font-size: 15px; }
.ask-item .ref { font-size: 12px; color: var(--muted); margin-top: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.form-err { font-size: 14px; font-weight: 700; color: #b3261e; }
.fine { font-size: 13px; color: var(--muted); text-align: center; }
.done { text-align: center; justify-items: center; padding-top: 10px; }
.done h2 { padding-right: 0; }
.done p { font-size: 15px; max-width: 38ch; }
.done-mark { width: 64px; height: 64px; }

/* ================= tablet / desktop ================= */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .crate-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .pick { flex-basis: 42%; }
  .pile-cta { flex-direction: row; align-items: center; justify-content: space-between; }
  .pile-cta .btn { align-self: center; }
  .pile-foot { grid-template-columns: auto auto 1fr; align-items: center; }
  .pile-foot .btn { width: auto; }
  .pile-hint { text-align: right; }
  .bottom-out .acts { grid-auto-flow: column; }
  .sheet { margin: auto; max-height: min(92dvh, calc(var(--vvh, 100dvh) - 32px)); width: min(480px, calc(100% - 32px)); border-radius: var(--r-lg); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
  .sheet-body { padding: 26px 26px 26px; }
  .grab { display: none; }
}

@media (min-width: 960px) {
  :root { --head-h: 76px; }
  .logo img { width: 150px; }
  .member-pill { font-size: 15px; }
  .hero { padding: 54px 0 70px; }
  .hero::after { height: 40px; }
  .hero h1 { font-size: 92px; }
  .hero-script { font-size: 82px; margin: -4px 0 0 4px; }
  .hero-lede { font-size: 18px; max-width: 44ch; margin-top: 18px; }
  .restock { font-size: 14px; margin-bottom: 14px; }
  .hero-pattern { inset: 0 0 0 30%; }
  .hero-circles { display: block; position: absolute; right: max(24px, calc((100vw - 1240px) / 2 + 24px)); top: 50%; width: 440px; height: 330px; transform: translateY(-52%); z-index: 1; }
  .hc { position: absolute; border-radius: 50%; background-size: cover; background-position: center; box-shadow: 0 10px 30px rgba(20,20,60,.35); }
  .hc-1 { width: 230px; height: 230px; left: 0; top: 40px; }
  .hc-2 { width: 170px; height: 170px; right: 20px; top: 0; }
  .hc-3 { width: 150px; height: 150px; right: 60px; bottom: 0; }
  .hc-ring { position: absolute; width: 90px; height: 90px; left: 200px; top: 8px; border-radius: 50%; border: 3px solid var(--cyan); opacity: .8; }

  .section { padding-block: 40px 8px; }
  .sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
  .sec-head h2 { font-size: 40px; }
  .sec-bolt { width: 28px; height: 28px; }
  .sec-note { font-size: 15px; margin: 0; }

  .crate-grid { grid-template-columns: repeat(6, 1fr); gap: 14px; }
  .crate { aspect-ratio: 5 / 4; }
  .crate-name { font-size: 22px; }

  .dig { padding-top: 40px; }
  .dig-top { display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 24px; }
  .dig-top .kicker { grid-column: 1; }
  .dig-top h2 { grid-column: 1; font-size: 44px; }
  .crate-chips { grid-column: 2; grid-row: 1 / span 2; justify-content: flex-end; margin: 0; padding: 0; flex-wrap: wrap; overflow: visible; }

  .toolbar { grid-template-columns: minmax(0, 1fr) 200px 180px auto; gap: 12px; padding: 14px; background: var(--soft); border-radius: var(--r-lg); margin-top: 18px; }
  .search-wrap input { background: var(--white); }
  .btn-filter { display: none; }
  .filter-panel { display: contents; }
  .filter-panel .field { gap: 0; }
  .filter-panel .field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .filter-panel .field select { border-radius: var(--pill); padding-left: 16px; }
  .btn-dig { padding-inline: 28px; font-size: 19px; }

  .pile { gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
  .row-head, .item { display: grid; grid-template-columns: 44px minmax(0, 1fr) 170px 110px 290px; column-gap: 16px; align-items: center; }
  .row-head { padding: 10px 18px; background: var(--soft); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom: 1px solid var(--line); }
  .item { border: 0; border-radius: 0; border-top: 1px solid var(--line); padding: 12px 18px; }
  .row-head + .item { border-top: 0; }
  .item:hover { background: #fafafc; }
  .item-no { padding: 0; }
  .item-brand { font-size: 19px; }
  .item-title { font-size: 14px; margin-top: 2px; }
  .m-kind { display: none; }
  .m-fin::before { content: none !important; }
  .item-type { display: block; grid-column: 3; grid-row: 1; font-size: 14px; color: var(--muted); }
  .item > .tag { grid-column: 4; justify-self: start; }
  .item-actions { grid-column: 5; grid-row: 1; margin: 0; justify-content: flex-end; }
  .item-actions .btn { flex: 0 0 auto; }
  .peek { grid-column: 2 / -1; grid-row: 2; }
  .pile-cta { border-radius: 0; border: 0; border-top: 1px solid var(--line); padding: 16px 18px 16px 78px; }

  .staff { padding-top: 48px; }
  .staff-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; overflow: visible; max-width: 1240px; margin-inline: auto; padding: 0 var(--gutter); }
  .pick { max-width: none; flex: none; padding: 16px; }
  .pick-img { aspect-ratio: 16 / 10; }
  .pick-title { font-size: 15px; }

  .still-band { margin-top: 56px; padding: 64px 0; }
  .still-band h2 { font-size: 56px; }
  .still-band p { font-size: 18px; }
  .site-foot { padding-bottom: 24px; }
  .fab { display: none; }
  .head-hunt { display: inline-flex; }
}

@media (min-width: 960px) and (max-width: 1120px) {
  .row-head, .item { grid-template-columns: 40px minmax(0, 1fr) 140px 100px 270px; }
  .hero-circles { width: 360px; transform: translateY(-52%) scale(.82); transform-origin: right center; }
}
@media (min-width: 1200px) {
  .staff-row { grid-template-columns: repeat(6, 1fr); }
  .pick-img { aspect-ratio: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
