:root {
  --color-background: #f6f8fa;
  --color-surface: #ffffff;
  --color-surface-soft: #eef3f6;
  --color-surface-tint: #fafcfd;
  --color-ink: #152033;
  --color-muted: #647287;
  --color-line: #d9e0e7;
  --color-teal: #0f8b8d;
  --color-teal-dark: #0a686a;
  --color-coral: #f06435;
  --color-blue: #3b74c5;
  --color-green: #23845d;
  --color-amber: #b97813;
  --color-danger: #b13a2d;
  --font-sans: Inter, "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-pill: 999px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 20px;
  --space-xl: 32px;
  --shadow-card: 0 14px 34px rgba(21, 32, 51, 0.08);
  --shadow-hover: 0 18px 42px rgba(21, 32, 51, 0.12);
  --bg: var(--color-background);
  --surface: var(--color-surface);
  --surface-soft: var(--color-surface-soft);
  --surface-tint: var(--color-surface-tint);
  --ink: var(--color-ink);
  --muted: var(--color-muted);
  --line: var(--color-line);
  --teal: var(--color-teal);
  --teal-dark: var(--color-teal-dark);
  --coral: var(--color-coral);
  --blue: var(--color-blue);
  --green: var(--color-green);
  --amber: var(--color-amber);
  --shadow: var(--shadow-card);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  background: linear-gradient(180deg, #fbfcfd 0, var(--bg) 360px, var(--bg) 100%);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease,
    transform 140ms ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(15, 139, 141, 0.28);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(260px, 460px) auto;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  min-height: 72px;
  padding: 10px clamp(16px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 248, 250, 0.96);
  backdrop-filter: blur(12px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-image {
  display: block;
  width: clamp(220px, 22vw, 284px);
  height: auto;
}

.header-search {
  width: 100%;
  min-width: 0;
  box-shadow: 0 10px 24px rgba(21, 32, 51, 0.06);
}

.header-search input {
  width: 100%;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-nav a,
.text-action {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px var(--space-md);
  border-radius: var(--radius-md);
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
}

.top-nav a:hover,
.text-action:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.top-nav a:active,
.text-action:active,
.segment:active {
  transform: translateY(1px);
}

.top-nav .internal-link {
  color: var(--teal-dark);
}

.top-nav .back-link {
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.section-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(560px, 1.15fr);
  gap: 24px;
  align-items: stretch;
  padding: 32px 0 24px;
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: var(--space-md);
  min-height: 248px;
}

.eyebrow {
  margin: 0;
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(2rem, 2.5vw, 2.75rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.16;
  text-wrap: balance;
}

h3 {
  font-size: 1rem;
}

.muted,
.panel-note {
  color: var(--muted);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.metric-card,
.panel,
.app-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric-card {
  display: grid;
  align-content: space-between;
  position: relative;
  min-height: 120px;
  padding: 18px;
  overflow: hidden;
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--teal);
}

.metric-card span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.metric-card strong {
  margin-top: 10px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1;
}

.metric-card small {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.4;
}

.panel {
  padding: var(--space-lg);
}

.chart-panel {
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
}

.market-overview-panel {
  margin: 28px auto 24px;
  padding: 0;
  overflow: hidden;
}

.market-context-panel {
  margin: 0 auto 64px;
  padding: 0;
  overflow: hidden;
}

.blog-strip {
  margin: 28px auto 0;
  padding: 0;
  overflow: hidden;
}

.blog-strip-heading,
.blog-page-heading {
  padding: 18px var(--space-lg) 0;
}

.blog-strip-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.blog-page-heading {
  display: grid;
  gap: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.blog-title-lockup {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  max-width: none;
}

.blog-title-icon-link {
  display: block;
  width: 104px;
  height: 104px;
  border-radius: var(--radius-md);
}

.blog-title-icon {
  width: 104px;
  height: 104px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  object-fit: cover;
}

.blog-title-icon-link:hover .blog-title-icon {
  border-color: rgba(15, 139, 141, 0.5);
}

.blog-page-heading h1 {
  max-width: none;
  font-size: clamp(1.3rem, 2.15vw, 2rem);
  line-height: 1.08;
}

.blog-title-main {
  display: block;
}

.blog-page-heading h1 a {
  color: var(--ink);
  text-decoration-color: rgba(15, 139, 141, 0.48);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

.blog-page-heading h1 a:hover {
  color: var(--teal-dark);
}

.blog-title-line {
  color: var(--ink);
}

.blog-published {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.25;
}

.blog-headline-list {
  display: grid;
}

.blog-headline-row {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px var(--space-lg);
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.blog-headline-row::before,
.blog-index-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
}

.blog-headline-row.rank-tier-rainbow::before,
.blog-index-card.rank-tier-rainbow::before {
  background: linear-gradient(110deg, #ff335f, #ff8a00, #ffd400, #25d366, #00c2ff, #7c3aed, #ff335f);
  background-size: 300% 100%;
  animation: rank-rainbow-flow 3.2s linear infinite;
}

.blog-headline-row.rank-tier-gold::before,
.blog-index-card.rank-tier-gold::before {
  background: linear-gradient(90deg, #9f690d, #f6b62e 44%, #ffe38a);
}

.blog-headline-row.rank-tier-silver::before,
.blog-index-card.rank-tier-silver::before {
  background: linear-gradient(90deg, #475569, #94a3b8 48%, #e2e8f0);
}

.blog-headline-row.rank-tier-bronze::before,
.blog-index-card.rank-tier-bronze::before {
  background: linear-gradient(90deg, #7c2d12, #b45309 48%, #fdba74);
}

.blog-headline-icon {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  object-fit: cover;
}

.blog-strip-heading + .blog-headline-list .blog-headline-row,
.blog-page-list .blog-headline-row:first-child {
  border-top: 0;
}

.blog-headline-row:hover {
  background: var(--surface-tint);
}

.blog-headline-row span {
  min-width: 0;
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
  font-weight: 900;
  line-height: 1.18;
}

.blog-headline-row time {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  white-space: nowrap;
}

.blog-page {
  margin: 28px auto 44px;
  padding: 0;
  overflow: hidden;
}

.blog-page-list {
  border-bottom: 1px solid var(--line);
}

.blog-index-heading {
  gap: 10px;
}

.blog-index-heading h1 {
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}

.blog-index-heading p {
  max-width: 780px;
}

.blog-index-list {
  display: grid;
  gap: 12px;
  padding: 20px var(--space-lg) 34px;
}

.blog-index-card {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: var(--space-lg);
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.blog-index-card:hover {
  border-color: rgba(15, 139, 141, 0.44);
  background: var(--surface-tint);
}

.blog-index-icon {
  width: 112px;
  height: 112px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  object-fit: cover;
}

.blog-index-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.blog-index-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-index-copy h2 {
  max-width: 840px;
  font-size: clamp(1.2rem, 2.3vw, 1.72rem);
  line-height: 1.1;
}

.blog-index-copy p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  line-height: 1.52;
}

.blog-rank-strip {
  display: grid;
  gap: 10px;
  background:
    linear-gradient(90deg, rgba(56, 189, 248, 0.08), rgba(251, 191, 36, 0.09), rgba(251, 113, 133, 0.08)),
    var(--surface);
}

.blog-rank-context {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.blog-rank-badges {
  align-items: center;
}

.blog-rank-badges .badge {
  width: fit-content;
}

.blog-article,
.blog-case-study {
  display: grid;
  gap: 20px;
  padding: 20px var(--space-lg) 34px;
}

.blog-case-study {
  max-width: 1000px;
  scroll-margin-top: 112px;
}

.blog-case-study > .blog-section {
  padding-top: 26px;
}

.blog-article-header {
  display: grid;
  gap: 8px;
}

.blog-article h2 {
  max-width: 820px;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.05;
}

.blog-date {
  color: var(--muted);
  font-weight: 900;
}

.blog-article-body {
  display: grid;
  gap: 16px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
}

.blog-article-body h3 {
  margin-top: 8px;
  font-size: 1.04rem;
}

.blog-article-body a {
  color: var(--teal-dark);
  font-weight: 900;
}

.blog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 24px;
  align-items: stretch;
  padding: 6px 0 14px;
}

.blog-hero-copy {
  display: grid;
  gap: 12px;
  align-content: start;
}

.blog-hero-copy h2 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.02;
}

.blog-hero-copy p:last-of-type {
  max-width: 760px;
  font-size: 1.06rem;
  line-height: 1.55;
}

.blog-hero-stat {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.blog-hero-stat span,
.blog-hero-stat small {
  color: var(--muted);
  font-weight: 900;
}

.blog-hero-stat span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-hero-stat strong {
  color: var(--ink);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
}

.blog-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.blog-primary-action,
.blog-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-weight: 900;
  text-decoration: none;
}

.blog-primary-action {
  background: var(--teal);
  color: var(--surface);
}

.blog-secondary-action {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--ink);
}

.blog-section {
  display: grid;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 112px;
}

.blog-section-tight {
  padding-top: 0 !important;
  border-top: 0;
}

.blog-snapshot-section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-tint);
}

.blog-snapshot-hero {
  gap: 14px;
  padding: 18px;
}

.blog-navigation-panel {
  display: grid;
  gap: 14px;
  align-items: stretch;
  justify-content: stretch;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-tint);
}

.blog-navigation-panel .blog-quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  width: 100%;
  padding-top: 0;
}

.blog-navigation-panel .blog-snapshot-actions {
  width: 100%;
}

.blog-case-study > .blog-navigation-panel {
  width: 100%;
}

.blog-navigation-panel .blog-quick-links a {
  justify-content: center;
  min-height: 54px;
  padding: 10px 12px;
  text-align: center;
}

.blog-navigation-panel .blog-quick-links .blog-primary-action {
  border-color: rgba(37, 99, 235, 0.58);
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}

.blog-navigation-panel .blog-quick-links .blog-primary-action:hover {
  border-color: rgba(37, 99, 235, 0.68);
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
}

@media (min-width: 1080px) {
  .blog-case-study > .blog-navigation-panel {
    width: min(calc(100vw - 72px), 1200px);
    max-width: none;
  }
}

.blog-section-heading {
  display: grid;
  gap: 8px;
  max-width: 820px;
}

.blog-section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-weight: 650;
  line-height: 1.5;
}

.blog-fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 2px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.blog-fact-grid div {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px;
  border-right: 1px solid var(--line);
}

.blog-fact-grid div:last-child {
  border-right: 0;
}

.blog-fact-grid span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-fact-grid strong {
  font-size: 1rem;
  line-height: 1.2;
}

.blog-fact-grid a {
  color: var(--teal-dark);
}

.blog-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--surface);
}

.blog-meta-grid div {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px;
  border-right: 1px solid var(--line);
}

.blog-meta-grid div:last-child {
  border-right: 0;
}

.blog-meta-grid span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-meta-grid strong {
  font-size: 1.05rem;
  line-height: 1.2;
}

.blog-snapshot-metrics {
  margin-top: 0;
}

.blog-snapshot-metrics strong {
  font-size: 1.12rem;
}

.blog-snapshot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.blog-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 2px;
}

.blog-quick-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
}

.blog-quick-links a:hover {
  border-color: rgba(15, 139, 141, 0.38);
  background: var(--surface-soft);
  color: var(--teal-dark);
}

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

.blog-screenshot-card {
  display: grid;
  gap: 0;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.blog-screenshot-card-wide {
  grid-column: 1 / -1;
}

.blog-screenshot-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface-soft);
}

.blog-screenshot-card figcaption {
  display: grid;
  gap: 4px;
  padding: 12px 14px 14px;
}

.blog-screenshot-card figcaption strong {
  font-size: 0.96rem;
  line-height: 1.2;
}

.blog-screenshot-card figcaption span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.4;
}

.blog-loop-layout {
  display: grid;
  grid-template-columns: minmax(190px, 280px) minmax(0, 1fr);
  gap: 18px;
}

.blog-loop-menu {
  display: grid;
  gap: 8px;
}

.blog-loop-button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--muted);
  text-align: left;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.blog-loop-button span {
  font-size: 1.5rem;
}

.blog-loop-button.active,
.blog-loop-button:hover {
  border-color: rgba(15, 139, 141, 0.42);
  background: var(--surface-soft);
  color: var(--ink);
}

.blog-loop-detail {
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 280px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-tint);
}

.blog-loop-icon {
  font-size: 3rem;
}

.blog-loop-detail strong {
  font-size: 1.55rem;
  line-height: 1.1;
}

.blog-loop-detail p {
  color: var(--muted);
  font-weight: 650;
  line-height: 1.5;
}

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

.blog-synthesis-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-top-width: 4px;
  border-radius: var(--radius-md);
  background: var(--surface);
}

.blog-synthesis-card.tsunami {
  border-top-color: var(--blue);
}

.blog-synthesis-card.brainrot {
  border-top-color: var(--coral);
}

.blog-synthesis-card span {
  font-size: 2.2rem;
}

.blog-synthesis-card p {
  color: var(--muted);
  font-weight: 650;
  line-height: 1.5;
}

.blog-timeline-section {
  margin-left: calc(var(--space-lg) * -1);
  margin-right: calc(var(--space-lg) * -1);
  padding: 24px var(--space-lg);
  border-top: 0;
  background: var(--surface-soft);
}

.blog-chart-panel {
  display: grid;
  gap: 14px;
}

.blog-chart-frame {
  height: 420px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.blog-chart-frame canvas {
  display: block;
  width: 100%;
  height: 100%;
}

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

.blog-event-button {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.blog-event-button span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-event-button strong {
  font-size: 0.98rem;
}

.blog-event-button.active,
.blog-event-button:hover {
  border-color: rgba(15, 139, 141, 0.42);
  background: var(--surface-tint);
}

.blog-event-description {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.blog-event-description p {
  color: var(--muted);
  font-weight: 650;
  line-height: 1.45;
}

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

.blog-video-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}

.blog-video-card:hover {
  border-color: rgba(15, 139, 141, 0.42);
  background: var(--surface-tint);
}

.blog-video-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface-soft);
}

.blog-video-kicker {
  width: fit-content;
  margin: 2px 12px 0;
  padding: 4px 7px;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--teal-dark);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
}

.blog-video-card strong {
  padding: 0 12px;
  font-size: 0.98rem;
  line-height: 1.18;
}

.blog-video-card small {
  align-self: end;
  padding: 0 12px 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.3;
}

.blog-ad-card {
  cursor: default;
}

.blog-ad-card img {
  aspect-ratio: 1936 / 1434;
  object-fit: contain;
  background: #111318;
}

.blog-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.blog-source-list {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  margin: 0;
}

.market-overview-heading {
  padding: 22px var(--space-lg) 20px;
  margin-bottom: 0;
  background: var(--surface-tint);
}

.market-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-top: 1px solid var(--line);
}

.market-context-grid {
  border-top: 0;
}

.market-context-grid > .market-block {
  border-top: 0;
}

.market-block {
  display: grid;
  grid-template-rows: auto 260px;
  min-width: 0;
  padding: var(--space-lg);
  border-top: 1px solid var(--line);
}

.momentum-block {
  grid-column: 1 / -1;
  grid-template-rows: auto auto;
  border-top: 0;
}

.market-block-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.momentum-view-controls {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: var(--space-md);
  flex-wrap: wrap;
  text-align: right;
}

.momentum-window-toggle {
  flex: 0 0 auto;
}

.momentum-window-toggle .segment {
  min-width: 72px;
}

.market-block h3 {
  font-size: 1rem;
  line-height: 1.25;
}

.market-block h4 {
  font-size: 0.96rem;
  line-height: 1.25;
}

.market-overview-heading h1 {
  max-width: 780px;
  font-size: clamp(1.45rem, 2.3vw, 2.1rem);
  line-height: 1.08;
}

.momentum-block {
  background: linear-gradient(180deg, rgba(240, 100, 53, 0.075), rgba(255, 255, 255, 0) 56%);
}

.momentum-block .eyebrow {
  color: var(--coral);
}

.market-mix-block {
  border-right: 1px solid var(--line);
}

.momentum-lanes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.momentum-lane {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  padding: 14px;
  border: 1px solid rgba(217, 224, 231, 0.82);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.momentum-lane-heading {
  display: grid;
  gap: 4px;
  margin-bottom: var(--space-md);
}

.panel-heading,
.section-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.panel-heading {
  margin-bottom: 16px;
}

.section-title-copy {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-md);
  flex-wrap: wrap;
  max-width: 620px;
}

.section-title-copy .muted {
  max-width: 440px;
}

.panel-note {
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.35;
}

.chart-canvas {
  width: 100%;
  height: 260px;
  display: block;
  border-radius: var(--radius-sm);
}

.chart-tooltip {
  position: fixed;
  z-index: 40;
  display: grid;
  gap: 5px;
  max-width: 260px;
  padding: 10px var(--space-md);
  border: 1px solid rgba(21, 32, 51, 0.18);
  border-radius: var(--radius-md);
  color: white;
  background: rgba(21, 32, 51, 0.94);
  box-shadow: 0 14px 30px rgba(21, 32, 51, 0.24);
  pointer-events: none;
}

.chart-tooltip[hidden] {
  display: none;
}

.chart-tooltip strong {
  font-size: 0.86rem;
}

.chart-tooltip span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8rem;
  line-height: 1.3;
}

.overlap-bars,
.movers-list {
  display: grid;
  gap: var(--space-md);
  align-content: start;
  min-height: 0;
  max-height: clamp(470px, 36vw, 660px);
  overflow: auto;
  padding-right: 4px;
  scrollbar-color: rgba(122, 215, 255, 0.7) rgba(15, 23, 42, 0.22);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.movers-list::-webkit-scrollbar {
  width: 10px;
}

.movers-list::-webkit-scrollbar-track {
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.22);
}

.movers-list::-webkit-scrollbar-thumb {
  border: 2px solid rgba(15, 23, 42, 0.22);
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #7ad7ff, #2f6df6);
}

.overlap-row {
  display: grid;
  gap: 7px;
}

.overlap-row-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.overlap-track {
  height: 12px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
}

.overlap-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.overlap-fill.coral {
  background: var(--coral);
}

.mover-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(217, 224, 231, 0.72);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
}

.mover-item:last-child {
  border-bottom: 1px solid rgba(217, 224, 231, 0.72);
}

.mover-item.rank-tier-rainbow {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
  background:
    linear-gradient(rgba(8, 17, 31, 0.3), rgba(8, 17, 31, 0.3)),
    linear-gradient(110deg, #ff335f, #ff8a00, #ffd400, #25d366, #00c2ff, #7c3aed, #ff335f);
  background-size: 300% 100%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset, 0 10px 26px rgba(56, 189, 248, 0.18);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.36);
  animation: rank-rainbow-flow 3.2s linear infinite;
}

.mover-item.rank-tier-gold {
  color: #241404;
  border-color: rgba(251, 191, 36, 0.72);
  background: linear-gradient(135deg, #9f690d, #f6b62e 44%, #ffe38a);
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.24);
  text-shadow: none;
}

.mover-item.rank-tier-silver {
  color: #f8fafc;
  border-color: rgba(203, 213, 225, 0.52);
  background:
    linear-gradient(rgba(8, 17, 31, 0.42), rgba(8, 17, 31, 0.42)),
    linear-gradient(135deg, #475569, #94a3b8 48%, #e2e8f0);
  box-shadow: 0 8px 18px rgba(148, 163, 184, 0.14);
}

.mover-item.rank-tier-bronze {
  color: #fff1e7;
  border-color: rgba(180, 83, 9, 0.56);
  background:
    linear-gradient(rgba(8, 17, 31, 0.44), rgba(8, 17, 31, 0.44)),
    linear-gradient(135deg, #7c2d12, #b45309 48%, #fdba74);
  box-shadow: 0 8px 18px rgba(180, 83, 9, 0.14);
}

.mover-item > div:first-child {
  min-width: 0;
}

.mover-item a {
  display: block;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
  font-weight: 900;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mover-item span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 3px;
}

.mover-item.rank-tier-rainbow span,
.mover-item.rank-tier-silver span,
.mover-item.rank-tier-bronze span {
  color: rgba(255, 255, 255, 0.86);
}

.mover-item.rank-tier-gold span {
  color: rgba(58, 35, 7, 0.86);
}

.movement-pill {
  padding: 7px 9px;
  border-radius: var(--radius-md);
  background: rgba(35, 132, 93, 0.12);
  color: var(--green);
  font-weight: 900;
  text-align: center;
  min-width: 64px;
  white-space: nowrap;
}

.movement-pill.down {
  background: rgba(240, 100, 53, 0.12);
  color: var(--coral);
}

.mover-item.rank-tier-rainbow .movement-pill,
.mover-item.rank-tier-silver .movement-pill,
.mover-item.rank-tier-bronze .movement-pill {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 17, 31, 0.34);
}

.mover-item.rank-tier-gold .movement-pill {
  color: #14532d;
  border: 1px solid rgba(120, 76, 6, 0.18);
  background: rgba(255, 255, 255, 0.52);
  text-shadow: none;
}

.leaderboard-panel {
  margin-top: 34px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.leaderboard-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 0.74fr);
  align-items: start;
  gap: 12px 22px;
  margin-bottom: 16px;
}

.leaderboard-title-block {
  display: grid;
  gap: 2px;
}

.chart-definition {
  grid-column: 1 / -1;
  max-width: none;
  margin-top: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.42;
}

.chart-definition-label {
  color: var(--ink);
  font-weight: 900;
}

.chart-definition-first {
  font-size: inherit;
}

.chart-definition-detail {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.35;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-self: center;
}

.search-combobox {
  position: relative;
  width: 100%;
  min-width: 0;
}

.toolbar-actions .search-combobox {
  flex: 1 1 260px;
  min-width: 240px;
  width: auto;
}

.search-combobox .search-box {
  width: 100%;
}

.search-suggestions {
  position: absolute;
  z-index: 35;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: grid;
  gap: 4px;
  max-height: min(360px, calc(100vh - 130px));
  overflow: auto;
  padding: 6px;
  border: 1px solid rgba(21, 32, 51, 0.12);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 18px 36px rgba(21, 32, 51, 0.18);
}

.search-suggestions[hidden] {
  display: none;
}

.search-suggestion {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
}

.search-suggestion:hover,
.search-suggestion.active {
  background: var(--surface-soft);
}

.search-suggestion-icon {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(21, 32, 51, 0.08);
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--surface-soft);
}

.search-suggestion-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.search-suggestion-text strong,
.search-suggestion-text span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggestion-text strong {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
}

.search-suggestion-text span,
.search-suggestion-stat,
.search-suggestion-empty {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.search-suggestion-stat {
  justify-self: end;
  padding: 5px 7px;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  white-space: nowrap;
}

.search-suggestion-empty {
  padding: 10px;
}

.segmented-control {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.segment {
  min-height: 36px;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 8px var(--space-md);
  color: var(--muted);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.segment.active {
  color: white;
  background: var(--teal-dark);
  box-shadow: 0 8px 18px rgba(10, 104, 106, 0.2);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 var(--space-md);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.select-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 var(--space-md);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.search-box span,
.select-box span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.search-box input {
  width: min(260px, 40vw);
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.select-box select {
  min-width: min(260px, 44vw);
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 900;
}

.table-shell {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 14px var(--space-md);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: rgba(238, 243, 246, 0.58);
}

.experience-cell {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: var(--space-md);
  align-items: center;
  min-width: 260px;
}

.app-icon {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(21, 32, 51, 0.08);
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--surface-soft);
}

.app-title {
  display: inline-block;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.app-title:hover {
  color: var(--teal-dark);
}

.app-meta {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
}

.apps-section {
  padding: 26px 0 56px;
}

.apps-directory {
  margin-top: 28px;
}

.apps-directory-grid {
  padding-top: 18px;
}

.snapshot-summary {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 20px;
  align-items: stretch;
  padding: 4px 0 64px;
}

.snapshot-copy {
  display: grid;
  align-content: center;
  gap: var(--space-md);
  min-height: 190px;
  padding: var(--space-lg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.snapshot-copy h2 {
  max-width: 680px;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.08;
}

.app-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.app-card {
  display: grid;
  position: relative;
  gap: 14px;
  overflow: hidden;
  padding: 16px;
  text-decoration: none;
}

.app-card > * {
  position: relative;
  z-index: 1;
}

.app-card:hover {
  border-color: rgba(15, 139, 141, 0.38);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.app-card-top {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: var(--space-md);
  align-items: center;
}

.app-card .app-icon {
  width: 52px;
  height: 52px;
}

.app-card h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-card.rank-tier-rainbow {
  border-color: rgba(255, 255, 255, 0.38);
  background:
    linear-gradient(180deg, rgba(56, 189, 248, 0.12), rgba(255, 255, 255, 0) 44%),
    var(--surface);
  box-shadow: var(--shadow), 0 10px 26px rgba(56, 189, 248, 0.14);
}

.app-card.rank-tier-gold {
  border-color: rgba(251, 191, 36, 0.52);
  background:
    linear-gradient(180deg, rgba(251, 191, 36, 0.18), rgba(255, 255, 255, 0) 46%),
    var(--surface);
  box-shadow: var(--shadow), 0 10px 24px rgba(245, 158, 11, 0.14);
}

.app-card.rank-tier-silver {
  border-color: rgba(148, 163, 184, 0.52);
  background:
    linear-gradient(180deg, rgba(148, 163, 184, 0.16), rgba(255, 255, 255, 0) 46%),
    var(--surface);
  box-shadow: var(--shadow), 0 10px 22px rgba(100, 116, 139, 0.1);
}

.app-card.rank-tier-bronze {
  border-color: rgba(180, 83, 9, 0.46);
  background:
    linear-gradient(180deg, rgba(251, 146, 60, 0.15), rgba(255, 255, 255, 0) 46%),
    var(--surface);
  box-shadow: var(--shadow), 0 10px 22px rgba(180, 83, 9, 0.1);
}

.app-card.rank-tier-rainbow::before,
.app-card.rank-tier-gold::before,
.app-card.rank-tier-silver::before,
.app-card.rank-tier-bronze::before,
.experience-profile.rank-tier-rainbow::before,
.experience-profile.rank-tier-gold::before,
.experience-profile.rank-tier-silver::before,
.experience-profile.rank-tier-bronze::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  z-index: 0;
}

.experience-profile.rank-tier-rainbow::before,
.experience-profile.rank-tier-gold::before,
.experience-profile.rank-tier-silver::before,
.experience-profile.rank-tier-bronze::before {
  height: 6px;
}

.app-card.rank-tier-rainbow::before,
.experience-profile.rank-tier-rainbow::before {
  background: linear-gradient(110deg, #ff335f, #ff8a00, #ffd400, #25d366, #00c2ff, #7c3aed, #ff335f);
  background-size: 300% 100%;
  animation: rank-rainbow-flow 3.2s linear infinite;
}

.app-card.rank-tier-gold::before,
.experience-profile.rank-tier-gold::before {
  background: linear-gradient(90deg, #9f690d, #f6b62e 44%, #ffe38a);
}

.app-card.rank-tier-silver::before,
.experience-profile.rank-tier-silver::before {
  background: linear-gradient(90deg, #475569, #94a3b8 48%, #e2e8f0);
}

.app-card.rank-tier-bronze::before,
.experience-profile.rank-tier-bronze::before {
  background: linear-gradient(90deg, #7c2d12, #b45309 48%, #fdba74);
}

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

.card-stats span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.card-stats strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.experience-hero {
  padding: 32px 0 20px;
}

.seo-summary {
  display: grid;
  gap: var(--space-md);
  margin-bottom: 16px;
}

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

.seo-fact-grid div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.seo-fact-grid dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.seo-fact-grid dd {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.experience-profile {
  display: grid;
  position: relative;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: var(--space-lg);
  align-items: center;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.experience-profile > * {
  position: relative;
  z-index: 1;
}

.experience-profile.rank-tier-rainbow {
  border-color: rgba(255, 255, 255, 0.38);
  background:
    linear-gradient(180deg, rgba(56, 189, 248, 0.12), rgba(255, 255, 255, 0) 44%),
    var(--surface);
  box-shadow: var(--shadow), 0 10px 26px rgba(56, 189, 248, 0.14);
}

.experience-profile.rank-tier-gold {
  border-color: rgba(251, 191, 36, 0.52);
  background:
    linear-gradient(180deg, rgba(251, 191, 36, 0.18), rgba(255, 255, 255, 0) 46%),
    var(--surface);
  box-shadow: var(--shadow), 0 10px 24px rgba(245, 158, 11, 0.14);
}

.experience-profile.rank-tier-silver {
  border-color: rgba(148, 163, 184, 0.52);
  background:
    linear-gradient(180deg, rgba(148, 163, 184, 0.16), rgba(255, 255, 255, 0) 46%),
    var(--surface);
  box-shadow: var(--shadow), 0 10px 22px rgba(100, 116, 139, 0.1);
}

.experience-profile.rank-tier-bronze {
  border-color: rgba(180, 83, 9, 0.46);
  background:
    linear-gradient(180deg, rgba(251, 146, 60, 0.15), rgba(255, 255, 255, 0) 46%),
    var(--surface);
  box-shadow: var(--shadow), 0 10px 22px rgba(180, 83, 9, 0.1);
}

.experience-profile .app-icon {
  width: 112px;
  height: 112px;
}

.experience-sticky-bar {
  position: fixed;
  top: 84px;
  left: 50%;
  z-index: 9;
  display: flex;
  width: min(1240px, calc(100% - 32px));
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(21, 32, 51, 0.1);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.experience-sticky-bar.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.sticky-app-identity {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.sticky-app-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  object-fit: cover;
}

.sticky-app-identity span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.sticky-app-identity strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sticky-app-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.sticky-roblox-button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.experience-title-block {
  display: grid;
  gap: var(--space-sm);
  min-width: 0;
}

.experience-title-block h1 {
  max-width: 1050px;
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  line-height: 1.04;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.badge-row {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.experience-title-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: 2px;
}

.roblox-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  width: fit-content;
  padding: 10px 14px;
  border: 1px solid rgba(15, 139, 141, 0.22);
  border-radius: var(--radius-md);
  color: white;
  background: var(--teal);
  box-shadow: 0 12px 24px rgba(15, 139, 141, 0.2);
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: none;
}

.roblox-button:hover {
  background: var(--teal-dark);
  box-shadow: 0 14px 28px rgba(10, 104, 106, 0.24);
  transform: translateY(-1px);
}

.badge {
  position: relative;
  overflow: hidden;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.badge.rank-tier-rainbow {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
  background:
    linear-gradient(rgba(8, 17, 31, 0.3), rgba(8, 17, 31, 0.3)),
    linear-gradient(110deg, #ff335f, #ff8a00, #ffd400, #25d366, #00c2ff, #7c3aed, #ff335f);
  background-size: 100% 100%, 300% 100%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset, 0 10px 26px rgba(56, 189, 248, 0.18);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.36);
  animation: rank-rainbow-flow 3.2s linear infinite;
}

.badge.rank-tier-gold {
  color: #241404;
  border-color: rgba(251, 191, 36, 0.72);
  background: linear-gradient(135deg, #9f690d, #f6b62e 44%, #ffe38a);
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.24);
  text-shadow: none;
}

.badge.rank-tier-silver {
  color: #f8fafc;
  border-color: rgba(203, 213, 225, 0.52);
  background:
    linear-gradient(rgba(8, 17, 31, 0.42), rgba(8, 17, 31, 0.42)),
    linear-gradient(135deg, #475569, #94a3b8 48%, #e2e8f0);
  box-shadow: 0 8px 18px rgba(148, 163, 184, 0.14);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.34);
}

.badge.rank-tier-bronze {
  color: #fff1e7;
  border-color: rgba(180, 83, 9, 0.56);
  background:
    linear-gradient(rgba(8, 17, 31, 0.44), rgba(8, 17, 31, 0.44)),
    linear-gradient(135deg, #7c2d12, #b45309 48%, #fdba74);
  box-shadow: 0 8px 18px rgba(180, 83, 9, 0.14);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.34);
}

@keyframes rank-rainbow-flow {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 300% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .badge.rank-tier-rainbow,
  .mover-item.rank-tier-rainbow,
  .app-card.rank-tier-rainbow::before,
  .experience-profile.rank-tier-rainbow::before,
  .blog-headline-row.rank-tier-rainbow::before,
  .blog-index-card.rank-tier-rainbow::before {
    animation: none;
  }
}

.profile-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.profile-stat {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(21, 32, 51, 0.04);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.profile-stat span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.profile-stat strong {
  font-size: 1.08rem;
  overflow-wrap: anywhere;
}

.profile-snapshot-stat {
  background: rgba(15, 139, 141, 0.09);
}

.profile-snapshot-stat strong {
  font-size: 0.98rem;
  line-height: 1.35;
}

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

.wide-panel,
.observations-panel {
  grid-column: 1 / -1;
}

.observations-panel {
  margin-bottom: 56px;
}

.loading-block,
.empty-state {
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--muted);
}

.empty-state a {
  width: fit-content;
  color: var(--teal-dark);
  font-weight: 900;
}

@media (max-width: 1020px) {
  .hero-dashboard,
  .snapshot-summary,
  .market-overview-grid,
  .momentum-lanes,
  .detail-grid,
  .blog-fact-grid,
  .blog-meta-grid,
  .blog-hero,
  .blog-loop-layout,
  .blog-screenshot-grid,
  .blog-synthesis-grid,
  .blog-event-grid,
  .blog-video-grid {
    grid-template-columns: 1fr;
  }

  .blog-index-card {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .blog-index-icon {
    width: 86px;
    height: 86px;
  }

  .blog-fact-grid div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .blog-fact-grid div:last-child {
    border-bottom: 0;
  }

  .blog-meta-grid div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .blog-meta-grid div:last-child {
    border-bottom: 0;
  }

  .market-block {
    border-top: 1px solid var(--line);
  }

  .market-context-grid > .market-block + .market-block {
    border-top: 1px solid var(--line);
  }

  .market-mix-block {
    border-right: 0;
  }

  .market-block:first-child {
    border-top: 0;
  }

  .hero-copy {
    min-height: auto;
  }

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

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

  .experience-profile {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .experience-profile .app-icon {
    width: 80px;
    height: 80px;
  }

  .profile-stats {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto minmax(220px, 1fr);
  }

  .experience-sticky-bar {
    top: 118px;
  }

  .top-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .section-title-row,
  .section-title-copy,
  .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .leaderboard-toolbar {
    grid-template-columns: 1fr;
  }

  .chart-definition {
    grid-column: auto;
  }

  .site-header {
    position: static;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
    padding: 8px 10px 12px;
  }

  .experience-sticky-bar {
    top: 8px;
    display: flex;
    width: calc(100% - 20px);
    gap: 8px;
    padding: 8px;
  }

  .sticky-app-identity {
    gap: 8px;
    overflow: hidden;
  }

  .sticky-app-icon {
    width: 38px;
    height: 38px;
  }

  .sticky-app-actions {
    justify-content: flex-end;
    min-width: max-content;
  }

  .sticky-roblox-button {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 7px 9px;
    font-size: 0.76rem;
  }

  .top-nav {
    justify-content: flex-start;
  }

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

  .toolbar-actions .search-combobox {
    flex: 0 1 auto;
    width: 100%;
    min-width: 0;
  }

  .market-overview-panel {
    margin-top: 18px;
  }

  .blog-strip,
  .blog-page {
    margin-top: 18px;
  }

  .blog-headline-row {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 8px;
    padding: 16px 20px;
  }

  .blog-index-card {
    grid-template-columns: 1fr;
  }

  .blog-headline-icon {
    width: 48px;
    height: 48px;
  }

  .blog-index-icon {
    width: 72px;
    height: 72px;
  }

  .blog-headline-row time {
    grid-column: 2;
  }

  .blog-chart-frame {
    height: 340px;
    padding: 10px;
  }

  .blog-strip-heading,
  .blog-page-heading,
  .blog-article,
  .blog-case-study,
  .blog-timeline-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .blog-timeline-section {
    margin-left: -20px;
    margin-right: -20px;
  }

  .blog-title-lockup {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }

  .blog-title-icon {
    width: 72px;
    height: 72px;
  }

  .blog-title-icon-link {
    width: 72px;
    height: 72px;
  }

  .blog-snapshot-actions,
  .blog-bottom-actions {
    justify-content: stretch;
  }

  .blog-navigation-panel .blog-snapshot-actions {
    flex-basis: 100%;
  }

  .blog-snapshot-actions a,
  .blog-bottom-actions a {
    width: 100%;
  }

  .market-overview-heading,
  .market-block {
    padding: 20px;
  }

  .market-block {
    grid-template-rows: auto auto;
  }

  .market-block-heading {
    flex-direction: column;
    gap: 8px;
  }

  .momentum-view-controls {
    width: 100%;
    align-items: flex-start;
    justify-content: space-between;
    text-align: left;
  }

  .momentum-window-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .market-block-heading .panel-note {
    max-width: 100%;
  }

  .overlap-bars {
    overflow: visible;
    padding-right: 0;
  }

  .movers-list {
    max-height: 480px;
  }

  .overlap-row-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .mover-item {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .movement-pill {
    justify-self: start;
    min-width: 0;
  }

  .header-search {
    min-height: 44px;
  }

  .search-suggestion {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .search-suggestion-icon {
    width: 34px;
    height: 34px;
  }

  .search-suggestion-stat {
    grid-column: 2;
    justify-self: start;
    width: fit-content;
  }

  .brand-image {
    width: clamp(176px, 58vw, 210px);
  }

  .top-nav a,
  .text-action {
    min-height: 44px;
  }

  .section-shell {
    width: min(100% - 20px, 1240px);
  }

  h1 {
    font-size: 2rem;
  }

  .metric-grid,
  .app-card-grid,
  .seo-fact-grid,
  .profile-stats {
    grid-template-columns: 1fr;
  }

  .toolbar-actions,
  .segmented-control,
  .search-box,
  .select-box {
    width: 100%;
  }

  .segmented-control {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-box input {
    width: 100%;
  }

  .select-box select {
    width: 100%;
  }

  .chart-panel {
    grid-template-rows: auto auto;
  }

  .chart-canvas {
    height: 310px;
  }

  .experience-profile {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .experience-profile .app-icon {
    width: 88px;
    height: 88px;
  }

  .experience-title-block h1 {
    font-size: clamp(2rem, 12vw, 2.85rem);
  }

  .table-shell {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  table {
    min-width: 0;
  }

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

  tbody {
    display: grid;
    gap: 10px;
  }

  tbody tr {
    display: grid;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
  }

  tbody tr:hover {
    background: var(--surface);
  }

  td {
    display: grid;
    grid-template-columns: minmax(82px, 0.36fr) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 42px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(217, 224, 231, 0.72);
  }

  td:last-child {
    border-bottom: 0;
  }

  td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .experience-cell {
    min-width: 0;
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .experience-cell .app-icon {
    width: 44px;
    height: 44px;
  }

  .app-title {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
  }

  .app-meta {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .observations-panel .panel-heading {
    gap: 10px;
  }
}

/* Dark site-skin prototype.
   This section intentionally preserves the live Robin layout and component
   selectors; it only retokens color, surface, and elevation treatment. */
body[data-theme="dark"] {
  --bg: #08111f;
  --surface: #0f172a;
  --surface-soft: #111c2f;
  --surface-tint: #152238;
  --ink: #f8fafc;
  --muted: #94a3b8;
  --line: #22314a;
  --teal: #38bdf8;
  --teal-dark: #7dd3fc;
  --coral: #fb7185;
  --blue: #60a5fa;
  --green: #34d399;
  --amber: #fbbf24;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  --chart-line: #263650;
  --chart-muted: #94a3b8;
  --chart-ink: #f8fafc;
  color: var(--ink);
  background: var(--bg);
}

body[data-theme="dark"] .site-header {
  border-bottom-color: var(--line);
  background: rgba(8, 17, 31, 0.94);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

body[data-theme="dark"] .brand-image {
  width: clamp(112px, 9.8vw, 126px);
}

body[data-theme="dark"] .panel,
body[data-theme="dark"] .metric-card,
body[data-theme="dark"] .app-card,
body[data-theme="dark"] .blog-screenshot-card,
body[data-theme="dark"] .blog-hero-stat,
body[data-theme="dark"] .blog-snapshot-section,
body[data-theme="dark"] .blog-navigation-panel,
body[data-theme="dark"] .blog-rank-strip,
body[data-theme="dark"] .blog-index-card,
body[data-theme="dark"] .experience-sticky-bar,
body[data-theme="dark"] .blog-loop-detail,
body[data-theme="dark"] .blog-synthesis-card,
body[data-theme="dark"] .blog-video-card,
body[data-theme="dark"] .loading-block,
body[data-theme="dark"] .empty-state {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

body[data-theme="dark"] .top-nav a,
body[data-theme="dark"] .text-action,
body[data-theme="dark"] .panel-note,
body[data-theme="dark"] .muted,
body[data-theme="dark"] .app-meta,
body[data-theme="dark"] .blog-published,
body[data-theme="dark"] .blog-date {
  color: var(--muted);
}

body[data-theme="dark"] .top-nav a:hover,
body[data-theme="dark"] .text-action:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

body[data-theme="dark"] .top-nav .back-link {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface-soft);
}

body[data-theme="dark"] .eyebrow,
body[data-theme="dark"] .blog-article-body a,
body[data-theme="dark"] .blog-page-heading h1 a,
body[data-theme="dark"] .empty-state a {
  color: var(--teal-dark);
}

body[data-theme="dark"] .search-box,
body[data-theme="dark"] .select-box,
body[data-theme="dark"] .segmented-control,
body[data-theme="dark"] .header-search {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: none;
}

body[data-theme="dark"] input,
body[data-theme="dark"] select {
  color: var(--ink);
  background: transparent;
}

body[data-theme="dark"] input::placeholder {
  color: #64748b;
}

body[data-theme="dark"] .search-box:focus-within,
body[data-theme="dark"] .select-box:focus-within,
body[data-theme="dark"] .header-search:focus-within {
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

body[data-theme="dark"] .search-suggestions {
  border-color: var(--line);
  background: #0b1424;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

body[data-theme="dark"] .search-suggestion {
  color: var(--ink);
}

body[data-theme="dark"] .search-suggestion:hover,
body[data-theme="dark"] .search-suggestion.active {
  background: var(--surface-soft);
}

body[data-theme="dark"] .search-suggestion-icon,
body[data-theme="dark"] .app-icon,
body[data-theme="dark"] .blog-headline-icon,
body[data-theme="dark"] .blog-index-icon,
body[data-theme="dark"] .sticky-app-icon,
body[data-theme="dark"] .blog-title-icon {
  border-color: var(--line);
  background: var(--surface-soft);
}

body[data-theme="dark"] .metric-card::before {
  background: var(--teal);
}

body[data-theme="dark"] .metric-card span,
body[data-theme="dark"] .metric-card small,
body[data-theme="dark"] .card-stats span,
body[data-theme="dark"] .profile-stat span,
body[data-theme="dark"] .seo-fact-grid dt,
body[data-theme="dark"] .blog-fact-grid span,
body[data-theme="dark"] .blog-meta-grid span {
  color: var(--muted);
}

body[data-theme="dark"] .metric-card strong,
body[data-theme="dark"] .card-stats strong,
body[data-theme="dark"] .profile-stat strong,
body[data-theme="dark"] .sticky-app-identity strong,
body[data-theme="dark"] .seo-fact-grid dd,
body[data-theme="dark"] .blog-fact-grid strong,
body[data-theme="dark"] .blog-meta-grid strong {
  color: var(--ink);
}

body[data-theme="dark"] .market-overview-panel,
body[data-theme="dark"] .market-context-panel,
body[data-theme="dark"] .blog-strip,
body[data-theme="dark"] .leaderboard-panel {
  overflow: hidden;
}

body[data-theme="dark"] .market-overview-heading,
body[data-theme="dark"] .blog-strip-heading,
body[data-theme="dark"] .leaderboard-toolbar,
body[data-theme="dark"] .blog-page-heading,
body[data-theme="dark"] .blog-headline-row {
  border-color: var(--line);
  background: transparent;
}

body[data-theme="dark"] .market-block,
body[data-theme="dark"] .market-mix-block,
body[data-theme="dark"] .coverage-block,
body[data-theme="dark"] .momentum-lane,
body[data-theme="dark"] .blog-section,
body[data-theme="dark"] .blog-page-list,
body[data-theme="dark"] .blog-loop-detail,
body[data-theme="dark"] .blog-fact-grid,
body[data-theme="dark"] .blog-meta-grid {
  border-color: var(--line);
}

body[data-theme="dark"] .mover-item,
body[data-theme="dark"] .overlap-row,
body[data-theme="dark"] .card-stats span,
body[data-theme="dark"] .profile-stat,
body[data-theme="dark"] .seo-fact-grid div,
body[data-theme="dark"] .badge,
body[data-theme="dark"] .blog-hero-stat,
body[data-theme="dark"] .blog-snapshot-section,
body[data-theme="dark"] .blog-navigation-panel,
body[data-theme="dark"] .blog-quick-links a {
  border-color: var(--line);
  background: var(--surface-soft);
}

body[data-theme="dark"] .app-card.rank-tier-rainbow,
body[data-theme="dark"] .experience-profile.rank-tier-rainbow {
  border-color: rgba(255, 255, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(56, 189, 248, 0.12), rgba(15, 23, 42, 0) 44%),
    var(--surface);
  box-shadow: var(--shadow), 0 10px 26px rgba(56, 189, 248, 0.18);
}

body[data-theme="dark"] .app-card.rank-tier-gold,
body[data-theme="dark"] .experience-profile.rank-tier-gold {
  border-color: rgba(251, 191, 36, 0.48);
  background:
    linear-gradient(180deg, rgba(251, 191, 36, 0.16), rgba(15, 23, 42, 0) 46%),
    var(--surface);
  box-shadow: var(--shadow), 0 10px 24px rgba(245, 158, 11, 0.18);
}

body[data-theme="dark"] .app-card.rank-tier-silver,
body[data-theme="dark"] .experience-profile.rank-tier-silver {
  border-color: rgba(148, 163, 184, 0.46);
  background:
    linear-gradient(180deg, rgba(148, 163, 184, 0.14), rgba(15, 23, 42, 0) 46%),
    var(--surface);
  box-shadow: var(--shadow), 0 10px 22px rgba(148, 163, 184, 0.12);
}

body[data-theme="dark"] .app-card.rank-tier-bronze,
body[data-theme="dark"] .experience-profile.rank-tier-bronze {
  border-color: rgba(180, 83, 9, 0.46);
  background:
    linear-gradient(180deg, rgba(251, 146, 60, 0.13), rgba(15, 23, 42, 0) 46%),
    var(--surface);
  box-shadow: var(--shadow), 0 10px 22px rgba(180, 83, 9, 0.14);
}

body[data-theme="dark"] .blog-index-card.rank-tier-rainbow,
body[data-theme="dark"] .blog-headline-row.rank-tier-rainbow {
  border-color: rgba(255, 255, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(56, 189, 248, 0.1), rgba(15, 23, 42, 0) 52%),
    var(--surface);
}

body[data-theme="dark"] .blog-index-card.rank-tier-gold,
body[data-theme="dark"] .blog-headline-row.rank-tier-gold {
  border-color: rgba(251, 191, 36, 0.34);
  background:
    linear-gradient(180deg, rgba(251, 191, 36, 0.12), rgba(15, 23, 42, 0) 52%),
    var(--surface);
}

body[data-theme="dark"] .blog-index-card.rank-tier-silver,
body[data-theme="dark"] .blog-headline-row.rank-tier-silver {
  border-color: rgba(148, 163, 184, 0.34);
  background:
    linear-gradient(180deg, rgba(148, 163, 184, 0.1), rgba(15, 23, 42, 0) 52%),
    var(--surface);
}

body[data-theme="dark"] .blog-index-card.rank-tier-bronze,
body[data-theme="dark"] .blog-headline-row.rank-tier-bronze {
  border-color: rgba(180, 83, 9, 0.34);
  background:
    linear-gradient(180deg, rgba(251, 146, 60, 0.1), rgba(15, 23, 42, 0) 52%),
    var(--surface);
}

body[data-theme="dark"] .badge.rank-tier-rainbow {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
  background:
    linear-gradient(rgba(8, 17, 31, 0.3), rgba(8, 17, 31, 0.3)),
    linear-gradient(110deg, #ff335f, #ff8a00, #ffd400, #25d366, #00c2ff, #7c3aed, #ff335f);
  background-size: 100% 100%, 300% 100%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset, 0 10px 26px rgba(56, 189, 248, 0.18);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.36);
}

body[data-theme="dark"] .badge.rank-tier-gold {
  color: #241404;
  border-color: rgba(251, 191, 36, 0.72);
  background: linear-gradient(135deg, #9f690d, #f6b62e 44%, #ffe38a);
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.24);
  text-shadow: none;
}

body[data-theme="dark"] .badge.rank-tier-silver {
  color: #f8fafc;
  border-color: rgba(203, 213, 225, 0.52);
  background:
    linear-gradient(rgba(8, 17, 31, 0.42), rgba(8, 17, 31, 0.42)),
    linear-gradient(135deg, #475569, #94a3b8 48%, #e2e8f0);
  box-shadow: 0 8px 18px rgba(148, 163, 184, 0.14);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.34);
}

body[data-theme="dark"] .badge.rank-tier-bronze {
  color: #fff1e7;
  border-color: rgba(180, 83, 9, 0.56);
  background:
    linear-gradient(rgba(8, 17, 31, 0.44), rgba(8, 17, 31, 0.44)),
    linear-gradient(135deg, #7c2d12, #b45309 48%, #fdba74);
  box-shadow: 0 8px 18px rgba(180, 83, 9, 0.14);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.34);
}

body[data-theme="dark"] .mover-item.rank-tier-rainbow {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
  background:
    linear-gradient(rgba(8, 17, 31, 0.3), rgba(8, 17, 31, 0.3)),
    linear-gradient(110deg, #ff335f, #ff8a00, #ffd400, #25d366, #00c2ff, #7c3aed, #ff335f);
  background-size: 300% 100%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset, 0 10px 26px rgba(56, 189, 248, 0.18);
}

body[data-theme="dark"] .mover-item.rank-tier-gold {
  color: #241404;
  border-color: rgba(251, 191, 36, 0.72);
  background: linear-gradient(135deg, #9f690d, #f6b62e 44%, #ffe38a);
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.24);
}

body[data-theme="dark"] .mover-item.rank-tier-silver {
  color: #f8fafc;
  border-color: rgba(203, 213, 225, 0.52);
  background:
    linear-gradient(rgba(8, 17, 31, 0.42), rgba(8, 17, 31, 0.42)),
    linear-gradient(135deg, #475569, #94a3b8 48%, #e2e8f0);
  box-shadow: 0 8px 18px rgba(148, 163, 184, 0.14);
}

body[data-theme="dark"] .mover-item.rank-tier-bronze {
  color: #fff1e7;
  border-color: rgba(180, 83, 9, 0.56);
  background:
    linear-gradient(rgba(8, 17, 31, 0.44), rgba(8, 17, 31, 0.44)),
    linear-gradient(135deg, #7c2d12, #b45309 48%, #fdba74);
  box-shadow: 0 8px 18px rgba(180, 83, 9, 0.14);
}

body[data-theme="dark"] .mover-item.rank-tier-rainbow span,
body[data-theme="dark"] .mover-item.rank-tier-silver span,
body[data-theme="dark"] .mover-item.rank-tier-bronze span {
  color: rgba(255, 255, 255, 0.86);
}

body[data-theme="dark"] .mover-item.rank-tier-gold span {
  color: rgba(58, 35, 7, 0.86);
}

body[data-theme="dark"] .momentum-block {
  background: linear-gradient(180deg, rgba(251, 113, 133, 0.08), rgba(15, 23, 42, 0) 56%);
}

body[data-theme="dark"] .momentum-lane {
  background: rgba(17, 28, 47, 0.76);
}

body[data-theme="dark"] .mover-item:last-child {
  border-bottom-color: var(--line);
}

body[data-theme="dark"] .movement-pill.up,
body[data-theme="dark"] .metric-delta.up {
  color: #86efac;
  background: rgba(34, 197, 94, 0.13);
}

body[data-theme="dark"] .movement-pill.down,
body[data-theme="dark"] .metric-delta.down {
  color: #fda4af;
  background: rgba(251, 113, 133, 0.13);
}

body[data-theme="dark"] .movement-pill.flat,
body[data-theme="dark"] .metric-delta.flat {
  color: var(--muted);
  background: rgba(148, 163, 184, 0.12);
}

body[data-theme="dark"] .mover-item.rank-tier-rainbow .movement-pill,
body[data-theme="dark"] .mover-item.rank-tier-silver .movement-pill,
body[data-theme="dark"] .mover-item.rank-tier-bronze .movement-pill {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 17, 31, 0.34);
}

body[data-theme="dark"] .mover-item.rank-tier-gold .movement-pill {
  color: #14532d;
  border: 1px solid rgba(120, 76, 6, 0.18);
  background: rgba(255, 255, 255, 0.52);
  text-shadow: none;
}

body[data-theme="dark"] .table-shell {
  border-color: var(--line);
  background: var(--surface);
}

body[data-theme="dark"] th {
  color: var(--muted);
  background: var(--surface-soft);
}

body[data-theme="dark"] td {
  color: #dbeafe;
  border-color: rgba(34, 49, 74, 0.9);
}

body[data-theme="dark"] tbody tr:hover {
  background: rgba(17, 28, 47, 0.72);
}

body[data-theme="dark"] .blog-headline-row:hover,
body[data-theme="dark"] .blog-index-card:hover,
body[data-theme="dark"] .app-card:hover,
body[data-theme="dark"] .blog-quick-links a:hover {
  border-color: rgba(56, 189, 248, 0.38);
  background: var(--surface-soft);
  color: var(--ink);
}

body[data-theme="dark"] .blog-primary-action,
body[data-theme="dark"] .roblox-button {
  color: white;
  border-color: rgba(56, 189, 248, 0.36);
  background: #2563eb;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

body[data-theme="dark"] .blog-navigation-panel .blog-quick-links .blog-primary-action:hover {
  color: #fff;
  border-color: rgba(96, 165, 250, 0.54);
  background: #1d4ed8;
}

body[data-theme="dark"] .blog-secondary-action {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface-soft);
}

body[data-theme="dark"] .profile-snapshot-stat {
  background: rgba(56, 189, 248, 0.1);
}

body[data-theme="dark"] .snapshot-summary {
  color: var(--ink);
}

body[data-theme="dark"] .chart-tooltip {
  color: var(--ink);
  border-color: var(--line);
  background: #0b1424;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

body[data-theme="dark"] ::selection {
  color: white;
  background: rgba(37, 99, 235, 0.72);
}

body[data-theme="dark"] {
  scrollbar-color: #334155 #08111f;
}

body[data-theme="dark"]::-webkit-scrollbar {
  width: 12px;
}

body[data-theme="dark"]::-webkit-scrollbar-track {
  background: #08111f;
}

body[data-theme="dark"]::-webkit-scrollbar-thumb {
  border: 3px solid #08111f;
  border-radius: var(--radius-pill);
  background: #334155;
}
