:root {
  color-scheme: light;
  --bg: #eef2ee;
  --card: #ffffff;
  --sunken: #f4f7f4;
  --field: #f2f5f2;
  --line: #edf1ed;
  --line-2: #f0f3f0;
  --ink: #0f1a14;
  --ink-2: #4f5c54;
  --muted: #8a958e;
  --faint: #a3ada6;
  --ring: #dce3dd;
  --pitch: #0a4d32;
  --pitch-hover: #083f29;
  --pitch-ink: #0a4d32;
  --pitch-soft: #e3ede6;
  --lime: #b7f34a;
  --lime-hover: #c6f86a;
  --lime-ink: #0c2a1c;
  --live: #d92d3a;
  --danger: #b4232f;
  --danger-soft: #fce8ea;
  --danger-solid: #c42834;
  --warn: #8a5a00;
  --warn-soft: #fff3d6;
  --playoff: #3e63dd;
  --playoff-ink: #2f4db3;
  --hatch: #b9d9c4;
  --swatch-ring: inset 0 0 0 1px rgb(0 0 0 / 0.15);
  --nav-shadow: 0 1px 2px rgb(15 26 20 / 0.06);
  --pop-shadow: 0 12px 32px rgb(15 26 20 / 0.18), 0 0 0 1px rgb(15 26 20 / 0.06);
  --font: "Barlow", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-cond: "Barlow Condensed", "Avenir Next Condensed", "Arial Narrow", "Roboto Condensed", sans-serif-condensed, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b120e;
    --card: #141d18;
    --sunken: #1a251f;
    --field: #1f2b24;
    --line: #223029;
    --line-2: #223029;
    --ink: #e8efea;
    --ink-2: #a9b5ad;
    --muted: #7f8c84;
    --faint: #66736b;
    --ring: #33433a;
    --pitch: #0f5c3b;
    --pitch-hover: #136b45;
    --pitch-ink: #8fd9a8;
    --pitch-soft: #1b3327;
    --danger: #ff8a93;
    --danger-soft: #3a1a1e;
    --danger-solid: #c42834;
    --warn: #f0c060;
    --warn-soft: #30260e;
    --playoff: #4b6fe6;
    --playoff-ink: #a3b6ff;
    --hatch: #2c4a39;
    --swatch-ring: inset 0 0 0 1px rgb(255 255 255 / 0.22);
    --nav-shadow: none;
    --pop-shadow: 0 12px 32px rgb(0 0 0 / 0.5), 0 0 0 1px rgb(255 255 255 / 0.07);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b120e;
  --card: #141d18;
  --sunken: #1a251f;
  --field: #1f2b24;
  --line: #223029;
  --line-2: #223029;
  --ink: #e8efea;
  --ink-2: #a9b5ad;
  --muted: #7f8c84;
  --faint: #66736b;
  --ring: #33433a;
  --pitch: #0f5c3b;
  --pitch-hover: #136b45;
  --pitch-ink: #8fd9a8;
  --pitch-soft: #1b3327;
  --danger: #ff8a93;
  --danger-soft: #3a1a1e;
  --danger-solid: #c42834;
  --warn: #f0c060;
  --warn-soft: #30260e;
  --playoff: #4b6fe6;
  --playoff-ink: #a3b6ff;
  --hatch: #2c4a39;
  --swatch-ring: inset 0 0 0 1px rgb(255 255 255 / 0.22);
  --nav-shadow: none;
  --pop-shadow: 0 12px 32px rgb(0 0 0 / 0.5), 0 0 0 1px rgb(255 255 255 / 0.07);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

[aria-disabled="true"] {
  cursor: not-allowed;
}

:focus-visible {
  outline: 2px solid var(--pitch-ink);
  outline-offset: 2px;
}

.pitch-card :focus-visible,
.ready-strip :focus-visible,
.tv :focus-visible {
  outline-color: var(--lime);
}

svg {
  width: 18px;
  height: 18px;
  flex: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

.sw {
  display: inline-block;
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sw, var(--team));
  box-shadow: var(--swatch-ring);
}

.is-tbd .sw {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--faint);
}

.crest {
  display: inline-block;
  flex: none;
  width: 1.4em;
  height: 1.4em;
  margin: -0.2em 0;
  color: var(--team);
  vertical-align: middle;
}

.crest svg {
  display: block;
  width: 100%;
  height: 100%;
}

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

.tn.is-end {
  flex-direction: row-reverse;
}

.tn.is-tbd {
  color: var(--ink-2);
}

.tn-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}

.topbar-in {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding: 18px 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 200px;
  min-width: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--pitch);
  color: var(--lime);
}

.brand-mark svg,
.tv-mark svg {
  width: 100%;
  height: 100%;
}

.brand-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-cond);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.tabs {
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--nav-shadow);
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-weight: 500;
}

.tab:hover {
  color: var(--ink);
}

.tab.is-active {
  background: var(--pitch);
  color: #fff;
  font-weight: 600;
}

.tab-dot {
  display: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
}

.tab.has-live .tab-dot {
  display: block;
  animation: pulse 1.4s infinite;
}

.tab.is-active .tab-dot {
  background: #ff5a5f;
}

.tools {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  flex: 1 1 200px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-2);
  text-decoration: none;
}

.icon-btn:hover:not(:disabled) {
  color: var(--ink);
}

.icon-soft {
  background: var(--field);
}

.icon-soft:hover:not(:disabled) {
  background: var(--pitch-soft);
}

.icon-ghost {
  background: transparent;
  color: var(--muted);
}

.icon-ghost:hover:not(:disabled) {
  background: var(--field);
}

.icon-primary {
  width: 44px;
  height: 44px;
  background: var(--pitch);
  color: #fff;
}

.icon-primary:hover:not(:disabled) {
  background: var(--pitch-hover);
  color: #fff;
}

.icon-primary svg {
  stroke-width: 2.6;
}

.icon-sm {
  width: 36px;
  height: 36px;
}

.icon-sm svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--field);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover:not(:disabled) {
  background: var(--pitch-soft);
}

.btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.btn-sm {
  height: 40px;
  padding: 0 14px;
  font-size: 14px;
}

.btn-lg {
  height: 52px;
  padding: 0 26px;
  font-size: 16px;
  font-weight: 700;
}

.btn-primary {
  background: var(--pitch);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--pitch-hover);
}

.btn-lime {
  background: var(--lime);
  color: var(--lime-ink);
  font-weight: 700;
}

.btn-lime:hover:not(:disabled) {
  background: var(--lime-hover);
}

.btn-danger {
  background: var(--danger-solid);
  color: #fff;
}

.btn-danger:hover:not(:disabled) {
  background: #a8202b;
}

.btn-text-danger {
  background: transparent;
  color: var(--danger);
}

.btn-text-danger:hover:not(:disabled) {
  background: var(--danger-soft);
}

.btn-card {
  background: var(--card);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.spacer {
  flex: 1;
}

.card {
  border-radius: 22px;
  background: var(--card);
}

.card-title {
  font-family: var(--font-cond);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-transform: uppercase;
}

.card-note {
  font-size: 13px;
  color: var(--ink-2);
}

.view {
  max-width: 1240px;
  margin: 0 auto;
  padding: 4px 28px 48px;
}

.view-fixtures {
  max-width: 980px;
  padding-top: 8px;
}

.view-setup {
  max-width: 1180px;
  padding-top: 8px;
}

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 16px;
  padding: 0 4px;
}

.view-setup .page-head {
  align-items: center;
}

.page-title {
  font-family: var(--font-cond);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.page-sub {
  margin-top: 2px;
  color: var(--ink-2);
}

.page-note {
  padding: 0 4px;
  font-size: 14px;
  color: var(--ink-2);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.seg {
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: var(--card);
}

.seg button {
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
}

.seg button[aria-pressed="true"] {
  background: var(--pitch);
  color: #fff;
  font-weight: 600;
}

.seg-box {
  gap: 4px;
  padding: 0;
  background: transparent;
}

.seg-box button {
  flex: 1;
  height: 34px;
  padding: 0 8px;
  background: var(--card);
  font-family: var(--font-cond);
  font-size: 17px;
  font-weight: 600;
}

.seg-box button[aria-pressed="true"] {
  font-weight: 700;
}

.dash {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
}

.dash-main {
  flex: 999 1 600px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dash-side {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pitch-card {
  position: relative;
  overflow: hidden;
  padding: 24px 28px;
  border-radius: 28px;
  background: var(--pitch);
  color: #fff;
}

.pitch-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgb(255 255 255 / 0.07);
  stroke-width: 2;
  pointer-events: none;
}

.pitch-lines .spot {
  fill: rgb(255 255 255 / 0.07);
}

.pc-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.lc-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lc-top-l {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tag-live,
.tag-next {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag-live {
  background: var(--live);
  color: #fff;
}

.tag-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.4s infinite;
}

.tag-next {
  background: rgb(255 255 255 / 0.14);
  color: #fff;
}

.lc-no {
  font-family: var(--font-cond);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lc-no .of {
  color: rgb(255 255 255 / 0.6);
}

.lc-rest {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgb(255 255 255 / 0.8);
  font-size: 14px;
}

.lc-rest .sw {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  box-shadow: none;
}

.lc-rest strong {
  color: #fff;
  font-weight: 500;
}

.lc-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
}

.lc-team {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.lc-away {
  align-items: flex-end;
  text-align: right;
}

.lc-name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-family: var(--font-cond);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.05;
  text-transform: uppercase;
}

.lc-away .lc-name {
  flex-direction: row-reverse;
}

.lc-name-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.lc-name .sw {
  width: 14px;
  height: 14px;
  box-shadow: 0 0 0 3px rgb(255 255 255 / 0.18);
}

.lc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lc-home .lc-chips {
  padding-left: 24px;
}

.lc-away .lc-chips {
  justify-content: flex-end;
  padding-right: 24px;
}

.lc-chips-all {
  justify-content: center;
}

.chip-goal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.12);
  color: #fff;
  font-size: 14px;
}

.chip-goal:hover {
  background: rgb(255 255 255 / 0.2);
}

.chip-goal svg {
  width: 12px;
  height: 12px;
  opacity: 0.7;
  stroke-width: 2.2;
}

.chip-goal .sw {
  width: 8px;
  height: 8px;
  box-shadow: none;
}

.chip-goal.is-unknown {
  padding: 0 12px;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--lime);
  color: var(--lime);
  font-weight: 600;
}

.chip-goal.is-open {
  background: #fff;
  box-shadow: none;
  color: #0a4d32;
  font-weight: 700;
}

.lc-score {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: var(--font-cond);
  font-size: 140px;
  font-weight: 700;
  line-height: 0.9;
}

.lc-dash {
  color: rgb(255 255 255 / 0.35);
  font-weight: 500;
}

.lc-play {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas:
    ". clock ."
    "home btns away";
  align-items: center;
  gap: 26px 12px;
}

.lc-clockbox {
  display: contents;
}

.lc-clock {
  grid-area: clock;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 26px 14px;
  border-radius: 18px;
  background: rgb(0 0 0 / 0.24);
}

.lc-time {
  font-family: var(--font-cond);
  font-size: 52px;
  font-weight: 600;
  line-height: 1;
}

.lc-state {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
}

.lc-state:empty {
  display: none;
}

.lc-bar {
  display: block;
  width: 180px;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.16);
}

.lc-bar > span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--lime);
  transition: width 0.25s linear;
}

[data-clock].is-paused [data-timer] {
  opacity: 0.55;
}

[data-clock].is-last-minute [data-timer] {
  color: var(--lime);
}

[data-clock].is-over [data-timer],
[data-clock].is-over [data-timer-state] {
  color: #ffa3aa;
}

[data-clock].is-over [data-timer-bar] {
  background: #ff6b75;
}

.lc-btns {
  grid-area: btns;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lc-btn {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 14px;
  background: rgb(255 255 255 / 0.12);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.lc-btn:hover {
  background: rgb(255 255 255 / 0.2);
}

.lc-toggle {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  background: #fff;
  color: #0a4d32;
  font-size: 16px;
  font-weight: 700;
}

.lc-toggle:hover {
  background: #e6efe9;
}

.lc-toggle svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.6;
}

.lc-goal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  background: var(--team-btn);
  color: var(--team-btn-ink);
  font-family: var(--font-cond);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lc-goal:hover {
  filter: brightness(1.08);
}

.lc-goal svg {
  stroke-width: 2.8;
}

.lc-goal-home {
  grid-area: home;
  justify-self: start;
}

.lc-goal-away {
  grid-area: away;
  justify-self: end;
}

.lc-goal-team {
  display: none;
}

.lc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgb(255 255 255 / 0.14);
}

.lc-cancel {
  height: 40px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: rgb(255 255 255 / 0.78);
  font-size: 14px;
  font-weight: 500;
}

.lc-cancel:hover {
  color: #fff;
}

.lc-finish {
  height: 48px;
}

.live-card.is-over .lc-finish {
  animation: nudge 1.6s ease-in-out infinite;
}

@keyframes nudge {
  50% {
    box-shadow: 0 0 0 7px rgb(183 243 74 / 0.3);
  }
}

.picker {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgb(0 0 0 / 0.3);
}

.picker-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.picker-title h2 {
  font-size: 16px;
  font-weight: 400;
}

.picker-soft {
  color: rgb(255 255 255 / 0.8);
}

.picker-team {
  font-family: var(--font-cond);
  font-size: 19px;
  font-weight: 700;
  text-transform: uppercase;
}

.pk-remove {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.14);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.pk-remove:hover {
  background: rgb(255 255 255 / 0.22);
}

.pk-remove svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
}

.pk-players {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pk-og-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: -4px;
  font-size: 13px;
  font-weight: 600;
  color: rgb(255 255 255 / 0.8);
}

.pk-player {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #0a4d32;
  font-size: 15px;
  font-weight: 600;
}

.pk-player:hover {
  background: #e6efe9;
}

.pk-player.is-on {
  background: var(--lime);
  color: var(--lime-ink);
  font-weight: 700;
}

.pk-player svg {
  width: 15px;
  height: 15px;
  stroke-width: 3;
}

.pk-more,
.pk-more:hover {
  padding: 0 16px;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.4);
  color: #fff;
  font-weight: 500;
}

.pk-later {
  height: 44px;
  margin-left: auto;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgb(255 255 255 / 0.8);
  font-size: 15px;
  font-weight: 500;
}

.pk-later:hover {
  color: #fff;
}

.pens {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgb(0 0 0 / 0.3);
}

.pens-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.pens label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-cond);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

.pens .sw {
  width: 12px;
  height: 12px;
  box-shadow: 0 0 0 3px rgb(255 255 255 / 0.18);
}

.pens-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.input-num {
  width: 72px;
  height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #0a4d32;
  text-align: center;
  font-family: var(--font-cond);
  font-size: 24px;
  font-weight: 700;
}

.form-error {
  font-size: 14px;
  font-weight: 600;
  color: var(--danger);
}

.pitch-card .form-error {
  color: #ffb3ba;
}

.form-error:empty {
  display: none;
}

.next-card .pc-body {
  gap: 22px;
}

.nc-teams {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 24px;
  font-family: var(--font-cond);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  text-align: center;
}

.nc-teams .tn {
  gap: 14px;
}

.nc-teams .tn-name {
  white-space: normal;
  overflow-wrap: anywhere;
}

.nc-teams .sw {
  width: 16px;
  height: 16px;
  box-shadow: 0 0 0 3px rgb(255 255 255 / 0.18);
}

.nc-teams .tn.is-tbd {
  color: rgb(255 255 255 / 0.6);
}

.nc-teams .is-tbd .sw {
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.4);
}

.nc-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.nc-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.2);
  color: rgb(255 255 255 / 0.85);
  font-size: 14px;
}

.nc-gap {
  align-self: center;
  padding: 8px 20px;
  border-radius: 16px;
  background: rgb(0 0 0 / 0.24);
  font-family: var(--font-cond);
  font-size: 28px;
  font-weight: 600;
}

.nc-gap.is-over {
  color: var(--lime);
}

.nc-foot {
  display: flex;
  justify-content: center;
}

.pc-alert {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgb(0 0 0 / 0.26);
}

.pc-alert .btn {
  background: rgb(255 255 255 / 0.14);
  color: #fff;
}

.pc-alert .btn:hover {
  background: rgb(255 255 255 / 0.24);
}

.champion .pc-body {
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  text-align: center;
}

.champ-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: var(--lime);
  color: var(--lime-ink);
}

.champ-icon svg {
  width: 36px;
  height: 36px;
}

.champ-kicker {
  font-family: var(--font-cond);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
}

.champ-name {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-cond);
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.champ-name .sw {
  width: 22px;
  height: 22px;
  box-shadow: 0 0 0 4px rgb(255 255 255 / 0.18);
}

.champ-line {
  color: rgb(255 255 255 / 0.85);
  font-size: 16px;
}

.champ-players {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.champ-players span {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.12);
  font-size: 14px;
}

.hero {
  max-width: 640px;
  margin: 24px auto 0;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  border-radius: 28px;
  text-align: center;
}

.hero-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--pitch);
  color: var(--lime);
}

.hero-mark svg {
  width: 28px;
  height: 28px;
}

.hero h1 {
  font-family: var(--font-cond);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.hero p {
  max-width: 44ch;
  color: var(--ink-2);
}

.checklist {
  width: 100%;
  max-width: 380px;
  margin: 6px 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--sunken);
  font-weight: 500;
}

.ck {
  width: 24px;
  height: 24px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--card);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
}

.is-done .ck {
  background: var(--pitch);
  color: var(--lime);
}

.ck svg {
  width: 13px;
  height: 13px;
  stroke-width: 3;
}

.checklist small {
  margin-left: auto;
  font-size: 13px;
  color: var(--ink-2);
}

.side-card {
  padding: 18px 20px;
}

.side-card .card-note {
  margin-top: 8px;
}

.side-next {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
}

.side-next-label {
  font-size: 13px;
  color: var(--ink-2);
}

.side-next-teams {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-cond);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.vs {
  color: var(--faint);
  font-weight: 500;
}

.alert-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px 20px;
  background: var(--warn-soft);
}

.alert-card strong {
  font-family: var(--font-cond);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--warn);
}

.alert-card p {
  font-size: 14px;
}

.standings {
  width: 100%;
  margin-top: 8px;
  border-collapse: collapse;
  table-layout: fixed;
}

.standings th {
  padding: 4px 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  text-align: center;
}

.standings th:first-child {
  width: 36px;
}

.standings th:nth-child(n + 3) {
  width: 38px;
}

.standings td {
  height: 42px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  text-align: center;
}

.standings td:first-child {
  text-align: left;
  white-space: nowrap;
}

.standings td:nth-child(2) {
  text-align: left;
  color: var(--ink);
  font-weight: 600;
}

.standings td:nth-child(2) .tn {
  max-width: 100%;
}

.standings .pts {
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
}

.rank {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
}

.rank-final {
  background: var(--pitch);
  color: #fff;
}

.rank-playoff {
  background: var(--pitch-soft);
  color: var(--pitch-ink);
}

.rank-out {
  background: var(--sunken);
  color: var(--ink-2);
}

.tie {
  margin-left: 2px;
  font-size: 12px;
  font-weight: 700;
  vertical-align: super;
  color: var(--warn);
}

.scorers {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.scorers li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
}

.scorers .tn {
  font-weight: 500;
}

.scorers strong {
  font-size: 17px;
}

.fx-card {
  padding: 14px 8px 8px;
  border-radius: 24px;
}

.fx-title {
  margin: 0 12px 6px;
  font-family: var(--font-cond);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.fx-rows {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fx-row {
  position: relative;
  display: grid;
  grid-template-columns: 76px 64px minmax(0, 1fr) 104px minmax(0, 1fr) 128px;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 12px;
  border-top: 1px solid var(--line);
}

.fx-row:first-child,
.fx-row.is-live + .fx-row {
  border-top-color: transparent;
}

.fx-label,
.fx-time {
  font-size: 14px;
  color: var(--ink-2);
}

.fx-label {
  font-weight: 500;
}

.fx-row.is-done .fx-time {
  color: var(--ink);
}

.fx-team {
  display: flex;
  min-width: 0;
}

.fx-home {
  justify-content: flex-end;
}

.fx-team .tn {
  gap: 9px;
  font-weight: 600;
}

.fx-row.is-done .tn {
  font-weight: 700;
}

.fx-row .tn.is-lose {
  color: var(--ink-2);
  font-weight: 500;
}

.fx-row .tn.is-tbd {
  font-weight: 500;
}

.fx-score {
  justify-self: center;
  min-width: 76px;
  min-height: 38px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1.5px var(--ring);
  color: var(--faint);
  font-family: var(--font-cond);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.fx-score small {
  margin-top: 2px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
}

.fx-row.is-done .fx-score {
  padding: 4px 8px;
  background: var(--pitch-soft);
  box-shadow: none;
  color: var(--pitch-ink);
}

.fx-act {
  position: relative;
  z-index: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fx-act .icon-btn svg {
  width: 16px;
  height: 16px;
}

.fx-row.is-playoff .fx-label {
  color: var(--playoff-ink);
  font-weight: 700;
}

.fx-row.is-final .fx-label {
  color: var(--pitch-ink);
  font-weight: 700;
}

.fx-row.is-skipped {
  opacity: 0.55;
}

.fx-row.is-skipped .tn-name {
  text-decoration: line-through;
}

.fx-row.is-live {
  min-height: 60px;
  border-radius: 16px;
  background: var(--pitch);
  color: #fff;
}

.fx-row.is-live .fx-label {
  color: rgb(255 255 255 / 0.8);
}

.fx-row.is-live .fx-time {
  font-family: var(--font-cond);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

.fx-row.is-live .tn {
  font-weight: 600;
}

.fx-row.is-live .sw {
  box-shadow: 0 0 0 2px rgb(255 255 255 / 0.2);
}

.fx-row.is-live .fx-score {
  background: #fff;
  box-shadow: none;
  color: #0a4d32;
}

.fx-row.is-live :focus-visible {
  outline-color: var(--lime);
}

.row-hit::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

button.fx-score,
button.iz-fx-score {
  border: 0;
}

.fx-row:has(> .row-hit):hover,
.iz-fx-row:has(> .row-hit):hover {
  background: var(--sunken);
}

.btn-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: 14px;
  font-weight: 700;
}

.btn-live:hover {
  background: var(--lime-hover);
}

.btn-live .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 6px;
  border: 0;
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-2);
  font-weight: 600;
}

.step.is-done {
  color: var(--pitch-ink);
}

.step.is-current {
  background: var(--pitch);
  color: #fff;
}

.step-no {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sunken);
  font-size: 13px;
  font-weight: 700;
}

.step.is-done .step-no {
  background: var(--pitch);
  color: var(--lime);
}

.step.is-current .step-no {
  background: var(--lime);
  color: var(--lime-ink);
}

.step-no svg {
  width: 13px;
  height: 13px;
  stroke-width: 3;
}

.setup {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
}

.setup-side {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.setup-main {
  flex: 999 1 600px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.demo-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 16px;
  padding: 22px 24px;
  border-radius: 24px;
  background: var(--pitch);
  color: #fff;
}

.demo-card h2 {
  font-family: var(--font-cond);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.demo-card p {
  max-width: 52ch;
  margin-top: 6px;
  color: rgb(255 255 255 / 0.82);
}

.demo-card .btn svg {
  width: 18px;
  height: 18px;
}

.demo-card-hero {
  max-width: 640px;
  margin: 24px auto 0;
}

.setup-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px 18px;
  border-radius: 24px;
  scroll-margin-top: 16px;
}

.setup-card .card-title {
  font-size: 22px;
  letter-spacing: 0;
}

.sc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sc-head-wrap {
  flex-wrap: wrap;
  gap: 8px 16px;
}

.sc-count {
  font-family: var(--font-cond);
  font-size: 22px;
  font-weight: 700;
  color: var(--pitch-ink);
}

.sc-hint {
  font-size: 13px;
  color: var(--ink-2);
}

.sc-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.sc-foot {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line-2);
  font-size: 13px;
  color: var(--ink-2);
}

.sc-foot.is-ok {
  color: var(--pitch-ink);
  font-weight: 600;
}

.sc-foot.is-warn {
  color: var(--warn);
  font-weight: 600;
}

.sc-foot svg {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  stroke-width: 2.8;
}

.players-card {
  gap: 10px;
  padding: 16px 0 10px;
}

.players-card .sc-head,
.players-card .pl-add,
.players-card .sc-hint {
  padding: 0 18px;
}

.players-card .sc-foot {
  margin: 0 18px;
}

.pl-add {
  display: flex;
  gap: 6px;
}

.input-pill {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--field);
  color: var(--ink);
}

.input-pill::placeholder {
  color: var(--ink-2);
}

.pl-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pl-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 60px 36px 36px;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 10px 0 18px;
  border-top: 1px solid var(--line-2);
}

.pl-input {
  min-width: 0;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-weight: 500;
}

.pot {
  position: relative;
  display: flex;
}

.pot select {
  width: 100%;
  height: 30px;
  padding: 0 22px 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--field);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.pot svg {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  color: var(--ink-2);
  stroke-width: 2.6;
  pointer-events: none;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.tc {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border-radius: 18px;
  background: var(--sunken);
}

.tc-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tc-name {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 0 0 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-cond);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
}

.tc-color {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 8px 0 6px;
  border: 0;
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-2);
}

.tc-color.is-open {
  box-shadow: 0 0 0 2px var(--pitch-ink);
}

.tc-color .sw {
  width: 24px;
  height: 24px;
}

.tc-color .crest {
  width: 28px;
  height: 28px;
  margin: 0;
}

.tc-color > svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.6;
}

.pop {
  position: absolute;
  z-index: 10;
  padding: 8px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--pop-shadow);
}

.pop-colors {
  top: 44px;
  right: -2px;
  width: 236px;
}

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

.pop-colors .pop-label {
  display: block;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--ring);
}

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

.pop-crest {
  display: grid;
  place-items: center;
  height: 48px;
  border: 0;
  border-radius: 10px;
  background: transparent;
}

.pop-crest:hover:not(.is-taken) {
  background: var(--sunken);
}

.pop-crest.is-on {
  background: var(--pitch-soft);
  box-shadow: inset 0 0 0 2px var(--pitch);
}

.pop-crest.is-taken {
  opacity: 0.35;
}

.pop-crest .crest {
  width: 32px;
  height: 32px;
  margin: 0;
}

.pop-crest .sw {
  width: 16px;
  height: 16px;
}

.pop-color {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}

.pop-color:hover:not(.is-taken) {
  background: var(--sunken);
}

.pop-color.is-on {
  background: var(--pitch-soft);
  font-weight: 700;
}

.pop-color.is-taken {
  opacity: 0.35;
  text-decoration: line-through;
}

.pop-color .sw {
  width: 14px;
  height: 14px;
}

.tc-players {
  margin: 0;
  padding: 4px 10px;
  list-style: none;
  border-radius: 12px;
  background: var(--card);
}

.unassigned {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.unassigned .tc-players {
  background: var(--sunken);
}

.tc-player {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border-bottom: 1px solid var(--line-2);
}

.tc-player:last-child {
  border-bottom: 0;
}

.tc-pname {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.tc-move {
  width: 30px;
  height: 30px;
  background: transparent;
}

.tc-move.is-open,
.tc-move:hover:not(:disabled) {
  background: var(--pitch-soft);
}

.tc-move svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
}

.tc-empty {
  min-height: 36px;
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--ink-2);
}

.pop-move {
  top: 34px;
  right: -6px;
  width: 180px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pop-label {
  padding: 4px 8px 2px;
  font-size: 12px;
  color: var(--ink-2);
}

.pop-item {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

.pop-item:hover {
  background: var(--sunken);
}

.pop-item .sw {
  width: 12px;
  height: 12px;
}

.reveal {
  animation: reveal 0.45s both;
  animation-delay: calc(var(--i) * 110ms);
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
}

.name-field {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
}

.name-field .input-pill {
  flex: none;
  width: 220px;
  height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

.fmt-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fmt-row {
  display: grid;
  gap: 8px;
}

.fmt-row-2 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.fmt-row-steps {
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
}

.box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--sunken);
}

.box-label {
  font-size: 13px;
  color: var(--ink-2);
}

.box-step {
  gap: 6px;
  padding: 12px 10px;
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.step-btn {
  width: 32px;
  height: 32px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
}

.step-btn:hover:not(:disabled) {
  background: var(--pitch-soft);
}

.step-value {
  font-family: var(--font-cond);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.step-value small {
  margin-left: 3px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}

.box-time {
  position: relative;
  gap: 6px;
}

.time-input {
  width: 100%;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-cond);
  font-size: 28px;
  font-weight: 700;
}

.time-input::-webkit-calendar-picker-indicator {
  opacity: 0.45;
  cursor: pointer;
}

.box-hint {
  display: none;
  font-size: 12px;
  color: var(--ink-2);
}

.box-note {
  font-size: 12px;
  color: var(--ink-2);
}

.box-time:has(.time-input:invalid) .box-hint {
  display: block;
}

.box-time:has(.time-input:invalid) .box-clear {
  display: none;
}

.box-clear {
  position: absolute;
  top: 6px;
  right: 6px;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  background: var(--sunken);
}

.plan-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
}

.plan-range {
  font-family: var(--font-cond);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

.plan-range span {
  color: var(--ink-2);
  font-weight: 600;
}

.plan-note {
  font-size: 13px;
  color: var(--ink-2);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.badge svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.8;
}

.badge-ok {
  background: var(--pitch-soft);
  color: var(--pitch-ink);
}

.badge-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.plan-bar {
  position: relative;
  display: flex;
  gap: 2px;
  height: 30px;
}

.pb-seg {
  flex: 0 1 0;
  min-width: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  font-family: var(--font-cond);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.pb-league {
  background: var(--pitch);
  color: #fff;
}

.pb-gap {
  background: var(--ring);
}

.pb-playoff {
  background: var(--playoff);
  color: #fff;
}

.pb-final {
  background: var(--lime);
  color: var(--lime-ink);
}

.pb-spare {
  background: repeating-linear-gradient(135deg, var(--hatch) 0 3px, var(--sunken) 3px 7px);
}

.pb-limit {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  margin-left: -1px;
  border-radius: 2px;
  background: var(--danger);
}

.plan-ticks {
  position: relative;
  height: 16px;
  font-size: 12px;
  color: var(--ink-2);
}

.plan-ticks span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
}

.plan-ticks span:first-child {
  transform: none;
}

.plan-ticks span:last-child {
  transform: translateX(-100%);
}

.ready-strip {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 18px 18px 18px 26px;
  border-radius: 24px;
  background: var(--pitch);
  color: #fff;
}

.ready-strip div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ready-strip strong {
  font-family: var(--font-cond);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.ready-strip span {
  font-size: 14px;
  color: rgb(255 255 255 / 0.8);
}

.dialog {
  width: min(480px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--pop-shadow);
}

.dialog::backdrop {
  background: rgb(8 20 14 / 0.5);
}

.dialog-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
}

.dialog-body h2 {
  font-family: var(--font-cond);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.dialog-body p {
  color: var(--ink-2);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}

.goal-dialog h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.goal-dialog h2 .sw {
  width: 14px;
  height: 14px;
}

.gd-meta,
.gd-label {
  font-size: 13px;
  color: var(--ink-2);
}

.gd-label {
  margin-bottom: -6px;
  font-weight: 600;
}

.gd-og {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.goal-dialog .pk-players {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.goal-dialog .pk-player {
  height: 52px;
  padding: 0 8px;
  border-radius: 14px;
  background: var(--field);
  color: var(--ink);
}

.goal-dialog .pk-player:hover {
  background: var(--pitch-soft);
}

.goal-dialog .pk-more {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--ring);
  color: var(--ink-2);
  font-weight: 500;
}

.goal-dialog .gd-unknown {
  border: 1.5px dashed var(--faint);
  background: transparent;
  color: var(--ink-2);
}

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

.edit-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--sunken);
}

.edit-side .tn {
  font-family: var(--font-cond);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

.edit-side .step-value {
  font-size: 36px;
}

.edit-goals {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.edit-goals li {
  display: grid;
  grid-template-columns: 10px 34px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 8px;
}

.eg-min {
  font-size: 14px;
  color: var(--ink-2);
}

.pot-wide {
  min-width: 0;
}

.pot-wide select {
  height: 40px;
  padding: 0 32px 0 14px;
  font-size: 15px;
  font-weight: 500;
}

.pot-wide svg {
  right: 12px;
  width: 14px;
  height: 14px;
}

.pens-edit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--sunken);
}

.pens-edit .box-label {
  flex-basis: 100%;
}

.pens-edit label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.dialog .input-num {
  background: var(--card);
  color: var(--ink);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 500;
  box-shadow: var(--pop-shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s, transform 0.2s;
}

.toast.is-shown {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.is-ok {
  background: var(--pitch);
  color: #fff;
}

.toast.is-warn {
  background: var(--warn-soft);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--warn), var(--pop-shadow);
}

body.is-screen {
  overflow: hidden;
  background: #0a4d32;
}

body.is-screen .topbar,
body.is-screen .live-bar {
  display: none;
}

.tv {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #0a4d32;
  color: #fff;
}

.tv-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgb(255 255 255 / 0.07);
  stroke-width: 3;
  pointer-events: none;
}

.tv-lines * {
  vector-effect: non-scaling-stroke;
}

.tv-body {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 2.8vh;
  padding: 5.5vh 5vw 6vh;
}

.tv-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}

.tv-alert {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 1;
  transform: translateX(-50%);
}

.tv-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-family: var(--font-cond);
  font-size: min(1.75vw, 3.1vh);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.8);
}

.tv-brand-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-mark {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgb(0 0 0 / 0.24);
  color: var(--lime);
}

.tv-status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tv .tag-live {
  height: 32px;
  padding: 0 14px;
  font-size: 15px;
  letter-spacing: 0.1em;
}

.tv-no {
  font-family: var(--font-cond);
  font-size: min(2.05vw, 3.6vh);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tv-no .of {
  color: rgb(255 255 255 / 0.6);
}

.tv-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  font-size: min(1.55vw, 2.8vh);
  color: rgb(255 255 255 / 0.8);
}

.tv-end strong {
  color: #fff;
  font-weight: 600;
}

.tv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.14);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.tv-btn:hover {
  background: rgb(255 255 255 / 0.22);
}

.tv-icon {
  width: 40px;
  justify-content: center;
  padding: 0;
}

.tv-board {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 3.75vw;
}

.tv-team {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.tv-home {
  align-items: flex-end;
  text-align: right;
}

.tv-name {
  display: flex;
  align-items: center;
  gap: 0.24em;
  min-width: 0;
  font-family: var(--font-cond);
  font-size: min(5.3vw, 9.4vh);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.tv-home .tv-name {
  flex-direction: row-reverse;
}

.tv-name .sw {
  width: 0.35em;
  height: 0.35em;
  box-shadow: 0 0 0 4px rgb(255 255 255 / 0.18);
}

.tv-name .crest {
  width: 1.1em;
  height: 1.1em;
  margin: 0;
}

.tv-scorers {
  font-size: min(1.9vw, 3.4vh);
  color: rgb(255 255 255 / 0.75);
}

.tv-home .tv-scorers {
  padding-right: 0.6em;
}

.tv-away .tv-scorers {
  padding-left: 0.6em;
}

.tv-score {
  display: flex;
  align-items: center;
  gap: 2.5vw;
  font-family: var(--font-cond);
  font-size: min(18vw, 32vh);
  font-weight: 700;
  line-height: 0.85;
}

.tv-dash {
  color: rgb(255 255 255 / 0.3);
  font-weight: 500;
}

.tv-clockwrap {
  display: flex;
  justify-content: center;
}

.tv-clock {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 14px 48px 18px;
  border-radius: 24px;
  background: rgb(0 0 0 / 0.26);
}

.tv-clock .lc-state {
  font-size: min(1.2vw, 2.1vh);
}

.tv-time {
  font-family: var(--font-cond);
  font-size: min(7.5vw, 13.3vh);
  font-weight: 600;
  line-height: 1;
}

.tv-bar {
  width: 25vw;
  height: 6px;
}

.tv-next {
  align-self: center;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 24px;
  padding: 16px 28px;
  border-radius: 20px;
  background: rgb(0 0 0 / 0.22);
}

.tv-next-label {
  font-size: min(1.4vw, 2.5vh);
  color: rgb(255 255 255 / 0.8);
}

.tv-next-teams {
  display: flex;
  align-items: center;
  gap: 0.35em;
  font-family: var(--font-cond);
  font-size: min(2.35vw, 4.2vh);
  font-weight: 700;
  text-transform: uppercase;
}

.tv-tn {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  min-width: 0;
}

.tv-tn.is-end {
  flex-direction: row-reverse;
}

.tv-tn .sw {
  width: 0.45em;
  height: 0.45em;
  box-shadow: none;
}

.tv-tn.is-tbd {
  color: rgb(255 255 255 / 0.6);
}

.tv-tn .crest {
  width: 1.1em;
  height: 1.1em;
}

.tv-tn.is-tbd .sw {
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.4);
}

.tv-center {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3vh;
  text-align: center;
}

.tv-kicker {
  font-family: var(--font-cond);
  font-size: min(2.2vw, 4vh);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
}

.tv-kicker .of {
  color: rgb(183 243 74 / 0.7);
}

.tv-big {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1vw 0.4em;
  font-family: var(--font-cond);
  font-size: min(6.5vw, 11.5vh);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}

.tv-sub {
  font-size: min(2vw, 3.6vh);
  color: rgb(255 255 255 / 0.85);
}

.tv-last {
  font-size: min(1.6vw, 2.9vh);
  color: rgb(255 255 255 / 0.7);
}

.tv-trophy {
  width: min(7vw, 12vh);
  height: min(7vw, 12vh);
  border-radius: 24px;
}

.tv-trophy svg {
  width: 50%;
  height: 50%;
}

.tv-rules {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 1.7vh;
}

.tv-rules-h {
  font-family: var(--font-cond);
  font-size: min(1.4vw, 2.5vh);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.7);
}

.tv-rules .iz-flow {
  justify-content: center;
}

.tv-rules .iz-flow-arrow {
  width: min(2.7vw, 4.7vh);
}

.tv-rules .iz-flow-arrow svg,
.tv-rules .iz-step-name svg {
  width: min(1.7vw, 3vh);
  height: min(1.7vw, 3vh);
}

.tv-rules .iz-step {
  flex: 0 1 min(23.5vw, 42vh);
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 min(0.95vw, 1.7vh);
  padding: min(1.1vw, 1.95vh) min(1.55vw, 2.8vh) min(1.25vw, 2.2vh);
  border-radius: 22px;
  background: rgb(0 0 0 / 0.22);
}

.tv-rules .iz-step-name {
  font-size: min(1.9vw, 3.3vh);
  color: #fff;
}

.tv-rules .iz-step-min {
  font-size: min(2.35vw, 4.2vh);
}

.tv-rules .iz-step-min small {
  font-size: min(1.55vw, 2.8vh);
}

.tv-rules .iz-step-who {
  flex-basis: 100%;
  margin-top: 4px;
  font-size: min(1.5vw, 2.65vh);
}

.tv-teams {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 1.7vh;
}

.tv-team-list {
  display: flex;
  justify-content: center;
  gap: min(1.2vw, 2.1vh);
}

.tv-team-card {
  flex: 0 1 min(28vw, 50vh);
  display: flex;
  flex-direction: column;
  gap: min(0.7vw, 1.2vh);
  padding: min(1.1vw, 1.95vh) min(1.55vw, 2.8vh) min(1.25vw, 2.2vh);
  border-radius: 22px;
  background: rgb(0 0 0 / 0.22);
}

.tv-team-name {
  display: flex;
  align-items: center;
  gap: 0.45em;
  font-family: var(--font-cond);
  font-size: min(1.9vw, 3.3vh);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.tv-team-name .sw {
  width: 0.5em;
  height: 0.5em;
}

.tv-team-players {
  font-size: min(1.45vw, 2.6vh);
  line-height: 1.35;
  color: rgb(255 255 255 / 0.8);
}

.tv-rules-line {
  font-size: min(1.5vw, 2.65vh);
  text-align: center;
  color: rgb(255 255 255 / 0.85);
}

.tv-players span {
  height: auto;
  padding: 6px 16px;
  font-size: min(1.5vw, 2.7vh);
}

.iz-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  color: var(--ink);
}

.iz-dialog::backdrop {
  background: #0a4d32;
}

.iz-peek {
  height: calc(70px + env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: env(safe-area-inset-top) 16px 0;
  color: rgb(255 255 255 / 0.55);
  font-family: var(--font-cond);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.iz-peek span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.iz-peek strong {
  color: #fff;
}

.iz-sheet {
  position: absolute;
  top: calc(70px + env(safe-area-inset-top));
  bottom: 0;
  left: 50%;
  width: min(100%, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 10px 16px calc(20px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0;
  background: var(--card);
  transform: translateX(-50%);
  animation: iz-rise 0.22s ease-out;
}

@keyframes iz-rise {
  from {
    opacity: 0;
    transform: translate(-50%, 24px);
  }
}

.iz-sheet :focus-visible {
  outline-color: var(--pitch-ink);
}

.iz-grip {
  flex: none;
  align-self: center;
  width: 40px;
  height: 5px;
  border-radius: 999px;
  background: var(--ring);
}

.iz-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.iz-sheet-head h2 {
  font-family: var(--font-cond);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.iz-close {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--field);
  color: var(--ink-2);
}

.iz-sheet-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.iz-sheet .side-card {
  padding: 12px 14px 10px;
  border-radius: 18px;
  background: var(--sunken);
}

.iz-sheet .side-card .card-title {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
}

.iz-sheet .standings {
  margin-top: 0;
}

.iz-sheet .standings td {
  height: 40px;
  border-top-color: var(--ring);
}

.iz-sheet .side-card .card-note {
  margin-top: 4px;
  font-size: 12px;
}

.iz-kings {
  overflow: hidden;
  border-radius: 18px;
  background: var(--sunken);
}

.iz-kings-btn {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.iz-kings-label {
  flex: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.iz-kings-lead {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
}

.iz-kings-name {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.iz-kings-sep {
  color: var(--faint);
}

.iz-kings-more {
  flex: none;
  font-size: 13px;
  color: var(--ink-2);
}

.iz-kings-lead strong {
  flex: none;
  margin-left: 6px;
  font-family: var(--font-cond);
  font-size: 19px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--pitch-ink);
}

.iz-kings-lead > svg {
  width: 16px;
  height: 16px;
  color: var(--ink-2);
  transition: transform 0.2s;
}

.iz-kings-btn[aria-expanded="true"] .iz-kings-lead > svg {
  transform: rotate(180deg);
}

.iz-kings-none {
  font-size: 14px;
  color: var(--ink-2);
}

.iz-kings-list {
  margin: 0;
  padding: 0 14px 10px;
  list-style: none;
}

.iz-kings-list li {
  display: grid;
  grid-template-columns: 22px auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  border-top: 1px solid var(--ring);
  font-weight: 500;
}

.iz-kings-list li.is-top {
  font-weight: 700;
}

.iz-kings-rank {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
}

.iz-kings-list strong {
  font-family: var(--font-cond);
  font-size: 19px;
  font-weight: 700;
}

.iz-sheet-side {
  display: grid;
  gap: 10px;
}

.iz-roster {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  margin-top: 6px;
}

.iz-roster > * {
  padding: 10px 0;
  border-top: 1px solid var(--ring);
  line-height: 18px;
}

.iz-roster-name {
  padding-right: 16px;
  font-weight: 600;
  color: var(--ink);
}

.iz-roster-players {
  font-size: 13px;
  color: var(--ink-2);
}

.iz-rules {
  border-radius: 22px;
  background: rgb(0 0 0 / 0.2);
  color: #fff;
}

.iz-rules-btn {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: inherit;
  text-align: left;
}

.iz-rules-head {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 0 14px;
}

.iz-rules-label {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}

.iz-rules-label svg {
  width: 18px;
  height: 18px;
  color: var(--lime);
}

.iz-rules-lead {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  font-family: var(--font-cond);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgb(255 255 255 / 0.8);
}

.iz-rules-lead svg {
  flex: none;
  width: 16px;
  height: 16px;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.iz-rules-btn[aria-expanded="true"] .iz-rules-lead svg {
  transform: rotate(180deg);
}

.iz-rules-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.22s cubic-bezier(0.2, 0, 0, 1);
}

.iz-rules.is-open .iz-rules-body {
  grid-template-rows: 1fr;
  transition-duration: 0.28s;
}

.iz-rules-in {
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.12s linear,
    transform 0.22s cubic-bezier(0.2, 0, 0, 1);
}

.iz-rules.is-open .iz-rules-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.2s linear 0.06s,
    transform 0.28s cubic-bezier(0.2, 0, 0, 1);
}

.iz-rules-pad {
  padding: 2px 14px 14px;
}

.iz-flow {
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.iz-flow-arrow {
  flex: none;
  width: 12px;
  display: grid;
  place-items: center;
  color: rgb(255 255 255 / 0.5);
}

.iz-flow-arrow svg {
  width: 12px;
  height: 12px;
}

.iz-step {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 9px 11px;
  border-radius: 16px;
  background: rgb(255 255 255 / 0.08);
}

.iz-step-name {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-cond);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.85);
}

.iz-step-name svg {
  width: 15px;
  height: 15px;
  color: var(--lime);
}

.iz-step-min {
  font-family: var(--font-cond);
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  color: var(--lime);
}

.iz-step-min small {
  margin-left: 2px;
  font-size: 15px;
}

.iz-step-who {
  font-size: 12px;
  line-height: 1.3;
  color: rgb(255 255 255 / 0.88);
}

.iz-flow-meta {
  margin: 8px 2px 0;
  font-size: 12.5px;
  line-height: 1.35;
  color: rgb(255 255 255 / 0.75);
}

.iz-rules-dl {
  margin: 10px 0 0;
}

.iz-rules-dl > div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 2px 9px;
  border-top: 1px solid rgb(255 255 255 / 0.12);
}

.iz-rules-dl dt {
  padding-top: 2px;
  font-family: var(--font-cond);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.72);
}

.iz-rules-dl dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.iz-rules-dl i {
  font-style: normal;
  color: rgb(255 255 255 / 0.55);
}

.iz-rules-pts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.iz-rules-pts span {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  line-height: 1.2;
  color: rgb(255 255 255 / 0.8);
}

.iz-rules-pts b {
  font-family: var(--font-cond);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.iz-rules.is-light {
  border-radius: 18px;
  background: var(--sunken);
  color: var(--ink);
}

.is-light .iz-rules-btn {
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 18px;
}

.is-light .iz-rules-label {
  font-size: 13px;
  line-height: 1.2;
  color: var(--ink-2);
}

.is-light .iz-rules-lead {
  color: var(--ink);
}

.is-light .iz-rules-lead svg {
  color: var(--ink-2);
}

.is-light .iz-rules-pad {
  padding: 0 14px 10px;
}

.is-light .iz-flow-arrow,
.is-light .iz-rules-dl i {
  color: var(--faint);
}

.is-light .iz-step {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--card);
}

.is-light .iz-step-name {
  color: var(--ink);
}

.is-light .iz-step-name svg,
.is-light .iz-step-min {
  color: var(--pitch-ink);
}

.is-light .iz-step-min {
  font-size: 17px;
}

.is-light .iz-step-min small {
  font-size: 13px;
}

.is-light .iz-step-who {
  flex-basis: 100%;
  margin-top: 2px;
  color: var(--ink-2);
}

.is-light .iz-flow-meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-2);
}

.is-light .iz-rules-dl {
  margin-top: 6px;
}

.is-light .iz-rules-dl > div {
  grid-template-columns: 84px minmax(0, 1fr);
  padding: 6px 0;
  border-top-color: var(--ring);
}

.is-light .iz-rules-dl dt {
  font-size: 12px;
  color: var(--ink-2);
}

.is-light .iz-rules-dl dd {
  font-size: 13px;
}

.is-light .iz-rules-pts {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
}

.is-light .iz-rules-pts span {
  flex-direction: row;
  align-items: baseline;
  gap: 4px;
  font-size: 13px;
  color: var(--ink-2);
}

.is-light .iz-rules-pts b {
  font-size: 17px;
  color: var(--ink);
}

.iz-fx {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.iz-fx-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.iz-fx-title {
  margin: 6px 4px 2px;
  font-family: var(--font-cond);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.iz-fx-row {
  position: relative;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 58px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 41px;
  padding: 0 10px;
  border-radius: 12px;
}

.iz-fx-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}

.iz-fx-team {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-cond);
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
}

.iz-fx-home {
  text-align: right;
}

.iz-fx-row.is-done .iz-fx-team {
  font-weight: 700;
}

.iz-fx-row .iz-fx-team.is-lose,
.iz-fx-team.is-tbd {
  font-weight: 500;
  opacity: 0.6;
}

.iz-fx-score {
  justify-self: center;
  min-width: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2px 0;
  border-radius: 9px;
  font-family: var(--font-cond);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--faint);
}

.iz-fx-score small {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 600;
}

.iz-fx-row.is-done .iz-fx-score {
  background: var(--pitch-soft);
  color: var(--pitch-ink);
}

.iz-fx-row.is-live {
  background: #0a4d32;
  color: #fff;
}

.iz-fx-row.is-live .iz-fx-time {
  font-weight: 700;
  color: #fff;
}

.iz-fx-row.is-live .iz-fx-team {
  font-weight: 700;
}

.iz-fx-row.is-live .iz-fx-score {
  background: #fff;
  color: #0a4d32;
}

.iz-fx-row .tag-live {
  gap: 3px;
  height: 20px;
  padding: 0 6px;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.iz-fx-row .tag-live::before {
  width: 5px;
  height: 5px;
}

.iz-sheet-back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 44px;
  padding: 0 16px 0 8px;
  border: 0;
  border-radius: 22px;
  background: var(--field);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}

.iz-sheet-back svg {
  width: 22px;
  height: 22px;
}

.ms {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ms-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 12px;
}

.ms .ms-kicker {
  margin: 0;
  font-family: var(--font-cond);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.ms-when {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-2);
}

.ms-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 16px 12px;
  border-radius: 20px;
  background: var(--sunken);
}

.ms-team {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.ms-tn {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  font-family: var(--font-cond);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

button.ms-tn {
  border: 0;
  border-radius: 12px;
  background: transparent;
  transition: background-color 0.15s ease-out;
}

button.ms-tn:hover,
button.ms-tn:active {
  background: var(--field);
}

.ms-tn .sw {
  width: 16px;
  height: 16px;
  margin: 6px 0;
}

.ms-tn .crest {
  width: 44px;
  height: 44px;
  margin: 0;
}

.ms-team.is-lose .ms-tn,
.ms-team.is-tbd .ms-tn {
  color: var(--ink-2);
}

.ms-score {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 16px;
  font-family: var(--font-cond);
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.ms-dash {
  color: var(--faint);
}

.ms-scorers {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.ms-scorers li.is-unknown {
  font-weight: 500;
  color: var(--ink-2);
}

.ms-scorers .ms-min {
  font-weight: 500;
  color: var(--ink-2);
}

.ms .ms-pens,
.ms .ms-outcome {
  margin: -4px 0 0;
  font-size: 14px;
  text-align: center;
  color: var(--ink-2);
}

.ms .ms-outcome {
  font-weight: 600;
  color: var(--ink);
}

.ms .ms-h {
  margin: 0 2px 4px;
  font-family: var(--font-cond);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.ms-tl {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ms-ev {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border-top: 1px solid var(--ring);
}

.ms-ev:first-child {
  border-top: 0;
}

.ms-ev-home,
.ms-ev-away {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.ms-ev-home {
  justify-content: flex-end;
  text-align: right;
}

.ms-who {
  min-width: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.ms-ev.is-unknown .ms-who {
  font-weight: 500;
  color: var(--ink-2);
}

.ms-ev .ms-min {
  flex: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.ms-ev-score {
  justify-self: center;
  min-width: 50px;
  padding: 2px 8px;
  border-radius: 9px;
  background: var(--pitch-soft);
  color: var(--pitch-ink);
  font-family: var(--font-cond);
  font-size: 17px;
  font-weight: 500;
  text-align: center;
}

.ms-ev.is-home .ms-ev-score {
  box-shadow: inset 3px 0 var(--team);
}

.ms-ev.is-away .ms-ev-score {
  box-shadow: inset -3px 0 var(--team);
}

.ms-ev-score b {
  font-weight: 800;
}

.ms .ms-none {
  margin: 0 2px;
  font-size: 14px;
  color: var(--ink-2);
}

.summary-dialog {
  gap: 16px;
}

.is-wide .iz-sheet.is-match {
  bottom: auto;
  max-height: 92vh;
  width: min(640px, calc(100vw - 32px));
}

.is-wide .iz-dialog::backdrop {
  background: rgb(4 20 12 / 0.6);
  animation: iz-fade 0.28s cubic-bezier(0.2, 0, 0, 1) both;
}

.iz-dialog.is-closing .iz-sheet {
  animation: iz-sink 0.24s cubic-bezier(0.4, 0, 1, 1) both;
}

.iz-dialog.is-closing::backdrop {
  animation: iz-fade 0.24s cubic-bezier(0.4, 0, 1, 1) reverse both;
}

.is-wide .iz-dialog.is-closing .iz-sheet {
  animation: iz-shrink 0.24s cubic-bezier(0.4, 0, 1, 1) both;
}

@keyframes iz-open {
  from {
    opacity: 0;
    transform: translate(-50%, 24px) scale(0.94);
  }
  40% {
    opacity: 1;
  }
}

@keyframes iz-shrink {
  to {
    opacity: 0;
    transform: translate(-50%, 12px) scale(0.97);
  }
}

@keyframes iz-sink {
  to {
    opacity: 0;
    transform: translate(-50%, 24px);
  }
}

@keyframes iz-fade {
  from {
    opacity: 0;
  }
}

.is-wide .iz-peek,
.is-wide .iz-grip {
  display: none;
}

.is-wide .iz-sheet {
  top: 4vh;
  bottom: 4vh;
  width: min(980px, calc(100vw - 32px));
  padding: 20px 24px;
  border-radius: 28px;
  transform-origin: 50% 100%;
  animation: iz-open 0.38s cubic-bezier(0.2, 0, 0, 1) both;
}

.is-wide .iz-sheet-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.is-wide .iz-fx {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 8px 24px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.live-pill[hidden] {
  display: none;
}

.live-pill:hover {
  color: var(--ink);
}

.live-pill-dot,
.live-state::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--faint);
}

.live-pill.is-on .live-pill-dot,
.live-state.is-on::before {
  background: var(--pitch-ink);
  animation: pulse 1.4s infinite;
}

.live-pill.is-connecting .live-pill-dot,
.live-state.is-connecting::before {
  animation: pulse 1.4s infinite;
}

.live-pill.is-offline,
.live-state.is-offline {
  color: var(--warn);
}

.live-pill.is-offline .live-pill-dot,
.live-state.is-offline::before {
  background: var(--warn);
}

.live-pill.is-error,
.live-state.is-error {
  color: var(--danger);
}

.live-pill.is-error .live-pill-dot,
.live-state.is-error::before {
  background: var(--danger);
}

.live-pill-count {
  font-weight: 700;
}

.live-bar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px 12px;
}

.live-bar-in {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 12px;
  border-radius: 22px;
  background: var(--warn-soft);
}

.live-bar-in.is-error {
  background: var(--danger-soft);
}

.live-bar-icon {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--card);
  color: var(--warn);
}

.live-bar-in.is-error .live-bar-icon {
  color: var(--danger);
}

.live-bar-icon svg {
  width: 16px;
  height: 16px;
}

.live-bar-in p {
  flex: 1;
  min-width: 0;
  font-size: 14px;
}

.live-bar-in p span {
  color: var(--ink-2);
}

.live-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.live-state.is-on {
  color: var(--pitch-ink);
}

.live-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px 14px;
  border-radius: 16px;
  background: var(--sunken);
}

.live-url {
  color: var(--pitch-ink);
  font-weight: 600;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.live-url:hover {
  text-decoration: underline;
}

.live-join {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--sunken);
}

.live-join summary {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}

.live-join[open] summary {
  margin-bottom: 8px;
}

.live-join-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.live-join-row .input-pill {
  flex: 1;
  min-width: 0;
}

.share-card .sc-foot {
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.view.is-readonly input,
.view.is-readonly select,
.view.is-readonly textarea {
  pointer-events: none;
}

.view.is-readonly .lc-btns,
.view.is-readonly .lc-goal,
.view.is-readonly .lc-foot,
.view.is-readonly .next-card .btn-lime {
  opacity: 0.45;
}

@media (min-width: 761px) {
  .narrow-only {
    display: none !important;
  }

  .live-card.has-picker .pc-body {
    gap: 20px;
  }

  .live-card.has-picker .lc-score {
    font-size: 120px;
  }

  .live-card.has-picker .lc-play {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "box box"
      "home away";
    gap: 20px 10px;
  }

  .live-card.has-picker .lc-clockbox {
    grid-area: box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
  }

  .live-card.has-picker .lc-clock {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-radius: 16px;
  }

  .live-card.has-picker .lc-time {
    font-size: 40px;
  }

  .live-card.has-picker .lc-bar {
    display: none;
  }

  .live-card.has-picker .lc-btn {
    width: 48px;
    height: 48px;
  }

  .live-card.has-picker .lc-toggle {
    width: auto;
    padding: 0 20px;
  }

  .live-card.has-picker .lc-goal {
    justify-self: stretch;
  }

  .live-card.has-picker .lc-goal-team {
    display: inline;
  }
}

@media (max-width: 1100px) {
  .lc-score {
    font-size: 112px;
  }

  .lc-name {
    font-size: 28px;
  }
}

@media (max-width: 760px) {
  .wide-only {
    display: none !important;
  }

  body {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }

  .topbar-in {
    flex-wrap: nowrap;
    height: 60px;
    gap: 10px;
    padding: 0 10px 0 16px;
  }

  .brand {
    flex: 1 1 auto;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .tools {
    flex: none;
  }

  .tools .icon-btn {
    width: 44px;
    height: 44px;
  }

  .tool-screen {
    display: none;
  }

  .live-pill {
    min-width: 44px;
    height: 44px;
  }

  .live-bar {
    padding: 0 12px 8px;
  }

  .live-bar-in p span {
    display: block;
    font-size: 13px;
  }

  .tabs {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 8px 12px calc(12px + env(safe-area-inset-bottom));
    border-radius: 0;
    background: var(--bg);
    box-shadow: none;
  }

  .tab {
    justify-content: center;
    height: 48px;
    background: var(--card);
    font-size: 14px;
  }

  .view,
  .view-fixtures,
  .view-setup {
    padding: 4px 12px 16px;
  }

  .dash,
  .dash-main,
  .dash-side,
  .stack,
  .setup,
  .setup-side,
  .setup-main {
    gap: 12px;
  }

  .page-title {
    font-size: 30px;
  }

  .pitch-card {
    padding: 16px;
    border-radius: 24px;
  }

  .pc-body {
    gap: 16px;
  }

  .lc-top {
    flex-wrap: nowrap;
  }

  .lc-no {
    font-size: 17px;
    white-space: nowrap;
  }

  .tag-live,
  .tag-next {
    height: 24px;
    padding: 0 9px;
    font-size: 11px;
  }

  .lc-rest {
    min-width: 0;
    font-size: 13px;
    text-align: right;
  }

  .lc-rest .sw {
    display: none;
  }

  .lc-board {
    align-items: start;
    gap: 4px;
  }

  .lc-team,
  .lc-away {
    align-items: center;
    padding-top: 8px;
    text-align: center;
  }

  .lc-name,
  .lc-away .lc-name {
    flex-direction: column;
    gap: 6px;
    max-width: 100%;
    font-size: 21px;
    letter-spacing: 0;
  }

  .lc-name-text {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .lc-score {
    gap: 8px;
    font-size: 96px;
    line-height: 0.95;
  }

  .chip-goal {
    height: 34px;
    padding: 0 12px;
  }

  .lc-play {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "box box"
      "home away";
    gap: 12px 8px;
  }

  .lc-clockbox {
    grid-area: box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 18px;
    background: rgb(0 0 0 / 0.22);
  }

  .lc-clock {
    padding: 0;
    background: none;
  }

  .lc-bar {
    width: 160px;
  }

  .lc-btns {
    width: 100%;
    margin-top: 4px;
    display: grid;
  }

  .lc-btn {
    width: auto;
    height: 48px;
  }

  .lc-goal {
    justify-self: stretch;
    height: 60px;
    border-radius: 16px;
    font-size: 22px;
  }

  .lc-foot {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 4px;
    padding-top: 0;
    border-top: 0;
  }

  .lc-finish {
    width: 100%;
    height: 50px;
  }

  .lc-cancel {
    align-self: center;
  }

  .picker-scrim {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgb(8 20 14 / 0.5);
  }

  .picker {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 41;
    max-height: 88vh;
    overflow-y: auto;
    gap: 16px;
    padding: 10px 16px calc(20px + env(safe-area-inset-bottom));
    border-radius: 28px 28px 0 0;
    background: var(--card);
    color: var(--ink);
  }

  .picker :focus-visible {
    outline-color: var(--pitch-ink);
  }

  .picker-grip {
    align-self: center;
    width: 40px;
    height: 5px;
    border-radius: 999px;
    background: var(--ring);
  }

  .picker-head {
    flex-wrap: nowrap;
  }

  .picker-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .picker-meta {
    font-size: 13px;
    color: var(--ink-2);
  }

  .picker-title h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.1;
  }

  .picker-team {
    font-size: 26px;
  }

  .picker .sw {
    width: 12px;
    height: 12px;
  }

  .pk-close {
    width: 44px;
    height: 44px;
    flex: none;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--field);
    color: var(--ink-2);
  }

  .picker-label {
    margin-bottom: -8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
  }

  .pk-players {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pk-player {
    height: 48px;
    padding: 0 8px;
    border-radius: 14px;
    background: var(--field);
    color: var(--ink);
  }

  .pk-player:hover {
    background: var(--pitch-soft);
  }

  .pk-player.is-on {
    background: var(--pitch);
    color: #fff;
  }

  .pk-player.is-on svg {
    color: var(--lime);
  }

  .pk-more,
  .pk-more:hover {
    background: transparent;
    box-shadow: inset 0 0 0 1.5px var(--ring);
    color: var(--ink-2);
  }

  .pk-foot {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    padding-top: 4px;
  }

  .pk-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 52px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--danger-soft);
    color: var(--danger);
    font-weight: 700;
  }

  .pk-delete svg {
    width: 17px;
    height: 17px;
    stroke-width: 2.2;
  }

  .nc-teams {
    font-size: 32px;
  }

  .nc-teams .sw {
    width: 12px;
    height: 12px;
  }

  .champ-name {
    font-size: 44px;
  }

  .side-next {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 20px;
  }

  .side-next-teams {
    flex-wrap: nowrap;
    gap: 7px;
    min-width: 0;
    font-size: 20px;
  }

  .hero {
    margin-top: 8px;
    padding: 28px 20px;
  }

  .name-field {
    width: 100%;
  }

  .name-field .input-pill {
    flex: 1;
    width: auto;
  }

  .ready-strip {
    padding: 16px;
  }

  .ready-strip .btn {
    width: 100%;
  }

  .toast {
    bottom: calc(92px + env(safe-area-inset-bottom));
  }

  body.is-screen {
    overflow: auto;
    padding-bottom: 0;
  }

  .tv {
    height: auto;
    min-height: 100vh;
  }

  .tv-body {
    gap: 24px;
    padding: 20px 16px 28px;
  }

  .tv-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .tv-brand {
    font-size: 16px;
  }

  .tv-status {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .tv-end {
    display: none;
  }

  .tv-no {
    font-size: 18px;
  }

  .tv-board {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 16px;
  }

  .tv-team,
  .tv-home {
    align-items: center;
    text-align: center;
  }

  .tv-home .tv-name {
    flex-direction: row;
  }

  .tv-name {
    font-size: 36px;
  }

  .tv-scorers {
    padding: 0;
    font-size: 15px;
  }

  .tv-home .tv-scorers,
  .tv-away .tv-scorers {
    padding: 0;
  }

  .tv-score {
    font-size: 120px;
  }

  .tv-time {
    font-size: 56px;
  }

  .tv-bar {
    width: 60vw;
  }

  .tv-next-label,
  .tv-sub,
  .tv-last {
    font-size: 15px;
  }

  .tv-next-teams,
  .tv-kicker {
    font-size: 20px;
  }

  .tv-big {
    font-size: 40px;
  }

  .tv-players span {
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .fx-row {
    grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr);
    grid-template-areas:
      "label time act"
      "home score away";
    gap: 6px 10px;
    padding: 10px 12px;
  }

  .fx-label {
    grid-area: label;
  }

  .fx-time {
    grid-area: time;
    text-align: center;
  }

  .fx-home {
    grid-area: home;
  }

  .fx-score {
    grid-area: score;
    min-width: 64px;
  }

  .fx-away {
    grid-area: away;
  }

  .fx-act {
    grid-area: act;
  }

  .fx-act .btn-sm {
    height: 34px;
    padding: 0 12px;
  }

  .fx-act .icon-btn {
    width: 34px;
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Turnuva arşivi ve kalıcı oyuncu havuzu. */
.history-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.history-metrics > div { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.history-metrics strong { font: 700 36px 'Barlow Condensed', sans-serif; }
.history-metrics span, .history-item p { font-size: 14px; color: var(--muted); }
.history-item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.history-item > :first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.history-item:last-child { border-bottom: 0; }
.history-scroll { max-width: 100%; overflow-x: auto; }
.history-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.history-table th, .history-table td { padding: 14px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.history-table th { font-size: 13px; color: var(--muted); }
.history-table th:first-child, .history-table td:first-child { text-align: left; }
.history-link { color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 4px; border: 0; background: none; cursor: pointer; padding: 4px 0; }
.history-teams { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.history-teams p { line-height: 1.7; overflow-wrap: anywhere; }
.history-editor h3 { margin: 24px 0 12px; }
.history-roster label, .history-goal { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; }
.history-roster span, .history-goal span { min-width: 0; overflow-wrap: anywhere; }
.history-roster select, .history-goal select { max-width: 60%; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: inherit; font: inherit; }
.pool-picker { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.pool-picker summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.keeper-choice { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.view-history .setup-card { min-width: 0; }
.view-history .page-title { margin-top: 10px; }
@media (max-width: 760px) {
  .tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding-left: 8px; padding-right: 8px; }
  .tab { padding-left: 5px; padding-right: 5px; font-size: 13px; }
  .history-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-metrics > div { padding: 16px; }
  .history-teams { grid-template-columns: 1fr; gap: 12px; }
  .history-item { flex-wrap: wrap; }
  .history-table th, .history-table td { padding: 12px 8px; }
}
/* Legal information remains accessible on both administration and viewer pages. */
.legal-footer { padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); text-align: center; font-size: 13px; opacity: .8; }
.legal-footer a, .privacy-page a { color: inherit; text-decoration: underline; }
.lang-toggle { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.privacy-page { max-width: 760px; margin: 0 auto; padding: 32px 20px; line-height: 1.65; }
.privacy-page h1 { margin-top: 32px; }
.privacy-page h2 { margin-top: 24px; }
.privacy-page p { margin: 12px 0; }
.privacy-page section { margin-top: 48px; border-top: 1px solid currentColor; }
