:root {
  color-scheme: light;
  --ink: #202323;
  --ink-light: #343a38;
  --muted: #68706e;
  --orange: #f28a11;
  --orange-dark: #dc7300;
  --orange-hover: #ffa12d;
  --paper: #f7f6f2;
  --card-bg: #ffffff;
  --line: #e7e8e3;
  --line-strong: #dfe3dc;
  --gold: #df9e19;
  --silver: #97a1a6;
  --bronze: #b97c4e;
  --green: #2e7d32;
  --green-bg: #edf7ee;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', Arial, sans-serif;
  min-width: 320px;
  -webkit-font-smoothing: antialiased;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

[hidden] {
  display: none !important;
}

/* ================= SITE HEADER ================= */
.site-header {
  background: var(--ink);
  min-height: 84px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  max-width: 1240px;
  width: 100%;
  margin: auto;
  padding: 18px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 175px;
  height: auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-label {
  color: #e7e7e4;
  font-family: 'Outfit', Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.header-dot, .footer-dot {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  display: inline-block;
  flex: none;
}

.header-cta {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f1f2ee;
  text-decoration: none;
  font-family: 'Outfit', Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 99px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}

/* ================= PAGE SHELL & INTRO ================= */
.page-shell {
  max-width: 1240px;
  margin: auto;
  padding: 44px 30px 68px;
}

.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 220px;
  margin-bottom: 34px;
}

.intro-copy {
  max-width: 670px;
}

.eyebrow, .section-kicker {
  font-family: 'Outfit', Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--orange-dark);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow-line {
  width: 24px;
  height: 2px;
  background: var(--orange);
}

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

h1, h2, h3 {
  font-family: 'Outfit', Arial, sans-serif;
}

h1 {
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin: 16px 0 14px;
}

h1 span {
  color: var(--orange-dark);
}

.intro p {
  max-width: 540px;
  color: #5d6764;
  font-size: 16px;
  line-height: 1.55;
}

.trophy-art {
  position: relative;
  flex: none;
  margin-right: 32px;
}

.court-badge-art {
  width: 160px;
  height: 130px;
  background: #e5eadc;
  border: 4px solid #dfe5d5;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 14px 30px rgba(32, 44, 28, 0.08);
  transform: rotate(-4deg);
}

.court-mini {
  position: absolute;
  inset: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 6px;
}

.court-mini .net {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: rgba(255, 255, 255, 0.9);
}

.court-mini .midline {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.9);
}

.trophy-emoji {
  font-size: 54px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

/* ================= WORKSPACE & PANELS ================= */
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: stretch;
  gap: 24px;
}

.panel {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 14px 32px rgba(34, 44, 33, 0.06);
}

.panel-heading {
  display: flex;
  align-items: center;
  gap: 15px;
}

.heading-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff2e1;
  color: var(--orange-dark);
  display: grid;
  place-items: center;
  font-family: 'Outfit', Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  flex: none;
}

.panel-heading h2 {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: 2px;
}

.panel-description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 16px 0 24px;
}

/* ================= STEP 1: TEAMS LIST ================= */
.import-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.import-hint {
  font-size: 12px;
  color: #89938d;
}

.button {
  border: 0;
  border-radius: 10px;
  font-family: 'Outfit', Arial, sans-serif;
  font-weight: 600;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button:not(:disabled):hover {
  transform: translateY(-2px);
}

.button:focus-visible, .text-button:focus-visible, .remove-button:focus-visible {
  outline: 3px solid #f8ac54;
  outline-offset: 2px;
}

.button-import {
  gap: 7px;
  padding: 9px 14px;
  background: #fff3e3;
  border: 1px solid #f2cf9d;
  color: #af5d00;
  font-size: 13px;
}

.button-import:hover {
  background: #ffe8ca;
}

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

.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #46504d;
  margin-bottom: 8px;
}

.field input, .field select, .field textarea {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line-strong);
  background: #fafbf8;
  border-radius: 9px;
  padding: 0 14px;
  color: var(--ink);
  outline: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--orange);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(242, 138, 17, 0.18);
}

.button-add {
  height: 48px;
  padding: 0 18px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  gap: 8px;
}

.button-add:hover {
  background: #39403e;
}

.button-plus {
  font-size: 20px;
  line-height: 1;
}

.message {
  min-height: 18px;
  margin: 9px 0 0;
  color: #b44c22;
  font-size: 12px;
  line-height: 1.4;
}

.message.success {
  color: #2f7336;
}

.roster-heading {
  margin: 24px 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.roster-title {
  display: flex;
  align-items: center;
  gap: 9px;
}

.roster-title h3 {
  font-size: 17px;
}

.count-badge {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 99px;
  background: #fff0dd;
  color: #b96000;
  font-size: 12px;
  font-weight: 700;
}

.text-button {
  border: 0;
  background: transparent;
  color: #747c78;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px;
}

.text-button:hover {
  color: var(--orange-dark);
}

.team-list {
  min-height: 160px;
  max-height: 380px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fcfcfa;
  padding: 8px;
}

.empty-state {
  height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #8b9590;
  text-align: center;
  font-size: 13px;
}

.empty-state strong {
  color: #4b5550;
  font-size: 15px;
}

.empty-icon {
  font-size: 26px;
  margin-bottom: 2px;
}

.team-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #f0f2ed;
  margin-bottom: 6px;
}

.team-number {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f2f3ef;
  color: #657069;
  display: grid;
  place-items: center;
  font-family: 'Outfit', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}

.team-name-input {
  min-width: 0;
  flex: 1;
  height: 34px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  outline: none;
}

.team-name-input:hover {
  border-color: #e2e6de;
  background: #fbfcf9;
}

.team-name-input:focus {
  border-color: var(--orange);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(242, 138, 17, 0.18);
}

.remove-button {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #9aa29d;
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  border-radius: 6px;
}

.remove-button:hover {
  background: #fff0ed;
  color: #c45038;
}

.roster-footer {
  font-size: 12px;
  color: #848e88;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
}

/* ================= STEP 2: CONFIGURATION ================= */
.config-panel {
  display: flex;
  flex-direction: column;
}

.config-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.config-summary {
  background: #fafbf7;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  text-align: center;
  margin: 4px 0 6px;
}

.summary-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.summary-stat strong {
  font-family: 'Outfit', Arial, sans-serif;
  font-size: 16px;
  color: var(--ink);
}

.button-generate {
  width: 100%;
  height: 52px;
  background: var(--orange);
  color: #1e2522;
  font-size: 16px;
  gap: 10px;
  box-shadow: 0 8px 18px rgba(226, 135, 20, 0.22);
}

.button-generate:hover:not(:disabled) {
  background: var(--orange-hover);
  box-shadow: 0 10px 22px rgba(226, 135, 20, 0.32);
}

.button-generate:disabled {
  background: #ebd8c0;
  color: #8b8072;
  box-shadow: none;
}

.button-arrow {
  font-size: 18px;
}

/* ================= LIVE TOURNAMENT SECTION ================= */
.live-tournament {
  margin-top: 10px;
}

.live-bar {
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  box-shadow: 0 12px 30px rgba(32, 35, 35, 0.15);
}

.live-title-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Outfit', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--orange);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 8px #34d399;
  animation: pulseAnimation 2s infinite;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.live-heading {
  font-size: 24px;
  font-weight: 700;
}

.live-progress {
  font-size: 13px;
  color: #b1b8b4;
}

.live-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.button-whatsapp {
  background: #25d366;
  color: #0b3418;
  padding: 10px 18px;
  font-size: 14px;
  gap: 8px;
}

.button-whatsapp:hover {
  background: #3ae178;
}

.button-danger-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #e0e5e2;
  padding: 10px 14px;
  font-size: 13px;
}

.button-danger-outline:hover {
  border-color: #f87171;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
}

.live-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: start;
}

.panel-subhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 12px;
}

.panel-subhead h3 {
  font-size: 20px;
}

.panel-hint {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.button-copy-small {
  background: #fff2e1;
  border: 1px solid #f2cb94;
  color: #ab5b00;
  font-size: 12px;
  padding: 7px 12px;
  gap: 6px;
}

.button-copy-small:hover {
  background: #ffe6c2;
}

.button-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ================= MATCHES / FIXTURE CARDS ================= */
.rounds-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.round-block {
  border: 1px solid var(--line);
  background: #fafbf9;
  border-radius: 14px;
  padding: 16px;
}

.round-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eceee8;
}

.round-title {
  font-family: 'Outfit', Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.round-free-badge {
  font-size: 11px;
  background: #f1f3ed;
  color: #657069;
  padding: 3px 8px;
  border-radius: 99px;
  font-weight: 600;
}

.matches-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.match-card {
  background: #fff;
  border: 1px solid #e9ece4;
  border-radius: 12px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 85px minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.match-card:hover {
  border-color: #d7dcd2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.match-card.completed {
  border-color: #d1e3d3;
  background: #fbfffa;
}

.court-badge {
  font-family: 'Outfit', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  background: #f2f4ee;
  color: #556059;
  padding: 5px 8px;
  border-radius: 6px;
  text-align: center;
  white-space: nowrap;
}

.match-card.completed .court-badge {
  background: var(--green-bg);
  color: var(--green);
}

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

.team-box.team-b {
  flex-direction: row-reverse;
  text-align: right;
}

.team-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-box.winner .team-title {
  color: var(--green);
  font-weight: 700;
}

.score-input {
  width: 44px;
  height: 38px;
  text-align: center;
  font-family: 'Outfit', Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fafbf9;
  color: var(--ink);
  padding: 0;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.score-input:focus {
  border-color: var(--orange);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(242, 138, 17, 0.2);
}

.score-vs {
  font-family: 'Outfit', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #a4aca6;
}

/* ================= STANDINGS TABLE ================= */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 16px;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.standings-table th, .standings-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #f0f2ec;
}

.standings-table th {
  background: #f7f8f4;
  font-family: 'Outfit', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #6a746f;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.col-rank {
  width: 44px;
  text-align: center;
}

.col-team {
  font-weight: 600;
}

.col-stat {
  text-align: center;
  width: 44px;
  font-variant-numeric: tabular-nums;
  color: #49544f;
}

.col-pts {
  font-weight: 700;
  color: var(--orange-dark);
  font-size: 14px;
  background: rgba(242, 138, 17, 0.04);
}

.standings-row-first {
  background: #fffdf5;
}

.rank-badge {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-family: 'Outfit', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.rank-badge.rank-1 {
  background: #fff3d6;
  color: #ab6e00;
}

.rank-badge.rank-2 {
  background: #eef1f3;
  color: #55626b;
}

.rank-badge.rank-3 {
  background: #faece3;
  color: #965325;
}

.rank-badge.rank-other {
  background: #f1f3ed;
  color: #79827c;
}

.diff-positive {
  color: #2e7d32;
  font-weight: 600;
}

.diff-negative {
  color: #c62828;
}

.podium-banner {
  background: linear-gradient(135deg, #fff8eb 0%, #fff2dd 100%);
  border: 1px solid #f6deb0;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.podium-trophy {
  font-size: 32px;
  flex: none;
}

.podium-banner strong {
  font-family: 'Outfit', Arial, sans-serif;
  font-size: 15px;
  color: #925300;
  display: block;
}

.podium-banner p {
  font-size: 13px;
  color: #7c5c2d;
  margin-top: 2px;
}

/* ================= MODAL ================= */
.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(23, 32, 28, 0.65);
  backdrop-filter: blur(3px);
}

.import-modal {
  width: min(540px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(16, 23, 20, 0.3);
}

.modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.modal-heading h2 {
  font-size: 24px;
  margin-top: 4px;
}

.modal-close {
  width: 32px;
  height: 32px;
  flex: none;
  border: 0;
  border-radius: 8px;
  background: #f3f4f0;
  color: #656c68;
  font-size: 24px;
  line-height: 1;
}

.modal-close:hover {
  background: #ffe7df;
  color: #a74431;
}

.import-modal > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 12px 0 20px;
}

.import-modal textarea {
  display: block;
  width: 100%;
  min-height: 190px;
  resize: vertical;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fafbf8;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}

.import-error {
  min-height: 18px;
  color: #b44c22;
  font-size: 12px;
  margin: 8px 0 0;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.button-cancel, .button-confirm {
  height: 44px;
  padding: 0 18px;
  font-size: 14px;
}

.button-cancel {
  background: #f0f2ee;
  color: #53605a;
}

.button-cancel:hover {
  background: #e6eae4;
}

.button-confirm {
  background: var(--orange);
  color: #1f2522;
}

.button-confirm:hover {
  background: var(--orange-hover);
}

/* ================= CONVERSION FOOTER ================= */
.site-footer {
  background: var(--ink);
  color: #aeb5b1;
  padding: 56px 30px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  max-width: 1240px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-lead-box {
  background: linear-gradient(135deg, #2b3230 0%, #1c2120 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 34px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-lead-text {
  max-width: 680px;
}

.footer-tag {
  display: inline-block;
  font-family: 'Outfit', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--orange);
  margin-bottom: 8px;
}

.footer-lead-text h3 {
  font-size: 24px;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.25;
}

.footer-lead-text p {
  color: #b0b9b5;
  font-size: 14px;
  line-height: 1.6;
}

.button-cta-white {
  background: #fff;
  color: var(--ink);
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 15px;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: background 0.2s, transform 0.2s;
}

.button-cta-white:hover {
  background: var(--orange);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #8c9591;
}

.footer-brand-info img {
  display: block;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: #c2c9c5;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--orange);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 960px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .live-grid {
    grid-template-columns: 1fr;
  }
  .trophy-art {
    display: none;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 72px;
  }
  .header-inner {
    padding: 16px 20px;
  }
  .brand img {
    width: 145px;
  }
  .header-cta {
    display: none;
  }
  .page-shell {
    padding: 30px 16px 50px;
  }
  .intro {
    min-height: 0;
    margin-bottom: 24px;
  }
  .intro p {
    font-size: 14px;
  }
  .panel {
    padding: 22px 18px;
    border-radius: 14px;
  }
  .team-form {
    grid-template-columns: 1fr;
  }
  .button-add {
    width: 100%;
  }
  .match-card {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
  }
  .court-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .team-box.team-a {
    grid-column: 1 / -1;
    justify-content: space-between;
  }
  .team-box.team-b {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .score-vs {
    display: none;
  }
  .footer-lead-box {
    padding: 24px 20px;
  }
  .site-footer {
    padding: 40px 20px 30px;
  }
}
