:root {
  color-scheme: light;
  --bg: #eef3f0;
  --surface: #ffffff;
  --surface-soft: #f6f9f7;
  --text: #111a15;
  --muted: #657168;
  --line: #dfe7e1;
  --night: #07140e;
  --night-soft: #10251a;
  --green: #107443;
  --green-strong: #0a5a33;
  --green-soft: #e6f5eb;
  --lime: #cdf43f;
  --blue: #3f70e8;
  --blue-soft: #e9f0ff;
  --red: #df4249;
  --red-soft: #ffebec;
  --shadow-sm: 0 7px 20px rgba(16, 38, 25, 0.06);
  --shadow-lg: 0 24px 60px rgba(12, 35, 21, 0.11);
  --radius-lg: 18px;
  --radius-xl: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 92% 2%, rgba(66, 184, 111, 0.16), transparent 26rem),
    linear-gradient(180deg, #f7faf8 0, var(--bg) 36rem);
  font-size: 1rem;
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
summary:focus-visible,
.table-scroll:focus-visible {
  outline: 3px solid rgba(63, 112, 232, 0.32);
  outline-offset: 3px;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  color: #fff;
  background: rgba(7, 20, 14, 0.96);
  border-bottom: 1px solid rgba(205, 244, 63, 0.28);
  box-shadow: 0 8px 30px rgba(2, 11, 6, 0.18);
  backdrop-filter: blur(14px);
}

.topbar__inner {
  width: min(1480px, calc(100% - 40px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.competition-mark {
  width: 52px;
  height: 64px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.competition-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 7px 12px rgba(0, 0, 0, 0.28));
}

.brand-copy {
  min-width: 0;
}

.eyebrow,
.section-kicker,
.scoreboard__label {
  display: block;
  font-size: 0.75rem;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 3px;
  color: #9ab1a2;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.cutoff {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: #cfddd3;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
}

.cutoff__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(205, 244, 63, 0.1);
}

.app-shell {
  width: min(1480px, calc(100% - 40px));
  margin: 22px auto 42px;
}

.scoreboard {
  display: grid;
  grid-template-columns: 1.05fr 1fr 0.92fr auto;
  gap: 10px;
}

.scoreboard__item {
  min-width: 0;
  min-height: 88px;
  padding: 15px 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  column-gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.scoreboard__item--round {
  color: #fff;
  border-color: #173c27;
  background:
    radial-gradient(circle at 85% 20%, rgba(205, 244, 63, 0.18), transparent 42%),
    var(--night-soft);
}

.scoreboard__label {
  grid-column: 1 / -1;
  margin-bottom: 5px;
  color: #7d8a81;
}

.scoreboard__item--round .scoreboard__label {
  color: #9eb1a3;
}

.scoreboard__item strong {
  align-self: baseline;
  overflow: hidden;
  font-size: 1.65rem;
  line-height: 1;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.scoreboard__item > span:last-child {
  align-self: baseline;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.scoreboard__item--round > span:last-child {
  color: #bdcbc1;
}

.reset-button {
  min-width: 118px;
  min-height: 88px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: #455149;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-sm);
  font-size: 0.86rem;
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.reset-button span {
  font-size: 1.1rem;
}

.reset-button:hover {
  color: var(--green-strong);
  background: #fff;
  transform: translateY(-1px);
}

.round-track {
  margin: 12px 0 16px;
  padding: 7px;
  display: grid;
  grid-template-columns: repeat(9, minmax(54px, 1fr));
  gap: 5px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
  scrollbar-width: thin;
}

.round-step {
  min-width: 54px;
  min-height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #7b867e;
  background: transparent;
  font-size: 0.76rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.round-step.is-done {
  color: var(--green-strong);
  background: var(--green-soft);
}

.round-step.is-current {
  color: var(--night);
  background: var(--lime);
  box-shadow: 0 5px 14px rgba(109, 139, 17, 0.18);
}

.mobile-tabs {
  display: none;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(520px, 0.92fr);
  gap: 16px;
  align-items: start;
}

.panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(217, 226, 220, 0.96);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-lg);
  animation: panel-in 260ms ease-out both;
}

.table-panel {
  animation-delay: 45ms;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-heading {
  min-height: 82px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #e7ece8;
}

.section-kicker {
  margin-bottom: 4px;
  color: var(--green);
}

.panel-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.18rem, 2vw, 1.5rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.luck-badge,
.table-date {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid #c8ddd0;
  border-radius: 999px;
  color: var(--green-strong);
  background: var(--green-soft);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.chicago-card {
  position: relative;
  margin: 18px;
  overflow: hidden;
  border: 1px solid rgba(127, 180, 148, 0.28);
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 10% 8%, rgba(70, 220, 125, 0.18), transparent 34%),
    radial-gradient(circle at 92% 90%, rgba(205, 244, 63, 0.11), transparent 35%),
    linear-gradient(145deg, #10271a 0%, var(--night) 74%);
  box-shadow: 0 24px 46px rgba(3, 18, 9, 0.24);
}

.chicago-card::after {
  content: "";
  position: absolute;
  top: 68px;
  bottom: 24px;
  left: 50%;
  width: 1px;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.12), transparent);
  pointer-events: none;
}

.chicago-card__topline {
  position: relative;
  z-index: 1;
  padding: 13px 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #9eb4a5;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.user-label {
  padding: 5px 8px;
  border: 1px solid rgba(205, 244, 63, 0.28);
  border-radius: 999px;
  color: var(--lime);
  background: rgba(205, 244, 63, 0.06);
}

.match-editor,
.match-result-main {
  position: relative;
  z-index: 1;
  min-height: 260px;
  padding: 22px 24px 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.match-result-main {
  min-height: 225px;
}

.team-side {
  min-width: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  text-align: center;
}

.team-token {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 17px;
  color: #d8e4db;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.team-token--chicago {
  border-color: rgba(205, 244, 63, 0.65);
  color: var(--night);
  background: var(--lime);
  box-shadow: 0 10px 26px rgba(205, 244, 63, 0.15);
}

.team-side__name {
  min-height: 39px;
  display: grid;
  place-items: center;
  font-size: 0.96rem;
  line-height: 1.2;
  font-weight: 850;
}

.team-side__meta {
  margin-top: -4px;
  color: #91a596;
  font-size: 0.76rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.score-stepper {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 36px 54px 36px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.06);
}

.score-stepper button {
  min-width: 36px;
  min-height: 48px;
  border: 0;
  color: #d8e4db;
  background: transparent;
  font-size: 1.2rem;
  line-height: 1;
  font-weight: 750;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease;
}

.score-stepper button:hover {
  color: var(--night);
  background: var(--lime);
}

.score-stepper input {
  width: 54px;
  min-height: 48px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.18);
  font-size: 1.55rem;
  font-weight: 950;
  text-align: center;
  font-variant-numeric: tabular-nums;
  appearance: textfield;
}

.score-stepper input::-webkit-inner-spin-button,
.score-stepper input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.versus {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  color: #819588;
  background: rgba(0, 0, 0, 0.17);
  font-size: 0.68rem;
  font-weight: 900;
}

.final-score {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--lime);
  font-size: clamp(2.55rem, 5vw, 3.4rem);
  line-height: 1;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.065em;
}

.final-score i {
  width: 12px;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
}

.fixture-heading {
  padding: 2px 20px 11px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.fixture-heading h3 {
  margin-bottom: 0;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.fixture-heading span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.fixture-list {
  padding: 0 18px 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.fixture-row {
  min-width: 0;
  min-height: 92px;
  padding: 11px 12px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  border: 1px solid #e4eae5;
  border-radius: 14px;
  background: var(--surface-soft);
  transition: border-color 150ms ease, transform 150ms ease, background 150ms ease;
}

.fixture-row:hover {
  border-color: #c8d8cd;
  background: #fff;
  transform: translateY(-1px);
}

.fixture-team {
  min-width: 0;
  font-size: 0.8rem;
  line-height: 1.2;
  font-weight: 780;
}

.fixture-team--home {
  text-align: right;
}

.fixture-center {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.fixture-score {
  min-width: 48px;
  padding: 6px;
  border: 1px solid #d9e1db;
  border-radius: 9px;
  color: #3c4740;
  background: #fff;
  font-size: 0.9rem;
  line-height: 1;
  font-weight: 900;
  text-align: center;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 8px rgba(13, 32, 20, 0.04);
}

.fixture-score.is-simulated {
  border-color: var(--green-strong);
  color: #fff;
  background: var(--green-strong);
}

.fixture-tag {
  color: #7a867e;
  font-size: 0.64rem;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mini-probs {
  grid-column: 1 / -1;
  height: 4px;
  display: flex;
  overflow: hidden;
  border-radius: 99px;
  background: #e1e6e2;
}

.mini-probs i:nth-child(1) {
  background: var(--green);
}

.mini-probs i:nth-child(2) {
  background: #a9b4ac;
}

.mini-probs i:nth-child(3) {
  background: #354039;
}

.mini-probs-label {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  color: #78847c;
  font-size: 0.65rem;
  line-height: 1;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.round-actions {
  padding: 16px 18px 18px;
  border-top: 1px solid #e5ebe7;
  background: rgba(246, 249, 247, 0.78);
}

.primary-action,
.secondary-action {
  width: 100%;
  min-height: 54px;
  padding: 13px 18px;
  border: 0;
  border-radius: 14px;
  font-size: 0.93rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.primary-action {
  color: var(--night);
  background: var(--lime);
  box-shadow: 0 10px 24px rgba(145, 176, 34, 0.21);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-1px);
}

.primary-action:hover {
  background: #d8fb5c;
  box-shadow: 0 13px 28px rgba(145, 176, 34, 0.26);
}

.secondary-action {
  color: #fff;
  background: var(--night-soft);
  box-shadow: 0 10px 24px rgba(5, 24, 12, 0.15);
}

.secondary-action:hover {
  background: #183624;
}

.round-summary {
  margin-bottom: 10px;
  padding: 11px 13px;
  border: 1px solid #cfe1d4;
  border-radius: 12px;
  color: #3d4b41;
  background: var(--green-soft);
  font-size: 0.85rem;
  line-height: 1.4;
}

.round-summary strong {
  color: var(--green-strong);
}

.final-summary {
  margin-bottom: 10px;
  padding: 17px;
  border: 1px solid #295e3c;
  border-radius: 15px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 15%, rgba(205, 244, 63, 0.16), transparent 40%),
    var(--night-soft);
}

.final-summary span {
  display: block;
  color: #9eb1a3;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.final-summary strong {
  display: block;
  margin: 5px 0 12px;
  color: var(--lime);
  font-size: 1.3rem;
  line-height: 1.2;
}

.share-card {
  margin-bottom: 10px;
  padding: 15px;
  border: 1px solid #d5e2d9;
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.share-card__copy {
  margin-bottom: 12px;
}

.share-card__copy strong,
.share-card__copy span {
  display: block;
}

.share-card__copy strong {
  color: var(--night-soft);
  font-size: 0.98rem;
}

.share-card__copy span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
}

.share-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.share-button {
  min-height: 44px;
  padding: 9px 10px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
  transition: transform 150ms ease, filter 150ms ease;
}

.share-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.share-button--whatsapp {
  background: #128c4b;
}

.share-button--x {
  background: #101512;
}

.share-button--facebook {
  background: #2364c8;
}

.share-button--more {
  color: var(--night-soft);
  background: #e3ebe6;
}

.panel-heading--table {
  min-height: 82px;
}

.table-legend {
  padding: 9px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  border-bottom: 1px solid #e6ece8;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 750;
}

.table-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--surface-soft);
}

.legend-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
}

.legend-dot--final {
  background: var(--green);
}

.legend-dot--playoff {
  background: var(--blue);
}

.legend-dot--relegation {
  background: var(--red);
}

.table-scroll {
  width: 100%;
  max-height: 826px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.standings-table {
  width: 100%;
  min-width: 650px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.standings-table th,
.standings-table td {
  height: 41px;
  padding: 7px;
  border-bottom: 1px solid #e9eeea;
  text-align: center;
  white-space: nowrap;
}

.standings-table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  color: #b9c8bd;
  background: #101c14;
  font-size: 0.66rem;
  font-weight: 850;
  text-transform: uppercase;
}

.standings-table th:first-child,
.standings-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 38px;
  box-shadow: 1px 0 0 #e0e6e1;
}

.standings-table th:first-child {
  z-index: 6;
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.1);
}

.standings-table .team-column,
.standings-table td.team-cell {
  position: sticky;
  left: 38px;
  z-index: 2;
  min-width: 176px;
  text-align: left;
  box-shadow: 1px 0 0 #e0e6e1;
}

.standings-table thead .team-column {
  z-index: 6;
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.1);
}

.standings-table tbody tr:nth-child(even) td {
  background: #f8faf9;
}

.standings-table tbody tr:nth-child(odd) td {
  background: #fff;
}

.standings-table tbody tr:hover td {
  background: #f1f6f3;
}

.standings-table td:first-child {
  border-left: 4px solid transparent;
  font-weight: 900;
}

.standings-table tr.zone-final td:first-child {
  border-left-color: var(--green);
}

.standings-table tr.zone-playoff td:first-child {
  border-left-color: var(--blue);
}

.standings-table tr.zone-relegation td:first-child {
  border-left-color: var(--red);
}

.standings-table tr.is-chicago td,
.standings-table tr.is-chicago:hover td {
  color: #fff;
  background: var(--green-strong) !important;
  border-bottom-color: rgba(255, 255, 255, 0.1);
  font-weight: 780;
}

.standings-table tr.is-chicago td:first-child,
.standings-table tr.is-chicago td.team-cell {
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.14);
}

.standings-table tr.is-chicago .points-column {
  color: var(--lime);
}

.team-cell {
  font-weight: 740;
}

.team-cell__inner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-team-token {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #d3ddd6;
  border-radius: 8px;
  color: #536158;
  background: #f0f4f1;
  font-size: 0.55rem;
  font-weight: 950;
}

.is-chicago .table-team-token {
  border-color: rgba(205, 244, 63, 0.75);
  color: var(--night);
  background: var(--lime);
}

.points-column {
  font-weight: 950;
}

.model-card {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-sm);
}

.model-card summary {
  min-height: 58px;
  padding: 16px 50px 16px 18px;
  position: relative;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.model-card summary::-webkit-details-marker {
  display: none;
}

.model-card summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--green-strong);
  background: var(--green-soft);
  font-size: 1.15rem;
  font-weight: 650;
}

.model-card[open] summary::after {
  content: "−";
}

.model-card[open] summary {
  border-bottom: 1px solid var(--line);
}

.model-grid {
  padding: 17px 18px 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.model-grid > div {
  padding: 13px;
  border: 1px solid #e1e9e3;
  border-radius: 13px;
  background: var(--surface-soft);
}

.model-grid strong {
  display: block;
  margin-bottom: 5px;
  color: var(--green-strong);
  font-size: 1.22rem;
}

.model-grid span,
.model-card p {
  color: #5c6960;
  font-size: 0.82rem;
  line-height: 1.5;
}

.model-card p {
  margin: 0;
  padding: 0 18px 18px;
}

.site-footer {
  padding: 17px 3px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #67736b;
  font-size: 0.72rem;
  line-height: 1.45;
}

.site-footer a {
  color: var(--green-strong);
  font-weight: 850;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: min(380px, calc(100vw - 36px));
  padding: 13px 16px;
  border: 1px solid rgba(205, 244, 63, 0.2);
  border-radius: 13px;
  color: #fff;
  background: rgba(7, 20, 14, 0.96);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
  font-size: 0.82rem;
  font-weight: 750;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1240px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) minmax(480px, 0.92fr);
  }

  .fixture-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .topbar__inner,
  .app-shell {
    width: min(100% - 24px, 1480px);
  }

  .scoreboard {
    grid-template-columns: repeat(3, 1fr);
  }

  .reset-button {
    grid-column: 1 / -1;
    min-height: 46px;
  }

  .mobile-tabs {
    position: sticky;
    top: 88px;
    z-index: 20;
    margin-bottom: 10px;
    padding: 5px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
  }

  .mobile-tab {
    min-height: 42px;
    border: 0;
    border-radius: 10px;
    color: var(--muted);
    background: transparent;
    font-size: 0.86rem;
    font-weight: 850;
    cursor: pointer;
  }

  .mobile-tab.is-active {
    color: #fff;
    background: var(--night-soft);
    box-shadow: 0 5px 14px rgba(7, 20, 14, 0.13);
  }

  .workspace {
    display: block;
  }

  body[data-mobile-view="matches"] .table-panel,
  body[data-mobile-view="table"] .matches-panel {
    display: none;
  }

  .fixture-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .table-scroll {
    max-height: none;
  }
}

@media (max-width: 680px) {
  .topbar__inner,
  .app-shell {
    width: calc(100% - 16px);
  }

  .topbar__inner {
    min-height: 74px;
    gap: 10px;
  }

  .competition-mark {
    width: 44px;
    height: 54px;
  }

  .eyebrow {
    font-size: 0.62rem;
  }

  h1 {
    font-size: 1.25rem;
  }

  .cutoff {
    padding: 7px 9px;
    font-size: 0.66rem;
  }

  .cutoff__dot {
    display: none;
  }

  .app-shell {
    margin-top: 10px;
  }

  .scoreboard {
    gap: 6px;
  }

  .scoreboard__item {
    min-height: 74px;
    padding: 10px;
    grid-template-columns: 1fr;
    gap: 2px;
    border-radius: 14px;
  }

  .scoreboard__label {
    margin-bottom: 2px;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
  }

  .scoreboard__item strong {
    font-size: 1.27rem;
  }

  .scoreboard__item > span:last-child {
    font-size: 0.64rem;
  }

  .reset-button {
    min-height: 43px;
    border-radius: 13px;
  }

  .round-track {
    margin: 8px 0 9px;
    padding: 5px;
  }

  .round-step {
    min-height: 32px;
    font-size: 0.7rem;
  }

  .mobile-tabs {
    top: 80px;
  }

  .panel {
    border-radius: 19px;
  }

  .panel-heading {
    min-height: 70px;
    padding: 13px 14px;
  }

  .panel-heading h2 {
    font-size: 1.08rem;
  }

  .luck-badge,
  .table-date {
    padding: 6px 8px;
    font-size: 0.64rem;
  }

  .chicago-card {
    margin: 11px;
    border-radius: 18px;
  }

  .chicago-card__topline {
    padding: 11px 11px 0;
    font-size: 0.63rem;
  }

  .match-editor,
  .match-result-main {
    min-height: 235px;
    padding: 18px 10px 22px;
    gap: 7px;
  }

  .match-result-main {
    min-height: 205px;
  }

  .team-token {
    width: 45px;
    height: 45px;
    border-radius: 14px;
    font-size: 0.65rem;
  }

  .team-side__name {
    min-height: 42px;
    font-size: 0.82rem;
  }

  .team-side__meta {
    font-size: 0.66rem;
  }

  .score-stepper {
    grid-template-columns: 30px 44px 30px;
    border-radius: 11px;
  }

  .score-stepper button {
    min-width: 30px;
    min-height: 44px;
  }

  .score-stepper input {
    width: 44px;
    min-height: 44px;
    font-size: 1.35rem;
  }

  .versus {
    width: 36px;
    height: 36px;
  }

  .fixture-heading {
    padding: 4px 13px 9px;
  }

  .fixture-heading span {
    font-size: 0.69rem;
  }

  .fixture-list {
    padding: 0 11px 11px;
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .fixture-row {
    min-height: 84px;
  }

  .fixture-team {
    font-size: 0.76rem;
  }

  .round-actions {
    padding: 12px;
  }

  .share-actions {
    grid-template-columns: 1fr 1fr;
  }

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

  .site-footer {
    display: grid;
  }
}

@media (max-width: 410px) {
  .cutoff {
    max-width: 85px;
    white-space: normal;
    text-align: center;
  }

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

@media (max-width: 350px) {
  .cutoff {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .panel {
    animation: none;
  }

  .toast,
  .fixture-row,
  .reset-button,
  .primary-action,
  .secondary-action,
  .share-button {
    transition: none;
  }
}
