:root {
  --navy: #0c1424;
  --deep: #07101f;
  --ink: #101a2d;
  --green: #39d1c0;
  --mint: #6af7df;
  --line: rgba(255, 255, 255, 0.12);
}

html {
  scroll-behavior: smooth;
}

#torneos {
  scroll-margin-top: 5.5rem;
}

body {
  min-width: 320px;
}

.nav-title {
  align-items: center;
  color: #fff;
  display: inline-flex;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 950;
  letter-spacing: 0.18em;
  line-height: 1;
}

.brand-lockup {
  align-items: center;
  display: inline-flex;
  gap: 0.5rem;
  justify-self: start;
  transition: opacity 180ms ease;
}

.brand-lockup:hover {
  opacity: 0.82;
}

.platform-name {
  display: block;
  height: 1.55rem;
  overflow: hidden;
  position: relative;
  width: 11.7rem;
}

.platform-name img {
  height: 12.92rem;
  left: 50%;
  max-width: none;
  position: absolute;
  top: 50%;
  transform: translate(-50.29%, -44.375%);
  width: auto;
}

.nav-title:hover {
  color: #fff;
}

.hero-section {
  background:
    radial-gradient(circle at 74% 20%, rgba(57, 209, 192, 0.24), transparent 28rem),
    linear-gradient(135deg, #07101f 0%, #0c1424 54%, #09111e 100%);
  min-height: 100vh;
  min-height: 100dvh;
}

.hero-carousel {
  inset: 0;
  position: absolute;
}

.hero-photo {
  filter: brightness(0.88) saturate(1.05);
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  position: absolute;
  transition: opacity 1.4s ease;
  width: 100%;
  z-index: 0;
}

.hero-photo.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-scrim {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.hero-image-overlay {
  background:
    linear-gradient(90deg, rgba(7, 16, 31, 0.72) 0%, rgba(7, 16, 31, 0.42) 36%, rgba(7, 16, 31, 0.12) 62%, rgba(7, 16, 31, 0.06) 100%),
    linear-gradient(180deg, rgba(7, 16, 31, 0.58) 0%, rgba(7, 16, 31, 0.16) 28%, rgba(7, 16, 31, 0.06) 50%, rgba(7, 16, 31, 0.28) 76%, rgba(7, 16, 31, 0.7) 100%),
    rgba(7, 16, 31, 0.08);
  inset: 0;
  position: absolute;
}

.hero-content {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 5.75rem;
}

.hero-copy {
  max-width: 48rem;
  position: relative;
}

.hero-copy::before {
  background: radial-gradient(ellipse at 18% 12%, rgba(7, 16, 31, 0.58) 0%, rgba(7, 16, 31, 0.28) 42%, transparent 72%);
  content: "";
  inset: -18% -12% -22% -10%;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.hero-copy h1 {
  text-shadow: 0 2px 28px rgba(7, 16, 31, 0.7);
}

.hero-cta {
  max-width: 42rem;
  padding-bottom: 0.15rem;
  position: relative;
}

.hero-cta::before {
  background: radial-gradient(ellipse at 18% 85%, rgba(7, 16, 31, 0.55) 0%, rgba(7, 16, 31, 0.24) 46%, transparent 74%);
  content: "";
  inset: -22% -12% -28% -10%;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.hero-lead {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 18px rgba(7, 16, 31, 0.82);
}

.hero-secondary {
  background: rgba(7, 16, 31, 0.72);
  backdrop-filter: blur(14px);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 12px 30px rgba(7, 16, 31, 0.35);
}

.hero-scroll {
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-direction: column;
  font-size: 0.72rem;
  font-weight: 800;
  gap: 0.35rem;
  letter-spacing: 0.18em;
  padding-bottom: 1.15rem;
  position: relative;
  text-transform: uppercase;
  transition: color 180ms ease;
  z-index: 10;
}

.hero-scroll:hover {
  color: var(--mint);
}

.hero-scroll-arrows {
  display: flex;
  flex-direction: column;
  height: 1.7rem;
  overflow: hidden;
  width: 1.35rem;
}

.hero-scroll-arrows svg {
  animation: hero-scroll-bounce 1.6s ease-in-out infinite;
  flex-shrink: 0;
  height: 1.35rem;
  margin-top: -0.5rem;
  width: 1.35rem;
}

.hero-scroll-arrows svg:first-child {
  margin-top: 0;
}

@keyframes hero-scroll-bounce {
  0%,
  100% {
    opacity: 0.28;
    transform: translateY(-2px);
  }
  50% {
    opacity: 1;
    transform: translateY(4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-arrows svg {
    animation: none;
    opacity: 0.85;
  }

  .hero-photo {
    transition: none;
  }
}

.brand-kicker {
  align-items: center;
  border: 1px solid rgba(57, 209, 192, 0.42);
  border-radius: 999px;
  color: var(--mint);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.18em;
  margin-bottom: 1.25rem;
  padding: 0.6rem 0.85rem;
  text-transform: uppercase;
}

.primary-button,
.secondary-button,
.card-button {
  align-items: center;
  border-radius: 0.5rem;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0 1.25rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.primary-button {
  background: var(--green);
  color: #06101c;
  box-shadow: 0 18px 44px rgba(57, 209, 192, 0.26);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
}

.primary-button:hover,
.secondary-button:hover,
.card-button:hover {
  transform: translateY(-2px);
}

.secondary-button:hover {
  border-color: rgba(57, 209, 192, 0.45);
}

.view-toggle {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.55rem;
  display: flex;
  padding: 0.25rem;
}

.view-toggle-button {
  border-radius: 0.42rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  font-weight: 900;
  min-height: 2.35rem;
  padding: 0 0.85rem;
  transition: background 180ms ease, color 180ms ease;
}

.view-toggle-button.active {
  background: var(--green);
  color: #06101c;
}

.search-input,
.select-input {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.5rem;
  color: #fff;
  font-weight: 700;
  height: 3.15rem;
  outline: none;
  padding: 0 1rem;
  width: 100%;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.select-input option {
  background: var(--navy);
  color: #fff;
}

.search-input:focus,
.select-input:focus {
  border-color: rgba(57, 209, 192, 0.75);
  box-shadow: 0 0 0 4px rgba(57, 209, 192, 0.12);
}

.skeleton-card {
  animation: pulse 1.3s ease-in-out infinite;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.65rem;
  min-height: 430px;
}

.tournament-card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.65rem;
  display: grid;
  grid-template-columns: minmax(280px, 42%) 1fr;
  overflow: hidden;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.tournament-card:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(57, 209, 192, 0.38);
  transform: translateY(-4px);
}

.card-media {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 20% 80%, rgba(57, 209, 192, 0.18), transparent 16rem),
    linear-gradient(135deg, #111d31, #07101f);
  min-height: 280px;
  overflow: hidden;
  position: relative;
}

.card-image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center;
  position: absolute;
  transform: scale(1.01);
  width: 100%;
}

.card-overlay {
  background:
    linear-gradient(to top, rgba(7, 16, 31, 0.66), rgba(7, 16, 31, 0.05)),
    linear-gradient(90deg, rgba(7, 16, 31, 0.32), transparent 42%, rgba(7, 16, 31, 0.32));
  inset: 0;
  position: absolute;
}

.tournament-logo,
.league-logo {
  background: rgba(7, 16, 31, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  bottom: 1.05rem;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
  height: 4.35rem;
  object-fit: contain;
  padding: 0.55rem;
  position: absolute;
  width: 4.35rem;
  z-index: 2;
}

.tournament-logo {
  border-color: rgba(57, 209, 192, 0.38);
  border-radius: 999px;
  left: 1.05rem;
}

.league-logo {
  border-radius: 999px;
  right: 1.05rem;
}

.card-body {
  display: flex;
  flex-direction: column;
  padding: 1.4rem;
}

.status-pill {
  background: rgba(57, 209, 192, 0.13);
  border: 1px solid rgba(57, 209, 192, 0.42);
  border-radius: 999px;
  color: var(--mint);
  font-size: 0.74rem;
  font-weight: 950;
  padding: 0.42rem 0.7rem;
  text-transform: uppercase;
}

.status-pill.upcoming {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.status-pill.history {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.68);
}

.date-chip {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.card-title {
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 950;
  line-height: 1.08;
  margin-top: 1rem;
}

.card-subtitle {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 0.45rem;
  min-height: 0;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.meta-item {
  align-items: center;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.48rem 0.7rem;
}

.meta-dot {
  background: var(--green);
  border-radius: 999px;
  flex: 0 0 auto;
  height: 0.48rem;
  width: 0.48rem;
}

.category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin-top: 1.05rem;
  margin-bottom: 1.25rem;
  min-height: 0;
}

.category-pill {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.66rem;
  font-weight: 850;
  line-height: 1;
  padding: 0.28rem 0.42rem;
}

.category-resume {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.card-button {
  background: #fff;
  color: #07101f;
  margin-top: auto;
  min-height: 2.75rem;
  width: max-content;
}

.modal-shell {
  inset: 0;
  position: fixed;
  z-index: 60;
}

.modal-backdrop {
  background: rgba(0, 0, 0, 0.72);
  inset: 0;
  position: absolute;
}

.modal-panel {
  background: #0b1425;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.75rem;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  left: 50%;
  max-height: calc(100vh - 2rem);
  max-width: 980px;
  overflow: auto;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(calc(100vw - 2rem), 980px);
}

.modal-close {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 900;
  height: 2.4rem;
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 2.4rem;
  z-index: 4;
}

.detail-hero {
  min-height: 280px;
  overflow: hidden;
  padding: 6rem 1.5rem 1.5rem;
  position: relative;
}

.detail-hero img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.detail-hero::after {
  background: linear-gradient(to top, #0b1425 0%, rgba(11, 20, 37, 0.76) 42%, rgba(11, 20, 37, 0.22) 100%);
  content: "";
  inset: 0;
  position: absolute;
}

.detail-hero-content {
  max-width: 760px;
  position: relative;
  z-index: 2;
}

.detail-section {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
}

.detail-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.detail-box {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 1rem;
}

.detail-box span {
  color: rgba(255, 255, 255, 0.54);
  display: block;
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.detail-box strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 950;
  margin-top: 0.35rem;
}

.rich-text {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
}

.rich-text p + p {
  margin-top: 0.8rem;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 760px) {
  .hero-photo {
    object-position: 64% center;
  }

  .hero-content {
    padding-top: 5.5rem;
  }

  .hero-title {
    font-size: 2.45rem;
  }

  .hero-image-overlay {
    background:
      linear-gradient(180deg, rgba(7, 16, 31, 0.72) 0%, rgba(7, 16, 31, 0.2) 32%, rgba(7, 16, 31, 0.08) 50%, rgba(7, 16, 31, 0.32) 78%, rgba(7, 16, 31, 0.62) 100%),
      linear-gradient(90deg, rgba(7, 16, 31, 0.42) 0%, rgba(7, 16, 31, 0.12) 100%),
      rgba(7, 16, 31, 0.08);
  }

  .hero-copy::before {
    inset: -8% -8% -18% -6%;
  }

  .nav-title {
    font-size: 1.1rem;
    letter-spacing: 0.12em;
  }

  .platform-name {
    height: 1.25rem;
    width: 9.4rem;
  }

  .platform-name img {
    height: 10.42rem;
  }

  .tournament-card {
    grid-template-columns: 1fr;
  }

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

  .card-button {
    width: 100%;
  }
}
