/* shrink the image to match text size */
.logo-img {
  height: 4.5rem;   /* your chosen size */
  width: auto;
  display: block;   /* removes inline spacing quirks */
}

.brand {
  font-size: 2.5rem;   /* match text to icon height */
  font-weight: bold;
  color: white;
  line-height: 1;      /* stops text from having extra vertical space */
  display: flex;
  align-items: center; /* ensures text baseline sits central */
}

.game-row {
  display: flex;
  justify-content: space-between;
  align-items: center;     /* vertical centering */
  padding: 0 2rem;
  border-bottom: 1px solid #ddd;
}

.team-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;                 /* equal space for home/away */
}


.team-crest {
  width: 40px;
  height: 40px;
  object-fit: contain;     /* forces same visual size */
}

.team-name {
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.team-block.home {
  justify-content: flex-end;
  text-align: right;
}

.team-block.away {
  justify-content: flex-start;
  text-align: left;
  flex-direction: row-reverse;
}

.score-controls {
  display: flex;
  flex-direction: column; /* keep +/- stacked vertically */
  align-items: center;
  gap: 0.25rem;
}

.score-controls {
  display: flex;
  flex-direction: column; /* stack +/- buttons with input */
  align-items: center;
  gap: 0.25rem;
}

.game-info {
    flex: 1;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
}

.content-layout-prediction {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem; 
  max-width: 1200px;
  margin: 1.5rem auto;
  padding: 0 1.5rem;
}

.static-panel-prediction {
  background: rgba(246,243,247,1);
  color: #000;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column; /* badges stay at bottom */
  justify-content: space-between;
}

.badges {
  margin-top: auto; /* pushes badges to bottom */
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.badge {
  background: #333;
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.match-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.match-header {
  display: flex;
  justify-content: space-between;
  background: #f3f3f3;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.match-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* home | input | away */
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}

.match-body-pp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  justify-content: center;
}

.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}
.team img.crest {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 0.25rem;
}

.team .name {
  font-weight: bold;
  font-size: 0.95rem;
  text-align: center;
}
.prediction-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.prediction-controls .vs {
  font-weight: bold;
}

.match-footer {
  display: flex;
  justify-content: space-around;
  padding: 0.75rem 1rem;
  border-top: 1px solid #eee;
  background: #fafafa;
}
.match-footer .action {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: #444;
}
.match-footer .action img {
  width: 16px;
  height: 16px;
}

/* .prediction-input {
  width: 3rem;
  text-align: center;
  font-size: 1rem;
  padding: 0.25rem;
} */

.prediction-input {
    width: 80px; /* or any width you prefer */
    padding: 0.75rem; /* matches your example */
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
    box-sizing: border-box;
    outline: none;
    background-color: #fff;
    color: #000;
    text-align: center; /* optional: center the number */
}

.prediction-input:focus {
    border-color: #e9ad02;
    box-shadow: 0 0 6px rgba(233, 173, 2, 0.6);
    outline: none;
	
}

.power-plays {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.power-play-card {
    text-align: center;
	position: relative; /* make this the anchor */
}

.power-play-card img {
    height: 100px;
    display: block;
    margin-bottom: 0.5rem;
}

.power-play-card img:hover {
    transform: scale(1.1);
}

.select-power-play {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    border: 1px solid #e9ad02;
    background-color: transparent; /* transparent background */
    cursor: pointer;
    transition: 0.2s;
	font-family: 'Quicksand', sans-serif;
}

.select-power-play-submit{
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    border: 1px solid #e9ad02;
    background-color: transparent; /* transparent background */
    cursor: pointer;
    transition: 0.2s;
	font-family: 'Quicksand', sans-serif;
}	
.select-power-play-submit:hover {
    background-color: #e9ad02;
    color: #fff;
}

.select-power-play:hover:not(:disabled) {
    background-color: #e9ad02;
    color: #fff;
}

.select-power-play:disabled {
    opacity: 0.4;
}

.power-play-card .selected {
    background-color: #e9ad02;   /* your requested colour */
    color: #fff;
}

.text-white {
	color:white;
}

.info-icon {
  position: relative;
  display: inline-block;
  cursor: pointer;
  color: #183153;
  margin-left: 6px;
}

.bonus-icon {
  position: relative;
  display: inline-block;
  cursor: pointer;
  color: #183153;
  margin-left: 6px;
}


.info-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  
  transform: translateX(-50%);
  background: #183153;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  opacity: 1;
  pointer-events: none;
  display: none;
  z-index: 999;
  text-align: center;
  white-space: normal; /* allow wrapping if needed */
}

.bonus-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  
  transform: translateX(-50%);
  background: #183153;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  opacity: 1;
  pointer-events: none;
  display: none;
  z-index: 999;
  text-align: center;
  white-space: normal; /* allow wrapping if needed */
}

/* Show tooltip only on hover */
.info-icon:hover::after {
  display: block;
}

.bonus-icon:hover::after {
  display: block;
}

#bonus_choice {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  margin-top: 0.5rem;
}

#bonus_choice:focus {
  border-color: #e9ad02;
  box-shadow: 0 0 6px rgba(233, 173, 2, 0.6);
  outline: none;
}

.bonus-panel {
		display: flex; 
		align-items: center; 
		gap: 0.5rem;
}

/* ✅ Mobile (<600px): compact tooltip */
@media (max-width: 600px) {
  .info-icon::after {
    bottom: -40px;         /* show below the icon */
    max-width: 90vw;       /* compact, fits screen */
    width: auto;
    font-size: 0.8rem;
    padding: 6px 8px;
	bottom: 125%; /* show above icon */
	left: 50%;
  }
  .bonus-icon::after {
    bottom: -40px;         /* show below the icon */
    max-width: 90vw;       /* compact, fits screen */
    width: 232px;
    font-size: 0.8rem;
    padding: 6px 8px;
	bottom: 125%; /* show above icon */
	left: 765%;
  }
  .bonus-panel {
		gap: 2.5rem;
	}
   .bonus-label{
	   width: 89px;
   }
}

/* ✅ Desktop (≥600px): wider tooltip */
@media (min-width: 600px) {
  .info-icon::after {
	bottom: -253%; /* show above icon */
	left: 431%;
    width: 600px;      /* allow more width */
    white-space: normal;   /* wrap nicely */
    font-size: 0.9rem;
    padding: 8px 12px;
  }
    .bonus-icon::after {
	bottom: -64%; /* show above icon */
	left: 273px;
    width: 475px;      /* allow more width */
    white-space: normal;   /* wrap nicely */
    font-size: 0.9rem;
    padding: 12px 10px;
  }
  
}

@media (max-width: 600px) {
  .team img.crest {
    width: 36px;
    height: 36px;
  }

  .team .name {
    font-size: 0.8rem;
  }

  .prediction-input {
    width: 2.2rem;
    font-size: 0.85rem;
  }

  .match-body {
    gap: 0.5rem; /* tighten spacing */
    padding: 0.5rem;
  }
}