/* Dashboard fantástico azul/púrpura para la portada de MuBest. */
:root {
  --bg: #040710;
  --panel: rgba(7, 12, 25, 0.86);
  --panelBorder: rgba(185, 151, 72, 0.42);
  --text: rgba(246, 244, 238, 0.98);
  --muted: rgba(196, 205, 224, 0.76);
  --accent: #6d49e8;
  --accent2: #d7b66c;
  --ok: #69e8bd;
  --gold: #d7b66c;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.62);
}

body {
  background: #03060d;
  color: var(--text);
}

body::before {
  background:
    radial-gradient(700px 360px at 76% 18%, rgba(102, 60, 224, 0.18), transparent 72%),
    radial-gradient(580px 320px at 14% 28%, rgba(34, 108, 226, 0.12), transparent 72%);
}

.container {
  width: min(1180px, calc(100% - 32px));
}

.topbar {
  position: fixed;
  background:
    linear-gradient(180deg, rgba(5, 8, 17, 0.98), rgba(4, 7, 15, 0.9)),
    rgba(4, 7, 15, 0.96);
  border-bottom: 1px solid rgba(202, 170, 96, 0.38);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(117, 87, 219, 0.14);
  backdrop-filter: blur(18px);
}

.topbar__inner { height: 70px; }

.brand {
  gap: 11px;
  padding-left: 0;
}

.brand__mark {
  min-width: 58px;
  min-height: 48px;
  background:
    linear-gradient(145deg, rgba(173, 135, 59, 0.7), rgba(45, 28, 71, 0.88));
  border-color: rgba(229, 198, 125, 0.58);
  color: #fff4d0;
  border-radius: 4px 4px 10px 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 7px 22px rgba(0,0,0,.5);
}

.brand__identity {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.brand__identity strong {
  color: #f5ead0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  letter-spacing: .08em;
}

.brand__identity small {
  color: rgba(192, 168, 111, .82);
  font-size: 9px;
  letter-spacing: .25em;
}

.nav { gap: 4px; }
.nav__link {
  color: rgba(210, 215, 229, .72);
  font-size: 10px;
  letter-spacing: .1em;
  padding: 10px 9px;
}
.nav__link:hover,
.nav__link.is-active {
  color: #f3deb0;
  background: linear-gradient(180deg, rgba(203, 166, 80, .1), rgba(97, 69, 186, .08));
}
.nav__link.is-active::after {
  background: linear-gradient(90deg, transparent, #d8b96f, transparent);
}

.chip,
.userMenu__btn,
.textlink,
.topbar .btn--ghost {
  border-color: rgba(198, 165, 91, .3);
}

.hero:not(.pageHero) {
  min-height: 100svh;
  padding-top: 70px;
  background: #050814;
}

.hero:not(.pageHero) .hero__bgMedia {
  position: fixed;
  inset: 70px 0 0;
  background: #020914;
  filter: saturate(1.02) contrast(1.04);
}

.hero:not(.pageHero) .hero__bgImage {
  display: none !important;
}

.hero:not(.pageHero) .hero__bgVideo {
  display: block !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  transform: none;
  filter: saturate(1.04) contrast(1.04) brightness(.88);
}

.hero:not(.pageHero) .hero__bg {
  position: fixed;
  inset: 70px 0 0;
  background:
    linear-gradient(90deg, rgba(2, 5, 13, .92) 0%, rgba(3, 6, 15, .7) 35%, rgba(4, 7, 17, .14) 68%, rgba(2, 5, 13, .48) 100%),
    linear-gradient(180deg, rgba(3, 6, 14, .04), rgba(3, 6, 14, .76) 78%, #03060d 100%);
  filter: none;
  transform: none;
}

.hero:not(.pageHero) .hero__shade {
  position: fixed;
  inset: 70px 0 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.02), rgba(2,5,13,.18) 44%, rgba(2,5,13,.82) 100%),
    radial-gradient(900px 460px at 72% 28%, rgba(72, 54, 190, .12), transparent 70%);
}

.hero:not(.pageHero) .hero__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  place-items: stretch;
  align-items: start;
  gap: 14px;
  padding: 38px 0 54px;
}

.hero:not(.pageHero) .hero__logo {
  display: grid !important;
  position: absolute;
  z-index: 3;
  top: 30px;
  left: 50%;
  width: min(560px, 52vw);
  padding: 0;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero:not(.pageHero) .hero__logoImg {
  width: 100%;
  max-height: 250px;
  object-fit: contain;
}

@media (max-width: 760px) {
  .hero:not(.pageHero) .hero__logo {
    top: 22px;
    width: min(360px, 88vw);
  }
}

.dashboardIntro {
  grid-column: 1 / 8;
  min-height: 285px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 28px 10px 24px;
  text-shadow: 0 4px 24px rgba(0,0,0,.9);
}

.dashboardIntro__eyebrow {
  color: #d9ba73;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .26em;
}

.dashboardIntro__title {
  margin: 8px 0 10px;
  max-width: 620px;
  color: #f7f2e8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 78px);
  line-height: .96;
  letter-spacing: -.03em;
}

.dashboardIntro__copy {
  max-width: 540px;
  margin: 0;
  color: rgba(218, 225, 240, .82);
  font-size: 16px;
  line-height: 1.65;
}

.dashboardIntro__status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 8px 13px;
  border: 1px solid rgba(106, 221, 188, .24);
  border-radius: 999px;
  background: rgba(6, 13, 23, .58);
  color: rgba(211, 234, 229, .82);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}
.dashboardIntro__status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #62e4b7;
  box-shadow: 0 0 14px rgba(98, 228, 183, .9);
}

.hero:not(.pageHero) .stats {
  grid-column: 1 / -1;
  width: 100%;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(194, 160, 84, .3);
  border-radius: 7px;
  background: rgba(3, 7, 17, .78);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(18px);
}

.hero:not(.pageHero) .stat {
  min-height: 94px;
  grid-template-columns: 38px 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  justify-items: start;
  text-align: left;
  gap: 2px 11px;
  padding: 14px;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 45%),
    rgba(7, 12, 25, .86);
  border-color: rgba(190, 158, 84, .27);
}

.hero:not(.pageHero) .stat__icon {
  grid-row: 1 / 3;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(130, 102, 218, .36);
  border-radius: 50%;
  background: rgba(83, 55, 178, .14);
}
.hero:not(.pageHero) .stat__icon svg { color: #c1a9ff; }
.hero:not(.pageHero) .stat__label { align-self: end; color: rgba(197, 206, 225, .68); }
.hero:not(.pageHero) .stat__value { align-self: start; font-size: 17px; }
.hero:not(.pageHero) #playersValue,
.hero:not(.pageHero) .stat__value--ok { justify-content: flex-start; color: #69e8bd; }

.hero:not(.pageHero) .cta {
  grid-column: 1 / -1;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
}
.hero:not(.pageHero) .cta .btn {
  width: 100%;
  min-width: 0;
  height: 50px;
  border-radius: 4px;
  font-size: 12px;
}
.hero:not(.pageHero) #downloadBtn {
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), transparent 38%),
    linear-gradient(180deg, #7452d8, #342164);
  border-color: rgba(205, 181, 255, .56);
  box-shadow: 0 0 28px rgba(105, 72, 222, .28), inset 0 0 18px rgba(136, 102, 255, .12);
}
.hero:not(.pageHero) #discordBtn,
.hero:not(.pageHero) #ctaRegisterBtn {
  background: linear-gradient(180deg, rgba(17, 24, 44, .96), rgba(5, 9, 19, .96));
  border-color: rgba(194, 160, 84, .34);
  color: #e9d9b4;
}

.dashboardDivider {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin: 17px 0 2px;
  color: #d6b66d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  letter-spacing: .15em;
}
.dashboardDivider span { height: 1px; background: linear-gradient(90deg, transparent, rgba(201,168,91,.56)); }
.dashboardDivider span:last-child { background: linear-gradient(90deg, rgba(201,168,91,.56), transparent); }

.hero:not(.pageHero) .portalBlock {
  width: 100%;
  min-width: 0;
  margin: 0;
  gap: 11px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(193, 161, 88, .34);
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), transparent 30%),
    rgba(5, 10, 21, .88);
  box-shadow: 0 22px 48px rgba(0,0,0,.36), inset 0 0 0 1px rgba(111,81,198,.06);
  backdrop-filter: blur(15px);
}
.hero:not(.pageHero) .portalBlock--news { grid-column: span 5; }
.hero:not(.pageHero) .portalBlock--events { grid-column: span 4; }
.hero:not(.pageHero) .portalBlock--fans { grid-column: span 3; }
.hero:not(.pageHero) .portalBlock--ranking { grid-column: span 7; }
.hero:not(.pageHero) .portalBlock--activeEvents { grid-column: span 5; }

.hero:not(.pageHero) .portalBlock__head {
  align-items: start;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(196, 163, 89, .2);
}
.hero:not(.pageHero) .portalBlock__eyebrow {
  margin: 0 0 3px;
  color: #a98cf5;
  font-size: 8px;
  letter-spacing: .2em;
}
.hero:not(.pageHero) .portalBlock__title {
  color: #eadcbc;
  font-size: 18px;
}
.hero:not(.pageHero) .portalBlock__subtitle {
  max-width: 210px;
  color: rgba(192, 202, 222, .57);
  font-size: 10px;
  line-height: 1.4;
}
.hero:not(.pageHero) .portalBlock__action {
  min-width: 62px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 3px;
  font-size: 9px;
}

.hero:not(.pageHero) .newsGrid,
.hero:not(.pageHero) .featureGrid,
.hero:not(.pageHero) .activeEventsGrid,
.hero:not(.pageHero) .portalRanking {
  max-height: 310px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(117, 86, 219, .58) rgba(0,0,0,.18);
}
.hero:not(.pageHero) .newsGrid,
.hero:not(.pageHero) .featureGrid,
.hero:not(.pageHero) .activeEventsGrid,
.hero:not(.pageHero) .homeRankBoardGrid {
  grid-template-columns: 1fr;
  gap: 8px;
}
.hero:not(.pageHero) .featureCard,
.hero:not(.pageHero) .activeEventCard,
.hero:not(.pageHero) .newsCard,
.hero:not(.pageHero) .homeRankCard {
  border-radius: 3px;
  background: rgba(8, 14, 28, .72);
  border-color: rgba(195, 163, 90, .2);
}
.hero:not(.pageHero) .featureCard,
.hero:not(.pageHero) .activeEventCard { padding: 12px; }
.hero:not(.pageHero) .emptyState,
.hero:not(.pageHero) .loadingRow {
  min-height: 95px;
  display: grid;
  place-items: center;
  padding: 14px;
  border-radius: 3px;
  background: rgba(2, 6, 14, .4);
  color: rgba(190, 201, 222, .62);
}

.siteFooter {
  position: relative;
  z-index: 3;
  background: #03060d;
  border-top-color: rgba(194, 160, 84, .25);
}
.siteFooter__grid {
  gap: 10px;
  padding: 24px 0 18px;
}
.siteFooter__brandCol,
.siteFooter__col {
  min-width: 0;
  padding: 17px;
  border: 1px solid rgba(190, 158, 84, .2);
  border-radius: 4px;
  background: rgba(6, 11, 23, .78);
}
.siteFooter__brandMark { margin-bottom: 10px; }
.siteFooter__brandTextLogo { color: #e8d3a3; }
.siteFooter__brandTitle { margin-bottom: 5px; color: #eadcbc; }
.siteFooter__brandCopy {
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: rgba(190, 201, 221, .66);
  font-size: 11px;
  line-height: 1.5;
}
.siteFooter__title { margin-bottom: 10px; color: #d9bd7b; font-size: 11px; }
.siteFooter__links { gap: 4px; }
.siteFooter__link { padding-block: 4px; font-size: 11px; }
.siteFooter__socialList { gap: 6px; }
.siteFooter__socialItem {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 3px;
  background: rgba(10, 17, 33, .78);
  border-color: rgba(190, 158, 84, .14);
  font-size: 11px;
}
.siteFooter__infoList { gap: 8px; }
.siteFooter__infoItem { padding: 7px 0; }
.siteFooter__serverCard {
  margin-top: 10px;
  padding: 10px;
  border-radius: 3px;
  background: rgba(10, 17, 33, .72);
  border-color: rgba(190, 158, 84, .18);
}
.siteFooter__bottom {
  padding-block: 13px;
  color: rgba(183, 193, 214, .48);
  font-size: 9px;
}

@media (max-width: 980px) {
  .brand__identity { display: none; }
  .dashboardIntro { grid-column: 1 / 9; min-height: 250px; }
  .hero:not(.pageHero) .portalBlock--news,
  .hero:not(.pageHero) .portalBlock--events,
  .hero:not(.pageHero) .portalBlock--fans,
  .hero:not(.pageHero) .portalBlock--ranking,
  .hero:not(.pageHero) .portalBlock--activeEvents { grid-column: span 6; }
}

@media (max-width: 760px) {
  .hero:not(.pageHero) .hero__bgMedia {
    background-position: 68% center;
  }
  .hero:not(.pageHero) .hero__bgVideo { object-position: 68% center; }
  .hero:not(.pageHero) .hero__bg {
    background: linear-gradient(180deg, rgba(2,5,13,.3), rgba(2,5,13,.72) 38%, #03060d 76%);
  }
  .dashboardIntro {
    grid-column: 1 / -1;
    min-height: 360px;
    justify-content: flex-end;
    padding-bottom: 28px;
  }
  .dashboardIntro__title { font-size: clamp(42px, 14vw, 68px); }
  .hero:not(.pageHero) .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero:not(.pageHero) .cta { grid-template-columns: 1fr; }
  .hero:not(.pageHero) .portalBlock--news,
  .hero:not(.pageHero) .portalBlock--events,
  .hero:not(.pageHero) .portalBlock--fans,
  .hero:not(.pageHero) .portalBlock--ranking,
  .hero:not(.pageHero) .portalBlock--activeEvents { grid-column: 1 / -1; }
  .siteFooter__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .hero:not(.pageHero) .hero__inner { padding-top: 18px; }
  .dashboardIntro { min-height: 330px; padding-inline: 0; }
  .dashboardIntro__copy { font-size: 14px; }
  .hero:not(.pageHero) .stats { padding: 7px; gap: 7px; }
  .hero:not(.pageHero) .stat {
    min-height: 82px;
    grid-template-columns: 30px 1fr;
    padding: 10px;
  }
  .hero:not(.pageHero) .stat__icon { width: 30px; height: 30px; }
  .dashboardDivider { font-size: 11px; gap: 10px; }
  .hero:not(.pageHero) .portalBlock { padding: 13px; }
  .siteFooter__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hero:not(.pageHero) .hero__bgMedia { background-attachment: scroll; }
}
