:root {
  color-scheme: light;
  --bg: #f0f2f5;
  --panel: #ffffff;
  --ink: #1c1e21;
  --muted: #65676b;
  --line: #d8dadf;
  --soft-blue: #e7f3ff;
  --fb-blue: #1877f2;
  --fb-blue-dark: #0f5fc4;
  --sol-purple: #7b3ff2;
  --sol-green: #14f195;
  --sol-teal: #00d1b2;
  --red: #d64545;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(20, 241, 149, 0.14), transparent 28rem),
    radial-gradient(circle at top right, rgba(123, 63, 242, 0.12), transparent 30rem),
    var(--bg);
  color: var(--ink);
}

button,
input,
textarea {
  font: inherit;
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--fb-blue);
  color: white;
  cursor: pointer;
  font-weight: 700;
  padding: 0 16px;
}

.link-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: white;
  font-weight: 700;
  padding: 0 16px;
}

button:hover {
  background: var(--fb-blue-dark);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  padding: 8px 24px;
  backdrop-filter: blur(14px);
}

.ticker-bar {
  position: sticky;
  top: 88px;
  z-index: 18;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  height: 38px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  background: linear-gradient(90deg, rgba(232, 255, 247, 0.96), rgba(246, 242, 255, 0.96));
  overflow: hidden;
}

.ticker-label {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 14px;
  border-right: 1px solid rgba(17, 24, 39, 0.08);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-viewport {
  min-width: 0;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 90s linear infinite;
}

.ticker-bar:hover .ticker-track,
.ticker-bar:active .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  color: var(--ink);
  white-space: nowrap;
}

.ticker-item img,
.ticker-fallback-logo {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.ticker-fallback-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sol-purple), var(--fb-blue), var(--sol-teal));
  color: white;
  font-size: 10px;
  font-weight: 900;
}

.ticker-item strong,
.ticker-item span,
.ticker-item b {
  font-size: 13px;
}

.ticker-item em {
  border-radius: 999px;
  background: rgba(153, 69, 255, 0.14);
  color: #5b21b6;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  padding: 3px 6px;
}

.ticker-item .is-up {
  color: #07834f;
}

.ticker-item .is-down {
  color: #d14343;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  width: min(112px, 28vw);
  min-width: 78px;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 10px;
  justify-content: center;
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
}

.nav a {
  border-radius: 8px;
  padding: 12px 18px;
}

.nav a:hover {
  background: var(--soft-blue);
  color: var(--fb-blue);
}

.nav-more {
  position: relative;
  flex: 0 0 auto;
}

.nav-more summary {
  display: block;
  border-radius: 8px;
  padding: 12px 18px;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.nav-more summary::-webkit-details-marker {
  display: none;
}

.nav-more summary::after {
  content: "";
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  margin-left: 0.5em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.12em) rotate(45deg);
}

.nav-more[open] summary::after {
  transform: translateY(0.08em) rotate(225deg);
}

.nav-more-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  display: grid;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
}

.nav-more-menu a {
  white-space: nowrap;
}

.top-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification-wrap {
  position: relative;
}

.notification-button {
  position: relative;
  min-height: 44px;
  width: 44px;
  border-radius: 999px;
  padding: 0;
}

.notification-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.notification-count,
#notificationCount {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  border: 2px solid var(--panel);
  border-radius: 999px;
  background: #ff4d61;
  color: #fff;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
}

.notification-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 40;
  width: min(360px, calc(100vw - 24px));
  max-height: min(520px, calc(100vh - 120px));
  overflow: hidden;
  padding: 0;
}

.notification-menu header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 14px;
}

.notification-menu header button {
  min-height: 32px;
  border-radius: 999px;
  padding: 0 12px;
}

.notification-list {
  display: grid;
  max-height: 430px;
  overflow: auto;
}

.notification-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  text-align: left;
  padding: 12px 14px;
}

.notification-item:hover {
  background: var(--soft-blue);
  color: var(--ink);
}

.notification-item.is-unread {
  background: rgba(24, 119, 242, 0.08);
}

.notification-item strong,
.notification-item p,
.notification-item small {
  display: block;
}

.notification-item p {
  margin: 2px 0;
  color: var(--ink);
  line-height: 1.3;
}

.notification-item small,
.notification-empty {
  color: var(--muted);
}

.notification-empty {
  margin: 0;
  padding: 16px;
}

.wallet-selector-backdrop {
  align-items: center;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 10000;
}

.wallet-selector-modal {
  background:
    radial-gradient(circle at 0% 0%, rgba(20, 241, 149, 0.12), transparent 20rem),
    radial-gradient(circle at 100% 0%, rgba(153, 69, 255, 0.22), transparent 18rem),
    var(--panel);
  border: 1px solid rgba(153, 69, 255, 0.42);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
  color: var(--ink);
  display: grid;
  gap: 16px;
  max-width: 440px;
  padding: 18px;
  width: min(100%, 440px);
}

.wallet-selector-header {
  align-items: start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.wallet-selector-header h2 {
  color: white;
  font-size: 28px;
  line-height: 1;
  margin: 4px 0 0;
}

.wallet-selector-close {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: white;
  display: inline-flex;
  font-size: 28px;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  line-height: 1;
  width: 48px;
}

.wallet-selector-list {
  display: grid;
  gap: 10px;
}

.wallet-selector-option {
  align-items: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: white;
  display: flex;
  gap: 12px;
  padding: 12px;
  text-align: left;
}

.wallet-selector-option:hover,
.wallet-selector-option:focus-visible {
  border-color: rgba(153, 69, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(153, 69, 255, 0.18);
}

.wallet-selector-icon {
  align-items: center;
  background: linear-gradient(135deg, var(--sol-purple), var(--fb-blue) 52%, var(--sol-teal));
  border-radius: 14px;
  color: white;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 950;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.wallet-selector-option strong,
.wallet-selector-option small {
  display: block;
}

.wallet-selector-option strong {
  font-size: 18px;
  line-height: 1.1;
}

.wallet-selector-option small,
.wallet-selector-note {
  color: var(--muted);
  font-weight: 800;
}

.wallet-selector-note {
  font-size: 13px;
  margin: 0;
}

.wallet-selector-empty {
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  display: grid;
  gap: 10px;
  padding: 14px;
}

.wallet-selector-empty strong {
  color: white;
  font-size: 18px;
}

.wallet-selector-empty p {
  margin: 0;
}

.wallet-selector-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wallet-selector-links a {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: white;
  font-weight: 900;
  padding: 9px 12px;
  text-decoration: none;
}

.wallet-selector-open-links a {
  background: linear-gradient(135deg, var(--sol-purple), var(--fb-blue) 52%, var(--sol-teal));
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 26px rgba(24, 119, 242, 0.2);
}

.wallet-selector-install,
.wallet-selector-mobile {
  display: grid;
  gap: 9px;
}

.wallet-selector-install small {
  color: var(--muted);
  font-weight: 900;
}

.wallet-selector-mobile {
  border-top: 1px solid var(--line);
  margin-top: 2px;
  padding-top: 12px;
}

.wallet-selector-mobile strong {
  color: white;
  font-size: 15px;
}

.wallet-button {
  background: linear-gradient(135deg, var(--sol-purple), var(--fb-blue) 52%, var(--sol-teal));
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.22);
}

.wallet-button:hover {
  background: linear-gradient(135deg, #6931dd, var(--fb-blue-dark) 52%, #00b99d);
}

.layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 680px) 290px;
  gap: 20px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px;
}

.sidebar,
.rightbar {
  display: grid;
  align-content: start;
  gap: 16px;
  position: sticky;
  top: 86px;
}

.feed-column {
  display: grid;
  gap: 16px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 1px 2px rgba(28, 30, 33, 0.08);
}

.profile-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.avatar {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 18px;
  background-position: center;
  background-size: cover;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.8), transparent 28%),
    linear-gradient(135deg, var(--sol-purple), var(--fb-blue) 48%, var(--sol-green));
  color: white;
  font-weight: 900;
}

.avatar.has-photo {
  background-color: var(--line);
  background-position: center;
  background-size: cover;
}

.avatar.small {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 13px;
}

.avatar.mini {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  font-size: 11px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-panel h1 {
  margin: 0;
  font-size: 24px;
}

.wallet-address {
  margin: 6px 0 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.profile-form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.field-help {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

input,
textarea {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 10px 12px;
}

input:focus,
textarea:focus {
  border-color: var(--fb-blue);
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.14);
  outline: 0;
}

textarea {
  resize: vertical;
}

.rules-panel,
.news-panel,
.threads-panel {
  padding: 18px;
}

.rules-panel ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}

.news-panel,
.threads-panel {
  display: grid;
  gap: 12px;
}

.news-panel-header,
.threads-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.news-panel-header .eyebrow,
.threads-panel-header .eyebrow {
  margin: 0;
}

.threads-panel-header a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.threads-panel-header a:hover {
  color: var(--fb-blue);
}

.news-refresh {
  min-height: 30px;
  border: 1px solid var(--line);
  background: var(--soft-blue);
  color: var(--fb-blue);
  font-size: 12px;
  padding: 0 10px;
}

.news-refresh:hover {
  background: #dcebff;
  color: var(--fb-blue-dark);
}

.news-list {
  display: grid;
  gap: 4px;
}

.news-item {
  display: grid;
  gap: 4px;
  border-radius: 8px;
  padding: 10px 8px;
}

.news-item:hover {
  background: var(--soft-blue);
}

.news-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.news-item strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.news-empty {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.thread-list {
  display: grid;
  gap: 8px;
}

.thread-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  padding: 10px;
  text-decoration: none;
}

.thread-item:hover {
  border-color: rgba(153, 69, 255, 0.5);
  background: rgba(153, 69, 255, 0.08);
}

.thread-rank,
.thread-score {
  display: inline-grid;
  min-width: 34px;
  min-height: 28px;
  place-items: center;
  border-radius: 999px;
  background: rgba(153, 69, 255, 0.16);
  color: #c4b5fd;
  font-size: 12px;
  font-weight: 900;
}

.thread-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.thread-copy strong,
.thread-copy em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-copy strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
}

.thread-copy em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.thread-empty {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.news-page {
  display: grid;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.news-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
}

.news-hero h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1;
}

.news-hero p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
}

.news-board {
  display: grid;
  gap: 16px;
}

.news-tile-section {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.news-tile-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.news-tile-section-head .eyebrow {
  margin: 0;
}

.news-tile-section-head strong {
  color: var(--muted);
  font-size: 13px;
}

.news-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.news-tile {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  text-decoration: none;
}

.news-tile:hover {
  border-color: rgba(153, 69, 255, 0.5);
  background: rgba(153, 69, 255, 0.08);
}

.news-tile-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 20%, rgba(157, 77, 255, 0.22), transparent 38%),
    linear-gradient(135deg, rgba(20, 241, 149, 0.12), rgba(123, 63, 242, 0.16));
}

.news-tile-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.news-tile-copy {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
}

.news-tile span,
.news-tile em {
  color: var(--muted);
  font-size: 12px;
}

.news-tile span {
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-tile strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
}

.news-tile em {
  font-style: normal;
}

.news-loading {
  color: var(--muted);
  padding: 22px;
}

.composer {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.composer-row {
  display: flex;
  gap: 12px;
}

.composer textarea {
  min-height: 82px;
}

.composer-tools {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.image-picker {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-blue);
  color: var(--fb-blue);
  cursor: pointer;
  padding: 0 14px;
}

.image-picker input {
  display: none;
}

.image-preview {
  display: grid;
  gap: 10px;
}

.image-preview img {
  width: 100%;
  max-height: 320px;
  border-radius: 10px;
  object-fit: cover;
}

.image-preview button {
  justify-self: start;
  border: 1px solid var(--line);
  background: white;
  color: var(--red);
}

.composer-confirmation {
  border: 1px solid rgba(20, 241, 149, 0.34);
  border-radius: 8px;
  background: rgba(20, 241, 149, 0.12);
  color: #0a7f52;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 12px;
}

.status-line {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.mobile-wallet-note {
  display: none;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 14px;
}

.mobile-wallet-note strong,
.mobile-wallet-note span {
  color: var(--fb-blue);
}

.feed-list {
  display: grid;
  gap: 16px;
}

.feed-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  padding: 6px;
}

.feed-tab {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 900;
  box-shadow: none;
}

.feed-tab:hover {
  background: var(--soft-blue);
  color: var(--fb-blue);
}

.feed-tab.is-active {
  background: linear-gradient(135deg, var(--sol-purple), var(--fb-blue) 52%, var(--sol-teal));
  color: white;
  box-shadow: 0 8px 18px rgba(39, 117, 255, 0.16);
}

.keyword-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 0 0 12px;
}

.keyword-search input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  padding: 0 12px;
}

.keyword-search button {
  min-height: 38px;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 13px;
}

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

.coin-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
}

.coin-filter-bar strong {
  font-size: 14px;
}

.coin-filter-bar div {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.coin-filter-bar .secondary-button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--fb-blue);
  font-weight: 900;
  padding: 8px 12px;
}

.market-page {
  display: grid;
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 18px 56px;
}

.market-hero,
.market-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.market-hero {
  padding: 24px;
}

.market-hero h1 {
  margin: 0 0 8px;
  max-width: 720px;
  font-size: clamp(34px, 4.5vw, 50px);
  line-height: 1.02;
}

.market-hero p:not(.eyebrow) {
  max-width: 660px;
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.market-hero .wallet-button {
  flex: 0 0 auto;
  min-width: 154px;
  min-height: 48px;
  border-radius: 8px;
  font-size: 16px;
  padding: 0 18px;
  white-space: nowrap;
}

.market-controls {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 10px;
  margin: 0;
  padding: 12px;
}

.market-controls input,
.market-controls select,
.market-form input,
.market-form select,
.market-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 10px 12px;
}

.market-controls input,
.market-controls select {
  font-size: 16px;
}

.market-form textarea {
  min-height: 132px;
  resize: vertical;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.market-card {
  overflow: hidden;
  padding: 0;
}

.market-card > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  background: var(--soft-blue);
}

.market-card-body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.market-card h2 {
  margin: 0;
  font-size: 21px;
}

.market-card p,
.market-detail-body p {
  color: var(--muted);
  margin: 0;
}

.market-tag {
  width: fit-content;
  border-radius: 999px;
  background: rgba(24, 119, 242, 0.1);
  color: var(--fb-blue);
  font-size: 12px;
  font-weight: 900;
  padding: 5px 8px;
}

.market-seller {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.market-seller.large {
  font-size: 15px;
}

.market-detail {
  margin-top: 18px;
}

.market-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
}

.market-detail-image {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--soft-blue);
}

.market-photo-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  overflow-x: auto;
}

.market-photo-row img,
.listing-photo-preview img {
  width: 82px;
  height: 82px;
  border-radius: 8px;
  object-fit: cover;
}

.market-detail-body {
  display: grid;
  align-content: start;
  gap: 12px;
}

.market-detail-body h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
}

.market-price {
  font-size: 28px;
}

.market-warning {
  border: 1px solid rgba(214, 69, 69, 0.25);
  border-radius: 8px;
  background: rgba(214, 69, 69, 0.08);
  color: #9f1d1d;
  font-weight: 800;
  padding: 12px;
}

.market-instant-note {
  border: 1px solid rgba(20, 241, 149, 0.3);
  border-radius: 8px;
  background: rgba(20, 241, 149, 0.1);
  color: var(--ink);
  font-weight: 800;
  padding: 12px;
}

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

.market-transfer-note {
  flex-basis: 100%;
  border-radius: 8px;
  background: rgba(20, 241, 149, 0.12);
  padding: 10px;
}

.market-review-form {
  flex-basis: 100%;
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7fbff;
  padding: 12px;
}

.market-review-form textarea {
  min-height: 92px;
  resize: vertical;
}

.market-review-form .wallet-button {
  justify-self: start;
}

.market-star-picker {
  display: flex;
  gap: 6px;
}

.market-star-picker button {
  min-height: 44px;
  width: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: #9aa0a6;
  font-size: 28px;
  line-height: 1;
  padding: 0;
}

.market-star-picker button.selected,
.market-star-picker button:hover {
  border-color: rgba(247, 181, 0, 0.5);
  background: rgba(247, 181, 0, 0.14);
  color: #f7b500;
}

.market-create {
  width: min(100%, 860px);
  justify-self: center;
  margin-top: 0;
  padding: 24px;
}

.market-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.market-form label {
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.market-form input,
.market-form select,
.market-form textarea {
  font-size: 16px;
  font-weight: 600;
}

.market-form input[type="file"] {
  min-height: auto;
  border-style: dashed;
  color: var(--muted);
  font-weight: 800;
}

.market-form input[type="checkbox"] {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  padding: 0;
  accent-color: var(--fb-blue);
}

.market-form label:nth-child(3),
.market-photo-field,
.market-conversion-note,
.market-form .listing-photo-preview,
.market-form .check-row,
.market-form button,
.market-status {
  grid-column: 1 / -1;
}

.market-conversion-note {
  margin: -6px 0 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.market-form button {
  justify-self: end;
  width: fit-content;
}

.market-form .check-row {
  display: flex;
  align-items: center;
  width: fit-content;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7fbff;
  color: var(--ink);
  padding: 10px 14px;
}

.listing-photo-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.market-empty {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  padding: 14px 16px;
  text-align: center;
}

.feed-loader {
  min-height: 42px;
  border: 1px solid var(--line);
  background: white;
  color: var(--fb-blue);
}

.feed-loader:hover {
  background: var(--soft-blue);
  color: var(--fb-blue-dark);
}

.post-card {
  overflow: hidden;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.post-card:hover {
  border-color: rgba(153, 69, 255, 0.45);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
  transform: translateY(-1px);
}

.post-card:focus-visible {
  outline: 3px solid rgba(153, 69, 255, 0.6);
  outline-offset: 3px;
}

.post-card a,
.post-card button,
.post-card input,
.post-card textarea,
.post-card label,
.post-card iframe,
.tip-panel,
.comment-form,
.comment-reply-form {
  cursor: auto;
}

.post-card button,
.post-card label,
.post-card a,
.post-avatar,
.post-name {
  cursor: pointer;
}

.post-card.new-post-highlight {
  box-shadow: 0 0 0 3px rgba(20, 241, 149, 0.36), 0 10px 28px rgba(24, 119, 242, 0.16);
}

.post-header {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 16px 16px 0;
}

.post-card--link-only .post-header {
  padding-bottom: 14px;
}

.post-avatar,
.post-name,
.comment-avatar,
.comment strong,
.member {
  cursor: pointer;
}

.post-header h2 {
  margin: 0;
  font-size: 16px;
}

.post-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.profile-hover-card {
  position: absolute;
  z-index: 20;
  top: 54px;
  left: 64px;
  display: grid;
  width: min(320px, calc(100vw - 42px));
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
  padding: 14px;
}

.profile-hover-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.profile-hover-top strong,
.profile-hover-top span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-hover-top span,
.profile-hover-card p {
  color: var(--muted);
}

.profile-hover-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.profile-hover-stats,
.profile-hover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.profile-hover-stats span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7fbff;
  color: var(--muted);
  font-size: 12px;
  padding: 7px 10px;
}

.profile-hover-stats b {
  color: var(--ink);
}

.profile-hover-actions button {
  padding: 8px 12px;
}

.post-body {
  margin: 14px 16px;
  white-space: pre-wrap;
}

.post-body a {
  color: var(--fb-blue);
  overflow-wrap: anywhere;
  text-decoration: none;
}

.post-body a:hover {
  color: var(--fb-blue-dark);
  text-decoration: underline;
}

.post-image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.link-preview {
  display: grid;
  margin: 0 16px 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: inherit;
  text-decoration: none;
}

.link-preview:hover {
  border-color: var(--fb-blue);
  box-shadow: 0 8px 18px rgba(24, 119, 242, 0.1);
}

.link-preview > img {
  width: 100%;
  aspect-ratio: 1.9 / 1;
  max-height: 230px;
  object-fit: cover;
  background: #f0f2f5;
}

.link-preview--youtube {
  position: relative;
  cursor: default;
}

.link-preview--youtube iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #111827;
}

.link-preview--youtube > img {
  aspect-ratio: 16 / 9;
  max-height: 360px;
  background: #05090f;
}

.youtube-play-badge {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8b3dff, #18c7c7);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.38);
  pointer-events: none;
}

.link-preview--youtube.is-playing .youtube-play-badge,
.link-preview--youtube.is-playing > div {
  display: none;
}

.link-preview--walletbook > img {
  max-height: 190px;
  padding: 18px;
  object-fit: contain;
  background:
    linear-gradient(135deg, rgba(20, 241, 149, 0.14), rgba(153, 69, 255, 0.12)),
    #ffffff;
}

.link-preview > div {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.link-preview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.link-preview strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.link-preview p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.post-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0 16px;
  padding: 8px 0;
  color: var(--muted);
}

.like-count,
.tip-count {
  margin-left: auto;
}

.tip-count {
  margin-left: 0;
  border-radius: 999px;
  background: rgba(20, 241, 149, 0.14);
  color: #0d6b4c;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 10px;
}

.boost-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(20, 241, 149, 0.22), rgba(153, 69, 255, 0.18));
  color: #065f46;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 900;
  padding: 3px 8px;
}

.like-button,
.tip-button,
.boost-button,
.comments-button,
.share-button {
  min-height: 36px;
  border: 1px solid var(--line);
  background: var(--soft-blue);
  color: var(--fb-blue);
}

.boost-button {
  border-color: rgba(153, 69, 255, 0.28);
  background: linear-gradient(135deg, var(--sol-purple), var(--fb-blue) 52%, var(--sol-teal));
  color: white;
  box-shadow: 0 8px 18px rgba(39, 117, 255, 0.16);
}

.message-button {
  min-height: 36px;
  border: 1px solid var(--line);
  background: white;
  color: var(--fb-blue);
}

.admin-delete-button {
  min-height: 36px;
  border: 1px solid #ffd0d7;
  background: #fff5f6;
  color: var(--red);
}

.like-button:hover,
.message-button:hover,
.tip-button:hover,
.comments-button:hover,
.share-button:hover {
  background: #dcebff;
  color: var(--fb-blue-dark);
}

.admin-delete-button:hover {
  background: #ffe5e9;
}

.tip-panel {
  display: grid;
  gap: 10px;
  margin: 12px 16px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbff;
  padding: 12px;
}

.tip-panel[hidden] {
  display: none;
}

.tip-panel-header,
.tip-options,
.tip-custom {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tip-panel-header {
  justify-content: space-between;
}

.tip-close {
  min-height: 32px;
  width: 32px;
  background: white;
  color: var(--ink);
  padding: 0;
}

.tip-options,
.tip-custom {
  flex-wrap: wrap;
}

.tip-choice {
  min-height: 34px;
  border: 1px solid var(--line);
  background: white;
  color: var(--fb-blue);
}

.tip-custom input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 0 10px;
}

.tip-custom input {
  width: 140px;
}

.tip-token-label {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 800;
  padding: 0 10px;
}

.tip-status {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.tip-status-success {
  border-radius: 8px;
  background: rgba(20, 241, 149, 0.14);
  color: #0d6b4c;
  font-weight: 800;
  padding: 10px;
}

.tip-status-error {
  border-radius: 8px;
  background: #fff5f6;
  color: var(--red);
  font-weight: 800;
  padding: 10px;
}

.tip-status a {
  color: var(--fb-blue);
  text-decoration: underline;
}

.comment-form {
  display: grid;
  gap: 10px;
  padding: 12px 16px;
}

.comment-form input {
  border-radius: 999px;
}

.comment-tools {
  display: grid;
  gap: 8px;
}

.emoji-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.emoji-row button {
  min-height: 32px;
  min-width: 36px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 0 8px;
}

.comment-actions {
  display: flex;
  gap: 8px;
}

.comment-actions button {
  min-height: 38px;
}

.comment-media-input {
  display: none;
}

.comment-media-picker {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-blue);
  color: var(--fb-blue);
  cursor: pointer;
  padding: 0 12px;
}

.comment-media-preview {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.comment-media-preview img {
  max-width: min(260px, 100%);
  max-height: 180px;
  border-radius: 10px;
  object-fit: cover;
}

.comment-media-preview button {
  min-height: 32px;
  border: 1px solid var(--line);
  background: white;
  color: var(--red);
}

.comments {
  display: grid;
  gap: 8px;
  padding: 0 16px 16px;
}

.comment {
  display: flex;
  gap: 8px;
  border-radius: 10px;
  background: #f0f2f5;
  padding: 10px 12px;
  font-size: 14px;
}

.comment-content {
  min-width: 0;
}

.comment strong {
  display: block;
  margin-bottom: 2px;
}

.comment-like-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.comment-like-button {
  min-height: 0;
  border: 0;
  background: transparent;
  color: var(--fb-blue);
  font-size: 12px;
  font-weight: 800;
  padding: 0;
}

.comment-reply-button {
  min-height: 0;
  border: 0;
  background: transparent;
  color: var(--fb-blue);
  font-size: 12px;
  font-weight: 800;
  padding: 0;
}

.comment-delete-button {
  min-height: 0;
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  padding: 0;
}

.comment-like-button:hover,
.comment-reply-button:hover,
.comment-delete-button:hover {
  background: transparent;
  text-decoration: underline;
}

.comment-like-button:hover,
.comment-reply-button:hover {
  color: var(--fb-blue-dark);
}

.comment-reply-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 8px;
}

.comment-reply-form[hidden] {
  display: none;
}

.comment-reply-form input {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  padding: 0 12px;
}

.comment-reply-form button {
  min-height: 34px;
  padding: 0 14px;
}

.comment-replies {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.comment-reply {
  border-left: 2px solid var(--line);
  padding-left: 10px;
}

.comment-reply strong {
  display: inline;
  margin: 0 6px 0 0;
  cursor: pointer;
}

.comment-reply-like-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.comment-reply-like-button {
  min-height: 0;
  border: 0;
  background: transparent;
  color: var(--fb-blue);
  font-size: 12px;
  font-weight: 800;
  padding: 0;
}

.comment-reply-like-button:hover {
  background: transparent;
  color: var(--fb-blue-dark);
  text-decoration: underline;
}

.comment-image {
  display: block;
  max-width: min(320px, 100%);
  max-height: 260px;
  margin-top: 8px;
  border-radius: 10px;
  object-fit: cover;
}

.post-page {
  display: grid;
  gap: 14px;
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 44px;
}

.post-back-link {
  justify-self: start;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.post-back-link:hover {
  color: var(--ink);
  text-decoration: underline;
}

.post-thread-shell {
  padding: 0;
  overflow: hidden;
}

.post-thread-status {
  color: var(--muted);
  padding: 24px;
}

.post-thread-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
}

.post-thread-header .post-name,
.comment-author,
.comment-reply a {
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.post-thread-header .post-name:hover,
.comment-author:hover,
.comment-reply a:hover {
  color: #c4b5fd;
  text-decoration: underline;
}

.post-thread-body {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.5;
  white-space: pre-wrap;
  padding: 22px 20px;
}

.post-thread-body a {
  color: #9d7cff;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.post-thread-body a:hover {
  text-decoration: underline;
}

.post-thread-media .post-image {
  display: block;
  max-height: 680px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.35);
}

.post-thread-media .link-preview {
  margin: 0 20px 20px;
}

.post-thread-actions {
  margin: 0 20px;
}

.post-thread-comments {
  display: grid;
  gap: 14px;
  padding: 18px 20px 22px;
}

.post-thread-comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.post-thread-comments-head .eyebrow {
  margin: 0;
}

.post-thread-comment-form {
  padding: 0;
}

.post-thread-comment {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.member-list {
  display: grid;
  gap: 10px;
}

.member {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  border-radius: 8px;
  padding: 6px;
}

.member > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.member-name-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.member-name-row strong {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-live-badge,
.live-pill {
  display: inline-grid;
  min-height: 18px;
  place-items: center;
  border-radius: 999px;
  background: #ef4444;
  color: white;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.member-live-badge {
  flex: 0 0 auto;
  padding: 0 6px;
}

.member-message-button {
  min-height: 32px;
  border: 1px solid var(--line);
  background: var(--soft-blue);
  color: var(--fb-blue);
  font-size: 12px;
  padding: 0 10px;
}

.member:hover {
  background: var(--soft-blue);
}

.rightbar .panel {
  padding: 18px;
}

.metric {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 12px 0;
  color: var(--muted);
}

.metric strong {
  color: var(--ink);
}

.profile-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px;
}

.members-page {
  display: grid;
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
}

.members-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
}

.members-hero h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
}

.members-hero p {
  margin: 8px 0 0;
  color: var(--muted);
}

.members-hero > strong {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--soft-blue);
  color: var(--fb-blue);
  font-size: 14px;
  padding: 10px 14px;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 16px;
}

.member-tile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.member-tile:hover {
  border-color: var(--fb-blue);
  box-shadow: 0 10px 24px rgba(24, 119, 242, 0.12);
  transform: translateY(-1px);
}

.member-profile-link {
  display: grid;
  min-width: 0;
  color: inherit;
}

.member-tile-avatar {
  width: 74px;
  height: 74px;
  border-radius: 22px;
  font-size: 20px;
}

.member-tile-body {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.member-tile-body strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-profile-link span {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  max-width: 100%;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-tile-body p {
  display: -webkit-box;
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.member-social-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.member-social-row > span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7fbff;
  padding: 7px 10px;
}

.member-social-row strong {
  color: var(--ink);
  font-size: inherit;
}

.follow-button {
  border: 1px solid var(--fb-blue);
  border-radius: 999px;
  background: var(--fb-blue);
  color: white;
  font-weight: 900;
  padding: 9px 14px;
  cursor: pointer;
}

.follow-button.is-following {
  border-color: var(--line);
  background: #eef6ff;
  color: var(--fb-blue);
}

.follow-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.member-follow-button {
  margin-left: auto;
  padding: 7px 12px;
}

.member-game-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.member-game-stats div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7fbff;
  padding: 8px;
}

.member-game-stats span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.member-game-stats strong {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--fb-blue);
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-assets {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.member-assets-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.member-assets-header strong,
.asset-section-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.member-assets-header button {
  min-height: 30px;
  border-radius: 8px;
  background: #e8f3ff;
  color: var(--fb-blue);
  font-size: 12px;
  padding: 0 10px;
}

.member-assets-status {
  color: var(--muted);
  font-size: 13px;
}

.member-assets.is-loading .member-assets-status {
  color: var(--fb-blue);
  font-weight: 800;
}

.member-asset-section {
  display: grid;
  gap: 6px;
}

.asset-chip-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  max-height: 118px;
  overflow-y: auto;
  padding-right: 2px;
}

.asset-chip {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  padding: 6px 8px;
  min-width: 0;
}

.asset-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(153, 69, 255, 0.95), rgba(24, 119, 242, 0.9) 55%, rgba(20, 241, 149, 0.88));
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.asset-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asset-copy {
  display: grid;
  min-width: 0;
}

.asset-copy strong {
  overflow: hidden;
  max-width: 100%;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-copy em {
  overflow: hidden;
  color: var(--fb-blue);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-empty {
  color: var(--muted);
  font-size: 12px;
}

.members-empty {
  grid-column: 1 / -1;
  padding: 18px;
  color: var(--muted);
}

.chess-page {
  display: grid;
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
}

.games-hub-page {
  display: grid;
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
}

.games-hub-hero {
  display: grid;
  gap: 10px;
  padding: 24px;
}

.games-hub-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.95;
}

.games-hub-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.games-hub-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.game-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.game-tile {
  display: grid;
  gap: 14px;
  min-height: 380px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 0%, rgba(67, 240, 167, 0.12), transparent 18rem),
    radial-gradient(circle at 100% 14%, rgba(157, 77, 255, 0.16), transparent 20rem),
    linear-gradient(180deg, rgba(12, 22, 30, 0.96), rgba(5, 8, 12, 0.98));
  color: var(--ink);
  overflow: hidden;
  padding: 18px;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.game-tile:hover {
  border-color: rgba(157, 77, 255, 0.55);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.32);
  transform: translateY(-2px);
}

.game-tile-art {
  display: grid;
  min-height: 170px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(153, 69, 255, 0.22), rgba(20, 241, 149, 0.12));
}

.game-tile-art strong {
  color: white;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1;
}

.game-tile--trex .game-tile-art strong,
.game-tile--pong .game-tile-art strong,
.game-tile--frogger .game-tile-art strong,
.game-tile--civil .game-tile-art strong,
.game-tile--delivery .game-tile-art strong,
.game-tile--dog-catcher .game-tile-art strong,
.game-tile--centipede .game-tile-art strong,
.game-tile--space-invaders .game-tile-art strong,
.game-tile--pac-man .game-tile-art strong,
.game-tile--shoot-pop .game-tile-art strong {
  font-size: clamp(34px, 4vw, 54px);
}

.game-tile--snake .game-tile-art strong,
.game-tile--tetrius .game-tile-art strong,
.game-tile--platformer .game-tile-art strong {
  align-items: center;
  background: linear-gradient(135deg, var(--sol-purple), var(--fb-blue) 52%, var(--sol-teal));
  border-radius: 28px;
  display: flex;
  height: 112px;
  justify-content: center;
  width: 112px;
}

.game-tile--platformer .game-tile-art strong {
  font-size: clamp(38px, 5vw, 62px);
}

.game-tile-art small {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.game-tile h2 {
  margin: 0;
  color: white;
  font-size: 30px;
  line-height: 1;
}

.game-tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.game-tile b {
  align-self: end;
  width: fit-content;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--sol-purple), var(--fb-blue) 52%, var(--sol-teal));
  color: white;
  padding: 11px 14px;
}

.game-tile--trex .game-tile-art {
  background:
    linear-gradient(135deg, rgba(69, 240, 167, 0.18), rgba(153, 69, 255, 0.2)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 10px, transparent 10px 20px);
}

.game-tile--snake .game-tile-art {
  background:
    radial-gradient(circle at 70% 34%, rgba(20, 241, 149, 0.34), transparent 7rem),
    linear-gradient(135deg, rgba(153, 69, 255, 0.2), rgba(5, 8, 12, 0.4)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 8px, transparent 8px 16px);
}

.game-tile--tetrius .game-tile-art {
  background:
    linear-gradient(90deg, rgba(153, 69, 255, 0.52) 0 26%, transparent 26% 31%, rgba(32, 215, 245, 0.5) 31% 57%, transparent 57% 62%, rgba(20, 241, 149, 0.46) 62% 88%, transparent 88%),
    linear-gradient(0deg, transparent 0 44%, rgba(255, 102, 128, 0.44) 44% 70%, transparent 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.07) 0 4px, transparent 4px 34px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 4px, transparent 4px 34px),
    linear-gradient(135deg, rgba(153, 69, 255, 0.2), rgba(5, 8, 12, 0.42));
}

.game-tile--platformer .game-tile-art {
  background:
    linear-gradient(180deg, rgba(33, 150, 243, 0.18), transparent 55%),
    linear-gradient(135deg, rgba(20, 241, 149, 0.18), rgba(153, 69, 255, 0.18)),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, 0.05) 18px 20px);
}

.game-tile--pong .game-tile-art {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 48%, transparent 48% 52%, rgba(255, 255, 255, 0.18) 52%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.44) 0 12px, transparent 13px),
    linear-gradient(135deg, rgba(153, 69, 255, 0.22), rgba(20, 241, 149, 0.14));
}

.game-tile--frogger .game-tile-art {
  background:
    linear-gradient(180deg, rgba(20, 241, 149, 0.28) 0 18%, transparent 18% 82%, rgba(20, 241, 149, 0.18) 82%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 8px, transparent 8px 54px),
    linear-gradient(135deg, rgba(153, 69, 255, 0.16), rgba(5, 8, 12, 0.32));
}

.game-tile--delivery .game-tile-art {
  background:
    linear-gradient(90deg, transparent 0 38%, rgba(255, 255, 255, 0.74) 38% 42%, transparent 42%),
    radial-gradient(circle at 78% 22%, rgba(253, 224, 71, 0.95) 0 22px, transparent 23px),
    linear-gradient(180deg, rgba(125, 211, 252, 0.5) 0 45%, rgba(74, 222, 128, 0.52) 45% 56%, rgba(51, 65, 85, 0.86) 56%),
    linear-gradient(135deg, rgba(153, 69, 255, 0.18), rgba(32, 215, 245, 0.16));
}

.game-tile--civil .game-tile-art {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.12) 0 2px, transparent 2px 98px),
    linear-gradient(0deg, rgba(255,255,255,0.12) 0 2px, transparent 2px 58px),
    radial-gradient(circle at 14% 78%, rgba(32, 215, 245, 0.8) 0 28px, transparent 29px),
    radial-gradient(circle at 74% 22%, rgba(255, 102, 128, 0.72) 0 18px, transparent 19px),
    radial-gradient(circle at 43% 52%, rgba(20, 241, 149, 0.66) 0 20px, transparent 21px),
    linear-gradient(115deg, transparent 0 40%, rgba(32, 215, 245, 0.46) 40% 52%, transparent 52%),
    linear-gradient(180deg, rgba(20, 241, 149, 0.2) 0 76%, rgba(32, 215, 245, 0.42) 76%),
    linear-gradient(135deg, rgba(153, 69, 255, 0.22), rgba(20, 241, 149, 0.14));
}

.game-tile--centipede .game-tile-art {
  background:
    radial-gradient(circle at 30% 35%, rgba(20, 241, 149, 0.48) 0 12px, transparent 13px),
    radial-gradient(circle at 45% 44%, rgba(20, 241, 149, 0.42) 0 12px, transparent 13px),
    radial-gradient(circle at 60% 52%, rgba(20, 241, 149, 0.36) 0 12px, transparent 13px),
    linear-gradient(135deg, rgba(153, 69, 255, 0.2), rgba(255, 102, 128, 0.12));
}

.game-tile--space-invaders .game-tile-art {
  background:
    radial-gradient(circle at 28% 32%, rgba(20, 241, 149, 0.55) 0 10px, transparent 11px),
    radial-gradient(circle at 44% 32%, rgba(20, 241, 149, 0.55) 0 10px, transparent 11px),
    radial-gradient(circle at 60% 32%, rgba(20, 241, 149, 0.55) 0 10px, transparent 11px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0 2px, transparent 2px 28px),
    linear-gradient(135deg, rgba(153, 69, 255, 0.22), rgba(32, 215, 245, 0.14));
}

.game-tile--pac-man .game-tile-art {
  background:
    radial-gradient(circle at 33% 50%, #ffd43b 0 33px, transparent 34px),
    radial-gradient(circle at 58% 50%, #ff6680 0 24px, transparent 25px),
    radial-gradient(circle at 72% 50%, #20d7f5 0 24px, transparent 25px),
    repeating-linear-gradient(90deg, rgba(32, 215, 245, 0.16) 0 6px, transparent 6px 42px),
    repeating-linear-gradient(0deg, rgba(32, 215, 245, 0.16) 0 6px, transparent 6px 42px),
    linear-gradient(135deg, rgba(153, 69, 255, 0.22), rgba(5, 8, 12, 0.42));
}

.game-tile--shoot-pop .game-tile-art {
  background:
    radial-gradient(circle at 28% 34%, rgba(255, 102, 128, 0.9) 0 23px, transparent 24px),
    radial-gradient(circle at 54% 48%, rgba(32, 215, 245, 0.9) 0 31px, transparent 32px),
    radial-gradient(circle at 76% 32%, rgba(255, 212, 59, 0.92) 0 21px, transparent 22px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 36px),
    linear-gradient(135deg, rgba(153, 69, 255, 0.26), rgba(20, 241, 149, 0.12));
}

.trex-page {
  display: grid;
  gap: 20px;
  margin: 24px auto 72px;
  max-width: 1220px;
  padding: 0 16px;
}

.trex-hero {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.trex-hero h1 {
  color: white;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.95;
  margin: 4px 0 10px;
}

.trex-hero p:last-child {
  color: var(--muted);
  font-weight: 800;
  margin: 0;
}

.trex-stage {
  display: grid;
  gap: 14px;
}

.trex-hud,
.trex-mobile-controls {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.trex-hud span {
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-weight: 900;
  padding: 10px 14px;
  text-transform: uppercase;
}

.trex-hud strong {
  color: white;
}

.trex-canvas {
  aspect-ratio: 8 / 3;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(153, 69, 255, 0.12);
  display: block;
  max-height: 520px;
  width: 100%;
}

.trex-mobile-controls button {
  flex: 1;
}

.arcade-play-shell {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
}

.arcade-canvas-stage,
.arcade-side-panel {
  display: grid;
  gap: 14px;
}

.arcade-side-panel {
  align-content: start;
}

.arcade-canvas {
  background: #050b0f;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(153, 69, 255, 0.12);
  display: block;
  width: 100%;
}

.snake-canvas {
  aspect-ratio: 1;
  max-height: min(720px, 70vh);
}

.shoot-pop-layout {
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.28fr);
}

.shoot-pop-canvas {
  aspect-ratio: 8 / 5;
  cursor: crosshair;
  max-height: min(620px, 68vh);
  touch-action: none;
}

.shoot-pop-modes {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shoot-pop-modes button {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-weight: 900;
  min-height: 44px;
}

.shoot-pop-modes button.is-active {
  background: linear-gradient(135deg, var(--sol-purple), var(--fb-blue) 52%, var(--sol-teal));
  border-color: rgba(255, 255, 255, 0.18);
  color: white;
}

.shoot-pop-rules {
  display: grid;
  gap: 10px;
}

.shoot-pop-rules span {
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-weight: 850;
  line-height: 1.35;
  padding: 12px;
}

.delivery-layout {
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.28fr);
}

.delivery-canvas {
  aspect-ratio: 16 / 9;
  max-height: min(620px, 68vh);
  touch-action: none;
}

.dog-catcher-layout {
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.28fr);
}

.dog-catcher-canvas {
  aspect-ratio: 16 / 9;
  cursor: none;
  max-height: min(620px, 68vh);
  touch-action: none;
}

.delivery-mobile-controls {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.delivery-mobile-controls button {
  min-height: 48px;
}

.civil-layout {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.34fr);
}

.civil-canvas {
  aspect-ratio: 25 / 18;
  max-height: none;
  touch-action: manipulation;
}

.civil-room-header {
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
}

.civil-page {
  max-width: 1480px;
}

.civil-room-header h2 {
  color: white;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  margin: 4px 0 8px;
}

.civil-room-header p {
  color: var(--muted);
  font-weight: 850;
  line-height: 1.35;
  margin: 0 0 6px;
  max-width: 100%;
}

.civil-room-header .arcade-create {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 6px;
  width: 100%;
}

.civil-room-header .arcade-create input,
.civil-room-header .arcade-create button:first-of-type,
.civil-room-header #closeCivilRoom {
  grid-column: 1 / -1;
}

.civil-room-header .arcade-create button {
  width: 100%;
}

.civil-room-list {
  max-height: 260px;
  min-height: 110px;
  overflow: auto;
  padding-right: 4px;
}

@media (max-width: 1120px) {
  .civil-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .civil-room-header .arcade-create {
    grid-template-columns: minmax(0, 1fr);
  }
}

.civil-player-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 6px;
  padding: 14px;
}

.civil-player-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.civil-player-card strong {
  color: white;
  font-size: 18px;
}

.civil-story-card {
  align-items: start;
  background:
    radial-gradient(circle at 0% 0%, rgba(153, 69, 255, 0.18), transparent 12rem),
    rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(167, 139, 250, 0.34);
  border-radius: 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: 54px minmax(0, 1fr);
  padding: 14px;
}

.civil-story-card > span {
  align-items: center;
  background: linear-gradient(135deg, var(--sol-purple), var(--fb-blue) 52%, var(--sol-teal));
  border-radius: 14px;
  color: white;
  display: flex;
  font-size: 28px;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.civil-story-card strong {
  color: white;
  display: block;
  font-size: 18px;
  line-height: 1.1;
  margin: 0 0 6px;
}

.civil-story-card p {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
}

.tetrius-body {
  min-height: 100dvh;
  overflow: auto;
}

.tetrius-page {
  gap: 10px;
  height: auto;
  margin: 0 auto;
  max-width: 1120px;
  overflow: visible;
  padding: 10px 16px 24px;
}

.tetrius-page .trex-hero {
  display: none;
}

.tetrius-page .arcade-play-shell {
  align-items: start;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.24fr);
  height: auto;
  min-height: 0;
}

.tetrius-page .arcade-canvas-stage {
  align-content: stretch;
  display: grid;
  gap: 8px;
  grid-template-rows: auto auto;
  min-height: 0;
  overflow: visible;
  padding: 10px;
}

.tetrius-page .arcade-side-panel {
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow: visible;
  padding: 10px;
}

.tetrius-page .trex-hud {
  gap: 8px;
}

.tetrius-page .trex-hud span,
.tetrius-page .trex-hud button {
  min-height: 34px;
  padding: 6px 10px;
}

.tetrius-page .mines-status {
  display: none;
}

.tetrius-page .arcade-big-stat {
  font-size: clamp(24px, 2.4vw, 34px);
}

.tetrius-page .arcade-dpad {
  gap: 7px;
}

.tetrius-page .arcade-dpad button {
  min-height: 38px;
  padding: 6px 8px;
}

.tetrius-canvas {
  align-self: center;
  aspect-ratio: 1 / 2;
  height: min(520px, 62dvh);
  justify-self: center;
  max-height: none;
  max-width: 100%;
  min-height: 0;
  width: auto;
}

@media (max-height: 760px) {
  .tetrius-page {
    padding-bottom: 8px;
    padding-top: 6px;
  }

  .tetrius-page .arcade-canvas-stage,
  .tetrius-page .arcade-side-panel {
    padding: 8px;
  }

  .tetrius-canvas {
    height: min(460px, 58dvh);
  }
}

@media (max-width: 760px) {
  .tetrius-page {
    padding: 8px 10px 24px;
  }

  .tetrius-page .arcade-play-shell {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
  }

  .tetrius-canvas {
    height: min(430px, 58dvh);
  }

  .tetrius-page .arcade-side-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.tetrius-next {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: block;
  max-width: 132px;
  width: 100%;
}

@supports not (height: 100dvh) {
  .tetrius-canvas {
    height: clamp(220px, calc(100vh - 390px), 360px);
  }
}

.tetrius-canvas {
  min-height: 0;
}

.platformer-canvas {
  aspect-ratio: 2 / 1;
  max-height: 560px;
}

.pong-canvas {
  aspect-ratio: 16 / 9;
  max-height: 560px;
}

.arcade-duel-canvas {
  aspect-ratio: 10 / 7;
  max-height: 620px;
}

.arcade-dpad,
.platform-controls {
  display: grid;
  gap: 10px;
}

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

#snakeUp {
  grid-column: 2;
}

#snakeLeft {
  grid-column: 1;
}

#snakeDown {
  grid-column: 2;
}

#snakeRight {
  grid-column: 3;
}

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

.pong-mobile-controls {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pong-page .arcade-room-panel,
.arcade-duel-page .arcade-room-panel {
  align-content: start;
  gap: 16px;
}

.pong-page .arcade-room-header,
.arcade-duel-page .arcade-room-header {
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
}

.pong-page .arcade-room-header h2,
.arcade-duel-page .arcade-room-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 0.98;
}

.pong-page .arcade-create,
.arcade-duel-page .arcade-create {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}

.pong-page .arcade-create input,
.arcade-duel-page .arcade-create input {
  grid-column: 1 / -1;
  min-height: 52px;
}

.pong-page .arcade-create button,
.arcade-duel-page .arcade-create button {
  min-height: 52px;
  white-space: normal;
}

.pong-page #closePongRoom,
.arcade-duel-page #closeArcadeRoom {
  grid-column: 1 / -1;
}

.pong-page .arcade-room-grid,
.arcade-duel-page .arcade-room-grid {
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}

.pong-page .arcade-room,
.pong-page .arcade-score-row,
.arcade-duel-page .arcade-room,
.arcade-duel-page .arcade-score-row {
  min-width: 0;
}

.pong-page .arcade-room,
.arcade-duel-page .arcade-room {
  align-items: stretch;
  grid-template-columns: minmax(0, 1fr);
}

.pong-page .arcade-room > button:first-child,
.pong-page .arcade-room strong,
.pong-page .arcade-room span,
.pong-page .arcade-score-row strong,
.pong-page .arcade-score-row span,
.arcade-duel-page .arcade-room > button:first-child,
.arcade-duel-page .arcade-room strong,
.arcade-duel-page .arcade-room span,
.arcade-duel-page .arcade-score-row strong,
.arcade-duel-page .arcade-score-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.pong-page .arcade-room .secondary-button,
.arcade-duel-page .arcade-room .secondary-button {
  justify-self: start;
  min-width: 140px;
}

.arcade-help {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
  margin: 0;
}

.arcade-room-panel {
  display: grid;
  gap: 18px;
}

.arcade-room-header {
  align-items: end;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
}

.arcade-room-header h2 {
  color: white;
  font-size: 32px;
  line-height: 1;
  margin: 4px 0 8px;
}

.arcade-room-header p:last-child {
  color: var(--muted);
  font-weight: 800;
  margin: 0;
}

.arcade-create {
  display: flex;
  gap: 10px;
}

.arcade-create input {
  min-width: 0;
}

.arcade-room-grid,
.mines-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
}

.arcade-room-list,
.arcade-scoreboard {
  display: grid;
  gap: 10px;
}

.arcade-room,
.arcade-score-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px;
}

.arcade-room.active {
  border-color: var(--sol-purple);
  box-shadow: 0 0 0 3px rgba(153, 69, 255, 0.18);
}

.arcade-room > button:first-child {
  align-items: start;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: white;
  display: grid;
  gap: 4px;
  justify-items: start;
  min-height: 0;
  padding: 0;
  text-align: left;
}

.arcade-room span,
.arcade-score-row span {
  color: var(--muted);
  font-weight: 800;
}

.arcade-score-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.mines-stage {
  display: grid;
  gap: 14px;
}

.mines-board {
  aspect-ratio: 1;
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  max-width: 640px;
  width: 100%;
}

.mine-cell {
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(153, 69, 255, 0.34), rgba(20, 241, 149, 0.18));
  color: white;
  font-size: clamp(16px, 3vw, 28px);
  font-weight: 950;
  min-height: 0;
  padding: 0;
}

.mine-cell.revealed {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.mine-cell.flagged {
  background: rgba(255, 102, 128, 0.24);
}

.mine-cell.mine {
  background: rgba(255, 102, 128, 0.72);
}

.mines-status {
  color: var(--muted);
  font-weight: 900;
  margin: 0;
}

.followers-popup-trigger {
  position: fixed;
  right: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 95;
  min-height: 48px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sol-purple), var(--fb-blue) 52%, var(--sol-teal));
  color: white;
  padding: 0 20px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.36);
}

.followers-popup {
  position: fixed;
  right: 18px;
  bottom: calc(max(18px, env(safe-area-inset-bottom)) + 64px);
  z-index: 96;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  width: min(360px, calc(100vw - 36px));
  height: min(560px, calc(100dvh - 132px));
  overflow: hidden;
  padding: 18px;
}

.followers-popup[hidden] {
  display: none;
}

.followers-popup-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.followers-popup-header h2 {
  margin: 4px 0 0;
  color: white;
  font-size: 22px;
  line-height: 1.05;
}

.followers-popup-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.followers-popup-actions .chat-close-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  width: 40px;
  border-radius: 10px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

.followers-popup-list {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
}

.followers-popup-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  padding: 10px;
}

.followers-popup-avatar {
  width: 44px;
  height: 44px;
}

.followers-popup-item strong,
.followers-popup-item span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.followers-popup-item strong {
  color: white;
  font-size: 15px;
}

.followers-popup-item span {
  margin-top: 2px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.followers-popup-item button {
  grid-column: 1 / -1;
  min-height: 38px;
  border-radius: 10px;
}

.followers-popup-empty {
  margin: 0;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: var(--muted);
  padding: 14px;
  line-height: 1.35;
}

.game-page-holdem .bunco-layout,
.game-page-holdem .chess-layout,
.game-page-bunco .holdem-layout,
.game-page-bunco .chess-layout,
.game-page-chess .holdem-layout,
.game-page-chess .bunco-layout {
  display: none;
}

.chess-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
}

.chess-hero h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
}

.chess-hero p {
  margin: 8px 0 0;
  color: var(--muted);
}

.chess-create {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.chess-create input {
  width: min(280px, 38vw);
}

.chess-create select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
}

.game-private-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  padding: 0 12px;
  white-space: nowrap;
}

.game-private-toggle input {
  width: 16px;
  min-height: 16px;
  margin: 0;
}

.chess-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.holdem-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.bunco-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.chess-stage {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.chess-match-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.chess-match-header h2 {
  margin: 0;
  font-size: 24px;
}

.chess-match-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.game-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.game-requests {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(24, 119, 242, 0.18);
  border-radius: 10px;
  background: #f7fbff;
  padding: 10px;
}

.game-requests > strong {
  color: var(--ink);
  font-size: 13px;
}

.game-request-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
}

.game-request-row span {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-request-row button {
  min-height: 30px;
  border-radius: 8px;
  font-size: 12px;
  padding: 0 10px;
}

.chess-board-shell {
  display: grid;
  justify-items: center;
  overflow: hidden;
}

.chess-board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  width: min(76vw, 640px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.22);
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.chess-square {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: #111827;
  font-size: clamp(28px, 6vw, 58px);
  line-height: 1;
  padding: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.34);
}

.chess-square.light {
  background: #f0f6ff;
}

.chess-square.dark {
  background: #57bda2;
}

.chess-square.selected {
  box-shadow: inset 0 0 0 4px var(--fb-blue);
}

.chess-square.target::after {
  position: absolute;
  width: 28%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: rgba(24, 119, 242, 0.42);
  content: "";
}

.chess-players {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.chess-player {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 12px;
}

.chess-player span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.chess-player strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chess-sidebar {
  display: grid;
  align-content: start;
  gap: 16px;
}

.chess-game-list {
  display: grid;
  gap: 8px;
  max-height: 520px;
  overflow-y: auto;
}

.chess-game-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 8px;
}

.chess-game-card.active {
  border-color: var(--fb-blue);
  box-shadow: 0 8px 18px rgba(24, 119, 242, 0.12);
}

.chess-game-select {
  display: grid;
  justify-items: start;
  min-width: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  padding: 6px;
  text-align: left;
}

.chess-game-select strong,
.chess-game-select span {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chess-game-select span {
  color: var(--muted);
  font-size: 12px;
}

.chess-join,
.chess-share-table {
  min-height: 34px;
  border-radius: 8px;
  background: #e8f3ff;
  color: var(--fb-blue);
  padding: 0 10px;
}

.chess-share-table {
  background: linear-gradient(135deg, #6547ff, #00c2b8);
  color: #fff;
}

.chess-moves {
  display: grid;
  gap: 6px;
  max-height: 360px;
  margin: 0;
  overflow-y: auto;
  padding-left: 22px;
}

.chess-moves li,
.chess-empty {
  color: var(--muted);
  font-size: 14px;
}

.game-chat {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.game-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.game-chat-header .eyebrow {
  margin: 0;
}

.game-chat-header span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-chat-list {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 2px;
}

.game-chat-message {
  display: grid;
  gap: 4px;
  border-radius: 10px;
  background: #f7fbff;
  padding: 9px 10px;
}

.game-chat-message div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.game-chat-message strong,
.game-chat-message span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-chat-message strong {
  color: var(--ink);
  font-size: 13px;
}

.game-chat-message span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.game-chat-message p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.game-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.game-chat-form input {
  width: 100%;
}

.game-message-popups {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 24px));
  pointer-events: none;
}

.game-message-popup {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(24, 119, 242, 0.22);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.2);
  padding: 12px;
}

.game-message-popup strong {
  color: var(--fb-blue);
  font-size: 13px;
}

.game-message-popup span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-message-popup p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.holdem-stage {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.bunco-stage {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.bunco-table {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 220px;
  border: 1px solid rgba(153, 69, 255, 0.32);
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 18%, rgba(153, 69, 255, 0.28), transparent 34%),
    radial-gradient(circle at 84% 82%, rgba(20, 241, 149, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(5, 13, 18, 0.98), rgba(13, 24, 35, 0.98));
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.04), 0 18px 42px rgba(0, 0, 0, 0.2);
  padding: 22px;
}

.bunco-round {
  display: grid;
  gap: 4px;
  min-width: 98px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 14px;
}

.bunco-round span,
.bunco-round small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.bunco-round strong {
  color: #fff;
  font-size: 42px;
  line-height: 1;
}

.bunco-dice {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.bunco-dice span {
  display: grid;
  width: clamp(58px, 9vw, 86px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fbff, #dce6ff);
  color: #111827;
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 950;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.bunco-turn {
  max-width: 220px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  text-align: right;
}

.bunco-scoreboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.bunco-table-score {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}

.bunco-table-score header {
  display: grid;
  gap: 4px;
}

.bunco-table-score header strong {
  color: var(--ink);
}

.bunco-table-score header span {
  color: var(--muted);
  font-weight: 900;
}

.bunco-team-list {
  display: grid;
  gap: 8px;
}

.bunco-player {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.bunco-player.active {
  border-color: var(--sol-purple);
  box-shadow: 0 0 0 3px rgba(153, 69, 255, 0.2);
}

.bunco-player strong,
.bunco-player span,
.bunco-player small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bunco-player span {
  color: var(--ink);
  font-weight: 900;
}

.bunco-player small,
.bunco-rules p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.bunco-log {
  max-height: 220px;
}

.holdem-table {
  display: grid;
  gap: 16px;
  min-height: 360px;
  border: 1px solid rgba(20, 241, 149, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 24%, rgba(20, 241, 149, 0.28), transparent 34%),
    linear-gradient(135deg, #0f766e, #155e75 58%, #312e81);
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.08), 0 18px 42px rgba(15, 23, 42, 0.16);
  padding: 22px;
}

.holdem-community,
.holdem-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.holdem-community {
  justify-content: center;
}

.holdem-pot {
  justify-self: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-weight: 900;
  padding: 8px 14px;
}

.holdem-seats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.holdem-seat {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  padding: 10px;
}

.holdem-seat.active {
  box-shadow: 0 0 0 3px rgba(20, 241, 149, 0.8);
}

.holdem-seat.folded {
  opacity: 0.62;
}

.holdem-seat strong,
.holdem-seat span,
.holdem-seat small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.holdem-seat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.holdem-seat small {
  color: var(--fb-blue);
  font-size: 11px;
  font-weight: 900;
}

.playing-card {
  display: grid;
  width: 44px;
  height: 60px;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.16);
}

.playing-card.red {
  color: #dc2626;
}

.holdem-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.holdem-actions button,
.holdem-actions input {
  min-height: 40px;
}

.holdem-actions input {
  width: 150px;
  min-width: 0;
}

.token-page {
  display: grid;
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
}

.token-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 28px;
}

.token-hero h1 {
  margin: 0;
  font-size: 46px;
  line-height: 1;
}

.token-hero p,
.token-card p {
  max-width: 640px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.token-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--soft-blue);
  color: var(--fb-blue);
}

.secondary-button:hover {
  background: #dbeeff;
  color: var(--fb-blue-dark);
}

.danger-button {
  border-color: rgba(220, 38, 38, 0.28);
  background: #fff5f5;
  color: var(--red);
}

.danger-button:hover {
  background: #ffe4e6;
  color: var(--red);
}

.token-mark {
  display: grid;
  width: 260px;
  height: 148px;
  place-items: center;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--sol-purple), var(--fb-blue) 50%, var(--sol-green));
  box-shadow: 0 18px 40px rgba(24, 119, 242, 0.22);
  color: white;
  font-size: 30px;
  font-weight: 900;
}

.token-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.token-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
}

.token-card h2 {
  margin: 0;
  font-size: 24px;
}

.token-card code {
  display: block;
  overflow-wrap: anywhere;
  border-radius: 8px;
  background: #f0f2f5;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  line-height: 1.4;
  padding: 12px;
}

.token-chart-panel {
  display: grid;
  gap: 0;
  min-height: 50vh;
  overflow: hidden;
  padding: 0;
}

.token-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
}

.token-chart-header h2 {
  margin: 0;
  font-size: 24px;
}

.token-chart-header a {
  flex: 0 0 auto;
}

.token-chart-wrap {
  position: relative;
  height: clamp(560px, 58vh, 820px);
  min-height: 560px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
  background: #0b0f1a;
}

.token-chart-wrap iframe {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  min-width: 100%;
  height: 100%;
  min-height: 100%;
  border: 0;
  background: #05080c;
  display: block;
}

.token-market-board {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 28px;
  padding: clamp(24px, 5vw, 64px);
  background:
    radial-gradient(circle at 18% 18%, rgba(26, 188, 156, 0.22), transparent 34%),
    radial-gradient(circle at 86% 12%, rgba(138, 58, 244, 0.22), transparent 35%),
    linear-gradient(135deg, #071015, #101123 58%, #080b12);
}

.token-market-copy {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.token-market-copy strong {
  color: var(--ink);
  font-size: clamp(52px, 11vw, 132px);
  letter-spacing: 0;
  line-height: 0.92;
}

.token-market-copy p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 26px);
}

.token-market-stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 920px;
}

.token-market-stats div {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  padding: 18px;
}

.token-market-stats span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.token-market-stats b {
  display: block;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 38px);
  margin-top: 8px;
}

.token-market-stats .is-up {
  color: #78f0aa;
}

.token-market-stats .is-down {
  color: #ff6b7a;
}

.token-market-board > .wallet-button {
  justify-self: start;
}

.token-chart-fallback {
  position: absolute;
  inset: auto 18px 18px;
  z-index: 0;
  display: grid;
  gap: 4px;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 14px;
}

.token-chart-fallback span {
  color: var(--muted);
}

.creator-coin-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 22px;
  align-items: start;
  padding: 22px;
}

.creator-coin-copy h2 {
  margin: 0;
  font-size: 30px;
}

.creator-coin-copy p,
.creator-coin-status {
  color: var(--muted);
  line-height: 1.45;
}

.creator-coin-form {
  display: grid;
  gap: 12px;
}

.creator-coin-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 900;
}

.creator-coin-form input,
.creator-coin-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font: inherit;
  padding: 12px 14px;
}

.creator-coin-form textarea,
.bio-creator-coin-form textarea {
  resize: vertical;
  min-height: 104px;
}

.creator-coin-form button {
  justify-self: start;
}

.creator-coin-status {
  margin: 0;
}

.creator-coin-status code {
  overflow-wrap: anywhere;
  color: var(--ink);
}

.creator-coin-image-preview {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
}

.creator-coin-image-preview img {
  width: 92px;
  height: 92px;
  border-radius: 14px;
  object-fit: cover;
}

.creator-coin-image-preview .secondary-button {
  justify-self: start;
}

.profile-page-inner {
  display: grid;
  gap: 16px;
}

.back-button {
  justify-self: start;
}

.profile-cover {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
}

.profile-social-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.profile-social-stats button {
  display: grid;
  min-width: 110px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7fbff;
  color: var(--muted);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
}

.profile-social-stats button.is-active {
  border-color: var(--fb-blue);
  background: #eef6ff;
}

.profile-social-stats strong {
  color: var(--ink);
  font-size: 20px;
}

.profile-social-stats span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-actions {
  margin-top: 14px;
}

.follow-connect-note {
  display: inline-block;
  margin-top: 10px;
  color: var(--fb-blue);
  font-weight: 800;
}

.profile-social-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.profile-social-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-social-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 10px;
}

.profile-social-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: inherit;
  padding: 10px;
}

.profile-social-item strong,
.profile-social-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-social-item span,
.profile-social-empty {
  color: var(--muted);
}

.profile-marketplace {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.profile-marketplace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-marketplace-header h2 {
  margin: 0;
  font-size: 24px;
}

.profile-marketplace-header a {
  color: var(--fb-blue);
  font-weight: 900;
}

.profile-marketplace-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.profile-marketplace-listings,
.profile-marketplace-reviews {
  display: grid;
  align-content: start;
  gap: 10px;
}

.profile-marketplace-listings h3,
.profile-marketplace-reviews h3 {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-marketplace-listing,
.profile-marketplace-review {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: inherit;
  padding: 10px;
}

.profile-marketplace-listing {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.profile-marketplace-listing img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--soft-blue);
}

.profile-marketplace-listing strong,
.profile-marketplace-listing span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-marketplace-listing span,
.profile-marketplace-review p {
  color: var(--muted);
}

.profile-marketplace-review p {
  margin: 6px 0 0;
}

.profile-creator-coin {
  display: block;
  padding: 18px;
}

.profile-creator-coin-list {
  display: grid;
  gap: 18px;
}

.profile-creator-coin-card {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  padding: 14px;
}

.profile-creator-coin-mark {
  display: grid;
  width: 148px;
  height: 148px;
  aspect-ratio: 1;
  align-self: start;
  min-height: 0;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--sol-purple), var(--fb-blue) 56%, var(--sol-green));
  color: white;
  font-size: 28px;
  font-weight: 1000;
  box-shadow: 0 18px 34px rgba(91, 53, 197, 0.26);
}

.profile-creator-coin-mark img {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  border-radius: inherit;
  object-fit: cover;
}

.profile-creator-coin-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.profile-creator-coin-copy h2,
.profile-creator-coin-copy p {
  margin: 0;
}

.profile-creator-coin-copy p,
.profile-creator-coin-status,
.profile-creator-coin-price span {
  color: var(--muted);
}

.profile-creator-coin-copy code {
  display: block;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 13px;
  padding: 10px;
}

.profile-creator-coin-price {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}

.profile-creator-coin-price strong {
  font-size: 22px;
}

.profile-creator-coin-escrow {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  padding: 10px 12px;
}

.profile-creator-coin-escrow strong {
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-creator-coin-escrow span {
  color: var(--muted);
}

.profile-creator-coin-buy {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.profile-creator-coin-buy label {
  display: grid;
  gap: 6px;
  min-width: 220px;
  color: var(--muted);
  font-weight: 900;
}

.profile-creator-coin-buy input {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font: inherit;
  padding: 11px 12px;
}

.profile-creator-coin-buy button {
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--sol-purple), var(--fb-blue) 56%, var(--sol-green));
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 1000;
  min-height: 48px;
  padding: 0 22px;
}

.profile-creator-coin-buy button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.profile-creator-coin-status {
  margin: 0;
}

.bio-form-panel {
  padding: 18px;
}

.bio-creator-coin-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
}

#bioCreatorCoinView {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.bio-creator-coin-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.bio-creator-coin-card .profile-creator-coin-mark {
  width: 112px;
  height: 112px;
  overflow: hidden;
  box-shadow: none;
}

.bio-creator-coin-card .profile-creator-coin-copy {
  gap: 12px;
  overflow-wrap: anywhere;
}

.bio-creator-coin-card .profile-creator-coin-copy code {
  min-width: 0;
  white-space: normal;
  word-break: break-all;
}

.bio-creator-coin-card .profile-creator-coin-price {
  gap: 6px 12px;
  padding-top: 4px;
}

.bio-creator-coin-panel .bio-photo-header {
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 600px) {
  .bio-creator-coin-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 14px;
  }
}

.bio-creator-coin-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.bio-photo-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.bio-photo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bio-photo-header .eyebrow {
  margin: 0;
}

.bio-photo-header strong,
.bio-photo-empty {
  color: var(--muted);
}

.bio-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.bio-photo-tile {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: white;
}

.bio-photo-tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.bio-photo-tile span {
  position: absolute;
  inset: auto 0 0;
  display: block;
  opacity: 0;
  overflow: hidden;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  color: white;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  padding: 26px 8px 8px;
  text-overflow: ellipsis;
}

.bio-photo-tile:hover img {
  transform: scale(1.035);
  opacity: 0.86;
}

.bio-photo-tile:hover span {
  opacity: 1;
}

.bio-photo-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px 0;
}

.how-page {
  display: grid;
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 18px 48px;
}

.how-hero {
  display: grid;
  gap: 12px;
  padding: 28px;
}

.how-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.05;
}

.how-hero p,
.how-card p,
.how-admin p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.how-card {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.how-card span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sol-purple), var(--fb-blue) 52%, var(--sol-teal));
  color: white;
  font-weight: 900;
}

.how-card h2,
.how-admin h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
}

.how-admin {
  display: grid;
  gap: 10px;
  padding: 24px;
}

.profile-page-avatar {
  width: 104px;
  height: 104px;
  border-radius: 28px;
  font-size: 30px;
}

.profile-cover h2 {
  margin: 0;
  font-size: 32px;
}

.profile-bio {
  margin: 12px 0 0;
  color: var(--muted);
}

.profile-live-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  margin-top: 12px;
  border-radius: 999px;
  background: #ef4444;
  color: white;
  font-size: 13px;
  font-weight: 900;
  padding: 0 12px;
  text-decoration: none;
}

.profile-posts {
  display: grid;
  gap: 14px;
}

.profile-post-card {
  padding-top: 2px;
}

.empty-profile {
  padding: 18px;
  color: var(--muted);
}

.live-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px;
}

.live-stage {
  display: grid;
  gap: 16px;
  padding: 14px;
}

.live-stage-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.live-stage h1 {
  margin: 0;
  font-size: 28px;
}

.live-stage p {
  margin: 8px 0 0;
  color: var(--muted);
}

.live-controls {
  display: flex;
  gap: 8px;
}

.live-controls input {
  width: min(320px, 34vw);
}

.live-video-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #0d1117;
  box-shadow: inset 0 -160px 120px rgba(0, 0, 0, 0.42), inset 0 84px 80px rgba(0, 0, 0, 0.28);
}

.live-tip-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 78px;
  display: grid;
  gap: 4px;
  max-width: 460px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(153, 69, 255, 0.96), rgba(24, 119, 242, 0.95) 48%, rgba(20, 241, 149, 0.93));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
  color: #fff;
  padding: 14px 16px;
}

.live-tip-overlay[hidden] {
  display: none;
}

.live-tip-overlay strong {
  font-size: 14px;
}

.live-tip-overlay span {
  font-size: 22px;
  font-weight: 900;
}

#liveVideo,
#liveFallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#liveFallback {
  display: block;
}

.live-video-topbar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.58), transparent);
  color: #fff;
  pointer-events: none;
}

.live-host-chip,
.live-room-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.live-host-chip strong {
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.44);
  white-space: nowrap;
}

.live-muted-mark,
.live-broadcast-pill,
.live-viewer-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  padding: 0 10px;
}

.live-muted-mark {
  background: rgba(0, 0, 0, 0.42);
}

.live-muted-mark[hidden] {
  display: none;
}

.live-broadcast-pill {
  background: #78f5a7;
  color: #04140b;
  letter-spacing: 0;
}

.live-viewer-pill {
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
}

.live-action-bar {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.live-action-bar button {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  pointer-events: auto;
}

.live-action-bar button[hidden] {
  display: none;
}

.live-glass-control,
.live-icon-control {
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(14px);
}

.live-glass-control:hover,
.live-icon-control:hover {
  background: rgba(0, 0, 0, 0.62);
}

.live-round-control {
  display: inline-grid;
  width: 48px;
  min-width: 48px;
  border-radius: 999px;
  place-items: center;
}

.live-end-control {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(239, 68, 68, 0.86);
}

.live-end-control span {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: #fff;
}

.live-icon-control {
  margin-left: auto;
  min-width: 58px;
  border-radius: 10px;
}

.permission-help {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: 10px;
  background: #fff5f5;
  padding: 12px;
}

.permission-help p {
  margin: 0;
  color: #9f1d1d;
  font-weight: 700;
}

.permission-help div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.permission-help button {
  min-height: 36px;
}

.live-sidebar {
  display: grid;
  align-content: start;
  gap: 16px;
}

.live-list-panel,
.live-guest-panel,
.live-chat-panel {
  padding: 16px;
}

.live-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.live-session {
  display: grid;
  gap: 10px;
  justify-items: start;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  overflow: hidden;
  padding: 0;
  text-align: left;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.live-session:hover,
.live-session.active {
  border-color: var(--fb-blue);
  box-shadow: 0 8px 18px rgba(24, 119, 242, 0.14);
  transform: translateY(-1px);
}

.live-thumb {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 10;
  place-items: center;
  background:
    radial-gradient(circle at 25% 20%, rgba(20, 241, 149, 0.45), transparent 34%),
    linear-gradient(135deg, rgba(153, 69, 255, 0.95), rgba(24, 119, 242, 0.92) 52%, rgba(20, 241, 149, 0.78));
}

.live-card-avatar {
  width: 58px;
  height: 58px;
  border: 3px solid rgba(255, 255, 255, 0.84);
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
  font-size: 16px;
}

.live-pill {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 0 7px;
}

.live-card-body {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 0 12px 12px;
}

.live-session strong {
  display: block;
  overflow: hidden;
  color: var(--fb-blue);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-session span {
  color: var(--muted);
  font-size: 12px;
}

.live-empty {
  color: var(--muted);
  font-size: 14px;
}

.live-guest-panel {
  display: grid;
  gap: 12px;
}

.live-guest-panel[hidden] {
  display: none;
}

.live-guest-actions {
  display: grid;
  gap: 10px;
}

.live-guest-actions > button {
  width: 100%;
  min-height: 38px;
}

.live-join-request {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f9fb;
  padding: 10px;
}

.live-join-request-person {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.live-request-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 13px;
}

.live-join-request strong,
.live-join-request span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-join-request span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.live-join-request-actions {
  display: flex;
  gap: 8px;
}

.live-join-request button {
  flex: 1;
  min-height: 34px;
}

.live-guest-tiles {
  position: absolute;
  right: 16px;
  bottom: 78px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  width: min(42%, 440px);
  pointer-events: none;
}

.live-video-shell.has-live-guests {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2px;
}

.live-video-shell.has-live-guests #liveVideo,
.live-video-shell.has-live-guests #liveFallback {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.live-video-shell.has-live-guests .live-guest-tiles {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  height: 100%;
  gap: 2px;
  pointer-events: auto;
}

.live-guest-tile {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 10px;
  background: #0d1117;
  color: #fff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
}

.live-guest-tile video,
.live-guest-tile img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
}

.live-video-shell.has-live-guests .live-guest-tile,
.live-video-shell.has-live-guests .live-guest-tile video,
.live-video-shell.has-live-guests .live-guest-tile img {
  min-height: 0;
  height: 100%;
  border-radius: 0;
}

.live-guest-tile strong,
.live-guest-tile span {
  position: absolute;
  left: 8px;
  right: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.48);
  white-space: nowrap;
}

.live-guest-tile strong {
  bottom: 24px;
  font-size: 13px;
}

.live-guest-tile span {
  bottom: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 800;
}

.live-chat-panel {
  display: grid;
  gap: 10px;
}

.live-tip-box {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(20, 241, 149, 0.36);
  border-radius: 10px;
  background: #f7fffb;
  padding: 12px;
}

.live-tip-box[hidden] {
  display: none;
}

.live-tip-box > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.live-tip-box span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.live-tip-options,
.live-tip-form {
  display: flex;
  gap: 8px;
}

.live-tip-options button,
.live-tip-form button {
  min-height: 36px;
}

.live-tip-options button {
  flex: 1;
  background: #e8f3ff;
  color: var(--fb-blue);
}

.live-tip-form input {
  min-width: 0;
  flex: 1;
}

.live-tip-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.live-tip-status a {
  color: inherit;
  font-weight: 900;
}

.live-chat {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
}

.live-chat-message {
  border-radius: 10px;
  background: #f0f2f5;
  padding: 9px 10px;
  font-size: 14px;
}

.live-chat-message strong {
  display: block;
  margin-bottom: 2px;
}

.live-chat-tip {
  border: 1px solid rgba(153, 69, 255, 0.28);
  background: linear-gradient(135deg, rgba(153, 69, 255, 0.14), rgba(20, 241, 149, 0.16));
}

.live-chat-tip em {
  display: block;
  color: var(--ink);
  font-style: normal;
  font-weight: 900;
}

.live-chat-tip a {
  color: var(--fb-blue);
  font-size: 12px;
  font-weight: 900;
}

.live-chat-form {
  display: flex;
  gap: 8px;
}

.live-chat-form button {
  min-height: 38px;
}

.chat-dock {
  position: fixed;
  right: 22px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 120;
  display: flex;
  flex-direction: column;
  width: min(360px, calc(100vw - 24px));
  height: 430px;
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  box-shadow: 0 16px 48px rgba(28, 30, 33, 0.18);
}

.chat-dock[hidden] {
  display: none;
}

.chat-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
}

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

.chat-header strong,
.chat-header span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-header span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
}

.chat-header button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 44px;
  border-radius: 8px;
  background: #f0f2f5;
  color: var(--ink);
  padding: 0;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.dm-call-window {
  position: fixed;
  right: 22px;
  bottom: 96px;
  z-index: 220;
  display: grid;
  width: min(430px, calc(100vw - 24px));
  gap: 12px;
  border: 1px solid rgba(157, 77, 255, 0.45);
  border-radius: 16px;
  background:
    radial-gradient(circle at 12% 0%, rgba(20, 241, 149, 0.1), transparent 14rem),
    linear-gradient(180deg, rgba(7, 17, 24, 0.98), rgba(5, 8, 14, 0.98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
  color: var(--ink);
  overflow: hidden;
  padding: 12px;
}

.dm-call-window[hidden] {
  display: none;
}

.dm-call-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: grab;
  user-select: none;
}

.dm-call-window-header:active {
  cursor: grabbing;
}

.dm-call-window-header strong,
.dm-call-window-header span {
  display: block;
}

.dm-call-window-header strong {
  color: white;
  font-size: 18px;
}

.dm-call-window-tools {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.dm-call-window-tools button {
  min-height: 38px;
  border-radius: 10px;
  padding: 0 12px;
}

.dm-video-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 8px;
  align-items: stretch;
}

.dm-video-grid video {
  width: 100%;
  height: 210px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #05070b;
  object-fit: cover;
}

#sharedDmLocalVideo {
  height: 92px;
}

.dm-call-status {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.dm-call-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dm-call-actions button {
  min-height: 34px;
  border-radius: 8px;
  padding: 7px 10px;
}

#sharedDeclineDmCall,
#sharedEndDmCall,
#sharedCloseDmCallWindow {
  border-color: rgba(255, 120, 120, 0.35);
  background: rgba(255, 120, 120, 0.12);
  color: #ff9ca3;
}

.call-popout-page {
  min-height: 100vh;
  padding: 20px;
}

.call-popout-page .dm-call-window {
  inset: 140px auto auto 50%;
  width: min(620px, calc(100vw - 32px));
  transform: translateX(-50%);
}

.call-popout-page .chat-dock {
  display: none;
}

.call-popout-shell {
  margin: 0 auto;
  max-width: 760px;
}

.chat-messages {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
}

.chat-empty {
  margin: auto;
  color: var(--muted);
  font-size: 14px;
}

.chat-message {
  display: grid;
  gap: 8px;
  max-width: 78%;
  border-radius: 16px;
  padding: 9px 12px;
  font-size: 14px;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chat-message.mine {
  align-self: flex-end;
  background: var(--fb-blue);
  color: white;
}

.chat-message.theirs {
  align-self: flex-start;
  background: #f0f2f5;
  color: var(--ink);
}

.chat-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  border: 1px solid rgba(24, 119, 242, 0.2);
  border-radius: 8px;
  background: #e7f3ff;
  color: var(--fb-blue);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  padding: 8px 10px;
  text-decoration: none;
}

.chat-action-button:disabled {
  opacity: 0.6;
}

.chat-action-status {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.chat-form {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 10px;
}

.chat-form input {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  min-height: 40px;
  border-radius: 999px;
  padding: 0 14px;
}

.chat-form button {
  flex: 0 0 auto;
  min-height: 40px;
  height: 40px;
  border-radius: 10px;
  padding: 0 14px;
  line-height: 1;
}

.chat-form .chat-video-button {
  border: 1px solid rgba(139, 92, 246, 0.45);
  background: rgba(157, 77, 255, 0.14);
  color: #d9ccff;
  box-shadow: none;
}

.arcade-big-stat {
  display: block;
  margin: 8px 0 18px;
  color: white;
  font-size: 42px;
  line-height: 1;
}

.market-alert-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: grid;
  width: min(360px, calc(100vw - 24px));
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.2);
  padding: 14px;
}

.market-alert-dock[hidden] {
  display: none;
}

.market-alert-dock header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.market-alert-dock strong,
.market-alert-dock span {
  display: block;
}

.market-alert-dock span,
.market-alert-dock p {
  color: var(--muted);
}

.market-alert-dock p {
  margin: 0;
  line-height: 1.35;
}

.market-alert-dock header button {
  width: 32px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbff;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  padding: 0;
}

.market-alert-dock .wallet-button {
  justify-content: center;
  min-height: 40px;
}

@media (max-width: 1040px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar,
  .rightbar {
    position: static;
  }

  .live-layout {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .token-grid,
  .creator-coin-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .chess-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .holdem-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .bunco-layout {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 720px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px 12px;
    position: static;
  }

  .brand {
    width: 92px;
    min-width: 92px;
  }

  .nav {
    justify-content: start;
    overflow-x: auto;
    gap: 4px;
    font-size: 15px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

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

  .nav a {
    flex: 0 0 auto;
    padding: 8px 10px;
  }

  .nav-more summary {
    padding: 8px 10px;
  }

  .nav-more-menu {
    position: fixed;
    top: 118px;
    right: 12px;
    left: auto;
    min-width: min(220px, calc(100vw - 24px));
  }

  .wallet-button {
    justify-self: stretch;
    min-height: 42px;
  }

  .top-actions {
    justify-self: stretch;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .notification-button {
    min-height: 42px;
    width: 48px;
  }

  .notification-menu {
    right: auto;
    left: 0;
  }

  .ticker-bar {
    position: static;
    grid-template-columns: 1fr;
    height: 40px;
  }

  .ticker-label {
    display: none;
  }

  .ticker-item {
    min-height: 40px;
    padding: 0 12px;
  }

  .ticker-track {
    animation-duration: 75s;
  }

  .mobile-keyword-search {
    display: grid;
    margin: 10px 12px 0;
  }

  .sidebar-keyword-search {
    display: none;
  }

  .layout {
    padding: 12px;
    gap: 12px;
  }

  .sidebar,
  .rightbar {
    gap: 12px;
  }

  .feed-column {
    order: 1;
  }

  .sidebar {
    order: 2;
  }

  .rightbar {
    order: 3;
  }

  .coin-filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .coin-filter-bar div {
    justify-content: stretch;
  }

  .coin-filter-bar a {
    flex: 1 1 auto;
  }

  .keyword-search {
    grid-template-columns: 1fr;
  }

  .keyword-search button {
    width: 100%;
  }

  .market-page {
    padding: 14px 12px 36px;
  }

  .market-hero {
    padding: 18px;
  }

  .market-hero h1 {
    font-size: 34px;
  }

  .market-hero,
  .market-section-header {
    align-items: stretch;
    flex-direction: column;
  }

  .market-controls,
  .market-grid,
  .market-detail-grid,
  .market-form {
    grid-template-columns: 1fr;
  }

  .market-card h2 {
    font-size: 19px;
  }

  .market-create {
    padding: 18px;
  }

  .market-form button {
    justify-self: stretch;
    width: 100%;
  }

  .market-form .check-row {
    width: 100%;
    border-radius: 8px;
  }

  .how-page {
    padding: 18px 12px 32px;
  }

  .how-hero {
    padding: 22px;
  }

  .how-hero h1 {
    font-size: 28px;
  }

  .how-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .members-page {
    padding: 12px;
  }

  .members-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .members-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .token-page {
    padding: 12px;
  }

  .chess-page {
    gap: 12px;
    padding: 10px;
  }

  .games-hub-page {
    gap: 12px;
    padding: 10px;
  }

  .games-hub-hero {
    padding: 18px;
  }

  .games-hub-hero h1 {
    font-size: 38px;
  }

  .followers-popup-trigger {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
  }

  .followers-popup {
    right: 8px;
    bottom: calc(max(10px, env(safe-area-inset-bottom)) + 60px);
    width: calc(100vw - 16px);
    height: min(520px, calc(100dvh - 104px));
  }

  .game-tile {
    min-height: 0;
  }

  .trex-hero,
  .arcade-room-header {
    align-items: stretch;
    grid-template-columns: minmax(0, 1fr);
  }

  .trex-hero {
    flex-direction: column;
  }

  .arcade-create,
  .trex-hud,
  .trex-mobile-controls,
  .pong-mobile-controls {
    flex-wrap: wrap;
  }

  .arcade-play-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .arcade-dpad button,
  .platform-controls button,
  .pong-mobile-controls button {
    min-height: 54px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .arcade-create input,
  .arcade-create button {
    width: 100%;
  }

  .pong-page .arcade-create,
  .arcade-duel-page .arcade-create {
    grid-template-columns: minmax(0, 1fr);
  }

  .pong-page .arcade-room .secondary-button,
  .arcade-duel-page .arcade-room .secondary-button {
    justify-self: stretch;
    width: 100%;
  }

  .arcade-room-grid,
  .mines-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .chess-hero,
  .chess-match-header {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .chess-hero,
  .chess-stage,
  .holdem-stage,
  .bunco-stage,
  .chess-sidebar .panel {
    padding: 12px;
  }

  .chess-hero h1 {
    font-size: 24px;
  }

  .chess-match-header h2 {
    font-size: 20px;
  }

  .chess-create {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
  }

  .chess-create input,
  .chess-create select,
  .game-private-toggle,
  .chess-create button {
    width: 100%;
  }

  .game-private-toggle {
    justify-content: flex-start;
  }

  .game-private-toggle input {
    flex: 0 0 16px;
    width: 16px;
    min-height: 16px;
  }

  .game-header-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .bunco-table {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 16px;
    text-align: center;
  }

  .bunco-round {
    justify-items: center;
  }

  .bunco-turn {
    max-width: none;
    text-align: center;
  }

  .game-header-actions button,
  .holdem-actions button,
  .holdem-actions input {
    width: 100%;
  }

  .game-request-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .game-request-row button {
    width: 100%;
  }

  .chess-board {
    width: min(100%, 94vw);
  }

  .game-chat-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .game-chat-list {
    max-height: 180px;
  }

  .chess-players {
    grid-template-columns: minmax(0, 1fr);
  }

  .chess-game-list {
    max-height: 320px;
  }

  .chess-game-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .chess-game-select,
  .chess-join,
  .chess-share-table {
    width: 100%;
  }

  .chess-moves {
    max-height: 220px;
  }

  .holdem-table {
    gap: 12px;
    min-height: 0;
    border-radius: 12px;
    box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.08), 0 8px 22px rgba(15, 23, 42, 0.12);
    padding: 12px;
  }

  .holdem-seats {
    grid-template-columns: minmax(0, 1fr);
  }

  .holdem-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .holdem-actions input {
    grid-column: 1 / -1;
  }

  .playing-card {
    width: 34px;
    height: 48px;
    border-radius: 7px;
    font-size: 14px;
  }

  .game-message-popups {
    right: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
  }

  .token-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px;
  }

  .token-hero h1 {
    font-size: 38px;
  }

  .token-mark {
    width: 210px;
    height: 112px;
    border-radius: 26px;
    font-size: 24px;
  }

  .token-chart-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .token-chart-wrap {
    height: 560px;
    min-height: 560px;
  }

  .token-market-board {
    align-content: start;
    padding: 24px;
  }

  .token-market-stats {
    grid-template-columns: 1fr;
  }

  .token-chart-wrap iframe {
    height: 100%;
  }

  .mobile-wallet-note {
    display: block;
  }

  .news-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-hero h1 {
    font-size: 34px;
  }

  .news-refresh {
    width: 100%;
  }

  .comment-form,
  .composer-tools {
    flex-direction: column;
  }

  .chat-dock {
    right: 8px;
    bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(100vw - 16px);
    height: min(380px, calc(100dvh - 24px));
    max-height: calc(100dvh - 24px);
    border-radius: 10px;
  }

  .market-alert-dock {
    right: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
  }

  .profile-page {
    padding: 12px;
  }

  .profile-cover {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-marketplace-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-marketplace-grid {
    grid-template-columns: 1fr;
  }

  .profile-creator-coin-card {
    grid-template-columns: 1fr;
  }

  .profile-creator-coin-mark {
    width: min(220px, 100%);
    height: auto;
    min-height: 0;
  }

  .bio-creator-coin-card,
  .bio-creator-coin-fields {
    grid-template-columns: 1fr;
  }

  .live-layout {
    padding: 12px;
  }

  .live-stage-header,
  .live-controls,
  .live-chat-form {
    align-items: stretch;
    flex-direction: column;
  }

  .live-controls input {
    width: 100%;
  }

  .live-controls button {
    width: 100%;
  }

  .live-video-shell {
    border-radius: 10px;
  }

  .live-video-topbar {
    align-items: flex-start;
    padding: 10px;
  }

  .live-host-chip strong {
    max-width: 42vw;
    font-size: 15px;
  }

  .live-room-stats {
    gap: 6px;
  }

  .live-broadcast-pill,
  .live-viewer-pill {
    min-height: 26px;
    border-radius: 7px;
    font-size: 11px;
    padding: 0 8px;
  }

  .live-action-bar {
    right: 10px;
    bottom: 10px;
    left: 10px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .live-tip-overlay {
    right: 10px;
    bottom: 64px;
    left: 10px;
    padding: 10px 12px;
  }

  .live-video-shell.has-live-guests {
    grid-template-columns: 1fr 1fr;
    gap: 2px;
  }

  .live-video-shell.has-live-guests .live-guest-tiles {
    width: 100%;
    gap: 2px;
  }

  .live-guest-tile strong {
    bottom: 20px;
    font-size: 11px;
  }

  .live-guest-tile span {
    bottom: 6px;
    font-size: 10px;
  }

  .live-action-bar button {
    min-height: 38px;
    border-radius: 9px;
    font-size: 12px;
    padding: 0 10px;
  }

  .live-round-control {
    width: 40px;
    min-width: 40px;
    border-radius: 999px;
    padding: 0;
  }

  .live-icon-control {
    min-width: 48px;
  }
}

/* Dark mint collection theme */
:root {
  color-scheme: dark;
  --bg: #03070a;
  --panel: #071118;
  --ink: #f7f8fb;
  --muted: #9ea4b0;
  --line: rgba(255, 255, 255, 0.1);
  --soft-blue: rgba(145, 105, 255, 0.14);
  --fb-blue: #7c3df2;
  --fb-blue-dark: #5f2dc4;
  --sol-purple: #9d4dff;
  --sol-green: #43f0a7;
  --sol-teal: #00d4c8;
  --red: #ff6b73;
  --panel-strong: #0a151d;
  --panel-glass: rgba(8, 18, 25, 0.9);
  --panel-hover: rgba(255, 255, 255, 0.055);
  --input-bg: #050b10;
  --accent-glow: rgba(157, 77, 255, 0.35);
}

body {
  background:
    radial-gradient(circle at 4% 8%, rgba(67, 240, 167, 0.12), transparent 24rem),
    radial-gradient(circle at 92% 14%, rgba(157, 77, 255, 0.16), transparent 28rem),
    linear-gradient(180deg, #061118 0%, #020407 42%, #03070a 100%);
  color: var(--ink);
}

.topbar {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 0;
  border-left: 0;
  background: rgba(5, 15, 22, 0.92);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
}

.ticker-bar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg, rgba(8, 22, 28, 0.96), rgba(14, 12, 28, 0.96));
}

.ticker-label {
  border-right-color: rgba(255, 255, 255, 0.08);
  color: #aaa6ff;
}

.ticker-item {
  color: var(--ink);
}

.ticker-item em {
  background: rgba(157, 77, 255, 0.18);
  color: #c8b8ff;
}

.ticker-item .is-up {
  color: var(--sol-green);
}

.ticker-item .is-down {
  color: #ff7676;
}

.nav a {
  color: #f7f8fb;
}

.nav a:hover {
  background: rgba(157, 77, 255, 0.14);
  color: #f4efff;
}

.nav-more summary {
  color: #f7f8fb;
}

.nav-more summary:hover,
.nav-more[open] summary {
  background: rgba(157, 77, 255, 0.14);
  color: #f4efff;
}

.nav-more.is-active > summary {
  color: #8bbcff;
}

.nav-more-menu {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(7, 16, 23, 0.98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.46);
}

.notification-menu {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(7, 16, 23, 0.98);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.46);
}

.notification-menu header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.notification-item {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.notification-item:hover {
  background: rgba(157, 77, 255, 0.12);
}

.notification-item.is-unread {
  background: rgba(157, 77, 255, 0.16);
}

.notification-item p {
  color: #f7f8fb;
}

.notification-item small,
.notification-empty {
  color: #a3adbd;
}

button,
.wallet-button,
.link-button,
.feed-tab.is-active {
  background: linear-gradient(135deg, #8f43ff, #5b35c5 58%, #0ebfaa);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 12px 28px rgba(91, 53, 197, 0.24);
}

button:hover,
.wallet-button:hover,
.link-button:hover {
  background: linear-gradient(135deg, #a65cff, #6c43d7 58%, #16dcc4);
}

.secondary-button,
.image-picker,
.comment-media-picker,
.like-button,
.tip-button,
.boost-button,
.share-button,
.news-refresh,
.coin-filter-bar .secondary-button,
.market-form .check-row,
.feed-loader,
.profile-marketplace-header a {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(157, 77, 255, 0.12);
  color: #d8ccff;
  box-shadow: none;
}

.secondary-button:hover,
.image-picker:hover,
.comment-media-picker:hover,
.like-button:hover,
.tip-button:hover,
.boost-button:hover,
.share-button:hover,
.news-refresh:hover,
.coin-filter-bar .secondary-button:hover,
.feed-loader:hover {
  background: rgba(67, 240, 167, 0.12);
  color: var(--sol-green);
}

.panel,
.post-card,
.market-card,
.profile-hover-card,
.market-alert-dock,
.chess-game-card,
.profile-marketplace-listing,
.profile-marketplace-review {
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(12, 22, 30, 0.96), rgba(6, 12, 18, 0.96));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.chat-dock {
  border-color: rgba(255, 255, 255, 0.1);
  background: #071017;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.market-hero,
.members-hero,
.games-hub-hero,
.chess-hero,
.token-hero,
.how-hero,
.profile-cover,
.live-stage {
  background:
    radial-gradient(circle at 12% 0%, rgba(67, 240, 167, 0.11), transparent 22rem),
    radial-gradient(circle at 100% 12%, rgba(157, 77, 255, 0.12), transparent 26rem),
    linear-gradient(180deg, rgba(12, 22, 30, 0.96), rgba(5, 8, 12, 0.98));
}

.eyebrow,
.ticker-label,
.market-tag,
.news-item span {
  color: #aaa6ff;
  letter-spacing: 0.14em;
}

.market-tag {
  background: rgba(127, 83, 255, 0.15);
}

input,
textarea,
select,
.market-controls input,
.market-controls select,
.market-form input,
.market-form select,
.market-form textarea,
.comment-input,
.chat-form input,
.game-chat-form input,
.live-chat-form input {
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--input-bg);
  color: var(--ink);
}

input::placeholder,
textarea::placeholder {
  color: #737985;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(157, 77, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(157, 77, 255, 0.18);
}

.market-hero p:not(.eyebrow),
.market-card p,
.market-detail-body p,
.post-meta,
.wallet-address,
.field-help,
.status-line,
.mobile-wallet-note,
.rules-panel ul,
.news-empty,
.profile-bio,
.members-connect-note,
.token-card p,
.how-card p,
.profile-marketplace-review p {
  color: var(--muted);
}

.feed-tabs {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(5, 11, 16, 0.78);
}

.feed-tab {
  color: var(--muted);
}

.keyword-search input {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}

.keyword-search input::placeholder {
  color: rgba(167, 174, 188, 0.82);
}

.feed-tab:hover,
.news-item:hover {
  background: rgba(157, 77, 255, 0.13);
  color: #ddd4ff;
}

.avatar {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.32), transparent 24%),
    linear-gradient(135deg, #9d4dff 0%, #4e63ff 48%, #17e0b1 100%);
  box-shadow: 0 0 22px rgba(157, 77, 255, 0.24);
}

.post-body a,
.nav a[aria-current="page"],
.mobile-wallet-note strong,
.mobile-wallet-note span {
  color: #8bbcff;
}

.link-preview,
.market-detail-image,
.market-card > img,
.profile-marketplace-listing img {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 50% 20%, rgba(67, 240, 167, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(7, 17, 24, 0.9), rgba(17, 12, 31, 0.9));
}

.link-preview {
  color: var(--ink);
}

.link-preview-domain,
.link-preview p,
.market-seller,
.metric span,
.comment-meta {
  color: var(--muted);
}

.tip-count,
.composer-confirmation,
.market-transfer-note,
.profile-live-link,
.boost-countdown {
  background: rgba(67, 240, 167, 0.13);
  color: #5fffc0;
}

.market-warning,
.danger-zone,
.permission-help {
  border-color: rgba(255, 107, 115, 0.28);
  background: rgba(255, 107, 115, 0.08);
  color: #ffb0b5;
}

.delete-post,
.danger-button {
  border-color: rgba(255, 107, 115, 0.34);
  background: rgba(255, 107, 115, 0.12);
  color: #ff9aa0;
}

.delete-post:hover,
.danger-button:hover {
  background: rgba(255, 107, 115, 0.22);
}

.comment,
.chat-message span,
.game-chat-message,
.live-chat-message,
.tip-panel,
.market-review-form,
.profile-social-panel,
.asset-pill,
.game-requests,
.game-private-toggle,
.chess-moves,
.bunco-table-score,
.bunco-player,
.live-list-panel,
.live-guest-panel,
.live-chat-panel {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
}

.chat-message.mine span {
  background: linear-gradient(135deg, rgba(157, 77, 255, 0.95), rgba(14, 191, 170, 0.86));
  color: white;
}

.chat-message.theirs span {
  background: rgba(255, 255, 255, 0.075);
  color: var(--ink);
}

.market-star-picker button,
.emoji-row button,
.tip-choice,
.comment-reply-form input {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
  box-shadow: none;
}

.comment-reply-form input::placeholder {
  color: rgba(247, 248, 251, 0.46);
}

.comment-reply {
  border-left-color: rgba(157, 77, 255, 0.38);
}

.comment-reply-button {
  color: #cdbdff;
}

.comment-reply-like-button {
  color: #cdbdff;
}

.tip-custom input {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  color: #f7f8fb;
  box-shadow: none;
}

.tip-custom input::placeholder {
  color: rgba(247, 248, 251, 0.46);
}

.tip-status-success {
  background: rgba(20, 241, 149, 0.13);
  color: #82ffd0;
}

.tip-status-error {
  background: rgba(255, 107, 115, 0.12);
  color: #ff8f99;
}

.market-star-picker button.selected,
.market-star-picker button:hover {
  border-color: rgba(255, 215, 92, 0.48);
  background: rgba(255, 215, 92, 0.13);
  color: #ffd75c;
}

.token-mark {
  background: linear-gradient(135deg, #9d4dff, #5464ff 50%, #18dfb2);
  box-shadow: 0 20px 54px rgba(91, 53, 197, 0.32);
}

.holdem-table {
  border-color: rgba(67, 240, 167, 0.22);
  background:
    radial-gradient(circle at 50% 24%, rgba(67, 240, 167, 0.2), transparent 34%),
    linear-gradient(135deg, #05261f, #061923 58%, #211453);
}

.chess-board-shell,
.holdem-seat,
.chess-player {
  background: rgba(255, 255, 255, 0.06);
}

.playing-card {
  background: #f8fafc;
  color: #111827;
}

#liveVideo,
#liveFallback,
.live-theater {
  background: #03070a;
}

.live-card,
.live-video-shell {
  border-color: rgba(255, 255, 255, 0.14);
  background: #05080c;
}

.market-alert-dock {
  background: linear-gradient(180deg, rgba(13, 24, 33, 0.98), rgba(5, 10, 15, 0.98));
}

.brand {
  width: min(190px, 38vw);
}

.brand-logo {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 3.4 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
}

.message-button,
.tip-close,
.tip-token-label,
.member-social-row > span,
.profile-hover-stats span,
.member-game-stats div,
.member-assets-header button,
.profile-social-stats button,
.token-card code,
.token-chart-fallback,
.chat-header button,
.chat-action-button,
.market-alert-dock header button,
.asset-summary,
.asset-list,
.profile-form input[type="file"],
.comment-media-preview,
.listing-photo-preview,
.market-empty {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
}

.asset-chip {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(16, 27, 36, 0.96), rgba(8, 14, 20, 0.96));
  color: var(--ink);
}

.asset-chip:hover {
  border-color: rgba(157, 77, 255, 0.42);
  background: rgba(157, 77, 255, 0.12);
}

.asset-copy strong {
  color: #f7f8fb;
}

.asset-copy em {
  color: #9a5cff;
}

.message-button,
.chat-action-button,
.member-assets-header button {
  color: #cdbdff;
}

.admin-delete-button,
.danger-button,
.delete-listing-button,
.report-listing-button {
  border-color: rgba(255, 107, 115, 0.32);
  background: rgba(255, 107, 115, 0.11);
  color: #ffadb3;
}

.chat-message.mine {
  background: linear-gradient(135deg, rgba(157, 77, 255, 0.92), rgba(14, 191, 170, 0.82));
  color: #fff;
}

.chat-message.theirs {
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
}

.boost-badge {
  background: linear-gradient(135deg, rgba(67, 240, 167, 0.18), rgba(157, 77, 255, 0.2));
  color: #82ffd0;
}

.follow-button.is-following,
.profile-social-stats button.is-active {
  border-color: rgba(67, 240, 167, 0.34);
  background: rgba(12, 74, 58, 0.72);
  color: #8dffd5;
  box-shadow: inset 0 0 0 1px rgba(67, 240, 167, 0.18), 0 10px 22px rgba(0, 0, 0, 0.18);
}

.link-preview--walletbook > img,
.token-chart-wrap iframe {
  background: #05080c;
}

input[type="file"]::file-selector-button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(157, 77, 255, 0.16);
  color: #ddd4ff;
  font-weight: 800;
}

.bug-bounty-page {
  display: grid;
  gap: 24px;
}

.bug-bounty-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: stretch;
  padding: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(67, 240, 167, 0.14), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(157, 77, 255, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(7, 18, 24, 0.98), rgba(11, 9, 26, 0.98));
}

.bug-bounty-hero h1 {
  max-width: 820px;
  margin: 10px 0 16px;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 0.95;
  letter-spacing: 0;
}

.bug-bounty-hero p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.55;
}

.bug-bounty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.bug-bounty-actions .secondary-button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

.bug-bounty-card {
  display: grid;
  gap: 16px;
  align-content: center;
  min-height: 260px;
  padding: 24px;
  border: 1px solid rgba(157, 77, 255, 0.32);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(157, 77, 255, 0.18), rgba(14, 191, 170, 0.08)),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.bug-bounty-card strong {
  display: block;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
}

.bug-bounty-card span {
  color: #aeb6c5;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bug-bounty-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.bug-bounty-panel {
  padding: 24px;
}

.bug-bounty-panel h2,
.bug-bounty-report h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1.55rem;
}

.bug-bounty-panel ul,
.bug-bounty-report ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.45;
}

.bug-bounty-panel li::marker,
.bug-bounty-report li::marker {
  color: #9d4dff;
  font-weight: 900;
}

.bug-bounty-report {
  padding: 28px;
}

.bug-bounty-report p {
  max-width: 900px;
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 860px) {
  .bug-bounty-hero,
  .bug-bounty-grid {
    grid-template-columns: 1fr;
  }

  .bug-bounty-hero {
    padding: 24px;
  }

  .bug-bounty-card {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .bug-bounty-page {
    gap: 16px;
  }

  .bug-bounty-hero,
  .bug-bounty-panel,
  .bug-bounty-report {
    padding: 18px;
  }

  .bug-bounty-actions {
    display: grid;
  }
}

.suggestions-page {
  display: grid;
  gap: 24px;
}

.suggestions-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  align-items: center;
  padding: 34px;
  background:
    radial-gradient(circle at 16% 0%, rgba(67, 240, 167, 0.13), transparent 34%),
    radial-gradient(circle at 92% 20%, rgba(157, 77, 255, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(7, 18, 24, 0.98), rgba(11, 9, 26, 0.98));
}

.suggestions-hero h1 {
  max-width: 940px;
  margin: 10px 0 16px;
  font-size: clamp(42px, 5.4vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.suggestions-hero p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.suggestions-hero-card {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 26px 18px;
  border: 1px solid rgba(157, 77, 255, 0.32);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(157, 77, 255, 0.18), rgba(14, 191, 170, 0.08));
}

.suggestions-hero-card strong {
  color: #fff;
  font-size: 4rem;
  line-height: 1;
}

.suggestions-hero-card span {
  color: #aeb6c5;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.suggestions-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.suggestion-form {
  display: grid;
  gap: 12px;
  padding: 24px;
  position: sticky;
  top: 18px;
}

.suggestion-form label {
  color: #f7f8fb;
  font-weight: 900;
}

.suggestion-form input,
.suggestion-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(2, 7, 11, 0.76);
  color: #fff;
  font: inherit;
  font-weight: 800;
  padding: 13px 14px;
}

.suggestion-form textarea {
  min-height: 160px;
  resize: vertical;
}

.suggestion-form-footer {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.suggestion-form-footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.suggestions-list-panel {
  padding: 24px;
}

.suggestions-list-head {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.suggestions-list-head h2 {
  margin: 4px 0 0;
  color: #fff;
  font-size: 1.7rem;
}

.suggestion-sort {
  display: flex;
  gap: 10px;
}

.suggestion-sort .secondary-button.is-active {
  background: linear-gradient(135deg, #8a3ffc, #10c7bd);
  color: #fff;
}

.suggestions-list {
  display: grid;
  gap: 14px;
}

.suggestion-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.suggestion-upvote {
  display: grid;
  gap: 4px;
  place-items: center;
  align-self: start;
  min-height: 84px;
  border: 1px solid rgba(157, 77, 255, 0.36);
  border-radius: 14px;
  background: rgba(157, 77, 255, 0.12);
  color: #d8ccff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.suggestion-upvote span {
  font-size: 1.1rem;
  line-height: 1;
}

.suggestion-upvote strong {
  color: #fff;
  font-size: 1.45rem;
}

.suggestion-upvote.is-active {
  border-color: rgba(67, 240, 167, 0.45);
  background: linear-gradient(135deg, rgba(157, 77, 255, 0.28), rgba(14, 191, 170, 0.24));
  color: #82ffd0;
}

.suggestion-copy {
  min-width: 0;
}

.suggestion-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 900;
}

.suggestion-status {
  border: 1px solid rgba(67, 240, 167, 0.28);
  border-radius: 999px;
  padding: 3px 9px;
  color: #8dffd5;
  text-transform: capitalize;
}

.suggestion-copy h3 {
  margin: 8px 0;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.suggestion-copy p,
.suggestions-empty {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

@media (max-width: 920px) {
  .suggestions-hero,
  .suggestions-layout {
    grid-template-columns: 1fr;
  }

  .suggestion-form {
    position: static;
  }
}

@media (max-width: 560px) {
  .suggestions-page {
    gap: 16px;
  }

  .suggestions-hero,
  .suggestion-form,
  .suggestions-list-panel {
    padding: 18px;
  }

  .suggestions-list-head {
    align-items: stretch;
    flex-direction: column;
  }

  .suggestion-sort {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .suggestion-card {
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 14px;
  }
}
