.prediction-score::-webkit-inner-spin-button,
.prediction-score::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.pred-form :is(button, input):focus-visible {
  outline: 2px solid #a91935;
  outline-offset: 2px;
  z-index: 1;
}

.pred-btn {
  background: rgb(181, 184, 220);
  color: white;
}

.pred-btn:hover {
  background: rgb(147, 151, 188);
}

@media (width > 600px) {
  .prediction-header,
  .prediction-team-name span,
  .prediction-submit-mobile {
    display: none;
  }

  .pred-form,
  .prediction-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }

  .pred-form {
    border-bottom: 2px solid rgb(170, 110, 110);
  }

  .prediction-teams {
    display: flex;
    align-items: center;
    gap: clamp(1.75rem, 4vw, 3rem);
  }

  .prediction-team {
    display: grid;
    grid-template-areas:
      "increase crest score"
      "decrease crest score";
    align-items: center;
    gap: 5px 0.5rem;
  }

  .prediction-team:last-child {
    grid-template-areas:
      "score crest increase"
      "score crest decrease";
  }

  .prediction-team-name {
    grid-area: crest;
    cursor: pointer;
  }

  .prediction-divider {
    margin: 0 0.5rem;
    font-size: 1.5rem;
  }

  .score-control {
    display: contents;
  }

  .score-increase {
    grid-area: increase;
  }

  .score-decrease {
    grid-area: decrease;
  }

  .score-control button {
    width: 2rem;
    height: 2rem;
    margin: 0 0.25rem;
    border-radius: 3px;
    background: #2c3e50;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
  }

  .score-control button:hover {
    background: #41607f;
  }

  .prediction-score {
    grid-area: score;
    width: 30px;
    height: 40px;
    background: rgb(173, 182, 182);
    font-size: 20px;
    font-weight: bold;
    text-align: center;
  }

  .pred-btn {
    margin-bottom: 8px;
    padding: 7px 12px;
    border: 0;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
  }
}

@media (max-width: 600px) {
  .prediction-page {
    padding: 0.875rem 0.75rem;
  }

  .prediction-page-title,
  .prediction-submit-desktop {
    display: none;
  }

  .pred-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem 0.75rem;
    width: 100%;
    max-width: 35rem;
    margin-inline: auto;
    padding: 0.5rem 0.625rem 0.625rem;
    box-sizing: border-box;
    border: 1px solid #d8dfe9;
    border-radius: 0.75rem;
    background: #ffffff;
    color: var(--accent-ink);
  }

  .prediction-header {
    grid-area: 2 / 1;
  }

  .prediction-kickoff {
    display: block;
    color: #4e5c71;
    font-size: 0.8rem;
    overflow-wrap: anywhere;
  }

  .prediction-body {
    display: contents;
  }

  .prediction-teams {
    grid-area: 1 / 1 / 2 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 0.75rem minmax(0, 1fr);
    align-items: center;
    border-bottom: 1px solid #e8ecf2;
  }

  .prediction-team {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    grid-template-areas: "crest score";
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
  }

  .prediction-team:last-child {
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-areas: "score crest";
  }

  .prediction-team-name {
    grid-area: crest;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    overflow-wrap: anywhere;
    cursor: pointer;
  }

  .prediction-team-name .team-logo {
    width: 2rem;
    height: 2rem;
  }

  .prediction-team-name span {
    max-width: 100%;
  }

  .prediction-divider {
    color: #4e5c71;
    text-align: center;
  }

  .score-control {
    grid-area: score;
    display: grid;
    grid-template-rows: repeat(3, 44px);
  }

  .score-control button,
  .prediction-score {
    min-width: 0;
    padding: 0;
    border-radius: 0.375rem;
    font: inherit;
    text-align: center;
  }

  .score-control button {
    border: 0;
    background: transparent;
    color: #4e5c71;
    font-size: 1.25rem;
    cursor: pointer;
  }

  .score-increase {
    grid-row: 1;
  }

  .score-decrease {
    grid-row: 3;
  }

  .score-control button:hover {
    background: #f1f3f7;
  }

  .prediction-score {
    grid-row: 2;
    appearance: textfield;
    border: 1px solid #cbd2dc;
    background: #f7f9fc;
    color: inherit;
    font-size: 1.25rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }

  .pred-btn {
    grid-area: 2 / 2;
    min-width: 5.25rem;
    min-height: 44px;
    padding: 0.5rem 0.875rem;
    border: 0;
    border-radius: 0.375rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }
}

.prediction-stats {
  text-align: center;
}

.exact {
  color: rgb(63, 157, 63);
}

.correct_stat {
  color: rgb(207, 207, 101);
}

.inaccurate {
  color: rgb(184, 71, 71);
}
