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;
}

.champion-break[hidden],
#footballDashboard[hidden] {
  display: none !important;
}

.champion-break {
  position: relative;
  min-height: min(720px, calc(100dvh - 150px));
  padding: clamp(2rem, 7vw, 5rem) clamp(1rem, 5vw, 3rem);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.8rem;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(245, 197, 66, 0.36);
  border-radius: var(--nv-radius-lg);
  background:
    radial-gradient(circle at 50% 35%, rgba(245, 197, 66, 0.17), transparent 34%),
    linear-gradient(145deg, rgba(224, 169, 27, 0.08), transparent 48%),
    rgba(1, 5, 16, 0.94);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
  text-align: center;
}

.champion-break::before,
.champion-break::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(245, 197, 66, 0.12);
  transform: rotate(45deg);
}

.champion-break::before {
  top: -170px;
  left: -120px;
}

.champion-break::after {
  right: -120px;
  bottom: -170px;
}

.champion-break__glow {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 226, 138, 0.055) 50%, transparent 80%);
  pointer-events: none;
}

.champion-break__eyebrow {
  margin: 0;
  color: var(--nv-gold-bright);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.champion-break__trophy {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 197, 66, 0.5);
  border-radius: 50%;
  color: var(--nv-gold-bright);
  background: rgba(224, 169, 27, 0.1);
  box-shadow: 0 0 42px rgba(224, 169, 27, 0.22);
  font-size: 2rem;
}

.champion-break h1 {
  margin: 0;
  color: var(--nv-text-primary);
  font-size: clamp(1.7rem, 5vw, 3.4rem);
  line-height: 1.08;
}

.champion-break__season,
.champion-break__message,
.champion-break__return {
  margin: 0;
}

.champion-break__season {
  color: var(--nv-gold-light);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.champion-break__teams {
  width: min(100%, 900px);
  margin: clamp(0.8rem, 3vw, 1.5rem) auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.champion-team {
  min-width: min(100%, 240px);
  padding: 1rem 1.25rem;
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(245, 197, 66, 0.24);
  border-radius: var(--nv-radius-md);
  background: rgba(3, 7, 18, 0.72);
}

.champion-team img {
  width: clamp(120px, 22vw, 180px);
  height: clamp(120px, 22vw, 180px);
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.48));
}

.champion-team strong {
  color: var(--nv-text-primary);
  font-size: clamp(1.1rem, 3vw, 1.45rem);
}

.champion-break__message {
  max-width: 650px;
  color: var(--nv-text-secondary);
  line-height: 1.6;
}

.champion-break__return {
  color: var(--nv-gold-bright);
  font-size: 0.82rem;
  font-weight: 850;
}

.champion-break.is-voting-day {
  align-content: start;
  padding-top: clamp(1.5rem, 4vw, 3rem);
}

.multiverse-vote {
  width: min(100%, 1120px);
  margin-top: clamp(1rem, 3vw, 2rem);
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid rgba(72, 148, 232, 0.34);
  border-radius: var(--nv-radius-lg);
  background:
    linear-gradient(135deg, rgba(72, 148, 232, 0.09), transparent 42%),
    rgba(3, 8, 20, 0.9);
  text-align: left;
}

.multiverse-vote[hidden] {
  display: none !important;
}

.multiverse-vote__heading {
  padding-bottom: 1rem;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--nv-border-subtle);
}

.multiverse-vote__heading h2 {
  margin: 0.3rem 0 0.45rem;
  color: var(--nv-text-primary);
  font-size: clamp(1.25rem, 3vw, 2rem);
}

.multiverse-vote__heading p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--nv-text-secondary);
  line-height: 1.55;
}

.multiverse-vote__countdown {
  flex: none;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(245, 197, 66, 0.3);
  border-radius: var(--nv-radius-sm);
  color: var(--nv-gold-bright);
  background: rgba(224, 169, 27, 0.07);
  font-size: 0.72rem;
  white-space: nowrap;
}

.multiverse-vote__form {
  margin-top: 1rem;
}

.multiverse-vote__formation {
  width: min(100%, 390px);
  display: grid;
  gap: 0.4rem;
}

.multiverse-vote label {
  color: var(--nv-gold-light);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.multiverse-vote select {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 2rem 0.6rem 0.7rem;
  border: 1px solid var(--nv-border-default);
  border-radius: var(--nv-radius-sm);
  color: var(--nv-text-primary);
  background: rgba(1, 5, 16, 0.94);
  font: inherit;
  font-size: 0.8rem;
}

.multiverse-vote select:focus {
  border-color: var(--nv-gold-bright);
  outline: 2px solid rgba(245, 197, 66, 0.12);
}

.multiverse-vote__formation small {
  color: var(--nv-text-muted);
  font-size: 0.65rem;
}

.multiverse-vote__slots {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.multiverse-vote__slot {
  min-width: 0;
  padding: 0.65rem;
  display: grid;
  gap: 0.35rem;
  border: 1px solid var(--nv-border-subtle);
  border-radius: var(--nv-radius-md);
  background: rgba(255, 255, 255, 0.025);
}

.multiverse-vote__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1rem;
  color: var(--nv-text-muted);
  border: 1px dashed var(--nv-border-default);
  border-radius: var(--nv-radius-md);
  text-align: center;
}

.multiverse-vote__actions {
  margin-top: 1rem;
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--nv-border-subtle);
}

#multiverseVoteStatus {
  margin: 0;
  color: var(--nv-text-secondary);
  font-size: 0.75rem;
}

#multiverseVoteStatus.is-success { color: #8ee6ad; }
#multiverseVoteStatus.is-error { color: #ff8d97; }
#multiverseVoteStatus.is-info { color: #9ecaff; }

.multiverse-vote .btn:disabled {
  cursor: not-allowed;
  filter: grayscale(0.75);
  opacity: 0.5;
  transform: none;
}

.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);
}

.game-row__actions {
  min-width: 150px;
  display: grid;
  justify-items: stretch;
  gap: 0.4rem;
}

.game-row__actions .btn {
  min-height: 36px;
  margin: 0;
  padding: 0.48rem 0.58rem;
  font-size: 0.62rem;
}

.game-row__more {
  color: var(--nv-text-secondary);
  border-color: var(--nv-border-default);
  background: rgba(255, 255, 255, 0.025);
}

.game-row__more.has-prediction {
  color: #8ee6ad;
  border-color: rgba(114, 210, 154, 0.38);
  background: rgba(72, 166, 107, 0.08);
}

.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;
  text-align: center;
}

.match-live-label,
.match-countdown {
  display: block;
}

.penalty-score {
  display: block;
  margin-top: 0.15rem;
  color: var(--nv-text-secondary);
  font-size: 0.62rem;
  line-height: 1.2;
  white-space: nowrap;
}

.title-playoff-label {
  display: inline-block;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(245, 197, 66, 0.34);
  border-radius: var(--nv-radius-sm);
  color: var(--nv-gold-bright);
  background: rgba(224, 169, 27, 0.07);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.match-live-label {
  color: #ff7884;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.match-countdown {
  margin-top: 0.16rem;
  color: var(--nv-text-secondary);
  font-size: 0.68rem;
  font-weight: 750;
  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;
}

.football-info-dialog {
  position: fixed;
  width: min(900px, calc(100% - 1rem));
  max-height: calc(100dvh - 1rem);
  margin: auto;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  overflow: auto;
  border: 1px solid var(--nv-border-gold);
  border-radius: var(--nv-radius-lg);
  color: var(--nv-text-primary);
  background:
    linear-gradient(145deg, rgba(224, 169, 27, 0.07), transparent 42%),
    var(--nv-bg-elevated);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.72);
}

.football-info-dialog::backdrop {
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(6px);
}

.football-info-dialog__close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--nv-border-default);
  border-radius: 50%;
  color: var(--nv-text-secondary);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  font-size: 1.15rem;
}

.football-info-eyebrow {
  color: var(--nv-gold-bright);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.football-info-dialog > h2 {
  margin: 0.2rem 2.2rem 1rem 0;
}

.football-info-grid {
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.football-info-grid section {
  padding: 0.85rem;
  border: 1px solid var(--nv-border-default);
  background: rgba(3, 7, 18, 0.82);
}

.football-info-grid h3 {
  margin: 0 0 0.55rem;
  color: var(--nv-gold-light);
  font-size: 0.9rem;
}

.football-info-grid p,
.football-info-grid li,
.football-info-grid dd {
  color: var(--nv-text-secondary);
  font-size: 0.78rem;
  line-height: 1.55;
}

.football-info-grid ul {
  margin: 0 0 0.65rem 1rem;
  display: grid;
  gap: 0.35rem;
}

.football-info-grid dl {
  display: grid;
  gap: 0.45rem;
}

.football-info-grid dl > div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 0.5rem;
}

.football-info-grid dt {
  color: var(--nv-text-primary);
  font-size: 0.76rem;
  font-weight: 900;
}

@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));
  }

  .multiverse-vote__slots {
    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);
  }

  .champion-break {
    min-height: calc(100dvh - 120px);
    border-radius: var(--nv-radius-md);
  }

  .multiverse-vote__heading,
  .multiverse-vote__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .multiverse-vote__countdown {
    align-self: flex-start;
  }

  .multiverse-vote__slots {
    grid-template-columns: 1fr;
  }

  .multiverse-vote__actions .btn {
    width: 100%;
  }

  .match {
    flex-direction: column;
  }

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

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

  .game-row__actions {
    width: min(100%, 320px);
  }

  .football-info-grid {
    grid-template-columns: 1fr;
  }

  .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%;
  }
}
