/* 1UP VIDEOGAMES demo — "the shop counter"
   Warm paper neutrals, the logo's 1UP red as the one accent, and the logo's yellow
   kept for one thing only: the price sticker. Interface in DM Sans, big headlines in
   Space Grotesk. Spacing on a 4px grid, one easing curve.
   Redesigned with unslop by Damir Sokolovsky (@heydamir), CC BY 4.0. */

:root {
  /* neutral ramp, tinted warm (paper, cardboard) */
  --bg: #f7f4ee; --panel: #fffdf9; --raised: #efe9df; --sunk: #faf7f1;
  --line: rgba(31, 27, 22, .10); --line-2: rgba(31, 27, 22, .18);
  --ink: #1f1b16; --ink-2: #5e554a; --muted: #736a5e;
  /* brand */
  --red: #c63b3b; --red-d: #a83232; --sticker: #fcd535;
  --green: #1f7a3f; --green-bg: #e7f0e4; --warn-bg: #fbf1de; --warn-line: #ead7ae;
  /* kept for older references */
  --yellow: var(--sticker); --blue: var(--ink); --sky: var(--ink-2); --lime: #7dc63f; --tan: #f0c27f;
  /* shape, depth, motion */
  --radius: 14px; --r-ctl: 10px; --r-sm: 6px;
  --shadow: 0 1px 2px rgba(31, 27, 22, .05);
  --shadow-float: 0 8px 24px rgba(31, 27, 22, .08);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --display: "Space Grotesk", "DM Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.5 "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif; font-optical-sizing: auto; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--line-2); transition: color .15s var(--ease), text-decoration-color .15s var(--ease); }
a:hover { color: var(--red-d); text-decoration-color: currentColor; }
h1, h2, h3 { font-weight: 500; }
h1 { font-family: var(--display); font-size: 32px; line-height: 1.15; letter-spacing: -.01em; margin: 4px 0 12px; }
h2 { font-family: var(--display); font-size: 22px; line-height: 1.2; margin: 0 0 12px; }
h3 { font-size: 15px; font-weight: 600; margin: 24px 0 8px; }
.muted { color: var(--muted); } .small { font-size: 13px; }
:focus-visible { outline: 2px solid rgba(198, 59, 59, .45); outline-offset: 2px; }

/* ---------- Strips above the header ---------- */
.demo-banner { background: var(--ink); color: #c9c1b4; font-size: 12px; text-align: center; padding: 6px 16px; }
.demo-banner .link { color: #fffdf9; }
.announce { display: flex; justify-content: center; gap: 8px 28px; flex-wrap: wrap; padding: 8px 16px; background: var(--raised); color: var(--ink-2); font-size: 13px; }
.announce b { color: var(--ink); font-weight: 600; }
.announce a { color: var(--ink); }
.announce span + span::before { content: "·"; margin-right: 28px; margin-left: -14px; opacity: .5; }
.an-short { display: none; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-inner { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 24px; padding: 12px 24px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; flex: none; }
.logo:hover { color: var(--ink); }
.logo img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.logo-txt { display: flex; flex-direction: column; line-height: 1; gap: 2px; }
.logo-txt b { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--red); }
.logo-txt .logo-sub { font-family: var(--display); font-weight: 500; letter-spacing: .12em; font-size: 11px; color: var(--ink-2); }
.top-search { flex: 1; max-width: 400px; position: relative; margin: 0 auto 0 8px; }
.top-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.top-search input { border-radius: var(--r-ctl); padding-left: 36px; background: var(--raised); border: 1px solid transparent; min-height: 40px; }
.top-search input:focus { background: var(--panel); border-color: var(--line-2); }
.nav { display: flex; gap: 4px; align-items: center; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: 14px;
  transition: background-color .15s var(--ease), color .15s var(--ease); }
.nav a:hover { background: var(--raised); color: var(--ink); }
.nav a.on { background: var(--raised); color: var(--ink); }
.nav .staff-link { margin-left: 8px; box-shadow: inset 0 0 0 1px var(--line-2); }
.nav .staff-link.on { background: var(--ink); color: #fffdf9; box-shadow: none; }
.socials { display: flex; align-items: center; gap: 4px; padding-left: 12px; border-left: 1px solid var(--line); flex: none; }
.soc { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; min-width: 36px; padding: 0 8px; border-radius: 8px;
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 13px; transition: background-color .15s var(--ease), color .15s var(--ease); }
.soc svg { width: 18px; height: 18px; }
.soc:hover { background: var(--raised); color: var(--ink); }
.soc-live { box-shadow: inset 0 0 0 1px var(--line-2); padding: 0 12px; }
.wn-logo { display: inline-block; width: 96px; height: 15px; flex: none; background: url(../img/whatnot-logo.png) no-repeat left center / auto 100%; }

/* Pixel strip and "Just in" row: static, no looping */
.pixel-strip { height: 24px; background: url(../img/pixel-strip.svg) repeat-x left bottom / auto 100%; image-rendering: pixelated; animation: strip-scroll 40s linear infinite; }
@keyframes strip-scroll { to { background-position: -128px bottom; } }
.marquee { display: flex; align-items: stretch; background: var(--panel); border-bottom: 1px solid var(--line); overflow: hidden; }
.mq-label { flex: none; display: flex; align-items: center; padding: 0 16px 0 24px; color: var(--red-d); font-size: 13px; font-weight: 600; border-right: 1px solid var(--line); }
.mq-window { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.mq-window::-webkit-scrollbar { display: none; }
.mq-track { display: flex; width: max-content; animation: mq-scroll var(--mq-dur, 40s) linear infinite; }
.marquee:hover .mq-track, .marquee:focus-within .mq-track { animation-play-state: paused; }
@keyframes mq-scroll { to { transform: translateX(-50%); } }
.mq-run { display: flex; align-items: center; padding-left: 12px; }
.mq-item { color: var(--ink-2); text-decoration: none; font-size: 13px; padding: 10px 0; white-space: nowrap; }
.mq-item b { color: var(--ink); font-weight: 600; margin-left: 4px; font-variant-numeric: tabular-nums; }
.mq-item:hover { color: var(--ink); text-decoration: underline; }
.mq-star { color: var(--muted); padding: 0 12px; }

main { max-width: 1240px; margin: 0 auto; padding: 0 24px 24px; min-height: 70vh; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 32px 24px; border-top: 1px solid var(--line); margin-top: 48px; }
.foot-store { margin-bottom: 8px; color: var(--ink); }
.foot-social { margin-bottom: 8px; font-size: 14px; }
.foot-social a, .foot-store a { font-weight: 500; }

/* ---------- Controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink);
  padding: 8px 16px; border-radius: var(--r-ctl); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; text-decoration: none; min-height: 44px;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .12s var(--ease); }
.btn:hover { background: #fff; border-color: rgba(31, 27, 22, .28); color: var(--ink); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-d); border-color: var(--red-d); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.small { padding: 4px 12px; min-height: 32px; font-size: 13px; border-radius: 8px; }
.btn.wide { width: 100%; margin-top: 12px; }
.btn.lg { min-height: 48px; padding: 12px 20px; font-size: 16px; }
.btn.ghost { background: var(--panel); }
.link { background: none; border: 0; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font: inherit; padding: 0 4px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.row.center { justify-content: center; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stack { display: grid; gap: 12px; }
label { display: grid; gap: 4px; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 12px; }
label.check { display: flex; align-items: center; gap: 8px; }
input, select, textarea { font: inherit; font-size: 15px; font-weight: 400; color: var(--ink); padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; width: 100%; min-height: 40px;
  transition: border-color .15s var(--ease); }
input:focus, select:focus, textarea:focus { border-color: rgba(31, 27, 22, .4); }
input[type=checkbox] { width: 20px; min-height: 20px; accent-color: var(--red); }
input[type=range] { padding: 0; border: 0; accent-color: var(--red); min-height: 24px; }
textarea { resize: vertical; }
output { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- Signature: the price sticker ---------- */
.price { display: inline-block; background: var(--sticker); color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.4; padding: 2px 8px;
  border-radius: 4px; font-variant-numeric: tabular-nums; transform: rotate(-1.5deg); box-shadow: 0 1px 0 rgba(31, 27, 22, .12); }
.tested { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-size: 12px; font-weight: 500; }
.tested::before { content: ""; width: 12px; height: 12px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px; padding: 64px 0 56px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.eyebrow .dot.closed { background: var(--red); }
.hero h1 { font-size: clamp(40px, 4.8vw, 64px); line-height: 1.04; letter-spacing: -.03em; margin: 16px 0 20px; max-width: 13ch; }
.hero-sub { max-width: 34rem; color: var(--ink-2); margin: 0; font-size: 19px; line-height: 1.55; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 8px 32px; margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-stats div { display: grid; gap: 4px; align-content: start; }
.hero-stats dt { font-family: var(--display); font-size: 24px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-stats dd { margin: 0; font-size: 13px; line-height: 1.35; color: var(--muted); max-width: 18ch; }
.hero-stats a { color: inherit; }

/* Hero visual: the 1UP logo in its rainbow ring, floating */
.hero-art { position: relative; padding-left: 48px; }
.hero-logo { display: grid; place-items: center; padding: 16px 0; }
.ring { width: min(100%, 400px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; padding: 6px;
  background: conic-gradient(from 200deg, #3a82f6, #7dc63f, #fcd535, #c63b3b, #3a82f6);
  box-shadow: 0 30px 80px rgba(58, 130, 246, .28); animation: hero-float 6s ease-in-out infinite; }
.ring img { width: 100%; height: 100%; border-radius: 50%; display: block; border: 6px solid var(--bg); }
@keyframes hero-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }

/* One entrance on first load */
.hero.intro .hero-copy > * { animation: rise .45s var(--ease) both; }
.hero.intro .hero-copy > :nth-child(2) { animation-delay: .05s; }
.hero.intro .hero-copy > :nth-child(3) { animation-delay: .1s; }
.hero.intro .hero-copy > :nth-child(4) { animation-delay: .15s; }
.hero.intro .hero-copy > :nth-child(5) { animation-delay: .2s; }
.hero.intro .hero-art { animation: rise .5s var(--ease) .15s both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Quick links ---------- */
.quick-links { display: flex; margin: 0 0 48px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ql { flex: 1 1 0; padding: 12px; text-align: center; white-space: nowrap; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 14px;
  transition: background-color .15s var(--ease), color .15s var(--ease); }
.ql + .ql { border-left: 1px solid var(--line); }
.ql:hover { background: var(--sunk); color: var(--ink); }

/* ---------- Shop by system & series ---------- */
.shop-by { margin: 0 0 48px; }
.shop-by-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.shop-by-head h2 { margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 8px; }
.tile { --tc: var(--ink-2); display: grid; gap: 2px; text-align: left; cursor: pointer; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink); font: inherit; transition: background-color .15s var(--ease), border-color .15s var(--ease); }
.tile:hover { background: #fff; border-color: var(--line-2); }
.tile.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.tile-name { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; }
.tile-name::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tc); flex: none; }
.tile-n { font-size: 13px; color: var(--muted); padding-left: 16px; font-variant-numeric: tabular-nums; }
.tile-fr .tile-name::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }

/* ---------- Shop layout ---------- */
.shop-layout { display: grid; grid-template-columns: 248px 1fr; gap: 32px; align-items: start; margin-bottom: 48px; }
.side { display: grid; gap: 16px; align-self: start; }
.side-banners { display: grid; gap: 8px; }
.sb { position: relative; display: grid; gap: 4px; padding: 16px 40px 16px 16px; border-radius: var(--radius); text-decoration: none; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); transition: background-color .15s var(--ease), border-color .15s var(--ease); }
.sb::after { content: "→"; position: absolute; right: 16px; top: 16px; color: var(--muted); transition: transform .15s var(--ease), color .15s var(--ease); }
.sb:hover { background: #fff; border-color: var(--line-2); color: var(--ink); }
.sb:hover::after { transform: translateX(2px); color: var(--red-d); }
.sb-big { font-family: var(--display); font-weight: 500; font-size: 18px; line-height: 1.15; }
.sb-small { font-size: 13px; color: var(--muted); }
.filters { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.filters h3 { margin: 0 0 12px; }
.filters .btn { width: 100%; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 16px; gap: 8px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head .muted { font-size: 14px; font-variant-numeric: tabular-nums; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 48px; }

/* Product cards */
.card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); will-change: transform;
  transition: transform .35s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease); }
.card:hover { color: inherit; border-color: var(--line-2); box-shadow: var(--shadow-float); }
/* Card tilt: the card leans toward the mouse and a soft shine follows it (js/fx.js) */
.card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease);
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .45), transparent 55%); mix-blend-mode: soft-light; }
.card.tilting { transition: transform .06s linear, border-color .15s var(--ease), box-shadow .2s var(--ease); }
.card.tilting::after { opacity: 1; }
.card-img { position: relative; aspect-ratio: 1; background: var(--raised); }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card.sold .card-img img { filter: grayscale(.85); opacity: .7; }
.card-body { padding: 12px 12px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-sys { font-size: 12px; color: var(--muted); }
.card-title { font-weight: 500; font-size: 14px; line-height: 20px; flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.pill { position: absolute; top: 8px; left: 8px; font-size: 12px; font-weight: 500; line-height: 16px; padding: 2px 8px; border-radius: var(--r-sm); }
.pill.new { background: var(--ink); color: #fffdf9; }
.pill.hold { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.pill.soldp { background: var(--raised); color: var(--ink-2); }
.pill.instock { background: var(--green-bg); color: var(--green); }
.big-price .pill { position: static; vertical-align: middle; margin-left: 8px; }
.empty { background: var(--panel); border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 24px; text-align: center; color: var(--muted); grid-column: 1 / -1; }

/* "Can't find it?" request box */
.request-box { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 20px; margin-bottom: 24px; }
.request-box h3 { margin: 0 0 4px; font-family: var(--display); font-size: 18px; font-weight: 500; }
.request-box.done { background: var(--green-bg); border-color: rgba(31, 122, 63, .25); }
.req-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 12px; align-items: end; margin-top: 12px; }
.req-grid label:first-child { grid-column: 1 / -1; }
.req-grid .btn { margin-bottom: 12px; }
.request-slim { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: -24px 0 32px; color: var(--muted); }

/* Instagram: sidebar on desktop, a row near the bottom on smaller screens */
.ig-glyph { width: 20px; height: 20px; display: inline-grid; place-items: center; color: var(--ink); }
.ig-glyph svg { width: 20px; height: 20px; }
.btn.ig-follow { background: var(--panel); }
.ig-side { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.ig-side-head { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin: 4px 4px 12px; }
.ig-side-head span:last-child { display: grid; line-height: 1.2; }
.ig-side-head b { font-weight: 500; }
.ig-side-head small { color: var(--muted); font-size: 12px; }
.ig-side-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.ig-side-grid a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: var(--raised); }
.ig-side-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .15s var(--ease); }
.ig-side-grid a:hover img { opacity: .85; }
.ig-side-follow { width: 100%; margin-top: 12px; min-height: 36px; font-size: 14px; }
.ig { display: none; margin: 0 0 48px; }
.ig-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ig-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; }
.ig-head p { margin: 4px 0 0; }
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.ig-tile { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; display: block; text-decoration: none; background: var(--raised); }
.ig-tile:nth-child(n+7) { display: none; }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .15s var(--ease); }
.ig-tile:hover img { opacity: .85; }
.ig-photo { aspect-ratio: 3 / 4; }
.ig-cap { position: absolute; left: 8px; right: 8px; bottom: 8px; color: #fffdf9; font-size: 12px; font-weight: 500; background: rgba(31, 27, 22, .7); padding: 4px 8px; border-radius: 6px; }
.ig-text { display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; background: var(--raised) !important; color: var(--ink); }
.ig-t { font-family: var(--display); font-weight: 500; font-size: 18px; line-height: 1.1; }
.ig-s { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.ig-play { position: absolute; top: 8px; right: 8px; z-index: 1; width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; background: rgba(31, 27, 22, .55); color: #fff; font-size: 11px; }
.ig-note { margin: 8px 0 0; font-size: 12px; color: var(--muted); }

/* Visit us */
.visit { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; margin: 0; padding: 32px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.visit h2 { font-size: 32px; letter-spacing: -.01em; margin: 12px 0 8px; }
.visit address { font-style: normal; font-size: 16px; line-height: 1.5; }
.visit-hours { margin: 8px 0 20px; }
.visit-hours b { font-weight: 500; }
.visit-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.visit-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.visit-status.open { color: var(--green); } .visit-status.closed { color: var(--red-d); }
.visit-status .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.visit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; align-content: center; }
.visit-list li { display: grid; gap: 2px; padding-left: 16px; border-left: 2px solid var(--line-2); }
.visit-list b { font-weight: 500; }
.visit-list span { color: var(--ink-2); font-size: 14px; }

/* ---------- Product page ---------- */
.back { display: inline-block; margin: 24px 0 16px; text-decoration: none; color: var(--ink-2); font-size: 14px; }
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; }
.main-img { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; aspect-ratio: 1; }
.main-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.tbtn { width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--panel); transition: border-color .15s var(--ease); }
.tbtn.on { border-color: var(--ink); }
.tbtn img { width: 100%; height: 100%; object-fit: cover; }
.big-price { margin: 4px 0 16px; }
.big-price .price { font-size: 24px; padding: 4px 12px; }
.guarantee { background: var(--green-bg); border-radius: var(--r-ctl); padding: 12px 16px; font-size: 14px; color: var(--ink-2); }
.guarantee strong { color: var(--ink); font-weight: 600; }
.specs { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.specs th, .specs td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs th { width: 42%; color: var(--muted); font-weight: 500; }
.staff-tools { margin-top: 24px; font-size: 14px; }
.staff-tools summary { cursor: pointer; color: var(--ink-2); }

/* ---------- Staff, wishlist, trade-in ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-bottom: 24px; }
.panel.narrow { max-width: 560px; margin: 0 auto 24px; }
.staff-head p { margin-top: 0; }
.steps { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.steps span { padding: 4px 12px; border-radius: var(--r-sm); background: var(--raised); font-size: 13px; font-weight: 500; color: var(--muted); }
.steps .on { background: var(--ink); color: #fffdf9; } .steps .done { background: var(--green-bg); color: var(--green); }
.drop { border: 1px dashed var(--line-2); border-radius: 12px; padding: 24px 16px; text-align: center; background: var(--sunk); transition: border-color .15s var(--ease), background-color .15s var(--ease); }
.drop.over { border-color: var(--red); background: #fbefed; }
.drop p { margin: 0 0 8px; }
.photo-strip { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.thumb { position: relative; width: 84px; height: 84px; border-radius: 8px; overflow: hidden; background: var(--raised); }
.photo-strip.small .thumb { width: 64px; height: 64px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(31, 27, 22, .7); color: #fff; cursor: pointer; line-height: 1; }
.thumb .cover { position: absolute; left: 0; bottom: 0; right: 0; background: rgba(31, 27, 22, .65); color: #fff; font-size: 11px; text-align: center; }
.hint { margin-top: 8px; }
.demo-box { background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 12px; margin: 12px 0; }
.demo-box summary { cursor: pointer; font-weight: 500; }
.demo-box select { width: auto; flex: 1; min-width: 160px; }
.ai-note { background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 8px 12px; font-size: 14px; margin-bottom: 16px; }
.ai-note.low { background: var(--warn-bg); border-color: var(--warn-line); }
.draft-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 12px; background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 12px; }
.market { margin-top: -4px; }
.sticky-actions { position: sticky; bottom: 0; background: var(--panel); padding: 12px 0 4px; }
.inv { display: grid; gap: 8px; }
.inv-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.inv-row img { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; }
.inv-t a { font-weight: 500; text-decoration: none; }
.inv-a { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; margin-top: 32px; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.msg { border: 1px solid var(--line); border-radius: var(--r-ctl); margin: 12px 0; overflow: hidden; }
.msg-h { font-size: 12px; font-weight: 500; color: var(--ink-2); padding: 8px 12px; background: var(--sunk); border-bottom: 1px solid var(--line); }
.msg pre { white-space: pre-wrap; font: 14px/1.5 "DM Sans", system-ui, sans-serif; margin: 0; padding: 12px; }
.notify-hit { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--r-ctl); padding: 12px; margin: 12px 0; }
.ok { background: var(--green-bg); border-radius: var(--r-ctl); padding: 12px; margin-top: 0; }
.want-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.want-row .muted { grid-column: 1; }
.want-n { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--ink-2); font-weight: 500; font-size: 13px; font-variant-numeric: tabular-nums; }

/* Trade-in quote */
.quote .q-box { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.q-box > div { display: grid; text-align: center; border-radius: var(--radius); padding: 16px; background: var(--panel); border: 1px solid var(--line); }
.q-box span { color: var(--muted); font-size: 13px; font-weight: 500; }
.q-box .best { background: var(--green-bg); border-color: rgba(31, 122, 63, .25); }
.q-box small { justify-self: center; margin-top: 4px; color: var(--green); font-size: 13px; font-weight: 500; }
.wheel { display: inline-flex; align-items: center; margin: 4px auto 0; font-family: var(--display); font-weight: 500; font-size: 40px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.q-box .best .wheel { color: var(--green); }
.q-box .wheel span { color: inherit; font-size: inherit; font-weight: inherit; }
.wd { display: inline-block; height: 1em; overflow: hidden; }
.wd-strip { display: flex; flex-direction: column; transition: transform .7s var(--ease); }
.wd-strip span { height: 1em; display: block; }

/* Price check (PriceCharting, eBay sold) */
.pc-box { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; margin: 4px 0 12px; background: var(--sunk); }
.pc-title { margin-bottom: 8px; }
.pc-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pc-cols > div { display: grid; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.pc-cols span { font-size: 12px; color: var(--muted); font-weight: 500; }
.pc-cols b { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pc-cols small { font-size: 12px; color: var(--muted); }
.pc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pc-box p { margin: 8px 0 0; }
.diff { font-weight: 500; font-size: 13px; padding: 2px 8px; border-radius: var(--r-sm); white-space: nowrap; }
.diff.ok { background: var(--green-bg); color: var(--green); } .diff.hi { background: #fbe9e7; color: var(--red-d); } .diff.lo { background: var(--warn-bg); color: #7a4f0e; }
.pc-form { display: grid; grid-template-columns: 2fr 1fr auto; gap: 8px; }
.price-links { display: inline-flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Overlays ---------- */
.modal { position: fixed; inset: 0; background: rgba(31, 27, 22, .5); display: flex; align-items: flex-start; justify-content: center; padding: 32px 16px; z-index: 50; overflow-y: auto; }
.modal[hidden] { display: none; }
.modal-card { background: var(--panel); border-radius: 18px; padding: 24px; max-width: 620px; width: 100%; position: relative; box-shadow: var(--shadow-float); }
.modal-card > .x { position: absolute; top: 12px; right: 12px; border: 0; background: var(--raised); color: var(--ink-2); width: 32px; height: 32px; border-radius: 8px; font-size: 20px; cursor: pointer; }
.caption-preview { display: grid; grid-template-columns: 112px 1fr; gap: 12px; }
.caption-preview img { width: 112px; height: 112px; object-fit: cover; border-radius: 8px; }
#toasts { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 60; width: min(92vw, 460px); }
.toast { background: var(--ink); color: #fffdf9; padding: 12px 16px; border-radius: var(--r-ctl); box-shadow: var(--shadow-float); font-size: 14px; animation: rise .3s var(--ease) both; }
.toast a { color: #fffdf9; } .toast.warn { background: #6b4210; }

/* 1UP pop when something is reserved or saved: the one playful moment */
.oneup-fx { position: fixed; z-index: 80; width: 0; height: 0; pointer-events: none; }
.oneup-text { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); font-family: var(--display); font-weight: 700;
  font-size: 36px; color: var(--lime); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--ink); white-space: nowrap;
  animation: oneup-rise 1.2s var(--ease) forwards; }
@keyframes oneup-rise {
  0% { transform: translate(-50%, -30%) scale(.6); opacity: 0; }
  20% { transform: translate(-50%, -100%) scale(1); opacity: 1; }
  75% { opacity: 1; }
  100% { transform: translate(-50%, -240%); opacity: 0; }
}
.oneup-fx i { position: absolute; left: -4px; top: -7px; width: 9px; height: 14px; border: 1.5px solid var(--ink); border-radius: 2px;
  animation: confetti-fly 1s var(--ease) forwards; }
@keyframes confetti-fly { to { transform: translate(var(--dx), calc(var(--dy) + 140px)) rotate(var(--rot)); opacity: 0; } }

/* Floating "Text us" button */
.contact-fab { position: fixed; right: 24px; bottom: 24px; z-index: 45; display: grid; justify-items: end; gap: 12px; }
.fab-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 500; font-size: 15px; min-height: 48px;
  color: #fffdf9; background: var(--ink); padding: 0 20px 0 16px; border-radius: 24px; box-shadow: var(--shadow-float);
  transition: background-color .15s var(--ease), transform .12s var(--ease); }
.fab-btn:hover { background: #3a332b; }
.fab-btn:active { transform: scale(.97); }
.fab-btn.open { background: #3a332b; }
.fab-ico { display: inline-flex; }
.fab-ico svg { width: 18px; height: 18px; }
.fab-menu { width: 264px; background: var(--panel); border-radius: 16px; padding: 12px; box-shadow: 0 16px 40px rgba(31, 27, 22, .16); border: 1px solid var(--line); animation: rise .2s var(--ease) both; }
.fab-menu[hidden] { display: none; }
.fab-title { margin: 4px 4px 8px; font-weight: 600; }
.fab-title small { font-weight: 400; color: var(--muted); font-size: 13px; }
.fab-opt { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 14px; transition: background-color .15s var(--ease); }
.fab-opt:hover { background: var(--raised); color: var(--ink); }

/* ---------- Staff tools: tabs, inventory table, trade-in counter ---------- */
.staff-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 32px 0 16px; }
.staff-head h1 { margin: 0; }
.staff-tabs { display: flex; gap: 4px; padding: 4px; background: var(--raised); border-radius: 12px; }
.staff-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: background-color .15s var(--ease), color .15s var(--ease); }
.staff-tabs a:hover { color: var(--ink); }
.staff-tabs a.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
.tab-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: 12px; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.staff-lede { margin: 0 0 16px; }
.intake-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 24px;
  background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--r-ctl); font-size: 14px; }
.intake-note b { font-weight: 600; }

.inv-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.inv-top h2 { margin-bottom: 4px; }
.inv-top p { margin: 0; max-width: 60ch; }
.inv-top input { width: 240px; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 16px; }
.seg button { font: inherit; font-size: 13px; font-weight: 500; color: var(--ink-2); background: var(--panel); border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 12px; cursor: pointer;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease); }
.seg button span { color: var(--muted); font-variant-numeric: tabular-nums; margin-left: 2px; }
.seg button:hover { border-color: rgba(31, 27, 22, .28); color: var(--ink); }
.seg button.on { background: var(--ink); border-color: var(--ink); color: #fffdf9; }
.seg button.on span { color: #c9c1b4; }
.bulk { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding: 8px 12px; margin-bottom: 12px; background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r-ctl); font-size: 14px; }
.bulk[hidden] { display: none; }
.bulk label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; }
.pct { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; }
.pct input { width: 64px; min-height: 32px; padding: 4px 8px; text-align: right; font-variant-numeric: tabular-nums; }

.table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.inv-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.inv-table th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.inv-table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.inv-table tbody tr { transition: background-color .15s var(--ease); }
.inv-table tbody tr:hover, .inv-table tr.sel { background: var(--sunk); }
.inv-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.inv-table .num.warn { color: #9a5b0b; font-weight: 600; }
.inv-table .ck { width: 32px; }
.inv-table .acts { white-space: nowrap; text-align: right; }
.inv-table .acts .btn + .btn { margin-left: 4px; }
.inv-table .it { display: flex; align-items: center; gap: 12px; min-width: 240px; }
.inv-table .it img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; flex: none; background: var(--raised); }
.inv-table .it a { font-weight: 500; text-decoration: none; }
.inv-table .it a:hover { text-decoration: underline; }
.inv-table .empty { margin: 8px 0; }
.price-in { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); }
.price-in input { width: 84px; min-height: 32px; padding: 4px 8px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }

.trade-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.trade-grid .panel { margin-bottom: 24px; }
.tk-add { display: grid; grid-template-columns: minmax(180px, 2fr) minmax(180px, 1.4fr) minmax(120px, 1fr) auto auto; gap: 0 12px; align-items: end; padding: 16px; margin: 4px 0 16px; background: var(--sunk); border: 1px solid var(--line); border-radius: 12px; }
.tk-add label { margin-bottom: 0; }
.tk-add .check { min-height: 40px; }
.tk-name { font-weight: 500; }
.tk-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.tag { font-size: 12px; padding: 2px 8px; border-radius: var(--r-sm); background: var(--raised); color: var(--ink-2); }
.tag.want { background: var(--green-bg); color: var(--green); }
.tk-sum { position: sticky; top: 88px; }
.tk-sum .q-box { grid-template-columns: 1fr; margin: 0 0 12px; }
.tk-sum .q-box > div:not(.best) .wheel { color: var(--ink-2); }
.seg.pay { display: grid; grid-template-columns: 1fr 1fr; }
.rates { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.rates summary { cursor: pointer; font-weight: 500; }
.rates-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin-top: 12px; }
.rates-grid label { margin-bottom: 8px; }
.rates-grid .pct input { width: 100%; }

.pill.sale { background: var(--red); color: #fff; }
.was { color: var(--muted); font-size: 13px; margin-left: 4px; font-variant-numeric: tabular-nums; }
.big-price .was { font-size: 16px; }
.btn.danger { color: var(--red-d); }
.btn.danger:hover { border-color: var(--red); background: #fbefed; color: var(--red-d); }
.row.spread { justify-content: space-between; }
.edit-guide { margin: -4px 0 8px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }

@media (max-width: 960px) {
  .trade-grid { grid-template-columns: 1fr; gap: 0; }
  .tk-sum { position: static; }
  .tk-add { grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .tk-add .tk-game { grid-column: 1 / -1; margin-bottom: 12px; }
  .tk-add .btn { margin-top: 12px; }
}
@media (max-width: 640px) {
  .staff-head { margin-top: 24px; }
  .staff-tabs { width: 100%; }
  .staff-tabs a { flex: 1; justify-content: center; padding: 8px 6px; font-size: 13px; text-align: center; }
  .inv-top input { width: 100%; }
}

/* ---------- Customers, store credit, receipts ---------- */
.tk-who { min-height: 20px; margin: -4px 0 16px; font-size: 14px; }
.tk-need { margin: 8px 0 0; }
.credit-chip { display: inline-block; padding: 2px 8px; border-radius: var(--r-sm); background: var(--green-bg); color: var(--green); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.inv-table tr.click { cursor: pointer; }
.cust-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.cust-grid .panel h2 { font-size: 28px; margin-bottom: 8px; }
.cust-meta { margin: 0 0 16px; font-size: 15px; }
.cust-bal { display: grid; align-content: start; gap: 4px; background: var(--green-bg); border-color: rgba(31, 122, 63, .2); }
.cust-bal b { font-family: var(--display); font-weight: 500; font-size: 44px; line-height: 1.1; letter-spacing: -.02em; color: var(--green); font-variant-numeric: tabular-nums; }
.cust-bal .row { margin-top: 12px; }
.cust-cols { margin-top: 0; }
.inv-table .amt { font-weight: 500; }
.inv-table .amt.plus { color: var(--green); }
.sell-sum { padding: 12px 16px; border-radius: var(--r-ctl); background: var(--sunk); border: 1px solid var(--line); font-size: 15px; font-variant-numeric: tabular-nums; }
.sell-sum .err { color: var(--red-d); font-weight: 500; }
.receipt h2 { margin: 16px 0 4px; }
.receipt .inv-table tfoot th { border-top: 1px solid var(--line-2); border-bottom: 0; color: var(--ink); font-size: 14px; padding-top: 12px; }
.rc-head { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px dashed var(--line-2); }
.rc-head b { font-family: var(--display); font-size: 18px; color: var(--red); }
.rc-head span { font-size: 13px; color: var(--muted); }
.rc-bal { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 4px; padding: 12px 16px; border-radius: var(--r-ctl); background: var(--green-bg); }
.rc-bal b { font-family: var(--display); font-size: 24px; font-weight: 500; color: var(--green); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .cust-grid { grid-template-columns: 1fr; gap: 0; } .cust-grid .panel { margin-bottom: 16px; } }
@media (max-width: 640px) { .staff-tabs { display: grid; grid-template-columns: 1fr 1fr; } }
@media print {
  body { background: #fff; padding: 0; }
  body * { visibility: hidden; }
  #modal, #modal * { visibility: visible; }
  #modal { position: absolute; inset: 0; background: none; padding: 0; display: block; }
  .modal-card { box-shadow: none; max-width: none; padding: 0; }
  .modal-card > .x, .no-print { display: none !important; }
}

/* ---------- Tablet ---------- */
@media (min-width: 861px) and (max-width: 1060px) {
  .socials { padding-left: 8px; } .wn-logo { width: 30px; } .soc-live { padding: 0 8px; }
  .top-inner { gap: 16px; }
}
@media (max-width: 1060px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-art { padding-left: 24px; }
  .hero-stats { grid-template-columns: repeat(2, auto); gap: 16px 40px; }
}
@media (max-width: 860px) {
  .top { position: relative; }
  .top-inner { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
  .socials { order: 1; border-left: 0; margin-left: auto; padding-left: 0; }
  .nav { order: 2; flex-basis: 100%; margin-left: 0; }
  .top-search { order: 3; flex-basis: 100%; max-width: none; margin: 0; }
  main { padding: 0 16px 16px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
  .hero-art { padding: 0 0 24px; }
  .ring { width: min(100%, 300px); }
  .shop-layout, .product, .two-col, .draft-grid { grid-template-columns: 1fr; }
  .side { display: block; }
  .side-banners, .ig-side { display: none; }
  .filters { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; align-items: end; margin-bottom: 24px; }
  .filters h3, .filters label:first-of-type { grid-column: 1 / -1; }
  .filters .btn { margin-bottom: 12px; }
  .ig { display: block; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .quick-links { display: grid; grid-template-columns: repeat(3, 1fr); }
  .ql + .ql { border-left: 0; }
  .ql:not(:nth-child(3n+1)) { border-left: 1px solid var(--line); }
  .ql:nth-child(n+4) { border-top: 1px solid var(--line); }
  .visit { grid-template-columns: 1fr; padding: 24px; }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .demo-banner { font-size: 11px; padding: 4px 12px; }
  .db-more { display: none; }
  .announce { flex-wrap: nowrap; gap: 14px; font-size: 12px; padding: 6px 12px; white-space: nowrap; }
  .announce .an-ship, .announce .an-hours { display: none; }
  .an-short { display: inline; }
  .announce span + span::before { margin-right: 14px; margin-left: -7px; }
  .top-inner { padding: 8px 16px 12px; gap: 8px 12px; }
  .logo img { width: 36px; height: 36px; }
  .logo-txt b { font-size: 18px; }
  .logo-txt .logo-sub { font-size: 10px; }
  .socials { gap: 2px; }
  .soc { height: 36px; min-width: 36px; padding: 0 8px; }
  .wn-logo { width: 30px; }
  .mq-label { padding: 0 12px 0 16px; }

  /* links move to a bottom tab bar with line icons */
  .nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; margin: 0; order: 9; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
    padding: 4px 8px calc(4px + env(safe-area-inset-bottom)); background: var(--panel); border-top: 1px solid var(--line); }
  .nav a, .nav .staff-link { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0; padding: 8px 2px; border-radius: 10px;
    font-size: 12px; font-weight: 500; color: var(--muted); box-shadow: none; }
  .nav a::before { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
  .nav a[data-page="shop"]     { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l1.5-5h15L21 9'/%3E%3Cpath d='M4 9v11h16V9'/%3E%3Cpath d='M9 20v-6h6v6'/%3E%3C/svg%3E"); }
  .nav a[data-page="wishlist"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10.3 21a1.94 1.94 0 0 0 3.4 0'/%3E%3C/svg%3E"); }
  .nav a[data-page="trade"]    { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 3l4 4-4 4'/%3E%3Cpath d='M3 7h18'/%3E%3Cpath d='M7 21l-4-4 4-4'/%3E%3Cpath d='M21 17H3'/%3E%3C/svg%3E"); }
  .nav a[data-page="staff"]    { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E"); }
  .nav a.on, .nav .staff-link.on { background: var(--raised); color: var(--ink); }

  .hero { padding: 32px 0; gap: 24px; }
  .hero h1 { font-size: 36px; letter-spacing: -.02em; margin: 12px 0 16px; }
  .hero-sub { font-size: 16px; }
  .hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 24px; }
  .hero-cta .btn.lg { padding: 8px; font-size: 15px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; padding-top: 20px; }
  .hero-stats dt { font-size: 20px; }
  .eyebrow-loc { display: none; }
  .ring { width: min(100%, 260px); }

  .quick-links { margin-bottom: 40px; }
  .ql { padding: 12px 4px; font-size: 13px; }
  .shop-by { margin-bottom: 40px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 40px; }
  .card-body { padding: 12px; }
  .ig-tile:nth-child(n+7) { display: none; }
  .ig-follow { width: 100%; }
  .req-grid { grid-template-columns: 1fr 1fr; }
  .pc-form { grid-template-columns: 1fr 1fr; } .pc-form input { grid-column: 1 / -1; }
  .sticky-actions { bottom: calc(64px + env(safe-area-inset-bottom)); }

  .contact-fab { right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); }
  .fab-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fab-btn { width: 52px; height: 52px; padding: 0; justify-content: center; border-radius: 26px; }
  .fab-ico svg { width: 20px; height: 20px; }
  .fab-menu { width: min(280px, calc(100vw - 24px)); }
  #toasts { bottom: calc(144px + env(safe-area-inset-bottom)); }
}
@media (max-width: 480px) {
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .caption-preview { grid-template-columns: 1fr; }
  .caption-preview img { width: 80px; height: 80px; }
  .inv-row { grid-template-columns: 44px 1fr; } .inv-a { grid-column: 1 / -1; justify-content: flex-start; }
  .pc-cols { grid-template-columns: 1fr 1fr; }
  .pc-cols > div:last-child { grid-column: 1 / -1; }
  .price-links { width: 100%; }
  .price-links .btn { flex: 1; }
  .ig-s { display: none; } .ig-text { padding: 12px; }
}

/* Reduced motion: keep the look, drop the movement */
@media (prefers-reduced-motion: reduce) {
  .hero.intro .hero-copy > *, .hero.intro .hero-art, .toast, .fab-menu, .ring, .pixel-strip { animation: none; }
  .card { transform: none; transition: none; }
  .mq-window { overflow-x: auto; scrollbar-width: none; }
  .mq-track { animation: none; }
  .mq-run[aria-hidden="true"] { display: none; }
  .wd-strip { transition: none; }
  .oneup-text { animation: oneup-fade 1.2s ease forwards; }
  @keyframes oneup-fade { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
}

/* Trade ticket: add an item by hand */
.tk-manual { grid-column: 1 / -1; margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.man-links { margin: -4px 0 0; }
.man-newsys[hidden] { display: none; }
