body.dragon-football-page {
  --nv-area-accent: var(--nv-gold);
  min-height: 100vh;
  background:
    linear-gradient(rgba(1, 3, 10, 0.26), rgba(1, 3, 10, 0.72)),
    url('/soulslogic/src/DragonFootball/u7estadio.webp') center top / cover fixed no-repeat;
}

body.dragon-football-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 70% 16%, rgba(72, 148, 232, 0.10), transparent 25%),
    linear-gradient(180deg, transparent 0%, rgba(1, 3, 10, 0.28) 55%, rgba(1, 3, 10, 0.64) 100%);
}

.football-container {
  width: min(1400px, calc(100% - 2rem));
  margin-inline: auto;
  padding: clamp(1rem, 2vw, 1.4rem) 0 2.5rem;
  text-align: left;
}

.top-grid,
.bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 1rem;
}

.bottom-grid {
  margin-top: 1rem;
}

.top-info {
  min-height: 260px;
  padding: clamp(1rem, 2.5vw, 1.6rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border: 1px solid rgba(245, 197, 66, 0.18);
  border-radius: var(--nv-radius-lg);
  background:
    linear-gradient(90deg, rgba(1, 5, 16, 0.72), rgba(1, 5, 16, 0.18)),
    transparent;
  box-shadow: var(--nv-shadow-md);
}

.top-info h2 {
  margin-bottom: 0.2rem;
  color: var(--nv-text-primary);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.top-info h3 {
  margin-bottom: 0.75rem;
  color: var(--nv-gold-bright);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
}

.top-info p {
  color: var(--nv-text-secondary);
  line-height: 1.55;
}

.card {
  position: relative;
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.2rem);
  border: 1px solid var(--nv-border-default);
  border-radius: var(--nv-radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.022), transparent 46%),
    rgba(1, 5, 16, 0.90);
  box-shadow: var(--nv-shadow-md);
}

.card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 18px;
  width: 64px;
  height: 2px;
  background: var(--nv-gold);
}

.card h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--nv-text-primary);
  font-size: 1.15rem;
}

.match {
  margin: 1.3rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.team {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
}

.team img,
.bet-teams img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  border: 1px solid var(--nv-border-default);
  border-radius: var(--nv-radius-round);
  background: rgba(0, 0, 0, 0.24);
  box-shadow: 0 0 18px rgba(224, 169, 27, 0.10);
}

.vs {
  color: var(--nv-gold-bright);
  font-size: 1.4rem;
  font-weight: 900;
}

.btn {
  min-height: 42px;
  padding: 0.68rem 1rem;
  border: 1px solid var(--nv-gold-bright);
  border-radius: var(--nv-radius-md);
  color: var(--nv-gold-bright);
  background: rgba(224, 169, 27, 0.04);
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: transform var(--nv-transition-fast), color var(--nv-transition), background var(--nv-transition), box-shadow var(--nv-transition);
}

.btn:hover {
  transform: translateY(-1px);
  color: var(--nv-text-dark);
  background: var(--nv-gold-bright);
  box-shadow: var(--nv-shadow-gold);
}

.btn--primary {
  color: var(--nv-text-dark);
  background: var(--nv-gold);
}

.btn--wide {
  width: min(50%, 320px);
}

.top-info .btn {
  margin-top: 1.6rem;
}

.games-card .btn {
  margin-top: 1.6rem;
}

.standings table {
  width: 100%;
  border-collapse: collapse;
}

.standings th {
  padding: 0.55rem;
  color: var(--nv-text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.standings td {
  padding: 0.65rem 0.55rem;
  border-bottom: 1px solid var(--nv-border-subtle);
  color: var(--nv-text-secondary);
}

.standings tbody tr:hover td {
  background: rgba(224, 169, 27, 0.035);
}

.games-list {
  display: grid;
  gap: 0.7rem;
}

.game-row {
  min-width: 0;
  padding: 0.75rem;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid var(--nv-border-subtle);
  border-radius: var(--nv-radius-md);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.022), transparent 52%),
    rgba(11, 19, 36, 0.88);
}

.game-row:hover {
  border-color: rgba(245, 197, 66, 0.34);
}

.game-row img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: var(--nv-radius-round);
}

.bet-result {
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--nv-border-subtle);
  border-radius: var(--nv-radius-sm);
  color: var(--nv-gold-light);
  background: rgba(224, 169, 27, 0.06);
  font-weight: 800;
  white-space: nowrap;
}

.colrankings {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.rank-item {
  padding: 0.65rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--nv-border-subtle);
  color: var(--nv-text-secondary);
}

.rank-item:last-child {
  border-bottom: 0;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 1rem;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.80);
  backdrop-filter: blur(8px);
}

.modal.open,
.modal[aria-hidden="false"] {
  display: flex;
}

.modal-content {
  position: relative;
  width: min(500px, 95vw);
  padding: 1.2rem;
  border: 1px solid var(--nv-border-default);
  border-radius: var(--nv-radius-lg);
  background: var(--nv-bg-elevated);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
}

.modal-content::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 18px;
  width: 64px;
  height: 2px;
  background: var(--nv-gold-bright);
}

.modal-content h2 {
  margin-bottom: 1rem;
}

.bet-teams {
  margin: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.bet-teams > div {
  flex: 1;
}

.bet-teams img {
  margin-inline: auto;
}

.bet-option-group {
  margin: 1rem 0;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.bet-option-group label {
  min-width: 64px;
  min-height: 42px;
  padding: 0.55rem 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid var(--nv-border-default);
  border-radius: var(--nv-radius-sm);
  color: var(--nv-text-secondary);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.bet-option-group label:has(input:checked) {
  color: var(--nv-text-dark);
  border-color: var(--nv-gold-bright);
  background: var(--nv-gold);
}

.bet-option-group input {
  accent-color: var(--nv-gold);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.secondary {
  color: var(--nv-text-primary);
  border-color: var(--nv-border-default);
  background: rgba(255, 255, 255, 0.04);
}

.secondary:hover {
  color: var(--nv-text-primary);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: none;
}

@media (max-width: 980px) {
  .top-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .top-info {
    min-height: 220px;
  }

  .colrankings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body.dragon-football-page {
    background-position: 58% top;
    background-attachment: scroll;
  }

  .football-container {
    width: min(100% - 1rem, 1400px);
  }

  .match {
    flex-direction: column;
  }

  .game-row {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .game-row > * {
    justify-self: center;
  }

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

  .btn--wide {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .bet-teams {
    align-items: center;
  }

  .team img,
  .bet-teams img {
    width: 70px;
    height: 70px;
  }

  .bet-option-group {
    gap: 0.45rem;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions .btn {
    width: 100%;
  }
}
