.game-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.game-card {
  width: 100%;
  max-width: 1270px;
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft), var(--shadow-gold);
  backdrop-filter: blur(6px);
  padding: 28px;
}

.game-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.game-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reset-button {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reset-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
}

.game-mode {
  text-align: right;
  margin: 0;
}

.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.back-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
}

.game-mode {
  color: var(--color-gold-light);
  font-weight: 700;
  font-size: 1rem;
  text-align: right;
}

.game-header {
  text-align: center;
  margin-bottom: 10px;
}

.round-name {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.match-progress {
  color: var(--color-text-soft);
  font-size: 1rem;
}

.game-question {
  text-align: center;
  color: var(--color-text-soft);
  font-size: 1.05rem;
  line-height: 1.5;
  max-width: 700px;
  margin: 0 auto 30px;
}

.battlefield {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.champion-card {
  border: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%);
  border-radius: 24px;
  padding: 18px;
  cursor: pointer;
  color: var(--color-text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.champion-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  border-color: rgba(200, 164, 74, 0.35);
}

.champion-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 14px;
  background: rgba(255,255,255,0.05);
}

.champion-name {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
}

.vs-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
  color: #111;
  font-weight: 900;
  font-size: 1.4rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  z-index: 3;
}

.game-helper {
  text-align: center;
  color: var(--color-text-soft);
  font-size: 0.95rem;
  margin-top: 22px;
  margin-bottom: 18px;
}

.legal-game {
  text-align: center;
}


@media (max-width: 900px) {
  .game-card {
    padding: 22px 18px;
  }

  .game-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .vs-badge {
    width: 68px;
    height: 68px;
    font-size: 1.2rem;
  }
}

@media (max-width: 640px) {
  .game-logo {
    max-width: 180px;
    margin-bottom: 16px;
  }

  .game-page {
    padding: 16px;
  }

  .game-card {
    padding: 18px 14px;
  }

  .game-topbar-right {
    flex-direction: column;
    align-items: stretch;
  }

  .reset-button {
    width: 100%;
  }

  .round-name {
    font-size: 1.7rem;
  }

  .match-progress {
    font-size: 0.95rem;
  }

  .game-question {
    font-size: 0.98rem;
    margin-bottom: 20px;
  }

  .back-button {
    width: 100%;
  }

  .view-results-button {
    width: 100%;
  }

  .vs-badge {
    width: 56px;
    height: 56px;
    font-size: 1rem;
  }

  /* DUEL VIEW */
  .duel-view .battlefield {
    gap: 10px;
  }

  .duel-view .champion-card {
    padding: 10px;
    border-radius: 18px;
  }

  .duel-view .champion-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center;
    margin-bottom: 10px;
    border-radius: 14px;
  }

  .duel-view .champion-name {
    font-size: 1rem;
  }

  /* BRACKET */
  .bracket-board {
    min-width: 980px;
    grid-template-columns: 180px 120px 100px 100px 100px 120px 180px;
    column-gap: 12px;
    row-gap: 10px;
  }

  .bracket-stage-title {
    font-size: 0.82rem;
  }

  .bracket-match-preview {
    min-height: 58px;
  }

  .bracket-mini-splash {
    height: 58px;
  }

  /* RESULTS VIEW */
  .results-view .bracket-wrapper {
    width: 100%;
    margin-bottom: 16px;
  }

  .results-view .bracket-board-results {
    min-width: 980px;
    padding-bottom: 240px;
  }

  .results-winner-floating {
   position: absolute;
   left: 50%;
   bottom: 26px;
    transform: translateX(calc(-50% + 120px)) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 290px;
  }

  .results-view .results-winner-image {
    width: 290px;
    max-width: 290px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center;
    border-radius: 18px;
  }

  .results-view .results-winner-label {
    font-size: 0.85rem;
  }

  .results-view .results-winner-name {
    font-size: 2.7rem;
    line-height: 1.05;
    text-align: center;
  }
}

.bracket-stage-title {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-gold-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bracket-stage-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bracket-match-preview {
  position: relative;
  min-height: 72px;
  border-radius: 16px;
  border: 1px solid rgba(63, 209, 255, 0.25);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 0 12px rgba(63, 209, 255, 0.08);
  overflow: hidden;
}

.bracket-match-preview.octavos {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.bracket-mini-splash {
  width: 100%;
  height: 72px;
  object-fit: cover;
  display: block;
}

.bracket-match-preview.empty {
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.015) 100%);
}

.bracket-match-preview.empty::after {
  content: "";
  position: absolute;
  inset: 50% 14px auto 14px;
  height: 1px;
  background: rgba(63, 209, 255, 0.22);
  transform: translateY(-50%);
}

.results-winner-label {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-gold-light);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.results-winner-name {
  font-size: 2.4rem;
  font-weight: 900;
  text-align: center;
}

.game-logo{
  display:block;
  width:100%;
  max-width:220px;
  margin:10px auto 20px;
  opacity:0.9;
}

.winner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 10px;
}

.winner-image {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  margin-bottom: 18px;
}

.winner-name {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
}

.bracket-view,
.duel-view {
  width: 100%;
}

.bracket-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 24px;
  padding-bottom: 8px;
}

.bracket-board {
  min-width: 1180px;
  display: grid;
  grid-template-columns: 220px 150px 120px 120px 120px 150px 220px;
  grid-template-rows: auto auto;
  column-gap: 18px;
  row-gap: 14px;
  align-items: start;
}

.bracket-stage-title {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-gold-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bracket-stage-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bracket-match-preview {
  position: relative;
  min-height: 72px;
  border-radius: 16px;
  border: 1px solid rgba(63, 209, 255, 0.25);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 0 12px rgba(63, 209, 255, 0.08);
  overflow: hidden;
}

.bracket-match-preview.octavos {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.bracket-mini-splash {
  width: 100%;
  height: 72px;
  object-fit: cover;
  display: block;
}

.bracket-match-preview.empty {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.015) 100%);
}

.bracket-match-preview.empty::after {
  content: "";
  position: absolute;
  inset: 50% 14px auto 14px;
  height: 1px;
  background: rgba(63, 209, 255, 0.22);
  transform: translateY(-50%);
}

.start-tournament-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 14px 28px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
  color: #111;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.start-tournament-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
}

.view-results-button {
  margin-top: 18px;
  min-height: 54px;
  padding: 12px 24px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
  color: #111;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.view-results-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.bracket-board-results {
  min-width: 1180px;
  position: relative;
  grid-template-rows: auto auto;
  row-gap: 22px;
  padding-bottom: 340px;
}

.results-winner-image {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  border-radius: 24px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
  margin-bottom: 14px;
}

.results-winner-floating {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}
