/* Website 1.0 — shared styles for mirrored public pages (token-based) */

main.container {
  padding-bottom: 2rem;
}

/* ── Heroes (rules, tutorial, connect, etc.) ── */
body.v1-site .rules-hero,
body.v1-site .content-hero {
  border-color: var(--v1-border-strong);
  overflow: hidden;
}

body.v1-site .rules-hero .tag,
body.v1-site .content-hero .tag,
body.v1-site .lb-hub-hero .tag {
  color: var(--v1-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 600;
}

body.v1-site .rules-hero h2,
body.v1-site .content-hero h2,
body.v1-site .lb-hub-title {
  font-family: "Cinzel", serif;
  background: linear-gradient(180deg, #fff4d4 0%, var(--v1-gold-bright) 45%, var(--v1-gold-dim) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 14px rgba(0, 0, 0, 0.4));
}

body.v1-site .guide-legend {
  border-color: var(--v1-border);
  background: rgba(8, 6, 4, 0.65);
}

/* ── Leaderboard hub ── */
body.v1-site .lb-hub-hero {
  border-color: var(--v1-border-strong);
  background:
    linear-gradient(135deg, rgba(10, 8, 6, 0.94), rgba(4, 3, 2, 0.96)),
    radial-gradient(ellipse 60% 80% at 85% 20%, rgba(201, 162, 39, 0.07), transparent 55%);
}

body.v1-site .lb-quick-stats,
body.v1-site .panel-inner-elevated {
  border-color: var(--v1-border);
}

body.v1-site .lb-stat-pill strong {
  color: var(--v1-gold-bright);
}

body.v1-site .lb-unified-hub-bar,
body.v1-site .lb-progress-row .panel {
  border-color: var(--v1-border);
}

body.v1-site .leaderboard-table th {
  color: var(--v1-gold-bright);
  font-family: "Cinzel", serif;
}

/* ── News ── */
body.v1-site .news-page-lead {
  color: var(--v1-text-muted);
  margin-bottom: 0.75rem;
}

body.v1-site .news-page-section,
body.v1-site .news-article-slot .panel {
  border-color: var(--v1-border);
}

body.v1-site .news-section-kicker {
  color: var(--v1-gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

body.v1-site .news-section-head h2 {
  font-family: "Cinzel", serif;
  color: var(--v1-ui-active);
}

body.v1-site .news-feed-item {
  border-color: rgba(201, 162, 39, 0.14);
  transition: border-color 0.2s, background 0.2s;
}

body.v1-site .news-feed-item:hover {
  border-color: var(--v1-border-strong);
  background: rgba(201, 162, 39, 0.04);
}

/* ── Gallery / builds ── */
body.v1-site .gallery-card,
body.v1-site .player-build-card,
body.v1-site .build-card {
  border-color: var(--v1-border);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

body.v1-site .gallery-card:hover,
body.v1-site .player-build-card:hover {
  border-color: var(--v1-border-strong);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45), 0 0 18px rgba(201, 162, 39, 0.06);
}

/* ── FAQ / legal / connect ── */
body.v1-site .faq-item,
body.v1-site .rules-section,
body.v1-site .legal-section {
  border-color: var(--v1-border);
}

body.v1-site .rules-section h3,
body.v1-site .faq-item h3 {
  font-family: "Cinzel", serif;
  color: var(--v1-gold-bright);
}

body.v1-site .rules-toc a.is-active,
body.v1-site .rules-toc a:hover {
  color: var(--v1-gold-bright);
  border-color: var(--v1-border-strong);
}

/* ── Hub dashboard pages (legacy; economy hub overrides sidebar) ── */
body.v1-site.layout-hub-dashboard {
  min-height: 100vh;
}

body.v1-site.layout-hub-dashboard main.account-hub {
  min-height: 0;
  overflow: visible;
}

body.v1-site.layout-hub-dashboard .account-hub-main {
  overflow: visible;
  max-height: none;
}

body.v1-site .store-item-card:not(.inventory-stack-card),
body.v1-site .inventory-stack-card {
  border-color: var(--v1-border);
  background: linear-gradient(168deg, rgba(12, 10, 8, 0.96), rgba(6, 5, 4, 0.98));
}

body.v1-site .store-item-card:not(.inventory-stack-card):hover {
  border-color: var(--v1-border-strong);
}

body.v1-site .blood-cost,
body.v1-site .wallet-balance-value {
  color: var(--v1-gold-bright);
}

body.v1-site .hub-auth-gate,
body.v1-site .inventory-empty {
  border-color: var(--v1-border);
  text-align: center;
}

body.v1-site .wallet-intro-card h3,
body.v1-site .account-hub-main-head h2,
body.v1-site .account-hub-main-head h3 {
  font-family: "Cinzel", serif;
  color: var(--v1-gold-bright);
}

/* Login */
body.v1-site .login-panel,
body.v1-site .login-card {
  border-color: var(--v1-border-strong);
}

body.v1-site .login-panel h2 {
  font-family: "Cinzel", serif;
  color: var(--v1-gold-bright);
}

/* Promotions */
body.v1-site .promo-tier-card,
body.v1-site .promotion-card {
  border-color: var(--v1-border);
}

/* Scrap wheel */
body.v1-site .scrap-wheel-panel,
body.v1-site .wheel-outer {
  border-color: var(--v1-border);
}

body.v1-site .chip:not(.muted-chip),
body.v1-site .badge:not(.muted) {
  border-color: rgba(201, 162, 39, 0.28);
}

body.v1-site a:not(.btn):not(.nav-links a):not(.v1-economy-tab) {
  color: var(--v1-link);
}

body.v1-site a:not(.btn):not(.nav-links a):not(.v1-economy-tab):hover {
  color: var(--v1-link-hover);
}

body.v1-site main.container > .panel.v1-reveal,
body.v1-site main.container > section.panel.v1-reveal {
  margin-bottom: 0;
}

body.v1-site .rules-layout .rules-main > .panel {
  border-color: var(--v1-border);
}

/* Hub sidebar — Steam profile photo (no portrait picker in v1) */
body.v1-site .account-sidebar-avatar.v1-steam-avatar-only {
  cursor: default;
  pointer-events: none;
}

body.v1-site .account-sidebar-avatar.v1-steam-avatar-only:hover {
  border-color: rgba(201, 162, 39, 0.78);
  box-shadow: 0 0 0 1px rgba(42, 32, 18, 0.45);
}

body.v1-site .account-sidebar-avatar-img {
  border-radius: 50%;
}

/* Account settings inside economy hub — utility typography */
body.v1-economy-hub .account-hub-main .rules-section h3,
body.v1-economy-hub .account-hub-main .rules-section h4 {
  font-family: Inter, system-ui, sans-serif;
  color: var(--v1-ui-active);
}

body.v1-economy-hub main.v1-economy-main.account-hub,
body.v1-economy-hub main.v1-economy-main .account-hub-main {
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 2vw, 1.1rem);
}

/* Account settings — single panel, tabbed */
body.v1-economy-hub .v1-account-panel {
  padding: 0 !important;
  overflow: hidden;
}

body.v1-economy-hub .v1-account-panel__toolbar {
  padding: 0.55rem 0.75rem 0 !important;
  margin: 0;
  border: 0;
  background: transparent;
}

body.v1-economy-hub .v1-profile-tab-panel {
  padding: 0.75rem 0.85rem 0.9rem;
}

body.v1-economy-hub .v1-profile-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  align-items: start;
}

body.v1-economy-hub .profile-supporter-roles-form label + label {
  margin-top: 0.55rem;
}

body.v1-economy-hub .profile-supporter-roles-actions {
  margin-top: 0.65rem;
  flex-wrap: wrap;
}

body.v1-economy-hub .v1-profile-settings-col h3 {
  margin: 0 0 0.35rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--v1-ui-active);
}

body.v1-economy-hub .v1-profile-settings-col h3 i {
  margin-right: 0.3rem;
}

body.v1-economy-hub .v1-profile-stats-title {
  margin: 0 0 0.2rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--v1-ui-active);
}

body.v1-economy-hub .v1-profile-stats-lead {
  margin: 0 0 0.65rem;
}

body.v1-economy-hub .v1-profile-stats-grid.blueprint-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.55rem;
}

@media (max-width: 980px) {
  body.v1-economy-hub .v1-profile-settings-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  body.v1-economy-hub .v1-profile-settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body.v1-site .lb-hub-hero {
    gap: 0.75rem;
  }
}

/* ── Dual sanctuaries (Vanilla Plus + Pure) ── */
body.v1-site .v1-sanctuary-lead {
  margin: -0.15rem 0 0.85rem;
  max-width: 40rem;
}

body.v1-site .v1-sanctuary-grid {
  margin-bottom: 1.5rem;
}

body.v1-site .v1-sanctuary-card {
  border-color: rgba(201, 162, 39, 0.28) !important;
  background:
    linear-gradient(165deg, rgba(18, 14, 10, 0.96), rgba(6, 5, 4, 0.98)) !important;
  box-shadow: none;
}

body.v1-site .v1-sanctuary-card .tag {
  color: var(--v1-gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 600;
}

body.v1-site .v1-sanctuary-card h3 {
  font-family: "Cinzel", serif;
  color: #f0e4c8;
  margin: 0.35rem 0 0.55rem;
}

body.v1-site .v1-sanctuary-card .ip {
  font-family: ui-monospace, Consolas, monospace;
  color: #e8dcc4;
}

body.v1-site .v1-sanctuary-card .connect-address-card {
  margin: 0.75rem 0;
  border-color: rgba(201, 162, 39, 0.22);
  background: rgba(4, 3, 2, 0.55);
}

body.v1-site .v1-sanctuary-note {
  margin: 0.65rem 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(201, 162, 39, 0.22);
  background: rgba(4, 3, 2, 0.45);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.85rem;
}

body.v1-site .v1-sanctuary-note .chip {
  border-color: rgba(201, 162, 39, 0.35);
  color: #e8c547;
  background: rgba(12, 10, 8, 0.85);
}

body.v1-site .v1-sanctuary-note p {
  margin: 0;
  flex: 1 1 12rem;
}

body.v1-site .sanctuary-compare-wrap {
  overflow-x: auto;
  margin: 0.75rem 0;
  border-radius: 0.75rem;
  border: 1px solid rgba(201, 162, 39, 0.22);
}

body.v1-site .sanctuary-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

body.v1-site .sanctuary-compare-table th,
body.v1-site .sanctuary-compare-table td {
  padding: 0.55rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(201, 162, 39, 0.14);
  white-space: normal;
}

body.v1-site .sanctuary-compare-table thead th {
  font-family: "Cinzel", serif;
  color: #f0d57d;
  background: rgba(4, 3, 2, 0.6);
}

body.v1-site .sanctuary-compare-table tbody th[scope="row"] {
  color: #e8dcc4;
  font-weight: 600;
  white-space: nowrap;
}

body.v1-site .sanctuary-compare-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

body.v1-site .sanctuary-compare-table tbody tr:last-child th,
body.v1-site .sanctuary-compare-table tbody tr:last-child td {
  border-bottom: none;
}

body.v1-site .rules-realm-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

body.v1-site .rules-realm-btn {
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: #b8aa92;
  background: rgba(8, 7, 6, 0.7);
  cursor: pointer;
}

body.v1-site .rules-realm-btn.is-active {
  color: #0a0906;
  background: #c9a227;
  border-color: #c9a227;
}

body.v1-site .rules-realm-hint {
  margin: 0 0 0.65rem;
}

/* Essential Commands table — full-width rows (base .rules-table lives in hub CSS; rules page does not load it) */
body.v1-site .rules-page--display .rules-table-wrap {
  width: 100%;
  max-width: 100%;
  margin-top: 0.45rem;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--gold, #c9a227) 28%, transparent);
  background: color-mix(in srgb, var(--bg, #080706) 55%, transparent);
}

body.v1-site .rules-page--display .rules-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border: 0;
  background: transparent;
}

body.v1-site .rules-page--display .rules-table th,
body.v1-site .rules-page--display .rules-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  vertical-align: middle;
  border-top: 1px solid var(--line, #3a2f26);
}

body.v1-site .rules-page--display .rules-table thead th {
  color: var(--gold, #c9a227);
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--gold, #c9a227) 10%, transparent);
  border-top: 0;
}

body.v1-site .rules-page--display .rules-table th:first-child,
body.v1-site .rules-page--display .rules-table td:first-child {
  width: 38%;
}

body.v1-site .rules-page--display .rules-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.035);
}

body.v1-site .rules-page--display .rules-table tbody tr:hover {
  background: color-mix(in srgb, var(--gold, #c9a227) 8%, transparent);
}

body.v1-site .rules-page--display .rules-table code {
  display: inline-block;
  color: var(--gold, #f0d57d);
  background: rgba(0, 0, 0, 0.35);
  padding: 0.14rem 0.42rem;
  border-radius: 0.35rem;
  border: 1px solid color-mix(in srgb, var(--gold, #c9a227) 22%, transparent);
  font-size: 0.88rem;
  white-space: nowrap;
}

@media (max-width: 640px) {
  body.v1-site .rules-page--display .rules-table,
  body.v1-site .rules-page--display .rules-table thead,
  body.v1-site .rules-page--display .rules-table tbody,
  body.v1-site .rules-page--display .rules-table tr,
  body.v1-site .rules-page--display .rules-table th,
  body.v1-site .rules-page--display .rules-table td {
    display: block;
    width: 100%;
  }

  body.v1-site .rules-page--display .rules-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  body.v1-site .rules-page--display .rules-table tbody tr {
    padding: 0.55rem 0.75rem 0.7rem;
    border-top: 1px solid var(--line, #3a2f26);
  }

  body.v1-site .rules-page--display .rules-table tbody tr:first-child {
    border-top: 0;
  }

  body.v1-site .rules-page--display .rules-table td {
    padding: 0.15rem 0;
    border-top: 0;
  }

  body.v1-site .rules-page--display .rules-table td:last-child {
    color: var(--text-muted, #b8a98d);
    font-size: 0.9rem;
  }
}

@media (max-width: 900px) {
  body.v1-site main.rules-page--display .rules-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--space-band);
  }

  body.v1-site main.rules-page--display .rules-sidebar,
  body.v1-site main.rules-page--display .rules-main {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body.v1-site main.rules-page--display .rules-section-card,
  body.v1-site main.rules-page--display .rules-toolbar,
  body.v1-site main.rules-page--display .rules-toc {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 720px) {
  body.v1-site .v1-sanctuary-grid.home-realm-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Sanctuary mode chrome ── */
body.v1-site .v1-sanctuary-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-right: 0.35rem;
}

body.v1-site .v1-sanctuary-switch__current {
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #e8c547;
  white-space: nowrap;
}

body.v1-site .v1-sanctuary-switch__btn {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(201, 162, 39, 0.32);
  border-radius: 6px;
  padding: 0.28rem 0.55rem;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  color: #e4d4b0;
  background: rgba(8, 7, 6, 0.85);
  cursor: pointer;
}

body.v1-site .v1-sanctuary-switch__btn:hover {
  border-color: rgba(201, 162, 39, 0.55);
  color: #f5e6b8;
  background: rgba(201, 162, 39, 0.08);
}

body.v1-site .v1-sanctuary-switch__btn--ghost {
  border-color: transparent;
  background: transparent;
  color: #9a8f7a;
}

body.v1-site .v1-sanctuary-switch__btn--ghost:hover {
  color: #e4d4b0;
  border-color: rgba(201, 162, 39, 0.28);
}

body.v1-site .v1-sanctuary-switch__btn-label--short {
  display: none;
}

@media (max-width: 480px) {
  body.v1-site .v1-sanctuary-switch__btn-label--long {
    display: none;
  }

  body.v1-site .v1-sanctuary-switch__btn-label--short {
    display: inline;
  }

  body.v1-site .v1-sanctuary-switch__btn--ghost {
    display: none;
  }

  body.v1-sanctuary-vanilla-plus .v1-sanctuary-switch__current,
  body.v1-sanctuary-pure .v1-sanctuary-switch__current {
    display: none;
  }

  body.v1-site .topbar .crest .small {
    display: none;
  }

  body.v1-site .topbar .crest h1 {
    font-size: 0.95rem;
    line-height: 1.2;
  }

  body.v1-site .crest-logo {
    width: 40px;
    height: 40px;
  }
}

body.v1-site .nav-links a.is-sanctuary-hidden,
body.v1-site .nav-links a.is-story-hidden,
body.v1-site [data-sanctuary-scope].is-sanctuary-hidden,
body.v1-site [hidden].is-sanctuary-hidden,
body.v1-site [hidden].is-story-hidden,
body.v1-site .v1-hero[data-sanctuary-scope].is-sanctuary-hidden,
body.v1-site .v1-hero.hero.panel[hidden],
body.v1-site .v1-hero.hero.panel.is-sanctuary-hidden {
  display: none !important;
}

body.v1-sanctuary-unset #v1-home-after-pick {
  display: none !important;
}

body.v1-sanctuary-vanilla-plus [data-sanctuary-scope="chooser"],
body.v1-sanctuary-pure [data-sanctuary-scope="chooser"] {
  display: none !important;
}

/* Must beat .v1-hero.hero.panel.hero-panel { display: grid !important } */
body.v1-sanctuary-vanilla-plus .v1-hero.hero.panel[data-sanctuary-scope="pure"],
body.v1-sanctuary-pure .v1-hero.hero.panel[data-sanctuary-scope="vanilla-plus"],
body.v1-sanctuary-vanilla-plus [data-sanctuary-scope="pure"],
body.v1-sanctuary-pure [data-sanctuary-scope="vanilla-plus"] {
  display: none !important;
}

body.v1-site .v1-sanctuary-gate {
  margin: 1rem 0 1.25rem;
  border-color: rgba(201, 162, 39, 0.35) !important;
}

body.v1-site .v1-sanctuary-gate h2 {
  font-family: "Cinzel", serif;
  margin: 0.25rem 0 0.5rem;
}

body.v1-sanctuary-gated main.container > :not(#v1-sanctuary-gate) {
  display: none !important;
}

/* Steam login feedback — must be obvious (players often mistake nohistory for a Steam loop). */
body.v1-site #login-status-message.login-status-warning {
  color: #f0c674;
  border-left: 3px solid #c9a227;
  padding: 0.65rem 0.75rem;
  margin-top: 0.85rem;
  background: rgba(201, 162, 39, 0.12);
  border-radius: 0 0.35rem 0.35rem 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

body.v1-site #login-status-message.login-status-ok {
  color: #8fd49a;
  margin-top: 0.75rem;
}

/* Forum page — Discord-style: fixed category sidebar + wide main content */
body.v1-site .content-page.forum-page {
  max-width: none;
}

body.v1-site .forum-app {
  margin-top: 1.25rem;
}

body.v1-site .forum-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

body.v1-site .forum-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.85rem;
  position: sticky;
  top: 1rem;
}

body.v1-site .forum-sidebar .faq-category-chip {
  width: 100%;
  text-align: left;
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
}

body.v1-site .forum-main {
  min-width: 0;
}

@media (max-width: 860px) {
  body.v1-site .forum-layout {
    grid-template-columns: 1fr;
  }
  body.v1-site .forum-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  body.v1-site .forum-sidebar .faq-category-chip {
    width: auto;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  /* Vote arrows measured ~15x21px on a real phone — fine for a mouse, a
     genuine mis-tap risk for a thumb. Bump toward the 40-44px touch-target
     guideline without touching desktop's tighter, mouse-precise sizing. */
  body.v1-site .forum-vote-btn {
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
  }
}

body.v1-site .forum-list-toolbar {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

body.v1-site .forum-field {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

body.v1-site .forum-field input,
body.v1-site .forum-field select,
body.v1-site .forum-field textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(var(--surface-soft, #1a1612), var(--bg-alt, #0e0c0a));
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}

body.v1-site .forum-field input:focus,
body.v1-site .forum-field select:focus,
body.v1-site .forum-field textarea:focus {
  outline: none;
  border-color: rgba(201, 162, 39, 0.6);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.14);
}

body.v1-site .forum-thread-list {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

body.v1-site .forum-thread-item {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.15s ease, background 0.15s ease;
}

body.v1-site .forum-thread-item:hover {
  border-color: rgba(201, 162, 39, 0.4);
  background: rgba(201, 162, 39, 0.05);
}

/* Unread thread/category markers — small gold dot + brighter left edge on
   the thread row itself, since bold-vs-not is too subtle against this
   already-bold "strong" title styling to read as a state on its own. */
body.v1-site .forum-thread-item--unread {
  border-left: 2px solid var(--gold, #c9a227);
}

body.v1-site .forum-unread-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold, #c9a227);
  box-shadow: 0 0 5px rgba(201, 162, 39, 0.65);
  flex-shrink: 0;
}

body.v1-site .forum-sidebar .faq-category-chip .forum-unread-dot {
  margin-left: 0.4rem;
  vertical-align: middle;
}

body.v1-site .forum-thread-item-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: inherit;
  padding: 0.75rem 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font: inherit;
}

body.v1-site .forum-thread-item-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

body.v1-site .forum-thread-item-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.v1-site .forum-thread-item-btn:hover strong {
  color: #f0d57d;
}

/* Flair badges — small colored pills identifying a thread's category,
   Reddit-style. Colors are decorative groupings, not a status signal. */
/* Solid small rounded-rect badge, matching Reddit's flair chip shape
   (not a full pill — that read as a "status" badge, not a topic tag). */
body.v1-site .forum-flair {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

body.v1-site .forum-flair--announcements { background: #c9a227; color: #1a1400; }
body.v1-site .forum-flair--events { background: #ff5ac4; color: #2e0021; }
body.v1-site .forum-flair--general { background: #4a7fff; color: #ffffff; }
body.v1-site .forum-flair--questions { background: #2fae9e; color: #04211d; }
body.v1-site .forum-flair--builds { background: #9a6bff; color: #16072e; }
body.v1-site .forum-flair--bans-rules { background: #e05a5a; color: #2b0000; }
body.v1-site .forum-flair--suggestions { background: #4fbf63; color: #04210a; }
body.v1-site .forum-flair--bug-reports { background: #ff8c5a; color: #2a0e00; }
body.v1-site .forum-flair--off-topic { background: rgba(255, 255, 255, 0.16); color: var(--text); }

body.v1-site .forum-avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
}

body.v1-site .forum-avatar--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.8em;
}

body.v1-site .forum-post-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

body.v1-site .forum-post-meta-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

body.v1-site .forum-post-meta-primary {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
}

body.v1-site .forum-post-meta-secondary {
  font-size: 0.76rem;
}

body.v1-site .forum-post-meta-follow {
  margin-left: auto;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}

body.v1-site .forum-post-meta-follow:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

body.v1-site .forum-post-title {
  margin: 0 0 0.55rem;
  font-size: 1.3rem;
  line-height: 1.3;
  font-weight: 800;
  color: var(--text);
}

body.v1-site .forum-thread-category {
  margin: 0 0 0.75rem;
}

body.v1-site .forum-event-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin: 0 0 0.85rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 90, 196, 0.35);
  background: rgba(255, 90, 196, 0.08);
  color: var(--text);
  font-size: 0.88rem;
}

body.v1-site .forum-event-details i {
  color: #ff5ac4;
  margin-right: 0.3rem;
}

body.v1-site .forum-thread-posts {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0;
}

body.v1-site .forum-replies-label {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* OP card: a single bordered panel holding meta row, title, flair, body,
   poll, and the pill action row — mirrors a Reddit post card. */
body.v1-site .forum-post--op {
  padding: 1rem 1.1rem;
}

/* Replies: flush/borderless rows (no card), matching Reddit's comment
   list — depth is shown only by indent + a thin left guide line. */
body.v1-site .forum-post--reply {
  position: relative;
  padding: 0.6rem 0 0.6rem 0.85rem;
  margin-left: calc(var(--reply-depth, 0) * 1.35rem);
  border-left: 2px solid rgba(255, 255, 255, 0.08);
}

body.v1-site .forum-reply-collapse-btn {
  position: absolute;
  left: -10px;
  top: 0.75rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text-muted);
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
}

/* :not([hidden]) — same reasoning as .forum-photo-preview above; this one
   is toggled by the reply collapse/expand button. */
body.v1-site .forum-post-children:not([hidden]) {
  display: grid;
  gap: 0;
}

body.v1-site .forum-reply-inline-box {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.4rem;
}

body.v1-site .forum-reply-inline-box .forum-reply-textarea {
  width: 100%;
  min-height: 70px;
  resize: vertical;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  padding: 0.6rem 0.75rem;
  font: inherit;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}

body.v1-site .forum-reply-inline-box .forum-reply-textarea:focus {
  outline: none;
  border-color: rgba(201, 162, 39, 0.6);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.14);
}

body.v1-site .forum-post-body {
  min-width: 0;
}

body.v1-site .forum-post--op .forum-post-body p {
  font-size: 0.98rem;
  line-height: 1.55;
}

body.v1-site .forum-post--reply .forum-post-body p {
  font-size: 0.9rem;
  line-height: 1.5;
}

body.v1-site .forum-post-list {
  margin: 0.4rem 0;
  padding-left: 1.4rem;
  line-height: 1.55;
}

body.v1-site .forum-post-list li {
  margin: 0.15rem 0;
}

/* Discord-style spoiler: solid block hides the text until clicked. */
body.v1-site .forum-spoiler {
  cursor: pointer;
  background: var(--surface-soft, #1a1612);
  color: transparent;
  border-radius: 4px;
  padding: 0 0.2rem;
  transition: filter 0.1s;
}

body.v1-site .forum-spoiler:hover {
  filter: brightness(1.3);
}

body.v1-site .forum-spoiler.is-revealed {
  color: inherit;
  background: rgba(255, 255, 255, 0.06);
  cursor: text;
}

body.v1-site .forum-post-inline-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem;
  margin-top: 0.3rem;
}

body.v1-site .forum-report-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0.15rem 0;
}

body.v1-site .forum-report-btn:hover {
  color: #e08080;
}

body.v1-site .forum-report-reasons {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.6rem 0;
}

body.v1-site .forum-report-reason {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
}

body.v1-site .forum-category-intro {
  margin: 0 0 0.75rem;
  padding: 0.6rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 8px;
}

body.v1-site .forum-page-size-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}

body.v1-site .forum-page-size-label select {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.85rem;
  padding: 0.2rem 0.4rem;
}

body.v1-site .forum-replies-page-size-label {
  display: flex;
  justify-content: flex-end;
  margin: 0.5rem 0;
}

body.v1-site .forum-pagination:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Secondary moderation-ish actions (Edit/Delete/Report/history) — kept as
   plain small links, like Reddit tucks these behind its "..." menu. */
body.v1-site .forum-post-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

body.v1-site .forum-post-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

body.v1-site .forum-post-action-btn:hover {
  color: var(--text);
  text-decoration: underline;
}

body.v1-site .forum-post-edited-tag {
  opacity: 0.7;
  font-style: italic;
}

body.v1-site .forum-post-deleted-banner {
  font-style: italic;
}

body.v1-site .forum-post-deleted-content {
  opacity: 0.65;
  border-left: 2px solid var(--line);
  padding-left: 0.6rem;
  margin-top: 0.35rem;
}

body.v1-site .forum-edit-textarea {
  width: 100%;
  min-height: 80px;
  resize: vertical;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  padding: 0.6rem 0.7rem;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}

body.v1-site .forum-edit-textarea:focus {
  outline: none;
  border-color: rgba(201, 162, 39, 0.6);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.14);
}

body.v1-site .forum-revisions-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 50vh;
  overflow-y: auto;
  margin: 0.6rem 0;
}

body.v1-site .forum-revision-row {
  padding: 0.5rem 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 8px;
}

body.v1-site .forum-poll-toggle-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  cursor: pointer;
}

body.v1-site .forum-poll-builder {
  margin: 0 0 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

body.v1-site .forum-photo-attach-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

body.v1-site .forum-photo-attach-row p {
  margin: 0;
}

/* :not([hidden]) so this doesn't out-specificity the browser's own
   [hidden] { display: none } rule — without it, the preview box (and its
   floating remove button) stayed visible/positioned even while "hidden". */
body.v1-site .forum-photo-preview:not([hidden]) {
  position: relative;
  display: inline-block;
  margin-bottom: 0.75rem;
}

body.v1-site .forum-photo-preview img {
  max-width: 220px;
  max-height: 160px;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: block;
}

body.v1-site .forum-photo-preview-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.75);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

/* ---- Post images: the "main message" attached photo, and auto-embedded
   image/video links pasted directly into a body ---- */
body.v1-site .forum-post-attached-image {
  display: block;
  max-width: 100%;
  max-height: 420px;
  border-radius: 8px;
  margin-bottom: 0.6rem;
  border: 1px solid var(--line);
}

body.v1-site .forum-embed-img {
  display: block;
  max-width: 100%;
  max-height: 420px;
  border-radius: 8px;
  margin: 0.4rem 0;
  border: 1px solid var(--line);
}

/* Shared gallery-build permalink — a real "link unfurl" style card (image on
   top, like Discord/Twitter embeds), not a bare link or a small chat-row —
   so the whole project actually shows in-thread. Clicking it opens
   player-builds.html?build=<id>, which auto-opens the real zoom/switch
   lightbox — no lightbox duplicated here. */
body.v1-site .forum-build-preview-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 420px;
  margin: 0.5rem 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface, #1a1612);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}

body.v1-site .forum-build-preview-card:hover {
  border-color: var(--gold, #c9a227);
  transform: translateY(-2px);
}

body.v1-site .forum-build-preview-thumb {
  width: 100%;
  height: 190px;
  flex-shrink: 0;
  background: var(--bg-alt, #0e0c0a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.6rem;
}

body.v1-site .forum-build-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.v1-site .forum-build-preview-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0.9rem;
}

body.v1-site .forum-build-preview-name {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--gold, #c9a227);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.v1-site .forum-build-preview-card--missing .forum-build-preview-name {
  color: var(--text-muted);
  font-weight: 500;
}

body.v1-site .forum-build-preview-cta {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold, #c9a227);
}

body.v1-site .forum-embed--video {
  display: block;
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 16 / 9;
  margin: 0.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

body.v1-site .forum-embed--video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

body.v1-site .forum-poll-option-rows {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

body.v1-site .forum-poll-option-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

body.v1-site .forum-poll-option-row input {
  flex: 1;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: linear-gradient(#19130f, #120f0d);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
}

body.v1-site .forum-poll {
  margin: 0.75rem 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

body.v1-site .forum-poll-question {
  margin: 0;
  font-weight: 700;
}

body.v1-site .forum-poll-options {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

body.v1-site .forum-poll-option {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease;
}

body.v1-site .forum-poll-option:hover {
  border-color: rgba(201, 162, 39, 0.4);
}

body.v1-site .forum-poll-option.is-voted {
  border-color: var(--v1-gold, #c9a227);
}

body.v1-site .forum-poll-option-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: rgba(201, 162, 39, 0.16);
  transition: width 0.25s ease;
  z-index: 0;
}

body.v1-site .forum-poll-option-label,
body.v1-site .forum-poll-option-pct {
  position: relative;
  z-index: 1;
}

body.v1-site .forum-poll-option-pct {
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

body.v1-site .forum-poll-meta {
  margin: 0;
}

body.v1-site .forum-post-meta-follow[data-following="1"] {
  color: var(--v1-gold-bright, #e8c547);
}

body.v1-site .forum-post-byline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
}

/* ---- Vote controls: a filled pill on the OP's action row, a bare
   inline group (no background) on comments — matches Reddit's two
   different vote treatments for posts vs. comments. ---- */
body.v1-site .forum-vote-pill,
body.v1-site .forum-vote-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

body.v1-site .forum-vote-pill {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

body.v1-site .forum-vote-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0.15rem;
  border-radius: 50%;
  display: inline-flex;
  transition: background 0.15s ease, color 0.15s ease;
}

body.v1-site .forum-vote-pill .forum-vote-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
}

body.v1-site .forum-vote-inline .forum-vote-btn:hover {
  color: var(--text);
}

body.v1-site .forum-vote-btn.forum-vote-up.is-active {
  color: #ff6a3d;
}

body.v1-site .forum-vote-btn.forum-vote-down.is-active {
  color: #6a9dff;
}

body.v1-site .forum-vote-score {
  font-size: 0.82rem;
  font-weight: 700;
  min-width: 1ch;
  text-align: center;
}

/* ---- Pill action row under the OP (vote / comment count / share) ---- */
body.v1-site .forum-post-pill-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

body.v1-site .forum-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: none;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

body.v1-site .forum-action-pill:hover {
  background: rgba(255, 255, 255, 0.13);
}

body.v1-site .forum-action-pill--static {
  cursor: default;
  color: var(--text-muted);
}

body.v1-site .forum-action-pill--static:hover {
  background: rgba(255, 255, 255, 0.07);
}

/* ---- "Join the conversation" composer: a collapsed pill by default,
   expands to a full box with Cancel/Comment once focused or typed in. ---- */
body.v1-site .forum-reply-composer {
  margin: 0.85rem 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-radius 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

body.v1-site .forum-reply-composer textarea {
  width: 100%;
  resize: none;
  border: none;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  padding: 0;
  min-height: 1.4em;
  transition: min-height 0.15s ease;
}

body.v1-site .forum-reply-composer textarea::placeholder {
  color: var(--text-muted);
}

body.v1-site .forum-reply-composer textarea:focus {
  outline: none;
}

body.v1-site .forum-reply-composer-actions {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

body.v1-site .forum-reply-composer-actions p {
  margin: 0;
  margin-right: auto;
}

body.v1-site .forum-reply-composer:focus-within,
body.v1-site .forum-reply-composer.is-active {
  border-radius: 14px;
  border-color: rgba(201, 162, 39, 0.55);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.12);
}

body.v1-site .forum-reply-composer:focus-within textarea,
body.v1-site .forum-reply-composer.is-active textarea {
  min-height: 4.5em;
}

body.v1-site .forum-reply-composer:focus-within .forum-reply-composer-actions,
body.v1-site .forum-reply-composer.is-active .forum-reply-composer-actions {
  display: flex;
}

/* Formatting toolbar — a row of small icon buttons above any composer
   textarea (bold/italic/lists/spoiler/color/emoji). Hidden by default
   inside the collapsible "Join the conversation" pill; shown once
   expanded, same as its Cancel/Comment row. Always visible on the other
   three composers (New Thread, inline reply, edit) since those don't
   collapse. */
body.v1-site .forum-format-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}

body.v1-site .forum-reply-composer .forum-format-toolbar {
  display: none;
}

body.v1-site .forum-reply-composer:focus-within .forum-format-toolbar,
body.v1-site .forum-reply-composer.is-active .forum-format-toolbar {
  display: flex;
}

body.v1-site .forum-format-btn {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.82rem;
  padding: 0;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

body.v1-site .forum-format-btn:hover {
  color: var(--gold, #c9a227);
  border-color: rgba(201, 162, 39, 0.5);
  background: rgba(201, 162, 39, 0.08);
}

body.v1-site .forum-format-popup {
  position: absolute;
  z-index: 500;
  background: linear-gradient(var(--surface-soft, #1a1612), var(--bg-alt, #0e0c0a));
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body.v1-site .forum-color-swatch-row {
  display: flex;
  gap: 0.4rem;
}

body.v1-site .forum-color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0;
  transition: transform 0.1s;
}

body.v1-site .forum-color-swatch:hover {
  transform: scale(1.15);
}

body.v1-site .forum-emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.15rem;
  max-width: 220px;
}

body.v1-site .forum-emoji-btn {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.05rem;
  border-radius: 6px;
}

body.v1-site .forum-emoji-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

body.v1-site .forum-thread-utility-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}
