/* PrizeSkillz Marketplace v2: gold on dark, mobile first.
   Design: Ali, designer of the Prize Vault screens and art.
   Tokens follow the Prize Vault palette (#100) and GOLD_STOPS. Fonts: Cinzel + Inter (SIL OFL 1.1, bundled). */
@font-face { font-family: "Inter"; src: url("/fonts/inter-var-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("/fonts/cinzel-var-latin.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
    --bg: #050508;
    --bg-2: #0a0a0e;
    --panel: rgba(15, 15, 20, 0.95);
    --panel-solid: #0f0f14;
    --panel-2: #1a1a22;
    --card: #18181f;
    --line: #2c2c36;
    --line-soft: rgba(255, 255, 255, 0.06);
    --gold: #d4b038;
    --gold-hi: #f2d159;
    --gold-lo: #8c732e;
    --gold-grad: linear-gradient(180deg, #f2d159 0%, #d4b038 55%, #8c732e 100%);
    --gold-sheen: linear-gradient(100deg, #8c732e 0%, #f2d159 38%, #d4b038 62%, #8c732e 100%);
    --on-gold: #141006;
    --text: #ffffff;
    --muted: #bfbfc7;
    --dim: #8a8a94;
    --ok: #33bf73;
    --danger: #e5675b;
    --raised: linear-gradient(180deg, #16161d 0%, #0a0a0e 100%);
    --radius: 16px;
    --radius-sm: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.4);
    --bevel: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --glow: 0 0 0 1px rgba(242, 209, 89, 0.35), 0 6px 24px rgba(212, 176, 56, 0.28);
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Cinzel", "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
    margin: 0; color: var(--text); font: 500 15px/1.5 var(--font-ui); -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(1200px 520px at 85% -120px, rgba(212, 176, 56, 0.14), transparent 60%),
        radial-gradient(900px 600px at -10% 10%, rgba(140, 115, 46, 0.10), transparent 60%),
        var(--bg);
    background-attachment: fixed; min-height: 100vh;
}
a { color: var(--gold-hi); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0 0 0.5rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.12rem; color: var(--text); display: flex; align-items: center; gap: 0.5rem; }
h2 .ico { color: var(--gold); }
p { margin: 0.4rem 0 0.8rem; }
.ico { flex: 0 0 auto; vertical-align: middle; }
.ico.filled { fill: currentColor; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.center { text-align: center; }
.grow { flex: 1 1 auto; min-width: 0; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; border-radius: 8px; }

/* Display type: Cinzel, uppercase, gold gradient (GOLD_STOPS) */
.display { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.75rem; line-height: 1.15;
    background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.6)); }
.display.sm { font-size: 1.35rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--gold); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 0.35rem; }
.lede { color: var(--muted); font-size: 1rem; max-width: 46ch; }

/* ---------- header (glass) ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: linear-gradient(180deg, rgba(15, 15, 20, 0.92), rgba(8, 8, 11, 0.86)); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
    border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(242, 209, 89, 0.08); transition: box-shadow 0.25s var(--ease); }
body.scrolled .topbar { box-shadow: 0 1px 0 rgba(242, 209, 89, 0.18), 0 10px 30px rgba(0, 0, 0, 0.5); }
.topbar-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 1rem; padding: 0.6rem 1rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--text); min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 26px; width: auto; }
.brand-divider { width: 1px; height: 28px; background: linear-gradient(180deg, transparent, var(--gold-lo), transparent); }
.brand-title { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.14em; text-transform: uppercase; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-tagline { font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-top: 0.3rem; }
.staging-pill { margin-left: auto; flex: 0 0 auto; border: 1px solid var(--gold-lo); color: var(--gold); border-radius: 999px; padding: 0.2rem 0.65rem; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; background: rgba(5, 5, 8, 0.6); }
.topnav { display: none; gap: 0.25rem; margin-left: auto; }
.topnav a { position: relative; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.55rem 0.8rem; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 0.9rem; transition: color 0.2s, background 0.2s; }
.topnav a:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
.topnav a.active { color: var(--gold-hi); }
.topnav a.active::after { content: ""; position: absolute; left: 0.8rem; right: 0.8rem; bottom: -0.62rem; height: 3px; border-radius: 3px; background: var(--gold-sheen); box-shadow: 0 0 12px rgba(242, 209, 89, 0.5); }
.topnav + .staging-pill { margin-left: 0.5rem; }

.view { max-width: 1200px; margin: 0 auto; padding: 1rem 1rem 7rem; min-height: 60vh; }
.page { animation: page-in 0.32s var(--ease) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- bottom tab bar (mobile web) ---------- */
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    background: linear-gradient(180deg, rgba(15, 15, 20, 0.94), rgba(5, 5, 8, 0.98)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); box-shadow: 0 -1px 0 rgba(242, 209, 89, 0.08), 0 -10px 30px rgba(0, 0, 0, 0.5); padding: 0.3rem 0 calc(0.35rem + env(safe-area-inset-bottom)); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; min-height: 52px; justify-content: center; color: var(--dim); font-size: 0.7rem; font-weight: 600; transition: color 0.2s; }
.tabbar a:hover { text-decoration: none; color: var(--muted); }
.tabbar a.active { color: var(--gold-hi); }
.tabbar a.active .ico-wrap::after { content: ""; position: absolute; left: 50%; top: -9px; width: 22px; height: 3px; margin-left: -11px; border-radius: 3px; background: var(--gold-sheen); box-shadow: 0 0 10px rgba(242, 209, 89, 0.6); }
.ico-wrap { position: relative; display: grid; place-items: center; }
.tabbar a.post .ico-wrap { width: 52px; height: 52px; margin-top: -22px; border-radius: 50%; background: var(--gold-grad); color: var(--on-gold); box-shadow: var(--glow), var(--bevel); border: 2px solid #050508; }
.tabbar a.post .ico-wrap::after { display: none; }
.tabbar a.post { color: var(--gold); }
.badge-dot { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--gold-grad); color: var(--on-gold); font-size: 0.66rem; font-weight: 800; box-shadow: 0 0 0 2px var(--bg); }
.tabbar .badge-dot { position: absolute; top: -6px; right: -12px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(3, 3, 5, 0.9)); color: var(--muted); font-size: 0.85rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 1.25rem 1rem 7rem; display: flex; gap: 1rem; align-items: flex-start; }
.footer-emblem { width: 40px; height: 40px; opacity: 0.85; }
.footer p { margin: 0 0 0.45rem; }
.footer-links { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.footer .credit { color: var(--gold); font-weight: 600; letter-spacing: 0.02em; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 44px; padding: 0.6rem 1.15rem; border-radius: 12px; border: 1px solid var(--line);
    background: linear-gradient(180deg, #1d1d26, #121218); color: var(--text); font: 600 0.95rem/1 var(--font-ui); cursor: pointer; box-shadow: var(--bevel), 0 2px 6px rgba(0, 0, 0, 0.35);
    transition: transform 0.12s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s, filter 0.2s; white-space: nowrap; }
.btn:hover { text-decoration: none; border-color: var(--gold-lo); }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--gold-grad); color: var(--on-gold); border-color: #f2d159; font-weight: 700; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 4px 2px -2px rgba(0, 0, 0, 0.5), 0 8px 22px rgba(212, 176, 56, 0.25); }
.btn.primary:hover { filter: brightness(1.06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 4px 2px -2px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(242, 209, 89, 0.35); }
.btn.outline { background: rgba(5, 5, 8, 0.4); border-color: var(--gold-lo); color: var(--gold-hi); }
.btn.outline:hover, .btn.outline.on { border-color: var(--gold); background: rgba(212, 176, 56, 0.1); }
.btn.danger { background: transparent; border-color: rgba(229, 103, 91, 0.7); color: #ff9a8f; box-shadow: none; }
.btn.small { min-height: 36px; padding: 0.4rem 0.8rem; font-size: 0.85rem; border-radius: 10px; }
.btn.lg { min-height: 54px; font-size: 1.05rem; border-radius: 14px; }
.btn.block { width: 100%; }
.btn[disabled] { background: #1e1e26; color: var(--dim); border-color: var(--line); box-shadow: none; cursor: not-allowed; filter: none; text-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.9rem 0; align-items: center; }
.linkish { display: inline-flex; align-items: center; gap: 0.35rem; background: none; border: 0; color: var(--muted); font: inherit; font-size: 0.85rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0.25rem 0; }
.linkish:hover { color: var(--text); }

/* ---------- forms ---------- */
label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--muted); margin: 0.9rem 0 0.35rem; letter-spacing: 0.01em; }
input, select, textarea { width: 100%; min-height: 46px; background: linear-gradient(180deg, #0b0b10, #121218); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 0.7rem 0.85rem; font: 500 0.95rem var(--font-ui);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.45); transition: border-color 0.2s, box-shadow 0.2s; }
input::placeholder, textarea::placeholder { color: #7d7d88; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.45), 0 0 0 3px rgba(212, 176, 56, 0.22); }
select { appearance: none; -webkit-appearance: none; padding-right: 2.4rem; cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%), linear-gradient(180deg, #0b0b10, #121218);
    background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%, 0 0; background-size: 6px 6px, 6px 6px, 100% 100%; background-repeat: no-repeat; }
textarea { min-height: 116px; resize: vertical; line-height: 1.45; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--text); font-size: 0.9rem; font-weight: 500; }
.check input { width: 20px; height: 20px; min-height: 0; margin-top: 0.1rem; accent-color: var(--gold); box-shadow: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.field-error { color: #ff9a8f; font-size: 0.85rem; margin-top: 0.5rem; min-height: 1.2em; }

/* ---------- panels (raised metal / glass) ---------- */
.panel { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow), var(--bevel); margin-bottom: 1rem; }
.panel.raised { background: var(--raised); }
.panel.raised::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(90deg, transparent, rgba(242, 209, 89, 0.45), transparent); }
.panel.glass { background: linear-gradient(180deg, rgba(26, 26, 34, 0.75), rgba(15, 15, 20, 0.75)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.panel.narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.center-panel { text-align: center; }
.center-panel input { text-align: center; }
.panel-emblem { width: 112px; height: 112px; margin: 0 auto 0.75rem; filter: drop-shadow(0 8px 24px rgba(212, 176, 56, 0.35)); }
.panel-ico { width: 72px; height: 72px; margin: 0 auto 0.75rem; display: grid; place-items: center; border-radius: 50%; color: var(--gold-hi); background: radial-gradient(circle at 50% 35%, #26262f, #0e0e13); border: 1px solid var(--gold-lo); box-shadow: var(--glow); }
.notice-box { display: flex; gap: 0.6rem; align-items: flex-start; border: 1px solid rgba(140, 115, 46, 0.7); background: linear-gradient(180deg, rgba(212, 176, 56, 0.09), rgba(212, 176, 56, 0.03)); border-radius: 12px; padding: 0.7rem 0.85rem; font-size: 0.88rem; color: #e9e5d6; }
.notice-box .ico { color: var(--gold); margin-top: 0.1rem; }
.notice-box.vault { align-items: center; flex-wrap: wrap; }
.draft-banner { background: #2a1512; color: #ffd2c8; border: 1px solid var(--danger); border-radius: 12px; padding: 0.6rem 0.8rem; font-weight: 700; margin-bottom: 1rem; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin: 0.4rem 0 1.1rem; }
.page-head .lede { margin-bottom: 0; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-radius: 20px; border: 1px solid rgba(140, 115, 46, 0.55); margin: 0.25rem 0 1rem; min-height: 300px;
    background: radial-gradient(120% 140% at 100% 0%, #1b1710 0%, #0b0a0c 55%, #060608 100%); box-shadow: var(--shadow), inset 0 1px 0 rgba(242, 209, 89, 0.25); }
.hero::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), inset 0 -60px 80px -40px rgba(0, 0, 0, 0.6); }
.hero-art { position: absolute; inset: 0 0 0 auto; width: 100%; background: url("/img/vault/prize-vault-hero-984x420.jpg") right center / cover no-repeat; opacity: 0.55;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 35%, #000 70%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 35%, #000 70%); }
.hero-copy { position: relative; z-index: 1; padding: 1.4rem 1.1rem 1.2rem; max-width: 640px; }
.hero-title { font-size: 1.9rem; margin-bottom: 0.4rem; }
.hero.compact { min-height: 0; }
.hero.compact .lede, .hero.compact .hero-points, .hero.compact .eyebrow { display: none; }
.hero.compact .hero-title { font-size: 1.3rem; }
.hero.compact .hero-art { opacity: 0.35; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; padding: 0; margin: 0.9rem 0 0; color: #e7e3d6; font-size: 0.82rem; font-weight: 600; }
.hero-points li { display: inline-flex; align-items: center; gap: 0.35rem; }
.hero-points .ico { color: var(--gold); }

/* search */
.search { position: relative; display: flex; gap: 0.5rem; margin-top: 0.9rem; padding: 0.35rem; border-radius: 16px; background: rgba(5, 5, 8, 0.75); border: 1px solid var(--gold-lo); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(212, 176, 56, 0.06); }
.search:focus-within { border-color: var(--gold); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(212, 176, 56, 0.16); }
.search-ico { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--gold); pointer-events: none; display: grid; }
.search input { flex: 1; border: 0; background: transparent; box-shadow: none; padding-left: 2.6rem; font-size: 1rem; }
.search input:focus { box-shadow: none; }
.search .btn { min-width: 96px; }

/* ---------- category tiles ---------- */
.cat-rail { display: flex; gap: 0.6rem; overflow-x: auto; padding: 0.3rem 0.1rem 0.8rem; margin: 0 -1rem; padding-left: 1rem; padding-right: 1rem; scrollbar-width: none; scroll-snap-type: x proximity; }
.cat-rail::-webkit-scrollbar { display: none; }
.cat-tile { flex: 0 0 auto; scroll-snap-align: start; width: 92px; min-height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.45rem; padding: 0.6rem 0.4rem;
    border-radius: 16px; border: 1px solid var(--line); background: var(--raised); color: var(--muted); font: 600 0.74rem/1.15 var(--font-ui); text-align: center; cursor: pointer;
    box-shadow: var(--bevel), 0 4px 12px rgba(0, 0, 0, 0.35); transition: transform 0.18s var(--ease), border-color 0.2s, color 0.2s, box-shadow 0.2s; }
.cat-tile:hover { transform: translateY(-2px); border-color: var(--gold-lo); color: var(--text); }
.cat-ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: var(--gold); background: radial-gradient(circle at 50% 30%, #25252e, #0d0d12); border: 1px solid rgba(140, 115, 46, 0.6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.cat-tile.on { background: var(--gold-grad); color: var(--on-gold); border-color: #f2d159; box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.cat-tile.on .cat-ico { background: rgba(20, 16, 6, 0.85); color: var(--gold-hi); border-color: rgba(20, 16, 6, 0.6); }
.cat-tile.vault .cat-ico { background: none; border: 0; }
.cat-tile.vault .cat-ico img { filter: drop-shadow(0 2px 6px rgba(212, 176, 56, 0.45)); }

/* ---------- sections ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin: 1.1rem 0 0.75rem; }
.section-title { font-size: 1.2rem; font-weight: 700; margin: 0; }
.section-title.gold { font-family: var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-tools { display: flex; gap: 0.5rem; align-items: center; }
.sort-select { width: auto; min-width: 0; border-color: var(--gold-lo); color: var(--gold-hi); font-weight: 600; font-size: 0.88rem; background-color: transparent; }
.result-meta { color: var(--muted); font-size: 0.82rem; }
.filters { display: none; grid-template-columns: 1fr; gap: 0.25rem 0.9rem; padding: 0.6rem 1rem 1rem; margin-bottom: 1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--raised); box-shadow: var(--shadow), var(--bevel); }
.filters.open { display: grid; animation: page-in 0.25s var(--ease) both; }
.filter-actions { display: flex; gap: 0.5rem; align-items: end; padding-top: 0.6rem; flex-wrap: wrap; }

.featured { margin: 0.4rem 0 0.4rem; padding: 1rem; border-radius: 20px; border: 1px solid rgba(140, 115, 46, 0.6); background: radial-gradient(130% 120% at 0% 0%, rgba(212, 176, 56, 0.13), rgba(10, 10, 14, 0.9) 55%), #0a0a0e; box-shadow: var(--shadow), inset 0 1px 0 rgba(242, 209, 89, 0.22); }
.featured-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.85rem; }
.featured-head > div { flex: 1; }
.featured-head img { filter: drop-shadow(0 4px 14px rgba(212, 176, 56, 0.45)); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 0.75rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 0.2rem; }
.rail::-webkit-scrollbar { display: none; }
.rail .card { scroll-snap-align: start; }

/* ---------- listing cards ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.card { position: relative; display: flex; flex-direction: column; background: linear-gradient(180deg, #1a1a22, #121218); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), var(--bevel); transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s; }
.card:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--gold-lo); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(212, 176, 56, 0.25); }
.card.is-vault { border-color: rgba(140, 115, 46, 0.75); }
.card .thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0b0b10; }
.photo { position: absolute; inset: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.35s var(--ease), transform 0.28s var(--ease); }
.photo img.loaded { opacity: 1; }
.card:hover .photo img { transform: scale(1.04); }
.scrim { position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(180deg, transparent, rgba(5, 5, 8, 0.85)); pointer-events: none; }
.ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; color: var(--dim); font-size: 0.75rem; font-weight: 600;
    background: radial-gradient(80% 80% at 50% 35%, #1f1f28 0%, #0d0d12 70%), #0d0d12; }
.ph span { display: inline-flex; align-items: center; gap: 0.35rem; }
.ph-emblem { width: 34%; max-width: 96px; opacity: 0.18; filter: grayscale(0.3); }
.price-chip { position: absolute; left: 0.6rem; bottom: 0.6rem; display: inline-flex; align-items: center; padding: 0.3rem 0.65rem; border-radius: 999px; background: var(--gold-grad); color: var(--on-gold); font-weight: 800; font-size: 0.92rem;
    font-variant-numeric: tabular-nums; letter-spacing: 0.01em; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 4px 12px rgba(0, 0, 0, 0.5); }
.price-chip.free { background: linear-gradient(180deg, #46d98e, #2aa863); color: #04140b; }
.price-chip.inline { position: static; font-size: 0.8rem; align-self: flex-start; }
.vault-badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.22rem 0.6rem 0.22rem 0.25rem; border-radius: 999px; background: linear-gradient(180deg, rgba(20, 16, 6, 0.92), rgba(5, 5, 8, 0.92));
    color: var(--gold-hi); border: 1px solid var(--gold); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.02em; box-shadow: 0 0 14px rgba(212, 176, 56, 0.35); white-space: nowrap; }
.vault-badge img { width: 18px; height: 18px; }
.vault-badge.on-photo { position: absolute; top: 0.6rem; left: 0.6rem; z-index: 1; }
.card .body { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.65rem 0.75rem 0.8rem; flex: 1; }
.card .title { font-size: 0.92rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card .meta { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; margin-top: auto; }
.where { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--muted); font-size: 0.75rem; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.where .ico { color: var(--gold-lo); }
.cond-tag, .cat-tag { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.12rem 0.5rem; border-radius: 999px; border: 1px solid var(--line); background: #101016; color: #d9d9e0; font-size: 0.68rem; font-weight: 600; }
.cat-tag .ico { color: var(--gold); }
.status-pill { display: inline-flex; align-items: center; gap: 0.3rem; align-self: flex-start; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; border-radius: 999px; padding: 0.15rem 0.55rem; border: 1px solid var(--line); color: var(--muted); }
.status-pill.active { color: var(--ok); border-color: rgba(51, 191, 115, 0.7); }
.status-pill.sold { color: var(--gold-hi); border-color: var(--gold); }
.status-pill.warn { color: #ff9a8f; border-color: var(--danger); }

/* skeletons */
.shimmer { background: linear-gradient(90deg, #15151b 0%, #22222b 40%, #15151b 80%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.card.skeleton { pointer-events: none; }
.card.skeleton .thumb { aspect-ratio: 4 / 3; }
.sk-line { height: 12px; border-radius: 6px; margin: 0.2rem 0; }
.sk-line.w40 { width: 40%; } .sk-line.w60 { width: 60%; } .sk-line.w90 { width: 90%; }
.loading-block { max-width: 720px; margin: 1rem auto; display: grid; gap: 0.6rem; }
.sk-panel { height: 260px; border-radius: var(--radius); }

/* empty / error */
.empty { text-align: center; color: var(--muted); padding: 2.2rem 1rem; display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.empty h2 { color: var(--text); justify-content: center; font-size: 1.15rem; }
.empty .btn { margin-top: 0.6rem; }
.empty-art { width: 150px; height: 150px; margin-bottom: 0.5rem; filter: drop-shadow(0 10px 30px rgba(212, 176, 56, 0.25)); }
.error-ico { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; color: var(--gold-hi); border: 1px solid var(--gold-lo); background: radial-gradient(circle at 50% 35%, #26262f, #0e0e13); margin-bottom: 0.6rem; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin: 1.25rem 0; }

/* ---------- listing detail ---------- */
.back-link { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--muted); font-weight: 600; font-size: 0.88rem; margin: 0.2rem 0 0.8rem; min-height: 36px; }
.gallery { margin-bottom: 1rem; }
.gallery-main { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #0b0b10; box-shadow: var(--shadow); }
.gallery-thumbs { display: flex; gap: 0.5rem; margin-top: 0.6rem; overflow-x: auto; }
.gthumb { flex: 0 0 72px; height: 56px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: #0b0b10; cursor: pointer; opacity: 0.7; transition: opacity 0.2s, border-color 0.2s; }
.gthumb img { width: 100%; height: 100%; object-fit: cover; }
.gthumb.on { border-color: var(--gold); opacity: 1; }
.detail-head .tag-row { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.detail-title { font-size: 1.45rem; font-weight: 700; }
.detail-price { font-size: 2.1rem; font-weight: 800; font-variant-numeric: tabular-nums; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.6)); line-height: 1.1; margin: 0.1rem 0 0.4rem; }
.detail-price.free { background: linear-gradient(180deg, #5ee3a0, #2aa863); -webkit-background-clip: text; background-clip: text; }
.detail-head .where { font-size: 0.88rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.25rem; font-size: 0.92rem; margin: 0 0 0.6rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.desc { color: #e6e6ec; white-space: pre-wrap; }
.seller-row { display: flex; align-items: center; gap: 0.85rem; color: var(--text); transition: border-color 0.2s; }
.seller-row:hover { text-decoration: none; border-color: var(--gold-lo); }
.seller-row > .ico { color: var(--gold); }
.avatar { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--gold-hi);
    background: radial-gradient(circle at 50% 30%, #2a2a33, #111117); border: 2px solid transparent; background-clip: padding-box; box-shadow: 0 0 0 2px var(--gold), 0 0 16px rgba(212, 176, 56, 0.3); }
.avatar.lg { width: 72px; height: 72px; flex-basis: 72px; font-size: 1.4rem; }

/* ---------- sell ---------- */
.sell-options { display: grid; gap: 0.85rem; }
.sell-option { display: flex; align-items: center; gap: 1rem; padding: 1.1rem; border-radius: 18px; border: 1px solid var(--line); background: var(--raised); color: var(--text); box-shadow: var(--shadow), var(--bevel); transition: transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.2s; }
.sell-option:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--gold-lo); }
.sell-option > .ico { color: var(--gold); }
.so-ico { width: 64px; height: 64px; flex: 0 0 64px; display: grid; place-items: center; border-radius: 16px; color: var(--gold-hi); background: radial-gradient(circle at 50% 30%, #26262f, #0d0d12); border: 1px solid var(--gold-lo); }
.so-text { display: flex; flex-direction: column; gap: 0.2rem; flex: 1; }
.so-text strong { font-size: 1.05rem; }
.sell-option.vault { border-color: rgba(212, 176, 56, 0.7); background: radial-gradient(120% 140% at 0% 0%, rgba(212, 176, 56, 0.16), transparent 60%), var(--raised); box-shadow: var(--shadow), 0 0 26px rgba(212, 176, 56, 0.15); }
.sell-option.vault .so-ico { background: none; border: 0; }
.sell-option.vault strong { color: var(--gold-hi); }
.how-steps { list-style: none; display: grid; gap: 0.6rem; padding: 0; margin: 1.25rem 0 0; }
.how-steps li { display: flex; align-items: center; gap: 0.7rem; color: #e6e6ec; font-weight: 600; }
.step-chip { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; background: var(--gold-grad); color: var(--on-gold); font-weight: 800; font-size: 0.82rem; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.form-step { display: flex; align-items: center; gap: 0.6rem; margin: 1.3rem 0 0.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.form-step:first-of-type { border-top: 0; padding-top: 0.2rem; }
.form-step h2 { margin: 0; }
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; padding: 1.4rem 1rem; margin-top: 0.6rem; border-radius: 16px; border: 1.5px dashed var(--gold-lo); background: rgba(212, 176, 56, 0.04); color: var(--text); text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.dropzone:hover { border-color: var(--gold); background: rgba(212, 176, 56, 0.08); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; }
.dz-ico { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; color: var(--gold-hi); background: #121218; border: 1px solid var(--gold-lo); margin-bottom: 0.25rem; }
.photo-strip { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.6rem; }
.photo-strip img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; border: 1px solid var(--gold-lo); }

/* vault picker */
.vault-banner { display: flex; align-items: center; gap: 1rem; padding: 1.1rem; margin-bottom: 1rem; border-radius: 20px; border: 1px solid rgba(140, 115, 46, 0.7);
    background: radial-gradient(120% 160% at 0% 0%, rgba(212, 176, 56, 0.18), transparent 60%), url("/img/vault/prize-vault-hero-984x420.jpg") right center / auto 100% no-repeat, #08080b; box-shadow: var(--shadow), inset 0 1px 0 rgba(242, 209, 89, 0.25); }
.vault-banner > div { max-width: 60%; }
.vb-emblem { width: 84px; height: 84px; filter: drop-shadow(0 8px 20px rgba(212, 176, 56, 0.45)); }
.vault-banner .lede { margin-bottom: 0; }
.vault-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.vault-item { display: flex; flex-direction: column; padding: 0; text-align: left; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(140, 115, 46, 0.6); background: linear-gradient(180deg, #1a1a22, #121218); color: var(--text); font: inherit; cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), var(--bevel); transition: transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.2s; }
.vault-item:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: var(--glow); }
.vthumb { position: relative; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
.vthumb .photo img { object-fit: contain; padding: 8%; background: #fff; }
.vbody { display: flex; flex-direction: column; gap: 0.45rem; padding: 0.7rem 0.75rem 0.8rem; flex: 1; }
.vbody strong { font-size: 0.92rem; line-height: 1.3; }
.vselect { margin-top: auto; align-self: stretch; }

/* ---------- messages ---------- */
.thread-list { padding: 0.25rem; }
.thread-list a { display: flex; align-items: center; gap: 0.85rem; padding: 0.8rem; border-radius: 12px; color: var(--text); transition: background 0.2s; }
.thread-list a + a { border-top: 1px solid var(--line-soft); }
.thread-list a:hover { background: var(--panel-2); text-decoration: none; }
.thread-list a > .ico { color: var(--dim); }
.thread-list a.unread strong { color: var(--gold-hi); }
.tthumb { position: relative; width: 56px; height: 56px; flex: 0 0 56px; border-radius: 12px; overflow: hidden; background: #0b0b10; border: 1px solid var(--line); }
.tthumb .ph-emblem { width: 60%; }
.tthumb .ph span { display: none; }
.tmain { flex: 1; min-width: 0; }
.trow { display: flex; align-items: center; gap: 0.4rem; }
.tlisting { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: #e6e6ec; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpreview { font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.role-tag { flex: 0 0 auto; padding: 0.05rem 0.45rem; border-radius: 999px; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; border: 1px solid var(--gold-lo); color: var(--gold); }
.role-tag.buyer { border-color: var(--line); color: var(--muted); }
.thread-head .th-listing { display: flex; align-items: center; gap: 0.8rem; color: var(--text); margin-bottom: 0.8rem; }
.thread-head .th-listing:hover { text-decoration: none; }
.thread-head .vault-badge { margin-top: 0.3rem; }
.bubbles { display: flex; flex-direction: column; gap: 0.5rem; margin: 1rem 0; }
.bubble { max-width: 80%; padding: 0.6rem 0.85rem; border-radius: 18px 18px 18px 6px; background: linear-gradient(180deg, #22222b, #1a1a22); border: 1px solid var(--line); white-space: pre-wrap; word-wrap: break-word; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); animation: page-in 0.25s var(--ease) both; }
.bubble.me { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: var(--gold-grad); color: var(--on-gold); border-color: #f2d159; font-weight: 600; }
.bubble time { display: block; font-size: 0.68rem; opacity: 0.7; margin-top: 0.2rem; font-weight: 500; }
.composer { display: flex; gap: 0.5rem; align-items: flex-end; position: sticky; bottom: 4.6rem; padding: 0.6rem; border-radius: 16px; background: rgba(15, 15, 20, 0.92); border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.composer textarea { min-height: 46px; height: 46px; }
.composer .btn { min-height: 46px; }

/* ---------- account ---------- */
.profile-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.profile-head p { margin: 0.1rem 0 0.5rem; }
.menu { padding: 0.3rem; }
.menu-row { display: flex; align-items: center; gap: 0.85rem; padding: 0.8rem 0.75rem; border-radius: 12px; color: var(--text); min-height: 56px; transition: background 0.2s; }
.menu-row + .menu-row { border-top: 1px solid var(--line-soft); }
.menu-row:hover { background: var(--panel-2); text-decoration: none; }
.menu-row .grow { display: flex; flex-direction: column; }
.menu-row .grow .muted { font-size: 0.8rem; }
.menu-row > .ico { color: var(--dim); }
.mr-ico { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 12px; color: var(--gold); background: #121218; border: 1px solid var(--line); }
.menu-row.vault strong { color: var(--gold-hi); }
.menu-row.vault .mr-ico { border-color: var(--gold-lo); }

/* auth */
.auth { max-width: 560px; margin: 0 auto; }
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; margin: 0.6rem 0 1.1rem; }
.auth-brand img:first-child { filter: drop-shadow(0 10px 30px rgba(212, 176, 56, 0.4)); }
.auth-logo { height: 40px; width: auto; }
.auth-brand .brand-name { font-size: 1.1rem; letter-spacing: 0.3em; }

.tips { padding: 0; list-style: none; }
.tips li { display: flex; gap: 0.75rem; margin-bottom: 0.9rem; }
.tips strong { color: var(--gold-hi); }
.tips.plain li { padding-left: 0.8rem; border-left: 2px solid var(--gold-lo); }

.toast { position: fixed; left: 50%; bottom: 5.5rem; transform: translateX(-50%) translateY(20px); display: inline-flex; align-items: center; gap: 0.5rem; background: linear-gradient(180deg, #22222b, #15151b); color: var(--text); border: 1px solid var(--gold);
    padding: 0.7rem 1.1rem; border-radius: 999px; box-shadow: var(--shadow), 0 0 20px rgba(212, 176, 56, 0.2); opacity: 0; pointer-events: none; transition: all 0.25s var(--ease); z-index: 50; max-width: 90vw; font-weight: 600; }
.toast .ico { color: var(--gold); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { border-color: var(--danger); }
.toast.err .ico { color: var(--danger); }

.table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: 0.5rem; text-align: left; vertical-align: top; }
.table th { color: var(--gold); font-weight: 700; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.08em; }

@media (min-width: 720px) {
    .grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .rail { grid-auto-columns: calc((100% - 2.25rem) / 4); }
    .vault-grid { grid-template-columns: repeat(3, 1fr); }
    .filters { grid-template-columns: repeat(3, 1fr) auto; align-items: end; }
    .detail { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.5rem; align-items: start; }
    .gallery { position: sticky; top: 84px; }
    .hero { min-height: 340px; display: flex; align-items: center; }
    .hero-art { width: 70%; opacity: 0.9; }
    .hero-copy { padding: 2.2rem 2rem; }
    .hero-title { font-size: 2.5rem; }
    .sell-options { grid-template-columns: 1fr 1fr; }
    .how-steps { grid-template-columns: repeat(3, 1fr); }
    .display { font-size: 2.1rem; }
    .cat-rail { margin: 0; padding-left: 0.1rem; padding-right: 0.1rem; }
}
@media (min-width: 1000px) {
    .grid { grid-template-columns: repeat(4, 1fr); }
    .vault-grid { grid-template-columns: repeat(4, 1fr); }
    .topnav { display: flex; }
    .tabbar { display: none; }
    .view { padding-bottom: 2rem; }
    .footer-inner { padding-bottom: 1.5rem; }
    .composer { bottom: 0.75rem; }
    .toast { bottom: 2rem; }
    .brand-logo { height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---- v2 review pass ---- */
.price-chip { white-space: nowrap; }
.cat-rail { scroll-padding-left: 1rem; }
.vault-banner { position: relative; overflow: hidden; background: #08080b; }
.vault-banner::before { content: ""; position: absolute; inset: 0; background: url("/img/vault/prize-vault-hero-984x420.jpg") right center / cover no-repeat; opacity: 0.5;
    -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 80%); mask-image: linear-gradient(90deg, transparent 20%, #000 80%); }
.vault-banner::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 160% at 0% 0%, rgba(212, 176, 56, 0.18), transparent 60%); pointer-events: none; }
.vault-banner > * { position: relative; z-index: 1; }
.vault-banner > div { max-width: 62%; }
@media (max-width: 719px) {
    .brand-tagline { display: none; }
    .brand { gap: 0.55rem; }
    .brand-logo { height: 22px; }
    .brand-divider { height: 22px; }
    .brand-name { font-size: 0.86rem; letter-spacing: 0.1em; }
    .staging-pill { font-size: 0.6rem; padding: 0.15rem 0.5rem; letter-spacing: 0.1em; }
    .vault-banner { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
    .vault-banner > div { max-width: none; }
    .vault-banner::before { opacity: 0.28; }
    .vb-emblem { width: 64px; height: 64px; }
    .hero-art { opacity: 0.42; }
}
/* Prize Vault catalog photos are product shots on white: show the whole product. */
.card.is-vault .thumb, .gallery-main.product { background: #fff; }
.card.is-vault .photo img, .gallery-main.product .photo img { object-fit: contain; padding: 7% 7% 12%; }
.card.is-vault .scrim { height: 40%; background: linear-gradient(180deg, transparent, rgba(5, 5, 8, 0.55)); }
.topnav a { white-space: nowrap; }
