:root {
  /* Font system (borrowed from Horizon v2) */
  --font-sans-en: "Instrument Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif-en: "Instrument Serif", Georgia, serif;
  --font-sans-kr: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  --font-sans-global: "Noto Sans", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --font-sans-locale: var(--font-sans-kr);
  --font-family: var(--font-sans-en), var(--font-sans-locale), var(--font-sans-global);
  --font-family-serif: var(--font-serif-en), "Noto Serif KR", serif;

  --sp-font-sans: var(--font-family);
  --sp-font-serif: var(--font-family-serif);
  --sp-font-mono: var(--font-mono);

  --sp-space-0: 0;
  --sp-space-1: 4px;
  --sp-space-2: 8px;
  --sp-space-3: 12px;
  --sp-space-4: 16px;
  --sp-space-5: 20px;
  --sp-space-6: 24px;
  --sp-space-7: 28px;
  --sp-space-8: 32px;
  --sp-space-10: 40px;
  --sp-space-12: 48px;

  --sp-radius-sm: 6px;
  --sp-radius-md: 10px;
  --sp-radius-lg: 14px;
  --sp-radius-full: 999px;

  --sp-container: 1240px;
  --sp-header-h: 54px;
  --sp-ticker-h: 40px;
  --sp-ribbon-h: 90px;
  --sp-page-pad-x: 12px;

  --sp-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
  --sp-shadow-md: 0 12px 28px rgba(0, 0, 0, 0.22);

  /* fallback theme values (overridden below) */
  --sp-bg-app: #070a0e;
  --sp-bg-panel: #0f141c;
  --sp-bg-element: #172132;
  --sp-bg-hover: #1d2a40;
  --sp-text: #eaf0fb;
  --sp-muted: #8fa0b8;
  --sp-border: #1c2a41;
  --sp-primary: #2f7cff;
  --sp-primary-ink: #ffffff;
  --sp-live: #ff465f;
  --sp-up: #10b981;
  --sp-down: #f43f5e;
  --sp-gold: #fbbf24;
  --sp-live-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
  --sp-ticker-ink: color-mix(in srgb, var(--sp-text) 85%, var(--sp-muted));
}

:root.symbols-font-pending .material-symbols-outlined {
  visibility: hidden;
}

:root[data-hz-boot="1"] body.sports-body > * {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.material-symbols-outlined {
  display: inline-block;
  width: 1em;
  height: 1em;
  line-height: 1;
  vertical-align: middle;
}

.material-symbols-outlined[data-symbol-ready="1"] {
  background-color: currentColor;
  -webkit-mask-image: var(--app-icon-url);
  mask-image: var(--app-icon-url);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  text-indent: -9999px;
  overflow: hidden;
  white-space: nowrap;
}

:root[data-theme="light"] {
  color-scheme: light;
  --sp-bg-app: #f6f7fb;
  --sp-bg-panel: #ffffff;
  --sp-bg-element: #f0f3f8;
  --sp-bg-hover: #e8edf6;
  --sp-text: #0c111a;
  --sp-muted: #5b6a82;
  --sp-border: #dde3ee;
  --sp-primary: #1d64ff;
  --sp-primary-ink: #ffffff;
  --sp-live: #e11d48;
  --sp-up: #059669;
  --sp-down: #e11d48;
  --sp-gold: #d97706;
  --sp-live-shadow: none;
  --sp-ticker-ink: color-mix(in srgb, var(--sp-text) 82%, var(--sp-muted));
  --sp-shadow-sm: 0 1px 2px rgba(12, 17, 26, 0.08);
  --sp-shadow-md: 0 16px 32px rgba(12, 17, 26, 0.12);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --sp-bg-app: #05080a;
  --sp-bg-panel: #0f131a;
  --sp-bg-element: #1a212e;
  --sp-bg-hover: #252e3d;
  --sp-text: #f1f5f9;
  --sp-muted: #64748b;
  --sp-border: #1e293b;
  --sp-primary: #3b82f6;
  --sp-primary-ink: #ffffff;
  --sp-live: #ef4444;
  --sp-up: #10b981;
  --sp-down: #f43f5e;
  --sp-gold: #f59e0b;
  --sp-live-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
  --sp-ticker-ink: color-mix(in srgb, var(--sp-text) 85%, var(--sp-muted));
}

:root[data-theme="colorblind"] {
  color-scheme: light;
  --sp-bg-app: #fefefe;
  --sp-bg-panel: #ffffff;
  --sp-bg-element: #f0f0f0;
  --sp-bg-hover: #e8e8e8;
  --sp-text: #1a1a1a;
  --sp-muted: #4a4a4a;
  --sp-border: #cccccc;
  --sp-primary: #1464a0;
  --sp-primary-ink: #ffffff;
  --sp-live: #d55e00;
  --sp-up: #009e73;
  --sp-down: #cc3300;
  --sp-gold: #e69f00;
  --sp-live-shadow: none;
  --sp-ticker-ink: var(--sp-text);
  --sp-shadow-sm: 0 1px 2px rgba(12, 17, 26, 0.08);
  --sp-shadow-md: 0 16px 32px rgba(12, 17, 26, 0.12);
}

:root[data-theme="hc-dark"] {
  color-scheme: dark;
  --sp-bg-app: #000000;
  --sp-bg-panel: #000000;
  --sp-bg-element: #0b0f16;
  --sp-bg-hover: #141b28;
  --sp-text: #ffffff;
  --sp-muted: #cbd5e1;
  --sp-border: #475569;
  --sp-primary: #60a5fa;
  --sp-primary-ink: #000000;
  --sp-live: #ff3b3b;
  --sp-live-shadow: none;
  --sp-ticker-ink: var(--sp-text);
  --sp-shadow-sm: none;
  --sp-shadow-md: none;
}

:root[data-theme="hc-light"] {
  color-scheme: light;
  --sp-bg-app: #ffffff;
  --sp-bg-panel: #ffffff;
  --sp-bg-element: #f3f4f6;
  --sp-bg-hover: #e5e7eb;
  --sp-text: #000000;
  --sp-muted: #111827;
  --sp-border: #000000;
  --sp-primary: #0047ff;
  --sp-primary-ink: #ffffff;
  --sp-live-shadow: none;
  --sp-ticker-ink: var(--sp-text);
  --sp-shadow-sm: none;
  --sp-shadow-md: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

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

body.sports-body {
  margin: 0;
  font-family: var(--sp-font-sans);
  /* Sync portal palette with Horizon header tokens (layout unchanged) */
  --sp-bg-app: var(--background);
  --sp-bg-panel: var(--card);
  --sp-bg-element: var(--muted);
  --sp-bg-hover: color-mix(in srgb, var(--muted) 80%, var(--foreground));
  --sp-text: var(--foreground);
  --sp-muted: var(--muted-foreground);
  --sp-border: var(--border);
  --sp-primary: var(--primary);
  --sp-primary-ink: var(--primary-foreground);
  --sp-live: var(--destructive);
  --sp-up: var(--success);
  --sp-down: var(--destructive);
  --sp-gold: var(--warning);
  --sp-shadow-sm: var(--shadow-sm);
  --sp-shadow-md: var(--shadow-lg);
  background: var(--sp-bg-app);
  color: var(--sp-text);
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior: none;
}

.sports-initial-loading {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-space-6);
  background: #000000;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.sports-initial-loading.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.sports-initial-loading__content {
  width: min(100%, 320px);
  text-align: center;
}

.sports-initial-loading__logo {
  margin-bottom: var(--sp-space-4);
  opacity: 0.92;
}

.sports-initial-loading__logo img {
  width: auto;
  height: 32px;
}

.sports-initial-loading__bar {
  width: min(100%, 200px);
  height: 2px;
  margin: 0 auto var(--sp-space-3);
  background: color-mix(in srgb, var(--sp-bg-element) 76%, transparent);
  border-radius: var(--sp-radius-full);
  overflow: hidden;
}

.sports-initial-loading__bar-fill {
  height: 100%;
  background: var(--sp-primary);
  animation: sports-initial-loading-progress 1.5s ease-in-out infinite;
}

@keyframes sports-initial-loading-progress {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}

.sports-initial-loading__text {
  margin: 0;
  font-size: var(--sp-space-3);
  font-weight: 500;
  color: color-mix(in srgb, var(--sp-text) 70%, transparent);
}

.sports-toast-viewport {
  position: fixed;
  right: var(--sp-space-4);
  bottom: var(--sp-space-4);
  display: grid;
  gap: var(--sp-space-2);
  z-index: 2000;
  pointer-events: none;
}

.sports-toast {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-space-2);
  padding: var(--sp-space-3) var(--sp-space-4);
  border-radius: var(--sp-radius-md);
  background: var(--sp-bg-panel);
  border: 1px solid var(--sp-border);
  box-shadow: var(--sp-shadow-md);
  font-size: 0.85rem;
  color: var(--sp-text);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sports-toast-success {
  border-color: color-mix(in srgb, var(--sp-up) 60%, var(--sp-border));
}

.sports-toast-warning {
  border-color: color-mix(in srgb, var(--sp-gold) 65%, var(--sp-border));
}

.sports-toast-error {
  border-color: color-mix(in srgb, var(--sp-down) 60%, var(--sp-border));
}

.sports-toast.is-hiding {
  opacity: 0;
  transform: translateY(6px);
}

.sports-toast-text {
  letter-spacing: -0.01em;
}

@media (max-width: 768px) {
  .sports-toast-viewport {
    right: var(--sp-space-3);
    left: var(--sp-space-3);
    bottom: var(--sp-space-3);
  }

  .sports-toast {
    width: 100%;
    justify-content: center;
  }
}

/* Sports console palette bridge: keep admin layout, adopt portal palette */
body.admin-body[data-sports-api-base="/api/sports/console"] {
  --sp-page-pad-x: 24px;
  --background: var(--sp-bg-app);
  --background-subtle: var(--sp-bg-app);
  --foreground: var(--sp-text);
  --card: var(--sp-bg-panel);
  --card-foreground: var(--sp-text);
  --muted: var(--sp-bg-element);
  --muted-foreground: var(--sp-muted);
  --border: var(--sp-border);
  --border-strong: var(--sp-border);
  --primary: var(--sp-primary);
  --primary-hover: color-mix(in srgb, var(--sp-primary) 86%, white);
  --primary-foreground: var(--sp-primary-ink);
  --success: var(--sp-up);
  --warning: var(--sp-gold);
  --destructive: var(--sp-down);
  --shadow-sm: var(--sp-shadow-sm);
  --shadow-lg: var(--sp-shadow-md);
  font-family: var(--sp-font-sans);
  color: var(--sp-text);
}

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

img {
  max-width: 100%;
  height: auto;
}

img.img-safe {
  opacity: 0;
  transition: opacity 0.2s ease;
}

img.img-safe.is-loaded {
  opacity: 1;
}

img.img-safe.is-error {
  display: none;
}

/* =========================================
   Sports transition overlay (baseball entry)
   ========================================= */

.sports-transition-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 800px;
  z-index: 9999;
  opacity: 0;
}

.sports-transition-overlay .dim-layer {
  display: none;
}

.sports-transition-overlay .logo-container {
  width: 220px;
  height: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform-style: preserve-3d;
  transform: translateZ(-900px) rotateY(35deg);
}

.sports-transition-overlay .logo-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(0, 120, 255, 0.7)) drop-shadow(0 0 48px rgba(0, 80, 200, 0.45));
}

:root[data-theme="light"] .sports-transition-overlay .logo-img,
:root[data-theme="colorblind"] .sports-transition-overlay .logo-img,
:root[data-theme="hc-dark"] .sports-transition-overlay .logo-img,
:root[data-theme="hc-light"] .sports-transition-overlay .logo-img {
  filter: none;
}

.sports-transition-overlay.active {
  opacity: 1;
}

.sports-transition-overlay.active .logo-container {
  animation: sp-logo-fly 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.sports-transition-overlay.fading-out .logo-container {
  opacity: 0;
  transition: opacity 0.35s ease-out;
}

@keyframes sp-logo-fly {
  0% {
    opacity: 0;
    transform: translateZ(-900px) rotateY(35deg);
  }

  20% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translateZ(0) rotateY(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sports-transition-overlay {
    display: none;
  }
}

/* =========================================
   sports-system-3 Hub
   ========================================= */

.sp3-ticker-wrap {
  width: 100%;
  height: var(--sp-ticker-h);
  background: color-mix(in srgb, var(--sp-bg-panel) 92%, var(--sp-bg-app));
  border-bottom: 1px solid var(--sp-border);
  display: flex;
  align-items: center;
  position: relative;
}

.ticker-label {
  background: var(--sp-primary);
  color: var(--sp-primary-ink);
  height: 100%;
  padding: 0 var(--space-3);
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  position: relative;
  z-index: 2;
}

:root[data-theme="light"] .ticker-label,
:root[data-theme="colorblind"] .ticker-label,
:root[data-theme="hc-dark"] .ticker-label,
:root[data-theme="hc-light"] .ticker-label {
  box-shadow: none;
  border-right: 1px solid var(--sp-border);
}

.ticker-viewport {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-move {
  display: inline-flex;
  align-items: center;
  height: 100%;
  line-height: 1;
  width: max-content;
  white-space: nowrap;
  padding-right: 50px;
  animation: sp3-ticker 30s linear infinite;
  position: relative;
  z-index: 1;
  will-change: transform;
  transform: translateZ(0);
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  margin-right: var(--space-8);
  font-size: var(--fs-sm);
  font-family: var(--sp-font-sans);
  font-weight: 600;
  line-height: 1;
  color: var(--sp-ticker-ink);
}

@keyframes sp3-ticker {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(calc(var(--ticker-distance, 0px) * -1), 0, 0);
  }
}

@media (max-width: 720px) {
  .ticker-move {
    animation-duration: 26s;
  }
}

.sp3-ribbon-shell {
  position: relative;
  background: color-mix(in srgb, var(--sp-bg-panel) 92%, var(--sp-bg-app));
  border-bottom: 1px solid var(--sp-border);
}

.sp3-ribbon-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: var(--control-h-m);
  height: var(--control-h-m);
  border-radius: var(--radius-full);
  border: 1px solid var(--sp-border);
  border-color: color-mix(in srgb, var(--sp-border) 70%, transparent);
  background: color-mix(in srgb, var(--sp-bg-panel) 88%, black);
  color: var(--sp-text);
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  user-select: none;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}

:root[data-theme="light"] .sp3-ribbon-nav,
:root[data-theme="colorblind"] .sp3-ribbon-nav,
:root[data-theme="hc-light"] .sp3-ribbon-nav {
  background: var(--sp-bg-panel);
}

:root[data-theme="hc-dark"] .sp3-ribbon-nav,
:root[data-theme="hc-light"] .sp3-ribbon-nav {
  backdrop-filter: none;
}

.sp3-ribbon-nav:hover {
  border-color: var(--sp-primary);
}

.sp3-ribbon-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.sp3-ribbon-nav.prev {
  left: var(--space-3);
}

.sp3-ribbon-nav.next {
  right: var(--space-3);
}

.ribbon-container {
  height: var(--sp-ribbon-h);
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-padding: 0;
  padding: 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  gap: 0;
}

.ribbon-container::-webkit-scrollbar {
  display: none;
}

.match-card {
  min-width: 220px;
  border-right: 1px solid var(--sp-border);
  padding: var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.match-card:hover {
  background: var(--sp-bg-element);
}

.match-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sp-primary);
  transition: width 0.25s ease;
}

.match-card:hover::after {
  width: 100%;
}

.match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  font-weight: 600;
  margin: 0 0 var(--space-1);
  color: var(--sp-muted);
}

.match-header span:last-child {
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-sm);
  margin: 0 0 var(--space-0-5);
  font-weight: 600;
  gap: var(--space-3);
}

.match-row>span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-row:last-child {
  margin-bottom: 0;
}

.match-team {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

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

.match-logo {
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 6px;
  padding: 2px;
  object-fit: contain;
  flex: 0 0 auto;
}

.score {
  font-family: var(--sp-font-mono);
  font-weight: 900;
}

/* Utility colors (sports-system-3 like) */
.text-live {
  color: var(--sp-live);
  text-shadow: var(--sp-live-shadow);
}

.text-up {
  color: var(--sp-up);
}

.text-down {
  color: var(--sp-down);
}

.text-gold {
  color: var(--sp-gold);
}

.text-muted {
  color: var(--sp-muted);
}

.sp3-container {
  max-width: var(--sp-container);
  margin: 0 auto;
  padding: clamp(var(--space-3), 2vw, var(--space-4)) var(--sp-page-pad-x) var(--space-12);
  display: grid;
  gap: var(--space-stack-lg);
}

.dashboard {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: var(--space-5);
  align-items: start;
}

.hero-widget {
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(var(--space-4), 3vw, var(--space-6));
  background: var(--sp-bg-panel);
  min-height: 300px;
  min-width: 0;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 10, 0.68);
}

:root[data-theme="light"] .hero-overlay,
:root[data-theme="colorblind"] .hero-overlay {
  background: rgba(246, 247, 251, 0.72);
}

:root[data-theme="hc-dark"] .hero-overlay {
  background: rgba(0, 0, 0, 0.78);
}

:root[data-theme="hc-light"] .hero-overlay {
  background: rgba(255, 255, 255, 0.82);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-2);
  align-content: end;
  min-width: 0;
}

.tag {
  margin-bottom: var(--space-1);
}

.hero-title {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-desc {
  margin: 0;
  max-width: 66ch;
  color: var(--sp-muted);
  font-size: var(--fs-sm);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.hero-meta {
  margin-top: var(--space-1);
  font-size: var(--fs-xs);
  color: var(--sp-muted);
}

.hero-data-sidebar {
  background: var(--sp-bg-element);
  border-left: 1px solid var(--sp-border);
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 0;
  min-width: 0;
}

.hero-news-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0;
  height: 100%;
}

.hero-news-card {
  position: relative;
  border: none;
  border-radius: 0;
  background: var(--sp-bg-panel);
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  overflow: hidden;
}

.hero-news-card:not(:last-child) {
  border-bottom: 1px solid var(--sp-border);
}

.hero-news-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-news-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 10, 0.7);
}

:root[data-theme="light"] .hero-news-overlay,
:root[data-theme="colorblind"] .hero-news-overlay {
  background: rgba(246, 247, 251, 0.74);
}

:root[data-theme="hc-dark"] .hero-news-overlay {
  background: rgba(0, 0, 0, 0.8);
}

:root[data-theme="hc-light"] .hero-news-overlay {
  background: rgba(255, 255, 255, 0.84);
}

.hero-news-content {
  position: relative;
  z-index: 1;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.hero-news-kicker {
  align-self: flex-start;
}

.hero-news-title {
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-news-meta {
  font-size: var(--fs-xs);
  color: var(--sp-muted);
  margin-top: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-block h4 {
  margin: 0 0 8px;
  font-size: 0.75rem;
  color: var(--sp-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.big-number {
  font-size: 2rem;
  font-weight: 700;
}

.data-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--sp-muted);
}

.terminal-widget {
  padding: var(--space-4);
  font-family: var(--sp-font-mono);
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  height: 300px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.terminal-header {
  border-bottom: 1px solid var(--sp-border);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-3);
  color: var(--sp-primary);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
}

.terminal-sub {
  color: var(--sp-muted);
  font-weight: 600;
  font-family: var(--sp-font-sans);
  font-size: var(--fs-xs);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-container {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding-right: var(--space-1);
}

.log-item {
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--sp-border);
  display: flex;
  gap: var(--space-2);
}

.log-time {
  color: var(--sp-muted);
  min-width: 45px;
  font-family: var(--sp-font-mono);
}

.log-msg {
  color: var(--sp-text);
  color: color-mix(in srgb, var(--sp-text) 86%, var(--sp-muted));
  min-width: 0;
}

.keyword {
  color: var(--sp-gold);
  font-weight: 700;
}

.sports-empty,
.sports-feed-empty {
  color: var(--sp-muted);
  font-size: var(--fs-xs);
  padding: var(--space-3) 0;
}

.sp3-section {
  margin-top: 0;
  display: grid;
  gap: var(--space-4);
}

.sp3-section-nav {
  display: flex;
  gap: 10px;
}

.sp3-nav-btn {
  background: var(--sp-bg-element);
  border: 1px solid var(--sp-border);
  color: var(--sp-text);
  width: 32px;
  height: 32px;
  border-radius: var(--sp-radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sp3-nav-btn:hover {
  border-color: color-mix(in srgb, var(--sp-primary) 70%, var(--sp-border));
  background: color-mix(in srgb, var(--sp-primary) 12%, var(--sp-bg-element));
}

/* Facility showcase (sports-system-3) */
.facility-scroll {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.facility-card {
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.2s ease;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.facility-card:hover {
  transform: translateY(-5px);
  border-color: var(--sp-primary);
}

.f-img {
  height: 180px;
  position: relative;
  background: var(--sp-bg-app);
}

.f-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.92;
}

.f-specs {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: color-mix(in srgb, var(--sp-bg-app) 35%, black);
  backdrop-filter: blur(4px);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-family: var(--sp-font-mono);
  color: var(--sp-primary);
  border: 1px solid color-mix(in srgb, var(--sp-primary) 45%, var(--sp-border));
}

:root[data-theme="light"] .f-specs,
:root[data-theme="colorblind"] .f-specs {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
}

:root[data-theme="hc-dark"] .f-specs,
:root[data-theme="hc-light"] .f-specs {
  background: var(--sp-bg-panel);
  backdrop-filter: none;
}

.f-body {
  padding: var(--space-4);
}

.f-title {
  font-size: var(--fs-body);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-1);
}

.f-loc {
  color: var(--sp-muted);
  font-size: var(--fs-xs);
  display: flex;
  align-items: center;
  gap: var(--space-1-5);
}

.hero-visual:focus-visible,
.hero-news-card:focus-visible,
.sp3-link:focus-visible,
.sp3-btn:focus-visible,
.facility-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin: 0;
}

.section-heading.section-header {
  padding-bottom: var(--space-2);
  border-bottom: 1px solid color-mix(in srgb, var(--sp-border) 84%, transparent);
}

.title-group {
  display: grid;
  gap: var(--space-2);
  min-width: 0;
}

.title-group > div {
  display: grid;
  gap: var(--space-1);
  min-width: 0;
}

.title-group h2 {
  margin: 0;
  font-size: var(--fs-h1);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-summary {
  margin: 0;
  color: var(--muted-foreground);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

.sp3-league-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.sp3-league-card {
  padding: var(--space-4);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sp3-league-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.sp3-league-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.sp3-league-brand {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  align-items: center;
  min-width: 0;
}

.sp3-league-logo {
  width: 54px;
  height: 54px;
  background: #fff;
  border-radius: 10px;
  padding: 6px;
  object-fit: contain;
}

.sp3-league-logo.is-plain {
  background: transparent;
  padding: 0;
}

.sp3-league-kicker {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--sp-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sp3-league-title {
  margin: var(--space-1) 0 0;
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sp3-league-desc {
  margin: var(--space-1) 0 0;
  font-size: var(--fs-sm);
  color: var(--sp-muted);
  line-height: 1.5;
}

.sp3-link {
  font-size: 12px;
  color: var(--sp-primary);
  font-weight: 700;
  white-space: nowrap;
}

.sp3-mini-grid {
  margin-top: var(--space-4);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-2);
}

.sp3-mini {
  border: 1px solid var(--sp-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  background: var(--sp-bg-element);
  min-width: 0;
}

.sp3-mini-label {
  font-size: var(--fs-xs);
  color: var(--sp-muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sp3-mini-value {
  margin-top: var(--space-1);
  font-size: var(--fs-body-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp3-mini-meta {
  margin-top: var(--space-1);
  font-size: var(--fs-xs);
  color: var(--sp-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp3-actions {
  margin-top: var(--space-4);
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.sp3-btn {
  min-height: var(--control-h-s);
  padding: 0 var(--space-3);
  border-radius: var(--radius);
  border: 1px solid var(--sp-border);
  background: color-mix(in srgb, var(--sp-primary) 12%, var(--sp-bg-element));
  color: var(--sp-text);
  font-size: var(--fs-xs);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sp3-btn:hover {
  border-color: color-mix(in srgb, var(--sp-primary) 70%, var(--sp-border));
  background: color-mix(in srgb, var(--sp-primary) 18%, var(--sp-bg-element));
}

.sp3-btn.ghost {
  background: transparent;
}

:root[data-theme="hc-dark"] .sp3-btn,
:root[data-theme="hc-light"] .sp3-btn {
  background: transparent;
  border-color: var(--sp-primary);
  color: var(--sp-primary);
}

:root[data-theme="hc-dark"] .sp3-btn.ghost,
:root[data-theme="hc-light"] .sp3-btn.ghost {
  border-color: var(--sp-border);
  color: var(--sp-text);
}

.sp3-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.sp3-card {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.sp3-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--sp-primary) 40%, var(--sp-border));
}

.sp3-card-tag {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sp-primary);
  opacity: 0.8;
}

.sp3-card-title {
  margin: 0;
  font-size: var(--fs-body-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sp3-card-desc {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--sp-muted);
  line-height: 1.5;
}

.sp3-card-meta {
  margin-top: auto;
  font-size: var(--fs-xs);
  color: var(--sp-muted);
}

.sp3-table-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.table-panel {
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.baseball-table-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: auto 1fr;
}

.table-header {
  padding: var(--space-3);
  border-bottom: 1px solid var(--sp-border);
  background: color-mix(in srgb, var(--sp-bg-element) 72%, var(--sp-bg-panel));
  display: flex;
  gap: var(--space-2);
}

.nav-pill {
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--sp-muted);
  border: 1px solid transparent;
  text-transform: uppercase;
}

.nav-pill.active {
  color: var(--sp-text);
  border-color: color-mix(in srgb, var(--sp-primary) 70%, var(--sp-border));
  background: color-mix(in srgb, var(--sp-primary) 18%, var(--sp-bg-element));
  box-shadow: 0 0 18px color-mix(in srgb, var(--sp-primary) 30%, transparent);
}

:root[data-theme="hc-dark"] .nav-pill.active,
:root[data-theme="hc-light"] .nav-pill.active {
  box-shadow: none;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.data-table th {
  text-align: left;
  padding: var(--space-3);
  color: var(--sp-muted);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 1px solid var(--sp-border);
  letter-spacing: 0.08em;
}

.data-table td {
  padding: var(--space-3);
  border-bottom: 1px solid var(--sp-border);
  font-size: var(--fs-sm);
  font-weight: 600;
  vertical-align: middle;
}

.data-table tr:hover {
  background: var(--sp-bg-hover);
}

.data-table tr:last-child td {
  border-bottom: none;
}

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

.baseball-division-block {
  min-width: 0;
  overflow: hidden;
}

.baseball-division-block + .baseball-division-block {
  border-left: 1px solid var(--sp-border);
}

.baseball-division-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-3);
  border-bottom: 1px solid var(--sp-border);
  background: color-mix(in srgb, var(--sp-bg-element) 56%, transparent);
}

.baseball-division-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sp-muted);
}

.baseball-division-meta {
  font-size: var(--fs-xs);
  color: var(--sp-muted);
  white-space: nowrap;
}

.baseball-division-block .data-table th,
.baseball-division-block .data-table td {
  padding: var(--space-2) var(--space-3);
}

.baseball-division-table {
  table-layout: fixed;
}

.baseball-division-table th,
.baseball-division-table td {
  white-space: nowrap;
}

.baseball-division-table .division-col-rank {
  width: 44px;
}

.baseball-division-table .division-col-team {
  width: auto;
}

.baseball-division-table .division-col-stat {
  width: 52px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.baseball-division-table .division-col-rate {
  width: 68px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.baseball-division-table .team-cell {
  display: flex;
  width: 100%;
  min-width: 0;
  gap: var(--space-2);
}

.baseball-division-table .team-name {
  display: block;
}

.baseball-division-empty {
  padding: var(--space-4);
  color: var(--sp-muted);
  font-size: var(--fs-sm);
}

/* =========================================
   Sports pages (shared system)
   - Applied across /sports/* pages except the hub-only widgets.
   ========================================= */

body.sports-body.is-wide {
  --sp-container: 1600px;
}

.sports-wrap {
  width: 100%;
  max-width: var(--sp-container);
  margin: 0 auto;
  padding: 16px var(--sp-page-pad-x) 60px;
  display: grid;
  gap: 16px;
  min-width: 0;
}

.sports-section {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.sports-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.sports-section-title {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.sports-panel {
  background: var(--sp-bg-panel);
  border: 1px solid var(--sp-border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--sp-shadow-sm);
  min-width: 0;
}

.sports-center-hero {
  width: 100%;
  display: grid;
  gap: var(--sp-space-4);
  padding: clamp(var(--sp-space-4), 3vw, var(--sp-space-6));
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
  background: var(--sp-bg-panel);
  box-shadow: var(--sp-shadow-sm);
  min-width: 0;
}

.sports-center-copy {
  display: grid;
  gap: var(--sp-space-3);
  align-content: center;
  min-width: 0;
}

.sports-center-kicker,
.sports-entry-kicker,
.sports-division-card span {
  color: var(--sp-primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sports-center-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.sports-center-copy p {
  max-width: 58ch;
  margin: 0;
  color: var(--sp-muted);
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.sports-center-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-space-2);
  min-width: 0;
}

.sports-entry-grid,
.sports-division-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-space-3);
  min-width: 0;
}

.sports-entry-card,
.sports-division-card {
  display: grid;
  gap: var(--sp-space-2);
  min-width: 0;
  padding: var(--sp-space-4);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
  background: var(--sp-bg-panel);
  box-shadow: var(--sp-shadow-sm);
}

.sports-entry-card {
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.sports-entry-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--sp-primary) 48%, var(--sp-border));
  background: color-mix(in srgb, var(--sp-primary) 7%, var(--sp-bg-panel));
}

.sports-entry-card strong,
.sports-division-card strong {
  min-width: 0;
  color: var(--sp-text);
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.sports-entry-card span:last-child,
.sports-division-card small {
  color: var(--sp-muted);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.sports-division-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sports-media-card {
  display: grid;
  gap: 12px;
}

.sports-media-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--sp-border);
  background: var(--sp-bg-element);
  aspect-ratio: 16 / 9;
}

.sports-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

details.sports-panel {
  padding: 0;
  overflow: hidden;
}

details.sports-panel>summary {
  list-style: none;
  padding: 16px;
  cursor: pointer;
  user-select: none;
}

details.sports-panel>summary::-webkit-details-marker {
  display: none;
}

details.sports-panel[open]>summary {
  border-bottom: 1px solid var(--sp-border);
}

details.sports-panel[open]>.sports-grid {
  padding: 16px;
}

.sports-hero-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  min-width: 0;
}

.sports-hero-card {
  background: var(--sp-bg-panel);
  border: 1px solid var(--sp-border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--sp-shadow-sm);
  min-width: 0;
}

.sports-hero-label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--sp-muted);
  text-transform: uppercase;
}

.sports-hero-value {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sports-hero-meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--sp-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sports-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  background: var(--sp-bg-panel);
  border: 1px solid var(--sp-border);
  border-radius: 999px;
  box-shadow: var(--sp-shadow-sm);
  align-items: center;
}

.sports-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--sp-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1;
}

.sports-tab[aria-selected="true"] {
  color: var(--sp-text);
  border-color: color-mix(in srgb, var(--sp-primary) 55%, var(--sp-border));
  background: color-mix(in srgb, var(--sp-primary) 18%, var(--sp-bg-panel));
}

:root[data-theme="hc-dark"] .sports-tab[aria-selected="true"],
:root[data-theme="hc-light"] .sports-tab[aria-selected="true"] {
  border-color: var(--sp-primary);
  background: transparent;
  color: var(--sp-primary);
}

.sports-tab:focus-visible {
  outline: 2px solid var(--sp-primary);
  outline-offset: 2px;
}

.sports-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--sp-muted);
}

.sports-panel-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.sports-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.sports-columns {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
}

.sports-select {
  margin-top: 8px;
  width: 100%;
  border: 1px solid var(--sp-border);
  border-radius: 12px;
  background: var(--sp-bg-element);
  color: var(--sp-text);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--sp-font-sans);
}

.sports-select:focus {
  outline: 2px solid var(--sp-primary);
  outline-offset: 2px;
}

.sports-empty {
  margin-top: 10px;
  font-size: 12px;
  color: var(--sp-muted);
}

.sports-card {
  background: var(--sp-bg-panel);
  border: 1px solid var(--sp-border);
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 8px;
  min-width: 0;
  box-shadow: var(--sp-shadow-sm);
}

.sports-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.sports-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.sports-card h2,
.sports-card h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sports-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  border: 1px solid color-mix(in srgb, var(--sp-muted) 45%, var(--sp-border));
  background: color-mix(in srgb, var(--sp-muted) 14%, var(--sp-bg-panel));
  color: var(--sp-muted);
  white-space: nowrap;
}

.sports-badge.is-in-progress {
  border-color: color-mix(in srgb, var(--sp-live) 70%, var(--sp-border));
  background: color-mix(in srgb, var(--sp-live) 16%, var(--sp-bg-panel));
  color: var(--sp-live);
}

.sports-badge.is-scheduled {
  border-color: color-mix(in srgb, var(--sp-primary) 70%, var(--sp-border));
  background: color-mix(in srgb, var(--sp-primary) 16%, var(--sp-bg-panel));
  color: var(--sp-primary);
}

.sports-badge.is-final {
  border-color: color-mix(in srgb, var(--sp-up) 70%, var(--sp-border));
  background: color-mix(in srgb, var(--sp-up) 16%, var(--sp-bg-panel));
  color: var(--sp-up);
}

:root[data-theme="hc-dark"] .sports-badge,
:root[data-theme="hc-light"] .sports-badge {
  background: transparent;
  border-color: var(--sp-border);
  color: var(--sp-text);
}

:root[data-theme="hc-dark"] .sports-badge.is-in-progress,
:root[data-theme="hc-light"] .sports-badge.is-in-progress {
  border-color: var(--sp-live);
  color: var(--sp-live);
}

:root[data-theme="hc-dark"] .sports-badge.is-scheduled,
:root[data-theme="hc-light"] .sports-badge.is-scheduled {
  border-color: var(--sp-primary);
  color: var(--sp-primary);
}

:root[data-theme="hc-dark"] .sports-badge.is-final,
:root[data-theme="hc-light"] .sports-badge.is-final {
  border-color: var(--sp-up);
  color: var(--sp-up);
}

.sports-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.sports-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sports-table thead th {
  text-align: left;
  padding: 12px 12px;
  color: var(--sp-muted);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 900;
  border-bottom: 1px solid var(--sp-border);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.sports-table tbody td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--sp-border);
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
}

.sports-table tbody tr:hover {
  background: var(--sp-bg-hover);
}

.sports-table tbody tr:last-child td {
  border-bottom: none;
}

.sports-table .division-divider td,
.sports-table .table-divider td {
  background: var(--sp-bg-element);
  color: var(--sp-muted);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sports-table .rank-top td {
  color: var(--sp-text);
}

.sports-fixtures {
  display: grid;
  gap: 12px;
}

.sports-fixture-day {
  border: 1px solid var(--sp-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--sp-bg-element);
}

.sports-fixture-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--sp-border);
}

:root[data-theme="light"] .sports-fixture-day-header,
:root[data-theme="colorblind"] .sports-fixture-day-header {
  background: rgba(255, 255, 255, 0.48);
}

:root[data-theme="hc-dark"] .sports-fixture-day-header,
:root[data-theme="hc-light"] .sports-fixture-day-header {
  background: var(--sp-bg-panel);
}

.sports-fixture-day-title {
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.sports-fixture-day-meta {
  font-size: 12px;
  color: var(--sp-muted);
}

.sports-fixture-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-top: 1px solid var(--sp-border);
}

.sports-fixture-row:first-of-type {
  border-top: none;
}

.sports-fixture-time {
  font-family: var(--sp-font-mono);
  font-size: 12px;
  font-weight: 900;
  color: var(--sp-muted);
  white-space: nowrap;
}

.sports-fixture-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.sports-fixture-team {
  min-width: 0;
  font-weight: 800;
}

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

.sports-fixture-team.away {
  text-align: left;
}

.sports-fixture-score {
  font-family: var(--sp-font-mono);
  font-weight: 900;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--sp-muted) 55%, var(--sp-border));
  background: color-mix(in srgb, var(--sp-muted) 10%, var(--sp-bg-panel));
  color: var(--sp-text);
  white-space: nowrap;
}

.sports-fixture-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.sports-results-controls {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sports-flow-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-space-2);
  margin: var(--sp-space-3) 0;
}

.sports-flow-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--sp-space-2);
  align-items: start;
  min-width: 0;
  padding: var(--sp-space-3);
  border: 1px solid color-mix(in srgb, var(--sp-border) 78%, transparent);
  border-radius: var(--sp-radius-md);
  background: color-mix(in srgb, var(--sp-bg-element) 42%, transparent);
}

.sports-flow-index {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--sp-radius-full);
  border: 1px solid color-mix(in srgb, var(--sp-primary) 44%, var(--sp-border));
  color: var(--sp-primary);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.sports-flow-label {
  color: var(--sp-text);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.sports-flow-copy {
  margin-top: 2px;
  color: var(--sp-muted);
  font-size: 11px;
  line-height: 1.45;
}

.sports-results-filter-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  flex: 1 1 560px;
  min-width: 0;
}

.sports-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--sp-primary) 70%, var(--sp-border));
  background: color-mix(in srgb, var(--sp-primary) 16%, var(--sp-bg-panel));
  color: var(--sp-text);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
}

.sports-button.ghost {
  border-color: color-mix(in srgb, var(--sp-muted) 55%, var(--sp-border));
  background: color-mix(in srgb, var(--sp-muted) 10%, var(--sp-bg-panel));
  color: var(--sp-muted);
}

:root[data-theme="hc-dark"] .sports-button,
:root[data-theme="hc-light"] .sports-button {
  background: transparent;
  border-color: var(--sp-primary);
  color: var(--sp-primary);
}

:root[data-theme="hc-dark"] .sports-button.ghost,
:root[data-theme="hc-light"] .sports-button.ghost {
  border-color: var(--sp-border);
  color: var(--sp-text);
}

.sports-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 900;
  font-size: 12px;
  color: var(--sp-primary);
  white-space: nowrap;
}

.sports-results-date {
  font-size: 12px;
  font-weight: 900;
}

.sports-results-time {
  font-size: 11px;
  color: var(--sp-muted);
  margin-top: 4px;
  font-family: var(--sp-font-mono);
}

.sports-league-panel .sports-section-title {
  margin: 0;
}

.sports-league-panel .sports-meta {
  margin-top: 6px;
}

.sports-results-tags {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--sp-font-sans);
}

.sports-score-extra {
  color: var(--sp-muted);
  font-weight: 900;
  font-size: 11px;
  margin-left: 6px;
  font-family: var(--sp-font-mono);
}

.sports-results-table,
.sports-portal-grid table {
  width: 100%;
}

.sports-results-table {
  table-layout: fixed;
}

.sports-results-table td:nth-child(2),
.sports-results-table td:nth-child(4) {
  overflow: hidden;
}

.sports-results-table td:nth-child(3) {
  white-space: nowrap;
}

.sports-results-row--link:focus-visible td {
  outline: 2px solid var(--sp-primary);
  outline-offset: -2px;
}

.sports-result-score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sports-result-detail-cue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: var(--sp-space-2);
  padding: 3px 7px;
  border-radius: var(--sp-radius-full);
  border: 1px solid color-mix(in srgb, var(--sp-primary) 38%, var(--sp-border));
  color: var(--sp-primary);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.sports-portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
  align-items: start;
}

.portal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.portal-title {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0;
}

.portal-meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--sp-muted);
}

.portal-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--sp-border);
  background: var(--sp-bg-element);
  margin-bottom: 12px;
}

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

.portal-stat-value {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 900;
}

.portal-table {
  overflow-x: auto;
}

.sports-results-table,
.sports-table {
  min-width: 680px;
}

.venue-hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--sp-border);
  background: var(--sp-bg-panel);
  box-shadow: var(--sp-shadow-sm);
}

.venue-hero-main {
  display: grid;
  gap: 10px;
}

.venue-hero-kicker {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--sp-muted);
}

.venue-hero-title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.venue-hero-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--sp-muted);
}

.venue-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.venue-kpi {
  border-radius: 12px;
  padding: 12px;
  border: 1px solid var(--sp-border);
  background: var(--sp-bg-element);
}

.venue-kpi-label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sp-muted);
}

.venue-kpi-value {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 900;
}

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

.venue-filter-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.venue-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.venue-field {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--sp-muted);
}

.venue-field input,
.venue-field select,
.venue-field textarea {
  border: 1px solid var(--sp-border);
  border-radius: 12px;
  background: var(--sp-bg-element);
  color: var(--sp-text);
  padding: 10px 12px;
  font-size: 13px;
  font-family: var(--sp-font-sans);
}

.venue-field input.input-success,
.venue-field textarea.input-success {
  border-color: color-mix(in srgb, var(--sp-up) 70%, var(--sp-border));
}

.venue-field input.input-error,
.venue-field textarea.input-error {
  border-color: color-mix(in srgb, var(--sp-down) 70%, var(--sp-border));
}

.venue-field input::placeholder,
.venue-field textarea::placeholder {
  color: color-mix(in srgb, var(--sp-muted) 75%, transparent);
}

.venue-field-wide {
  grid-column: 1 / -1;
}

.venue-hint {
  font-size: 11px;
  color: var(--sp-muted);
}

.venue-coords-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.venue-search-select {
  position: relative;
}

.venue-search-select .search-select-field {
  position: relative;
}

.venue-search-select .search-select-field .input {
  width: 100%;
  height: 40px;
  padding: 0 34px 0 12px;
  border-radius: 10px;
  border: 1px solid var(--sp-border);
  background: var(--sp-bg-element);
  color: var(--sp-text);
  font-size: 0.9rem;
}

.venue-search-select .search-select-field .input::placeholder {
  color: var(--sp-muted);
}

.venue-search-select .search-select-field .input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--sp-primary) 60%, var(--sp-border));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--sp-primary) 25%, transparent);
}

.venue-search-select .search-select-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sp-muted);
  pointer-events: none;
}

.hz-menu {
  border-radius: 12px;
  border: 1px solid var(--sp-border);
  background: var(--sp-bg-panel);
  box-shadow: var(--sp-shadow-md);
  overflow: hidden;
}

.hz-menu-item {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: var(--sp-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hz-menu-item:hover,
.hz-menu-item:focus-visible {
  background: color-mix(in srgb, var(--sp-primary) 12%, var(--sp-bg-panel));
  outline: none;
}

.hz-menu-placeholder {
  padding: 10px 12px;
  font-size: 12px;
  color: var(--sp-muted);
}

.venue-search-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.venue-search-meta {
  font-size: 11px;
  color: var(--sp-muted);
}

.venue-selected-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.venue-selected-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--sp-border);
  background: var(--sp-bg-element);
}

.venue-selected-name {
  font-weight: 800;
}

.venue-selected-meta {
  font-size: 11px;
  color: var(--sp-muted);
}

.venue-selected-remove {
  border: none;
  background: color-mix(in srgb, var(--sp-down) 20%, var(--sp-bg-panel));
  color: var(--sp-down);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.venue-selected-empty {
  font-size: 12px;
  color: var(--sp-muted);
}

.venue-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  justify-content: start;
}

.venue-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 10px;
  border: 1px solid var(--sp-border);
  background: var(--sp-bg-panel);
  overflow: hidden;
  box-shadow: var(--sp-shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.venue-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--sp-primary) 60%, var(--sp-border));
}

.venue-card-media {
  background: var(--sp-bg-element);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sp-muted);
  font-size: 12px;
  overflow: hidden;
}

.venue-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.venue-card-body {
  padding: 10px;
  display: grid;
  gap: 6px;
}

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

.venue-card-title {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.venue-card-meta {
  font-size: 10px;
  color: var(--sp-muted);
}

.venue-card-summary {
  font-size: 10px;
  color: color-mix(in srgb, var(--sp-text) 85%, var(--sp-muted));
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.venue-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.venue-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--sp-muted) 50%, var(--sp-border));
  background: color-mix(in srgb, var(--sp-muted) 10%, var(--sp-bg-panel));
  color: var(--sp-muted);
  font-size: 9px;
  font-weight: 800;
}

.venue-tag.is-home {
  border-color: color-mix(in srgb, var(--sp-primary) 60%, var(--sp-border));
  background: color-mix(in srgb, var(--sp-primary) 12%, var(--sp-bg-panel));
  color: var(--sp-primary);
}

.venue-status {
  font-size: 11px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--sp-border);
  color: var(--sp-muted);
  background: color-mix(in srgb, var(--sp-muted) 10%, var(--sp-bg-panel));
}

.venue-status.is-active {
  border-color: color-mix(in srgb, var(--sp-up) 60%, var(--sp-border));
  color: var(--sp-up);
  background: color-mix(in srgb, var(--sp-up) 12%, var(--sp-bg-panel));
}

.venue-status.is-planned {
  border-color: color-mix(in srgb, var(--sp-primary) 60%, var(--sp-border));
  color: var(--sp-primary);
  background: color-mix(in srgb, var(--sp-primary) 12%, var(--sp-bg-panel));
}

.venue-status.is-muted {
  border-color: color-mix(in srgb, var(--sp-muted) 60%, var(--sp-border));
  color: var(--sp-muted);
}

.venue-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.venue-hero-media {
  border-radius: 16px;
  border: 1px solid var(--sp-border);
  background: var(--sp-bg-element);
  overflow: hidden;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.venue-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.venue-media-empty {
  color: var(--sp-muted);
  font-size: 12px;
}

.venue-hero-content {
  display: grid;
  gap: 12px;
  align-content: center;
}

.venue-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.venue-hero-meta {
  font-size: 12px;
  color: var(--sp-muted);
}

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

.venue-info-card {
  border-radius: 12px;
  padding: 12px;
  border: 1px solid var(--sp-border);
  background: var(--sp-bg-panel);
  display: grid;
  gap: 6px;
}

.venue-info-label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sp-muted);
}

.venue-info-value {
  font-size: 13px;
  font-weight: 800;
}

.venue-info-link {
  color: var(--sp-primary);
  font-weight: 800;
}

.venue-home-teams {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.venue-team-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--sp-border);
  background: var(--sp-bg-panel);
}

.venue-team-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: contain;
  background: var(--sp-bg-element);
}

.venue-team-logo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sp-muted);
  border: 1px dashed var(--sp-border);
}

.venue-team-name {
  font-weight: 900;
}

.venue-team-meta {
  font-size: 12px;
  color: var(--sp-muted);
  margin-top: 4px;
}

.venue-description {
  font-size: 13px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--sp-text) 90%, var(--sp-muted));
}

.venue-gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.venue-gallery-item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--sp-border);
  background: var(--sp-bg-element);
}

.venue-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.venue-register-panel {
  padding: 20px;
}

.venue-register-intro {
  margin-bottom: 16px;
}

.venue-register-intro-card,
.venue-register-gate {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--sp-border);
  background: var(--sp-bg-element);
}

.venue-register-intro-title,
.venue-register-gate-title {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.venue-register-intro-copy,
.venue-register-gate-copy,
.venue-form-copy {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--sp-muted);
}

.venue-register-step-list {
  display: grid;
  gap: 8px;
}

.venue-register-step {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--sp-text);
}

.venue-register-step::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--sp-primary);
  flex: 0 0 auto;
}

.venue-register-gate-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--sp-primary) 55%, var(--sp-border));
  background: color-mix(in srgb, var(--sp-primary) 14%, var(--sp-bg-panel));
  color: var(--sp-primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.venue-register-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.venue-form {
  display: grid;
  gap: 18px;
}

.venue-form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.venue-form-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--sp-border);
  background: color-mix(in srgb, var(--sp-bg-panel) 85%, var(--sp-bg-element));
}

.venue-form-title {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--sp-muted);
}

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

.venue-sport-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--sp-border);
  background: var(--sp-bg-element);
  font-size: 12px;
  color: var(--sp-text);
  cursor: pointer;
}

.venue-sport-chip input {
  accent-color: var(--sp-primary);
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .venue-hero {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .venue-hero-panel {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .venue-kpi {
    padding: 10px;
  }

  .venue-kpi-value {
    font-size: 18px;
  }

  .venue-filter-row {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .venue-hero-panel {
    grid-template-columns: 1fr;
  }

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

  .venue-filter-actions {
    flex-direction: column;
  }

  .venue-filter-actions .sports-button {
    width: 100%;
  }

  .venue-register-gate-actions .sports-button {
    width: 100%;
  }
}

.venue-upload {
  display: grid;
  gap: 12px;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
}

.venue-upload-preview {
  border-radius: 12px;
  border: 1px dashed var(--sp-border);
  background: var(--sp-bg-element);
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sp-muted);
  font-size: 12px;
  overflow: hidden;
}

.venue-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.venue-upload-controls {
  display: grid;
  gap: 8px;
}

.venue-upload-hint {
  font-size: 12px;
  color: var(--sp-muted);
}

.venue-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.venue-form-status {
  font-size: 12px;
  color: var(--sp-muted);
}

.venue-form-status[data-tone='success'] {
  color: var(--sp-up);
}

.venue-form-status[data-tone='error'] {
  color: var(--sp-down);
}

@media (max-width: 900px) {

  .venue-hero,
  .venue-detail-hero {
    grid-template-columns: 1fr;
  }

  .venue-hero-panel {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .venue-upload {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .sports-tabs {
    border-radius: 14px;
  }

  .sports-flow-strip {
    grid-template-columns: 1fr;
  }

  .sports-hero-grid {
    grid-template-columns: 1fr;
  }

  .sports-results-controls {
    align-items: stretch;
  }

  .sports-results-filter-grid {
    flex-basis: 100%;
    grid-template-columns: 1fr;
  }

  .sports-results-controls .sports-button {
    width: 100%;
  }

  .sports-fixture-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .sports-fixture-badges {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .sports-results-table,
  .sports-table {
    min-width: 640px;
  }
}

.team-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.team-logo {
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 6px;
  padding: 2px;
  object-fit: contain;
  flex: 0 0 auto;
}

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

@media (max-width: 1024px) {
  .dashboard {
    grid-template-columns: 1fr;
  }

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

  .sports-division-summary {
    grid-template-columns: 1fr;
  }

  .hero-widget {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 300px;
  }

  .terminal-widget {
    height: auto;
  }

  .log-container {
    height: auto;
    max-height: 420px;
  }

  .hero-data-sidebar {
    border-left: none;
    border-top: 1px solid var(--sp-border);
  }

  .section-heading {
    flex-direction: column;
  }

  .sp3-league-grid,
  .sp3-cards,
  .sp3-table-grid {
    grid-template-columns: 1fr;
  }

  .baseball-division-grid {
    grid-template-columns: 1fr;
  }

  .baseball-division-block + .baseball-division-block {
    border-left: none;
    border-top: 1px solid var(--sp-border);
  }

  .sp3-mini-grid {
    grid-template-columns: 1fr;
  }

  .facility-scroll {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 1024px) {
  body[data-page="hub"] .facility-scroll {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  body[data-page="hub"] .facility-card {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
  }
}

@media (max-width: 768px) {
  .sp3-ribbon-nav {
    display: none;
  }

  .match-card {
    min-width: 200px;
    padding: 12px 16px;
  }
}

@media (max-width: 520px) {
  .dashboard {
    gap: 12px;
  }

  .hero-visual {
    padding: 18px;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-desc {
    font-size: 12px;
  }

  .terminal-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .terminal-sub {
    white-space: normal;
  }

  .sp3-section {
    gap: var(--space-3);
  }

  .sp3-league-card,
  .sp3-card {
    padding: 16px;
  }

  .sports-wrap {
    width: 100vw;
    max-width: 100vw;
    padding: 12px var(--sp-page-pad-x) 48px;
    gap: 12px;
  }

  .sports-panel {
    max-width: calc(100vw - 24px);
    padding: 14px;
  }

  .sports-entry-grid,
  .sports-division-summary {
    grid-template-columns: 1fr;
  }

  .sports-center-hero,
  .sports-entry-card,
  .sports-division-card {
    max-width: calc(100vw - 24px);
    padding: 16px;
  }

  .sports-center-copy h1,
  .sports-center-copy p,
  .sports-center-actions {
    max-width: calc(100vw - 56px);
  }

  .sports-center-actions .sports-button {
    width: 100%;
  }

  .sports-hero-value {
    font-size: 18px;
  }

  .sports-select {
    font-size: 16px;
  }

  body.sports-body input,
  body.sports-body select,
  body.sports-body textarea {
    font-size: 16px;
  }
}

@media (max-width: 900px) {
  body[data-competition-code="BLOCK_BASEBALL"] .sports-columns {
    grid-template-columns: 1fr;
  }

  body[data-competition-code="BLOCK_BASEBALL"] .sports-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  body[data-competition-code="BLOCK_BASEBALL"] .sports-tabs::-webkit-scrollbar {
    display: none;
  }
}
