:root {
  --green: #2fdb55;
  --ink: #091120;
  --night: #121a2b;
  --panel: #171f31;
  --panel-strong: #1d2639;
  --line: rgba(172, 184, 204, 0.18);
  --text: #f7fafc;
  --muted: #9aa6b8;
  --paper: #121a2b;
  --paper-ink: #f7fafc;
  --accent: #ffbf47;
  --accent-dark: #8e6720;
  --orange: #ff8a2b;
  --blue-glow: #2f7dff;
  --coral: #4d82ff;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #091120;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  overflow-x: hidden;
}

body.deeplink-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(9, 17, 32, 0.98) 0%, rgba(9, 17, 32, 0.78) 52%, rgba(9, 17, 32, 0.62) 100%),
    url("../img/bg_home.png") center / cover no-repeat,
    #091120;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.deeplink-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  overflow: hidden;
}

.deeplink-hero {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.deeplink-copy {
  max-width: 620px;
}

.deeplink-brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
}

.deeplink-brand img {
  width: 42px;
  height: 42px;
}

.deeplink-copy h1 {
  margin-top: 12px;
  font-family: var(--font-heading);
  font-size: clamp(2.35rem, 7vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: 0;
  max-width: 760px;
}

.deeplink-description {
  max-width: 620px;
  margin-top: 24px;
  color: rgba(247, 250, 252, 0.78);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.deeplink-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.store-badge.store-badge-large {
  min-height: 64px;
  padding: 13px 18px;
}

.deeplink-secondary {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 0 18px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.deeplink-secondary:hover {
  border-color: rgba(47, 219, 85, 0.58);
  color: var(--green);
  transform: translateY(-2px);
}

.deeplink-visual {
  position: relative;
  min-height: min(76vh, 620px);
  display: grid;
  place-items: center;
}

.deeplink-visual::before {
  content: "";
  position: absolute;
  inset: 10% 2%;
  border-radius: 999px;
  background: rgba(47, 125, 255, 0.16);
  filter: blur(42px);
}

.deeplink-phone {
  position: relative;
  z-index: 1;
  width: min(82vw, 320px);
  filter:
    drop-shadow(0 34px 54px rgba(0, 0, 0, 0.58))
    drop-shadow(0 0 38px rgba(47, 125, 255, 0.26));
}

.deeplink-card {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 12%;
  width: min(58vw, 245px);
  filter:
    drop-shadow(0 24px 34px rgba(0, 0, 0, 0.44))
    drop-shadow(0 0 26px rgba(47, 219, 85, 0.16));
}

@media (max-width: 820px) {
  .deeplink-shell {
    min-height: auto;
    place-items: start;
    padding: 28px 20px 44px;
  }

  .deeplink-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .deeplink-brand {
    margin-bottom: 36px;
  }

  .deeplink-copy h1 {
    font-size: clamp(2.2rem, 13vw, 3.5rem);
    line-height: 1;
  }

  .deeplink-actions {
    align-items: stretch;
  }

  .deeplink-actions,
  .store-badge-large,
  .deeplink-secondary {
    width: 100%;
  }

  .deeplink-visual {
    min-height: 360px;
    order: -1;
  }

  .deeplink-phone {
    width: min(68vw, 250px);
  }

  .deeplink-card {
    right: 8%;
    bottom: 8%;
    width: min(52vw, 190px);
  }
}

.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(9, 17, 32, 0.88);
  backdrop-filter: blur(18px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.nav-brand,
.nav-controls {
  display: flex;
  align-items: center;
}

.nav-brand {
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
}

.nav-brand img {
  width: 40px;
  height: 40px;
}

.nav-controls {
  gap: 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-controls a {
  transition: color 180ms ease;
}

.nav-controls a:hover {
  color: var(--green);
}

.language-selector {
  min-width: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  font: 700 0.88rem var(--font-body);
  padding: 9px 12px;
}

.language-selector option {
  background: var(--night);
  color: var(--text);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background: #091120;
  padding: 112px 0 72px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(9, 17, 32, 0.98) 0%, rgba(9, 17, 32, 0.84) 38%, rgba(9, 17, 32, 0.46) 72%, rgba(9, 17, 32, 0.76) 100%),
    linear-gradient(180deg, rgba(9, 17, 32, 0.18) 0%, #091120 100%),
    url("../img/bg_home.png") center / cover no-repeat,
    radial-gradient(circle at 74% 18%, rgba(47, 125, 255, 0.24), transparent 30%),
    radial-gradient(circle at 86% 76%, rgba(47, 219, 85, 0.1), transparent 24%),
    radial-gradient(circle at 12% 18%, rgba(255, 191, 71, 0.12), transparent 22%),
    #091120;
}

.hero::after {
  left: 0;
  right: 0;
  bottom: -1px;
  height: 150px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(9, 17, 32, 0), #091120 78%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 92px max(4vw, 24px) 36px 0;
  perspective: 1200px;
}

.game-lobby {
  position: relative;
  width: min(44vw, 540px);
  min-height: min(72vh, 580px);
  display: grid;
  align-content: start;
  gap: 14px;
  transform-style: preserve-3d;
}

.game-lobby::before,
.game-lobby::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.game-lobby::before {
  inset: 5% 2% 4% 8%;
  z-index: -2;
  border-radius: 40px;
  background:
    linear-gradient(rgba(47, 219, 85, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 125, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(135deg, transparent, #000 18%, #000 82%, transparent);
  transform: rotate(-3deg);
}

.game-lobby::after {
  inset: 10% 4% 12% 4%;
  z-index: -3;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 20%, rgba(47, 219, 85, 0.24), transparent 34%),
    radial-gradient(circle at 70% 72%, rgba(47, 125, 255, 0.26), transparent 36%);
  filter: blur(34px);
}

.lobby-panel {
  border: 1px solid rgba(172, 184, 204, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 32%),
    rgba(13, 22, 38, 0.84);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.leaderboard-panel {
  position: relative;
  z-index: 2;
  width: min(100%, 520px);
  justify-self: center;
  padding: 18px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-head strong {
  display: block;
  margin-top: 3px;
  font-family: var(--font-heading);
  font-size: 1.38rem;
  line-height: 1;
}

.hud-label,
.live-pill {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hud-label {
  color: var(--green);
}

.live-pill {
  border: 1px solid rgba(47, 219, 85, 0.44);
  border-radius: 999px;
  background: rgba(47, 219, 85, 0.12);
  color: #c8ffd4;
  padding: 6px 10px;
  box-shadow: 0 0 22px rgba(47, 219, 85, 0.16);
}

.leaderboard-list {
  display: grid;
  gap: 10px;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 34px 46px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 11px;
  min-height: 66px;
  border: 1px solid rgba(172, 184, 204, 0.15);
  border-radius: 8px;
  background: rgba(23, 31, 49, 0.82);
  padding: 10px 12px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.leaderboard-row:hover {
  transform: translateX(-6px);
  border-color: rgba(47, 219, 85, 0.54);
  box-shadow: 0 0 28px rgba(47, 219, 85, 0.12);
}

.leaderboard-row strong,
.rank-score {
  font-family: var(--font-heading);
}

.leaderboard-row small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.rank-number {
  color: rgba(247, 250, 252, 0.58);
  font-size: 0.75rem;
  font-weight: 900;
}

.rank-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 191, 71, 0.92);
  font-size: 1rem;
  line-height: 1;
}

.rank-icon svg {
  width: 100%;
  height: 100%;
}

.avatar-chip {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(47, 125, 255, 0.28), rgba(47, 219, 85, 0.18)),
    #10192a;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  overflow: hidden;
}

.avatar-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.avatar-chip-letter {
  font-size: 0.92rem;
}

.leaderboard-row div {
  min-width: 0;
}

.leaderboard-row strong {
  display: block;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-country {
  min-width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.rank-position {
  color: #f6d36f;
  font-size: 0.82rem;
  font-weight: 900;
}

.rank-score {
  color: #fff;
  font-size: 1.1rem;
}

.rank-trend {
  min-width: 34px;
  border-radius: 999px;
  background: rgba(47, 219, 85, 0.12);
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  padding: 4px 7px;
  text-align: center;
}

.rank-gold {
  border-color: rgba(255, 191, 71, 0.36);
  background:
    linear-gradient(90deg, rgba(255, 191, 71, 0.13), transparent 70%),
    rgba(23, 31, 49, 0.9);
}

.rank-silver {
  border-color: rgba(172, 184, 204, 0.24);
}

.rank-player {
  border-color: rgba(47, 219, 85, 0.46);
  box-shadow: inset 3px 0 0 var(--green);
}

.xp-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(172, 184, 204, 0.12);
  margin-top: 14px;
  overflow: hidden;
}

.xp-track span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue-glow));
  box-shadow: 0 0 20px rgba(47, 219, 85, 0.48);
}

.prediction-widget {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  width: min(58%, 280px);
  padding: 15px;
}

.leaderboard-row.rank-gold .rank-position {
  color: #ffcf4b;
}

.leaderboard-row.rank-silver .rank-position {
  color: #e0e8f2;
}

.leaderboard-row.rank-player .rank-position {
  color: var(--green);
}

.match-prediction {
  display: grid;
  grid-template-columns: 1fr 44px 16px 44px 1fr;
  align-items: center;
  gap: 6px;
  margin: 10px 0 6px;
  text-align: center;
}

.match-prediction span,
.match-prediction strong,
.match-prediction em {
  font-family: var(--font-heading);
  font-style: normal;
  font-weight: 900;
}

.match-prediction span {
  color: #d7dee8;
  font-size: 0.82rem;
}

.match-prediction strong {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(47, 219, 85, 0.38);
  border-radius: 8px;
  background: rgba(47, 219, 85, 0.1);
  color: #fff;
  font-size: 1.45rem;
}

.match-prediction em {
  color: rgba(247, 250, 252, 0.5);
}

.prediction-widget small {
  color: var(--muted);
  font-weight: 800;
}

.achievement-cluster {
  position: absolute;
  z-index: 4;
  right: 1%;
  top: 2%;
  display: grid;
  gap: 12px;
}

.achievement-medal {
  width: 92px;
  min-height: 104px;
  display: grid;
  justify-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(13, 22, 38, 0.78);
  box-shadow: 0 24px 38px rgba(0, 0, 0, 0.34);
  padding: 12px 10px 10px;
}

.achievement-medal span,
.mini-medal {
  position: relative;
  width: 44px;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.32), 0 0 24px currentColor;
}

.achievement-medal span::after,
.mini-medal::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.36);
}

.achievement-medal strong {
  color: #fff;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.medal-gold span {
  background: linear-gradient(135deg, #fff2a8, var(--accent) 42%, #8e6720);
  color: rgba(255, 191, 71, 0.68);
}

.medal-blue span {
  background: linear-gradient(135deg, #b9d7ff, var(--blue-glow) 48%, #174280);
  color: rgba(47, 125, 255, 0.7);
}

.medal-green span {
  background: linear-gradient(135deg, #c8ffd4, var(--green) 48%, #0f7a2a);
  color: rgba(47, 219, 85, 0.7);
}

.phone-stage {
  position: relative;
  width: min(48vw, 620px);
  min-height: min(84vh, 680px);
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
}

.phone-stage::before {
  content: "";
  position: absolute;
  inset: 6% 8%;
  border-radius: 50%;
  background: rgba(47, 125, 255, 0.14);
  filter: blur(46px);
  animation: stadium-halo 7s ease-in-out infinite;
}

.phone-stage::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 12%;
  bottom: 3%;
  height: 16%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  filter: blur(28px);
  transform: rotateX(76deg);
}

.phone-mockup {
  position: relative;
  z-index: 2;
  width: min(29vw, 360px);
  max-height: 84vh;
  object-fit: contain;
  object-position: right center;
  filter:
    drop-shadow(0 34px 54px rgba(0, 0, 0, 0.58))
    drop-shadow(0 0 38px rgba(47, 125, 255, 0.26));
  opacity: 1;
  animation: phone-counter-drift 8s ease-in-out infinite;
}

.mockup-satellite {
  position: absolute;
  z-index: 3;
  width: clamp(170px, 15vw, 230px);
  filter:
    drop-shadow(0 22px 32px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 24px rgba(47, 125, 255, 0.16));
  transform-style: preserve-3d;
  transform: translate3d(0, 0, 0) rotate(var(--sat-rotate, 0deg)) scale(1);
  animation: satellite-breathe var(--sat-duration, 10s) ease-in-out infinite;
  animation-delay: var(--sat-delay, 0s);
  transition: transform 220ms ease, filter 220ms ease;
}

.mockup-satellite:hover {
  transform: translate3d(0, -8px, 0) rotateX(5deg) rotateY(-6deg) rotate(var(--sat-rotate, 0deg));
  filter:
    drop-shadow(0 28px 42px rgba(0, 0, 0, 0.48))
    drop-shadow(0 0 28px rgba(47, 219, 85, 0.2));
}

.mockup-satellite img {
  width: 100%;
  height: auto;
}

.mockup-satellite-next {
  right: calc(61% + 50px);
  top: 21%;
  --sat-x: 12px;
  --sat-y: -18px;
  --sat-rotate: -4deg;
  --sat-rotate-mid: 1.5deg;
  --sat-scale: 1.025;
  --sat-duration: 10.5s;
  --sat-delay: -1.6s;
}

.mockup-satellite-ranking {
  right: -8%;
  top: 24%;
  width: clamp(170px, 15vw, 230px);
  --sat-x: -16px;
  --sat-y: 12px;
  --sat-rotate: 3deg;
  --sat-rotate-mid: -1.8deg;
  --sat-scale: 1.018;
  --sat-duration: 12.2s;
  --sat-delay: -4.4s;
}

.mockup-satellite-group {
  right: 4%;
  bottom: 15%;
  width: clamp(170px, 15vw, 230px);
  --sat-x: 9px;
  --sat-y: 16px;
  --sat-rotate: 2deg;
  --sat-rotate-mid: -2.4deg;
  --sat-scale: 1.022;
  --sat-duration: 11.4s;
  --sat-delay: -7s;
}

.stadium-lights {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.62;
  pointer-events: none;
}

.stadium-lights::before,
.stadium-lights::after {
  content: "";
  position: absolute;
  top: 5%;
  width: 170px;
  height: 96px;
  border-radius: 50%;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.34) 0 6px, transparent 6px 16px),
    rgba(47, 125, 255, 0.1);
  filter: blur(10px);
  transform: rotate(-12deg);
}

.stadium-lights::before {
  right: 36%;
}

.stadium-lights::after {
  right: 3%;
  transform: rotate(14deg);
}

.phone-halo {
  position: absolute;
  z-index: 1;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(47, 125, 255, 0.28), rgba(47, 125, 255, 0.08) 44%, transparent 68%);
  filter: blur(10px);
}

.holo-card {
  position: absolute;
  z-index: 4;
  width: clamp(158px, 14vw, 210px);
  border: 1px solid rgba(172, 184, 204, 0.24);
  border-radius: 12px;
  background: rgba(16, 25, 43, 0.72);
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 22px 42px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  padding: 14px 16px;
  transform-style: preserve-3d;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
  animation: holo-drift 7s ease-in-out infinite;
}

.holo-card:hover {
  transform: translateY(-8px) rotateX(5deg) rotateY(-6deg);
  border-color: rgba(47, 219, 85, 0.62);
  box-shadow:
    0 26px 54px rgba(0, 0, 0, 0.44),
    0 0 28px rgba(47, 219, 85, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.holo-kicker {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.holo-card strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1rem;
  line-height: 1.1;
}

.holo-card small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.68rem;
  line-height: 1.25;
}

.holo-card > * {
  position: relative;
  z-index: 1;
}

.holo-card-streak {
  right: 45%;
  top: 5%;
  border-color: rgba(255, 138, 43, 0.44);
}

.holo-card-streak strong {
  color: #ffd9b3;
}

.flame-pulse {
  position: absolute;
  right: 12px;
  top: 12px;
  font-style: normal;
  filter: drop-shadow(0 0 14px rgba(255, 138, 43, 0.86));
  animation: flame-pulse 1.4s ease-in-out infinite;
}

.holo-card-achievement {
  right: 6%;
  top: 8%;
  border-color: rgba(255, 191, 71, 0.48);
  animation-delay: -1.8s;
}

.holo-card-achievement strong {
  color: var(--accent);
}

.holo-card-achievement::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 10%, rgba(255, 255, 255, 0.22) 45%, transparent 62%);
  transform: translateX(-120%);
  animation: achievement-shine 5.8s ease-in-out infinite;
}

.holo-card-prediction {
  right: calc(61% + 20px);
  bottom: calc(8% + 80px);
  border-color: rgba(47, 219, 85, 0.52);
  animation-delay: -4.6s;
}

.holo-card-prediction strong {
  color: #c8ffd4;
}

.confetti-burst,
.confetti-burst::before,
.confetti-burst::after {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow:
    18px -8px 0 var(--accent),
    34px 4px 0 #4d82ff,
    48px -12px 0 var(--orange),
    62px 8px 0 #fff;
  opacity: 0;
  animation: confetti-pop 3.2s ease-in-out infinite;
}

.confetti-burst {
  right: 58px;
  top: 6px;
}

.confetti-burst::before,
.confetti-burst::after {
  content: "";
}

.confetti-burst::before {
  transform: translate(-22px, 24px);
  animation-delay: 0.2s;
}

.confetti-burst::after {
  transform: translate(8px, 34px);
  animation-delay: 0.4s;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(9, 17, 32, 0.22);
}

@keyframes stadium-halo {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.96);
  }

  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes holo-drift {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -10px;
  }
}

@keyframes phone-counter-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(-7px, 9px, 0) rotate(-0.7deg);
  }
}

@keyframes satellite-breathe {
  0% {
    transform: translate3d(0, 0, 0) rotate(var(--sat-rotate, 0deg)) scale(1);
  }

  24% {
    transform: translate3d(calc(var(--sat-x, 10px) * 0.42), calc(var(--sat-y, -14px) * -0.34), 0) rotate(var(--sat-rotate-mid, 1deg)) scale(var(--sat-scale, 1.02));
  }

  52% {
    transform: translate3d(var(--sat-x, 10px), var(--sat-y, -14px), 0) rotate(calc(var(--sat-rotate, 0deg) * -1)) scale(0.994);
  }

  78% {
    transform: translate3d(calc(var(--sat-x, 10px) * -0.36), calc(var(--sat-y, -14px) * 0.5), 0) rotate(var(--sat-rotate-mid, 1deg)) scale(1.01);
  }

  100% {
    transform: translate3d(0, 0, 0) rotate(var(--sat-rotate, 0deg)) scale(1);
  }
}

@keyframes flame-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.22);
  }
}

@keyframes achievement-shine {
  0%,
  60% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(120%);
  }
}

@keyframes confetti-pop {
  0%,
  72% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.4);
  }

  82% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(10px, -28px, 0) scale(1);
  }
}

.hero-content {
  max-width: 620px;
}

.eyebrow {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.hero h1,
.section-head h2,
.pro-copy h2 {
  font-family: var(--font-heading);
  line-height: 1;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 660px;
  font-size: clamp(3.1rem, 7vw, 6.1rem);
  margin-bottom: 24px;
}

.hero-copy {
  color: #d7dee8;
  font-size: clamp(1.02rem, 1.8vw, 1.22rem);
  max-width: 610px;
  margin-bottom: 30px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 38px;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: #fff;
  padding: 9px 16px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(53, 214, 107, 0.62);
  background: rgba(53, 214, 107, 0.13);
}

.store-badge-secondary {
  background: rgba(255, 191, 71, 0.12);
  border-color: rgba(255, 191, 71, 0.26);
}

.store-badge svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.store-badge span {
  display: grid;
  gap: 1px;
  font-family: var(--font-heading);
  font-size: 1.04rem;
  font-weight: 800;
}

.store-badge small {
  color: var(--muted);
  font: 800 0.64rem var(--font-body);
  text-transform: uppercase;
}

.section-band {
  padding: 96px 0;
  background: #091120;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.section-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(172, 184, 204, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(172, 184, 204, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
}

.section-band::after {
  will-change: opacity, transform;
}

.section-band .section-head,
.section-band .competitions-tools,
.section-band .competitions-grid,
.section-band .features-grid,
.section-band .trivia-layout,
.section-band .today-matches-tools,
.section-band .today-matches-grid,
.section-band .pro-layout {
  position: relative;
  z-index: 1;
}

.competitions::after,
.features::after,
.subscription::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.16;
  transform: scale(1.035);
  transition: opacity 900ms ease, transform 1200ms ease;
}

.section-band.is-visible::after {
  opacity: 0.48;
  transform: scale(1);
}

.competitions::after {
  background:
    linear-gradient(180deg, #091120 0%, rgba(9, 17, 32, 0.74) 28%, rgba(9, 17, 32, 0.9) 100%),
    url("../img/bg_classification.png") center top / cover no-repeat;
}

.features::after {
  background:
    linear-gradient(180deg, #091120 0%, rgba(9, 17, 32, 0.7) 36%, #091120 100%),
    url("../img/bg_social.png") center top / cover no-repeat;
}

.subscription::after {
  background:
    linear-gradient(90deg, rgba(9, 17, 32, 0.82) 0%, rgba(9, 17, 32, 0.44) 56%, rgba(9, 17, 32, 0.86) 100%),
    linear-gradient(180deg, rgba(9, 17, 32, 0.78) 0%, rgba(9, 17, 32, 0.36) 42%, rgba(9, 17, 32, 0.82) 100%),
    url("../img/bg_ranking.png") center / cover no-repeat;
}

.subscription.is-visible::after {
  opacity: 0.68;
}

.section-band.light {
  background: #091120;
  color: var(--text);
}

.section-head {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin-bottom: 44px;
}

.section-link {
  margin-top: 4px;
}

.section-head h2,
.pro-copy h2 {
  font-size: clamp(2.15rem, 4vw, 4.25rem);
}

.section-head p:not(.eyebrow),
.pro-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 660px;
}

.light .section-head p:not(.eyebrow) {
  color: var(--muted);
}

.trivia {
  background:
    linear-gradient(180deg, rgba(9, 17, 32, 0.98), rgba(9, 17, 32, 0.92)),
    url("../img/bg_profile.png") center / cover no-repeat,
    #091120;
}

.trivia-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 40px;
  align-items: center;
}

.trivia-copy {
  display: grid;
  gap: 18px;
  max-width: 560px;
}

.trivia-copy h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.15rem, 4vw, 4.25rem);
  line-height: 1;
}

.trivia-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.trivia-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(172, 184, 204, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 219, 85, 0.12), transparent 34%),
    rgba(23, 31, 49, 0.92);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: clamp(22px, 4vw, 34px);
}

.trivia-card::after {
  content: "?";
  position: absolute;
  right: -12px;
  bottom: -48px;
  color: rgba(255, 255, 255, 0.035);
  font-family: var(--font-heading);
  font-size: 14rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.trivia-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.trivia-level {
  border: 1px solid rgba(255, 191, 71, 0.36);
  border-radius: 999px;
  background: rgba(255, 191, 71, 0.1);
  color: #ffe0a3;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 6px 10px;
  text-transform: uppercase;
}

.trivia-card h3 {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  line-height: 1.08;
  margin-bottom: 24px;
}

.trivia-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
}

.trivia-options {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.trivia-option {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(172, 184, 204, 0.17);
  border-radius: 8px;
  background: rgba(13, 22, 38, 0.78);
  color: #fff;
  cursor: pointer;
  font: 800 0.98rem var(--font-body);
  padding: 13px 15px;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.trivia-option:hover:not(:disabled),
.trivia-option:focus-visible {
  border-color: rgba(47, 219, 85, 0.58);
  background: rgba(47, 219, 85, 0.12);
  outline: none;
  transform: translateX(4px);
}

.trivia-option:disabled {
  cursor: default;
}

.trivia-option.is-correct {
  border-color: rgba(47, 219, 85, 0.76);
  background: rgba(47, 219, 85, 0.18);
  color: #c8ffd4;
}

.trivia-option.is-wrong {
  border-color: rgba(255, 138, 138, 0.56);
  background: rgba(255, 138, 138, 0.12);
  color: #ffd0d0;
}

.trivia-feedback {
  position: relative;
  z-index: 1;
  min-height: 24px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  margin-top: 18px;
}

.trivia-feedback[data-status="success"] {
  color: var(--green);
}

.trivia-feedback[data-status="error"] {
  color: #ff9a9a;
}

.btn-trivia {
  width: fit-content;
  min-height: 48px;
  border: 1px solid rgba(47, 219, 85, 0.34);
  background: linear-gradient(135deg, rgba(47, 219, 85, 0.96), rgba(19, 43, 27, 0.98));
  color: #effff2;
  box-shadow: 0 14px 30px rgba(47, 219, 85, 0.16);
}

.btn-trivia:hover {
  border-color: rgba(47, 219, 85, 0.62);
  transform: translateY(-2px);
}

.competitions-tools {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.seo-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.seo-overview-item {
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(23, 31, 49, 0.9);
  padding: 22px;
}
.game-step-card img, .seo-overview-item img{
  width: calc(100% + 40px); /* Extiende el ancho sumando izquierdo y derecho del padding */
  margin-top: -20px;       /* Sube la imagen para anular el padding superior */
  margin-left: -20px;      /* Extiende hacia el borde izquierdo */
  margin-right: -20px;     /* Extiende hacia el borde derecho */
  max-width: none;
  display: block;
}


.seo-overview-item span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(47, 219, 85, 0.12);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 900;
  margin-bottom: 34px;
}

.seo-overview-item h3 {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  line-height: 1.14;
  margin: 10px 0;
}

.seo-overview-item p {
  color: var(--muted);
  font-size: 0.95rem;
}

.app-showcase {
  background: #10192a;
}

.app-showcase-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.app-showcase-copy {
  max-width: 560px;
}

.app-showcase-copy h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 18px;
}

.app-showcase-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.app-showcase-visual {
  position: relative;
  margin: 0;
}

.app-showcase-visual::before {
  content: "";
  position: absolute;
  inset: 8% 10%;
  z-index: -1;
  border-radius: 40%;
  background: rgba(47, 219, 85, 0.14);
  filter: blur(44px);
}

.app-showcase-visual img {
  width: 100%;
}

.league-search {
  display: grid;
  gap: 8px;
  width: min(100%, 360px);
}

.league-search span,
.competitions-status {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.league-search input {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font: 700 0.95rem var(--font-body);
  padding: 0 14px;
  outline: none;
}

.league-search input:focus {
  border-color: rgba(53, 214, 107, 0.7);
}

.league-search input::placeholder {
  color: rgba(174, 185, 200, 0.72);
}

.competitions-status {
  margin-bottom: 10px;
  text-align: right;
}

.competitions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 16px;
}

.comp-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  align-content: start;
  gap: 12px;
  min-height: 128px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.comp-card::after,
.feature-card::after,
.pro-row::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 34%);
  opacity: 0.55;
}

.comp-card:hover {
  transform: translateY(-5px) rotateX(2deg);
  border-color: rgba(47, 219, 85, 0.72);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24), 0 0 24px rgba(47, 219, 85, 0.12);
}

.comp-card span {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comp-card-featured {
  display: grid;
  min-height: 178px;
  border: 0;
  background: transparent;
  padding: 0;
  overflow: visible;
}

.comp-card-featured::after {
  display: none;
}

.comp-card-featured:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: none;
}

.comp-card-featured .comp-card-hero {
  position: relative;
  min-height: 156px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  border-radius: 8px;
  overflow: hidden;
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.26);
}

.comp-card-featured .comp-card-hero::before,
.comp-card-featured .comp-card-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.comp-card-featured .comp-card-hero::before {
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.2), transparent 34%),
    linear-gradient(300deg, rgba(255, 255, 255, 0.18) 0 18%, transparent 18% 100%);
  opacity: 0.7;
}

.comp-card-featured .comp-card-hero::after {
  right: -42px;
  top: -32px;
  width: 190px;
  height: 230px;
  background: rgba(255, 255, 255, 0.16);
  transform: rotate(32deg);
}

.comp-card-featured .comp-logo,
.comp-card-featured strong,
.comp-card-featured .comp-card-title,
.comp-card-featured .comp-card-hero small,
.comp-card-featured .comp-live {
  position: relative;
  z-index: 1;
}

.comp-card-featured .comp-logo {
  width: 56px;
  height: 56px;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.comp-card-featured .comp-logo img {
  max-width: 46px;
  max-height: 46px;
}

.comp-card-featured .comp-logo-fallback {
  background: #fff;
  color: #10192a;
}

.comp-card-featured strong,
.comp-card-featured .comp-card-title {
  color: #fff;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  text-transform: uppercase;
}

.comp-card-featured .comp-card-hero small {
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 900;
}

.comp-live {
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(9, 17, 32, 0.18);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 5px 9px;
  text-transform: uppercase;
}

.comp-theme-1 .comp-card-hero {
  background: linear-gradient(135deg, #00c6d7 0%, #2665f5 62%, #10d5c5 100%);
}

.comp-theme-2 .comp-card-hero {
  background: linear-gradient(135deg, #291f24 0%, #0b91b4 54%, #0fb1d9 100%);
}

.comp-theme-3 .comp-card-hero {
  background: linear-gradient(135deg, #05045f 0%, #06157f 58%, #1726c9 100%);
}

.comp-theme-4 .comp-card-hero {
  background: linear-gradient(135deg, #004f93 0%, #0098dc 64%, #0dc7e6 100%);
}

.comp-theme-5 .comp-card-hero {
  background: linear-gradient(135deg, #ff2b18 0%, #ff624f 58%, #ff8a6c 100%);
}

.comp-theme-6 .comp-card-hero {
  background: linear-gradient(135deg, #ffb000 0%, #ff7a00 52%, #ffd21f 100%);
}

.today-matches {
  background:
    linear-gradient(180deg, rgba(9, 17, 32, 0.96), rgba(9, 17, 32, 0.9)),
    url("../img/bg_ranking.png") center / cover no-repeat,
    #091120;
}

.today-matches-tools {
  display: flex;
  justify-content: flex-end;
  margin: -22px auto 22px;
}

.today-matches-status {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.today-matches-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.match-board {
  display: grid;
  gap: 40px;
}

.match-board-group {
  display: grid;
  gap: 18px;
  padding: 0;
}

.match-board-group + .match-board-group {
  padding-top: 30px;
  border-top: 1px solid rgba(172, 184, 204, 0.14);
}

.match-tournament-list {
  display: grid;
  gap: 22px;
}

.match-tournament-group {
  display: grid;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(172, 184, 204, 0.12);
  background: transparent;
  box-shadow: none;
}

.match-tournament-group:first-child {
  padding-top: 0;
  border-top: 0;
}

.match-tournament-head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 2px;
}

.match-board-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.match-board-head-copy {
  display: grid;
  gap: 4px;
}

.match-board-kicker {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.match-tournament-logo {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: #091120;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 900;
  overflow: hidden;
  padding: 0;
}

.match-tournament-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.match-tournament-head strong {
  display: block;
  min-width: 0;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  line-height: 1.05;
}

.match-tournament-head span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  margin-top: 3px;
}

.match-tournament-head em {
  max-width: 320px;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.match-tournament-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(47, 125, 255, 0.34);
  border-radius: 999px;
  background: rgba(47, 125, 255, 0.12);
  color: #e9f2ff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.match-tournament-link:hover {
  background: rgba(47, 125, 255, 0.22);
  border-color: rgba(47, 125, 255, 0.56);
  color: #fff;
  transform: translateY(-1px);
}

.match-board-head h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  line-height: 1;
}

.match-board-head span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.today-match-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  color: #fff;
}


/* Asegurar que el contenido esté por encima del fondo */
.today-match-league,
.today-match-versus,
.today-match-footer {
  position: relative;
  z-index: 1;
}

/* (El resto de tus estilos para temas y componentes se mantienen igual) */
/* Fondos vibrantes basados en tus temas */
.today-match-theme-1 {
  background: linear-gradient(135deg, #00c6d7 0%, #2665f5 62%, #10d5c5 100%);
}

.today-match-theme-2 {
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%); /* Azul/Morado noche profundo y vibrante */
}

.today-match-theme-3 {
  background: linear-gradient(135deg, #0052D4 0%, #4364F7 50%, #6FB1FC 100%); /* Azul eléctrico brillante */
}

.today-match-theme-4 {
  background: linear-gradient(135deg, #ff2b18 0%, #ff624f 58%, #ff8a6c 100%);
}

.today-match-theme-5 {
  background: linear-gradient(135deg, #f12711 0%, #f5af19 100%); /* Naranja rojizo fuego muy enérgico */
}

.today-match-theme-6 {
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%); /* Estilo tricolor vibrante (morado/fucsia a amarillo brillante) ideal para destacar */
}


/* Efecto de marca de agua / imagen de fondo difuminada estilo banner */
.today-match-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg-team-logo, none);
  background-size: contain;
  background-position: center;
  filter: blur(12px) opacity(0.18);
  transform: scale(1.1);
  pointer-events: none;
  z-index: 0;
}

.today-match-league,
.today-match-versus,
.today-match-footer {
  position: relative;
  z-index: 1;
}

.today-match-league {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.today-match-league span {
  background: rgba(0, 0, 0, 0.2);
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.today-match-status {
  color: #fff;
  background: rgba(47, 219, 85, 0.85);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.today-match-versus {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.today-team {
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  min-width: 0;
  padding: 12px 8px;
  border-radius: 10px;
}

/* El fondo difuminado individual para cada equipo */
.today-team::before {
  content: "";
  position: absolute;
  inset: 0; /* Se ajusta exactamente al espacio de cada equipo */
  background-image: var(--team-bg);
  background-size: auto 120%; /* Ajusta el tamaño del fondo según sea necesario */
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(4px) brightness(0.5); /* Desenfoque y brillo para oscurecer un poco */
  opacity: 0.5; /* Transparencia para que actúe como marca de agua */
  pointer-events: none;
  z-index: 0;
}

/* Asegurar que el logo y el texto queden por encima del fondo difuminado */
.today-team > * {
  position: relative;
  z-index: 1;
}

.today-team-logo {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.today-team-logo img {
  max-width: 34px;
  max-height: 34px;
  object-fit: contain;
}

.today-team strong {
  width: 100%;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.versus-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.versus-core span {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.versus-core small {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.68rem;
  font-weight: 700;
}

.today-match-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.today-match-cta {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.comp-card-skeleton,
.today-match-card-skeleton {
  opacity: 0.72;
}

.comp-card-skeleton .comp-card-hero,
.today-match-card-skeleton {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07)),
    rgba(23, 31, 49, 0.74);
  background-size: 220% 100%;
  animation: skeleton-shimmer 1.3s ease-in-out infinite;
}

.comp-card strong {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  line-height: 1.1;
}

.comp-card small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.comp-logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(174, 185, 200, 0.18);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.comp-logo img {
  max-width: 34px;
  max-height: 34px;
  object-fit: contain;
}

.comp-card .comp-logo-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: rgba(255, 191, 71, 0.12);
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.comp-country {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d7dee8;
  font-size: 0.72rem;
  font-weight: 800;
}

.comp-country img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}

.comp-card-skeleton {
  opacity: 0.7;
}

.comp-card-skeleton span,
.comp-card-skeleton strong {
  display: block;
  width: 54%;
  height: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.comp-card-skeleton strong {
  width: 78%;
  height: 22px;
  margin-top: 42px;
}

.today-match-card-skeleton span,
.today-match-card-skeleton strong,
.today-match-card-skeleton small,
.match-tournament-skeleton .match-tournament-logo,
.match-tournament-skeleton .match-tournament-head strong,
.match-tournament-skeleton .match-tournament-head span,
.match-tournament-skeleton .match-tournament-head em,
.trivia-option-skeleton {
  color: transparent;
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07)),
    rgba(255, 255, 255, 0.08);
  background-size: 220% 100%;
  animation: skeleton-shimmer 1.3s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 180% 0;
  }

  100% {
    background-position: -180% 0;
  }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.game-steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.game-step-card {
  position: relative;
  min-height: 300px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 18px;
  border: 1px solid rgba(172, 184, 204, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 30%),
    rgba(16, 25, 43, 0.92);
  overflow: hidden;
  padding: 22px;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.game-step-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(47, 125, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 219, 85, 0.045) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.7;
  mask-image: linear-gradient(180deg, #000, transparent 72%);
}

.game-step-card:hover {
  transform: translateY(-8px);
  border-color: rgba(47, 219, 85, 0.54);
  box-shadow:
    0 28px 58px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(47, 219, 85, 0.12);
}

.game-step-card.is-featured {
  border-color: rgba(47, 125, 255, 0.5);
  background:
    linear-gradient(135deg, rgba(47, 125, 255, 0.18), transparent 36%),
    rgba(16, 25, 43, 0.94);
}

.step-index {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(47, 219, 85, 0.36);
  border-radius: 8px;
  background: rgba(47, 219, 85, 0.1);
  color: var(--green);
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 900;
}

.step-visual {
  position: relative;
  z-index: 1;
  min-height: 170px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(172, 184, 204, 0.13);
  border-radius: 8px;
  background: rgba(9, 17, 32, 0.72);
  overflow: hidden;
}

.step-visual::before {
  content: "";
  position: absolute;
  inset: 16%;
  border-radius: 999px;
  background: rgba(47, 125, 255, 0.18);
  filter: blur(28px);
}

.team-ring {
  position: relative;
  width: 142px;
  aspect-ratio: 1;
  border: 1px solid rgba(47, 219, 85, 0.24);
  border-radius: 50%;
}

.team-ring span {
  position: absolute;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(47, 125, 255, 0.34), rgba(47, 219, 85, 0.18));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.team-ring span:nth-child(1) {
  left: 50%;
  top: -18px;
  transform: translateX(-50%);
}

.team-ring span:nth-child(2) {
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
}

.team-ring span:nth-child(3) {
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
}

.team-ring span:nth-child(4) {
  left: -18px;
  top: 50%;
  transform: translateY(-50%);
}

.invite-strip {
  position: absolute;
  right: 14px;
  bottom: 14px;
  border: 1px solid rgba(255, 191, 71, 0.36);
  border-radius: 8px;
  background: rgba(255, 191, 71, 0.12);
  padding: 8px 10px;
}

.invite-strip strong,
.invite-strip .visual-strong,
.invite-strip small {
  display: block;
  font-weight: 900;
  line-height: 1;
}

.invite-strip strong,
.invite-strip .visual-strong {
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.invite-strip small {
  color: rgba(247, 250, 252, 0.62);
  font-size: 0.58rem;
  margin-top: 4px;
}

.fixture-chip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 44px 14px 44px 1fr;
  align-items: center;
  gap: 7px;
  width: min(100%, 260px);
}

.fixture-chip span,
.fixture-chip strong,
.fixture-chip .visual-strong,
.fixture-chip em {
  font-family: var(--font-heading);
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.fixture-chip span {
  color: #d7dee8;
  font-size: 0.82rem;
}

.fixture-chip strong,
.fixture-chip .visual-strong {
  min-height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(47, 219, 85, 0.38);
  border-radius: 8px;
  background: rgba(47, 219, 85, 0.1);
  color: #fff;
  font-size: 1.55rem;
}

.fixture-chip em {
  color: rgba(247, 250, 252, 0.44);
}

.lock-bar {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 34px;
  height: 6px;
  border-radius: 999px;
  background: rgba(172, 184, 204, 0.14);
  overflow: hidden;
}

.lock-bar span {
  display: block;
  width: 62%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-glow), var(--green));
}

.step-visual-pick > small {
  position: absolute;
  right: 22px;
  bottom: 48px;
  color: rgba(247, 250, 252, 0.62);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.step-visual-rank {
  align-content: center;
  gap: 10px;
}

.mini-rank-row {
  position: relative;
  z-index: 1;
  width: min(100%, 240px);
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(47, 219, 85, 0.28);
  border-radius: 8px;
  background: rgba(23, 31, 49, 0.86);
  padding: 10px 12px;
}

.mini-rank-row span,
.mini-rank-row strong,
.mini-rank-row .visual-strong,
.mini-rank-row em {
  font-style: normal;
  font-weight: 900;
}

.mini-rank-row span {
  color: var(--green);
  font-size: 0.75rem;
}

.mini-rank-row em {
  color: var(--green);
}

.mini-rank-row.muted {
  opacity: 0.74;
  border-color: rgba(172, 184, 204, 0.16);
}

.mini-rank-row.muted em {
  color: #ff8a8a;
}

.mini-medal {
  z-index: 1;
  width: 52px;
  background: linear-gradient(135deg, #fff2a8, var(--accent) 42%, #8e6720);
  color: rgba(255, 191, 71, 0.72);
}

.game-step-card h3 {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1.05;
}

.game-step-card p {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 0.96rem;
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 238px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.feature-card:hover {
  transform: translateY(-6px) rotateX(2deg);
  border-color: rgba(47, 219, 85, 0.54);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.28), 0 0 28px rgba(47, 125, 255, 0.12);
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(47, 219, 85, 0.12);
  color: var(--green);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: auto;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.28rem;
  line-height: 1.12;
  margin: 42px 0 12px;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.pro-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: start;
}

.pro-copy {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  width: fit-content;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  padding: 0 20px;
}

.btn-primary {
  background: var(--green);
  color: #06110d;
}

.btn-secondary {
  min-height: 40px;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.9rem;
}

.btn-secondary:hover {
  border-color: rgba(53, 214, 107, 0.62);
  color: var(--green);
}

.pro-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.pro-row {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  padding: 24px;
  transition: background 180ms ease;
}

.pro-row:hover {
  background: rgba(47, 125, 255, 0.08);
}

.pro-row + .pro-row {
  border-top: 1px solid var(--line);
}

.pro-row > span {
  width: 52px;
  height: 52px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: var(--accent-dark);
  font-size: 1rem;
  font-weight: 900;
  overflow: hidden;
}

.pro-row h3 {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  margin-bottom: 6px;
}

.pro-row p {
  color: var(--muted);
  font-size: 0.96rem;
}

.footer {
  border-top: 1px solid var(--line);
  background: #091120;
  padding: 52px 0 28px;
}

.footer-content {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) repeat(3, minmax(150px, 1fr));
  align-items: start;
  gap: 32px;
  margin-bottom: 34px;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
}

.footer-brand p,
.footer-bottom,
.footer-links a {
  color: var(--muted);
}

.footer-brand p {
  max-width: 420px;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-links a:hover {
  color: var(--green);
}

.footer-links h2 {
  font-family: var(--font-heading);
  font-size: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 22px;
  font-size: 0.9rem;
}

.terms-page {
  min-height: 100vh;
  padding: 120px 0 60px;
  background: var(--ink);
}

.terms-content {
  max-width: 820px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 36px;
}

.terms-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  margin-bottom: 18px;
}

.terms-content p {
  color: var(--muted);
  margin-bottom: 18px;
}

.terms-document {
  display: grid;
  gap: 14px;
}

.terms-document h2 {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 1.28rem;
  line-height: 1.15;
  margin-top: 22px;
}

.terms-document h2:first-child {
  margin-top: 0;
}

.terms-document p {
  margin-bottom: 0;
}

.terms-footnote {
  margin-top: 40px;
  font-size: 0.9rem;
}

.seo-page-main {
  min-height: 100vh;
  background: var(--ink);
}

.seo-hero {
  min-height: auto;
  padding-top: 132px;
  background: #091120;
}

.seo-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.42;
  background:
    linear-gradient(180deg, rgba(9, 17, 32, 0.92) 0%, rgba(9, 17, 32, 0.72) 42%, #091120 100%),
    url("../img/bg_classification.png") center top no-repeat;
}

.seo-shell {
  position: relative;
  z-index: 1;
  max-width: 980px;
}

.seo-shell > .eyebrow {
  margin-bottom: 14px;
}

.seo-shell > h1 {
  max-width: 860px;
  font-family: var(--font-heading);
  font-size: clamp(2.35rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
  margin-bottom: 18px;
}

.seo-shell > h2 {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.05;
  margin-top: 40px;
  margin-bottom: 18px;
}

.seo-shell > p:not(.eyebrow):not(.seo-league-path),
.seo-shell .seo-list p {
  color: var(--muted);
}

.seo-shell > p:not(.eyebrow):not(.seo-league-path) {
  max-width: 760px;
  font-size: 1.08rem;
  margin-bottom: 28px;
}

.seo-search-tools {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 28px 0 22px;
}

.seo-search-tools--standings {
  align-items: start;
  margin-top: 34px;
}

.seo-search-tools--standings h2 {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  line-height: 1.05;
  margin: 0 0 10px;
}

.seo-search-tools--standings p {
  color: var(--muted);
  max-width: 720px;
  margin: 0;
}

.seo-league-search {
  width: min(100%, 420px);
}

.seo-standings-shell {
  margin-top: 28px;
}

.seo-standings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.seo-standing-card {
  border: 1px solid rgba(172, 184, 204, 0.16);
  border-radius: 8px;
  background: rgba(23, 31, 49, 0.9);
  padding: 16px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.seo-standing-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.seo-standing-card-head h2 {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  line-height: 1.15;
  margin: 0;
}

.seo-standing-card-head h2 a:hover {
  color: var(--green);
}

.seo-standing-kicker {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.seo-standing-league-logo {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  background: #fff;
}

.seo-standing-group + .seo-standing-group {
  margin-top: 14px;
}

.seo-standing-group h3 {
  color: #d7dee8;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.seo-standing-table {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.seo-standing-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(172, 184, 204, 0.1);
}

.seo-standing-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.seo-standing-rank {
  color: #cfe4d7;
  font-size: 0.82rem;
  font-weight: 900;
}

.seo-standing-team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text);
  font-weight: 800;
}

.seo-standing-team span:last-child {
  min-width: 0;
}

.seo-standing-team-logo {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.seo-standing-team-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.seo-standing-team-logo-fallback {
  color: #091120;
  font-size: 0.72rem;
  font-weight: 900;
}

.seo-standing-metric {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.seo-search-empty {
  border: 1px solid rgba(172, 184, 204, 0.16);
  border-radius: 8px;
  background: rgba(23, 31, 49, 0.72);
  color: var(--muted);
  font-weight: 800;
  margin-top: 16px;
  padding: 16px;
}

.seo-league-logo {
  width: 72px;
  height: 72px;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  background: #fff;
  padding: 0;
  margin-bottom: 18px;
}

.seo-card-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.terms-content .seo-list,
.seo-shell .seo-list {
  margin-top: 22px;
}

.seo-breadcrumbs,
.seo-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.seo-breadcrumbs {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.seo-breadcrumbs a {
  color: #d7dee8;
}

.seo-breadcrumbs a:hover {
  color: var(--green);
}

.seo-league-path {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.seo-league-path span {
  color: var(--muted);
  margin: 0 4px;
}

.seo-actions {
  margin-top: 30px;
}

.terms-content .seo-list .pro-row,
.seo-shell .seo-list .pro-row {
  grid-template-columns: 58px minmax(0, 1fr);
}

.terms-content .seo-list .pro-row h2,
.seo-shell .seo-list .pro-row h2 {
  font-size: 1.08rem;
  line-height: 1.25;
}

.seo-shell .seo-list .pro-row h2 a {
  transition: color 180ms ease;
}

.seo-shell .seo-list .pro-row h2 a:hover {
  color: var(--green);
}

.seo-season-standings {
  margin-top: 30px;
}

.seo-season-standings > h2 {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  margin: 0 0 14px;
}

.seo-standing-search-tools {
  margin: 0 0 12px;
}

.seo-standing-search-tools .competitions-status {
  margin-bottom: 0;
}

.seo-season-standings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.seo-season-standings-card {
  border: 1px solid rgba(172, 184, 204, 0.16);
  border-radius: 12px;
  background: rgba(19, 28, 44, 0.92);
  padding: 12px 14px;
}

.seo-season-standings-card h3 {
  color: #f2f7ff;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.seo-season-standings-table-wrap {
  overflow-x: auto;
}

.seo-season-standings-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 460px;
}

.seo-season-standings-table thead th {
  color: #98a7bc;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 8px 6px;
  text-align: center;
}

.seo-season-standings-table thead th:nth-child(2) {
  text-align: left;
}

.seo-season-standings-table tbody td {
  border-top: 1px solid rgba(172, 184, 204, 0.12);
  color: #e8edf4;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 6px;
  text-align: center;
}

.seo-season-standings-table tbody tr:first-child td {
  border-top: 1px solid rgba(172, 184, 204, 0.18);
}

.seo-season-standings-rank {
  color: #c7d4e8;
  font-weight: 900;
  width: 28px;
}

.seo-season-standings-team {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  min-width: 0;
}

.seo-season-standings-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
}

.seo-season-standings-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.seo-season-standings-logo-fallback {
  color: #091120;
  font-size: 0.62rem;
  font-weight: 900;
}

.seo-season-standings-team span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seo-season-standings-points {
  color: #f3fbff;
  font-weight: 900;
}

.seo-season-standings-empty {
  border: 1px solid rgba(172, 184, 204, 0.16);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  margin: 0;
  padding: 14px;
}

.seo-matches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  border: 0;
  background: transparent;
}

.seo-match-card {
  position: relative;
  overflow: hidden;
  min-height: 224px;
  display: grid;
  align-content: space-between;
  gap: 16px;
  border: 1px solid rgba(172, 184, 204, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(45, 101, 78, 0.9) 0%, rgba(13, 22, 38, 0.98) 48%, rgba(46, 43, 39, 0.95) 100%),
    rgba(23, 31, 49, 0.92);
  padding: 16px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.seo-match-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 34%),
    linear-gradient(300deg, rgba(255, 255, 255, 0.1) 0 18%, transparent 18% 100%);
}

.seo-match-theme-2 {
  background: linear-gradient(135deg, #123a56 0%, #0d1626 52%, #273548 100%);
}

.seo-match-theme-3 {
  background: linear-gradient(135deg, #173d2f 0%, #0d1626 52%, #1f2f2a 100%);
}

.seo-match-theme-4 {
  background: linear-gradient(135deg, #2e344f 0%, #0d1626 52%, #253b44 100%);
}

.seo-match-theme-5 {
  background: linear-gradient(135deg, #473726 0%, #0d1626 52%, #2a4031 100%);
}

.seo-match-theme-6 {
  background: linear-gradient(135deg, #213b5f 0%, #0d1626 52%, #2f2b45 100%);
}

.seo-match-card > * {
  position: relative;
  z-index: 1;
}

.seo-match-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #d7dee8;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 0;
}

.seo-match-header strong {
  border-radius: 999px;
  background: rgba(47, 219, 85, 0.14);
  color: #c8ffd4;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 5px 8px;
  white-space: nowrap;
  text-transform: uppercase;
}

.seo-scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.seo-score-team {
  min-width: 0;
}

.seo-score-team .seo-team {
  display: grid;
  justify-items: center;
  gap: 10px;
  color: #e8edf4;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
}

.seo-score-team-home .seo-team {
  justify-items: center;
  text-align: center;
}

.seo-score-team-away .seo-team {
  justify-items: center;
  text-align: center;
}

.seo-score {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-content: center;
  color: #e8edf4;
  font-family: var(--font-heading);
  text-align: center;
}

.seo-score strong {
  display: none;
}

.seo-score span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(9, 17, 32, 0.54);
  color: #fff;
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1;
}

.seo-score span::before {
  content: "VS";
}

.seo-score-result {
  grid-template-columns: 1fr 16px 1fr;
  gap: 4px;
}

.seo-score-result strong,
.seo-score-result span {
  width: 34px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(9, 17, 32, 0.62);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
}

.seo-score-result span {
  width: auto;
  height: auto;
  border: 0;
  background: transparent;
  color: rgba(247, 250, 252, 0.62);
  font-size: 1.2rem;
}

.seo-score-result span::before {
  content: none;
}

.seo-match-round {
  color: rgba(215, 222, 232, 0.82);
  font-size: 0.82rem;
  font-weight: 800;
  margin-top: 0;
}

.seo-team {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  vertical-align: middle;
}

.seo-team-logo {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: #091120;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 4px;
  flex: 0 0 auto;
}

.seo-team-logo img {
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
}

.seo-editorial-teaser {
  margin-top: 34px;
}

.seo-editorial-head {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.seo-editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.seo-editorial-card {
  border: 1px solid rgba(172, 184, 204, 0.16);
  border-radius: 8px;
  background: rgba(23, 31, 49, 0.9);
  padding: 18px;
  display: grid;
  gap: 12px;
}

.seo-editorial-card h2,
.seo-editorial-card h3 {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  line-height: 1.2;
}

.seo-editorial-card a:hover,
.seo-editorial-link:hover {
  color: var(--green);
}

.seo-editorial-link {
  color: #d7dee8;
  font-size: 0.9rem;
  font-weight: 800;
}

.seo-editorial-article {
  border: 1px solid rgba(172, 184, 204, 0.16);
  border-radius: 8px;
  background: rgba(23, 31, 49, 0.9);
  padding: clamp(18px, 3vw, 30px);
  display: grid;
  gap: 18px;
}

.seo-editorial-header {
  display: grid;
  gap: 12px;
}

.seo-editorial-header h1 {
  font-family: var(--font-heading);
  line-height: 1.03;
}

.seo-editorial-meta {
  color: #d7dee8;
  font-size: 0.84rem;
  font-weight: 800;
}

.seo-editorial-article section {
  display: grid;
  gap: 10px;
}

.seo-editorial-article section + section {
  border-top: 1px solid rgba(172, 184, 204, 0.12);
  padding-top: 14px;
}

.feedback-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(9, 17, 32, 0.88), #091120),
    url("../img/bg_profile.png") center / cover no-repeat,
    #091120;
}

.feedback-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.feedback-panel {
  width: min(100%, 620px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(23, 31, 49, 0.92);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
  padding: clamp(24px, 5vw, 40px);
}

.feedback-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 30px;
}

.feedback-brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feedback-brand img {
  width: 38px;
  height: 38px;
}

.feedback-head {
  margin-bottom: 26px;
}

.feedback-head h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1;
  margin-bottom: 14px;
}

.feedback-head p:not(.eyebrow) {
  color: var(--muted);
}

.feedback-form {
  display: grid;
  gap: 16px;
}

.feedback-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.feedback-form label {
  display: grid;
  gap: 8px;
}

.feedback-form label span {
  color: #d7dee8;
  font-size: 0.82rem;
  font-weight: 800;
}

.feedback-rating {
  display: grid;
  gap: 8px;
  border: 0;
  margin: 0;
  padding: 0;
}

.feedback-rating legend {
  color: #d7dee8;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0;
}

.feedback-rating small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.star-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 48px;
}

.star-rating button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(215, 222, 232, 0.34);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  padding: 0;
  transition: color 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.star-rating button:hover,
.star-rating button:focus-visible {
  background: rgba(255, 196, 47, 0.1);
  color: #ffc42f;
  outline: none;
  transform: translateY(-1px);
}

.star-rating button.is-active {
  color: #ffc42f;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111a2b;
  color: var(--text);
  font: 700 0.95rem var(--font-body);
  padding: 12px 14px;
  outline: none;
}

.feedback-form textarea {
  resize: vertical;
}

.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
  border-color: rgba(47, 219, 85, 0.7);
  box-shadow: 0 0 0 3px rgba(47, 219, 85, 0.1);
}

.feedback-status {
  min-height: 22px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.feedback-status[data-status="success"] {
  color: var(--green);
}

.feedback-status[data-status="error"] {
  color: #ff8a8a;
}

.user-remove-panel {
  width: min(100%, 660px);
}

.user-remove-app-hint,
.user-remove-code-help {
  border: 1px solid rgba(47, 219, 85, 0.24);
  border-radius: 8px;
  background: rgba(47, 219, 85, 0.08);
  color: #d7dee8;
  font-size: 0.94rem;
  font-weight: 700;
  margin-bottom: 22px;
  padding: 14px 16px;
}

.user-remove-code-help {
  margin-bottom: 0;
}

.user-remove-step {
  display: grid;
  gap: 16px;
}

.user-remove-step[hidden] {
  display: none;
}

.feedback-honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.feedback-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.not-found-page {
  min-height: 100vh;
  background: var(--ink);
}

.not-found {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  padding: 120px 0 70px;
}

.not-found-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: max(4vw, 20px);
}

.not-found-media img {
  width: min(48vw, 620px);
  opacity: 0.46;
  filter: drop-shadow(0 34px 48px rgba(0, 0, 0, 0.48));
}

.not-found-content {
  max-width: 680px;
}

.not-found-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
  margin-bottom: 22px;
}

.not-found-content p:not(.eyebrow) {
  color: #d7dee8;
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
  max-width: 540px;
  margin-bottom: 28px;
}

#footer-country-links{
  display: grid;
}

@media (max-width: 980px) {
  .nav-controls a {
    display: none;
  }

  .hero {
    min-height: auto;
    display: grid;
    padding-bottom: 56px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(9, 17, 32, 0.96) 0%, rgba(9, 17, 32, 0.9) 42%, #091120 100%),
      url("../img/bg_home.png") center top / cover no-repeat,
      #091120;
  }

  .hero-media {
    position: relative;
    inset: auto;
    z-index: 0;
    justify-content: center;
    align-items: center;
    order: 2;
    padding: 24px 0 0;
  }

  .phone-stage {
    width: min(92vw, 560px);
    min-height: 620px;
  }

  .game-lobby {
    width: min(92vw, 620px);
    min-height: 560px;
  }

  .leaderboard-panel {
    width: min(100%, 520px);
  }

  .prediction-widget {
    left: 2%;
    bottom: 4%;
  }

  .achievement-cluster {
    right: 2%;
    top: 0;
  }

  .phone-mockup {
    width: min(58vw, 340px);
    max-height: none;
    opacity: 1;
    transform: none;
  }

  .mockup-satellite {
    width: min(30vw, 190px);
  }

  .mockup-satellite-next {
    left: calc(2% - 34px);
    right: auto;
    top: 22%;
  }

  .mockup-satellite-ranking {
    right: 1%;
    top: 27%;
  }

  .mockup-satellite-group {
    left: auto;
    right: 0;
    bottom: 9%;
  }

  .holo-card {
    width: min(34vw, 195px);
  }

  .holo-card-streak {
    right: 39%;
    top: 3%;
  }

  .holo-card-achievement {
    right: 0;
    top: 8%;
  }

  .holo-card-prediction {
    left: calc(3% - 20px);
    right: auto;
    bottom: calc(7% + 38px);
  }

  .hero-scrim {
    background: rgba(9, 17, 32, 0.08);
  }

  .hero-content {
    order: 1;
  }

  .not-found-media {
    justify-content: center;
    padding: 0;
  }

  .not-found-media img {
    width: min(92vw, 520px);
    opacity: 0.2;
    transform: translateY(12%);
  }

  .competitions-grid,
  .seo-overview-grid,
  .app-showcase-layout,
  .features-grid,
  .game-steps,
  .today-matches-grid,
  .seo-standings-grid,
  .seo-season-standings-grid,
  .seo-matches,
  .seo-editorial-grid,
  .trivia-layout,
  .pro-layout {
    grid-template-columns: 1fr 1fr;
  }

  .competitions-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .seo-search-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .seo-search-tools--standings {
    margin-top: 28px;
  }

  .competitions-status {
    margin-bottom: 0;
    text-align: left;
  }

  .pro-copy {
    position: static;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .nav-inner {
    min-height: 64px;
  }

  .nav-brand span {
    display: none;
  }

  .language-selector {
    min-width: 118px;
  }

  .hero {
    padding-top: 94px;
  }

  .phone-stage {
    min-height: 660px;
  }

  .game-lobby {
    width: 100%;
    min-height: 670px;
    gap: 14px;
  }

  .leaderboard-panel {
    width: 100%;
    padding: 16px;
  }

  .leaderboard-row {
    grid-template-columns: 30px 38px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 9px;
  }

  .rank-trend {
    display: none;
  }

  .prediction-widget {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    order: 2;
  }

  .achievement-cluster {
    position: relative;
    right: auto;
    top: auto;
    grid-template-columns: repeat(3, 1fr);
    order: 3;
  }

  .achievement-medal {
    width: 100%;
    min-height: 92px;
  }

  .phone-mockup {
    width: min(72vw, 320px);
  }

  .mockup-satellite {
    width: min(40vw, 160px);
  }

  .mockup-satellite-next {
    left: calc(4% - 22px);
    right: auto;
    top: 22%;
  }

  .mockup-satellite-ranking {
    right: 2%;
    top: 31%;
    width: min(42vw, 170px);
  }

  .mockup-satellite-group {
    left: auto;
    right: 2%;
    bottom: 30px;
    width: min(42vw, 170px);
  }

  .holo-card {
    width: min(64vw, 238px);
    padding: 11px 13px;
  }

  .holo-card-streak {
    left: 50%;
    right: auto;
    top: 0;
    transform: translateX(-50%);
  }

  .holo-card-achievement {
    display: none;
  }

  .holo-card-prediction {
    left: calc(4% - 20px);
    right: auto;
    bottom: calc(6% + 28px);
    transform: none;
  }

  .store-badges,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .store-badge,
  .btn {
    width: 100%;
  }

  .competitions-grid,
  .seo-overview-grid,
  .app-showcase-layout,
  .features-grid,
  .game-steps,
  .today-matches-grid,
  .seo-standings-grid,
  .seo-season-standings-grid,
  .seo-matches,
  .seo-editorial-grid,
  .trivia-layout,
  .pro-layout {
    grid-template-columns: 1fr;
  }

  .today-matches-tools {
    justify-content: flex-start;
    margin-top: -18px;
  }

  .today-match-versus {
    grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
    gap: 10px;
  }

  .match-tournament-head {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .match-tournament-head em {
    grid-column: 1 / -1;
    max-width: none;
    text-align: left;
  }

  .versus-core span {
    width: 58px;
    height: 58px;
    font-size: 1.15rem;
  }

  .today-team-logo {
    width: 50px;
    height: 50px;
  }

  .feedback-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 220px;
  }

  .game-step-card {
    min-height: 350px;
  }

  .seo-match-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .seo-scoreboard {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .seo-score-team-home .seo-team,
  .seo-score-team-away .seo-team,
  .seo-score-team .seo-team {
    justify-items: center;
    text-align: center;
  }

  .seo-score {
    order: 2;
  }

  .seo-score-team-home {
    order: 1;
  }

  .seo-score-team-away {
    order: 3;
  }

  .feature-icon {
    margin-bottom: 34px;
  }

  .section-band {
    padding: 72px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone-stage::before,
  .phone-mockup,
  .mockup-satellite,
  .game-lobby::after,
  .leaderboard-panel,
  .achievement-medal,
  .team-ring,
  .team-ring span,
  .holo-card,
  .flame-pulse,
  .holo-card-achievement::after,
  .confetti-burst,
  .confetti-burst::before,
  .confetti-burst::after,
  .comp-card-skeleton .comp-card-hero,
  .today-match-card-skeleton,
  .today-match-card-skeleton span,
  .today-match-card-skeleton strong,
  .today-match-card-skeleton small,
  .trivia-option-skeleton {
    animation: none;
  }
}
