/* ==========================================================================
   Live scorecard — layered on top of league.css, which supplies the palette
   (--maroon, --gold, --paper …) and the .btn family. Nothing here overrides
   an EMS rule; every selector is namespaced sc-.
   ========================================================================== */

.sc-page {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem 0 3rem;
}

.sc-page--narrow {
  max-width: 30rem;
  margin: 0 auto;
}

.sc-page__head {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sc-page__head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.8rem);
  color: var(--maroon);
  line-height: 1.1;
}

.sc-page__head p {
  color: var(--muted);
}

.sc-eyebrow {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.sc-back {
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

/* ------------------------------------------------------------------ blocks */
.sc-block {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.sc-block__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--maroon);
}

.sc-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--danger);
}

.sc-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sc-row {
  display: grid;
  grid-template-columns: minmax(6rem, 1fr) minmax(0, 2.4fr) minmax(6rem, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), border-color var(--ease);
}

a.sc-row:hover {
  transform: translateY(-1px);
  border-color: var(--gold);
}

.sc-row--static {
  cursor: default;
}

.sc-row__meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.sc-row__sport {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--maroon);
}

.sc-row__stage,
.sc-when,
.sc-venue {
  font-size: 0.74rem;
  color: var(--muted);
}

.sc-row__teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.sc-row__team {
  font-weight: 600;
  text-align: right;
  flex: 1;
}

.sc-row__team--b {
  text-align: left;
}

.sc-row__score {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-variant-numeric: tabular-nums;
  color: var(--maroon);
  white-space: nowrap;
}

.sc-row__score i {
  font-style: normal;
  color: var(--gold-dim);
  padding: 0 0.3rem;
}

.sc-row__vs {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sc-row__tail {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.sc-row__tail form {
  margin: 0;
}

.sc-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--danger);
}

.sc-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger);
}

.sc-final {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--success);
}

.sc-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 0.1rem 0.45rem;
  border-radius: 100px;
  background: rgba(236, 195, 92, 0.2);
  border: 1px solid rgba(236, 195, 92, 0.4);
  color: var(--gold-dim);
}

.sc-empty {
  padding: 1.6rem;
  text-align: center;
  color: var(--muted);
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
}

.sc-hint {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ------------------------------------------------------- tabs, table, leaders */
.sc-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--line);
  padding-bottom: 0.6rem;
}

.sc-tab {
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--maroon);
  border: 1px solid var(--line);
  background: var(--white);
  transition: background var(--ease), color var(--ease);
}

.sc-tab:hover,
.sc-tab:focus-visible {
  border-color: var(--gold);
}

.sc-tab.is-active {
  background: var(--maroon);
  border-color: var(--maroon);
  color: var(--gold-light);
}

.sc-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.sc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.sc-table th,
.sc-table td {
  padding: 0.6rem 0.7rem;
  text-align: right;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.sc-table thead th {
  background: var(--paper);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.sc-table tbody tr:last-child td {
  border-bottom: 0;
}

.sc-table__pos {
  width: 2.4rem;
  text-align: center !important;
  color: var(--muted);
}

/* Numbers read better right-aligned, but the team column and its heading are
   text and must line up on the left. */
.sc-table thead th:nth-child(2) {
  text-align: left;
}

.sc-table__team {
  text-align: left !important;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: normal;
}

.sc-table__pts {
  font-weight: 800;
  color: var(--maroon);
}

/* The top row is the only one that needs to be findable at a glance. */
.sc-table__leader {
  background: rgba(236, 195, 92, 0.14);
}

.sc-table__leader .sc-table__pos {
  color: var(--maroon);
  font-weight: 800;
}

.sc-leaders {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  counter-reset: leader;
}

.sc-leader {
  display: grid;
  grid-template-columns: 2.2rem 1fr auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
}

.sc-leader:first-child {
  border-left-color: var(--maroon);
}

.sc-leader__rank {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-dim);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.sc-leader:first-child .sc-leader__rank {
  color: var(--maroon);
}

.sc-leader__who {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.sc-leader__team {
  font-size: 0.76rem;
  color: var(--muted);
}

.sc-leader__count {
  text-align: right;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.sc-leader__count b {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--maroon);
  font-variant-numeric: tabular-nums;
}

.sc-leader__count span {
  font-size: 0.68rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------- big board */
.sc-board {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-deep) 100%);
  color: #f6efe9;
  border-radius: var(--radius);
  padding: clamp(1.4rem, 4vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  box-shadow: var(--shadow);
}

.sc-board__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(236, 195, 92, 0.25);
}

.sc-board .sc-eyebrow {
  color: var(--gold-light);
}

.sc-board .sc-live,
.sc-board .sc-final,
.sc-board .sc-when {
  color: var(--gold-light);
}

.sc-board .sc-live::before {
  background: var(--gold-light);
}

.sc-board__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.sc-side {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: right;
}

.sc-side--b {
  text-align: left;
}

.sc-side__tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--gold-light);
}

.sc-side__name {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 0.8rem + 1.4vw, 1.6rem);
}

.sc-board__score {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 1.4rem + 6vw, 4.6rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

.sc-board__score i {
  font-style: normal;
  color: var(--gold);
  padding: 0 0.5rem;
}

.sc-board__venue {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

/* -------------------------------------------------------------------- feed */
.sc-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sc-feed__item {
  display: grid;
  grid-template-columns: 3.2rem 1fr auto;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.6rem 0.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-dim);
  border-radius: var(--radius-sm);
}

.sc-feed__item--b {
  border-left-color: var(--maroon-soft);
}

.sc-feed__clock {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--maroon);
}

.sc-feed__what {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: baseline;
}

.sc-feed__who {
  color: var(--muted);
  font-size: 0.85rem;
}

.sc-feed__team {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--gold-dim);
}

.sc-feed__empty {
  padding: 1rem;
  color: var(--muted);
  text-align: center;
  list-style: none;
}

/* ------------------------------------------------------------ cards, forms */
.sc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 1.8rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.sc-card h1,
.sc-card h2 {
  font-family: var(--font-display);
  color: var(--maroon);
}

.sc-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.sc-form--row {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
}

.sc-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1 1 10rem;
}

.sc-form label span {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--maroon);
}

.sc-form__buttons {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.btn--sm {
  padding: 0.35rem 0.8rem;
  font-size: 0.75rem;
}

/* league.css styles .btn--ghost white-on-transparent for the dark hero, which
   is invisible on these light pages. Restated in maroon, scoped to .sc-page so
   the dark console (and every EMS page) keeps the original treatment. */
.sc-page .btn--ghost {
  color: var(--maroon);
  border-color: rgba(91, 31, 31, 0.35);
}

.sc-page .btn--ghost:hover,
.sc-page .btn--ghost:focus-visible {
  background: var(--maroon);
  color: var(--gold-light);
  border-color: var(--maroon);
}

/* ----------------------------------------------------------------- console */
.sc-console-body {
  margin: 0;
  min-height: 100vh;
  background: var(--maroon-deep);
  color: #f6efe9;
  font-family: var(--font);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 0.9rem clamp(0.7rem, 3vw, 1.4rem) 2rem;
}

.sc-console__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
}

.sc-console__back {
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 700;
}

.sc-console__meta {
  color: rgba(255, 255, 255, 0.6);
}

.sc-console__period {
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* ----------------------------------------------------------- match timer bar */
.sc-timer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  background: rgba(0, 0, 0, 0.38);
  border: 1.5px solid rgba(236, 195, 92, 0.45);
  border-radius: var(--radius);
  padding: 0.65rem 0.95rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  flex-wrap: wrap;
}

.sc-timer__info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sc-timer__icon {
  font-size: 1.35rem;
  line-height: 1;
}

.sc-timer__clock-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.sc-timer__digital {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.sc-timer__min-badge {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--maroon-deep);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
  font-variant-numeric: tabular-nums;
}

.sc-timer__state-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold-light);
}

.sc-timer__state-tag--running {
  background: rgba(39, 174, 96, 0.25);
  color: #55efc4;
  border: 1px solid rgba(85, 239, 196, 0.45);
}

.sc-timer__state-tag--paused {
  background: rgba(230, 126, 34, 0.25);
  color: #fdcb6e;
  border: 1px solid rgba(253, 203, 110, 0.45);
}

.sc-timer__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sc-timer__btn-toggle {
  background: linear-gradient(135deg, var(--gold-light), var(--gold)) !important;
  color: var(--maroon-deep) !important;
  font-weight: 800 !important;
  font-size: 0.85rem !important;
  border: none !important;
  padding: 0.55rem 0.95rem !important;
  border-radius: var(--radius-sm) !important;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease;
}

.sc-timer__btn-toggle:hover {
  transform: translateY(-1px);
}

.sc-timer__btn-toggle--pause {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
}

.sc-timer__btn-set {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--gold-light) !important;
  border: 1px solid rgba(236, 195, 92, 0.35) !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  padding: 0.55rem 0.85rem !important;
  border-radius: var(--radius-sm) !important;
  cursor: pointer;
  transition: background 0.15s ease;
}

.sc-timer__btn-set:hover {
  background: rgba(236, 195, 92, 0.18) !important;
}

.sc-timer-prompt {
  background: rgba(236, 195, 92, 0.14);
  border: 1px dashed rgba(236, 195, 92, 0.55);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.95rem;
  font-size: 0.84rem;
  color: #f7e1b5;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sc-console__score {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.sc-console__side {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(236, 195, 92, 0.28);
  border-radius: var(--radius);
  padding: 0.8rem;
  text-align: center;
}

.sc-console__tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--gold-light);
}

.sc-console__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.2rem + 8vw, 3.6rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.sc-console__error {
  margin: 0;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(192, 57, 43, 0.9);
  color: #fff;
  font-size: 0.85rem;
}

.sc-console__pads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

@media (max-width: 620px) {
  .sc-console__pads {
    grid-template-columns: 1fr;
  }
}

.sc-pad {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.sc-pad__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--gold-light);
  margin: 0;
}

.sc-pad__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sc-pad__field span {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ecc35c;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.sc-pad__field select,
.sc-player-select {
  width: 100%;
  padding: 0.7rem 2.4rem 0.7rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 2px solid #e3b559;
  background-color: #ffffff !important;
  color: #1b1c19 !important;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2348070e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.85rem center !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sc-pad__field select:focus,
.sc-player-select:focus {
  outline: none;
  border-color: #ecc35c;
  box-shadow: 0 0 0 3.5px rgba(227, 181, 89, 0.45);
}

/* Force dropdown menu options to have high-contrast dark text on clean white background across all OS & browsers */
.sc-pad__field select option,
.sc-player-select option {
  background-color: #ffffff !important;
  color: #1b1c19 !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  padding: 0.75rem 0.95rem !important;
}

.sc-pad__field select option:checked,
.sc-player-select option:checked {
  background-color: #f6eedb !important;
  color: #48070e !important;
  font-weight: 800 !important;
}

.sc-pad__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

/* Deliberately large: this gets tapped on a phone, at speed, courtside. */
.sc-action {
  min-height: 3.4rem;
  padding: 0.6rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(236, 195, 92, 0.35);
  background: rgba(236, 195, 92, 0.12);
  color: #f6efe9;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  transition: background var(--ease), transform var(--ease);
}

.sc-action--scores {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--maroon-deep);
  border-color: transparent;
}

.sc-action:hover:not(:disabled) {
  transform: translateY(-1px);
}

.sc-action:active:not(:disabled) {
  transform: scale(0.97);
}

.sc-action:disabled {
  opacity: 0.5;
  cursor: progress;
}

.sc-action i {
  font-style: normal;
  font-size: 0.7rem;
  opacity: 0.8;
}

.sc-console__bar {
  display: flex;
  align-items: flex-end;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sc-console__clock-container {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 140px;
}

.sc-console__clock {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.sc-clock__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.sc-clock__label-row span:first-child {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ecc35c;
}

.sc-clock__status-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: rgba(39, 174, 96, 0.2);
  color: #55efc4;
  border: 1px solid rgba(85, 239, 196, 0.35);
}

.sc-clock__status-badge--manual {
  background: rgba(230, 126, 34, 0.25);
  color: #fdcb6e;
  border-color: rgba(253, 203, 110, 0.45);
}

.sc-clock__input-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sc-console__clock input {
  width: 6.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 2px solid #e3b559;
  background-color: #ffffff;
  color: #1b1c19;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.sc-console__clock input:focus {
  outline: none;
  border-color: #ecc35c;
  box-shadow: 0 0 0 3px rgba(227, 181, 89, 0.45);
}

.sc-btn-snap {
  background: #ecc35c !important;
  color: #48070e !important;
  font-weight: 800 !important;
  font-size: 0.78rem !important;
  padding: 0.6rem 0.75rem !important;
  border-radius: var(--radius-sm) !important;
  border: none !important;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  animation: pulseSnap 1.5s infinite alternate;
}

@keyframes pulseSnap {
  0% { transform: scale(1); }
  100% { transform: scale(1.04); box-shadow: 0 0 8px rgba(236, 195, 92, 0.7); }
}

.sc-clock__hint {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 220px;
  line-height: 1.25;
}

.sc-console__log {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sc-console__log h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold-light);
  margin: 0;
}

.sc-console__log ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sc-console__log .sc-feed__item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f6efe9;
}

.sc-console__log .sc-feed__clock {
  color: var(--gold-light);
}

.sc-console__log .sc-feed__who,
.sc-console__log .sc-feed__empty {
  color: rgba(255, 255, 255, 0.6);
}

/* ------------------------------------------------------------------ mobile */
@media (max-width: 700px) {
  .sc-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .sc-row__teams {
    justify-content: space-between;
  }

  .sc-row__tail {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

/* ------------------------------------------------ Match Scorers & Highlights */
.sc-side__scorers {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: var(--gold-light);
}

.sc-side__scorers--b {
  align-items: flex-start;
  text-align: left;
}

.sc-scorer-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  line-height: 1.2;
}

.sc-scorer-pill small {
  opacity: 0.85;
  font-weight: 700;
  font-size: 0.72rem;
}

.sc-row__scorers-line {
  display: block;
  font-size: 0.74rem;
  color: var(--gold-dim);
  font-weight: 500;
  margin-top: 0.25rem;
  width: 100%;
}

/* -------------------------------------------------- Player of the Match Card */
.sc-potm-card {
  background: linear-gradient(135deg, rgba(236, 195, 92, 0.18) 0%, rgba(255, 255, 255, 0.06) 100%);
  border: 1.5px solid rgba(236, 195, 92, 0.5);
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  margin-top: 0.5rem;
}

.sc-potm__badge {
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sc-potm__star {
  font-size: 1rem;
}

.sc-potm__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.sc-potm__info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sc-potm__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.sc-potm__team {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
}

.sc-potm__stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  line-height: 1.1;
}

.sc-potm__stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold-light);
}

.sc-potm__stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.8);
}

.sc-board__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 0.4rem;
}

/* ---------------------------------- Live Goal Celebratory Toast for Fans */
.sc-celebration-toast {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: linear-gradient(135deg, #1b0a0e 0%, #48070e 100%);
  border: 2px solid #ecc35c;
  color: #fff;
  border-radius: var(--radius);
  padding: 0.9rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 0 20px rgba(236, 195, 92, 0.4);
  z-index: 99999;
  max-width: 90vw;
  transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
}

.sc-celebration-toast.sc-toast--show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.sc-celebration-toast.sc-toast--hide {
  transform: translateX(-50%) translateY(-60px);
  opacity: 0;
}

.sc-toast__icon {
  font-size: 2.2rem;
  animation: bounceGoal 0.7s infinite alternate;
}

@keyframes bounceGoal {
  0% { transform: scale(0.9) rotate(-8deg); }
  100% { transform: scale(1.15) rotate(8deg); }
}

.sc-toast__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sc-toast__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--gold-light);
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(236, 195, 92, 0.5);
}

.sc-toast__sub {
  font-size: 0.88rem;
  font-weight: 600;
  color: #f6efe9;
}
