/* ETAP 34D — wyłącznie warstwa wizualna centrum meczowego. Bez zmian JS i API. */
#game:has(#nav button[data-page="match"].active) #view { --match-gold:#e9bd69; --match-line:rgba(191,211,236,.14); }
#game #view .live-overview { position:relative; overflow:hidden; border:1px solid rgba(233,189,105,.24); border-radius:18px; background:linear-gradient(145deg,#14263b 0%,#0d1728 65%,#101e31 100%); box-shadow:0 16px 40px rgba(0,0,0,.24); padding:clamp(16px,2.4vw,30px); margin-bottom:20px; }
#game #view .live-overview:before {content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,transparent,#e9bd69,transparent);pointer-events:none}
#game #view .live-header {display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:18px}
#game #view .live-heading-group {display:flex;align-items:center;gap:20px;flex-wrap:wrap}
#game #view .live-heat-counter {display:flex;align-items:center;gap:10px;color:#b8c9dc;font-size:12px}
#game #view .live-heat-counter strong {font-size:16px;color:#f2f5fc;font-variant-numeric:tabular-nums}
#game #view .live-state {display:inline-flex;align-items:center;padding:7px 13px;border:1px solid rgba(233,189,105,.28);border-radius:999px;color:#f3ce84;background:rgba(233,189,105,.09);font-weight:800;font-size:12px;letter-spacing:.07em}
#game #view .live-state.live-pulse {color:#ffb6ae;border-color:rgba(255,119,105,.36);background:rgba(255,119,105,.10)}
#game #view .live-match-scoreboard {display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:clamp(12px,3vw,38px);align-items:center;text-align:center;padding:22px 10px 10px;border-top:1px solid var(--match-line,rgba(191,211,236,.14))}
#game #view .live-match-scoreboard>div:nth-child(1) {text-align:right;min-width:0}
#game #view .live-match-scoreboard>div:nth-child(3) {text-align:left;min-width:0}
#game #view .live-match-scoreboard h3 {font-size:clamp(16px,2.2vw,26px);line-height:1.2;color:#f4f7fd;margin:7px 0;overflow-wrap:anywhere}
#game #view .live-match-scoreboard small {color:#9fb3ca;letter-spacing:.11em;font-size:11px;font-weight:700}
#game #view .live-score {white-space:nowrap;font-size:clamp(32px,5vw,68px);font-weight:900;letter-spacing:-.055em;line-height:1.1;color:#fff;font-variant-numeric:tabular-nums;text-shadow:0 4px 24px rgba(0,0,0,.25)}
#game #view .live-score span {color:#e9bd69;margin:0 .13em}
#game #view .live-match-conditions-row {grid-column:1/-1;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:16px;padding-top:17px;border-top:1px solid var(--match-line,rgba(191,211,236,.14))}
#game #view .live-conditions {display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#game #view .live-condition-weather,#game #view .live-condition-track,#game #view .live-attendance {border:1px solid rgba(191,211,236,.14);border-radius:12px;background:rgba(255,255,255,.035);padding:10px 13px}
#game #view .live-attendance {display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#game #view .live-attendance strong {color:#e9bd69}
#game #view .heat-entry {border-radius:9px;transition:background .15s ease}
#game #view .match-row:hover {background:rgba(233,189,105,.09)}
#game #view .tactic-next-heat {border-radius:13px;border:1px solid rgba(233,189,105,.2);padding:14px;background:rgba(233,189,105,.045)}
@media(max-width:650px){#game #view .live-match-scoreboard{gap:8px;padding:18px 0 4px}#game #view .live-score{font-size:clamp(29px,8vw,45px)}#game #view .live-match-scoreboard h3{font-size:clamp(13px,3.6vw,18px)}#game #view .live-match-scoreboard small{font-size:9px}#game #view .live-match-conditions-row{gap:8px}#game #view .live-overview{padding:15px}}
@media(prefers-reduced-motion:reduce){#game #view .heat-entry{transition:none}}

/* ETAP 34D.1 — czytelny nagłówek protokołu każdego biegu. Tylko CSS. */
#game #view .heat-protocol-head {
  display:grid; grid-template-columns:minmax(105px,1fr) minmax(0,2fr);
  align-items:center; gap:16px; padding:15px 19px;
  background:linear-gradient(105deg,#243a52,#1b2c42);
  border-bottom:1px solid rgba(233,189,105,.17);
}
#game #view .heat-protocol-head > strong {
  display:inline-flex; align-items:center; justify-self:start;
  padding:8px 13px; border-radius:9px;
  color:#f5d18b; background:rgba(233,189,105,.10);
  border:1px solid rgba(233,189,105,.25);
  font-size:14px; letter-spacing:.02em; white-space:nowrap;
}
#game #view .heat-protocol-clubs {
  display:grid; grid-template-columns:auto minmax(105px,1fr) minmax(105px,1fr) auto;
  align-items:center; justify-self:end; gap:12px; min-width:0;
}
#game #view .heat-protocol-home,
#game #view .heat-protocol-away {font-size:10px;letter-spacing:.08em;font-weight:800;color:#a9bbcf}
#game #view .heat-protocol-score-pair {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:5px; min-width:0; padding:9px 13px;
  border:1px solid rgba(174,198,227,.16); border-radius:10px;
  background:rgba(8,18,32,.36); text-align:center;
}
#game #view .heat-protocol-score-pair small {
  display:block; font-size:10px; font-weight:750; line-height:1.3;
  letter-spacing:.08em; text-transform:uppercase; color:#afc1d6; white-space:nowrap;
}
#game #view .heat-protocol-score-pair b {
  display:block; font-size:clamp(20px,2.2vw,27px); line-height:1.15;
  font-weight:850; color:#fff; font-variant-numeric:tabular-nums; white-space:nowrap;
}
#game #view .heat-protocol-score-pair:nth-of-type(3) b {color:#f1c878}
@media(max-width:700px){
  #game #view .heat-protocol-head{grid-template-columns:1fr;gap:10px;padding:12px}
  #game #view .heat-protocol-clubs{width:100%;justify-self:stretch;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
  #game #view .heat-protocol-home,#game #view .heat-protocol-away{display:none}
  #game #view .heat-protocol-score-pair{padding:9px 5px}
  #game #view .heat-protocol-score-pair small{font-size:9px}
}

/* ETAP 34D.2 — jednolita prezentacja meczu w każdym widoku. */
#game #view .heat-protocol-head, .heat-protocol-head {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 20px;padding:15px 18px;background:linear-gradient(110deg,#263c55,#1a2b41);border-bottom:1px solid rgba(233,189,105,.22)}
#game #view .heat-protocol-head>strong,.heat-protocol-head>strong {display:inline-flex;align-items:center;padding:7px 12px;border-radius:8px;background:rgba(233,189,105,.10);border:1px solid rgba(233,189,105,.22);color:#f6cf81;font-size:15px;white-space:nowrap}
#game #view .heat-protocol-clubs,.heat-protocol-clubs {display:grid;grid-template-columns:minmax(116px,1fr) minmax(116px,1fr);gap:10px;align-items:stretch;min-width:0;max-width:100%;font-variant-numeric:tabular-nums}
#game #view .heat-protocol-home,#game #view .heat-protocol-away,.heat-protocol-home,.heat-protocol-away {display:none}
#game #view .heat-protocol-score-pair,.heat-protocol-score-pair {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:9px 14px;min-width:0;border:1px solid #40546b;border-radius:10px;background:#142337;text-align:center}
#game #view .heat-protocol-score-pair small,.heat-protocol-score-pair small {display:block;white-space:nowrap;font-size:10px;line-height:1.3;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#b7c8d9}
#game #view .heat-protocol-score-pair b,.heat-protocol-score-pair b {display:block;white-space:nowrap;font-size:clamp(21px,2vw,28px);line-height:1.2;font-weight:850;color:#f6f8fc;font-variant-numeric:tabular-nums}
#game #view .heat-protocol-score-pair:nth-of-type(3) b,.heat-protocol-score-pair:nth-of-type(3) b {color:#f5c979}
/* Raporty i podsumowania dostępne także poza Mecz LIVE. */
#game #view .mc-report,.mc-report {border:1px solid #344b63;border-radius:15px;background:linear-gradient(145deg,#1b2e44,#132338);padding:clamp(14px,2vw,22px);overflow:hidden}
#game #view .mc-report-heading,.mc-report-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
#game #view .mc-scoreboard,.mc-scoreboard {display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:clamp(8px,2vw,20px);align-items:center;margin:18px 0;padding:18px 8px;background:rgba(8,19,34,.35);border:1px solid rgba(180,204,230,.14);border-radius:12px;text-align:center}
#game #view .mc-scoreboard>span,.mc-scoreboard>span {min-width:0;overflow-wrap:anywhere;font-size:clamp(12px,1.4vw,17px);font-weight:750;color:#e6edf7}
#game #view .mc-scoreboard>strong,.mc-scoreboard>strong {font-size:clamp(24px,3.4vw,40px);white-space:nowrap;font-weight:900;color:#f5c979;font-variant-numeric:tabular-nums}
#game #view .mc-heat,.mc-heat {display:grid;gap:10px;padding:13px 12px;margin:8px 0;border:1px solid #354b63;border-radius:10px;background:#192b40}
#game #view .mc-heat>b,.mc-heat>b {display:flex;align-items:center;justify-content:space-between;gap:12px;color:#f2f5fb;font-size:14px}
#game #view .mc-heat-score,.mc-heat-score {margin-left:auto;padding:5px 10px;border-radius:7px;background:rgba(233,189,105,.12);color:#f5c979;font-size:17px;font-variant-numeric:tabular-nums}
#game #view .mc-heat-participants,.mc-heat-participants {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 14px}
#game #view .mc-heat-participant,.mc-heat-participant {display:inline-flex;align-items:center;gap:7px;min-width:0;font-size:12px}
#game #view .mc-match-meta,.mc-match-meta {display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;color:#aebed1;font-size:12px}
#game #view .dash-fixture,.dash-fixture {display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:12px;align-items:center;text-align:center}
#game #view .dash-fixture>strong,.dash-fixture>strong {font-size:clamp(21px,3vw,32px);font-variant-numeric:tabular-nums;color:#f5c979;white-space:nowrap}
@media(max-width:660px){#game #view .heat-protocol-head,.heat-protocol-head{display:grid;grid-template-columns:1fr;gap:10px;padding:12px}#game #view .heat-protocol-clubs,.heat-protocol-clubs{width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#game #view .heat-protocol-score-pair,.heat-protocol-score-pair{padding:9px 5px}#game #view .heat-protocol-score-pair small,.heat-protocol-score-pair small{font-size:9px}#game #view .mc-heat-participants,.mc-heat-participants{grid-template-columns:1fr}#game #view .mc-scoreboard,.mc-scoreboard{gap:6px;padding:12px 5px}}
