/* Site-wide motion polish: makes the desk feel active without changing behavior. */
:root {
  --alive-glow-green: rgba(0, 230, 118, 0.28);
  --alive-glow-orange: rgba(255, 107, 53, 0.28);
  --alive-glow-blue: rgba(66, 165, 245, 0.2);
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(180deg, rgba(0, 230, 118, 0.025), transparent 320px),
    linear-gradient(135deg, rgba(255, 107, 53, 0.035), transparent 40%),
    var(--bg);
}

a,
button,
.cmd-card,
.market-card,
.prediction-card,
.odds-match-card,
.match-card,
.position-card,
.cmd-insight,
.cmd-trending-item,
.receipt-item,
.disagree-card,
.pick-preview-pick {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

.nav-brand {
  position: relative;
  isolation: isolate;
}

.nav-brand::after {
  content: "";
  position: absolute;
  inset: 12% 0 8%;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0, 230, 118, 0), rgba(0, 230, 118, 0.24), rgba(255, 107, 53, 0));
  filter: blur(16px);
  opacity: 0.7;
  transform: translateY(2px);
}

.cmd-hero,
.market-pulse__main,
.market-pulse__side,
.finals-card-cta,
.pick-card-preview,
.play-board-status,
.today-card-share,
.card-builder {
  position: relative;
  overflow: hidden;
}

.cmd-hero::before,
.market-pulse__main::before,
.finals-card-cta::before,
.pick-card-preview::before,
.play-board-status::before,
.today-card-share::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.055) 42%, transparent 56%),
    linear-gradient(135deg, rgba(0, 230, 118, 0.06), transparent 42%, rgba(255, 107, 53, 0.055));
  background-size: 230% 100%, 100% 100%;
  opacity: 0.9;
  animation: alive-sheen 8s ease-in-out infinite;
}

.cmd-hero > *,
.market-pulse__main > *,
.finals-card-cta > *,
.pick-card-preview > *,
.play-board-status > *,
.today-card-share > * {
  position: relative;
  z-index: 1;
}

.cmd-card:hover,
.market-card:hover,
.prediction-card:hover,
.odds-match-card:hover,
.cmd-insight:hover,
.cmd-trending-item:hover,
.receipt-item:hover,
.disagree-card:hover,
.pick-preview-pick:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 107, 53, 0.08);
}

.cmd-card--accent,
.cmd-live-banner,
.morning-card-rail,
.disagrees-rail {
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22), 0 0 34px rgba(255, 107, 53, 0.055);
}

.market-pulse__live,
.alive-dot,
.ls-dot.ls-live,
.nav-account-dot {
  animation: alive-pulse 1.75s ease-in-out infinite;
}

.pulse-stat__num,
.pulse-signal__pct,
.pick-preview-pick__pct,
.faceoff-pct,
.prob-value,
.odds-prob,
.edge-value {
  text-shadow: 0 0 18px rgba(0, 230, 118, 0.16);
}

.pulse-actions a.primary,
.finals-card-actions a.primary,
.today-card-btn,
.confirm-btn,
.quick-pick-btn,
.cmd-btn {
  position: relative;
  overflow: hidden;
}

.pulse-actions a.primary::after,
.finals-card-actions a.primary::after,
.today-card-btn::after,
.confirm-btn::after,
.quick-pick-btn::after,
.cmd-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.24) 48%, transparent 62%);
  transform: translateX(-130%);
  transition: transform 420ms ease;
}

.pulse-actions a.primary:hover::after,
.finals-card-actions a.primary:hover::after,
.today-card-btn:hover::after,
.confirm-btn:hover::after,
.quick-pick-btn:hover::after,
.cmd-btn:hover::after {
  transform: translateX(130%);
}

.match-card.heat-elite {
  animation: alive-card-glow 4.4s ease-in-out infinite;
}

.match-card.heat-strong:hover,
.match-card.heat-lean:hover {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3), 0 0 28px rgba(255, 107, 53, 0.09);
}

.faceoff-vs,
.pred-vs,
.vs-divider,
.match-vs,
.odds-vs,
.md-vs,
.sf-vs,
.teams-vs .vs-divider {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  border-radius: 50%;
  isolation: isolate;
  color: #ff6b35 !important;
  font-weight: 950 !important;
  letter-spacing: 0.08em;
  text-shadow: 0 0 12px rgba(255, 107, 53, 0.42);
}

.faceoff-vs span,
.pred-vs span,
.vs-divider span,
.match-vs span,
.odds-vs span,
.md-vs span,
.sf-vs span {
  position: relative;
  z-index: 2;
}

.faceoff-vs::before,
.pred-vs::before,
.vs-divider::before,
.match-vs::before,
.odds-vs::before,
.md-vs::before,
.sf-vs::before,
.teams-vs .vs-divider::before {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(circle, rgba(255, 107, 53, 0.18), transparent 62%),
    conic-gradient(from 90deg, rgba(0, 230, 118, 0.12), rgba(255, 107, 53, 0.64), rgba(66, 165, 245, 0.18), rgba(0, 230, 118, 0.12));
  animation: alive-vs-spin 3.4s linear infinite;
  opacity: 0.95;
}

.faceoff-vs::after,
.pred-vs::after,
.vs-divider::after,
.match-vs::after,
.odds-vs::after,
.md-vs::after,
.sf-vs::after,
.teams-vs .vs-divider::after {
  content: "";
  position: absolute;
  inset: 9px;
  z-index: -1;
  border-radius: inherit;
  background: rgba(8, 12, 18, 0.94);
  box-shadow: inset 0 0 14px rgba(255, 107, 53, 0.1), 0 0 18px rgba(255, 107, 53, 0.12);
}

.faceoff-vs {
  justify-self: center;
  align-self: center;
}

.match-card:hover .faceoff-vs,
.odds-match-card:hover .odds-vs,
.prediction-card:hover .pred-vs {
  animation: alive-vs-pop 700ms ease-out;
}

.faceoff-side.model,
.prob-box.yes,
.pos-result.won,
.win-receipt-banner {
  box-shadow: inset 0 0 22px rgba(0, 230, 118, 0.055);
}

.alive-ticker {
  position: relative;
}

.alive-ticker::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 12, 18, 0.96), transparent 9%, transparent 91%, rgba(8, 12, 18, 0.96));
}

.ticker-item:hover,
.nav-links a:hover,
.dropdown-menu a:hover,
.mobile-nav a:hover {
  color: var(--accent);
}

.cmd-table tr,
.cmd-event,
.position-card,
.card-builder-item {
  transition: background-color 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.cmd-table tbody tr:hover,
.cmd-event:hover,
.position-card:hover,
.card-builder-item:hover {
  background-color: rgba(255, 255, 255, 0.035);
}

@keyframes alive-sheen {
  0%, 18% {
    background-position: -120% 0, 0 0;
  }
  52% {
    background-position: 125% 0, 0 0;
  }
  100% {
    background-position: 125% 0, 0 0;
  }
}

@keyframes alive-pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 10px var(--alive-glow-green);
  }
  50% {
    opacity: 0.76;
    box-shadow: 0 0 24px var(--alive-glow-green);
  }
}

@keyframes alive-card-glow {
  0%, 100% {
    box-shadow: 0 14px 40px rgba(0, 230, 118, 0.08);
  }
  50% {
    box-shadow: 0 18px 48px rgba(0, 230, 118, 0.14), 0 0 28px rgba(255, 107, 53, 0.06);
  }
}

@keyframes alive-vs-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes alive-vs-pop {
  0%, 100% {
    transform: scale(1);
  }
  44% {
    transform: scale(1.1);
  }
}

@media (max-width: 760px) {
  .cmd-card:hover,
  .market-card:hover,
  .prediction-card:hover,
  .odds-match-card:hover,
  .cmd-insight:hover,
  .cmd-trending-item:hover,
  .receipt-item:hover,
  .disagree-card:hover,
  .pick-preview-pick:hover {
    transform: none;
  }

  .pulse-actions a,
  .finals-card-actions a,
  .today-card-btn,
  .cmd-btn {
    min-height: 42px;
  }

  .faceoff-vs {
    min-width: 38px;
    min-height: 38px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
