
/* 2026 desktop workspace pass: discovery first, portfolio below. */
.cs2-betting-layout {
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: start;
}

.cs2-my-bets-workspace {
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(18, 24, 34, 0.82), rgba(14, 19, 28, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--cs2-radius-xl);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.cs2-my-bets-workspace .my-bets-header {
  justify-content: space-between;
  gap: var(--cs2-space-xl);
  padding: var(--cs2-space-xl) var(--cs2-space-2xl);
}

.workspace-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--cs2-primary-light);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.cs2-my-bets-workspace .my-bets-header h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.cs2-my-bets-workspace .bets-tabs {
  width: min(300px, 42vw);
  margin: 0;
}

.cs2-my-bets-workspace .cs2-my-bets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  align-items: start;
  gap: var(--cs2-space-lg);
  max-height: none;
  min-height: 150px;
  padding: var(--cs2-space-xl) var(--cs2-space-2xl) var(--cs2-space-2xl);
  overflow: visible;
}

.cs2-my-bets-workspace .cs2-bet-card {
  height: 100%;
  min-width: 0;
  margin: 0;
  padding: var(--cs2-space-lg);
}

.cs2-my-bets-workspace .empty-state {
  grid-column: 1 / -1;
}

.live-heading-dot,
.cs2-live-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cs2-danger);
  box-shadow: 0 0 0 5px rgba(255, 71, 87, 0.13), 0 0 16px rgba(255, 71, 87, 0.75);
  animation: cs2-live-pulse 1.8s ease-in-out infinite;
}

.events-panel-header h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cs2-tournament-section.live-section {
  border-color: rgba(255, 71, 87, 0.25);
}

.cs2-tournament-section.live-section .cs2-tournament-header {
  background: linear-gradient(90deg, rgba(255, 71, 87, 0.14), rgba(18, 24, 36, 0.72));
}

.live-market-state {
  grid-column: 1 / -1;
  min-height: 24px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cs2-event-card.live-market-open {
  border-color: rgba(255, 71, 87, 0.38);
  background: linear-gradient(145deg, rgba(74, 26, 35, 0.52), rgba(22, 29, 41, 0.96));
}

.cs2-event-card.live-market-open .team-name,
.cs2-event-card.live-market-open .odds-team-label {
  color: #f8fafc;
}

.cs2-event-card.live-market-open .vs-divider,
.cs2-event-card.live-market-open .live-market-state {
  color: #d7dee9;
}

.cs2-event-card.live-market-open .odds-value-display {
  color: #ffffff;
}

.cs2-refresh-btn {
  min-height: 44px;
}

.live-market-state.open::before,
.live-market-state.suspended::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cs2-success);
}

.live-market-state.suspended::before {
  background: var(--cs2-warning);
}

.event-card-odds.suspended .odds-pill {
  opacity: 0.58;
}

.cs2-tournament-section.paused-live-section {
  border-color: rgba(245, 158, 11, 0.2);
}

.cs2-tournament-section.paused-live-section .cs2-tournament-header {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.1), rgba(18, 24, 36, 0.72));
}

.cs2-paused-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cs2-warning);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.paused-live-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(190px, 0.8fr);
  align-items: center;
  gap: 14px;
  min-height: 0;
  padding: 12px 14px;
  border-color: rgba(245, 158, 11, 0.36);
  background: linear-gradient(135deg, rgba(41, 35, 25, 0.96), rgba(19, 25, 34, 0.98));
  box-shadow: none;
}

.paused-live-primary,
.paused-live-reason { min-width: 0; }

.paused-live-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
}

.paused-live-matchup {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  color: #f8fafc;
  line-height: 1.25;
}

.paused-live-matchup strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.paused-live-matchup span {
  flex: 0 0 auto;
  color: #aeb9c8;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.paused-live-reason {
  display: grid;
  gap: 3px;
  padding-left: 14px;
  border-left: 1px solid rgba(245, 158, 11, 0.22);
}

.paused-live-reason strong { color: var(--cs2-warning); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.paused-live-reason span { color: #d6dde8; font-size: 0.78rem; line-height: 1.3; }
.paused-live-reason small { color: #9da9b8; font-size: 0.68rem; }

@keyframes cs2-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.82); }
}

@media (min-width: 1100px) {
  .cs2-tournament-events {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .cs2-event-card {
    height: 100%;
  }
}

@media (max-width: 768px) {
  .cs2-betting-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--cs2-space-lg) !important;
  }

  .cs2-events-panel {
    order: 1 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
  }

  .cs2-my-bets-workspace {
    order: 2 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
  }

  .cs2-events-list {
    max-height: none !important;
    overflow: visible !important;
  }

  .cs2-header-content {
    align-items: center !important;
    flex-direction: row !important;
    justify-content: center !important;
    gap: 0 !important;
  }

  .cs2-header-stats,
  .cs2-disclaimer {
    display: none !important;
  }

  .credit-history-btn {
    width: auto !important;
    min-width: 92px !important;
    padding-inline: 12px !important;
    font-size: .72rem !important;
  }

  .team-name,
  .odds-team-label {
    max-width: 100% !important;
    min-width: 0;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .events-panel-header {
    align-items: center !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    gap: var(--cs2-space-sm) !important;
    margin-bottom: var(--cs2-space-sm) !important;
  }

  .cs2-refresh-btn {
    width: auto !important;
    min-width: 96px !important;
    min-height: 44px !important;
    flex: 0 0 auto;
    justify-content: center;
    padding: 9px 12px !important;
  }

  .cs2-my-bets-workspace .my-bets-header {
    display: flex !important;
    align-items: stretch;
    flex-direction: column;
    padding: var(--cs2-space-lg);
  }

  .cs2-my-bets-workspace .bets-tabs {
    display: flex !important;
    width: 100%;
  }

  .cs2-my-bets-workspace .cs2-my-bets {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    max-height: none !important;
    min-height: 150px;
    padding: var(--cs2-space-lg);
    overflow: visible !important;
  }

  .cs2-my-bets-workspace .cs2-my-bets .empty-state {
    display: flex !important;
    min-height: 118px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-heading-dot,
  .cs2-live-dot { animation: none; }
}

@media (orientation: landscape) and (max-width: 900px) and (max-height: 480px) {
  .team-name,
  .odds-team-label {
    max-width: 100% !important;
    min-width: 0;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
}
