/* Rising Stars — Legends LoL hub (mockup fidelity)
 * Scope: .rs-hub / .rs-top only — Social UI unchanged.
 */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800&family=Rajdhani:wght@600;700&display=swap");

/* Tokens live in rs-theme.css; hub keeps layout-only fallbacks */
:root {
  --rs-bg: #05070b;
  --rs-panel: #0b0e14;
  --rs-panel-edge: rgba(120, 160, 200, 0.14);
  --rs-gold: #c8aa6e;
  --rs-gold-bright: #e0c080;
  --rs-gold-ink: #1a140c;
  --rs-text: #ffffff;
  --rs-muted: #8b93a3;
  --rs-nav: #c5c9d2;
  --rs-radius: 4px;
}

body:has(.rs-hub),
body:has(.rs-top) {
  padding-top: 0 !important;
  padding-right: 0 !important;
  background: var(--rs-bg) !important;
  font-family: var(--oc-font-display, "Cinzel"), "Noto Sans KR", sans-serif !important;
}
body:has(.rs-hub) .main-wrapper,
body:has(.rs-top) .main-wrapper {
  padding-right: 0 !important;
  margin-right: 0 !important;
}
body:has(.rs-hub) .footer-bottom-bar,
body:has(.rs-hub) .rs-site-footer,
body:has(.rs-hub) .chat-sidebar,
body:has(.rs-hub) .chat-widget,
body:has(.rs-hub) .js_chat-new,
body:has(.rs-hub) #chat-box,
body:has(.rs-hub) .x-chat,
body:has(.rs-hub) .chat-bar,
body:has(.rs-hub) .ChatVoicePanel,
body:has(.rs-hub) [class*="voice-panel"],
body:has(.rs-hub) [id*="voice-widget"],
body:has(.rs-hub) .pwa_install_banner,
body:has(.rs-hub) .cc-window,
body:has(.rs-hub) #PWAInstallBanner,
body.esports-chrome .footer-bottom-bar,
body.esports-chrome .chat-sidebar,
body.esports-chrome .chat-widget,
body.esports-chrome .js_chat-new {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Esports subpages: space below sticky hub bar */
body:has(.rs-top):not(:has(.rs-hub)) .main-wrapper {
  padding-top: 0.35rem;
}
body:has(.rs-top):not(:has(.rs-hub)) .esports-page {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.rs-top__tools {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.rs-top__notify {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}
.rs-top__notify > li {
  position: relative;
}
.rs-top__notify .header-icon,
.rs-top__notify .header-icon *,
.rs-top__notify svg {
  color: var(--rs-gold) !important;
  fill: var(--rs-gold) !important;
  stroke: var(--rs-gold) !important;
}
.rs-top__notify .counter {
  background: #c41e1e !important;
}
.rs-top__avatar {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(201, 164, 92, 0.55);
  flex-shrink: 0;
}
.rs-top__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rs-link {
  display: block;
  text-align: center;
  color: var(--rs-gold) !important;
  font-size: 0.78rem;
  text-decoration: none !important;
}

/* ========== Top bar ========== */
.rs-top {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 7, 11, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.rs-top__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}
.rs-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  flex-shrink: 0;
  width: auto;
  height: 44px;
  grid-column: 1;
  justify-self: start;
}
.rs-brand__mark { display: none !important; }
.rs-brand__logo {
  display: block !important;
  height: 40px;
  width: auto;
  max-width: 148px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 10px rgba(201, 164, 92, 0.35));
}
.rs-brand__text,
.rs-brand__star { display: none !important; }
.rs-top__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.35rem;
  margin: 0;
  justify-content: center;
  grid-column: 2;
  justify-self: center;
}
.rs-top__nav a {
  font-family: var(--oc-font-display, "Cinzel"), sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rs-nav) !important;
  text-decoration: none !important;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.rs-top__nav a:hover {
  color: #fff !important;
}
.rs-top__nav a.is-active {
  color: var(--rs-gold) !important;
  border-bottom-color: var(--rs-gold);
}
.rs-top__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: 0;
  flex-shrink: 0;
  grid-column: 3;
  justify-self: end;
}
.rs-top__menu-btn {
  display: none;
  grid-column: 3;
  justify-self: end;
  background: transparent;
  border: 1px solid rgba(201, 164, 92, 0.45);
  width: 40px;
  height: 36px;
  padding: 8px;
  flex-direction: column;
  justify-content: space-between;
}
.rs-top__menu-btn span {
  display: block;
  height: 2px;
  background: var(--rs-gold);
}

/* ========== Buttons ========== */
.rs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--oc-font-display, "Cinzel"), sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none !important;
  border-radius: 4px;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.rs-btn--sm {
  padding: 0.48rem 0.95rem;
  font-size: 0.68rem;
}
.rs-btn--block { width: 100%; }
.rs-btn--solid {
  background: linear-gradient(180deg, #e2c377 0%, #c9a45c 50%, #a07d3a 100%) !important;
  color: var(--rs-gold-ink) !important;
  border-color: #d4b36a !important;
}
.rs-btn--solid:hover {
  background: var(--rs-gold-bright) !important;
  color: #0b0a08 !important;
}
.rs-btn--ghost {
  background: transparent !important;
  color: var(--rs-gold) !important;
  border-color: rgba(201, 164, 92, 0.65) !important;
}
.rs-btn--ghost:hover {
  background: rgba(201, 164, 92, 0.1) !important;
  color: var(--rs-gold-bright) !important;
}
.rs-btn__play {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent currentColor;
}

/* ========== Hub ========== */
.rs-hub {
  color: var(--rs-text);
  background: var(--rs-bg);
}

/* ========== Hero ========== */
.rs-hero {
  position: relative;
  min-height: clamp(560px, 82vh, 760px);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding-top: 4.5rem;
  padding-bottom: 5.5rem;
}
.rs-hero__bg {
  position: absolute;
  inset: 0;
  background:
    url("../images/rs/hero.jpg") center 30% / cover no-repeat;
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.05);
}
.rs-hero__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 55% at 50% 42%, rgba(60, 40, 120, 0.18), transparent 70%),
    radial-gradient(50% 40% at 18% 60%, rgba(10, 160, 200, 0.12), transparent 65%),
    radial-gradient(45% 40% at 85% 55%, rgba(180, 60, 40, 0.1), transparent 65%),
    linear-gradient(180deg, rgba(5, 7, 11, 0.28) 0%, rgba(5, 7, 11, 0.18) 32%, rgba(5, 7, 11, 0.68) 70%, rgba(5, 7, 11, 0.98) 100%),
    linear-gradient(90deg, rgba(5, 7, 11, 0.5) 0%, transparent 26%, transparent 74%, rgba(5, 7, 11, 0.42) 100%);
  pointer-events: none;
}
.rs-hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 6.5rem 1.25rem 4.25rem;
  max-width: 820px;
}
.rs-hero__eyebrow {
  margin: 0 0 0.95rem;
  font-family: var(--oc-font-display, "Cinzel"), sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--rs-gold);
}
.rs-hero__title {
  margin: 0 0 1.05rem;
  font-family: var(--oc-font-display, "Cinzel"), sans-serif;
  font-weight: 800;
  font-size: clamp(2.35rem, 6.2vw, 3.85rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.02;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
}
.rs-hero__lede {
  margin: 0 auto 1.75rem;
  max-width: 48ch;
  color: #d7dae3;
  font-size: 1.02rem;
  line-height: 1.65;
  font-weight: 500;
}
.rs-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}
.rs-hero__scroll {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 5.75rem;
  transform: translateX(-50%);
  font-family: var(--oc-font-display, "Cinzel"), sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8b91a0 !important;
  text-decoration: none !important;
}

/* ========== Dashboard ========== */
.rs-dash {
  max-width: 1280px;
  margin: -4.5rem auto 0;
  padding: 0 1.5rem 1.4rem;
  position: relative;
  z-index: 5;
}
.rs-lower {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.35rem 1.5rem 1.4rem;
}
.rs-dash__grid {
  display: grid;
  grid-template-columns: 1.15fr 1.1fr 0.95fr;
  gap: 1.1rem;
  align-items: stretch;
}
.rs-panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(20, 28, 42, 0.65) 0%, rgba(8, 11, 18, 0.95) 55%, rgba(6, 9, 14, 0.98) 100%),
    var(--rs-panel);
  border: 1px solid rgba(120, 160, 200, 0.16);
  border-radius: var(--rs-radius);
  padding: 1.2rem 1.25rem 1.35rem;
  box-shadow:
    0 0 0 1px rgba(80, 140, 200, 0.06),
    0 0 40px rgba(30, 90, 160, 0.14),
    0 24px 55px rgba(0, 0, 0, 0.55);
  min-height: 100%;
  overflow: hidden;
}
.rs-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(140, 190, 240, 0.07) 0%, transparent 28%),
    radial-gradient(120% 80% at 50% 120%, rgba(200, 170, 110, 0.05), transparent 55%);
  z-index: 0;
}
.rs-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow:
    inset 0 1px 0 rgba(180, 210, 240, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35);
  z-index: 0;
}
.rs-panel > * { position: relative; z-index: 1; }
.rs-panel--league,
.rs-panel--match,
.rs-panel--rankings {
  min-height: 360px;
}
.rs-panel__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.75rem;
  border-bottom: none;
  position: relative;
}
.rs-panel__head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(200, 170, 110, 0.55) 20%, rgba(200, 170, 110, 0.55) 80%, transparent 100%);
}
.rs-panel__head h2 {
  margin: 0;
  font-family: var(--oc-font-display, "Cinzel"), sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  padding-bottom: 0;
  border-bottom: none;
  line-height: 1.2;
}
.rs-panel__head a {
  font-family: var(--oc-font-display, "Cinzel"), sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rs-gold) !important;
  text-decoration: none !important;
  white-space: nowrap;
  padding-bottom: 0;
}

/* League pillars / rank emblems */
.rs-pillars {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rs-pillars--grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
  height: calc(100% - 2.4rem);
  align-content: center;
  position: relative;
}
.rs-pillars--grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
  padding: 0.35rem 0.35rem;
  position: relative;
}
.rs-pillars--grid li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 18%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(201,164,92,0.25), transparent);
}
.rs-emblem-img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.55));
}
.rs-emblem-img--glow {
  filter:
    drop-shadow(0 0 14px rgba(240, 210, 122, 0.55))
    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.55));
}
.rs-pillars strong {
  font-family: var(--oc-font-display, "Cinzel"), sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}
.rs-pillars p {
  margin: 0;
  color: #a8b0bf;
  font-size: 0.7rem;
  line-height: 1.4;
  max-width: 15ch;
}

/* Match */
.rs-match__meta,
.rs-match__when,
.rs-match__fmt,
.rs-region-label {
  margin: 0 0 0.7rem;
  color: var(--rs-muted);
  font-family: var(--oc-font-display, "Cinzel"), sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}
.rs-match__when {
  color: var(--rs-gold);
  margin: 0.85rem 0 0.2rem;
}
.rs-match__fmt {
  margin-bottom: 0.85rem;
  font-size: 0.62rem;
  color: #7f8696;
}
.rs-match__teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.55rem;
  align-items: center;
}
.rs-match__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}
.rs-match__logo,
.rs-crest {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(14, 31, 61, 0.7);
}
.rs-match__logo--glow-purple {
  box-shadow:
    0 0 0 2px rgba(168, 85, 247, 0.35),
    0 0 28px 8px rgba(139, 92, 246, 0.55),
    0 0 48px 12px rgba(109, 40, 217, 0.35);
}
.rs-match__logo--glow-red {
  box-shadow:
    0 0 0 2px rgba(248, 113, 113, 0.35),
    0 0 28px 8px rgba(239, 68, 68, 0.55),
    0 0 48px 12px rgba(185, 28, 28, 0.35);
}
.rs-crest {
  display: grid;
  place-items: center;
  font-family: var(--oc-font-display, "Cinzel"), sans-serif;
  font-weight: 700;
  color: var(--rs-gold);
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  border: 2px solid rgba(201, 164, 92, 0.4);
}
.rs-match__side strong {
  font-family: var(--oc-font-display, "Cinzel"), sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: none;
}
.rs-match__record {
  font-size: 0.72rem;
  color: var(--rs-muted);
  letter-spacing: 0.08em;
}
.rs-match__mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.rs-match__vs-line {
  display: block;
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.12);
}
.rs-match__vs {
  font-family: var(--oc-font-display, "Cinzel"), sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #9aa1b0;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}
.rs-countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  background: linear-gradient(180deg, rgba(8, 18, 36, 0.85), rgba(3, 8, 16, 0.95));
  border: 1px solid rgba(80, 150, 210, 0.22);
  border-radius: 4px;
  padding: 0.55rem;
  box-shadow: inset 0 0 24px rgba(10, 140, 200, 0.12);
}
.rs-countdown div {
  text-align: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(100, 170, 220, 0.14);
  border-radius: 3px;
  padding: 0.55rem 0.2rem 0.45rem;
  position: relative;
}
.rs-countdown div::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(10, 200, 185, 0.55), transparent);
}
.rs-countdown strong {
  display: block;
  font-family: var(--oc-font-display, "Cinzel"), sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  text-shadow: 0 0 12px rgba(10, 200, 185, 0.25);
}
.rs-countdown span {
  font-size: 0.52rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7f8a9c;
}

/* Rankings */
.rs-table-wrap { overflow-x: auto; }
.rs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.rs-table th {
  font-family: var(--oc-font-display, "Cinzel"), sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rs-muted);
  font-weight: 600;
  padding: 0.25rem 0.3rem 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
}
.rs-table td {
  padding: 0.58rem 0.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  color: #dce0ea;
  vertical-align: middle;
}
.rs-table tr.is-top td {
  background: rgba(201, 164, 92, 0.08);
}
.rs-rank {
  display: inline-grid;
  place-items: center;
  min-width: 1.25rem;
  font-weight: 700;
  color: var(--rs-muted);
}
.rs-rank--1 { color: #f0d27a; }
.rs-rank--2 { color: #d0d5de; }
.rs-rank--3 { color: #c9956a; }
.rs-team {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
}
.rs-team img,
.rs-team__dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.rs-team__dot { display: inline-block; }
.rs-pts {
  color: var(--rs-gold) !important;
  font-weight: 700;
  font-family: var(--oc-font-display, "Cinzel"), sans-serif;
  font-size: 1.05rem;
}
.rs-region-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}
.rs-region-tab {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--rs-muted);
  font-family: var(--oc-font-display, "Cinzel"), sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
}
.rs-region-tab.is-active,
.rs-region-tab:hover {
  color: var(--rs-gold-ink);
  background: var(--rs-gold);
  border-color: var(--rs-gold);
}
.rs-region-pane { display: none; }
.rs-region-pane.is-active { display: block; }

/* Lower */
.rs-lower__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 1.1rem;
}
.rs-news {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rs-news--row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.rs-news__item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0.75rem;
  align-items: center;
  text-decoration: none !important;
  color: inherit !important;
  padding: 0.45rem;
  border-radius: 4px;
  border: 1px solid rgba(120, 160, 200, 0.12);
  background: linear-gradient(180deg, rgba(16, 22, 34, 0.8), rgba(6, 9, 14, 0.95));
  min-height: 96px;
  box-shadow: inset 0 1px 0 rgba(160, 200, 240, 0.06);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.rs-news__item:hover {
  border-color: rgba(200, 170, 110, 0.4);
  background: linear-gradient(180deg, rgba(22, 30, 44, 0.9), rgba(8, 12, 18, 0.98));
  box-shadow: 0 0 24px rgba(10, 160, 200, 0.12);
}
.rs-news__thumb {
  display: block;
  width: 92px;
  height: 74px;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(14, 31, 61, 0.7);
  box-shadow: 0 0 16px rgba(40, 100, 180, 0.2);
}
.rs-news__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rs-news__cat {
  display: block;
  font-family: var(--oc-font-display, "Cinzel"), sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rs-gold);
  margin-bottom: 0.25rem;
}
.rs-news__copy strong {
  display: block;
  color: #fff;
  font-size: 0.82rem;
  line-height: 1.3;
  margin-bottom: 0.3rem;
}
.rs-news__copy small { color: var(--rs-muted); font-size: 0.72rem; }

.rs-panel--news {
  border-color: rgba(197, 160, 89, 0.18);
  box-shadow:
    0 0 0 1px rgba(197, 160, 89, 0.06) inset,
    0 20px 50px rgba(0, 0, 0, 0.45);
}

.rs-cta {
  position: relative;
  border-radius: var(--rs-radius);
  overflow: hidden;
  border: 1px solid rgba(80, 160, 210, 0.28);
  min-height: 260px;
  display: flex;
  isolation: isolate;
  box-shadow:
    0 0 0 1px rgba(80, 140, 200, 0.08),
    0 0 40px rgba(20, 100, 180, 0.18),
    0 24px 55px rgba(0, 0, 0, 0.55);
  background: var(--rs-panel);
}
.rs-cta__bg {
  position: absolute;
  inset: 0;
  background-color: #0a1018;
  background-image:
    radial-gradient(70% 80% at 80% 50%, rgba(40, 120, 200, 0.28), transparent 60%),
    linear-gradient(105deg, rgba(5, 5, 8, 0.92) 0%, rgba(5, 5, 8, 0.55) 42%, rgba(5, 5, 8, 0.2) 100%),
    var(--rs-cta-img, none);
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
}
.rs-cta__inner {
  position: relative;
  z-index: 1;
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.85rem;
  width: 100%;
  max-width: 300px;
  min-height: 240px;
}
.rs-cta h2 {
  margin: 0;
  font-family: var(--oc-font-display, "Cinzel"), sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.15;
}
.rs-cta p {
  margin: 0;
  color: #c8cede;
  font-size: 0.86rem;
  line-height: 1.5;
}
.rs-btn--cta {
  width: auto;
  align-self: flex-start;
  background: linear-gradient(180deg, #e2c377 0%, #c9a45c 48%, #a07d3a 100%) !important;
  border-color: #d4b36a !important;
  box-shadow: 0 8px 22px rgba(201, 164, 92, 0.35);
}
.rs-btn--solid {
  background: linear-gradient(180deg, #e2c377 0%, #c9a45c 50%, #a07d3a 100%) !important;
}

/* Footer */
.rs-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 0.75rem;
  padding: 1.35rem 1.5rem 1.6rem;
}
.rs-foot__row {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
}
.rs-foot__social .header-social {
  display: flex;
  gap: 0.75rem;
}
.rs-foot__social a,
.rs-foot__social i,
.rs-foot__social svg {
  color: #c5c9d4 !important;
  fill: #c5c9d4 !important;
}
.rs-foot__copy {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #7f8696;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.rs-foot__rule {
  display: block;
  width: 56px;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}
.rs-foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: flex-end;
}
.rs-foot__links a {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8b91a0 !important;
  text-decoration: none !important;
}
.rs-foot__links a:hover { color: var(--rs-gold) !important; }

/* Mobile */
@media (max-width: 1100px) {
  .rs-dash { margin-top: -1.5rem; }
  .rs-dash__grid,
  .rs-lower__grid { grid-template-columns: 1fr; }
  .rs-pillars--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-news--row,
  .rs-news--cards { grid-template-columns: 1fr; }
}
@media (max-width: 991.98px) {
  .rs-top__menu-btn { display: flex; }
  .rs-top__inner {
    grid-template-columns: auto 1fr auto;
  }
  .rs-top__nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.35rem;
    grid-column: 1 / -1;
    justify-self: stretch;
    margin: 0.4rem 0 0;
  }
  .rs-top__nav.show,
  .rs-top__nav.collapse.show { display: flex !important; }
  .rs-top__actions { grid-column: 3; }
  .rs-foot__row {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .rs-foot__links,
  .rs-foot__social .header-social,
  .rs-foot__copy { justify-content: center; flex-wrap: wrap; }
}
@media (max-width: 575.98px) {
  .rs-hero__actions { width: 100%; }
  .rs-hero__actions .rs-btn { width: 100%; }
  .rs-brand { width: 38px; height: 38px; }
  .rs-brand__mark svg { width: 30px; height: 30px; }
}

/* Region switcher (header) */
.rs-region-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.15rem;
  border: 1px solid rgba(120, 160, 200, 0.18);
  border-radius: 4px;
  background: rgba(3, 5, 10, 0.55);
}
.rs-region-switch__btn {
  font-family: var(--oc-font-display, "Cinzel"), sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9aa1b0 !important;
  text-decoration: none !important;
  padding: 0.35rem 0.5rem;
  border-radius: 3px;
  transition: color .15s ease, background .15s ease;
}
.rs-region-switch__btn:hover {
  color: #fff !important;
}
.rs-region-switch__btn.is-active {
  color: #14110c !important;
  background: linear-gradient(180deg, #e2c377 0%, #c9a45c 100%);
}

/* Language chip */
.rs-lang {
  position: relative;
}
.rs-lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--oc-font-display, "Cinzel"), sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c5c9d2 !important;
  text-decoration: none !important;
  border: 1px solid rgba(120, 160, 200, 0.2);
  border-radius: 4px;
  padding: 0.35rem 0.55rem;
  background: rgba(3, 5, 10, 0.45);
}
.rs-lang__btn::after { display: none !important; }
.rs-lang__btn:hover {
  color: var(--rs-gold) !important;
  border-color: rgba(200, 170, 110, 0.45);
}
.rs-lang .dropdown-menu {
  min-width: 11rem;
  z-index: 1100;
}
.rs-lang--foot .rs-lang__btn {
  border: 0;
  background: transparent;
  padding: 0;
  letter-spacing: 0.1em;
  color: var(--rs-gold) !important;
}
.rs-foot__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
}

/* Rankings region tabs as links */
a.rs-region-tab {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--rs-muted);
  font-family: var(--oc-font-display, "Cinzel"), sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  text-decoration: none !important;
  cursor: pointer;
}
a.rs-region-tab.is-active,
a.rs-region-tab:hover {
  color: var(--rs-gold-ink) !important;
  background: var(--rs-gold);
  border-color: var(--rs-gold);
}

@media (max-width: 991.98px) {
  .rs-top__actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .rs-region-switch {
    order: -1;
    width: 100%;
    justify-content: center;
    margin-bottom: 0.25rem;
  }
}
