/* Rusty on Mars — public player landing (not Sentinel dashboard) */
:root {
  --rl-bg: #0c0604;
  --rl-bg-mid: #1a0c08;
  --rl-sand: #c47a3a;
  --rl-ember: #ff6b35;
  --rl-blood: #c41e3a;
  --rl-gold: #f0c14b;
  --rl-text: #f6ebe0;
  --rl-muted: #b89a86;
  --rl-online: #5ddea0;
  --rl-offline: #ff6b6b;
  --rl-loading: #f0c14b;
  --rl-panel: rgba(28, 12, 8, 0.72);
  --rl-border: rgba(255, 140, 80, 0.22);
  --rl-font: "Rajdhani", system-ui, sans-serif;
  --rl-display: "Orbitron", var(--rl-font);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.rl-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--rl-font);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--rl-text);
  background: var(--rl-bg);
  line-height: 1.45;
}

.rl-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.rl-bg-img {
  position: absolute;
  inset: -4%;
  background:
    center / cover no-repeat url("assets/mars-01.jpg"),
    radial-gradient(ellipse at 50% 20%, #5a2010 0%, #120804 70%);
  filter: saturate(1.15) contrast(1.05);
  animation: rl-drift 48s ease-in-out infinite alternate;
}

.rl-bg-dust {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 6, 4, 0.35) 0%, rgba(12, 6, 4, 0.55) 40%, rgba(12, 6, 4, 0.92) 100%),
    radial-gradient(ellipse 80% 50% at 70% 10%, rgba(255, 100, 40, 0.18), transparent 55%);
}

.rl-bg-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.65);
}

@keyframes rl-drift {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, 1%, 0); }
}

.rl-wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* Top bar */
.rl-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 5, 3, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rl-border);
}

.rl-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}

.rl-brand {
  font-family: var(--rl-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--rl-text);
  text-transform: uppercase;
}

.rl-brand span {
  color: var(--rl-ember);
}

.rl-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  align-items: center;
}

.rl-nav a {
  color: var(--rl-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.rl-nav-discord {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--rl-ember) 50%, transparent);
  color: var(--rl-ember) !important;
}

/* Hero */
.rl-hero {
  padding: 3.5rem 0 2.5rem;
  text-align: left;
}

.rl-kicker {
  font-family: var(--rl-display);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rl-sand);
  margin: 0 0 0.75rem;
}

.rl-hero h1 {
  font-family: var(--rl-display);
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 1rem;
  text-shadow: 0 0 40px rgba(255, 80, 20, 0.35);
}

.rl-hero h1 em {
  font-style: normal;
  color: var(--rl-ember);
}

.rl-tagline {
  max-width: 36rem;
  font-size: 1.2rem;
  color: var(--rl-muted);
  margin: 0 0 1.5rem;
}

.rl-tagline strong {
  color: var(--rl-gold);
}

.rl-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.rl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-family: var(--rl-font);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}

.rl-btn:hover {
  transform: translateY(-1px);
}

.rl-btn--primary {
  background: linear-gradient(135deg, var(--rl-ember), var(--rl-blood));
  color: #fff8f2;
  box-shadow: 0 0 24px rgba(255, 80, 30, 0.35);
}

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

.rl-btn--ghost:hover {
  border-color: var(--rl-ember);
  color: var(--rl-ember);
}

.rl-btn--sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
}

.rl-live-line {
  font-size: 0.95rem;
  color: var(--rl-muted);
  margin: 0;
}

.rl-live-line strong.online {
  color: var(--rl-online);
}

.rl-live-line strong.offline {
  color: var(--rl-offline);
}

/* Sections */
.rl-section {
  padding: 2.5rem 0 3rem;
}

.rl-section--bleed {
  background: linear-gradient(180deg, transparent, rgba(40, 12, 8, 0.55), transparent);
  border-top: 1px solid var(--rl-border);
  border-bottom: 1px solid var(--rl-border);
}

.rl-section-head h2 {
  font-family: var(--rl-display);
  font-size: clamp(1.45rem, 3.5vw, 1.9rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  color: var(--rl-gold);
}

.rl-section-head p {
  margin: 0 0 1.5rem;
  color: var(--rl-muted);
  max-width: 40rem;
}

/* Server cards */
.rl-server-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.rl-card {
  border-radius: 18px;
  border: 1px solid var(--rl-border);
  background: var(--rl-panel);
  backdrop-filter: blur(10px);
  padding: 1.15rem 1.25rem 1.25rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.rl-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rl-ember), var(--rl-gold), transparent);
  opacity: 0.85;
}

.rl-card.is-online::before {
  background: linear-gradient(90deg, var(--rl-online), var(--rl-ember), transparent);
}

.rl-card.is-offline::before {
  background: linear-gradient(90deg, var(--rl-offline), transparent);
}

.rl-card.is-loading::before {
  background: linear-gradient(90deg, var(--rl-loading), var(--rl-ember), transparent);
}

.rl-card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.rl-card-type {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rl-sand);
}

.rl-card-title {
  font-family: var(--rl-display);
  font-size: 1.15rem;
  margin: 0.2rem 0 0;
  letter-spacing: 0.03em;
}

.rl-pill {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.is-online .rl-pill {
  color: var(--rl-online);
  border-color: color-mix(in srgb, var(--rl-online) 45%, transparent);
  background: color-mix(in srgb, var(--rl-online) 12%, transparent);
}

.is-offline .rl-pill {
  color: var(--rl-offline);
  border-color: color-mix(in srgb, var(--rl-offline) 45%, transparent);
  background: color-mix(in srgb, var(--rl-offline) 12%, transparent);
}

.is-loading .rl-pill {
  color: var(--rl-loading);
  border-color: color-mix(in srgb, var(--rl-loading) 45%, transparent);
}

.rl-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rl-bg);
  background: var(--rl-gold);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-bottom: 0.35rem;
}

.rl-badge--vanilla {
  background: var(--rl-muted);
  color: var(--rl-bg);
}

.rl-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin: 0.75rem 0 1rem;
}

.rl-stats div {
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.rl-stats em {
  display: block;
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rl-muted);
  margin-bottom: 0.15rem;
}

.rl-stats strong {
  font-size: 1.15rem;
  font-weight: 700;
}

.rl-join {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.rl-join code {
  flex: 1 1 auto;
  min-width: 12rem;
  font-size: 0.78rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  white-space: nowrap;
}

.rl-updated,
.rl-muted,
.rl-fine,
.rl-faction-note {
  color: var(--rl-muted);
  font-size: 0.92rem;
}

.rl-updated {
  margin-top: 1rem;
}

/* Factions */
.rl-faction-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.rl-faction {
  border-radius: 14px;
  padding: 1rem 1.1rem;
  border: 1px solid var(--rl-border);
  background: rgba(20, 8, 6, 0.65);
}

.rl-faction h3 {
  font-family: var(--rl-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
  color: var(--rl-ember);
}

.rl-faction p {
  margin: 0 0 0.65rem;
  color: var(--rl-muted);
  font-size: 0.98rem;
}

.rl-faction-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rl-gold);
}

.rl-faction-note {
  margin-top: 1.25rem;
}

/* Rules */
.rl-rules {
  margin: 0;
  padding-left: 1.2rem;
  max-width: 42rem;
}

.rl-rules li {
  margin: 0.65rem 0;
  color: var(--rl-muted);
}

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

/* Join steps */
.rl-join-steps {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 1.5rem;
}

.rl-step {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--rl-border);
  background: var(--rl-panel);
}

.rl-step span {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--rl-display);
  font-size: 0.85rem;
  background: color-mix(in srgb, var(--rl-ember) 25%, transparent);
  border: 1px solid var(--rl-ember);
  color: var(--rl-gold);
}

.rl-step p {
  margin: 0;
  color: var(--rl-muted);
}

.rl-step kbd,
.rl-step code {
  font-size: 0.9em;
  color: var(--rl-gold);
}

.rl-fine {
  margin-top: 1.25rem;
  font-size: 0.85rem;
}

/* Support / cost recovery */
.rl-support-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.rl-support-card {
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--rl-border);
  background: rgba(24, 10, 6, 0.72);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}

.rl-support-card h3 {
  font-family: var(--rl-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  color: var(--rl-gold);
}

.rl-vip-list {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
  color: var(--rl-muted);
}

.rl-vip-list li {
  margin: 0.4rem 0;
}

.rl-join {
  gap: 0.4rem;
}

/* Footer */
.rl-foot {
  border-top: 1px solid var(--rl-border);
  padding: 1.25rem 0 2rem;
  position: relative;
  z-index: 1;
}

.rl-foot-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--rl-muted);
  font-size: 0.9rem;
}

.rl-foot a {
  color: var(--rl-sand);
  text-decoration: none;
}

.rl-foot a:hover {
  color: var(--rl-gold);
}

@media (max-width: 640px) {
  .rl-hero {
    padding-top: 2.25rem;
  }
  .rl-nav {
    width: 100%;
    justify-content: flex-start;
  }
}

.rl-faction-id {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--rl-muted);
  opacity: 0.9;
}

/* —— MAIN EVENT (two factions at war) —— */
.rl-main-event {
  padding: 0 0 1.25rem;
}

.rl-main-event-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 100, 40, 0.45);
  background:
    linear-gradient(135deg, rgba(80, 18, 10, 0.92), rgba(18, 6, 4, 0.9)),
    radial-gradient(ellipse 70% 80% at 10% 0%, rgba(255, 80, 30, 0.25), transparent 55%);
  box-shadow: 0 0 40px rgba(255, 60, 20, 0.18), 0 16px 40px rgba(0, 0, 0, 0.4);
  padding: 1.15rem 1.35rem 1.25rem;
}

.rl-main-event-card.is-hot {
  border-color: rgba(255, 80, 40, 0.75);
  box-shadow: 0 0 48px rgba(255, 50, 20, 0.28), 0 16px 40px rgba(0, 0, 0, 0.45);
  animation: rl-hot-pulse 2.8s ease-in-out infinite;
}

.rl-main-event-card.is-live {
  border-color: rgba(240, 193, 75, 0.55);
}

@keyframes rl-hot-pulse {
  0%, 100% { box-shadow: 0 0 36px rgba(255, 50, 20, 0.22), 0 16px 40px rgba(0, 0, 0, 0.4); }
  50% { box-shadow: 0 0 56px rgba(255, 80, 30, 0.38), 0 16px 40px rgba(0, 0, 0, 0.4); }
}

.rl-main-event-kicker {
  margin: 0 0 0.35rem;
  font-family: var(--rl-display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rl-ember);
}

.rl-main-event-card h2 {
  margin: 0 0 0.35rem;
  font-family: var(--rl-display);
  font-size: clamp(1.25rem, 3.5vw, 1.65rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rl-gold);
}

.rl-main-event-vs {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--rl-text);
}

.rl-main-event-vs .rl-vs {
  color: var(--rl-ember);
  margin: 0 0.45rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}

.rl-main-event-blurb {
  margin: 0 0 0.85rem;
  color: var(--rl-muted);
  font-size: 0.95rem;
  max-width: 40rem;
}

.rl-main-event-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.rl-war-side {
  flex: 1 1 10rem;
  min-width: 9rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--rl-border);
  background: rgba(0, 0, 0, 0.35);
}

.rl-war-side strong {
  display: block;
  font-size: 1.05rem;
  color: var(--rl-text);
}

.rl-war-side em {
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rl-sand);
}

.rl-war-side .rl-score {
  margin-top: 0.2rem;
  font-weight: 800;
  color: var(--rl-ember);
  font-size: 1.1rem;
}

.rl-engage-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  margin-right: 0.3rem;
  background: var(--rl-muted);
  vertical-align: middle;
}

.rl-engage-dot.on {
  background: var(--rl-online);
  box-shadow: 0 0 8px var(--rl-online);
}

/* —— Faction events (horizontal scroll) —— */
.rl-spotlight {
  margin: 0 0 1rem;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(240, 193, 75, 0.35);
  background: rgba(40, 20, 8, 0.55);
  color: var(--rl-muted);
  font-size: 0.95rem;
}

.rl-spotlight strong {
  color: var(--rl-gold);
  font-family: var(--rl-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-right: 0.45rem;
}

.rl-events-scroll {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.25rem 0.15rem 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--rl-ember) rgba(0, 0, 0, 0.35);
}

.rl-events-scroll::-webkit-scrollbar {
  height: 8px;
}
.rl-events-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--rl-ember), var(--rl-gold));
  border-radius: 8px;
}

.rl-event-card {
  flex: 0 0 min(280px, 82vw);
  scroll-snap-align: start;
  border-radius: 16px;
  border: 1px solid var(--rl-border);
  background: rgba(20, 8, 5, 0.82);
  padding: 1rem 1.05rem 1.1rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
  position: relative;
  overflow: hidden;
  min-height: 11.5rem;
}

.rl-event-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ev-color, var(--rl-ember)), transparent);
}

.rl-event-card.is-active {
  border-color: color-mix(in srgb, var(--ev-color, var(--rl-ember)) 55%, transparent);
  box-shadow: 0 0 24px color-mix(in srgb, var(--ev-color, var(--rl-ember)) 22%, transparent);
}

.rl-event-card.is-main {
  border-color: rgba(255, 100, 40, 0.5);
}

.rl-event-card.is-roadmap {
  opacity: 0.82;
  border-style: dashed;
}

.rl-event-kind {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rl-sand);
  margin-bottom: 0.35rem;
}

.rl-event-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--rl-display);
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ev-color, var(--rl-ember));
  line-height: 1.25;
}

.rl-event-card p {
  margin: 0 0 0.55rem;
  color: var(--rl-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.rl-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
}

.rl-event-pill {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--rl-border);
  color: var(--rl-sand);
  background: rgba(0, 0, 0, 0.28);
}

.rl-event-pill.on {
  color: var(--rl-online);
  border-color: color-mix(in srgb, var(--rl-online) 40%, transparent);
}

/* —— Horizontal stats ticker (scroll) —— */
.rl-ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-block: 1px solid var(--rl-border);
  background: rgba(8, 3, 2, 0.78);
  backdrop-filter: blur(8px);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.rl-ticker-track {
  display: flex;
  width: max-content;
  animation: rl-ticker-scroll 55s linear infinite;
}

.rl-ticker:hover .rl-ticker-track {
  animation-play-state: paused;
}

.rl-ticker-inner {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  padding: 0.55rem 0;
  white-space: nowrap;
}

.rl-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-inline: 0.35rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 140, 80, 0.28);
  background: rgba(40, 14, 8, 0.85);
  color: var(--rl-text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.rl-chip em {
  font-style: normal;
  color: var(--rl-gold);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rl-chip strong {
  color: var(--rl-ember);
  font-weight: 800;
}

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

/* —— Kill boards (solo / duo / clan / faction) —— */
.rl-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
}

.rl-total-pill {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--rl-border);
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.88rem;
  color: var(--rl-muted);
}

.rl-total-pill strong {
  color: var(--rl-gold);
  font-weight: 800;
}

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

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

.rl-board {
  border-radius: 16px;
  border: 1px solid var(--rl-border);
  background: rgba(18, 8, 5, 0.78);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.32);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.rl-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1rem 0.65rem;
  border-bottom: 1px solid rgba(255, 140, 80, 0.15);
}

.rl-board-head h3 {
  margin: 0;
  font-family: var(--rl-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rl-ember);
}

.rl-board-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rl-sand);
  opacity: 0.9;
}

/* Vertical scroll inside boards */
.rl-board-scroll {
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.35rem 0.55rem 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--rl-ember) rgba(0, 0, 0, 0.35);
}

.rl-board-scroll::-webkit-scrollbar {
  width: 8px;
}
.rl-board-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
}
.rl-board-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--rl-ember), var(--rl-blood));
  border-radius: 8px;
}

.rl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.rl-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rl-sand);
  background: rgba(12, 5, 3, 0.95);
  padding: 0.45rem 0.4rem;
  border-bottom: 1px solid rgba(255, 140, 80, 0.18);
}

.rl-table th.num,
.rl-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.rl-table td {
  padding: 0.42rem 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--rl-muted);
  vertical-align: top;
}

.rl-table tr:hover td {
  background: rgba(255, 100, 40, 0.06);
  color: var(--rl-text);
}

.rl-table .rl-rank {
  color: var(--rl-gold);
  font-weight: 800;
  width: 1.6rem;
}

.rl-table .rl-name {
  color: var(--rl-text);
  font-weight: 700;
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rl-table .rl-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--rl-sand);
  opacity: 0.9;
  margin-top: 0.1rem;
}

.rl-table .rl-kills {
  color: var(--rl-ember);
  font-weight: 800;
}

.rl-empty-row {
  padding: 1rem 0.5rem;
  color: var(--rl-muted);
  font-size: 0.9rem;
}

/* Faction cards with kill line */
.rl-faction-kills {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--rl-text);
}

.rl-faction-kills span {
  color: var(--rl-ember);
}