@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600;700&display=swap");
@import url("./tokens.css");

:root {
  --brand-navy: var(--vr-color-ink);
  --brand-cyan: var(--vr-color-brand-cyan);
  --brand-blue: var(--vr-color-brand-blue);
  --brand-violet: var(--vr-color-brand-violet);
  --brand-magenta: var(--vr-color-brand-magenta);
  --brand-gold: var(--vr-color-brand-gold);
  --brand-gold-light: var(--vr-color-brand-gold-light);
  --brand-gold-dark: var(--vr-color-brand-gold-dark);
  --brand-gradient: var(--vr-gradient-brand);
  --brand-gradient-gold: var(--vr-gradient-brand-gold);
  --brand-shadow-gold: var(--vr-shadow-gold-glow);
  --brand-focus: var(--vr-focus-ring);
  --web-max-width: var(--vr-shell-width);
  --web-panel-border: rgba(255, 255, 255, 0.12);
  --web-panel-bg: rgba(255, 255, 255, 0.06);
  --web-panel-bg-strong: rgba(255, 255, 255, 0.1);
  --web-text: #f8fafc;
  --web-muted-text: #cbd5e1;
  --web-subtle-text: #a9b7ca;
  font-family: var(--vr-font-family);
  line-height: var(--vr-line-height);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--vr-color-surface-muted);
  color: var(--vr-color-text);
}

a {
  color: inherit;
}

main {
  box-sizing: border-box;
  min-height: 100vh;
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

header {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: 3rem;
  line-height: 1.05;
  letter-spacing: 0;
}

p {
  max-width: 680px;
  margin: 0;
  color: #4b5563;
  font-size: 1rem;
}

.brand,
.brand-lockup {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand {
  color: #0f766e;
}

.brand-lockup {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.7rem;
  color: #172033;
  text-decoration: none;
}

.brand-lockup img {
  width: var(--vr-shell-mark-size);
  height: var(--vr-shell-mark-size);
  border-radius: var(--vr-radius-card);
  box-shadow: var(--brand-shadow-gold);
}

.brand-lockup span {
  background: var(--brand-gradient-gold);
  background-clip: text;
  color: transparent;
}

.brand-lockup:focus-visible {
  border-radius: 8px;
  outline: 3px solid var(--brand-focus);
  outline-offset: 4px;
}

.filters,
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 1.5rem 0;
}

.filters a,
.pagination a,
.pagination span {
  border: 1px solid #d1d5db;
  border-radius: var(--vr-radius-control);
  padding: 0.55rem 0.8rem;
  background: #ffffff;
  color: #1f2937;
  font-size: 0.95rem;
  text-decoration: none;
}

.filters a[aria-current="page"] {
  border-color: var(--brand-blue);
  background: #e9f8ff;
  color: #073f6d;
  font-weight: 700;
}

.feed {
  display: grid;
  gap: 1rem;
}

article {
  border: 1px solid var(--vr-color-border);
  border-radius: var(--vr-radius-card);
  background: var(--vr-color-surface);
  padding: 1.25rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

article h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.85rem;
  color: #526071;
  font-size: 0.9rem;
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.options li {
  border-radius: 999px;
  background: #edf2f7;
  padding: 0.35rem 0.7rem;
  color: #243041;
  font-size: 0.9rem;
}

.options a {
  text-decoration: none;
}

.content-detail {
  display: grid;
  gap: 1.5rem;
}

.event-detail {
  display: grid;
  gap: 1.5rem;
}

.event-detail header {
  margin-bottom: 0;
}

.event-detail section {
  display: grid;
  gap: 0.75rem;
}

.event-detail h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.discovery-topic-detail {
  display: grid;
  gap: 0.75rem;
  max-width: var(--web-max-width);
  margin: 0 auto;
}

.discovery-topic-detail .public-page-panel {
  max-width: none;
}

.discovery-topic-shell .viberank-shell-nav {
  margin-bottom: 0.35rem;
}

.discovery-topic-hero-card,
.discovery-topic-card {
  display: grid;
  gap: 1rem;
  border-color: var(--web-panel-border);
  background:
    linear-gradient(145deg, hsl(222 22% 10% / 0.96), hsl(222 20% 14% / 0.9)),
    var(--web-panel-bg);
  box-shadow: var(--vr-shadow-elevated);
}

.discovery-topic-hero-card {
  margin-bottom: 0;
  padding: clamp(1rem, 2vw, 1.5rem);
}

.discovery-topic-back-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.4rem;
  color: var(--web-muted-text);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
}

.discovery-topic-back-link:hover,
.discovery-topic-back-link:focus-visible {
  color: var(--web-text);
}

.discovery-topic-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topic-pill {
  display: inline-flex;
  min-height: 1.85rem;
  align-items: center;
  border: 1px solid var(--web-panel-border);
  border-radius: 999px;
  background: rgba(5, 13, 25, 0.58);
  color: var(--web-muted-text);
  padding: 0.32rem 0.62rem;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.15;
}

.topic-pill-secondary {
  border-color: rgba(21, 215, 244, 0.42);
  background: rgba(21, 215, 244, 0.14);
  color: var(--web-text);
}

.discovery-topic-detail .eyebrow {
  margin: 0;
}

.discovery-topic-detail h1 {
  margin: 0;
  max-width: none;
  color: var(--web-text);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.discovery-topic-detail h2,
.discovery-topic-echo-list h3 {
  margin: 0;
  color: var(--web-text);
  line-height: 1.25;
}

.discovery-topic-detail h2 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}

.discovery-topic-echo-list h3 {
  font-size: 1rem;
}

.discovery-topic-media {
  height: 14rem;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--web-panel-border);
  border-radius: 8px;
  background: #050d19;
}

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

.discovery-topic-summary {
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid var(--web-panel-border);
  border-radius: 8px;
}

.discovery-topic-summary p {
  max-width: none;
  margin: 0;
}

.discovery-topic-summary ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.4rem 0.5rem;
  width: auto;
  max-width: 100%;
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
}

.tag-cloud li {
  flex: 0 1 auto;
  width: auto;
  max-width: 100%;
}

.discovery-topic-summary li,
.tag-cloud a {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--web-panel-border);
  border-radius: 999px;
  background: rgba(5, 13, 25, 0.58);
  color: var(--web-muted-text);
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.discovery-topic-summary li {
  max-width: 100%;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.9rem;
}

.tag-cloud a {
  width: auto;
  max-width: 100%;
  min-height: 1.75rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.tag-cloud a:hover,
.tag-cloud a:focus-visible {
  border-color: rgba(21, 215, 244, 0.58);
  background: rgba(5, 13, 25, 0.9);
  color: #ffffff;
}

.discovery-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.discovery-topic-section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  border-bottom: 1px solid var(--web-panel-border);
  padding-bottom: 0.85rem;
}

.discovery-topic-section-heading p {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
}

.discovery-topic-list,
.discovery-topic-echo-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.discovery-topic-list li,
.discovery-topic-echo-list li {
  display: grid;
  gap: 0.6rem;
  border: 1px solid var(--web-panel-border);
  border-radius: 8px;
  background: rgba(5, 13, 25, 0.38);
  padding: 1rem;
}

.discovery-topic-list a {
  color: var(--brand-cyan);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.discovery-topic-list a:hover,
.discovery-topic-list a:focus-visible {
  color: var(--web-text);
}

.discovery-topic-signals .stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.discovery-topic-signals .stat-grid div {
  border-color: var(--web-panel-border);
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 900px) {
  .discovery-topic-grid {
    grid-template-columns: 1fr;
  }
}

.aura-disclosure-page {
  gap: 1.5rem;
}

.aura-disclosure-page section {
  display: grid;
  gap: 0.75rem;
}

.aura-disclosure-page h2 {
  margin: 0;
  color: var(--web-text);
  font-size: 1rem;
  line-height: 1.25;
}

.aura-disclosure-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.aura-disclosure-list div {
  border: 1px solid var(--web-panel-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 1rem;
}

.aura-disclosure-list dt {
  color: var(--web-text);
  font-weight: 900;
}

.aura-disclosure-list dd {
  margin: 0.35rem 0 0;
  color: var(--web-muted-text);
  line-height: 1.5;
}

.content-detail header {
  margin-bottom: 0;
}

.content-detail section {
  display: grid;
  gap: 1rem;
}

.content-detail p {
  max-width: 760px;
}

.content-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem);
  grid-template-areas:
    "header rail"
    "body rail"
    "tags rail";
  align-items: start;
  gap: clamp(1rem, 2vw, 1.4rem);
}

.content-detail-header {
  grid-area: header;
}

.content-detail-header h1 {
  max-width: none;
}

.content-detail-body {
  grid-area: body;
}

.content-detail-body p {
  max-width: none;
}

.content-detail-tags {
  grid-area: tags;
}

.content-context-rail {
  position: sticky;
  top: 5.75rem;
  display: grid;
  grid-area: rail;
  gap: 0.8rem;
  align-self: start;
}

.content-context-section {
  gap: 0.55rem;
}

.content-context-kicker {
  color: var(--brand-gold-light);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.content-context-market-list,
.content-context-article-list {
  display: grid;
  gap: 0.55rem;
}

.content-context-market-card,
.content-context-article-card {
  min-width: 0;
  border: 1px solid var(--web-panel-border);
  border-radius: 8px;
  background: rgba(5, 13, 25, 0.54);
  color: inherit;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.content-context-market-card {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.65rem;
  min-height: 6.25rem;
  padding: 0.55rem;
}

.content-context-market-card:hover,
.content-context-market-card:focus-visible,
.content-context-article-card:hover,
.content-context-article-card:focus-visible {
  border-color: rgba(21, 215, 244, 0.5);
  background: rgba(8, 17, 32, 0.78);
  outline: none;
}

.content-context-market-media {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 28% 28%, rgba(255, 203, 95, 0.26), transparent 34%),
    linear-gradient(135deg, rgba(21, 215, 244, 0.12), rgba(5, 13, 25, 0.92));
}

.content-context-market-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-context-market-copy {
  display: grid;
  min-width: 0;
  gap: 0.38rem;
  align-content: start;
}

.content-context-market-meta,
.content-context-market-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: var(--web-subtle-text);
  font-size: 0.72rem;
  line-height: 1.2;
}

.content-context-market-meta b,
.content-context-market-meta em {
  border-radius: 999px;
  padding: 0.14rem 0.42rem;
  font-style: normal;
  font-weight: 900;
}

.content-context-market-meta b {
  background: rgba(255, 203, 95, 0.18);
  color: var(--brand-gold-light);
}

.content-context-market-meta em {
  background: rgba(21, 215, 244, 0.13);
  color: var(--web-muted-text);
}

.content-context-market-copy > strong,
.content-context-article-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--web-text);
  font-size: 0.88rem;
  line-height: 1.22;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.content-context-market-outcomes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
}

.content-context-market-outcomes span {
  display: grid;
  gap: 0.1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.32rem 0.4rem;
}

.content-context-market-outcomes small,
.content-context-article-card small,
.content-context-article-card em {
  color: var(--web-subtle-text);
  font-size: 0.72rem;
  line-height: 1.25;
}

.content-context-market-outcomes b {
  color: var(--brand-cyan);
  font-size: 0.92rem;
  line-height: 1;
}

.content-context-article-card {
  display: grid;
  gap: 0.35rem;
  padding: 0.65rem 0.75rem;
}

.content-context-article-card span {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.content-context-article-card em {
  display: -webkit-box;
  overflow: hidden;
  font-style: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.content-related-link-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.content-related-link-card {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 5.25rem;
  height: 100%;
  border: 1px solid var(--vr-color-border);
  border-radius: var(--vr-radius-card);
  background: #ffffff;
  padding: 0.85rem;
  color: var(--vr-color-text);
  text-decoration: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.content-related-link-card:hover,
.content-related-link-card:focus-visible {
  border-color: #0f766e;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.content-related-link-card-unavailable,
.content-related-link-card-unavailable:hover {
  border-color: #d9dee8;
  background: #f8fafc;
  color: #526071;
  box-shadow: none;
  transform: none;
}

.content-related-link-icon {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background: #e6f6f4;
  color: #0f766e;
  font-weight: 800;
}

.content-related-link-copy {
  display: grid;
  min-width: 0;
  gap: 0.18rem;
}

.content-related-link-type,
.content-related-link-description,
.content-related-link-affordance {
  color: #526071;
  font-size: 0.78rem;
  line-height: 1.25;
}

.content-related-link-type,
.content-related-link-affordance {
  font-weight: 800;
  text-transform: uppercase;
}

.content-related-link-title {
  color: var(--vr-color-text);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.content-related-link-description {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-related-link-affordance {
  align-self: start;
  max-width: 6.5rem;
  overflow-wrap: anywhere;
  text-align: right;
}

.leaderboard-list,
.badge-list,
.source-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.leaderboard-list li,
.badge-list li {
  display: grid;
  gap: 0.35rem;
  border: 1px solid var(--vr-color-border);
  border-radius: var(--vr-radius-card);
  background: var(--vr-color-surface);
  padding: 1rem;
}

.leaderboard-list a {
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.rank {
  color: #0f766e;
  font-weight: 800;
}

.profile-detail {
  display: grid;
  gap: 1.5rem;
}

.profile-detail section {
  display: grid;
  gap: 0.85rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.stat-grid div {
  border: 1px solid #d9dee8;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.9rem;
}

.stat-grid dt {
  color: #526071;
  font-size: 0.85rem;
}

.stat-grid dd {
  margin: 0.2rem 0 0;
  font-size: 1.4rem;
  font-weight: 800;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  overflow-wrap: anywhere;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid #d9dee8;
  padding: 0.75rem;
  text-align: left;
}

.source-list li {
    display: grid;
    gap: 0.65rem;
    border-left: 3px solid #0f766e;
    padding-left: 0.85rem;
  }

.source-list a {
    font-weight: 700;
  }

  .source-title {
    color: inherit;
    font-size: 1rem;
    font-weight: 700;
  }

.source-list span {
    color: #526071;
    font-size: 0.9rem;
  }

.source-origin-groups {
  display: grid;
  gap: 1rem;
}

.source-origin-group {
  display: grid;
  gap: 0.85rem;
  border: 1px solid var(--vr-color-border);
  border-radius: var(--vr-radius-card);
  background: var(--vr-color-surface);
  padding: 1rem;
}

.source-origin-group-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.source-origin-group-header h3 {
  margin: 0;
  color: var(--vr-color-text);
  font-size: 1rem;
}

.source-origin-group-header p,
.source-origin-reason {
  margin: 0.2rem 0 0;
  color: #526071;
  font-size: 0.9rem;
}

.source-origin-group-header > span {
  max-width: 15rem;
  color: #0f766e;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: right;
}

.source-origin-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.source-origin-signals span {
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 0.2rem 0.55rem;
  font-size: 0.85rem;
}

  .source-list-heading {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
  }

  .source-list-heading img,
  .source-list-fallback {
    width: 2rem;
    height: 2rem;
    border: 1px solid #d9dee8;
    border-radius: 8px;
    background: #f8fafc;
  }

  .source-list-heading img {
    object-fit: contain;
    padding: 0.25rem;
  }

  .source-list-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0f766e;
    font-size: 0.85rem;
    font-weight: 800;
  }

  .source-list-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .source-list-signals span {
    border: 1px solid #d9dee8;
    border-radius: 999px;
    background: #f8fafc;
    padding: 0.2rem 0.55rem;
  }

.empty {
  border: 1px solid #d9dee8;
  border-radius: 8px;
  background: #ffffff;
  padding: 1.5rem;
}

.notice {
  color: #7c2d12;
  font-weight: 700;
}

.private-handoff {
  align-content: center;
  gap: 1rem;
  max-width: 720px;
}

.private-app-shell {
  display: grid;
  align-content: center;
  gap: 1rem;
  max-width: 720px;
}

.web-shell,
.home-shell {
  max-width: none;
  padding: 1.25rem clamp(1rem, 3vw, 3.5rem) 4rem;
  background:
    linear-gradient(145deg, rgba(6, 8, 23, 0.98), rgba(12, 17, 35, 0.96) 54%, rgba(18, 22, 45, 0.98)),
    var(--brand-navy);
  color: var(--web-text);
}

.web-shell p,
.home-shell p {
  color: var(--web-muted-text);
}

.web-nav,
.home-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto 2.5rem;
  max-width: var(--web-max-width);
}

.brand-lockup-large {
  font-size: 1rem;
}

.brand-lockup-large img {
  width: 3rem;
  height: 3rem;
}

.web-nav-links,
.home-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.web-nav-links a,
.home-nav-links a,
.button-link {
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  text-decoration: none;
  font-weight: 800;
}

.web-nav-links a,
.home-nav-links a {
  color: #d8e3ef;
}

.web-nav-links a:hover,
.home-nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.button-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.button-link-primary {
  background: var(--brand-gradient-gold);
  color: #081120;
  box-shadow: var(--brand-shadow-gold);
}

.button-link-subtle {
  background: rgba(8, 17, 32, 0.78);
  color: #f8fafc;
}

.button-link-ghost {
  background: rgba(8, 17, 32, 0.62);
  color: #f8fafc;
}

.web-hero,
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: stretch;
  max-width: var(--web-max-width);
  margin: 0 auto 2rem;
  border: 1px solid var(--web-panel-border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(224, 53, 255, 0.24), rgba(23, 141, 255, 0.2) 45%, rgba(21, 215, 244, 0.13)),
    rgba(255, 255, 255, 0.05);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.web-hero-copy,
.home-hero-copy {
  padding: clamp(1.6rem, 5vw, 4rem);
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--brand-gold-light);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.web-hero h1,
.home-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: 0.98;
}

.hero-copy {
  max-width: 780px;
  margin-top: 1.25rem;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.web-stat-panel,
.home-stat-panel {
  display: grid;
  align-content: center;
  gap: 0.9rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: rgba(6, 8, 23, 0.5);
  border-left: 1px solid var(--web-panel-border);
}

.web-stat-panel div,
.home-stat-panel div,
.web-card,
.sidebar-card,
.opportunity-card,
.interactive-note {
  border: 1px solid var(--web-panel-border);
  border-radius: 8px;
  background: var(--web-panel-bg);
}

.web-stat-panel div,
.home-stat-panel div {
  padding: 1rem;
}

.web-stat-panel span,
.home-stat-panel span {
  display: block;
  color: var(--web-subtle-text);
  font-size: 0.85rem;
  font-weight: 800;
}

.web-stat-panel strong,
.home-stat-panel strong {
  display: block;
  margin-top: 0.25rem;
  color: #ffffff;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.web-layout,
.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(1rem, 2.5vw, 2rem);
  max-width: var(--web-max-width);
  margin: 0 auto;
}

.web-main-column,
.web-sidebar,
.home-main-column,
.home-sidebar {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.web-section-heading,
.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.web-section-heading h2,
.section-heading h2,
.sidebar-card h2,
.interactive-note h2 {
  margin: 0;
  color: var(--web-text);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.1;
}

.web-tabs,
.category-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 0;
  padding: 0.9rem;
  border: 1px solid var(--web-panel-border);
  border-radius: 8px;
  background: rgba(6, 8, 23, 0.86);
  backdrop-filter: blur(12px);
}

.web-tabs a,
.category-tabs a {
  border-color: var(--web-panel-border);
  background: var(--web-panel-bg);
  color: #d8e3ef;
}

.web-tabs a[aria-current="page"],
.category-tabs a[aria-current="page"] {
  border-color: var(--brand-cyan);
  background: rgba(8, 17, 32, 0.82);
  color: #ffffff;
}

.ad-slot {
  display: grid;
  gap: 0.6rem;
  min-height: 7.5rem;
  overflow: hidden;
  border: 1px dashed hsl(190 48% 58% / 0.42);
  border-radius: 8px;
  background:
    linear-gradient(135deg, hsl(222 34% 12% / 0.74), hsl(222 28% 9% / 0.68)),
    hsl(222 24% 7% / 0.56);
  padding: 0.9rem;
  color: var(--home-muted);
  box-shadow: inset 0 1px 0 hsl(0 0% 100% / 0.06);
}

.ad-slot-feed-native {
  margin: 0.25rem 0;
}

.ad-slot-sidebar {
  min-height: 15rem;
}

.ad-slot-in-article {
  min-height: 9rem;
  margin: 0.25rem 0;
}

.ad-slot-label {
  width: fit-content;
  color: hsl(220 20% 72%);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.ad-slot .adsbygoogle {
  min-height: 5.5rem;
}

.ad-slot-sidebar .adsbygoogle {
  min-height: 13rem;
}

.ad-slot-in-article .adsbygoogle {
  min-height: 7rem;
}

.ad-slot-collapsed {
  display: none;
}

.home-trending-panel {
  gap: 0.95rem;
  padding: 1rem;
}

.home-hot-topic-band {
  gap: 0.95rem;
  padding: 1rem;
  border-color: var(--home-border);
  background: var(--home-gradient-card);
  box-shadow: var(--home-shadow-card);
}

.home-hot-topic-band-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.home-hot-topic-band-copy {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.home-hot-topic-band-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid hsl(3 72% 56% / 0.25);
  border-radius: 999px;
  background: hsl(222 24% 12% / 0.88);
  padding: 0.24rem 0.55rem;
  color: hsl(3 100% 88%);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.home-hot-topic-band-pill svg,
.home-hot-topic-band-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.home-hot-topic-band h1,
.home-hot-topic-band h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}

.home-hot-topic-band p,
.home-hot-topic-empty {
  margin: 0;
  color: #a8b7c8;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.45;
}

.home-hot-topic-empty-muted {
  margin-top: -0.35rem;
}

.home-hot-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-hot-topic-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--home-border);
  border-radius: 8px;
  background: hsl(220 16% 18% / 0.5);
  box-shadow: var(--home-shadow-card);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home-hot-topic-card:hover,
.home-hot-topic-card:focus-visible {
  border-color: hsl(190 92% 52% / 0.5);
  box-shadow: var(--home-shadow-glow), var(--home-shadow-card);
  transform: translateY(-1px);
  outline: none;
}

.home-hot-topic-visual {
  position: relative;
  height: var(--vr-market-card-media-height);
  min-height: var(--vr-market-card-media-height);
  max-height: var(--vr-market-card-media-height);
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background:
    radial-gradient(circle at 28% 30%, hsl(263 74% 66% / 0.35), transparent 32%),
    linear-gradient(135deg, hsl(220 16% 18%), hsl(222 22% 10%));
}

.home-hot-topic-visual img {
  display: block;
  width: 100%;
  height: 100%;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.home-hot-topic-category {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  border-radius: 8px;
  background: hsl(222 24% 7% / 0.36);
  padding: 0.3rem 0.5rem;
  color: #ffffff;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.home-hot-topic-body {
  display: grid;
  gap: var(--vr-market-card-body-gap);
  padding: var(--vr-market-card-body-padding);
}

.home-hot-topic-body h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #f8fafc;
  font-size: 1.15rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-hot-topic-body p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #a8b7c8;
  line-height: 1.5;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.home-hot-topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-hot-topic-tags li {
  border: 1px solid hsl(190 92% 52% / 0.18);
  border-radius: 999px;
  background: hsl(222 24% 12% / 0.88);
  padding: 0.22rem 0.55rem;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
}

.home-hot-topic-meta {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding-top: 0.15rem;
  border-top: 1px solid var(--home-border);
}

.home-hot-topic-meta div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.home-hot-topic-meta dt {
  color: #a8b7c8;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-hot-topic-meta dd {
  margin: 0;
  color: #f8fafc;
  font-size: 0.88rem;
  font-weight: 900;
}

.home-hot-topic-updated {
  padding-top: 0.15rem;
}

.home-trending-header,
.home-trending-grid,
.home-trending-tags {
  display: grid;
  gap: 1rem;
}

.home-trending-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.home-trending-header span,
.home-trending-tags > span {
  color: #a8b7c8;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-trending-header h2,
.home-trending-section h3 {
  margin: 0;
  color: #f8fafc;
}

.home-trending-header p,
.home-trending-section p,
.home-trending-empty {
  margin: 0;
  color: #a8b7c8;
  line-height: 1.55;
}

.home-trending-header > strong {
  border: 1px solid var(--web-panel-border);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  color: #d8e3ef;
  font-size: 0.78rem;
}

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

.home-trending-section {
  display: grid;
  align-content: start;
  gap: 0.7rem;
}

.home-trending-section h3 {
  font-size: 1rem;
}

.home-trending-item {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid var(--web-panel-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  text-decoration: none;
}

.home-trending-thumbnail {
  width: 4.5rem;
  height: 4.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.home-trending-item:hover {
  border-color: rgba(21, 215, 244, 0.45);
  background: rgba(21, 215, 244, 0.08);
}

.home-trending-section-chatter .home-trending-item:hover {
  border-color: rgba(224, 53, 255, 0.45);
  background: rgba(224, 53, 255, 0.08);
}

.home-trending-item span,
.home-trending-item strong {
  display: grid;
  gap: 0.2rem;
}

.home-trending-item b {
  overflow: hidden;
  color: #f8fafc;
  font-size: 0.95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-trending-item em,
.home-trending-item small {
  color: #a8b7c8;
  font-style: normal;
}

.home-trending-item em {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.85rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-trending-item strong {
  min-width: 6rem;
  align-content: start;
  color: #f8fafc;
  font-size: 0.9rem;
  text-align: right;
}

.home-trending-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.home-trending-tag {
  border: 1px solid rgba(21, 215, 244, 0.28);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  background: rgba(8, 17, 32, 0.86);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
}

.home-trending-tag-chatter {
  border-color: rgba(224, 53, 255, 0.28);
  background: rgba(8, 17, 32, 0.86);
  color: #ffffff;
}

.web-card,
.opportunity-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.opportunity-card h3 {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.18;
}

.opportunity-card h3 a {
  color: #f8fafc;
  text-decoration: none;
}

.opportunity-card h3 a:hover {
  color: var(--brand-cyan);
}

.web-card-header,
.opportunity-card-header,
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.category-pill,
.trend-pill {
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 900;
}

.category-pill {
  background: rgba(8, 17, 32, 0.86);
  color: #ffffff;
  text-decoration: none;
}

.trend-pill {
  background: rgba(8, 17, 32, 0.86);
  color: #ffffff;
}

.home-market-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.public-page-panel .home-market-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-market-tags a {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(8, 17, 32, 0.86);
  color: #ffffff;
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.home-market-tags a:hover {
  border-color: rgba(21, 215, 244, 0.55);
  color: #bff7ff;
}

.web-shell .options li,
.home-shell .options li {
  background: var(--web-panel-bg-strong);
  color: #e5edf7;
}

.card-action {
  justify-self: start;
  color: var(--brand-cyan);
  font-weight: 900;
  text-decoration: none;
}

.share-actions {
  position: relative;
  display: inline-block;
  margin-top: 1rem;
  color: var(--web-text);
}

.share-actions summary {
  list-style: none;
}

.share-actions summary::-webkit-details-marker {
  display: none;
}

.share-actions-trigger {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--web-muted-text);
  padding: 0.45rem 0.65rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.share-actions-trigger:hover,
.share-actions[open] .share-actions-trigger {
  border-color: rgba(21, 215, 244, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: var(--web-text);
}

.share-actions-trigger:focus-visible {
  outline: 3px solid var(--brand-focus);
  outline-offset: 2px;
}

.share-actions-trigger-icon {
  display: inline-grid;
  width: 1rem;
  height: 1rem;
  place-items: center;
  border-radius: 999px;
  color: var(--brand-cyan);
  font-size: 0.95rem;
  line-height: 1;
}

.share-actions[open] .share-actions-trigger-icon {
  transform: rotate(45deg);
}

.share-actions-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.5rem);
  left: 0;
  display: grid;
  box-sizing: border-box;
  width: min(20rem, calc(100vw - 2rem));
  gap: 0.6rem;
  border: 1px solid var(--web-panel-border);
  border-radius: 8px;
  background: rgba(9, 13, 28, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  padding: 0.85rem;
}

.home-market-card .share-actions-panel {
  right: 0;
  left: auto;
}

.share-actions-header,
.share-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.share-actions-header {
  justify-content: space-between;
}

.share-actions h2 {
  margin: 0;
  color: var(--web-text);
  font-size: 1rem;
  letter-spacing: 0;
}

.share-url {
  max-width: none;
  overflow-wrap: anywhere;
  margin: 0;
  border: 1px solid var(--web-panel-border);
  border-radius: 8px;
  background: rgba(6, 8, 23, 0.34);
  padding: 0.55rem 0.6rem;
  color: var(--web-muted-text);
  font-size: 0.78rem;
  line-height: 1.35;
}

.share-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.share-action-row button,
.share-target-grid a,
.share-native {
  box-sizing: border-box;
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid var(--web-panel-border);
  border-radius: 8px;
  background: rgba(8, 17, 32, 0.78);
  color: #f8fafc;
  padding: 0.45rem 0.65rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.share-action-row button:hover,
.share-target-grid a:hover,
.share-native:hover {
  border-color: rgba(21, 215, 244, 0.45);
  background: rgba(21, 215, 244, 0.12);
}

.share-action-row button:focus-visible,
.share-target-grid a:focus-visible,
.share-native:focus-visible {
  outline: 3px solid var(--brand-focus);
  outline-offset: 2px;
}

.share-status {
  min-height: 1.25rem;
  margin: 0;
  color: var(--web-muted-text);
  font-size: 0.78rem;
}

.share-status:not([data-state]) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.share-status[data-state="success"] {
  color: #86efac;
}

.share-status[data-state="error"] {
  color: #fca5a5;
}

.share-target-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.web-card.sidebar-card,
.web-card.interactive-note,
.sidebar-card,
.interactive-note {
  padding: 1.25rem;
}

.sidebar-card {
  display: grid;
  gap: 1rem;
}

.feature-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding-left: 1.1rem;
  color: #d8e3ef;
}

.interactive-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--web-max-width);
  margin: 1.25rem auto 0;
}

.public-page-panel {
  display: grid;
  gap: 1.25rem;
  max-width: var(--web-max-width);
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.public-page-panel section {
  display: grid;
  gap: 0.75rem;
}

.public-page-panel h3 {
  margin: 0;
  color: var(--web-text);
  font-size: 0.95rem;
  line-height: 1.35;
}

.public-page-panel ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.25rem;
  color: var(--web-muted-text);
  line-height: 1.6;
}

.policy-updated {
  margin: 0;
  color: var(--web-text);
  font-weight: 900;
}

.public-legal-footer {
  max-width: var(--web-max-width);
  margin: 1.5rem auto 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--web-panel-border);
}

.public-legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  align-items: center;
  justify-content: center;
}

.public-legal-footer a,
.public-privacy-choices-link {
  appearance: none;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 8px;
  color: var(--web-muted-text);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.public-legal-footer a:hover,
.public-legal-footer a:focus-visible,
.public-privacy-choices-link:hover,
.public-privacy-choices-link:focus-visible {
  color: var(--web-text);
  text-decoration: underline;
}

.public-page-header {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0;
}

.public-page-header h1 {
  max-width: 980px;
  color: var(--web-text);
  font-size: clamp(2rem, 5vw, 4rem);
}

.public-list-card {
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.content-feed-empty {
  display: grid;
  gap: 0.65rem;
  border-style: dashed;
  background: rgba(255, 255, 255, 0.92);
}

.content-feed-empty h2 {
  margin: 0;
  color: var(--web-text);
  font-size: 1.25rem;
  letter-spacing: 0;
}

.content-feed-empty p {
  margin: 0;
}

.content-empty-label {
  color: var(--brand-cyan);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.content-empty-message {
  max-width: 62ch;
}

.content-feed-empty a {
  color: var(--brand-cyan);
  font-weight: 800;
}

.web-shell .leaderboard-list li,
.web-shell .badge-list li,
.web-shell .stat-grid div {
  border-color: var(--web-panel-border);
  background: var(--web-panel-bg-strong);
  color: var(--web-text);
}

.web-shell .leaderboard-list a,
.web-shell .content-detail a,
.web-shell .event-detail a,
.web-shell .profile-detail a,
.web-shell .public-page-panel a {
  color: var(--brand-cyan);
}

.web-shell .data-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

.web-shell .data-table th,
.web-shell .data-table td {
  border-bottom: 1px solid var(--web-panel-border);
  padding: 0.7rem;
  text-align: left;
}

.web-shell .data-table th {
  color: var(--web-text);
}

.web-shell .source-origin-group {
  border-color: var(--web-panel-border);
  background: var(--web-panel-bg-strong);
  color: var(--web-text);
}

.web-shell .source-origin-group-header p,
.web-shell .source-origin-reason {
  color: var(--web-muted-text);
}

.web-shell .source-origin-group-header > span {
  color: var(--brand-cyan);
}

.web-shell .source-origin-signals span {
  border-color: var(--web-panel-border);
  background: rgba(8, 17, 32, 0.86);
  color: #ffffff;
}

.web-shell .source-list a {
  color: var(--brand-cyan);
}

.web-shell .source-list .source-title {
  color: var(--web-text);
}

.web-shell .source-list-heading img,
.web-shell .source-list-fallback {
  border-color: var(--web-panel-border);
  background: rgba(255, 255, 255, 0.06);
}

.web-shell .source-list-fallback {
  color: var(--brand-cyan);
}

.web-shell .source-list-signals span {
  border-color: var(--web-panel-border);
  background: var(--web-panel-bg);
  color: var(--web-muted-text);
}

.web-shell .empty {
  border-color: var(--web-panel-border);
  background: var(--web-panel-bg);
  color: var(--web-muted-text);
}

.web-shell .pagination,
.home-shell .pagination {
  margin-bottom: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.web-shell .pagination a,
.web-shell .pagination span,
.home-shell .pagination a,
.home-shell .pagination span {
  border-color: var(--web-panel-border);
  background: var(--web-panel-bg);
  color: var(--web-text);
}

.home-market-load-more {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  width: 100%;
  border: 1px solid var(--home-border);
  border-radius: 8px;
  background: hsl(222 24% 7% / 0.8);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--home-shadow-card);
}

.home-market-load-more [data-market-feed-sentinel] {
  width: 100%;
  height: 1px;
}

.home-market-load-more p {
  margin: 0;
  color: var(--home-muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.home-market-load-more-link {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--home-border);
  border-radius: 8px;
  background: var(--home-card);
  color: var(--home-foreground);
  padding: 0.55rem 0.95rem;
  text-decoration: none;
  font-weight: 800;
}

.home-market-load-more-link:hover,
.home-market-load-more-link:focus-visible {
  border-color: var(--home-primary);
  color: var(--home-primary);
}

.home-market-load-more-link[hidden] {
  display: none;
}

.handoff-link {
  justify-self: start;
  margin-top: 0.75rem;
  border-radius: 8px;
  background: var(--brand-navy);
  color: #ffffff;
  padding: 0.8rem 1rem;
  text-decoration: none;
  font-weight: 700;
}

.home-shell {
  --home-background: hsl(222 24% 7%);
  --home-foreground: hsl(210 40% 98%);
  --home-card: hsl(222 22% 10%);
  --home-card-hover: hsl(222 20% 14%);
  --home-border: hsl(220 16% 22%);
  --home-muted: hsl(215 18% 72%);
  --home-primary: hsl(190 92% 52%);
  --home-primary-foreground: hsl(222 26% 8%);
  --home-accent: hsl(263 74% 66%);
  --home-success: hsl(151 64% 42%);
  --home-danger: hsl(329 84% 62%);
  --home-gold: var(--vr-color-brand-gold);
  --home-shell-width: 112rem;
  --home-gradient-primary: var(--vr-gradient-brand);
  --home-gradient-secondary: linear-gradient(135deg, hsl(190 82% 42%) 0%, hsl(263 74% 66%) 100%);
  --home-gradient-success: linear-gradient(135deg, hsl(151 64% 42%) 0%, hsl(190 82% 42%) 100%);
  --home-gradient-card: linear-gradient(145deg, var(--home-card) 0%, var(--home-card-hover) 100%);
  --home-shadow-card: var(--vr-shadow-card);
  --home-shadow-elevated: var(--vr-shadow-elevated);
  --home-shadow-glow: var(--vr-shadow-glow);
  padding: 0;
  background:
    radial-gradient(ellipse at top, hsl(190 92% 52% / 0.2) 0%, hsl(263 74% 66% / 0.16) 34%, var(--home-background) 72%),
    var(--home-background);
  color: var(--home-foreground);
}

.home-shell .web-nav,
.web-shell .viberank-shell-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(13rem, 22rem) minmax(24rem, 52rem) minmax(max-content, 1fr);
  align-items: center;
  max-width: none;
  min-height: 4rem;
  margin: 0 0 1.25rem;
  padding: 0.5rem clamp(0.75rem, 1.45vw, 2rem);
  border-bottom: 1px solid var(--home-border);
  background: hsl(222 24% 7% / 0.82);
  backdrop-filter: blur(12px);
  box-sizing: border-box;
}

.home-app-nav,
.viberank-shell-nav {
  gap: 1rem;
}

.home-shell .brand-lockup-large,
.web-shell .viberank-shell-nav .brand-lockup-large {
  gap: 0.75rem;
  text-transform: none;
}

.home-shell .brand-lockup-large img,
.web-shell .viberank-shell-nav .brand-lockup-large img {
  width: var(--vr-shell-mark-size);
  height: var(--vr-shell-mark-size);
  border-radius: var(--vr-radius-card);
  box-shadow: var(--brand-shadow-gold);
}

.home-shell .brand-lockup-large span,
.web-shell .viberank-shell-nav .brand-lockup-large span {
  font-size: 1.25rem;
  letter-spacing: 0;
}

.home-shell .brand-lockup-large .home-brand-copy,
.web-shell .viberank-shell-nav .brand-lockup-large .home-brand-copy {
  display: grid;
  gap: 0.1rem;
  background: none;
  color: inherit;
  line-height: 1.05;
}

.home-shell .brand-lockup-large .home-brand-name,
.web-shell .viberank-shell-nav .brand-lockup-large .home-brand-name {
  background: none;
  color: var(--home-foreground);
  font-size: 1.18rem;
  font-weight: 700;
}

.home-shell .brand-lockup-large small,
.web-shell .viberank-shell-nav .brand-lockup-large small {
  color: var(--home-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.home-nav-search {
  position: relative;
  align-self: center;
}

.home-nav-search svg {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  width: 1rem;
  height: 1rem;
  transform: translateY(-50%);
  color: var(--home-muted);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  pointer-events: none;
}

.home-nav-search input {
  width: 100%;
  min-height: 2.25rem;
  border: 1px solid var(--home-border);
  border-radius: var(--vr-radius-card);
  background: hsl(220 18% 13%);
  color: var(--home-foreground);
  font: inherit;
  padding: 0.48rem 0.85rem 0.48rem 2.25rem;
}

.home-nav-search input::placeholder {
  color: var(--home-muted);
}

.home-nav-search input:focus-visible {
  outline: 3px solid var(--brand-focus);
  outline-offset: 2px;
}

.home-icon-nav svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.home-icon-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 0.5rem;
  min-width: max-content;
  white-space: nowrap;
}

.home-shell .web-nav-links a,
.web-shell .viberank-shell-nav .web-nav-links a,
.home-shell .web-nav-links .home-aura-preview,
.web-shell .viberank-shell-nav .web-nav-links .home-aura-preview,
.home-shell .web-nav-links .home-notification-button,
.web-shell .viberank-shell-nav .web-nav-links .home-notification-button {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 0.375rem;
  color: var(--home-muted);
  text-decoration: none;
}

.home-shell .web-nav-links .home-nav-icon,
.web-shell .viberank-shell-nav .web-nav-links .home-nav-icon,
.home-shell .web-nav-links .home-notification-button,
.web-shell .viberank-shell-nav .web-nav-links .home-notification-button {
  width: var(--vr-shell-icon-control-size);
  padding: 0;
}

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

.home-shell .web-nav-links .home-aura-preview,
.web-shell .viberank-shell-nav .web-nav-links .home-aura-preview {
  min-height: 2rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: 1px solid hsl(158 84% 72% / 0.35);
  background: linear-gradient(90deg, hsl(158 70% 55%) 0%, hsl(190 92% 52%) 100%);
  color: var(--home-primary-foreground);
  font-weight: 900;
  box-shadow: 0 0 22px hsl(186 90% 55% / 0.22);
}

.home-shell .web-nav-links .home-aura-preview svg,
.web-shell .viberank-shell-nav .web-nav-links .home-aura-preview svg {
  width: 1rem;
  height: 1rem;
  color: var(--home-primary-foreground);
}

.home-shell .web-nav-links .button-link-subtle,
.web-shell .viberank-shell-nav .web-nav-links .button-link-subtle {
  box-sizing: border-box;
  border-color: hsl(190 92% 52% / 0.38);
  background: hsl(190 92% 52%);
  color: var(--home-primary-foreground);
  box-shadow: 0 0 22px hsl(190 92% 52% / 0.22);
  min-height: 2.25rem;
  height: 2.25rem;
  padding: 0 0.85rem;
  font-weight: 700;
}

.home-shell .web-nav-links .home-nav-avatar,
.web-shell .viberank-shell-nav .web-nav-links .home-nav-avatar,
.home-nav-avatar {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  min-height: 2rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0;
  border-radius: 999px;
  background: var(--home-gradient-primary);
  color: var(--home-primary-foreground);
  font-weight: 900;
  font-size: 0.8rem;
  text-decoration: none;
  box-shadow: 0 0 0 2px hsl(190 92% 52% / 0.22);
}

.home-hero {
  grid-template-columns: minmax(0, 1fr);
  max-width: none;
  min-height: 19.75rem;
  margin: 0;
  border-radius: var(--vr-radius-hero);
  border-color: transparent;
  background: var(--home-gradient-primary);
  color: var(--home-primary-foreground);
  box-shadow: var(--home-shadow-elevated);
  position: relative;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, hsl(0 0% 100% / 0.07), transparent);
  background-size: 200% 100%;
  animation: home-shimmer 4s linear infinite;
  pointer-events: none;
}

.home-hero-copy {
  display: grid;
  align-content: center;
  gap: clamp(1rem, 2vw, 1.5rem);
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 4vw, 3rem);
}

.home-hero .hero-copy {
  color: hsl(222 26% 8% / 0.76);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.home-hero-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.8rem;
}

.home-hero-title svg {
  width: clamp(2.4rem, 5vw, 3.4rem);
  height: clamp(2.4rem, 5vw, 3.4rem);
  flex: 0 0 auto;
  fill: none;
  stroke: hsl(222 26% 8%);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.home-hero h1 {
  color: hsl(222 26% 8%);
  font-size: clamp(2.4rem, 4vw, 3rem);
  line-height: 1;
}

.home-hero-actions {
  display: grid;
  grid-template-columns: auto minmax(0, max-content);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: center;
}

.home-hero .button-link {
  min-height: 3rem;
}

.home-hero .button-link-primary {
  border-color: hsl(0 0% 100% / 0.2);
  background: hsl(222 24% 12% / 0.86);
  color: #ffffff;
  box-shadow: var(--home-shadow-card);
  backdrop-filter: blur(12px);
}

.home-hero .button-link-ghost {
  border-color: hsl(0 0% 100% / 0.2);
  background: hsl(222 24% 12% / 0.72);
  color: #ffffff;
}

.home-stat-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: 1rem;
  padding: 0;
  border: 0;
  background: transparent;
  position: relative;
  z-index: 1;
}

.home-stat-panel div {
  border-color: transparent;
  background: transparent;
  padding: 0.25rem 0.5rem;
  text-align: center;
}

.home-stat-panel span {
  color: hsl(222 26% 8% / 0.68);
}

.home-stat-panel strong {
  font-size: 1.875rem;
}

.home-layout {
  grid-template-columns: minmax(0, 3fr) minmax(18rem, 23.5rem);
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 clamp(1rem, 2vw, 2.75rem) 2rem;
  box-sizing: border-box;
}

.home-main-column {
  container-type: inline-size;
  gap: 1.25rem;
}

.home-feed-controls {
  display: grid;
  gap: 0.5rem;
  padding: 0.5rem;
  border: 1px solid var(--home-border);
  border-radius: 8px;
  background: hsl(222 22% 10% / 0.92);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 4rem;
  z-index: 40;
}

.home-feed-controls-row {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.home-feed-controls .web-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  position: static;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.home-feed-controls-row .web-tabs {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.home-feed-controls .web-tabs a {
  display: inline-flex;
  box-sizing: border-box;
  height: 2.25rem;
  min-height: 2.25rem;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-color: transparent;
  background: transparent;
  color: var(--home-muted);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.home-feed-controls .web-tabs a svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.home-feed-controls .web-tabs a:hover {
  background: var(--home-card-hover);
  color: var(--home-foreground);
}

.home-feed-controls .web-tabs a[aria-current="page"] {
  border-color: transparent;
  background: var(--home-gradient-primary);
  color: #ffffff;
  box-shadow: var(--home-shadow-glow);
}

.home-feed-controls .web-tabs a.home-category-trending[aria-current="page"] {
  background: linear-gradient(135deg, hsl(3 72% 56%) 0%, hsl(329 84% 62%) 100%);
}

.home-feed-controls .web-tabs a.home-category-trending::after {
  content: "NEW";
  display: inline-flex;
  height: 1rem;
  align-items: center;
  border-radius: 999px;
  background: hsl(222 24% 12% / 0.86);
  padding: 0.14rem 0.4rem;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

.home-feed-toolbar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.home-mobile-feed-toolbar {
  display: none;
}

.home-mobile-picker {
  position: relative;
}

.home-mobile-picker summary,
.home-mobile-icon-control {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--home-muted);
  list-style: none;
  text-decoration: none;
}

.home-mobile-picker summary::-webkit-details-marker {
  display: none;
}

.home-mobile-picker summary {
  cursor: pointer;
}

.home-mobile-picker summary:hover,
.home-mobile-picker summary:focus-visible,
.home-mobile-icon-control:hover,
.home-mobile-icon-control:focus-visible {
  background: var(--home-card-hover);
  color: var(--home-foreground);
  outline: none;
}

.home-mobile-feed-toolbar svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.home-mobile-picker-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  z-index: 60;
  display: grid;
  width: min(14rem, calc(100vw - 2rem));
  max-height: 70vh;
  overflow-y: auto;
  border: 1px solid var(--home-border);
  border-radius: 8px;
  background: hsl(222 22% 10% / 0.98);
  padding: 0.35rem;
  box-shadow: var(--home-shadow-elevated);
}

.home-mobile-picker-menu-end {
  right: 0;
  left: auto;
}

.home-mobile-picker:not([open]) .home-mobile-picker-menu {
  display: none;
}

.home-mobile-picker-menu a {
  display: flex;
  min-height: 2.2rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 8px;
  color: var(--home-muted);
  padding: 0.45rem 0.55rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.home-mobile-picker-menu a[aria-current="page"],
.home-mobile-picker-menu a:hover,
.home-mobile-picker-menu a:focus-visible {
  background: var(--home-card-hover);
  color: var(--home-foreground);
  outline: none;
}

.home-mobile-picker-menu a svg {
  width: 1rem;
  height: 1rem;
  color: var(--home-primary);
}

.opportunity-feed {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 1440px) {
  .opportunity-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container (min-width: 58rem) {
  .opportunity-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.home-following-control,
.home-feed-sort {
  display: inline-flex;
  min-height: 2.25rem;
  height: 2.25rem;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--home-border);
  border-radius: 8px;
  background: hsl(220 18% 13%);
  color: var(--home-foreground);
  padding: 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.home-following-control:hover,
.home-following-control:focus-visible {
  border-color: hsl(190 92% 52% / 0.5);
  background: var(--home-card-hover);
  outline: none;
}

.home-following-control svg,
.home-feed-sort svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.home-feed-sort-label {
  color: var(--home-muted);
  font-size: 0.875rem;
  font-weight: 400;
}

.home-feed-sort strong {
  color: var(--home-foreground);
  padding: 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.home-featured-event {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-color: hsl(190 92% 52% / 0.24);
  background: #050913;
  box-shadow: 0 24px 80px hsl(0 0% 0% / 0.45), inset 0 1px 0 hsl(190 92% 78% / 0.14);
}

.home-featured-event-bg,
.home-featured-event-overlay {
  position: absolute;
  inset: 0;
}

.home-featured-event-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.home-featured-event-overlay {
  background:
    radial-gradient(circle at 38% 52%, hsl(190 92% 52% / 0.12), transparent 34%),
    linear-gradient(90deg, hsl(222 74% 4% / 0.7) 0%, hsl(222 60% 7% / 0.22) 44%, hsl(222 74% 4% / 0.52) 100%),
    linear-gradient(180deg, hsl(222 74% 4% / 0.42) 0%, transparent 42%, hsl(222 74% 4% / 0.48) 100%);
}

.home-featured-event-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(20rem, 1fr);
  gap: 1rem;
  align-items: center;
  min-height: 16rem;
  padding: 1.25rem;
}

.home-featured-event-copy {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.home-featured-event-pill,
.home-featured-event-meta span,
.home-featured-event-teams > span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid hsl(190 92% 60% / 0.42);
  background: hsl(222 24% 12% / 0.86);
  color: #ffffff;
  box-shadow: 0 0 28px hsl(190 92% 52% / 0.22);
}

.home-featured-event-pill {
  width: max-content;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-featured-event-pill svg,
.home-featured-event-meta svg,
.home-featured-event-teams svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.home-featured-event h2 {
  margin: 0;
  max-width: 9ch;
  color: #ffffff;
  font-size: clamp(3rem, 6vw, 5.25rem);
  font-weight: 1000;
  letter-spacing: 0;
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow: 0 8px 28px hsl(0 0% 0% / 0.86);
}

.home-featured-event h2 span,
.home-featured-event h2 strong {
  display: block;
}

.home-featured-event h2 strong {
  background: linear-gradient(180deg, hsl(184 100% 86%), hsl(177 77% 54%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px hsl(185 95% 58% / 0.46);
}

.home-featured-event p {
  max-width: 38rem;
  margin: 0;
  color: hsl(220 28% 86%);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.5;
}

.home-featured-event p b {
  color: hsl(184 100% 62%);
}

.home-featured-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-featured-event-meta span {
  border-color: hsl(190 92% 60% / 0.28);
  border-radius: 999px;
  background: hsl(222 74% 4% / 0.58);
  padding: 0.55rem 0.8rem;
  color: hsl(220 28% 88%);
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.home-featured-event-side {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.home-featured-event-match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 4.65rem;
  border: 1px solid hsl(0 0% 100% / 0.13);
  border-radius: 8px;
  background: hsl(222 74% 4% / 0.66);
  padding: 0.75rem 0.9rem;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 16px 40px hsl(0 0% 0% / 0.32), inset 0 1px 0 hsl(0 0% 100% / 0.06);
  backdrop-filter: blur(14px);
}

.home-featured-event-match:hover,
.home-featured-event-match:focus-visible {
  border-color: hsl(190 92% 60% / 0.5);
  background: hsl(222 50% 9% / 0.74);
}

.home-featured-event-match span,
.home-featured-event-match em {
  min-width: 0;
}

.home-featured-event-match-main,
.home-featured-event-match-copy,
.home-featured-event-flags {
  display: flex;
  min-width: 0;
}

.home-featured-event-match-main {
  align-items: center;
  gap: 0.85rem;
}

.home-featured-event-match-copy {
  flex: 1 1 auto;
  flex-direction: column;
}

.home-featured-event-flags {
  flex: 0 0 auto;
  align-items: center;
  gap: 0.45rem;
}

.home-featured-event-flags img,
.home-featured-event-flag-fallback {
  display: inline-flex;
  width: 4rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid hsl(190 92% 60% / 0.18);
  border-radius: 8px;
  background: hsl(222 74% 4% / 0.58);
  box-shadow: inset 0 1px 0 hsl(0 0% 100% / 0.08);
}

.home-featured-event-flags img {
  padding: 0.125rem;
  object-fit: contain;
}

.home-featured-event-flag-fallback {
  color: hsl(185 95% 78%);
  font-size: 0.85rem;
  font-weight: 900;
}

.home-featured-event-match b,
.home-featured-event-match small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-featured-event-match b {
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1.25;
}

.home-featured-event-match small {
  margin-top: 0.25rem;
  color: hsl(220 28% 80%);
  font-size: 0.85rem;
}

.home-featured-event-match em {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
  font-style: normal;
}

.home-featured-event-match i,
.home-featured-event-teams a {
  border: 1px solid hsl(190 92% 60% / 0.24);
  border-radius: 999px;
  background: hsl(222 24% 12% / 0.86);
  color: #ffffff;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  padding: 0.38rem 0.7rem;
  text-decoration: none;
}

.home-featured-event-teams {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.home-featured-event-teams > span {
  width: 2.35rem;
  height: 2.35rem;
  justify-content: center;
  border-radius: 999px;
  padding: 0;
}

.home-create-link {
  display: flex;
  min-height: 2.875rem;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--home-gradient-secondary);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--home-shadow-card);
}

.home-market-card {
  position: relative;
  gap: 0;
  padding: 0;
  overflow: visible;
  align-content: start;
  border-color: var(--home-border);
  background: var(--home-gradient-card);
  box-shadow: var(--home-shadow-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home-market-card:hover,
.home-market-card:focus-within {
  border-color: hsl(190 92% 52% / 0.5);
  box-shadow: var(--home-shadow-glow), var(--home-shadow-card);
  z-index: 10;
}

.home-market-card:hover {
  transform: translateY(-1px);
}

.home-market-visual {
  position: relative;
  height: var(--vr-market-card-media-height);
  min-height: var(--vr-market-card-media-height);
  max-height: var(--vr-market-card-media-height);
  block-size: var(--vr-market-card-media-height);
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background:
    radial-gradient(circle at 28% 30%, hsl(263 74% 66% / 0.35), transparent 32%),
    linear-gradient(135deg, hsl(220 16% 18%), hsl(222 22% 10%));
}

.home-market-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsl(222 24% 7% / 0.82), transparent 58%);
}

.home-market-visual img {
  display: block;
  width: 100%;
  height: 100%;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.home-market-visual span {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  height: 1px;
  background: hsl(0 0% 100% / 0.2);
}

.home-market-visual span:nth-child(1) {
  top: 2rem;
}

.home-market-visual span:nth-child(2) {
  top: 4rem;
  opacity: 0.7;
}

.home-market-visual span:nth-child(3) {
  bottom: 2rem;
  left: 2rem;
  right: auto;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid hsl(0 0% 100% / 0.22);
  border-radius: 8px;
  background: hsl(0 0% 100% / 0.1);
  backdrop-filter: blur(12px);
}

.home-market-visual strong,
.home-market-visual em,
.home-market-visual b {
  position: absolute;
  z-index: 1;
  border-radius: 8px;
  color: #ffffff;
  font-style: normal;
  font-weight: 900;
}

.home-market-visual strong {
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, hsl(3 72% 56%) 0%, hsl(329 84% 62%) 100%);
  padding: 0.35rem 0.55rem;
  font-size: 0.78rem;
}

.home-market-visual b {
  left: 1rem;
  bottom: 1rem;
  border: 1px solid hsl(190 92% 52% / 0.35);
  background: hsl(222 24% 7% / 0.72);
  padding: 0.35rem 0.6rem;
  font-size: 0.78rem;
  backdrop-filter: blur(12px);
}

.home-market-visual em {
  right: 1rem;
  bottom: 1rem;
  background: hsl(222 24% 7% / 0.36);
  padding: 0.3rem 0.5rem;
  font-size: 0.82rem;
  backdrop-filter: blur(12px);
}

.home-market-body {
  display: grid;
  gap: var(--vr-market-card-body-gap);
  padding: var(--vr-market-card-body-padding);
}

.home-market-card .opportunity-card-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
}

.home-market-card h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-market-card h3 a {
  color: inherit;
  text-decoration: none;
}

.home-market-card h3 + p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--home-muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-author {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.65rem;
}

.home-author > span,
.home-author > img {
  display: inline-flex;
  width: var(--vr-market-card-author-size);
  height: var(--vr-market-card-author-size);
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--home-gradient-primary);
  color: var(--home-primary-foreground);
  font-weight: 900;
  box-shadow: 0 0 0 2px hsl(190 92% 52% / 0.2);
}

.home-author > img {
  object-fit: cover;
}

.home-profile-row > span,
.home-profile-row > img {
  display: inline-flex;
  width: 3.5rem;
  height: 3.5rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--home-gradient-primary);
  color: var(--home-primary-foreground);
  font-weight: 900;
  box-shadow: 0 0 0 2px hsl(190 92% 52% / 0.2);
}

.home-profile-row > img {
  object-fit: cover;
  box-shadow: 0 0 0 3px hsl(190 92% 52% / 0.2);
}

.home-author p {
  margin: 0;
  color: var(--home-foreground);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: var(--vr-market-card-author-line-height);
}

.home-profile-row p {
  color: var(--home-foreground);
  font-size: 1rem;
  font-weight: 800;
}

.home-author small {
  display: block;
  color: var(--home-muted);
  font-size: 0.78rem;
  line-height: var(--vr-market-card-author-line-height);
}

.home-market-card .category-pill {
  justify-self: end;
  line-height: 1;
}

.home-market-body .share-actions {
  margin-top: 0;
}

.home-binary-market,
.home-segmented-market {
  border: 1px solid hsl(190 92% 52% / 0.28);
  border-radius: 8px;
  background: hsl(222 24% 7% / 0.42);
  box-shadow: 0 14px 36px hsl(190 92% 52% / 0.08);
}

.home-binary-market {
  padding: 0.7rem;
  background:
    linear-gradient(90deg, hsl(152 76% 45% / 0.16), hsl(222 24% 7% / 0.58) 50%, hsl(345 82% 58% / 0.16)),
    hsl(222 24% 7% / 0.52);
}

.home-binary-outcomes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem;
}

.home-binary-outcome,
.home-segmented-outcome {
  color: inherit;
  text-decoration: none;
}

.home-binary-outcome {
  display: grid;
  min-width: 0;
  gap: 0.25rem;
  border-radius: 8px;
  padding: 0.45rem;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.home-binary-outcome:hover,
.home-binary-outcome:focus-visible {
  background: hsl(0 0% 100% / 0.05);
  outline: none;
}

.home-binary-outcome-yes {
  text-align: left;
}

.home-binary-outcome-no {
  text-align: right;
}

.home-binary-outcome strong {
  font-size: clamp(1.75rem, 5vw, 2.4rem);
  font-weight: 1000;
  line-height: 0.95;
}

.home-binary-outcome-yes strong {
  color: hsl(152 76% 70%);
}

.home-binary-outcome-no strong {
  color: hsl(345 82% 74%);
}

.home-binary-outcome span,
.home-segmented-outcome span {
  color: var(--home-foreground);
  font-weight: 900;
}

.home-binary-outcome span {
  text-transform: uppercase;
}

.home-binary-outcome small,
.home-segmented-outcome small {
  color: var(--home-muted);
  font-weight: 700;
}

.home-binary-bar {
  display: flex;
  height: 0.7rem;
  overflow: hidden;
  margin-top: 0.85rem;
  border-radius: 999px;
  background: hsl(222 16% 26%);
}

.home-binary-bar i,
.home-binary-bar b {
  display: block;
  min-width: 0;
  height: 100%;
}

.home-binary-bar i {
  background: hsl(152 76% 56%);
}

.home-binary-bar b {
  flex: 1 1 auto;
  background: hsl(345 82% 62%);
}

.home-segmented-market {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.55rem;
  padding: 0.55rem;
}

.home-segmented-outcome {
  position: relative;
  display: grid;
  min-height: 6.75rem;
  align-content: start;
  gap: 0.35rem;
  overflow: hidden;
  border: 1px solid hsl(190 92% 52% / 0.2);
  border-radius: 8px;
  background: linear-gradient(180deg, hsl(190 92% 52% / 0.12), hsl(222 24% 7% / 0.24));
  padding: 0.75rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.home-segmented-outcome:hover,
.home-segmented-outcome:focus-visible {
  border-color: hsl(190 92% 52% / 0.55);
  background: var(--home-card-hover);
  outline: none;
}

.home-segmented-outcome strong {
  color: hsl(190 92% 70%);
  font-size: 1.45rem;
  font-weight: 1000;
}

.home-segmented-outcome i {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.55rem;
  display: block;
  height: 0.45rem;
  max-width: calc(100% - 1.5rem);
  border-radius: 999px;
  background: var(--home-gradient-secondary);
  font-style: normal;
}

.home-card-footer {
  display: grid;
  gap: 0.75rem;
  border-top: 1px solid var(--home-border);
  padding-top: 0.75rem;
}

.home-market-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 0.9rem;
  font-size: 0.82rem;
  line-height: 1.35;
}

.home-market-meta span:last-child {
  color: var(--home-accent);
  font-weight: 900;
}

.home-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
}

.home-card-actions .share-actions {
  flex: 0 0 auto;
  order: 3;
}

.home-card-actions .card-action:last-child {
  margin-left: auto;
}

.home-sidebar {
  position: sticky;
  top: 5.75rem;
}

.home-stats-card {
  gap: 0.85rem;
  min-height: 0;
  justify-items: stretch;
  align-content: start;
  text-align: left;
  background: var(--home-gradient-card);
}

.home-empty-profile svg {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--home-muted);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.home-stats-card h2 {
  margin: 0;
  color: var(--home-foreground);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.15;
}

.home-stats-card p {
  margin: 0;
  color: var(--home-muted);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.3;
}

.home-profile-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.home-profile-row small {
  display: inline-flex;
  width: max-content;
  margin-top: 0.25rem;
  border-radius: 999px;
  background: var(--home-gradient-primary);
  color: #ffffff;
  padding: 0.18rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 900;
}

.home-aura-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  border-radius: 8px;
  background: var(--home-gradient-success);
  color: #ffffff;
  padding: 1rem;
  box-shadow: 0 16px 38px hsl(190 92% 52% / 0.18);
}

.home-aura-card svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.home-aura-card strong,
.home-aura-card b {
  color: #ffffff;
  font-weight: 950;
}

.home-aura-card b {
  font-size: 1.65rem;
}

.home-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.home-stat-grid div {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0.25rem 0;
  text-align: center;
}

.home-stat-grid dt {
  color: var(--home-muted);
  font-size: 0.8rem;
}

.home-stat-grid dd {
  margin: 0.15rem 0 0;
  color: var(--home-foreground);
  font-size: 1.35rem;
  font-weight: 900;
}

.home-interactive-note {
  max-width: var(--home-shell-width);
  margin: 0 auto;
}

[data-app-detail-shell],
.app-detail-shell {
  --home-background: hsl(222 24% 7%);
  --home-foreground: hsl(210 40% 98%);
  --home-card: hsl(222 22% 10%);
  --home-card-hover: hsl(222 20% 14%);
  --home-border: hsl(220 16% 22%);
  --home-muted: hsl(215 18% 72%);
  --home-primary: hsl(190 92% 52%);
  --home-primary-foreground: hsl(222 26% 8%);
  --home-accent: hsl(263 74% 66%);
  --home-gradient-primary: var(--vr-gradient-brand);
  --home-gradient-success: linear-gradient(135deg, hsl(151 64% 42%) 0%, hsl(190 82% 42%) 100%);
  --home-gradient-card: linear-gradient(145deg, var(--home-card) 0%, var(--home-card-hover) 100%);
  --detail-background: hsl(222 24% 7%);
  --detail-foreground: hsl(43 49% 88%);
  --detail-card: hsl(216 42% 12% / 0.88);
  --detail-card-hover: hsl(216 36% 15% / 0.88);
  --detail-border: hsl(39 38% 36% / 0.58);
  --detail-muted: hsl(43 22% 68%);
  --detail-primary: hsl(41 67% 62%);
  --detail-primary-foreground: hsl(216 63% 7%);
  --detail-shadow: 0 4px 20px hsl(222 30% 3% / 0.34);
  background: linear-gradient(180deg, hsl(222 24% 7%), hsl(222 23% 8%));
  color: var(--detail-foreground);
}

[data-app-detail-shell="market"] {
  --detail-background: var(--home-background);
  --detail-foreground: var(--home-foreground);
  --detail-card: hsl(222 22% 10% / 0.9);
  --detail-card-hover: hsl(222 20% 14% / 0.92);
  --detail-border: var(--home-border);
  --detail-muted: var(--home-muted);
  --detail-primary: var(--home-primary);
  --detail-primary-foreground: var(--home-primary-foreground);
  --detail-shadow: var(--vr-shadow-elevated);
  background:
    radial-gradient(circle at 22% 0%, hsl(190 92% 52% / 0.1), transparent 30rem),
    linear-gradient(180deg, var(--detail-background), hsl(222 26% 8%));
}

[data-app-detail-shell="discovery"] {
  --detail-background: hsl(222 24% 7%);
  --detail-foreground: hsl(43 49% 88%);
  --detail-card: hsl(216 42% 12% / 0.88);
  --detail-card-hover: hsl(216 36% 15% / 0.9);
  --detail-border: hsl(39 38% 36% / 0.58);
  --detail-muted: hsl(43 22% 68%);
  --detail-primary: hsl(41 67% 62%);
  --detail-primary-foreground: hsl(216 63% 7%);
}

:where([data-app-detail-shell="discovery"]) .app-detail-page {
  width: min(calc(100% - 3rem), 92rem);
  gap: 0.58rem;
  padding-top: 0.72rem;
}

.web-shell[data-app-detail-shell] {
  max-width: none;
  padding: 0;
}

.web-shell[data-app-detail-shell] p {
  color: var(--detail-muted);
}

.web-shell[data-app-detail-shell] .eyebrow {
  color: var(--detail-primary);
}

.web-shell[data-app-detail-shell] .public-legal-footer {
  width: min(100%, 80rem);
}

.web-shell[data-app-detail-shell="market"] .public-legal-footer {
  width: min(100%, 72rem);
}

.web-shell[data-app-detail-shell] .home-market-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-detail-shell .viberank-shell-nav {
  margin-bottom: 0;
}

[data-app-detail-shell] .viberank-shell-nav {
  margin-bottom: 0;
}

.app-detail-page {
  display: grid;
  gap: 1rem;
  width: min(100%, 80rem);
  margin: 0 auto;
  padding: 1rem clamp(0.75rem, 1.4vw, 1.25rem) 2rem;
}

.market-detail-shell .app-detail-page,
[data-app-detail-shell="market"] .app-detail-page {
  width: min(100%, 72rem);
  padding-top: 1.25rem;
}

.app-detail-back-link {
  display: inline-flex;
  width: fit-content;
  min-height: 2rem;
  align-items: center;
  gap: 0.4rem;
  border-radius: 8px;
  color: var(--detail-muted);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.app-detail-back-link:hover,
.app-detail-back-link:focus-visible {
  color: var(--detail-foreground);
  outline: none;
}

.app-detail-back-link svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.app-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 20rem);
  gap: 1rem;
  align-items: start;
}

.app-vote-card,
.app-sidebar-card,
.app-story-panel,
.app-detail-shell .discovery-topic-card,
.app-detail-shell .discovery-topic-hero-card,
[data-app-detail-shell] .discovery-topic-card,
[data-app-detail-shell] .discovery-topic-hero-card {
  border: 1px solid var(--detail-border);
  border-radius: 8px;
  background: linear-gradient(145deg, var(--detail-card), var(--detail-card-hover));
  box-shadow: var(--detail-shadow);
}

.app-vote-card {
  display: grid;
  gap: 1rem;
  overflow: hidden;
  padding: 1rem;
}

[data-app-detail-shell="market"] .app-vote-card {
  background: var(--home-gradient-card);
  box-shadow: var(--home-shadow-elevated);
}

.app-vote-card-copy {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.app-vote-card h1,
.app-topic-hero-card h1 {
  max-width: none;
  margin: 0;
  color: var(--detail-primary);
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  font-weight: 950;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.app-vote-card p,
.app-story-panel p,
.app-topic-hero-card p {
  max-width: none;
  margin: 0;
  color: var(--detail-muted);
  line-height: 1.65;
}

.app-badge-row,
.app-tag-row,
.app-topic-action-row,
.app-detail-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  border: 1px solid var(--detail-border);
  border-radius: 999px;
  background: hsl(222 26% 8% / 0.48);
  color: var(--detail-foreground);
  padding: 0.3rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.app-badge-danger {
  border-color: hsl(3 72% 56% / 0.45);
  background: hsl(3 72% 56% / 0.16);
  color: #ffffff;
}

.app-badge-muted {
  color: var(--detail-muted);
}

.event-detail-media {
  aspect-ratio: 16 / 5.25;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--detail-border);
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 30%, hsl(190 92% 52% / 0.18), transparent 34%),
    linear-gradient(135deg, hsl(222 20% 14%), hsl(222 26% 8%));
}

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

.event-detail-media span {
  display: block;
  width: 100%;
  height: 100%;
}

.app-outcome-panel {
  display: grid;
  gap: 0.75rem;
}

.app-outcome-panel h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.app-display-mode-toggle {
  display: inline-flex;
  width: fit-content;
  border: 1px solid var(--detail-border);
  border-radius: 999px;
  background: hsl(222 26% 8% / 0.55);
  padding: 0.25rem;
}

.app-display-mode-toggle span {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  color: var(--detail-muted);
  padding: 0 0.75rem;
  font-size: 0.86rem;
  font-weight: 800;
}

.app-display-mode-toggle span[aria-current="true"] {
  background: var(--home-gradient-primary);
  color: var(--home-primary-foreground);
}

.app-display-mode-toggle svg,
.app-sidebar-stat-list svg,
.app-secondary-action svg,
.app-story-tabs svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.app-binary-market {
  border-color: hsl(151 64% 42% / 0.45);
  border-radius: 16px;
  padding: clamp(1rem, 1.6vw, 1.5rem);
}

.app-segmented-market {
  border-radius: 16px;
}

.app-instant-bet-panel {
  display: grid;
  grid-template-columns: minmax(12rem, 0.9fr) minmax(18rem, 1.2fr) minmax(16rem, 1fr);
  gap: 0.75rem;
  align-items: center;
  border: 1px solid var(--detail-border);
  border-radius: 12px;
  background: hsl(222 26% 8% / 0.45);
  padding: 0.75rem;
}

.app-instant-bet-panel p {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--detail-muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.app-instant-bet-panel select,
.app-custom-bet-column input {
  width: 100%;
  min-height: 2.75rem;
  margin-top: 0.4rem;
  border: 1px solid var(--detail-border);
  border-radius: 8px;
  background: hsl(222 26% 8%);
  color: var(--detail-muted);
  padding: 0 0.75rem;
  font: inherit;
}

.app-custom-bet-column input {
  margin-top: 0;
}

.app-quick-bets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.app-quick-bets span {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--detail-border);
  border-radius: 8px;
  background: hsl(222 26% 8% / 0.6);
  color: hsl(151 64% 72%);
  font-weight: 700;
}

.app-quick-bet-column {
  border-inline: 1px solid var(--detail-border);
  padding-inline: 1rem;
}

.app-custom-bet-column {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.app-primary-action,
.app-secondary-action {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 0.9rem;
  font-weight: 900;
  text-decoration: none;
}

.app-primary-action {
  background: var(--home-gradient-primary);
  color: var(--detail-primary-foreground);
  box-shadow: var(--home-shadow-glow);
  white-space: nowrap;
}

.app-secondary-action {
  border: 1px solid var(--detail-border);
  background: hsl(222 26% 8% / 0.55);
  color: var(--detail-foreground);
  gap: 0.4rem;
}

.app-detail-sidebar {
  position: sticky;
  top: 5rem;
  display: grid;
  gap: 1rem;
}

.app-sidebar-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.app-sidebar-stat-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
}

.app-sidebar-stat-list div {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: space-between;
  border: 1px solid var(--detail-border);
  border-radius: 8px;
  background: hsl(222 26% 8% / 0.45);
  padding: 0.65rem 0.75rem;
}

.app-sidebar-stat-list dt {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--detail-muted);
  font-size: 0.8rem;
}

.app-sidebar-stat-list dt svg {
  color: var(--detail-primary);
}

.app-sidebar-stat-list dd {
  margin: 0;
  color: var(--detail-foreground);
  font-weight: 900;
  text-align: right;
}

.app-sidebar-stats {
  position: static;
  background: var(--home-gradient-card);
}

.app-sidebar-stats .home-aura-card {
  margin-top: 1rem;
}

.app-story-panel {
  display: grid;
  gap: 1rem;
  background: hsl(222 22% 10% / 0.85);
  padding: 1.25rem;
  box-shadow: var(--vr-shadow-card);
}

.app-story-panel-header,
.app-related-articles > h2,
.discovery-topic-section-heading {
  border-bottom: 1px solid var(--detail-border);
  padding-bottom: 0.85rem;
}

.app-story-panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.app-story-panel h2,
.app-related-articles h2 {
  margin: 0;
  color: var(--detail-foreground);
  font-size: 1.2rem;
}

.app-story-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  border-radius: 8px;
  background: hsl(222 26% 8% / 0.55);
  padding: 0.25rem;
}

.app-story-tabs span {
  display: inline-flex;
  min-height: 2.3rem;
  align-items: center;
  gap: 0.45rem;
  border-radius: 8px;
  color: var(--detail-muted);
  padding: 0 0.75rem;
  font-size: 0.86rem;
  font-weight: 800;
}

.app-story-tabs span[aria-current="true"] {
  background: hsl(222 22% 10%);
  color: var(--detail-foreground);
  box-shadow: inset 0 0 0 1px var(--detail-border);
}

.app-story-graph-list ol {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-story-graph-list li,
.app-empty-state {
  display: grid;
  gap: 0.35rem;
  border: 1px solid var(--detail-border);
  border-radius: 8px;
  background: hsl(222 26% 8% / 0.45);
  padding: 0.9rem;
}

.app-story-graph-list span,
.app-story-graph-list small {
  color: var(--detail-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.app-story-graph-list strong,
.app-empty-state strong {
  color: var(--detail-foreground);
}

.app-detail-shell .source-list li,
.app-detail-shell .discovery-topic-list li,
[data-app-detail-shell] .source-list li,
[data-app-detail-shell] .discovery-topic-list li {
  border: 1px solid var(--detail-border);
  border-radius: 8px;
  background: hsl(222 26% 8% / 0.45);
  padding: 0.85rem;
}

.app-detail-shell .source-list a,
.app-detail-shell .source-list .source-title,
.app-detail-shell .discovery-topic-list a,
[data-app-detail-shell] .source-list a,
[data-app-detail-shell] .source-list .source-title,
[data-app-detail-shell] .discovery-topic-list a {
  color: var(--detail-primary);
}

.app-topic-hero-card {
  gap: 0.58rem;
  padding: clamp(0.9rem, 1.35vw, 1.1rem);
}

[data-app-detail-shell="discovery"] .app-topic-hero-card h1 {
  max-width: 78rem;
  color: var(--detail-foreground);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.68rem, 2.22vw, 2.38rem);
  font-weight: 700;
  line-height: 1.03;
}

[data-app-detail-shell="discovery"] .discovery-topic-badges {
  gap: 0.36rem;
}

[data-app-detail-shell="discovery"] .topic-pill {
  min-height: 1.42rem;
  gap: 0.24rem;
  border-color: var(--detail-border);
  background: hsl(216 38% 13% / 0.42);
  color: var(--detail-foreground);
  padding: 0.14rem 0.48rem;
  font-size: 0.66rem;
  font-weight: 680;
}

[data-app-detail-shell="discovery"] .topic-pill svg,
[data-app-detail-shell="discovery"] .tag-cloud svg,
[data-app-detail-shell="discovery"] .app-topic-action-row svg,
.app-share-action svg {
  width: 0.76rem;
  height: 0.76rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

[data-app-detail-shell="discovery"] .topic-pill-secondary {
  background: hsl(41 65% 39% / 0.76);
  color: var(--detail-foreground);
}

.app-topic-hero-divider {
  height: 1px;
  background: var(--detail-border);
}

.app-topic-meta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
}

[data-app-detail-shell="discovery"] .app-topic-meta-row .tag-cloud {
  display: flex !important;
  flex-flow: row wrap !important;
  align-items: center;
  align-content: center;
  gap: 0.34rem;
  min-width: 0;
  width: auto;
  margin: 0;
}

[data-app-detail-shell="discovery"] .app-topic-meta-row .tag-cloud li {
  display: inline-flex;
  flex: 0 0 auto;
  width: auto;
  max-width: none;
}

[data-app-detail-shell="discovery"] .app-topic-meta-row .tag-cloud a {
  min-height: 1.34rem;
  gap: 0.24rem;
  border-color: var(--detail-border);
  background: hsl(216 38% 13% / 0.34);
  color: var(--detail-foreground);
  padding: 0.13rem 0.46rem;
  font-size: 0.66rem;
  font-weight: 660;
  white-space: nowrap;
  overflow-wrap: normal;
}

[data-app-detail-shell="discovery"] .discovery-topic-media {
  height: 10.9rem;
  margin-top: 0;
  border-color: var(--detail-border);
}

.app-topic-action-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  justify-content: flex-end;
  align-self: center;
}

[data-app-detail-shell="discovery"] .app-topic-action-row .app-secondary-action {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  min-height: 1.85rem;
  border-color: var(--detail-border);
  padding: 0 0.58rem;
  color: var(--detail-primary);
  font-size: 0.75rem;
  font-weight: 690;
  white-space: nowrap;
}

[data-app-detail-shell="discovery"] .app-opinion-action {
  border-color: hsl(263 48% 55% / 0.52);
  background: hsl(263 55% 34% / 0.28);
}

[data-app-detail-shell="discovery"] .app-share-action {
  border-color: hsl(39 38% 36% / 0.38);
  background: hsl(216 38% 13% / 0.16);
  color: var(--detail-primary);
  box-shadow: none;
}

@media (max-width: 760px) {
  [data-app-detail-shell="discovery"] .app-topic-meta-row {
    grid-template-columns: 1fr;
  }

  [data-app-detail-shell="discovery"] .app-topic-action-row {
    justify-content: flex-start;
  }
}

.app-topic-intelligence-card {
  display: grid;
  gap: 0.72rem;
  padding: 0.92rem;
}

.app-topic-card-heading {
  border-bottom: 1px solid var(--detail-border);
  padding-bottom: 0.62rem;
}

.app-topic-card-heading h2,
.app-story-panel-header h2 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.03rem;
  font-weight: 720;
}

.app-topic-card-heading svg,
.app-story-panel-header svg,
.app-branch-timeline-controls svg,
.app-topic-tab svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.app-topic-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  border: 1px solid var(--detail-border);
  border-radius: 8px;
  background: hsl(216 36% 15% / 0.58);
  padding: 0.18rem;
}

.app-topic-tab {
  display: inline-flex;
  min-height: 1.7rem;
  align-items: center;
  gap: 0.32rem;
  border-radius: 6px;
  color: var(--detail-muted);
  padding: 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 660;
}

.app-topic-tab[aria-selected="true"] {
  border: 1px solid var(--detail-border);
  background: hsl(216 42% 13% / 0.62);
  color: var(--detail-foreground);
}

.app-topic-intelligence-grid {
  display: grid;
  gap: 0.75rem;
}

.app-topic-history-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-topic-history-panel,
.app-topic-probability-panel {
  display: grid;
  gap: 0.42rem;
  border: 1px solid var(--detail-border);
  border-radius: 8px;
  background: hsl(222 26% 8% / 0.26);
  padding: 0.72rem;
}

.app-topic-history-panel > span,
.app-topic-probability-panel span {
  color: var(--detail-muted);
  font-size: 0.68rem;
  font-weight: 660;
}

.app-topic-history-panel p,
.app-topic-probability-panel p {
  font-size: 0.78rem;
  line-height: 1.42;
}

.app-topic-probability-panel > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 0.75rem;
  align-items: center;
}

.app-topic-probability-panel strong {
  color: var(--detail-foreground);
  font-size: 0.82rem;
}

.app-topic-probability-panel i {
  grid-column: 1 / -1;
  height: 0.35rem;
  overflow: hidden;
  border-radius: 999px;
  background: hsl(339 92% 65% / 0.75);
}

.app-topic-probability-panel b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: hsl(151 82% 58%);
}

.app-topic-timeline {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-topic-timeline li {
  display: grid;
  gap: 0.45rem;
  border: 1px solid var(--detail-border);
  border-radius: 8px;
  background: hsl(216 42% 13% / 0.48);
  padding: 0.9rem;
}

.app-topic-timeline span,
.app-topic-timeline small {
  color: var(--detail-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.app-topic-timeline strong {
  color: var(--detail-foreground);
}

.app-branch-timeline-panel {
  min-width: 0;
}

.app-branch-timeline-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.45rem;
  border: 1px solid var(--detail-border);
  border-radius: 8px;
  background: hsl(222 26% 8% / 0.38);
  padding: 0.5rem;
}

.app-branch-timeline-controls > span {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  gap: 0.4rem;
  color: var(--detail-foreground);
  font-size: 0.76rem;
  font-weight: 850;
}

.app-branch-timeline-controls label {
  display: grid;
  gap: 0.2rem;
  color: var(--detail-muted);
  font-size: 0.64rem;
  font-weight: 750;
  text-transform: uppercase;
}

.app-branch-timeline-controls select,
.app-branch-market-linked {
  min-height: 2rem;
  border: 1px solid var(--detail-border);
  border-radius: 6px;
  background: hsl(222 26% 8%);
  color: var(--detail-foreground);
  padding: 0 0.55rem;
  font-size: 0.76rem;
  font-weight: 650;
  text-transform: none;
}

.app-branch-market-linked {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
}

.app-branch-timeline-viewport {
  display: block;
  overflow-x: auto;
  border: 1px solid var(--detail-border);
  border-radius: 8px;
  background: hsl(222 26% 8% / 0.38);
  padding: 0.5rem;
}

.app-branch-timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-top: 1px solid var(--detail-border);
  padding-top: 0.35rem;
  color: var(--detail-muted);
  font-size: 0.68rem;
}

.app-branch-timeline-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.app-branch-timeline-legend i {
  display: inline-block;
  width: 1.4rem;
  border-top: 2px solid hsl(199 89% 48%);
}

.app-legend-trusted {
  border-color: hsl(151 82% 58%) !important;
}

.app-legend-market {
  border-color: hsl(263 74% 66%) !important;
}

.app-legend-discovery {
  border-color: hsl(190 92% 52%) !important;
  border-top-style: dashed !important;
}

.app-branch-timeline-canvas {
  display: block;
  border-radius: 8px;
}

.app-branch-timeline-cards {
  display: none;
}

.app-branch-card {
  display: grid;
  gap: 0.75rem;
  border: 1px solid var(--detail-border);
  border-radius: 8px;
  background: hsl(216 42% 13% / 0.48);
  padding: 0.85rem;
}

.app-branch-card-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.app-branch-card h3 {
  margin: 0;
  color: var(--detail-foreground);
  font-size: 0.95rem;
  line-height: 1.25;
}

.app-branch-card ol {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-branch-card li {
  display: grid;
  gap: 0.35rem;
  border: 1px solid var(--detail-border);
  border-radius: 8px;
  background: hsl(222 26% 8% / 0.48);
  padding: 0.75rem;
}

.app-branch-card a,
.app-branch-card strong {
  color: var(--detail-foreground);
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.app-branch-card a:hover,
.app-branch-card a:focus-visible {
  color: var(--detail-primary);
}

.app-branch-card li > span,
.app-branch-card small {
  color: var(--detail-muted);
  font-size: 0.75rem;
  font-weight: 750;
}

.app-branch-timeline-empty {
  display: grid;
  gap: 0.45rem;
  border: 1px dashed var(--detail-border);
  border-radius: 8px;
  background: hsl(222 26% 8% / 0.35);
  padding: 1rem;
}

.app-mini-market-rail {
  gap: 0.55rem;
}

.app-mini-market-rail li {
  gap: 0.5rem;
  padding: 0.7rem;
}

.app-mini-market-row-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
}

.app-mini-market-row-header a {
  font-size: 0.78rem;
  line-height: 1.25;
}

.app-mini-market-row-header strong {
  color: var(--detail-foreground);
  font-size: 0.8rem;
}

.app-mini-market-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  text-align: right;
}

.app-mini-market-options > span {
  min-width: 0;
}

.app-mini-market-options > span:last-child {
  text-align: left;
  color: hsl(339 92% 76%);
}

.app-mini-market-options b,
.app-mini-market-options small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-mini-market-options b {
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
}

.app-mini-market-options small {
  margin-top: 0.18rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-mini-market-options > span:first-child {
  color: hsl(151 82% 72%);
}

.app-mini-market-options i {
  display: block;
  width: 1px;
  height: 1.8rem;
  background: hsl(0 0% 100% / 0.1);
}

.app-mini-market-bar {
  display: flex;
  height: 0.25rem;
  overflow: hidden;
  border-radius: 999px;
  background: hsl(220 16% 22%);
}

.app-mini-market-bar span {
  background: hsl(151 82% 58%);
}

[data-app-detail-shell] .app-mini-market-rail .meta {
  justify-content: space-between;
  margin-top: 0;
  gap: 0.4rem;
  color: var(--detail-muted);
  font-size: 0.68rem;
}

.app-echo-article-card {
  gap: 0.65rem;
}

.app-echo-article-card .source-list-heading {
  align-items: center;
}

.app-echo-article-card p {
  font-size: 0.76rem;
  line-height: 1.45;
}

.app-echo-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.app-echo-badges span {
  display: inline-flex;
  min-height: 1.35rem;
  align-items: center;
  border: 1px solid var(--detail-border);
  border-radius: 999px;
  background: hsl(222 26% 8% / 0.55);
  color: var(--detail-muted);
  padding: 0.1rem 0.45rem;
  font-size: 0.62rem;
  font-weight: 750;
}

@media (max-width: 1100px) {
  .app-detail-layout {
    grid-template-columns: 1fr;
  }

  .app-detail-sidebar {
    position: static;
  }

  .home-hot-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .app-branch-timeline-viewport {
    display: none;
  }

  .app-branch-timeline-cards {
    display: grid;
    gap: 0.75rem;
  }
}

@media (max-width: 760px) {
  .home-feed-controls-row,
  .home-feed-toolbar,
  .app-instant-bet-panel {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .home-feed-toolbar {
    width: 100%;
  }

  .home-following-control,
  .home-feed-sort {
    justify-content: center;
  }

  .home-feed-sort-label {
    display: none;
  }

  .home-hot-topic-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes home-shimmer {
  from {
    background-position: -200% 0;
  }

  to {
    background-position: 200% 0;
  }
}

@media (max-width: 900px) {
  .content-detail-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "rail"
      "body"
      "tags";
  }

  .content-context-rail {
    position: static;
  }

  .content-context-market-list,
  .content-context-article-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .web-hero,
  .web-layout,
  .home-hero,
  .home-layout {
    grid-template-columns: 1fr;
  }

  .web-stat-panel,
  .home-stat-panel {
    border-top: 1px solid var(--web-panel-border);
    border-left: 0;
  }

  .home-stat-panel {
    border-top: 0;
  }

  .home-shell .web-nav,
  .web-shell .viberank-shell-nav,
  .home-sidebar,
  .home-feed-controls {
    position: static;
  }

  .home-shell .web-nav,
.web-shell .viberank-shell-nav {
    grid-template-columns: 1fr;
  }

  .home-icon-nav {
    justify-content: flex-start;
  }

  .home-layout {
    padding-bottom: 2rem;
  }

  .home-trending-grid {
    grid-template-columns: 1fr;
  }

  .home-hot-topic-band-header {
    flex-direction: column;
  }

  .home-hot-topic-band-icon {
    align-self: flex-end;
  }
}

@media (max-width: 640px) {
  .content-context-market-list,
  .content-context-article-list {
    grid-template-columns: 1fr;
  }

  .content-context-market-card {
    grid-template-columns: 4rem minmax(0, 1fr);
  }

  .web-nav,
  .home-nav {
    align-items: flex-start;
  }

  .web-nav-links,
  .home-nav-links {
    justify-content: flex-start;
  }

  .web-nav-links a,
  .home-nav-links a,
  .button-link {
    padding: 0.58rem 0.72rem;
  }

  .home-shell .web-nav,
.web-shell .viberank-shell-nav {
    padding: 0.8rem 1rem;
  }

  .home-shell .web-nav-links,
  .web-shell .viberank-shell-nav .web-nav-links {
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    gap: 0.35rem;
    -ms-overflow-style: none;
  }

  .home-shell .web-nav-links::-webkit-scrollbar,
  .web-shell .viberank-shell-nav .web-nav-links::-webkit-scrollbar {
    height: 0;
    display: none;
  }

  .home-shell .web-nav-links a,
  .web-shell .viberank-shell-nav .web-nav-links a,
  .home-shell .web-nav-links .home-aura-preview,
  .web-shell .viberank-shell-nav .web-nav-links .home-aura-preview {
    min-height: 2.1rem;
  }

.home-sign-in-link span {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
  }

  .home-nav-search {
    width: 100%;
  }

  .home-nav-search input {
    min-height: 2.1rem;
    padding: 0.45rem 0.75rem 0.45rem 2rem;
    font-size: 0.95rem;
  }

  .home-stat-panel,
  .home-stat-grid {
    display: none;
  }

  .home-main-column {
    gap: 0.75rem;
  }

  .home-main-column .home-hot-topic-band {
    order: 1;
  }

  .home-main-column .home-feed-controls {
    order: -1;
  }

  .home-main-column .home-featured-event {
    order: 0;
  }

  .home-main-column .home-trending-panel,
  .home-main-column .opportunity-feed {
    order: 2;
  }

  .home-feed-controls {
    padding: 0.35rem 0.45rem;
    gap: 0;
    border-color: transparent;
    background: transparent;
    backdrop-filter: none;
  }

  .home-mobile-feed-toolbar {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
  }

  .home-shell .web-nav-links .home-nav-icon,
  .web-shell .viberank-shell-nav .web-nav-links .home-nav-icon,
  .home-shell .web-nav-links .home-aura-preview,
  .web-shell .viberank-shell-nav .web-nav-links .home-aura-preview,
  .home-shell .web-nav-links .home-sign-in-link,
  .web-shell .viberank-shell-nav .web-nav-links .home-sign-in-link {
    display: none;
  }

  .home-feed-controls-row {
    display: none;
  }

  .home-hot-topic-band {
    padding: 0.9rem;
  }

  .home-featured-event {
    min-height: 0;
  }

  .home-featured-event-content {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 1rem;
  }

  .home-featured-event h2 {
    font-size: clamp(2.75rem, 17vw, 4rem);
  }

  .home-featured-event p {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .home-featured-event-side {
    gap: 0.65rem;
  }

  .home-featured-event-match {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 0.65rem;
  }

  .home-featured-event-match em {
    justify-content: flex-start;
  }

  .home-hot-topic-visual {
    height: 11rem;
    min-height: 11rem;
    max-height: 11rem;
  }

  .home-hot-topic-body {
    padding: 1rem;
  }

  .home-hot-topic-meta div {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0.15rem;
  }

  .home-hot-topic-meta dd {
    text-align: left;
  }

  .home-market-body {
    padding: 1rem;
  }

  .home-market-card .opportunity-card-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .home-market-card .category-pill {
    justify-self: start;
  }

  .home-card-footer {
    gap: 0.65rem;
  }

  .home-market-meta {
    justify-content: flex-start;
  }

  .home-card-actions {
    justify-content: flex-start;
  }

  .home-card-actions .share-actions {
    order: 0;
  }

  .home-card-actions .card-action:last-child {
    margin-left: 0;
  }

  .home-trending-header,
  .home-trending-item {
    grid-template-columns: 1fr;
  }

  .home-trending-item {
    grid-template-columns: 4rem minmax(0, 1fr);
  }

  .home-trending-thumbnail {
    width: 4rem;
    height: 4rem;
  }

  .home-trending-item strong {
    grid-column: 1 / -1;
    min-width: 0;
    text-align: left;
  }
}

@media (prefers-color-scheme: dark) {
  body {
    background: #101418;
    color: #f8fafc;
  }

  p,
  .meta,
  .source-list span {
    color: #bac5d3;
  }

  article,
  .empty,
  .leaderboard-list li,
  .badge-list li,
  .stat-grid div,
  .filters a,
  .pagination a,
  .pagination span {
    background: #171d24;
    border-color: #334155;
    color: #f8fafc;
  }

  .filters a[aria-current="page"] {
    border-color: hsl(190 92% 58%);
    background: #0b3d47;
    color: #ffffff;
  }

  .brand-lockup {
    color: #f8fafc;
  }

  .options li {
    background: #263241;
    color: #e5edf7;
  }

  .data-table th,
  .data-table td {
    border-color: #334155;
  }

  .handoff-link {
    background: #f8fafc;
    color: #111827;
  }
}

/*
 * The public discovery pages retain legacy panel styles for the non-app
 * experience. Keep those broad rules from inflating the React-parity detail
 * surface below; these measurements mirror the React Card/Tabs/Timeline
 * composition on the topic-detail route.
 */
[data-app-detail-shell="discovery"] .app-detail-page {
  width: min(calc(100% - 1.5rem), 80rem);
  gap: 0.75rem;
  padding: 0.75rem 0 2rem;
}

[data-app-detail-shell="discovery"] .public-page-panel {
  max-width: none;
  margin: 0;
  border-radius: 0.5rem;
  background: hsl(216 62% 9% / 0.85);
  box-shadow: var(--detail-shadow);
}

[data-app-detail-shell="discovery"] .app-topic-hero-card {
  gap: 0;
  padding: 1rem;
}

[data-app-detail-shell="discovery"] .app-topic-hero-card h1,
[data-app-detail-shell="discovery"] .app-topic-card-heading h2,
[data-app-detail-shell="discovery"] .app-story-panel-header h2 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-optical-sizing: auto;
  letter-spacing: 0;
}

[data-app-detail-shell="discovery"] .app-topic-intelligence-card {
  gap: 0;
  padding: 1rem;
}

[data-app-detail-shell="discovery"] .app-topic-card-heading {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
}

[data-app-detail-shell="discovery"] .app-topic-card-heading h2,
[data-app-detail-shell="discovery"] .app-story-panel-header h2 {
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.25;
}

[data-app-detail-shell="discovery"] .app-topic-intelligence-card > p {
  color: var(--detail-muted);
  font-size: 0.875rem;
  line-height: 1.625;
}

[data-app-detail-shell="discovery"] .app-topic-tabs {
  gap: 0;
  margin-top: 1rem;
  border: 0;
  border-radius: 0.375rem;
  background: hsl(216 38% 15%);
  padding: 0.25rem;
}

[data-app-detail-shell="discovery"] .app-topic-tab {
  min-height: 0;
  gap: 0.5rem;
  border: 0;
  border-radius: 0.1875rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
}

[data-app-detail-shell="discovery"] .app-topic-tab[aria-selected="true"] {
  border: 0;
  background: hsl(216 63% 7%);
  box-shadow: 0 1px 2px hsl(222 30% 3% / 0.32);
}

[data-app-detail-shell="discovery"] .app-topic-intelligence-grid {
  gap: 0.75rem;
  margin-top: 1rem;
}

[data-app-detail-shell="discovery"] .app-topic-history-list {
  gap: 0.75rem;
}

[data-app-detail-shell="discovery"] .app-topic-history-panel {
  gap: 0;
  border-radius: 0.375rem;
  background: hsl(215 63% 7% / 0.35);
  padding: 1rem;
}

[data-app-detail-shell="discovery"] .app-topic-history-panel > span {
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.25;
}

[data-app-detail-shell="discovery"] .app-topic-history-panel p {
  margin-top: 0.5rem;
  color: var(--detail-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.625;
}

[data-app-detail-shell="discovery"] .app-story-panel {
  gap: 0;
  padding: 1rem;
}

[data-app-detail-shell="discovery"] .app-story-panel-header {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
}

[data-app-detail-shell="discovery"] .app-story-panel-header p {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

[data-app-detail-shell="discovery"] .app-branch-timeline-controls {
  gap: 0.5rem;
  border-radius: 0.375rem;
  background: hsl(215 63% 7% / 0.45);
  padding: 0.5rem;
}

[data-app-detail-shell="discovery"] .app-branch-timeline-controls > span {
  min-height: 2rem;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
}

[data-app-detail-shell="discovery"] .app-branch-timeline-controls label {
  gap: 0.25rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0;
}

[data-app-detail-shell="discovery"] .app-branch-timeline-controls select,
[data-app-detail-shell="discovery"] .app-branch-market-linked {
  min-height: 2rem;
  border-radius: 0.375rem;
  background: hsl(215 63% 7%);
  padding: 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 400;
}

[data-app-detail-shell="discovery"] .app-branch-timeline-viewport {
  margin-top: 0.75rem;
  border-radius: 0.375rem;
  background: hsl(215 63% 7% / 0.38);
  padding: 0.5rem;
}

[data-app-detail-shell="discovery"] .app-branch-timeline-legend {
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.375rem;
  font-size: 0.68rem;
}
