/* S2Z Retro: a late-night CRT / VHS shop. Pins hang on retail backing cards.
   BRAND BLOCK: to rebrand, edit these variables and replace the files in assets/brand/ (see README, "Logo and theme").
   Always dark: the CRT look is the only theme, whatever the OS setting. */
:root {
  --logo-h: 64px;
  --font-display: "Bungee", "Arial Black", Impact, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;

  --bg: #000;
  --surface: #0d1015;
  --ink: #f4f6f8;
  --ink-2: #b4bcc8;
  --line: #2b323d;
  --link: #45e3ff;
  --warm: #ff6685;
  --yellow: #ffd23f;
  --btn-bg: #45e3ff;
  --btn-ink: #001318;
  --btn-bg-hover: #8aefff;
  --err: #ff8099;

  --top-bg: #000;
  --top-ink: #f4f6f8;
  --top-link: #45e3ff;
  --top-line: #2b323d;

  --stock: #f1f2f4;
  --tag: #ecdfb4;
  --stock-ink: #12151a;
  --stock-ink-2: #454c58;
  --stock-line: #c3c7ce;
  --stock-photo: #dcdee3;
  --sticker: #c71f4a;
  --sticker-ink: #fff;
  --focus-stock: #0b3fd8;
  --cord: #8a93a1;

  --split-a: #ff2d55;
  --split-b: #00d4ff;

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --r-1: 2px;
  --r-2: 6px;
  --r-3: 24px;
  color-scheme: dark;
}
@font-face { font-family: "Bungee"; src: url("fonts/Bungee-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/AtkinsonHyperlegible-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/AtkinsonHyperlegible-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--s5); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.55 var(--font-body); accent-color: var(--link); }
::selection { background: var(--link); color: #000; }
a { color: var(--link); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
a:active { opacity: 0.8; }
a:focus-visible, button:focus-visible, input:focus-visible, main:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
p, li { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
[hidden] { display: none !important; }
.sr { position: absolute; left: -9999px; }
.skip { position: absolute; left: var(--s2); top: -100px; background: var(--ink); color: var(--bg); padding: var(--s2) var(--s4); z-index: 20; }
.skip:focus { top: var(--s2); }

/* layout widths (design v2, 13 Nov 2026) */
:root { --wrap: 1240px; --peg: #161b23; --peg-hole: #05070a; }

.strip-note { margin: 0; padding: var(--s2) var(--s4); background: var(--surface); color: var(--yellow); font-size: 0.875rem; font-weight: 700; text-align: center; border-bottom: 1px solid var(--line); }

/* header: a CRT strip with a faint scanline texture (Rob's request) */
.top { position: relative; display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4); padding: var(--s2) max(var(--s4), calc((100% - var(--wrap)) / 2)); background-color: var(--top-bg); background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 3px); border-bottom: 1px solid var(--top-line); color: var(--top-ink); }
.brand { display: inline-flex; align-items: center; gap: var(--s3); text-decoration: none; color: var(--top-ink); }
.brand img { height: var(--logo-h); width: auto; }
.wordmark { font: 400 1.375rem/1 var(--font-display); text-shadow: -2px 0 var(--split-a), 2px 0 var(--split-b); letter-spacing: 0.02em; }
.top nav { display: flex; flex-wrap: nowrap; align-items: center; gap: 0 var(--s3); }
.top nav a { color: var(--top-ink); text-decoration: none; padding: var(--s3) var(--s1); min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; }
.top nav a:focus-visible { outline-color: var(--top-link); }
@media (hover: hover) { .top nav a:hover { color: var(--top-link); text-decoration: underline; } }
.top .cartlink { background: var(--btn-bg); color: var(--btn-ink); border-radius: var(--r-1); padding: var(--s2) var(--s3); margin-left: var(--s2); }
.top .cartlink span { background: var(--sticker); color: var(--sticker-ink); border-radius: var(--r-1); padding: 0 var(--s2); margin-left: var(--s2); font-variant-numeric: tabular-nums; }
@media (hover: hover) { .top nav .cartlink:hover { color: var(--btn-ink); background: var(--btn-bg-hover); text-decoration: none; } }
.cartlink.bump span { animation: bump 0.3s ease-out 1; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

main { max-width: var(--wrap); margin: 0 auto; padding: var(--s5) var(--s4) var(--s7); }
main p, main li { max-width: 68ch; }
h1 { font: 400 1.75rem/1.15 var(--font-display); margin: var(--s5) 0 var(--s3); }
h2 { font: 400 1.375rem/1.2 var(--font-display); margin: var(--s7) 0 var(--s4); }
section > h2:first-child { margin-top: var(--s8); }

/* buttons */
.btn, .add { display: inline-flex; align-items: center; justify-content: center; background: var(--btn-bg); color: var(--btn-ink); border: 0; border-radius: var(--r-1); font: 700 1.125rem var(--font-body); padding: var(--s3) var(--s5); min-height: 48px; text-decoration: none; cursor: pointer; }
@media (hover: hover) { .btn:hover, .add:hover:not(:disabled) { background: var(--btn-bg-hover); } }
.btn:active, .add:active:not(:disabled) { transform: translateY(1px); }

/* hero: the pitch beside a pegboard wall of real pins around the TV */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s6); align-items: center; padding-top: var(--s4); }
.hero h1 { font-size: clamp(2.125rem, 3.4vw, 3rem); line-height: 1.05; margin: 0 0 var(--s4); text-shadow: -3px 0 var(--split-a), 3px 0 var(--split-b); }
.lede { color: var(--ink-2); font-size: 1.25rem; margin: 0 0 var(--s5); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); margin: 0; }
.cta .txt { font-weight: 700; padding: var(--s3) 0; }

.wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: "a s s b" "c s s d" "e f g h"; gap: var(--s5) var(--s4); padding: var(--s5) var(--s4) var(--s6);
  background-color: var(--peg); background-image: radial-gradient(circle at 50% 50%, var(--peg-hole) 0 3px, transparent 3.5px); background-size: 28px 28px; background-position: 14px 14px; border: 1px solid var(--line); border-radius: var(--r-2); }
.wall .screen { grid-area: s; align-self: center; background: #000; border: 2px solid var(--line); border-radius: var(--r-3); padding: var(--s3); }
.wall .screen img { width: 100%; }
.peg { position: relative; display: block; background: var(--stock); border: 1px solid var(--stock-line); border-radius: var(--r-2); padding: var(--s5) var(--s2) var(--s2); color: var(--stock-ink); text-decoration: none; transform-origin: 50% 8px; transition: transform 0.2s ease-out; }
.peg .hole { position: absolute; top: 8px; left: calc(50% - 14px); width: 28px; height: 8px; border-radius: 4px; background: var(--peg-hole); border: 1px solid var(--stock-line); }
.peg img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; background: var(--stock-photo); border-radius: var(--r-1); }
.peg .price { position: absolute; right: -6px; bottom: -8px; font-size: 0.875rem; }
.peg-1 { grid-area: a; transform: rotate(-3deg); }
.peg-2 { grid-area: b; transform: rotate(2.5deg); margin-top: var(--s4); }
.peg-3 { grid-area: c; transform: rotate(1.5deg); }
.peg-4 { grid-area: d; transform: rotate(-2deg); }
.peg-5 { grid-area: e; transform: rotate(2deg); }
.peg-6 { grid-area: f; transform: rotate(-1.5deg); margin-top: var(--s3); }
.peg-7 { grid-area: g; transform: rotate(3deg); }
.peg-8 { grid-area: h; transform: rotate(-2.5deg); margin-top: var(--s4); }
.peg:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
@media (hover: hover) { .peg:hover { transform: rotate(0deg) translateY(-4px); } }

/* aisles: a fan of real pins per aisle, the biggest aisle gets the tall tile */
.aisles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.aisle:first-child { grid-row: span 2; }
.aisle a { display: grid; grid-template-rows: 1fr auto auto auto; height: 100%; min-height: 220px; padding: var(--s4) var(--s5) var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); color: var(--ink); text-decoration: none; overflow: hidden; }
.aisle a:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
@media (hover: hover) { .aisle a:hover { border-color: var(--link); } .aisle a:hover .fan img:nth-child(1) { transform: rotate(-12deg) translateX(-14px); } .aisle a:hover .fan img:nth-child(3) { transform: rotate(12deg) translateX(14px); } }
.fan { position: relative; display: flex; justify-content: center; align-items: center; min-height: 140px; margin-bottom: var(--s4); }
.fan img { width: 42%; max-width: 150px; aspect-ratio: 1 / 1; object-fit: cover; background: var(--stock-photo); border: 6px solid var(--stock); border-radius: var(--r-2); transition: transform 0.2s ease-out; }
.fan img:nth-child(1) { transform: rotate(-8deg) translateX(-6px); }
.aisle:not(:first-child) .fan img:nth-child(2) { position: relative; z-index: 1; margin: 0 -14%; transform: translateY(-6px); }
.fan img:nth-child(3) { transform: rotate(8deg) translateX(6px); }
.aisle:first-child .fan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); padding: var(--s2); align-content: center; }
.aisle:first-child .fan img { width: 100%; max-width: none; margin: 0; }
.aisle:first-child .fan img:nth-child(odd) { transform: rotate(-3deg); }
.aisle:first-child .fan img:nth-child(even) { transform: rotate(2.5deg) translateY(6px); }
@media (hover: hover) { .aisle:first-child a:hover .fan img:nth-child(n) { transform: none; } }
.an { font: 400 1.375rem/1.15 var(--font-display); }
.ac { color: var(--yellow); font-weight: 700; font-variant-numeric: tabular-nums; margin: var(--s1) 0 var(--s2); }
.ad { color: var(--ink-2); font-size: 0.9375rem; }

/* Just in and More like this: one row that scrolls sideways */
.sechead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s2) var(--s4); margin: var(--s8) 0 var(--s4); }
.sechead h2 { margin: 0; }
.strip { list-style: none; margin: 0; padding: var(--s2) var(--s1) var(--s4); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 200px); gap: var(--s4); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-color: var(--line) transparent; }
.strip .card { scroll-snap-align: start; }

/* build your own bundle: the rule as a till receipt */
.bundle { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: var(--s6); align-items: center; margin-top: var(--s8); padding: var(--s6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); }
.bcopy h2 { margin: 0 0 var(--s3); }
.bcopy p { color: var(--ink-2); font-size: 1.125rem; }
.bcopy p a { font-weight: 700; }
.receipt { --z: 9px; margin: 0; background: var(--stock); color: var(--stock-ink); padding: var(--s5) var(--s5) calc(var(--s5) + var(--z)); transform: rotate(1.5deg);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--z)) 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--z)) 100%; }
.receipt figcaption { font: 400 1rem/1.3 var(--font-display); text-align: center; padding-bottom: var(--s3); border-bottom: 2px dashed var(--stock-line); }
.receipt table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin: var(--s2) 0; }
.receipt th { font-size: 0.875rem; color: var(--stock-ink-2); text-align: left; padding: var(--s2) 0; }
.receipt td { padding: var(--s2) 0; border-bottom: 1px dotted var(--stock-line); font-weight: 700; }
.receipt .r { text-align: right; }
.receipt .lan td { color: var(--sticker); }
.tear { margin: var(--s3) 0 0; font-size: 0.875rem; color: var(--stock-ink-2); text-align: center; }

/* the shelf: sticky toolbar, then every item as a backing card with a punched hang hole */
.shelf-title { margin-top: var(--s8); }
.toolbar { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s3) var(--s4); margin: 0 calc(var(--s4) * -1); padding: var(--s3) var(--s4); background: var(--bg); border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { border: 2px solid var(--ink-2); background: transparent; color: var(--ink); border-radius: var(--r-1); padding: var(--s2) var(--s3); font: 700 1rem var(--font-body); cursor: pointer; min-height: 44px; }
.chip span { color: var(--ink-2); font-weight: 400; font-variant-numeric: tabular-nums; margin-left: var(--s1); }
.chip.on { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-ink); }
.chip.on span { color: var(--btn-ink); }
.chip:active { transform: translateY(1px); }
@media (hover: hover) { .chip:hover:not(.on) { border-color: var(--link); color: var(--link); } }
.tools { display: flex; flex-wrap: wrap; gap: var(--s2); }
.search input, .sort select { font: 400 1rem var(--font-body); padding: var(--s2) var(--s3); border: 2px solid var(--ink-2); border-radius: var(--r-1); background: var(--surface); color: var(--ink); min-height: 44px; caret-color: var(--link); }
.search input { width: 280px; max-width: 100%; }
.search input::placeholder { color: var(--ink-2); }
input:user-invalid, select:user-invalid { border-color: var(--err); }
.count { color: var(--ink-2); margin: var(--s3) 0; font-variant-numeric: tabular-nums; }

.more { display: block; margin: var(--s5) auto 0; min-height: 48px; padding: 0 var(--s5); border: 2px solid var(--link); border-radius: var(--r-1); background: transparent; color: var(--link); font: 700 1rem var(--font-body); cursor: pointer; }
@media (hover: hover) { .more:hover { background: var(--link); color: var(--bg); } }
.more:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
.grid { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--s6) var(--s4); grid-auto-flow: dense; align-items: start; }
.card { position: relative; background: var(--stock); color: var(--stock-ink); border: 1px solid var(--stock-line); border-radius: var(--r-2); display: flex; flex-direction: column; transform-origin: 50% 10px; transition: transform 0.2s ease-out; }
.card > a { color: inherit; text-decoration: none; display: block; padding: 0 var(--s3) var(--s2); }
.card > a:focus-visible { outline: 3px solid var(--focus-stock); outline-offset: -3px; }
@media (hover: hover) { .card:hover { transform: rotate(-1.2deg); } .card:nth-child(even):hover { transform: rotate(1.2deg); } }
.hang { display: flex; justify-content: center; align-items: center; gap: var(--s6); height: var(--s6); }
.hole, .kind-bundle .hang::after { display: block; width: 36px; height: 10px; border-radius: 6px; background: var(--bg); border: 1px solid var(--stock-line); }
.kind-bundle .hang::after { content: ""; }
.ph { display: block; position: relative; aspect-ratio: 1 / 1; background: var(--stock-photo); border-radius: var(--r-1); overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.t { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: var(--s2); font-weight: 700; font-size: 0.9375rem; line-height: 1.3; overflow-wrap: break-word; hyphens: manual; }
.mk { display: block; color: var(--stock-ink-2); font-size: 0.875rem; margin-top: var(--s1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta { display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: var(--s2); padding: var(--s1) var(--s3) var(--s3); margin-top: auto; }
.price { flex: none; white-space: nowrap; display: inline-block; background: var(--sticker); color: var(--sticker-ink); font: 400 1rem/1 var(--font-display); font-variant-numeric: tabular-nums; padding: var(--s2); border-radius: var(--r-1); transform: rotate(-2deg); }
.qa { flex: none; min-height: 44px; min-width: 64px; padding: 0 var(--s3); border: 2px solid var(--stock-ink); border-radius: var(--r-1); background: transparent; color: var(--stock-ink); font: 700 0.9375rem var(--font-body); cursor: pointer; }
.qa:focus-visible { outline: 3px solid var(--focus-stock); outline-offset: 2px; }
.qa.in { background: var(--stock-ink); color: var(--stock); }
.qa:disabled { opacity: 0.4; cursor: not-allowed; }
@media (hover: hover) { .qa:hover:not(:disabled) { background: var(--stock-ink); color: var(--stock); } }
.free { position: absolute; right: var(--s2); top: var(--s2); background: var(--yellow); color: #000; font-weight: 700; font-size: 0.8125rem; padding: 2px var(--s2); border-radius: var(--r-1); }
.soldtag { position: absolute; top: var(--s2); left: var(--s2); background: var(--yellow); color: #000; font: 400 0.875rem/1 var(--font-display); padding: var(--s1) var(--s2); border-radius: var(--r-1); }
.card.sold .ph img { opacity: 0.45; }
.card.sold .price { background: var(--stock-ink-2); }

/* bundles: a wider card with two holes; lanyards hang from a cord; Other is a manila tag */
.grid .kind-bundle { grid-column: span 2; }
.grid .kind-bundle .ph { aspect-ratio: 2 / 1; }
.grid .kind-lanyard, .grid .kind-plain_lanyard { margin-top: var(--s5); }
.grid .kind-lanyard::before, .grid .kind-plain_lanyard::before { content: ""; position: absolute; left: calc(50% - 1px); top: calc(var(--s5) * -1); width: 2px; height: calc(var(--s5) + 15px); background: var(--cord); }
.kind-lanyard .ph, .kind-plain_lanyard .ph { aspect-ratio: 4 / 5; }
.strip .kind-lanyard .ph, .strip .kind-plain_lanyard .ph, .strip .kind-bundle .ph { aspect-ratio: 1 / 1; }
.kind-other { background: var(--tag); clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%); }
.kind-other .hang { justify-content: flex-start; padding-left: var(--s2); }
.kind-other .hole { width: 14px; height: 14px; border-radius: 50%; }

.shipnote, .ship { color: var(--ink-2); font-size: 0.875rem; margin-top: var(--s5); max-width: 56ch; }

/* item page */
.crumbs { color: var(--ink-2); margin-bottom: var(--s3); font-size: 0.9375rem; }
.crumbs a { display: inline-block; padding: var(--s2) 0; }
#cartbox > a { display: inline-block; padding: var(--s3) 0; }
.item { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--s7); align-items: start; }
.gallery .big { position: relative; background: var(--stock); border: 1px solid var(--stock-line); border-radius: var(--r-2); padding: 0 var(--s3) var(--s3); }
.gallery .big img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; background: var(--stock-photo); border-radius: var(--r-1); }
.gallery .soldtag.big { top: var(--s7); font-size: 1rem; }
.kind-other .gallery .big { background: var(--tag); clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%); }
.thumbs { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.th { border: 2px solid var(--line); padding: 0; border-radius: var(--r-1); overflow: hidden; width: 76px; height: 76px; background: var(--stock-photo); cursor: pointer; }
.th.on { border-color: var(--link); }
@media (hover: hover) { .th:hover:not(.on) { border-color: var(--ink-2); } }
.th img { width: 100%; height: 100%; object-fit: cover; }
.info { position: sticky; top: var(--s4); }
.aislelabel { color: var(--yellow); font-weight: 700; margin: 0 0 var(--s2); }
.info h1 { font: 700 2rem/1.15 var(--font-body); margin: 0 0 var(--s3); }
.info .price { font-size: 1.5rem; padding: var(--s2) var(--s3); margin: var(--s1) 0 var(--s3); }
.bhint { color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-1); padding: var(--s3) var(--s4); margin: 0 0 var(--s4); }
.add { width: 100%; max-width: 380px; }
.add:disabled { background: var(--line); color: var(--ink-2); cursor: not-allowed; }
.msg { min-height: 1.5em; color: var(--link); font-weight: 700; }
.facts { list-style: none; padding: 0; margin: var(--s2) 0 var(--s5); }
.facts li { position: relative; padding-left: var(--s5); margin: var(--s2) 0; color: var(--ink-2); }
.facts li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 10px; height: 10px; background: var(--link); border-radius: 2px; transform: rotate(45deg); }
.desc { border-top: 1px solid var(--line); padding-top: var(--s4); }
.desc .open { font-size: 1.125rem; font-weight: 700; }
.desc li { margin: var(--s1) 0; }
.pinlist { padding-left: var(--s5); }
.licence { border-top: 1px solid var(--line); padding-top: var(--s3); color: var(--ink-2); font-size: 0.875rem; }
.related h2 { margin-top: var(--s8); }

/* cart */
table.cart { width: 100%; border-collapse: collapse; }
table.cart th, table.cart td { padding: var(--s3) var(--s2); border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.cart td.r, table.cart th.r { text-align: right; font-variant-numeric: tabular-nums; }
table.cart img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--r-1); background: var(--stock-photo); }
.linkbtn { background: none; border: 0; color: var(--link); text-decoration: underline; font: inherit; cursor: pointer; padding: var(--s3) var(--s2); min-height: 44px; }
.meter { margin: var(--s4) 0; padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); }
.meter p { margin: 0 0 var(--s3); font-weight: 700; }
.meter .bar { position: relative; height: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.meter .fill { position: absolute; inset: 0; background: var(--btn-bg); border-radius: 6px; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform 0.3s ease-out; }
.meter .steps { display: flex; justify-content: space-between; margin-top: var(--s2); color: var(--ink-2); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.totals { margin: var(--s4) 0 var(--s4) auto; max-width: 360px; font-variant-numeric: tabular-nums; }
.totals div { display: flex; justify-content: space-between; padding: var(--s1) 0; }
.totals .grand { font-weight: 700; font-size: 1.125rem; border-top: 2px solid var(--ink); margin-top: var(--s2); padding-top: var(--s2); }
.diy { max-width: 68ch; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-1); padding: var(--s3) var(--s4); margin: var(--s4) 0; }
.diy strong { color: var(--warm); }
.save { color: var(--link); font-weight: 700; }
.err { color: var(--err); font-weight: 700; }

footer { border-top: 1px solid var(--line); margin-top: var(--s7); padding: var(--s5) var(--s4); text-align: center; color: var(--ink-2); font-size: 0.875rem; }
footer p { margin: var(--s2) auto; max-width: 56ch; }

/* look pass (28 Nov 2026): loaded lanyards, the VHS shelf, Under $10, "1 of 1", lanyard video on the item page */
:root { --wood: #2a1d14; --wood-hi: #4d3825; --case: #151a22; }
.band-line { color: var(--ink-2); font-size: 1.125rem; margin: 0 0 var(--s4); }
.lanband, .underband { margin-top: var(--s7); }
.lanband > h2:first-child, .underband > h2:first-child { margin-top: 0; }
.vhsband { margin-top: var(--s7); }
.vhsband .sechead { margin-top: 0; margin-bottom: var(--s2); }
.one { position: absolute; left: var(--s2); bottom: var(--s2); background: var(--stock-ink); color: var(--stock); opacity: 0.78; font: 700 0.6875rem/1 var(--font-body); letter-spacing: 0.04em; text-transform: uppercase; padding: 3px var(--s2); border-radius: var(--r-1); pointer-events: none; }
.card.sold .one { display: none; }

.lrow { list-style: none; margin: 0; padding: var(--s3) var(--s1) var(--s4); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 280px); gap: var(--s5) var(--s4); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-color: var(--line) transparent; }
.lcard { position: relative; margin-top: var(--s5); scroll-snap-align: start; background: var(--stock); color: var(--stock-ink); border: 1px solid var(--stock-line); border-radius: var(--r-2); display: flex; flex-direction: column; }
.lcard::before { content: ""; position: absolute; left: calc(50% - 1px); top: calc(var(--s5) * -1); width: 2px; height: calc(var(--s5) + 15px); background: var(--cord); }
.lvwrap { position: relative; padding: var(--s6) var(--s3) 0; }
.lvwrap::before { content: ""; position: absolute; left: calc(50% - 18px); top: var(--s3); width: 36px; height: 10px; border-radius: 6px; background: var(--bg); border: 1px solid var(--stock-line); }
.lvl { display: block; color: inherit; text-decoration: none; }
.ltxt { display: block; color: inherit; text-decoration: none; padding: 0 var(--s3) var(--s2); }
.ltxt:focus-visible { outline: 3px solid var(--focus-stock); outline-offset: -3px; }
.lv { display: block; position: relative; aspect-ratio: 4 / 5; background: var(--stock-photo); border-radius: var(--r-1); overflow: hidden; }
.lv video, .lv img { width: 100%; height: 100%; object-fit: cover; }
.lv .one { left: auto; right: var(--s2); }
.lplay { position: absolute; left: calc(var(--s3) + var(--s2)); bottom: var(--s2); width: 44px; height: 44px; padding: 0; border: 2px solid var(--stock-ink); border-radius: 50%; background: var(--stock); color: var(--stock-ink); cursor: pointer; }
.lplay .ico { position: absolute; left: 15px; top: 11px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent var(--stock-ink); }
.lcard.playing .lplay .ico { left: 13px; top: 12px; width: 14px; height: 16px; border: 0; border-left: 5px solid var(--stock-ink); border-right: 5px solid var(--stock-ink); box-sizing: border-box; }
.lplay:focus-visible { outline: 3px solid var(--focus-stock); outline-offset: 2px; }
@media (hover: hover) { .lplay:hover { background: var(--stock-ink); } .lplay:hover .ico { border-left-color: var(--stock); } .lcard.playing .lplay:hover .ico { border-color: var(--stock); border-top-color: transparent; border-bottom-color: transparent; } }

.vrow { list-style: none; margin: 0; padding: var(--s4) var(--s2) var(--s2); display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: var(--s4); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-color: var(--line) transparent;
  background: linear-gradient(to bottom, transparent calc(100% - 64px), var(--wood-hi) 0 calc(100% - 60px), var(--wood) 0 calc(100% - 46px), transparent 0); }
.tape a { display: block; color: var(--ink); text-decoration: none; }
.case { display: block; position: relative; aspect-ratio: 3 / 4; background: var(--case); border: 3px solid var(--case); border-radius: var(--r-1); box-shadow: inset 7px 0 0 var(--bg); overflow: hidden; }
.case img { width: 100%; height: 100%; object-fit: cover; }
.stk { position: absolute; right: var(--s1); top: var(--s1); background: var(--yellow); color: #000; font: 400 0.875rem/1 var(--font-display); font-variant-numeric: tabular-nums; padding: var(--s1) var(--s2); border-radius: var(--r-1); transform: rotate(3deg); }
.tape .one { left: auto; right: var(--s1); }
.tt { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 22px; font-size: 0.8125rem; line-height: 1.3; height: 2.6em; color: var(--ink-2); overflow-wrap: anywhere; }
.tape .qa { width: 100%; margin-top: var(--s2); border-color: var(--ink); color: var(--ink); }
.tape .qa.in { background: var(--ink); color: var(--bg); }
@media (hover: hover) { .tape .qa:hover:not(:disabled) { background: var(--ink); color: var(--bg); } }
.tape .qa:focus-visible { outline-color: var(--link); }
.tape a:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
@media (hover: hover) { .tape a:hover .tt { color: var(--ink); } .tape a:hover .case { border-color: var(--link); } }

.gallery .vwrap { position: relative; }
.gallery .big video { width: 100%; height: auto; aspect-ratio: 4 / 5; max-height: 82vh; object-fit: contain; background: var(--stock-photo); border-radius: var(--r-1); display: block; }
.vplay { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border: 0; border-radius: 50%; background: var(--btn-bg); color: var(--btn-ink); cursor: pointer; }
.vwrap.playing .vplay { left: auto; top: auto; right: var(--s3); bottom: var(--s3); width: 48px; height: 48px; margin: 0; }
.vwrap.playing .vplay span { left: 15px; top: 14px; width: 18px; height: 20px; border: 0; border-left: 6px solid var(--btn-ink); border-right: 6px solid var(--btn-ink); box-sizing: border-box; }
.vplay span { position: absolute; left: 30px; top: 22px; border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent var(--btn-ink); }
@media (hover: hover) { .vplay:hover { background: var(--btn-bg-hover); } }
.th.thv { position: relative; }
.vbadge { position: absolute; left: 50%; top: 40%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: var(--btn-bg); }
.vbadge::after { content: ""; position: absolute; left: 11px; top: 8px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--btn-ink); }
.vtag { position: absolute; left: 0; right: 0; bottom: 0; background: var(--bg); color: var(--ink); font: 700 0.6875rem/1 var(--font-body); text-transform: uppercase; letter-spacing: 0.04em; padding: 4px 0; text-align: center; }
.lanfacts { margin-top: 0; }
.lanfacts li { color: var(--ink); font-weight: 700; }

@media (max-width: 640px) {
  .lrow { grid-auto-columns: 72%; }
  .vrow { grid-auto-columns: 120px; }
  .band-line { font-size: 1rem; }
  .vplay { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .vplay span { left: 25px; top: 18px; border-width: 14px 0 14px 22px; }
}

/* motion: one RGB split on the logo on load and hover; cards swing a little on hover; none of it for reduced motion */
@keyframes split {
  0% { filter: none; transform: none; }
  50% { filter: drop-shadow(-3px 0 0 rgba(255, 45, 85, 0.85)) drop-shadow(3px 0 0 rgba(0, 212, 255, 0.85)); transform: translateX(2px); }
  100% { filter: none; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .brand img { animation: split 0.48s ease-out 1; }
  @media (hover: hover) { .brand:hover img { animation: split 0.48s ease-out 1; } }
}
@media (prefers-reduced-motion: reduce) {
  .card, .peg, .fan img, .meter .fill { transition: none; }
  .card:hover, .card:nth-child(even):hover { transform: none; }
  .cartlink.bump span { animation: none; }
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .aisles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aisle:first-child { grid-row: auto; grid-column: span 2; }
  .bundle { grid-template-columns: 1fr; padding: var(--s5); }
  .item { grid-template-columns: 1fr; gap: var(--s5); }
  .info { position: static; }
}
@media (max-width: 800px) {
  :root { --logo-h: 48px; }
  .top { padding: var(--s2) var(--s3); }
  .top nav a { padding: var(--s3) 0; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s3); }
  .tools, .search { flex: 1 1 100%; }
  .search input { width: 100%; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--s4) * -1); padding: 0 var(--s4) var(--s1); }
  .chip { flex: 0 0 auto; }
  .add { max-width: none; }
}
@media (max-width: 640px) {
  :root { --logo-h: 40px; }
  .top nav .opt { display: none; }
  .wordmark { font-size: 1rem; }
  /* phones: no TV tile; the pegboard becomes a two-row strip of real products you swipe sideways */
  .hero { gap: var(--s4); }
  .wall { display: grid; grid-template-areas: none; grid-template-columns: none; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: 112px; gap: var(--s4) var(--s3); padding: var(--s4) var(--s3) var(--s4);
    overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  .wall .screen { display: none; }
  .peg { grid-area: auto; margin-top: 0; transform: none; padding: var(--s4) var(--s1) var(--s1); }
  .peg:nth-child(n) { grid-area: auto; margin-top: 0; transform: none; }
  .peg .hole { top: 5px; left: calc(50% - 10px); width: 20px; height: 6px; }
  .peg .price { font-size: 0.75rem; padding: 3px var(--s1); right: -3px; bottom: -6px; }
  .aisles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
  .aisle:first-child { grid-column: span 2; }
  .aisle a { min-height: 0; padding: var(--s3); }
  .aisle:not(:first-child) .fan { min-height: 0; margin-bottom: var(--s3); }
  .fan img { border-width: 4px; }
  .an { font-size: 1.125rem; }
  .ad { display: none; }
  .toolbar { position: static; }
  .t { font-size: 0.875rem; }
  .strip { grid-auto-columns: 46%; }
  .receipt { transform: none; }
}
.promo { margin: var(--s3) 0; }
.promo summary { cursor: pointer; color: var(--fg-2, inherit); }
.promo label { display: block; margin: var(--s2) 0 4px; font-weight: 700; }
.promo input { font: inherit; text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px; min-height: 44px; width: min(100%, 18rem); background: var(--surface); color: inherit; border: 1px solid var(--line); border-radius: var(--r-1); }
