/* =========================================================
   RootMC design system — Ava cyber-ops
   Navy void · electric cyan · white ink · red LIVE · gold hair accent
   ========================================================= */

:root {
  /* Surfaces — Ava cyber-ops (Daily Broadcast) */
  --rmc-bg:        #000d1a;
  --rmc-bg-deep:   #00060e;
  --rmc-surface:   #0c1c30;
  --rmc-surface-2: #122438;
  --rmc-surface-3: #1a3048;
  --rmc-outline:        rgba(0, 229, 255, 0.18);
  --rmc-outline-soft:   rgba(0, 229, 255, 0.08);
  --rmc-divider:        rgba(255, 255, 255, 0.07);
  --rmc-divider-strong: rgba(255, 255, 255, 0.12);

  /* Brand — electric cyan primary. --rmc-gold is a legacy alias for cyan.
     Real gold hair accent is --rmc-copper / --rmc-gold-hair (#ffd54a). Red LIVE. */
  --rmc-gold:        #00e5ff;
  --rmc-gold-bright: #5ef0ff;
  --rmc-gold-dim:    #00a8c4;
  --rmc-gold-glow:   rgba(0, 229, 255, 0.35);
  --rmc-copper:      #ffd54a;
  --rmc-gold-hair:   #ffd54a;
  --rmc-cyan:        #00e5ff;
  --rmc-cyan-bright: #5ef0ff;
  --rmc-live-red:    #ff2a3a;

  /* Economy semantic */
  --rmc-emerald:    #00e5ff;
  --rmc-emerald-dim: rgba(0, 229, 255, 0.16);
  --rmc-red:        #ff2a3a;
  --rmc-red-dim:    rgba(255, 42, 58, 0.14);
  --rmc-sell:       #5ef0ff;
  --rmc-sell-dim:   rgba(94, 240, 255, 0.18);
  --rmc-buy:        #ff2a3a;
  --rmc-buy-dim:    rgba(255, 42, 58, 0.16);

  /* Ink */
  --rmc-ink:        #ffffff;
  --rmc-ink-dim:    #c8d8e8;
  --rmc-ink-muted:  #7a92a8;
  --rmc-ink-faint:  #5a7088;
  --rmc-ink-on-gold: #001018;

  /* Type */
  --rmc-font-display: "Bricolage Grotesque", "Fraunces", Georgia, serif;
  --rmc-font:         "DM Sans", "Geist", system-ui, -apple-system, sans-serif;
  --rmc-mono:         "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Shape */
  --rmc-r-xs: 6px;
  --rmc-r-sm: 10px;
  --rmc-r:    14px;
  --rmc-r-md: 18px;
  --rmc-r-lg: 22px;
  --rmc-r-xl: 28px;

  /* Elevation */
  --rmc-elev-1: 0 1px 0 rgba(255,255,255,0.04) inset, 0 2px 6px rgba(0,0,0,0.35);
  --rmc-elev-2: 0 1px 0 rgba(255,255,255,0.05) inset, 0 6px 18px rgba(0,0,0,0.45);
  --rmc-elev-3: 0 1px 0 rgba(255,255,255,0.06) inset, 0 14px 36px rgba(0,0,0,0.55);
  --rmc-glow-gold:    0 0 0 1px rgba(0, 229, 255, 0.28), 0 0 28px rgba(0, 229, 255, 0.22);
  --rmc-glow-emerald: 0 0 0 1px rgba(0, 229, 255, 0.32), 0 0 22px rgba(0, 229, 255, 0.18);

  /* Motion */
  --rmc-ease:    cubic-bezier(.2, .8, .2, 1);
  --rmc-ease-in: cubic-bezier(.4, 0, .8, .2);
  --rmc-fast:    140ms;
  --rmc-mid:     240ms;
  --rmc-slow:    420ms;
}

/* =====================  Base reset & body  ===================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--rmc-font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--rmc-ink);
  font-feature-settings: "ss01", "cv11";
  background:
    radial-gradient(1100px 480px at 82% -10%, rgba(245, 185, 66, 0.10), transparent 60%),
    radial-gradient(900px 520px at -5% 0%, rgba(93, 211, 158, 0.07), transparent 65%),
    linear-gradient(180deg, var(--rmc-bg) 0%, var(--rmc-bg-deep) 100%);
  background-attachment: fixed;
  /* deepslate noise via repeating radial */
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-radial-gradient(
      circle at 0 0, rgba(255,255,255,0.012) 0 1px, transparent 1px 3px
    );
  mix-blend-mode: overlay;
  opacity: 0.6;
}

main { position: relative; z-index: 1; }

a {
  color: var(--rmc-gold);
  text-decoration: none;
  transition: color var(--rmc-fast) var(--rmc-ease);
}
a:hover { color: var(--rmc-gold-bright); }

::selection { background: var(--rmc-gold); color: var(--rmc-ink-on-gold); }

button { font-family: inherit; }

img { max-width: 100%; height: auto; }

/* Tabular numbers for prices and counts */
.rmc-num, .market-price, .market-table td:not(:first-child),
.rmc-leader-meta, .player-uuid, .market-item-id,
#market-total, #page-label {
  font-variant-numeric: tabular-nums;
}

.container {
  width: min(1240px, 92vw);
  margin: 0 auto;
}

/* =====================  Top app bar  ===================== */

.home-page {
  --rmc-tape-h: 2.125rem;
}

.rmc-market-tape {
  position: sticky;
  top: 0;
  z-index: 70;
  display: flex;
  align-items: stretch;
  min-height: var(--rmc-tape-h);
  background: linear-gradient(90deg, #060a0b 0%, #0d1416 50%, #060a0b 100%);
  border-bottom: 1px solid rgba(245, 185, 66, 0.22);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}
.rmc-market-tape-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0 0.75rem;
  font-family: var(--rmc-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rmc-ink-on-gold);
  background: linear-gradient(180deg, var(--rmc-gold) 0%, var(--rmc-gold-dim) 100%);
  border-right: 1px solid rgba(0, 0, 0, 0.25);
}
.rmc-market-tape-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 2rem, #000 calc(100% - 2rem), transparent);
}
.rmc-market-tape-inner {
  display: flex;
  width: max-content;
  animation: rmc-tape-scroll 48s linear infinite;
}
.rmc-market-tape-inner:hover {
  animation-play-state: paused;
}
.rmc-market-tape-track {
  display: flex;
  align-items: center;
  gap: 0;
}
.rmc-market-tape-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1.1rem;
  border-right: 1px solid var(--rmc-divider);
  font-family: var(--rmc-mono);
  font-size: 0.74rem;
  color: var(--rmc-ink-dim);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--rmc-fast) var(--rmc-ease);
}
.rmc-market-tape-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--rmc-ink);
}
.rmc-market-tape-item .sym {
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--rmc-ink);
}
.rmc-market-tape-item .px {
  font-variant-numeric: tabular-nums;
  color: var(--rmc-gold);
}
.rmc-market-tape-item .chg {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.rmc-market-tape-item.up .chg { color: var(--rmc-emerald); }
.rmc-market-tape-item.down .chg { color: var(--rmc-red); }
.rmc-market-tape-item.flat .chg { color: var(--rmc-ink-muted); }

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

@media (prefers-reduced-motion: reduce) {
  .rmc-market-tape-inner {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
  }
  .rmc-market-tape-viewport {
    mask-image: none;
    overflow-x: auto;
  }
  .rmc-market-tape-track[aria-hidden="true"] {
    display: none;
  }
}

.home-page .rmc-header {
  top: var(--rmc-tape-h);
}

.eco-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.15rem;
  padding: 0.4rem 1rem;
  background: #000d1a;
  border-bottom: 1px solid rgba(0, 229, 255, 0.16);
  font-family: var(--rmc-font);
  z-index: 80;
}
.eco-bar a {
  color: var(--rmc-ink-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.9rem;
  border-radius: 999px;
}
.eco-bar a:hover { color: var(--rmc-ink); background: rgba(0, 229, 255, 0.08); }
.eco-bar a[aria-current="page"] {
  color: var(--rmc-cyan);
  background: rgba(0, 229, 255, 0.12);
}

.rmc-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(0,13,26,0.92) 0%, rgba(0,13,26,0.72) 100%);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--rmc-outline);
}

.rmc-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.rmc-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--rmc-font-display);
  font-weight: 600;
  font-size: 1.18rem;
  color: var(--rmc-ink);
  letter-spacing: -0.01em;
}
.rmc-brand:hover { color: var(--rmc-gold); }
.rmc-brand img {
  border-radius: 9px;
  box-shadow: 0 0 0 1px var(--rmc-outline), 0 4px 12px rgba(0,0,0,0.4);
}
.rmc-brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--rmc-gold) 0%, var(--rmc-copper) 100%);
  color: #000d1a;
  font-family: var(--rmc-font-display); font-weight: 700; font-size: 1.05rem;
  box-shadow: var(--rmc-glow-gold);
}
.rmc-brand-tag {
  margin-left: 0.45rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-family: var(--rmc-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rmc-gold);
  background: rgba(245, 185, 66, 0.10);
  border: 1px solid var(--rmc-outline);
}

.rmc-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.rmc-nav a {
  position: relative;
  color: var(--rmc-ink-muted);
  font-size: 0.93rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  letter-spacing: 0.005em;
  transition: color var(--rmc-fast) var(--rmc-ease),
              background var(--rmc-fast) var(--rmc-ease);
}
.rmc-nav a:hover {
  color: var(--rmc-ink);
  background: rgba(255, 255, 255, 0.04);
}
.rmc-nav a[aria-current="page"] {
  color: var(--rmc-gold);
  background: rgba(245, 185, 66, 0.10);
  box-shadow: inset 0 0 0 1px var(--rmc-outline);
}
.rmc-nav-cta {
  margin-left: 0.4rem;
  padding: 0.55rem 1.05rem !important;
  background: linear-gradient(180deg, var(--rmc-gold) 0%, var(--rmc-gold-dim) 100%);
  color: var(--rmc-ink-on-gold) !important;
  font-weight: 600;
  box-shadow: var(--rmc-glow-gold) !important;
}
.rmc-nav-cta:hover {
  color: var(--rmc-ink-on-gold) !important;
  background: linear-gradient(180deg, var(--rmc-gold-bright) 0%, var(--rmc-gold) 100%);
}

/* Collapsible Data group */
.rmc-nav-group {
  position: relative;
  display: flex;
  align-items: center;
}
.rmc-nav-group-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--rmc-ink-muted);
  font: inherit;
  font-size: 0.93rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  letter-spacing: 0.005em;
  transition: color var(--rmc-fast) var(--rmc-ease),
              background var(--rmc-fast) var(--rmc-ease);
}
.rmc-nav-group-toggle:hover,
.rmc-nav-group.is-open > .rmc-nav-group-toggle,
.rmc-nav-group.is-active > .rmc-nav-group-toggle {
  color: var(--rmc-ink);
  background: rgba(255, 255, 255, 0.04);
}
.rmc-nav-group.is-active > .rmc-nav-group-toggle {
  color: var(--rmc-gold);
  background: rgba(245, 185, 66, 0.10);
  box-shadow: inset 0 0 0 1px var(--rmc-outline);
}
.rmc-nav-group-chevron {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.7;
  transition: transform var(--rmc-fast) var(--rmc-ease);
}
.rmc-nav-group.is-open > .rmc-nav-group-toggle .rmc-nav-group-chevron {
  transform: rotate(225deg) translateY(-1px);
}
.rmc-nav-submenu {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 11.5rem;
  padding: 0.4rem;
  border-radius: 14px;
  background: rgba(12, 18, 20, 0.98);
  border: 1px solid var(--rmc-outline);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  z-index: 60;
}
.rmc-nav-group.is-open > .rmc-nav-submenu {
  display: grid;
  gap: 0.15rem;
}
.rmc-nav-submenu a {
  display: block;
  white-space: nowrap;
  border-radius: 10px;
}

/* hamburger */
.rmc-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--rmc-divider-strong);
  border-radius: 12px;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  color: var(--rmc-ink);
  cursor: pointer;
}
.rmc-nav-toggle:hover { border-color: var(--rmc-outline); color: var(--rmc-gold); }

@media (max-width: 880px) {
  .rmc-nav { display: none; }
  .rmc-nav-toggle { display: inline-flex; }
  .rmc-header.is-open .rmc-nav {
    display: grid;
    position: absolute;
    left: 0; right: 0; top: 100%;
    padding: 1rem 6vw 1.25rem;
    background: rgba(10,15,16,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--rmc-outline);
    gap: 0.2rem;
  }
  .rmc-header.is-open .rmc-nav a {
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
  }
  .rmc-nav-cta { margin-left: 0 !important; margin-top: 0.4rem; text-align: center; }
  .rmc-nav-group {
    display: grid;
    gap: 0.15rem;
  }
  .rmc-nav-group-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
  }
  .rmc-nav-submenu {
    position: static;
    min-width: 0;
    padding: 0 0 0 0.6rem;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .rmc-nav-group.is-open > .rmc-nav-submenu {
    gap: 0.1rem;
  }
}

/* =====================  Mobile bottom nav  ===================== */

.rmc-bottomnav {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 55;
  padding: 0.5rem max(env(safe-area-inset-left), 0.5rem) calc(0.5rem + env(safe-area-inset-bottom)) max(env(safe-area-inset-right), 0.5rem);
  background: linear-gradient(180deg, rgba(10,15,16,0.7) 0%, rgba(10,15,16,0.95) 60%);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--rmc-outline-soft);
}
.rmc-bottomnav-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.25rem;
  max-width: 540px;
  margin: 0 auto;
}
.rmc-bottomnav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0.45rem 0.2rem;
  min-height: 52px;
  border-radius: 14px;
  color: var(--rmc-ink-muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color var(--rmc-fast) var(--rmc-ease),
              background var(--rmc-fast) var(--rmc-ease);
}
.rmc-bottomnav a svg { width: 22px; height: 22px; stroke: currentColor; }
.rmc-bottomnav a[aria-current="page"] {
  color: var(--rmc-gold);
  background: radial-gradient(120% 100% at 50% 0%, rgba(245,185,66,0.22) 0%, transparent 70%);
}
.rmc-bottomnav a[aria-current="page"] svg { filter: drop-shadow(0 0 6px var(--rmc-gold-glow)); }

@media (max-width: 720px) {
  .rmc-bottomnav { display: block; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* =====================  Buttons  ===================== */

.rmc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.93rem;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--rmc-fast) var(--rmc-ease),
              background var(--rmc-fast) var(--rmc-ease),
              border-color var(--rmc-fast) var(--rmc-ease),
              box-shadow var(--rmc-mid) var(--rmc-ease),
              color var(--rmc-fast) var(--rmc-ease);
  min-height: 44px;
}
.rmc-btn:active { transform: translateY(1px); }
.rmc-btn:focus-visible { outline: 2px solid var(--rmc-gold); outline-offset: 2px; }

.rmc-btn-primary {
  background: linear-gradient(180deg, var(--rmc-gold) 0%, var(--rmc-gold-dim) 100%);
  color: var(--rmc-ink-on-gold);
  box-shadow: var(--rmc-elev-2), 0 0 0 1px rgba(0, 229, 255, 0.35) inset;
}
.rmc-btn-primary:hover {
  background: linear-gradient(180deg, var(--rmc-gold-bright) 0%, var(--rmc-gold) 100%);
  color: var(--rmc-ink-on-gold);
  box-shadow: var(--rmc-glow-gold), var(--rmc-elev-2);
}

.rmc-btn-secondary {
  background: var(--rmc-surface-2);
  border-color: var(--rmc-divider-strong);
  color: var(--rmc-ink);
  box-shadow: var(--rmc-elev-1);
}
.rmc-btn-secondary:hover {
  border-color: var(--rmc-outline);
  color: var(--rmc-gold);
  background: var(--rmc-surface-3);
}

.rmc-btn-ghost {
  background: transparent;
  border-color: var(--rmc-divider-strong);
  color: var(--rmc-ink);
}
.rmc-btn-ghost:hover { color: var(--rmc-gold); border-color: var(--rmc-outline); }

/* Wiki/pro content links force cyan — keep button text readable on filled CTAs. */
.wiki-content a.rmc-btn,
.wiki-content a.rmc-btn:hover {
  text-decoration: none;
}
.wiki-content a.rmc-btn-primary,
.wiki-content a.rmc-btn-primary:hover {
  color: var(--rmc-ink-on-gold);
}
.wiki-content a.rmc-btn-secondary,
.wiki-content a.rmc-btn-ghost {
  color: var(--rmc-ink);
}
.wiki-content a.rmc-btn-secondary:hover,
.wiki-content a.rmc-btn-ghost:hover {
  color: var(--rmc-gold);
}

.rmc-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

/* =====================  Cards  ===================== */

.rmc-card {
  position: relative;
  background: linear-gradient(180deg, var(--rmc-surface) 0%, var(--rmc-surface-2) 100%);
  border: 1px solid var(--rmc-divider);
  border-radius: var(--rmc-r-lg);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--rmc-elev-2);
  transition: transform var(--rmc-mid) var(--rmc-ease),
              border-color var(--rmc-fast) var(--rmc-ease),
              box-shadow var(--rmc-mid) var(--rmc-ease);
}
.rmc-card h2, .rmc-card h3 {
  margin: 0 0 0.55rem;
  font-family: var(--rmc-font-display);
  letter-spacing: -0.015em;
  color: var(--rmc-ink);
}
.rmc-card h2 { font-size: 1.32rem; }
.rmc-card h3 { font-size: 1.08rem; }

.rmc-card-hover:hover {
  transform: translateY(-2px);
  border-color: var(--rmc-outline);
  box-shadow: var(--rmc-elev-3);
}

/* =====================  Badges + chips  ===================== */

.rmc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  font-family: var(--rmc-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(93, 211, 158, 0.10);
  color: var(--rmc-emerald);
  border: 1px solid rgba(93, 211, 158, 0.25);
  margin: 0 0 0.65rem;
}
.rmc-badge-gold {
  background: rgba(245, 185, 66, 0.10);
  color: var(--rmc-gold);
  border-color: var(--rmc-outline);
}
.rmc-badge-buy   { background: var(--rmc-buy-dim);  color: var(--rmc-buy);  border-color: rgba(224,98,90,0.32); }
.rmc-badge-sell  { background: var(--rmc-sell-dim); color: var(--rmc-sell); border-color: rgba(127,176,105,0.32); }

.market-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  font-family: var(--rmc-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rmc-gold);
  background: linear-gradient(135deg, rgba(245,185,66,0.18), rgba(201,123,79,0.10));
  border: 1px solid var(--rmc-outline);
  margin-bottom: 0.85rem;
}

/* =====================  Type styles  ===================== */

.rmc-muted     { color: var(--rmc-ink-muted); font-size: 0.94rem; }
.rmc-mono      { font-family: var(--rmc-mono); font-size: 0.86rem; color: var(--rmc-ink-dim); }
.rmc-section-title {
  font-family: var(--rmc-font-display);
  font-size: clamp(1.5rem, 2.2vw, 1.8rem);
  margin: 0 0 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

code, .wiki-pre, pre.wiki-pre {
  font-family: var(--rmc-mono);
}
:not(pre) > code {
  font-size: 0.86em;
  padding: 0.08rem 0.34rem;
  background: rgba(245, 185, 66, 0.08);
  border: 1px solid var(--rmc-outline-soft);
  border-radius: 6px;
  color: var(--rmc-gold-bright);
}

/* =====================  Sections  ===================== */

.rmc-section { padding: 2.5rem 0 3.2rem; position: relative; }

.rmc-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* =====================  Hero (home)  ===================== */

.rmc-hero {
  padding: 2.25rem 0 2rem;
  position: relative;
}
.rmc-hero-grid {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}
@media (min-width: 1100px) {
  .rmc-hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 22rem); }
}

.rmc-hero-brand {
  margin: 0 0 0.5rem;
  font-family: var(--rmc-font-display);
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--rmc-ink);
}
.rmc-hero-brand::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 2px;
  margin-top: 0.5rem;
  background: linear-gradient(90deg, var(--rmc-gold), transparent);
}

.rmc-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.28rem 0.75rem;
  margin: 0 0 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--rmc-outline);
  background: rgba(245, 185, 66, 0.07);
  font-family: var(--rmc-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rmc-gold);
}
.rmc-hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--rmc-emerald);
  box-shadow: 0 0 8px var(--rmc-emerald);
  animation: pulse 2s var(--rmc-ease) infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.3); opacity: 0.6; }
}

.rmc-hero h1 {
  font-family: var(--rmc-font-display);
  font-size: clamp(2.1rem, 4.5vw, 3.35rem);
  line-height: 1.05;
  margin: 0 0 0.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--rmc-ink);
}
.rmc-hero h1 .gold {
  background: linear-gradient(135deg, var(--rmc-gold-bright) 0%, var(--rmc-copper) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.rmc-hero h1 em { font-style: italic; color: var(--rmc-emerald); }

.rmc-lead {
  max-width: 36rem;
  margin: 0 0 1.25rem;
  color: var(--rmc-ink-muted);
  font-size: 1.02rem;
  line-height: 1.5;
}
.rmc-hero .rmc-lead {
  max-width: 32rem;
}

.rmc-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.rmc-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 2rem;
}
.rmc-hero-stat {
  padding: 0.85rem 1rem;
  border-radius: var(--rmc-r-md);
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--rmc-divider);
}
.rmc-hero-stat strong {
  display: block;
  font-family: var(--rmc-font-display);
  font-size: 1.35rem;
  color: var(--rmc-gold);
  letter-spacing: -0.01em;
}
.rmc-hero-stat span {
  font-size: 0.78rem;
  color: var(--rmc-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Visual: ticker-style aside */
.rmc-hero-aside {
  position: relative;
  padding: 1rem 1.1rem;
  border-radius: var(--rmc-r-xl);
  background:
    radial-gradient(120% 110% at 0% 0%, rgba(93, 211, 158, 0.10), transparent 55%),
    linear-gradient(165deg, var(--rmc-surface-2) 0%, var(--rmc-surface) 100%);
  border: 1px solid var(--rmc-outline);
  box-shadow: var(--rmc-elev-3), var(--rmc-glow-gold);
  overflow: hidden;
}
@media (max-width: 1099px) {
  .rmc-hero-aside { max-width: 26rem; }
}
.rmc-hero-aside::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.02) 0 1px,
      transparent 1px 14px
    );
  pointer-events: none;
}
.rmc-hero-aside-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--rmc-mono); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--rmc-ink-muted);
  border-bottom: 1px dashed var(--rmc-divider);
  padding-bottom: 0.6rem; margin-bottom: 0.85rem;
}
.rmc-hero-aside-head .live {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--rmc-emerald);
}
.rmc-hero-aside-head .live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--rmc-emerald); box-shadow: 0 0 8px var(--rmc-emerald);
}
.rmc-hero-ticker,
.rmc-hero-activity {
  display: grid; gap: 0.35rem;
  position: relative;
}
.rmc-hero-ticker-row,
.rmc-hero-activity-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.65rem;
  background: rgba(0,0,0,0.18);
  border: 1px solid var(--rmc-divider);
  border-radius: var(--rmc-r);
  font-size: 0.88rem;
}
.rmc-hero-activity-row--feature {
  grid-template-columns: 1fr;
  gap: 0.12rem;
}
.rmc-hero-activity-row--feature .label {
  font-family: var(--rmc-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rmc-ink-muted);
}
.rmc-hero-activity-row--feature .value {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--rmc-ink);
  letter-spacing: -0.01em;
}
.rmc-hero-activity-row--feature .value.gold {
  color: var(--rmc-gold-bright, var(--rmc-gold));
}
.rmc-hero-activity-row--feature .sub {
  font-size: 0.78rem;
  color: var(--rmc-ink-muted);
}
.rmc-hero-ticker-row strong,
.rmc-hero-activity-row strong {
  font-family: var(--rmc-mono); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--rmc-ink-dim);
}
.rmc-hero-ticker-row .px,
.rmc-hero-activity-row .px {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--rmc-gold);
}
.rmc-hero-ticker-row .pill,
.rmc-hero-activity-row .pill {
  font-family: var(--rmc-mono);
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}
.rmc-hero-ticker-row .pill.up,
.rmc-hero-activity-row .pill.up   { background: var(--rmc-emerald-dim); color: var(--rmc-emerald); }
.rmc-hero-ticker-row .pill.down,
.rmc-hero-activity-row .pill.down { background: var(--rmc-red-dim);     color: var(--rmc-red); }
.rmc-hero-ticker-row .pill.flat,
.rmc-hero-activity-row .pill.flat { background: rgba(255,255,255,0.06); color: var(--rmc-ink-muted); }
.rmc-hero-ticker-row a,
.rmc-hero-activity-row a {
  display: contents;
  color: inherit;
  text-decoration: none;
}
.rmc-hero-ticker-loading {
  margin: 0;
  padding: 0.75rem;
  font-size: 0.88rem;
}
.rmc-hero-ticker-meta {
  margin: 0.85rem 0 0;
  font-family: var(--rmc-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rmc-ink-faint);
}
.rmc-hero-ticker-meta a { color: var(--rmc-gold); }

/* =====================  Network servers (home)  ===================== */

.rmc-section-lead {
  max-width: 40rem;
  margin-top: -0.35rem;
  margin-bottom: 1.5rem;
}

.rmc-network-official {
  display: grid;
  gap: 1.25rem;
  max-width: 40rem;
}

.rmc-network-kicker {
  margin: 0 0 0.45rem;
  font-family: var(--rmc-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rmc-gold);
}

.rmc-network-official-card {
  padding: 1.35rem 1.4rem 1.45rem;
  border-radius: var(--rmc-r-md);
  border: 1px solid rgba(245, 185, 66, 0.28);
  background: linear-gradient(165deg, rgba(245, 185, 66, 0.07) 0%, var(--rmc-surface) 42%);
  box-shadow: var(--rmc-glow-gold);
}

.rmc-network-official-card h3 {
  margin: 0 0 0.55rem;
  font-family: var(--rmc-font-display);
  font-size: 1.45rem;
  font-weight: 600;
}

.rmc-network-addr {
  margin: 0.85rem 0 1rem;
}

.rmc-network-addr code {
  font-size: 0.95rem;
  color: var(--rmc-gold-bright);
}

.mystats-dl {
  margin: 0;
  display: grid;
  gap: 0.65rem;
}
.mystats-row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--rmc-divider);
}
.mystats-row:last-child { border-bottom: 0; }
.mystats-row dt {
  margin: 0;
  font-family: var(--rmc-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rmc-ink-muted);
}
.mystats-row dd {
  margin: 0;
  font-weight: 600;
  color: var(--rmc-ink);
}

.mystats-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mystats-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.mystats-overview-tile {
  padding: 0.85rem 1rem;
  border: 1px solid var(--rmc-divider);
  border-radius: var(--rmc-r-md);
  background: color-mix(in srgb, var(--rmc-surface) 88%, transparent);
}

.mystats-overview-label {
  margin: 0;
  font-family: var(--rmc-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rmc-ink-faint);
}

.mystats-overview-value {
  margin: 0.35rem 0 0;
  font-family: var(--rmc-font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--rmc-ink);
  line-height: 1.15;
}

.mystats-overview-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--rmc-ink-muted);
}

@media (max-width: 720px) {
  .mystats-overview-grid {
    grid-template-columns: 1fr;
  }
  .mystats-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

.rmc-network-secondary {
  border-top: 1px solid var(--rmc-divider);
}

.rmc-network-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--rmc-divider);
  border-radius: var(--rmc-r);
  background: rgba(255, 255, 255, 0.02);
}

.rmc-network-list-empty {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 1rem 1.15rem;
  color: var(--rmc-ink-muted);
  font-size: 0.95rem;
}

.rmc-network-list-empty a {
  color: var(--rmc-gold);
  font-weight: 600;
  text-decoration: none;
}
.rmc-network-list-empty a:hover {
  color: var(--rmc-gold-bright);
}

/* =====================  Vote section  ===================== */

.rmc-vote-section { text-align: center; padding-bottom: 1.5rem; }
.rmc-vote-section .rmc-lead {
  margin-left: auto; margin-right: auto;
}
.rmc-vote-grid {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  margin-top: 1.4rem;
  text-align: left;
}
.rmc-vote-card {
  padding: 0.85rem 1rem;
  border-radius: var(--rmc-r);
  background: var(--rmc-surface-2);
  border: 1px solid var(--rmc-divider);
  color: var(--rmc-ink);
  font-size: 0.92rem;
  font-weight: 500;
  display: flex; justify-content: space-between; align-items: center;
  transition: border-color var(--rmc-fast) var(--rmc-ease),
              transform var(--rmc-fast) var(--rmc-ease),
              background var(--rmc-fast) var(--rmc-ease);
}
.rmc-vote-card:hover {
  border-color: var(--rmc-outline);
  transform: translateY(-2px);
  color: var(--rmc-gold);
  background: var(--rmc-surface-3);
}
.rmc-vote-card::after {
  content: "→"; opacity: 0.6;
  transition: transform var(--rmc-fast) var(--rmc-ease);
}
.rmc-vote-card:hover::after { transform: translateX(3px); opacity: 1; }

.rmc-vote-tool {
  margin-top: 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}
.rmc-vote-tool-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}
.rmc-vote-tool-note {
  margin: 0;
  max-width: 36rem;
  font-size: 0.88rem;
  line-height: 1.45;
}
.rmc-vote-tool-note a {
  color: var(--rmc-gold-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =====================  Home split (about + aside)  ===================== */

.rmc-home-split {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 960px) {
  .rmc-home-split { grid-template-columns: minmax(0, 1.45fr) minmax(280px, 22rem); }
}

.rmc-about h2 {
  margin: 0 0 0.8rem;
  font-family: var(--rmc-font-display);
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}
.rmc-about h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.08rem;
  font-family: var(--rmc-font-display);
  color: var(--rmc-ink);
  letter-spacing: -0.01em;
}
.rmc-about-list { margin: 0.5rem 0 0; padding-left: 1.15rem; color: var(--rmc-ink-muted); }
.rmc-about-list li { margin-bottom: 0.55rem; }
.rmc-about-list strong { color: var(--rmc-ink); }
.rmc-about-cta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.35rem; }

.rmc-home-aside { display: grid; gap: 1rem; }
.rmc-discord-card h2, .rmc-leaders-card h2 {
  margin: 0 0 0.35rem;
  font-family: var(--rmc-font-display);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

/* Weekly leaders */
.rmc-leaders-sub {
  margin: 1.2rem 0 0.3rem;
  font-size: 0.95rem;
  font-family: var(--rmc-font-display);
  color: var(--rmc-emerald);
  letter-spacing: -0.005em;
}
.rmc-leaders-note { margin: 0 0 0.55rem; font-size: 0.85rem; }
.rmc-leader-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.rmc-leader-row {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.4rem 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--rmc-r);
  background: var(--rmc-surface-2);
  border: 1px solid var(--rmc-divider);
  transition: border-color var(--rmc-fast) var(--rmc-ease);
}
.rmc-leader-row:hover { border-color: var(--rmc-outline); }
.rmc-leader-rank {
  grid-row: span 2;
  align-self: center;
  font-family: var(--rmc-font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--rmc-gold);
  text-align: center;
}
.rmc-leader-name { font-weight: 600; color: var(--rmc-ink); }
.rmc-leader-meta { grid-column: 2; color: var(--rmc-ink-muted); font-size: 0.8rem; }
.rmc-leader-player-name { margin: 0.35rem 0 0.15rem; font-size: 1.05rem; font-weight: 600; color: var(--rmc-ink); }
.rmc-leader-empty { color: var(--rmc-ink-muted); font-size: 0.88rem; padding: 0.35rem 0; }

/* =====================  Footer  ===================== */

.rmc-footer {
  border-top: 1px solid var(--rmc-divider);
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
  color: var(--rmc-ink-muted);
  font-size: 0.9rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 100%);
}
.rmc-footer a { color: var(--rmc-ink-muted); }
.rmc-footer a:hover { color: var(--rmc-gold); }
.rmc-footer-meta {
  display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: space-between;
  align-items: center;
}
.rmc-footer-mono {
  font-family: var(--rmc-mono); font-size: 0.78rem;
  color: var(--rmc-ink-faint); letter-spacing: 0.04em;
}

/* =====================  MARKET — hero & filters  ===================== */

.market-main { padding-bottom: 3rem; }
.market-page .market-main.container {
  width: min(1480px, 97vw);
}

.market-hero {
  padding: 1.5rem 0 1rem;
  position: relative;
}
.market-hero-lead {
  max-width: 38rem;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
}
.market-hero-top {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 1rem; margin-bottom: 0.85rem;
}
.market-hero h1 {
  font-family: var(--rmc-font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  font-weight: 600;
  margin: 0 0 0.35rem;
  letter-spacing: -0.025em;
}
.market-hero h1 .gold {
  background: linear-gradient(135deg, var(--rmc-gold-bright) 0%, var(--rmc-copper) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Summary strip */
.market-summary {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0.75rem 0.9rem;
  border-radius: var(--rmc-r-md);
  background:
    linear-gradient(135deg, rgba(245,185,66,0.06) 0%, transparent 55%),
    var(--rmc-surface);
  border: 1px solid var(--rmc-divider);
  box-shadow: var(--rmc-elev-1);
  margin-bottom: 1.1rem;
}
@media (min-width: 900px) {
  .market-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.market-summary-cell {
  display: grid; gap: 0.1rem;
  padding: 0.15rem 0.35rem;
}
.market-summary-cell + .market-summary-cell {
  border-left: 1px solid var(--rmc-divider);
}
.market-summary-label {
  font-family: var(--rmc-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rmc-ink-faint);
}
.market-summary-value {
  font-family: var(--rmc-font-display);
  font-size: 1.15rem;
  color: var(--rmc-gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.market-summary-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.72rem !important;
  font-family: var(--rmc-font) !important;
}
.market-summary-badges .rmc-badge { margin: 0; font-size: 0.68rem; padding: 0.12rem 0.45rem; }
.market-summary-meta {
  font-size: 0.74rem;
  color: var(--rmc-ink-muted);
}
@media (max-width: 899px) {
  .market-summary-cell:nth-child(odd) { border-left: none; }
  .market-summary-cell:nth-child(n+3) {
    border-top: 1px solid var(--rmc-divider);
    padding-top: 0.45rem;
  }
  .market-summary-cell--meta { grid-column: 1 / -1; border-left: none !important; border-top: 1px solid var(--rmc-divider); padding-top: 0.45rem; }
}

/* Filters — scrolls with page (not sticky) */
.market-filters.rmc-card {
  position: static;
  margin-bottom: 1.5rem;
  padding: 0.85rem 1rem;
}
.market-filters-more {
  margin-top: 0.75rem;
  border-top: 1px dashed var(--rmc-divider);
  padding-top: 0.5rem;
}
.market-filters-more > summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--rmc-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rmc-gold);
  padding: 0.35rem 0;
  user-select: none;
}
.market-filters-more > summary::-webkit-details-marker { display: none; }
.market-filters-more > summary::after {
  content: " ▾";
  opacity: 0.8;
}
.market-filters-more[open] > summary::after { content: " ▴"; }
.market-filters-more .market-filters-advanced {
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  border-top: none;
}
.market-filters-primary {
  display: grid;
  gap: 0.7rem 0.85rem;
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 720px) {
  .market-filters-primary {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto;
  }
}
.market-filters-advanced {
  display: grid;
  gap: 0.65rem 0.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 520px) {
  .market-filters-advanced { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .market-filters-advanced { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .market-filters-advanced { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.market-filter {
  display: grid;
  grid-template-rows: auto auto;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--rmc-ink-muted);
  min-width: 0;
}
.market-filter > span {
  font-family: var(--rmc-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rmc-ink-faint);
}
.market-filter input,
.market-filter select {
  width: 100%;
  min-width: 0;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--rmc-divider-strong);
  background: var(--rmc-bg);
  color: var(--rmc-ink);
  font-family: var(--rmc-font);
  font-size: 0.94rem;
  transition: border-color var(--rmc-fast) var(--rmc-ease),
              box-shadow var(--rmc-fast) var(--rmc-ease);
  min-height: 44px;
}
.market-filter input:focus,
.market-filter select:focus,
.market-filter input:focus-visible,
.market-filter select:focus-visible {
  outline: none;
  border-color: var(--rmc-gold);
  box-shadow: 0 0 0 3px rgba(245,185,66,0.18);
}
.market-filter input[type="number"] { -moz-appearance: textfield; }
.market-filter input[type="number"]::-webkit-outer-spin-button,
.market-filter input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.market-filter-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0 0.6rem;
  border-radius: 10px;
  background: var(--rmc-bg);
  border: 1px solid var(--rmc-divider-strong);
  cursor: pointer;
  transition: border-color var(--rmc-fast) var(--rmc-ease);
}
.market-filter-check:hover { border-color: var(--rmc-outline); }
.market-filter-check input { accent-color: var(--rmc-gold); width: 18px; height: 18px; }
.market-filter-check span { color: var(--rmc-ink); font-size: 0.9rem; white-space: nowrap; }

.market-filters-actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between;
  margin-top: 0.95rem; padding-top: 0.95rem;
  border-top: 1px dashed var(--rmc-divider);
}
#market-total {
  font-family: var(--rmc-mono);
  font-size: 0.82rem;
  color: var(--rmc-ink-muted);
  letter-spacing: 0.02em;
}

/* =====================  MARKET — table  ===================== */

.market-layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .market-layout {
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
    gap: 1.25rem 1.5rem;
  }
  .market-layout-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 5.5rem;
    align-self: start;
    max-height: calc(100vh - 6.25rem);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 185, 66, 0.28) transparent;
  }
}
.market-card {
  padding: 0;
  overflow: hidden;
}
.market-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--rmc-divider);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}
.market-card-head h2 {
  margin: 0;
  font-family: var(--rmc-font-display);
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.market-card-head .traffic {
  display: flex; gap: 5px;
}
.market-card-head .traffic span {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--rmc-divider-strong);
}
.market-card-head .traffic span:nth-child(1) { background: var(--rmc-red); }
.market-card-head .traffic span:nth-child(2) { background: var(--rmc-gold); }
.market-card-head .traffic span:nth-child(3) { background: var(--rmc-emerald); }

.market-table-wrap {
  overflow-x: auto;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 185, 66, 0.35) var(--rmc-bg-deep);
}
.market-table-wrap::-webkit-scrollbar { height: 8px; }
.market-table-wrap::-webkit-scrollbar-track {
  background: var(--rmc-bg-deep);
  border-radius: 4px;
}
.market-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(245, 185, 66, 0.32);
  border-radius: 4px;
}
.market-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.market-table thead {
  position: sticky; top: 0;
  background: var(--rmc-surface-2);
  z-index: 1;
}
.market-table th {
  text-align: left;
  padding: 0.55rem 0.65rem;
  color: var(--rmc-ink-faint);
  font-family: var(--rmc-mono);
  font-weight: 500;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--rmc-divider);
  white-space: nowrap;
}
.market-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--rmc-divider);
  vertical-align: middle;
  color: var(--rmc-ink-dim);
  white-space: nowrap;
}
.market-table tbody tr {
  cursor: pointer;
  position: relative;
  transition: background var(--rmc-fast) var(--rmc-ease);
}
.market-table tbody tr:nth-child(even) td { background: rgba(255,255,255,0.012); }
.market-table tbody tr:hover td { background: rgba(245, 185, 66, 0.06); }
.market-table tbody tr.active td {
  background: linear-gradient(90deg, rgba(93,211,158,0.10) 0%, rgba(93,211,158,0.02) 100%);
}
.market-table tbody tr.active td:first-child {
  position: relative;
  box-shadow: inset 3px 0 0 var(--rmc-emerald);
}
.market-table strong {
  display: block;
  color: var(--rmc-ink);
  font-weight: 600;
  font-size: 0.9rem;
}
.market-item-id {
  display: block;
  font-family: var(--rmc-mono);
  font-size: 0.68rem;
  color: var(--rmc-ink-faint);
  margin-top: 0.12rem;
  letter-spacing: 0.02em;
}
.market-item-link {
  color: inherit;
  text-decoration: none;
}
.market-item-link:hover strong {
  color: var(--rmc-gold);
  text-decoration: underline;
}
@media (max-width: 1279px) {
  .market-table .market-col-optional,
  .market-table tbody tr td:nth-child(5),
  .market-table tbody tr td:nth-child(7),
  .market-table tbody tr td:nth-child(9),
  .market-table tbody tr td:nth-child(10) {
    display: none;
  }
}
.market-price { color: var(--rmc-gold); font-weight: 600; font-variant-numeric: tabular-nums; }
.market-price--muted,
.market-selected-stat--muted {
  color: var(--rmc-ink-muted);
  font-weight: 500;
}
.market-table tbody tr td:nth-child(2),
.market-table tbody tr td:nth-child(3) { color: var(--rmc-sell); font-weight: 500; }
.market-table tbody tr td:nth-child(6),
.market-table tbody tr td:nth-child(7) { color: var(--rmc-buy); font-weight: 500; }
.market-table .market-change {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.market-table .market-change.up { color: var(--rmc-emerald); }
.market-table .market-change.down { color: var(--rmc-red); }
.market-table .market-change.flat { color: var(--rmc-ink-muted); font-weight: 500; }

/* Sticky first column on mobile */
@media (max-width: 720px) {
  .market-table { font-size: 0.85rem; }
  .market-table th:first-child,
  .market-table td:first-child {
    position: sticky; left: 0;
    background: var(--rmc-surface);
    z-index: 1;
    box-shadow: 4px 0 12px rgba(0,0,0,0.4);
  }
  .market-table tbody tr:hover td:first-child { background: var(--rmc-surface-2); }
  .market-table tbody tr.active td:first-child { background: var(--rmc-surface-2); }
}

.market-pagination {
  display: flex; flex-wrap: wrap; gap: 0.7rem;
  align-items: center; justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--rmc-divider);
}
#page-label { font-family: var(--rmc-mono); font-size: 0.82rem; color: var(--rmc-ink-muted); }

/* Loading + empty */
#market-loading {
  padding: 1.25rem;
  font-family: var(--rmc-mono);
  font-size: 0.85rem;
  color: var(--rmc-ink-muted);
}
.skeleton-rows {
  display: grid; gap: 0.5rem;
  padding: 1rem 1.25rem;
}
.skeleton-row {
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    var(--rmc-surface-2) 0%,
    var(--rmc-surface-3) 40%,
    var(--rmc-surface-2) 80%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
#market-empty {
  padding: 2rem 1.5rem;
  font-size: 0.95rem;
  color: var(--rmc-ink-muted);
  text-align: center;
}
.market-error {
  margin: 0 0 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--rmc-r);
  background: var(--rmc-red-dim);
  color: var(--rmc-red);
  border: 1px solid rgba(239, 91, 91, 0.32);
  font-size: 0.92rem;
}

/* Chart sidebar */
.market-layout-chart.market-chart-card {
  flex: 0 0 auto;
}

/* =====================  MARKET — chart "terminal"  ===================== */

.market-chart-card {
  padding: 0;
  margin-top: 0;
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(93,211,158,0.05) 0%, transparent 60%),
    linear-gradient(180deg, var(--rmc-surface) 0%, var(--rmc-bg-deep) 100%);
  border: 1px solid var(--rmc-outline-soft);
}
.market-chart-card > p.rmc-muted {
  padding: 2rem 1.5rem;
  text-align: center;
}
.market-chart-panel { margin-top: 0; padding: 1rem 1.25rem 1.25rem; }
.market-chart-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.7rem;
  padding: 0.65rem 0 1rem;
  border-bottom: 1px dashed var(--rmc-divider);
  margin-bottom: 1rem;
}
.market-chart-head > span {
  font-family: var(--rmc-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rmc-ink-faint);
}
.market-chart-title {
  font-family: var(--rmc-font-display);
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--rmc-ink);
}
.market-chart-expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--rmc-divider-strong);
  border-radius: 999px;
  background: var(--rmc-bg);
  color: var(--rmc-ink-muted);
  cursor: pointer;
  transition: color var(--rmc-fast) var(--rmc-ease), border-color var(--rmc-fast) var(--rmc-ease);
}
.market-chart-expand:hover {
  color: var(--rmc-gold);
  border-color: rgba(245, 185, 66, 0.45);
}
.market-chart-controls { display: flex; flex-wrap: wrap; gap: 0.65rem; }

/* Segmented control (Material You) */
.market-chart-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--rmc-bg);
  border: 1px solid var(--rmc-divider-strong);
}
.market-chart-toggle button {
  border: none;
  background: transparent;
  color: var(--rmc-ink-muted);
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--rmc-fast) var(--rmc-ease),
              color var(--rmc-fast) var(--rmc-ease);
  min-height: 32px;
}
.market-chart-toggle button:hover { color: var(--rmc-ink); }
.market-chart-toggle button.is-on {
  background: linear-gradient(180deg, var(--rmc-gold) 0%, var(--rmc-gold-dim) 100%);
  color: var(--rmc-ink-on-gold);
  box-shadow: var(--rmc-glow-gold);
}

.market-chart-canvas-wrap {
  height: 220px;
  position: relative;
}
.market-chart-canvas-wrap--clickable {
  cursor: zoom-in;
}
.market-chart-canvas-wrap--clickable::after {
  content: "Click to enlarge";
  position: absolute;
  right: 0.5rem;
  bottom: 0.45rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-family: var(--rmc-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rmc-ink-faint);
  background: rgba(8, 14, 10, 0.72);
  border: 1px solid var(--rmc-divider);
  pointer-events: none;
}
.market-chart-canvas-wrap--large {
  height: min(58vh, 520px);
}
@media (min-width: 900px) {
  .market-layout-chart .market-chart-canvas-wrap { height: 220px; }
}
@media (min-width: 1280px) {
  .market-layout-chart .market-chart-canvas-wrap { height: 260px; }
}
.market-chart-meta {
  margin: 0.65rem 0 0;
  font-family: var(--rmc-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rmc-ink-faint);
}
.market-reference-note {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--rmc-ink-faint);
}
.market-selected-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.85rem;
  margin: 0 0 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.market-selected-summary strong {
  font-size: 0.95rem;
  color: var(--rmc-ink);
}
.market-selected-stat {
  font-family: var(--rmc-mono);
  font-size: 0.78rem;
  color: var(--rmc-ink-soft);
}
.market-selected-stat em {
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rmc-ink-faint);
  margin-right: 0.35rem;
}
.market-selected-summary .market-reference-note {
  flex: 1 1 100%;
  margin: 0.15rem 0 0;
}

/* Chart enlarge modal */
body.market-chart-modal-open { overflow: hidden; }
.market-chart-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.market-chart-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 6, 0.82);
  backdrop-filter: blur(4px);
}
.market-chart-modal-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, 96vw);
  max-height: 92vh;
  overflow: auto;
  margin: 0;
}
.market-chart-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--rmc-divider-strong);
  border-radius: 999px;
  background: var(--rmc-bg);
  color: var(--rmc-ink-muted);
  cursor: pointer;
}
.market-chart-modal-close:hover {
  color: var(--rmc-ink);
  border-color: var(--rmc-ink-muted);
}
.market-chart-panel--large {
  padding: 1.25rem 1.5rem 1.5rem;
}

/* =====================  Wiki overrides on dark theme  ===================== */

.wiki-breadcrumb {
  color: var(--rmc-ink-muted);
  font-family: var(--rmc-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}
.wiki-breadcrumb a { color: var(--rmc-ink-muted); }
.wiki-breadcrumb a:hover { color: var(--rmc-gold); }

.wiki-shell { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 960px) { .wiki-shell { grid-template-columns: 16rem minmax(0, 1fr); } }
.wiki-sidebar {
  position: sticky; top: 5.5rem;
  border: 1px solid var(--rmc-divider);
  border-radius: var(--rmc-r-md);
  background: var(--rmc-surface);
  padding: 1.1rem 1.2rem;
  font-size: 0.92rem;
  box-shadow: var(--rmc-elev-1);
}
.wiki-sidebar-fold { min-width: 0; }
.wiki-sidebar-fold > summary {
  display: none;
  cursor: pointer;
  list-style: none;
  font-family: var(--rmc-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rmc-gold);
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--rmc-divider);
  border-radius: var(--rmc-r-md);
  background: var(--rmc-surface);
  box-shadow: var(--rmc-elev-1);
}
.wiki-sidebar-fold > summary::-webkit-details-marker { display: none; }
.wiki-sidebar-fold > summary::after {
  content: "▾";
  float: right;
  color: var(--rmc-ink-faint);
}
.wiki-sidebar-fold[open] > summary::after { content: "▴"; }
@media (max-width: 959px) {
  .wiki-sidebar {
    position: static;
    top: auto;
  }
  .wiki-sidebar-fold > summary { display: block; }
  .wiki-sidebar-fold[open] > summary {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
  .wiki-sidebar-fold[open] .wiki-sidebar {
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
}
.wiki-sidebar h2 {
  margin: 0 0 0.7rem;
  font-family: var(--rmc-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rmc-ink-faint);
  font-weight: 600;
}
.wiki-sidebar nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }
.wiki-sidebar a {
  color: var(--rmc-ink-muted); text-decoration: none; display: block;
  padding: 0.4rem 0.65rem;
  border-radius: 10px;
  border-left: 2px solid transparent;
  transition: color var(--rmc-fast) var(--rmc-ease),
              background var(--rmc-fast) var(--rmc-ease);
}
.wiki-sidebar a:hover { color: var(--rmc-ink); background: rgba(255,255,255,0.03); }
.wiki-sidebar a[aria-current="page"] {
  color: var(--rmc-gold);
  background: rgba(245, 185, 66, 0.10);
  border-left-color: var(--rmc-gold);
}
.wiki-sidebar .wiki-switch {
  margin-top: 1.1rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--rmc-divider);
}

.wiki-badge-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.85rem 0 0; }
.wiki-badge {
  display: inline-block; padding: 0.22rem 0.7rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 500;
  border: 1px solid var(--rmc-divider-strong);
  color: var(--rmc-ink);
}
.wiki-badge-player { background: rgba(127, 176, 105, 0.14); color: var(--rmc-sell); border-color: rgba(127,176,105,0.3); }
.wiki-badge-server { font-family: var(--rmc-mono); background: var(--rmc-bg); color: var(--rmc-gold); border-color: var(--rmc-outline); }
.wiki-badge-dev    { background: rgba(93, 211, 158, 0.12); color: var(--rmc-emerald); border-color: rgba(93,211,158,0.3); }

.wiki-content article {
  border: 1px solid var(--rmc-divider);
  border-radius: var(--rmc-r-md);
  background: var(--rmc-surface);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--rmc-elev-1);
}
.wiki-content article + article { margin-top: 1.25rem; }
.wiki-content h2 {
  margin-top: 0;
  scroll-margin-top: 6rem;
  font-family: var(--rmc-font-display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--rmc-ink);
}
.wiki-content h3 {
  margin-top: 1.5rem;
  font-size: 1.08rem;
  font-family: var(--rmc-font-display);
  letter-spacing: -0.01em;
  color: var(--rmc-ink);
}
.wiki-content p, .wiki-content li { color: var(--rmc-ink-muted); }
.wiki-content strong { color: var(--rmc-ink); }
.wiki-content a { color: var(--rmc-gold); }
.wiki-content a:hover { color: var(--rmc-gold-bright); text-decoration: underline; text-underline-offset: 3px; }

.wiki-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 0.85rem 0; }
.wiki-table th, .wiki-table td {
  border: 1px solid var(--rmc-divider);
  padding: 0.55rem 0.75rem;
  text-align: left;
  vertical-align: top;
  color: var(--rmc-ink-dim);
}
.wiki-table th {
  background: var(--rmc-surface-2);
  color: var(--rmc-ink-muted);
  font-family: var(--rmc-mono);
  font-weight: 500;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.wiki-table code { color: var(--rmc-gold); }

.wiki-callout {
  border-left: 3px solid var(--rmc-emerald);
  background: rgba(93, 211, 158, 0.07);
  padding: 0.85rem 1.1rem;
  border-radius: 0 var(--rmc-r) var(--rmc-r) 0;
  margin: 1.1rem 0;
  font-size: 0.95rem;
  color: var(--rmc-ink-dim);
}
.wiki-callout-warn { border-left-color: var(--rmc-gold); background: rgba(245, 185, 66, 0.07); }
.wiki-callout-dev  { border-left-color: var(--rmc-copper); background: rgba(201,123,79,0.08); }

.wiki-pre, pre.wiki-pre {
  background: var(--rmc-bg-deep);
  border: 1px solid var(--rmc-outline-soft);
  border-radius: var(--rmc-r);
  padding: 0.95rem 1.1rem;
  overflow-x: auto;
  font-family: var(--rmc-mono);
  font-size: 0.84rem;
  color: var(--rmc-emerald);
  line-height: 1.55;
  margin: 0.85rem 0;
  position: relative;
}
.wiki-pre::before {
  content: "$";
  position: absolute;
  left: 0.4rem; top: 0.6rem;
  color: var(--rmc-ink-faint);
  font-size: 0.78rem;
  opacity: 0.3;
}

.wiki-hub-card {
  border: 1px solid var(--rmc-divider);
  border-radius: var(--rmc-r-md);
  padding: 1.4rem 1.55rem;
  background: linear-gradient(165deg, var(--rmc-surface) 0%, var(--rmc-surface-2) 100%);
  box-shadow: var(--rmc-elev-1);
  transition: transform var(--rmc-mid) var(--rmc-ease),
              border-color var(--rmc-fast) var(--rmc-ease);
}
.wiki-hub-card:hover {
  transform: translateY(-2px);
  border-color: var(--rmc-outline);
  box-shadow: var(--rmc-elev-2), var(--rmc-glow-gold);
}

.wiki-page-title {
  font-family: var(--rmc-font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin: 0 0 0.45rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--rmc-ink);
}
.wiki-page-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--rmc-gold-bright) 0%, var(--rmc-copper) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 0.15em;
  display: inline-block;
}

.page-lead {
  font-size: 1.05rem;
  color: var(--rmc-ink-muted);
  max-width: 50rem;
  margin: 0 0 0.5rem;
}

/* =====================  Verify (link account)  ===================== */

.verify-main { padding-bottom: 3rem; max-width: 38rem; }
.verify-hero { margin: 2rem 0 1.5rem; }
.verify-hero h1 {
  font-family: var(--rmc-font-display);
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin: 0 0 0.55rem;
  letter-spacing: -0.025em;
}
.verify-card { margin-bottom: 1rem; padding: 1.5rem 1.6rem; }
.verify-form { display: grid; gap: 1rem; margin-top: 1rem; }
.verify-field { display: grid; gap: 0.4rem; }
.verify-field > span {
  font-family: var(--rmc-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rmc-ink-faint);
}
.verify-field input {
  width: 100%; padding: 0.85rem 1rem;
  border-radius: var(--rmc-r);
  border: 1px solid var(--rmc-divider-strong);
  background: var(--rmc-bg);
  color: var(--rmc-ink);
  font-family: var(--rmc-mono);
  font-size: 1.3rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-align: center;
  transition: border-color var(--rmc-fast) var(--rmc-ease),
              box-shadow var(--rmc-fast) var(--rmc-ease);
  min-height: 56px;
}
.verify-field input:focus,
.verify-field input:focus-visible {
  outline: none;
  border-color: var(--rmc-gold);
  box-shadow: 0 0 0 4px rgba(245, 185, 66, 0.18), 0 0 20px var(--rmc-gold-glow);
}
.verify-field input[type="email"], .verify-field input[type="password"] {
  font-family: var(--rmc-font);
  font-size: 1rem;
  letter-spacing: normal;
  text-transform: none;
  text-align: left;
}
.verify-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center; }
.verify-note { margin: 1rem 0 0; font-size: 0.88rem; color: var(--rmc-ink-muted); }
.verify-status {
  padding: 0.85rem 1rem;
  border-radius: var(--rmc-r);
  margin-bottom: 1rem;
  font-size: 0.94rem;
  font-family: var(--rmc-font);
}
.verify-status-err {
  background: var(--rmc-red-dim);
  color: var(--rmc-red);
  border: 1px solid rgba(239, 91, 91, 0.32);
}

/* Developer portal — red card disclaimer */
.rmc-redcard {
  display: block;
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  background: rgba(120, 18, 18, 0.55);
  border: 2px solid #ef5b5b;
  color: #ffc9c9;
  box-shadow: 0 0 0 1px rgba(239, 91, 91, 0.25), 0 8px 24px rgba(0, 0, 0, 0.35);
}
.rmc-redcard-title {
  margin: 0 0 0.45rem;
  font-family: var(--rmc-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff6b6b;
}
.rmc-redcard p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #ffd0d0;
}
.rmc-redcard code {
  background: rgba(0, 0, 0, 0.35);
  color: #ffe0e0;
  border: 1px solid rgba(239, 91, 91, 0.35);
}
.rmc-btn-danger {
  background: rgba(239, 91, 91, 0.18) !important;
  color: #ff8a8a !important;
  border: 1px solid rgba(239, 91, 91, 0.5) !important;
}
.rmc-btn-danger:hover {
  background: rgba(239, 91, 91, 0.32) !important;
  color: #ffd0d0 !important;
  border-color: rgba(239, 91, 91, 0.7) !important;
}

.verify-status-info {
  background: rgba(0, 229, 255, 0.08);
  color: var(--rmc-emerald);
  border: 1px solid rgba(93, 211, 158, 0.28);
}

.verify-stepper {
  display: flex; gap: 0.5rem;
  margin: 0 0 1.5rem;
  font-family: var(--rmc-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rmc-ink-faint);
}
.verify-step {
  flex: 1;
  padding: 0.5rem 0.7rem;
  border-radius: var(--rmc-r);
  background: var(--rmc-surface);
  border: 1px solid var(--rmc-divider);
  display: flex; align-items: center; gap: 0.55rem;
}
.verify-step .num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--rmc-surface-3);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--rmc-ink-muted);
  font-weight: 700;
}
.verify-step.is-active { border-color: var(--rmc-outline); color: var(--rmc-gold); }
.verify-step.is-active .num { background: var(--rmc-gold); color: var(--rmc-ink-on-gold); }

/* =====================  Player search + profile  ===================== */

.player-main { padding-bottom: 3rem; max-width: 52rem; }
.player-hero { margin: 2rem 0 1.5rem; }
.player-hero h1 {
  font-family: var(--rmc-font-display);
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin: 0 0 0.55rem;
  letter-spacing: -0.025em;
}
.player-search-card { margin-bottom: 1rem; padding: 1.35rem 1.45rem; }
.player-search-form { display: grid; gap: 0.5rem; }
.player-search-label {
  font-family: var(--rmc-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rmc-ink-faint);
}
.player-search-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.player-search-row input {
  flex: 1 1 14rem; min-width: 0;
  padding: 0.75rem 1rem;
  border-radius: var(--rmc-r);
  border: 1px solid var(--rmc-divider-strong);
  background: var(--rmc-bg);
  color: var(--rmc-ink);
  font-family: var(--rmc-font);
  font-size: 1rem;
  min-height: 48px;
  transition: border-color var(--rmc-fast) var(--rmc-ease),
              box-shadow var(--rmc-fast) var(--rmc-ease);
}
.player-search-row input:focus,
.player-search-row input:focus-visible {
  outline: none;
  border-color: var(--rmc-gold);
  box-shadow: 0 0 0 3px rgba(245, 185, 66, 0.18);
}
.player-search-hint { margin: 0.7rem 0 0; font-size: 0.88rem; color: var(--rmc-ink-muted); }

.player-results { list-style: none; margin: 0.85rem 0 0; padding: 0; display: grid; gap: 0.45rem; }
.player-result {
  display: flex; align-items: center; gap: 0.8rem; width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: var(--rmc-r);
  border: 1px solid var(--rmc-divider);
  background: var(--rmc-surface-2);
  color: var(--rmc-ink); cursor: pointer; text-align: left;
  font-family: var(--rmc-font); font-size: 0.95rem;
  transition: transform var(--rmc-fast) var(--rmc-ease),
              border-color var(--rmc-fast) var(--rmc-ease);
  min-height: 56px;
}
.player-result:hover {
  transform: translateY(-1px);
  border-color: var(--rmc-outline);
  background: var(--rmc-surface-3);
}
.player-result img {
  border-radius: 8px;
  image-rendering: pixelated;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px var(--rmc-divider-strong);
}
.player-result-verified {
  display: inline-block; margin-left: 0.5rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-family: var(--rmc-mono);
  font-size: 0.66rem; text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(93, 211, 158, 0.12);
  color: var(--rmc-emerald);
  border: 1px solid rgba(93, 211, 158, 0.28);
}

.player-page-status {
  padding: 0.85rem 1rem;
  border-radius: var(--rmc-r);
  margin-bottom: 1rem;
  font-size: 0.92rem;
}
.player-page-status-err {
  background: var(--rmc-red-dim);
  color: var(--rmc-red);
  border: 1px solid rgba(239, 91, 91, 0.32);
}

.player-profile { padding: 1.5rem 1.6rem; }
.player-profile-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.1rem;
  align-items: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px dashed var(--rmc-divider);
}
.player-avatar {
  width: 96px; height: 96px;
  border-radius: 14px;
  image-rendering: pixelated;
  background: var(--rmc-surface-2);
  box-shadow: 0 0 0 1px var(--rmc-outline), 0 8px 24px rgba(0,0,0,0.5);
}
#player-name {
  font-family: var(--rmc-font-display);
  font-size: 1.75rem;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--rmc-ink);
}
.player-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin: 0.4rem 0 0;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-family: var(--rmc-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--rmc-surface-2);
  color: var(--rmc-ink-muted);
  border: 1px solid var(--rmc-divider);
}
.player-badge-ok {
  background: rgba(93, 211, 158, 0.12);
  color: var(--rmc-emerald);
  border-color: rgba(93, 211, 158, 0.28);
}
.player-uuid {
  font-family: var(--rmc-mono);
  font-size: 0.78rem;
  word-break: break-all;
  margin: 0.45rem 0 0;
  color: var(--rmc-ink-faint);
  letter-spacing: 0.02em;
}

.player-stat-block {
  margin-top: 1.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rmc-divider);
}
.player-stat-block h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-family: var(--rmc-font-display);
  color: var(--rmc-ink);
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 0.5rem;
}
.player-stat-block h3::before {
  content: "";
  width: 4px; height: 18px;
  border-radius: 2px;
  background: var(--rmc-gold);
}

.player-mcmmo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  gap: 0.5rem;
  margin-top: 0.7rem;
}
.player-mcmmo-skill {
  border: 1px solid var(--rmc-divider);
  border-radius: var(--rmc-r);
  padding: 0.6rem 0.75rem;
  background: var(--rmc-surface-2);
  font-size: 0.82rem;
  color: var(--rmc-ink-muted);
  display: grid; gap: 0.15rem;
  transition: border-color var(--rmc-fast) var(--rmc-ease);
}
.player-mcmmo-skill:hover { border-color: var(--rmc-outline); }
.player-mcmmo-skill > span {
  font-family: var(--rmc-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rmc-ink-faint);
}
.player-mcmmo-skill strong {
  font-family: var(--rmc-font-display);
  font-size: 1.4rem;
  color: var(--rmc-ink);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

#networth-panel {
  padding: 1rem 1.2rem;
  border-radius: var(--rmc-r-md);
  background: linear-gradient(135deg, rgba(245,185,66,0.08) 0%, transparent 65%), var(--rmc-surface-2);
  border: 1px solid var(--rmc-outline-soft);
}
#networth-total {
  font-family: var(--rmc-font-display);
  font-size: 2rem;
  color: var(--rmc-gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.player-world-list { margin: 0; padding-left: 1.15rem; font-size: 0.92rem; }

/* =====================  Shops page  ===================== */

.shops-wrap { max-width: 60rem; margin: 0 auto; padding: 2rem 0 3rem; }
.shops-wrap h1 {
  font-family: var(--rmc-font-display);
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin: 0.4rem 0 0.45rem;
  letter-spacing: -0.025em;
}
.shops-wrap h2 {
  font-family: var(--rmc-font-display);
  font-size: 1.2rem;
  margin: 0 0 0.65rem;
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 0.6rem;
}
.shops-wrap h2::before {
  content: "";
  width: 4px; height: 22px;
  border-radius: 2px;
  background: var(--rmc-gold);
}
.shops-section { margin-top: 2rem; }

.shops-grid {
  display: grid; gap: 0.55rem;
  margin-top: 0.85rem;
}
.shop-row, .price-row, .leader-row {
  border: 1px solid var(--rmc-divider);
  border-radius: var(--rmc-r);
  padding: 0.85rem 1rem;
  font-size: 0.93rem;
  background: var(--rmc-surface);
  transition: border-color var(--rmc-fast) var(--rmc-ease),
              transform var(--rmc-fast) var(--rmc-ease);
}
.shop-row:hover, .price-row:hover { border-color: var(--rmc-outline); transform: translateY(-1px); }
.shop-row strong, .price-row strong {
  display: block;
  color: var(--rmc-ink);
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.muted-small {
  display: block;
  color: var(--rmc-ink-muted);
  font-family: var(--rmc-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.leader-row {
  display: flex; justify-content: space-between; gap: 0.5rem;
  padding: 0.65rem 1rem;
  color: var(--rmc-ink);
  font-size: 0.95rem;
}
.leader-row > span:first-child::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rmc-gold);
  margin-right: 0.55rem; vertical-align: middle;
}
.leader-row > span:last-child {
  font-family: var(--rmc-mono);
  font-variant-numeric: tabular-nums;
  color: var(--rmc-gold);
  font-weight: 600;
}
.shops-error {
  color: var(--rmc-red);
  background: var(--rmc-red-dim);
  padding: 0.85rem 1rem;
  border-radius: var(--rmc-r);
  border: 1px solid rgba(239,91,91,0.32);
}

/* =====================  Leaderboard page  ===================== */

.leaderboard-wrap { padding-bottom: 3rem; }
.leaderboard-sub {
  margin: 0.35rem 0 1.5rem;
  font-family: var(--rmc-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.leaderboard-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .leaderboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.leaderboard-panel {
  padding: 1.1rem 1.2rem 1.25rem;
  overflow: hidden;
}
.leaderboard-panel h2 {
  margin: 0 0 0.35rem;
  font-family: var(--rmc-font-display);
  font-size: 1.15rem;
}
.leaderboard-note {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
}
.leaderboard-note code {
  font-family: var(--rmc-mono);
  font-size: 0.82em;
  color: var(--rmc-gold-dim);
}
.leaderboard-summary-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0 0 1rem;
}
.leaderboard-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 5.5rem;
}
.leaderboard-stat-label {
  font-size: 0.75rem;
  color: var(--rmc-ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.leaderboard-stat-value {
  font-family: var(--rmc-mono);
  font-size: 1rem;
  font-weight: 600;
}
.leaderboard-table-wrap {
  overflow-x: auto;
  margin: 0 -0.25rem;
}
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.leaderboard-table th,
.leaderboard-table td {
  padding: 0.55rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid var(--rmc-divider);
}
.leaderboard-table th {
  font-family: var(--rmc-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rmc-ink-faint);
  font-weight: 600;
}
.leaderboard-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}
.leaderboard-table td:first-child {
  width: 2.5rem;
  font-family: var(--rmc-mono);
  color: var(--rmc-ink-muted);
  font-variant-numeric: tabular-nums;
}
.leaderboard-table td a {
  color: var(--rmc-ink);
  font-weight: 600;
  text-decoration: none;
}
.leaderboard-table td a:hover { color: var(--rmc-gold); }

.leaderboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
}
.leaderboard-tab {
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--rmc-outline);
  background: transparent;
  color: var(--rmc-muted);
  cursor: pointer;
}
.leaderboard-tab:hover { border-color: var(--rmc-gold-dim); color: var(--rmc-text); }
.leaderboard-tab.is-active {
  border-color: var(--rmc-gold);
  color: var(--rmc-gold);
  background: rgba(212, 168, 67, 0.08);
}
.lb-gold {
  font-family: var(--rmc-mono);
  font-variant-numeric: tabular-nums;
  color: var(--rmc-gold);
  white-space: nowrap;
}
.lb-mint-negative {
  font-family: var(--rmc-mono);
  font-variant-numeric: tabular-nums;
  color: #e07a6a;
  white-space: nowrap;
}

/* =====================  Server Reserve page  ===================== */

.reserve-wrap { padding-bottom: 3rem; }
.reserve-sub { margin-bottom: 0.35rem; }
.reserve-month-panel {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(245, 185, 66, 0.22);
  background: rgba(245, 185, 66, 0.04);
}
.reserve-month-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem 0.85rem;
}
.reserve-month-filter { margin: 0; min-width: 10rem; flex: 1 1 12rem; max-width: 16rem; }
.reserve-month-filter select { width: 100%; }
.reserve-month-note { margin: 0.55rem 0 0; font-size: 0.88rem; max-width: 52rem; }
.reserve-type-name { font-weight: 600; }
.reserve-type-code { display: block; font-size: 0.72rem; opacity: 0.65; margin-top: 0.1rem; }
.reserve-scope {
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 52rem;
  margin-bottom: 1.25rem;
  padding: 0.65rem 0.85rem;
  border-left: 3px solid var(--rmc-gold-dim, rgba(245, 185, 66, 0.45));
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 8px 8px 0;
}
.reserve-summary { margin-bottom: 1.25rem; }
.market-summary-value-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
}
.reserve-change {
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--rmc-mono, "JetBrains Mono", monospace);
  line-height: 1.2;
}
.reserve-change.flat { color: var(--rmc-ink-muted); font-weight: 500; }
.reserve-change-label {
  margin-top: 0.2rem;
  font-size: 0.72rem;
}
.reserve-payout-panel { margin-bottom: 1.25rem; padding: 1rem 1.1rem; }
.reserve-payout-panel h2 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.reserve-payout-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  margin-top: 0.75rem;
}
@media (min-width: 720px) {
  .reserve-payout-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.reserve-payout-cell {
  padding: 0.65rem 0.75rem;
  border-radius: var(--rmc-r-sm);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--rmc-divider);
}
.reserve-payout-label {
  font-size: 0.78rem;
  color: var(--rmc-ink-muted);
  margin-bottom: 0.2rem;
}
.reserve-payout-value {
  font-family: var(--rmc-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.reserve-payout-meta { margin: 0.75rem 0 0; font-size: 0.82rem; }
.reserve-range-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}
.reserve-range-controls .rmc-btn { padding: 0.35rem 0.6rem; font-size: 0.78rem; }
.reserve-range-controls .rmc-btn.is-active {
  background: rgba(245, 185, 66, 0.15);
  border-color: var(--rmc-gold);
  color: var(--rmc-gold-bright);
}
.reserve-towny-panel { margin-bottom: 1.25rem; padding: 1rem 1.1rem; }
.reserve-towny-panel h2 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.reserve-towny-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.75rem;
}
@media (min-width: 720px) {
  .reserve-towny-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.reserve-towny-cell {
  padding: 0.65rem 0.75rem;
  border-radius: var(--rmc-r-sm);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--rmc-divider);
}
.reserve-towny-label {
  font-size: 0.78rem;
  color: var(--rmc-ink-muted);
  margin-bottom: 0.2rem;
}
.reserve-towny-value {
  font-family: var(--rmc-mono);
  font-variant-numeric: tabular-nums;
  color: var(--rmc-emerald);
  font-weight: 600;
}
.reserve-towny-sub {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rmc-ink-faint);
  margin-top: 0.15rem;
}
.reserve-towny-all {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
}
.reserve-in { color: #00e5ff !important; }
.reserve-out { color: #ef5b5b !important; }
.reserve-convert { color: #a8b8b0; font-size: 0.92rem; }
.reserve-neg { color: #ef8f8f !important; }
.reserve-charts {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 900px) {
  .reserve-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.reserve-chart-panel { padding: 1rem 1.1rem 1.15rem; }
.reserve-chart-panel h2 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.reserve-note { font-size: 0.85rem; margin: 0 0 0.75rem; }
.reserve-chart-host {
  position: relative;
  height: 220px;
}
.reserve-empty { margin: 0.5rem 0 0; font-size: 0.88rem; }
.reserve-ledger-panel { margin-bottom: 1.25rem; padding: 1rem 1.1rem; }
.reserve-executive-panel { margin-bottom: 1.25rem; padding: 1rem 1.1rem; }
.reserve-executive-panel .reserve-details {
  max-width: 22rem;
  font-size: 0.82rem;
  color: var(--rmc-muted, #a1afa8);
  word-break: break-word;
}
.reserve-ledger-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 0.75rem;
}
.reserve-ledger-head h2 { margin: 0; font-size: 1.05rem; }
.reserve-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-end;
}
.reserve-filters .market-filter { min-width: 8rem; }
.reserve-table td code {
  font-size: 0.72rem;
  display: block;
  margin-bottom: 0.1rem;
}
.reserve-type-label {
  display: block;
  font-size: 0.78rem;
  color: var(--rmc-muted);
  max-width: 14rem;
}
.reserve-details {
  font-size: 0.82rem;
  color: var(--rmc-muted);
  max-width: 16rem;
  word-break: break-word;
}
.reserve-ledger-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
}
.reserve-ledger-pager { display: inline-flex; gap: 0.5rem; }
.reserve-glossary-panel { padding: 1rem 1.1rem; }
.reserve-glossary-panel h2 { margin: 0 0 0.75rem; font-size: 1.05rem; }
.reserve-glossary {
  display: grid;
  gap: 0.55rem;
}
@media (min-width: 720px) {
  .reserve-glossary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.reserve-glossary-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 0.45rem 0.65rem;
  align-items: baseline;
  font-size: 0.88rem;
}
.reserve-glossary-amt {
  font-family: var(--rmc-mono, "JetBrains Mono", monospace);
  font-size: 0.78rem;
  text-align: right;
  white-space: nowrap;
}
.reserve-glossary-dir {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* =====================  Servers page (matches verify card) ===================== */

/* Reused verify-main / verify-card classes — already styled */

/* =====================  Page entrance animations  ===================== */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
main > section,
main > header {
  animation: fade-up var(--rmc-slow) var(--rmc-ease) both;
}
main > * + * { animation-delay: 80ms; }
main > * + * + * { animation-delay: 160ms; }
main > * + * + * + * { animation-delay: 220ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  body::before { opacity: 0; }
}

/* =====================  Focus ring (a11y)  ===================== */

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--rmc-gold);
  outline-offset: 2px;
  border-radius: 10px;
}

/* =====================  Economy overview page  ===================== */

.economy-section-title { margin: 0 0 0.35rem; font-size: 1.15rem; }
.reserve-month-panel .economy-section-title { margin-bottom: 0.25rem; }
.economy-sub { margin-bottom: 0.75rem; max-width: 42rem; }
.economy-quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.economy-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  padding: 0.35rem;
  border: 1px solid var(--rmc-divider);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}
.economy-subnav-link {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--rmc-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.economy-subnav-link:hover {
  color: var(--rmc-text);
  background: rgba(255, 255, 255, 0.04);
}
.economy-subnav-link.is-active {
  color: var(--rmc-gold);
  background: rgba(245, 185, 66, 0.1);
}

/* Economy scope landing */
.economy-landing {
  max-width: 44rem;
  padding-bottom: 3rem;
}
.economy-landing-title {
  font-family: var(--rmc-font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.03em;
  margin: 0.35rem 0 0.5rem;
}
.economy-landing-lead {
  margin: 0 0 1.75rem;
  max-width: 36rem;
}
.economy-scope-nav {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .economy-scope-nav {
    grid-template-columns: 1fr 1fr;
  }
}
.economy-scope-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.85rem;
  row-gap: 0.2rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--rmc-divider);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(145deg, rgba(245, 185, 66, 0.06), rgba(255, 255, 255, 0.02));
  transition: border-color 0.15s, background 0.15s;
}
.economy-scope-card:hover {
  border-color: rgba(245, 185, 66, 0.45);
  background: linear-gradient(145deg, rgba(245, 185, 66, 0.1), rgba(255, 255, 255, 0.03));
}
.economy-scope-mark {
  grid-row: 1 / span 2;
  align-self: center;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-family: var(--rmc-font-mono, "JetBrains Mono", monospace);
  font-weight: 700;
  font-size: 1rem;
  color: #000d1a;
  background: var(--rmc-gold);
}
.economy-scope-mark--claims {
  background: #7ecf7e;
}
.economy-scope-mark--official {
  background: #7eb8da;
}
.economy-scope-mark--all {
  background: #c9b27a;
}
.economy-scope-label {
  font-family: var(--rmc-font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.economy-scope-desc {
  font-size: 0.9rem;
  color: var(--rmc-muted);
  line-height: 1.4;
}
.economy-landing-foot {
  margin-top: 1.75rem;
  font-size: 0.9rem;
}
.economy-server-list {
  display: grid;
  gap: 0.5rem;
}
.economy-server-row {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rmc-divider);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.02);
}
.economy-server-row:hover {
  border-color: rgba(245, 185, 66, 0.4);
}
.economy-server-name {
  font-weight: 600;
  font-family: var(--rmc-font-display);
}
.economy-server-meta {
  font-size: 0.85rem;
  color: var(--rmc-muted);
}
.economy-server-id {
  font-family: var(--rmc-font-mono, "JetBrains Mono", monospace);
  font-size: 0.75rem;
  color: var(--rmc-gold);
}
.list-scope h2 { margin: 0 0 0.75rem; font-size: 1.25rem; }
.list-group { margin: 0 0 1.25rem; }
.list-group h3 { margin: 0 0 0.35rem; font-size: 0.95rem; color: #c9b27a; font-weight: 600; }
.list-lines { margin: 0; padding: 0; list-style: none; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.85rem; line-height: 1.55; }
.list-lines li { display: flex; gap: 0.5rem; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,0.06); padding: 0.2rem 0; }
.list-lines .lbl { color: #a1afa8; }
.list-lines .val { color: #00e5ff; white-space: nowrap; }

.generation-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0 0.15rem 0 0.35rem;
  padding: 0.15rem;
  border: 1px solid var(--rmc-divider);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  vertical-align: middle;
}
.generation-switch--nav {
  flex-shrink: 0;
}
.generation-switch-btn {
  display: inline-block;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--rmc-muted);
  line-height: 1;
}
.generation-switch-btn:hover {
  color: var(--rmc-text);
  background: rgba(255, 255, 255, 0.05);
}
.generation-switch-btn.is-active {
  color: #000d1a;
  background: linear-gradient(135deg, var(--rmc-gold-bright, #00e5ff), var(--rmc-copper, #ffd54a));
}
.economy-audit-panel { margin-bottom: 1.25rem; }
.economy-audit-lead { margin: 0.35rem 0 0.75rem; max-width: 46rem; }
.economy-audit-summary {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-left: 3px solid #00e5ff;
  background: rgba(93, 211, 158, 0.06);
  font-size: 0.92rem;
  line-height: 1.5;
}
.economy-audit-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .economy-audit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.economy-audit-block-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.economy-audit-block-note {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  line-height: 1.45;
}
.economy-audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.economy-audit-table th {
  text-align: left;
  font-weight: 500;
  color: var(--rmc-muted);
  padding: 0.4rem 0.5rem 0.4rem 0;
  vertical-align: top;
  width: 46%;
}
.economy-audit-table td {
  padding: 0.4rem 0;
  vertical-align: top;
}
.economy-audit-value,
.economy-audit-value-link {
  font-family: var(--rmc-mono);
  font-variant-numeric: tabular-nums;
  color: var(--rmc-text);
  font-weight: 600;
  text-decoration: none;
}
.economy-audit-value-link:hover { color: var(--rmc-gold); text-decoration: underline; }
.economy-audit-meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--rmc-muted);
  line-height: 1.35;
}
.economy-hero { margin-bottom: 1.25rem; }
.economy-hero-cell .market-summary-value { font-size: clamp(1.35rem, 3vw, 1.85rem); }
.economy-alert {
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--rmc-gold);
  font-size: 0.92rem;
  line-height: 1.5;
}
.economy-alert--ok {
  border-left-color: #00e5ff;
  background: rgba(93, 211, 158, 0.06);
}
.economy-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .economy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .economy-panel--wide { grid-column: 1 / -1; }
  .economy-panel--leaderboard { min-height: 12rem; }
}
.economy-panel { padding: 1rem 1.1rem; }
.economy-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.75rem;
}
.economy-panel-head h2 { margin: 0; font-size: 1.05rem; }
.economy-panel-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--rmc-gold);
  text-decoration: none;
}
.economy-panel-link:hover { text-decoration: underline; }
.economy-subhead {
  margin: 1rem 0 0.55rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--rmc-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.economy-note { font-size: 0.88rem; margin: 0 0 0.75rem; }
.economy-mtd { margin-bottom: 0.75rem; }
.economy-chart-wrap {
  position: relative;
  height: 220px;
  margin: 0.5rem 0 0.25rem;
}
.economy-dl { margin: 0; }
.economy-dl-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 0.35rem 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--rmc-divider);
  font-size: 0.9rem;
}
.economy-dl-row:last-child { border-bottom: none; }
.economy-dl-row dt { margin: 0; color: var(--rmc-muted); font-weight: 500; }
.economy-dl-row dd {
  margin: 0;
  text-align: right;
  font-family: var(--rmc-mono);
  font-variant-numeric: tabular-nums;
  color: var(--rmc-text);
}
.economy-dl-meta {
  display: block;
  font-family: var(--rmc-sans);
  font-size: 0.78rem;
  color: var(--rmc-muted);
  margin-top: 0.15rem;
}
.economy-type-bars { display: flex; flex-direction: column; gap: 0.55rem; }
.economy-type-row {
  display: grid;
  grid-template-columns: minmax(6rem, 9rem) 1fr auto;
  gap: 0.5rem 0.65rem;
  align-items: center;
  font-size: 0.85rem;
}
.economy-type-label { font-weight: 600; }
.economy-type-bar-track {
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.economy-type-bar-fill {
  height: 100%;
  border-radius: 999px;
  min-width: 2px;
}
.economy-type-amt {
  font-family: var(--rmc-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 0.82rem;
}
.economy-table-wrap { overflow-x: auto; }
.economy-table-wrap--wide .leaderboard-table { min-width: 960px; }
.economy-gold-supply-hero { margin-bottom: 0.5rem; }
.economy-table-wrap .leaderboard-table { font-size: 0.88rem; }

.economy-note-panel {
  margin-bottom: 1.25rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(245, 185, 66, 0.28);
  background: rgba(245, 185, 66, 0.03);
}
.economy-note-panel--over {
  border-color: rgba(239, 91, 91, 0.35);
  background: rgba(239, 91, 91, 0.04);
}
.economy-note-panel h2 { margin: 0.35rem 0 0.5rem; font-size: 1.25rem; }
.economy-note-summary { max-width: 52rem; margin: 0 0 1rem; line-height: 1.55; font-size: 0.92rem; }
.economy-note-hero { margin-bottom: 0.5rem; }
.economy-note-dl { margin-top: 0.75rem; }
.economy-bonds-intro { margin: 1rem 0 1.25rem; }
.economy-bonds-intro h2 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.bonds-about-card { margin: 0 0 1.5rem; }
.bonds-about-lead { max-width: 52rem; line-height: 1.55; margin: 0 0 0.75rem; }
.bonds-about-grid {
  display: grid;
  gap: 1rem;
  margin-top: 0.75rem;
}
@media (min-width: 720px) {
  .bonds-about-grid { grid-template-columns: 1fr 1fr; }
}
.bonds-about-block h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.bonds-about-block p { margin: 0; line-height: 1.5; font-size: 0.92rem; }
.economy-over-issue { font-weight: 700; }
.economy-dynamic-tax--active {
  border-color: rgba(239, 91, 91, 0.45);
  background: rgba(239, 91, 91, 0.08);
  border-radius: 0.5rem;
  padding: 0.35rem 0.5rem;
}
.economy-dynamic-tax { font-weight: 700; font-size: 1.35rem; }

/* Department of The /Mint */
.mint-wrap { padding-bottom: 3rem; }
.mint-hero { margin-bottom: 1.25rem; }
.mint-hero h1 { margin: 0.35rem 0 0.5rem; }
.mint-sub { margin: 0 0 0.5rem; }
.mint-era-note {
  margin: 0 0 1.25rem;
  padding: 0.65rem 0.85rem;
  border-left: 3px solid var(--rmc-gold);
  background: rgba(245, 185, 66, 0.04);
  font-size: 0.9rem;
  max-width: 42rem;
}
.mint-summary { margin-bottom: 1.25rem; }
.mint-summary--primary {
  margin-bottom: 0.75rem;
}
.mint-summary--primary .market-summary-value {
  font-size: 1.65rem;
}
.mint-summary--secondary {
  margin-bottom: 1.25rem;
  opacity: 0.95;
}
.mint-summary--secondary .market-summary-value {
  font-size: 1.15rem;
}
.mint-transparency {
  margin-bottom: 1.25rem;
  padding: 1.15rem 1.2rem;
  border-color: rgba(245, 185, 66, 0.22);
}
.mint-transparency h2 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.35rem;
}
.mint-transparency-lead {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 52rem;
}
.mint-transparency-note {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  max-width: 52rem;
}
.mint-transparency-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .mint-transparency-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .mint-transparency-grid { grid-template-columns: repeat(3, 1fr); }
}
.mint-transparency-block h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}
.mint-transparency-foot {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
}
.mint-dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
  font-size: 0.88rem;
}
.mint-dl dt {
  margin: 0;
  color: var(--rmc-ink-faint);
}
.mint-dl dd {
  margin: 0;
  font-family: var(--rmc-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.mint-dl-total {
  font-weight: 600;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem;
}
.mint-section-title { margin: 0 0 0.35rem; font-size: 1.1rem; }
.mint-peg-lead { margin: 0 0 0.65rem; font-size: 0.9rem; }
.mint-peg-list {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  font-size: 0.92rem;
}
.mint-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .mint-grid { grid-template-columns: 1fr 1fr; }
}
.mint-panel h2 { margin: 0 0 0.35rem; font-size: 1.15rem; }
.mint-note { margin: 0 0 0.85rem; font-size: 0.88rem; }
.mint-storage-grid { margin-top: 0.25rem; }
.mint-stat-small { font-size: 0.95rem !important; }
.mint-activity-table .mint-when {
  font-size: 0.82rem;
  white-space: nowrap;
  color: var(--rmc-ink-faint);
}
.mint-kind-in { color: var(--rmc-gold-dim); }
.mint-kind-out { color: var(--rmc-ink-muted); }
.mint-footer-links {
  margin-top: 2rem;
  font-size: 0.88rem;
  text-align: center;
}
.mint-ledger-panel {
  margin-top: 1.25rem;
  padding: 1.1rem 1.15rem;
}
.mint-ledger-panel h2 { margin: 0 0 0.35rem; font-size: 1.2rem; }
.mint-ledger-status { margin: 0 0 0.75rem; font-size: 0.88rem; }
.mint-ledger-wrap { max-height: 32rem; overflow-y: auto; }
.mint-ledger-actions {
  margin-top: 0.85rem;
  display: flex;
  justify-content: center;
}
.mint-row-num {
  font-family: var(--rmc-mono);
  font-size: 0.82rem;
  color: var(--rmc-ink-faint);
}
.mint-provenance-warning {
  margin-bottom: 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(212, 168, 67, 0.35);
  background: rgba(212, 168, 67, 0.08);
}
.mint-provenance-warning-title { margin: 0 0 0.35rem; }
.mint-provenance-warning-body { margin: 0; font-size: 0.88rem; line-height: 1.55; }
.mint-gold-found-row { cursor: pointer; }
.mint-gold-found-row:hover td { background: rgba(255, 255, 255, 0.03); }
.mint-gold-found-row--active td { background: rgba(212, 168, 67, 0.1); }
.mint-item-events {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--rmc-border);
}
.mint-item-events h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.mint-item-events-status { margin: 0 0 0.65rem; font-size: 0.85rem; }
.mint-item-events-table .mint-loc {
  font-family: var(--rmc-mono);
  font-size: 0.78rem;
  color: var(--rmc-ink-muted);
}

/* Circulating balances */
.balances-wrap { padding-bottom: 3rem; }
.balances-hero { margin-bottom: 1.25rem; }
.balances-hero h1 { margin: 0.35rem 0 0.5rem; }
.balances-sub { margin: 0 0 0.5rem; }
.balances-lead {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 46rem;
}
.balances-summary { margin-bottom: 1.25rem; }
.balances-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .balances-grid { grid-template-columns: 1fr 1fr; }
  .balances-panel--wide { grid-column: 1 / -1; }
}
.balances-panel h2 { margin: 0 0 0.35rem; font-size: 1.15rem; }
.balances-note { margin: 0 0 0.85rem; font-size: 0.88rem; }
.balances-footer-links {
  margin-top: 2rem;
  font-size: 0.88rem;
  text-align: center;
}

/* Daily report */
.daily-report-wrap { padding-bottom: 3rem; }
.daily-report-stale {
  margin: 0.75rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 180, 80, 0.35);
  background: rgba(255, 180, 80, 0.08);
  color: #f0c080;
  font-size: 0.92rem;
  line-height: 1.5;
}
.daily-report-list { display: grid; gap: 1.25rem; margin-top: 1.25rem; }
.daily-report-day { padding: 1.25rem; }
.daily-report-day-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem 1rem;
  margin-bottom: 0.75rem;
}
.daily-report-day-head h2 { margin: 0; font-size: 1.15rem; }
.daily-report-badge {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rmc-ink-muted);
  border: 1px solid var(--rmc-border);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}
.daily-report-block + .daily-report-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rmc-border);
}
.daily-report-section-title { margin: 0 0 0.35rem; font-size: 1rem; color: var(--rmc-gold); }
.daily-report-summary { margin: 0 0 0.5rem; font-weight: 600; }
.daily-report-body p,
.daily-report-body .daily-report-bullet { margin: 0.35rem 0; font-size: 0.92rem; line-height: 1.55; }
.daily-report-h3 { margin: 0.75rem 0 0.35rem; font-size: 0.95rem; }
.daily-report-h4 { margin: 0.5rem 0 0.25rem; font-size: 0.88rem; color: var(--rmc-ink-muted); }

/* =====================  HEALTH — charts + uptime  ===================== */
.health-ops-note { max-width: 42rem; font-size: 0.92rem; line-height: 1.55; margin-top: 0.75rem; }
.health-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-family: var(--rmc-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 0.35rem;
}
.health-badge--on { color: #00e5ff; border: 1px solid rgba(0, 229, 255, 0.35); background: rgba(0, 229, 255, 0.08); }
.health-badge--off { color: var(--rmc-muted); border: 1px solid var(--rmc-border); background: rgba(255, 255, 255, 0.03); }
.health-timeline { margin-top: 1.25rem; }
.health-timeline-grid { display: flex; flex-direction: column; gap: 0.85rem; }
.health-timeline-host-label { font-size: 0.78rem; font-family: var(--rmc-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--rmc-muted); margin-bottom: 0.35rem; }
.health-timeline-track {
  position: relative;
  height: 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--rmc-border);
  overflow: hidden;
}
.health-timeline-bar {
  position: absolute;
  top: 1px;
  bottom: 1px;
  border-radius: 4px;
  opacity: 0.92;
  min-width: 2px;
}

/* =====================  Plugins catalog  ===================== */

.plugins-page .plugins-main {
  max-width: 58rem;
  padding-bottom: 4rem;
}

.plugins-hero {
  margin: 2.5rem 0 2.25rem;
  max-width: 40rem;
}
.plugins-hero-brand {
  margin: 0;
  font-family: var(--rmc-font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--rmc-ink);
}
.plugins-hero h1 {
  margin: 0.65rem 0 0.85rem;
  font-family: var(--rmc-font-display);
  font-size: clamp(1.45rem, 3.2vw, 1.95rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--rmc-ink-muted);
}
.plugins-hero-accent {
  background: linear-gradient(135deg, var(--rmc-gold-bright), var(--rmc-copper));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 650;
}
.plugins-hero-lead {
  margin: 0 0 1.35rem;
  color: var(--rmc-ink-muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 36rem;
}
.plugins-hero-paper {
  margin: -0.55rem 0 1.25rem;
  color: var(--rmc-ink-muted);
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 36rem;
}
.plugins-hero-paper a {
  color: var(--rmc-gold);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
.plugins-hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.1rem;
}
.plugins-hero-link {
  color: var(--rmc-gold);
  font-size: 0.95rem;
  text-decoration: none;
}
.plugins-hero-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.plugins-section-title {
  margin: 0 0 0.55rem;
  font-family: var(--rmc-font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.plugins-section-lead {
  margin: 0 0 1.15rem;
  max-width: 40rem;
  color: var(--rmc-ink-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}
.plugins-section-lead a { color: var(--rmc-gold); }
.plugins-section-lead code {
  font-family: var(--rmc-mono);
  font-size: 0.86em;
  color: var(--rmc-gold);
}

.plugins-pitch {
  margin: 0 0 2.25rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--rmc-divider);
}
.plugins-cover-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
  max-width: 42rem;
}
.plugins-cover-list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--rmc-ink-muted);
  line-height: 1.5;
  font-size: 0.98rem;
}
.plugins-cover-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 1px;
  background: var(--rmc-gold);
}
.plugins-cover-list strong { color: var(--rmc-ink); }

.plugins-catalog-group {
  grid-column: 1 / -1;
  margin: 1.5rem 0 0.35rem;
  font-family: var(--rmc-font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rmc-gold);
}
.plugins-catalog-group:first-child { margin-top: 0; }

.plugins-intro {
  margin: 0 0 2.25rem;
  padding: 1.35rem 1.5rem 1.45rem;
  border-radius: var(--rmc-r-md);
  border: 1px solid var(--rmc-divider);
  background: rgba(255, 255, 255, 0.02);
  max-width: 40rem;
}
.plugins-intro-title {
  margin: 0 0 0.85rem;
  font-family: var(--rmc-font-display);
  font-size: 1.05rem;
  font-weight: 600;
}
.plugins-order {
  margin: 0 0 1rem;
  padding: 0 0 0 1.15rem;
  display: grid;
  gap: 0.55rem;
  color: var(--rmc-ink);
  line-height: 1.45;
}
.plugins-order li::marker {
  color: var(--rmc-gold);
  font-weight: 600;
}
.plugins-intro-note {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--rmc-ink-muted);
}

.plugins-catalog {
  display: grid;
  gap: 1.15rem;
}
/* Sections are a11y wrappers only — children participate in the catalog grid. */
.plugins-catalog-section {
  display: contents;
}
@media (min-width: 720px) {
  .plugins-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.35rem;
  }
}
.plugins-catalog-loading {
  grid-column: 1 / -1;
  margin: 0;
}

.plugins-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.35rem 1.4rem 1.4rem;
  border-radius: var(--rmc-r-md);
  border: 1px solid var(--rmc-divider);
  background: linear-gradient(165deg, rgba(255,255,255,0.03) 0%, var(--rmc-surface) 55%);
  min-height: 100%;
}
.plugins-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}
.plugins-card-title {
  margin: 0;
  font-family: var(--rmc-font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.plugins-card-title a {
  color: inherit;
  text-decoration: none;
}
.plugins-card-title a:hover { color: var(--rmc-gold); }
.plugins-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 185, 66, 0.35);
  background: rgba(245, 185, 66, 0.1);
  font-family: var(--rmc-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rmc-gold);
}
.plugins-card-badge--soon {
  opacity: 0.65;
  border-color: var(--rmc-divider);
  background: rgba(255,255,255,0.04);
  color: var(--rmc-ink-muted);
}
.plugins-card-blurb {
  margin: 0;
  flex: 1;
  color: var(--rmc-ink-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.plugins-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 0.15rem;
}
.plugins-card-actions .rmc-btn {
  padding: 0.55rem 0.95rem;
  font-size: 0.88rem;
}
.plugins-card-guide {
  color: var(--rmc-gold);
  font-size: 0.92rem;
  text-decoration: none;
}
.plugins-card-guide:hover { text-decoration: underline; }
.plugins-card-meta {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--rmc-ink-faint, var(--rmc-ink-muted));
}
.plugins-card-meta a { color: var(--rmc-gold); }

.plugins-footer-note {
  margin: 2.5rem 0 0;
  max-width: 40rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--rmc-ink-muted);
}
.plugins-footer-note a { color: var(--rmc-gold); }
.plugins-footer-note code {
  font-family: var(--rmc-mono);
  font-size: 0.82em;
}


/* =====================  2026-08-06 primary + votes (public Ava chat removed)  ===================== */
.rmc-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.rmc-vote-grid {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  text-align: left;
}
@media (min-width: 720px) {
  .rmc-vote-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.rmc-vote-grid > li { margin: 0; padding: 0; }
.rmc-vote-card {
  height: 100%;
  gap: 0.65rem;
  justify-content: flex-start;
}
.rmc-vote-card::after {
  margin-left: auto;
}
.rmc-vote-num {
  font-family: var(--rmc-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--rmc-gold);
  min-width: 1.5rem;
}
.rmc-vote-name {
  flex: 1;
  min-width: 0;
}
