/* DJ Adam's Sale — "The Merch Table"
   Venue-black + stage-light amber/magenta. Kraft tags, masking tape, rubber stamps.
   Display: Alfa Slab One · Body: Schibsted Grotesk · Marker: Permanent Marker · Mono: Courier Prime */

:root {
  --bg: #120d09;
  --bg2: #1c140c;
  --paper: #f4ead8;
  --paper-dim: #e7d9bf;
  --kraft: #c9a36a;
  --ink: #16100b;
  --cream-ink: #f4ead8;
  --amber: #ffb02e;
  --hot: #ff3d7f;
  --cyan: #2ee6d6;
  --line: rgba(244, 234, 216, .14);
  --shadow: 0 14px 34px rgba(0, 0, 0, .5);
  --slab: 'Alfa Slab One', serif;
  --marker: 'Permanent Marker', cursive;
  --mono: 'Courier Prime', monospace;
  --body: 'Schibsted Grotesk', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 500px at 85% -5%, rgba(255, 61, 127, .12), transparent 60%),
    radial-gradient(900px 480px at 8% 12%, rgba(255, 176, 46, .10), transparent 55%),
    var(--bg);
  color: var(--cream-ink);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* film grain over everything */
.grain {
  position: fixed; inset: -50%; z-index: 60; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 7s steps(8) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); } 75% { transform: translate(-3%, -3%); }
}

/* ---------- header ---------- */
.announce-wrap { position: relative; z-index: 41; }
.announce {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  text-align: center; font-family: var(--mono); font-weight: 700; font-size: 14px;
  padding: 9px 42px 9px 16px; color: var(--ink); background: var(--cyan);
}
.tone-amber .announce { background: var(--amber); color: var(--ink); }
.tone-hot .announce { background: var(--hot); color: #fff; }
.tone-cyan .announce { background: var(--cyan); color: var(--ink); }
.ann-cta { color: inherit; text-decoration: underline; white-space: nowrap; font-weight: 900; }
.ann-x { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; opacity: .65; }
.ann-x:hover { opacity: 1; }
.site-head {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 44px);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark { filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5)); }
.wordmark { display: flex; flex-direction: column; line-height: .95; }
.wm-dj { font-family: var(--slab); font-size: 19px; letter-spacing: .04em; color: var(--paper); }
.wm-sale {
  font-family: var(--marker); font-size: 15px; color: var(--hot);
  transform: rotate(-2deg); letter-spacing: .25em;
}
.site-nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 26px); }
.site-nav > a, .nav-dd-btn { text-decoration: none; font-weight: 700; font-size: 14.5px; letter-spacing: .02em; opacity: .85; transition: opacity .2s, color .2s; color: var(--paper); white-space: nowrap; }
.site-nav > a:hover, .nav-dd-btn:hover { opacity: 1; color: var(--amber); }
.nav-utils { display: flex; align-items: center; gap: 12px; }
.cart-link {
  font-family: var(--mono); font-weight: 700; color: var(--paper); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  border: 2px solid var(--kraft); border-radius: 99px; padding: 6px 12px; font-size: 14px;
}
.cart-link:hover { border-color: var(--amber); color: var(--amber); }
.cart-count { background: var(--hot); color: #fff; border-radius: 99px; min-width: 19px; text-align: center; font-size: 12px; padding: 0 5px; line-height: 1.5; }
.nav-toggle { display: none; }
/* header "Shop" dropdown */
.nav-dd { position: relative; display: inline-flex; align-items: center; }
.dd-caret { font-size: .75em; opacity: .8; }
.nav-dd-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; background: #1c140c; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 7px; display: none; flex-direction: column; gap: 1px; z-index: 60; }
/* invisible bridge across the 8px gap so the menu doesn't vanish while the cursor travels to it */
.nav-dd-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -11px; height: 13px; }
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu { display: flex; }
.nav-dd-menu a { display: flex !important; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 12px; border-radius: 8px; opacity: 1; font-size: 14px; color: var(--cream-ink); text-decoration: none; font-weight: 600; }
.nav-dd-menu a:hover { background: rgba(244, 234, 216, .08); color: var(--amber); }
.dd-n { font-family: var(--mono); font-size: 11px; opacity: .55; }
.dd-divider { height: 1px; background: var(--line); margin: 5px 6px; }
.dd-all { color: var(--amber); justify-content: flex-start !important; }
.cart-count {
  display: inline-block; min-width: 21px; text-align: center;
  background: var(--hot); color: var(--ink); border-radius: 99px;
  font-weight: 700; margin-left: 4px; padding: 0 5px;
  transition: transform .25s cubic-bezier(.34, 1.7, .5, 1);
}
.cart-count.bump { transform: scale(1.45); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: clamp(540px, 88vh, 860px); display: grid; place-items: center; overflow: hidden; }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-haze {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 72% 20%, rgba(255, 61, 127, .22), transparent 65%),
    radial-gradient(55% 50% at 22% 30%, rgba(255, 176, 46, .20), transparent 60%),
    radial-gradient(100% 60% at 50% 100%, rgba(18, 13, 9, .94), transparent 70%);
}
.hero-inner { position: relative; text-align: center; padding: 80px 20px 110px; z-index: 2; }
.hero-kicker {
  font-family: var(--mono); font-weight: 700; font-size: clamp(12px, 1.6vw, 15px);
  letter-spacing: .32em; text-transform: uppercase; color: var(--amber); margin: 0 0 10px;
}
.hero-title { margin: 0; line-height: .92; }
.ht-line {
  display: block; font-family: var(--slab); font-weight: 400;
  font-size: clamp(52px, 11vw, 132px); color: var(--paper);
  text-shadow: 0 6px 0 rgba(0, 0, 0, .55), 0 14px 40px rgba(0, 0, 0, .5);
  letter-spacing: .01em;
}
.ht-sale {
  font-family: var(--marker);
  color: var(--ink);
  font-size: clamp(56px, 12vw, 148px);
  background: var(--hot);
  display: inline-block; padding: 0 .35em; margin-top: .08em;
  transform: rotate(-2.5deg);
  box-shadow: 8px 8px 0 var(--amber), 0 18px 50px rgba(255, 61, 127, .35);
}
.hero-sub { font-size: clamp(16px, 2.2vw, 20px); color: var(--paper-dim); max-width: 560px; margin: 26px auto 0; }
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

.ticket-rip {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 18px; z-index: 3;
  background:
    linear-gradient(-45deg, var(--bg) 9px, transparent 0) 0 0 / 24px 18px repeat-x,
    linear-gradient(45deg, var(--bg) 9px, transparent 0) 0 0 / 24px 18px repeat-x;
}

/* ---------- marquee ---------- */
.marquee { background: var(--amber); color: var(--ink); overflow: hidden; border-block: 3px solid var(--ink); }
.marquee-track {
  display: inline-flex; white-space: nowrap; gap: 0;
  font-family: var(--slab); font-size: 15px; letter-spacing: .1em; padding: 9px 0;
  animation: marquee 26s linear infinite;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
main section { padding: clamp(44px, 7vw, 90px) clamp(16px, 4.5vw, 56px); max-width: 1280px; margin: 0 auto; }
.sec-head { margin-bottom: 34px; max-width: 720px; }
.sec-head h2, .about-card h2 { font-family: var(--slab); font-size: clamp(28px, 4.4vw, 44px); margin: 0 0 8px; color: var(--paper); }
.sec-head p { color: var(--paper-dim); margin: 0; }
.marker {
  font-family: var(--marker); color: var(--amber); font-weight: 400;
  text-decoration: underline wavy color-mix(in srgb, var(--hot) 70%, transparent) 3px;
  text-underline-offset: 8px;
}

/* ---------- cards (flyer wall) ---------- */
.grid {
  display: grid; gap: clamp(18px, 2.6vw, 30px);
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
}
.card {
  position: relative; text-decoration: none;
  background: var(--paper); color: var(--ink);
  border-radius: 6px; box-shadow: var(--shadow);
  transform: rotate(var(--tilt, 0deg));
  transition: transform .3s cubic-bezier(.2, .8, .3, 1.2), box-shadow .3s;
}
.card:hover { transform: rotate(0deg) translateY(-7px) scale(1.015); box-shadow: 0 24px 50px rgba(0, 0, 0, .6); z-index: 2; }
.card-pin {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%) rotate(3deg);
  width: 74px; height: 22px; background: rgba(244, 234, 216, .3);
  border-left: 1px dashed rgba(0,0,0,.2); border-right: 1px dashed rgba(0,0,0,.2);
  backdrop-filter: blur(1px); z-index: 3;
}
.card-img { aspect-ratio: 1 / .92; overflow: hidden; border-radius: 6px 6px 0 0; background: #ddcdb0; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.045) rotate(.4deg); }
.card-body { padding: 14px 16px 16px; }
.card-body h3 { font-family: var(--body); font-weight: 900; font-size: 16.5px; line-height: 1.3; margin: 0 0 10px; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cond { font-size: 12.5px; color: #6b5b41; font-family: var(--mono); }

.price-tag {
  font-family: var(--mono); font-weight: 700; font-size: 17px;
  background: var(--kraft); color: var(--ink);
  padding: 3px 10px 3px 16px; border-radius: 4px; position: relative;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 8px 100%, 0 50%);
}
.price-tag.big { font-size: 24px; padding: 6px 16px 6px 22px; }

.stamp {
  position: absolute; top: 12px; right: 10px; z-index: 4;
  font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: .14em;
  padding: 4px 10px; border: 3px solid currentColor; border-radius: 4px;
  transform: rotate(8deg); background: rgba(244, 234, 216, .88);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40'%3E%3Cfilter id='r'%3E%3CfeTurbulence baseFrequency='0.6' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -0.2'/%3E%3CfeComposite operator='in' in2='SourceGraphic'/%3E%3C/filter%3E%3Crect width='120' height='40' filter='url(%23r)'/%3E%3C/svg%3E");
  mask-size: cover;
}
.stamp-sold { color: #c2272d; }
.stamp-feat { color: #a06a00; }
.stamp-one { color: #0c7d72; }
.stamp.big { font-size: 22px; padding: 8px 18px; position: static; display: inline-block; }
.card.is-sold .card-img img { filter: grayscale(.85) contrast(.92); opacity: .8; }

/* masking tape */
.tape {
  position: absolute; width: 110px; height: 30px;
  background: rgba(244, 234, 216, .26); backdrop-filter: blur(1px);
  border-left: 1px dashed rgba(0, 0, 0, .25); border-right: 1px dashed rgba(0, 0, 0, .25);
  z-index: 4; pointer-events: none;
}
.tape-tl { top: -13px; left: -28px; transform: rotate(-38deg); }
.tape-br { bottom: -13px; right: -28px; transform: rotate(-38deg); }
.tape-tc { top: -14px; left: 50%; transform: translateX(-50%) rotate(2deg); }

/* ---------- featured ---------- */
.featured { padding-top: clamp(40px, 6vw, 70px); }
.feat-frame {
  position: relative; display: grid; grid-template-columns: minmax(280px, 5fr) 6fr;
  gap: clamp(20px, 3.5vw, 44px); align-items: center;
  background: var(--paper); color: var(--ink); border-radius: 8px;
  padding: clamp(20px, 3.4vw, 40px); box-shadow: var(--shadow);
  transform: rotate(-.6deg);
}
.feat-img img { border-radius: 6px; box-shadow: 0 10px 26px rgba(0,0,0,.25); transform: rotate(1.2deg); }
.feat-kicker { font-family: var(--mono); font-weight: 700; letter-spacing: .22em; font-size: 12.5px; color: #a06a00; text-transform: uppercase; }
.feat-info h2 { font-family: var(--slab); font-size: clamp(24px, 3.6vw, 38px); line-height: 1.06; margin: 10px 0 12px; }
.feat-info p { color: #4c3f2c; margin: 0 0 12px; }
.feat-story { font-family: var(--marker); font-size: 17px; color: #2c241762; color: #5c4a2e; }
.feat-story span { font-family: var(--mono); font-size: 13px; }
.feat-cta { display: flex; align-items: center; gap: 18px; margin-top: 16px; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; cursor: pointer; text-decoration: none; text-align: center;
  font-family: var(--slab); font-size: 16px; letter-spacing: .03em;
  padding: 13px 26px; border-radius: 8px; border: 3px solid var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.btn:active { transform: translate(2px, 2px); }
.btn-hot { background: var(--hot); color: var(--ink); box-shadow: 5px 5px 0 var(--amber); }
.btn-hot:hover { transform: translate(-1px, -1px); box-shadow: 7px 7px 0 var(--amber); }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--paper); box-shadow: 5px 5px 0 rgba(244, 234, 216, .25); }
.btn-ghost:hover { color: var(--amber); border-color: var(--amber); }
.btn-wide { display: block; width: 100%; }
.btn small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; }

/* ---------- item page ---------- */
.item-page { max-width: 1180px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) clamp(16px, 4.5vw, 56px); }
.crumb { font-family: var(--mono); font-size: 14px; color: var(--paper-dim); text-decoration: none; }
.crumb:hover { color: var(--amber); }
.item-grid { display: grid; grid-template-columns: minmax(300px, 7fr) 6fr; gap: clamp(24px, 4vw, 56px); margin-top: 20px; }
.item-gallery { position: relative; }
.gallery-main { position: relative; background: var(--paper); padding: 14px; border-radius: 8px; box-shadow: var(--shadow); transform: rotate(-.8deg); }
.gallery-main img { display: none; border-radius: 4px; width: 100%; }
.gallery-main img.on { display: block; }
.thumbs { display: flex; gap: 10px; margin-top: 14px; }
.thumb { width: 64px; height: 64px; padding: 3px; background: var(--paper); border: 2px solid transparent; border-radius: 6px; cursor: pointer; }
.thumb.on { border-color: var(--amber); }
.thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.item-cat { font-family: var(--mono); font-weight: 700; font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--cyan); }
.item-info h1 { font-family: var(--slab); font-size: clamp(26px, 4vw, 40px); line-height: 1.05; margin: 10px 0 14px; color: var(--paper); }
.item-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.item-meta .cond { color: var(--paper-dim); }
.item-desc { color: var(--paper-dim); }
.story-note {
  position: relative; background: var(--paper); color: #4c3a20; border-radius: 6px;
  padding: 18px 20px 14px; margin: 22px 0; transform: rotate(.6deg); box-shadow: var(--shadow);
}
.story-label { font-family: var(--mono); font-weight: 700; font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: #a06a00; }
.story-note p { font-family: var(--marker); font-size: 17.5px; line-height: 1.5; margin: 6px 0 0; }
.buy-row { display: grid; gap: 12px; margin-top: 20px; }
.qty-note { font-family: var(--mono); font-size: 13.5px; color: var(--paper-dim); }
.qty-note.one { color: var(--amber); }
.soldout { margin-top: 20px; }
.soldout p { color: var(--paper-dim); }

/* ---------- picks & about ---------- */
.picks { border-top: 1px dashed var(--line); }
.about-card {
  position: relative; max-width: 760px; margin: 0 auto;
  background: var(--paper); color: #3c2f1c; border-radius: 8px;
  padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); transform: rotate(.5deg);
}
.about-card h2 { color: var(--ink); }
.about-card .marker { color: #b3322f; }
.custom-msg { font-family: var(--marker); font-size: 17px; color: #5c4a2e; }
.about-pay { border-top: 2px dashed #c9b894; padding-top: 14px; }

/* ---------- cart & checkout ---------- */
.cart-page, .order-page { max-width: 780px; }
.empty { text-align: center; padding: 40px 0; color: var(--paper-dim); }
.empty .btn { margin-top: 16px; }
.cart-list { display: grid; gap: 12px; }
.cart-row {
  display: grid; grid-template-columns: 64px 1fr auto auto; gap: 14px; align-items: center;
  background: var(--paper); color: var(--ink); border-radius: 6px; padding: 10px 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.cart-row img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; }
.cart-row .t { font-weight: 700; font-size: 15px; }
.qty-ctl { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-weight: 700; }
.qty-ctl button {
  width: 26px; height: 26px; border-radius: 6px; border: 2px solid var(--ink);
  background: var(--paper); cursor: pointer; font-weight: 700; line-height: 1;
}
.qty-ctl button:hover { background: var(--amber); }
.cart-row .rm { background: none; border: none; color: #b3322f; font-family: var(--mono); font-size: 12px; cursor: pointer; text-decoration: underline; }
.cart-summary { font-family: var(--mono); margin: 18px 0 30px; border-top: 2px dashed var(--line); padding-top: 14px; }
.cart-summary .row { display: flex; justify-content: space-between; padding: 3px 0; color: var(--paper-dim); }
.cart-summary .row.total { color: var(--paper); font-size: 20px; font-weight: 700; }
.checkout h3 { font-family: var(--slab); font-size: 22px; margin: 28px 0 14px; color: var(--paper); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.form-grid .span2 { grid-column: span 3; }
.form-grid label, .fulfill-row label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 13.5px; }
.form-grid small { font-weight: 400; color: var(--paper-dim); }
input, textarea, select {
  font: inherit; padding: 11px 13px; border-radius: 6px;
  border: 2px solid var(--line); background: var(--bg2); color: var(--paper);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--amber); }
.fulfill-row { display: flex; gap: 12px; margin: 18px 0; flex-wrap: wrap; }
.pay-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.pay-opt {
  flex: 1; min-width: 130px; cursor: pointer;
  border: 3px dashed var(--line); border-radius: 8px; padding: 14px;
  text-align: center; font-family: var(--mono); font-weight: 700;
  transition: border-color .2s, background .2s;
}
.pay-opt:hover { border-color: var(--kraft); }
.pay-opt.on { border-style: solid; border-color: var(--amber); background: rgba(255, 176, 46, .1); }
.pay-opt input { position: absolute; opacity: 0; }
.pay-fine { font-size: 13px; color: var(--paper-dim); margin-top: 14px; }
#placeOrder { margin-top: 6px; }
.form-err { color: var(--hot); font-family: var(--mono); font-weight: 700; }

/* ---------- order page ---------- */
.timeline { display: flex; align-items: center; gap: 6px; margin: 26px 0 30px; flex-wrap: wrap; }
.tl-step { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-weight: 700; font-size: 13.5px; color: var(--paper-dim); }
.tl-step.done { color: var(--amber); }
.tl-dot { width: 14px; height: 14px; border-radius: 50%; border: 3px solid currentColor; background: transparent; }
.tl-step.done .tl-dot { background: var(--amber); }
.tl-bar { flex: 1; min-width: 24px; height: 3px; background: var(--line); }
.pay-card {
  background: var(--paper); color: var(--ink); border-radius: 8px;
  padding: clamp(20px, 3.4vw, 32px); box-shadow: var(--shadow); transform: rotate(-.4deg); margin-bottom: 30px;
}
.pay-card h3 { font-family: var(--slab); margin: 0 0 10px; font-size: 22px; }
.pay-card .marker { color: #b3322f; }
.pay-imp { color: #4c3f2c; }
.code-chip { font-family: var(--mono); background: var(--ink); color: var(--amber); padding: 2px 8px; border-radius: 4px; }
.qr-wrap { display: flex; align-items: center; gap: 14px; margin-top: 16px; font-family: var(--mono); font-size: 12.5px; color: #6b5b41; }
.qr-wrap img, .qr-wrap canvas { border: 6px solid #fff; border-radius: 4px; }
.pay-alts a { font-family: var(--mono); font-size: 13.5px; color: #1c5c83; }
.order-items { font-family: var(--mono); border-top: 2px dashed var(--line); padding-top: 14px; }
.oi-row { display: grid; grid-template-columns: 36px 1fr auto; padding: 5px 0; color: var(--paper-dim); }
.oi-sub { color: var(--paper-dim); }
.oi-total { color: var(--paper); font-size: 19px; font-weight: 700; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px dashed var(--line); margin-top: 40px; }
.foot-inner {
  max-width: 1280px; margin: 0 auto; padding: 36px clamp(16px, 4.5vw, 56px);
  display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.foot-brand { display: flex; gap: 12px; align-items: center; }
.foot-tag { color: var(--paper-dim); font-size: 13.5px; }
.foot-social { display: flex; gap: 10px; }
.social {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 2px solid var(--line); border-radius: 50%; color: var(--paper-dim);
  transition: color .2s, border-color .2s, transform .2s;
}
.social:hover { color: var(--amber); border-color: var(--amber); transform: rotate(-8deg) scale(1.08); }
.social svg { width: 20px; height: 20px; }
.foot-meta { display: flex; flex-direction: column; gap: 4px; font-family: var(--mono); font-size: 12.5px; color: var(--paper-dim); }
.foot-meta a { color: var(--cyan); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 120px);
  background: var(--paper); color: var(--ink); font-weight: 700;
  border: 3px solid var(--ink); border-radius: 8px; box-shadow: 6px 6px 0 var(--hot);
  padding: 13px 22px; z-index: 80; transition: transform .35s cubic-bezier(.2, .9, .3, 1.2);
}
.toast.show { transform: translate(-50%, 0) rotate(-1deg); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); animation: rise .7s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: var(--d, 0ms); }
.card.reveal { animation-name: riseTilt; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@keyframes riseTilt { to { opacity: 1; transform: translateY(0) rotate(var(--tilt, 0deg)); } }

@media (prefers-reduced-motion: reduce) {
  .reveal, .card.reveal { animation: none; opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .grain { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .feat-frame, .item-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .span2 { grid-column: span 2; }
  .cart-row { grid-template-columns: 52px 1fr auto; }
  .cart-row .rm { grid-column: 3; }

  /* hamburger */
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: none; border: 2px solid var(--line); border-radius: 11px; cursor: pointer; padding: 0 9px; }
  .nav-toggle span { display: block; height: 2.5px; background: var(--paper); border-radius: 2px; transition: transform .25s, opacity .2s; }
  .nav-toggle.on span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.on span:nth-child(2) { opacity: 0; }
  .nav-toggle.on span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  /* backdrop-filter on .site-head would make the fixed panel resolve to the header box, not
     the viewport — drop it on mobile so the slide-out menu spans full height. */
  .site-head { backdrop-filter: none; background: var(--bg); }
  /* slide-out menu panel */
  .site-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(84vw, 330px);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg2); border-left: 1px solid var(--line);
    padding: 78px 18px 24px; transform: translateX(101%);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
    overflow-y: auto; z-index: 70; box-shadow: var(--shadow);
  }
  .site-nav.open { transform: translateX(0); }
  .site-nav > a, .nav-dd-btn { padding: 15px 4px; font-size: 17px; border-bottom: 1px solid var(--line); opacity: 1; }
  .nav-dd { display: block; }
  .nav-dd-btn { display: flex; justify-content: space-between; }
  .nav-dd.expanded .dd-caret { transform: rotate(180deg); }
  .nav-dd-menu { position: static; display: none; background: none; border: none; box-shadow: none; padding: 2px 0 8px 12px; min-width: 0; }
  .nav-dd-menu::before { display: none; }  /* no hover-bridge on tap-driven mobile */
  .nav-dd.expanded .nav-dd-menu { display: flex; }
  .nav-dd-menu a { font-size: 15px; padding: 10px 6px; border-bottom: none; }
  .acct-link { padding: 15px 4px; }
  body.nav-open { overflow: hidden; }
  body.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 65; }
}

/* tidy two-up product grid on phones (1 giant column reads as an endless scroll) */
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .grid .card { transform: rotate(0deg); }
  .card-body { padding: 10px 11px 12px; }
  .card-body h3 { font-size: 13.5px; line-height: 1.25; margin-bottom: 7px; }
  .price-tag { font-size: 14px; padding: 3px 8px 3px 12px; }
  .cond { font-size: 10.5px; }
  .card-pin { display: none; }
  .coll-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* ---------- bundles ---------- */
.stamp-bundle { color: #6d3bd1; }
.bundle-card {
  position: relative; display: block; text-decoration: none;
  background: var(--paper); color: var(--ink);
  border-radius: 6px; box-shadow: var(--shadow); overflow: hidden;
  transform: rotate(var(--tilt, 0deg));
  transition: transform .3s cubic-bezier(.2, .8, .3, 1.2), box-shadow .3s;
}
.bundle-card:hover { transform: rotate(0deg) translateY(-7px) scale(1.015); box-shadow: 0 24px 50px rgba(0, 0, 0, .6); z-index: 2; }
.bundle-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; background: #ddcdb0; aspect-ratio: 3 / 2; }
.bundle-thumb { overflow: hidden; }
.bundle-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bundle-body { padding: 14px 16px 16px; }
.bundle-body h3 { font-family: var(--body); font-weight: 900; font-size: 17px; line-height: 1.25; margin: 0 0 8px; }
.bundle-sub { font-size: 13px; color: #6b5b41; margin: 0 0 10px; }
.bundle-body .card-meta { flex-wrap: wrap; }
.bundle-save {
  font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .03em;
  background: var(--hot); color: #fff; padding: 3px 9px; border-radius: 4px; transform: rotate(-3deg);
}
.bundles .sec-head .marker { color: var(--cyan); }

/* bundle detail */
.bundle-page .bundle-detail {
  position: relative; background: var(--paper); color: var(--ink);
  border-radius: 8px; box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 40px); max-width: 940px; margin: 0 auto;
}
.bundle-detail h1 { font-family: var(--slab); color: var(--ink); margin: 8px 0 10px; line-height: 1.05; }
.bundle-detail .marker { color: #b3322f; }
.bundle-lead { color: #4a3c28; font-size: 17px; max-width: 60ch; }
.bundle-pricebar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 14px 0 18px; }
.bundle-note { font-family: var(--mono); font-size: 13px; color: #4a5a3a; background: rgba(46, 230, 214, .18); border-left: 3px solid var(--cyan); padding: 10px 12px; border-radius: 4px; margin: 16px 0; }
.bundle-incl { margin-top: 24px; color: var(--ink); }
.bundle-items { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.bundle-item { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); background: #fff7e9; border: 1px solid rgba(0, 0, 0, .08); border-radius: 6px; padding: 8px; transition: transform .2s; }
.bundle-item:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0, 0, 0, .25); }
.bi-img { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 4px; overflow: hidden; background: #ddcdb0; }
.bi-img img { width: 100%; height: 100%; object-fit: cover; }
.bi-info { min-width: 0; }
.bi-cat { font-family: var(--mono); font-size: 11px; color: #8a7350; text-transform: uppercase; letter-spacing: .08em; }
.bi-info h4 { margin: 2px 0 6px; font-size: 13.5px; line-height: 1.25; }

/* about photo + store cred + hero backdrop */
.about-card.has-photo { display: grid; grid-template-columns: 230px 1fr; gap: clamp(20px, 4vw, 40px); align-items: start; }
.about-photo { margin: 0; background: #fff; padding: 10px 10px 14px; box-shadow: var(--shadow); transform: rotate(-3deg); }
.about-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.about-photo figcaption { font-family: var(--marker); color: var(--ink); text-align: center; font-size: 15px; margin-top: 8px; }
.about-cred { font-family: var(--mono); font-weight: 700; font-size: 13px; color: #0c7d72; margin-top: 14px; }
.hero-photo { position: absolute; inset: 0; z-index: 0; background: var(--hero-photo) center 18% / cover no-repeat; opacity: .2; filter: saturate(1.1) contrast(1.04); }

/* cart bundle badge */
.cart-badge { font-family: var(--mono); font-weight: 700; font-size: 10.5px; letter-spacing: .05em; background: #6d3bd1; color: #fff; padding: 2px 6px; border-radius: 3px; vertical-align: middle; }

@media (max-width: 720px) {
  .about-card.has-photo { grid-template-columns: 1fr; }
  .about-photo { max-width: 220px; margin: 0 auto; }
}

/* ---------- drops / newsletter ---------- */
.drops-card { position: relative; background: var(--paper); color: var(--ink); border-radius: 10px; box-shadow: var(--shadow); padding: clamp(24px, 4vw, 40px); max-width: 760px; margin: 0 auto; text-align: center; }
.drops-card h2 { font-family: var(--slab); color: var(--ink); margin: 0 0 10px; }
.drops-card .marker { color: var(--hot); }
.drops-card p { color: #4a3c28; margin: 0 auto; max-width: 52ch; }
.drops-form { display: flex; gap: 10px; justify-content: center; margin: 18px 0 10px; flex-wrap: wrap; }
.drops-form input { font: inherit; padding: 12px 14px; border-radius: 8px; border: 2px solid var(--ink); min-width: 240px; flex: 1; max-width: 360px; background: #fff; color: var(--ink); }
.drops-fine { font-family: var(--mono); font-size: 12.5px; color: #6b5b41; }

/* ---------- make-an-offer ---------- */
.offer-box { margin-top: 18px; border: 2px dashed var(--line); border-radius: 10px; }
.offer-box summary { cursor: pointer; padding: 12px 16px; font-family: var(--mono); font-weight: 700; font-size: 14px; color: var(--paper); list-style: none; }
.offer-box summary::-webkit-details-marker { display: none; }
.offer-box[open] summary { border-bottom: 2px dashed var(--line); color: var(--amber); }
.offer-form { padding: 14px 16px; }
.offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.offer-grid .span2 { grid-column: span 2; }
.offer-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; color: var(--paper); }
.offer-grid label small { font-weight: 400; color: var(--paper-dim); }
.offer-grid input, .offer-grid textarea { font: inherit; padding: 9px 11px; border-radius: 7px; border: 2px solid var(--line); background: var(--paper); color: var(--ink); }
.offer-form button { margin-top: 12px; }
.offer-msg { font-family: var(--mono); font-size: 13px; color: var(--cyan); margin: 8px 0 0; }
@media (max-width: 560px) { .offer-grid { grid-template-columns: 1fr; } .offer-grid .span2 { grid-column: 1; } }

/* ---------- category filter bar ---------- */
.catbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 26px; }
.catgroup { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-dim); opacity: .7; margin-left: 12px; }
.catgroup:first-of-type { margin-left: 0; }
.catchip { cursor: pointer; font-family: var(--body); font-weight: 700; font-size: 13.5px; color: var(--cream-ink); background: rgba(244, 234, 216, .08); border: 2px solid var(--line); border-radius: 99px; padding: 7px 14px; transition: background .15s, border-color .15s, color .15s; }
.catchip:hover { border-color: var(--amber); }
.catchip.on { background: var(--hot); color: #fff; border-color: var(--hot); }
.catchip .catn { font-family: var(--mono); font-size: 11px; opacity: .7; margin-left: 4px; }
.catempty { margin-top: 12px; }

/* ---------- sale / special pricing ---------- */
.price-wrap { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.was { opacity: .55; font-family: var(--mono); font-size: .78em; text-decoration: line-through; }
.stamp-sale { color: #c2272d; }

/* ---------- shop-by-category index ---------- */
.shop-page { }
.shop-group { margin-bottom: 32px; }
.shop-group h2 { font-family: var(--slab); font-size: clamp(20px, 3.2vw, 30px); margin: 0 0 14px; }
.shop-cats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.shop-cat { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-decoration: none; background: var(--paper); color: var(--ink); border-radius: 10px; padding: 16px 18px; box-shadow: var(--shadow); font-weight: 900; transition: transform .2s; }
.shop-cat:hover { transform: translateY(-4px); }
.shop-cat .catn { font-family: var(--mono); font-weight: 700; font-size: 13px; background: var(--amber); color: var(--ink); border-radius: 99px; padding: 2px 10px; }
.item-cat a { text-decoration: none; }
.item-cat a:hover { text-decoration: underline; }

/* ---------- coupon box (cart) ---------- */
.coupon-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 16px; }
.coupon-box input { font: inherit; padding: 10px 12px; border-radius: 8px; border: 2px solid var(--kraft); background: #fff; color: var(--ink); text-transform: uppercase; letter-spacing: .04em; min-width: 160px; }
.coupon-box .btn { padding: 9px 16px; }
.coupon-msg { font-family: var(--mono); font-size: 13px; }
.coupon-msg.ok { color: var(--cyan); }
.coupon-msg.warn { color: var(--hot); }
.cart-summary .row.disc { color: var(--cyan); }
.oi-disc { color: var(--cyan); }

/* ---------- socials strip (top of page) ---------- */
.social-strip { position: relative; z-index: 40; background: rgba(0, 0, 0, .4); border-bottom: 1px solid var(--line); }
.social-strip-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 6px clamp(14px, 4vw, 44px); }
.social-strip .ss-label { font-family: var(--mono); font-size: 12px; color: var(--paper-dim); margin-right: 2px; }
.social-strip .social { color: var(--paper-dim); display: inline-flex; }
.social-strip .social svg { width: 20px; height: 20px; }
.social-strip .social:hover { color: var(--amber); }

/* ---------- header account link ---------- */
.acct-link { display: inline-flex; align-items: center; gap: 6px; }
.acct-link .acct-ico { font-size: 15px; filter: grayscale(.2); }
.acct-link.signed-in { color: var(--amber); opacity: 1; }

/* ---------- auth pages (sign in / register / reset) ---------- */
.auth-page { max-width: 460px; margin: 0 auto; padding: clamp(40px, 7vw, 90px) 18px; }
.auth-card { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow); }
.auth-h { font-family: var(--slab); font-size: clamp(26px, 4vw, 34px); margin: 0 0 6px; color: var(--paper); }
.auth-sub { color: var(--paper-dim); margin: 0 0 22px; font-size: 15px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form label, .acc-form label { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--paper-dim); }
.auth-form input { font: inherit; text-transform: none; letter-spacing: normal; padding: 12px 14px; border-radius: 9px; border: 2px solid var(--line); background: var(--bg); color: var(--paper); }
.auth-form input:focus { border-color: var(--amber); }
.auth-form .hint, .acc-form .hint { text-transform: none; letter-spacing: normal; color: var(--kraft); font-size: 11px; }
.auth-form .btn { margin-top: 6px; }
.auth-alt { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.auth-alt a, .linkish-btn { color: var(--cyan); font-size: 13.5px; text-decoration: none; }
.auth-alt a:hover, .linkish-btn:hover { color: var(--amber); }
.linkish-btn { background: none; border: none; cursor: pointer; font-family: var(--body); padding: 0; }
.magic-inline { margin: 0; }
.auth-foot { margin: 20px 0 0; text-align: center; color: var(--paper-dim); font-size: 14px; }
.auth-foot a { color: var(--amber); text-decoration: none; }
.consent { flex-direction: row !important; align-items: flex-start; gap: 9px; text-transform: none !important; letter-spacing: normal !important; font-family: var(--body) !important; font-size: 13.5px !important; color: var(--paper-dim) !important; line-height: 1.45; }
.consent input { width: auto; margin-top: 3px; flex: 0 0 auto; }
.consent a { color: var(--amber); text-decoration: none; }
.acc-flash { border-radius: 9px; padding: 11px 14px; font-size: 14px; margin-bottom: 16px; }
.acc-flash.ok { background: rgba(46, 230, 214, .12); border: 1px solid var(--cyan); color: var(--cyan); }
.acc-flash.bad { background: rgba(255, 61, 127, .12); border: 1px solid var(--hot); color: #ffb3cd; }

/* ---------- account dashboard ---------- */
.account-page { max-width: 920px; margin: 0 auto; padding: clamp(30px, 5vw, 64px) clamp(16px, 4vw, 40px); }
.acc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.acc-head h1 { font-family: var(--slab); font-size: clamp(28px, 4.5vw, 40px); margin: 0; color: var(--paper); }
.acc-email { font-family: var(--mono); font-size: 13px; color: var(--paper-dim); margin: 4px 0 0; }
.acc-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 22px 0; border-bottom: 1px solid var(--line); }
.acc-tab { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--paper-dim); text-decoration: none; padding: 10px 14px; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.acc-tab:hover { color: var(--paper); }
.acc-tab.on { color: var(--amber); border-bottom-color: var(--amber); }
.acc-badge { background: var(--hot); color: #fff; border-radius: 99px; font-size: 11px; padding: 1px 7px; margin-left: 4px; }
.acc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-bottom: 8px; }
.acc-stat { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.as-n { display: block; font-family: var(--slab); font-size: 26px; color: var(--paper); }
.as-l { font-family: var(--mono); font-size: 12px; color: var(--paper-dim); }
.acc-section { margin-top: 30px; }
.acc-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.acc-section-head h2 { font-family: var(--marker); color: var(--amber); font-size: 20px; margin: 0; }
.acc-section-head a { color: var(--cyan); text-decoration: none; font-size: 14px; }
.acc-empty { color: var(--paper-dim); font-size: 15px; }
.acc-empty a { color: var(--amber); text-decoration: none; }
.acc-orders { display: flex; flex-direction: column; gap: 12px; }
.acc-order { display: block; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; text-decoration: none; color: var(--paper); transition: border-color .15s, transform .15s; }
.acc-order:hover { border-color: var(--amber); transform: translateY(-2px); }
.ao-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ao-code { font-family: var(--mono); font-weight: 700; letter-spacing: .05em; }
.ao-items { color: var(--paper-dim); font-size: 14px; margin: 8px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ao-foot { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 13px; color: var(--paper-dim); }
.ao-foot strong { color: var(--paper); }
.acc-pill { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line); color: var(--paper-dim); }
.acc-pill.ok { color: var(--cyan); border-color: var(--cyan); }
.acc-pill.warn { color: var(--amber); border-color: var(--amber); }
.acc-pill.done { color: #8fe388; border-color: #8fe388; }
.acc-pill.dead { color: var(--hot); border-color: var(--hot); }

/* ---------- account forms / settings ---------- */
.acc-form { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; }
.acc-form input { font: inherit; padding: 11px 13px; border-radius: 8px; border: 2px solid var(--line); background: var(--bg); color: var(--paper); width: 100%; }
.acc-form input:disabled { opacity: .55; }
.acc-form input:focus { border-color: var(--amber); }
.acc-check { flex-direction: row !important; align-items: flex-start; gap: 10px; text-transform: none !important; letter-spacing: normal !important; font-family: var(--body) !important; font-size: 15px !important; color: var(--paper) !important; }
.acc-check input { width: auto; margin-top: 3px; }

/* ---------- messages thread ---------- */
.msg-thread { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; max-height: 460px; overflow-y: auto; padding: 4px; }
.msg { max-width: 78%; padding: 12px 15px; border-radius: 14px; font-size: 15px; line-height: 1.5; }
.msg.mine { align-self: flex-end; background: var(--hot); color: #fff; border-bottom-right-radius: 4px; }
.msg.adam { align-self: flex-start; background: var(--bg2); border: 1px solid var(--line); color: var(--paper); border-bottom-left-radius: 4px; }
.msg-meta { font-family: var(--mono); font-size: 10.5px; opacity: .7; margin-top: 6px; }
.msg-compose { display: flex; gap: 10px; align-items: flex-end; }
.msg-compose textarea { flex: 1; font: inherit; padding: 12px 14px; border-radius: 10px; border: 2px solid var(--line); background: var(--bg); color: var(--paper); resize: vertical; }
.msg-compose textarea:focus { border-color: var(--amber); }

/* ---------- community / forum ---------- */
.community-page { max-width: 920px; margin: 0 auto; padding: clamp(30px, 5vw, 64px) clamp(16px, 4vw, 40px); }
.community-page.narrow { max-width: 720px; }
.comm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.comm-head h1 { margin: 0; font-size: clamp(30px, 5vw, 46px); }
.comm-head .marker { font-family: var(--marker); color: var(--amber); }
.comm-sub { color: var(--paper-dim); margin: 8px 0 0; max-width: 560px; font-size: 15px; }
.cat-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.cat-chip { font-family: var(--mono); font-size: 12.5px; color: var(--paper-dim); text-decoration: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; transition: .15s; }
.cat-chip:hover { color: var(--paper); border-color: var(--paper-dim); }
.cat-chip.on { background: var(--amber); color: var(--ink); border-color: var(--amber); font-weight: 700; }
.thread-list { display: flex; flex-direction: column; gap: 10px; }
.thread-row { display: flex; align-items: center; gap: 14px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--paper); transition: border-color .15s, transform .15s; }
.thread-row:hover { border-color: var(--amber); transform: translateX(2px); }
.tr-cat { font-size: 22px; flex: 0 0 auto; }
.tr-main { flex: 1; min-width: 0; }
.tr-title { display: block; font-weight: 700; font-size: 16px; }
.tr-title .pin { color: var(--amber); }
.tr-meta { display: block; font-family: var(--mono); font-size: 12px; color: var(--paper-dim); margin-top: 3px; }
.tr-replies { flex: 0 0 auto; text-align: center; font-family: var(--mono); color: var(--paper-dim); font-size: 11px; line-height: 1.1; }
.tr-replies strong { display: block; font-size: 20px; color: var(--amber); font-family: var(--slab); }

.thread-top { margin-bottom: 16px; }
.thread-h { font-family: var(--slab); font-size: clamp(24px, 4vw, 34px); margin: 12px 0 0; }
.replies-h { font-family: var(--marker); color: var(--amber); font-size: 18px; margin: 26px 0 12px; }
.reply-list { display: flex; flex-direction: column; gap: 12px; }

/* posts (forum + comments share this) */
.post { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.post.staff-post { border-color: var(--amber); background: linear-gradient(180deg, rgba(255,176,46,.08), transparent); }
.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.avatar { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--slab); font-size: 13px; color: #fff; }
.avatar.staff { background: var(--amber) !important; color: var(--ink); }
.post-who { font-weight: 700; font-size: 15px; display: flex; flex-direction: column; line-height: 1.15; }
.staff-tag { font-family: var(--mono); font-size: 10.5px; font-weight: 400; color: var(--amber); letter-spacing: .04em; }
.post-when { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--paper-dim); }
.post-body { font-size: 15px; line-height: 1.6; color: var(--paper); word-wrap: break-word; }
.post-signin { background: var(--bg2); border: 1px dashed var(--line); border-radius: 12px; padding: 16px 18px; margin-top: 14px; text-align: center; color: var(--paper-dim); }
.post-signin a { color: var(--amber); text-decoration: none; font-weight: 700; }

/* community forms */
.comm-form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.comm-form label { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--paper-dim); }
.comm-form input, .comm-form select, .comm-form textarea { font: inherit; text-transform: none; letter-spacing: normal; padding: 12px 14px; border-radius: 9px; border: 2px solid var(--line); background: var(--bg); color: var(--paper); }
.comm-form input:focus, .comm-form textarea:focus, .comm-form select:focus { border-color: var(--amber); }
.comm-reply { display: flex; gap: 10px; align-items: flex-end; margin-top: 16px; }
.comm-reply textarea { flex: 1; font: inherit; padding: 12px 14px; border-radius: 10px; border: 2px solid var(--line); background: var(--bg); color: var(--paper); resize: vertical; }
.comm-reply textarea:focus { border-color: var(--amber); }

/* product comments (item page) */
.prod-comments { max-width: 1180px; margin: clamp(30px, 5vw, 60px) auto 0; padding: 0 clamp(16px, 4.5vw, 56px); }
.prod-comments h2 { font-size: 24px; display: flex; align-items: center; gap: 10px; }
.prod-comments .marker { font-family: var(--marker); color: var(--amber); }
.cc-count { font-family: var(--mono); font-size: 14px; color: var(--paper-dim); background: var(--bg2); border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; }
.comment-list { display: flex; flex-direction: column; gap: 12px; margin: 14px 0; }

/* ---------- collection (public) ---------- */
.collection-page { max-width: 1180px; margin: 0 auto; padding: clamp(30px, 5vw, 64px) clamp(16px, 4.5vw, 56px); }
.coll-head h1 { margin: 0; font-size: clamp(32px, 6vw, 56px); }
.coll-head .marker { font-family: var(--marker); color: var(--amber); }
.coll-sub { color: var(--paper-dim); max-width: 640px; margin: 10px 0 0; font-size: 15.5px; }
.coll-views { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0; }
.cv { font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--paper-dim); text-decoration: none; padding: 9px 16px; border: 1px solid var(--line); border-radius: 99px; }
.cv:hover { color: var(--paper); border-color: var(--paper-dim); }
.cv.on { background: var(--hot); color: var(--ink); border-color: var(--hot); }
.cat-chips.pub { margin-bottom: 22px; }
.coll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.coll-card { display: block; text-decoration: none; color: var(--paper); background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: transform .15s, border-color .15s; }
.coll-card:hover { transform: translateY(-4px); border-color: var(--amber); }
.coll-img { position: relative; aspect-ratio: 1; background: linear-gradient(135deg, #241a10, #16100b); display: grid; place-items: center; }
.coll-img img { width: 100%; height: 100%; object-fit: cover; }
.coll-ph { font-size: 54px; }
.coll-forsale { position: absolute; top: 8px; right: 8px; background: var(--hot); color: #fff; font-family: var(--mono); font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 99px; }
.coll-info { padding: 11px 13px; }
.coll-kind { font-family: var(--mono); font-size: 11px; color: var(--amber); text-transform: uppercase; letter-spacing: .05em; }
.coll-info h3 { margin: 5px 0 0; font-size: 15px; line-height: 1.25; }
.wild-bar { margin-bottom: 20px; }

/* constellation */
.constel-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.ct-label { font-family: var(--mono); font-size: 12px; color: var(--paper-dim); }
.ct-btn { font-family: var(--mono); font-size: 12.5px; font-weight: 700; cursor: pointer; color: var(--paper-dim); background: transparent; border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; }
.ct-btn:hover { color: var(--paper); }
.ct-btn.on { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.ct-hint { font-family: var(--mono); font-size: 11.5px; color: var(--paper-dim); margin-left: auto; }
.constel-stage { position: relative; height: min(70vh, 620px); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background:
  radial-gradient(1200px 500px at 30% -10%, rgba(255,61,127,.10), transparent 60%),
  radial-gradient(900px 500px at 90% 110%, rgba(46,230,214,.10), transparent 60%), #0c0906; cursor: grab; touch-action: none; }
.constel-stage:active { cursor: grabbing; }
#constelCanvas { display: block; width: 100%; height: 100%; }
.constel-card { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(330px, 86%); background: rgba(20,16,10,.97); border: 1px solid var(--amber); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; }
.constel-card .cc-img, .constel-card .cc-ph { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 10px; object-fit: cover; }
.constel-card .cc-ph { display: grid; place-items: center; font-size: 32px; background: #241a10; }
.constel-card .cc-b { flex: 1; min-width: 0; }
.constel-card .cc-kind { font-family: var(--mono); font-size: 10.5px; color: var(--amber); text-transform: uppercase; }
.constel-card h4 { margin: 3px 0 8px; font-size: 15px; line-height: 1.2; }
.constel-card .cc-sale { display: inline-block; background: var(--hot); color: #fff; font-family: var(--mono); font-size: 10px; padding: 2px 7px; border-radius: 99px; margin-right: 8px; }
.constel-card .btn { padding: 7px 14px; font-size: 13px; }
.constel-card .cc-x { position: absolute; top: 8px; right: 10px; background: none; border: none; color: var(--paper-dim); font-size: 20px; cursor: pointer; line-height: 1; }
.constel-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--paper-dim); font-size: 15px; padding: 20px; text-align: center; }

/* collection detail */
.coll-detail { max-width: 1000px; margin: 0 auto; padding: clamp(30px, 5vw, 60px) clamp(16px, 4.5vw, 56px); }
.cd-grid { display: grid; grid-template-columns: minmax(0, 5fr) 6fr; gap: clamp(20px, 4vw, 48px); margin-top: 16px; }
.cd-media img { width: 100%; border-radius: 14px; border: 1px solid var(--line); }
.cd-ph { aspect-ratio: 1; display: grid; place-items: center; font-size: 90px; background: var(--bg2); border-radius: 14px; border: 1px solid var(--line); }
.cd-more { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.cd-more img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.cd-info h1 { font-size: clamp(26px, 4vw, 38px); margin: 8px 0; }
.cd-artist { font-family: var(--marker); color: var(--amber); font-size: 20px; margin: 0 0 14px; }
.cd-notes { color: var(--paper-dim); line-height: 1.65; font-size: 15.5px; }
.cd-nfs { margin-top: 20px; padding: 16px; border: 1px dashed var(--line); border-radius: 12px; }
.cd-nfs p { margin: 0 0 12px; color: var(--paper-dim); }

/* ---------- contact ---------- */
.contact-page { max-width: 680px; margin: 0 auto; padding: clamp(30px, 5vw, 64px) clamp(16px, 4.5vw, 40px); }
.ct-head h1 { margin: 0; font-size: clamp(30px, 5vw, 46px); }
.ct-head .marker { font-family: var(--marker); color: var(--amber); }
.ct-sub { color: var(--paper-dim); margin: 10px 0 22px; font-size: 15.5px; }
.ct-form { display: flex; flex-direction: column; gap: 16px; }
.ct-types { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ct-type { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--bg2); font-weight: 700; font-size: 14px; }
.ct-type input { position: absolute; opacity: 0; pointer-events: none; }
.ct-type:hover { border-color: var(--paper-dim); }
.ct-type.on { border-color: var(--hot); background: rgba(255,61,127,.1); }
.ct-emoji { font-size: 20px; }
.ct-about { font-size: 14px; color: var(--paper-dim); background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.ct-about a { color: var(--amber); text-decoration: none; }
.ct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ct-grid .span2 { grid-column: span 2; }
.ct-grid label { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--paper-dim); }
.ct-grid label[hidden] { display: none; }
.ct-grid input, .ct-grid textarea { font: inherit; text-transform: none; letter-spacing: normal; padding: 12px 14px; border-radius: 9px; border: 2px solid var(--line); background: var(--bg); color: var(--paper); }
.ct-grid input:focus, .ct-grid textarea:focus { border-color: var(--amber); }
.ct-grid .hint { text-transform: none; letter-spacing: normal; color: var(--kraft); font-size: 11px; }
.ct-direct { text-align: center; color: var(--paper-dim); margin-top: 18px; font-size: 14px; }
.ct-direct a { color: var(--amber); text-decoration: none; }
.ask-link { display: inline-block; margin-top: 16px; color: var(--cyan); text-decoration: none; font-weight: 700; font-size: 14.5px; }
.ask-link:hover { color: var(--amber); }

/* ---------- legal pages ---------- */
.legal-page { max-width: 760px; margin: 0 auto; padding: clamp(30px, 5vw, 64px) clamp(16px, 4.5vw, 40px); }
.legal-page h1 { font-size: clamp(30px, 5vw, 44px); margin: 0 0 6px; }
.legal-page .marker { font-family: var(--marker); color: var(--amber); }
.legal-intro { color: var(--paper-dim); font-size: 16px; margin: 0 0 24px; }
.legal-sec { margin: 0 0 22px; }
.legal-sec h2 { font-family: var(--body); font-weight: 900; font-size: 19px; color: var(--paper); margin: 0 0 8px; }
.legal-sec p { color: var(--paper-dim); line-height: 1.65; margin: 0; font-size: 15.5px; }
.legal-sec a, .legal-foot a { color: var(--amber); text-decoration: none; }
.legal-foot { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--paper-dim); font-size: 14.5px; }
.foot-legal a { color: var(--paper-dim); text-decoration: none; }
.foot-legal a:hover { color: var(--amber); }

@media (max-width: 700px) { .cd-grid { grid-template-columns: 1fr; } .scan-wrap { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .ct-types { grid-template-columns: 1fr; } .ct-grid { grid-template-columns: 1fr; } .ct-grid .span2 { grid-column: 1; } }
@media (max-width: 560px) {
  .acc-grid { grid-template-columns: 1fr; }
  .msg { max-width: 90%; }
  .acct-link .acct-ico { display: none; }
  .thread-row { flex-wrap: wrap; }
  .comm-reply { flex-direction: column; align-items: stretch; }
}
