:root {
  --black: #050608;
  --charcoal: #0b0d12;
  --panel: #111018;
  --panel-2: #151923;
  --panel-3: #1b1111;
  --ember: #e11d00;
  --ember-2: #ff6a00;
  --gold: #ffd34d;
  --cream: #fff7ed;
  --text: #f7efe8;
  --muted: #d6bda9;
  --blue: #152b4a;
  --cyan: #67e8f9;
  --green: #22c58b;
  --red: #ff4242;
  --line: rgba(255, 122, 26, .38);
  --line-soft: rgba(255, 122, 26, .18);
  --shadow: 0 18px 44px rgba(0, 0, 0, .38);
  --radius: 8px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(129, 14, 0, .2), transparent 340px),
    radial-gradient(circle at 70% 0%, rgba(255, 106, 0, .16), transparent 28%),
    linear-gradient(180deg, #080608 0%, #050608 44%, #100706 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(255, 106, 0, .07) 18.2%, transparent 18.6%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.025) 0 1px, transparent 1px 13px);
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cyan);
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 200;
  transform: translateY(-140%);
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--gold);
  color: #180a00;
  font-weight: 900;
}

.skip-link:focus {
  transform: translateY(0);
}

.desk-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.desk-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 16px;
  border-right: 1px solid var(--line);
  background: rgba(5, 6, 8, .94);
  backdrop-filter: blur(18px);
}

.desk-brand {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.desk-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0b1018;
  box-shadow: 0 0 24px rgba(255, 106, 0, .22);
}

.desk-brand strong,
.desk-brand small {
  display: block;
  line-height: 1.05;
}

.desk-brand small,
.eyebrow,
.field span,
.metric span,
.desk-status span,
.data-tag,
.tiny-label {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.desk-nav {
  display: grid;
  gap: 7px;
  align-content: start;
  overflow: auto;
  padding-right: 2px;
}

.desk-nav a,
.icon-button,
.button,
.mini-button {
  min-height: 40px;
  border: 1px solid rgba(255, 122, 26, .38);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #14233f, #0f1725);
  color: var(--cream);
  font-weight: 850;
  cursor: pointer;
}

.desk-nav a {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  text-align: left;
}

.desk-nav svg,
.icon-button svg,
.button svg {
  width: 18px;
  height: 18px;
}

.desk-nav a:hover,
.desk-nav a.is-active,
.button.primary,
.primary-tool {
  border-color: rgba(255, 210, 74, .62);
  background: linear-gradient(180deg, var(--ember), #8d0800);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 0 22px rgba(255, 72, 0, .22);
}

.desk-status,
.alert-strip,
.metric,
.board-card,
.flow-card,
.data-card,
.table-wrap,
.public-card,
.desk-dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(28, 18, 17, .96), rgba(8, 12, 18, .96));
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 106, 0, .06);
}

.desk-status {
  padding: 14px;
}

.desk-status p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.desk-main {
  min-width: 0;
  padding: 18px clamp(14px, 3vw, 32px) 42px;
}

.desk-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: -18px calc(clamp(14px, 3vw, 32px) * -1) 18px;
  padding: 14px clamp(14px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 6, 8, .92);
  backdrop-filter: blur(18px);
}

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

h1 {
  margin-bottom: 0;
  color: #ff1f14;
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.02;
  -webkit-text-stroke: 1px #000;
  letter-spacing: 0;
  text-shadow:
    -2px -2px 0 #000,
    2px -2px 0 #000,
    -2px 2px 0 #000,
    2px 2px 0 #000,
    0 4px 0 #000,
    0 0 14px rgba(255, 31, 20, .42),
    0 0 28px rgba(255, 106, 0, .18);
}

h2 {
  margin-bottom: 8px;
  color: var(--cream);
  font-size: clamp(26px, 2.6vw, 40px);
  line-height: 1.04;
}

h3 {
  margin-bottom: 8px;
  color: var(--cream);
  font-size: 20px;
}

p {
  color: var(--muted);
  line-height: 1.62;
}

.topbar-tools,
.action-row,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

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

.field.compact {
  min-width: 280px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 210, 77, .42);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 31, 48, .98), rgba(8, 12, 20, .98));
  color: var(--cream);
  padding: 10px 12px;
}

.icon-button,
.button,
.mini-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 10px 13px;
}

.icon-button span {
  font-size: 11px;
  line-height: 1;
}

.alert-strip {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  padding: 12px 14px;
}

.alert-strip svg {
  width: 20px;
  color: var(--gold);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

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

.metric {
  min-height: 124px;
  display: grid;
  align-content: center;
  padding: 16px;
}

.metric strong {
  color: var(--cream);
  font-size: 34px;
  line-height: 1;
}

.metric p {
  margin: 7px 0 0;
  font-size: 14px;
}

.command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 14px;
  margin-top: 14px;
}

.board-card,
.flow-card,
.data-card {
  padding: 18px;
}

.hero-board {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  display: grid;
  align-content: end;
  background:
    linear-gradient(90deg, rgba(5, 6, 8, .64), rgba(19, 8, 7, .5), rgba(5, 6, 8, .22)),
    var(--hero-image, var(--brand-hero-image, url("../images/league-fire-command-bg.webp"))) 42% center / cover no-repeat;
}

.hero-board > * {
  position: relative;
  z-index: 1;
}

.hero-board h2 {
  max-width: 760px;
  margin-bottom: 8px;
  color: #fff7ed;
  font-size: clamp(34px, 4vw, 60px);
  line-height: .98;
  text-shadow: 0 3px 14px rgba(0, 0, 0, .92), 0 0 22px rgba(255, 106, 0, .24);
}

.hero-board p {
  max-width: 780px;
  margin-bottom: 12px;
  color: #fff1dc;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .9);
}

.hero-board::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 32%, rgba(5, 6, 8, .92)),
    linear-gradient(0deg, rgba(255, 106, 0, .16), transparent 46%);
}

:is(.command-hero-grid, .elementor-section:has(.hero-board):has(.quick-access-card)) > .elementor-container {
  display: grid !important;
  grid-template-columns: minmax(0, 1.65fr) minmax(360px, 1fr);
  gap: 20px;
  align-items: stretch;
}

:is(.command-hero-grid, .elementor-section:has(.hero-board):has(.quick-access-card)) > .elementor-container > .elementor-column {
  width: auto !important;
  min-width: 0;
}

.command-hero-grid .elementor-column,
.command-hero-grid .elementor-widget-wrap,
.command-hero-grid .elementor-widget,
.command-hero-grid .elementor-widget-container {
  min-height: 100%;
  height: 100%;
}

.command-hero-grid .elementor-widget-wrap {
  padding: 0;
}

.command-hero-grid .hero-board {
  min-height: 100%;
  height: 100%;
}

.quick-access-card {
  min-height: 100%;
  height: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(225, 29, 0, .09), transparent 46%),
    rgba(15, 12, 16, .96);
}

.quick-access-header h3 {
  margin: 10px 0 5px;
  color: var(--cream);
  font-size: 22px;
}

.quick-access-header p {
  margin: 0 0 14px;
  font-size: 13px;
}

.quick-access-list {
  display: grid;
  gap: 8px;
}

.quick-access-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 52px;
  padding: 9px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(7, 10, 16, .76);
  color: var(--cream);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.quick-access-item:hover {
  transform: translateX(3px);
  border-color: rgba(255, 210, 77, .55);
  background: rgba(20, 31, 48, .92);
  color: var(--cream);
}

.quick-access-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 210, 77, .12);
  color: var(--gold);
}

.quick-access-icon svg,
.quick-access-icon i {
  width: 17px;
  font-size: 16px;
}

.quick-access-copy {
  display: grid;
  gap: 2px;
}

.quick-access-copy strong {
  font-size: 14px;
}

.quick-access-copy small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.quick-access-arrow {
  color: var(--gold);
  font-size: 24px;
  line-height: 1;
}

.data-tag {
  display: inline-flex;
  width: fit-content;
  padding: 5px 8px;
  border: 1px solid rgba(255, 210, 74, .3);
  border-radius: 999px;
  background: rgba(255, 210, 74, .08);
}

.stage-list {
  display: grid;
  gap: 8px;
}

.stage-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(7, 10, 16, .72);
}

.stage-dot {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 210, 74, .15);
  color: var(--gold);
  font-weight: 900;
}

.stage-copy {
  display: grid;
  gap: 3px;
}

.stage-copy small {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.stage-item.is-current {
  border-color: rgba(255, 210, 74, .55);
}

.stage-item.is-done .stage-dot {
  background: rgba(34, 197, 139, .18);
  color: var(--green);
}

.content-grid,
.three-column,
.two-column,
.gallery-grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.content-grid,
.three-column {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.public-card {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.public-card p {
  margin-bottom: 0;
}

.public-card .card-link {
  width: fit-content;
  color: var(--gold);
  font-weight: 900;
}

.public-card .card-link:hover {
  color: var(--cream);
}

.route-list {
  display: grid;
  gap: 8px;
}

.route-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(7, 10, 16, .72);
}

.route-row svg {
  width: 22px;
  color: var(--gold);
}

.route-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.route-row a {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 139, .38);
  background: rgba(34, 197, 139, .12);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
}

th {
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
}

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

.gallery-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 10, 16, .86);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gallery-card div {
  padding: 14px;
}

.gallery-card p {
  margin-bottom: 0;
}

.contact-panel {
  display: grid;
  gap: 12px;
}

.contact-panel label {
  display: grid;
  gap: 6px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.search-results {
  display: grid;
  gap: 8px;
  max-height: 58vh;
  overflow: auto;
}

.search-result {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(7, 10, 16, .72);
}

.search-result a {
  color: var(--gold);
  font-weight: 900;
}

.desk-dialog {
  position: relative;
  width: min(720px, calc(100% - 32px));
  padding: 24px;
  color: var(--text);
}

.desk-dialog::backdrop {
  background: rgba(0, 0, 0, .75);
}

.dialog-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #0d121c;
  color: var(--cream);
  cursor: pointer;
}

.dialog-close svg {
  width: 18px;
}

@media (max-width: 1280px) {
  .metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .content-grid,
  .three-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  .desk-shell {
    grid-template-columns: 1fr;
  }

  .desk-sidebar {
    position: static;
    height: auto;
    grid-template-rows: auto auto;
  }

  .desk-status {
    display: none;
  }

  .desk-nav {
    grid-template-columns: repeat(6, minmax(130px, 1fr));
    overflow: auto;
  }

  .desk-topbar,
  .section-head,
  .command-grid {
    grid-template-columns: 1fr;
  }

  .topbar-tools {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  :is(.command-hero-grid, .elementor-section:has(.hero-board):has(.quick-access-card)) > .elementor-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .command-hero-grid .elementor-column {
    width: 100% !important;
  }

  .command-hero-grid .hero-board,
  .quick-access-card {
    min-height: 0;
    height: auto;
  }

  .desk-main {
    padding-inline: 12px;
  }

  .desk-topbar {
    margin-inline: -12px;
    padding-inline: 12px;
  }

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

  .metrics-grid,
  .content-grid,
  .three-column,
  .two-column,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .field.compact {
    min-width: 0;
    width: 100%;
  }

  .site-search {
    flex: 1 1 100%;
  }

  .hero-board {
    min-height: 340px;
  }

  .hero-board h2 {
    font-size: 36px;
  }

  .route-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .route-row > a {
    grid-column: 2;
  }
}

/* WordPress and Elementor integration */
body.kctap-command-theme {
  padding: 0;
}

body.admin-bar .desk-sidebar,
body.admin-bar .desk-topbar {
  top: 32px;
}

.site-search label {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.command-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-top: 32px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}

.command-footer p {
  max-width: 700px;
  margin: 6px 0 0;
}

.command-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.command-footer a {
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
}

.command-home,
.public-page {
  min-width: 0;
}

.elementor-command-home .elementor-section,
.elementor-command-home .elementor-container,
.elementor-public-page .elementor-section,
.elementor-public-page .elementor-container {
  max-width: 100%;
}

.elementor-command-home .elementor-widget,
.elementor-public-page .elementor-widget {
  margin-bottom: 0;
}

.elementor-command-home .elementor-widget-container > :last-child,
.elementor-public-page .elementor-widget-container > :last-child {
  margin-bottom: 0;
}

.live-data-section,
.existing-page-content {
  margin-top: 24px;
}

.widget-frame,
.page-content-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 10, 16, .82);
  box-shadow: var(--shadow);
}

.widget-frame {
  margin-top: 14px;
  padding: 18px;
}

.page-content-card {
  padding: clamp(18px, 3vw, 30px);
}

.page-content-card > :first-child,
.widget-frame > :first-child {
  margin-top: 0;
}

.page-content-card > :last-child,
.widget-frame > :last-child {
  margin-bottom: 0;
}

.page-content-card a:not(.button),
.widget-frame a:not(.button) {
  color: var(--gold);
}

.page-content-card .elementor,
.page-content-card .elementor-section-wrap,
.page-content-card .elementor-section,
.page-content-card .elementor-container {
  max-width: 100%;
}

.page-content-card .elementor-section {
  border-radius: var(--radius);
}

.page-hero {
  margin-bottom: 14px;
}

.navigation.pagination {
  margin-top: 20px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-numbers {
  min-width: 38px;
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0f1725;
  color: var(--cream);
}

.page-numbers.current {
  background: linear-gradient(180deg, var(--ember), #8d0800);
}

@media (max-width: 782px) {
  body.admin-bar .desk-sidebar,
  body.admin-bar .desk-topbar {
    top: 46px;
  }
}

@media (max-width: 760px) {
  .command-footer {
    grid-template-columns: 1fr;
  }
}

/* Homepage league-night data flow */
.match-flow-board {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(21, 43, 74, .18), transparent 42%),
    linear-gradient(180deg, rgba(17, 16, 24, .98), rgba(5, 8, 13, .98));
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 106, 0, .05);
}

.match-flow-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: clamp(20px, 3vw, 30px);
  border-bottom: 1px solid var(--line-soft);
}

.match-flow-header h3 {
  margin: 10px 0 5px;
  font-size: clamp(25px, 2.3vw, 34px);
}

.match-flow-header p {
  max-width: 720px;
  margin-bottom: 0;
}

.match-flow-pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 clamp(20px, 3vw, 30px);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(6, 10, 17, .72);
}

.match-flow-stage {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 88px;
  padding: 16px 22px 16px 0;
}

.match-flow-stage:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--line), rgba(255, 210, 77, .12));
}

.match-flow-stage-icon,
.match-flow-empty-icon {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #111928;
  color: var(--gold);
}

.match-flow-stage-icon {
  width: 38px;
  height: 38px;
}

.match-flow-stage-icon svg,
.match-flow-empty-icon svg {
  width: 18px;
  height: 18px;
}

.match-flow-stage.is-active .match-flow-stage-icon {
  border-color: rgba(255, 210, 77, .7);
  background: linear-gradient(180deg, var(--ember), #8d0800);
  color: var(--cream);
  box-shadow: 0 0 18px rgba(255, 72, 0, .3);
}

.match-flow-stage strong,
.match-flow-stage small {
  display: block;
}

.match-flow-stage strong {
  color: var(--cream);
  font-size: 14px;
}

.match-flow-stage small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.match-night-list {
  display: grid;
}

.match-night {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  padding: clamp(20px, 3vw, 30px);
  border-bottom: 1px solid var(--line-soft);
}

.match-night:last-child {
  border-bottom: 0;
}

.match-night-header {
  align-self: start;
}

.match-night-date {
  display: inline-grid;
  min-width: 104px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d1522;
  text-align: center;
  box-shadow: inset 0 0 18px rgba(255, 106, 0, .06);
}

.match-night-date span {
  padding: 6px 10px;
  background: rgba(225, 29, 0, .18);
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.match-night-date strong {
  padding: 10px;
  color: var(--cream);
  font-size: 22px;
}

.match-night.is-today .match-night-date {
  border-color: rgba(255, 210, 77, .7);
  box-shadow: 0 0 22px rgba(255, 72, 0, .2);
}

.match-night-header h4 {
  margin: 14px 0 4px;
  color: var(--cream);
  font-size: 18px;
}

.match-night-header p {
  margin: 0;
  font-size: 13px;
}

.match-division-list {
  display: grid;
  gap: 22px;
}

.match-division-group {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 122, 26, .22);
  border-radius: 12px;
  background: rgba(4, 7, 12, .52);
}

.match-division-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 122, 26, .24);
  background:
    linear-gradient(90deg, rgba(225, 29, 0, .17), rgba(21, 43, 74, .22) 56%, rgba(7, 10, 16, .76));
}

.match-division-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.match-division-header h5 {
  margin: 0;
  color: var(--cream);
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.2;
}

.match-division-count {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid rgba(255, 210, 77, .3);
  border-radius: 999px;
  background: rgba(255, 210, 77, .08);
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.matchup-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 122, 26, .24);
  border-radius: 10px;
  background:
    linear-gradient(115deg, rgba(21, 43, 74, .46), transparent 46%),
    rgba(7, 10, 16, .92);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.matchup-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 210, 77, .52);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .3);
}

.matchup-meta,
.matchup-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.matchup-meta {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.matchup-meta span:last-child {
  color: var(--muted);
}

.matchup-lane {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 112px;
  padding: 14px;
}

.match-flow-competitor {
  min-width: 0;
}

.match-flow-competitor.is-away {
  text-align: right;
}

.match-flow-competitor small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.match-flow-competitor strong {
  display: block;
  color: var(--cream);
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 1.2;
}

.match-flow-competitor-link {
  color: var(--cream) !important;
  text-decoration: none;
}

.match-flow-competitor-link:hover {
  color: var(--gold) !important;
}

.matchup-vs {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 210, 77, .52);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff6a00, #8d0800 62%, #240501);
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  box-shadow: 0 0 18px rgba(255, 72, 0, .22);
}

.matchup-footer {
  padding: 9px 12px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 11px;
}

.matchup-footer span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.matchup-footer span:last-child {
  color: var(--green);
  font-weight: 900;
  text-transform: uppercase;
}

.matchup-footer svg {
  width: 13px;
  height: 13px;
  color: var(--gold);
}

.match-flow-empty {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: clamp(20px, 3vw, 30px);
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: rgba(7, 10, 16, .72);
}

.match-flow-empty-icon {
  width: 52px;
  height: 52px;
}

.match-flow-empty strong {
  color: var(--cream);
}

.match-flow-empty p {
  margin: 4px 0 0;
}

@media (max-width: 760px) {
  .match-flow-header,
  .match-night {
    grid-template-columns: 1fr;
  }

  .match-flow-action {
    width: 100%;
  }

  .match-flow-pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-block: 8px;
  }

  .match-flow-stage {
    min-height: 72px;
    padding-block: 10px;
  }

  .match-flow-stage::after {
    display: none;
  }

  .match-night {
    gap: 16px;
  }

  .match-night-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
  }

  .match-night-header h4 {
    margin-top: 0;
  }

  .match-card-grid {
    grid-template-columns: 1fr;
  }

  .match-division-header {
    align-items: flex-start;
  }
}
