/* shop.joe.bot — GLITCH OBJECTS
   Visual language lifted from joe.bot: black, #ff6a00 / #ffcc00, Press Start 2P,
   double orange borders with a slow glow pulse, hard offset text shadows. */

:root {
  --bg: #000;
  --ink: #050100;
  --panel: rgba(6, 2, 0, 0.9);
  --orange: #ff6a00;
  --amber: #ffcc00;
  --red: #ff0000;
  --cream: #fff3c4;
  --muted: #b9aa88;
  --dim: #6f5a3a;
  --line: rgba(255, 106, 0, 0.55);
  --line-soft: rgba(255, 106, 0, 0.25);
  --ok: #8dff6a;
  --glow: 0 0 15px #ff6a00, 0 0 25px rgba(255, 204, 0, 0.5);

  --px: 'Press Start 2P', monospace;
  --vt: 'VT323', monospace;
  --body: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --gut: clamp(16px, 4vw, 32px);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--cream); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--bg);
  font: 15px/1.6 var(--body);
  overflow-x: hidden;
}
body.ov-open { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: var(--amber); }
button { font: inherit; color: inherit; }
::selection { background: var(--orange); color: #000; }
:focus-visible { outline: 2px dashed var(--amber); outline-offset: 3px; }

#stars { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -2; pointer-events: none; }
.crt-overlay {
  position: fixed; inset: 0; z-index: 50; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.18) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.55) 100%);
  mix-blend-mode: multiply;
}
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--orange); color: #000; padding: 8px 12px; font-family: var(--px); font-size: 10px; }
.skip:focus { left: 8px; }
.mono { font-family: var(--body); }
.dim { color: var(--dim); }

/* ---------- buttons (rectangular, outlined, joe.bot-style) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--px); font-size: 10px; line-height: 1.4; letter-spacing: 0.02em;
  color: var(--amber); text-decoration: none; text-transform: uppercase;
  padding: 11px 14px; border: 2px solid var(--orange); background: var(--ink);
  box-shadow: 2px 2px 0 var(--orange); cursor: pointer;
  transition: background 0.12s, color 0.12s, transform 0.08s, box-shadow 0.08s;
  white-space: nowrap;
}
.btn:hover { background: var(--orange); color: #000; }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--orange); }
.btn.is-on { background: var(--orange); color: #000; text-shadow: 1px 1px 0 rgba(255,255,255,0.5); }
.btn-sm { font-size: 8px; padding: 7px 9px; box-shadow: none; }
.btn-lg { font-size: 12px; padding: 16px 20px; }
.btn-alt { border-color: var(--amber); color: var(--amber); box-shadow: 2px 2px 0 var(--amber); }
.btn-cta { color: #000; background: var(--amber); border-color: var(--amber); box-shadow: 3px 3px 0 var(--orange), 0 0 18px rgba(255, 204, 0, 0.35); }
.btn-cta:hover { background: #fff3c4; color: #000; }
.btn[disabled], .btn.is-out { color: var(--dim); border-color: var(--dim); background: transparent; box-shadow: none; cursor: not-allowed; text-shadow: none; }
.btn.is-out { cursor: pointer; }
.btn.is-arch { border-style: dashed; color: var(--muted); border-color: var(--muted); box-shadow: none; cursor: default; }
.btn.full { width: 100%; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(0, 0, 0, 0.92); border-bottom: 1px solid var(--orange); backdrop-filter: blur(3px); }
.topbar-in { max-width: var(--max); margin: 0 auto; padding: 10px var(--gut); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.tb-home { font-family: var(--px); font-size: 8px; color: var(--orange); text-decoration: none; }
.tb-home:hover { color: var(--amber); }
.tb-shop { display: flex; flex-direction: column; align-items: center; text-decoration: none; gap: 4px; }
.tb-j { font-family: var(--px); font-size: 14px; color: var(--amber); text-shadow: 2px 2px 0 var(--orange); }
.tb-s { font-family: var(--px); font-size: 6px; color: var(--orange); letter-spacing: 0.15em; }
.tb-nav { display: flex; justify-content: flex-end; gap: 10px; align-items: center; }
.tb-nav a { font-family: var(--px); font-size: 8px; color: var(--orange); text-decoration: none; padding: 7px 8px; border: 1px solid transparent; }
.tb-nav a:hover, .tb-nav a[aria-current] { color: var(--amber); border-color: var(--line); }
.cart-link { border-color: var(--orange) !important; color: var(--amber) !important; }
.cart-n { display: inline-block; min-width: 2.4ch; padding: 2px 3px; margin-left: 4px; background: var(--dim); color: #000; text-align: center; }
.cart-link.has-items .cart-n { background: var(--amber); }
.cart-link.blip { animation: blip 0.5s steps(2) 2; }
@keyframes blip { 50% { background: var(--orange); color: #000 !important; } }

.ticker { overflow: hidden; border-top: 1px solid var(--line-soft); font-family: var(--vt); font-size: 17px; line-height: 22px; color: var(--orange); white-space: nowrap; }
.ticker-in { display: inline-flex; gap: 48px; padding-left: 100%; animation: crawl 48s linear infinite; }
.ticker-in span:first-child, .ticker-in span:nth-child(6) { color: var(--amber); }
@keyframes crawl { to { transform: translateX(-100%); } }

/* ---------- page shell ---------- */
.view { max-width: var(--max); margin: 0 auto; padding: 22px var(--gut) 60px; outline: none; min-height: 60vh; }
.view.tuning { animation: tune 0.22s steps(4) 1; }
@keyframes tune {
  0% { opacity: 0.2; transform: translateX(-6px) skewX(4deg); filter: drop-shadow(6px 0 0 rgba(255,0,0,0.7)); }
  50% { opacity: 0.8; transform: translateX(4px) skewX(-2deg); filter: drop-shadow(-4px 0 0 rgba(255,204,0,0.6)); }
  100% { opacity: 1; transform: none; filter: none; }
}

.crumbs { font-family: var(--px); font-size: 8px; color: var(--dim); margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumbs a { color: var(--orange); text-decoration: none; }
.crumbs a:hover { color: var(--amber); }
.crumbs [aria-current] { color: var(--muted); }

.label-h { font-family: var(--px); font-size: 12px; color: var(--amber); text-shadow: 2px 2px 0 var(--red); margin: 0; letter-spacing: 0.04em; font-weight: 400; }
.label-h.sm { font-size: 9px; text-shadow: none; color: var(--orange); margin-bottom: 10px; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; padding: 26px 0 28px; }
.hero-joebot { font-family: var(--px); font-size: clamp(30px, 7vw, 64px); color: var(--amber); text-decoration: none; text-shadow: 2px 2px 0 #000, 4px 4px 0 var(--orange); display: inline-block; line-height: 1.1; }
.hero-joebot:hover { animation: glitchx 0.2s steps(1) infinite; }
@keyframes glitchx { 50% { text-shadow: 10px 0 0 var(--red), 4px 4px 0 var(--orange); } }
.hero-title { margin: 18px 0 0; font-family: var(--px); font-weight: 400; font-size: clamp(13px, 2.4vw, 22px); color: var(--orange); display: flex; flex-wrap: wrap; gap: 0.6em; letter-spacing: 0.06em; }
.hero-title .slash { color: var(--amber); }
.hero-line { margin: 16px 0 0; max-width: 46ch; color: var(--muted); font-size: 15px; }

.readout { margin: 0; border: 2px solid var(--orange); background: var(--panel); padding: 12px 14px; min-width: 230px; font-family: var(--vt); font-size: 20px; line-height: 1.15; box-shadow: 4px 4px 0 rgba(255,106,0,0.35); }
.readout div { display: flex; justify-content: space-between; gap: 24px; }
.readout dt { color: var(--orange); }
.readout dd { margin: 0; color: var(--amber); }
.readout .warn dd { color: var(--red); text-shadow: 0 0 8px rgba(255,0,0,0.6); }
.dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; background: currentColor; vertical-align: 2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.blink { animation: blink 1s steps(1) infinite; }

/* ---------- category nav ---------- */
.catnav { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 0 26px; border-top: 1px solid var(--line-soft); }
.catnav .btn { font-size: 9px; padding: 10px 11px; }

/* ---------- featured panel (joe.bot double border + pulse) ---------- */
.feature { position: relative; border: 5px double var(--orange); background: #000; box-shadow: var(--glow); margin: 6px 0 46px; }
.pulse { animation: pulse 3s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 15px #ff6a00, 0 0 25px rgba(255,204,0,0.45), 0 0 35px rgba(255,106,0,0.4); }
  50% { box-shadow: 0 0 25px rgba(255,204,0,0.7), 0 0 35px #ff6a00, 0 0 45px rgba(255,204,0,0.35); }
}
.feature-label { display: flex; justify-content: space-between; padding: 9px 14px; border-bottom: 2px solid var(--orange); font-family: var(--px); font-size: 9px; color: #000; background: var(--orange); }
.feature-grid { display: grid; grid-template-columns: 1.15fr 1fr; }
.feature-stage { display: grid; place-items: center; padding: 34px 20px; border-right: 2px solid var(--line); background: radial-gradient(circle at 50% 60%, rgba(255,106,0,0.16), transparent 65%); text-decoration: none; min-height: 340px; }
.feature-record { padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 14px; }

/* ---------- record (shared by feature + product page) ---------- */
.rec-code { font-family: var(--px); font-size: 9px; color: var(--orange); letter-spacing: 0.08em; }
.rec-cat { color: var(--dim); }
.rec-title { margin: 0; font-family: var(--px); font-weight: 400; font-size: clamp(18px, 2.6vw, 26px); line-height: 1.35; color: var(--amber); text-shadow: 3px 3px 0 var(--orange); }
.rec-title.big { font-size: clamp(20px, 3.4vw, 34px); }
.rec-tag { font-family: var(--px); font-size: 9px; line-height: 1.8; color: var(--cream); letter-spacing: 0.05em; }
.rec-flags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.rec-flags li { font-family: var(--px); font-size: 7px; color: var(--ok); border: 1px solid rgba(141,255,106,0.5); padding: 6px 7px; }
.rec-flags li::before { content: '● '; }
.ed-read { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 14px; font-family: var(--vt); font-size: 26px; line-height: 1; padding: 10px 12px; border: 1px solid var(--line); background: rgba(255,106,0,0.06); color: var(--amber); }
.ed-read span:last-child { color: var(--orange); }
.ed-low span:last-child { color: var(--red); text-shadow: 0 0 8px rgba(255,0,0,0.5); animation: blink 1.6s steps(1) infinite; }
.ed-out { color: var(--dim); border-color: var(--dim); }
.ed-out span:last-child { color: var(--red); }
.ed-unique span:first-child { color: var(--cream); text-shadow: 0 0 10px rgba(255,204,0,0.6); }
.meter { display: flex; flex-wrap: wrap; gap: 3px; margin-top: -6px; }
.meter i { width: 12px; height: 12px; border: 1px solid var(--orange); }
.meter i.left { background: var(--amber); box-shadow: 0 0 6px rgba(255,204,0,0.5); }
.meter i.gone { background: transparent; border-color: var(--dim); }
.rec-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 4px; }
.price { font-family: var(--vt); font-size: 46px; line-height: 0.9; color: var(--amber); text-shadow: 2px 2px 0 var(--orange); }
.price.struck { color: var(--dim); text-decoration: line-through; text-shadow: none; }
.rec-msg { min-height: 1.6em; font-family: var(--vt); font-size: 20px; }
.rec-msg .ok { color: var(--ok); }
.rec-msg .err { color: var(--red); }
.rec-msg a { color: var(--amber); text-decoration: none; }
.rec-summary { margin: 0; color: var(--cream); max-width: 60ch; }

.specs { margin: 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line-soft); align-items: baseline; }
.specs dt { font-family: var(--px); font-size: 8px; color: var(--orange); letter-spacing: 0.05em; }
.specs dd { margin: 0; font-family: var(--vt); font-size: 21px; line-height: 1.1; color: var(--cream); text-transform: uppercase; }
.specs-tight div { padding: 5px 0; }

.includes ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.includes li { font-family: var(--vt); font-size: 20px; color: var(--cream); }
.includes li::before { content: '+ '; color: var(--amber); }
.ship p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- shelves + cards ---------- */
.shelf { margin: 0 0 50px; }
.shelf-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 2px solid var(--orange); }
.shelf-count { font-family: var(--vt); font-size: 19px; color: var(--muted); }
.shelf-count.link { color: var(--orange); text-decoration: none; }
.shelf-count.link:hover { color: var(--amber); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }

.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; border: 2px solid var(--orange); background: var(--ink); box-shadow: 6px 6px 0 rgba(255,106,0,0.35); transition: transform 0.12s, box-shadow 0.12s; }
.card:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 rgba(255,106,0,0.5), 0 0 22px rgba(255,106,0,0.25); }
.card:hover .card-title { animation: glitchx 0.2s steps(1) 2; }
.card.is-out { border-color: var(--dim); box-shadow: 6px 6px 0 rgba(111,90,58,0.3); }
.card.is-out .card-media > .obj { filter: grayscale(0.85) brightness(0.6); }
.card-media { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; border-bottom: 2px solid inherit; border-bottom: 2px solid var(--line); background:
  radial-gradient(circle at 50% 55%, rgba(255,106,0,0.13), transparent 70%),
  repeating-linear-gradient(90deg, rgba(255,106,0,0.05) 0 1px, transparent 1px 22px),
  repeating-linear-gradient(0deg, rgba(255,106,0,0.05) 0 1px, transparent 1px 22px), #030100; }
.card-idx { position: absolute; left: 8px; top: 8px; font-family: var(--px); font-size: 7px; color: var(--orange); }
.chip { position: absolute; right: 8px; top: 8px; font-family: var(--px); font-size: 7px; padding: 4px 5px; background: #000; border: 1px solid currentColor; }
.chip-ok { color: var(--amber); }
.chip-low { color: var(--red); }
.chip-unique { color: var(--cream); border-color: var(--amber); box-shadow: 0 0 8px rgba(255,204,0,0.5); }
.chip-out { color: var(--dim); }
.card-body { padding: 14px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-code { font-family: var(--px); font-size: 8px; color: var(--orange); }
.card-title { margin: 0; font-family: var(--px); font-size: 12px; font-weight: 400; line-height: 1.5; color: var(--amber); }
.card-tag { font-family: var(--vt); font-size: 18px; line-height: 1.05; color: var(--muted); }
.card-foot { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px dashed var(--line-soft); }
.card-price { font-family: var(--vt); font-size: 26px; color: var(--amber); }
.card.is-out .card-price, .card.is-out .card-title { color: var(--dim); }

/* ---------- object renders ---------- */
.obj { width: 100%; display: grid; place-items: center; }
.obj img, .obj video { width: 100%; height: 100%; object-fit: cover; }
.no-signal { width: 100%; height: 100%; display: grid; place-items: center; background: repeating-linear-gradient(90deg, #ffcc00 0 14%, #00d0d0 14% 28%, #00c000 28% 42%, #c000c0 42% 57%, #d00000 57% 71%, #0000c0 71% 85%, #111 85%); }
.no-signal span { background: #000; padding: 6px 8px; font-family: var(--px); font-size: 8px; color: #fff; }

/* print */
.obj-print .paper { position: relative; width: calc(78% * var(--s, 0.85)); aspect-ratio: 1; padding: 7%; background: #f1e9d4; box-shadow: 0 18px 30px rgba(0,0,0,0.6), 0 0 0 1px #c9bb98; transform: rotate(-1.2deg); transition: width 0.25s; }
.obj-print .paper img, .obj-print .paper video { aspect-ratio: 1; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.2); }
.pencil { position: absolute; right: 7%; bottom: 1.6%; font: italic 10px/1 'IBM Plex Mono', monospace; color: #6c6458; letter-spacing: 0.05em; }

/* vhs */
.obj-vhs { padding: 6%; }
.tape { --shell: #ff6a00; position: relative; width: 92%; max-width: 440px; aspect-ratio: 187 / 103; border-radius: 4px 4px 6px 6px; padding: 5% 6% 4%;
  background: linear-gradient(180deg, color-mix(in srgb, var(--shell) 85%, #fff) 0%, var(--shell) 18%, color-mix(in srgb, var(--shell) 70%, #000) 100%);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0.25), inset 0 -10px 0 rgba(0,0,0,0.18), 0 14px 26px rgba(0,0,0,0.7), 0 0 30px color-mix(in srgb, var(--shell) 35%, transparent);
  transform: rotate(-3deg); display: grid; grid-template-rows: auto 1fr; gap: 6%; }
.tape::before, .tape::after { content: ''; position: absolute; top: 4%; width: 4%; aspect-ratio: 1; border-radius: 50%; background: rgba(0,0,0,0.35); }
.tape::before { left: 2.4%; } .tape::after { right: 2.4%; }
.tape-label { background: #f6efdc; padding: 3.5% 4.5% 3%; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 2px 10px; align-items: center; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12); }
.tape-no { font-family: var(--px); font-size: clamp(5px, 1.1vw, 8px); color: #b33a00; grid-row: 1 / 3; writing-mode: vertical-rl; transform: rotate(180deg); }
.letraset { font-family: 'Helvetica Neue', Arial, sans-serif; font-weight: 800; font-size: clamp(11px, 2.6vw, 21px); letter-spacing: 0.02em; color: #111; white-space: nowrap; line-height: 1; }
.letraset span { display: inline-block; transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--r, 0)); }
.letraset .sp { width: 0.32em; }
.tape-meta { font-family: var(--vt); font-size: clamp(9px, 1.6vw, 14px); color: #6a5a40; letter-spacing: 0.08em; line-height: 1; }
.tape-window { position: relative; margin: 0 14%; background: #0b0604; border-radius: 3px; box-shadow: inset 0 2px 6px rgba(0,0,0,0.9); display: flex; justify-content: space-between; align-items: center; padding: 0 10%; overflow: hidden; }
.reel { position: relative; z-index: 1; width: 24%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #ddd 0 16%, #222 17% 28%, #3a2a20 29% 100%); box-shadow: 0 0 0 2px #1a120c; }
.tape-peek { position: absolute; inset: 22% 32%; opacity: 0.55; filter: saturate(1.4); }

/* crt */
.obj-crt { gap: 0; padding: 7% 6%; }
.crt { width: 86%; max-width: 420px; background: linear-gradient(180deg, #34312d, #1f1d1a); border-radius: 8px 8px 4px 4px; padding: 6% 6% 0; box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 22px 40px rgba(0,0,0,0.8); }
.crt-bezel { background: #121110; padding: 5%; border-radius: 6px; box-shadow: inset 0 0 0 2px #0a0908, inset 0 6px 14px rgba(0,0,0,0.9); }
.crt-screen { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14% / 18%; background: #000; box-shadow: 0 0 22px rgba(255,106,0,0.35); }
.crt-screen img, .crt-screen video { filter: saturate(1.25) contrast(1.1) blur(0.3px); transform: scale(1.04); }
.scan { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,0.42) 0 1px, transparent 1px 3px); pointer-events: none; }
.glass { position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.16), transparent 45%), radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.7)); pointer-events: none; }
.crt-panel { display: flex; align-items: center; gap: 8px; padding: 4% 2% 5%; }
.crt-led { width: 6px; height: 6px; border-radius: 50%; background: #3dff3d; box-shadow: 0 0 6px #3dff3d; }
.crt-badge { flex: 1; font-family: var(--body); font-size: clamp(5px, 1vw, 8px); letter-spacing: 0.12em; color: #8f8a80; }
.crt-knob { width: 9px; height: 9px; border-radius: 50%; background: #0b0a09; box-shadow: inset 0 1px 1px rgba(255,255,255,0.2); }
.obj-crt.with-vcr .crt { width: 74%; }
.vcr { width: 88%; max-width: 440px; margin-top: 3%; height: auto; aspect-ratio: 10 / 1.3; background: linear-gradient(180deg, #2a2724, #141210); border-radius: 3px; display: flex; align-items: center; gap: 4%; padding: 0 4%; box-shadow: 0 10px 20px rgba(0,0,0,0.7); }
.vcr-slot { flex: 1; height: 38%; background: #050404; position: relative; overflow: visible; }
.vcr-tape { position: absolute; left: 12%; right: 12%; bottom: 40%; height: 120%; background: var(--shell); border-radius: 2px 2px 0 0; box-shadow: 0 -2px 6px color-mix(in srgb, var(--shell) 60%, transparent); }
.vcr-led { font-family: var(--vt); font-size: clamp(9px, 1.5vw, 14px); color: #3dff3d; text-shadow: 0 0 6px #3dff3d; }
.vcr-counter { font-family: var(--vt); font-size: clamp(9px, 1.5vw, 14px); color: var(--orange); text-shadow: 0 0 6px var(--orange); }

/* frame */
.obj-frame { position: relative; padding: 8%; }
.frame { width: calc(96% * var(--s, 0.8)); aspect-ratio: 16 / 10; background: #0d0d0d; padding: 2.4%; border-radius: 3px; box-shadow: 0 0 0 1px #2c2c2c, 0 20px 36px rgba(0,0,0,0.75), 0 0 34px rgba(255,106,0,0.18); transition: width 0.3s; }
.frame-glass { width: 100%; height: 100%; overflow: hidden; background: #000; }
.stage-box .frame-size { display: none; }
.frame-size { position: absolute; right: 8%; bottom: 3%; font-family: var(--vt); font-size: 18px; color: var(--orange); }

/* digital */
.obj-digital { padding: 8%; }
.win { width: 100%; max-width: 460px; border: 2px solid var(--orange); background: #000; box-shadow: 4px 4px 0 rgba(255,106,0,0.4); }
.win-bar, .win-foot { display: flex; justify-content: space-between; gap: 8px; padding: 4px 6px; font-family: var(--vt); font-size: 15px; line-height: 1.1; color: #000; background: var(--orange); white-space: nowrap; overflow: hidden; }
.win-bar span:first-child { overflow: hidden; text-overflow: ellipsis; }
.win-view { aspect-ratio: 16 / 9; overflow: hidden; }
.win-foot { background: #000; color: var(--orange); border-top: 1px solid var(--orange); align-items: center; }
.win-prog { flex: 1; height: 6px; border: 1px solid var(--orange); background: linear-gradient(90deg, var(--amber) 0 0, transparent 0); animation: prog 6.27s linear infinite; }
@keyframes prog { from { background: linear-gradient(90deg, var(--amber) 0%, transparent 0%); } to { background: linear-gradient(90deg, var(--amber) 100%, transparent 100%); } }

/* device (one-off) */
.obj-device { position: relative; padding: 10%; }
.box { position: relative; z-index: 1; width: 78%; aspect-ratio: 16 / 7; background: linear-gradient(180deg, #b9b7b0, #85827a); border-radius: 4px; padding: 3%; box-shadow: 0 18px 30px rgba(0,0,0,0.8), inset 0 1px 0 #fff; }
.box-face { width: 100%; height: 100%; display: grid; grid-template-columns: 2fr 1fr 1fr 0.5fr 0.5fr 1fr 1fr; align-items: center; justify-items: center; gap: 4%; border: 1px solid rgba(0,0,0,0.25); padding: 0 4%; }
.box-label { font-family: var(--px); font-size: clamp(5px, 1vw, 8px); color: #222; background: #f2ecd8; padding: 4px 5px; transform: rotate(-2deg); }
.box-knob { width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #444, #0b0b0b); box-shadow: 0 3px 4px rgba(0,0,0,0.6); }
.box-led { width: 60%; aspect-ratio: 1; border-radius: 50%; background: #3b1a00; }
.box-led.on { background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.box-jack { font-family: var(--vt); font-size: clamp(8px, 1.2vw, 12px); color: #222; text-align: center; }
.box-jack::before { content: ''; display: block; width: 14px; height: 14px; margin: 0 auto 2px; border-radius: 50%; background: #111; box-shadow: 0 0 0 3px #888; }
.box-ghost { position: absolute; inset: 0; opacity: 0.18; }

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 34px; align-items: start; margin-bottom: 56px; }
.pdp-stage { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 14px; }
.stage-box { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; border: 2px solid var(--orange); overflow: hidden; background:
  radial-gradient(circle at 50% 55%, rgba(255,106,0,0.18), transparent 65%),
  repeating-linear-gradient(90deg, rgba(255,106,0,0.06) 0 1px, transparent 1px 28px),
  repeating-linear-gradient(0deg, rgba(255,106,0,0.06) 0 1px, transparent 1px 28px), #020100;
  box-shadow: 0 0 22px rgba(255,106,0,0.25); }
.stage-tag { position: absolute; font-family: var(--px); font-size: 8px; color: var(--orange); }
.stage-tag.tl { left: 10px; top: 10px; }
.stage-tag.br { right: 10px; bottom: 10px; color: var(--amber); }
.from-archive { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 14px; border: 1px solid var(--line); text-decoration: none; align-items: center; }
.from-archive:hover { background: rgba(255,106,0,0.1); }
.fa-k { font-family: var(--px); font-size: 7px; color: var(--dim); grid-column: 1; }
.fa-t { font-family: var(--px); font-size: 10px; color: var(--amber); grid-column: 1; }
.fa-go { font-family: var(--px); font-size: 8px; color: var(--orange); grid-column: 2; grid-row: 1 / 3; }
.stills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stills figure { margin: 0; border: 1px solid var(--line); }
.stills img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.stills figcaption { font-family: var(--px); font-size: 6px; color: var(--orange); padding: 5px 6px; border-top: 1px solid var(--line-soft); }
.ritual { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ritual li { border: 1px dashed var(--amber); padding: 12px 8px; text-align: center; font-family: var(--px); font-size: 8px; color: var(--amber); }
.ritual li span { display: block; font-family: var(--vt); font-size: 28px; color: var(--orange); margin-bottom: 4px; }
.pdp-record { display: flex; flex-direction: column; gap: 16px; }

.opt { border: 0; margin: 0; padding: 0; min-width: 0; }
.opt-l { font-family: var(--px); font-size: 8px; color: var(--orange); margin-bottom: 10px; padding: 0; }
.opt-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.opt-b { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px 12px; border: 2px solid var(--orange); background: var(--ink); cursor: pointer; transition: background 0.1s; }
.opt-b:hover { background: rgba(255,106,0,0.15); }
.opt-v { font-family: var(--px); font-size: 13px; color: var(--amber); }
.opt-s { font-family: var(--vt); font-size: 19px; color: var(--muted); line-height: 1; }
.opt-b.is-on { background: var(--orange); box-shadow: 0 0 16px rgba(255,106,0,0.55); }
.opt-b.is-on .opt-v { color: #000; }
.opt-b.is-on .opt-s { color: #2a1000; }
.opt-b.is-out { border-color: var(--dim); border-style: dashed; }
.opt-b.is-out .opt-v { color: var(--dim); }
.opt-b.is-out .opt-s { color: var(--red); }
.opt-b.is-out.is-on { background: #1a0d00; box-shadow: none; }
.opt-row.works { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.opt-w { display: flex; flex-direction: column; gap: 6px; padding: 6px 6px 9px; border: 2px solid var(--line); background: var(--ink); cursor: pointer; text-align: left; }
.opt-w img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.opt-w span { font-family: var(--px); font-size: 7px; color: var(--amber); line-height: 1.5; }
.opt-w em { font-style: normal; font-family: var(--vt); font-size: 15px; color: var(--muted); line-height: 1; }
.opt-w.is-on { border-color: var(--amber); box-shadow: 0 0 14px rgba(255,204,0,0.45); }

.buybar { display: none; }

/* ---------- works ---------- */
.page-head { padding: 6px 0 24px; }
.page-head.slim { padding-bottom: 18px; }
.page-kicker { font-family: var(--px); font-size: 8px; color: var(--orange); margin-bottom: 14px; letter-spacing: 0.08em; }
.page-title { margin: 0; font-family: var(--px); font-weight: 400; font-size: clamp(22px, 5vw, 46px); line-height: 1.2; color: var(--amber); text-shadow: 2px 2px 0 #000, 4px 4px 0 var(--orange); }
.page-title .dim { color: var(--orange); text-shadow: none; font-size: 0.6em; }
.page-blurb { margin: 16px 0 0; max-width: 62ch; color: var(--muted); }
.page-count { margin-top: 14px; font-family: var(--vt); font-size: 20px; color: var(--orange); }

.work-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.wtile { border: 2px solid var(--line); background: var(--ink); display: flex; flex-direction: column; }
.wtile:hover { border-color: var(--orange); }
.wtile-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); }
.wtile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.wtile:hover .wtile-media img { transform: scale(1.04); }
.wtile-body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.wtile-t { font-family: var(--px); font-size: 11px; line-height: 1.5; color: var(--amber); text-decoration: none; }
.wtile-t span { color: var(--orange); }
.wtile-y { font-family: var(--vt); font-size: 17px; color: var(--muted); line-height: 1.1; }
.fmt { display: flex; flex-wrap: wrap; gap: 6px; }
.fmt-b { font-family: var(--px); font-size: 7px; padding: 5px 6px; border: 1px solid var(--orange); color: var(--amber); text-decoration: none; }
.fmt-b:hover { background: var(--orange); color: #000; }
.fmt-b.is-out { color: var(--dim); border-color: var(--dim); text-decoration: line-through; }
.fmt-b.is-arch { color: var(--muted); border: 1px dashed var(--muted); }
.fmt.big { gap: 12px; }
.fmt.big s { color: var(--red); text-decoration: none; }

.work-head { margin-bottom: 20px; }
.work-grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.work-media { position: relative; border: 2px solid var(--orange); background: #000; box-shadow: 0 0 24px rgba(255,106,0,0.3); }
.work-media img, .work-media video { width: 100%; max-height: 70vh; object-fit: contain; }
.work-media:not(.is-video) .scan { display: none; }
.work-notes { margin: 18px 0 0; color: var(--cream); }
.stills.wide { margin-top: 18px; }
.avail { margin-top: 34px; padding-top: 18px; border-top: 2px solid var(--orange); }
.avail .label-h { margin-bottom: 16px; }
.avail-none { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; color: var(--muted); }

/* ---------- cart ---------- */
.cart { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.cart-lines { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--orange); }
.cl { display: grid; grid-template-columns: 84px 1fr auto auto auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.cl-media { display: block; aspect-ratio: 1; border: 1px solid var(--line); overflow: hidden; }
.cl-media img, .cl-media video { width: 100%; height: 100%; object-fit: cover; }
.cl-code { font-family: var(--px); font-size: 7px; color: var(--orange); }
.cl-title { font-family: var(--px); font-size: 11px; color: var(--amber); text-decoration: none; line-height: 1.6; }
.cl-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; font-family: var(--vt); font-size: 17px; color: var(--muted); line-height: 1.15; }
.cl-qty { display: flex; align-items: center; gap: 4px; font-family: var(--vt); font-size: 22px; color: var(--amber); }
.cl-qty output { min-width: 2.2ch; text-align: center; }
.qb { width: 30px; height: 30px; border: 1px solid var(--orange); background: transparent; color: var(--amber); cursor: pointer; font-family: var(--vt); font-size: 22px; line-height: 1; }
.qb:hover:not(:disabled) { background: var(--orange); color: #000; }
.qb:disabled { border-color: var(--dim); color: var(--dim); cursor: not-allowed; }
.qty-fixed { font-size: 18px; color: var(--muted); }
.cl-total { font-family: var(--vt); font-size: 26px; color: var(--amber); min-width: 4.5ch; text-align: right; }
.cl-x { border: 0; background: none; color: var(--orange); font-family: var(--px); font-size: 9px; cursor: pointer; padding: 6px; }
.cl-x:hover { color: var(--red); }
.cart-sum { border: 2px solid var(--orange); background: var(--panel); padding: 16px; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 104px; }
.sum-row { display: flex; justify-content: space-between; font-family: var(--vt); font-size: 22px; color: var(--amber); }
.sum-row.dim { color: var(--muted); font-size: 18px; }
.sum-back { font-family: var(--px); font-size: 8px; color: var(--orange); text-decoration: none; text-align: center; padding: 6px; }
.sum-back:hover { color: var(--amber); }

/* ---------- checkout: calmer, conventional, still on-brand ---------- */
.checkout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; font-family: var(--body); }
.co-main { border: 1px solid #3a2410; background: #0a0705; padding: 28px; }
.co-h { margin: 0 0 6px; font: 600 24px/1.2 var(--body); color: #fff; }
.co-p { margin: 0 0 22px; color: #b8ad98; font-size: 14px; }
.co-lines { list-style: none; margin: 0; padding: 0; }
.co-lines li { display: grid; grid-template-columns: 52px 1fr auto auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid #241608; }
.co-thumb { display: block; width: 52px; height: 52px; overflow: hidden; border: 1px solid #3a2410; }
.co-thumb img { width: 100%; height: 100%; object-fit: cover; }
.co-name { color: #f2ead8; font-size: 14px; font-weight: 500; }
.co-name small { display: block; color: #8d826e; font-weight: 400; font-size: 12px; }
.co-q { color: #8d826e; font-size: 13px; }
.co-amt { color: #f2ead8; font-size: 14px; }
.co-tot { margin-top: 10px; border-top: 1px solid #241608; padding-top: 12px; display: grid; gap: 6px; font-size: 14px; }
.co-tot div { display: flex; justify-content: space-between; color: #f2ead8; }
.co-tot .dim { color: #8d826e; }
.co-tot .grand { margin-top: 6px; padding-top: 10px; border-top: 1px solid #241608; font-size: 17px; font-weight: 600; }
.co-tot .grand small { font-weight: 400; color: #8d826e; font-size: 12px; }
.co-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 104px; }
.pay { font: 600 16px/1 var(--body); padding: 17px; background: var(--orange); color: #000; border: 0; border-radius: 2px; cursor: pointer; }
.pay:hover { background: var(--amber); }
.co-fine { margin: 0; font-size: 12px; color: #8d826e; }

/* ---------- overlay ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.overlay[hidden] { display: none; }
.ov-back { position: absolute; inset: 0; background: rgba(0,0,0,0.82); }
.ov-panel { position: relative; width: min(560px, 100%); border: 5px double var(--orange); background: #000; box-shadow: var(--glow); outline: none; animation: pulse 3s ease-in-out infinite; }
.term { padding: 22px; min-height: 180px; font-family: var(--vt); font-size: 21px; color: var(--amber); }
.term-log div { animation: typein 0.25s steps(8) 1; }
.term-log .err { color: var(--red); }
@keyframes typein { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.offline { padding: 26px 22px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.offline-bars, .nosig-bars { display: grid; grid-template-columns: repeat(7, 1fr); width: 100%; height: 34px; }
.offline-bars i:nth-child(1), .nosig-bars i:nth-child(1) { background: #c0c0c0; }
.offline-bars i:nth-child(2), .nosig-bars i:nth-child(2) { background: #c0c000; }
.offline-bars i:nth-child(3), .nosig-bars i:nth-child(3) { background: #00c0c0; }
.offline-bars i:nth-child(4), .nosig-bars i:nth-child(4) { background: #00c000; }
.offline-bars i:nth-child(5), .nosig-bars i:nth-child(5) { background: #c000c0; }
.offline-bars i:nth-child(6), .nosig-bars i:nth-child(6) { background: #c00000; }
.offline-bars i:nth-child(7), .nosig-bars i:nth-child(7) { background: #0000c0; }
.offline-bars { animation: roll 0.12s steps(2) 6; }
@keyframes roll { 50% { transform: translateX(8px); filter: hue-rotate(40deg); } }
.offline-h { margin: 6px 0 0; font-family: var(--px); font-weight: 400; font-size: clamp(14px, 3.6vw, 20px); line-height: 1.5; color: var(--amber); text-shadow: 3px 3px 0 var(--red); }
.offline-p { margin: 0; font-family: var(--px); font-size: 9px; line-height: 1.9; color: var(--orange); }
.offline-small { margin: 0; color: var(--muted); font-size: 13px; max-width: 40ch; }
.offline-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }

/* ---------- misc ---------- */
.empty, .nosig { border: 2px dashed var(--line); padding: 46px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty-code { font-family: var(--px); font-size: 16px; color: var(--amber); text-shadow: 2px 2px 0 var(--red); }
.empty p { margin: 0; color: var(--muted); }
.nosig-bars { max-width: 420px; height: 90px; }
.nosig-title { margin: 8px 0 0; font-family: var(--px); font-weight: 400; font-size: clamp(22px, 6vw, 40px); color: var(--amber); text-shadow: 4px 4px 0 var(--red); }

.note-panel { border: 2px solid var(--line); padding: 20px; background: var(--panel); margin-bottom: 20px; }
.note-panel p { margin: 12px 0 0; max-width: 70ch; color: var(--muted); }

.foot { border-top: 1px solid var(--orange); background: rgba(0,0,0,0.9); padding: 18px var(--gut) calc(18px + env(safe-area-inset-bottom)); text-align: center; }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; }
.foot-nav a { font-family: var(--px); font-size: 8px; color: var(--orange); text-decoration: none; padding: 4px 0; }
.foot-nav a:hover, .foot-nav a[aria-current] { color: var(--amber); }
.foot-line { margin-top: 14px; font-family: var(--vt); font-size: 16px; color: var(--dim); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .feature-grid, .pdp, .work-grid-2, .cart, .checkout { grid-template-columns: 1fr; }
  .feature-stage { border-right: 0; border-bottom: 2px solid var(--line); min-height: 0; }
  .pdp-stage, .cart-sum, .co-side { position: static; }
  .pdp { gap: 22px; }
}

@media (max-width: 680px) {
  body { font-size: 14px; }
  .topbar-in { grid-template-columns: auto 1fr auto; gap: 8px; padding-block: 8px; }
  .tb-home { font-size: 0; }
  .tb-home::before { content: '<'; font-size: 12px; }
  .tb-shop { align-items: flex-start; }
  .tb-j { font-size: 12px; }
  .tb-s { font-size: 5px; }
  .tb-works { display: none; }
  .tb-nav a { font-size: 8px; }
  .ticker { font-size: 15px; line-height: 20px; }

  .view { padding-top: 16px; }
  .hero { grid-template-columns: 1fr; gap: 18px; padding: 10px 0 20px; }
  .readout { min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; font-size: 18px; }
  .readout div { gap: 8px; }
  .catnav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .catnav .btn { font-size: 8px; padding: 11px 6px; white-space: normal; text-align: center; }
  .feature-record { padding: 18px 16px; }
  .feature-stage { padding: 20px 8px; }
  .price { font-size: 40px; }
  .rec-buy .btn-lg { flex: 1; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card { box-shadow: 4px 4px 0 rgba(255,106,0,0.35); }
  .card-body { padding: 10px; gap: 6px; }
  .card-title { font-size: 9px; }
  .card-tag { font-size: 15px; }
  .card-foot { flex-direction: column; align-items: stretch; gap: 6px; }
  .card-foot .btn { font-size: 7px; padding: 7px 4px; }
  .card-price { font-size: 22px; }
  .chip, .card-idx { font-size: 6px; }
  .specs div { grid-template-columns: 8.2em 1fr; }
  .specs dd { font-size: 19px; }
  .stills figcaption { font-size: 5px; }
  .work-strip, .work-grid { grid-template-columns: 1fr; }
  .opt-row.works { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .opt-w { padding: 4px 4px 7px; }
  .opt-w span { font-size: 6px; }
  .opt-w em { font-size: 13px; }

  /* sticky acquire bar on product pages */
  .buybar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: rgba(0,0,0,0.95); border-top: 2px solid var(--orange); padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); }
  .buybar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .buybar-t { display: flex; flex-direction: column; font-family: var(--px); font-size: 7px; color: var(--orange); gap: 4px; min-width: 0; }
  .buybar-t span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buybar-t strong { font-family: var(--vt); font-weight: 400; font-size: 28px; color: var(--amber); line-height: 0.9; }
  .buybar .btn { padding: 13px 12px; }
  .view:has(.buybar) { padding-bottom: 110px; }

  .cl { grid-template-columns: 64px 1fr auto; grid-template-areas: 'm i x' 'm q t'; gap: 8px 12px; }
  .cl-media { grid-area: m; } .cl-info { grid-area: i; } .cl-x { grid-area: x; align-self: start; }
  .cl-qty { grid-area: q; } .cl-total { grid-area: t; }
  .co-main { padding: 18px 14px; }
  .co-lines li { grid-template-columns: 44px 1fr auto; }
  .co-lines .co-q { display: none; }
  .co-thumb { width: 44px; height: 44px; }
}

@media (max-width: 360px) {
  .grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ticker-in { padding-left: 0; }
}
