html{
  color-scheme: dark !important;
}
/* base colors and fonts */
:root {
  --card-bg: #212529;
  --muted: #9aa0a6;
  --accent: #0d6efd;
  --text: #ffffff;
}
body { font-family: 'Roboto Condensed', sans-serif; color: var(--text); }
.loading-container{
  min-height: 200px;
}
.loading-container p{
  color: white;
  font-size: 24px;
}







#daily-highlights {
  margin-top: 0.5rem;
}

.daily-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.highlight-card {
  background-color: #204731f2;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.highlight-card-center {
  transform: translateY(-4px);
  border-color: rgba(13,110,253,0.35);
}

.highlight-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9aa0a6;
  margin-bottom: 0.5rem;
}

.highlight-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.highlight-subtext {
  font-size: 0.95rem;
  color: #d7dde2;
}

.d-none {
  display: none !important;
}


/* LIST BASE */
.highlight-list {
  margin-top: 1rem;
  max-height: 160px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.3s ease;
}

/* collapsed fade */
.highlight-list.collapsed::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
}

/* expanded */
.highlight-list.expanded {
  max-height: 1000px;
}

/* list item */
.highlight-list-item {
  padding: 0.6rem 0.7rem;
  border-radius: 0.6rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

/* toggle button */
.highlight-toggle {
  margin-top: 0.5rem;
  background: none;
  border: none;
  color: #9aa0a6;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.highlight-toggle:hover {
  color: #ffffff;
}

.highlight-toggle.expanded .arrow {
  transform: rotate(180deg);
  display: inline-block;
}



@media (max-width: 992px) {
  .daily-highlights-grid {
    grid-template-columns: 1fr;
  }
}








/* containers */
#matches-list, #leaderboard-table { width: 100%; }
/* table base */
.table {
  border-collapse: collapse;
  width: 100%;
  table-layout: auto;
}
.table th, .table td {
  padding: 0.45rem 0.6rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--text);
}
/* Upcoming table header style */
.upcoming-table thead th {
  font-weight: 600;
  color: #dfe6ea;
  background: rgba(255,255,255,0.02);
}
/* Column widths and helpers */
.col-start { width: 90px; white-space: nowrap; text-align: left; }
.col-team { width: 220px; white-space: normal; }
.col-vs { width: 48px; text-align: center; color: var(--muted); }
.col-score { width: 90px; text-align: center; white-space: nowrap; }
.col-prediction { width: 110px; text-align: left; }
.col-action { width: 110px; white-space: nowrap; }
/* team cell */
.team-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.team-cell img { display: block; border-radius: 2px; }
/* team name */
.team-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal;
  word-break: normal;
  max-width: 180px;
}
/* prediction inputs */
.prediction-inputs input[type="number"],
.prediction-inputs .form-control-sm {
  width: 66px;
  padding: 0.25rem 0.35rem;
}
/* STRONG OVERRIDES FOR INPUT COLOR */
.upcoming-table tbody td.col-prediction input.pred-home,
.upcoming-table tbody td.col-prediction input.pred-away,
.upcoming-table tbody td.col-prediction input.form-control,
.upcoming-table tbody td.col-prediction input.form-control-sm,
.upcoming-table tbody td.col-prediction .form-control,
.upcoming-table tbody td.col-prediction .form-control-sm {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  background-color: #fff !important;
  border-color: rgba(0,0,0,0.12) !important;
  box-shadow: none !important;
}
.upcoming-table tbody td.col-prediction input.pred-home:focus,
.upcoming-table tbody td.col-prediction input.pred-away:focus,
.upcoming-table tbody td.col-prediction input.form-control:focus,
.upcoming-table tbody td.col-prediction input.form-control-sm:focus {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  background-color: #fff !important;
  outline: 0;
  box-shadow: 0 0 0 0.12rem #0d6efd1f !important;
  font-weight: bold;
  text-align: center;
}
.upcoming-table tbody td.col-prediction input::-webkit-textfield-decoration {
  color: #000 !important;
}
.prediction-inputs input[type="number"] {
  padding: 0.25rem 0.35rem;
}
/* row height */
.upcoming-table tbody tr {
  height: 56px;
}
.small { font-size: 0.85rem; color: var(--muted); }
.save-bet-btn { min-width: 64px; font-weight: 700; }
/* card background */
.card { background: var(--card-bg); border: 1px solid rgba(255,255,255,0.03); }
/* vs column */
.col-vs {
  width: 8rem;
  text-align: left;
  padding-left: 8px;
  color: var(--muted);
}
.col-score { font-weight: 600; }
/* Prediction cell */
.upcoming-table td.col-prediction:not(:has(input)) ,
.upcoming-table td.col-prediction:not(:has(input)) * {
  color: var(--text) !important;
}
/* Action column */
.upcoming-table td.col-action .status-finished,
.upcoming-table td.col-action .text-muted {
  color: var(--text) !important;
  opacity: 0.95;
  font-weight: 600;
}







/*  Joker bet button rules  */
.col-joker {
  width: 96px;
  text-align: center;
  white-space: nowrap;
}

.joker-toggle-btn {
  position: relative;
  overflow: hidden;
  min-width: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid #0000002e;
  border-radius: 10px;
  background: linear-gradient(180deg, #12301fbf, #214f33e6);
  color: #dff8e8;
  font-family: "Montserrat", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  appearance: none;
  -webkit-appearance: none;
  outline: 0 !important;
  transform: translateY(0) scale(1);
  transition:
    transform 0.14s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    filter 0.18s ease;
}

/* subtle shine layer */
.joker-toggle-btn::before {
  content: "";
  position: absolute;
  inset: -40% -30%;
  background: linear-gradient(
    120deg,
    transparent 35%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 65%
  );
  transform: translateX(-120%) rotate(18deg);
  pointer-events: none;
  opacity: 0;
}

.joker-toggle-btn:hover {
  transform: translateY(-1px) scale(1.01) !important;
  border-color: #00000047;
  box-shadow: 0 10px 24px #00000047;
}

.joker-toggle-btn:active {
  transform: translateY(1px) scale(0.97) !important;
  filter: brightness(1.08);
}

/* when user clicks, the shine sweeps across */
.joker-toggle-btn:active::before {
  opacity: 1;
  animation: joker-shine 0.42s ease-out;
}

.joker-toggle-btn.is-active {
  background: linear-gradient(180deg, rgba(63, 170, 104, 0.95), rgba(31, 110, 63, 0.95));
  color: #f3fff6;
  border-color: rgba(180, 255, 205, 0.36);
  box-shadow: 0 10px 28px rgba(18, 64, 36, 0.38);
  animation: joker-pop 0.28s ease-out;
}

.joker-toggle-btn.is-active::before {
  opacity: 1;
  animation: joker-shine 0.42s ease-out;
}

.joker-toggle-btn,
.joker-toggle-btn:hover,
.joker-toggle-btn:focus,
.joker-toggle-btn:focus-visible,
.joker-toggle-btn:active {
  outline: 0 !important;
}

.joker-toggle-btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  animation: none !important;
}

@keyframes joker-shine {
  0% {
    transform: translateX(-120%) rotate(18deg);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translateX(120%) rotate(18deg);
    opacity: 0;
  }
}

@keyframes joker-pop {
  0% {
    transform: scale(0.96);
  }
  55% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}








/* Leaderboard styles */
.leaderboard-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
  color: #ffffff !important;
}
.leaderboard-table thead th {
  background-color: #00000059;
  color: #ffffff;
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
}
.leaderboard-table tbody td { padding: 0.65rem; background: transparent; }
.leaderboard-table tbody tr { box-shadow: inset 0 -1px 0 #00752f59; }
.leaderboard-table tbody tr:last-child { border-bottom: none !important; }
.leaderboard-table tbody tr { background-color: #00552259; color: ivory !important; }
.leaderboard-table tbody tr.rank-gold td { background-color: rgb(159, 135, 0); color: #000; font-weight: 700; }
.leaderboard-table tbody tr.rank-silver td { background-color: silver; color: #000; font-weight: 700; }
.leaderboard-table tbody tr.rank-bronze td { background-color: #a36629; color: #000; font-weight: 700; }
.leaderboard-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}






/* Fun fact section */
#fun-fact-section {
  margin-top: 3rem;
}

#fun-fact-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  text-align: center;
}

/* Fun fact card */
#fun-fact-section .card {
  background: #0f1218e6;
  border: 1px solid #ffffff14;
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px #00000026;
  padding: 1.5rem;
  max-width: 800px;
  margin: 0 auto; /* center card */
  color: #f8f9fa;
}

/* Fun fact title inside card */
#fun-fact-section .card h5 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #ffc107; 
}

/* Fun fact text */
#fun-fact-section .card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #e0e0e0;
  margin-bottom: 0;
  font-family: "Quicksand", sans-serif;
  font-weight: 400;
}











@media (max-width: 1024px) {
  /* match card container */
  .match-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 14px;
    align-items: center; /* center everything horizontally */
    text-align: center;
    border-bottom: 1px solid #ffffff1a; 
    padding-bottom: 0.75rem; 
    margin-bottom: 0.75rem; 
  }

  .match-card .mc-joker .joker-toggle-btn {
    width: 6rem !important;    
    max-width: 6rem !important;      
    padding: 0.25rem 0.4rem;  /* less vertical & horizontal padding */
    font-size: 0.8rem;        /* smaller text */
  }

  /* Optional: if you want the active state to scale down too */
  .match-card .mc-joker .joker-toggle-btn.is-active {
    width: 6rem !important;
    max-width: 6rem !important;  
    padding: 0.25rem 0.4rem;
    font-size: 0.8rem;
  }

  /* Teams in a row, centered */
  .mc-teams {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center; /* center the row */
    gap: 8px;
    flex-wrap: nowrap; /* prevent wrapping under each other */
  }

  .mc-team {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    max-width: 50%; /* allow vertical expansion if name is long */
    justify-content: center; /* center each team content */
  }

  .mc-vs {
    margin: 0 4px;
    white-space: nowrap;
  }

  /* Team name wraps vertically if too long, but stays in place */
  .mc-team-name {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  /* Score inputs in a row, centered */
  .mc-controls {
    display: flex;
    flex-direction: column; /* stack prediction, joker, button */
    gap: 0.5rem;
    align-items: center;
    width: 100%;
  }

  .prediction-inputs {
    display: flex;
    flex-direction: row;
    gap: 0.25rem;
    justify-content: center; /* center inputs */
  }

  .prediction-inputs input {
    width: 60px;
    text-align: center;
  }

  /* Joker button centered */
  .mc-joker {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .mc-action {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  /* Flags smaller */
  .mc-team img {
    width: 24px;
    height: 16px;
  }

  /* Finished / status line centered */
  .status-finished,
  .mc-joker-state {
    text-align: center;
    width: 100%;
  }

  /* Extra vertical spacing between day groups on mobile */
  .mobile-day-group {
    margin-bottom: 5rem !important; 
  }

  /* Optional: center day titles on mobile */
  .mobile-day-group h4 {
    text-align: center;
    margin-bottom: 1.2rem;
    font-size: 1.25rem;
    color: var(--text);
    font-family: "Montserrat";
  }

  #leaderboard-section {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
  }

  #leaderboard-section .card {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 0;
  }

  .leaderboard-table th,
  .leaderboard-table td {
    padding: 0.45rem 0.4rem;
  }

  #fun-fact-section h2 {
    font-size: 1.5rem;
  }

  #fun-fact-section .card {
    padding: 1rem;
    margin: 0 1rem; /* small side margin */
  }

  #fun-fact-section .card h5 {
    font-size: 1.1rem;
  }

  #fun-fact-section .card p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}







/* Extra tiny screen tweaks */
@media (max-width: 384px) {
  .mc-controls {
    flex-direction: column;
    gap: 0.4rem;
    align-items: center; /* center everything */
    width: 100%;
  }

  .mc-controls .joker-toggle-btn,
  .match-card .mc-joker .joker-toggle-btn {
    width: 100%;
    min-width: unset;
  }

  .joker-toggle-btn:focus-visible,
  .joker-toggle-btn:focus:not(:focus-visible) {
    outline: 0 !important;
    box-shadow: none !important;
  }

  #fun-fact-section h2 {
    font-size: 1.3rem;
  }

  #fun-fact-section .card h5 {
    font-size: 1rem;
  }

  #fun-fact-section .card p {
    font-size: 0.85rem;
    line-height: 1.3;
  }

}










