/* King Crump Cards. Crimson on crushed black; neon green is reserved for live stock signals only. */
:root {
  --void: #0b0b0e;
  --coal: #131318;
  --slab: #1c1c23;
  --rim: #2d2d37;
  --bone: #ede6d8;
  --ash: #9c97a3;
  --crimson: #b3122b;
  --blood: #e02440;
  --live: #39ff14;
  --warn: #ffb020;
  --radius: 14px;
  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--void); color: var(--bone);
  font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* film grain */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blood); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { font-family: var(--display); line-height: 1.02; margin: 0; letter-spacing: -0.02em; font-weight: 800; }
.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: rgba(11, 11, 14, 0.82);
  border-bottom: 1px solid var(--rim);
}
.site-header .wrap { display: flex; align-items: center; gap: 22px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 21px var(--display); letter-spacing: -0.02em; white-space: nowrap; }
.brand img { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; }
.nav { display: flex; gap: 4px; margin-left: 6px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 10px; color: var(--ash); font-weight: 500; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--bone); background: var(--slab); }
.search { margin-left: auto; position: relative; flex: 0 1 340px; }
.search input { width: 100%; }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px;
  background: var(--slab); border: 1px solid var(--rim); font-weight: 600;
}
.cart-btn:hover { border-color: var(--crimson); }
.cart-btn .badge {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--crimson); color: #fff;
  font-size: 13px; display: grid; place-items: center;
}
.cart-btn .badge[data-n='0'] { background: var(--rim); color: var(--ash); }
.cart-btn.bump { animation: bump 0.4s; }
@keyframes bump { 40% { transform: scale(1.12); } }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; background: var(--coal); padding: 12px 20px 18px; border-bottom: 1px solid var(--rim); }
  .nav.open { display: flex; }
  .menu-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--slab); border: 1px solid var(--rim); }
  .search { display: none; }
  .cart-btn { margin-left: auto; }
}

/* ---------- controls ---------- */
input, select, textarea {
  font: inherit; color: var(--bone); background: var(--coal); border: 1px solid var(--rim); border-radius: 10px;
  padding: 10px 12px; min-height: 42px;
}
input::placeholder, textarea::placeholder { color: #6f6b76; }
input:focus, select:focus, textarea:focus { border-color: var(--crimson); outline: none; box-shadow: 0 0 0 3px rgba(179, 18, 43, 0.25); }
textarea { width: 100%; min-height: 84px; resize: vertical; }
label.field { display: grid; gap: 6px; font-size: 14px; color: var(--ash); }
label.field > span { color: var(--bone); font-weight: 500; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px;
  border: 1px solid var(--rim); background: var(--slab); font-weight: 600; text-decoration: none; min-height: 44px;
  transition: transform 0.12s, background 0.15s, border-color 0.15s;
}
.btn:hover { border-color: var(--ash); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--crimson); border-color: var(--crimson); color: #fff; }
.btn.primary:hover { background: var(--blood); border-color: var(--blood); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 7px 12px; min-height: 34px; font-size: 14px; border-radius: 10px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.chip { display: inline-block; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--rim); font-size: 12.5px; color: var(--ash); white-space: nowrap; }
.chip.foil { border-color: #7a5cff66; color: #c9bbff; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--bone); }
.live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 10px var(--live); }
.live.low { color: var(--warn); }
.live.low::before { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.live.out { color: var(--ash); }
.live.out::before { background: #55525a; box-shadow: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; isolation: isolate; }
.fog { position: absolute; inset: -20% -10%; z-index: -1; pointer-events: none; }
.fog::before, .fog::after { content: ''; position: absolute; inset: 0; background: radial-gradient(40% 50% at 20% 30%, rgba(179, 18, 43, 0.32), transparent 70%), radial-gradient(35% 45% at 80% 70%, rgba(110, 90, 200, 0.18), transparent 70%); filter: blur(30px); animation: drift 26s ease-in-out infinite alternate; }
.fog::after { background: radial-gradient(30% 40% at 65% 25%, rgba(237, 230, 216, 0.06), transparent 70%), radial-gradient(40% 40% at 10% 85%, rgba(179, 18, 43, 0.2), transparent 70%); animation-duration: 34s; animation-direction: alternate-reverse; }
@keyframes drift { to { transform: translate3d(5%, -4%, 0) scale(1.08); } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(46px, 7.4vw, 98px); font-weight: 800; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--crimson); }
.hero p.lede { max-width: 46ch; font-size: 19px; color: #cfc8ba; margin: 22px 0 30px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .stockline { margin-top: 26px; display: flex; gap: 18px; flex-wrap: wrap; color: var(--ash); font-size: 14.5px; }
.fan { position: relative; height: 440px; display: grid; place-items: center; perspective: 1100px; }
.kcard {
  position: absolute; width: 250px; height: 350px; border-radius: 18px; padding: 14px; overflow: hidden; isolation: isolate;
  background: linear-gradient(155deg, #2a0a10 0%, #14080b 45%, #0c0c10 100%); border: 1px solid #5a1a26;
  box-shadow: var(--shadow), inset 0 0 0 5px #0c0c10, inset 0 0 0 6px #3a121b;
}
.kcard .corner { position: absolute; font: 800 26px/1 var(--display); color: var(--bone); display: grid; justify-items: center; gap: 0; }
.kcard .corner small { font-size: 20px; color: var(--crimson); line-height: 1; }
.kcard .tl { top: 18px; left: 20px; }
.kcard .br { bottom: 18px; right: 20px; transform: rotate(180deg); }
.kcard img { position: absolute; inset: 50px 30px 56px; width: calc(100% - 60px); height: calc(100% - 106px); object-fit: contain; border-radius: 12px; }
.kcard.logo-card { width: 280px; height: 375px; padding: 0; background: none; border: 0; box-shadow: none; overflow: visible; }
.kcard.logo-card img { position: static; inset: auto; width: 100%; height: 100%; border-radius: 0; filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.85)); }
.kcard.logo-card::after { -webkit-mask: url(/assets/logo.png) center / 100% 100% no-repeat; mask: url(/assets/logo.png) center / 100% 100% no-repeat; }
.kcard .cap { position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; font: 700 13px var(--display); letter-spacing: 0.04em; color: var(--ash); }
.fan .c1 { transform: translateX(-120px) rotate(-12deg); }
.fan .c2 { transform: translateY(-12px); z-index: 2; }
.fan .c3 { transform: translateX(120px) rotate(12deg); }
.holo { --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg; transform-style: preserve-3d; }
.fan .holo.c1 { transform: translateX(-200px) rotate(-10deg) rotateX(var(--rx)) rotateY(var(--ry)); }
.fan .holo.c2 { transform: translateY(-12px) rotateX(var(--rx)) rotateY(var(--ry)); }
.fan .holo.c3 { transform: translateX(200px) rotate(10deg) rotateX(var(--rx)) rotateY(var(--ry)); }
.holo { transition: transform 0.3s ease-out; }
.holo.hot { transition: transform 0.06s linear; }
.holo::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; mix-blend-mode: color-dodge; opacity: 0;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.85), transparent 38%),
    repeating-linear-gradient(115deg, #ff0080 0%, #ffd500 12%, #00e0a0 24%, #00a0ff 36%, #b100ff 48%, #ff0080 60%);
  background-size: 100% 100%, 260% 260%; background-position: 0 0, var(--mx) var(--my); transition: opacity 0.3s;
}
.holo.hot::after { opacity: 0.38; }
.fan:hover .holo:not(.hot)::after { opacity: 0.12; }
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; }
  .fan { height: 380px; }
  .kcard { width: 210px; height: 294px; }
  .kcard.logo-card { width: 230px; height: 308px; }
  .fan .holo.c1 { transform: translateX(-110px) rotate(-10deg) rotateX(var(--rx)) rotateY(var(--ry)); }
  .fan .holo.c3 { transform: translateX(110px) rotate(10deg) rotateX(var(--rx)) rotateY(var(--ry)); }
}

/* ---------- sections ---------- */
section.block { padding: 64px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(30px, 4vw, 48px); }
.sec-head p { margin: 8px 0 0; color: var(--ash); max-width: 56ch; }
.game-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.game-tile {
  position: relative; text-decoration: none; padding: 22px 20px; border-radius: var(--radius); background: var(--coal); border: 1px solid var(--rim);
  min-height: 140px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; transition: border-color 0.2s, transform 0.2s;
}
.game-tile:hover { border-color: var(--crimson); transform: translateY(-3px); }
.game-tile h3 { font-size: 25px; }
.game-tile span { color: var(--ash); font-size: 14px; }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 30px; }
.trust h3 { font-size: 20px; margin-bottom: 6px; }
.trust p { margin: 0; color: var(--ash); }

/* ---------- pack rip ---------- */
.rip { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.rip h2 { font-size: clamp(34px, 5vw, 62px); }
.rip p { color: #cfc8ba; max-width: 46ch; font-size: 18px; margin: 16px 0 24px; }
.pack-stage { position: relative; height: 430px; display: grid; place-items: center; }
.pack-body {
  position: relative; width: 230px; height: 330px; border: 0; padding: 0; z-index: 3; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  background: linear-gradient(110deg, #3a0c15 0%, #b3122b 22%, #5b0f1c 38%, #d8203c 52%, #4a0b16 70%, #8f1024 100%);
  clip-path: polygon(0 4%, 3% 0, 6% 4%, 9% 0, 12% 4%, 15% 0, 18% 4%, 21% 0, 24% 4%, 27% 0, 30% 4%, 33% 0, 36% 4%, 39% 0, 42% 4%, 45% 0, 48% 4%, 51% 0, 54% 4%, 57% 0, 60% 4%, 63% 0, 66% 4%, 69% 0, 72% 4%, 75% 0, 78% 4%, 81% 0, 84% 4%, 87% 0, 90% 4%, 93% 0, 96% 4%, 100% 0, 100% 96%, 97% 100%, 94% 96%, 91% 100%, 88% 96%, 85% 100%, 82% 96%, 79% 100%, 76% 96%, 73% 100%, 70% 96%, 67% 100%, 64% 96%, 61% 100%, 58% 96%, 55% 100%, 52% 96%, 49% 100%, 46% 96%, 43% 100%, 40% 96%, 37% 100%, 34% 96%, 31% 100%, 28% 96%, 25% 100%, 22% 96%, 19% 100%, 16% 96%, 13% 100%, 10% 96%, 7% 100%, 4% 96%, 0 100%);
  display: grid; place-items: center; align-content: center; gap: 10px; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6));
}
.pack-body img { width: 110px; border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.pack-body b { font: 800 26px var(--display); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); }
.pack-body small { color: #f6c9d0; }
.pack-body:hover { transform: translateY(-6px) rotate(-1.5deg); }
.pack-top {
  position: absolute; z-index: 4; width: 230px; height: 46px; top: calc(50% - 165px); pointer-events: none; transition: transform 0.7s cubic-bezier(0.3, 0.7, 0.2, 1), opacity 0.7s;
  background: linear-gradient(110deg, #6d0f1e, #e02440 50%, #6d0f1e); clip-path: polygon(0 20%, 3% 0, 6% 20%, 9% 0, 12% 20%, 15% 0, 18% 20%, 21% 0, 24% 20%, 27% 0, 30% 20%, 33% 0, 36% 20%, 39% 0, 42% 20%, 45% 0, 48% 20%, 51% 0, 54% 20%, 57% 0, 60% 20%, 63% 0, 66% 20%, 69% 0, 72% 20%, 75% 0, 78% 20%, 81% 0, 84% 20%, 87% 0, 90% 20%, 93% 0, 96% 20%, 100% 0, 100% 100%, 0 100%);
}
.pcards { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; }
.pcard {
  position: absolute; width: 150px; height: 210px; border-radius: 14px; text-decoration: none; display: grid; place-items: center; text-align: center; padding: 12px;
  background: linear-gradient(160deg, #1d1d26, #0f0f14); border: 1px solid var(--rim); font: 800 19px/1.1 var(--display); box-shadow: var(--shadow);
  transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.25, 1.1), opacity 0.4s, border-color 0.2s;
}
.pcard small { display: block; margin-top: 8px; font: 500 12.5px var(--body); color: var(--ash); }
.pcard:hover { border-color: var(--crimson); }
html.js .pcard { opacity: 0; transform: translateY(60px) scale(0.8); pointer-events: none; }
html.js .pack-stage.ripped .pcard { opacity: 1; pointer-events: auto; transform: translate(var(--tx), var(--ty)) rotate(var(--rot)); transition-delay: var(--d); }
.pack-stage.ripped .pack-body { transform: translateY(150px) scale(0.92); pointer-events: none; }
.pack-stage.ripped .pack-top { transform: translate(90px, -150px) rotate(24deg); opacity: 0; }
@media (max-width: 900px) { .rip { grid-template-columns: 1fr; } .pack-stage { height: 460px; } }

/* ---------- shop ---------- */
.page-hero { padding: 38px 0 18px; border-bottom: 1px solid var(--rim); }
.page-hero h1 { font-size: clamp(36px, 5vw, 60px); }
.page-hero p { margin: 10px 0 0; color: var(--ash); max-width: 62ch; }
body.comics .page-hero { background: radial-gradient(circle at 1px 1px, rgba(179, 18, 43, 0.35) 1.2px, transparent 1.6px) 0 0 / 14px 14px, linear-gradient(180deg, #19090d, transparent); }
.shop { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 30px; padding: 28px 0 80px; align-items: start; }
.filters { position: sticky; top: 90px; display: grid; gap: 4px; max-height: calc(100vh - 110px); overflow: auto; padding-right: 6px; }
.filters details { border-bottom: 1px solid var(--rim); padding: 10px 0; }
.filters summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.filters summary::after { content: '+'; color: var(--ash); }
.filters details[open] summary::after { content: '\2212'; }
.filters .opts { display: grid; gap: 7px; margin-top: 10px; max-height: 220px; overflow: auto; }
.filters label.opt { display: flex; align-items: center; gap: 9px; font-size: 14.5px; cursor: pointer; }
.filters label.opt em { margin-left: auto; font-style: normal; color: var(--ash); font-size: 13px; }
.filters input[type='checkbox'] { accent-color: var(--crimson); width: 17px; height: 17px; min-height: 0; }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.price-range input { min-height: 38px; width: 100%; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .count { color: var(--ash); margin-right: auto; }
.toolbar input[type='search'] { flex: 1 1 220px; }
.filter-toggle { display: none; }
.filters .x { display: none; margin-left: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.tile {
  text-decoration: none; color: inherit; position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--coal); border: 1px solid var(--rim); border-radius: var(--radius);
  overflow: hidden; text-align: left; padding: 0; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.tile:hover { border-color: var(--crimson); transform: translateY(-4px); box-shadow: 0 20px 40px -22px rgba(179, 18, 43, 0.7); }
.tile .art, .tile .photo { aspect-ratio: 5 / 7; width: 100%; }
body.comics .tile .art, body.comics .tile .photo { aspect-ratio: 2 / 3; }
.tile .photo { object-fit: cover; background: var(--slab); }
.tile .body { padding: 12px 14px 14px; display: grid; gap: 4px; align-content: start; }
.tile h3 { font-size: 17px; line-height: 1.15; letter-spacing: -0.01em; }
.tile .meta { color: var(--ash); font-size: 13.5px; }
.tile .row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; gap: 8px; }
.tile .price { font: 800 20px var(--display); }
.tile .price small { font: 400 12.5px var(--body); color: var(--ash); }
.tile.sold { opacity: 0.6; filter: grayscale(0.7); }
.tile .art, .art {
  display: grid; place-items: center; position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--a, #3a1d22), #101015 78%);
}
.art::before { content: attr(data-glyph); font: 800 clamp(60px, 9vw, 110px) var(--display); opacity: 0.13; letter-spacing: -0.05em; }
.art[data-game='pokemon'] { --a: #6b2a1b; }
.art[data-game='mtg'] { --a: #1f3558; }
.art[data-game='yugioh'] { --a: #3b2457; }
.art[data-game='anime'] { --a: #1b4a46; }
.art[data-game='comics'] { --a: #5b3b13; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.empty { padding: 60px 20px; text-align: center; color: var(--ash); border: 1px dashed var(--rim); border-radius: var(--radius); }
.empty h3 { color: var(--bone); margin-bottom: 8px; }
.skeleton { height: 330px; border-radius: var(--radius); background: linear-gradient(100deg, var(--coal) 30%, var(--slab) 50%, var(--coal) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -300% 0; } }
@media (max-width: 900px) {
  .shop { grid-template-columns: 1fr; }
  .filters { position: fixed; z-index: 70; inset: 0 25% 0 0; max-height: none; background: var(--coal); padding: 20px; transform: translateX(-105%); transition: transform 0.3s; border-right: 1px solid var(--rim); }
  .filters.open { transform: none; }
  .filter-toggle { display: inline-flex; }
  .filters .x { display: grid; }
}
@media (max-width: 520px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .tile h3 { font-size: 15px; } }

/* ---------- drawers ---------- */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, 0.62); opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 81; width: min(480px, 100vw); background: var(--coal); border-left: 1px solid var(--rim);
  display: grid; grid-template-rows: auto 1fr auto; transform: translateX(104%); transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1); box-shadow: var(--shadow);
}
.drawer.on { transform: none; }
.drawer header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--rim); }
.drawer header h2 { font-size: 24px; }
.drawer .scroll { overflow: auto; padding: 18px 20px; display: grid; gap: 14px; align-content: start; }
.drawer footer { padding: 16px 20px 20px; border-top: 1px solid var(--rim); display: grid; gap: 10px; background: var(--void); }
.x { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--rim); background: var(--slab); display: grid; place-items: center; }
.pd-top { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: start; }
.pd-top .art, .pd-top .photo { border-radius: 10px; aspect-ratio: 5 / 7; width: 120px; object-fit: cover; }
.pd-top h3 { font-size: 26px; }
.pd-top .meta { color: var(--ash); margin-top: 6px; }
.listing { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--rim); border-radius: 12px; background: var(--void); }
.listing .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.listing .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.listing .price { font: 800 22px var(--display); }
.listing .buy { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.step { display: inline-flex; align-items: center; border: 1px solid var(--rim); border-radius: 10px; overflow: hidden; background: var(--coal); }
.step button { width: 36px; height: 38px; border: 0; background: transparent; font-size: 18px; }
.step button:hover { background: var(--slab); }
.step output { min-width: 34px; text-align: center; font-weight: 600; }
.hint { color: var(--ash); font-size: 13.5px; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--rim); }
.cart-line .art, .cart-line .photo { width: 64px; aspect-ratio: 5 / 7; border-radius: 8px; object-fit: cover; }
.cart-line .art::before { font-size: 34px; }
.cart-line h4 { margin: 0; font: 600 15px/1.25 var(--body); }
.cart-line .meta { color: var(--ash); font-size: 13px; margin-top: 3px; }
.cart-line .req { margin-top: 6px; font-size: 12.5px; color: var(--ash); border-left: 2px solid var(--crimson); padding-left: 8px; }
.cart-line .problem { color: var(--warn); font-size: 13px; margin-top: 6px; }
.cart-line .side { display: grid; gap: 8px; justify-items: end; align-content: start; }
.link { background: none; border: 0; color: var(--ash); text-decoration: underline; padding: 0; font-size: 13px; }
.totals { display: grid; gap: 6px; font-size: 15px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font: 800 22px var(--display); padding-top: 8px; border-top: 1px solid var(--rim); margin-top: 4px; }
.protect { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--rim); border-radius: 12px; background: var(--coal); font-size: 14px; }
.protect input { accent-color: var(--crimson); width: 18px; height: 18px; min-height: 0; margin-top: 2px; }
.agree { display: flex; gap: 10px; font-size: 13.5px; color: var(--ash); align-items: flex-start; }
.agree input { accent-color: var(--crimson); width: 18px; height: 18px; min-height: 0; margin-top: 1px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 30px); opacity: 0; background: var(--slab); border: 1px solid var(--rim); padding: 12px 18px; border-radius: 12px; transition: 0.3s; pointer-events: none; max-width: 92vw; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { border-color: var(--blood); }

/* ---------- mystery ---------- */
.mystery { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 34px; padding: 30px 0 80px; align-items: start; }
.mystery h2 { font-size: 28px; margin: 0 0 14px; }
.mystery section + section { margin-top: 38px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.pick { text-align: left; padding: 16px; border-radius: var(--radius); background: var(--coal); border: 1px solid var(--rim); display: grid; gap: 6px; transition: border-color 0.15s, background 0.15s; }
.pick:hover { border-color: var(--ash); }
.pick[aria-pressed='true'] { border-color: var(--crimson); background: linear-gradient(160deg, #2a0d13, var(--coal)); box-shadow: 0 0 0 1px var(--crimson); }
.pick[disabled] { opacity: 0.45; cursor: not-allowed; }
.pick b { font: 800 22px var(--display); }
.pick .price { font: 800 28px var(--display); }
.pick .badge { justify-self: start; background: var(--crimson); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.form-grid { display: grid; gap: 14px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.summary { position: sticky; top: 90px; border: 1px solid var(--rim); border-radius: var(--radius); background: var(--coal); padding: 20px; display: grid; gap: 14px; }
.summary h3 { font-size: 24px; }
.summary .big { font: 800 40px var(--display); }
.fine { font-size: 13.5px; color: var(--ash); }
.honey { position: absolute; left: -9999px; }
@media (max-width: 960px) { .mystery { grid-template-columns: 1fr; } .summary { position: static; } .form-grid.two { grid-template-columns: 1fr; } }

/* ---------- prose / policies ---------- */
.prose { max-width: 74ch; padding: 40px 0 90px; }
.prose h1 { font-size: clamp(38px, 5vw, 58px); margin-bottom: 8px; }
.prose .updated { color: var(--ash); margin-bottom: 30px; }
.prose h2 { font-size: 26px; margin: 40px 0 10px; }
.prose p, .prose li { color: #d6cfc1; }
.prose ul { padding-left: 22px; display: grid; gap: 6px; }
.prose .callout { border: 1px solid var(--crimson); border-radius: var(--radius); background: #1d0b10; padding: 18px 20px; margin: 22px 0; }
.prose .callout p { margin: 0; color: var(--bone); }
.prose a { color: #f4b4be; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rim); background: var(--coal); padding: 44px 0 30px; margin-top: 40px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h4 { margin: 0 0 10px; font: 700 15px var(--display); }
.site-footer a { display: block; color: var(--ash); text-decoration: none; padding: 3px 0; }
.site-footer a:hover { color: var(--bone); }
.site-footer .fine { margin-top: 28px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

/* ---------- success ---------- */
.center-card { max-width: 560px; margin: 90px auto; padding: 34px; border: 1px solid var(--rim); border-radius: 20px; background: var(--coal); text-align: center; display: grid; gap: 14px; }
.center-card h1 { font-size: 40px; }
.center-card .ref { font: 700 20px var(--display); letter-spacing: 0.04em; color: var(--bone); }

/* ---------- admin ---------- */
.admin { padding: 26px 0 90px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0 22px; border-bottom: 1px solid var(--rim); }
.tabs button { background: none; border: 0; padding: 10px 16px; border-radius: 10px 10px 0 0; color: var(--ash); font-weight: 600; border-bottom: 2px solid transparent; }
.tabs button[aria-selected='true'] { color: var(--bone); border-bottom-color: var(--crimson); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { padding: 16px; border: 1px solid var(--rim); border-radius: var(--radius); background: var(--coal); }
.stat b { display: block; font: 800 30px var(--display); }
.stat span { color: var(--ash); font-size: 14px; }
.stat.alert { border-color: var(--blood); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; color: var(--ash); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--rim); white-space: nowrap; }
table.t td { padding: 8px 10px; border-bottom: 1px solid var(--slab); vertical-align: middle; }
table.t input { min-height: 34px; padding: 5px 8px; width: 92px; }
table.t input.wide { width: 100%; min-width: 120px; }
table.t .thumb { width: 38px; height: 52px; border-radius: 5px; object-fit: cover; background: var(--slab); }
.scroll-x { overflow-x: auto; border: 1px solid var(--rim); border-radius: var(--radius); }
.panel { border: 1px solid var(--rim); border-radius: var(--radius); background: var(--coal); padding: 20px; margin-bottom: 18px; }
.panel h3 { font-size: 22px; margin-bottom: 12px; }
.order { border: 1px solid var(--rim); border-radius: var(--radius); background: var(--coal); padding: 16px; margin-bottom: 12px; display: grid; gap: 10px; }
.order.attention { border-color: var(--blood); }
.order .head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.order .head b { font: 800 20px var(--display); }
.status { padding: 2px 10px; border-radius: 999px; font-size: 12.5px; border: 1px solid var(--rim); color: var(--ash); }
.status.paid { color: var(--live); border-color: #39ff1455; }
.status.shipped { color: #8fb4ff; border-color: #8fb4ff55; }
.status.refunded, .status.oversold { color: var(--warn); border-color: #ffb02055; }
.row-flex { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 13px; }
.login { max-width: 380px; margin: 90px auto; display: grid; gap: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  html.js .pcard { opacity: 1; transform: translate(var(--tx), var(--ty)) rotate(var(--rot)); pointer-events: auto; }
  .pack-stage .pack-body, .pack-stage .pack-top { display: none; }
}

@media (max-width: 520px) {
  .site-header .wrap { gap: 10px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .cart-btn { padding: 8px 10px; }
}
