/* Live match scoring and scoreboard (UPG-351). Phone first: big numbers, big buttons. Classic colours only (SP-68): ink, cream, terracotta, Mat blue, haldi; yellow and red stay for cards. */
/* SP-108: the "Held by …" box has d-flex (display:flex !important); hidden must still hide it */
[data-scorer-lock][hidden] { display: none !important; }
.live-board {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: #17130F;
  color: #FAF4EA;
  text-align: center;
  border-bottom: 3px solid #B5532B;
}
.live-board__name { font-weight: 700; font-size: 15px; line-height: 1.2; overflow-wrap: anywhere; }
.live-board__score { font-size: 48px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.live-board__halves { font-size: 12px; opacity: .75; }
.live-board__phase { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.live-board__clock { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.live-board--big .live-board__score { font-size: 64px; }
.live-board--big .live-board__name { font-size: 18px; }
.live-dot {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #C62828;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}
.live-dot[hidden] { display: none; }

.live-message { min-height: 1.4em; margin: 8px 0; font-size: 14px; color: var(--text-muted, #66584B); }
.live-message--bad { color: #A12020; font-weight: 600; }

.live-phase { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin: 8px 0 16px; }
.live-phase [hidden] { display: none; }
.live-phase__winner { display: flex; flex-direction: column; font-size: 12px; gap: 2px; }

.live-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.live-side { border: 1px solid var(--border, #E2D5C0); border-radius: 12px; padding: 10px; }
.live-side__title { font-size: 15px; font-weight: 700; margin: 0 0 8px; overflow-wrap: anywhere; }
.live-side__player { display: block; font-size: 12px; margin-bottom: 8px; }
.live-side__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.live-btn {
  min-height: 52px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  touch-action: manipulation;
}
.live-btn:disabled { opacity: .4; }
.live-btn--raid { background: #1D4FB8; color: #FFFFFF; }
.live-btn--tackle { background: #B5532B; color: #FFFFFF; }
.live-btn--extra { background: #F2A516; color: #17130F; }
.live-btn--score { background: #1D4FB8; color: #FFFFFF; }
.live-side--away .live-btn { filter: saturate(.85); }

.live-log { margin-top: 16px; }
.live-log__list { margin: 8px 0 0; padding-left: 20px; font-size: 14px; }
.live-log__list li { padding: 2px 0; }
.live-split { margin-top: 16px; max-width: 520px; }

@media (max-width: 420px) {
  .live-sides { gap: 8px; }
  .live-side { padding: 8px; }
  .live-board__score { font-size: 40px; }
}
.live-split th, .live-split td { white-space: normal; overflow-wrap: anywhere; }
.live-split thead th { text-transform: none; letter-spacing: 0; }
.live-watch, .live-scorer { max-width: 100%; overflow-x: hidden; }
.live-all { margin-top: 12px; }
.live-all__list { list-style: none; padding: 0; margin: 8px 0 0; max-height: 320px; overflow-y: auto; font-size: 14px; }
.live-all__list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--border, #E2D5C0); }
.live-all__list span { overflow-wrap: anywhere; }

/* A team logo above its name on the big scoreboard (UPG-386) */
.live-board__logo { width: 72px; height: 72px; object-fit: contain; display: block; margin: 0 auto 6px; }

/* Every score its own button, in groups, two a row for each team — side by side on a phone too (UPG-388) */
.live-group + .live-group { margin-top: 10px; }
.live-group__title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-muted, #66584B); margin: 0 0 4px; }
.live-btn { white-space: normal; line-height: 1.15; padding: 4px 6px; overflow-wrap: anywhere; }
@media (max-width: 420px) {
  .live-scorer .live-side__buttons { gap: 5px; }
  .live-scorer .live-btn { font-size: 13px; min-height: 48px; padding: 4px; }
  .live-side__title { font-size: 14px; }
}

/* The road to the final: semi-finals → final → champion (UPG-393) */
.bracket-map { margin: 16px 0; }
.bracket-map__head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; margin-bottom: 8px; }
.bracket-map__note { font-size: 13px; color: var(--text-muted, #66584B); }
.bracket-map__grid { display: flex; gap: 28px; overflow-x: auto; padding-bottom: 6px; align-items: stretch; }
.bracket-map__col { display: flex; flex-direction: column; gap: 8px; min-width: 210px; flex: 1 1 0; position: relative; }
.bracket-map__slots { display: flex; flex-direction: column; justify-content: space-around; gap: 16px; flex: 1; }
.bracket-map__col + .bracket-map__col::before { content: '›'; position: absolute; left: -20px; top: 50%; transform: translateY(-50%); font-size: 22px; color: #8A8178; }
.bracket-map__title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted, #66584B); }
.bracket-slot { border: 1px solid var(--border, #E2D5C0); border-left: 4px solid #1D4FB8; border-radius: 10px; padding: 8px 10px; background: var(--surface, #fff); }
.bracket-slot--projected { border-style: dashed; border-left-style: solid; border-left-color: #8A8178; }
.bracket-slot--done { border-left-color: #2E7D4F; }
.bracket-slot--champion { border-left-color: #D9920F; display: flex; align-items: center; gap: 8px; font-size: 16px; min-height: 64px; }
.bracket-slot--champion .fa-trophy { color: #D9920F; font-size: 22px; }
.bracket-slot__meta { display: flex; justify-content: space-between; gap: 6px; font-size: 11px; color: var(--text-muted, #66584B); margin-bottom: 4px; }
.bracket-slot__badge { background: #FDF3DC; color: #96411F; border-radius: 999px; padding: 0 8px; font-weight: 700; }
.bracket-slot__team { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 2px 0; font-size: 14px; }
.bracket-slot__team--won { font-weight: 800; color: #2E7D4F; }
.bracket-slot__team--out { opacity: .55; }
.bracket-slot__name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; overflow-wrap: anywhere; }
.bracket-slot__label { font-size: 11px; color: var(--text-muted, #66584B); font-weight: 400; }
.bracket-slot__score { font-weight: 800; font-variant-numeric: tabular-nums; }
@media (max-width: 576px) {
  .bracket-map__grid { flex-direction: column; gap: 18px; }
  .bracket-map__col { min-width: 0; }
  .bracket-map__col + .bracket-map__col::before { content: '⌄'; left: 50%; top: -18px; transform: none; }
}

/* A match put off for later (UPG-394); the pools' top two go to the semi-finals */
.match-postponed { display: inline-block; background: #FDF3DC; color: #96411F; border-radius: 999px; padding: 0 8px; font-size: 11px; font-weight: 700; }
.pool-row--through td:first-child { box-shadow: inset 4px 0 0 #2E7D4F; }

/* PKL mode (UPG-397) and the tie-breaker (UPG-396) */
.pkl-panel { border: 1px solid #D8CEBE; border-radius: 10px; padding: 12px; margin: 12px 0; background: #FAF4EA; }
.pkl-panel__title { font-size: 1rem; font-weight: 700; margin: 0 0 6px; }
.pkl-mat { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.pkl-mat__team { border: 2px solid transparent; border-radius: 8px; padding: 6px 8px; background: #fff; }
.pkl-mat__team--raiding { border-color: #1D4FB8; }
.pkl-mat__name { font-weight: 700; font-size: .9rem; }
.pkl-mat__dots { display: flex; gap: 4px; margin: 4px 0; }
.pkl-dot { width: 14px; height: 14px; border-radius: 50%; background: #E2D5C0; border: 1px solid #8A8178; }
.pkl-dot--on { background: #2E7D4F; border-color: #1F5A38; }
.pkl-mat__meta { font-size: .75rem; color: #4A3E33; }
.pkl-raid-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.pkl-badge { display: inline-block; font-size: .7rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: #EBF1FC; color: #163E93; }
.pkl-badge--dod { background: #C62828; color: #fff; animation: pkl-pulse 1s ease-in-out infinite alternate; }
.pkl-badge--super { background: #2E7D4F; color: #fff; }
@keyframes pkl-pulse { from { opacity: 1; } to { opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .pkl-badge--dod { animation: none; } }
.pkl-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 8px; }
.pkl-field { display: block; font-size: .8rem; margin-bottom: 8px; }
.pkl-check { font-size: .9rem; font-weight: 600; display: flex; gap: 6px; align-items: center; padding-bottom: 6px; }
.pkl-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.pkl-calls summary { font-size: .85rem; color: #1D4FB8; cursor: pointer; }
.pkl-calls__teams { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.pkl-shootout__score { font-size: 1.2rem; margin-bottom: 6px; }
.pkl-shootout__raids { font-size: .8rem; color: #4A3E33; margin-left: 6px; }
.pkl-needs, .pkl-done { font-weight: 600; }
.live-board__mat, .live-board__shootout { text-align: center; font-weight: 600; margin: 6px 0 0; }
.live-board__mat [data-dod] { color: #C62828; }
@media (max-width: 576px) { .pkl-calls__teams, .pkl-mat { grid-template-columns: 1fr; } }

/* A player's jersey number before their name (UPG-405) */
.jersey-no { display: inline-block; min-width: 2.2em; padding: 0 .35em; margin-right: .25em; border-radius: 4px;
  background: var(--brand-navy, #221C16); color: #fff; font-weight: 700; font-size: .85em; text-align: center;
  font-variant-numeric: tabular-nums; }
.live-scorer .live-board__logo { width: 48px; height: 48px; }

/* The fixtures page's pool chooser and each pool's teams (UPG-407) */
.pool-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pool-tabs .btn { min-width: 96px; min-height: 44px; font-weight: 600; }
.pool-teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 24px; margin-bottom: 8px; }
.pool-teams__list { margin: 0; padding-left: 0; list-style: none; }
.pool-teams__list li { padding: 6px 0; border-bottom: 1px solid var(--border-color, #e5e7eb); }
.pool-teams__list li:last-child { border-bottom: 0; }

/* The scorer's steps on the page (UPG-408) */
.live-howto { margin: 0 0 12px; padding: 10px 14px; border: 1px solid var(--border-color, #e5e7eb); border-radius: 8px; background: #FAF4EA; }
.live-howto summary { font-weight: 700; cursor: pointer; min-height: 32px; }
.live-howto ol { margin: 8px 0; padding-left: 1.3em; }
.live-howto li { margin-bottom: 6px; }

/* The players by jersey number, a column per team: tap them (UPG-417, UPG-420) */
.pkl-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.pkl-col { border: 2px solid #E2D5C0; border-radius: 10px; padding: 6px; background: #fff; min-width: 0; }
.pkl-col--raiding { border-color: #1D4FB8; }
.pkl-col--defending { border-color: #2E7D4F; }
.pkl-col__name { font-weight: 700; font-size: .85rem; margin-bottom: 6px; overflow-wrap: anywhere; }
.pkl-col__count { display: block; font-weight: 400; font-size: .75rem; color: #4A3E33; }
.pkl-col__tools { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.pkl-col__tools .btn { font-size: .72rem; padding: 4px 6px; min-height: 36px; }
.pkl-col__tools .btn.active { background: #1D4FB8; color: #fff; border-color: #1D4FB8; }
.pkl-chips { display: grid; grid-template-columns: 1fr; gap: 5px; }
.pkl-chips--small { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
.pkl-row-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #66584B; margin: 6px 0 3px; }
.pkl-player { display: flex; align-items: center; gap: 6px; min-height: 48px; width: 100%; padding: 4px 6px; border-radius: 8px;
  border: 2px solid #D8CEBE; background: #fff; text-align: left; font-size: .85rem; line-height: 1.1; touch-action: manipulation; }
.pkl-player__no { flex: 0 0 auto; min-width: 2.3em; padding: 3px 4px; border-radius: 6px; background: #221C16; color: #fff;
  font-size: 1rem; text-align: center; font-variant-numeric: tabular-nums; }
.pkl-player__name { min-width: 0; overflow-wrap: anywhere; }
.pkl-player.is-picked { border-color: #D9920F; background: #FDF3DC; box-shadow: 0 0 0 2px #D9920F; }
.pkl-col--raiding .pkl-player.is-picked { border-color: #1D4FB8; background: #EBF1FC; box-shadow: 0 0 0 2px #1D4FB8; }
.pkl-player.is-off { border-color: #C62828; box-shadow: 0 0 0 2px #C62828; }
.pkl-player--out { min-height: 40px; background: #fee2e2; border-color: #fca5a5; }
.pkl-player--out .pkl-player__no { background: #A12020; }
.pkl-player--bench { min-height: 40px; background: #F5ECDC; border-style: dashed; }
.pkl-chips--small .pkl-player { flex-direction: column; align-items: stretch; gap: 2px; text-align: center; font-size: .7rem; }
.pkl-lineup .pkl-chips { grid-template-columns: 1fr; }
.pkl-step { color: #3B3025; }
@media (max-width: 420px) {
  .pkl-cols { gap: 5px; }
  .pkl-col { padding: 4px; }
  .pkl-player { font-size: .78rem; gap: 4px; }
}

/* The players in and out by jersey number, who is raiding (UPG-421) */
.mat-now { text-align: center; margin: 10px 0 6px; font-size: 16px; }
.mat-now__label { color: #4A3E33; font-weight: 600; }
.mat-now__no { font-size: 22px; color: #1D4FB8; }
.mat-now__team { color: #66584B; font-size: 14px; }
.mat-now__dod { background: #C62828; color: #fff; border-radius: 4px; padding: 1px 6px; font-size: 12px; font-weight: 700; }
.mat-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mat-box { border: 2px solid #D8CEBE; border-radius: 10px; padding: 8px; background: #fff; }
.mat-box--raiding { border-color: #1D4FB8; box-shadow: 0 0 0 2px rgba(37, 99, 235, .15); }
.mat-box__team { font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.mat-box__label { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #4A3E33; margin-top: 4px; }
.mat-box__label--out { color: #A12020; }
.mat-box__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; min-height: 44px; }
.mat-box__chips--out { background: #fef2f2; border-radius: 8px; padding: 4px; }
.mat-box__none { color: #8A8178; font-size: 13px; align-self: center; }
.mat-chip { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 48px;
            padding: 4px 6px; border-radius: 8px; background: #EBF1FC; border: 1px solid #EBF1FC; line-height: 1.1; }
.mat-chip b { font-size: 22px; font-weight: 800; color: #163E93; }
.mat-chip small { font-size: 11px; color: #3B3025; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mat-chip--out { background: #fee2e2; border-color: #fca5a5; }
.mat-chip--out b { color: #A12020; }
.mat-chip--raiding { background: #1D4FB8; border-color: #1D4FB8; }
.mat-chip--raiding b, .mat-chip--raiding small { color: #fff; }
.live-log--feed { margin-top: 12px; }
.live-lineups__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.live-lineups__name { font-size: 15px; font-weight: 700; margin: 0 0 2px; }
.live-lineups__list { list-style: none; padding: 0; margin: 2px 0 8px; font-size: 14px; }
.live-mini { border: 1px solid #E2D5C0; border-radius: 10px; padding: 10px; margin-bottom: 10px; }
.live-mini__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; text-align: center; }
.live-mini__name { font-weight: 600; font-size: 14px; }
.live-mini__score { font-size: 34px; font-weight: 800; line-height: 1; }
.live-mini__middle { font-size: 13px; color: #4A3E33; }
.live-mini__clock { font-size: 18px; font-weight: 700; color: #17130F; }
.mat-host--tv .mat-now { font-size: 26px; color: #fff; }
.mat-host--tv .mat-now__label, .mat-host--tv .mat-now__team { color: #D8CEBE; }
.mat-host--tv .mat-box { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .25); }
.mat-host--tv .mat-box--raiding { border-color: #9DB8EC; }
.mat-host--tv .mat-box__team { color: #fff; font-size: 22px; }
.mat-host--tv .mat-box__label { color: #D8CEBE; font-size: 14px; }
.mat-host--tv .mat-chip { min-width: 64px; }
.mat-host--tv .mat-chip b { font-size: 34px; }
.mat-host--tv .mat-chip small { font-size: 13px; }
@media (max-width: 420px) {
  .mat-chip { min-width: 42px; padding: 3px 4px; }
  .mat-chip b { font-size: 19px; }
  .mat-chip small { font-size: 10px; max-width: 56px; }
}

/* The player of the match (UPG-422) */
.live-potm { text-align: center; font-size: 17px; margin: 10px 0 0; padding: 8px; border-radius: 10px; background: #fef9c3; }
.live-potm .fa-star { color: #D9920F; }

/* Find a player and the profile (UPG-424) */
.player-search { display: flex; gap: 8px; flex-wrap: wrap; }
.player-search .form-control { flex: 1 1 220px; }
.player-search--compact { margin: 0; }
.player-link { color: inherit; text-decoration: underline; text-decoration-color: rgba(0, 0, 0, .25); text-underline-offset: 2px; }
.player-link:hover { text-decoration-color: currentColor; }
.player-results { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.player-result { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border, #e3e6ea); border-radius: 10px; color: inherit; text-decoration: none; }
.player-result:hover { background: rgba(0, 0, 0, .03); }
.player-result__main { display: flex; flex-direction: column; }
.player-result__dot { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #F5ECDC; color: #66584B; }
.player-card { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.player-card__logo { width: 88px; height: 88px; object-fit: contain; }
.player-card__no { font-size: 2.2rem; font-weight: 800; line-height: 1; color: var(--brand-gold-700, #a07400); }
.player-card__name { font-size: 1.6rem; margin: 2px 0 0; }
.player-card__team { color: #66584B; }
.player-card__facts { display: flex; gap: 18px; flex-wrap: wrap; margin: 8px 0 0; }
.player-card__facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #66584B; font-weight: 600; }
.player-card__facts dd { margin: 0; font-weight: 700; }
.player-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.player-stat { border: 1px solid var(--border, #e3e6ea); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.player-stat b { font-size: 1.4rem; line-height: 1.1; }
.player-stat span { font-size: 12px; color: #66584B; }
.player-stats--small .player-stat b { font-size: 1.1rem; }
.player-awards { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.player-award { padding: 6px 10px; border-radius: 8px; background: #F5ECDC; }
.player-award--champion, .player-award--runner_up { background: #FDF3DC; }

/* The raid panel, one step at a time (UPG-432) */
.pkl-guide { border: 2px solid #1D4FB8; border-radius: 10px; background: #EBF1FC; padding: 10px 12px; margin: 0 0 10px; }
.pkl-guide__step { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  background: #1D4FB8; color: #fff; border-radius: 4px; padding: 2px 8px; margin-bottom: 4px; }
.pkl-guide__step--end { display: block; margin: 4px 0 6px; padding: 6px 10px; font-size: .8rem; }
.pkl-guide__text { font-size: 1.05rem; line-height: 1.35; color: #17130F; }
.pkl-guide__summary { margin-top: 6px; padding-top: 6px; border-top: 1px dashed #9DB8EC; font-size: .9rem; color: #17130F; }
.pkl-chips--mat { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.pkl-player { position: relative; }
.pkl-col--raiding .pkl-player.is-picked { background: #1D4FB8; border-color: #163E93; color: #fff; box-shadow: 0 0 0 3px #9DB8EC; }
.pkl-col--raiding .pkl-player.is-picked .pkl-player__no { background: #fff; color: #1D4FB8; }
.pkl-col--defending .pkl-player.is-picked { background: #D9920F; border-color: #96411F; color: #17130F; box-shadow: 0 0 0 3px #F2A516; }
.pkl-chips--mat .pkl-player.is-picked::after { margin-left: auto; font-size: .65rem; font-weight: 800; letter-spacing: .04em;
  padding: 2px 5px; border-radius: 4px; background: rgba(255, 255, 255, .85); color: #17130F; }
.pkl-col--raiding .pkl-chips--mat .pkl-player.is-picked::after { content: "RAIDER"; color: #1D4FB8; }
.pkl-col--defending .pkl-chips--mat .pkl-player.is-picked::after { content: "✓ TOUCHED"; color: #96411F; }
.pkl-check--bonus { margin: 2px 0 6px; padding: 8px 10px; border: 1px solid #D8CEBE; border-radius: 8px; background: #fff; }
.pkl-check--bonus input { width: 20px; height: 20px; }
.live-btn .pkl-hint { display: block; font-size: .72rem; font-weight: 400; opacity: .9; margin-top: 2px; }
@media (max-width: 576px) {
  .pkl-chips--mat { grid-template-columns: 1fr; }
  .pkl-guide__text { font-size: .95rem; }
  .pkl-chips--mat .pkl-player.is-picked::after { display: none; }
}
.pkl-buttons .live-btn { flex-direction: column; justify-content: center; }
.live-views { text-align: center; font-size: .9rem; color: #4A3E33; margin: 6px 0 4px; }

/* Under the match clock: the half's time left, the break's (UPG-439); the raid clock (UPG-413) */
.live-board__left { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: #F2A516; margin-top: 2px; }
.live-board__left.is-up { color: #fca5a5; }
.live-board__left[hidden], .live-board__raid[hidden] { display: none; }
.live-board__raid { display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 999px; background: #1D4FB8;
  font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.live-board__raid.is-over { background: #C62828; animation: pkl-pulse .6s ease-in-out infinite alternate; }
.live-board--big .live-board__left { font-size: 15px; }
.live-board--big .live-board__raid { font-size: 18px; }
.live-scorer .live-board__raid { display: none; }
.live-board__initials { display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: #B5532B; color: #FFFFFF; font-weight: 800; font-size: 26px; letter-spacing: .02em; }
.live-scorer .live-board__initials { font-size: 18px; }
.live-board__name { overflow-wrap: break-word; hyphens: auto; }

/* The scorer's raid clock: Space when the raider goes, Space when the raider is back */
.pkl-raidclock { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: #221C16; color: #fff; }
.pkl-raidclock__main { display: flex; align-items: baseline; gap: 10px; }
.pkl-raidclock__label { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; opacity: .8; }
.pkl-raidclock__time { font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.pkl-raidclock.is-running { background: #1D4FB8; }
.pkl-raidclock.is-over { background: #C62828; }
.pkl-raidclock__btn { min-height: 48px; font-weight: 700; background: #fff; color: #17130F; border: 0; }
.pkl-raidclock__btn kbd { margin-left: 6px; font-size: .7rem; background: #E2D5C0; color: #17130F; }

/* Before the start: the toss and the timings (UPG-438, UPG-439) */
.pkl-before { background: #FDF3DC; border-color: #F2A516; }
.pkl-before__step + .pkl-before__step { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #F2A516; }
.pkl-before__title { font-size: .95rem; font-weight: 700; margin: 0 0 6px; }
.pkl-buttons--two .btn { min-height: 52px; font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pkl-buttons--two .btn .pkl-hint { display: block; font-size: .72rem; font-weight: 400; }
.raid-secs { color: #66584B; font-size: .9em; font-variant-numeric: tabular-nums; }
.live-toss { text-align: center; font-weight: 700; margin: 8px 0 0; font-size: 1rem; }
.live-toss[hidden] { display: none; }
.live-views__live { display: inline-block; padding: 0 6px; border-radius: 4px; background: #C62828; color: #fff;
  font-size: .7rem; font-weight: 800; letter-spacing: .06em; vertical-align: 1px; }
.live-views strong { font-size: 1.05rem; color: #17130F; }

/* The toss, played once: a coin flips, the winner's logo, then what they chose */
.toss-show { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center;
  background: rgba(15, 29, 61, .92); color: #fff; cursor: pointer; animation: toss-fade .3s ease-out; }
.toss-show__card { text-align: center; padding: 24px; max-width: 92vw; }
.toss-show__eyebrow { font-size: clamp(14px, 2vw, 22px); text-transform: uppercase; letter-spacing: .2em; color: #F2A516; margin-bottom: 18px; }
.toss-show__coin { position: relative; width: clamp(120px, 22vw, 240px); height: clamp(120px, 22vw, 240px); margin: 0 auto;
  transform-style: preserve-3d; }
.toss-show__face { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: contain;
  background: #F2A516; border: 6px solid #D9920F; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); backface-visibility: hidden; }
.toss-show__face--back { transform: rotateY(180deg); }
.toss-show__initials { display: flex; align-items: center; justify-content: center; font-weight: 800; color: #221C16;
  font-size: clamp(32px, 6vw, 72px); }
.toss-show.is-flip .toss-show__coin { animation: toss-flip 1.8s cubic-bezier(.3, .6, .4, 1) forwards; }
.toss-show__won, .toss-show__chose { opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .5s; }
.toss-show__won { display: none; }
.toss-show.is-won .toss-show__coin { display: none; }
.toss-show.is-won .toss-show__won { display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: 1; transform: none;
  animation: toss-pop .6s ease-out; }
.toss-show__logo { width: clamp(120px, 22vw, 260px); height: clamp(120px, 22vw, 260px); object-fit: contain; border-radius: 50%;
  background: #fff; border: 6px solid #F2A516; }
.toss-show__logo.toss-show__initials { background: #F2A516; }
.toss-show__team { font-size: clamp(26px, 5vw, 64px); line-height: 1.1; overflow-wrap: break-word; }
.toss-show__line { font-size: clamp(18px, 3vw, 36px); color: #F2A516; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.toss-show.is-chose .toss-show__chose { opacity: 1; transform: none; }
.toss-show__chose { margin-top: 14px; font-size: clamp(18px, 3.2vw, 40px); font-weight: 700; }
@keyframes toss-flip { 0% { transform: translateY(0) rotateY(0); } 50% { transform: translateY(-60px) rotateY(900deg); }
  100% { transform: translateY(0) rotateY(1800deg); } }
@keyframes toss-pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }
@keyframes toss-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .toss-show, .toss-show.is-flip .toss-show__coin, .toss-show.is-won .toss-show__won { animation: none; }
  .live-board__raid.is-over { animation: none; }
}

/* Each team's players, in a drop-down (UPG-441) */
.team-details { margin-top: 16px; }
.team-details__team { border: 1px solid var(--border, #E2D5C0); border-radius: 12px; margin-bottom: 8px; background: var(--surface, #fff); }
.team-details__team > summary { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; list-style: none; }
.team-details__team > summary::-webkit-details-marker { display: none; }
.team-details__logo { width: 36px; height: 36px; object-fit: contain; border-radius: 50%; flex: none; font-size: 13px; }
.team-details__name { font-weight: 700; overflow-wrap: break-word; min-width: 0; }
.team-details__count { color: #66584B; font-size: .85rem; white-space: nowrap; }
.team-details__open { margin-left: auto; color: #1D4FB8; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.team-details__team[open] .fa-chevron-down { transform: rotate(180deg); }
.team-details__team > :not(summary) { margin: 0 12px 10px; }
.team-details__roles { display: flex; flex-wrap: wrap; gap: 6px; }
.team-details__role { background: #EBF1FC; color: #163E93; border-radius: 999px; padding: 1px 10px; font-size: .8rem; font-weight: 600; }
.team-details__jname { font-size: .72rem; font-weight: 700; letter-spacing: .05em; color: #4A3E33; background: #F5ECDC; border-radius: 4px; padding: 0 5px; }
.team-details__table td, .team-details__table th { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 420px) { .team-details__count { display: none; } }

/* Cards, the lobby, injury breaks (UPG-447 to UPG-452) */
.live-stop { text-align: center; font-weight: 700; margin: 6px auto 0; padding: 4px 12px; border-radius: 999px;
  background: #FDF3DC; color: #96411F; width: fit-content; max-width: 100%; }
.mat-box__label--card { color: #96411F; }
.mat-chip--card { position: relative; }
.mat-chip--yellow { background: #fef9c3; border-color: #facc15; }
.mat-chip--red { background: #fecaca; border-color: #ef4444; }
.mat-chip--red b { color: #A12020; }
.mat-chip__left { display: block; font-style: normal; font-size: 11px; font-weight: 700; color: #96411F; }
.pkl-player--card { min-height: 40px; flex-direction: column; }
.pkl-player--yellow { background: #fef9c3; border-color: #facc15; }
.pkl-player--red { background: #fecaca; border-color: #ef4444; }
.pkl-player__left { font-size: 11px; font-weight: 700; color: #96411F; }
.pkl-col__tools--cards { margin-top: 4px; }
.pkl-card-btn { border: 1px solid #D8CEBE; font-weight: 600; }
.pkl-card-btn--green { background: #E3F1E8; border-color: #2E7D4F; color: #1F5A38; }
.pkl-card-btn--yellow { background: #fef9c3; border-color: #eab308; color: #713f12; }
.pkl-card-btn--red { background: #fee2e2; border-color: #ef4444; color: #7f1d1d; }
.pkl-card-btn.active { outline: 3px solid #17130F; }
.pkl-tech { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.pkl-tech__label { font-size: 12px; font-weight: 600; color: #4A3E33; }
.pkl-cards select { width: auto; max-width: 100%; }

/* Who won, at full time (UPG-456) */
.live-result { text-align: center; font-size: 1.15rem; font-weight: 800; margin: 8px auto 0; padding: 6px 16px;
  border-radius: 999px; background: #E3F1E8; color: #1F5A38; width: fit-content; max-width: 100%; }
.live-result .fa-trophy { color: #D9920F; }

/* The raid clock's switch (UPG-464), the bonus buttons (UPG-465), the quick row beside each team (UPG-466) */
.pkl-raidclock .pkl-raidclock__switch { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.7); min-height: 40px; font-weight: 600; }
.pkl-raidclock .pkl-raidclock__switch:hover { background: rgba(255,255,255,.15); color: #fff; }
.pkl-raidclock.pkl-raidclock--off .pkl-raidclock__switch { background: #fff; color: #17130F; border: 1px solid #3B3025; }
.pkl-raidclock--off { background: #F5ECDC; color: #3B3025; border: 1px dashed #8A8178; }
.pkl-bonus { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 8px; }
.pkl-bonus-btn { min-height: 44px; font-weight: 700; border: 2px solid #D9920F; color: #854d0e; background: #fff; border-radius: 10px; }
.pkl-bonus-btn--missed { border-color: #8A8178; color: #4A3E33; font-weight: 600; }
.pkl-bonus-btn.active { background: #D9920F; color: #fff; }
.pkl-bonus-btn--missed.active { background: #4A3E33; border-color: #4A3E33; color: #fff; }
.pkl-bonus-btn:disabled { opacity: .45; }
.pkl-quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; padding: 8px; border-radius: 10px; background: #FAF4EA; border: 1px solid #E2D5C0; }
.pkl-quick__btn { min-height: 48px; flex: 1 1 auto; font-weight: 700; }
.pkl-quick .pkl-hint { display: block; font-size: .72rem; font-weight: 500; opacity: .85; }

/* Each team's time-outs as boxes beside its name (UPG-469) */
.pkl-timeouts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0 6px; font-size: .85rem; font-weight: 600; color: #4A3E33; }
.pkl-timeouts__label { text-transform: uppercase; letter-spacing: .05em; font-size: .72rem; }
.pkl-timeouts__half { display: inline-flex; align-items: center; gap: 4px; opacity: .6; }
.pkl-timeouts__half.is-now { opacity: 1; }
.pkl-to-box { width: 40px; height: 40px; border: 2px solid #66584B; border-radius: 6px; background: #fff; display: inline-flex; align-items: center; justify-content: center; padding: 0; font-size: .85rem; color: #fff; }
button.pkl-to-box { cursor: pointer; border-color: #1D4FB8; }
button.pkl-to-box:hover { background: #EBF1FC; }
.pkl-to-box.is-used { background: #4A3E33; border-color: #4A3E33; }
.pkl-to-box.is-later { border-style: dashed; }
.pkl-timeouts__left { margin-left: auto; color: #17130F; }

/* Full screen scoring (UPG-470): the score, the clock and the match's buttons at the
   top; the raids below; nothing else of the site */
.live-top__bar { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.live-top__focus { min-height: 44px; font-weight: 700; }
.live-focus-only { display: none; }
html.live-focus-on, html.live-focus-on body { overflow: hidden; }
.live-scorer.is-focus { position: fixed; inset: 0; z-index: 5000; overflow-y: auto; background: #FAF4EA;
  padding: 0 12px 24px; -webkit-overflow-scrolling: touch; }
.live-scorer.is-focus .live-top { position: sticky; top: 0; z-index: 5; background: #FAF4EA; padding: 8px 0 2px;
  box-shadow: 0 6px 12px -8px rgba(15, 23, 42, .35); margin-bottom: 10px; }
.live-scorer.is-focus .live-top__bar { position: absolute; top: 12px; right: 8px; z-index: 2; margin: 0; }
.live-scorer.is-focus .live-top__focus { min-height: 36px; padding: 4px 10px; font-size: .8rem; background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.5); }
.live-scorer.is-focus .live-board { padding: 8px 140px 8px 16px; gap: 8px; }
.live-scorer.is-focus .live-board__score { font-size: 56px; }
.live-scorer.is-focus .live-board__name { font-size: 18px; }
.live-scorer.is-focus .live-board__clock { font-size: 34px; }
.live-scorer.is-focus .live-board__logo { width: 36px; height: 36px; }
.live-scorer.is-focus .live-message { margin: 4px 0; min-height: 1.2em; }
.live-scorer.is-focus .live-phase { margin: 4px 0 6px; }
.live-scorer.is-focus .live-phase .btn { min-height: 44px; font-weight: 700; }
.live-scorer.is-focus .live-focus-only { display: inline-block; }
.live-scorer.is-focus [data-views], .live-scorer.is-focus [data-howto], .live-scorer.is-focus [data-final-score],
.live-scorer.is-focus [data-sheet-link], .live-scorer.is-focus .live-all { display: none !important; }
@media (max-width: 640px) {
  .live-scorer.is-focus .live-board { padding: 8px 8px 8px; }
  .live-scorer.is-focus .live-top__bar { position: static; justify-content: flex-end; margin-bottom: 4px; }
  .live-scorer.is-focus .live-top__focus { background: #17130F; border-color: #17130F; }
  .live-scorer.is-focus .live-phase { gap: 6px; }
  .live-scorer.is-focus .live-phase .btn { min-height: 40px; padding: 4px 10px; font-size: .82rem; }
  .live-scorer.is-focus .live-board__score { font-size: 44px; }
  .live-scorer.is-focus .live-board__clock { font-size: 26px; }
}
html.live-focus-on .mobile-nav-bar, html.live-focus-on .chat-fab { display: none !important; }
@media (max-width: 640px) {
  .pkl-quick { padding: 6px; gap: 5px; }
  .pkl-quick__btn { flex: 1 1 100%; min-height: 46px; font-size: .9rem; padding: 6px 8px; }
  .pkl-quick .pkl-hint { display: none; }
}

/* The time-outs beside the team's name, not a row of their own (UPG-471) */
.pkl-col__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 4px 10px; margin-bottom: 6px; }
.pkl-col__head .pkl-col__name { margin-bottom: 0; }
.pkl-col__head .pkl-timeouts { margin: 0; gap: 6px; font-size: .78rem; }
.pkl-col__head .pkl-timeouts__label { font-size: .66rem; }
.pkl-col__head .pkl-to-box { width: 32px; height: 32px; border-radius: 5px; }
.pkl-col__head .pkl-timeouts__left { margin-left: 2px; }

/* Full screen: the score and the clock smaller, always at the top; the teams under them (UPG-471) */
.live-scorer.is-focus .live-top { padding: 4px 0 0; margin-bottom: 6px; }
.live-scorer.is-focus .live-board { padding: 4px 130px 4px 12px; gap: 6px; border-radius: 10px; }
.live-scorer.is-focus .live-board__score { font-size: 34px; line-height: 1; }
.live-scorer.is-focus .live-board__name { font-size: 15px; }
.live-scorer.is-focus .live-board__clock { font-size: 24px; line-height: 1.1; }
.live-scorer.is-focus .live-board__phase { font-size: 11px; }
.live-scorer.is-focus .live-board__halves, .live-scorer.is-focus .live-board__logo { display: none; }
.live-scorer.is-focus .live-top__bar { top: 8px; }
.live-scorer.is-focus .live-message { margin: 2px 0; font-size: 13px; }
.live-scorer.is-focus .live-phase { margin: 2px 0 4px; gap: 6px; }
.live-scorer.is-focus .live-phase .btn { min-height: 38px; padding: 4px 12px; font-size: .85rem; }
@media (max-width: 640px) {
  .live-scorer.is-focus .live-board { padding: 4px 6px; }
  .live-scorer.is-focus .live-board__score { font-size: 30px; }
  .live-scorer.is-focus .live-board__clock { font-size: 20px; }
  .live-scorer.is-focus .live-top__bar { margin-bottom: 2px; }
  .live-scorer.is-focus .live-top__focus { min-height: 32px; font-size: .75rem; }
}
@media (max-width: 640px) {
  .pkl-col__head .pkl-timeouts { gap: 3px; flex-wrap: nowrap; }
  .pkl-col__head .pkl-timeouts__label, .pkl-col__head .pkl-timeouts__left { display: none; }
  .pkl-col__head .pkl-timeouts__half { gap: 2px; font-size: .7rem; }
  .pkl-col__head .pkl-to-box { width: 26px; height: 26px; }
}

/* Cricbuzz-style raid-by-raid commentary & voice summary bar */
.cric-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.cric-voice { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cric-feed { list-style: none; padding-left: 0; margin: 0; }
.cric-item { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-bottom: 1px solid #E2D5C0; background: #fff; }
.cric-item:first-child { border-top: 1px solid #E2D5C0; background: #FAF4EA; }
.cric-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: .76rem; color: #4A3E33; min-width: 112px; }
.cric-half { display: inline-block; padding: 1px 5px; border-radius: 4px; background: #E2D5C0; color: #17130F; font-weight: 700; }
.cric-raid { display: inline-block; padding: 1px 6px; border-radius: 4px; background: #17130F; color: #fff; font-weight: 700; }
.cric-clock { font-variant-numeric: tabular-nums; font-weight: 600; }
.cric-item__body { min-width: 0; line-height: 1.35; }
.cric-badge { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; background: #E2D5C0; color: #17130F; }
.cric-badge--super-raid, .cric-badge--all-out { background: #C62828; color: #fff; }
.cric-badge--super-tackle { background: #1F5A38; color: #fff; }
.cric-badge--do-or-die { background: #96411F; color: #fff; }
.cric-badge--bonus { background: #1D4FB8; color: #fff; }
.cric-badge--yellow-card { background: #facc15; color: #17130F; }
.cric-badge--red-card { background: #A12020; color: #fff; }
.cric-badge--green-card { background: #2E7D4F; color: #fff; }
.cric-item__score { font-weight: 800; font-size: .95rem; font-variant-numeric: tabular-nums; color: #17130F; padding: 2px 8px; border-radius: 6px; background: #F5ECDC; white-space: nowrap; }
.tv-board__note { margin: 6px auto 0; padding: 6px 12px; border-radius: 8px; background: rgba(250, 204, 21, .2); border: 1px solid rgba(250, 204, 21, .6); color: #fef08a; font-weight: 700; text-align: center; }
@media (max-width: 576px) {
  .cric-item { grid-template-columns: 1fr auto; gap: 4px 8px; }
  .cric-item__meta { grid-column: 1 / -1; min-width: 0; }
}

/* SP-15: the public match page, an official scorecard look ─────────────── */
.live-split { max-width: none; width: 100%; margin: 0; }
.live-section-title { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-muted, #4A3E33); margin: 22px 0 8px; display: flex; align-items: center; gap: 8px; }
.live-section-title::before { content: ''; width: 4px; height: 14px; border-radius: 2px; background: #B5532B; flex: none; }
.cric-head .live-section-title { margin: 0; }
.live-card { border: 1px solid var(--border, #E2D5C0); border-radius: 12px; background: var(--surface, #fff); overflow: hidden; }
.live-card .table { margin: 0; }
.live-card .table thead th { background: #221C16; color: #fff; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  border: 0; padding: 10px 12px; }
.live-card .table td, .live-card .table tbody th { padding: 10px 12px; vertical-align: middle; font-variant-numeric: tabular-nums; }
.live-card .table tbody tr:nth-child(even) { background: rgba(15, 29, 61, .03); }
.live-split td:not(:first-child), .live-split th:not(:first-child) { text-align: center; }
.live-split--players td:first-child { text-align: left; }
.live-team-under { display: none; font-size: .75rem; color: var(--text-muted, #66584B); }
@media (max-width: 576px) {
  .live-col-team { display: none; }
  .live-team-under { display: block; }
  .live-card .table td, .live-card .table tbody th { padding: 8px; }
}
.live-split th, .live-split td { overflow-wrap: normal; word-break: normal; }
.live-split--players td:first-child { overflow-wrap: anywhere; }

/* The line-ups: one card a team, jersey numbers in a column */
.live-lineups__team { border: 1px solid var(--border, #E2D5C0); border-radius: 12px; background: var(--surface, #fff); padding: 12px 14px; }
.live-lineups__name { font-size: 1rem; font-weight: 800; padding-bottom: 6px; margin-bottom: 6px; border-bottom: 2px solid #B5532B; }
.live-lineups__list li { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px dashed var(--border, #E2D5C0); }
.live-lineups__list li:last-child { border-bottom: 0; }
.live-lineups__list .jersey-no { min-width: 34px; text-align: center; }
.live-lineups .small.text-muted { text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; font-weight: 700; margin-top: 6px; }
@media (max-width: 576px) { .live-lineups__row { grid-template-columns: 1fr; } }

/* The scoreboard: a broadcast strip */
.live-board--big { background: #17130F; border-bottom: 4px solid #F2A516;
  box-shadow: 0 4px 12px rgba(23, 19, 15, .18); }
.live-board__initials { display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: #B5532B; color: #FFFFFF; font-weight: 800; font-size: 26px; }
.live-board__logo { border-radius: 50%; background: rgba(255, 255, 255, .06); }
.live-board__halves { min-height: 1em; letter-spacing: .02em; }
.live-board__clock:empty { display: none; }
.live-result { text-align: center; }
.live-empty { color: var(--text-muted, #66584B); background: var(--surface, #fff); border: 1px dashed var(--border, #D8CEBE);
  border-radius: 12px; padding: 12px 14px; margin: 0; font-size: .9rem; }
.cric-voice[hidden] { display: none; }

/* SP-22: a defender tapped as out of court in this raid; the toggles that are on */
.pkl-player.is-stepped { border: 2px dashed #96411F; background: #FDF3DC; color: #7A3316; box-shadow: none; }
.pkl-player.is-stepped::after { content: 'out of court'; display: block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
[data-stepout-toggle].active, [data-raider-out-toggle].active { background: #96411F; border-color: #7A3316; color: #fff; }
.pkl-field--check { display: flex; align-items: center; gap: 6px; }

/* SP-24: easier to use. Labels split "how did it end" (saves) from "also happened" (tap first);
   an empty raid is grey, not the orange of "raider out"; the last saved raid with Undo; time up */
.live-btn--none { background: #66584B; color: #fff; }
.pkl-quick__label { flex: 1 1 100%; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #3B3025; margin-top: 2px; }
.pkl-quick__label em { font-style: normal; font-weight: 600; text-transform: none; letter-spacing: 0; color: #66584B; margin-left: 4px; }
.pkl-quick__label[data-quick-label="also"] { margin-top: 6px; padding-top: 6px; border-top: 1px dashed #D8CEBE; }
.pkl-quick__btn--also { font-weight: 600; }
.pkl-last { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 6px; padding-top: 6px; border-top: 1px dashed #9DB8EC; font-size: .88rem; color: #17130F; }
.pkl-last__label { font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #2E7D4F; }
.pkl-last__text { flex: 1 1 12rem; min-width: 0; }
.pkl-last__undo { min-height: 44px; min-width: 64px; font-weight: 700; }
.pkl-timeup { margin-top: 6px; padding: 6px 10px; border-radius: 8px; background: #fef2f2; border: 1px solid #fecaca; color: #A12020; font-weight: 600; font-size: .92rem; }
@media (max-width: 600px) {
  .pkl-quick__label em { display: block; margin-left: 0; }
}

/* SP-29: a player's photo or initials, with the jersey number on a badge */
.pavatar { position: relative; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; background: #E2D5C0; color: #221C16;
  border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(27, 42, 74, .18); vertical-align: middle; }
.pavatar--sm { width: 32px; height: 32px; font-size: 12px; }
.pavatar--md { width: 40px; height: 40px; font-size: 14px; }
.pavatar--lg { width: 96px; height: 96px; font-size: 32px; }
.pavatar__img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.pavatar__initials { font-weight: 700; letter-spacing: .02em; line-height: 1; }
.pavatar__no { position: absolute; right: -6px; bottom: -4px; min-width: 22px; height: 22px; padding: 0 5px;
  border-radius: 11px; background: #221C16; color: #fff; font-size: 12px; font-weight: 700; line-height: 22px;
  text-align: center; font-variant-numeric: tabular-nums; border: 2px solid #fff; }
.pavatar--lg .pavatar__no { min-width: 34px; height: 34px; line-height: 30px; border-radius: 17px; font-size: 17px; right: -4px; bottom: 0; }
.jersey-no { font-size: .9em; min-width: 2.4em; }
[data-theme="dark"] .pavatar { background: #221C16; color: #F5ECDC; border-color: #221C16; }
.player-name-cell { display: flex; align-items: center; gap: 10px; }

/* SP-35: the published match report */
.match-report { margin-top: 16px; }
.match-report__body { background: var(--surface, #fff); border: 1px solid var(--border, #dfe3ea); border-left: 4px solid var(--primary, #0b3d91); border-radius: 8px; padding: 14px 16px; }
.match-report__headline { font-family: Georgia, 'Times New Roman', serif; font-size: 1.15rem; font-weight: 700; margin: 0 0 8px; line-height: 1.3; }
.match-report__body p { margin: 0 0 8px; line-height: 1.55; }
.match-report__body p:last-child { margin-bottom: 0; }

/* SP-62: player rankings */
.rank-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.rank-filter { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rank-filter .form-select { width: auto; min-width: 10rem; }

/* SP-51: commentary and live analysis */
.commentary-say { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.commentary-say .form-select { width: auto; }
.commentary-lines { list-style: none; padding-left: 0; margin: 0; }
.commentary-lines li { padding: 6px 0; border-bottom: 1px solid var(--border-color, #e5e7eb); }
.commentary-lines li:last-child { border-bottom: 0; }
.commentary-analysis, .commentary-summary { background: var(--surface-2, #FAF4EA); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; }
.commentary-summary { border-left: 3px solid #163E93; }

/* SP-65: the timekeeper's page: two big clocks, plain colours */
.timekeeper { display: grid; gap: 16px; }
.timekeeper__match, .timekeeper__raid { border: 1px solid #D8CEBE; border-radius: 6px; padding: 16px; background: #fff; text-align: center; }
.timekeeper__phase { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: #4A3E33; }
.timekeeper__clock { font-size: 3.5rem; font-weight: 700; font-variant-numeric: tabular-nums; color: #D00000; line-height: 1.1;
  font-family: "Courier New", ui-monospace, monospace; }
.timekeeper__clock--raid { font-size: 2.75rem; }
.timekeeper__left { min-height: 1.4em; color: #4A3E33; }
.timekeeper__left.is-up { color: #A12020; font-weight: 600; }
.timekeeper__buttons { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px 0 8px; }
.timekeeper__buttons .btn-lg { min-width: 12rem; min-height: 3.25rem; }
.timekeeper__raid.is-running { border-color: #1D4FB8; }
.timekeeper__raid.is-over { border-color: #A12020; background: #fef2f2; }
.pkl-raidclock--readonly .pkl-raidclock__note { font-size: .75rem; opacity: .85; }

/* SP-78: the timekeeper's match mode. Only the clocks, on black, the clock in
   red as on a match-hall scoreboard; the site's bars are hidden. */
.timekeeper__lock { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.timekeeper__locked { font-weight: 700; color: #FF1A1A; }
body.tk-locked { background: #000 !important; }
body.tk-locked .app-bar, body.tk-locked .page-head, body.tk-locked .site-footer, body.tk-locked .mobile-nav-bar,
body.tk-locked .lang-switch, body.tk-locked .skip-link, body.tk-locked [data-tk-lock], body.tk-locked [data-tk-lock-help],
body.tk-locked [data-no-keeper] { display: none !important; }
body.tk-locked .app-main { padding: 8px !important; max-width: none !important; }
body.tk-locked .timekeeper__match, body.tk-locked .timekeeper__raid { background: #0B0B0B; border-color: #3A0000; color: #fff; }
body.tk-locked .timekeeper__phase, body.tk-locked .timekeeper__left { color: #ddd; }
body.tk-locked .timekeeper__clock { color: #FF1A1A; font-size: min(26vw, 9rem); text-shadow: 0 0 18px rgba(255, 26, 26, .55); }
body.tk-locked .timekeeper__clock--raid { font-size: min(16vw, 5.5rem); }
body.tk-locked .live-message { color: #fff; }
.tk-cover { position: fixed; inset: 0; z-index: 3000; background: rgba(0, 0, 0, .94); color: #fff; display: flex;
  flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center; }
.tk-cover[hidden] { display: none; }
.tk-cover__text { font-size: 1.25rem; font-weight: 700; margin: 0; }

/* SP-79: the match in numbers on the public page. */
.match-analysis { margin: 16px 0; }
.match-analysis__stars { display: grid; gap: 4px; }
.match-analysis__stars div { display: flex; flex-wrap: wrap; gap: 0 8px; }
.match-analysis__stars dt { font-weight: 700; }
.match-analysis__stars dd { margin: 0; }

/* SP-94: the public match page as a score site lays it out ─────────────────
 * A white page, grey section bars, one deep green accent (the big screen has
 * the same). Red says the match is on, blue says how it ended. Scoped to the
 * public page (.live-watch); the scorer's page keeps its own look. */
body:has(.live-watch) { --mp-ink: #1B1F24; --mp-muted: #5B6470; --mp-line: #E1E4E8; --mp-bar: #F0F2F4;
  --mp-accent: #0B6E4F; --mp-live: #C62828; --mp-over: #1F4E9C; }
html:not([data-theme="dark"]) body:has(.live-watch) { background: #FFFFFF; }
.live-watch .live-board--big { background: #1B1F24; border-bottom: 3px solid var(--mp-accent); box-shadow: none; border-radius: 6px; }
.live-watch .live-board__initials { background: var(--mp-accent); }
.live-watch .live-dot { border-radius: 3px; }
/* The status lines: plain text, no pills */
.live-watch .live-result { background: none; border-radius: 0; padding: 0; margin: 10px auto 0; width: auto;
  color: var(--mp-over); font-size: 1.1rem; font-weight: 700; }
.live-watch .live-board__mat { color: var(--mp-live); }
.live-watch .live-toss { color: var(--mp-over); font-weight: 600; }
.live-watch .live-note { margin: 8px 0 0; padding: 6px 12px; border-left: 3px solid var(--mp-accent); background: var(--mp-bar);
  color: var(--mp-ink); font-size: .9rem; border-radius: 0; }
.live-watch .live-note[hidden] { display: none; }
.live-watch .live-potm { background: none; border-top: 1px solid var(--mp-line); border-bottom: 1px solid var(--mp-line);
  border-radius: 0; font-size: 1rem; }
.live-watch .live-potm .fa-star { color: var(--mp-accent); }
/* The section links, kept at the top while the page scrolls */
.match-tabs { position: sticky; top: 0; z-index: 20; display: flex; gap: 0; overflow-x: auto; margin: 14px 0 4px;
  background: #FFFFFF; border-bottom: 1px solid var(--mp-line); scrollbar-width: none; }
.match-tabs::-webkit-scrollbar { display: none; }
.match-tabs a { flex: none; padding: 10px 16px; color: var(--mp-muted); font-weight: 600; font-size: .92rem; text-decoration: none;
  border-bottom: 3px solid transparent; }
.match-tabs a:hover, .match-tabs a:focus-visible { color: var(--mp-ink); }
.match-tabs a:first-child { color: var(--mp-accent); border-bottom-color: var(--mp-accent); }
[data-theme="dark"] .match-tabs { background: var(--surface, #17130F); }
.live-watch [id^="match-"] { scroll-margin-top: 52px; }
/* Section headings as grey bars */
.live-watch .live-section-title { background: var(--mp-bar); color: var(--mp-ink); padding: 8px 12px; margin: 22px 0 0;
  border-left: 3px solid var(--mp-accent); font-size: .78rem; }
.live-watch .live-section-title::before { display: none; }
.live-watch .cric-head { background: var(--mp-bar); border-left: 3px solid var(--mp-accent); padding: 4px 8px 4px 0; margin: 22px 0 0; }
.live-watch .cric-head .live-section-title { background: none; border-left: 0; margin: 0; }
[data-theme="dark"] .live-watch .live-section-title, [data-theme="dark"] .live-watch .cric-head { background: rgba(255, 255, 255, .06); color: inherit; }
.live-watch .live-card { border-radius: 0; border-color: var(--mp-line); border-top: 0; }
.live-watch .live-card .table thead th { background: #FFFFFF; color: var(--mp-muted); border-bottom: 1px solid var(--mp-line); }
[data-theme="dark"] .live-watch .live-card .table thead th { background: transparent; color: inherit; }
/* Commentary: the raid and the clock on the left, the sentence, the score on the right */
.live-watch .cric-item { grid-template-columns: 6.5em minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 12px 8px;
  background: transparent; border-bottom: 1px solid var(--mp-line); }
.live-watch .cric-item:first-child { background: transparent; border-top: 0; }
.live-watch .cric-item__meta { flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; color: var(--mp-muted); font-size: .8rem; }
.live-watch .cric-raid { background: none; color: var(--mp-ink); padding: 0; font-size: .95rem; }
.live-watch .cric-half { background: none; padding: 0; color: var(--mp-muted); font-weight: 600; }
.live-watch .cric-item__body { font-size: .98rem; color: var(--mp-ink); }
.live-watch .cric-badge { background: none; border: 1px solid currentColor; border-radius: 3px; color: var(--mp-muted); }
.live-watch .cric-badge--super-raid, .live-watch .cric-badge--super-tackle, .live-watch .cric-badge--all-out,
.live-watch .cric-badge--do-or-die { color: var(--mp-live); }
.live-watch .cric-badge--bonus { color: var(--mp-accent); }
.live-watch .cric-item__score { background: none; padding: 0; font-size: 1rem; }
[data-theme="dark"] .live-watch .cric-raid, [data-theme="dark"] .live-watch .cric-item__body,
[data-theme="dark"] .live-watch .cric-item__score { color: inherit; }
@media (max-width: 576px) {
  .live-watch .cric-item { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; }
  .live-watch .cric-item__meta { flex-direction: row; gap: 8px; }
}
.live-watch .live-lineups__name { border-bottom-color: var(--mp-accent); }
.live-watch .match-analysis .table thead th { background: #FFFFFF; color: var(--mp-muted); }
[data-theme="dark"] .live-watch .match-analysis .table thead th { background: transparent; color: inherit; }
/* SP-94: where a half ended, a summary bar in the commentary */
.cric-break { list-style: none; padding: 8px 10px; font-weight: 700; font-size: .92rem; background: #F0F2F4; color: #1B1F24;
  border-left: 3px solid #0B6E4F; border-bottom: 1px solid #E1E4E8; }
[data-theme="dark"] .cric-break { background: rgba(255, 255, 255, .06); color: inherit; }
