:root {
  color-scheme: light;
  --club-red: #bb0a21;
  --club-dark: #1d1d1f;
  --club-gold: #f4c542;
  --slate-50: #f8fafc;
  --slate-100: #e2e8f0;
  --slate-200: #cbd5f5;
  --slate-500: #64748b;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.page-body {
  margin: 0;
  min-height: 100vh;
  background-color: #f5f5f5;
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--club-dark);
}

p {
  margin: 0;
}

.site-header {
  background: var(--club-red);
  color: #fff;
  box-shadow: 0 20px 45px -30px rgba(0, 0, 0, 0.45);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.header-title {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.overline {
  font-size: 40px;
  letter-spacing: -0.05em;
  font-family: "Montserrat", "Gibson", Roboto, Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  font-weight: 800;
}

.text-gold {
  color: var(--club-gold);
}

.match-title {
  color: #fff;
}

.prize-pot {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.144);
  border-radius: 16px;
  padding: 10px 16px;
  width: fit-content;
}

.prize-label {
  font-size: 10px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.prize-amount {
  font-family: "Montserrat", "Gibson", Roboto, Arial, Helvetica, sans-serif;
  font-size: 23px;
  font-weight: 800;
  color: var(--club-gold);
  rotate: -5deg;
  text-decoration: underline;
  text-decoration-color: var(--club-gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;

}

.header-meta {
  font-size: 15px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-strong {
  font-weight: 600;
}

.meta-subdued {
  color: rgba(255, 255, 255, 0.8);
}

.main-content {
  padding: 48px 16px 64px;
}

.content-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid #d9dee7;
  border-radius: 24px;
  box-shadow: 0 30px 60px -55px rgba(15, 23, 42, 0.4);
  padding: 32px 28px;
}

.bet-card__intro,
.recent-card__header {
  text-align: center;
}

.intro-copy {
  margin-top: 8px;
  font-size: 14px;
  color: var(--slate-500);
}

.score-grid {
  margin-top: 32px;
  display: grid;
  gap: 24px;
}

.score-selector {
  border: 1px solid #e2e6ef;
  border-radius: 20px;
  background: var(--slate-50);
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.score-team {
  font-size: 22px;
  font-weight: 800;
  color: #000;
}

.score-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.score-button {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #d6dce7;
  background: #fff;
  color: #475569;
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.score-button:hover {
  border-color: var(--club-red);
  color: var(--club-red);
}

.score-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(187, 10, 33, 0.35);
  border-color: var(--club-red);
  color: var(--club-red);
}

.score-field {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1px solid #d6dce7;
  background: #fff;
  text-align: center;
  font-size: 36px;
  font-weight: 600;
  color: var(--club-dark);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.score-field:focus {
  border-color: var(--club-red);
  outline: none;
  box-shadow: 0 0 0 4px rgba(187, 10, 33, 0.2);
}

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

.score-field[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.bet-card__cta {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.btn-primary {
  width: 100%;
  max-width: 260px;
  border: none;
  border-radius: 14px;
  background: var(--club-red);
  color: #fff;
  padding: 16px 32px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: #a1091d;
}

.btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(187, 10, 33, 0.35);
}

.cta-note {
  font-size: 11px;
  color: #6b7280;
}

.table-wrapper {
  margin-top: 28px;
  border: 1px solid #e2e6ef;
  border-radius: 20px;
  overflow: hidden;
}

.recent-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: #475569;
}

.recent-table thead {
  background: var(--slate-50);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 11px;
  color: #6b7280;
}

.recent-table th,
.recent-table td {
  padding: 14px 18px;
  text-align: left;
}

.recent-table tbody tr:nth-child(odd) {
  background: #fff;
}

.recent-table tbody tr:nth-child(even) {
  background: #fdfdff;
}

.recent-table tbody tr + tr {
  border-top: 1px solid #e8ecf3;
}

.recent-table tbody td:first-child {
  font-weight: 600;
  color: var(--club-dark);
}

.recent-table .align-right {
  text-align: right;
}

@media (min-width: 640px) {
  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .score-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bet-card__intro,
  .recent-card__header {
    text-align: left;
  }
}

@media (min-width: 960px) {
  .header-inner {
    padding-inline: 32px;
  }

  .card {
    padding: 40px 48px;
  }
}

.heading-display {
  font-family: "Montserrat", "Gibson", Roboto, Arial, Helvetica, sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 29px;
  opacity: 1;
  text-transform: none;
}
