:root {
  --bg: #07080b;
  --ink: #f7efe2;
  --muted: #b9b1a3;
  --panel: rgba(17, 19, 24, 0.88);
  --panel-strong: rgba(8, 9, 12, 0.94);
  --line: rgba(255, 255, 255, 0.13);
  --orange: #ff8800;
  --gold: #ffd166;
  --cyan: #2de2e6;
  --green: #7dff9c;
  --red: #ff4f6d;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  font-family: "Raleway", Arial, sans-serif;
  background:
    linear-gradient(180deg, rgba(7, 8, 11, 0.68), #07080b 620px),
    url("../images/mainbody.JPG") center top / cover fixed no-repeat,
    #07080b;
  color: var(--ink);
  line-height: 1.55;
}

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

button,
textarea,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.block-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 12px clamp(14px, 3vw, 28px);
  border-bottom: 1px solid var(--line);
  background: rgba(4, 5, 7, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 900;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #111;
}

.top-links {
  display: flex;
  justify-content: center;
  gap: clamp(8px, 2vw, 18px);
  color: var(--muted);
  font-weight: 800;
}

.top-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
}

.top-links a:hover {
  color: var(--orange);
}

main {
  width: min(1440px, calc(100% - 28px));
  max-width: 100%;
  margin: 0 auto 46px;
}

img,
video,
iframe,
canvas,
svg {
  max-width: 100%;
}

.block-topbar,
.hero-board,
.block-layout,
.center-feed,
.left-rail,
.right-rail,
.panel,
.post-card,
.composer-card,
.feed-tabs,
.member-orbit,
.member-track {
  min-width: 0;
  max-width: 100%;
}

.hero-board {
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: 24px;
  align-items: end;
  padding: clamp(22px, 4vw, 46px) 0 20px;
}

.hero-copy {
  max-width: 850px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--gold);
  font: 700 0.76rem/1 "Roboto Mono", monospace;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

h1 {
  color: #fff;
  font-size: clamp(3.2rem, 11vw, 9rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 720px;
  margin-top: 18px;
  color: rgba(247, 239, 226, 0.84);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.primary-button,
.secondary-button,
.ghost-button,
.tiny-button,
.play-button,
.feed-tabs button,
.post-tools button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  font-weight: 900;
}

.primary-button {
  padding: 0 17px;
  background: var(--orange);
  color: #120905;
}

.secondary-button,
.ghost-button {
  padding: 0 15px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.full {
  width: 100%;
}

.nav-auth-button {
  white-space: nowrap;
}

.block-auth-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 0 0 20px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(255, 136, 0, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 136, 0, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(45, 226, 230, 0.12), transparent 55%),
    rgba(8, 9, 12, 0.92);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.34);
}

.auth-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--green);
  font: 900 0.72rem/1 "Roboto Mono", monospace;
  letter-spacing: 0;
  text-transform: uppercase;
}

.block-auth-callout h2 {
  color: #fff;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.05;
}

.block-auth-callout p {
  max-width: 780px;
  margin-top: 8px;
  color: rgba(247, 239, 226, 0.82);
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.signal-card,
.panel,
.composer-card,
.post-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
  overflow-x: clip;
}

.composer-card *,
.post-card * {
  min-width: 0;
}

.composer-card p,
.composer-card h3,
.composer-card a,
.post-card p,
.post-card h3,
.post-card a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.signal-card {
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 136, 0, 0.22), transparent 36%),
    linear-gradient(150deg, rgba(45, 226, 230, 0.15), transparent 50%),
    var(--panel-strong);
}

.signal-header,
.post-top,
.panel-head,
.stage-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.signal-header span,
.signal-header strong {
  font: 700 0.78rem/1.3 "Roboto Mono", monospace;
  text-transform: uppercase;
}

.signal-header strong {
  color: var(--green);
}

.host-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.host-row img,
.post-top img,
.composer-card img,
.member-chip img {
  border-radius: 50%;
  object-fit: cover;
  background: #101216;
}

.host-row img {
  width: 58px;
  height: 58px;
}

.host-row img.site-signal-mark {
  object-fit: contain;
  padding: 7px;
  border: 1px solid rgba(255, 136, 0, 0.45);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 136, 0, 0.22), transparent 64%),
    rgba(0, 0, 0, 0.52);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 22px rgba(255, 136, 0, 0.2);
}

.host-row span,
.post-top span,
.stage-meta span,
.feature-image span,
.audio-drop span,
.collectible-showcase span,
.market-board span {
  color: var(--muted);
  font-size: 0.86rem;
}

.sound-meter,
.mini-wave {
  display: flex;
  align-items: end;
  gap: 5px;
}

.sound-meter {
  height: 54px;
  margin-top: 20px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
}

.sound-meter i,
.mini-wave i {
  display: block;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), var(--orange));
  animation: pulseBar 1.25s ease-in-out infinite;
}

.sound-meter i {
  max-width: 18px;
  height: 20px;
}

.sound-meter i:nth-child(2),
.mini-wave i:nth-child(2) { animation-delay: 120ms; height: 34px; }
.sound-meter i:nth-child(3),
.mini-wave i:nth-child(3) { animation-delay: 240ms; height: 16px; }
.sound-meter i:nth-child(4),
.mini-wave i:nth-child(4) { animation-delay: 360ms; height: 42px; }
.sound-meter i:nth-child(5),
.mini-wave i:nth-child(5) { animation-delay: 480ms; height: 26px; }
.sound-meter i:nth-child(6),
.mini-wave i:nth-child(6) { animation-delay: 600ms; height: 38px; }
.sound-meter i:nth-child(7) { animation-delay: 720ms; height: 22px; }

@keyframes pulseBar {
  0%, 100% { transform: scaleY(0.65); opacity: 0.7; }
  50% { transform: scaleY(1); opacity: 1; }
}

.ticker-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 0 12px;
}

.ticker-strip::-webkit-scrollbar,
.orbit-track::-webkit-scrollbar {
  display: none;
}

.ticker-strip span {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  color: #fff;
  font: 700 0.78rem/1 "Roboto Mono", monospace;
}

.member-orbit {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
  margin: 8px 0 18px;
}

.orbit-arrow {
  width: 44px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 900;
}

.orbit-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.member-chip {
  flex: 0 0 auto;
  min-width: 180px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 900;
  scroll-snap-align: start;
}

.member-chip.active {
  border-color: rgba(255, 136, 0, 0.76);
  background: rgba(255, 136, 0, 0.16);
}

.member-chip img {
  width: 42px;
  height: 42px;
}

.member-chip.search-chip {
  min-width: min(320px, 70vw);
  grid-template-columns: 1fr;
  border-radius: 8px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.34);
}

.member-chip.search-chip input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  padding: 0 10px;
  outline: none;
}

.member-chip.search-chip input::placeholder {
  color: rgba(247, 239, 226, 0.72);
  opacity: 1;
}

.block-layout {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr) minmax(250px, 310px);
  gap: 18px;
  align-items: start;
}

.left-rail,
.right-rail {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 90px;
}

.panel {
  padding: 16px;
}

.panel-head {
  align-items: end;
  margin-bottom: 14px;
}

.panel-head h2 {
  color: #fff;
  font-size: 1.08rem;
}

.room-panel,
.mission-panel,
.drop-panel {
  display: grid;
  gap: 10px;
}

.room-card {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 54px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  text-align: left;
}

.room-card.active {
  border-color: rgba(255, 136, 0, 0.65);
  background: rgba(255, 136, 0, 0.13);
}

.room-card small {
  color: var(--muted);
  font-family: "Roboto Mono", monospace;
  font-size: 0.72rem;
}

.room-light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 18px var(--orange);
}

.room-light.cyan {
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
}

.room-light.green {
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

.room-light.red {
  background: var(--red);
  box-shadow: 0 0 18px var(--red);
}

.quest {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.quest input {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  accent-color: var(--orange);
}

.center-feed {
  display: grid;
  gap: 14px;
}

.composer-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
}

.composer-card img {
  width: 48px;
  height: 48px;
}

.composer-card button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  text-align: left;
  padding: 0 16px;
}

.feed-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow-x: visible;
  padding-bottom: 2px;
}

.feed-tabs button {
  flex: 0 1 auto;
  min-width: 0;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.feed-tabs button.active {
  background: #fff;
  color: #07080b;
}

.feed-return-button {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid rgba(45, 226, 230, 0.4);
  border-radius: 999px;
  background: rgba(7, 8, 11, 0.94);
  color: var(--cyan);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(14px);
  font-weight: 950;
}

.feed-return-button[hidden] {
  display: none !important;
}

.post-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.post-top {
  justify-content: start;
  grid-template-columns: 48px minmax(0, 1fr) auto;
}

.post-top img {
  width: 48px;
  height: 48px;
}

.post-top strong {
  color: #fff;
}

.tiny-button {
  min-height: 34px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.post-text {
  color: rgba(247, 239, 226, 0.86);
}

.audio-drop,
.collectible-showcase,
.feature-image,
.x-post-preview,
.manual-preview {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.audio-drop {
  grid-template-columns: 112px minmax(0, 1fr) auto;
  align-items: center;
  padding: 12px;
}

.cover-stack img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  border-radius: 7px;
}

.audio-drop strong,
.collectible-showcase strong,
.feature-image strong,
.market-board strong,
.x-post-preview strong,
.manual-preview strong {
  display: block;
  color: #fff;
}

.mini-wave {
  height: 28px;
  margin-top: 8px;
}

.mini-wave i {
  width: 8px;
  height: 18px;
}

.play-button {
  min-width: 70px;
  padding: 0 12px;
  background: var(--green);
  color: #071008;
}

.play-button.playing {
  background: var(--red);
  color: #fff;
}

.reaction-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reaction-row button {
  min-height: 36px;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-weight: 900;
}

.reaction-row button.active {
  background: rgba(255, 136, 0, 0.2);
  border-color: rgba(255, 136, 0, 0.58);
}

.feature-image {
  position: relative;
  min-height: 260px;
  align-items: end;
  padding: 18px;
}

.feature-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.feature-image div {
  position: relative;
  z-index: 1;
  max-width: 430px;
}

.feature-image strong {
  font-size: clamp(1.3rem, 3vw, 2.35rem);
  line-height: 1;
}

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

.poll-grid button {
  position: relative;
  min-height: 44px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 900;
}

.poll-grid button span {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 0;
  background: rgba(45, 226, 230, 0.16);
}

.poll-grid button {
  isolation: isolate;
}

.poll-grid button::after {
  content: attr(data-voted);
}

.poll-grid button.active {
  border-color: rgba(45, 226, 230, 0.62);
}

.collectible-showcase {
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  align-items: center;
  padding: 12px;
}

.collectible-showcase img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 8px;
  background: radial-gradient(circle, rgba(255, 136, 0, 0.26), rgba(0, 0, 0, 0.24));
}

.collectible-showcase p {
  color: var(--muted);
  margin-top: 6px;
}

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

.market-board div {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(125, 255, 156, 0.12), transparent),
    rgba(0, 0, 0, 0.22);
}

.x-signal-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(160deg, rgba(45, 226, 230, 0.1), transparent 48%),
    var(--panel);
}

.x-post-preview {
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: start;
  padding: 14px;
}

.x-mark {
  width: 58px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: #050608;
  font: 900 1.45rem/1 "Roboto Mono", monospace;
}

.x-post-preview span,
.manual-preview span {
  display: block;
  color: var(--cyan);
  font: 700 0.76rem/1.3 "Roboto Mono", monospace;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.x-post-preview p,
.manual-preview p {
  margin-top: 6px;
  color: var(--muted);
}

.x-post-preview a {
  display: inline-flex;
  margin-top: 10px;
  color: #fff;
  font-weight: 900;
}

.stage-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.stage-meta {
  align-items: start;
  flex-direction: column;
  margin-bottom: 14px;
}

.drop-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 68px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  font-weight: 900;
}

.x-signal-rail {
  display: grid;
  gap: 10px;
}

.signal-link {
  min-height: 62px;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  text-align: left;
}

.signal-link.active {
  border-color: rgba(45, 226, 230, 0.52);
  background: rgba(45, 226, 230, 0.09);
}

.signal-link span {
  color: var(--muted);
  font-size: 0.84rem;
}

.drop-card img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 7px;
}

.side-panel {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  justify-content: end;
  background: rgba(0, 0, 0, 0.62);
}

.side-panel.open {
  display: flex;
}

.panel-sheet {
  width: min(430px, 100%);
  min-height: 100%;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
  background:
    linear-gradient(150deg, rgba(255, 136, 0, 0.13), transparent 34%),
    #0b0d12;
  border-left: 1px solid var(--line);
  box-shadow: -28px 0 80px rgba(0, 0, 0, 0.5);
}

.close-panel {
  justify-self: end;
  width: 38px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 900;
}

.panel-sheet h2 {
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
}

.panel-sheet textarea {
  width: 100%;
  min-height: 170px;
  resize: vertical;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
}

.post-tools,
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-tools button,
.badge-row span {
  min-height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: #fff;
  font-weight: 900;
}

.mini-chat {
  display: grid;
  gap: 10px;
}

.mini-chat p {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
}

.mini-chat strong {
  color: #fff;
}

.panel-sheet input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
}

.field-label {
  color: #fff;
  font-weight: 900;
}

.manual-preview {
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(45, 226, 230, 0.12), transparent),
    rgba(0, 0, 0, 0.24);
}

.x-embed-preview {
  min-height: 120px;
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(45, 226, 230, 0.22);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--muted);
}

.x-embed-preview iframe {
  max-width: 100% !important;
  min-width: 0 !important;
}

.profile-sheet > img {
  width: min(220px, 80%);
  aspect-ratio: 1;
  justify-self: center;
  object-fit: contain;
  border-radius: 8px;
  background: radial-gradient(circle, rgba(255, 136, 0, 0.22), rgba(0, 0, 0, 0.18));
}

.panel-copy,
.profile-sheet p {
  color: var(--muted);
}

@media (max-width: 1180px) {
  .block-layout {
    grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
  }

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

@media (max-width: 860px) {
  .block-topbar {
    grid-template-columns: 1fr auto;
  }

  .top-links {
    grid-column: 1 / -1;
    justify-content: start;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .hero-board,
  .block-layout {
    grid-template-columns: 1fr;
  }

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

  .signal-card {
    max-width: 420px;
  }

  .audio-drop,
  .collectible-showcase,
  .x-post-preview {
    grid-template-columns: 1fr;
  }

  .play-button {
    width: 100%;
  }

  .feed-tabs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    overflow-x: visible;
    position: sticky;
    top: 76px;
    z-index: 70;
    padding: 6px 0 8px;
    background: rgba(7, 8, 11, 0.96);
    backdrop-filter: blur(12px);
  }

  .feed-tabs button {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 0 3px;
    border-radius: 8px;
    font-size: clamp(0.62rem, 2.55vw, 0.78rem);
    line-height: 1;
    white-space: nowrap;
    letter-spacing: 0;
  }
}

@media (max-width: 620px) {
  body {
    background-attachment: scroll;
  }

  main {
    width: min(100% - 18px, 1440px);
  }

  .block-topbar {
    padding: 10px;
  }

  .brand span {
    display: none;
  }

  .hero-board {
    min-height: auto;
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(3rem, 22vw, 5.3rem);
  }

  .hero-actions,
  .hero-actions a,
  .block-auth-callout,
  .auth-actions,
  .left-rail,
  .right-rail,
  .poll-grid,
  .market-board {
    grid-template-columns: 1fr;
  }

  .hero-actions a,
  .auth-actions a,
  .ghost-button,
  .reaction-row button {
    width: 100%;
  }

  .top-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    justify-content: flex-start;
  }

  .top-actions .ghost-button,
  .top-actions .admin-mode-button {
    width: auto;
    min-height: 32px;
    padding: 0 8px;
    border-radius: 7px;
    font-size: clamp(0.68rem, 2.8vw, 0.78rem);
    line-height: 1;
  }

  .top-actions .notification-button {
    flex: 0 0 34px;
    width: 34px;
    min-width: 34px;
    padding: 0;
  }

  .auth-actions {
    display: grid;
    justify-content: stretch;
  }

  .member-orbit {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 7px;
    margin: 8px 0 12px;
  }

  .orbit-arrow {
    width: 34px;
  }

  .member-chip {
    min-width: 152px;
    padding: 6px 10px 6px 6px;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 7px;
  }

  .member-chip img {
    width: 34px;
    height: 34px;
  }

  .search-chip {
    flex: 0 0 clamp(190px, 50vw, 240px);
    min-width: clamp(190px, 50vw, 240px);
    grid-template-columns: minmax(0, 1fr);
    padding: 7px;
    gap: 0;
  }

  .search-chip input {
    width: 100%;
    min-width: 0;
  }

  .feed-return-button {
    right: 12px;
    bottom: max(86px, calc(env(safe-area-inset-bottom, 0px) + 72px));
    min-height: 34px;
    padding: 0 11px;
    font-size: 0.76rem;
  }

  .post-card,
  .panel {
    padding: 13px;
  }

  .post-top {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .post-top .tiny-button {
    grid-column: 1 / -1;
    width: 100%;
  }
}
