:root {
  --bg: #020806;
  --bg-raised: #06130e;
  --surface: rgba(7, 24, 17, .88);
  --surface-solid: #0a1b14;
  --surface-bright: #10291e;
  --text: #f6f8f4;
  --muted: #c1cdc5;
  --soft: #87998e;
  --grass: #40df95;
  --grass-deep: #148957;
  --coral: #ff645c;
  --gold: #f1cc67;
  --line: rgba(210, 235, 221, .18);
  --line-strong: rgba(64, 223, 149, .48);
  --shadow: 0 28px 80px rgba(0, 0, 0, .55);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 8, 6, .9);
  box-shadow: 0 10px 35px rgba(0, 0, 0, .32);
  backdrop-filter: blur(20px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 18px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  font-weight: 950;
}

.brand img {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .5));
}

.brand-name {
  font-size: 1.08rem;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.nav-right,
.nav-links,
.lang-switch,
.actions,
.proof,
.link-row,
.link-row nav {
  display: flex;
  align-items: center;
}

.nav-right {
  gap: 12px;
}

.nav-links {
  gap: 22px;
}

.nav-links a {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 800;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.lang-switch {
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: rgba(255, 255, 255, .035);
}

.lang-switch a {
  min-width: 35px;
  min-height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--soft);
  font-size: .75rem;
  font-weight: 950;
}

.lang-switch a.active {
  color: #021009;
  background: var(--grass);
}

.nav-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(129, 255, 192, .78);
  border-radius: 12px;
  padding: 0 17px;
  color: #021009;
  background: var(--grass);
  box-shadow: 0 5px 0 var(--grass-deep), 0 13px 28px rgba(64, 223, 149, .2);
  font-size: .86rem;
  font-weight: 950;
  transform: translateY(-2px);
}

.nav-cta:active {
  box-shadow: 0 2px 0 var(--grass-deep), 0 8px 18px rgba(64, 223, 149, .16);
  transform: translateY(1px);
}

.hero {
  position: relative;
  min-height: 770px;
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(2, 9, 7, .45);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 32%;
  background: rgba(2, 8, 6, .7);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/assets/images/rivalgol_portada.webp") center 58% / cover no-repeat;
  filter: saturate(.94) contrast(1.04);
  transform: scale(1.012);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr);
  align-items: center;
  gap: clamp(30px, 6vw, 88px);
  padding-block: 92px 112px;
}

.hero-copy {
  max-width: 700px;
}

.eyebrow,
.tag,
.section-number,
.feature-tag,
.card-kicker {
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(64, 223, 149, .42);
  border-radius: 999px;
  padding: 9px 13px;
  color: #c1ffe0;
  background: rgba(5, 34, 22, .74);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .24);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grass);
  box-shadow: 0 0 0 5px rgba(64, 223, 149, .15), 0 0 18px rgba(64, 223, 149, .88);
}

h1 {
  margin: 22px 0 20px;
  font-size: clamp(3rem, 7.4vw, 6.9rem);
  line-height: .91;
  letter-spacing: -.065em;
  text-wrap: balance;
  text-shadow: 0 12px 36px rgba(0, 0, 0, .72);
}

h1 em {
  color: var(--grass);
  font-style: normal;
}

.lead {
  max-width: 660px;
  margin-bottom: 28px;
  color: #e0e7e2;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  text-shadow: 0 3px 18px #000;
}

.actions {
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 22px;
  font-weight: 950;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.button small,
.button span {
  display: block;
}

.button small {
  margin-bottom: -2px;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.button.primary {
  color: #021009;
  border-color: rgba(166, 255, 210, .82);
  background: var(--grass);
  box-shadow: 0 7px 0 var(--grass-deep), 0 24px 42px rgba(64, 223, 149, .28);
  transform: translateY(-3px);
}

.button.primary:hover,
.button.primary:focus-visible {
  box-shadow: 0 9px 0 var(--grass-deep), 0 28px 48px rgba(64, 223, 149, .35);
  transform: translateY(-5px);
}

.button.primary:active {
  box-shadow: 0 2px 0 var(--grass-deep), 0 12px 22px rgba(64, 223, 149, .2);
  transform: translateY(2px);
}

.button.secondary {
  color: var(--text);
  background: rgba(4, 18, 12, .74);
  box-shadow: 0 5px 0 rgba(0, 0, 0, .55), 0 20px 36px rgba(0, 0, 0, .24);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.button-icon {
  width: 30px;
  height: 30px;
  display: grid !important;
  place-items: center;
  border: 1px solid rgba(1, 24, 12, .22);
  border-radius: 9px;
  background: rgba(255, 255, 255, .23);
  font-size: .78rem;
}

.proof {
  flex-wrap: wrap;
  gap: 11px 20px;
  margin-top: 29px;
  color: #dce6df;
  font-size: .83rem;
  font-weight: 800;
}

.proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.proof span::before {
  content: "✓";
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #032015;
  background: var(--grass);
  font-size: .7rem;
  font-weight: 950;
}

.hero-showcase {
  position: relative;
  min-height: 500px;
}

.hero-card {
  position: absolute;
  inset: 30px 10px 30px 50px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid rgba(198, 234, 213, .26);
  border-radius: 32px;
  padding: 36px;
  background: rgba(4, 17, 12, .36);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(4px);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 23px;
  pointer-events: none;
}

.hero-card::after {
  content: "RG";
  position: absolute;
  top: 22px;
  right: 27px;
  color: rgba(255, 255, 255, .09);
  font-size: clamp(4rem, 9vw, 7rem);
  font-weight: 1000;
  letter-spacing: -.1em;
}

.card-kicker {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
  color: var(--grass);
}

.hero-card strong {
  position: relative;
  z-index: 1;
  font-size: clamp(2.25rem, 4.4vw, 4.2rem);
  line-height: .93;
  letter-spacing: -.05em;
  text-shadow: 0 7px 24px #000;
}

.hero-card p {
  position: relative;
  z-index: 1;
  max-width: 350px;
  margin: 18px 0 0;
  color: #d2ddd5;
}

.floating-score {
  position: absolute;
  right: -4px;
  bottom: 8px;
  min-width: 180px;
  border: 1px solid rgba(255, 111, 103, .5);
  border-radius: 18px;
  padding: 13px 18px;
  background: rgba(35, 9, 9, .9);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(255, 255, 255, .12);
  transform: rotate(-2deg);
}

.floating-score span,
.floating-score strong {
  display: block;
}

.floating-score span {
  color: #ffc2be;
  font-size: .72rem;
  font-weight: 850;
}

.floating-score strong {
  color: var(--coral);
  font-size: 1.4rem;
  letter-spacing: .12em;
}

.floating-score i {
  position: absolute;
  top: 18px;
  right: 16px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 18px var(--coral);
}

.marquee {
  overflow: hidden;
  border-block: 1px solid rgba(64, 223, 149, .26);
  background: var(--grass);
  color: #021009;
}

.marquee-track {
  width: max-content;
  min-width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 32px;
  padding: 14px 24px;
  font-size: clamp(.84rem, 1.8vw, 1.05rem);
  font-weight: 1000;
  letter-spacing: .08em;
}

.marquee-track i {
  font-style: normal;
}

.section {
  padding: clamp(76px, 10vw, 130px) 0;
}

.section-how {
  background: var(--bg);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(270px, .58fr);
  align-items: end;
  gap: 30px;
  margin-bottom: 38px;
}

.section-number {
  display: block;
  margin-bottom: 12px;
  color: var(--grass);
}

.section h2,
.final-cta-panel h2 {
  margin-bottom: 0;
  font-size: clamp(2.25rem, 5.5vw, 5rem);
  line-height: .98;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step-card,
.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .055);
}

.step-card {
  min-height: 330px;
  padding: 28px;
}

.step-card.featured {
  border-color: var(--line-strong);
  background: var(--surface-bright);
  transform: translateY(-12px);
}

.step-index {
  position: absolute;
  top: 21px;
  right: 25px;
  color: rgba(255, 255, 255, .14);
  font-size: 2.5rem;
  font-weight: 1000;
}

.step-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 74px;
  border: 1px solid rgba(64, 223, 149, .5);
  border-radius: 18px;
  color: var(--grass);
  background: rgba(64, 223, 149, .08);
  box-shadow: 0 9px 0 rgba(12, 73, 47, .74), 0 20px 28px rgba(0, 0, 0, .24);
  font-size: 1.7rem;
  font-weight: 900;
}

.step-card h3,
.experience-card h3 {
  margin-bottom: 9px;
  font-size: 1.45rem;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.step-card p,
.experience-card p {
  margin: 0;
  color: var(--muted);
}

.experience {
  border-block: 1px solid var(--line);
  background: #04100c;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.experience-card {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: 28px;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.experience-card::before {
  content: "";
  position: absolute;
  inset: 38% 0 0;
  z-index: -1;
  background: rgba(2, 9, 6, .78);
}

.experience-card::after {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 20px;
}

.picks-card {
  background-image: url("/assets/images/rivalgol_picks.webp");
}

.live-card {
  background-image: url("/assets/images/rivalgol_vivo.webp");
}

.ranking-card {
  background-image: url("/assets/images/rivalgol_ranking.webp");
}

.room-card {
  background-image: url("/assets/images/rivalgol_sala.webp");
}

.experience-copy {
  width: 100%;
  padding: 42px;
  text-shadow: 0 4px 20px #000;
}

.feature-tag {
  display: inline-flex;
  margin-bottom: 13px;
  border: 1px solid rgba(64, 223, 149, .5);
  border-radius: 999px;
  padding: 7px 10px;
  color: #baffda;
  background: rgba(5, 29, 19, .78);
}

.feature-tag.coral {
  border-color: rgba(255, 100, 92, .6);
  color: #ffc1bd;
  background: rgba(48, 10, 10, .8);
}

.feature-tag.gold {
  border-color: rgba(241, 204, 103, .58);
  color: #ffe8a8;
  background: rgba(43, 32, 6, .8);
}

.experience-card h3 {
  max-width: 480px;
  font-size: clamp(1.8rem, 4vw, 3.25rem);
}

.experience-card p {
  max-width: 520px;
  color: #d8e1db;
}

.final-cta {
  background: var(--bg);
}

.final-cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  overflow: hidden;
  border: 1px solid rgba(64, 223, 149, .42);
  border-radius: 32px;
  padding: clamp(30px, 6vw, 70px);
  background: var(--surface-bright);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.official-links {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  color: var(--soft);
  background: #020705;
  font-size: .86rem;
}

.link-row {
  justify-content: space-between;
  gap: 22px;
}

.link-row nav {
  flex-wrap: wrap;
  gap: 18px;
}

.link-row a:hover,
.footer a:hover {
  color: var(--grass);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  color: var(--muted);
  background: #010403;
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
}

.footer-grid > span:last-child {
  justify-self: end;
  text-align: right;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.footer-brand strong,
.footer-brand small {
  display: block;
}

.footer-brand strong {
  text-transform: uppercase;
}

.footer-brand small {
  color: var(--soft);
  font-size: .73rem;
}

/* Shared legal, support, invite and authentication surfaces. */
.page {
  position: relative;
  min-height: calc(100vh - 72px);
  padding: 60px 0 88px;
  background: url("/assets/images/rivalgol_portada.webp") center / cover fixed no-repeat;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 6, .78);
}

.page > .container {
  position: relative;
}

.legal-page {
  max-width: 920px;
  padding: clamp(24px, 5vw, 48px);
  backdrop-filter: blur(16px);
}

.legal-page h1 {
  margin: 20px 0 16px;
  font-size: clamp(2.4rem, 9vw, 5rem);
  line-height: .96;
  letter-spacing: -.055em;
}

.legal-page h2 {
  margin: 32px 0 9px;
  color: var(--grass);
  font-size: 1.16rem;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
}

.legal-page a {
  color: #9cf6c9;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.legal-page ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.notice {
  margin: 18px 0;
  border: 1px solid rgba(64, 223, 149, .38);
  border-radius: 16px;
  padding: 15px;
  color: #baffda;
  background: rgba(64, 223, 149, .09);
  font-weight: 850;
}

.join-fallback {
  display: grid;
  gap: 16px;
}

.invite-code {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 20px;
  background: rgba(255, 255, 255, .045);
}

.invite-code small {
  color: var(--muted);
  font-weight: 850;
}

.invite-code strong {
  color: var(--grass);
  font-size: clamp(2rem, 12vw, 4rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

button.button {
  cursor: pointer;
  color: inherit;
  font: inherit;
}

@media (max-width: 940px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .section-heading,
  .final-cta-panel {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-block: 74px 88px;
  }

  .hero-showcase {
    min-height: 450px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .step-card,
  .step-card.featured {
    min-height: 260px;
    transform: none;
  }

  .step-icon {
    margin-bottom: 50px;
  }

  .final-cta-panel .button {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, var(--max));
  }

  .nav {
    min-height: 66px;
  }

  .brand img {
    width: 45px;
    height: 45px;
  }

  .brand-name,
  .nav-cta {
    display: none;
  }

  .hero-media {
    background-position: 52% 58%;
  }

  .hero-grid {
    padding-block: 54px 70px;
  }

  h1 {
    font-size: clamp(3rem, 14vw, 4.2rem);
  }

  h1 em {
    display: block;
  }

  .actions .button {
    width: 100%;
  }

  .proof {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-showcase {
    min-height: 430px;
  }

  .hero-card {
    inset: 12px 0 32px;
    padding: 26px;
  }

  .floating-score {
    right: 12px;
    bottom: 3px;
  }

  .marquee-track {
    justify-content: flex-start;
    overflow: hidden;
  }

  .experience-grid {
    grid-template-columns: 1fr;
  }

  .experience-card {
    min-height: 480px;
  }

  .experience-copy {
    padding: 30px;
  }

  .link-row,
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer-grid > span:last-child {
    justify-self: start;
    text-align: left;
  }

  .page {
    background-attachment: scroll;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .nav-cta {
    transition: none;
  }
}
