/* Pixel Vault — pvggames.com
   Palette from the pixel-art logo: arcade yellow + teal on near-black. */

:root {
  --bg: #0a0d10;
  --panel: #12171d;
  --panel-2: #171e25;
  --line: #232c35;
  --ink: #f2f5f7;
  --muted: #9aa7b1;
  --yellow: #ffe600;
  --teal: #2fe3a5;
  --magenta: #ff4fd8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Chakra Petch", system-ui, sans-serif;
  line-height: 1.6;
  font-size: 17px;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); }

.pixel { font-family: "Press Start 2P", monospace; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ── Header ─────────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 13, 16, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 20px; max-width: 1100px; margin: 0 auto;
}
.nav .logo img { height: 104px; width: auto; display: block; }
.nav ul {
  display: flex; gap: 10px; list-style: none; align-items: center;
  flex: 1; justify-content: center;
}
.nav ul a {
  display: block; padding: 8px 14px; color: var(--ink);
  text-decoration: none; font-weight: 600; font-size: 15px;
  text-transform: uppercase; letter-spacing: 0.04em;
  border: 2px solid transparent;
}
.nav ul a:hover { color: var(--yellow); }
.nav ul a.active { color: var(--yellow); border-bottom-color: var(--yellow); }
.nav ul a.cta {
  background: var(--yellow); color: #0a0d10; border: 2px solid var(--yellow);
  box-shadow: 4px 4px 0 rgba(47, 227, 165, 0.5);
}
.nav ul a.cta:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 rgba(47, 227, 165, 0.5); }

.nav-toggle { display: none; background: none; border: 2px solid var(--line); color: var(--ink); font-size: 22px; padding: 4px 12px; cursor: pointer; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav .logo img { height: 76px; }
  .nav ul {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--panel); border-bottom: 2px solid var(--line); padding: 8px 20px 16px;
  }
  .nav ul.open { display: flex; }
  .nav ul a { padding: 12px 8px; }
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  border-bottom: 2px solid var(--line);
  background-size: cover; background-position: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,13,16,0.55), rgba(10,13,16,0.88));
}
.hero-inner {
  position: relative; z-index: 1; text-align: center;
  padding: 90px 20px 100px; max-width: 900px; margin: 0 auto;
}
.hero .kicker {
  color: var(--teal); font-size: 12px; letter-spacing: 0.12em;
  margin-bottom: 22px; text-shadow: 0 0 12px rgba(47,227,165,0.6);
}
.hero h1 {
  font-size: clamp(30px, 5.4vw, 56px); line-height: 1.15;
  text-transform: uppercase; letter-spacing: 0.02em; font-weight: 700;
}
.hero h1 .hl { color: var(--yellow); }
.hero p.sub { color: var(--muted); margin: 18px auto 34px; max-width: 620px; font-size: 19px; }
.hero-small .hero-inner { padding: 60px 20px 66px; }

.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 26px; text-decoration: none;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 15px;
  border: 2px solid var(--yellow); color: #0a0d10; background: var(--yellow);
  box-shadow: 5px 5px 0 rgba(47, 227, 165, 0.55);
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 rgba(47, 227, 165, 0.55); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: 5px 5px 0 rgba(255, 230, 0, 0.35); }
.btn.ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn.soon { opacity: 0.55; cursor: default; pointer-events: none; }

/* ── Sections ───────────────────────────────────────────── */
section { padding: 64px 0; }
section.alt { background: var(--panel); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }

h2.section-title {
  font-size: 13px; color: var(--yellow); text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 10px;
}
.section-lead { font-size: clamp(22px, 3vw, 32px); font-weight: 700; line-height: 1.25; margin-bottom: 34px; max-width: 720px; }
.section-lead .hl { color: var(--teal); }

.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid.cols-3, .grid.cols-4, .grid.cols-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--panel-2); border: 2px solid var(--line); padding: 26px 22px;
  position: relative;
}
.card:hover { border-color: var(--teal); }
.card .num { color: var(--magenta); font-size: 11px; margin-bottom: 14px; }
.card h3 { font-size: 19px; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card .price {
  display: inline-block; margin-top: 16px; color: var(--yellow);
  font-size: 13px; border: 2px solid var(--yellow); padding: 6px 10px;
}
.card a { color: var(--teal); font-weight: 600; }
/* Whole-card link: content stacks, CTA pinned to the bottom so it lines up
   across cards of unequal height. */
.card-link {
  display: flex; flex-direction: column; height: 100%;
  color: inherit; text-decoration: none;
}
.card-link .card-cta { margin-top: auto; padding-top: 16px; color: var(--teal); font-weight: 600; }
.card-link:hover .card-cta { color: var(--yellow); }

/* image + text split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.split img { border: 2px solid var(--line); box-shadow: 8px 8px 0 rgba(47,227,165,0.25); }

ul.checks { list-style: none; margin-top: 6px; }
ul.checks li { padding: 7px 0 7px 28px; position: relative; color: var(--muted); }
ul.checks li::before { content: "▸"; position: absolute; left: 4px; color: var(--yellow); }

.quote {
  border-left: 4px solid var(--magenta); padding: 14px 20px; margin: 26px 0;
  background: var(--panel-2); color: var(--ink); font-size: 18px; font-style: italic;
}

/* banner strip */
.strip {
  background: var(--yellow); color: #0a0d10; text-align: center;
  padding: 14px 20px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; font-size: 14px;
}
.strip a { color: #0a0d10; }

/* info panel (hours / contact) */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .info-grid { grid-template-columns: 1fr; } }
.info-grid .card h3 { color: var(--teal); font-size: 14px; letter-spacing: 0.08em; }
.info-grid .card p { color: var(--ink); font-size: 17px; }
.info-grid .card p small { color: var(--muted); }

/* ── Forms ──────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 720px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  display: block; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--teal); margin-bottom: 6px; font-weight: 600;
}
.field input, .field textarea, .field select {
  width: 100%; background: var(--panel-2); border: 2px solid var(--line);
  color: var(--ink); font-family: inherit; font-size: 16px; padding: 12px 14px;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--yellow); }
.field textarea { min-height: 130px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none; cursor: pointer;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239aa7b1' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field select option { background: var(--panel); color: var(--ink); }
.field select optgroup { background: var(--panel); color: var(--muted); font-weight: 700; }

.form-msg { padding: 14px 18px; border: 2px solid var(--teal); background: rgba(47,227,165,0.08); color: var(--ink); }
.form-msg.error { border-color: var(--magenta); background: rgba(255,79,216,0.08); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* fulfillment + shipping-rate options */
.fulfil-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .fulfil-row { grid-template-columns: 1fr; } }
.fulfil-opt {
  display: flex; align-items: flex-start; gap: 8px; cursor: pointer;
  border: 2px solid var(--line); padding: 12px; font-size: 14px;
}
.fulfil-opt:has(input:checked) { border-color: var(--yellow); background: rgba(255,230,0,0.05); }
.fulfil-opt small { color: var(--muted); }
.rate-opt {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  border: 2px solid var(--line); padding: 10px 12px; margin-bottom: 8px; font-size: 14px;
}
.rate-opt:has(input:checked) { border-color: var(--teal); background: rgba(47,227,165,0.06); }
.rate-opt .r-price { margin-left: auto; font-weight: 700; color: var(--yellow); }

/* ── Store ──────────────────────────────────────────────── */
.store-perks {
  padding: 18px 0; background: var(--panel); border-bottom: 2px solid var(--line);
}
.perk-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.perk-item {
  background: rgba(23, 30, 37, 0.86); border: 2px solid var(--line);
  border-left-color: var(--teal); padding: 12px 14px; min-height: 74px;
}
.perk-item strong { display: block; color: var(--ink); font-size: 14px; text-transform: uppercase; }
.perk-item span { color: var(--muted); display: block; font-size: 13px; line-height: 1.35; margin-top: 3px; }

.shop-browser-section { padding-top: 52px; }
.store-heading {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 16px;
}
.store-context { color: var(--muted); font-size: 15px; margin-top: 4px; }
.store-count {
  color: var(--yellow); border: 2px solid rgba(255, 230, 0, 0.42);
  background: rgba(255, 230, 0, 0.06); padding: 6px 10px; font-size: 13px;
  font-weight: 700; white-space: nowrap;
}
.store-controls {
  position: sticky; top: 132px; z-index: 20;
  background: rgba(10, 13, 16, 0.9); backdrop-filter: blur(10px);
  border: 2px solid var(--line); padding: 14px; margin-bottom: 24px;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.28);
}
.filter-toggle {
  display: none; width: 100%; align-items: center; justify-content: space-between;
  background: var(--yellow); color: #0a0d10; border: 2px solid var(--yellow);
  font-family: inherit; font-weight: 800; text-transform: uppercase; padding: 11px 12px; cursor: pointer;
}
.filter-toggle small { font-size: 12px; font-weight: 700; text-transform: none; }
.filter-body.open { display: block; }
.category-chips {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px;
}
.category-chips button,
.active-filters button,
.filter-clear {
  font-family: inherit; cursor: pointer;
}
.category-chips button {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--panel-2); border: 2px solid var(--line); color: var(--ink);
  padding: 8px 10px; font-size: 13px; font-weight: 700;
}
.category-chips button small {
  color: var(--muted); border-left: 1px solid var(--line); padding-left: 8px;
}
.category-chips button:hover,
.category-chips button.active {
  border-color: var(--yellow); color: var(--yellow);
}
.category-chips button.active small { color: var(--teal); border-left-color: rgba(47, 227, 165, 0.35); }
.store-toolbar {
  display: grid; grid-template-columns: minmax(250px, 1fr) minmax(160px, 0.55fr) minmax(150px, 0.5fr) minmax(150px, 0.5fr) auto;
  gap: 10px; align-items: stretch;
}
.store-search { position: relative; min-width: 0; }
.store-search label {
  position: absolute; left: 12px; top: -9px; background: var(--bg);
  color: var(--teal); border: 1px solid var(--line); padding: 0 6px;
  font-size: 10px; text-transform: uppercase; font-weight: 700;
}
.store-toolbar input, .store-toolbar select {
  width: 100%; min-height: 44px;
  background: var(--panel-2); border: 2px solid var(--line); color: var(--ink);
  font-family: inherit; font-size: 15px; padding: 10px 12px;
}
.store-toolbar input:focus, .store-toolbar select:focus, .filter-clear:focus-visible {
  outline: none; border-color: var(--yellow); box-shadow: 0 0 0 2px rgba(255, 230, 0, 0.18);
}
.filter-clear {
  min-height: 44px; background: transparent; color: var(--muted);
  border: 2px solid var(--line); padding: 0 14px; font-weight: 700; text-transform: uppercase;
}
.filter-clear:not(:disabled) { color: var(--ink); border-color: var(--magenta); }
.filter-clear:not(:disabled):hover { color: var(--magenta); }
.filter-clear:disabled { opacity: 0.45; cursor: default; }
.active-filters {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px;
}
.active-filters button {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(47, 227, 165, 0.08); border: 1px solid rgba(47, 227, 165, 0.46);
  color: var(--teal); padding: 5px 8px; font-size: 12px;
}
.active-filters button span { color: var(--yellow); font-weight: 700; }

.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }

.prod-card {
  background: var(--panel-2); border: 2px solid var(--line); border-radius: 6px;
  cursor: pointer; display: flex; flex-direction: column; overflow: hidden;
  color: inherit; text-decoration: none; min-height: 100%;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.prod-card:hover, .prod-card:focus-visible {
  border-color: var(--teal); transform: translateY(-2px);
  box-shadow: 0 0 0 2px rgba(47, 227, 165, 0.12), 6px 6px 0 rgba(255, 230, 0, 0.16);
  outline: none;
}
.prod-art {
  aspect-ratio: 3 / 4; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #0d1114; /* letterbox fill for the sharp cover on top */
  font-family: "Press Start 2P", monospace; font-size: 34px; color: rgba(255,255,255,0.85);
  text-shadow: 3px 3px 0 rgba(0,0,0,0.45);
}
/* blurred, darkened copy of the cover fills the tile behind the sharp one, so
   covers of any aspect ratio sit on an intentional backdrop, never flat bars */
.prod-art .art-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: blur(16px) brightness(0.45); transform: scale(1.15);
}
/* the sharp, fully-visible cover — contained so nothing is ever cropped */
.prod-art .art-img {
  position: absolute; inset: 0; background-size: contain;
  background-repeat: no-repeat; background-position: center;
}
.missing-art {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), transparent 34%),
    linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.34)),
    var(--tile);
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}
.missing-art-mark {
  position: absolute; top: 13px; left: 13px; color: rgba(255, 230, 0, 0.82);
  font-size: 10px; text-shadow: none;
}
.missing-art-letter { font-size: 42px; line-height: 1; }
.missing-art-title {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  color: rgba(242, 245, 247, 0.74); font-size: 12px; font-family: "Chakra Petch", system-ui, sans-serif;
  text-shadow: none; line-height: 1.2; text-align: center;
}
.prod-body { padding: 13px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prod-title {
  font-weight: 700; font-size: 15.5px; line-height: 1.28; min-height: 2.56em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.prod-meta { display: flex; gap: 6px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.prod-meta .tag { border: 1px solid var(--line); padding: 2px 6px; }
.prod-footer { display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; margin-top: auto; }
.prod-price { color: var(--yellow); font-weight: 700; font-size: 18px; line-height: 1.1; }
.prod-price small { color: var(--muted); font-weight: 400; font-size: 12px; }
.prod-stock { color: var(--muted); font-size: 12px; line-height: 1.2; text-align: right; }
.prod-action {
  border-top: 1px solid var(--line); color: var(--teal);
  padding-top: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase;
}
.skeleton-card { pointer-events: none; }
.skeleton-box, .skeleton-line {
  background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.1), rgba(255,255,255,0.04));
  background-size: 220% 100%; animation: shelf-shimmer 1.25s linear infinite;
}
.skeleton-line { height: 13px; width: 100%; border-radius: 2px; }
.skeleton-line.short { width: 42%; }
.skeleton-line.tiny { width: 64%; }
@keyframes shelf-shimmer { to { background-position: -220% 0; } }

.empty-state {
  text-align: center; color: var(--muted); border: 2px solid var(--line);
  background: var(--panel-2); padding: 34px 20px;
}
.empty-state h3 { color: var(--ink); font-size: 20px; margin-bottom: 8px; }
.empty-state p { margin-bottom: 18px; }
.empty-state.error { border-color: var(--magenta); }

/* product modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(5, 7, 9, 0.82); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.modal {
  background: var(--panel); border: 2px solid var(--line); border-radius: 8px;
  max-width: 780px; width: 100%; max-height: 88vh; overflow-y: auto; padding: 26px; position: relative;
}
.modal .close {
  position: absolute; top: 12px; right: 12px; background: var(--panel-2); border: 2px solid var(--line);
  color: var(--ink); font-size: 18px; width: 38px; height: 38px; cursor: pointer; border-radius: 6px;
}
.modal .close:hover { border-color: var(--magenta); color: var(--magenta); }
.modal h3 { font-size: 24px; text-transform: uppercase; margin-bottom: 14px; padding-right: 40px; line-height: 1.18; }
.modal .sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

/* product detail: cover + info side by side */
.detail-top { display: grid; grid-template-columns: minmax(180px, 230px) 1fr; gap: 22px; margin-bottom: 22px; }
.detail-art {
  width: 100%; aspect-ratio: 3 / 4; border: 2px solid var(--line); border-radius: 6px;
  font-size: 46px; /* placeholder letter */
}
.detail-info { display: flex; flex-direction: column; }
.detail-summary {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 2px 0 8px;
}
.detail-price {
  color: var(--yellow); font-weight: 700; font-size: 24px; line-height: 1;
}
.detail-stock {
  color: var(--teal); border: 1px solid rgba(47, 227, 165, 0.48);
  background: rgba(47, 227, 165, 0.06); padding: 4px 8px; font-size: 12px; font-weight: 700;
}
.detail-fulfillment {
  border: 1px solid var(--line); background: rgba(255, 230, 0, 0.04);
  color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 14px; padding: 10px 12px;
}
.detail-fulfillment strong { color: var(--ink); }
.detail-market {
  border: 1px solid var(--teal); color: var(--teal); background: rgba(47,227,165,0.06);
  padding: 8px 10px; font-size: 12.5px; margin-top: 4px;
}
.detail-desc {
  color: var(--muted); font-size: 13.5px; line-height: 1.55; margin-top: 12px;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.detail-desc.expanded { -webkit-line-clamp: unset; overflow: visible; }
.detail-more {
  background: none; border: none; color: var(--yellow); cursor: pointer;
  font-family: inherit; font-size: 12.5px; padding: 4px 0; text-decoration: underline;
}

.copy-heading {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin: 4px 0 12px; border-top: 2px solid var(--line); padding-top: 16px;
}
.copy-heading .section-title { color: var(--teal); margin-bottom: 0; }
.copy-heading small { color: var(--muted); font-size: 12px; }
.copy-list { display: flex; flex-direction: column; gap: 10px; }
.copy-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 2px solid var(--line); background: var(--panel-2); border-radius: 6px;
  padding: 12px 14px; margin-bottom: 0; flex-wrap: wrap;
}
.copy-row:hover { border-color: rgba(47, 227, 165, 0.48); }
.copy-main { min-width: 190px; flex: 1; }
.copy-row .desc { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13px; }
.copy-row .desc .tag { border: 1px solid var(--teal); color: var(--teal); padding: 2px 8px; font-size: 11px; text-transform: uppercase; }
.copy-note { color: var(--muted); font-size: 12px; margin-top: 4px; }
.copy-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.copy-row .price { font-weight: 700; color: var(--yellow); font-size: 17px; }
.copy-row .btn { padding: 9px 16px; font-size: 13px; box-shadow: 3px 3px 0 rgba(47,227,165,0.55); }

.acct-heading { font-size: 1rem; margin: 28px 0 10px; }
.acct-panel {
  border: 2px solid var(--line); background: var(--panel-2);
  border-radius: 6px; padding: 16px; margin-bottom: 16px;
}
.acct-collapsible-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
}
.acct-collapsible .acct-heading { margin: 0 0 4px; }
.acct-collapsible p { color: var(--muted); font-size: 13px; margin: 0; }
.acct-collapsible-body { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.acct-collapsible-body[hidden] { display: none; }
.acct-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.acct-stat { border: 1px solid var(--line); background: rgba(0,0,0,0.18); padding: 12px; border-radius: 6px; }
.acct-stat small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.acct-stat strong { display: block; color: var(--yellow); font-size: 24px; line-height: 1.1; }
.acct-stat span { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
.acct-subhead { color: var(--teal); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin: 14px 0 8px; }
.acct-mini-list { display: flex; flex-direction: column; gap: 8px; }
.acct-mini-row {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 8px; color: var(--ink); font-size: 14px;
}
.acct-mini-row:first-child { border-top: none; padding-top: 0; }
.acct-mini-row small { color: var(--muted); }
.acct-link-form { display: grid; grid-template-columns: minmax(180px, 1fr) auto; gap: 10px; margin-top: 12px; }
.acct-link-form input {
  width: 100%; border: 2px solid var(--line); border-radius: 4px;
  background: var(--bg); color: var(--ink); padding: 12px; font: inherit;
}
.acct-link-msg { color: var(--muted); font-size: 13px; margin-top: 8px; }
.acct-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.acct-settings-grid .acct-session-box { grid-column: 1 / -1; }
.acct-form {
  border: 1px solid var(--line); background: rgba(0,0,0,0.14);
  border-radius: 6px; padding: 14px;
}
.acct-form .field { margin-bottom: 10px; }
.acct-form .field input:disabled { opacity: 0.72; cursor: not-allowed; }
.acct-form p { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.acct-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.acct-actions .btn { padding: 9px 16px; font-size: 13px; }
.acct-form-msg {
  display: none; color: var(--teal); font-size: 13px; line-height: 1.4;
  border: 1px solid rgba(47,227,165,0.38); background: rgba(47,227,165,0.06);
  border-radius: 4px; padding: 8px 10px; margin-top: 8px;
}
.acct-form-msg.error {
  color: var(--ink); border-color: rgba(255,79,216,0.68); background: rgba(255,79,216,0.08);
}
.btn.ghost.danger { border-color: var(--magenta); color: var(--magenta); box-shadow: 5px 5px 0 rgba(255,79,216,0.28); }
.btn.ghost.danger:hover { color: var(--ink); background: rgba(255,79,216,0.14); }
.wish-add-form { margin-bottom: 18px; }
.wish-list { display: flex; flex-direction: column; gap: 12px; }
.wish-card {
  border: 1px solid var(--line); background: rgba(0,0,0,0.16);
  border-radius: 6px; padding: 13px;
}
.wish-card-head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.wish-card-head strong { flex: 1; min-width: 180px; }
.wish-status { border-color: var(--teal); color: var(--teal); padding: 2px 8px; font-size: 11px; text-transform: uppercase; }
.wish-fields { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.wish-fields label { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.wish-fields input, .wish-fields textarea, .wish-fields select {
  width: 100%; border: 2px solid var(--line); border-radius: 4px;
  background: var(--bg); color: var(--ink); padding: 10px; font: inherit;
  font-size: 13px; letter-spacing: 0;
}
.wish-fields textarea { min-height: 78px; resize: vertical; }
.wish-fields select option { background: var(--panel); color: var(--ink); }
.wish-fields input:disabled, .wish-fields textarea:disabled, .wish-fields select:disabled {
  opacity: 0.72; cursor: not-allowed;
}
.wish-notes { grid-column: 1 / -1; }
.wish-actions { justify-content: flex-start; }
.wish-pc-field, .wish-pc-selected, .wish-pc-results { grid-column: 1 / -1; }
.wish-pc-selected {
  border: 1px solid var(--line); background: rgba(47,227,165,0.06);
  border-radius: 4px; padding: 9px 10px; color: var(--muted); font-size: 13px;
  display: flex; flex-direction: column; gap: 3px;
}
.wish-pc-selected strong { color: var(--ink); font-size: 14px; }
.wish-pc-selected span { color: var(--muted); text-transform: none; letter-spacing: 0; }
.wish-pc-results {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
}
.wish-pc-result {
  width: 100%; border: 1px solid var(--line); border-radius: 4px;
  background: rgba(0,0,0,0.18); color: var(--ink); padding: 10px;
  text-align: left; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 3px;
}
.wish-pc-result:hover, .wish-pc-result:focus {
  border-color: var(--teal); outline: none; background: rgba(47,227,165,0.08);
}
.wish-pc-result strong { font-size: 13px; line-height: 1.25; }
.wish-pc-result span, .wish-pc-empty {
  color: var(--muted); font-size: 12px; text-transform: none; letter-spacing: 0;
}
.wish-pc-empty {
  grid-column: 1 / -1; border: 1px dashed var(--line); border-radius: 4px; padding: 9px 10px;
}

@media (max-width: 900px) {
  .perk-grid { grid-template-columns: 1fr; }
  .store-controls { top: 102px; }
  .store-toolbar {
    grid-template-columns: minmax(220px, 1fr) minmax(150px, 1fr);
  }
  .store-search { grid-column: 1 / -1; }
  .filter-clear { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .shop-browser-section { padding-top: 40px; }
  .store-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .store-count { white-space: normal; }
  .store-controls { top: 96px; padding: 10px; }
  .filter-toggle { display: flex; }
  .filter-body { margin-top: 10px; }
  .filter-body:not(.open) { display: none; }
  .category-chips {
    flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin-bottom: 10px;
  }
  .category-chips button { flex: 0 0 auto; }
  .store-toolbar { grid-template-columns: 1fr; }
  .store-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 12px; }
  .prod-body { padding: 11px 12px 12px; }
  .prod-title { min-height: 0; }
  .prod-footer { flex-direction: column; align-items: flex-start; gap: 5px; }
  .prod-stock { text-align: left; }
  .prod-action { font-size: 11px; }
  .modal { padding: 20px; max-height: 92vh; }
  .detail-top { grid-template-columns: 1fr; }
  .detail-art { max-width: 240px; margin: 0 auto; }
  .copy-heading { flex-direction: column; align-items: flex-start; gap: 4px; }
  .copy-row { align-items: flex-start; }
  .copy-actions { width: 100%; justify-content: space-between; }
  .acct-stats { grid-template-columns: 1fr; }
  .acct-settings-grid { grid-template-columns: 1fr; }
  .acct-link-form { grid-template-columns: 1fr; }
  .wish-fields { grid-template-columns: 1fr 1fr; }
  .wish-pc-results { grid-template-columns: 1fr; }
  .wish-notes { grid-column: 1 / -1; }
}

@media (max-width: 430px) {
  .store-grid { grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); }
  .prod-meta .tag { font-size: 10px; }
  .prod-price { font-size: 16px; }
  .modal h3 { font-size: 20px; }
  .copy-actions { flex-direction: column; align-items: stretch; }
  .copy-actions .price { align-self: flex-start; }
  .copy-actions .btn { width: 100%; text-align: center; }
  .wish-fields { grid-template-columns: 1fr; }
  .wish-card-head strong { min-width: 0; }
  .acct-actions { align-items: stretch; flex-direction: column; }
  .acct-actions .btn { width: 100%; }
}

.spin { text-align: center; color: var(--muted); padding: 40px 0; }

/* fly-to-cart animation: a pixel chip arcs from the button to the cart */
.fly-chip {
  position: fixed; z-index: 300; width: 18px; height: 18px;
  background: var(--yellow); box-shadow: 3px 3px 0 rgba(47, 227, 165, 0.7);
  pointer-events: none;
  transition: transform 0.55s cubic-bezier(0.3, -0.2, 0.6, 1), opacity 0.55s ease-in;
}
@keyframes cart-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); background: var(--teal); border-color: var(--teal); }
  100% { transform: scale(1); }
}
.cart-pop { animation: cart-pop 0.45s ease-out; }

/* ── Footer ─────────────────────────────────────────────── */
footer {
  border-top: 2px solid var(--line); background: var(--panel);
  padding: 44px 0 30px; color: var(--muted); font-size: 15px;
}
.foot { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.foot img { height: 40px; width: auto; margin-bottom: 12px; }
.foot h4 { color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.foot a { color: var(--teal); text-decoration: none; }
.copyright { text-align: center; margin-top: 34px; font-size: 13px; color: #5c6a75; }
