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

body {
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: #f8fafc;
  overflow-x: hidden;
  background:
    linear-gradient(
        180deg,
        #0a2f18 0%,
        #0d3d1e 35%,
        #114d25 100%
    ),
    url("./images/rink.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.13;
  background-image:
    linear-gradient(120deg, rgba(255,255,255,0.15) 1px, transparent 1px),
    linear-gradient(60deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 90px 90px;
}

.hero {
  padding: 64px 20px 36px;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.eyebrow {
  color: #7dd3fc;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1;
  margin-bottom: 16px;
  text-shadow: 0 0 24px rgba(125, 211, 252, 0.28);
}

.subtitle {
  color: #cbd5e1;
  font-size: 20px;
}

.last-update {
  margin-top: 12px;
  color: #7dd3fc;
  font-size: 14px;
  opacity: 0.85;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin: 24px 0 24px;
}

.stats-combined {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stat-card,
.card,
.match-card {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(186, 230, 253, 0.16);
  border-radius: 24px;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
}

.stat-card {
  padding: 22px;
  transition: 0.25s ease;
}

.stat-card:hover,
.match-card:hover,
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(125, 211, 252, 0.34);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.46),
    0 0 28px rgba(14, 165, 233, 0.08);
}

.stat-label {
  display: block;
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 9px;
}

.stat-card strong {
  font-size: 30px;
  color: #e0f2fe;
}

.leader-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.18), rgba(14, 165, 233, 0.14));
  border: 1px solid rgba(250, 204, 21, 0.35);
  color: #fde68a;
  font-weight: 900;
  box-shadow: 0 0 22px rgba(250, 204, 21, 0.12);
}

.section {
  margin-bottom: 48px;
}

.section-header {
  margin-bottom: 18px;
}

.section-header h2 {
  font-size: 29px;
  margin-bottom: 7px;
}

.section-header p {
  color: #94a3b8;
}

.subsection-title {
  margin: 22px 0 14px;
  font-size: 21px;
  color: #e0f2fe;
}

.upcoming-title {
  margin-top: 34px;
}

.card {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.08),
    rgba(255,255,255,0.04)
  );

  backdrop-filter: blur(16px);

  border: 1px solid rgba(255,255,255,0.12);
}

.chart-card {
  height: 360px;
}

#pointsChart {
  width: 100%;
  height: 100%;
}

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

th,
td {
  padding: 15px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

th {
  color: #7dd3fc;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

tbody tr {
  transition: 0.18s ease;
}

tbody tr:hover {
  background: rgba(14, 165, 233, 0.09);
}

.rank-1 {
  color: #facc15;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(250, 204, 21, 0.28);
}

.rank-2 {
  color: #e5e7eb;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(229, 231, 235, 0.18);
}

.rank-3 {
  color: #fb923c;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(251, 146, 60, 0.20);
}

.matches-list {
  display: grid;
  gap: 20px;
}

.match-card {
  padding: 22px;
  transition: 0.25s ease;
}

.match-card-upcoming {
  opacity: 0.78;
}

.match-header {
  display: block;
  margin-bottom: 20px;
}

.match-date {
  color: #7dd3fc;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.match-scoreline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.team-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.team-side:last-child {
  justify-content: flex-end;
}

.team-name {
  font-size: 24px;
  font-weight: 900;
  color: #f8fafc;
}

.score-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 10px 18px;
  border-radius: 18px;
  font-size: 34px;
  font-weight: 950;
  color: #f8fafc;
  background: rgba(14, 165, 233, 0.16);
  border: 1px solid rgba(125, 211, 252, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 24px rgba(14, 165, 233, 0.10);
}

.match-card-upcoming .score-pill {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.10);
  border-color: rgba(148, 163, 184, 0.18);
}

.flag {
  width: 38px;
  height: 26px;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0,0,0,0.25);
}

.badge {
  display: inline-block;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.badge-exact {
  background: rgba(34, 197, 94, 0.17);
  color: #86efac;
  border: 1px solid rgba(134, 239, 172, 0.18);
}

.badge-close {
  background: rgba(250, 204, 21, 0.17);
  color: #fde68a;
  border: 1px solid rgba(253, 230, 138, 0.18);
}

.badge-zero {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  border: 1px solid rgba(203, 213, 225, 0.10);
}

.rules {
  color: #cbd5e1;
  line-height: 1.8;
}

.rules p:not(:last-child) {
  margin-bottom: 9px;
}

.rules strong {
  color: #e0f2fe;
}

.rules-divider {
  border: none;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(125, 211, 252, 0.55),
    transparent
  );
  margin: 16px 0;
}

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #64748b;
  padding: 30px 20px 44px;
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.nav-link {
  padding: 10px 18px;
  border-radius: 999px;

  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(125, 211, 252, 0.16);

  color: #cbd5e1;
  text-decoration: none;
  font-weight: 700;

  transition: 0.2s ease;
}

.nav-link:hover {
  transform: translateY(-2px);

  border-color: rgba(125, 211, 252, 0.34);

  color: #f8fafc;
}

.nav-link.active {
  background: rgba(14, 165, 233, 0.14);

  color: #7dd3fc;

  border-color: rgba(125, 211, 252, 0.34);

  box-shadow:
    0 0 18px rgba(14, 165, 233, 0.18);
}

.select-label {
  display: block;
  margin-bottom: 10px;
  color: #94a3b8;
  font-weight: 700;
}

.player-select {
  width: 100%;
  max-width: 320px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
  font-size: 16px;
  font-weight: 700;
}

.qualified-row td:first-child {
  border-left: 4px solid #0ea5e9;
}

.relegated-row td:first-child {
  border-left: 4px solid #ef4444;
}

.qualified-row {
  background: rgba(14, 165, 233, 0.07);
}

.relegated-row {
  background: rgba(239, 68, 68, 0.08);
}

.table-team {
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-flag {
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(0,0,0,0.18);
}

.diff-up {
  color: #4ade80;
  font-weight: 800;
}

.diff-down {
  color: #f87171;
  font-weight: 800;
}

.diff-same {
  color: #94a3b8;
  font-weight: 800;
}

.playoff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.playoff-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(125, 211, 252, 0.18);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.playoff-title {
  color: #7dd3fc;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.playoff-teams {
  display: grid;
  gap: 12px;
}

.playoff-team {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
}

.playoff-flag {
  width: 34px;
  height: 24px;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0,0,0,0.25);
}

.playoff-vs {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  padding-left: 44px;
}

.stats-panel {
  margin: 24px 0 44px;
}

.bet-summary {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 20px;
}

.daily-awards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

.flip-card {
  perspective: 1000px;
  height: 160px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s ease;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  overflow: hidden;
  backface-visibility: hidden;
  border: 1px solid rgba(186, 230, 253, 0.16);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
}

.flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.92);
}

.flip-card-back {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.92);
  transform: rotateY(180deg);
  text-align: center;
  padding: 18px;
}

.flip-card-back span {
  color: #7dd3fc;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 10px;
}

.flip-card-back strong {
  font-size: 22px;
  color: #f8fafc;
}

@media (max-width: 800px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stats-combined {
    grid-template-columns: repeat(3, 1fr);
  }

  .daily-awards {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .flip-card {
    height: 220px;
  }
}

@media (max-width: 700px) {
  .match-scoreline {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .team-side {
    justify-content: center !important;
  }

  .score-pill {
    align-self: center;
    min-width: 90px;
    font-size: 28px;
    padding: 8px 14px;
  }

  .team-name {
    font-size: 22px;
  }

  .flag {
    width: 34px;
    height: 24px;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: 42px;
  }

  main {
    width: min(100% - 20px, 1120px);
  }

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

  .stats-combined {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-combined .stat-label {
    font-size: 12px;
  }

  .stats-combined strong {
    font-size: 24px;
  }

  .card,
  .match-card {
    padding: 15px;
    border-radius: 18px;
  }

  th,
  td {
    padding: 11px 8px;
    font-size: 14px;
  }

  .chart-card {
    height: 300px;
  }

  .daily-awards {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .flip-card {
    height: 170px;
  }

  .flip-card-front,
  .flip-card-back {
    border-radius: 14px;
  }

  .flip-card-back span {
    font-size: 12px;
  }

  .flip-card-back strong {
    font-size: 16px;
  }
}
.day-group {
  margin-bottom: 18px;
}

.day-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(125, 211, 252, 0.18);

  background: rgba(15, 23, 42, 0.82);
  color: #f8fafc;

  font-size: 18px;
  font-weight: 900;
  cursor: pointer;

  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.day-toggle::after {
  content: "⌄";
  color: #7dd3fc;
  transition: 0.2s ease;
}

.day-toggle.is-open::after {
  transform: rotate(180deg);
}

.day-count {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 800;
  margin-left: auto;
}

.day-content {
  display: none;
  margin-top: 14px;
}

.day-content.is-open {
  display: grid;
  gap: 20px;
}

@media (max-width: 520px) {
  .day-toggle {
    font-size: 15px;
    padding: 14px;
  }

  .day-count {
    font-size: 12px;
  }
}
.submit-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.submit-card {
  width: 100%;
  max-width: 720px;
}

.submit-card h1 {
  margin-bottom: 12px;
}

.submit-subtitle {
  color: #94a3b8;
  margin-bottom: 28px;
}

#tip-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#tip-form label {
  color: #cbd5e1;
  font-weight: 700;
  margin-bottom: 6px;
  display: block;
}

#tip-form input,
#tip-form select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(125, 211, 252, 0.18);

  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;

  font-size: 16px;
}

#tip-form input:focus,
#tip-form select:focus {
  outline: none;
  border-color: rgba(125, 211, 252, 0.6);
  box-shadow: 0 0 18px rgba(14, 165, 233, 0.18);
}

.score-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

#tip-form button {
  border: none;
  padding: 16px;
  border-radius: 16px;

  background: linear-gradient(
    135deg,
    #0ea5e9,
    #2563eb
  );

  color: white;
  font-size: 16px;
  font-weight: 900;

  cursor: pointer;
  transition: 0.2s ease;
}

#tip-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.28);
}

#submit-status {
  margin-top: 12px;
  font-weight: 700;
}
.form-legend {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;

  margin-top: 14px;

  font-size: 13px;
  color: #94a3b8;
}

.form-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.player-name-button {
  background: none;
  border: none;
  color: #e0f2fe;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  padding: 0;
}

.player-name-button:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

.player-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(8px);

  align-items: flex-start;
  justify-content: center;

  padding: 20px;
  overflow-y: auto;
}

.player-modal.is-open {
  display: flex;
}

.player-modal-content {
  width: min(680px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;

  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  position: relative;
}

.player-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  color: #f8fafc;
  font-size: 24px;
  cursor: pointer;
}

.player-modal-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.player-stat-box {
  padding: 16px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(186, 230, 253, 0.12);
}

.player-stat-box span {
  display: block;
  color: #94a3b8;
  font-size: 13px;
  margin-bottom: 8px;
}

.player-stat-box strong {
  font-size: 22px;
  color: #e0f2fe;
}

.player-stat-wide {
  grid-column: 1 / -1;
}

@media (max-width: 520px) {
  .player-modal {
    padding: 12px;
    align-items: flex-start;
  }

  .player-modal-content {
    max-height: calc(100vh - 24px);
    padding: 20px;
    border-radius: 20px;
  }

  .player-modal-stats {
    grid-template-columns: 1fr;
  }

  .player-stat-box strong {
    font-size: 18px;
    line-height: 1.25;
  }
}
.floating-puck {
  position: fixed;

  width: 140px;
  height: 140px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle at 35% 35%,
      rgba(255,255,255,0.08),
      rgba(0,0,0,0.95) 58%,
      rgba(0,0,0,1) 100%
    );

  opacity: 0.16;

  filter: blur(0.5px);

  top: 12%;
  left: -60px;

  z-index: 0;
  pointer-events: none;

  animation:
    puckFloat 6s ease-in-out infinite alternate;
}

.floating-puck::before {
  content: "";

  position: absolute;
  inset: 6px;

  border-radius: 50%;

  border: 2px solid rgba(255,255,255,0.04);
}
@keyframes puckFloat {
  0% {
    transform:
      translateX(0)
      translateY(0)
      rotate(0deg);
  }

  100% {
    transform:
      translateX(110px)
      translateY(50px)
      rotate(10deg);
  }
}
.card::before,
#leaderboard tbody tr:nth-child(1) {
  background: linear-gradient(
    90deg,
    rgba(250, 204, 21, 0.14),
    transparent 70%
  );
}

#leaderboard tbody tr:nth-child(2) {
  background: linear-gradient(
    90deg,
    rgba(229, 231, 235, 0.10),
    transparent 70%
  );
}

#leaderboard tbody tr:nth-child(3) {
  background: linear-gradient(
    90deg,
    rgba(251, 146, 60, 0.12),
    transparent 70%
  );
}

#leaderboard tbody tr:nth-child(1):hover {
  background: linear-gradient(
    90deg,
    rgba(250, 204, 21, 0.20),
    rgba(14, 165, 233, 0.08)
  );
}

#leaderboard tbody tr:nth-child(2):hover {
  background: linear-gradient(
    90deg,
    rgba(229, 231, 235, 0.16),
    rgba(14, 165, 233, 0.08)
  );
}

#leaderboard tbody tr:nth-child(3):hover {
  background: linear-gradient(
    90deg,
    rgba(251, 146, 60, 0.18),
    rgba(14, 165, 233, 0.08)
  );
}
.leaderboard-note {
  margin-top: 12px;

  text-align: center;

  font-size: 13px;
  color: #94a3b8;

  opacity: 0.9;
}
/* =========================
   FOOTBALL THEME OVERRIDES
   Vlož na konec style.css
   ========================= */

:root {
  --pitch-dark: #052e16;
  --pitch: #166534;
  --pitch-light: #22c55e;
  --gold: #facc15;
  --gold-soft: rgba(250, 204, 21, 0.18);
  --white-soft: rgba(255, 255, 255, 0.16);
  --card-bg: rgba(6, 24, 14, 0.78);
  --card-border: rgba(250, 204, 21, 0.18);
  --text-soft: #bbf7d0;
}

body {
  color: #eef6ef;
  background:
    radial-gradient(circle at top, rgba(250, 204, 21, 0.13), transparent 34%),
    linear-gradient(rgba(2, 12, 7, 0.84), rgba(2, 12, 7, 0.90)),
    repeating-linear-gradient(
      90deg,
      #064e3b 0,
      #064e3b 90px,
      #065f46 90px,
      #065f46 180px
    );
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

body::before {
  opacity: 0.20;
  background-image:
    linear-gradient(to right, transparent 49.8%, rgba(255,255,255,0.45) 50%, transparent 50.2%),
    linear-gradient(to bottom, transparent 49.8%, rgba(255,255,255,0.28) 50%, transparent 50.2%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 120px);
  background-size: 100% 100%, 100% 100%, 120px 120px;
}

body::after {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 280px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.hero {
  padding-top: 70px;
}

.eyebrow,
.last-update,
th,
.match-date,
.playoff-title,
.flip-card-back span,
.nav-link.active,
.player-name-button:hover,
.day-toggle::after {
  color: var(--gold);
}

h1 {
  text-shadow:
    0 0 22px rgba(250, 204, 21, 0.26),
    0 0 46px rgba(34, 197, 94, 0.14);
}

.subtitle,
.section-header p,
.stat-label,
.day-count,
.select-label,
.leaderboard-note,
.form-legend,
.player-stat-box span {
  color: var(--text-soft);
}

.stat-card,
.card,
.match-card,
.playoff-card,
.day-toggle,
.player-modal-content,
.player-stat-box {
  background: var(--card-bg);
  border-color: var(--card-border);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.stat-card:hover,
.match-card:hover,
.card:hover {
  transform: translateY(-3px);

  background: rgba(255,255,255,0.08);

  box-shadow:
    0 10px 30px rgba(0,0,0,0.20),
    0 0 20px rgba(34,197,94,0.12);
}

.stat-card strong,
.rules strong,
.player-stat-box strong,
.subsection-title,
.player-name-button {
  color: #fef9c3;
}

.leader-badge {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.22), rgba(34, 197, 94, 0.16));
  border-color: rgba(250, 204, 21, 0.42);
  color: #fef08a;
  box-shadow: 0 0 24px rgba(250, 204, 21, 0.16);
}

tbody tr:hover {
  background: rgba(34, 197, 94, 0.11);
}

.score-pill {
  color: #fef9c3;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.18), rgba(34, 197, 94, 0.18));
  border-color: rgba(250, 204, 21, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 24px rgba(250, 204, 21, 0.10);
}

.match-card-upcoming .score-pill {
  color: #bbf7d0;
  background: rgba(22, 101, 52, 0.28);
  border-color: rgba(187, 247, 208, 0.18);
}

.flag,
.table-flag,
.playoff-flag {
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.badge-exact {
  background: rgba(34, 197, 94, 0.20);
  color: #bbf7d0;
  border-color: rgba(187, 247, 208, 0.26);
}

.badge-close {
  background: rgba(250, 204, 21, 0.20);
  color: #fef08a;
  border-color: rgba(254, 240, 138, 0.26);
}

.badge-zero {
  background: rgba(255, 255, 255, 0.09);
  color: #d1fae5;
  border-color: rgba(209, 250, 229, 0.12);
}

.rules-divider {
  background: linear-gradient(to right, transparent, rgba(250, 204, 21, 0.58), transparent);
}

.nav-link {
  background: rgba(6, 24, 14, 0.76);
  border-color: rgba(250, 204, 21, 0.15);
  color: #d1fae5;
}

.nav-link:hover {
  border-color: rgba(250, 204, 21, 0.34);
  color: #fef9c3;
}

.nav-link.active {
  background: rgba(250, 204, 21, 0.12);
  border-color: rgba(250, 204, 21, 0.36);
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.15);
}

#tip-form input,
#tip-form select,
.player-select {
  background: rgba(6, 24, 14, 0.94);
  border-color: rgba(250, 204, 21, 0.20);
  color: #f8fafc;
}

#tip-form input:focus,
#tip-form select:focus,
.player-select:focus {
  border-color: rgba(250, 204, 21, 0.64);
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.16);
}

#tip-form button {
  background: linear-gradient(135deg, #16a34a, #ca8a04);
}

#tip-form button:hover {
  box-shadow: 0 10px 24px rgba(250, 204, 21, 0.22);
}

.qualified-row td:first-child {
  border-left-color: #22c55e;
}

.relegated-row td:first-child {
  border-left-color: #ef4444;
}

.qualified-row {
  background: rgba(34, 197, 94, 0.08);
}

.relegated-row {
  background: rgba(239, 68, 68, 0.08);
}

.floating-puck {
  width: 94px;
  height: 94px;
  opacity: 0.18;
  background:
    radial-gradient(circle at 35% 32%, rgba(255,255,255,0.95) 0 12%, transparent 13%),
    radial-gradient(circle, #f8fafc 0 58%, #111827 59% 62%, #f8fafc 63% 100%);
  box-shadow: 0 0 26px rgba(255,255,255,0.10);
}

.floating-puck::before {
  inset: 18px;
  border: 2px solid rgba(17, 24, 39, 0.75);
}

#leaderboard tbody tr:nth-child(1) {
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.16), transparent 70%);
}

#leaderboard tbody tr:nth-child(2) {
  background: linear-gradient(90deg, rgba(229, 231, 235, 0.11), transparent 70%);
}

#leaderboard tbody tr:nth-child(3) {
  background: linear-gradient(90deg, rgba(251, 146, 60, 0.13), transparent 70%);
}

footer {
  color: #86efac;
}
.admin-page {
  margin-top: 40px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
  align-items: start;
}

.admin-card h2 {
  font-size: 28px;
  margin-bottom: 22px;
  color: #f8fafc;
}

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

.admin-form label {
  display: block;
  margin-bottom: 7px;
  color: #cbd5e1;
  font-weight: 800;
}

.admin-form input,
.admin-form select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(250, 204, 21, 0.25);
  background: rgba(2, 6, 23, 0.72);
  color: #f8fafc;
  font-size: 16px;
}
.admin-form select,
#tip-form select,
.player-select {
  color-scheme: dark;
}
.admin-form select option,
#tip-form select option,
.player-select option {
  background: #0f3d25;
  color: #ffffff;
}

.admin-form input:focus,
.admin-form select:focus {
  outline: none;
  border-color: rgba(250, 204, 21, 0.7);
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.16);
}

.admin-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.admin-form button {
  margin-top: 8px;
  padding: 15px 18px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #facc15, #ca8a04);
  color: #102014;
  font-weight: 950;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s ease;
}

.admin-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(250, 204, 21, 0.22);
}

#admin-status,
#result-status {
  margin-top: 14px;
  font-weight: 800;
  color: #fde68a;
}

@media (max-width: 900px) {
  .bet-summary {
    grid-template-columns: 1fr;
  }

  .stake-input,
  .potential-win,
  .place-bet-btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .admin-two-cols {
    grid-template-columns: 1fr;
  }
}


/* =========================
   FOOTBALL LIGHTER THEME v2
   Finální override – světlejší zelený fotbalový styl
   ========================= */

:root {
  --pitch-dark: #0b3d20;
  --pitch: #16803a;
  --pitch-light: #36d66b;
  --pitch-soft: rgba(34, 197, 94, 0.18);

  --gold: #facc15;
  --gold-soft: rgba(250, 204, 21, 0.16);

  --white: #ffffff;
  --white-soft: rgba(255, 255, 255, 0.16);
  --white-glass: rgba(255, 255, 255, 0.12);
  --white-glass-strong: rgba(255, 255, 255, 0.18);

  --card-bg: rgba(255, 255, 255, 0.10);
  --card-bg-hover: rgba(255, 255, 255, 0.14);
  --card-border: rgba(255, 255, 255, 0.20);

  --text-main: #f8fff9;
  --text-soft: #d8f7df;
  --text-muted: #b6e8c3;

  --shadow-soft:
    0 16px 42px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

/* Pozadí – světlejší trávník, ale pořád čitelné */
body {
  color: var(--text-main);
  background:
    radial-gradient(circle at 50% 0%, rgba(250, 204, 21, 0.16), transparent 32%),
    linear-gradient(
      rgba(8, 64, 28, 0.58),
      rgba(6, 78, 32, 0.70)
    ),
    repeating-linear-gradient(
      90deg,
      #0f7a35 0,
      #0f7a35 95px,
      #12883d 95px,
      #12883d 190px
    );
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

body::before {
  opacity: 0.22;
  background-image:
    linear-gradient(to right, transparent 49.85%, rgba(255,255,255,0.42) 50%, transparent 50.15%),
    linear-gradient(to bottom, transparent 49.85%, rgba(255,255,255,0.22) 50%, transparent 50.15%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.055) 0 1px, transparent 1px 120px);
  background-size: 100% 100%, 100% 100%, 120px 120px;
}

body::after {
  border-color: rgba(255, 255, 255, 0.14);
}

/* Typografie */
h1,
h2,
h3,
.team-name {
  color: #ffffff;
}

h1 {
  text-shadow:
    0 0 22px rgba(255, 255, 255, 0.12),
    0 0 38px rgba(34, 197, 94, 0.22);
}

.eyebrow,
.last-update,
.match-date,
th,
.nav-link.active,
.day-toggle::after,
.player-name-button:hover,
.playoff-title,
.flip-card-back span {
  color: var(--gold);
}

.subtitle,
.section-header p,
.stat-label,
.day-count,
.select-label,
.leaderboard-note,
.form-legend,
.rules,
.rules p,
.player-stat-box span,
.submit-subtitle {
  color: var(--text-soft);
}

/* Karty a panely */
.stat-card,
.card,
.match-card,
.playoff-card,
.day-toggle,
.player-modal-content,
.player-stat-box {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.13),
      rgba(255, 255, 255, 0.075)
    );
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.card {
  padding: 20px;
  overflow: hidden;
  transition: 0.25s ease;
  border-radius: 24px;
}

.stat-card:hover,
.match-card:hover,
.card:hover,
.playoff-card:hover {
  transform: translateY(-3px);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.17),
      rgba(255, 255, 255, 0.10)
    );
  border-color: rgba(255, 255, 255, 0.30);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.26),
    0 0 26px rgba(34, 197, 94, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.stat-card strong,
.rules strong,
.player-stat-box strong,
.subsection-title,
.player-name-button {
  color: #ffffff;
}

/* Navigace */
.nav-link {
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-main);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.30);
  color: #ffffff;
}

.nav-link.active {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.18), rgba(255, 255, 255, 0.12));
  border-color: rgba(250, 204, 21, 0.42);
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.16);
}

/* Tabulky */
table {
  color: var(--text-main);
}

th,
td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

th {
  background: rgba(255, 255, 255, 0.06);
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.09);
}

/* Leaderboard */
.rank-1 {
  color: #fef08a;
  text-shadow: 0 0 14px rgba(250, 204, 21, 0.34);
}

.rank-2 {
  color: #f8fafc;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.24);
}

.rank-3 {
  color: #fed7aa;
  text-shadow: 0 0 12px rgba(251, 146, 60, 0.24);
}

#leaderboard tbody tr:nth-child(1) {
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.18), rgba(255, 255, 255, 0.04) 70%);
}

#leaderboard tbody tr:nth-child(2) {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.03) 70%);
}

#leaderboard tbody tr:nth-child(3) {
  background: linear-gradient(90deg, rgba(251, 146, 60, 0.14), rgba(255, 255, 255, 0.03) 70%);
}

/* Zápasy */
.score-pill {
  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.16),
      rgba(34, 197, 94, 0.18)
    );
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 0 22px rgba(34, 197, 94, 0.15);
}

.match-card-upcoming {
  opacity: 0.92;
}

.match-card-upcoming .score-pill {
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.18);
}

.flag,
.table-flag,
.playoff-flag {
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 0 10px rgba(0,0,0,0.20);
}

/* Badge */
.badge-exact {
  background: rgba(34, 197, 94, 0.24);
  color: #dcfce7;
  border-color: rgba(220, 252, 231, 0.34);
}

.badge-close {
  background: rgba(250, 204, 21, 0.22);
  color: #fef9c3;
  border-color: rgba(254, 249, 195, 0.36);
}

.badge-zero {
  background: rgba(255, 255, 255, 0.10);
  color: #eaffef;
  border-color: rgba(255, 255, 255, 0.16);
}

/* Formuláře – Submit i Admin */
#tip-form input,
#tip-form select,
.player-select,
.admin-form input,
.admin-form select {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

#tip-form input::placeholder,
.admin-form input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

#tip-form input:focus,
#tip-form select:focus,
.player-select:focus,
.admin-form input:focus,
.admin-form select:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.17);
  border-color: rgba(250, 204, 21, 0.58);
  box-shadow:
    0 0 0 3px rgba(250, 204, 21, 0.10),
    0 0 20px rgba(34, 197, 94, 0.16);
}

#tip-form label,
.admin-form label {
  color: #ffffff;
}

#tip-form button,
.admin-form button {
  background: linear-gradient(135deg, #ffffff, #facc15);
  color: #10451f;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

#tip-form button:hover,
.admin-form button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.22),
    0 0 22px rgba(250, 204, 21, 0.18);
}

#submit-status,
#admin-status,
#result-status {
  color: #fef9c3;
}

/* Accordion dny */
.day-toggle {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.14),
      rgba(255, 255, 255, 0.08)
    );
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.20);
}

.day-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* Modal */
.player-modal {
  background: rgba(3, 35, 16, 0.68);
}

.player-modal-content {
  background:
    linear-gradient(
      180deg,
      rgba(18, 111, 48, 0.92),
      rgba(8, 78, 34, 0.94)
    );
}

.player-modal-close {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.player-stat-box {
  background: rgba(255, 255, 255, 0.10);
}

/* Pravidla a linky */
.rules-divider {
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.36),
    rgba(250, 204, 21, 0.46),
    transparent
  );
}

/* Footer */
footer {
  color: #d8f7df;
}

/* Admin */
.admin-card h2 {
  color: #ffffff;
}

.admin-form input[type="date"] {
  color-scheme: dark;
}

/* Mobil */
@media (max-width: 520px) {
  body::after {
    width: 210px;
    height: 210px;
    opacity: 0.7;
  }

  .card,
  .match-card,
  .stat-card {
    background: rgba(255, 255, 255, 0.11);
  }
}
.bonus-emoji {
  font-size: 32px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.betting-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.bet-option {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(250, 204, 21, 0.28);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.16),
    rgba(255, 255, 255, 0.08)
  );
  color: #f8fafc;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.bet-option strong {
  display: inline-block;
  margin-top: 6px;
  color: #facc15;
  font-size: 24px;
}

.bet-option:hover:not(:disabled) {
  transform: translateY(-2px);
  background: rgba(34, 197, 94, 0.22);
  box-shadow: 0 12px 28px rgba(34, 197, 94, 0.16);
}

.bet-option:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.betting-stake-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.stake-input {
  width: 100%;
  height: 72px;
  padding: 0 24px;
  border-radius: 18px;
  border: 1px solid rgba(250, 204, 21, 0.25);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}
.stake-input::placeholder {
  color: rgba(255,255,255,0.55);
}

.stake-input:focus {
  outline: none;
  border-color: rgba(250, 204, 21, 0.75);
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.18);
}

@media (max-width: 700px) {
  .betting-options {
    grid-template-columns: 1fr;
  }

  .stake-input {
    width: 100%;
  }
}
.place-bet-btn {
  height: 72px;
  border: none;
  border-radius: 18px;

  background: linear-gradient(
    90deg,
    #22c55e,
    #facc15
  );
  color: #052e16;
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;

  transition: all 0.2s ease;
}
.potential-win {
  height: 72px;
  border-radius: 18px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  font-size: 15px;
  font-weight: 700;
}
.potential-win strong {
  margin-top: 4px;
  font-size: 28px;
  color: #facc15;
}
.place-bet-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,.18);
}
.bet-option.selected {
  position: relative;
  transform: translateY(-3px) scale(1.02);
  border: 2px solid #facc15;
  background: linear-gradient(
    135deg,
    rgba(250, 204, 21, 0.35),
    rgba(34, 197, 94, 0.28)
  );
  box-shadow:
    0 0 0 3px rgba(250, 204, 21, 0.16),
    0 16px 34px rgba(0, 0, 0, 0.22),
    0 0 28px rgba(250, 204, 21, 0.32);
}

.bet-option.selected::before {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 12px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #facc15;
  color: #064e3b;
  font-weight: 950;
}

.bet-option.selected strong {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(250, 204, 21, 0.55);
}
.bet-summary .submit-note {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  color: #f8fff9;
  opacity: 0.95;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .bet-summary {
    grid-template-columns: 1fr;
  }
}
.loan-input {
  width: 100%;
  height: 72px;
  padding: 0 24px;
  border-radius: 18px;
  border: 1px solid rgba(250, 204, 21, 0.25);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}

.loan-potential-win {
  height: 72px;
  border-radius: 18px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
}

.loan-potential-win strong {
  margin-top: 4px;
  font-size: 28px;
  color: #facc15;
}

.place-loan-bet-btn {
  height: 72px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(90deg, #0ea5e9, #facc15);
  color: #052e16;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}
.group-table .qualified-row {
  background: rgba(34, 197, 94, 0.16);
}

.group-table .qualified-row td:first-child {
  border-left: 4px solid #22c55e;
}

.group-table .third-place-row {
  background: rgba(250, 204, 21, 0.13);
}

.group-table .third-place-row td:first-child {
  border-left: 4px solid #facc15;
}
.standings-switch,
.playoff-stage-switch {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 28px;
}

.standings-tab,
.playoff-stage-btn {
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid rgba(250, 204, 21, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s ease;
}

.standings-tab:hover,
.playoff-stage-btn:hover {
  transform: translateY(-2px);
  background: rgba(34, 197, 94, 0.22);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.standings-tab.active,
.playoff-stage-btn.active {
  background: linear-gradient(135deg, #22c55e, #facc15);
  color: #052e16;
  border-color: rgba(250, 204, 21, 0.75);
  box-shadow: 0 0 22px rgba(250, 204, 21, 0.24);
}
.worldcup-bracket {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 18px;
}

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

.bracket-column-title {
  text-align: center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(250,204,21,0.25);
  color: #facc15;
  font-weight: 950;
  text-transform: uppercase;
}

.bracket-match {
  min-height: 118px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.bracket-team {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.bracket-vs {
  padding-left: 38px;
  color: #bbf7d0;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.bracket-placeholder {
  width: 28px;
  height: 20px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(250,204,21,0.18);
  color: #facc15;
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 900px) {
  .worldcup-bracket {
    grid-template-columns: repeat(5, 260px);
  }
}
.worldcup-bracket {
  overflow-x: auto;
  padding: 18px 0 28px;
}

.bracket-shell {
  min-width: 1450px;
  display: grid;
  grid-template-columns: 1fr 260px 1fr;
  gap: 28px;
  align-items: center;
}

.bracket-side {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: center;
}

.bracket-left {
  direction: ltr;
}

.bracket-right {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: center;
}

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

.bracket-column-title {
  text-align: center;
  padding: 12px 14px;
  border-radius: 16px;
  color: #facc15;
  font-weight: 950;
  text-transform: uppercase;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(250,204,21,0.28);
  box-shadow: 0 0 18px rgba(250,204,21,0.12);
}

.bracket-match {
  position: relative;
  min-height: 116px;
  padding: 14px;
  border-radius: 18px;
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.15),
      rgba(255,255,255,0.07)
    );
  border: 1px solid rgba(255,255,255,0.20);
  box-shadow:
    0 14px 32px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.10);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  transition: 0.22s ease;
}

.bracket-match:hover {
  transform: translateY(-4px) scale(1.025);
  border-color: rgba(250,204,21,0.55);
  box-shadow:
    0 18px 38px rgba(0,0,0,0.28),
    0 0 26px rgba(250,204,21,0.20);
}

.bracket-match::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -18px;
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, #22c55e, #facc15);
  box-shadow: 0 0 12px rgba(250,204,21,0.45);
  animation: bracketPulse 1.8s infinite ease-in-out;
}

.bracket-right .bracket-match::after {
  right: auto;
  left: -18px;
  background: linear-gradient(90deg, #facc15, #22c55e);
}

.bracket-left .bracket-column:last-child .bracket-match::after,
.bracket-right .bracket-column:first-child .bracket-match::after {
  display: none;
}

.bracket-team {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 900;
  font-size: 15px;
}

.bracket-vs {
  padding-left: 38px;
  color: #bbf7d0;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  opacity: 0.85;
}

.bracket-placeholder {
  width: 30px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(250,204,21,0.18);
  color: #facc15;
  border: 1px solid rgba(250,204,21,0.32);
  font-size: 13px;
  font-weight: 900;
}

.bracket-final {
  display: flex;
  align-items: center;
  justify-content: center;
}

.final-card {
  width: 100%;
  min-height: 300px;
  padding: 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(250,204,21,0.35), transparent 46%),
    linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.08));
  border: 2px solid rgba(250,204,21,0.55);
  box-shadow:
    0 0 34px rgba(250,204,21,0.30),
    0 18px 48px rgba(0,0,0,0.30),
    inset 0 1px 0 rgba(255,255,255,0.18);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  text-align: center;
  animation: finalGlow 2.8s infinite ease-in-out;
}

.final-trophy {
  font-size: 62px;
  line-height: 1;
}

.final-title {
  color: #facc15;
  text-transform: uppercase;
  font-size: 26px;
  font-weight: 950;
  letter-spacing: 0.05em;
}

.final-team {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
}

@keyframes bracketPulse {
  0%, 100% {
    opacity: 0.45;
  }

  50% {
    opacity: 1;
  }
}

@keyframes finalGlow {
  0%, 100% {
    box-shadow:
      0 0 26px rgba(250,204,21,0.24),
      0 18px 48px rgba(0,0,0,0.30);
  }

  50% {
    box-shadow:
      0 0 46px rgba(250,204,21,0.42),
      0 20px 54px rgba(0,0,0,0.34);
  }
}

@media (max-width: 900px) {
  .bracket-shell {
    min-width: 1300px;
  }
}

.bracket-shell {
  align-items: center;
}

.bracket-side {
  align-items: flex-start;
}

.bracket-column {
  display: flex !important;
  flex-direction: column;
  align-self: flex-start;
  gap: 24px;
}

.bracket-column-title {
  height: auto;
  min-height: 44px;
  margin-bottom: 14px;
}

.bracket-match {
  min-height: 86px;
  height: auto;
  margin-bottom: 0 !important;
}

/* levá větev – směrem k finále */
.bracket-left .bracket-column:nth-child(1) {
  padding-top: 0;
}

.bracket-left .bracket-column:nth-child(2) {
  padding-top: 70px;
}

.bracket-left .bracket-column:nth-child(3) {
  padding-top: 185px;
}

.bracket-left .bracket-column:nth-child(4) {
  padding-top: 390px;
}

/* pravá větev – zrcadlově */
.bracket-right .bracket-column:nth-child(1) {
  padding-top: 390px;
}

.bracket-right .bracket-column:nth-child(2) {
  padding-top: 185px;
}

.bracket-right .bracket-column:nth-child(3) {
  padding-top: 70px;
}

.bracket-right .bracket-column:nth-child(4) {
  padding-top: 0;
}

.bracket-final {
  align-self: center;
}
