/* ============================================================
   VaultFN — minimal dark theme
   Near-black surfaces, hairline borders, one restrained violet accent.
   ============================================================ */

:root {
  --bg:        #0a0a0c;
  --panel:     #101013;
  --panel-2:   #141418;
  --border:    #20212a;
  --border-2:  #2c2d38;
  --text:      #f3f3f5;
  --muted:     #8b8c98;
  --faint:     #5c5d68;
  --accent:    #8b5cf6;
  --accent-weak: rgba(139, 92, 246, 0.12);
  --good:      #4ade80;
  --warn:      #fbbf24;
  --radius:    12px;
  --radius-sm: 8px;
  --maxw:      1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { letter-spacing: -0.02em; font-weight: 700; line-height: 1.15; }

a { color: inherit; text-decoration: none; }

code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: #d6d6db;
  padding: 0.1em 0.4em;
  border-radius: 5px;
  font-size: 0.88em;
}

.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* No ambient glow — keep it flat and quiet. */
.bg-glow { display: none; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(10, 10, 12, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; }
.brand-name { font-size: 1.15rem; letter-spacing: -0.01em; }
.brand-name.small { font-size: 1rem; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { color: var(--muted); font-weight: 500; font-size: 0.92rem; transition: color 0.15s; }
.nav a:not(.btn):hover { color: var(--text); }

/* Nav dropdowns (More / account) */
.nav-dd { position: relative; }
.nav-dd-btn {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-family: inherit; font-weight: 500; font-size: 0.92rem; padding: 0;
}
.nav-dd-btn:hover { color: var(--text); }
.nav-caret { opacity: 0.7; transition: transform 0.15s; }
.nav-dd.open .nav-caret { transform: rotate(180deg); }
.nav-dd-menu {
  position: absolute; top: 100%; left: 0; margin-top: 0.5rem; min-width: 168px;
  display: none; flex-direction: column; gap: 0.1rem; z-index: 200;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.35rem; box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.75);
}
.nav-dd-menu.nav-dd-right { left: auto; right: 0; }
.nav-dd.open .nav-dd-menu { display: flex; }
.nav-dd-menu a { color: var(--muted); font-size: 0.9rem; padding: 0.5rem 0.7rem; border-radius: 6px; white-space: nowrap; }
.nav-dd-menu a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-avatar-btn { gap: 0.45rem; }
.nav-avatar { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border-2); }
.nav-avatar-name { color: var(--text); font-weight: 600; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.05rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.92rem; cursor: pointer;
  border: 1px solid transparent; transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn-lg { padding: 0.8rem 1.4rem; font-size: 1rem; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #9d72f7; }
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { background: #6b78f5; }
.btn-ghost { background: transparent; border-color: var(--border-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--faint); background: rgba(255, 255, 255, 0.03); }

/* ── Layout ─────────────────────────────────────────────── */
.site-main { min-height: 70vh; }
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 8vw, 5.5rem) clamp(1rem, 4vw, 2rem); }
.section-alt { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.1rem); text-align: center; margin: 0 0 0.5rem; }
.section-sub { text-align: center; color: var(--muted); max-width: 600px; margin: 0 auto 2.6rem; }
.section-title.left, .section-sub.left { text-align: left; margin-left: 0; margin-right: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2rem) clamp(2.5rem, 5vw, 4rem);
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center;
}
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem;
}
.hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); font-weight: 800; margin: 0 0 1.1rem; }
.lead { font-size: clamp(1rem, 2vw, 1.12rem); color: var(--muted); max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.8rem 0 1.1rem; }
.reassure { font-size: 0.88rem; color: var(--faint); }

.hero-art { display: flex; justify-content: center; }
.hero-logo { width: 100%; max-width: 300px; display: block; }

/* ── Features ───────────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.feature {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; transition: border-color 0.15s;
}
.feature:hover { border-color: var(--border-2); }
.feature-icon { color: var(--accent); margin-bottom: 0.9rem; display: block; }
.feature-icon svg { display: block; }
.feature h3 { margin: 0 0 0.4rem; font-size: 1.08rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* ── Steps ──────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 2.4rem; }
.step { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.step-num {
  width: 32px; height: 32px; border-radius: var(--radius-sm); display: grid; place-items: center;
  font-weight: 700; font-size: 0.9rem; margin-bottom: 0.9rem;
  background: var(--accent-weak); color: var(--accent); border: 1px solid rgba(139, 92, 246, 0.3);
}
.step h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.how-cta { text-align: center; }

/* ── Dashboard ──────────────────────────────────────────── */
.dash { max-width: 900px; margin: 0 auto; padding: clamp(2rem, 6vw, 3.5rem) clamp(1rem, 4vw, 2rem); }
.dash-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.8rem; }
.dash-avatar { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--border-2); }
.dash-head h1 { margin: 0; font-size: 1.5rem; }

.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.status-card { display: flex; gap: 1.1rem; align-items: flex-start; }
.status-card h2 { margin: 0 0 0.4rem; font-size: 1.25rem; }
.status-card p { margin: 0 0 0.6rem; }
.status-emoji { flex: none; margin-top: 0.15rem; }
.status-linked   { border-color: rgba(74, 222, 128, 0.35); }
.status-unlinked { border-color: rgba(139, 92, 246, 0.35); }
.status-unknown  { border-color: rgba(251, 191, 36, 0.35); }
.status-icon { width: 26px; height: 26px; }
.status-linked .status-icon  { color: var(--good); }
.status-unlinked .status-icon { color: var(--accent); }
.status-unknown .status-icon { color: var(--warn); }
.status-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.4rem; }

.pill {
  display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-weak); border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 0.2rem 0.5rem; border-radius: 999px; margin-right: 0.5rem;
}

.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.card.mini { padding: 1.3rem; }
.card.mini h3 { margin: 0 0 0.8rem; font-size: 1.02rem; }
.cmd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.cmd-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 0.9rem; }
.cmd-list span { color: var(--muted); }
.steps-mini { margin: 0; padding-left: 1.2rem; color: var(--muted); display: grid; gap: 0.4rem; }
.steps-mini li { font-size: 0.92rem; }
.how-mini { margin-top: 1rem; }

/* ── Flash messages ─────────────────────────────────────── */
.flash-stack { max-width: var(--maxw); margin: 1rem auto 0; padding: 0 clamp(1rem, 4vw, 2rem); display: grid; gap: 0.6rem; }
.flash { padding: 0.75rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: 0.92rem; background: var(--panel); }
.flash-error   { border-color: rgba(248, 113, 113, 0.4); }
.flash-success { border-color: rgba(74, 222, 128, 0.4); }

/* ── Error page ─────────────────────────────────────────── */
.error-page { text-align: center; padding: clamp(4rem, 12vw, 8rem) 1rem; }
.error-code { font-weight: 800; font-size: clamp(3.5rem, 14vw, 7rem); line-height: 1; color: var(--accent); }
.error-page h1 { margin: 0.5rem 0 1.6rem; font-size: 1.3rem; font-weight: 600; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); margin-top: 3rem; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 2rem); }
.footer-inner .muted { font-size: 0.84rem; max-width: 640px; margin: 0.6rem 0 0; }
.site-footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.site-footer a:hover { color: var(--text); }

/* ── Generic page (shop / news) ─────────────────────────── */
.page { max-width: var(--maxw); margin: 0 auto; padding: clamp(1.8rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem); }
.page-head { margin-bottom: 1.6rem; }
.page-head h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.page-head .muted { margin: 0.3rem 0 0; }

/* ── Logo ───────────────────────────────────────────────── */
.brand-logo { height: 34px; width: 34px; object-fit: contain; }

/* ── Item shop grid ─────────────────────────────────────── */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.9rem; }
.shop-card {
  --t-rgb: 139, 92, 246;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--panel);
  display: flex; flex-direction: column; transition: border-color 0.15s;
}
.shop-card:hover { border-color: rgba(var(--t-rgb), 0.7); }
.shop-thumb { position: relative; aspect-ratio: 1; display: grid; place-items: center; background: #0d0d10; border-bottom: 2px solid rgba(var(--t-rgb), 0.85); }
.shop-thumb img { width: 100%; height: 100%; object-fit: contain; }
.shop-badge {
  position: absolute; top: 0.5rem; left: 0.5rem; font-size: 0.62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.03em; padding: 0.15rem 0.4rem; border-radius: 5px;
  background: rgba(0, 0, 0, 0.7); color: #fff;
}
.shop-badge.sale { left: auto; right: 0.5rem; background: var(--good); color: #06281d; }
.shop-info { padding: 0.6rem 0.7rem 0.75rem; }
.shop-name { font-size: 0.88rem; font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-price { display: flex; align-items: center; gap: 0.35rem; margin-top: 0.35rem; font-size: 0.88rem; font-weight: 600; color: var(--text); }
.vb { flex: none; vertical-align: middle; object-fit: contain; }
.shop-price .vb { flex: none; }
.shop-was { color: var(--faint); text-decoration: line-through; font-weight: 400; font-size: 0.8rem; }
.shop-free { color: var(--good); font-weight: 700; }

/* ── News ───────────────────────────────────────────────── */
.news-list { display: grid; gap: 1rem; }
.news-card {
  display: flex; gap: 1.2rem; align-items: stretch;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.news-img { flex: none; width: 240px; max-width: 38%; }
.news-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-body { padding: 1.2rem 1.3rem; }
.news-body h2 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.news-body p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* ── Locker ─────────────────────────────────────────────── */
.locker-page { max-width: var(--maxw); margin: 0 auto; padding: clamp(1.5rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem); }
.locker-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.locker-head h1 { margin: 0; font-size: clamp(1.5rem, 4vw, 2rem); }
.locker-head .muted { margin: 0.2rem 0 0; }

.locker-controls { display: flex; gap: 0.7rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.2rem; }
.lk-input {
  background: var(--panel); border: 1px solid var(--border-2); color: var(--text);
  border-radius: var(--radius-sm); padding: 0.55rem 0.9rem; font-size: 0.92rem; font-family: inherit;
}
.lk-input:focus { outline: none; border-color: var(--accent); }
.lk-input[type="search"] { flex: 1; min-width: 200px; }
.lk-select { cursor: pointer; }
.lk-resultcount { color: var(--muted); font-size: 0.88rem; margin-left: auto; white-space: nowrap; }

.lk-tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1.4rem; border-bottom: 1px solid var(--border); padding-bottom: 0.6rem; }
.lk-tab {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: transparent; border: 1px solid transparent; color: var(--muted);
  border-radius: var(--radius-sm); padding: 0.4rem 0.8rem; font-size: 0.88rem; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: color 0.15s, background 0.15s;
}
.lk-tab:hover { color: var(--text); }
.lk-tab.active { background: var(--accent-weak); color: var(--accent); }
.lk-tabcount { font-size: 0.72rem; opacity: 0.7; }

.lk-section { display: none; }
.lk-section.active { display: block; }
.lk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 0.75rem; }

.lk-card {
  --t-rgb: 139, 92, 246;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--panel);
  transition: border-color 0.15s; display: flex; flex-direction: column;
}
.lk-card:hover { border-color: rgba(var(--t-rgb), 0.7); }
.lk-thumb { aspect-ratio: 1; display: grid; place-items: center; background: #0d0d10; border-bottom: 2px solid rgba(var(--t-rgb), 0.85); }
.lk-thumb img { width: 100%; height: 100%; object-fit: contain; }
.lk-noimg { font-size: 1.6rem; color: var(--faint); }
.lk-info { padding: 0.5rem 0.55rem 0.6rem; }
.lk-name { font-size: 0.8rem; font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-tier { font-size: 0.68rem; color: var(--muted); margin-top: 0.15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Rarity / series tier colors (used as a thin accent on item cards) */
.tier-common              { --t-rgb: 150, 150, 160; }
.tier-uncommon            { --t-rgb: 60, 190, 60; }
.tier-rare                { --t-rgb: 0, 128, 235; }
.tier-epic                { --t-rgb: 160, 70, 220; }
.tier-legendary           { --t-rgb: 230, 140, 20; }
.tier-mythic              { --t-rgb: 230, 195, 30; }
.tier-icon-series         { --t-rgb: 0, 200, 200; }
.tier-marvel-series       { --t-rgb: 210, 50, 50; }
.tier-dc-series           { --t-rgb: 70, 90, 210; }
.tier-star-wars-series    { --t-rgb: 200, 190, 50; }
.tier-cube-series         { --t-rgb: 140, 70, 190; }
.tier-frozen-series       { --t-rgb: 150, 205, 255; }
.tier-lava-series         { --t-rgb: 230, 80, 30; }
.tier-shadow-series       { --t-rgb: 120, 120, 135; }
.tier-slurp-series        { --t-rgb: 0, 200, 165; }
.tier-gaming-legends-series { --t-rgb: 0, 180, 115; }
.tier-collab-series       { --t-rgb: 210, 120, 70; }

/* ── Mobile nav toggle ──────────────────────────────────── */
.menu-toggle {
  display: none; background: transparent; border: 1px solid var(--border-2);
  color: var(--text); border-radius: var(--radius-sm); padding: 0.35rem; cursor: pointer;
}

/* ── Footer links ───────────────────────────────────────── */
.footer-links { display: flex; gap: 1.3rem; margin-bottom: 1rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 0.9rem; text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* ── Shop sections + countdown ──────────────────────────── */
.shop-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.countdown {
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.1rem;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 0.6rem 0.9rem; background: var(--panel);
}
.countdown-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); }
.countdown-time { font-size: 1.1rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
.shop-section { margin-top: 2rem; }
.shop-section:first-of-type { margin-top: 0.5rem; }
.shop-section-title { font-size: 1.15rem; margin: 0 0 1rem; display: flex; align-items: center; gap: 0.5rem; }
.shop-section-count { font-size: 0.78rem; font-weight: 500; color: var(--faint); border: 1px solid var(--border); border-radius: 999px; padding: 0.05rem 0.5rem; }

/* ── Cosmetics browser ──────────────────────────────────── */
.cos-filters { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.cos-filters .lk-input[type="search"] { flex: 1; min-width: 220px; }
.cos-count, .cos-hint { margin: 1.2rem 0; }
.cos-hint { padding: 2rem 0; text-align: center; }

/* ── Item detail ────────────────────────────────────────── */
.back-link { display: inline-block; color: var(--muted); font-size: 0.9rem; margin-bottom: 1.2rem; }
.back-link:hover { color: var(--text); }
.item-detail { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.item-art {
  --t-rgb: 139, 92, 246;
  aspect-ratio: 1; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); border-bottom: 3px solid rgba(var(--t-rgb), 0.9);
  background: #0d0d10; display: grid; place-items: center;
}
.item-art img { width: 100%; height: 100%; object-fit: contain; }
.item-tier {
  --t-rgb: 139, 92, 246;
  display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: rgb(var(--t-rgb)); border: 1px solid rgba(var(--t-rgb), 0.5); background: rgba(var(--t-rgb), 0.1);
  padding: 0.2rem 0.6rem; border-radius: 999px; margin-bottom: 0.8rem;
}
.item-info h1 { margin: 0 0 0.6rem; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.item-price { display: flex; align-items: center; gap: 0.7rem; margin: 0 0 1.2rem; }
.item-price-tag { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 1.25rem; font-weight: 700; }
.item-price-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--good); border: 1px solid rgba(74,222,128,0.4); border-radius: 999px; padding: 0.15rem 0.55rem; }
.item-desc { color: var(--muted); max-width: 60ch; margin: 0 0 1.5rem; }

/* Item styles row */
.item-styles { margin-top: 2.2rem; }
.style-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.style-chip {
  --t-rgb: 139, 92, 246;
  width: 76px; height: 76px; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--border); border-bottom: 2px solid rgba(var(--t-rgb), 0.85);
  background: #0d0d10; display: grid; place-items: center;
}
.style-chip img { width: 100%; height: 100%; object-fit: contain; }
.item-meta { display: grid; gap: 0; margin: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.item-meta > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
.item-meta > div:last-child { border-bottom: none; }
.item-meta dt { color: var(--muted); margin: 0; font-size: 0.9rem; }
.item-meta dd { margin: 0; font-weight: 600; font-size: 0.9rem; text-align: right; }

/* ── Offer / bundle detail ──────────────────────────────── */
.offer-head { display: grid; grid-template-columns: minmax(0, 280px) 1fr; gap: clamp(1.2rem, 4vw, 2.5rem); align-items: center; margin-bottom: 0.5rem; }
.offer-art {
  --t-rgb: 139, 92, 246;
  aspect-ratio: 1; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); border-bottom: 3px solid rgba(var(--t-rgb), 0.9);
  background: #0d0d10; display: grid; place-items: center;
}
.offer-art img { width: 100%; height: 100%; object-fit: contain; }
.offer-meta h1 { margin: 0 0 0.7rem; font-size: clamp(1.5rem, 4vw, 2.2rem); }
.offer-price { display: flex; align-items: center; gap: 0.5rem; font-size: 1.3rem; font-weight: 700; }
.offer-price .shop-was { font-size: 1rem; }

/* ── Ownership / wishlist badges ────────────────────────── */
.shop-badge.owned { left: auto; right: 0.5rem; background: var(--good); color: #06281d; }
.shop-card.is-owned, .lk-card.is-owned { opacity: 0.62; }
.shop-card.is-owned:hover, .lk-card.is-owned:hover { opacity: 1; }
.wish-heart {
  position: absolute; bottom: 0.4rem; right: 0.5rem; color: #ff5c8a; font-size: 1rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}
.wishlist-pinned .shop-section-title { color: var(--accent); }

/* ── Item: tags, wishlist button, links, video ──────────── */
.item-tags { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.2rem; }
.owned-pill {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--good); border: 1px solid rgba(74, 222, 128, 0.4); background: rgba(74, 222, 128, 0.1);
  padding: 0.2rem 0.55rem; border-radius: 999px;
}
.wish-form { margin: 0 0 1.2rem; }
.meta-link { color: var(--accent); text-decoration: none; }
.meta-link:hover { text-decoration: underline; }
.item-video { margin-top: 2.2rem; }
.video-frame { position: relative; width: 100%; max-width: 720px; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ── Stat tiles + mode table (stats / value) ────────────── */
.stats-head { display: flex; align-items: center; gap: 0.8rem; margin: 0.5rem 0 1.3rem; }
.stats-head h2 { margin: 0; font-size: 1.5rem; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.9rem; }
.stat-tile { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.stat-num { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; display: flex; align-items: center; gap: 0.4rem; }
.stat-label { color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.3rem; }
.mode-table { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.mode-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 0.5rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.mode-row:last-child { border-bottom: none; }
.mode-row span:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.mode-head { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; background: rgba(255, 255, 255, 0.02); }

/* ── Sprite tracker ─────────────────────────────────────── */
.spr-shared {
  background: var(--accent-weak); border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--radius); padding: 0.7rem 1rem; margin-bottom: 1rem; font-size: 0.92rem;
}
.spr-shared a { color: var(--accent); text-decoration: underline; }

.spr-progress { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.spr-bar { flex: 1; min-width: 220px; }
.spr-bar-top { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.3rem; font-weight: 600; }
.spr-bar-bg { height: 8px; background: var(--panel); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.spr-bar-fill { height: 100%; width: 0; background: var(--accent); transition: width 0.25s; }
.spr-bar-fill.mastery { background: #f5c842; }

.spr-controls { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.spr-controls .lk-input[type="search"] { flex: 1; min-width: 180px; }
.spr-switch { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.88rem; color: var(--muted); cursor: pointer; white-space: nowrap; }
.spr-spacer { flex: 1; }
.spr-hint { margin: 0.8rem 0 0.4rem; font-size: 0.85rem; }
.spr-sync { margin: 0.2rem 0 1.2rem; font-size: 0.85rem; }
.spr-k { color: var(--accent); font-weight: 600; }

.sprite-tracker { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.7rem; }
.sprite-tile {
  --t-rgb: 139, 92, 246;
  position: relative; cursor: pointer; font-family: inherit; color: var(--text); text-align: center;
  padding: 0.7rem 0.5rem 0.6rem; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--border);
  transition: border-color 0.12s, transform 0.1s, opacity 0.12s;
  content-visibility: auto; contain-intrinsic-size: 140px;
}
.sprite-tile:hover { transform: translateY(-2px); }
.st-thumb { height: 76px; display: grid; place-items: center; margin-bottom: 0.4rem; }
.st-thumb img { max-width: 100%; max-height: 76px; object-fit: contain; transition: filter 0.12s; }
.st-name { display: block; font-size: 0.85rem; font-weight: 600; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-sub { display: block; font-size: 0.7rem; color: var(--muted); margin-top: 0.1rem; }
.st-badge {
  position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.72rem; font-weight: 800;
  opacity: 0; transform: scale(0.6); transition: 0.12s;
}
/* Not collected → dim + desaturate */
.sprite-tile:not(.owned):not(.mastered) .st-thumb img { filter: grayscale(0.85) brightness(0.5); }
.sprite-tile:not(.owned):not(.mastered) .st-name { color: var(--muted); }
/* Collected */
.sprite-tile.owned { border-color: rgba(var(--t-rgb), 0.85); }
.sprite-tile.owned .st-badge { opacity: 1; transform: scale(1); background: var(--accent); }
.sprite-tile.owned .st-badge::after { content: '✓'; color: #fff; }
/* Mastered */
.sprite-tile.mastered { border-color: #f5c842; box-shadow: 0 0 0 1px #f5c84266, 0 8px 22px -12px #f5c84288; }
.sprite-tile.mastered .st-badge { opacity: 1; transform: scale(1); background: #f5c842; }
.sprite-tile.mastered .st-badge::after { content: '★'; color: #3a2d00; }

.spr-credit { margin-top: 2rem; font-size: 0.82rem; }
.spr-credit a { color: var(--muted); text-decoration: underline; }
.spr-credit a:hover { color: var(--text); }

@media (max-width: 560px) { .sprite-tracker { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); } }

/* ── Showcase builder ───────────────────────────────────── */
.builder-bar {
  position: sticky; top: 60px; z-index: 20;
  display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.7rem 0.8rem; margin-bottom: 0.8rem;
}
.builder-bar .lk-input[type="text"] { flex: 1; min-width: 200px; }
.builder-count { font-size: 0.9rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.builder-msg { min-height: 1.2em; margin: 0 0 1rem; font-size: 0.9rem; color: var(--accent); }

.sel-tile {
  --t-rgb: 139, 92, 246;
  position: relative; padding: 0; cursor: pointer; font-family: inherit;
  aspect-ratio: 1; border-radius: 10px; overflow: hidden; display: grid; place-items: center;
  background: #0d0d10; border: 1px solid var(--border); border-bottom: 2px solid rgba(var(--t-rgb), 0.85);
  transition: transform 0.1s;
  content-visibility: auto; contain-intrinsic-size: 128px;
}
.sel-tile img { width: 100%; height: 100%; object-fit: contain; }
.sel-tile:hover { transform: translateY(-2px); }
.sel-tile .sel-check {
  position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 800; color: #fff;
  background: var(--accent); opacity: 0; transform: scale(0.6); transition: 0.12s;
}
.sel-tile.selected { outline: 2px solid var(--accent); outline-offset: -2px; }
.sel-tile.selected .sel-check { opacity: 1; transform: scale(1); }

/* ── Public showcase ────────────────────────────────────── */
.showcase-img { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #0d0d10; }
.showcase-img img { display: block; width: 100%; height: auto; }
.showcase-cta { margin-top: 1.4rem; text-align: center; }

/* ── Map page ───────────────────────────────────────────── */
.map-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #0d0d10; }
.map-image { display: block; width: 100%; height: auto; }
.poi-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.poi {
  font-size: 0.88rem; color: var(--text); background: var(--panel);
  border: 1px solid var(--border); border-radius: 999px; padding: 0.3rem 0.8rem;
}

/* ── Wishlist page ──────────────────────────────────────── */
.wish-item { display: flex; flex-direction: column; gap: 0.4rem; }
.lk-card.in-shop { border-bottom-color: var(--good); }
.wish-remove {
  background: transparent; border: 1px solid var(--border-2); color: var(--muted);
  border-radius: var(--radius-sm); padding: 0.35rem; font-size: 0.8rem; font-family: inherit; cursor: pointer;
}
.wish-remove:hover { color: #ff7a9c; border-color: rgba(255, 92, 138, 0.5); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .offer-head { grid-template-columns: 1fr; }
  .offer-art { max-width: 240px; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-logo { max-width: 200px; }
  .dash-grid { grid-template-columns: 1fr; }
  .item-detail { grid-template-columns: 1fr; }
  .item-art { max-width: 320px; }

  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0.25rem; padding: 0.6rem clamp(1rem, 4vw, 2.5rem) 1rem;
    background: var(--bg); border-bottom: 1px solid var(--border); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.6rem 0.2rem; }
  .nav .btn { justify-content: center; margin-top: 0.3rem; }

  /* Flatten dropdowns into the stacked mobile menu */
  .nav-dd { display: contents; }
  .nav-dd-btn { display: none; }
  .nav-dd-menu {
    position: static; display: flex; margin: 0; padding: 0; min-width: 0;
    background: none; border: none; box-shadow: none;
  }
  .nav-dd-menu a { padding: 0.6rem 0.2rem; }
  .nav-account { border-top: 1px solid var(--border); margin-top: 0.3rem; padding-top: 0.3rem; }
}
@media (max-width: 560px) {
  .lk-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  .shop-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
  .news-card { flex-direction: column; }
  .news-img { width: 100%; max-width: none; height: 180px; }
}
