/* 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::after { /* scanlines */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.22) 0 2px, transparent 2px 4px);
}
.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-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 26px; }
.store-toolbar input, .store-toolbar select {
  background: var(--panel-2); border: 2px solid var(--line); color: var(--ink);
  font-family: inherit; font-size: 15px; padding: 10px 12px;
}
.store-toolbar input { flex: 1; min-width: 200px; max-width: 380px; }
.store-toolbar input:focus, .store-toolbar select:focus { outline: none; border-color: var(--yellow); }
.store-count { color: var(--muted); font-size: 14px; margin-left: auto; }

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

.prod-card {
  background: var(--panel-2); border: 2px solid var(--line);
  cursor: pointer; display: flex; flex-direction: column; overflow: hidden;
  color: inherit; text-decoration: none;
}
.prod-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.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;
}
.prod-art::after { /* scanlines */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.14) 0 2px, transparent 2px 4px);
}
.prod-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod-title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.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-price { margin-top: auto; color: var(--yellow); font-weight: 700; font-size: 16px; }
.prod-price small { color: var(--muted); font-weight: 400; font-size: 12px; }

/* 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); max-width: 620px; width: 100%;
  max-height: 88vh; overflow-y: auto; padding: 26px; position: relative;
}
.modal .close {
  position: absolute; top: 10px; right: 10px; background: none; border: 2px solid var(--line);
  color: var(--ink); font-size: 18px; width: 36px; height: 36px; cursor: pointer;
}
.modal .close:hover { border-color: var(--magenta); color: var(--magenta); }
.modal h3 { font-size: 22px; text-transform: uppercase; margin-bottom: 14px; padding-right: 40px; }
.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: 190px 1fr; gap: 20px; margin-bottom: 20px; }
@media (max-width: 520px) { .detail-top { grid-template-columns: 1fr; } .detail-art { max-width: 220px; margin: 0 auto; } }
.detail-art {
  width: 100%; aspect-ratio: 3 / 4; border: 2px solid var(--line);
  font-size: 46px; /* placeholder letter */
}
.detail-info { display: flex; flex-direction: column; }
.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-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 2px solid var(--line); padding: 12px 14px; margin-bottom: 10px; flex-wrap: wrap;
}
.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-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); }

.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; }
