:root {
  color-scheme: dark;
  --bg: #050505;
  --surface: #0b0b0c;
  --panel: #121214;
  --panel-strong: #18181b;
  --line: #2a2a30;
  --line-soft: #202024;
  --text: #f4f4f5;
  --muted: #9a9aa2;
  --muted-2: #707078;
  --accent: #ff5a00;
  --accent-soft: rgba(255, 90, 0, 0.16);
  --danger: #ff4d4d;
  --warn: #ffb020;
  --font-display: "Bahnschrift", "DIN Alternate", "DIN Condensed", "Roboto Condensed", "Arial Narrow", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
}

.shell {
  width: min(1080px, calc(100% - 28px));
  margin: 0 auto;
  padding: 0 0 28px;
}

body.liveMode .shell {
  width: 100%;
  padding-bottom: 0;
}

body.leagueMode .shell {
  width: 100%;
  padding-bottom: 0;
}

body.liveMode.layoutLandscape .shell {
  width: 100%;
  padding-bottom: 0;
}

body.portraitMode .shell {
  width: min(760px, calc(100% - 24px));
}

body.portraitMode.liveMode .shell {
  width: 100%;
}

body.portraitMode.leagueMode .shell {
  width: 100%;
}

.topbar {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: calc(100vw - 24px);
  pointer-events: none;
}

.topControls {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: auto;
}

.topMenu {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  display: grid;
  gap: 8px;
  min-width: 230px;
  border: 1px solid var(--line);
  padding: 8px;
  background: rgba(8, 8, 9, 0.96);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.36);
}

.visuallyHidden {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.viewToggle {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  min-height: 34px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.viewButton {
  min-height: 32px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}

.viewButton.active {
  background: var(--accent);
  color: #130700;
}

.eyebrow,
.toolbar span,
.loginForm span,
.managerStats span {
  display: block;
  margin: 0 0 5px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1;
  letter-spacing: 0;
}

.panel,
.managerCard {
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 0;
  background: var(--muted-2);
  box-shadow: 0 0 14px currentColor;
}

.dot.good {
  color: var(--accent);
  background: var(--accent);
}

.dot.warn {
  color: var(--warn);
  background: var(--warn);
}

.dot.bad {
  color: var(--danger);
  background: var(--danger);
}

.loginPanel {
  max-width: 620px;
  padding: 16px;
}

.loginForm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0 12px;
  background: #09090a;
  color: var(--text);
  font: inherit;
  font-weight: 750;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: inset 0 -2px 0 var(--accent);
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 0;
  padding: 0 16px;
  background: var(--accent);
  color: #130700;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

button.secondary {
  border: 1px solid var(--line);
  background: #0a0a0b;
  color: var(--text);
}

button.secondary.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #080808;
}

button:disabled,
select:disabled {
  cursor: wait;
  opacity: 0.65;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto auto auto;
  gap: 12px;
  align-items: end;
  padding: 12px;
  background: transparent;
}

.settingsPanel {
  margin-bottom: 12px;
}

.toolbar strong {
  display: block;
  min-height: 42px;
  padding-top: 10px;
  color: var(--text);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.managerGrid {
  display: block;
  min-height: 100vh;
  background: #050505;
}

.livePanel {
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 0;
  min-height: 0;
}

.livePanel.preMatchMode {
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100vh;
  overflow: hidden;
}

.liveHero {
  display: grid;
  position: relative;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: calc(100vh - 104px);
  overflow: hidden;
  padding: clamp(22px, 3vw, 44px);
  background-color: #0a0a0b;
  background-image: radial-gradient(rgba(255, 255, 255, 0.13) 2px, transparent 2px);
  background-size: 22px 22px;
}

.livePanel.preMatchMode .liveHero {
  min-height: 0;
}

.liveHeroLeagueName {
  position: absolute;
  top: clamp(18px, 1.8vw, 34px);
  right: clamp(18px, 2vw, 40px);
  z-index: 2;
  max-width: min(48vw, 620px);
  overflow: hidden;
  color: #ffffff;
  font-size: clamp(16px, 1.5vw, 30px);
  font-weight: 950;
  line-height: 1;
  text-align: right;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.liveEyebrow {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: clamp(18px, 1.7vw, 30px);
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nextMatch {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(560px, 1.5fr) minmax(220px, 0.8fr);
  gap: clamp(36px, 5vw, 110px);
  align-items: center;
  justify-items: center;
  min-height: 0;
  width: 100%;
}

.teamBlock {
  display: grid;
  justify-items: center;
  gap: 24px;
  min-width: 0;
  width: 100%;
  text-align: center;
}

.teamBlock strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--text);
  font-size: clamp(34px, 5vw, 86px);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teamLogo,
.teamLogoFallback {
  display: grid;
  place-items: center;
  width: clamp(210px, 15vw, 340px);
  height: clamp(210px, 15vw, 340px);
  border: 0;
  background: transparent;
  color: var(--text);
  object-fit: contain;
  font-size: clamp(42px, 6vw, 86px);
  font-weight: 950;
}

.countdownBlock {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 100%;
  max-width: 940px;
  min-width: 0;
  padding: clamp(22px, 3vw, 44px) 0;
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  text-align: center;
  z-index: 1;
}

.matchDate,
.countdownBlock span {
  color: var(--muted);
  font-size: clamp(18px, 1.8vw, 30px);
  font-weight: 900;
  text-transform: uppercase;
}

.countdownValue {
  color: var(--text);
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(74px, 7.5vw, 150px);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 0.95;
}

.matchdayCountdownHero {
  display: grid;
  gap: 20px;
  padding: clamp(16px, 2.5vw, 36px);
  background: radial-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px) 0 0 / 22px 22px #0a0a0b;
}

.matchdayCountdownHeading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.matchdayCountdownHeading > strong {
  text-align: right;
  overflow-wrap: anywhere;
}

.matchdayCountdownHero .nextMatch {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(8px, 2vw, 30px);
}

.matchdayCountdownHero .teamBlock {
  gap: 8px;
}

.matchdayCountdownHero .teamLogo {
  width: clamp(48px, 7vw, 110px);
  height: clamp(48px, 7vw, 110px);
}

.matchdayCountdownHero .teamBlock strong {
  font-size: clamp(13px, 2vw, 30px);
}

.matchdayCountdownHero .countdownBlock {
  padding: 12px 0;
}

.matchdayCountdownHero .countdownValue {
  font-size: clamp(24px, 4.5vw, 72px);
}

.matchdayCountdownHero .countdownBlock span {
  font-size: clamp(10px, 1.3vw, 20px);
}

.liveGame {
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  row-gap: clamp(6px, 0.7vw, 12px);
  min-height: 0;
  padding: 0;
  overflow-x: hidden;
  background: #080809;
}

.liveGame.hasParallelMatches {
  grid-template-rows: auto auto auto auto;
}

body.liveMode.layoutLandscape .liveGame {
  min-height: 0;
  padding: 0;
}

.liveScoreboard {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(160px, 0.45fr) minmax(220px, 0.42fr) minmax(160px, 0.45fr);
  gap: clamp(8px, 1vw, 20px);
  align-items: center;
  width: 100vw;
  height: clamp(260px, 19.3vw, 381px);
  min-height: clamp(260px, 19.3vw, 381px);
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  border-bottom: 1px solid var(--line);
  padding: 0 clamp(12px, 1.2vw, 20px);
  background-color: #080809;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 2px, transparent 2px);
  background-size: 22px 22px;
}

body:is(.liveMode, .leagueMode).layoutLandscape .liveScoreboard {
  width: 100%;
  height: clamp(208px, 15.45vw, 305px);
  min-height: clamp(208px, 15.45vw, 305px);
  margin-right: 0;
  margin-left: 0;
}

body.liveMode.layoutLandscape .scoreValue {
  min-width: clamp(190px, 16.5vw, 350px);
  font-size: clamp(98px, 9vw, 182px);
}

body.liveMode.layoutLandscape .gameClock {
  min-width: clamp(138px, 10.7vw, 226px);
  font-size: clamp(34px, 3.25vw, 62px);
}

.liveScoreDivider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  padding: 5px clamp(12px, 2vw, 32px);
  place-items: center;
  width: 100vw;
  min-height: clamp(30px, 2.6vw, 48px);
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  background: var(--accent);
  color: #050505;
  font-size: clamp(20px, 1.9vw, 36px);
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.dividerMatchday,
.dividerLeague {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75em;
  letter-spacing: 0;
}

.dividerMatchday { justify-self: start; }
.dividerLeague { justify-self: end; }

body:is(.liveMode, .leagueMode).layoutLandscape .liveScoreDivider {
  width: 100%;
  min-height: clamp(20px, 1.7vw, 31px);
  margin-right: 0;
  margin-left: 0;
  font-size: clamp(14px, 1.25vw, 23px);
}

.liveStinger {
  position: fixed;
  inset: 0;
  z-index: 120;
  overflow: hidden;
  pointer-events: none;
}

.liveStinger::before,
.liveStinger::after,
.liveStinger span {
  content: "";
  position: absolute;
  top: -12vh;
  bottom: -12vh;
  left: 0;
  display: block;
  clip-path: polygon(0 0, calc(100% - 16vw) 0, 100% 100%, 16vw 100%);
  transform: translateX(-165vw);
  animation: liveStingerWipe 1180ms cubic-bezier(0.76, 0, 0.18, 1) both;
}

.liveStinger span {
  width: 158vw;
  background: var(--accent);
}

.liveStinger::before {
  width: 166vw;
  background: #050505;
  animation-delay: 70ms;
  opacity: 0.92;
}

.liveStinger::after {
  width: 150vw;
  background: rgba(255, 255, 255, 0.88);
  animation-delay: 125ms;
}

.scoreNotch {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 3;
  display: inline-grid;
  grid-template-columns: max-content max-content;
  gap: clamp(10px, 1vw, 18px);
  align-items: center;
  min-height: clamp(32px, 2.7vw, 54px);
  padding: 0 clamp(18px, 1.8vw, 34px);
  clip-path: polygon(0 0, 100% 0, 90% 100%, 10% 100%);
  background: #242428;
  color: #ffffff;
  font-size: clamp(13px, 1vw, 19px);
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scoreNotch span {
  color: #ff5a00;
  font-size: 0.86em;
  font-weight: 950;
}

.scoreTeam {
  position: relative;
  min-width: 0;
  height: 100%;
}

.scoreTeam strong {
  display: none;
  max-width: 100%;
  overflow: hidden;
  color: var(--text);
  font-size: clamp(22px, 2.6vw, 46px);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scoreTeamLogo,
.scoreTeamLogo.teamLogoFallback {
  position: absolute;
  top: 0;
  display: grid;
  place-items: center;
  width: clamp(598px, 43.7vw, 943px);
  height: clamp(598px, 43.7vw, 943px);
  border: 0;
  background: transparent;
  color: var(--text);
  object-fit: contain;
  object-position: center top;
  font-size: clamp(58px, 7vw, 128px);
  font-weight: 950;
  opacity: 0.95;
}

.scoreTeamHome .scoreTeamLogo,
.scoreTeamHome .scoreTeamLogo.teamLogoFallback {
  left: 0;
  transform: translate(-26%, -19%);
}

.scoreTeamAway .scoreTeamLogo,
.scoreTeamAway .scoreTeamLogo.teamLogoFallback {
  right: 0;
  transform: translate(26%, -19%);
}

.scoreTeamHome strong,
.scoreTeamAway strong {
  position: absolute;
  bottom: 8px;
  z-index: 1;
  text-shadow: 0 2px 18px #000;
}

.scoreCenter {
  display: grid;
  position: relative;
  justify-items: center;
  gap: clamp(2px, 0.35vw, 8px);
  min-width: 0;
  margin-top: clamp(22px, 2.2vw, 44px);
  padding: 0 clamp(18px, 2vw, 42px);
  text-align: center;
}

.scoreCenter::before {
  display: none;
}

.scoreCenter::after {
  display: none;
}

.scoreCenter .liveEyebrow {
  margin: 0;
  font-size: clamp(16px, 1.4vw, 26px);
}

.scoreValue {
  display: grid;
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0.8em, 1fr) 0.28em minmax(0.8em, 1fr);
  align-items: center;
  justify-items: center;
  min-width: clamp(230px, 20vw, 420px);
  color: var(--text);
  font-size: clamp(124px, 11.2vw, 226px);
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  line-height: 0.82;
  letter-spacing: 0;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.9),
    0 12px 36px rgba(0, 0, 0, 0.62);
}

.scoreDigit,
.scoreSeparator {
  display: block;
  width: 100%;
  text-align: center;
}

.scoreSeparator {
  transform: translateY(-0.06em);
}

.gameClock {
  --clock-slant: clamp(14px, 1.3vw, 28px);
  display: grid;
  position: relative;
  z-index: 1;
  place-items: center;
  min-width: clamp(170px, 13vw, 270px);
  padding: clamp(4px, 0.45vw, 8px) clamp(10px, 0.9vw, 18px);
  clip-path: polygon(var(--clock-slant) 0, 100% 0, calc(100% - var(--clock-slant)) 100%, 0 100%);
  background: #ff5a00;
  color: #050505;
  font-size: clamp(42px, 4vw, 78px);
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  line-height: 0.95;
  text-shadow: none;
}

.scoreFlashLayer {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  background: #48c94f;
  color: #050505;
  animation: flashWipe 620ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  clip-path: inset(0 100% 0 0);
}

.scoreFlashLayer.scoreFlashNegative {
  background: #a91522;
  color: #ffffff;
}

.scoreFlashLayer.flashExit {
  animation: flashWipeOut 620ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  clip-path: inset(0 0 0 0);
}

.scoreFlashLayer::before {
  position: absolute;
  right: 0;
  bottom: -46%;
  left: 0;
  z-index: 0;
  height: 160%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900' preserveAspectRatio='none'%3E%3Cpolyline points='-140 780 800 360 1740 780' fill='none' stroke='%2300873e' stroke-width='138' stroke-linecap='square' stroke-linejoin='miter' opacity='.78'/%3E%3Cpolyline points='-140 540 800 120 1740 540' fill='none' stroke='%2300873e' stroke-width='138' stroke-linecap='square' stroke-linejoin='miter' opacity='.54'/%3E%3Cpolyline points='-140 300 800 -120 1740 300' fill='none' stroke='%2300873e' stroke-width='138' stroke-linecap='square' stroke-linejoin='miter' opacity='.34'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  content: "";
  opacity: 0.42;
  transform: translateY(34%);
  animation: chevronRise 920ms cubic-bezier(0.16, 0.84, 0.26, 1) forwards;
}

.scoreFlashLayer.scoreFlashNegative::before {
  top: -46%;
  bottom: auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900' preserveAspectRatio='none'%3E%3Cpolyline points='-140 120 800 540 1740 120' fill='none' stroke='%236b0710' stroke-width='138' stroke-linecap='square' stroke-linejoin='miter' opacity='.82'/%3E%3Cpolyline points='-140 360 800 780 1740 360' fill='none' stroke='%236b0710' stroke-width='138' stroke-linecap='square' stroke-linejoin='miter' opacity='.58'/%3E%3Cpolyline points='-140 600 800 1020 1740 600' fill='none' stroke='%236b0710' stroke-width='138' stroke-linecap='square' stroke-linejoin='miter' opacity='.36'/%3E%3C/svg%3E");
  transform: translateY(-34%);
  animation: chevronDrop 920ms cubic-bezier(0.16, 0.84, 0.26, 1) forwards;
}

.scoreFlashLayer.flashExit::before {
  animation: none;
  transform: translateY(-4%);
}

.scoreFlashLayer.scoreFlashNegative.flashExit::before {
  transform: translateY(4%);
}

.scorePlusBurst {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.scorePlusBurst span {
  position: absolute;
  left: var(--x);
  bottom: -12%;
  color: #087f3c;
  font-size: calc(var(--size) * 2);
  font-weight: 950;
  line-height: 1;
  opacity: 0;
  backface-visibility: hidden;
  text-shadow: 0 0 24px rgba(0, 184, 90, 0.42);
  transform: translate3d(0, 0, 0) rotate(var(--rot)) scale(0.24);
  will-change: transform, opacity;
  animation: plusErupt 5.8s linear var(--delay) forwards;
}

.scoreFlashLayer.scoreFlashNegative .scorePlusBurst span {
  top: -12%;
  bottom: auto;
  color: #ffdde0;
  text-shadow: 0 0 24px rgba(255, 42, 60, 0.42);
  animation-name: minusDrop;
}

.scorePlusBurst span:nth-child(1) { --x: 7%; --rise: -76%; --drift: -28px; --rot: -18deg; --size: clamp(34px, 4.2vw, 82px); --delay: 20ms; }
.scorePlusBurst span:nth-child(2) { --x: 14%; --rise: -108%; --drift: 36px; --rot: 12deg; --size: clamp(22px, 2.8vw, 54px); --delay: 70ms; }
.scorePlusBurst span:nth-child(3) { --x: 22%; --rise: -88%; --drift: -18px; --rot: 28deg; --size: clamp(30px, 3.6vw, 70px); --delay: 35ms; }
.scorePlusBurst span:nth-child(4) { --x: 28%; --rise: -132%; --drift: 54px; --rot: -32deg; --size: clamp(20px, 2.4vw, 48px); --delay: 100ms; }
.scorePlusBurst span:nth-child(5) { --x: 35%; --rise: -96%; --drift: -46px; --rot: 20deg; --size: clamp(38px, 4.6vw, 88px); --delay: 45ms; }
.scorePlusBurst span:nth-child(6) { --x: 42%; --rise: -122%; --drift: 26px; --rot: -10deg; --size: clamp(24px, 3vw, 58px); --delay: 120ms; }
.scorePlusBurst span:nth-child(7) { --x: 48%; --rise: -82%; --drift: -34px; --rot: 36deg; --size: clamp(28px, 3.3vw, 66px); --delay: 60ms; }
.scorePlusBurst span:nth-child(8) { --x: 55%; --rise: -118%; --drift: 42px; --rot: -24deg; --size: clamp(36px, 4.3vw, 84px); --delay: 15ms; }
.scorePlusBurst span:nth-child(9) { --x: 62%; --rise: -90%; --drift: -24px; --rot: 16deg; --size: clamp(22px, 2.7vw, 52px); --delay: 95ms; }
.scorePlusBurst span:nth-child(10) { --x: 70%; --rise: -136%; --drift: 50px; --rot: -36deg; --size: clamp(34px, 4vw, 78px); --delay: 55ms; }
.scorePlusBurst span:nth-child(11) { --x: 78%; --rise: -104%; --drift: -38px; --rot: 24deg; --size: clamp(26px, 3.2vw, 62px); --delay: 130ms; }
.scorePlusBurst span:nth-child(12) { --x: 88%; --rise: -86%; --drift: 28px; --rot: -14deg; --size: clamp(40px, 4.9vw, 94px); --delay: 40ms; }
.scorePlusBurst span:nth-child(13) { --x: 5%; --rise: -118%; --drift: 52px; --rot: 30deg; --size: clamp(20px, 2.3vw, 46px); --delay: 190ms; }
.scorePlusBurst span:nth-child(14) { --x: 18%; --rise: -142%; --drift: -30px; --rot: -20deg; --size: clamp(28px, 3.4vw, 64px); --delay: 210ms; }
.scorePlusBurst span:nth-child(15) { --x: 31%; --rise: -112%; --drift: 44px; --rot: 10deg; --size: clamp(24px, 2.9vw, 56px); --delay: 165ms; }
.scorePlusBurst span:nth-child(16) { --x: 45%; --rise: -152%; --drift: -42px; --rot: -28deg; --size: clamp(36px, 4.4vw, 86px); --delay: 240ms; }
.scorePlusBurst span:nth-child(17) { --x: 58%; --rise: -126%; --drift: 30px; --rot: 18deg; --size: clamp(22px, 2.6vw, 50px); --delay: 175ms; }
.scorePlusBurst span:nth-child(18) { --x: 67%; --rise: -146%; --drift: -50px; --rot: -12deg; --size: clamp(30px, 3.8vw, 72px); --delay: 220ms; }
.scorePlusBurst span:nth-child(19) { --x: 74%; --rise: -116%; --drift: 34px; --rot: 32deg; --size: clamp(24px, 3vw, 58px); --delay: 260ms; }
.scorePlusBurst span:nth-child(20) { --x: 84%; --rise: -138%; --drift: -26px; --rot: -30deg; --size: clamp(32px, 4vw, 76px); --delay: 185ms; }
.scorePlusBurst span:nth-child(21) { --x: 92%; --rise: -112%; --drift: 40px; --rot: 14deg; --size: clamp(20px, 2.4vw, 48px); --delay: 250ms; }
.scorePlusBurst span:nth-child(22) { --x: 50%; --rise: -166%; --drift: 0px; --rot: 0deg; --size: clamp(44px, 5.4vw, 104px); --delay: 90ms; }

.scoreFlash {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr) minmax(130px, 0.22fr);
  gap: clamp(20px, 3vw, 62px);
  align-items: center;
  height: 100%;
  min-height: 100%;
  padding: 0 clamp(22px, 2.8vw, 54px) 0 clamp(0px, 1vw, 18px);
}

.scoreFlashImage {
  position: relative;
  align-self: end;
  height: 100%;
  overflow: visible;
}

.scoreFlashClubMark {
  position: absolute;
  top: clamp(-118px, -5.4vw, -64px);
  right: clamp(-238px, -10.5vw, -132px);
  z-index: 0;
  display: grid;
  place-items: center;
  width: clamp(276px, 24vw, 500px);
  height: clamp(276px, 24vw, 500px);
  opacity: 0.86;
  pointer-events: none;
}

.scoreFlashClubLogo,
.scoreFlashClubLogo.teamLogoFallback {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  object-fit: contain;
  filter: saturate(1.08) contrast(1.05);
}

.scoreFlashAvatar,
.scoreFlashAvatar.avatarFallback {
  position: absolute;
  z-index: 1;
  top: clamp(-42px, -2.1vw, -18px);
  bottom: auto;
  left: clamp(-120px, -5.5vw, -52px);
  width: clamp(430px, 34vw, 690px);
  height: clamp(300px, 27vw, 540px);
  border: 0;
  border-radius: 0;
  object-fit: contain;
  object-position: left top;
  transform: none;
  background: transparent;
  color: var(--text);
  font-size: clamp(38px, 4vw, 72px);
}

.scoreFlashManagerBadge {
  position: absolute;
  left: clamp(18px, 2.6vw, 54px);
  bottom: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  width: clamp(58px, 5.8vw, 104px);
  height: clamp(58px, 5.8vw, 104px);
  border: clamp(3px, 0.32vw, 6px) solid #48c94f;
  border-radius: 50%;
  background: #101011;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.scoreFlashNegative .scoreFlashManagerBadge {
  border-color: #ffdde0;
}

.scoreFlashManagerAvatar,
.scoreFlashManagerAvatar.avatarFallback {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 50%;
  background: #202024;
  color: #ffffff;
  object-fit: cover;
  font-size: clamp(16px, 1.6vw, 28px);
  font-weight: 950;
}

.scoreFlashText {
  display: grid;
  position: relative;
  justify-items: center;
  align-items: center;
  align-content: stretch;
  gap: 12px;
  min-width: 0;
  height: 100%;
  min-height: 0;
  text-align: center;
}

.scoreFlashHeadline,
.scoreFlashPoints strong {
  display: block;
}

.scoreFlashHeadline {
  grid-area: 1 / 1;
  align-self: center;
  justify-self: center;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: transparent;
  text-shadow:
    2px 0 0 #ffffff,
    -2px 0 0 #ffffff,
    0 2px 0 #ffffff,
    0 -2px 0 #ffffff,
    2px 2px 0 #ffffff,
    -2px 2px 0 #ffffff,
    2px -2px 0 #ffffff,
    -2px -2px 0 #ffffff;
  font-size: clamp(54px, 6.8vw, 136px);
  font-weight: 950;
  line-height: 0.92;
  text-transform: uppercase;
  transform-origin: center;
}

.scoreFlashHeadlinePlayer {
  animation: flashPhaseOneText 2.25s cubic-bezier(0.16, 0.84, 0.22, 1) 120ms both;
}

.scoreFlashHeadlineAction {
  opacity: 0;
  animation: flashPhaseTwoText 1.08s cubic-bezier(0.16, 0.84, 0.22, 1) 2.25s both;
}

.scoreFlashGoal .scoreFlashHeadlineAction {
  font-size: clamp(78px, 9.2vw, 184px);
  animation: flashGoalText 1.08s cubic-bezier(0.14, 0.9, 0.22, 1) 2.25s both;
}

.scoreFlashPoints {
  display: grid;
  align-items: center;
  justify-items: center;
  min-height: clamp(112px, 10.5vw, 202px);
  text-align: center;
  transform: translateX(clamp(-72px, -3.6vw, -32px));
}

.scoreFlashMinuteBadge,
.scoreFlashPointAward {
  grid-area: 1 / 1;
}

.scoreFlashPoints strong {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(58px, 5.8vw, 120px);
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  line-height: 0.82;
  text-shadow: none;
}

.scoreFlashMinuteBadge,
.scoreFlashPointAward {
  align-content: center;
  justify-items: center;
  width: clamp(118px, 10.5vw, 208px);
  height: clamp(118px, 10.5vw, 208px);
  border: clamp(3px, 0.3vw, 6px) solid #ffffff;
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.18);
  color: #ffffff;
}

.scoreFlashPointAward {
  display: grid;
  gap: clamp(3px, 0.45vw, 8px);
  opacity: 0;
  animation: scorePop 560ms cubic-bezier(0.16, 1.2, 0.28, 1) 2.42s both;
}

.scoreFlashMinuteBadge {
  display: grid;
  gap: clamp(3px, 0.45vw, 8px);
  animation: flashMinuteHold 2.2s cubic-bezier(0.16, 0.84, 0.22, 1) 140ms both;
}

.scoreFlashPointAward span,
.scoreFlashMinuteBadge span {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(14px, 1.05vw, 22px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.scoreFlashPointValue {
  opacity: 1;
}

@keyframes flashWipe {
  from {
    clip-path: inset(0 100% 0 0);
  }

  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes flashWipeOut {
  from {
    clip-path: inset(0 0 0 0);
  }

  to {
    clip-path: inset(0 0 0 100%);
  }
}

@keyframes chevronRise {
  from {
    transform: translateY(34%);
  }

  to {
    transform: translateY(-4%);
  }
}

@keyframes chevronDrop {
  from {
    transform: translateY(-34%);
  }

  to {
    transform: translateY(4%);
  }
}

@keyframes plusErupt {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(var(--rot)) scale(0.24);
  }

  6% {
    opacity: 0.98;
    transform: translate3d(calc(var(--drift) * 0.34), calc(var(--rise) * 0.42), 0) rotate(calc(var(--rot) + 8deg)) scale(1.02);
  }

  14% {
    opacity: 0.92;
    transform: translate3d(calc(var(--drift) * 0.62), calc(var(--rise) * 0.62), 0) rotate(calc(var(--rot) + 14deg)) scale(0.94);
  }

  30% {
    opacity: 0.72;
    transform: translate3d(calc(var(--drift) * 0.8), calc(var(--rise) * 0.76), 0) rotate(calc(var(--rot) + 22deg)) scale(0.88);
  }

  58% {
    opacity: 0.52;
    transform: translate3d(calc(var(--drift) * 0.94), calc(var(--rise) - 24px), 0) rotate(calc(var(--rot) + 34deg)) scale(0.82);
  }

  82% {
    opacity: 0.34;
    transform: translate3d(var(--drift), calc(var(--rise) - 62px), 0) rotate(calc(var(--rot) + 46deg)) scale(0.78);
  }

  100% {
    opacity: 0;
    transform: translate3d(calc(var(--drift) * 1.08), calc(var(--rise) - 108px), 0) rotate(calc(var(--rot) + 56deg)) scale(0.72);
  }
}

@keyframes minusDrop {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(var(--rot)) scale(0.24);
  }

  6% {
    opacity: 0.98;
    transform: translate3d(calc(var(--drift) * 0.34), calc(var(--rise) * -0.42), 0) rotate(calc(var(--rot) - 8deg)) scale(1.02);
  }

  14% {
    opacity: 0.92;
    transform: translate3d(calc(var(--drift) * 0.62), calc(var(--rise) * -0.62), 0) rotate(calc(var(--rot) - 14deg)) scale(0.94);
  }

  30% {
    opacity: 0.72;
    transform: translate3d(calc(var(--drift) * 0.8), calc(var(--rise) * -0.76), 0) rotate(calc(var(--rot) - 22deg)) scale(0.88);
  }

  58% {
    opacity: 0.52;
    transform: translate3d(calc(var(--drift) * 0.94), calc(var(--rise) * -1 + 24px), 0) rotate(calc(var(--rot) - 34deg)) scale(0.82);
  }

  82% {
    opacity: 0.34;
    transform: translate3d(var(--drift), calc(var(--rise) * -1 + 62px), 0) rotate(calc(var(--rot) - 46deg)) scale(0.78);
  }

  100% {
    opacity: 0;
    transform: translate3d(calc(var(--drift) * 1.08), calc(var(--rise) * -1 + 108px), 0) rotate(calc(var(--rot) - 56deg)) scale(0.72);
  }
}

@keyframes scorePop {
  0% {
    opacity: 0;
    transform: scale(0.58);
  }

  58% {
    opacity: 1;
    transform: scale(1.14);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes flashPhaseOneText {
  0% {
    color: transparent;
    opacity: 0;
    transform: translateY(18px);
  }

  18% {
    color: transparent;
    opacity: 1;
    transform: translateY(0);
  }

  42% {
    color: rgba(255, 255, 255, 0.24);
    opacity: 1;
  }

  72% {
    color: #ffffff;
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    color: #ffffff;
    opacity: 0;
    transform: translateY(-18px);
  }
}

@keyframes flashPhaseTwoText {
  0% {
    color: transparent;
    opacity: 0;
    transform: translateY(18px);
  }

  28% {
    color: transparent;
    opacity: 1;
    transform: translateY(0);
  }

  68% {
    color: rgba(255, 255, 255, 0.24);
    opacity: 1;
  }

  100% {
    color: #ffffff;
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes flashGoalText {
  0% {
    color: transparent;
    opacity: 0;
    transform: translateY(18px) scale(0.88);
  }

  8% {
    color: #ffffff;
    opacity: 1;
    transform: translateY(0) scale(1.08);
  }

  15% {
    color: transparent;
    opacity: 0.32;
    transform: translateY(0) scale(1.02);
  }

  23% {
    color: #ffffff;
    opacity: 1;
    transform: translateY(0) scale(1.18);
  }

  31% {
    color: transparent;
    opacity: 0.46;
    transform: translateY(0) scale(1.08);
  }

  43% {
    color: #ffffff;
    opacity: 1;
    transform: translateY(0) scale(1.3);
  }

  62% {
    color: #ffffff;
    opacity: 1;
    transform: translateY(0) scale(1.18);
  }

  100% {
    color: #ffffff;
    opacity: 1;
    transform: translateY(0) scale(1.12);
  }
}

@keyframes flashMinuteHold {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }

  18%,
  72% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-14px);
  }
}

@keyframes scoreFlyToTarget {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.04);
  }

  72% {
    opacity: 1;
    transform: translate(calc(-50% + var(--mid-dx)), calc(-50% + var(--mid-dy))) scale(0.62);
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.34);
  }
}

@keyframes liveScorePulse {
  0% {
    transform: scale(1);
  }

  18% {
    transform: scale(1.34);
  }

  42% {
    transform: scale(1.12);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes scoreDeltaPop {
  0% {
    opacity: 0;
  }

  12% {
    opacity: 1;
  }

  24% {
    opacity: 1;
  }

  76% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.liveManagerList {
  display: grid;
  align-content: start;
  gap: 8px;
  width: 100vw;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  min-height: 0;
  overflow: visible;
}

body.liveMode.layoutLandscape .liveManagerList {
  width: 100%;
  margin-right: 0;
  margin-left: 0;
}

.liveManagerRow {
  --live-slant: clamp(14px, 1.1vw, 26px);
  display: grid;
  grid-template-columns: clamp(120px, 9.5vw, 182px) clamp(168px, 12vw, 246px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  height: clamp(95px, 9.8vh, 143px);
  min-height: 0;
  border: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
  background: #111113;
  will-change: transform;
}

.liveManagerListReordering {
  overflow: hidden;
}

.liveManagerListReordering .liveManagerRow {
  backface-visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
}

.liveManagerRowMoving {
  position: relative;
  z-index: 4;
  background: #151518;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.liveManagerPhoto {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #050505;
}

.liveManagerAvatar,
.liveManagerAvatar.avatarFallback {
  display: block;
  width: 118%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: 56% center;
  background: #1b1b1e;
}

.liveManagerInfo {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 1fr auto auto 1fr;
  align-content: center;
  align-items: center;
  min-width: 0;
  min-height: 0;
  margin-left: clamp(-34px, -2.2vw, -18px);
  padding: clamp(10px, 1vw, 18px) clamp(28px, 1.9vw, 46px) clamp(48px, 3.8vw, 74px) clamp(28px, 2.4vw, 54px);
  clip-path: polygon(var(--live-slant) 0, 100% 0, calc(100% - var(--live-slant)) 100%, 0 100%);
  background: #050505;
}

.liveManagerRank {
  display: grid;
  place-items: center;
  justify-self: start;
  width: clamp(34px, 2.7vw, 54px);
  height: clamp(34px, 2.7vw, 54px);
  margin-bottom: clamp(5px, 0.5vw, 9px);
  border-radius: 50%;
  background: #ffffff;
  color: var(--accent);
  font-size: clamp(24px, 2.2vw, 42px);
  font-weight: 950;
  line-height: 1;
}

.liveManagerRankLandscape {
  display: none;
}

.liveManagerName {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: clamp(17px, 1.72vw, 33px);
  font-weight: 950;
  line-height: 0.95;
  width: 100%;
  max-width: 100%;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 86%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 86%, transparent 100%);
  white-space: nowrap;
}

.livePlayingCount {
  display: block;
  color: var(--muted);
  margin-top: clamp(3px, 0.4vw, 8px);
  font-size: clamp(13px, 1vw, 18px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-transform: uppercase;
}

.liveManagerScore {
  position: absolute;
  right: clamp(-46px, -1.9vw, -28px);
  bottom: 0;
  left: clamp(-54px, -2.4vw, -28px);
  display: grid;
  place-items: center;
  min-width: 0;
  height: clamp(42px, 3.5vw, 68px);
  margin: 0;
  padding: 0 clamp(12px, 0.9vw, 20px);
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--live-slant)) 100%, 0 100%);
  background: #ffffff;
  color: #050505;
  font-size: clamp(36px, 3vw, 62px);
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
}

.liveManagerScoreLandscape {
  display: none;
}

.liveActivePlayers {
  display: flex;
  grid-column: 3 / 4;
  grid-row: 1 / 2;
  gap: 0;
  align-self: stretch;
  align-items: stretch;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  margin-left: clamp(-28px, -1.6vw, -14px);
  padding: 0 clamp(8px, 0.8vw, 18px) 0 clamp(4px, 0.55vw, 12px);
  background: linear-gradient(90deg, #171719, #121214);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - clamp(84px, 6vw, 132px)), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - clamp(84px, 6vw, 132px)), transparent 100%);
  justify-content: start;
}

.liveActivePlayersReordering {
  overflow: visible;
}

.livePlayerChip {
  display: grid;
  position: relative;
  flex: 0 0 clamp(196px, 12.85vw, 286px);
  grid-template-columns: clamp(116px, 7.9vw, 174px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-self: stretch;
  justify-items: stretch;
  align-items: stretch;
  width: calc(100% + clamp(12px, 1vw, 24px));
  height: 100%;
  min-height: 0;
  min-width: 0;
  max-width: none;
  overflow: hidden;
  border: 0;
  padding: 0;
  clip-path: polygon(var(--live-slant) 0, 100% 0, calc(100% - var(--live-slant)) 100%, 0 100%);
  background-color: #141416;
  background-image:
    radial-gradient(rgba(16, 16, 18, 0.56) 2px, transparent 2px),
    linear-gradient(100deg, #3d3d43 0%, #2b2b31 48%, #121214 100%);
  background-size: 22px 22px, 100% 100%;
}

.livePlayerChipCompact {
  display: block;
  flex-basis: clamp(82px, 6.4vw, 138px);
  grid-template-columns: minmax(0, 1fr);
  background-image:
    radial-gradient(rgba(20, 20, 22, 0.68) 2px, transparent 2px),
    linear-gradient(100deg, #303035 0%, #242429 54%, #101012 100%);
}

.livePlayerChip::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  width: 7%;
  background: linear-gradient(90deg, rgba(18, 18, 20, 0), #121214);
  pointer-events: none;
}

.livePlayerChip:not(.livePlayerChipCompact)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  padding: 2px;
  clip-path: polygon(var(--live-slant) 0, 100% 0, calc(100% - var(--live-slant)) 100%, 0 100%);
  background: rgba(255, 255, 255, 0.92);
  filter:
    drop-shadow(0 0 5px rgba(255, 255, 255, 0.78))
    drop-shadow(0 0 14px rgba(255, 255, 255, 0.34));
  pointer-events: none;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.livePlayerChipReordering {
  position: relative;
  z-index: 3;
  will-change: transform;
}

.livePlayerAvatar,
.livePlayerAvatar.avatarFallback {
  display: block;
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: start;
  width: 172%;
  height: 172%;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  object-position: center center;
  background: transparent;
  transform: translate(clamp(-88px, -4.7vw, -52px), 4%);
  transform-origin: left center;
}

.livePlayerAvatar.avatarFallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: #242428;
  color: var(--accent);
  font-size: clamp(16px, 1.4vw, 26px);
  font-weight: 950;
  transform: none;
}

.livePlayerChipCompact .livePlayerAvatar,
.livePlayerChipCompact .livePlayerAvatar.avatarFallback {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 174%;
  height: 174%;
  z-index: 1;
  align-self: auto;
  justify-self: auto;
  opacity: 0.72;
  filter: saturate(0.84) grayscale(0.16) brightness(0.88);
  object-position: center center;
  transform: translate(-57%, -46%);
}

.livePlayerChipCompact .livePlayerAvatar.avatarFallback {
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.78;
  transform: none;
}

.livePlayerChip > .livePlayerMeta {
  display: grid;
  position: relative;
  z-index: 2;
  align-content: center;
  justify-items: start;
  align-self: stretch;
  gap: clamp(5px, 0.42vw, 10px);
  min-width: 0;
  width: 100%;
  overflow: visible;
  padding: clamp(11px, 0.9vw, 18px) clamp(26px, 1.45vw, 38px) clamp(11px, 0.9vw, 18px) clamp(0px, 0.2vw, 6px);
  background: transparent;
  text-align: left;
  transform: translate(clamp(-42px, -2.55vw, -24px), clamp(-10px, -0.75vw, -6px));
}

.livePlayerChipCompact > .livePlayerMeta {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  align-content: center;
  justify-items: center;
  gap: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0;
  overflow: visible;
  transform: none;
}

.livePlayerChip strong,
.livePlayerChip em {
  display: block;
  overflow: visible;
  white-space: nowrap;
}

.livePlayerChip strong {
  color: var(--text);
  font-size: clamp(18px, 1.26vw, 30px);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  width: max-content;
  max-width: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.48);
  text-transform: uppercase;
}

.livePlayerChip em {
  color: #ffffff;
  font-size: clamp(28px, 2.15vw, 48px);
  font-style: normal;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.52);
}

.livePlayerChipCompact em {
  color: #ffffff;
  font-size: clamp(18px, 1.42vw, 31px);
  text-shadow:
    0 2px 5px rgba(0, 0, 0, 0.78),
    0 0 12px rgba(0, 0, 0, 0.6);
}

.livePlayerChipCompact .scoreDeltaBadge {
  inset: 0;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  clip-path: none;
  font-size: clamp(22px, 2vw, 42px);
}

.livePlayerChipCompact .liveEventIcons {
  position: absolute;
  right: 0;
  bottom: clamp(5px, 0.42vw, 10px);
  left: 0;
  justify-content: center;
  max-width: none;
  opacity: 0.94;
}

.livePlayerChipCompact .liveEventIcon {
  width: clamp(10px, 0.78vw, 17px);
  height: clamp(10px, 0.78vw, 17px);
}

.liveEventIcons {
  display: inline-flex;
  align-items: center;
  gap: clamp(3px, 0.28vw, 6px);
  min-width: 0;
  margin-top: clamp(-4px, -0.2vw, -2px);
}

.scoreDeltaBadge {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: inline-grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  clip-path: none;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 64px);
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  animation: scoreDeltaPop 2000ms cubic-bezier(0.16, 1, 0.3, 1) both;
  pointer-events: none;
}

.scoreDeltaBadgePositive {
  background: radial-gradient(circle at 50% 45%, #10a95a 0%, #00873e 72%);
}

.scoreDeltaBadgeNegative {
  background: radial-gradient(circle at 50% 45%, #c32635 0%, #9f1421 72%);
}

body.liveMode.layoutLandscape .livePlayerChip > .livePlayerMeta {
  align-content: center;
  gap: clamp(3px, 0.26vw, 7px);
  padding-top: clamp(9px, 0.72vw, 14px);
  padding-bottom: clamp(9px, 0.72vw, 14px);
  transform: translate(clamp(-42px, -2.55vw, -24px), 0);
}

body.liveMode.layoutLandscape .livePlayerChipCompact > .livePlayerMeta {
  transform: none;
}

body.liveMode.layoutLandscape .livePlayerChip strong {
  font-size: clamp(12px, 0.84vw, 20px);
  line-height: 0.98;
}

body.liveMode.layoutLandscape .livePlayerChip em {
  font-size: clamp(19px, 1.43vw, 32px);
  line-height: 0.94;
}

body.liveMode.layoutLandscape .liveEventIcons {
  gap: clamp(2px, 0.2vw, 5px);
  margin-top: clamp(-6px, -0.32vw, -3px);
}

body.liveMode.layoutLandscape .liveEventIcon {
  width: clamp(12px, 0.87vw, 20px);
  height: clamp(12px, 0.87vw, 20px);
}

body.liveMode.layoutLandscape .livePlayerChipCompact .liveEventIcon {
  width: clamp(9px, 0.67vw, 15px);
  height: clamp(9px, 0.67vw, 15px);
}

.liveEventIcon {
  display: inline-grid;
  position: relative;
  place-items: center;
  width: clamp(18px, 1.3vw, 30px);
  height: clamp(18px, 1.3vw, 30px);
  color: #ffffff;
  flex: 0 0 auto;
}

.liveEventIcon::before,
.liveEventIcon::after {
  content: "";
  display: block;
}

.liveEventIcon--goal::before {
  width: 100%;
  height: 100%;
  border: 2px solid currentColor;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, currentColor 0 16%, transparent 18%),
    linear-gradient(45deg, transparent 42%, currentColor 43% 50%, transparent 51%),
    linear-gradient(-45deg, transparent 42%, currentColor 43% 50%, transparent 51%);
}

.liveEventIcon--assist::before {
  width: 92%;
  height: 54%;
  clip-path: polygon(0 54%, 54% 54%, 72% 8%, 100% 8%, 86% 82%, 16% 82%);
  background: currentColor;
  transform: rotate(-18deg);
}

.liveEventIcon--yellow_card::before,
.liveEventIcon--red_card::before {
  width: 58%;
  height: 86%;
  border-radius: 2px;
  transform: rotate(7deg);
}

.liveEventIcon--yellow_card::before {
  background: #e8c42d;
}

.liveEventIcon--red_card::before {
  background: #d32626;
}

.liveEventIcon--substitution::before,
.liveEventIcon--substitution::after {
  position: absolute;
  width: 92%;
  height: 3px;
  background: currentColor;
}

.liveEventIcon--substitution::before {
  transform: translateY(-4px);
  clip-path: polygon(0 0, 78% 0, 78% -90%, 100% 50%, 78% 190%, 78% 100%, 0 100%);
}

.liveEventIcon--substitution::after {
  transform: translateY(4px) rotate(180deg);
  clip-path: polygon(0 0, 78% 0, 78% -90%, 100% 50%, 78% 190%, 78% 100%, 0 100%);
}

.liveEventIcon--penalty_save::before {
  width: 82%;
  height: 82%;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 45% 45%;
}

.liveEventIcon--penalty_save::after {
  position: absolute;
  top: 8%;
  width: 72%;
  height: 26%;
  border-radius: 999px 999px 3px 3px;
  background: currentColor;
}

.liveEventIcon::before,
.liveEventIcon::after {
  content: none;
}

.liveEventIcon svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.scoreFlyPoint {
  position: fixed;
  z-index: 1000;
  color: #ffffff;
  font-size: clamp(34px, 4.2vw, 82px);
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
  transform: translate(-50%, -50%) scale(1);
  animation: scoreFlyToTarget 720ms cubic-bezier(0.17, 0.82, 0.22, 1) forwards;
}

.scoreFlyPointNegative {
  color: #c21c2d;
}

.scoreCounterPulse {
  color: #00873e;
  animation: liveScorePulse 900ms cubic-bezier(0.16, 1.08, 0.28, 1) both;
}

.scoreCounterPulseNegative {
  color: #9f1421;
  animation: liveScorePulse 900ms cubic-bezier(0.16, 1.08, 0.28, 1) both;
}

.livePlayerScore.livePlayerScoreTierOrange {
  color: var(--accent);
}

.livePlayerScore.livePlayerScoreTierGreen {
  color: #8cff70;
}

.livePlayerScore.livePlayerScoreTierTurquoise {
  color: #00d9aa;
}

.livePlayerScore.livePlayerScoreTierGold {
  color: #ffe14d;
}

.livePlayerScore.scoreCounterPulse,
.liveManagerScore.scoreCounterPulse {
  color: #00873e;
}

.livePlayerScore.scoreCounterPulseNegative,
.liveManagerScore.scoreCounterPulseNegative {
  color: #9f1421;
}

.liveNoPlayers,
.liveEmpty {
  color: var(--muted);
  font-weight: 900;
}

.parallelMatchesPanel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: clamp(6px, 0.7vw, 12px);
  min-width: 0;
  padding: 0;
}

body.liveMode.layoutLandscape .parallelMatchesPanel {
  padding: 0 clamp(10px, 1vw, 20px);
}

body.liveMode.layoutLandscape .parallelMatch {
  min-height: clamp(46px, 4.3vw, 69px);
}

.parallelMatch {
  display: grid;
  position: relative;
  grid-template-columns: minmax(72px, 1fr) auto minmax(72px, 1fr);
  align-items: center;
  gap: clamp(4px, 0.5vw, 10px);
  min-width: 0;
  min-height: clamp(58px, 5.4vw, 86px);
  overflow: hidden;
  padding: 0 clamp(8px, 0.8vw, 16px);
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  background:
    radial-gradient(rgba(255, 255, 255, 0.1) 1.5px, transparent 1.5px),
    linear-gradient(100deg, #26262b 0%, #151517 100%);
  background-size: 18px 18px, 100% 100%;
  cursor: pointer;
  transition: filter 180ms ease, transform 180ms ease;
}

.parallelMatch:hover,
.parallelMatch:focus-visible {
  filter: brightness(1.14);
}

.parallelMatch:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.parallelTeam {
  position: relative;
  display: block;
  min-width: 0;
  overflow: visible;
  width: 100%;
  height: 100%;
}

.parallelTeamLogo,
.parallelTeamLogo.teamLogoFallback {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: clamp(120px, 11vw, 186px);
  height: clamp(120px, 11vw, 186px);
  border: 0;
  background: transparent;
  color: #ffffff;
  object-fit: contain;
  font-size: clamp(28px, 2.8vw, 48px);
  font-weight: 950;
  opacity: 0.96;
}

.parallelTeamHome .parallelTeamLogo,
.parallelTeamHome .parallelTeamLogo.teamLogoFallback {
  left: 0;
  transform: translate(-32%, -50%);
}

.parallelTeamAway .parallelTeamLogo,
.parallelTeamAway .parallelTeamLogo.teamLogoFallback {
  right: 0;
  transform: translate(32%, -50%);
}

.parallelScore {
  display: grid;
  position: relative;
  z-index: 1;
  justify-items: center;
  min-width: clamp(74px, 7.2vw, 122px);
  color: #ffffff;
}

.parallelScore strong {
  font-size: clamp(28px, 2.8vw, 50px);
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  line-height: 0.9;
}

.parallelScore em {
  margin-top: 2px;
  color: var(--accent);
  font-size: clamp(12px, 0.95vw, 17px);
  font-style: normal;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.noMatch {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  min-height: 300px;
  text-align: center;
}

.noMatch strong {
  font-size: clamp(28px, 5vw, 54px);
  line-height: 1;
}

.noMatch span {
  max-width: 520px;
  color: var(--muted);
}

.tickerPanel {
  min-width: 0;
  overflow: hidden;
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  background: #0a0a0b;
}

.tickerViewport {
  overflow: hidden;
  width: 100%;
}

.tickerTrack {
  display: inline-flex;
  min-width: max-content;
  gap: 0;
  padding: 0;
  animation: tickerMove var(--ticker-duration, 56s) linear infinite;
  will-change: transform;
}

.tickerGroup {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 18px;
  min-width: max-content;
  padding: 14px 18px;
}

.smallMatch {
  display: inline-grid;
  grid-template-columns: max-content 34px max-content max-content;
  gap: 16px;
  align-items: center;
  min-height: 78px;
  padding: 10px 22px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.tickerTeam {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tickerTeam strong {
  max-width: 190px;
  overflow: hidden;
  color: var(--text);
  font-size: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.smallTeamLogo,
.smallTeamLogo.teamLogoFallback {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 0;
  background: transparent;
  color: var(--text);
  object-fit: contain;
  font-size: 18px;
  font-weight: 950;
}

.smallMatchTime,
.smallVs {
  color: var(--muted);
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

.smallVs {
  text-align: center;
  text-transform: uppercase;
}

.tickerEmpty {
  padding: 12px 16px;
  color: var(--muted);
  font-weight: 900;
}

@keyframes tickerMove {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(calc(var(--ticker-distance, 50%) * -1), 0, 0);
  }
}

@keyframes liveStingerWipe {
  0% {
    transform: translateX(-170vw);
  }

  36% {
    transform: translateX(-18vw);
  }

  55% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(122vw);
  }
}

.managerHeader {
  display: grid;
  grid-template-columns: clamp(30px, 2.3vw, 42px) clamp(40px, 3.3vw, 62px) minmax(82px, 0.42fr) 64px 58px minmax(106px, 0.62fr) 82px 120px;
  gap: 0;
  align-items: center;
  width: 100%;
  padding: 7px clamp(10px, 1vw, 18px);
  border-bottom: 1px solid #111113;
  background: #080809;
  color: var(--muted-2);
  font-size: clamp(9px, 0.62vw, 12px);
  font-weight: 900;
  text-align: right;
  text-transform: uppercase;
}

.managerHeader .nameSort {
  text-align: left;
}

.managerHeader .rankHeader {
  display: block;
  text-align: center;
}

.sortButton {
  min-height: 28px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted-2);
  font-size: clamp(9px, 0.62vw, 12px);
  font-weight: 900;
  text-align: right;
  text-transform: uppercase;
}

.sortButton:hover,
.sortButton:focus-visible {
  color: var(--accent);
  outline: none;
}

.managerCard {
  display: grid;
  grid-template-columns: clamp(30px, 2.3vw, 42px) clamp(40px, 3.3vw, 62px) minmax(82px, 0.42fr) 64px 58px minmax(106px, 0.62fr) 82px 120px;
  align-items: stretch;
  width: 100%;
  height: clamp(38px, 3.1vw, 52px);
  min-height: 0;
  border: 0;
  padding: 0;
  color: inherit;
  text-align: left;
  background: #141416;
  cursor: pointer;
  overflow: hidden;
}

.managerCard:hover,
.managerCard:focus-visible {
  background: #19191c;
  outline: none;
}

.leagueBoard {
  width: 100%;
  min-height: 100vh;
  padding: 0 0 42px;
  background: #050505;
}

.leagueDivider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.5vw, 28px);
  place-items: center;
  min-height: clamp(32px, 2.7vw, 48px);
  padding: 0 clamp(12px, 1.3vw, 24px);
  background: var(--accent);
  color: #120700;
  font-size: clamp(12px, 1vw, 20px);
  font-weight: 950;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.leagueDivider strong,
.leagueDivider span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leagueSwitcher,
.leagueSwitcherStatic {
  min-width: 0;
  max-width: min(58vw, 900px);
}

.leagueSwitcher {
  position: relative;
  display: inline-grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.leagueHeaderSelect {
  width: 100%;
  min-height: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: #120700;
  font: inherit;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  appearance: none;
  cursor: pointer;
}

.leagueHeaderSelect:focus {
  box-shadow: none;
  outline: 2px solid rgba(18, 7, 0, 0.42);
  outline-offset: 4px;
}

.leagueSwitcherChevrons {
  position: relative;
  right: auto;
  top: auto;
  display: grid;
  grid-row: 1;
  grid-column: 1;
  gap: 2px;
  width: 16px;
  transform: none;
  pointer-events: none;
}

.leagueSwitcherChevrons span {
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid #120700;
  border-bottom: 2px solid #120700;
}

.leagueSwitcherChevrons span:first-child {
  transform: rotate(225deg) translate(-1px, -1px);
}

.leagueSwitcherChevrons span:last-child {
  transform: rotate(45deg) translate(-1px, -1px);
}

.leagueDivider span {
  flex: 0 0 auto;
  font-size: 0.78em;
}

.leagueManagerList {
  display: grid;
  gap: 4px;
  width: 100%;
  overflow: hidden;
  padding: 8px 0 0;
}

.managerPhoto {
  display: block;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  clip-path: polygon(9% 0, 100% 0, 91% 100%, 0 100%);
  background: #1a1a1d;
}

.managerPhoto .managerAvatar,
.managerPhoto .managerAvatar.avatarFallback {
  display: grid;
  place-items: center;
  width: 118%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center center;
  background: #1b1b1e;
  font-size: clamp(12px, 1vw, 18px);
}

.managerRank,
.liveManagerRank {
  color: var(--muted-2);
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.managerRank {
  display: grid;
  place-items: center;
  align-self: center;
  justify-self: center;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: var(--muted-2);
  font-size: clamp(12px, 0.82vw, 16px);
  line-height: 1;
  text-align: center;
}

.managerTitleBlock {
  display: grid;
  align-items: center;
  min-width: 0;
  min-height: 0;
  padding: clamp(5px, 0.48vw, 9px) clamp(6px, 0.48vw, 10px);
  background: transparent;
}

.managerTitle {
  min-width: 0;
}

.managerTitle h2 {
  margin: 0;
  overflow: hidden;
  font-size: clamp(10px, 0.7vw, 14px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.95;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 86%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 86%, transparent 100%);
  white-space: nowrap;
}

.managerTitle p {
  margin: clamp(2px, 0.22vw, 4px) 0 0;
  color: var(--muted);
  font-size: clamp(9px, 0.68vw, 13px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.managerStats {
  display: grid;
  align-content: center;
  justify-content: end;
  min-width: 0;
  min-height: 0;
  padding: clamp(5px, 0.48vw, 9px) clamp(5px, 0.48vw, 10px);
  background: transparent;
  text-align: right;
}

button.managerStats {
  min-height: 0;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

button.managerStats:hover,
button.managerStats:focus-visible {
  color: var(--accent);
  outline: none;
}

.managerCard .errorText {
  grid-column: 1 / -1;
}

.managerStats strong {
  display: block;
  color: var(--text);
  overflow: hidden;
  font-size: clamp(10px, 0.78vw, 15px);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.highlightStat strong {
  color: #ffffff;
}

.managerPointsStat strong {
  font-size: clamp(12px, 0.92vw, 18px);
}

.lineupWarning {
  display: inline-block;
  margin-left: 5px;
  color: #ff4747;
  font-size: 0.82em;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.managerPlayerPanel {
  overflow-x: auto;
  overflow-y: hidden;
  border-top: 1px solid #26262a;
  border-bottom: 1px solid #26262a;
  background: #0b0b0c;
}

.managerPlayerHeader,
.managerPlayerRow {
  display: grid;
  grid-template-columns: 62px 48px minmax(170px, 1.1fr) minmax(128px, 0.7fr) minmax(150px, 0.8fr) 82px 146px 136px;
  gap: 0;
  align-items: center;
  min-width: 920px;
}

.managerPlayerHeader {
  min-height: 28px;
  padding: 0 10px;
  background: #1b2430;
  color: #9ba5b4;
  font-size: 10px;
  font-weight: 950;
  text-align: left;
  text-transform: uppercase;
}

.managerPlayerHeader span {
  min-width: 0;
  text-align: left;
}

.managerPlayerRow {
  min-height: 58px;
  padding: 5px 10px;
  border-top: 1px solid #25262b;
  background: #101116;
}

.managerPlayerRow:nth-child(even) {
  background: #12181a;
}

.playerStatusCell,
.managerPlayerIdentity,
.managerPlayerMoney,
.managerPlayerTrend,
.managerPlayerPoints,
.nextOpponents {
  min-width: 0;
}

.playerStatusCell {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
}

.playerStatusDot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #777;
}

.playerStatusDot--safe {
  background: #19d15f;
}

.playerStatusDot--probable {
  background: #a7d81b;
}

.playerStatusDot--unlikely {
  background: #ffae00;
}

.playerStatusDot--out {
  background: #ff4747;
}

.managerPlayerAvatar,
.managerPlayerAvatar.avatarFallback {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center top;
}

.managerPlayerIdentity strong,
.managerPlayerIdentity span,
.managerPlayerMoney strong,
.managerPlayerMoney em,
.managerPlayerTrend em,
.managerPlayerPoints strong,
.managerPlayerPoints em {
  display: block;
}

.managerPlayerIdentity strong {
  overflow: hidden;
  color: #f5f5f6;
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.managerPlayerIdentity span,
.managerPlayerTrend em,
.managerPlayerMoney em,
.managerPlayerPoints em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.teamMini {
  color: var(--accent);
}

.managerPlayerMoney,
.managerPlayerTrend,
.managerPlayerPoints {
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.managerPlayerMoney strong,
.managerPlayerPoints strong {
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
}

.managerPlayerMoney .positive,
.managerPlayerTrend .positive {
  color: #21c879;
}

.managerPlayerMoney .negative,
.managerPlayerTrend .negative {
  color: #ff4f4f;
}

.lastFiveBars {
  display: inline-grid;
  grid-template-columns: repeat(5, 18px);
  align-items: end;
  justify-content: start;
  gap: 5px;
  height: 42px;
}

.lastFiveBar {
  position: relative;
  display: block;
  height: 34px;
}

.lastFiveBar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: var(--bar-height, 8%);
  min-height: 3px;
}

.lastFiveBar.green::after {
  background: #2bd089;
}

.lastFiveBar.yellow::after {
  background: #e5c642;
}

.lastFiveBar.orange::after {
  background: var(--accent);
}

.lastFiveBar.red::after {
  background: #ff4f4f;
}

.lastFiveBar.empty::after {
  background: #303036;
}

.lastFiveBar em {
  position: absolute;
  right: 0;
  bottom: calc(var(--bar-height, 8%) + 2px);
  left: 0;
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.nextOpponents {
  display: inline-flex;
  justify-content: flex-start;
  gap: 8px;
}

.nextOpponent {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 34px;
}

.nextOpponentLogo,
.nextOpponentLogo.teamLogoFallback {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.nextOpponent em {
  position: absolute;
  right: -3px;
  top: -2px;
  min-width: 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #050505;
  font-size: 8px;
  font-style: normal;
  font-weight: 950;
  text-align: center;
}

.mutedDash,
.managerPlayerEmpty {
  color: var(--muted-2);
}

.managerPlayerEmpty {
  padding: 14px;
  font-size: 12px;
  font-weight: 800;
}

.managerAvatar,
.playerAvatar,
.fieldAvatar,
.avatarFallback {
  display: grid;
  place-items: center;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #222226;
  color: var(--accent);
  font-weight: 950;
}

.managerAvatarFallback {
  position: relative;
  overflow: hidden;
  color: var(--accent);
}

.managerAvatarFallback > img {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.managerAvatarFallback > span {
  position: relative;
  z-index: 1;
  color: var(--accent);
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
}

.managerAvatar {
  width: 44px;
  height: 44px;
  font-size: 14px;
}

.playerAvatar {
  width: 38px;
  height: 38px;
  font-size: 12px;
}

.fieldAvatar {
  width: 46px;
  height: 46px;
  font-size: 13px;
}

.squadModal {
  width: min(960px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0;
  background: var(--surface);
  color: var(--text);
}

.squadModal::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.modalShell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: calc(100vh - 34px);
}

.modalHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.modalManagerTitle {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.modalManagerTitle h2 {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 24px;
}

.modalManagerTitle p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.iconButton {
  width: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  background: #09090a;
  color: var(--text);
  font-size: 20px;
  line-height: 1;
}

.topIconButton {
  display: inline-grid;
  place-items: center;
  color: var(--muted);
}

.topIconButton:hover,
.topIconButton:focus-visible,
.topIconButton[aria-expanded="true"],
.topIconButton[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.topIconButton svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

#modalBody {
  overflow: auto;
  padding: 16px;
  background: #101011;
}

.pitch {
  position: relative;
  min-height: min(760px, calc(100vh - 210px));
  overflow: hidden;
  padding: 56px 44px;
  border: 0;
  background: #151517;
  color: var(--text);
}

.fieldMark {
  position: absolute;
  z-index: 0;
  border-color: rgba(255, 255, 255, 0.78);
  pointer-events: none;
}

.fieldOuter {
  inset: 32px 40px;
  border: 3px solid;
}

.fieldHalfway {
  top: 50%;
  right: 40px;
  left: 40px;
  border-top: 3px solid;
}

.fieldCenterCircle {
  top: 50%;
  left: 50%;
  width: min(260px, 31%);
  aspect-ratio: 1;
  border: 3px solid;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.fieldPenalty {
  left: 24%;
  width: 52%;
  height: 18%;
  border: 3px solid;
}

.fieldPenaltyTop {
  top: 32px;
}

.fieldPenaltyBottom {
  bottom: 32px;
}

.fieldSix {
  left: 40%;
  width: 20%;
  height: 6%;
  border: 3px solid;
}

.fieldSixTop {
  top: 32px;
}

.fieldSixBottom {
  bottom: 32px;
}

.pitchRows {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 1fr 1.12fr 1.12fr 0.88fr;
  gap: 16px;
  height: 100%;
  min-height: 650px;
}

.pitchLine {
  display: grid;
  align-items: center;
}

.pitchPlayers {
  display: grid;
  grid-template-columns: repeat(var(--slots), minmax(78px, 1fr));
  justify-items: center;
  align-items: center;
  gap: 12px;
  min-height: 120px;
}

.fieldPlayer {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 9px;
  width: min(116px, 100%);
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
}

.fieldPortrait {
  position: relative;
  display: block;
  width: clamp(70px, 9vw, 98px);
  height: clamp(70px, 9vw, 98px);
}

.fieldAvatar,
.fieldAvatar.avatarFallback {
  width: 100%;
  height: 100%;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: #2a2a2e;
  color: var(--text);
  font-size: 23px;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
}

.fieldBadge {
  position: absolute;
  right: 4px;
  bottom: -5px;
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  border: 3px solid #151517;
  border-radius: 999px;
  background: #f4f4f5;
  color: #09090a;
  font-size: 12px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.fieldPlayer strong {
  width: 100%;
  overflow: hidden;
  color: var(--text);
  font-size: clamp(13px, 1.7vw, 20px);
  font-weight: 950;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.emptySlot {
  width: clamp(70px, 9vw, 98px);
  height: clamp(70px, 9vw, 98px);
  visibility: hidden;
}

.reserveSection {
  margin-top: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.reserveSection h3 {
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  letter-spacing: 0;
}

.reserveGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.reservePlayer {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 88px;
  gap: 10px;
  align-items: center;
  min-height: 50px;
  padding: 7px 10px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.reservePlayer .playerAvatar,
.reservePlayer .avatarFallback {
  border-radius: 50%;
}

.playerMain,
.playerStats {
  min-width: 0;
}

.playerMain strong,
.playerMain span,
.playerStats strong,
.playerStats span {
  display: block;
}

.playerMain strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.playerMain span,
.playerStats span {
  color: var(--muted-2);
  font-size: 12px;
}

.playerStats {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.playerStats strong {
  color: var(--accent);
  font-size: 14px;
}

.diagnostics {
  margin-top: 14px;
  padding: 14px 16px;
  color: var(--muted);
}

.diagnostics h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 15px;
}

.diagnosticActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.probeOutput {
  overflow: auto;
  max-height: 360px;
  margin: 0 0 12px;
  border: 1px solid var(--line);
  padding: 12px;
  background: #080809;
  color: var(--text);
  font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: pre-wrap;
}

.gameTrackingOutput {
  display: grid;
  gap: 12px;
  margin: 0 0 12px;
}

.trackingHead,
.trackingMatch {
  border: 1px solid var(--line);
  background: #080809;
}

.trackingHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
}

.trackingHead strong {
  display: block;
  color: var(--text);
  font-size: 18px;
}

.trackingHead span,
.trackingHead em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.trackingUpdated {
  display: grid;
  justify-items: end;
  gap: 2px;
  border-left: 2px solid var(--accent);
  padding-left: 12px;
  min-width: max-content;
}

.trackingUpdated span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.trackingUpdated strong {
  color: var(--text);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.trackingMatch {
  padding: 14px;
}

.trackingMatch + .trackingMatch {
  margin-top: 10px;
}

.trackingMatchTop {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 12px;
}

.trackingTeam {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.trackingTeamAway {
  justify-content: flex-end;
}

.trackingTeam strong {
  overflow: hidden;
  color: var(--text);
  font-size: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trackingTeamLogo,
.trackingTeamLogo.teamLogoFallback {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.trackingScoreBox {
  display: grid;
  justify-items: center;
  min-width: 128px;
  color: var(--text);
}

.trackingScoreBox strong {
  color: var(--text);
  font-size: 34px;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}

.trackingScoreBox span,
.trackingClock {
  color: var(--accent);
  font-size: 16px;
  font-weight: 950;
}

.trackingMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.trackingMeta span {
  border: 1px solid var(--line);
  padding: 5px 8px;
  color: var(--muted);
  font-size: 12px;
}

.trackingPlayerGroups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.trackingPlayerGroup h3,
.trackingActions h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 13px;
  text-transform: uppercase;
}

.trackingPlayers {
  display: grid;
  gap: 6px;
}

.trackingPlayer,
.trackingAction {
  display: grid;
  align-items: center;
  background: #111113;
}

.trackingPlayer {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 52px;
  padding: 5px 8px 5px 5px;
}

.trackingPlayerAvatar,
.trackingPlayerAvatar.avatarFallback {
  width: 42px;
  height: 42px;
  background: #1c1c20;
  object-fit: cover;
}

.trackingPlayer strong,
.trackingActionMain strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trackingPlayer span,
.trackingActionMain em {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trackingPlayer .trackingPlayerIcons {
  display: flex;
  gap: 4px;
  align-items: center;
  min-height: 18px;
  margin-top: 3px;
  overflow: visible;
}

.trackingPlayerIcon {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  color: var(--text);
}

.trackingPlayerIcon svg {
  width: 17px;
  height: 17px;
}

.trackingPlayer em {
  color: var(--text);
  font-size: 22px;
  font-style: normal;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.trackingPlayer em.negative,
.trackingActionPoints.negative {
  color: #d84d3f;
}

.trackingPlayer em.positive,
.trackingActionPoints.positive {
  color: #5fba65;
}

.trackingActions {
  margin-top: 14px;
}

.trackingActionList {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  max-height: 420px;
  overflow: auto;
}

.trackingAction {
  grid-template-columns: 42px 28px minmax(0, 1fr) auto;
  gap: 8px;
  min-height: 46px;
  padding: 6px 8px;
}

.trackingActionTime {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.trackingActionIcon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--text);
}

.trackingActionIcon svg {
  width: 24px;
  height: 24px;
}

.trackingActionIconEmpty {
  opacity: 0.2;
}

.trackingActionPoints {
  color: var(--text);
  font-size: 17px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.trackingEmpty {
  border: 1px solid var(--line);
  padding: 16px;
  background: #080809;
  color: var(--muted);
}

.diagnostics ul {
  margin: 0;
  padding-left: 18px;
}

.diagnostics li + li {
  margin-top: 4px;
}

body.portraitMode .livePanel {
  grid-template-rows: auto auto;
  align-content: start;
  gap: 0;
  min-height: 0;
}

body.portraitMode .liveGame {
  grid-template-rows: auto auto auto;
  align-content: start;
  min-height: 0;
  padding: 0;
}

body.portraitMode .liveGame.hasParallelMatches {
  grid-template-rows: auto auto auto auto;
}

body.portraitMode .liveScoreboard {
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.7fr) minmax(0, 1fr);
  width: 100%;
  height: clamp(290px, 38.6vh, 442px);
  min-height: clamp(290px, 38.6vh, 442px);
  margin-right: 0;
  margin-left: 0;
}

body.portraitMode .scoreTeamLogo,
body.portraitMode .scoreTeamLogo.teamLogoFallback {
  width: clamp(380px, 62.1vw, 575px);
  height: clamp(380px, 62.1vw, 575px);
}

body.portraitMode .scoreTeamHome .scoreTeamLogo,
body.portraitMode .scoreTeamHome .scoreTeamLogo.teamLogoFallback {
  transform: translate(-32%, -9%);
}

body.portraitMode .scoreTeamAway .scoreTeamLogo,
body.portraitMode .scoreTeamAway .scoreTeamLogo.teamLogoFallback {
  transform: translate(32%, -9%);
}

body.portraitMode .scoreValue {
  min-width: clamp(190px, 38vw, 330px);
  font-size: clamp(108px, 22vw, 178px);
}

body.portraitMode .gameClock {
  min-width: clamp(138px, 28vw, 220px);
  font-size: clamp(34px, 6.6vw, 54px);
}

body.portraitMode .liveManagerRow {
  grid-template-columns: 92px 128px minmax(0, 1fr);
  height: 95px;
  min-height: 0;
  padding: 0;
}

body.portraitMode .liveManagerInfo {
  margin-left: -18px;
  padding: 9px 28px 42px 28px;
  clip-path: polygon(var(--live-slant) 0, 100% 0, calc(100% - var(--live-slant)) 100%, 0 100%);
}

body.portraitMode .liveManagerName {
  font-size: clamp(15px, 3.15vw, 23px);
}

body.portraitMode .livePlayingCount {
  font-size: clamp(13px, 2.8vw, 18px);
}

body.portraitMode .liveManagerScore {
  right: -28px;
  bottom: 0;
  left: -28px;
  min-width: 0;
  height: 38px;
  margin: 0;
  font-size: 32px;
  padding: 0 12px;
}

body.portraitMode .liveActivePlayers {
  overflow: hidden;
  margin-left: -18px;
  padding: 0 10px;
}

body.portraitMode .livePlayerChip {
  flex-basis: 215px;
  grid-template-columns: 108px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
}

body.portraitMode .livePlayerChipCompact {
  flex-basis: 104px;
  grid-template-columns: minmax(0, 1fr);
}

.empty {
  padding: 20px;
  color: var(--muted);
}

.empty.small {
  padding: 12px;
}

.errorText {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--danger);
  font-weight: 800;
}

.errorText.compact {
  padding: 0 12px 10px;
  font-size: 13px;
}

@media (max-width: 820px) {
  .topbar {
    right: 9px;
    bottom: 9px;
    width: max-content;
  }

  .topControls {
    max-width: 100%;
  }

  .viewToggle {
    width: auto;
  }

  .topMenu {
    right: 0;
  }

  .loginForm,
  .toolbar {
    grid-template-columns: 1fr;
  }

  .nextMatch {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: 0;
  }

  .liveHero {
    min-height: 640px;
    padding: 18px;
  }

  .smallMatch {
    grid-template-columns: max-content 24px max-content max-content;
  }

  .liveGame {
    min-height: 680px;
    padding: 16px;
  }

  .liveScoreboard {
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    height: 205px;
    min-height: 205px;
  }

  .scoreNotch {
    max-width: calc(100% - 92px);
    min-height: 30px;
    padding: 0 18px;
    font-size: 11px;
  }

  .scoreTeamLogo,
  .scoreTeamLogo.teamLogoFallback {
    top: 0;
    width: 357px;
    height: 357px;
  }

  .scoreTeamHome .scoreTeamLogo,
  .scoreTeamHome .scoreTeamLogo.teamLogoFallback {
    transform: translate(-32%, -12%);
  }

  .scoreTeamAway .scoreTeamLogo,
  .scoreTeamAway .scoreTeamLogo.teamLogoFallback {
    transform: translate(32%, -12%);
  }

  .scoreTeam strong {
    bottom: 6px;
    font-size: 20px;
  }

  .scoreValue {
    min-width: 178px;
    font-size: 104px;
  }

  .gameClock {
    min-width: 128px;
    font-size: 31px;
  }

  .scoreFlash {
    grid-template-columns: 112px minmax(0, 1fr) 74px;
    gap: 12px;
    min-height: 100%;
    padding: 0 12px;
  }

  .scoreFlashAvatar,
  .scoreFlashAvatar.avatarFallback {
    top: -18px;
    bottom: auto;
    left: -52px;
    width: 230px;
    height: 210px;
  }

  .scoreFlashManagerBadge {
    left: 10px;
    bottom: 0;
    width: 46px;
    height: 46px;
    border-width: 3px;
  }

  .scoreFlashHeadline {
    font-size: 42px;
    text-shadow:
      1px 0 0 #ffffff,
      -1px 0 0 #ffffff,
      0 1px 0 #ffffff,
      0 -1px 0 #ffffff,
      1px 1px 0 #ffffff,
      -1px 1px 0 #ffffff,
      1px -1px 0 #ffffff,
      -1px -1px 0 #ffffff;
  }

  .scoreFlashPoints strong {
    font-size: 43px;
  }

  .scoreFlashMinuteBadge,
  .scoreFlashPointAward {
    width: 76px;
    height: 76px;
    border-width: 3px;
  }

  .scoreFlashPointAward span,
  .scoreFlashMinuteBadge span {
    font-size: 10px;
  }

  .liveManagerRow {
    grid-template-columns: 82px 116px minmax(0, 1fr);
    height: 83px;
    min-height: 0;
  }

  .liveManagerInfo {
    margin-left: -16px;
    padding: 7px 24px 37px 25px;
    clip-path: polygon(var(--live-slant) 0, 100% 0, calc(100% - var(--live-slant)) 100%, 0 100%);
  }

  .liveManagerRank {
    width: 30px;
    height: 30px;
    font-size: 22px;
  }

  .liveManagerName {
    font-size: 16px;
  }

  .livePlayingCount {
    font-size: 16px;
  }

  .liveManagerScore {
    right: -24px;
    bottom: 0;
    left: -25px;
    min-width: 0;
    height: 34px;
    margin: 0;
    font-size: 30px;
    padding: 0 10px;
  }

  .liveActivePlayers {
    overflow: hidden;
    margin-left: -16px;
    padding: 0 8px;
  }

  .livePlayerChip {
    flex-basis: 192px;
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    min-height: 0;
  }

  .livePlayerChipCompact {
    flex-basis: 92px;
    grid-template-columns: minmax(0, 1fr);
  }

  .livePlayerChip strong {
    font-size: 16px;
  }

  .livePlayerChip em {
    font-size: 30px;
  }

  .managerHeader {
    grid-template-columns: 28px 42px minmax(0, 1fr) 62px;
    padding-left: 8px;
    font-size: 10px;
  }

  .managerHeader span:nth-child(5),
  .managerHeader span:nth-child(6),
  .managerHeader .sortButton:nth-child(7),
  .managerHeader .sortButton:nth-child(8) {
    display: none;
  }

  .managerCard {
    grid-template-columns: 28px 42px minmax(0, 1fr) 62px;
    height: 42px;
    min-height: 0;
  }

  .managerTitleBlock {
    padding: 5px 16px 5px 18px;
  }

  .managerRank {
    width: auto;
    height: auto;
    font-size: 15px;
  }

  .managerTitle h2 {
    font-size: 12px;
  }

  .managerStats {
    display: none;
  }

  .managerStats.managerPointsStat,
  .managerStats.highlightStat:last-child {
    display: grid;
    padding: 5px 14px;
  }

  .managerStats.highlightStat:last-child {
    display: none;
  }

  .pitch {
    min-height: 620px;
    padding: 44px 20px;
  }

  .fieldOuter {
    inset: 24px 18px;
  }

  .fieldHalfway {
    right: 18px;
    left: 18px;
  }

  .pitchPlayers {
    grid-template-columns: repeat(var(--slots), minmax(58px, 1fr));
    gap: 6px;
    min-height: 106px;
  }

  .fieldPlayer {
    width: min(82px, 100%);
  }

  .fieldBadge {
    right: 0;
    min-width: 26px;
    height: 26px;
    border-width: 2px;
    font-size: 11px;
  }

  .reserveGrid {
    grid-template-columns: 1fr;
  }
}

body.liveMode.layoutLandscape .liveManagerRow {
  grid-template-columns: clamp(34px, 3vw, 58px) clamp(72px, 5.7vw, 109px) clamp(168px, 12vw, 246px) minmax(0, 1fr) clamp(55px, 5.1vw, 96px);
  height: clamp(64px, 6.57vh, 96px);
}

body.liveMode.layoutLandscape .liveManagerPhoto {
  grid-column: 2 / 3;
  clip-path: polygon(var(--live-slant) 0, 100% 0, calc(100% - var(--live-slant)) 100%, 0 100%);
}

body.liveMode.layoutLandscape .liveManagerAvatar,
body.liveMode.layoutLandscape .liveManagerAvatar.avatarFallback {
  width: 128%;
  transform: translateX(-8%);
}

body.liveMode.layoutLandscape .liveManagerInfo {
  grid-column: 3 / 4;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  align-content: center;
  align-items: center;
  margin-left: clamp(-18px, -1.2vw, -10px);
  padding-top: 0;
  padding-left: clamp(20px, 1.65vw, 36px);
  padding-bottom: 0;
  clip-path: polygon(var(--live-slant) 0, 100% 0, calc(100% - var(--live-slant)) 100%, 0 100%);
}

body.liveMode.layoutLandscape .liveManagerName {
  align-self: center;
  font-size: clamp(11px, 1.16vw, 22px);
}

body.liveMode.layoutLandscape .liveManagerRank {
  display: none;
}

body.liveMode.layoutLandscape .liveManagerRankLandscape {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  display: grid;
  place-items: center;
  align-self: stretch;
  justify-self: stretch;
  width: auto;
  height: auto;
  margin: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  font-size: clamp(20px, 2vw, 38px);
}

body.liveMode.layoutLandscape .liveActivePlayers {
  grid-column: 4 / 5;
}

body.liveMode.layoutLandscape .livePlayerChip {
  flex-basis: clamp(164px, 10.82vw, 240px);
}

body.liveMode.layoutLandscape .livePlayerChipCompact {
  flex-basis: clamp(68px, 4.95vw, 112px);
  grid-template-columns: minmax(0, 1fr);
}

body.liveMode.layoutLandscape .liveManagerScorePortrait {
  display: none;
}

body.liveMode.layoutLandscape .liveManagerScoreLandscape {
  position: static;
  grid-column: 5 / 6;
  grid-row: 1 / 2;
  align-self: stretch;
  display: grid;
  width: calc(100% + clamp(18px, 1.4vw, 34px));
  height: 100%;
  margin-left: clamp(-22px, -1.4vw, -12px);
  padding: 0 clamp(16px, 1.2vw, 26px) 0 clamp(22px, 1.6vw, 36px);
  clip-path: polygon(var(--live-slant) 0, 100% 0, 100% 100%, 0 100%);
  background: #ffffff;
  color: #050505;
  font-size: clamp(17px, 2.1vw, 35px);
  line-height: 1;
}

body.liveMode.layoutLandscape .liveManagerScoreLandscape.scoreCounterPulse,
body.portraitMode .liveManagerScore.scoreCounterPulse {
  color: #00873e;
}

body.liveMode.layoutLandscape .liveManagerScoreLandscape.scoreCounterPulseNegative,
body.portraitMode .liveManagerScore.scoreCounterPulseNegative {
  color: #9f1421;
}

.liveManagerScore.managerScoreCounterPositive,
body.portraitMode .liveManagerScore.managerScoreCounterPositive,
body.liveMode.layoutLandscape .liveManagerScoreLandscape.managerScoreCounterPositive {
  background: #00873e;
  color: #ffffff;
}

.liveManagerScore.managerScoreCounterNegative,
body.portraitMode .liveManagerScore.managerScoreCounterNegative,
body.liveMode.layoutLandscape .liveManagerScoreLandscape.managerScoreCounterNegative {
  background: #9f1421;
  color: #ffffff;
}

/* Share the live scoreboard's fixed height in every orientation. */
body .liveScoreboard.matchdayCountdownHero {
  grid-template-columns: minmax(0, 360px) minmax(0, 300px);
  grid-template-rows: minmax(0, 1fr);
  justify-content: center;
  gap: 8px clamp(12px, 2vw, 28px);
  padding: 12px clamp(12px, 2vw, 32px);
}

.matchdayCountdownHero .matchdayCountdownHeading {
  grid-column: 1 / -1;
  min-width: 0;
}

.matchdayCountdownHero .liveEyebrow {
  margin: 0;
  font-size: clamp(14px, 1.4vw, 22px);
}

.matchdayCountdownHero .countdownBlock {
  padding: 8px 0;
}

.matchdayCountdownHero .countdownValue {
  font-size: clamp(26px, 4vw, 66px);
  white-space: nowrap;
}

.matchdayPairings {
  display: grid;
  align-content: center;
  gap: 6px;
  max-height: 100%;
  overflow: auto;
}

.matchdayPairing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  font-size: clamp(11px, 1.2vw, 19px);
  font-weight: 800;
}

.matchdayPairing > span {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.matchdayPairing > span:first-child {
  justify-content: flex-end;
  text-align: right;
}

.matchdayPairing small {
  color: var(--muted);
}

.pairingLogo {
  flex: 0 0 auto;
  width: clamp(18px, 1.6vw, 26px);
  height: clamp(18px, 1.6vw, 26px);
  object-fit: contain;
  font-size: 10px;
}

body .liveScoreboard.matchdayCountdownHeroSingle {
  grid-template-columns: minmax(0, 430px) minmax(0, 430px);
  column-gap: clamp(24px, 4vw, 72px);
}

.matchdayCountdownHeroSingle .countdownBlock {
  padding: 12px 0;
}

.matchdayCountdownHeroSingle .countdownValue {
  font-size: clamp(34px, 4.8vw, 82px);
}

.matchdayCountdownHeroSingle .matchDate,
.matchdayCountdownHeroSingle .countdownBlock > span {
  font-size: clamp(12px, 1.15vw, 19px);
}

.matchdayCountdownHeroSingle .matchdayPairing {
  gap: clamp(14px, 1.6vw, 28px);
  font-size: clamp(20px, 2.15vw, 38px);
}

.matchdayCountdownHeroSingle .matchdayPairing > span {
  gap: clamp(10px, 0.9vw, 16px);
}

.matchdayCountdownHeroSingle .pairingLogo {
  width: clamp(38px, 3.4vw, 60px);
  height: clamp(38px, 3.4vw, 60px);
}

.livePlayerChip.livePlayerChipUpcoming .livePlayerAvatar {
  opacity: 0.42;
  filter: grayscale(0.85) brightness(0.65);
}

body.liveMode .livePanel .livePlayerChip em.livePlayerKickoff {
  color: #929292;
  font-size: clamp(12px, 0.85vw, 18px);
  font-weight: 600;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.72);
}

body .topbar {
  top: 12px;
  right: 12px;
  bottom: auto;
}

.topbar .topControls {
  gap: 0;
  padding: 4px;
  border: 1px solid #353537;
  border-radius: 999px;
  background: rgba(12, 12, 14, 0.94);
  box-shadow: 0 4px 20px #0005;
}

.topbar .viewToggle {
  border: 0;
  background: transparent;
  min-height: 32px;
}

.topbar .viewButton,
.topbar .topControls > .topIconButton {
  border: 0;
  border-radius: 999px;
  min-height: 32px;
  height: 32px;
}

.topbar .topControls > .topIconButton {
  width: 34px;
  background: transparent;
}

.topbar .topMenu {
  top: calc(100% + 8px);
  bottom: auto;
  border-radius: 16px;
}

.topControls:has(#viewToggle[hidden]) {
  display: none;
}

.leagueBoard .managerHeader,
.leagueBoard .managerCard {
  grid-template-columns: 38px 66px 182px 64px 92px 122px 80px 110px 120px 112px 114px;
  width: 1100px;
  max-width: none;
  min-width: 1100px;
}

.leagueBoard .managerHeader {
  padding-left: 0;
  padding-right: 0;
  text-align: left;
}

.leagueBoard .managerCard {
  height: clamp(58px, 4.2vw, 78px);
}

.leagueBoard .managerHeader > *,
.leagueBoard .managerCard > .managerStats {
  display: block;
  align-content: center;
  padding-right: 8px;
  text-align: left;
}

.leagueBoard .managerHeader .sortButton,
.leagueBoard .managerHeader > .nameSort {
  text-align: left;
}

.leagueBoard .managerStats.managerPointsStat,
.leagueBoard .managerStats.managerMatchdayStat,
.leagueBoard .managerStats.managerMatchdayWinsStat {
  color: var(--accent);
}

.managerGrid {
  overflow-x: auto;
}

.topControls > #menuButton { order: 1; }
.topControls > #fullscreenButton { order: 2; }
.leagueBoard .leagueManagerList { min-width: 1100px; }
.leagueBoard .managerRank {
  justify-self: start;
  padding-left: 10px;
  text-align: left;
}


.livePanel > .liveGame {
  row-gap: 0;
}

.menuLeagueSelect {
  display: grid;
  gap: 6px;
  padding: 6px;
  min-width: 0;
}

.menuLeagueSelect > span {
  color: var(--muted);
  font-size: 12px;
}

.menuLeagueSelect select {
  width: 100%;
  min-width: 0;
  max-width: min(320px, calc(100vw - 60px));
  border-radius: 8px;
}

.menuScoreDelay {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 8px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 10px 6px 2px;
}

.menuScoreDelayHeading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
}

.toggleSwitch {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 20px;
  cursor: pointer;
}

.toggleSwitch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.toggleSwitchTrack {
  position: absolute;
  inset: 0;
  border: 1px solid #505054;
  border-radius: 999px;
  background: #242427;
  transition: 180ms ease;
}

.toggleSwitchTrack::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #9b9b9f;
  transition: 180ms ease;
}

.toggleSwitch input:checked + .toggleSwitchTrack {
  border-color: var(--accent);
  background: var(--accent);
}

.toggleSwitch input:checked + .toggleSwitchTrack::after {
  transform: translateX(14px);
  background: #130700;
}

.toggleSwitch input:focus-visible + .toggleSwitchTrack {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.menuScoreDelaySeconds {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
}

.menuScoreDelaySeconds input {
  min-width: 0;
  min-height: 30px;
  border-radius: 8px;
  padding: 0 7px;
  font-size: 12px;
  text-align: right;
}

.menuScoreDelaySeconds input:disabled {
  opacity: 0.42;
}

.menuStats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 6px;
  color: var(--muted);
  font-size: 11px;
}

.menuStats span,
.menuStats strong {
  display: block;
}

.menuStats strong {
  margin-top: 3px;
  color: var(--text);
  font-size: 13px;
}

.menuActions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.menuActions button {
  min-width: 0;
  min-height: 30px;
  border-radius: 999px;
  padding-inline: 12px;
  font-size: 11px;
}

.loginPanel {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  max-width: none;
  border: 0;
  padding: 24px;
  background-color: #070708;
  background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}

.loginBox {
  display: grid;
  gap: 18px;
  width: min(430px, 100%);
  border: 1px solid #353537;
  border-radius: 26px;
  padding: clamp(24px, 4vw, 40px);
  background: rgba(12, 12, 14, 0.97);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.loginBrand {
  display: grid;
  gap: 5px;
}

.loginBrand span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.loginBrand strong {
  font-size: clamp(28px, 6vw, 42px);
  line-height: 1;
}

.loginPanel .loginForm {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.loginPanel input,
.loginPanel button {
  min-height: 48px;
  border-radius: 999px;
  padding-inline: 18px;
}

.loginDisclaimer {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.loginBox .errorText {
  margin: 0;
}

.managerPlayerPanel {
  width: 930px;
  max-width: 100%;
  padding: 14px 12px;
}

.managerPlayerCarousel {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: max-content;
}

.managerPlayerCircle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.managerPlayerCircle .managerPlayerAvatar,
.managerPlayerCircle .managerPlayerAvatar.avatarFallback {
  width: 58px;
  height: 58px;
  border: 2px solid #303034;
  border-radius: 50%;
  background: #19191c;
  object-fit: cover;
  object-position: center top;
}

.managerPlayerCircle > strong {
  min-width: 24px;
  color: var(--text);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.siteFooter {
  position: fixed;
  z-index: 75;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 16px;
  background: rgba(7, 7, 8, 0.94);
  box-shadow: 0 -5px 18px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
}

.footerLegal {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footerTextButton {
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 2px 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.footerTextButton:hover,
.footerTextButton:focus-visible {
  color: var(--text);
}

.donateButton {
  min-height: 30px;
  border-radius: 999px;
  padding: 0 18px;
  box-shadow: 0 0 16px rgba(255, 90, 0, 0.22);
  font-size: 12px;
}

body:not(.fullscreenActive).liveMode .shell,
body:not(.fullscreenActive).leagueMode .shell {
  padding-bottom: 42px;
}

body.fullscreenActive .siteFooter,
:fullscreen .siteFooter,
:-webkit-full-screen .siteFooter {
  display: none;
}

.infoDialog {
  width: min(460px, calc(100vw - 32px));
  border: 1px solid #3a3a3f;
  border-radius: 22px;
  padding: 20px;
  background: #111113;
  color: var(--text);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.72);
}

.infoDialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.infoDialogHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.infoDialogHeader h2 {
  margin: 0;
  color: var(--accent);
  font-size: 22px;
}

.dialogCloseButton {
  flex: 0 0 auto;
  width: 30px;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0;
  background: #1b1b1e;
  color: var(--text);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}

.infoDialog p {
  margin: 0 0 12px;
  color: #d4d4d7;
  font-size: 14px;
  line-height: 1.5;
}

.infoDialog p:last-child {
  margin-bottom: 0;
}

.infoDialog .infoDialogNote {
  color: var(--muted);
  font-size: 12px;
}

.infoDialog code {
  color: var(--accent);
}

.donateDialog {
  width: min(520px, calc(100vw - 32px));
  padding: 22px;
  text-align: center;
}

.donateDialog .infoDialogHeader {
  margin-bottom: 8px;
}

.donateDialogEyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.donateDialogBody {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 8px clamp(4px, 2vw, 18px) 4px;
}

.donateDialogMark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--accent);
  color: #170800;
  font-size: 34px;
  font-weight: 950;
  transform: rotate(-6deg);
}

.donateDialog h2 {
  margin: 2px 0 0;
  color: var(--text);
  font-size: clamp(25px, 4vw, 34px);
  line-height: 1.05;
}

.donateDialogBody p {
  max-width: 390px;
  margin: 0 0 4px;
  color: var(--muted);
}

.paypalDonateLink {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  background: #ffc439;
  color: #003087;
  font-size: 16px;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(0, 48, 135, 0.2);
}

.paypalDonateLink:hover,
.paypalDonateLink:focus-visible {
  background: #ffcf5c;
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.paypalDonateLink > span {
  color: #0070e0;
  font-size: 24px;
  font-style: italic;
}

.donateCancelButton {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 12px;
}

.donateDialogBody small {
  color: var(--muted-2);
  font-size: 10px;
}
