body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  min-height: 100vh;
  background-size: 600% 600%;
  animation: playoffGradient 20s ease infinite;
}

@keyframes playoffGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.trophy {
  text-align: center;
  font-size: 36px;
  margin-bottom: 10px;

  animation: trophyFloat 2.5s ease-in-out infinite;
  text-shadow: 0 0 20px rgba(255,215,0,0.9);
}

@keyframes trophyFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

.page-wrapper {
  padding: 40px 20px;
}
.playoffs-title {
  text-align: center;
  color: white;
  font-size: 42px;
  margin-bottom: 40px;
  text-shadow: 0 0 15px rgba(0,255,255,0.5);
}

.fancy {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  max-width: 1300px;
  margin: auto;
}

.round h3 {
  text-align: center;
  color: white;
  margin-bottom: 30px;
  letter-spacing: 1px;
  font-style: italic;
  opacity: 0.9;
}

.match-card {
  isolation: isolate;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.12),
    rgba(0,0,0,0.35)
  );
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 40px;
  box-shadow: 0 0 25px rgba(0,255,255,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.match-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 35px rgba(0,255,255,0.45);
}
.match-card:hover .box-score {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  display: flex;
}

.match-card.champion {
  box-shadow: 0 0 45px rgba(255,215,0,0.9);
}
.team {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  text-shadow: 0 1px 2px rgba(255,255,255,0.2);
  position: relative;
  z-index: 2;
  min-height: 50px;
  background-clip: padding-box;
}

.team:not(:last-child) {
  margin-bottom: 10px;
}

.team.green  { background: linear-gradient(135deg, #56ab2f, #a8e063); }
.team.red    { background: linear-gradient(135deg, #cb2d3e, #ef473a); }
.team.blue   { background: linear-gradient(135deg, #2193b0, #6dd5ed); }
.team.yellow { background: linear-gradient(135deg, #f7971e, #ffd200); }
.team.orange { background: linear-gradient(135deg, #ff8008, #ffc837); }
.team.purple { background: linear-gradient(135deg, #7f00ff, #e100ff); }

.score {
  font-weight: bold;
}
.winner {
  box-shadow: inset 0 0 100px rgb(198, 172, 0);
  position: relative; /* ensures glow doesn’t break layout */
  z-index: 2;

  /* subtle inner shadow for depth */
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.3);

  /* glowing outer effect */
  border-radius: 14px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Glow animation */
.winner.glow {
  animation: winnerGlow 2s infinite alternate;
}

@keyframes winnerGlow {
  0% {
    box-shadow: 0 0 12px rgba(215, 187, 8, 0.6), 0 0 25px rgba(215, 187, 8, 0.5);
  }
  50% {
    box-shadow: 0 0 18px rgba(215, 187, 8, 0.8), 0 0 40px rgba(215, 187, 8, 0.7);
  }
  100% {
    box-shadow: 0 0 12px rgba(215, 187, 8, 0.6), 0 0 25px rgba(215, 187, 8, 0.5);
  }
}
.box-score {
  margin-top: 16px;
  padding-top: 12px;

  display: none;
  flex-direction: column;
  gap: 6px;

  text-align: center;
  color: #ffffff;
  font-size: 14px;
  letter-spacing: 0.5px;

  text-shadow: 0 0 6px rgba(0,255,255,0.6);

  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.set {
  justify-content: center;
  gap: 18px;
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
}
.set-num {
  font-weight: normal;
  text-align: center;
}

.set-score {
  font-weight: bold;
  letter-spacing: 3px;
  text-align: center;
}

.set-team {
  font-weight: normal;
  text-align: center;
}
.playoffs-section {
  position: relative;
  padding: 80px 20px 60px;

  background: linear-gradient(270deg, #0f2027, #203a43, #2c5364);
  background-size: 600% 600%;
  animation: playoffGradient 5s ease infinite;

  border-top-left-radius: 100% 120px;
  border-top-right-radius: 100% 120px;
  overflow: hidden; /* ensures child doesn’t spill out */
}

.playoffs-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 350px; /* adjust as needed */
  background: url('/images/sandvolleyballcourt.jpg') center bottom no-repeat;
  background-size: cover;

  /* Fade into background */
  mask-image: linear-gradient(to top, rgba(0,0,0,1), rgba(0,0,0,0));
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1), rgba(0,0,0,0));
  mask-repeat: no-repeat;
  mask-size: cover;

  opacity: 0.15; /* subtle blending */
  pointer-events: none; /* ensures it’s decorative only */
}
@media (max-width: 768px) {
  .fancy {
    grid-template-columns: 1fr;
  }

  .box-score {
    opacity: 1;
	transform: none;
  }
}