:root {
  --gp-bg: #0a0e14;
  --gp-surface: #10161f;
  --gp-surface-2: #121923;
  --gp-surface-3: #18202c;
  --gp-border: rgba(255, 255, 255, 0.08);
  --gp-border-strong: rgba(0, 212, 255, 0.26);
  --gp-text: #edf3fa;
  --gp-muted: #93a0b1;
  --gp-low: #647184;
  --gp-cyan: #00d4ff;
  --gp-green: #5eff9f;
  --gp-amber: #ffb020;
  --gp-purple: #b794ff;
  --gp-red: #ff6b6b;
}

body:has(.gp-community-main) {
  background: var(--gp-bg);
  color-scheme: dark;
  -webkit-tap-highlight-color: rgba(0, 212, 255, 0.16);
}

main.gp-community-main {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}

.gp-community-main,
.gp-community-main button,
.gp-community-main input,
.gp-community-main textarea,
.gp-community-main select {
  font-family: "Barlow", "Inter", sans-serif;
}

.gp-community-main,
.gp-community-main *,
.gp-community-main *::before,
.gp-community-main *::after {
  box-sizing: border-box;
}

.gp-community-shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 820px) 328px;
  gap: 22px;
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 22px 18px 42px;
  align-items: start;
}

.gp-left-rail,
.gp-right-rail {
  position: sticky;
  top: 86px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gp-left-rail {
  min-height: calc(100vh - 108px);
}

.gp-feed,
.gp-thread-main,
.gp-profile-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gp-feed-list {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
}

.gp-rail-brand,
.gp-rail-widget,
.gp-composer,
.gp-debate-card,
.gp-muro-card,
.gp-thread-op,
.gp-reply,
.gp-panel,
.gp-profile-hero {
  background: color-mix(in srgb, var(--gp-surface) 92%, black);
  border: 1px solid var(--gp-border);
  border-radius: 8px;
}

.gp-rail-brand {
  padding: 18px;
}

.gp-rail-brand strong {
  display: block;
  color: var(--gp-text);
  font-family: "Bebas Neue", "Barlow", sans-serif;
  font-size: 34px;
  line-height: 0.95;
  letter-spacing: 0;
}

.gp-rail-brand span {
  display: block;
  margin-top: 6px;
  color: var(--gp-cyan);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.gp-rail-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--gp-border);
  border-radius: 8px;
}

.gp-rail-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 0 10px;
  color: var(--gp-muted);
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
}

.gp-rail-nav a:hover,
.gp-rail-nav a.is-active {
  color: var(--gp-text);
  background: rgba(0, 212, 255, 0.08);
}

.gp-stat-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.gp-stat {
  min-height: 72px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--gp-border);
  border-radius: 8px;
}

.gp-stat strong {
  display: block;
  color: var(--gp-text);
  font-size: 22px;
  line-height: 1;
}

.gp-stat span {
  display: block;
  margin-top: 6px;
  color: var(--gp-low);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.gp-feed-hero {
  padding: 22px 22px 20px;
  border: 1px solid var(--gp-border-strong);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 212, 255, 0.13), transparent 42%),
    var(--gp-surface);
}

.gp-section-eyebrow {
  color: var(--gp-cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.gp-feed-hero h1,
.gp-thread-op h1,
.gp-profile-id h1 {
  margin: 6px 0 0;
  color: var(--gp-text);
  font-family: "Bebas Neue", "Barlow", sans-serif;
  font-size: 52px;
  line-height: 0.95;
  letter-spacing: 0;
}

.gp-feed-hero p {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--gp-muted);
  font-size: 17px;
  line-height: 1.5;
}

.gp-hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.gp-hero-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  color: var(--gp-muted);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--gp-border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.gp-hero-metrics strong {
  color: var(--gp-text);
}

.gp-live-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.gp-live-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  color: var(--gp-muted);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(94, 255, 159, 0.16);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.gp-live-strip strong {
  margin-right: 5px;
  color: var(--gp-green);
}

.gp-composer {
  padding: 14px;
}

.gp-composer-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: 10px;
}

.gp-composer input,
.gp-composer textarea,
.gp-composer select,
.gp-reply-form textarea {
  width: 100%;
  color: var(--gp-text);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--gp-border);
  border-radius: 8px;
  outline: 0;
}

.gp-composer input,
.gp-composer select {
  min-height: 42px;
  padding: 0 12px;
}

.gp-composer textarea,
.gp-reply-form textarea {
  min-height: 96px;
  padding: 12px;
  resize: vertical;
  grid-column: 1 / -1;
  line-height: 1.45;
}

.gp-composer input:focus,
.gp-composer textarea:focus,
.gp-composer select:focus,
.gp-reply-form textarea:focus {
  border-color: var(--gp-cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}

.gp-community-main :where(a, button, input, textarea, select):focus-visible {
  outline: 2px solid rgba(0, 212, 255, 0.72);
  outline-offset: 3px;
}

.gp-composer-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.gp-composer-compact {
  justify-content: space-between;
  padding: 8px 2px 0;
}

.gp-composer-compact .gp-empty-copy {
  min-width: 0;
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}

.gp-composer-plus {
  flex: 0 0 auto;
  gap: 8px;
}

.gp-composer-plus span {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: rgba(4, 16, 22, 0.16);
  font-size: 18px;
  line-height: 1;
}

.gp-prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gp-prompt-chips button,
.gp-filter-bar button,
.gp-tabbar button {
  border: 1px solid var(--gp-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--gp-muted);
  border-radius: 999px;
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.gp-prompt-chips button:hover,
.gp-filter-bar button:hover,
.gp-filter-bar button.is-active,
.gp-tabbar button:hover,
.gp-tabbar button.is-active {
  color: var(--gp-text);
  border-color: rgba(0, 212, 255, 0.36);
  background: rgba(0, 212, 255, 0.1);
}

.gp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--gp-border);
  color: var(--gp-text);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
}

.gp-btn-primary {
  color: #041016;
  background: var(--gp-cyan);
  border-color: var(--gp-cyan);
}

.gp-btn-primary.is-following {
  color: var(--gp-text);
  background: rgba(94, 255, 159, 0.12);
  border-color: rgba(94, 255, 159, 0.42);
}

.gp-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.gp-filter-bar button {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.gp-filter-bar::-webkit-scrollbar {
  display: none;
}

.gp-debate-card {
  padding: 18px;
  border-color: rgba(0, 212, 255, 0.22);
}

.gp-debate-card h2 {
  margin: 6px 0 14px;
  color: var(--gp-text);
  font-size: 24px;
  line-height: 1.12;
}

.gp-debate-card p {
  color: var(--gp-muted);
  line-height: 1.5;
}

.gp-poll-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gp-poll-option {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  min-height: 44px;
  overflow: hidden;
  border: 1px solid var(--gp-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--gp-text);
  cursor: pointer;
}

.gp-poll-option.is-voted {
  border-color: var(--gp-cyan);
}

.gp-poll-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: rgba(0, 212, 255, 0.12);
}

.gp-poll-label,
.gp-poll-option strong {
  position: relative;
  z-index: 1;
}

.gp-poll-label {
  padding-left: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gp-poll-option strong {
  text-align: right;
  padding-right: 12px;
  color: var(--gp-cyan);
}

.gp-debate-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--gp-cyan);
  font-weight: 900;
  text-decoration: none;
}

.gp-muro-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  min-height: 168px;
  overflow: hidden;
}

.gp-muro-card:hover {
  border-color: rgba(0, 212, 255, 0.24);
  background: var(--gp-surface-2);
}

.gp-muro-card.has-reply {
  border-color: rgba(0, 212, 255, 0.14);
}

.gp-muro-card.is-hot {
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.08), 0 20px 50px rgba(0, 212, 255, 0.07);
}

.gp-pulse-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: rgba(0, 0, 0, 0.18);
  border-right: 1px solid var(--gp-border);
}

.gp-pulse-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--gp-low);
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

.gp-pulse-btn:hover,
.gp-pulse-btn.is-active {
  color: var(--gp-cyan);
  border-color: rgba(0, 212, 255, 0.25);
  background: rgba(0, 212, 255, 0.08);
}

.gp-pulse-score {
  color: var(--gp-muted);
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 900;
}

.gp-pulse-widget.is-positive .gp-pulse-score {
  color: var(--gp-cyan);
  text-shadow: 0 0 16px rgba(0, 212, 255, 0.5);
}

.gp-pulse-widget.is-negative .gp-pulse-score {
  color: var(--gp-red);
}

.gp-muro-body {
  min-width: 0;
  padding: 16px 18px 15px;
}

.gp-card-meta,
.gp-card-foot,
.gp-author-line,
.gp-reply-head,
.gp-reply-actions,
.gp-thread-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.gp-card-meta,
.gp-card-foot {
  flex-wrap: wrap;
}

.gp-card-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.gp-signal-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid var(--gp-border);
  border-radius: 999px;
  color: var(--gp-muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.gp-signal-pill.is-pulse {
  color: var(--gp-cyan);
  border-color: rgba(0, 212, 255, 0.26);
  background: rgba(0, 212, 255, 0.08);
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.08);
}

.gp-signal-pill.is-replies {
  color: var(--gp-green);
  border-color: rgba(94, 255, 159, 0.24);
  background: rgba(94, 255, 159, 0.075);
}

.gp-signal-pill.is-live {
  color: var(--gp-amber);
  border-color: rgba(255, 176, 32, 0.22);
  background: rgba(255, 176, 32, 0.07);
}

.gp-cat-pill,
.gp-state-pill,
.gp-op-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--cat-color, var(--gp-cyan)) 52%, transparent);
  color: var(--cat-color, var(--gp-cyan));
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.gp-state-pill,
.gp-op-pill {
  --cat-color: var(--gp-amber);
}

.gp-muro-title {
  margin: 10px 0 8px;
  font-size: 24px;
  line-height: 1.14;
}

.gp-muro-title a {
  color: var(--gp-text);
  text-decoration: none;
}

.gp-muro-title a:hover {
  color: var(--gp-cyan);
}

.gp-muro-excerpt {
  margin: 0;
  color: var(--gp-muted);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

.gp-reply-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 12px;
  align-items: center;
  margin-top: 13px;
  padding: 11px 12px;
  border: 1px solid rgba(0, 212, 255, 0.16);
  border-left: 3px solid var(--gp-cyan);
  border-radius: 10px;
  color: var(--gp-text);
  text-decoration: none;
  background:
    linear-gradient(90deg, rgba(0, 212, 255, 0.14), rgba(0, 212, 255, 0.035)),
    rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.gp-reply-teaser:hover {
  background:
    linear-gradient(90deg, rgba(0, 212, 255, 0.2), rgba(0, 212, 255, 0.06)),
    rgba(255, 255, 255, 0.04);
}

.gp-reply-teaser-mark {
  grid-column: 1 / -1;
  color: var(--gp-cyan);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.gp-reply-teaser-main {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-width: 0;
}

.gp-reply-teaser-main strong {
  display: block;
  margin-bottom: 2px;
  color: var(--gp-text);
  font-size: 12px;
  line-height: 1.2;
}

.gp-reply-teaser-text {
  display: -webkit-box;
  overflow: hidden;
  color: var(--gp-muted);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.gp-reply-teaser-cta {
  align-self: end;
  color: var(--gp-cyan);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.gp-card-foot {
  justify-content: space-between;
  margin-top: 16px;
  color: var(--gp-low);
  font-size: 13px;
}

.gp-author-line a,
.gp-card-comments,
.gp-reply-author a {
  color: var(--gp-text);
  text-decoration: none;
  font-weight: 900;
}

.gp-card-comments {
  color: var(--gp-cyan);
}

.gp-rail-widget {
  padding: 14px;
}

.gp-widget-head,
.gp-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.gp-widget-head span,
.gp-panel-head h2 {
  color: var(--gp-text);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.gp-widget-head a {
  color: var(--gp-cyan);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.gp-widget-head strong {
  color: var(--gp-cyan);
}

.gp-level-row,
.gp-wallet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.gp-level-row span {
  color: var(--lvl-color, var(--gp-cyan));
  font-weight: 900;
}

.gp-level-row small,
.gp-wallet span,
.gp-empty-copy {
  color: var(--gp-low);
}

.gp-progress {
  height: 8px;
  margin: 12px 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.gp-progress span {
  display: block;
  height: 100%;
  background: var(--gp-cyan);
}

.gp-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 12px 0;
}

.gp-mini-stats span {
  min-height: 50px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  color: var(--gp-low);
  font-size: 11px;
  text-align: center;
}

.gp-mini-stats strong {
  display: block;
  color: var(--gp-text);
  font-size: 18px;
}

.gp-ranking-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.gp-ranking-list li,
.gp-newcomer {
  display: grid;
  grid-template-columns: 24px 34px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 42px;
}

.gp-ranking-list a,
.gp-newcomer a {
  min-width: 0;
  color: var(--gp-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 800;
}

.gp-ranking-list strong {
  color: var(--gp-cyan);
}

.gp-rank-pos {
  color: var(--gp-low);
  font-weight: 900;
  text-align: center;
}

.gp-newcomers {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gp-telegram-box {
  border-color: rgba(94, 255, 159, 0.24);
}

.gp-telegram-box p {
  color: var(--gp-muted);
  margin: 0 0 12px;
  line-height: 1.45;
}

.gp-thread-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gp-low);
  font-size: 13px;
}

.gp-thread-breadcrumb a {
  color: var(--gp-cyan);
  text-decoration: none;
}

.gp-thread-op {
  padding: 22px;
}

.gp-thread-op h1 {
  font-size: 48px;
}

.gp-thread-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--gp-muted);
  font-size: 14px;
}

.gp-thread-content,
.gp-reply-content {
  color: var(--gp-text);
  font-family: "Inter", sans-serif;
  line-height: 1.7;
}

.gp-thread-content {
  margin-top: 20px;
  font-size: 16px;
}

.gp-thread-content p,
.gp-reply-content p {
  margin: 0 0 14px;
}

.gp-thread-actions {
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--gp-border);
}

.gp-thread-actions .gp-pulse-widget {
  flex-direction: row;
  min-height: 42px;
  padding: 0 8px;
  border: 1px solid var(--gp-border);
  border-radius: 8px;
}

.gp-reply-form {
  padding: 16px;
  background: var(--gp-surface);
  border: 1px solid var(--gp-border);
  border-radius: 8px;
}

.gp-quote-preview {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 8px 10px;
  color: var(--gp-muted);
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 8px;
  font-size: 13px;
}

.gp-quote-preview.is-visible {
  display: flex;
}

.gp-responses-title {
  margin: 6px 0 0;
  color: var(--gp-text);
  font-size: 22px;
  font-weight: 900;
}

.gp-replies {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gp-reply {
  padding: 14px;
}

.gp-reply.depth-1,
.gp-reply.depth-2,
.gp-reply.depth-3,
.gp-reply.depth-4,
.gp-reply.depth-5 {
  margin-left: 22px;
  border-left: 2px solid rgba(0, 212, 255, 0.18);
}

.gp-reply-head {
  flex-wrap: wrap;
  color: var(--gp-low);
  font-size: 13px;
}

.gp-reply-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gp-reply-author span {
  color: var(--lvl-color, var(--gp-muted));
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.gp-reply-content {
  margin-top: 12px;
  color: var(--gp-text);
  font-size: 14px;
}

.gp-reply-actions {
  margin-top: 10px;
}

.gp-reply-action {
  min-height: 30px;
  border: 0;
  background: transparent;
  color: var(--gp-muted);
  font-weight: 900;
  cursor: pointer;
}

.gp-reply-action:hover {
  color: var(--gp-cyan);
}

.gp-related-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gp-related-list a {
  display: block;
  color: var(--gp-text);
  text-decoration: none;
  font-weight: 900;
  line-height: 1.25;
}

.gp-related-list span {
  display: block;
  margin-top: 4px;
  color: var(--gp-low);
  font-size: 12px;
}

.gp-profile-main .gp-community-shell {
  grid-template-columns: minmax(0, 340px) minmax(0, 920px);
  width: min(100%, 1280px);
}

.gp-profile-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gp-profile-hero {
  overflow: hidden;
}

.gp-profile-cover {
  height: 142px;
  background:
    linear-gradient(135deg, rgba(0, 212, 255, 0.22), transparent 48%),
    linear-gradient(90deg, #121923, #171a2a 48%, #0d141d);
}

.gp-profile-headline {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  padding: 0 22px 16px;
  margin-top: -46px;
}

.gp-profile-avatar {
  width: 112px;
  height: 126px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gp-profile-id h1 {
  font-size: 46px;
}

.gp-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  color: var(--gp-muted);
  font-size: 13px;
  font-weight: 800;
}

.gp-profile-meta span:first-child {
  color: var(--lvl-color, var(--gp-cyan));
}

.gp-profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--gp-border);
}

.gp-profile-stats span {
  padding: 14px;
  color: var(--gp-low);
  border-right: 1px solid var(--gp-border);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.gp-profile-stats span:last-child {
  border-right: 0;
}

.gp-profile-stats strong {
  display: block;
  color: var(--gp-text);
  font-size: 20px;
}

.gp-panel {
  padding: 16px;
}

.gp-bio {
  color: var(--gp-muted);
  line-height: 1.55;
}

.gp-connections,
.gp-badge-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gp-connection,
.gp-badge-item {
  padding: 10px 0;
  border-top: 1px solid var(--gp-border);
}

.gp-connection:first-child,
.gp-badge-item:first-child {
  border-top: 0;
}

.gp-connection span,
.gp-badge-item small {
  display: block;
  color: var(--gp-low);
  font-size: 12px;
}

.gp-connection strong,
.gp-badge-item strong {
  display: block;
  color: var(--gp-text);
  margin-top: 3px;
}

.gp-connection small {
  display: inline-flex;
  margin-top: 6px;
  color: var(--gp-green);
  font-size: 11px;
  font-weight: 900;
}

.gp-badge-item span {
  display: inline-flex;
  min-width: 24px;
  color: var(--gp-cyan);
  font-weight: 900;
}

.gp-tabbar {
  display: flex;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gp-border);
}

.gp-tab-panel {
  padding-top: 14px;
}

.gp-profile-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gp-review-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gp-review-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gp-border);
}

.gp-review-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.gp-review-card img,
.gp-game-tile img,
.gp-playing-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
  background: var(--gp-surface-3);
}

.gp-review-card a {
  color: var(--gp-text);
  font-weight: 900;
  text-decoration: none;
}

.gp-review-card strong {
  display: inline-flex;
  margin-left: 8px;
  color: var(--gp-cyan);
}

.gp-review-card p {
  margin: 8px 0 0;
  color: var(--gp-muted);
  line-height: 1.5;
}

.gp-game-shelf {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gp-game-group h3 {
  margin: 0 0 10px;
  color: var(--gp-text);
  font-size: 16px;
}

.gp-game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.gp-game-tile {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--gp-text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.gp-game-tile span {
  min-height: 32px;
  line-height: 1.25;
}

.gp-auth-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.72);
  z-index: 1000;
}

.gp-auth-modal.is-open {
  display: flex;
}

.gp-auth-box {
  width: min(100%, 420px);
  padding: 22px;
  background: var(--gp-surface);
  border: 1px solid var(--gp-border-strong);
  border-radius: 8px;
}

.gp-auth-box h2 {
  margin: 0;
  color: var(--gp-text);
  font-size: 26px;
}

.gp-auth-box p {
  color: var(--gp-muted);
  line-height: 1.5;
}

.gp-auth-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.gp-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1001;
  display: none;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  color: var(--gp-text);
  background: var(--gp-surface);
  border: 1px solid var(--gp-border-strong);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
}

.gp-toast.is-visible {
  display: block;
}

@media (max-width: 1180px) {
  .gp-community-shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .gp-right-rail {
    position: static;
    grid-column: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gp-profile-main .gp-community-shell {
    grid-template-columns: 300px minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .gp-community-shell,
  .gp-profile-main .gp-community-shell {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    overflow-x: clip;
    padding: 12px 10px calc(92px + env(safe-area-inset-bottom));
    gap: 12px;
  }

  .gp-left-rail,
  .gp-right-rail,
  .gp-feed,
  .gp-feed-list {
    position: static;
    width: 100%;
    min-width: 0;
  }

  .gp-feed {
    order: 2;
    gap: 10px;
  }

  .gp-left-rail {
    order: 1;
    min-height: 0;
  }

  .gp-right-rail {
    order: 3;
  }

  .gp-rail-brand,
  .gp-stat-stack {
    display: none;
  }

  .gp-rail-nav {
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .gp-rail-nav::-webkit-scrollbar {
    display: none;
  }

  .gp-rail-nav a {
    white-space: nowrap;
  }

  .gp-right-rail {
    display: flex;
  }

  .gp-feed-hero {
    order: 1;
    padding: 16px;
  }

  .gp-feed-hero h1,
  .gp-thread-op h1,
  .gp-profile-id h1 {
    font-size: 38px;
  }

  .gp-feed-hero p {
    font-size: 14px;
    line-height: 1.45;
  }

  .gp-live-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .gp-live-strip::-webkit-scrollbar {
    display: none;
  }

  .gp-filter-bar {
    position: sticky;
    top: 76px;
    z-index: 60;
    order: 2;
    margin: 0 -10px;
    padding: 8px 10px 10px;
    background: linear-gradient(180deg, rgba(10, 14, 20, 0.97), rgba(10, 14, 20, 0.82));
    border-bottom: 1px solid rgba(0, 212, 255, 0.12);
    backdrop-filter: blur(16px);
  }

  .gp-composer {
    order: 3;
    padding: 12px;
  }

  .gp-feed-list {
    order: 4;
    gap: 10px;
  }

  .gp-debate-card {
    order: 5;
  }

  .gp-composer-form {
    grid-template-columns: 1fr;
  }

  .gp-composer-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .gp-composer-actions .gp-btn {
    width: 100%;
  }

  .gp-composer-compact {
    align-items: center;
    flex-direction: row;
    gap: 10px;
  }

  .gp-composer-compact .gp-btn {
    width: auto;
  }

  .gp-muro-card {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .gp-muro-body {
    padding: 14px;
  }

  .gp-muro-title {
    font-size: 21px;
  }

  .gp-profile-headline {
    grid-template-columns: 94px minmax(0, 1fr);
    align-items: end;
    padding: 0 14px 14px;
  }

  .gp-profile-actions {
    grid-column: 1 / -1;
    display: flex;
  }

  .gp-profile-actions .gp-btn {
    width: 100%;
  }

  .gp-profile-avatar {
    width: 94px;
  }

  .gp-profile-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .gp-profile-stats span:nth-child(2) {
    border-right: 0;
  }

  .gp-game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .gp-feed-hero,
  .gp-thread-op,
  .gp-panel,
  .gp-debate-card,
  .gp-rail-widget {
    padding: 14px;
  }

  .gp-hero-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
  }

  .gp-hero-metrics span {
    min-height: 30px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 12px;
    justify-content: center;
  }

  .gp-feed-hero h1,
  .gp-thread-op h1,
  .gp-profile-id h1 {
    font-size: 34px;
  }

  .gp-feed-hero p {
    margin-top: 8px;
  }

  .gp-live-strip span {
    min-height: 28px;
    font-size: 11.5px;
  }

  .gp-muro-card {
    position: relative;
    display: block;
    min-height: 0;
  }

  .gp-pulse-widget {
    position: absolute;
    top: 12px;
    right: 12px;
    flex-direction: row;
    gap: 4px;
    min-height: 36px;
    padding: 2px 6px;
    border: 1px solid rgba(0, 212, 255, 0.16);
    border-radius: 999px;
    background: rgba(4, 12, 18, 0.82);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26), 0 0 18px rgba(0, 212, 255, 0.08);
    backdrop-filter: blur(12px);
  }

  .gp-pulse-btn {
    width: 26px;
    height: 28px;
    border-radius: 999px;
    font-size: 16px;
  }

  .gp-pulse-score {
    min-width: 18px;
    font-size: 15px;
    text-align: center;
    font-variant-numeric: tabular-nums;
  }

  .gp-card-meta {
    padding-right: 104px;
  }

  .gp-card-signals {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .gp-card-signals::-webkit-scrollbar {
    display: none;
  }

  .gp-muro-title {
    font-size: 22px;
    text-wrap: balance;
  }

  .gp-muro-excerpt {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .gp-card-foot,
  .gp-author-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .gp-reply-teaser {
    grid-template-columns: 1fr;
  }

  .gp-reply-teaser-cta {
    display: none;
  }

  .gp-reply.depth-1,
  .gp-reply.depth-2,
  .gp-reply.depth-3,
  .gp-reply.depth-4,
  .gp-reply.depth-5 {
    margin-left: 10px;
  }

  .gp-review-card {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .gp-game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
