:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f0f2f8;
  --text: #151826;
  --muted: #646b80;
  --border: #e3e6ef;
  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --brand-soft: #eef0ff;
  --auction: #d97706;
  --auction-soft: #fff4e0;
  --love: #e11d74;
  --love-soft: #ffe8f2;
  --ok: #059669;
  --ok-soft: #e3f8ef;
  --danger: #dc2626;
  --ai: #0e7490;
  --ai-soft: #e0f6fb;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(20, 24, 40, .05), 0 6px 20px rgba(20, 24, 40, .06);
  --shadow-lg: 0 10px 40px rgba(20, 24, 40, .14);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0f17; --surface: #151824; --surface-2: #1c2030; --text: #eef0f7; --muted: #9aa1b7; --border: #262b3d;
    --brand: #8b85ff; --brand-2: #a78bfa; --brand-soft: #23244a; --auction: #fbbf24; --auction-soft: #3a2a0c;
    --love: #f472b6; --love-soft: #3b1529; --ok: #34d399; --ok-soft: #0f2e24; --ai: #22d3ee; --ai-soft: #0b2a33;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0f17; --surface: #151824; --surface-2: #1c2030; --text: #eef0f7; --muted: #9aa1b7; --border: #262b3d;
  --brand: #8b85ff; --brand-2: #a78bfa; --brand-soft: #23244a; --auction: #fbbf24; --auction-soft: #3a2a0c;
  --love: #f472b6; --love-soft: #3b1529; --ok: #34d399; --ok-soft: #0f2e24; --ai: #22d3ee; --ai-soft: #0b2a33;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25); color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.55; font-size: 15.5px; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 700; }
h3 { font-size: 1.02rem; font-weight: 650; }
p { margin: 0 0 .9em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header */
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--border); }
.topbar .wrap { display: flex; align-items: center; gap: 14px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--text); white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 1rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 4px 14px color-mix(in srgb, var(--brand) 40%, transparent); }
.logo small { display: block; font-weight: 600; font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
.search { flex: 1; position: relative; max-width: 560px; }
.search input[type=search] { width: 100%; height: 42px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2);
  padding: 0 16px 0 42px; font: inherit; color: var(--text); transition: border-color .15s, box-shadow .15s, background .15s; }
.search input[type=search]:focus { outline: none; border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px var(--brand-soft); }
.search .icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.suggest { position: absolute; top: 48px; left: 0; right: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; display: none; }
.suggest.open { display: block; }
.suggest a { display: flex; gap: 12px; align-items: center; padding: 9px 12px; color: var(--text); }
.suggest a:hover, .suggest a.active { background: var(--surface-2); text-decoration: none; }
.suggest img, .suggest .ph { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; background: var(--surface-2); flex: none; }
.suggest .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .nav button.link { padding: 8px 11px; border-radius: 10px; color: var(--text); font-weight: 550; font-size: .93rem; position: relative; }
.nav a:hover, .nav button.link:hover { background: var(--surface-2); text-decoration: none; }
.badge-dot { position: absolute; top: 2px; right: 0; background: var(--love); color: #fff; font-size: .68rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 5px; }
.subbar { border-bottom: 1px solid var(--border); background: var(--surface); }
.subbar .wrap { display: flex; gap: 8px; align-items: center; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; scrollbar-width: none; }
.subbar .wrap::-webkit-scrollbar { display: none; }
.municipal { font-size: .82rem; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 6px; margin-right: 6px; }
.municipal b { color: var(--text); font-weight: 650; }
.menu-btn { display: none; }

/* Buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer;
  transition: transform .06s, background .15s, box-shadow .15s, border-color .15s; white-space: nowrap; }
.btn:hover { text-decoration: none; border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border: 0;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--brand) 35%, transparent); }
.btn.primary:hover { box-shadow: 0 6px 20px color-mix(in srgb, var(--brand) 45%, transparent); }
.btn.auction { background: var(--auction); color: #fff; border: 0; }
.btn.love { background: var(--love); color: #fff; border: 0; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); }
.btn.sm { height: 32px; padding: 0 11px; font-size: .85rem; border-radius: 8px; }
.btn.lg { height: 48px; padding: 0 22px; font-size: 1rem; }
.btn.block { width: 100%; }
button.link { background: none; border: 0; font: inherit; cursor: pointer; color: var(--brand); padding: 0; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.hint { font-size: .8rem; color: var(--muted); font-weight: 400; margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: var(--radius-sm);
  padding: 10px 12px; font: inherit; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
textarea { min-height: 140px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.segmented { display: inline-flex; background: var(--surface-2); border-radius: 12px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.segmented label { margin: 0; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: block; padding: 8px 14px; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--muted); }
.segmented input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.segmented input:focus-visible + span { outline: 2px solid var(--brand); }

/* Surfaces */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 20px; }
.pad-lg { padding: 28px; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--text); margin: 16px 0; border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); }
.alert.error { background: #fee2e2; border-color: #fecaca; color: #7f1d1d; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--surface-2);
  color: var(--text); font-size: .84rem; font-weight: 550; white-space: nowrap; border: 1px solid transparent; }
.pill:hover { text-decoration: none; border-color: var(--border); }
.pill.active { background: var(--brand); color: #fff; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.tag.auction { background: var(--auction-soft); color: var(--auction); }
.tag.love { background: var(--love-soft); color: var(--love); }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.ai { background: var(--ai-soft); color: var(--ai); text-transform: none; letter-spacing: 0; }
.tag.free { background: var(--ok-soft); color: var(--ok); }

/* Hero */
.hero { position: relative; overflow: hidden; border-radius: 22px; padding: 36px; margin: 22px 0; color: #fff;
  background: radial-gradient(1200px 400px at 0% 0%, #6d5dfc 0%, transparent 60%), radial-gradient(800px 400px at 100% 100%, #ec4899 0%, transparent 55%), linear-gradient(135deg, #312e81, #4c1d95); }
.hero h1 { color: #fff; margin-bottom: 6px; }
.hero p { color: rgba(255,255,255,.85); margin: 0; }
.hero .quick { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero .quick a { background: rgba(255,255,255,.14); color: #fff; padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: .9rem;
  border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(6px); transition: background .15s; }
.hero .quick a:hover { background: rgba(255,255,255,.24); text-decoration: none; }
.hero .muni { display: inline-flex; gap: 8px; align-items: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; margin-bottom: 12px; }

/* Sections */
.section-title { display: flex; align-items: baseline; gap: 12px; margin: 34px 0 14px; }
.section-title h2 { margin: 0; }
.section-title a { font-size: .9rem; font-weight: 600; }
.dir { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.dir .card { padding: 18px; }
.dir h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.dir h3 a { color: var(--text); }
.dir h3 .ico { font-size: 1.2rem; }
.dir ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 12px; }
.dir li { font-size: .88rem; padding: 2px 0; break-inside: avoid; }
.dir li a { color: var(--muted); }
.dir li a:hover { color: var(--brand); }
.dir li .n { color: var(--muted); opacity: .6; font-size: .75rem; margin-left: 3px; }
.dir .card.love { border-color: color-mix(in srgb, var(--love) 30%, var(--border)); }

/* Listing cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.lcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; color: var(--text); transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.lcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; border-color: transparent; }
.lcard .img { aspect-ratio: 4 / 3; background: var(--surface-2); position: relative; overflow: hidden; }
.lcard .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.lcard:hover .img img { transform: scale(1.04); }
.lcard .img .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.2rem; opacity: .55;
  background: linear-gradient(135deg, var(--surface-2), var(--brand-soft)); }
.lcard .img .tags { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; }
.lcard .img .tags .tag { backdrop-filter: blur(6px); }
.lcard .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.lcard .price { font-weight: 800; font-size: 1.08rem; }
.lcard .title { font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lcard .meta { font-size: .78rem; color: var(--muted); margin-top: auto; display: flex; gap: 6px; justify-content: space-between; }
.countdown { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--auction); }
.countdown.urgent { color: var(--danger); }

/* List view */
.lrows { display: flex; flex-direction: column; gap: 8px; }
.lrow { display: flex; gap: 14px; align-items: center; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; color: var(--text); }
.lrow:hover { border-color: var(--brand); text-decoration: none; }
.lrow img, .lrow .ph { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; background: var(--surface-2); flex: none; display: grid; place-items: center; font-size: 1.4rem; }
.lrow .t { flex: 1; min-width: 0; }
.lrow .t b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Browse layout */
.browse { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; margin-top: 22px; }
.filters { position: sticky; top: 84px; align-self: start; }
.filters .card { padding: 18px; }
.filters h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 8px; }
.filters h3:first-child { margin-top: 0; }
.filters .cats a { display: block; padding: 5px 8px; border-radius: 8px; color: var(--text); font-size: .9rem; }
.filters .cats a:hover { background: var(--surface-2); text-decoration: none; }
.filters .cats a.on { background: var(--brand-soft); color: var(--brand); font-weight: 650; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar select { width: auto; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .big { font-size: 2.6rem; margin-bottom: 8px; }

/* Listing page */
.crumbs { font-size: .85rem; color: var(--muted); margin: 20px 0 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.gallery .main { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; background: #000; }
.gallery .main .ph { font-size: 4rem; opacity: .5; }
.gallery .main.empty { aspect-ratio: 16 / 6; background: linear-gradient(135deg, var(--surface-2), var(--brand-soft)); }
.gallery .thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery .thumbs button { border: 2px solid transparent; border-radius: 10px; padding: 0; overflow: hidden; cursor: pointer; flex: none; background: none; }
.gallery .thumbs button.on { border-color: var(--brand); }
.gallery .thumbs img { width: 76px; height: 60px; object-fit: cover; }
.panel { position: sticky; top: 84px; }
.panel .price-big { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.panel .bidbox { background: var(--auction-soft); border-radius: 12px; padding: 14px; margin: 14px 0; }
.panel .bidbox .row { justify-content: space-between; }
.bid-form { display: flex; gap: 8px; margin-top: 10px; }
.bid-form input { flex: 1; }
.attrs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 16px 0; }
.attrs div { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.attrs dt { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.attrs dd { margin: 2px 0 0; font-weight: 650; }
.prose { font-size: 1rem; overflow-wrap: anywhere; }
.seller { display: flex; gap: 12px; align-items: center; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--love)); text-transform: uppercase; }
.avatar.ai { background: linear-gradient(135deg, #06b6d4, #0e7490); }
.avatar.sys { background: var(--muted); }
.flash-bid { animation: flash 1s ease; }
@keyframes flash { 0% { background: color-mix(in srgb, var(--auction) 50%, transparent); } 100% { background: transparent; } }
details.more summary { cursor: pointer; color: var(--muted); font-size: .85rem; }

/* Forum */
.forum { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; margin-top: 22px; }
.thread-row { display: flex; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--border); color: var(--text); align-items: flex-start; }
.thread-row:last-child { border-bottom: 0; }
.thread-row:hover { background: var(--surface-2); text-decoration: none; }
.thread-row .t { flex: 1; min-width: 0; }
.thread-row .t b { display: block; font-size: 1rem; margin-bottom: 2px; }
.thread-row .stats { text-align: right; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.thread-row .stats b { display: block; color: var(--text); font-size: 1.05rem; }
.post { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.post:last-child { border-bottom: 0; }
.post .who { font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.post .content { flex: 1; min-width: 0; }
.meter { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin: 8px 0 4px; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--ai), var(--ok)); border-radius: 99px; transition: width .6s ease; }

/* Messages */
.chat { display: flex; flex-direction: column; gap: 10px; padding: 18px; max-height: 60vh; overflow-y: auto; }
.bubble { max-width: 78%; padding: 10px 14px; border-radius: 16px; background: var(--surface-2); align-self: flex-start; overflow-wrap: anywhere; }
.bubble.me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.bubble.sys { align-self: center; background: var(--auction-soft); font-size: .9rem; max-width: 92%; text-align: center; }
.bubble .time { font-size: .7rem; opacity: .7; margin-top: 2px; }
.conv { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); color: var(--text); align-items: center; }
.conv:hover { background: var(--surface-2); text-decoration: none; }
.conv .t { flex: 1; min-width: 0; }
.conv .t span { display: block; color: var(--muted); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv.unread b { color: var(--brand); }

/* City picker */
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.city-card { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); transition: transform .15s, box-shadow .15s; }
.city-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; }
.city-card b { font-size: 1.1rem; }
.city-card span { font-size: .82rem; color: var(--muted); }
.city-filter { max-width: 420px; margin: 0 0 20px; }

/* Tables (admin) */
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.stat { padding: 16px; }
.stat b { display: block; font-size: 1.6rem; font-weight: 800; }

/* Tabs */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on, .tabs a:hover { color: var(--text); border-color: var(--brand); text-decoration: none; }

/* Footer */
footer.site { margin-top: 60px; border-top: 1px solid var(--border); background: var(--surface); padding: 28px 0; font-size: .88rem; color: var(--muted); }
footer.site .wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
footer.site a { color: var(--muted); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--text); color: var(--bg);
  padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); opacity: 0; transition: all .3s ease; z-index: 100; font-weight: 600; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Gate */
.gate { max-width: 520px; margin: 60px auto; text-align: center; }

/* Reveal animation */
.reveal { animation: rise .45s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Responsive */
@media (max-width: 960px) {
  .detail, .browse, .forum { grid-template-columns: 1fr; }
  .panel, .filters { position: static; }
  .filters details:not([open]) .card { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .topbar .wrap { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .nav { margin-left: auto; }
  .nav .hide-sm { display: none; }
  .hero { padding: 22px; border-radius: 18px; margin: 14px 0; }
  .hero p { font-size: .95rem; }
  .hero .quick { gap: 8px; margin-top: 16px; }
  .hero .quick a { padding: 7px 12px; font-size: .84rem; }
  .gallery .main.empty { aspect-ratio: 16 / 7; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .dir ul { columns: 1; }
  .pad-lg { padding: 20px; }
  .bubble { max-width: 90%; }
}
@media (min-width: 961px) { .filters details > summary { display: none; } }
