:root {
  --orange: #ff4500;
  --orange-deep: #d93900;
  --orange-soft: #ff45001a;
  --blue: #0079d3;
  --upvote: #ff4500;
  --downvote: #7193ff;
  --bg: #0b1416;
  --bg-raised: #181c1f;
  --bg-hover: #1f2427;
  --bg-input: #2a3236;
  --line: #24282a;
  --line-strong: #3a4144;
  --text: #f2f4f5;
  --muted: #8ba2ad;
  --faint: #5c717a;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --header: 56px;
  --font: "IBM Plex Sans", "Noto Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

button,
code {
  font: inherit;
}

.app {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  background: rgba(11, 20, 22, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.brand-word,
.footer-brand span:last-child {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 50%;
}

.brand-mark.sm {
  width: 22px;
  height: 22px;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
}

.ca-box {
  flex: 1;
  min-width: 0;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 8px 0 14px;
  background: var(--bg-input);
  border: 1px solid transparent;
  border-radius: 999px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ca-box:hover,
.ca-box:focus-within {
  border-color: var(--line-strong);
  background: #313a3e;
}

.ca-kicker {
  flex-shrink: 0;
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.ca-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: all;
}

.ca-copy {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.ca-copy:hover {
  color: var(--text);
  background: #3a4448;
}

.ca-copy svg {
  width: 16px;
  height: 16px;
}

.ca-copy .icon-check,
.ca-box.is-copied .icon-copy {
  display: none;
}

.ca-box.is-copied .icon-check {
  display: block;
  color: #46d160;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-orange {
  color: var(--white);
  background: var(--orange);
}

.btn-orange:hover {
  background: var(--orange-deep);
}

.btn-ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  background: var(--bg-hover);
}

.menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-btn span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.mobile-panel {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 16px 20px 20px;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--line);
}

.mobile-panel a {
  color: var(--text);
  font-weight: 600;
}

.community {
  background: var(--bg-raised);
}

.banner {
  height: 260px;
  background: #fff;
}

.banner .media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 12% 30%;
}

.banner-fallback {
  color: #fff;
}

.banner-fallback span {
  padding: 6px 12px;
  background: #0000003d;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.community-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 18px;
}

.community-identity {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  min-width: 0;
}

.avatar {
  width: 88px;
  height: 88px;
  margin-bottom: -6px;
  overflow: hidden;
  background: var(--orange);
  border: 4px solid var(--bg-raised);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
}

.avatar .media-img {
  width: 100%;
  height: 100%;
  object-position: 50% 12%;
}

.avatar-fallback {
  display: grid;
  place-items: center;
  padding: 0;
  background: var(--orange);
}

.snoo-ph {
  display: block;
}

.community-copy {
  padding-bottom: 6px;
}

.community-title-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.community-title-row h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #46d160;
  box-shadow: 0 0 0 4px #46d16022;
}

.muted,
.community-sub,
.post-meta {
  color: var(--muted);
}

.community-sub {
  margin-top: 2px;
  font-size: 14px;
}

.community-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
}

.chip {
  height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.chip-orange {
  color: var(--orange);
  background: var(--orange-soft);
  border: 1px solid #ff45004d;
}

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #10181a;
}

.ticker-track {
  display: flex;
  gap: 36px;
  width: max-content;
  padding: 10px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: ticker 28s linear infinite;
}

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

.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 312px;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}

.feed,
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post,
.widget {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

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

.post:hover {
  border-color: var(--line-strong);
}

.votes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.chev {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
}

.chev.up {
  border-bottom: 8px solid var(--upvote);
}

.chev.down {
  border-top: 8px solid var(--downvote);
}

.post-body {
  padding: 14px 18px 18px 8px;
}

.post-meta {
  margin-bottom: 8px;
  font-size: 12px;
}

.post-body h2 {
  margin-bottom: 10px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.lede,
.post-body p {
  color: #d5dee3;
}

.post-body p + p,
.lore-list,
.steps,
.stats,
.pair-grid,
.hero-media,
.chart-media,
.split {
  margin-top: 14px;
}

.hero-media,
.chart-media,
.side-media,
.widget-media .media {
  overflow: hidden;
  background: #12181b;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
}

.hero-media {
  height: 380px;
}

.hero-media .media-img {
  object-fit: cover;
  object-position: center 22%;
}

.chart-media {
  height: 340px;
  background: #fff;
}

.chart-media .media-img {
  object-fit: contain;
  object-position: center;
}

.side-media {
  min-height: 280px;
}

.lore-video .media-video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  background: #000;
}

.media {
  position: relative;
}

.media-img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media.has-image {
  border-style: solid;
}

.media.has-image .media-img {
  display: block;
}

.media.has-image .media-fallback {
  display: none;
}

.media-fallback {
  min-height: inherit;
  height: 100%;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.ph-label {
  color: var(--text);
  font-weight: 700;
}

.media-fallback code,
.banner-fallback code {
  padding: 1px 6px;
  color: var(--text);
  background: #00000033;
  border-radius: 4px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 18px;
}

.lore-list,
.rules,
.steps {
  padding-left: 18px;
  color: #d5dee3;
}

.lore-list li + li,
.rules li + li,
.steps li + li {
  margin-top: 8px;
}

.post-actions,
.buy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pair-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
}

.pair-card {
  padding: 16px;
  background: #12181b;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.pair-card-hot {
  border-color: #ff450059;
  background: linear-gradient(180deg, #ff450014, #12181b);
}

.pair-tag {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pair-card h3 {
  margin: 6px 0;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.pair-link {
  display: grid;
  place-items: center;
}

.pair-link span {
  padding: 4px 10px;
  color: var(--orange);
  background: var(--orange-soft);
  border: 1px solid #ff45004d;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.stat {
  padding: 14px;
  background: #12181b;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.stat strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.steps li {
  display: grid;
}

.steps strong {
  color: var(--text);
}

.steps span {
  color: var(--muted);
}

.widget {
  padding: 14px 16px 16px;
}

.widget h3 {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.widget p {
  color: #d5dee3;
  font-size: 14px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0;
}

.about-stats strong {
  display: block;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.about-stats span {
  color: var(--muted);
  font-size: 12px;
}

.ca-box-widget {
  max-width: none;
  margin: 0;
  background: #12181b;
}

.widget-media .media {
  height: 220px;
  background: #fff;
}

.widget-media .media-img {
  object-fit: contain;
  object-position: center;
}

.link-list {
  display: flex;
  flex-direction: column;
}

.link-list a {
  padding: 8px 0;
  color: var(--blue);
  font-weight: 600;
  border-top: 1px solid var(--line);
}

.link-list a:first-child {
  border-top: 0;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 20px 40px;
  color: var(--faint);
  font-size: 13px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  padding: 10px 14px;
  color: var(--text);
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .nav,
  .nav-cta {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .mobile-panel.is-open {
    display: flex;
  }

  .page {
    grid-template-columns: 1fr;
  }

  .community-bar,
  .split,
  .pair-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .community-bar,
  .community-identity,
  .community-actions {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .pair-link {
    padding: 2px 0;
  }

  .hero-media {
    height: 260px;
  }

  .side-media,
  .lore-video .media-video {
    min-height: 220px;
  }

  .chart-media {
    height: 260px;
  }

  .post-body h2 {
    font-size: 22px;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 0 12px;
    gap: 10px;
  }

  .brand-word {
    display: none;
  }

  .ca-box {
    height: 36px;
    padding-left: 10px;
  }

  .banner {
    height: 150px;
  }

  .avatar {
    width: 72px;
    height: 72px;
  }

  .votes {
    display: none;
  }

  .post {
    grid-template-columns: 1fr;
  }

  .post-body {
    padding: 14px;
  }
}
