.my-sports-game-card {
  width: 420px;
  height: 306px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  border: 4px solid #fcfcc7;
  border-radius: 10px;
  background: linear-gradient(180deg, #310102 0%, #741a22 50%, #330002 100%);
}

.my-sports-game-card-header {
  width: 100%;
  min-height: 48px;
  max-height: 48px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;

  font-size: 24px;
  color: #ffffff;

  border-bottom: 4px solid #fcfcc7;
}

.my-sports-game-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 16px;
}

.my-sports-game-card-body-match {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex: 1;
  min-height: 154px;
  width: 100%;
}

.my-draw-market-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.my-home-market,
.my-draw-market,
.my-away-market {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;

  padding: 4px;
  text-align: center;
  line-height: 1.2;

  border: 4px solid #fcfcc7;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffc400 0%, #5f3c14 63.94%, #915400 100%);
  position: relative; /* enable overlay positioning */
  overflow: hidden; /* clip overlay to rounded corners */
}

/* Ensure inner content renders above the overlay */
.my-home-market > *,
.my-draw-market > *,
.my-away-market > *,
.my-option > *,
.my-market-selection > *,
.my-market-selection.my-live-market-selection > * {
  position: relative;
  z-index: 1;
}

.my-home-market,
.my-away-market {
  width: 100%;
}

.my-draw-market {
  min-width: 96px;
  flex: 1;
}

.my-sports-btn {
  width: 100%;
  height: 48px;
  font-size: 24px;
  color: #ffffff;
}

.selected-market {
  background: linear-gradient(180deg, #310102 0%, #741a22 50%, #330002 100%);
}

/* Efeito de flash para mudança de odd */
@property --flash-alpha {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

@keyframes oddFlashUpAlpha {
  0% {
    --flash-alpha: 0;
    animation-timing-function: cubic-bezier(0.2, 0.9, 0.2, 1);
  }
  12% {
    --flash-alpha: 1;
    animation-timing-function: cubic-bezier(0, 0.55, 0.35, 1);
  }
  36% {
    --flash-alpha: 1;
    animation-timing-function: cubic-bezier(0, 0.55, 0.35, 1);
  }
  100% {
    --flash-alpha: 0;
  }
}

@keyframes oddFlashDownAlpha {
  0% {
    --flash-alpha: 0;
    animation-timing-function: cubic-bezier(0.2, 0.9, 0.2, 1);
  }
  12% {
    --flash-alpha: 1;
    animation-timing-function: cubic-bezier(0, 0.55, 0.35, 1);
  }
  36% {
    --flash-alpha: 1;
    animation-timing-function: cubic-bezier(0, 0.55, 0.35, 1);
  }
  100% {
    --flash-alpha: 0;
  }
}

.my-home-market::after,
.my-draw-market::after,
.my-away-market::after,
.my-option::after,
.my-market-selection::after,
.my-market-selection.my-live-market-selection::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  pointer-events: none;
  opacity: var(--flash-alpha, 0);
  z-index: 0;
}

.odd-up-flash::after {
  background: linear-gradient(
    10.95deg,
    rgba(19, 116, 0, 1) -17.19%,
    rgba(17, 78, 5, 1) 8.69%,
    rgba(90, 163, 71, 1) 143.02%
  );
  animation: oddFlashUpAlpha 2.8s 1;
}

.odd-down-flash::after {
  background: linear-gradient(
    180deg,
    rgba(175, 0, 0, 1) 0%,
    rgba(120, 0, 10, 1) 72.6%,
    rgba(108, 16, 24, 1) 100%
  );
  animation: oddFlashDownAlpha 2.8s 1;
}

/* Fim dos efeitos de flash para mudança de odd */

.my-sports-game-card-live {
  border: none !important;
}

.my-sports-game-card-live .my-sports-game-card-header {
  background: linear-gradient(180deg, #ffc300 0%, #5f3314 63.94%, #c59429 100%);
  border-bottom: none !important;
  border-radius: 10px 10px 0 0;
}

.my-game-card-live-score-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  max-height: 68px;
}

.my-game-card-live-score {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  background-color: rgba(0, 0, 0, 0.4);
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.my-clock-phase-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.my-clock-phase-container .my-live-indicator {
  width: 32px;
  height: 32px;
  border: 4px solid #fcfcc7;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff0000 0%, #5f141a 63.94%, #c52936 100%);
  animation: liveIndicatorFade 1.8s ease-in-out infinite;
}

.my-market-lock-and-odd-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.my-home-market.closed-odd,
.my-draw-market.closed-odd,
.my-away-market.closed-odd,
.my-option.closed-odd,
.my-market-selection.closed-odd,
.my-market-selection.my-live-market-selection.closed-odd,
.my-market-accordion-header.closed-market,
.my-markets-accordion-container.my-sports-live
  .my-market-accordion-header.closed-market {
  background: linear-gradient(
    180deg,
    #dddddd 0%,
    #696969 63.94%,
    #bebebe 100%
  ) !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  color: #000000 !important;
  border: none !important;
}

.my-home-market.closed-odd span,
.my-draw-market.closed-odd span,
.my-away-market.closed-odd span,
.my-option.closed-odd > img,
.my-option.closed-odd span,
.my-market-selection.closed-odd > span,
.my-market-selection.my-live-market-selection.closed-odd > span {
  opacity: 0.4;
}

@keyframes liveIndicatorFade {
  0%,
  100% {
    box-shadow: inset 0 0 0 0 rgba(0, 0, 0, 0);
  }
  50% {
    box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.28);
  }
}

@media (max-width: 1200px) {
  .my-sports-game-card-body-match {
    min-height: 172px;
  }
}
