.evi-bet-list { min-width: 0; }
.evi-bet-kickoff { margin: 0 0 .6rem; color: var(--evi-text-muted, #667085); font-size: .85rem; text-align: center; }
.evi-bet-save-status[data-state="saved"],
.schedule-tip-confirmation { color: var(--evi-success, #146c43); font-weight: 700; }

.evi-bet-row {
  scroll-margin-top: calc(var(--header-h, 72px) + 16px);
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid var(--evi-border, rgba(15, 23, 42, .09));
  color: var(--evi-text, #111827);
}

.evi-bet-row:first-child { border-top: 0; padding-top: 0; }
.evi-bet-row:last-child { padding-bottom: 0; }

.tipps-submit-page [data-tipps-day-filter] {
  position: sticky;
  top: var(--header-h, var(--header-fallback-h, 72px));
  z-index: 5;
}
.tipps-submit-page [data-tipps-list] > .evi-bet-row { scroll-margin-top: 2.75rem; }
.tipps-submit-page [data-tipps-day-filter][hidden],
.tipps-submit-page [data-tipps-list] > [hidden] { display: none; }

.evi-bet-row,
.schedule-match-row { --evi-tip-score-width: 52px; --evi-tip-score-height: 48px; }
.evi-bet-row .match-card-board { grid-template-columns: minmax(60px, 1fr) var(--evi-tip-score-width) 12px var(--evi-tip-score-width) minmax(60px, 1fr); }
.evi-bet-separator { font-size: 1.25rem; font-weight: 700; }
.evi-bet-score {
  --evi-input-surface: var(--evi-surface-soft, #f3f5f8);
  display: grid;
  width: var(--evi-tip-score-width);
  max-width: 100%;
  height: var(--evi-tip-score-height);
  place-items: center;
  justify-self: center;
  border: 0;
  border-radius: 10px;
  background: var(--evi-input-surface);
}
.evi-bet-row .evi-bet-score { transform: none; }
.evi-bet-score-input { min-width: 0; padding: 0; line-height: 1; appearance: textfield; -moz-appearance: textfield; }
.evi-bet-score-input::placeholder { width: 100%; text-align: center; }
.evi-bet-score-input::-webkit-inner-spin-button,
.evi-bet-score-input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.evi-bet-score-input.is-invalid { padding: 0; background-image: none; }
.evi-bet-save-status { margin: 12px 0 0; color: var(--evi-text-muted, #667085); font-size: .82rem; line-height: 1.4; text-align: center; }
.evi-bet-save-status[hidden] { display: none; }
.evi-bet-submit-meta {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  block-size: 1.4em;
  line-height: 1.4;
}
.evi-bet-submit-meta > * {
  grid-area: 1 / 1;
  align-self: center;
}
.evi-bet-submit-meta > .evi-bet-save-status {
  max-block-size: 100%;
  overflow-y: auto;
  overflow-wrap: anywhere;
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}
.evi-bet-save-status:is([data-state="error"], [data-state="invalid"], [data-state="locked"]) { color: var(--evi-danger, #b42318); }

.public-tip-form { text-align: center; }
.public-tip-form .btn { min-height: 44px; }
.schedule-match-row { position: relative; }
.schedule-match-row > .match-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin-bottom: 0;
  padding: 0;
}
.schedule-tip-form { display: contents; }
.schedule-tip-confirmation { font-size: .82rem; line-height: 1; }
.schedule-tip-confirmation:not([hidden]) + .match-card-meta { display: none; }
.schedule-tip-form .evi-bet-score { position: relative; z-index: 2; grid-row: 1; }
.schedule-tip-form .match-card-score-home { grid-column: 2; }
.schedule-tip-form .match-card-score-away { grid-column: 4; }
.schedule-tip-form [data-schedule-tip-status] { grid-column: 1 / -1; justify-self: center; margin: 0; }

.evi-bet-status { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 12px 0 0; color: var(--evi-text-muted, #667085); font-size: .85rem; }
.evi-bet-live-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--evi-danger, #e5484d); }
.evi-bet-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; margin-top: 16px; text-align: center; }
.evi-bet-edit { font-size: .85rem; font-weight: 700; text-decoration: none; }
.evi-bet-edit:hover { text-decoration: underline; }
.evi-bet-points { color: var(--evi-success, #146c43); font-variant-numeric: tabular-nums; }
.evi-bet-breakdown { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.evi-bet-points-chip { padding: 4px 8px; border-radius: 999px; background: var(--evi-surface-soft, #f2f3f5); color: var(--evi-text-muted, #667085); font-size: .75rem; font-weight: 700; line-height: 1.2; }
.evi-bet-points-chip.is-hit { color: var(--evi-success, #146c43); background: rgba(34, 197, 94, .12); }

.evi-bet-row .evi-bet-profile-board {
  --score-pair: min(11%, var(--evi-tip-score-width)) min(2%, 12px) min(11%, var(--evi-tip-score-width));
  grid-template-columns: minmax(0, 1fr) var(--score-pair) var(--score-pair) minmax(0, 1fr);
  grid-template-areas:
    "home tip-label  tip-label tip-label  result-label result-label result-label away"
    "home home-score colon     away-score home-result  result-colon away-result  away";
  gap: .4rem min(2.5%, .95rem);
}
.evi-bet-profile-board .match-card-team-name {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.evi-bet-profile-board .match-card-home { grid-area: home; }
.evi-bet-profile-board .match-card-away { grid-area: away; }
.evi-bet-profile-board .match-card-score-home { grid-area: home-score; }
.evi-bet-profile-board .match-card-score-away { grid-area: away-score; }
.evi-bet-profile-board .evi-bet-separator { grid-area: colon; }
.evi-bet-profile-board .evi-bet-result-separator { grid-area: result-colon; }
.evi-bet-result-home { grid-area: home-result; }
.evi-bet-result-away { grid-area: away-result; }
.evi-bet-tip-heading { grid-area: tip-label; }
.evi-bet-result-heading { grid-area: result-label; }
.evi-bet-tip-heading,
.evi-bet-result-heading { color: var(--evi-text-muted, #667085); font-size: .78rem; text-align: center; }

@media (max-width: 576px) {
  .evi-bet-row,
  .schedule-match-row { --evi-tip-score-width: 44px; --evi-tip-score-height: 44px; }
  .match-card-board:has(.schedule-tip-form) {
    grid-template-columns: minmax(38px, 55px) var(--evi-tip-score-width) minmax(28%, 1fr) var(--evi-tip-score-width) minmax(38px, 55px);
  }
  .schedule-tip-form .evi-bet-score { transform: none; }
  .match-card-board:has(.schedule-tip-form) .match-card-meta { white-space: normal; }
  .evi-bet-score { font-size: 1.5rem; }
  .evi-bet-submit-meta { block-size: 2.8em; }
  .evi-bet-row .match-card-board { grid-template-columns: minmax(0, 1fr) var(--evi-tip-score-width); grid-template-areas: 'home home-score' 'away away-score'; gap: .65rem .75rem; }
  .evi-bet-row .evi-bet-profile-board {
    grid-template-columns: minmax(0, 1fr) var(--evi-tip-score-width) max-content;
    grid-template-areas: ". tip-label result-label" "home home-score home-result" "away away-score away-result";
  }
  .evi-bet-row .match-card-home { grid-area: home; }
  .evi-bet-row .match-card-away { grid-area: away; }
  .evi-bet-row .match-card-score-home { grid-area: home-score; }
  .evi-bet-row .match-card-score-away { grid-area: away-score; }
  .evi-bet-row .match-card-center { display: none; }
  .evi-bet-row .match-card-home,
  .evi-bet-row .match-card-away { flex-direction: row; align-items: center; justify-content: flex-start; gap: .75rem; text-align: left; }
  .evi-bet-row .match-card-team-mark { flex: 0 0 44px; }
  .evi-bet-row .match-card-logo,
  .evi-bet-row .match-card-logo-fallback { width: 44px; height: 44px; }
  .evi-bet-row .match-card-team-name { display: block; max-width: none; line-height: 1.2; }
}

@media (max-width: 380px) {
  .evi-bet-submit-meta { block-size: 4.2em; }
}
