.app-shell,
.live-shell {
  width: min(1520px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 10px 0 12px;
  gap: 10px;
}

body.page-fields .live-shell,
body[data-view-density] .live-shell {
  width: min(1520px, calc(100vw - 24px));
  padding: 10px 0 12px;
  gap: 10px;
}

.board-topbar {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) minmax(260px, 420px);
  gap: 14px;
  align-items: center;
  min-height: 142px;
  padding: 10px 14px;
  background:
    radial-gradient(circle at left center, rgba(255, 138, 51, 0.16), transparent 30%),
    radial-gradient(circle at right center, rgba(98, 208, 255, 0.16), transparent 30%),
    linear-gradient(100deg, rgba(52, 30, 18, 0.62), rgba(8, 10, 16, 0.9) 44%, rgba(22, 40, 54, 0.72));
}

.board-topbar .site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: auto;
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
}

.board-topbar .site-mark {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex: 0 0 auto;
}

.board-topbar .site-wordmark {
  display: block;
  width: 156px;
  height: auto;
}

.board-topbar .topbar-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 6px;
}

.board-topbar .topbar-copy h1 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.9rem, 2.35vw, 2.8rem);
  line-height: 0.94;
  letter-spacing: 0.05em;
  max-width: none;
  text-wrap: balance;
}

.board-topbar .topbar-copy p {
  display: none;
}

.board-topbar .eyebrow-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.board-topbar .eyebrow {
  margin-bottom: 0;
  font-size: 0.68rem;
  color: #ff8a33;
}

.board-topbar .eyebrow-chip {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #97a3b8;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.board-topbar .event-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.board-topbar .event-strip-item {
  display: inline-grid;
  gap: 4px;
  min-width: 0;
  padding: 6px 9px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(8, 10, 16, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.board-topbar .event-meta-label,
.board-topbar .league-card-label {
  color: #97a3b8;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.board-topbar .event-inline-value,
.board-topbar .league-card-value {
  color: #f7f4ee;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.15;
}

.board-topbar .event-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
}

.board-topbar .event-branding {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 10px;
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.board-topbar .event-branding-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  justify-items: start;
}

.board-topbar .event-branding .status-note {
  display: none;
}

.board-topbar .topbar-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
  width: min(420px, 100%);
  max-width: 420px;
  min-width: 0;
}

.board-topbar .topbar-action-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.board-topbar .board-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  min-width: 74px;
  padding: 0 14px;
  border: 1px solid rgba(255, 156, 57, 0.44);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 156, 57, 0.22), rgba(255, 156, 57, 0.1)),
    rgba(8, 10, 16, 0.52);
  color: #f7f4ee;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.board-topbar .board-home-link:hover {
  border-color: rgba(255, 197, 122, 0.66);
  background:
    linear-gradient(180deg, rgba(255, 156, 57, 0.3), rgba(255, 156, 57, 0.14)),
    rgba(8, 10, 16, 0.62);
  transform: translateY(-1px);
}

.board-topbar .header-shortcuts {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 100%;
}

.board-topbar .header-shortcut {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #97a3b8;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.board-topbar .header-shortcut:hover {
  color: #f7f4ee;
  border-color: rgba(255, 156, 57, 0.34);
  transform: translateY(-1px);
}

.board-topbar .header-shortcut.active {
  color: #f7f4ee;
  background: rgba(255, 156, 57, 0.16);
  border-color: rgba(255, 156, 57, 0.42);
}

@media (max-height: 840px) and (min-width: 981px) {
  .app-shell,
  .live-shell {
    padding: 10px 0;
    gap: 10px;
  }

  body.page-fields .live-shell,
  body[data-view-density] .live-shell {
    padding: 10px 0;
    gap: 10px;
  }

  .board-topbar {
    gap: 14px;
    padding: 10px 14px;
  }

  .board-topbar .site-mark {
    width: 44px;
    height: 44px;
  }

  .board-topbar .site-wordmark {
    width: 150px;
  }

  .board-topbar .topbar-copy h1 {
    font-size: clamp(1.9rem, 2.35vw, 2.8rem);
  }

  .board-topbar .event-logo {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 980px) {
  .app-shell,
  .live-shell {
    width: min(100vw - 24px, 1460px);
    padding: 14px 0 22px;
    gap: 12px;
  }

  body.page-fields .live-shell,
  body[data-view-density] .live-shell {
    width: min(100vw - 24px, 1460px);
    padding: 14px 0 22px;
    gap: 12px;
  }

  .board-topbar {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .board-topbar .event-strip-item {
    width: 100%;
  }

  .board-topbar .event-branding {
    justify-content: flex-start;
    width: fit-content;
  }

  .board-topbar .topbar-action-row {
    justify-content: space-between;
  }

  .board-topbar .topbar-actions {
    justify-items: start;
    width: 100%;
    max-width: 100%;
  }

  .board-topbar .header-shortcuts {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .app-shell,
  .live-shell {
    width: min(100vw - 20px, 1520px);
  }

  body.page-fields .live-shell,
  body[data-view-density] .live-shell {
    width: min(100vw - 20px, 1520px);
  }

  .board-topbar {
    padding: 14px;
  }

  .board-topbar .site-brand {
    width: 100%;
    justify-content: center;
  }

  .board-topbar .topbar-copy h1 {
    font-size: clamp(2.4rem, 11vw, 3.9rem);
  }

  .board-topbar .event-branding {
    width: auto;
    justify-content: flex-start;
  }

  .board-topbar .topbar-actions {
    width: 100%;
  }

  .board-topbar .topbar-action-row {
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .board-topbar .board-home-link {
    flex: 0 0 auto;
  }

  .board-topbar .header-shortcut {
    flex: 1 1 calc(50% - 6px);
  }
}
