:root {
  --bg: #0a0a0c;
  --panel: #111114;
  --panel-2: #16161b;
  --panel-3: #1d1d23;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --line-3: rgba(255, 255, 255, 0.2);
  --text: #f4f4f6;
  --muted: #9a9aa6;
  --dim: #63636f;
  --accent: #e8b44a;
  --accent-2: #d49a2e;
  --accent-soft: rgba(232, 180, 74, 0.1);
  --green: #55c17d;
  --red: #e06b6b;
  --sidebar-w: 248px;
  --radius: 12px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--text);
  font: 400 15px/1.55 Sora, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
input { font: inherit; }
::selection { background: rgba(232, 180, 74, .3); }

.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .tiny { font-size: 12px; } .mono { font-family: var(--mono); }

.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-grid {
  position: absolute; inset: -2px;
  background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.4px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 70% 60% at 85% 0%, #000 5%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 85% 0%, #000 5%, transparent 60%);
  opacity: .5;
}

/* ---------- layout ---------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-w); z-index: 60;
  display: flex; flex-direction: column; padding: 22px 16px;
  background: #0c0c0f; border-right: 1px solid var(--line);
}
.side-brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 0; font-size: 18px; line-height: 1.05; }
.side-brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-2); }
.side-brand span { font-weight: 400; color: var(--muted); font-size: 13px; letter-spacing: .5px; text-transform: uppercase; }
.side-brand b { color: var(--text); font-weight: 800; font-size: 19px; letter-spacing: -.3px; text-transform: none; }

.side-nav { display: flex; flex-direction: column; gap: 3px; margin-top: 28px; }
.side-nav a {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: 14.5px;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.side-nav a .i { width: 18px; height: 18px; color: var(--dim); transition: color .18s; }
.side-nav a:hover { color: var(--text); background: var(--panel); }
.side-nav a:hover .i { color: var(--muted); }
.side-nav a[hidden] { display: none; }
.side-nav a.active { color: var(--text); background: var(--panel-2); }
.side-nav a.active .i { color: var(--accent); }
.side-nav a.active::before { content: ""; position: absolute; left: -16px; top: 50%; transform: translateY(-50%); width: 3px; height: 20px; border-radius: 0 3px 3px 0; background: var(--accent); }

.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 9px; padding-top: 18px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.user-chip img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.user-chip .avatar { width: 28px; height: 28px; border-radius: 50%; }
.user-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; flex: 1; min-width: 0; }
.user-name { font-weight: 600; font-size: 14px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rank { font-size: 9.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: 1px 6px; border-radius: 5px; color: var(--muted); background: var(--panel-3); border: 1px solid var(--line); }
.rank-owner { color: var(--accent); background: var(--accent-soft); border-color: rgba(232,180,74,.3); }
.rank-squad { color: #b9a6ff; background: rgba(150,125,255,.1); border-color: rgba(150,125,255,.3); }
.user-out { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; color: var(--muted); flex: none; }
.user-out:hover { background: var(--panel-3); color: var(--text); }
.user-out .i { width: 15px; height: 15px; }
.side-online { display: flex; align-items: center; gap: 8px; padding: 2px 8px 6px; font-size: 13px; color: var(--muted); }
.side-online b { color: var(--green); font-weight: 700; }
.side-online .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

.main { margin-left: var(--sidebar-w); flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mbar { display: none; }
.view { flex: 1; width: 100%; max-width: 960px; margin: 0 auto; padding: 46px 40px 80px; }
.view > * { animation: viewin .4s var(--ease) both; }
@keyframes viewin { from { opacity: 0; transform: translateY(10px); } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); transition: transform .16s var(--ease), background .2s, border-color .2s; }
.btn:hover { background: var(--panel-3); border-color: var(--line-3); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #17130a; }
.btn-primary:hover { background: #f0bf5c; border-color: #f0bf5c; }
.btn-ghost { background: transparent; }
.btn-discord { background: #5865f2; border-color: transparent; color: #fff; }
.btn-discord:hover { background: #4e5ad8; }
.btn-block { width: 100%; }
.btn-lg { padding: 13px 22px; font-size: 15px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; color: var(--muted); border: 1px solid transparent; transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--panel-2); color: var(--text); }

/* ---------- home / hero ---------- */
.lede { max-width: 640px; margin-bottom: 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; letter-spacing: .4px; color: var(--muted); text-transform: uppercase; margin-bottom: 20px; }
.eyebrow .d { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.lede h1 { margin: 0 0 16px; font-size: clamp(34px, 6vw, 56px); font-weight: 800; letter-spacing: -1.2px; line-height: 1.02; }
.lede h1 em { font-style: normal; color: var(--accent); }
.lede p { margin: 0 0 26px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.lede-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.statband { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 48px; background: var(--panel); }
.statband .s { padding: 20px 22px; border-right: 1px solid var(--line); }
.statband .s:last-child { border-right: none; }
.statband .s b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.5px; font-family: var(--mono); }
.statband .s.gold b { color: var(--accent); }
.statband .s span { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }

.block-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 18px; gap: 16px; }
.block-head h2 { font-size: 15px; font-weight: 700; margin: 0; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.block-head .more { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 13.5px; font-weight: 600; transition: gap .2s; }
.block-head .more:hover { gap: 9px; }
.block-head .more .i { width: 15px; height: 15px; }

/* featured */
.featured { display: grid; grid-template-columns: 300px 1fr; gap: 0; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; margin-bottom: 52px; background: var(--panel); transition: border-color .25s; }
.featured:hover { border-color: var(--line-3); }
.featured .f-thumb { position: relative; border-right: 1px solid var(--line); overflow: hidden; min-height: 220px; }
.featured .f-thumb canvas { width: 100%; height: 100%; display: block; }
.featured .f-body { padding: 28px 30px; display: flex; flex-direction: column; }
.f-tagline { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.f-tagline .i { width: 13px; height: 13px; fill: var(--accent); stroke: none; }
.featured h3 { margin: 0 0 12px; font-size: 25px; font-weight: 800; letter-spacing: -.4px; line-height: 1.15; }
.featured p { margin: 0 0 20px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.featured .f-meta { margin-top: auto; display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.featured .f-meta .author { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }

/* ---------- list feed ---------- */
.feed { display: flex; flex-direction: column; }
.feed-row {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 18px;
  padding: 20px 8px; border-top: 1px solid var(--line); position: relative;
  transition: background .18s var(--ease); animation: rowin .4s var(--ease) both;
}
@keyframes rowin { from { opacity: 0; transform: translateX(-8px); } }
.feed-row:last-child { border-bottom: 1px solid var(--line); }
.feed-row:hover { background: var(--panel); }
.feed-row .idx { font-family: var(--mono); font-size: 13px; color: var(--dim); font-weight: 500; text-align: center; }
.feed-row:hover .idx { color: var(--accent); }
.feed-main { min-width: 0; }
.feed-top { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; flex-wrap: wrap; }
.feed-cat { font-size: 10.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); padding: 2px 8px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--panel-2); }
.feed-title { font-size: 16.5px; font-weight: 700; letter-spacing: -.2px; transition: color .18s; }
.feed-row:hover .feed-title { color: var(--accent); }
.feed-ex { color: var(--muted); font-size: 13.5px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-meta { display: flex; align-items: center; gap: 16px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.feed-meta .m { display: inline-flex; align-items: center; gap: 5px; }
.feed-meta .m .i { width: 13px; height: 13px; }
.feed-meta .author { display: flex; align-items: center; gap: 7px; color: var(--text); font-weight: 600; }

/* ---------- card grid (uploads) ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .22s var(--ease), border-color .22s; animation: cardin .45s var(--ease) both; }
@keyframes cardin { from { opacity: 0; transform: translateY(12px); } }
.card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.card-thumb { position: relative; height: 146px; overflow: hidden; border-bottom: 1px solid var(--line); }
.card-thumb canvas { width: 100%; height: 100%; display: block; transition: transform .4s var(--ease); }
.card:hover .card-thumb canvas { transform: scale(1.03); }
.badge-cat { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 4px 10px; border-radius: 7px; font-size: 10.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; background: rgba(10,10,12,.78); backdrop-filter: blur(6px); border: 1px solid var(--line-2); color: var(--muted); }
.badge-feat { position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 7px; font-size: 10.5px; font-weight: 700; background: rgba(10,10,12,.78); backdrop-filter: blur(6px); color: var(--accent); border: 1px solid rgba(232,180,74,.3); }
.badge-feat .i { width: 12px; height: 12px; fill: var(--accent); stroke: none; }
.card-body { padding: 15px 16px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { font-size: 16px; font-weight: 700; letter-spacing: -.2px; transition: color .2s; }
.card:hover .card-title { color: var(--accent); }
.card-ex { color: var(--muted); font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.card-meta { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.card-meta .author { display: flex; align-items: center; gap: 7px; color: var(--text); font-weight: 600; }
.card-meta .spacer { flex: 1; }
.card-meta .m { display: inline-flex; align-items: center; gap: 4px; }
.card-meta .m .i { width: 13px; height: 13px; }

.avatar { width: 24px; height: 24px; border-radius: 7px; flex: none; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--accent); background: var(--panel-2); border: 1px solid var(--line-2); letter-spacing: .3px; }
.avatar.lg { width: 46px; height: 46px; border-radius: 12px; font-size: 16px; }
img.avatar { object-fit: cover; padding: 0; }
.avatar.xl { width: 66px; height: 66px; border-radius: 16px; font-size: 24px; }

/* ---------- filters bar ---------- */
.pagehead { margin-bottom: 26px; }
.pagehead h1 { margin: 0 0 6px; font-size: 30px; font-weight: 800; letter-spacing: -.6px; }
.pagehead p { margin: 0; color: var(--muted); font-size: 15px; }

.filters { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; position: relative; z-index: 40; }
.search { position: relative; flex: 1; min-width: 200px; }
.search .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--dim); }
.search input { width: 100%; padding: 11px 14px 11px 42px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); color: var(--text); outline: none; transition: border-color .2s, background .2s; }
.search input::placeholder { color: var(--dim); }
.search input:focus { border-color: var(--line-3); background: var(--panel-2); }

.segment { display: inline-flex; gap: 2px; padding: 4px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 14px; flex-wrap: wrap; }
.segment button { padding: 7px 14px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--muted); transition: all .16s var(--ease); }
.segment button:hover { color: var(--text); }
.segment button.on { color: var(--text); background: var(--panel-3); }
.segment button.on span { color: var(--accent); margin-left: 4px; }

/* dropdown */
.dropdown { position: relative; }
.dd-btn { display: flex; align-items: center; gap: 9px; padding: 11px 13px 11px 15px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 14px; white-space: nowrap; transition: border-color .2s, background .2s; }
.dd-btn:hover { border-color: var(--line-2); background: var(--panel-2); }
.dd-btn .i:first-child { color: var(--muted); }
.dd-btn .chev { color: var(--muted); transition: transform .25s var(--ease); }
.dropdown.open .dd-btn { border-color: var(--line-3); background: var(--panel-2); }
.dropdown.open .dd-btn .chev { transform: rotate(180deg); }
.dd-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 50; min-width: 180px; padding: 5px; border-radius: 11px; background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: 0 20px 44px -20px rgba(0,0,0,.9); opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right; transition: opacity .18s var(--ease), transform .2s var(--spring), visibility .18s; }
.dropdown.open .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd-menu button { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 9px 11px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--muted); transition: background .15s, color .15s; }
.dd-menu button:hover { background: var(--panel-3); color: var(--text); }
.dd-menu button .i { margin-left: auto; opacity: 0; color: var(--accent); }
.dd-menu button.on { color: var(--text); } .dd-menu button.on .i { opacity: 1; }

/* ---------- post detail ---------- */
.back { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-weight: 600; font-size: 14px; margin-bottom: 22px; transition: color .2s, gap .2s; }
.back:hover { color: var(--text); gap: 10px; }
.post { max-width: 720px; }
.post-head { margin-bottom: 22px; }
.post-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.post-eyebrow .feed-cat { font-size: 11px; }
.post-head h1 { margin: 0 0 14px; font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -.6px; line-height: 1.12; }
.post-sub { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.post-sub .author { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.post-cover { height: 240px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 26px; }
.post-cover canvas { width: 100%; height: 100%; display: block; }
.vote { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.vote button { display: grid; place-items: center; width: 30px; height: 26px; border-radius: 7px; color: var(--muted); transition: background .16s, color .16s, transform .16s var(--spring); }
.vote button:hover { background: var(--panel-3); color: var(--text); }
.vote button.on { color: var(--accent); }
.vote button:active { transform: scale(.85); }
.vote button:disabled, .honk:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.post-dl { margin-bottom: 20px; }
.post-del { margin-left: auto; color: var(--red); }
.prose pre { margin: 0 0 16px; padding: 14px 16px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); overflow-x: auto; }
.prose pre code { font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: #cfcfd6; white-space: pre; }
.form select { flex: 1; min-width: 160px; cursor: pointer; }
.form .form-row .btn { flex: none; }
.rank-row .clown-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vote b { min-width: 34px; text-align: center; font-size: 14px; font-weight: 700; }
.prose { color: #cfcfd6; max-width: 680px; }
.prose h2 { font-size: 20px; font-weight: 700; margin: 30px 0 10px; letter-spacing: -.2px; color: var(--text); }
.prose p { margin: 0 0 14px; line-height: 1.75; color: var(--muted); }
.prose p strong { color: var(--text); }
.tagrow { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }
.tag { padding: 3px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 500; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 10px; margin: 20px 0; background: var(--panel); border: 1px solid var(--line); border-left: 2px solid var(--accent); }
.callout .i { color: var(--accent); margin-top: 2px; } .callout p { margin: 0; color: var(--muted); font-size: 14px; }
.author-card { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); margin-top: 34px; max-width: 680px; }
.author-card .meta b { font-size: 15px; } .author-card .meta div { color: var(--muted); font-size: 13px; }
.author-card .btn { margin-left: auto; }

/* ---------- leaderboard ---------- */
.lb { display: flex; flex-direction: column; gap: 9px; }
.lb-row { display: flex; align-items: center; gap: 16px; padding: 13px 18px; border-radius: 11px; background: var(--panel); border: 1px solid var(--line); transition: transform .18s var(--ease), border-color .18s; animation: rowin .4s var(--ease) both; }
.lb-row:hover { transform: translateX(3px); border-color: var(--line-2); }
.lb-rank { width: 34px; font-size: 16px; font-weight: 800; color: var(--dim); text-align: center; font-family: var(--mono); }
.lb-row.top1, .lb-row.top2, .lb-row.top3 { border-color: rgba(232,180,74,.25); }
.lb-row.top1 .lb-rank, .lb-row.top2 .lb-rank, .lb-row.top3 .lb-rank { color: var(--accent); }
.lb-name { font-weight: 700; font-size: 15px; }
.lb-role { font-size: 11px; font-weight: 700; letter-spacing: .4px; padding: 3px 8px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); }
.lb-role.owner { color: var(--accent); background: var(--accent-soft); border-color: rgba(232,180,74,.25); }
.lb-stats { margin-left: auto; display: flex; gap: 20px; align-items: center; }
.lb-stats .s { text-align: right; } .lb-stats .s b { display: block; font-size: 15px; } .lb-stats .s span { font-size: 11px; color: var(--dim); }
.lb-score { font-size: 19px; font-weight: 800; min-width: 70px; text-align: right; font-family: var(--mono); }

/* ---------- hall of clowns ---------- */
.clown-form, .form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 24px; display: flex; flex-direction: column; gap: 10px; }
.clown-form-row, .form-row { display: flex; gap: 10px; flex-wrap: wrap; }
.clown-form input, .clown-form textarea, .form input, .form textarea, .form select { flex: 1; min-width: 180px; padding: 11px 13px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); outline: none; resize: vertical; font-family: inherit; transition: border-color .2s; }
.clown-form input:focus, .clown-form textarea:focus, .form input:focus, .form textarea:focus, .form select:focus { border-color: var(--line-3); }
.clown-form input::placeholder, .clown-form textarea::placeholder, .form input::placeholder, .form textarea::placeholder { color: var(--dim); }
.clown-form-foot, .form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.clown-hint { font-size: 12px; color: var(--dim); }

.clown-feed { display: flex; flex-direction: column; gap: 10px; }
.clown-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); transition: transform .18s var(--ease), border-color .18s; animation: rowin .4s var(--ease) both; }
.clown-card:hover { transform: translateX(3px); border-color: var(--line-2); }
.clown-media { width: 48px; height: 48px; flex: none; border-radius: 12px; overflow: hidden; display: grid; place-items: center; font-size: 26px; background: var(--panel-2); border: 1px solid var(--line); }
.clown-media img { width: 100%; height: 100%; object-fit: cover; }
.clown-body { flex: 1; min-width: 0; }
.clown-name { font-weight: 700; font-size: 15.5px; }
.clown-why { color: var(--muted); font-size: 13.5px; line-height: 1.45; margin: 2px 0 4px; word-break: break-word; }
.clown-meta { font-size: 11.5px; color: var(--dim); }
.clown-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.honk { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 13px; transition: all .16s var(--ease); }
.honk:hover { border-color: var(--line-2); color: var(--text); transform: translateY(-1px); }
.honk.on { color: var(--accent); background: var(--accent-soft); border-color: rgba(232,180,74,.3); }
.honk b { color: var(--text); }
.honk.on b { color: var(--accent); }
.clown-del { width: 30px; height: 30px; border-radius: 8px; color: var(--dim); font-size: 20px; line-height: 1; display: grid; place-items: center; transition: background .16s, color .16s; }
.clown-del:hover { background: var(--panel-3); color: var(--red); }

/* ---------- squad ---------- */
.member-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.member { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); transition: transform .2s var(--ease), border-color .2s; animation: rowin .4s var(--ease) both; }
.member:hover { transform: translateY(-3px); border-color: var(--line-2); }
.member .m-info { min-width: 0; flex: 1; }
.member .m-top { display: flex; align-items: center; gap: 9px; margin-bottom: 3px; }
.member b { font-size: 16px; }
.member .role { font-size: 10px; font-weight: 700; letter-spacing: .5px; color: var(--accent); padding: 2px 7px; border-radius: 5px; background: var(--accent-soft); border: 1px solid rgba(232,180,74,.2); }
.member .bio { color: var(--muted); font-size: 13px; line-height: 1.45; }
/* ---------- about ---------- */
.about { max-width: 720px; }
.about .lead { font-size: 18px; color: var(--text); line-height: 1.6; margin: 0 0 20px; }
.about h2 { font-size: 15px; font-weight: 700; margin: 36px 0 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.about p { color: var(--muted); line-height: 1.75; margin: 0 0 14px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.feature-grid.three { grid-template-columns: repeat(3, 1fr); }
.feature { display: flex; gap: 14px; padding: 18px; border-radius: 11px; background: var(--panel); border: 1px solid var(--line); }
.feature .ico { width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); color: var(--accent); }
.feature .ico .i { width: 19px; height: 19px; }
.feature b { font-size: 15px; } .feature div p { margin: 4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.cta { margin-top: 42px; padding: 34px; border-radius: 16px; text-align: center; background: var(--panel); border: 1px solid var(--line); }
.cta h2 { margin: 0 0 8px; font-size: 23px; font-weight: 800; text-transform: none; letter-spacing: -.3px; color: var(--text); }
.cta p { margin: 0 auto 20px; color: var(--muted); max-width: 440px; }

/* footer */
.footer { border-top: 1px solid var(--line); }
.footer-inner { padding: 22px 40px; max-width: 960px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-brand img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.footer-links { display: flex; gap: 20px; font-size: 14px; }
.footer-links a { color: var(--muted); transition: color .2s; } .footer-links a:hover { color: var(--text); }

/* modal + toast + scrim */
.scrim { position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.5); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.scrim.show { opacity: 1; visibility: visible; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; visibility: hidden; opacity: 0; transition: opacity .22s var(--ease), visibility .22s; }
.modal.open { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5,5,7,.72); backdrop-filter: blur(5px); }
.modal-card { position: relative; width: 100%; max-width: 390px; padding: 32px 30px 26px; text-align: center; border-radius: 18px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 30px 70px -30px rgba(0,0,0,.9); transform: translateY(10px) scale(.97); transition: transform .28s var(--spring); }
.modal.open .modal-card { transform: none; }
.modal-logo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; border: 1px solid var(--line-2); }
.modal-card h2 { margin: 0 0 8px; font-size: 20px; font-weight: 700; } .modal-card .muted { font-size: 14px; margin: 0 0 20px; } .modal-card .tiny { margin: 14px 0 0; }
.modal-x { position: absolute; top: 14px; right: 14px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 200; padding: 12px 20px; border-radius: 10px; background: var(--panel-3); border: 1px solid var(--line-2); color: var(--text); font-size: 14px; font-weight: 500; box-shadow: 0 18px 44px -20px rgba(0,0,0,.9); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--spring); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.empty { text-align: center; padding: 70px 20px; color: var(--dim); } .empty .i { width: 40px; height: 40px; margin-bottom: 12px; opacity: .5; }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid.three { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .featured { grid-template-columns: 1fr; } .featured .f-thumb { border-right: none; border-bottom: 1px solid var(--line); min-height: 170px; }
}
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); transition: transform .3s var(--ease); box-shadow: 0 0 60px rgba(0,0,0,.6); }
  .sidebar.open { transform: none; }
  .main { margin-left: 0; }
  .mbar { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; padding: 12px 18px; background: rgba(10,10,12,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .mbar .side-brand { font-size: 16px; } .mbar .side-brand b { font-size: 17px; } .mbar .side-brand span { font-size: 0; } .mbar .side-brand span b { font-size: 17px; }
  .view { padding: 28px 18px 60px; }
  .statband { grid-template-columns: repeat(2, 1fr); } .statband .s:nth-child(2) { border-right: none; } .statband .s:nth-child(1), .statband .s:nth-child(2) { border-bottom: 1px solid var(--line); }
  .member-grid { grid-template-columns: 1fr; }
  .feature-grid, .feature-grid.three { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .feed-row { grid-template-columns: 30px 1fr; gap: 12px; } .feed-meta { display: none; }
  .footer-inner { padding: 22px 18px; }
}
@media (min-width: 861px) { .mbar { display: none; } }
