/* Стили для игр */

/* Рулетка */
.roulette-strip {
  display: block;
  overflow: hidden;
  border: 2px solid var(--border-color);
  margin: 20px 0;
  height: 60px;
  position: relative;
  width: 100%;
  max-width: 600px;
  border-radius: 6px;
}

.roulette-strip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: yellow;
  transform: translateX(-50%);
  z-index: 10;
  border-radius: 2px;
}

.roulette-number {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
}

.red { background: #e74c3c; }
.black { background: #2c3e50; }
.green { background: #27ae60; }

/* Кнопки ставок */
.bet-options {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-top: 12px;
}

.bet-option {
  flex: 1;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .1s;
  background: var(--card-bg);
}

.bet-option.selected {
  outline: 3px solid var(--accent-color);
  transform: translateY(-2px);
}

.bet-label {
  font-weight: bold;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 4px;
}

.bet-info {
  font-size: 12px;
  color: var(--text-color);
  text-align: center;
  line-height: 1.2;
}

.bet-multi {
  font-size: 10px;
  color: #ccc;
}

/* Быстрые ставки */
.quick-bets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  justify-content: center;
}

.qb {
  flex: 0 0 calc(33% - 6px);
  padding: 6px 4px;
  border: none;
  border-radius: 6px;
  background: var(--border-color);
  color: var(--text-color);
  font-size: 12px;
  cursor: pointer;
}

.qb:hover {
  background: var(--accent-color);
  color: #fff;
}

/* Canvas рулетки */
canvas#roulette-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Список игр */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.game-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  color: var(--text-color);
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  border-color: var(--accent-color);
}

.game-card .icon {
  font-size: 48px;
  margin-bottom: 15px;
  text-align: center;
}

.game-card .name {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--text-color);
}

.game-card .description {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 15px;
  line-height: 1.4;
}

.game-card .status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.game-card .status.available {
  background: rgba(39, 174, 96, 0.1);
  color: #27ae60;
}

.game-card .status.development {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}

.game-card .status.coming-soon {
  background: rgba(108, 117, 125, 0.1);
  color: #6c757d;
}

.game-card .multiplier {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent-color);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.game-card .players {
  position: absolute;
  bottom: 15px;
  right: 15px;
  font-size: 12px;
  color: #666;
}

.category-title {
  font-size: 18px;
  font-weight: bold;
  margin: 30px 0 15px 0;
  color: var(--text-color);
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 8px;
}

.category-title:first-child {
  margin-top: 0;
}

/* Адаптивность для игр */
@media (max-width: 480px) {
  .roulette-strip {
    height: 50px;
  }
  
  .roulette-number {
    width: 50px;
    height: 50px;
    font-size: 16px;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .game-card {
    padding: 15px;
  }
  
  .game-card .icon {
    font-size: 36px;
  }
  
  .game-card .name {
    font-size: 18px;
  }
} 