.game-card { 
  background: linear-gradient(180deg, #ffffff, #f1f7ff); 
  border: 1px solid #e3f0ff; 
}

.avatar { 
  width: 40px; 
  height: 40px; 
  border-radius: 50%; 
  object-fit: cover; 
  border: 2px solid #d5e9ff; 
}

/* Spinner block */
#spinner-card { display: none; }
#spinner-card.show-spinner { display: block; }

.spinner-strip {
  width: 100%;
  overflow: hidden;
  border: 2px solid #d5e9ff;
  border-radius: 12px;
  background: #fff;
  height: 120px;                 /* высота дорожки */
  position: relative;
  display: flex;
  align-items: center;           /* по вертикали по центру */
  justify-content: center;
  padding: 8px 0;                /* отступы сверху/снизу чтобы не резало кружок */
  box-sizing: border-box;
}

/* ОБНОВЛЕНО: стили для #spinner вместо .spinner-inner */
#spinner {
  display: flex;
  align-items: center;           /* центрируем аватары по вертикали */
  gap: 16px;
  padding: 0 8px;                /* только горизонтальный внутренний отступ */
  will-change: transform;
  height: 100%;                  /* чтобы % высота детей считалась от высоты дорожки */
  position: absolute;
  left: 0;
  top: 0;
}

#spinner .avatar {
  height: 84px;                  /* 120px (высота дорожки) - 16px (padding) - немного = 84px */
  width: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #d5e9ff;
  box-sizing: border-box;
  flex-shrink: 0;
}

.spinner-pointer { 
  position: absolute; 
  top: 0; 
  bottom: 0; 
  left: 50%; 
  width: 2px; 
  background: #0d6efd; 
  z-index: 10;
}

.bet-list { max-height: 220px; overflow: auto; }
.ticker { font-variant-numeric: tabular-nums; }

/* Добавляем CSS переменные для JavaScript */
:root {
  --slot: 84px;
  --gap: 16px;
}

.winner-highlight {
  background: linear-gradient(135deg, #ffeb3b 0%, #ffc107 100%) !important;
  border: 2px solid #ff9800 !important;
  box-shadow: 0 0 15px rgba(255, 152, 0, 0.6) !important;
  transform: scale(1.02);
  transition: all 0.3s ease;
}

/* ИСПРАВЛЕННЫЙ CSS для скрытия игроков */
/* Способ 1: через класс на body (самый надежный) */
body.spinner-active #players-avatars {
  display: none !important;
}

/* Способ 2: через класс на game-card */
.game-card.spinner-active #players-avatars {
  display: none !important;
}

/* Способ 3: через класс на родительский контейнер */
.spinner-active #players-avatars {
  display: none !important;
}

/* Стили для системы уведомлений */
.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  min-width: 300px;
  max-width: 400px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border: 1px solid #e9ecef;
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
  overflow: hidden;
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification.hide {
  transform: translateX(400px);
  opacity: 0;
}

.notification-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px;
  gap: 12px;
}

.notification-message {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
  color: #495057;
}

.notification-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #6c757d;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.notification-close:hover {
  background: #f8f9fa;
  color: #495057;
}

/* Информационные уведомления (зелено-белые) */
.notification-info {
  border-left: 4px solid #d1fae5;
  background: linear-gradient(135deg, #f0fff4, #ffffff);
}

.notification-info .notification-message {
  color: #065f46;
}

/* Уведомления об ошибках (красно-белые) */
.notification-error {
  border-left: 4px solid #fecaca;
  background: linear-gradient(135deg, #fef2f2, #ffffff);
}

.notification-error .notification-message {
  color: #991b1b;
}

#updatedAt { font-variant-numeric: tabular-nums; }

/* Прячем любые другие таймеры темы/макета */
#countdownWrap, #plainCountdown, .base-timer, .base-timer__svg, .base-timer__circle { display: none !important; }

/* ─── Компактный инлайновый флип-таймер ─── */
#flipTimer[hidden] { display: none !important; }
.flip-mini {
  display:inline-flex;align-items:center;gap:.4rem;
  padding:.15rem .5rem;border-radius:.5rem;background:#f8f9fa;border:1px solid #e9ecef;
}
.flip-mini .label{color:#6c757d;font-size:12px;white-space:nowrap;}
.flip-nums{
  position:relative;width:96px;height:36px;overflow:hidden;
  font-size:28px;font-weight:700;color:#3498db;text-align:center;line-height:1;
  contain: layout paint;
}
.flip-nums span{
  position:absolute;left:50%;top:50%;
  transform:translate(-50%,-50%) rotate(120deg);
  transform-origin:bottom center;white-space:nowrap;line-height:1;
  backface-visibility:hidden;will-change:transform;
}
.flip-nums span.in{animation:flip-goIn 1s ease-in-out forwards;}
@keyframes flip-goIn{
  0%{transform:translate(-50%,-50%) rotate(120deg);}
  30%{transform:translate(-50%,-50%) rotate(-20deg);}
  60%{transform:translate(-50%,-50%) rotate(10deg);}
  100%{transform:translate(-50%,-50%) rotate(0deg);}
}

/* ─── Подсветка выбранной для подкрутки ставки ─── */
tr.rig-selected { background: #fff7e6; }
.badge-rig {
  display:inline-block; padding:.15rem .4rem; border-radius:.25rem;
  font-size:.75rem; background:#fff3cd; color:#856404; border:1px solid #ffeeba;
  margin-left:.5rem;
}