:root {
  color-scheme: dark;
  --visual-viewport-height: 100vh;
  --keyboard-offset: 0px;
  --bg: #050505;
  --bg-lift: #0b0b0c;
  --surface: #111113;
  --surface-soft: #171719;
  --text: #ff8a1f;
  --text-hot: #ffb14a;
  --muted: #b86622;
  --line: rgba(255, 138, 31, 0.26);
  --line-strong: rgba(255, 138, 31, 0.54);
  --accent: #ff7a00;
  --accent-hot: #ffb000;
  --shadow: 0 28px 90px rgba(255, 92, 0, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% -10%, rgba(255, 122, 0, 0.18), transparent 34rem),
    linear-gradient(180deg, #090807 0%, var(--bg) 52%, #020202 100%);
  color: var(--text);
}

button,
textarea,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.welcome-overlay,
.legal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(24px);
}

.legal-overlay {
  z-index: 45;
}

.modal {
  width: min(560px, 100%);
  padding: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(13, 13, 14, 0.94);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 177, 74, 0.12);
}

.legal-modal {
  width: min(760px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
}

.modal h1 {
  margin: 0 0 16px;
  color: var(--text-hot);
  font-size: clamp(1.85rem, 5vw, 3rem);
  letter-spacing: 0;
  text-shadow: 0 0 24px rgba(255, 122, 0, 0.28);
}

.modal p {
  margin: 0 0 24px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
}

.welcome-note {
  font-style: italic;
}

.legal-copy {
  margin-bottom: 26px;
}

.legal-copy p {
  margin-bottom: 16px;
  color: #f0a350;
  font-size: 0.95rem;
}

.modal-kicker,
.section-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 68px;
  padding: 14px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(4, 4, 4, 0.82);
  backdrop-filter: blur(20px);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-form {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.header-search {
  justify-self: start;
  width: min(340px, 34vw);
}

.mobile-search {
  display: grid;
}

.mobile-search-panel {
  display: none;
}

.search-input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 8, 9, 0.88);
  color: var(--text-hot);
  outline: none;
}

.search-input::placeholder {
  color: rgba(255, 138, 31, 0.48);
}

.search-input:focus {
  border-color: var(--accent-hot);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.14), 0 0 24px rgba(255, 122, 0, 0.12);
}

.search-button {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.06);
  color: var(--text-hot);
  font-weight: 700;
  box-shadow: none;
}

.search-button:hover {
  border-color: var(--accent-hot);
  background: rgba(255, 122, 0, 0.12);
}

.header-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(42vw, 360px);
  overflow: hidden;
  text-overflow: ellipsis;
  border: 0;
  background: transparent;
  color: var(--text-hot);
  font: inherit;
  font-size: clamp(1rem, 2vw, 1.22rem);
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 0 18px rgba(255, 122, 0, 0.28);
  white-space: nowrap;
}

.header-title:hover {
  color: var(--accent-hot);
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 122, 0, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 177, 74, 0.08);
}

.mobile-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-hot);
  box-shadow: 0 0 12px rgba(255, 122, 0, 0.38);
  transition: transform 180ms ease, opacity 180ms ease;
}

.mobile-menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.top-nav {
  justify-self: end;
  grid-column: 3;
}

.top-nav a,
.nav-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.92rem;
  padding: 0;
}

.top-nav a:hover,
.nav-button:hover {
  color: var(--text-hot);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  max-width: 100%;
  margin: 0 auto;
  padding: 22px 0 64px;
}

.app-view {
  display: block;
}

.composer-panel,
.topics-panel,
.feed-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 17, 19, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 177, 74, 0.06);
}

.composer-panel,
.hero-card {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.composer-panel h1 {
  max-width: 180px;
  margin: 6px 0 0;
  color: var(--text-hot);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.composer-intro,
.brand-block {
  align-self: stretch;
  display: grid;
  align-content: center;
  padding-right: 14px;
  border-right: 1px solid var(--line);
}

.opinion-form {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: end;
  width: 100%;
}

.field,
.opinion-field,
.topic-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  color: var(--text-hot);
  font-size: 0.86rem;
  font-weight: 700;
}

.terms-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.opinion-form textarea {
  width: 100%;
  min-height: 46px;
  max-height: 120px;
  resize: vertical;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080809;
  color: var(--text-hot);
  font-size: 0.96rem;
  line-height: 1.45;
  outline: none;
}

.opinion-field textarea {
  width: 100%;
}

.opinion-form textarea::placeholder,
.reply-form input::placeholder {
  color: rgba(255, 138, 31, 0.48);
}

.opinion-form textarea:focus,
.reply-form input:focus,
.topic-input:focus {
  border-color: var(--accent-hot);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.14), 0 0 28px rgba(255, 122, 0, 0.14);
}

.opinion-button {
  align-self: center;
  margin-left: 0;
  padding: 16px 28px;
  font-size: 16px;
}

.topic-input {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080809;
  color: var(--text-hot);
  outline: none;
}

.topic-input::placeholder {
  color: rgba(255, 138, 31, 0.48);
}

.topic-search-wrap {
  max-width: 520px;
  margin: 0 0 18px;
}

.primary-button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 177, 74, 0.34);
  border-radius: 999px;
  background: linear-gradient(180deg, #ff9d1c 0%, #ff6a00 100%);
  color: #120800;
  font-weight: 800;
  box-shadow: 0 0 26px rgba(255, 122, 0, 0.28);
}

.primary-button:hover {
  background: linear-gradient(180deg, #ffb647 0%, #ff7a00 100%);
}

.content-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
  min-width: 0;
}

.feed-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.mobile-trending-link {
  display: none;
  color: var(--accent-hot);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.mobile-copy {
  display: none;
}

.floating-opinion-trigger {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 21;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 56px;
  padding: 0 22px;
  border: 1px solid rgba(255, 177, 74, 0.58);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffb347 0%, #ff7a00 100%);
  color: #120800;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 18px 58px rgba(255, 122, 0, 0.34), inset 0 1px 0 rgba(255, 238, 190, 0.32);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px) scale(0.94);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.floating-opinion-trigger.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.floating-opinion-trigger:hover,
.floating-opinion-trigger.is-open {
  border-color: rgba(255, 238, 190, 0.78);
  box-shadow: 0 20px 64px rgba(255, 122, 0, 0.42), inset 0 1px 0 rgba(255, 238, 190, 0.38);
}

.floating-trigger-icon {
  display: none;
}

.floating-opinion {
  position: fixed;
  right: 22px;
  bottom: calc(92px + var(--keyboard-offset, 0px));
  z-index: 20;
  width: min(360px, calc(100vw - 36px));
  max-height: calc(var(--visual-viewport-height, 100vh) - 112px);
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(9, 9, 10, 0.94);
  box-shadow: 0 18px 70px rgba(255, 92, 0, 0.18), inset 0 1px 0 rgba(255, 177, 74, 0.08);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px) scale(0.98);
  transform-origin: right bottom;
  transition: opacity 190ms ease, transform 190ms ease, visibility 190ms ease;
}

.floating-opinion.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.floating-opinion-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.floating-opinion h2 {
  margin: 6px 0 0;
  color: var(--text-hot);
  font-size: 1.05rem;
  letter-spacing: 0;
}

.floating-publish-top {
  display: none;
}

.floating-close {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 122, 0, 0.06);
  color: var(--accent-hot);
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
}

.floating-close:hover {
  border-color: var(--accent-hot);
  background: rgba(255, 122, 0, 0.12);
}

.floating-opinion-form {
  display: grid;
  gap: 9px;
}

.floating-opinion textarea {
  width: 100%;
  min-height: 82px;
  max-height: clamp(92px, calc(var(--visual-viewport-height, 100vh) - 270px), 180px);
  resize: vertical;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080809;
  color: var(--text-hot);
  outline: none;
}

.floating-opinion textarea:focus {
  border-color: var(--accent-hot);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.14);
}

.floating-opinion .terms-note {
  grid-column: auto;
  grid-row: auto;
  font-size: 0.74rem;
}

.floating-opinion .primary-button {
  justify-self: end;
}

.floating-legal-row {
  display: contents;
}

.admin-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #090807 0%, #050505 100%);
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-card {
  width: min(860px, 100%);
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(10, 10, 11, 0.94);
  box-shadow: var(--shadow);
}

.admin-copy {
  margin: 0 0 16px;
  color: #d47c31;
  line-height: 1.65;
}

.admin-login-form {
  display: grid;
  gap: 10px;
}

.admin-login-form input {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080809;
  color: var(--text-hot);
  outline: none;
}

.admin-error {
  min-height: 20px;
  margin: 0;
  color: #ff5a5a;
  font-weight: 700;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.admin-opinion-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b0b0c;
}

.admin-opinion-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.admin-opinion-head h3 {
  margin: 4px 0 0;
  color: var(--text-hot);
}

.admin-opinion-text {
  margin: 12px 0;
  color: var(--text);
  line-height: 1.6;
}

.admin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.85rem;
}

.admin-empty {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 34px;
  border-top: 1px solid var(--line);
  color: #9b6330;
  text-align: center;
}

.site-footer p {
  max-width: 780px;
  margin: 0 auto 10px;
  font-size: 0.78rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  margin: 12px 0;
}

.footer-link {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  padding: 0;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--text-hot);
}

.footer-warning {
  color: #b36d2c;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 17, 19, 0.82);
  box-shadow: 0 0 34px rgba(255, 122, 0, 0.08), inset 0 1px 0 rgba(255, 177, 74, 0.06);
}

.about-hero h1 {
  max-width: 780px;
  margin: 8px 0 14px;
  color: var(--text-hot);
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.about-hero p:not(.section-label) {
  max-width: 760px;
  margin: 0;
  color: #d47c31;
  font-size: 1.06rem;
  line-height: 1.65;
}

.about-hero img {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  box-shadow: 0 0 34px rgba(255, 122, 0, 0.2);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.about-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a0a0b;
}

.about-grid h2 {
  margin: 0 0 10px;
  color: var(--text-hot);
  font-size: 1.08rem;
  letter-spacing: 0;
}

.about-grid p {
  margin: 0;
  color: #d47c31;
  line-height: 1.6;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.topics-panel,
.feed-panel,
.search-panel {
  padding: 20px;
}

.topics-panel,
.search-panel {
  overflow: hidden;
}

.feed-panel {
  min-width: 0;
  border-color: rgba(255, 176, 0, 0.42);
  background: rgba(13, 13, 14, 0.92);
  box-shadow: 0 0 34px rgba(255, 122, 0, 0.1), inset 0 1px 0 rgba(255, 177, 74, 0.08);
}

.panel-heading {
  margin-bottom: 18px;
}

.panel-heading h2 {
  margin: 6px 0 0;
  color: var(--text-hot);
  font-size: 1.55rem;
  letter-spacing: 0;
}

.panel-heading.horizontal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.feed-panel .panel-heading {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.live-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff2d2d;
  box-shadow: 0 0 0 rgba(255, 45, 45, 0.55), 0 0 18px rgba(255, 45, 45, 0.9);
  animation: livePulse 1.25s ease-in-out infinite;
}

@keyframes livePulse {
  0% {
    opacity: 0.65;
    transform: scale(0.86);
    box-shadow: 0 0 0 0 rgba(255, 45, 45, 0.45), 0 0 12px rgba(255, 45, 45, 0.75);
  }

  55% {
    opacity: 1;
    transform: scale(1.15);
    box-shadow: 0 0 0 7px rgba(255, 45, 45, 0), 0 0 24px rgba(255, 45, 45, 1);
  }

  100% {
    opacity: 0.65;
    transform: scale(0.86);
    box-shadow: 0 0 0 0 rgba(255, 45, 45, 0), 0 0 12px rgba(255, 45, 45, 0.75);
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.08);
  color: var(--accent-hot);
  font-size: 0.85rem;
  font-weight: 700;
}

.topic-list {
  display: grid;
  gap: 10px;
}

.topic-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 66px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  text-align: left;
}

.topic-button:hover,
.topic-button.active {
  border-color: var(--accent-hot);
  background: rgba(255, 122, 0, 0.1);
  box-shadow: 0 0 22px rgba(255, 122, 0, 0.12);
}

.topic-button strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--text-hot);
  font-size: 0.96rem;
  line-height: 1.25;
}

.topic-button-content {
  min-width: 0;
}

.topic-button span {
  color: var(--muted);
  font-size: 0.82rem;
}

.topic-button-name {
  color: var(--text-hot);
  overflow-wrap: anywhere;
}

.topic-count {
  justify-self: end;
  min-width: 38px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 176, 0, 0.24);
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.08);
  color: var(--text-hot) !important;
  font-weight: 800;
  font-size: 0.9rem !important;
  text-align: center;
  white-space: nowrap;
}

.topic-empty {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.view-heading {
  margin-bottom: 22px;
}

.view-heading h1 {
  max-width: 760px;
  margin: 8px 0 10px;
  color: var(--text-hot);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.view-heading p:not(.section-label) {
  max-width: 620px;
  margin: 0;
  color: #d47c31;
  line-height: 1.55;
}

.ghost-button {
  min-height: 38px;
  margin-bottom: 18px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.06);
  color: var(--text-hot);
  font-weight: 700;
}

.topic-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topic-title-row h1 {
  margin: 0;
}

.topic-icon {
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.1);
  object-fit: cover;
  box-shadow: 0 0 16px rgba(255, 122, 0, 0.12);
  vertical-align: middle;
}

.topic-icon.large {
  width: 52px;
  height: 52px;
}

.topic-icon-slot {
  display: inline-flex;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.board-column {
  min-height: 300px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 17, 19, 0.82);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.board-column:hover,
.board-column:focus-visible {
  border-color: var(--accent-hot);
  box-shadow: 0 0 26px rgba(255, 122, 0, 0.16);
  outline: none;
  transform: translateY(-1px);
}

.board-column h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  color: var(--text-hot);
  font-size: 1rem;
  letter-spacing: 0;
}

.board-column p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.board-column-header {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.board-count {
  justify-self: start;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-hot);
  font-size: 0.8rem;
  font-weight: 700;
}

.board-card-list {
  display: grid;
  gap: 10px;
}

.board-card {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a0a0b;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.board-card:hover {
  border-color: var(--accent-hot);
  box-shadow: 0 0 20px rgba(255, 122, 0, 0.14);
}

.board-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text-hot);
  font-size: 0.9rem;
}

.board-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.8rem;
}

.feed-list {
  display: grid;
  gap: 14px;
}

.opinion-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a0a0b;
}

.feed-panel .opinion-card:first-child {
  border-color: rgba(255, 176, 0, 0.52);
  background: linear-gradient(180deg, rgba(255, 122, 0, 0.08), #0a0a0b 52%);
}

.open-opinion {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.open-opinion:hover .opinion-text {
  color: var(--text-hot);
}

.opinion-meta,
.opinion-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.date-stamp {
  color: #a9662e;
  font-size: 0.78rem;
  font-style: italic;
}

.author {
  color: var(--text-hot);
  font-weight: 700;
}

.topic {
  color: var(--accent-hot);
  font-weight: 700;
}

.opinion-text {
  margin: 12px 0 16px;
  color: var(--text);
  font-size: 1.06rem;
  line-height: 1.65;
}

.like-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #060606;
  color: var(--text);
}

.like-button.liked {
  border-color: var(--accent-hot);
  background: rgba(255, 122, 0, 0.12);
  color: var(--accent-hot);
}

.thread {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-left: 14px;
  border-left: 2px solid var(--line);
}

.reply {
  margin: 0;
  color: #dc8436;
  font-size: 0.92rem;
  line-height: 1.5;
}

.reply strong {
  color: var(--text-hot);
}

.reply-card {
  display: grid;
  gap: 8px;
}

.reply-date {
  margin-top: -4px;
}

.reply-card .like-button {
  justify-self: start;
}

.reply-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 14px;
}

.reply-form input {
  min-width: 0;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #060606;
  color: var(--text-hot);
  outline: none;
}

.reply-form button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #130900;
  color: var(--accent-hot);
  font-weight: 700;
}

.detail-shell {
  max-width: 820px;
}

.detail-shell .opinion-card {
  padding: clamp(20px, 4vw, 34px);
}

.detail-shell .open-opinion {
  cursor: default;
}

.detail-shell .opinion-text {
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  line-height: 1.55;
}

.detail-shell .thread {
  margin-top: 24px;
  gap: 12px;
}

.detail-shell .reply {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 122, 0, 0.05);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr 42px;
    gap: 12px;
    padding-inline: 12px;
  }

  .header-title {
    position: static;
    transform: none;
    justify-self: center;
    max-width: 100%;
    min-width: 0;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .header-search {
    display: none;
  }

  .mobile-search {
    display: grid;
  }

  .top-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-height: 0;
    margin-top: 0;
    padding: 0 12px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: max-height 200ms ease, padding 200ms ease, margin 200ms ease, opacity 180ms ease, transform 180ms ease, visibility 180ms ease, border-color 180ms ease, background 180ms ease;
  }

  .top-nav.is-open {
    gap: 10px;
    max-height: 190px;
    margin-top: 4px;
    padding: 12px;
    border-color: var(--line);
    background: rgba(9, 9, 10, 0.94);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-button {
    width: 100%;
    padding: 10px 0;
    text-align: left;
  }

  #homeView .composer-panel {
    display: none;
  }

  .composer-panel,
  .hero-card,
  .content-grid,
  .board-grid,
  .about-hero,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-hero img {
    width: 86px;
    height: 86px;
  }

  .composer-intro {
    padding-right: 0;
    padding-bottom: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .opinion-form {
    grid-template-columns: 1fr;
  }

  .terms-note {
    grid-column: auto;
  }

  .opinion-button {
    width: 100%;
    margin-left: 0;
  }

  .topics-panel {
    order: 1;
    padding: 14px;
  }

  .feed-panel {
    order: 3;
  }

  .mobile-search-panel {
    order: 2;
    display: block;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(17, 17, 19, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 177, 74, 0.06);
  }

  .topics-panel .panel-heading {
    margin-bottom: 10px;
  }

  .topics-panel .section-label {
    display: none;
  }

  .topics-panel .panel-heading h2 {
    margin: 0;
    font-size: 0.98rem;
  }

  .topics-panel .desktop-copy {
    display: none;
  }

  .topics-panel .mobile-copy {
    display: inline;
  }

  .topic-list {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
    padding: 2px;
  }

  .topic-button {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 42px;
    max-width: none;
    padding: 8px 12px;
    text-align: center;
  }

  .topic-button-content,
  .topic-button strong {
    display: grid;
    justify-items: center;
    gap: 6px;
  }

  .topic-button strong {
    font-size: 0.76rem;
    line-height: 1.2;
  }

  .topic-score,
  .mobile-trending-link {
    display: none;
  }

  .topic-count {
    display: none;
  }
}

@media (max-width: 640px) {
  body.mobile-composer-open {
    overflow: hidden;
  }

  .admin-toolbar,
  .admin-toolbar-actions,
  .admin-opinion-head {
    flex-direction: column;
    align-items: stretch;
  }

  .site-header {
    align-items: center;
    grid-template-columns: 1fr 42px;
    min-height: 62px;
    padding: 10px 10px;
    overflow: hidden;
  }

  .top-nav {
    align-items: flex-start;
    gap: 8px;
  }

  .page-shell {
    width: calc(100% - 16px);
    padding-top: 14px;
  }

  .content-grid {
    gap: 12px;
  }

  .modal {
    padding: 26px;
  }

  .reply-form {
    grid-template-columns: 1fr;
  }

  .primary-button,
  .reply-form button {
    width: 100%;
  }

  .floating-opinion-trigger {
    right: 12px;
    bottom: calc(12px + var(--keyboard-offset, 0px));
    min-height: 58px;
    font-size: 1.02rem;
  }

  body.mobile-composer-open .floating-opinion-trigger {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(14px) scale(0.94);
  }

  .floating-opinion {
    inset: 0;
    bottom: auto;
    width: auto;
    height: var(--visual-viewport-height, 100vh);
    max-height: none;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    padding: max(14px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    border: 0;
    border-radius: 0;
    background: #000;
    box-shadow: none;
    backdrop-filter: none;
    transform: translateY(18px);
    transform-origin: center bottom;
  }

  .floating-opinion-header {
    align-items: center;
    justify-content: flex-start;
    min-height: 38px;
    margin: 0;
    padding-bottom: 12px;
  }

  .floating-opinion-header > div {
    min-width: 0;
  }

  .floating-opinion-header .section-label {
    display: none;
  }

  .floating-opinion h2 {
    display: none;
  }

  .floating-close {
    order: -1;
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border: 0;
    background: transparent;
    color: var(--accent-hot);
    font-size: 1.65rem;
    font-weight: 500;
    line-height: 1;
  }

  .floating-opinion-form {
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto;
    gap: 14px;
    overflow: hidden;
  }

  .floating-opinion textarea {
    min-height: 0;
    height: 100%;
    max-height: none;
    resize: none;
    padding: 4px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #f1f1f1;
    font-size: 1.55rem;
    line-height: 1.34;
    caret-color: var(--accent-hot);
  }

  .floating-opinion textarea::placeholder {
    color: rgba(255, 255, 255, 0.42);
  }

  .floating-opinion textarea:focus {
    border-color: transparent;
    box-shadow: none;
  }

  .floating-opinion .topic-input {
    min-height: 46px;
    border-color: rgba(255, 138, 31, 0.34);
    background: rgba(255, 122, 0, 0.06);
  }

  .floating-opinion .terms-note {
    min-width: 0;
    padding: 0;
    border-top: 0;
    color: rgba(255, 138, 31, 0.74);
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .floating-legal-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 138, 31, 0.22);
  }

  .floating-opinion .primary-button {
    justify-self: end;
    width: auto;
    min-width: 82px;
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.86rem;
  }
}
