/* ============================================================
   predatorpoachers.is
   Community UI, inspired by modern creator-feed layouts.
   ============================================================ */
@font-face { font-family: 'Inter'; src: url('../fonts/Inter-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('../fonts/Sora-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('../fonts/Sora-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Sora', 'Inter', sans-serif;
  --accent: #e43865;
  --accent-strong: #c92250;
  --accent-soft: #fdeef3;
  --accent-rgb: 228, 56, 101;
  --green: #18945e;
  --amber: #c88b1e;
  --red: #d9364b;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --header-height: 68px;
  --content-max: 1290px;
  --logo-ink: #fff;
}

:root, :root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f3f4f7;
  --surface-3: #eaecf1;
  --text: #1e222b;
  --text-soft: #404652;
  --muted: #737986;
  --muted-2: #9ca1ac;
  --border: #e6e8ed;
  --border-strong: #d8dbe3;
  --shadow-sm: 0 1px 2px rgba(17, 22, 34, .04);
  --shadow-md: 0 10px 30px rgba(17, 22, 34, .07);
  --shadow-lg: 0 24px 70px rgba(17, 22, 34, .12);
  --player-bg: #050609;
  --hero-bg: radial-gradient(circle at 82% 20%, rgba(228,56,101,.3), transparent 37%), linear-gradient(130deg, #12161f 0%, #1d1018 55%, #29101c 100%);
  --header-bg: rgba(255, 255, 255, .9);
  --overlay: rgba(20, 22, 28, .45);
  --logo-ink: #fff;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0d12;
  --surface: #12151c;
  --surface-2: #191d26;
  --surface-3: #202530;
  --text: #eef0f4;
  --text-soft: #c5cad4;
  --muted: #9aa1ae;
  --muted-2: #737b89;
  --border: #242936;
  --border-strong: #303646;
  --accent: #ff4f7c;
  --accent-strong: #ff2e63;
  --accent-soft: #29141f;
  --accent-rgb: 255, 79, 124;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .25);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, .3);
  --shadow-lg: 0 26px 80px rgba(0, 0, 0, .45);
  --hero-bg: radial-gradient(circle at 82% 20%, rgba(255,79,124,.25), transparent 37%), linear-gradient(130deg, #181b25 0%, #211119 55%, #2e0f1e 100%);
  --header-bg: rgba(14, 16, 22, .9);
  --overlay: rgba(0, 0, 0, .62);
  --logo-ink: #fff;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.modal-open, body.sidebar-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
svg { display: block; }
::selection { background: rgba(var(--accent-rgb), .24); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.icon.arrow { width: 15px; height: 15px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .19em;
  line-height: 1.3;
  text-transform: uppercase;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .12);
}

/* ------------------------------------------------------------------ topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  backdrop-filter: blur(16px) saturate(1.3);
}
.topbar-inner {
  width: min(1400px, 100%);
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.mobile-menu-toggle { display: none !important; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 182px;
}
.brand-mark { display: inline-grid; place-items: center; color: var(--accent); flex: 0 0 auto; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-mark-large { width: 38px; height: 38px; }
.brand-mark-small { width: 34px; height: 34px; }
.brand-mark-tiny { width: 20px; height: 20px; }
.brand-mark-xl { width: 118px; height: 118px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.brand-copy strong { font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: -.04em; white-space: nowrap; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 8px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.brand-copy small i { color: var(--accent); font-style: normal; }

.search-form {
  position: relative;
  display: flex;
  align-items: center;
  width: min(360px, 30vw);
  height: 40px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--surface-2);
  transition: border-color .2s, background .2s;
}
.search-form:focus-within { border-color: var(--border-strong); background: var(--surface); }
.search-icon { width: 18px; height: 18px; color: var(--muted); }
.search-form input { width: 100%; border: 0; background: transparent; outline: none; padding: 0 9px; font-size: 12.5px; }
.search-form input::placeholder { color: var(--muted-2); }
.search-hint {
  min-width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  color: var(--muted-2);
  font-size: 10px;
}

.topbar-actions { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.nav-mini, .icon-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 9px;
  transition: color .18s, background .18s, transform .18s;
}
.nav-mini { padding: 8px 7px; font-size: 11.5px; font-weight: 600; }
.nav-mini .icon { width: 18px; height: 18px; }
.nav-mini:hover, .icon-button:hover { color: var(--text); background: var(--surface-2); }
.icon-button { width: 36px; height: 36px; }
.theme-toggle { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; background: transparent; color: var(--muted); border-radius: 9px; }
.theme-toggle:hover { background: var(--surface-2); color: var(--text); }
.theme-moon { display: none; }
:root[data-theme="dark"] .theme-sun { display: none; }
:root[data-theme="dark"] .theme-moon { display: block; }
.bell-button {
  position: relative;
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  color: var(--muted);
}
.bell-button:hover { background: var(--surface-2); color: var(--text); }
.bell-badge {
  position: absolute;
  top: 2px;
  right: 1px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  border: 2px solid var(--surface);
}
.game-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 48px;
  padding: 6px 14px;
  margin-left: 4px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, #a51b46 100%);
  box-shadow: 0 7px 18px rgba(var(--accent-rgb), .24);
  transition: transform .18s, box-shadow .18s;
}
.game-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(var(--accent-rgb), .32); }
.game-cta .icon { width: 25px; height: 25px; }
.game-cta span { display: flex; flex-direction: column; line-height: 1.1; }
.game-cta strong { font-size: 11.5px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.game-cta small { margin-top: 3px; color: rgba(255,255,255,.68); font-size: 7.5px; font-weight: 700; letter-spacing: .13em; }
.create-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  color: var(--text-soft);
  background: var(--surface);
  font-size: 11.5px;
  font-weight: 600;
  transition: border-color .18s, background .18s;
}
.create-button .icon { width: 16px; height: 16px; color: var(--accent); }
.create-button:hover { border-color: var(--accent); background: var(--accent-soft); }
.login-link { margin-left: 7px; color: var(--text-soft); font-size: 12px; font-weight: 600; padding: 8px; }
.login-link:hover { color: var(--accent); }
.signup-link { margin-left: 1px; padding: 8px 11px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; }
.user-menu { position: relative; margin-left: 2px; }
.user-menu-trigger { display: flex; align-items: center; gap: 5px; padding: 2px; border: 0; background: transparent; border-radius: 50%; }
.user-menu-trigger .avatar { border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border); }
.user-caret { color: var(--muted-2); font-size: 10px; }
.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 232px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  z-index: 60;
}
.user-dropdown-head { display: flex; gap: 10px; align-items: center; padding: 8px; border-bottom: 1px solid var(--border); margin-bottom: 5px; }
.user-dropdown-head > div { min-width: 0; }
.user-dropdown-head strong { display: block; font-size: 12px; }
.user-dropdown-head small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 10px; }
.user-dropdown > a, .user-dropdown form button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  color: var(--text-soft);
  font-size: 11.5px;
  text-align: left;
}
.user-dropdown > a:hover, .user-dropdown form button:hover { background: var(--surface-2); color: var(--accent); }
.user-dropdown .icon { width: 16px; height: 16px; }
.user-dropdown form { margin: 0; border-top: 1px solid var(--border); padding-top: 5px; margin-top: 5px; }

/* ------------------------------------------------------------------ avatars */
.avatar { display: inline-grid; place-items: center; flex: 0 0 auto; object-fit: cover; border-radius: 50%; background: var(--surface-3); overflow: hidden; }
.avatar-sm { width: 30px; height: 30px; font-size: 11px; }
.avatar-md { width: 40px; height: 40px; font-size: 14px; }
.avatar-xl { width: 68px; height: 68px; font-size: 23px; }
.avatar-xxl { width: 112px; height: 112px; font-size: 40px; border: 4px solid var(--surface); box-shadow: 0 0 0 1px var(--border); }
.avatar-initials {
  background: linear-gradient(135deg, hsl(var(--avatar-hue) 74% 56%), hsl(calc(var(--avatar-hue) + 35) 65% 44%));
  color: #fff;
  font-weight: 700;
  letter-spacing: -.04em;
}

/* ------------------------------------------------------------------ layout */
.page-shell {
  width: min(var(--content-max), 100%);
  margin: 0 auto;
  padding: 26px 24px 36px;
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr) 300px;
  align-items: start;
  gap: 24px;
}
.main-col { min-width: 0; }
.right-rail { position: sticky; top: calc(var(--header-height) + 20px); }
.sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  max-height: calc(100vh - var(--header-height) - 40px);
  overflow-y: auto;
}
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 10px; }
.sidebar-title { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; }
.sidebar-close { display: none; }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 5px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 500;
  text-align: left;
  transition: background .18s, color .18s;
}
.side-link:hover { background: var(--surface-2); color: var(--text); }
.side-link.is-active { background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
.side-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  transition: background .18s, color .18s;
}
.side-icon .icon { width: 16px; height: 16px; }
.side-link:hover .side-icon { background: var(--surface-3); color: var(--text); }
.side-link.is-active .side-icon { background: var(--accent); color: #fff; }
.side-pill { margin-left: auto; min-width: 18px; padding: 2px 5px; border-radius: 20px; background: var(--accent); color: #fff; font-size: 8px; font-weight: 700; text-align: center; }
.side-soon { margin-left: auto; color: var(--muted-2); font-size: 7px; letter-spacing: .12em; font-weight: 700; }
.side-separator { height: 1px; background: var(--border); margin: 10px 7px; }
.side-nav-secondary .side-link { color: var(--muted); }
.side-bottom { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--border); }
.side-profile { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 10px; }
.side-profile:hover { background: var(--surface-2); }
.side-profile > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.side-profile strong { font-size: 11.5px; }
.side-profile small { color: var(--muted); font-size: 10px; }
.side-logout { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; margin-top: 4px; padding: 8px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 10px; letter-spacing: .05em; }
.side-logout:hover { color: var(--accent); background: var(--surface-2); }
.side-logout .icon { width: 14px; height: 14px; }
.side-join { padding: 10px 8px 5px; }
.side-join-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent); margin-bottom: 8px; }
.side-join strong { display: block; font-size: 12px; }
.side-join p { margin: 4px 0 10px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.side-login { display: block; margin-top: 8px; color: var(--muted); font-size: 9.5px; text-align: center; }
.side-login:hover { color: var(--accent); }
.side-legal { margin-top: 12px; color: var(--muted-2); font-size: 8px; line-height: 1.5; text-align: center; }

/* ------------------------------------------------------------------ right rail */
.rail-card { padding: 17px; margin-bottom: 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); }
.rail-card h2 { margin: 0 0 10px; font-family: var(--font-display); font-size: 13.5px; font-weight: 600; letter-spacing: -.025em; }
.rail-subtle { margin: 0 0 12px; color: var(--muted); font-size: 10.5px; line-height: 1.65; }
.share-row { display: flex; gap: 8px; }
.share-bubble { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--text-soft); transition: transform .18s, background .18s, color .18s; }
.share-bubble:hover { transform: translateY(-2px); background: var(--accent); color: #fff; }
.share-bubble .icon { width: 17px; height: 17px; }
.share-rumble { background: #e9f7ef; color: #1c8c5a; }
:root[data-theme="dark"] .share-rumble { background: #122b22; color: #51d39b; }
.rail-game { background: var(--hero-bg); border-color: rgba(255,255,255,.08); color: #fff; overflow: hidden; position: relative; }
.rail-game::after { content: ''; position: absolute; right: -26px; bottom: -30px; width: 130px; height: 130px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 22px rgba(255,255,255,.025), 0 0 0 44px rgba(255,255,255,.018); }
.rail-game h2 { color: #fff; font-size: 19px; margin-bottom: 6px; }
.rail-game .eyebrow { color: var(--accent); margin-bottom: 8px; }
.rail-game p { position: relative; z-index: 1; margin: 0 0 13px; color: rgba(255,255,255,.62); font-size: 10.5px; line-height: 1.6; }
.rail-game-button { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; box-shadow: 0 7px 18px rgba(0,0,0,.25); }
.rail-game-button .icon { width: 18px; height: 18px; }
.rail-game-button .icon.arrow { margin-left: auto; }
.rail-game-note { position: relative; z-index: 1; display: block; margin-top: 9px; color: rgba(255,255,255,.4); font-size: 8px; letter-spacing: .05em; }
.rail-checks { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rail-checks li { display: flex; gap: 8px; align-items: center; color: var(--text-soft); font-size: 10.5px; }
.rail-checks .icon { width: 14px; height: 14px; color: var(--green); }
.rail-text-link { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-size: 10.5px; font-weight: 600; }
.rail-text-link .icon { width: 13px; height: 13px; }
.rail-text-link:hover { color: var(--accent-strong); }
.coin-mini-row { display: flex; gap: 8px; }
.coin-mini { flex: 1; display: flex; align-items: center; gap: 7px; padding: 8px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-2); }
.coin-mini:hover { border-color: var(--border-strong); }
.coin-icon { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #fff; }
.coin-icon .icon { width: 24px; height: 24px; }
.coin-btc { color: #f7931a; background: #fff4e5; }
.coin-xmr { color: #f26822; background: #fff0e8; }
:root[data-theme="dark"] .coin-btc { background: #2a1b0c; }
:root[data-theme="dark"] .coin-xmr { background: #2c160d; }
.coin-mini > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.coin-mini strong { font-size: 9.5px; }
.coin-mini small { color: var(--muted); font-size: 8px; }
.goal-top { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.goal-top strong { font-size: 11px; }
.goal-top span { color: var(--green); font-size: 9px; }
.goal-bar { height: 6px; border-radius: 20px; background: var(--surface-3); overflow: hidden; margin-bottom: 11px; }
.goal-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #ff9db7); }
.rail-about { position: relative; }
.rail-about-mark { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent); margin-bottom: 10px; }
.rail-about p { margin: 0 0 11px; color: var(--muted); font-size: 10.5px; line-height: 1.6; }
.rail-related .related-list { display: flex; flex-direction: column; gap: 11px; }
.related-item { display: flex; gap: 9px; align-items: center; }
.related-thumb { position: relative; width: 87px; height: 49px; flex: 0 0 auto; overflow: hidden; border-radius: 7px; background: var(--surface-3); }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-thumb i { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.2); }
.related-thumb i .icon { width: 15px; height: 15px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.related-item > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.related-item strong { font-size: 10px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-item small { color: var(--muted); font-size: 8.5px; }
.related-item:hover strong { color: var(--accent); }

/* ------------------------------------------------------------------ buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: background .18s, border-color .18s, color .18s, transform .18s;
}
.button .icon { width: 16px; height: 16px; }
.button-primary { color: #fff; background: var(--accent); box-shadow: 0 5px 13px rgba(var(--accent-rgb), .2); }
.button-primary:hover { background: var(--accent-strong); transform: translateY(-1px); }
.button-ghost { color: var(--text-soft); background: var(--surface); border-color: var(--border-strong); }
.button-ghost:hover { border-color: var(--accent); color: var(--accent); }
.button-small { min-height: 31px; padding: 0 11px; font-size: 10px; border-radius: 7px; }
.button-full { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10.5px; font-weight: 500; }
.text-link:hover { color: var(--accent); }
.text-link .icon { width: 14px; height: 14px; }

/* ------------------------------------------------------------------ flash + toast */
.flash-wrap { position: fixed; top: calc(var(--header-height) + 12px); left: 50%; z-index: 70; transform: translateX(-50%); width: min(560px, calc(100vw - 30px)); display: flex; flex-direction: column; gap: 8px; }
.flash {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  color: var(--text-soft);
  font-size: 11.5px;
}
.flash .icon { width: 15px; height: 15px; }
.flash-success .icon { color: var(--green); }
.flash-error .icon { color: var(--red); }
.flash-info .icon { color: var(--accent); }
.flash-close { margin-left: auto; border: 0; background: transparent; color: var(--muted); padding: 0; }
.flash-close .icon { width: 14px; height: 14px; }
.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 360px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  color: var(--text-soft);
  font-size: 11px;
  animation: toast-in .22s ease-out;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ------------------------------------------------------------------ feed */
.feed-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 15px;
  overflow: hidden;
  padding: 31px 33px;
  margin-bottom: 15px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 21px;
  background: var(--hero-bg);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.feed-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(90deg, #000, transparent); pointer-events: none; }
.feed-hero-copy { position: relative; z-index: 2; }
.feed-hero .eyebrow { color: rgba(255,255,255,.55); }
.feed-hero h1 { margin: 12px 0 10px; font-family: var(--font-display); font-size: clamp(29px, 3.3vw, 43px); line-height: 1.03; letter-spacing: -.055em; font-weight: 600; }
.feed-hero h1 em { color: var(--accent); font-style: normal; }
.feed-hero p { max-width: 520px; margin: 0 0 20px; color: rgba(255,255,255,.6); font-size: 12px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.feed-hero .button-ghost { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.17); color: #fff; }
.feed-hero .button-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: #fff; }
.feed-hero-art { position: relative; min-height: 170px; }
.hero-orbit { position: absolute; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; }
.orbit-a { width: 180px; height: 180px; right: -40px; top: -25px; }
.orbit-b { width: 118px; height: 118px; right: -7px; top: 19px; border-color: rgba(255,79,124,.35); }
.hero-crosshair { position: absolute; right: 38px; top: 47px; width: 66px; height: 66px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: #fff; background: rgba(0,0,0,.17); backdrop-filter: blur(4px); }
.hero-crosshair::before, .hero-crosshair::after { content: ''; position: absolute; background: rgba(255,255,255,.2); }
.hero-crosshair::before { width: 90px; height: 1px; }
.hero-crosshair::after { width: 1px; height: 90px; }
.hero-crosshair .icon { width: 19px; height: 19px; position: relative; z-index: 1; }
.hero-chip { position: absolute; z-index: 2; padding: 5px 8px; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; color: rgba(255,255,255,.58); background: rgba(0,0,0,.2); font-size: 7px; font-weight: 700; letter-spacing: .16em; }
.hero-chip-top { top: 15px; left: 3px; }
.hero-chip-bottom { bottom: 14px; right: 8px; color: var(--accent); border-color: rgba(255,79,124,.35); }
.notice-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.notice-icon { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent); }
.notice-icon .icon { width: 16px; height: 16px; }
.notice-card > div { min-width: 0; }
.notice-card strong { display: block; font-size: 11.5px; }
.notice-card p { margin: 2px 0 0; color: var(--muted); font-size: 10.5px; }
.notice-card > a { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: var(--accent); font-size: 10px; font-weight: 600; white-space: nowrap; }
.notice-card > a .icon { width: 13px; height: 13px; }
.feed-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin: 0 2px 13px; }
.feed-heading h2 { margin: 4px 0 0; font-family: var(--font-display); font-size: 22px; line-height: 1.1; letter-spacing: -.045em; font-weight: 600; }
.feed-heading-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.feed-heading-meta { color: var(--muted); font-size: 9px; letter-spacing: .02em; }
.sort-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.sort-switch a { display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px; border-radius: 5px; color: var(--muted); font-size: 8.5px; font-weight: 600; white-space: nowrap; }
.sort-switch a .icon { width: 12px; height: 12px; }
.sort-switch a:hover { color: var(--text); background: var(--surface-2); }
.sort-switch a.is-active { color: var(--accent); background: var(--accent-soft); }
.video-feed, .mixed-feed { display: flex; flex-direction: column; gap: 15px; }
.video-post { padding: 18px 19px 13px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); transition: box-shadow .2s, border-color .2s; }
.video-post:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.post-head { display: flex; align-items: center; gap: 9px; }
.post-author-mark { flex: 0 0 auto; }
.post-author { display: flex; flex-direction: column; line-height: 1.3; }
.post-author strong { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; }
.verified-dot { display: inline-grid; place-items: center; width: 12px; height: 12px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.verified-dot .icon { width: 8px; height: 8px; stroke-width: 2.4; }
.post-author > span { color: var(--muted); font-size: 9px; }
.post-author > span i { font-style: normal; color: var(--muted-2); }
.post-type-badge { margin-left: auto; padding: 3px 6px; border: 1px solid var(--border); border-radius: 5px; color: var(--muted); font-size: 7px; font-weight: 700; letter-spacing: .14em; }
.post-title { margin: 13px 0 5px; font-family: var(--font-display); font-size: 19px; line-height: 1.25; letter-spacing: -.03em; font-weight: 600; }
.post-title a:hover { color: var(--accent); }
.post-description { margin: 0 0 12px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.post-media { position: relative; display: block; margin: 8px 0 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: var(--surface-3); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.post-media:hover img { transform: scale(1.025); }
.post-media-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 44%, rgba(0,0,0,.42)); }
.post-play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; display: grid; place-items: center; transform: translate(-50%, -50%); border: 1px solid rgba(255,255,255,.45); border-radius: 50%; background: rgba(0,0,0,.32); color: #fff; backdrop-filter: blur(5px); transition: background .2s, transform .2s; }
.post-media:hover .post-play { background: var(--accent); border-color: var(--accent); transform: translate(-50%, -50%) scale(1.06); }
.post-play .icon { width: 20px; height: 20px; margin-left: 2px; }
.post-media-label { position: absolute; left: 14px; bottom: 12px; color: rgba(255,255,255,.8); font-size: 7px; font-weight: 700; letter-spacing: .17em; }
.post-free-badge { position: absolute; top: 12px; right: 12px; padding: 4px 7px; border-radius: 5px; background: var(--accent); color: #fff; font-size: 7px; font-weight: 700; letter-spacing: .13em; }
.post-actions { display: flex; align-items: center; gap: 7px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--border); }
.like-form { margin: 0; }
.action-button { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 0 7px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 10px; transition: background .18s, color .18s; }
.action-button:hover { background: var(--surface-2); color: var(--text); }
.action-button .icon { width: 17px; height: 17px; }
.action-button.is-liked { color: var(--accent); }
.action-button.is-liked .heart-icon { animation: heart-pop .25s ease-out; }
@keyframes heart-pop { 50% { transform: scale(1.25); } }
.action-meta { display: inline-flex; align-items: center; gap: 4px; color: var(--muted-2); font-size: 9px; margin-left: 2px; }
.action-meta .icon { width: 14px; height: 14px; }
.action-share { margin-left: auto; }
.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 17px; }
.inline-join { display: flex; align-items: center; gap: 12px; padding: 15px; margin-top: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.inline-join > div:nth-child(2) { min-width: 0; flex: 1; }
.inline-join strong { display: block; font-size: 12px; }
.inline-join p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.inline-join .button { flex: 0 0 auto; }
.empty-state { position: relative; padding: 60px 24px 65px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); text-align: center; overflow: hidden; }
.empty-state::before { content: ''; position: absolute; width: 260px; height: 260px; top: -130px; left: 50%; transform: translateX(-50%); border: 1px solid var(--border); border-radius: 50%; box-shadow: 0 0 0 22px color-mix(in srgb, var(--border) 36%, transparent); }
.empty-icon { position: relative; width: 50px; height: 50px; margin: 0 auto 15px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.empty-icon .icon { width: 23px; height: 23px; }
.empty-state .eyebrow { position: relative; }
.empty-state h1, .empty-state h2 { position: relative; margin: 9px auto 8px; font-family: var(--font-display); font-size: 25px; letter-spacing: -.04em; line-height: 1.15; max-width: 520px; }
.empty-state p { position: relative; max-width: 460px; margin: 0 auto 18px; color: var(--muted); font-size: 11.5px; line-height: 1.7; }
.empty-state .button { position: relative; }
.error-state { margin-top: 20px; }

/* ------------------------------------------------------------------ common page headings */
.page-heading { margin-bottom: 18px; }
.page-heading h1 { margin: 6px 0 4px; font-family: var(--font-display); font-size: 29px; letter-spacing: -.05em; line-height: 1.1; }
.page-heading p { margin: 0; color: var(--muted); font-size: 11.5px; max-width: 560px; }
.page-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.mini-search { display: flex; align-items: center; gap: 7px; width: 230px; height: 36px; padding: 0 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); }
.mini-search .icon { width: 15px; height: 15px; color: var(--muted); }
.mini-search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 11px; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 3px 0 0; font-family: var(--font-display); font-size: 19px; letter-spacing: -.04em; line-height: 1.2; }
.section-head-meta { color: var(--muted); font-size: 9px; }
.back-link { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 14px; color: var(--muted); font-size: 10px; font-weight: 500; }
.back-link:hover { color: var(--accent); }
.back-link .icon { width: 14px; height: 14px; }

/* ------------------------------------------------------------------ video page */
.video-page { min-width: 0; }
.player-shell { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 17px; background: var(--player-bg); background-image: linear-gradient(rgba(5,6,9,.7), rgba(5,6,9,.7)), var(--poster); background-size: cover; background-position: center; box-shadow: var(--shadow-lg); isolation: isolate; }
.video-element { width: 100%; height: 100%; display: block; object-fit: contain; background: transparent; }
.player-vignette { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 25%, transparent 63%, rgba(0,0,0,.7)); opacity: .8; }
.player-topline { position: absolute; left: 18px; right: 18px; top: 15px; display: flex; align-items: center; justify-content: space-between; color: rgba(255,255,255,.75); pointer-events: none; }
.player-brand { display: flex; align-items: center; gap: 7px; font-family: var(--font-display); font-size: 10px; font-weight: 600; letter-spacing: -.02em; }
.player-brand .brand-mark { color: var(--accent); }
.player-free { padding: 4px 7px; border: 1px solid rgba(255,255,255,.24); border-radius: 5px; font-size: 7px; font-weight: 700; letter-spacing: .16em; }
.player-big-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 7px; border: 0; background: transparent; color: #fff; z-index: 3; transition: opacity .2s, transform .2s; }
.player-big-play > span { width: 66px; height: 66px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: rgba(0,0,0,.34); backdrop-filter: blur(6px); box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: background .2s, border-color .2s, transform .2s; }
.player-big-play .icon { width: 24px; height: 24px; margin-left: 3px; }
.player-big-play small { font-size: 7px; font-weight: 700; letter-spacing: .2em; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.player-big-play:hover > span { background: var(--accent); border-color: var(--accent); transform: scale(1.05); }
.player-shell.is-playing .player-big-play { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.9); }
.player-controls { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; align-items: center; gap: 9px; padding: 36px 16px 13px; background: linear-gradient(0deg, rgba(0,0,0,.82), transparent); color: #fff; opacity: 0; transform: translateY(5px); transition: opacity .2s, transform .2s; }
.player-shell:hover .player-controls, .player-shell:focus-within .player-controls, .player-shell.is-paused .player-controls { opacity: 1; transform: translateY(0); }
.player-button { width: 28px; height: 28px; display: inline-grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: #fff; }
.player-button:hover { background: rgba(255,255,255,.14); }
.player-button .icon { width: 17px; height: 17px; }
.player-time { min-width: 31px; color: rgba(255,255,255,.72); font-size: 9px; font-variant-numeric: tabular-nums; }
.player-seek { flex: 1; height: 4px; accent-color: var(--accent); cursor: pointer; }
.player-volume { width: 66px; height: 3px; accent-color: #fff; cursor: pointer; }
.player-loading { position: absolute; inset: 0; display: grid; place-items: center; z-index: 5; background: rgba(0,0,0,.16); pointer-events: none; }
.player-loading span { width: 30px; height: 30px; border: 2px solid rgba(255,255,255,.22); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.player-shell:fullscreen { border-radius: 0; background: #000; }
.player-shell:fullscreen .video-element { object-fit: contain; }
.video-heading { padding: 18px 1px 0; }
.video-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 9.5px; }
.video-kicker > span { display: inline-flex; align-items: center; gap: 4px; }
.video-kicker .icon { width: 13px; height: 13px; }
.free-chip { padding: 3px 6px; border-radius: 4px; background: var(--accent-soft); color: var(--accent) !important; font-size: 7px !important; font-weight: 700; letter-spacing: .11em; }
.video-heading h1 { margin: 7px 0 0; font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.18; letter-spacing: -.045em; font-weight: 600; }
.video-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 13px; padding: 10px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.action-large { min-height: 32px; padding: 0 9px; font-size: 11px; }
.action-large .icon { width: 18px; height: 18px; }
.action-large .like-label { margin-left: 2px; }
.video-action-spacer { flex: 1; }
.video-description { padding: 17px 0 18px; border-bottom: 1px solid var(--border); }
.video-description p { margin: 7px 0 0; color: var(--text-soft); font-size: 12px; line-height: 1.72; white-space: pre-line; }
.video-desc-meta { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 14px; color: var(--muted); font-size: 9.5px; }
.video-desc-meta span { display: inline-flex; align-items: center; gap: 5px; }
.video-desc-meta .icon { width: 13px; height: 13px; }
.comments-section { padding-top: 22px; }
.comments-head { display: flex; align-items: flex-end; gap: 15px; margin-bottom: 15px; }
.comments-head h2 { margin: 4px 0 0; font-family: var(--font-display); font-size: 21px; letter-spacing: -.04em; line-height: 1.1; }
.comments-rule { flex: 1; height: 1px; background: var(--border); margin-bottom: 5px; }
.comment-form { display: flex; align-items: flex-start; gap: 10px; padding: 13px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); margin-bottom: 16px; }
.comment-input-wrap { position: relative; flex: 1; min-width: 0; }
.comment-input-wrap textarea { width: 100%; min-height: 66px; resize: vertical; padding: 10px 11px; border: 1px solid var(--border); border-radius: 9px; outline: 0; background: var(--surface-2); color: var(--text); font-size: 12px; line-height: 1.55; }
.comment-input-wrap textarea:focus { border-color: var(--accent); background: var(--surface); }
.comment-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.comment-hint { color: var(--muted); font-size: 9px; }
.mention-menu { position: absolute; left: 10px; bottom: calc(100% + 5px); width: min(250px, 100%); max-height: 190px; overflow-y: auto; padding: 5px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); box-shadow: var(--shadow-lg); z-index: 10; }
.mention-option { display: flex; align-items: center; gap: 7px; width: 100%; padding: 7px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--text-soft); font-size: 11px; text-align: left; }
.mention-option:hover, .mention-option.is-active { background: var(--accent-soft); color: var(--accent); }
.mention-option .avatar { width: 20px; height: 20px; font-size: 8px; }
.comment-login-callout { display: flex; align-items: center; gap: 11px; padding: 13px; margin-bottom: 16px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); }
.callout-icon { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent); }
.callout-icon .icon { width: 17px; height: 17px; }
.comment-login-callout > div { flex: 1; min-width: 0; }
.comment-login-callout strong { display: block; font-size: 11.5px; }
.comment-login-callout p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.comment-login-callout .button { flex: 0 0 auto; }
.comments-list { display: flex; flex-direction: column; }
.comment { position: relative; display: flex; gap: 10px; padding: 15px 5px; border-bottom: 1px solid var(--border); }
.comment:target { background: var(--accent-soft); margin: 0 -8px; padding-left: 13px; padding-right: 13px; border-radius: 9px; border-bottom-color: transparent; }
.comment-main { min-width: 0; flex: 1; }
.comment-main header { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.comment-author { font-size: 11.5px; font-weight: 700; }
.comment-author:hover { color: var(--accent); }
.comment-main time { color: var(--muted); font-size: 9px; }
.comment-body { margin-top: 4px; color: var(--text-soft); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.mention { color: var(--accent); font-weight: 600; }
.comment-edited { color: var(--muted-2); font-size: 8.5px; font-style: italic; }
.comment-tools { display: flex; align-items: center; gap: 3px; margin-top: 7px; }
.comment-tools form { margin: 0; }
.comment-tool { display: inline-flex; align-items: center; gap: 4px; padding: 3px 5px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: 8.5px; font-weight: 600; cursor: pointer; }
.comment-tool .icon { width: 11px; height: 11px; }
.comment-tool:hover { color: var(--accent); background: var(--accent-soft); }
.comment-tool-danger:hover { color: var(--red); background: color-mix(in srgb, var(--red) 9%, transparent); }
.comment-edit-form { margin-top: 6px; }
.comment-edit-form textarea { width: 100%; min-height: 62px; resize: vertical; padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px; outline: 0; background: var(--surface-2); color: var(--text); font-size: 11px; line-height: 1.55; }
.comment-edit-form textarea:focus { border-color: var(--accent); background: var(--surface); }
.comment-edit-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 6px; }
.comments-empty { display: flex; align-items: center; gap: 8px; padding: 22px 4px; color: var(--muted); font-size: 11px; }
.comments-empty .icon { width: 17px; height: 17px; }

/* ------------------------------------------------------------------ community posts */
.posts-heading-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.community-feed { display: flex; flex-direction: column; gap: 15px; }
.community-post { padding: 18px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); }
.community-post-head { display: flex; align-items: center; gap: 9px; }
.community-post-author { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.community-post-author > a { font-size: 11.5px; font-weight: 700; }
.community-post-author > a:hover { color: var(--accent); }
.community-post-author span { color: var(--muted); font-size: 9px; }
.community-post-author i { font-style: normal; color: var(--muted-2); }
.community-post-badge { margin-left: auto; color: var(--muted); font-size: 7px; font-weight: 700; letter-spacing: .13em; }
.community-post-body { margin: 12px 0 0; color: var(--text-soft); font-size: 12px; line-height: 1.7; white-space: pre-line; }
.community-post-image { display: block; margin-top: 13px; overflow: hidden; border-radius: 12px; background: var(--surface-3); }
.community-post-image img { width: 100%; max-height: 620px; object-fit: cover; transition: transform .45s ease; }
.community-post-image:hover img { transform: scale(1.015); }
.community-post-actions { display: flex; align-items: center; gap: 7px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--border); }
.create-post-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr); gap: 14px; align-items: start; }
.create-post-card { padding: 19px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.create-post-author { display: flex; align-items: center; gap: 9px; padding-bottom: 13px; margin-bottom: 15px; border-bottom: 1px solid var(--border); }
.create-post-author > div { display: flex; flex-direction: column; }
.create-post-author strong { font-size: 11.5px; }
.create-post-author small { color: var(--muted); font-size: 9px; }
.post-image-drop { margin-bottom: 12px; }
.post-image-preview { margin: 12px 0; overflow: hidden; border-radius: 10px; }
.post-image-preview img { width: 100%; max-height: 400px; object-fit: contain; background: var(--surface-2); }
.create-post-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 13px; border-top: 1px solid var(--border); }
.create-post-aside { padding: 19px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.create-post-aside h2 { margin: 5px 0 12px; font-family: var(--font-display); font-size: 21px; letter-spacing: -.04em; }
.rules-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.rules-list li { display: flex; gap: 7px; align-items: flex-start; color: var(--muted); font-size: 10px; line-height: 1.55; }
.rules-list .icon { width: 13px; height: 13px; color: var(--green); margin-top: 1px; }
.create-post-aside p { color: var(--muted); font-size: 10px; line-height: 1.6; }
.post-detail-card { padding: 20px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); }
.post-detail-card .community-post-head { align-items: flex-start; }
.post-detail-card .community-post-head form { margin: 0 0 0 auto; }
.post-detail-body { margin: 16px 0 0; color: var(--text-soft); font-size: 13px; line-height: 1.8; white-space: pre-line; }
.post-detail-image { margin-top: 15px; overflow: hidden; border-radius: 13px; background: var(--surface-2); }
.post-detail-image img { width: 100%; max-height: 720px; object-fit: contain; }
.community-post .comment { padding-left: 0; padding-right: 0; }
.activity-thumb img { object-fit: cover; }

/* ------------------------------------------------------------------ members */
.member-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.member-card { display: flex; flex-direction: column; min-height: 192px; padding: 17px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow-sm); transition: border-color .2s, transform .2s; }
.member-card:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.member-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.member-card-top > a { display: inline-flex; }
.member-name { margin-top: 10px; font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: -.03em; }
.member-name:hover { color: var(--accent); }
.member-bio { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; margin: 4px 0 12px; color: var(--muted); font-size: 10.5px; line-height: 1.55; }
.member-stats { display: flex; flex-wrap: wrap; gap: 9px; color: var(--muted); font-size: 8.5px; border-top: 1px solid var(--border); padding-top: 9px; }
.member-stats strong { color: var(--text-soft); font-weight: 600; }
.member-you { padding: 4px 7px; border-radius: 5px; background: var(--surface-2); color: var(--muted); font-size: 7px; font-weight: 700; letter-spacing: .12em; }
.member-card form { margin: 0; }
.follow-button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 28px; padding: 0 9px; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--surface); color: var(--text-soft); font-size: 9px; font-weight: 600; white-space: nowrap; }
.follow-button:hover { border-color: var(--accent); color: var(--accent); }
.follow-button.is-following { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.follow-button .icon { width: 12px; height: 12px; }

/* ------------------------------------------------------------------ profile */
.profile-hero { overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); }
.profile-cover { position: relative; height: 150px; overflow: hidden; background: var(--hero-bg); }
.profile-cover::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(90deg, #000, transparent 80%); }
.profile-cover-grid { position: absolute; inset: 0; background: radial-gradient(circle at 82% 40%, rgba(255,79,124,.25), transparent 34%); }
.profile-cover-word { position: absolute; right: 25px; bottom: 4px; color: rgba(255,255,255,.1); font-family: var(--font-display); font-size: 38px; line-height: .83; letter-spacing: -.06em; font-weight: 700; text-align: right; }
.profile-header { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 15px; padding: 0 21px 19px; }
.profile-avatar-wrap { margin-top: -50px; }
.profile-identity { min-width: 0; padding-bottom: 4px; }
.profile-identity h1 { margin: 4px 0 4px; font-family: var(--font-display); font-size: 27px; line-height: 1; letter-spacing: -.05em; }
.profile-identity p { max-width: 540px; margin: 0 0 7px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 13px; color: var(--muted); font-size: 9px; }
.profile-meta span { display: inline-flex; align-items: center; gap: 4px; }
.profile-meta strong { color: var(--text-soft); font-weight: 600; }
.profile-meta .icon { width: 13px; height: 13px; }
.profile-actions { display: flex; gap: 7px; align-items: center; padding-bottom: 4px; }
.profile-actions form { margin: 0; }
.profile-edit-card { padding: 18px; margin-top: 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.profile-edit-form { display: grid; grid-template-columns: 220px 1fr; gap: 20px; }
.avatar-uploader { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.avatar-preview .avatar { width: 96px; height: 96px; }
.avatar-uploader small { color: var(--muted); font-size: 8.5px; }
.avatar-uploader label { position: relative; overflow: hidden; }
.profile-edit-form .form-actions { grid-column: 1 / -1; }
.manage-section { margin-top: 22px; }
.manage-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); gap: 14px; align-items: start; }
.manage-card { padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); min-width: 0; }
.manage-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid var(--border); }
.manage-card h3 { margin: 0; font-family: var(--font-display); font-size: 17px; letter-spacing: -.03em; }
.manage-card p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.manage-post-list { display: flex; flex-direction: column; }
.manage-post-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.manage-post-row:last-child { border-bottom: 0; padding-bottom: 0; }
.manage-post-thumb { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; overflow: hidden; border-radius: 7px; background: var(--surface-2); color: var(--muted); }
.manage-post-thumb .icon { width: 17px; height: 17px; }
.manage-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.manage-post-copy { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.manage-post-copy a { overflow: hidden; color: var(--text-soft); font-size: 10.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.manage-post-copy a:hover { color: var(--accent); }
.manage-post-copy small { color: var(--muted); font-size: 8.5px; }
.danger-zone { border-color: color-mix(in srgb, var(--red) 28%, var(--border)); }
.danger-zone h3 { margin-top: 7px; color: var(--red); }
.delete-account-form { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.delete-account-form .field { gap: 4px; }
.delete-account-form .field span { font-size: 9px; }
.delete-account-form input { font-size: 10px; padding: 8px 9px; }
.button-danger { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 12px; border: 1px solid color-mix(in srgb, var(--red) 42%, var(--border)); border-radius: 7px; background: color-mix(in srgb, var(--red) 8%, transparent); color: var(--red); font-size: 10px; font-weight: 700; cursor: pointer; }
.button-danger:hover { background: color-mix(in srgb, var(--red) 15%, transparent); }
.activity-section { margin-top: 22px; }
.activity-list { border: 1px solid var(--border); border-radius: 15px; overflow: hidden; background: var(--surface); }
.activity-item { display: flex; align-items: center; gap: 11px; padding: 11px; border-bottom: 1px solid var(--border); }
.activity-item:last-child { border-bottom: 0; }
.activity-item:hover { background: var(--surface-2); }
.activity-thumb { width: 90px; height: 51px; flex: 0 0 auto; border-radius: 7px; overflow: hidden; background: var(--surface-3); }
.activity-thumb img { width: 100%; height: 100%; object-fit: cover; }
.activity-copy { flex: 1; min-width: 0; }
.activity-copy strong { display: block; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-copy p { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; margin: 2px 0 3px; color: var(--muted); font-size: 9.5px; }
.activity-copy small { color: var(--muted-2); font-size: 8px; }
.activity-item > .icon { width: 14px; height: 14px; color: var(--muted-2); }
.empty-inline { padding: 18px; border: 1px dashed var(--border-strong); border-radius: 12px; color: var(--muted); font-size: 11px; display: flex; align-items: center; gap: 8px; }
.empty-inline .icon { width: 17px; height: 17px; }

/* ------------------------------------------------------------------ notifications */
.notification-list { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface); }
.notification-item { position: relative; display: flex; align-items: center; gap: 11px; padding: 13px 14px; border-bottom: 1px solid var(--border); transition: background .18s; }
.notification-item:last-child { border-bottom: 0; }
.notification-item:hover { background: var(--surface-2); }
.notification-item.is-unread { background: color-mix(in srgb, var(--accent-soft) 65%, var(--surface)); }
.notification-item.is-unread:hover { background: var(--accent-soft); }
.notification-avatar { position: relative; flex: 0 0 auto; }
.notification-kind { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; display: grid; place-items: center; border: 2px solid var(--surface); border-radius: 50%; background: var(--accent); color: #fff; }
.notification-kind .icon { width: 9px; height: 9px; }
.kind-follow { background: var(--green); }
.notification-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.notification-copy strong { font-size: 11px; font-weight: 600; }
.notification-snippet { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; color: var(--text-soft); font-size: 10px; }
.notification-time { color: var(--muted); font-size: 8.5px; }
.notification-thumb { position: relative; width: 88px; height: 50px; flex: 0 0 auto; border-radius: 7px; overflow: hidden; background: var(--surface-3); }
.notification-thumb img { width: 100%; height: 100%; object-fit: cover; }
.notification-thumb i { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.18); }
.notification-thumb .icon { width: 14px; height: 14px; }
.notification-arrow { width: 20px; height: 20px; display: grid; place-items: center; color: var(--muted-2); }
.notification-arrow .icon { width: 14px; height: 14px; }
.unread-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.settings-card { padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 14px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.switch-row:first-child { padding-top: 2px; }
.switch-copy { display: flex; flex-direction: column; gap: 2px; }
.switch-copy strong { font-size: 12px; }
.switch-copy small { color: var(--muted); font-size: 10px; }
.switch { position: relative; width: 40px; height: 23px; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { position: absolute; inset: 0; border-radius: 30px; background: var(--surface-3); transition: background .2s; }
.switch i::after { content: ''; position: absolute; width: 17px; height: 17px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(17px); }
.settings-actions { display: flex; align-items: center; gap: 16px; margin-top: 17px; }
.info-strip { display: flex; gap: 9px; align-items: flex-start; margin-top: 14px; padding: 12px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); color: var(--muted); font-size: 10px; }
.info-strip .icon { width: 15px; height: 15px; flex: 0 0 auto; color: var(--accent); }
.info-strip p { margin: 0; }

/* ------------------------------------------------------------------ about + support */
.about-hero { display: grid; grid-template-columns: minmax(0, 1fr) 155px; gap: 30px; align-items: center; padding: 32px; border-radius: 20px; background: var(--hero-bg); color: #fff; margin-bottom: 16px; }
.about-hero h1 { margin: 11px 0 11px; font-family: var(--font-display); font-size: clamp(30px, 4vw, 49px); line-height: 1.02; letter-spacing: -.06em; font-weight: 600; }
.about-hero h1 em { color: var(--accent); font-style: normal; }
.about-hero p { max-width: 640px; margin: 0 0 20px; color: rgba(255,255,255,.63); font-size: 12px; line-height: 1.75; }
.about-hero .eyebrow { color: rgba(255,255,255,.5); }
.about-hero .button-ghost { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.17); }
.about-seal { display: flex; justify-content: center; color: var(--accent); filter: drop-shadow(0 15px 30px rgba(228,56,101,.25)); }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-bottom: 16px; }
.value-card { padding: 19px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); }
.value-icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); margin-bottom: 13px; }
.value-icon .icon { width: 18px; height: 18px; }
.value-card h2 { margin: 0 0 5px; font-family: var(--font-display); font-size: 15px; line-height: 1.3; letter-spacing: -.03em; }
.value-card p { margin: 0; color: var(--muted); font-size: 10.5px; line-height: 1.7; }
.mission-panel { padding: 27px 30px; border: 1px solid var(--border); border-radius: 17px; background: var(--surface); margin-bottom: 16px; }
.mission-panel h2 { margin: 9px 0 9px; font-family: var(--font-display); font-size: clamp(22px, 3vw, 31px); line-height: 1.1; letter-spacing: -.05em; }
.mission-panel > p { max-width: 750px; margin: 0; color: var(--text-soft); font-size: 12px; line-height: 1.8; }
.mission-points { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 9.5px; }
.mission-points span { display: inline-flex; gap: 5px; align-items: center; }
.mission-points .icon { width: 13px; height: 13px; color: var(--green); }
.community-callout, .support-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 28px; border: 1px solid var(--border); border-radius: 17px; background: var(--surface); }
.community-callout h2, .support-bottom h2 { margin: 5px 0 4px; font-family: var(--font-display); font-size: 23px; line-height: 1.1; letter-spacing: -.045em; }
.community-callout p, .support-bottom p { margin: 0; color: var(--muted); font-size: 10.5px; }
.community-callout-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.support-hero { padding: 37px 3px 27px; }
.support-hero h1 { margin: 9px 0 8px; font-family: var(--font-display); font-size: clamp(36px, 5vw, 56px); line-height: .98; letter-spacing: -.06em; }
.support-hero p { max-width: 510px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.support-note { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); margin-bottom: 16px; }
.support-note-icon { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.support-note-icon .icon { width: 18px; height: 18px; }
.support-note strong { font-size: 12px; }
.support-note p { margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.crypto-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; min-width: 0; }
.crypto-card { min-width: 0; overflow: hidden; padding: 21px; border: 1px solid var(--border); border-radius: 17px; background: var(--surface); }
.crypto-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.crypto-logo { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 50%; }
.crypto-logo .icon { width: 37px; height: 37px; }
.crypto-btc { color: #f7931a; }
.crypto-xmr { color: #f26822; }
.crypto-head h2 { margin: 1px 0 0; font-family: var(--font-display); font-size: 20px; line-height: 1; letter-spacing: -.04em; }
.crypto-head .eyebrow { font-size: 7px; }
.dummy-tag { margin-left: auto; padding: 4px 6px; border: 1px solid var(--border); border-radius: 5px; color: var(--muted); font-size: 6.5px; font-weight: 700; letter-spacing: .1em; }
.crypto-card > p { margin: 0 0 14px; color: var(--muted); font-size: 10.5px; line-height: 1.7; }
.address-box { display: flex; min-width: 0; overflow: hidden; align-items: center; gap: 7px; padding: 8px 8px 8px 11px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); }
.address-box code { flex: 1 1 0; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-soft); font-family: 'SFMono-Regular', Consolas, monospace; font-size: 9px; }
.address-box .icon-button { width: 27px; height: 27px; }
.address-box .icon-button .icon { width: 14px; height: 14px; }
.crypto-card > .text-link { margin-top: 12px; }

/* ------------------------------------------------------------------ legal */
.legal-heading { max-width: 760px; }
.legal-heading p { max-width: 680px; }
.legal-card { padding: 26px 29px; border: 1px solid var(--border); border-radius: 17px; background: var(--surface); }
.legal-card section { padding: 15px 0; border-bottom: 1px solid var(--border); }
.legal-card section:first-child { padding-top: 0; }
.legal-card section:last-child { border-bottom: 0; padding-bottom: 0; }
.legal-card h2 { margin: 0 0 6px; font-family: var(--font-display); font-size: 16px; letter-spacing: -.025em; }
.legal-card p { margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.8; }
.legal-back { margin-top: 16px; }

/* ------------------------------------------------------------------ auth */
.page-auth .site-footer { display: none; }
.auth-shell { width: min(1080px, calc(100% - 40px)); margin: 37px auto 50px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 0; border: 1px solid var(--border); border-radius: 22px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg); }
.auth-visual { position: relative; min-height: 540px; padding: 42px; background: var(--hero-bg); color: #fff; overflow: hidden; }
.auth-visual::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(135deg, #000, transparent); }
.auth-visual::after { content: ''; position: absolute; right: -80px; bottom: -120px; width: 380px; height: 380px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 40px rgba(255,255,255,.02), 0 0 0 80px rgba(255,255,255,.015); }
.auth-visual-inner { position: relative; z-index: 1; max-width: 420px; }
.auth-visual .eyebrow { color: rgba(255,255,255,.55); }
.auth-visual h1 { margin: 16px 0 13px; font-family: var(--font-display); font-size: clamp(32px, 4.2vw, 52px); line-height: 1; letter-spacing: -.06em; font-weight: 600; }
.auth-visual h1 em { color: var(--accent); font-style: normal; }
.auth-visual p { margin: 0 0 22px; color: rgba(255,255,255,.6); font-size: 12px; line-height: 1.75; }
.auth-benefits { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.auth-benefits li { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.7); font-size: 10.5px; }
.auth-benefits .icon { width: 14px; height: 14px; color: var(--accent); }
.auth-game-link { display: flex; align-items: center; gap: 8px; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.5); font-size: 10px; }
.auth-game-link a { color: rgba(255,255,255,.75); display: inline-flex; align-items: center; gap: 5px; }
.auth-game-link a:hover { color: var(--accent); }
.auth-game-link .icon { width: 13px; height: 13px; }
.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 42px; }
.auth-card { width: 100%; max-width: 340px; }
.auth-card h2 { margin: 7px 0 4px; font-family: var(--font-display); font-size: 31px; letter-spacing: -.055em; line-height: 1.1; }
.auth-sub { margin: 0 0 21px; color: var(--muted); font-size: 10.5px; line-height: 1.65; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 13px; }
.field > span { color: var(--text-soft); font-size: 10px; font-weight: 600; }
.field > span small { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select { width: 100%; min-height: 38px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; outline: 0; background: var(--surface-2); color: var(--text); font-size: 11.5px; transition: border-color .2s, background .2s; }
.field textarea { resize: vertical; line-height: 1.55; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); background: var(--surface); }
.auth-card .button-full { margin-top: 3px; }
.auth-switch { margin: 15px 0 4px; color: var(--muted); font-size: 10.5px; text-align: center; }
.auth-switch a { color: var(--accent); font-weight: 600; }
.auth-small { margin: 8px 0 0; color: var(--muted-2); font-size: 8.5px; line-height: 1.5; text-align: center; }
.auth-small code { color: var(--text-soft); }

/* ------------------------------------------------------------------ admin */
.page-admin .site-footer { display: none; }
.admin-shell { width: min(1260px, calc(100% - 44px)); margin: 27px auto 46px; }
.admin-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.admin-top h1 { margin: 6px 0 3px; font-family: var(--font-display); font-size: 32px; line-height: 1.1; letter-spacing: -.055em; }
.admin-top p { margin: 0; color: var(--muted); font-size: 11px; }
.admin-top-actions { display: flex; gap: 7px; align-items: center; }
.admin-top-actions form { margin: 0; }
.admin-flash { margin-bottom: 14px; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 11px; margin-bottom: 14px; }
.admin-stats > div { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.admin-stats span { color: var(--muted); font-size: 7px; font-weight: 700; letter-spacing: .16em; }
.admin-stats strong { font-family: var(--font-display); font-size: 25px; line-height: 1; letter-spacing: -.04em; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 14px; align-items: start; margin-bottom: 14px; }
.admin-panel { padding: 19px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); }
.admin-live { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 7px; font-weight: 700; letter-spacing: .12em; }
.admin-live i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.admin-form { margin-top: 6px; }
.preset-row { display: flex; flex-wrap: wrap; gap: 5px; margin: -3px 0 12px; }
.preset-row button { min-height: 24px; padding: 0 7px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface-2); color: var(--muted); font-size: 8.5px; }
.preset-row button:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.drop-file { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-height: 116px; padding: 14px; border: 1px dashed var(--border-strong); border-radius: 10px; background: var(--surface-2); cursor: pointer; transition: border-color .2s, background .2s; }
.drop-file:hover { border-color: var(--accent); background: var(--accent-soft); }
.drop-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-file-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: var(--surface); color: var(--accent); margin-bottom: 4px; box-shadow: var(--shadow-sm); }
.drop-file-icon .icon { width: 16px; height: 16px; }
.drop-file strong { font-size: 10.5px; }
.drop-file strong small { color: var(--muted); font-size: 8px; font-weight: 400; }
.drop-file small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.drop-file em { margin-top: 3px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--accent); font-size: 8px; font-style: normal; }
.upload-progress { margin-top: 13px; }
.upload-progress > div { height: 7px; border-radius: 20px; background: var(--surface-3); overflow: hidden; }
.upload-progress > div span { display: block; width: 0%; height: 100%; background: linear-gradient(90deg, var(--accent), #ff9db7); border-radius: inherit; transition: width .15s; }
.upload-progress p { display: flex; gap: 8px; margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.upload-progress strong { color: var(--text-soft); }
.upload-error { margin-top: 10px; padding: 8px 10px; border: 1px solid color-mix(in srgb, var(--red) 27%, transparent); border-radius: 7px; background: color-mix(in srgb, var(--red) 8%, transparent); color: var(--red); font-size: 10px; }
.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 15px; }
.admin-form-note { color: var(--muted); font-size: 8.5px; }
.admin-tips ol { margin: 12px 0 16px; padding-left: 18px; color: var(--muted); font-size: 10px; line-height: 1.75; }
.admin-tips li { margin-bottom: 4px; }
.admin-quote { padding: 12px; border-left: 2px solid var(--accent); background: var(--surface-2); color: var(--text-soft); font-family: var(--font-display); font-size: 12px; line-height: 1.5; }
.admin-quote + .rail-text-link { margin-top: 15px; }
.admin-library { margin-top: 0; }
.admin-posts-library { margin-top: 14px; }
.admin-video-list { display: flex; flex-direction: column; }
.admin-video-row { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.admin-video-row:last-child { border-bottom: 0; padding-bottom: 0; }
.admin-thumb { position: relative; width: 115px; height: 65px; flex: 0 0 auto; overflow: hidden; border-radius: 7px; background: var(--surface-3); }
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-thumb span { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.14); }
.admin-thumb .icon { width: 15px; height: 15px; }
.admin-video-info { flex: 1; min-width: 0; }
.admin-video-info h3 { margin: 0 0 2px; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-video-info p { margin: 0 0 4px; color: var(--muted); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-video-meta { display: flex; flex-wrap: wrap; gap: 9px; color: var(--muted-2); font-size: 8px; }
.admin-row-actions { display: flex; gap: 3px; align-items: center; }
.admin-row-actions form { margin: 0; }
.account-actions .icon-button.danger:hover, .admin-row-actions .danger:hover { color: var(--red); background: color-mix(in srgb, var(--red) 9%, transparent); }
.icon-button.danger { color: var(--muted); }
.admin-edit-shell .admin-grid { grid-template-columns: minmax(0, 1fr) 280px; }
.edit-thumb-preview { margin: 9px 0 11px; overflow: hidden; border-radius: 9px; background: var(--surface-3); }
.edit-thumb-preview img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.admin-login-shell { min-height: calc(100vh - var(--header-height) - 100px); display: grid; place-items: center; padding: 35px 20px; }
.admin-login-card { padding: 28px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-lg); max-width: 380px; }
.admin-login-card .admin-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: var(--accent-soft); color: var(--accent); margin-bottom: 13px; }
.admin-login-card .admin-mark .icon { width: 20px; height: 20px; }
.admin-login-card .text-link { margin-top: 15px; width: 100%; justify-content: center; }

/* ------------------------------------------------------------------ modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: var(--overlay); backdrop-filter: blur(6px); }
.modal-backdrop[hidden] { display: none; }
.modal-card { position: relative; width: min(430px, 100%); padding: 29px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-lg); animation: modal-in .22s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(9px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-close { position: absolute; top: 11px; right: 11px; width: 30px; height: 30px; border: 0; border-radius: 7px; background: var(--surface-2); color: var(--muted); display: grid; place-items: center; }
.modal-close .icon { width: 15px; height: 15px; }
.modal-card h2 { margin: 8px 0 8px; font-family: var(--font-display); font-size: 27px; letter-spacing: -.05em; line-height: 1.1; }
.modal-card p { margin: 0 0 20px; color: var(--muted); font-size: 11.5px; line-height: 1.7; }
.modal-card .eyebrow { color: var(--accent); }

/* ------------------------------------------------------------------ footer */
.site-footer { width: min(var(--content-max), 100%); margin: 0 auto; padding: 0 24px 30px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; padding-top: 17px; border-top: 1px solid var(--border); color: var(--muted); font-size: 8.5px; }
.footer-inner > span:first-child { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--text-soft); }
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--accent); }
.footer-legal { display: inline-flex; gap: 12px; }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--accent); }
.footer-disclaimer { margin-left: auto; color: var(--muted-2); }
.footer-notice { margin-top: 13px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.footer-notice strong { display: block; margin-bottom: 4px; color: var(--text-soft); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.footer-notice p { max-width: 1050px; margin: 0; color: var(--muted-2); font-size: 8.5px; line-height: 1.65; }
.footer-affiliation { border-color: color-mix(in srgb, var(--accent) 28%, var(--border)); background: color-mix(in srgb, var(--accent) 4%, var(--surface)); }
.footer-affiliation strong { color: var(--accent); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1220px) {
  .page-shell { grid-template-columns: 206px minmax(0, 1fr); }
  .right-rail { display: none; }
  .search-form { width: min(280px, 25vw); }
}
@media (max-width: 1080px) {
  .game-cta span { display: none; }
  .game-cta { width: 45px; padding: 0; justify-content: center; }
  .nav-mini span { display: none; }
  .search-form { width: min(260px, 27vw); }
  .brand { min-width: 0; }
  .brand-copy small { display: none; }
}
@media (max-width: 900px) {
  :root { --header-height: 62px; }
  .topbar-inner { gap: 9px; padding: 0 14px; }
  .mobile-menu-toggle { display: inline-grid !important; }
  .brand-mark-large { width: 33px; height: 33px; }
  .brand-copy strong { font-size: 14px; }
  .search-form { display: none; }
  .page-shell { display: block; padding: 16px 14px 26px; }
  .sidebar { position: fixed; z-index: 80; top: 0; bottom: 0; left: 0; width: 270px; max-height: none; border-radius: 0 16px 16px 0; transform: translateX(-105%); transition: transform .25s ease; box-shadow: var(--shadow-lg); padding: 16px 12px; }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-close { display: inline-grid; }
  .sidebar::after { content: ''; position: fixed; inset: 0; z-index: -1; background: var(--overlay); opacity: 0; pointer-events: none; transition: opacity .25s; }
  body.sidebar-open .sidebar::after { opacity: 1; pointer-events: auto; }
  .nav-mini { display: none; }
  .create-button span { display: none; }
  .create-button { width: 35px; padding: 0; justify-content: center; }
  .topbar-actions { gap: 2px; }
  .login-link { display: none; }
  .signup-link { padding: 7px 9px; font-size: 9px; }
  .feed-hero { grid-template-columns: 1fr; padding: 23px 21px; }
  .feed-hero-art { display: none; }
  .feed-hero h1 { font-size: clamp(29px, 7vw, 38px); }
  .member-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .auth-shell { grid-template-columns: 1fr; width: min(520px, calc(100% - 28px)); margin: 20px auto; }
  .auth-visual { min-height: auto; padding: 27px 26px; }
  .auth-visual h1 { font-size: 33px; }
  .auth-benefits, .auth-game-link { display: none; }
  .auth-form-wrap { padding: 27px 26px 30px; }
  .crypto-grid { grid-template-columns: 1fr; }
  .community-callout, .support-bottom { align-items: flex-start; flex-direction: column; }
  .profile-header { grid-template-columns: auto minmax(0,1fr); }
  .profile-actions { grid-column: 1 / -1; padding-left: 127px; }
  .profile-edit-form { grid-template-columns: 1fr; }
  .profile-edit-form .form-actions { grid-column: auto; }
  .manage-grid { grid-template-columns: 1fr; }
  .manage-card-head { flex-direction: column; }
  .admin-shell { width: calc(100% - 28px); margin-top: 20px; }
  .admin-grid, .admin-edit-shell .admin-grid { grid-template-columns: 1fr; }
  .create-post-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-top { align-items: flex-start; flex-direction: column; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-disclaimer { margin-left: 0; }
  .notice-card { align-items: flex-start; flex-wrap: wrap; }
  .notice-card > a { margin-left: 44px; }
}
@media (max-width: 620px) {
  .topbar-actions .theme-toggle, .topbar-actions .bell-button { width: 31px; }
  .brand-copy strong { font-size: 13px; }
  .signup-link { display: none; }
  .game-cta { width: 41px; height: 41px; }
  .post-head { gap: 7px; }
  .post-type-badge { display: none; }
  .post-title { font-size: 17px; }
  .post-media { border-radius: 9px; }
  .post-actions { gap: 2px; }
  .action-meta { display: none; }
  .feed-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .feed-heading-side { align-items: flex-start; }
  .feed-heading-meta { font-size: 8px; }
  .sort-switch { align-self: flex-start; }
  .notice-card > a { margin-left: 0; }
  .profile-cover { height: 110px; }
  .profile-header { grid-template-columns: 1fr; padding: 0 17px 18px; }
  .profile-avatar-wrap { margin-top: -45px; }
  .profile-avatar-wrap .avatar { width: 87px; height: 87px; }
  .profile-identity h1 { font-size: 23px; }
  .profile-actions { padding-left: 0; flex-wrap: wrap; }
  .profile-meta { gap: 9px; }
  .comment-login-callout { align-items: flex-start; flex-wrap: wrap; }
  .comment-login-callout > div { flex: 1 1 100%; order: 2; }
  .comment-login-callout .callout-icon { order: 0; }
  .comment-login-callout .button { order: 3; margin-left: 45px; }
  .comment-login-callout .text-link { order: 4; margin-left: auto; }
  .player-controls { padding: 28px 9px 8px; gap: 5px; }
  .player-volume { display: none; }
  .player-time { font-size: 8px; min-width: 27px; }
  .player-big-play > span { width: 53px; height: 53px; }
  .video-actions { gap: 2px; }
  .like-label { display: none; }
  .video-action-spacer { display: none; }
  .video-actions .text-link { margin-left: auto; }
  .admin-top-actions { flex-wrap: wrap; }
  .upload-grid { grid-template-columns: 1fr; }
  .admin-video-row { align-items: flex-start; }
  .admin-thumb { width: 85px; height: 53px; }
  .admin-video-info p { display: none; }
  .admin-row-actions .icon-button { width: 28px; height: 28px; }
  .about-hero { grid-template-columns: 1fr; padding: 23px 21px; }
  .about-seal { display: none; }
  .mission-panel { padding: 21px; }
  .flash-wrap { top: calc(var(--header-height) + 8px); }
  .auth-card h2 { font-size: 27px; }
  .support-hero { padding-top: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}


/* ------------------------------------------------------------------ restored accent and utilities */
:root {
  --accent: #e73348;
  --accent-strong: #c92539;
  --accent-soft: #fdeaec;
  --accent-rgb: 231, 51, 72;
  --hero-bg:
    radial-gradient(circle at 82% 20%, rgba(231, 51, 72, .3), transparent 37%),
    linear-gradient(130deg, #12161f 0%, #1d1018 55%, #29101c 100%);
}
:root[data-theme="dark"] {
  --accent: #e73348;
  --accent-strong: #ff5a6c;
  --accent-soft: #2a1115;
  --accent-rgb: 231, 51, 72;
  --hero-bg:
    radial-gradient(circle at 82% 20%, rgba(231, 51, 72, .25), transparent 37%),
    linear-gradient(130deg, #181b25 0%, #211119 55%, #2e0f1e 100%);
}
.brand-copy strong { font-size: 15px; }
.page-heading h1 .accent-word { color: var(--accent); }

/* Mobile create control stays circular. */
@media (max-width: 900px) {
  .topbar-actions .create-button {
    flex: 0 0 36px;
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }
  .topbar-actions .create-button .icon { margin: 0; }
}

/* Post editing */
.post-head-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.post-head-actions form { margin: 0; }
.post-head-actions .icon-button { width: 30px; height: 30px; }
.manage-post-actions { display: flex; align-items: center; gap: 1px; flex: 0 0 auto; }
.manage-post-actions form { margin: 0; }
.manage-post-actions .icon-button { width: 29px; height: 29px; }
.current-post-photo { margin: 4px 0 10px; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.current-post-photo img { width: 100%; max-height: 300px; object-fit: contain; }
.check-row { display: flex; align-items: center; gap: 8px; margin: 0 0 13px; color: var(--muted); font-size: 10px; cursor: pointer; }
.check-row input { width: 14px; height: 14px; accent-color: var(--accent); }
.post-detail-card .post-head-actions form { margin: 0; }
.post-edit-link { min-height: 28px; padding: 0 7px; font-size: 9.5px; }

/* Infinite scroll sentinel */
.infinite-sentinel { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 22px 0 6px; padding: 15px; border-top: 1px solid var(--border); color: var(--muted); font-size: 10px; cursor: pointer; }
.infinite-sentinel::before { content: ''; width: 13px; height: 13px; border: 2px solid var(--border-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.infinite-sentinel.is-loading { color: var(--text-soft); }


.brand-suffix { color: var(--accent); }
