body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #1a1a1a;
  color: #e0e0e0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  width: 100%;
  text-align: center;
  padding: 20px 0;
  background-color: #222;
  border-bottom: 2px solid #333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

header h1 {
  color: #ff6b6b;
  margin-bottom: 10px;
}

.main-nav {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 10px 0;
  background-color: #333;
  z-index: 10;
}

.main-nav button {
  background-color: #444;
  color: white;
  border: 1px solid #555;
  padding: 12px 25px;
  margin: 0 5px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
  font-size: 16px;
}

.main-nav button:hover {
  background-color: #555;
  border-color: #ff6b6b;
}

.container {
  padding: 20px;
  max-width: 900px;
  width: 100%;
  position: relative;
  min-height: 400px;
}

.panel {
  background-color: #222;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.panel.hidden {
  display: none;
}

#home-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 350px;
  align-items: center;
}

.game-container {
  position: relative;
  width: 800px;
  height: 600px;
  margin: 0 auto;
}

#gameCanvas {
  background-color: #111;
  border: 2px solid #ff6b6b;
}

#game-info {
  display: flex;
  justify-content: space-around;
  padding: 10px;
}

#game-over-screen {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.8);
  padding: 30px;
  border: 2px solid #ff6b6b;
  border-radius: 10px;
  z-index: 20;
  text-align: center;
}

.currency-display {
  display: flex;
  justify-content: space-around;
  width: 100%;
  margin-top: auto;
}

.equipped-tank-main {
  text-align: center;
  margin-top: 20px;
}

.tank-icon {
  width: 400px;
  height: 250px;
  border: 2px solid #ff6b6b;
  border-radius: 50%;
  margin: 20px 0;
}

h2, h3 {
  color: #ff6b6b;
  border-bottom: 2px solid #444;
  padding-bottom: 5px;
}

p, span {
  font-size: 16px;
  line-height: 1.5;
}

button {
  background-color: #ff6b6b;
  color: white;
  border: none;
  padding: 10px 15px;
  margin-top: 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #e65c5c;
}

.stats {
  margin-top: 20px;
}

.promo-codes {
  margin-top: 20px;
  border-top: 1px solid #444;
  padding-top: 15px;
}

#promo-code-input {
  background-color: #333;
  color: white;
  border: 1px solid #555;
  padding: 8px;
  border-radius: 5px;
}

#tanks-menu button {
  margin-right: 10px;
}

.tank-info {
  border: 1px solid #444;
  padding: 100px;
  margin-bottom: 25px;
  border-radius: 8px;
}

.tank-info h4 {
  margin-top: 15px;
}

.upgrade-button {
  background-color: #4CAF50;
  margin-left: 10px;
}

.upgrade-button:hover {
  background-color: #45a049;
}

.buy-button {
  background-color: #2196F3;
}

.buy-button:hover {
  background-color: #0b7dda;
}

.equip-button {
  background-color: #ff9800;
}

.equip-button:hover {
  background-color: #e68a00;
}

.equipped-button {
  background-color: #555;
  cursor: default;
}

/* Новые стили для магазина */
.shop-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.shop-item {
  border: 1px solid #555;
  padding: 15px;
  border-radius: 8px;
  background-color: #444;
  text-align: center;
  width: 250px;
  transition: transform 0.3s;
}

.shop-item:hover {
  transform: translateY(-5px);
}

.shop-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
  border: 2px solid #ff6b6b;
  border-radius: 5px;
}

#battle-log {
  margin-top: 20px;
  font-style: italic;
  color: #aaa;
}

/* Сетка сундуков: 4 в ряд, адаптивно */
#chests-slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); /* 4 в ряд */
  gap: 12px;
  padding: 12px;
  align-items: start;
}

/* Карточка сундука */
.chest-slot {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.15));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 10px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  transition: transform 150ms ease, box-shadow 150ms ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

/* Пустой слот */
.chest-slot .empty {
  color: rgba(255,255,255,0.45);
  font-size: 14px;
}

/* Изображение сундука */
.chest-slot img {
  width: 70%;
  max-width: 120px;
  height: auto;
  display: block;
  margin: 6px 0;
}

/* Кнопка открыть */
.chest-slot button {
  background: linear-gradient(90deg, #ffd36b, #ffa400);
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  color: #111;
  box-shadow: 0 6px 14px rgba(255,164,0,0.2);
}

/* Hover эффект */
.chest-slot:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}

/* Отображение меньше экранов */
@media (max-width: 1000px) {
  #chests-slots { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  #chests-slots { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  #chests-slots { grid-template-columns: repeat(1, 1fr); }
}



.paint-icon {
    width: 60px;
    height: 60px;
    border: 2px solid #ff6b6b;
    border-radius: 8px;
    margin: 10px 0;
}



.limited-time {
  font-weight: 900;
  font-size: 3rem; /* Ещё больше */
  letter-spacing: 3px;
  text-transform: uppercase;

  /* Интенсивный градиент с множеством цветов */
  background: linear-gradient(
    270deg,
    #ff4d4d,  /* Яркий красный */
    #ff6b6b,  /* Светлый красный */
    #ff9a00,  /* Ярко-оранжевый */
    #ffd700,  /* Золото */
    #1dd1a1,  /* Бирюзовый */
    #4a27cd,  /* Глубокий фиолетовый */
    #ff4d4d   /* Замыкаем цикл */
  );

  background-size: 1500% 1500%; /* Увеличили размер, чтобы градиент был ещё длиннее */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* Более сложная анимация с "пульсацией" */
  animation: gradientFlow 10s cubic-bezier(0.4, 0, 0.2, 1) infinite,
             neonPulse 1.5s ease-in-out infinite alternate;

  /* Многослойное неоновое свечение */
  text-shadow: 
    0 0 10px rgba(255, 77, 77, 0.9),
    0 0 20px rgba(255, 215, 0, 0.7),
    0 0 30px rgba(29, 209, 161, 0.5),
    0 0 40px rgba(74, 39, 205, 0.3);
}

/* Более медленная и плавная анимация градиента */
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Дополнительная анимация "пульсации" для свечения */
@keyframes neonPulse {
  0% { text-shadow: 0 0 10px rgba(255, 77, 77, 0.9); }
  100% { text-shadow: 0 0 25px rgba(255, 255, 255, 1), 0 0 40px rgba(255, 215, 0, 0.8); }
}






/* Контейнер окна */
.rewards-container {
    background: rgba(13, 17, 23, 0.7);
    backdrop-filter: blur(10px);
    border: 2px solid #2d333b;
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    margin: 40px auto;
    box-shadow: 0 0 40px rgba(0, 191, 255, 0.2);
    animation: fadeIn 0.8s ease-in-out;
}

/* Заголовок - неоновое свечение */
.rewards-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 0 0 10px #00bfff, 0 0 20px #00bfff;
    background: linear-gradient(90deg, #00ffff, #0077ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Сетка наград */
.rewards-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

/* Ячейка награды */
.reward-day {
    background: #161b22;
    padding: 15px 10px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #30363d;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.reward-day::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reward-day:hover::before {
    opacity: 1;
}

/* Состояние "доступно" */
.reward-day.available {
    border-color: #00bfff;
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.6);
    transform: scale(1.08);
}

/* Состояние "забрано" */
.reward-day.claimed {
    border-color: #38c172;
    opacity: 0.7;
    background: #1c272e;
}

.reward-day.claimed .day-number,
.reward-day.claimed .reward-icon {
    filter: grayscale(100%);
}

.day-number {
    font-size: 14px;
    font-weight: 600;
    color: #8b949e;
    margin-bottom: 5px;
}

.reward-icon {
    width: 50px;
    height: 50px;
    margin: 8px 0;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

/* Кнопка "Забрать" */
.claim-btn {
    background: linear-gradient(90deg, #00bfff, #0077ff);
    border: none;
    padding: 15px 30px;
    font-size: 20px;
    color: #ffffff;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.7);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.claim-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(0, 191, 255, 0.9);
}

.claim-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 15px rgba(0, 191, 255, 0.5);
}

/* Кнопка "Закрыть" */
.close-btn {
    margin-top: 20px;
    background: #2d333b;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    color: #e6e6e6;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background: #3c444f;
}

.hidden {
    display: none;
}



/* Контейнер окна */
.rewards-container {
    background: rgba(44, 14, 21, 0.85);
    border: 1px solid #4a382e;
    border-radius: 15px;
    padding: 40px;
    max-width: 550px;
    margin: 50px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.9s ease-in-out;
}

/* Заголовок - винтажное золото */
.rewards-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 900;
    text-transform: uppercase;
    background: linear-gradient(90deg, #e6b35d, #c8963c, #e6b35d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

/* Сетка наград */
.rewards-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

/* Ячейка награды */
.reward-day {
    background: rgba(74, 56, 46, 0.5);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #4a382e;
    transition: all 0.3s ease;
    cursor: pointer;
}

.reward-day:hover {
    background: rgba(74, 56, 46, 0.7);
    transform: translateY(-3px);
}

/* Состояние "доступно" */
.reward-day.available {
    border-color: #e6b35d;
    box-shadow: 0 0 12px rgba(230, 179, 93, 0.7);
    transform: scale(1.05);
}

/* Состояние "забрано" */
.reward-day.claimed {
    border-color: #556b2f;
    opacity: 0.6;
}

.reward-icon {
    width: 45px;
    height: 45px;
    margin: 5px 0;
    filter: drop-shadow(0 0 8px rgba(230, 179, 93, 0.5));
}

/* Кнопка "Забрать" */
.claim-btn {
    background: linear-gradient(90deg, #e6b35d, #c8963c);
    border: none;
    padding: 12px 25px;
    font-size: 18px;
    color: #4a382e;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(184, 134, 11, 0.5);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.claim-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(184, 134, 11, 0.7);
}

/* Кнопка "Закрыть" */
.close-btn {
    margin-top: 20px;
    background: #4a382e;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    color: #f0e6d2;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background: #5c4a3e;
}






/* Основной контейнер */
#duel-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #120e1a, #0a0a14); /* Более тёмный и мягкий фон */
    padding: 40px;
    gap: 50px;
    flex-wrap: wrap;
    perspective: 1000px;
}

/* Панель дуэлей */
#duel-panel {
    display: none;
    background: linear-gradient(145deg, #1f142b, #2c1a3e); /* Глубокий, тёмно-пурпурный градиент */
    border: 2px solid #a366ff; /* Мягкий, благородный фиолетовый */
    border-radius: 20px;
    padding: 30px;
    width: 350px;
    color: #e6e6fa; /* Светлый, почти белый текст */
    font-family: 'Electrolize', sans-serif;
    box-shadow: 
        0 0 15px rgba(163, 102, 255, 0.5), 
        0 0 30px rgba(163, 102, 255, 0.3); /* Приглушённая тень */
    transform-style: preserve-3d;
    transform: rotateY(15deg) rotateX(5deg);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

#duel-panel:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.05);
    box-shadow: 
        0 0 20px rgba(163, 102, 255, 0.7),
        0 0 40px rgba(163, 102, 255, 0.5);
}

/* Заголовок */
#duel-opponent {
    font-size: 24px;
    font-weight: bold;
    color: #4ecdc4; /* Спокойный бирюзовый */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid rgba(163, 102, 255, 0.5);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

/* Информация о дуэли */
.duel-info {
    font-size: 18px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Киллы и Кубки */
#duel-kills {
    color: #ff9f1c; /* Насыщенный оранжевый */
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

#duel-trophies {
    color: #a366ff; /* Фиолетовый */
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Таймер */
#duel-timer {
    font-size: 22px;
    color: #ef476f; /* Насыщенный розовый */
    font-weight: bold;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

/* Анимация мигания таймера */
@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { color: #ef476f; }
    20%, 24%, 55% { color: #a366ff; } /* Меняем на более спокойный цвет */
}
#duel-timer {
    animation: flicker 2s infinite alternate;
}

/* Панель наград */
#duel-rewards-panel {
    background: linear-gradient(145deg, #2c1a3e, #1f142b);
    border: 2px solid #4ecdc4; /* Спокойный бирюзовый */
    border-radius: 20px;
    padding: 30px;
    width: 350px;
    color: #e6e6fa;
    font-family: 'Electrolize', sans-serif;
    box-shadow: 
        0 0 15px rgba(78, 205, 196, 0.5),
        0 0 30px rgba(78, 205, 196, 0.3);
    transform-style: preserve-3d;
    transform: rotateY(-15deg) rotateX(5deg);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

#duel-rewards-panel:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.05);
    box-shadow: 
        0 0 20px rgba(78, 205, 196, 0.7),
        0 0 40px rgba(78, 205, 196, 0.5);
}

#duel-rewards-panel h3 {
    margin-top: 0;
    color: #a366ff;
    font-size: 20px;
    letter-spacing: 1.5px;
    border-bottom: 2px solid rgba(78, 205, 196, 0.5);
    padding-bottom: 15px;
}

#duel-rewards-panel ul {
    padding-left: 0;
    list-style: none;
}

#duel-rewards-panel li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

#duel-rewards-panel li::before {
    content: '🏆'; /* Используем более благородный символ */
    position: absolute;
    left: 0;
    top: 0;
    color: #ffd166; /* Мягкое золото */
    font-size: 24px;
    text-shadow: none;
}


.shop-item {
  background: linear-gradient(145deg, rgba(20,20,20,0.9), rgba(40,40,40,0.95));
  border-radius: 12px;
  padding: 12px;
  width: 220px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shop-item:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

.bundle-time-label {
  position: absolute;
  top: 8px;
  left: 8px;
  color: #000;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Разные цвета */
.time-6h {
  background: rgba(0, 255, 255, 0.9); /* голубой */
}
.time-12h {
  background: rgba(255, 215, 0, 0.9); /* золотой */
}
.time-24h {
  background: rgba(255, 69, 0, 0.9); /* оранжево-красный */
}



.shop-icon {
  width: 90px;
  height: 90px;
  margin: 10px auto;
  display: block;
}

.shop-item h3 {
  font-size: 16px;
  margin: 8px 0 4px;
  color: #fff;
}

.bundle-desc {
  font-size: 13px;
  color: #ddd;
  margin: 4px 0;
}

.price {
  font-size: 14px;
  color: #ffcc66;
  margin: 4px 0;
  font-weight: bold;
}

.shop-item button {
  background: linear-gradient(90deg, #ffcc33, #ffaa00);
  border: none;
  color: #000;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.shop-item button:hover {
  background: linear-gradient(90deg, #ffaa00, #ff8800);
}




/* Контейнер */
#paints-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
  padding: 30px;
  background-color: #121212;
}

/* Карточка */
#paints-list > div {
  background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  color: #f0f0f0;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  will-change: transform, box-shadow;
}

/* Наведение */
#paints-list > div:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
  border: 1px solid #ff4d4d;
}

/* Картинка */
#paints-list img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffd700;
  margin-bottom: 20px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

#paints-list > div:hover img {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 0 25px rgba(255, 215, 0, 1);
}

/* Заголовок */
#paints-list h3 {
  font-weight: 800;
  margin: 0 0 12px;
  font-size: 20px;
  color: #ff4d4d;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 0 5px rgba(255, 77, 77, 0.5);
}

/* Статистика */
#paints-list .paint-stats {
  margin: 15px 0;
  font-size: 15px;
  line-height: 1.8;
  color: #c0c0c0;
}

.paint-damage { color: #ff6b6b; }
.paint-armor { color: #6a89ff; }
.paint-speed { color: #4bffa5; }
.paint-reload { color: #ff9f43; }

/* Цена */
#paints-list .paint-price {
  background: linear-gradient(90deg, #3a3a3a, #4a4a4a);
  border: 1px solid #ffd700;
  border-radius: 12px;
  padding: 8px 16px;
  margin: 20px 0;
  font-size: 16px;
  font-weight: 700;
  color: #ffd700;
  letter-spacing: 1px;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Кнопка */
#paints-list button {
  background: linear-gradient(45deg, #e74c3c, #c0392b);
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.4s ease;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
  position: relative;
  z-index: 2;
}

#paints-list button:hover {
  background: linear-gradient(45deg, #c0392b, #e74c3c);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(231, 76, 60, 0.6);
}

/* Метка времени */
#paints-list .paint-duration {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(45deg, #00bfff, #0080ff);
  color: #fff;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 13px;
  box-shadow: 0 0 15px rgba(0, 191, 255, 0.9);
  border: 1px solid #00bfff;
}

/* Декор — не мешает кликам */
#paints-list > div::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

#paints-list > div:hover::after {
  opacity: 1;
}















.end-duel-btn {
  background: linear-gradient(90deg, #9b59b6, #8e44ad);
  color: white;
  font-weight: bold;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s ease, transform 0.2s ease;
}
.end-duel-btn:hover {
  background: linear-gradient(90deg, #8e44ad, #732d91);
  transform: scale(1.05);
}


/* Панель настроек */
#settings-panel {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 107, 107, 0.6);
    border-radius: 15px;
    padding: 20px;
    max-width: 400px;
    margin: 20px auto;
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.4);
    animation: fadeIn 0.5s ease;
}

/* Заголовки */
#settings-panel h2 {
    font-size: 1.8em;
    text-align: center;
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.7);
    margin-bottom: 20px;
}
#settings-panel h3 {
    font-size: 1.2em;
    margin-top: 15px;
    color: #ffd166;
    text-shadow: 0 0 5px rgba(255, 209, 102, 0.6);
}

/* Селект выбора языка */
#settings-panel select {
    width: 100%;
    padding: 8px 12px;
    margin-top: 5px;
    border-radius: 8px;
    border: 1px solid #ff6b6b;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 1em;
    outline: none;
    transition: all 0.3s ease;
}
#settings-panel select:hover {
    border-color: #ffd166;
    box-shadow: 0 0 10px rgba(255, 209, 102, 0.4);
}

/* Кнопка сброса */
#settings-panel button {
    width: 100%;
    padding: 10px 15px;
    margin-top: 15px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #8b0000, #b22222);
    color: #fff;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}
#settings-panel button:hover {
    background: linear-gradient(90deg, #b22222, #ff0000);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.7);
    transform: scale(1.05);
}

/* Анимация появления */
@keyframes fadeIn {
    from {opacity: 0; transform: translateY(-10px);}
    to {opacity: 1; transform: translateY(0);}
}



/* Панель танков */
#tanks-panel {
    background: radial-gradient(circle at top left, #202020, #0d0d0d);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
    color: #fff;
    max-width: 950px;
    margin: auto;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.2), inset 0 0 15px rgba(255, 255, 255, 0.05);
    font-family: 'Orbitron', sans-serif;
    backdrop-filter: blur(4px);
}

/* Заголовок */
#tanks-panel h2 {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 20px;
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8), 0 0 25px rgba(255, 215, 0, 0.5);
    letter-spacing: 2px;
}

/* Меню уровней */
#tanks-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}

/* Кнопки меню танков */
#tanks-menu button {
    background: linear-gradient(145deg, #ffd700, #b38f00);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
    transition: all 0.2s ease;
    pointer-events: auto;
    position: relative;
    z-index: 2;
}

#tanks-menu button:hover {
    background: linear-gradient(145deg, #ffec80, #d4aa00);
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

#tanks-menu button:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

#tanks-menu button:disabled {
    background: linear-gradient(145deg, #b3b3b3, #7a7a7a);
    color: #444;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Сетка танков */
#tanks-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

/* Карточка танка */
#tanks-list > div {
    background: linear-gradient(160deg, #1a1a1a, #0f0f0f);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.1);
    transition: all 0.25s ease-in-out;
    position: relative;
    overflow: hidden;
}

#tanks-list > div:hover {
    transform: scale(1.03);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4), inset 0 0 15px rgba(255, 215, 0, 0.1);
}

/* Подсветка при наведении */
#tanks-list > div::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.4s ease-in-out;
    pointer-events: none;
}

#tanks-list > div:hover::before {
    transform: scale(1);
}

/* Заголовок танка */
#tanks-list h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

/* Статы танка */
#tanks-list .stats {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #ddd;
}

/* Кнопки внутри карточек танков */
#tanks-list button {
    background: linear-gradient(145deg, #ffd700, #b38f00);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
    transition: all 0.2s ease;
    pointer-events: auto;
    position: relative;
    z-index: 2;
    margin-top: 8px;
}

#tanks-list button:hover {
    background: linear-gradient(145deg, #ffec80, #d4aa00);
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

#tanks-list button:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

#tanks-list button:disabled {
    background: linear-gradient(145deg, #b3b3b3, #7a7a7a);
    color: #444;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}


.tech-button {
  background-color: #8e44ad;
  color: white;
}
.tech-button:hover {
  background-color: #732d91;
}


.tech-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    justify-items: center;
}


.tech-item {
  background: #1e1e1e;
  border-radius: 12px;
  width: 240px;
  text-align: center;
  padding: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  opacity: 0;
}

.tech-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.tech-item img {
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
  object-fit: contain;
}

.tech-item h4 {
  color: #ffd700;
  font-size: 18px;
  margin-bottom: 6px;
}

.tech-item p {
  color: #ccc;
  font-size: 14px;
  margin: 4px 0;
}

.tech-price {
  color: #ffcc00;
  font-weight: bold;
}

.tech-item button {
  margin-top: 8px;
  background: linear-gradient(90deg, #ffcc00, #ff9900);
  border: none;
  padding: 8px 16px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}

.tech-item button:hover {
  background: linear-gradient(90deg, #ffdd33, #ffaa33);
}

.tech-item.unlocked {
  border: 2px solid #00ff99;
  box-shadow: 0 0 15px rgba(0, 255, 153, 0.6);
}

.tech-item.unlocked h4 {
  color: #00ff99;
}

@keyframes fadeIn {
  to { opacity: 1; }
}











.notification {
  position: fixed;
  top: 20px;
  right: -300px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  transition: right 0.5s ease, opacity 0.5s ease;
  opacity: 0.9;
  z-index: 9999;
}

.notification.show {
  right: 20px;
}

.notification.success { border-left: 5px solid lime; }
.notification.error { border-left: 5px solid red; }
.notification.info { border-left: 5px solid yellow; }
.notification.chest { border-left: 5px solid #42fffc; }
.notification.vip { border-left: 5px solid #ff7300; }







.inventory-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.artifact-card {
  background: #2c2c2c;
  border: 1px solid #444;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  width: 150px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.artifact-card img {
  width: 64px;
  height: 64px;
  margin-bottom: 8px;
}

.artifact-card button {
  background: #00bfff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.artifact-card button:hover {
  background: #0099cc;
}


.artifact-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #ff9800;
  color: white;
  font-size: 14px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 12px;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
}


.artifact-progress {
  position: relative;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  margin-top: 5px;
  overflow: hidden;
}

.artifact-progress-bar {
  height: 100%;
  width: 0%;
  transition: width 1s linear;
}

/* 💰 Золото (монеты) */
.progress-coins {
  background: linear-gradient(90deg, #ffd700, #ffa500);
}

/* ⭐ Синий (опыт) */
.progress-xp {
  background: linear-gradient(90deg, #2196f3, #42a5f5);
}

/* ⚙️ Фиолетовый (TECH) */
.progress-tech {
  background: linear-gradient(90deg, #9c27b0, #ba68c8);
}






/* === Мини-игра (fullscreen overlay) === */
#minigame-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0f0f1a;
  z-index: 9999;
  display: none; /* скрыта по умолчанию */
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 30px;
  box-sizing: border-box;
}

#minigame-panel.active {
  display: flex;
}

/* Заголовок */
#minigame-panel h2 {
  font-size: 28px;
  color: #fff;
  margin-bottom: 10px;
}

#minigame-status {
  font-size: 18px;
  color: #ccc;
  margin-bottom: 15px;
}

/* Карточки */
#minigame-cards {
  display: flex;
  gap: 20px;
  margin: 20px 0;
}

.minigame-card {
  width: 120px;
  height: 160px;
  background: #1b1b2f;
  border: 2px solid #444;
  border-radius: 12px;
  font-size: 36px;
  color: #ff4444;
  cursor: pointer;
  transition: transform 0.2s, background 0.3s;
}

.minigame-card:hover {
  transform: scale(1.1);
  background: #252542;
}

/* Контролы */
#minigame-controls {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

#minigame-controls button {
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  background: #007bff;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

#minigame-controls button:hover {
  background: #0056b3;
  transform: scale(1.05);
}

/* Кнопка выхода */
#minigame-exit {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #ff4444;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s;
}

#minigame-exit:hover {
  background: #cc0000;
}

/* Текст кулдауна */
#minigame-cooldown {
  font-size: 16px;
  color: #ffcc00;
  margin-top: 10px;
}




/* Красная вспышка при проигрыше */
@keyframes loseFlash {
  0%   { background-color: rgba(255, 0, 0, 0.8); opacity: 1; }
  50%  { background-color: rgba(255, 0, 0, 0.4); opacity: 0.6; }
  100% { background-color: rgba(255, 0, 0, 0); opacity: 0; }
}

#minigame-lose-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: loseFlash 1s ease-out forwards;
}

#minigame-lose-overlay h1 {
  color: white;
  font-size: 4em;
  font-weight: bold;
  text-shadow: 2px 2px 10px black;
}


@keyframes winFlash {
  0%   { background-color: rgba(0, 255, 0, 0.8); opacity: 1; }
  50%  { background-color: rgba(0, 255, 0, 0.4); opacity: 0.6; }
  100% { background-color: rgba(0, 255, 0, 0); opacity: 0; }
}

#minigame-win-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,255,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: winFlash 1s ease-out forwards;
}

#minigame-win-overlay h1 {
  color: white;
  font-size: 4em;
  font-weight: bold;
  text-shadow: 2px 2px 10px black;
}


.minigame-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.continue-box {
  background: #222;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  color: white;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.continue-box h2 {
  margin-bottom: 10px;
  font-size: 24px;
  color: #ff5555;
}

.continue-box button {
  margin: 10px;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
}

#continue-btn {
  background: #28a745;
  color: white;
}

#exit-btn {
  background: #dc3545;
  color: white;
}

.minigame-rewards {
  margin-top: 15px;
  padding: 10px;
  background: #222;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  max-height: 200px;
  overflow-y: auto;
}
.minigame-rewards h3 {
  margin: 0 0 10px 0;
  color: #ffd700;
}
.minigame-rewards p {
  margin: 4px 0;
}



.final-box {
  background: #222;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  color: #fff;
  width: 400px;
}

.reward-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reward {
  background: #333;
  padding: 8px;
  border-radius: 8px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
}

.reward-icon {
  width: 24px;
  height: 24px;
}


/* Более красивая зелёная карта */
.card-green {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: #fff !important;
  font-weight: bold;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(46, 204, 113, 0.4), /* Тень с цветом карты */
              0 0 0 3px rgba(46, 204, 113, 0.1); /* Дополнительное свечение */
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Эффект при наведении */
.card-green:hover {
  transform: translateY(-7px);
  box-shadow: 0 8px 25px rgba(46, 204, 113, 0.6), /* Усиление тени */
              0 0 0 5px rgba(46, 204, 113, 0.2); /* Усиление свечения */
}

/* --- */

/* Более красивая военная карта с анимацией */
@keyframes radar-scan {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 100%;
  }
}

.card-military {
  background: radial-gradient(
      circle,
      #444a3a,
      #353b2e 20%,
      #282c23 40%,
      #1f211c 60%
    ),
    repeating-linear-gradient(
      -45deg,
      #2f3c24,
      #2f3c24 5px,
      #3d4d2f 5px,
      #3d4d2f 10px
    );
  background-size: 200% 200%;
  background-blend-mode: multiply;
  color: #c0c0c0 !important;
  font-weight: bold;
  text-shadow: 1px 1px 2px #000;
  border: 3px solid;
  border-image: linear-gradient(
      45deg,
      #6a6a6a,
      #a0a0a0,
      #6a6a6a
    )
    1;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  animation: radar-scan 10s linear infinite;
}

/* Дополнительный блик при наведении */
.card-military::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0)
  );
  transform: skewX(-20deg);
  transition: 0.5s;
}

.card-military:hover::before {
  left: 100%;
}





/* Контейнер для всех рангов */
#rank-list {
  display: flex;
  flex-wrap: wrap; /* Позволяет элементам переноситься на новую строку */
  justify-content: center; /* Выравнивает элементы по центру */
  gap: 20px; /* Увеличиваем расстояние между элементами */
  padding: 20px;
  background-color: #1a1a1a;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* Обновленный стиль для каждого элемента ранга */
.rank-item {
  background: linear-gradient(145deg, #2c2c2c, #3f3f3f);
  border: 1px solid #4a4a4a;
  border-radius: 12px;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 170px; /* Увеличиваем минимальную ширину, чтобы помещалось 5 штук */
  max-width: 200px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  cursor: pointer;
}

.rank-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  background: linear-gradient(145deg, #3f3f3f, #5a5a5a);
}

.rank-icon-small {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
}

.rank-labels {
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.rank-name {
  font-weight: 700;
  color: #e0e0e0;
  text-shadow: 1px 1px 2px #000;
  margin-bottom: 4px;
}

.rank-rp,
.rank-reward {
  font-size: 12px;
  color: #b0b0b0;
}

.rank-rp {
  color: #4dcfff;
}

.rank-reward {
  color: #ffda4a;
}

/* Подсветка текущего ранга */
.current-rank {
  border-color: #ff4a4a;
  box-shadow: 0 0 15px #ff4a4a, 0 0 5px #ff4a4a inset;
  background: linear-gradient(145deg, #442525, #643535);
  transform: scale(1.05);
}





.challenge-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.challenge-card {
  background: linear-gradient(145deg, #222, #333);
  border: 2px solid #ff6b6b;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.challenge-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(255, 107, 107, 0.7);
}

.challenge-locked {
  opacity: 0.5;
  pointer-events: none;
}

.challenge-progress {
  margin-top: 10px;
  font-size: 14px;
  color: #ccc;
}

.challenge-card img {
  border: 2px solid #ff6b6b;
  border-radius: 10px;
  background: rgba(0,0,0,0.3);
  padding: 5px;
  transition: transform 0.2s;
}

.challenge-card img:hover {
  transform: scale(1.1);
}

.challenge-icon {
  width: 80px;
  height: 80px;
  margin: 10px auto;
  border-radius: 12px;
  border: 2px solid #ff6b6b;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 0 8px rgba(255, 107, 107, 0.6);
  transition: transform 0.2s;
}

.challenge-icon:hover {
  transform: scale(1.1);
}



.skip-btn {
  margin-top: 8px;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  background: #ff5722;
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s;
}
.skip-btn:hover {
  background: #e64a19;
}



.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.achievement-card {
  background: #2c2c2c;
  border: 2px solid #444;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.achievement-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.5);
}

.achievement-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 10px;
}

.achievement-difficulty {
  font-size: 14px;
  font-weight: bold;
}

.difficulty-easy { color: #6bff6b; }
.difficulty-medium { color: #ffd36b; }
.difficulty-hard { color: #ff6b6b; }
.difficulty-legendary { color: #a366ff; }




#online-counter.animate-up {
  transform: translateY(-10px);
  opacity: 0.6;
}
#online-counter.animate-down {
  transform: translateY(10px);
  opacity: 0.6;
}








/* Анимация свечения */
@keyframes glow-white-red {
    0% {
        box-shadow: 0 0 10px 5px rgba(255, 255, 255, 0.7);
        text-shadow: 0 0 5px #fff, 0 0 10px #ff6b6b;
    }
    50% {
        box-shadow: 0 0 15px 7px rgba(255, 107, 107, 0.8);
        text-shadow: 0 0 10px #ff6b6b, 0 0 20px #fff;
    }
    100% {
        box-shadow: 0 0 10px 5px rgba(255, 255, 255, 0.7);
        text-shadow: 0 0 5px #fff, 0 0 10px #ff6b6b;
    }
}

/* Применение эффекта свечения к элементу */
.glowing-paint {
    animation: glow-white-red 2s infinite ease-in-out;
    padding: 10px;
    margin: 10px;
}

/* Свечение для текста */
.glowing-text {
    animation: glow-white-red 2s infinite ease-in-out;
    color: white; /* Установите цвет текста, чтобы он был виден */
    text-shadow: 0 0 5px #fff, 0 0 10px #ff6b6b;
}





/* === Базовые стили (из твоего файла) остаются === */

/* 📱 Адаптив для планшетов и телефонов */
@media (max-width: 1024px) {
  .container {
    max-width: 100%;
    padding: 15px;
  }
  .main-nav {
    flex-wrap: wrap;
    gap: 5px;
  }
  .main-nav button {
    flex: 1 1 45%;
    margin: 4px 0;
    font-size: 15px;
    padding: 10px;
  }
  .tank-icon {
    width: 90%;
    height: auto;
  }
  .currency-display {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
}

@media (max-width: 768px) {
  header h1 {
    font-size: 22px;
  }
  .panel {
    padding: 15px;
    position: relative; /* вместо absolute для прокрутки */
  }
  .shop-grid {
    flex-direction: column;
    align-items: center;
  }
  .shop-item {
    width: 90%;
  }
  .rewards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 18px;
  }
  .main-nav button {
    flex: 1 1 100%;
    font-size: 14px;
    padding: 8px;
  }
  .panel {
    padding: 10px;
  }
  .currency-display p, .stats p, .promo-codes input, .promo-codes button {
    font-size: 14px;
  }
  .rewards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  #gameCanvas {
    width: 100%;
    height: auto;
  }
  .chest-slot img {
    max-width: 90px;
  }
}

@media (max-width: 360px) {
  .rewards-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .main-nav button {
    font-size: 12px;
    padding: 6px;
  }
  .tank-icon {
    width: 100%;
  }
}




















/* === Мини-игры: вкладки + Дуэль v2 === */
.minigame-tabs{
  display:flex; gap:10px; margin:10px 0 6px;
}
.mini-tab{
  background:#2a2a3d; color:#fff; border:none; padding:8px 14px;
  border-radius:10px; cursor:pointer; font-weight:600; opacity:.8;
}
.mini-tab.active{ outline:2px solid #4ea1ff; opacity:1; }

.duelv2{ width:100%; max-width:860px; }
.duelv2-title{ color:#fff; margin:8px 0 12px; text-align:center; }

.duelv2-boards{
  display:grid; grid-template-columns:1fr 1fr; gap:20px;
}
.duel-board{
  background:linear-gradient(180deg,#1b1b2f,#1a1a26);
  border:1px solid #333; border-radius:16px; padding:16px; color:#fff;
}
.duel-title{ font-weight:700; margin-bottom:8px; opacity:.9; }

.duel-icon{ width:160px; height:100px; object-fit:contain; display:block; margin:8px auto 6px; }

.hp-row{ background:#101016; border-radius:10px; padding:4px; }
.hp-bar{
  height:16px; border-radius:8px; background:linear-gradient(90deg,#2ecc71,#27ae60);
  width:100%; position:relative; overflow:hidden;
}
.hp-bar span{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  font-size:12px; font-weight:700; color:#0b0b12; text-shadow:0 1px 0 rgba(255,255,255,.35);
}

.duel-stats{
  margin-top:8px; font-size:14px; opacity:.95;
}

.duelv2-controls{ text-align:center; margin-top:12px; }
.duelv2-controls button{
  background:#4ea1ff; border:none; border-radius:10px; padding:10px 16px; cursor:pointer;
}














/* 🎰 Общий контейнер рулетки */
.roulette-container {
  width: 600px;
  height: 120px;
  margin: 20px auto;
  border: 3px solid #ff6b6b;
  border-radius: 10px;
  background: #111;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(255, 50, 50, 0.4);
}

/* 🎁 Лента */
.roulette-strip-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.roulette-strip {
  display: flex;
  width: max-content;
  height: 100%;
  transition: transform 3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.roulette-item {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  border-right: 1px solid #333;
  background: #222;
  color: white;
  user-select: none;
}

/* 🔴 Индикатор обычной рулетки */
/* 🎯 Индикатор обычной рулетки */
.roulette-indicator {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background: red;
  transform: translateX(130px); /* центр по ячейке 120px */
  z-index: 10;
}

/* 💎 Индикатор премиум рулетки */
#minigame-premium-roulette .roulette-indicator {
  background: gold;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.9);
  transform: translateX(130px); /* ⚡ подправь (-58px, -62px и т.д.), чтобы идеально совпало */
}


/* 🔘 Кнопка запуска */
.roulette-btn {
  margin-top: 15px;
  padding: 10px 20px;
  background: #ff6b6b;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.roulette-btn:hover {
  background: #ff3b3b;
  transform: scale(1.05);
}

/* 💎 Премиум рулетка */
#minigame-premium-roulette .roulette-container {
  border: 3px solid gold;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.8), 
              0 0 40px rgba(255, 215, 0, 0.4);
  background: linear-gradient(180deg, #222, #111);
}

#minigame-premium-roulette .roulette-item {
  background: #333;
  color: gold;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.8);
  border-right: 1px solid rgba(255, 215, 0, 0.4); /* золотые линии */
}

/* 💎 Кнопка премиум рулетки */
.roulette-btn.premium {
  background: linear-gradient(90deg, #ffd700, #ff9900);
  color: black;
  font-weight: bold;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

.roulette-btn.premium:hover {
  background: linear-gradient(90deg, #ffcc00, #ff6600);
  transform: scale(1.05);
}











.tank-sale-label {
  position: absolute;
  top: 8px;
  left: 8px;
  color: #000;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 14px;
  background: linear-gradient(135deg, rgba(255, 223, 0, 0.9), rgba(255, 179, 0, 0.9)); /* градиент из золота и янтарного */
  box-shadow: 0 4px 15px rgba(255, 223, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2); /* два вида тени для глубины */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  transform: rotate(-5deg) scale(1.1); /* небольшой поворот и увеличение */
  animation: pulse 1.5s infinite ease-in-out; /* анимация пульсации */
  z-index: 10;
}

@keyframes pulse {
  0% {
    transform: rotate(-5deg) scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 223, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2);
  }
  50% {
    transform: rotate(-5deg) scale(1.15);
    box-shadow: 0 6px 20px rgba(255, 223, 0, 0.6), 0 3px 8px rgba(0, 0, 0, 0.3);
  }
  100% {
    transform: rotate(-5deg) scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 223, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2);
  }
}
.sale-20 {
  background: rgb(0, 255, 136, 0.9); /* золотой */
}








/* Экран загрузки */
#loading-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url("img/backgrounds/SchUpd-bc.png") no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
}

.loading-content {
  text-align: center;
  color: white;
}

.loading-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 30px;
  text-shadow: 0 0 10px black;
}

.loading-bar {
  width: 400px;
  height: 25px;
  border: 2px solid white;
  border-radius: 10px;
  overflow: hidden;
  margin: 20px auto;
  background: rgba(0,0,0,0.5);
}

#loading-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff6b6b, #ffd36b);
  transition: width 0.1s;
}

#loading-text {
  font-size: 22px;
  margin-top: 10px;
}




/* Анимация "пыли" от мела */
@keyframes chalk-dust {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: translate(10px, -20px) scale(1.2) rotate(360deg);
        opacity: 0;
    }
}

/* Анимация свечения "мелом" */
@keyframes chalk-glow {
    0% {
        box-shadow: 0 0 5px 2px rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 15px 5px rgba(255, 255, 255, 0.8);
    }
    100% {
        box-shadow: 0 0 5px 2px rgba(255, 255, 255, 0.4);
    }
}

/* Основной контейнер "Магической доски" */
.school-time-magic {
    position: relative;
    overflow: hidden;
    /* Фон в виде доски */
    background-color: #2c3e50;
    /* Анимированная рамка */
    border: 3px solid transparent;
    border-image: linear-gradient(to right, #ffffff, #81c784, #b39ddb) 1;
    border-radius: 12px;
    animation: chalk-glow 2s infinite;
}

/* Элемент для создания анимированной "пыли" */
.school-time-magic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Множество "пылинок" */
    box-shadow: 
        10px 20px 0 0 rgba(255, 255, 255, 0.5),
        -15px -10px 0 0 rgba(255, 255, 255, 0.6),
        30px -5px 0 0 rgba(255, 255, 255, 0.7),
        -5px 15px 0 0 rgba(255, 255, 255, 0.5);
    /* Применение анимации */
    animation: chalk-dust 3s linear infinite;
}

/* Текст, написанный мелом */
.school-time-magic h3 {
    color: #f0f0f0;
    font-family: 'Permanent Marker', cursive, sans-serif;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.4);
}

/* Иконка в центре */
.school-time-magic img {
    border: 2px solid #FFC107 !important;
    box-shadow: 0 0 10px 5px rgba(255, 230, 0, 0.6);
}






.duel-progress {
  position: relative;
  width: 100%;
  height: 24px;
  background: #333;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 8px;
}

.duel-progress .player {
  background: limegreen;
  height: 100%;
}

.duel-progress .bot {
  background: crimson;
  height: 100%;
}

.duel-progress .divider {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background: #fff;
  opacity: 0.7;
}











.tournament-container {
  max-width: 900px;
  margin: 0 auto;
  background-color: #1c1c1c;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid #333;
}

.tournament-title {
  font-size: 3em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 25px;
  background: linear-gradient(45deg, #00c6ff, #0072ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 15px rgba(0, 198, 255, 0.5);
  letter-spacing: 2px;
}

.tournament-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  margin: 20px 0;
}

.tournament-table th, .tournament-table td {
  padding: 15px;
  text-align: center;
  background-color: #2a2a2a;
  border: none;
  font-size: 1.1em;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tournament-table th {
  background-color: #383838;
  font-weight: 600;
  text-transform: uppercase;
  color: #aaa;
  border-bottom: 2px solid #00c6ff;
}

.tournament-table tbody tr {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.tournament-table tbody tr:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Уникальный стиль для 1-го места */
.tournament-table tbody tr:nth-child(1) td {
  background: linear-gradient(90deg, #ffd700, #ffc400);
  color: #333;
  font-weight: bold;
  border-left: 5px solid #ffcc00;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
  transform: scale(1.03);
  transition: all 0.3s ease-in-out;
}

/* Уникальный стиль для 2-го места */
.tournament-table tbody tr:nth-child(2) td {
  background: linear-gradient(90deg, #c0c0c0, #a0a0a0);
  color: #333;
  font-weight: bold;
  border-left: 5px solid #a0a0a0;
  box-shadow: 0 0 15px rgba(192, 192, 192, 0.7);
  transform: scale(1.02);
  transition: all 0.3s ease-in-out;
}

/* Уникальный стиль для 3-го места */
.tournament-table tbody tr:nth-child(3) td {
  background: linear-gradient(90deg, #cd7f32, #b8621d);
  color: #333;
  font-weight: bold;
  border-left: 5px solid #b8621d;
  box-shadow: 0 0 10px rgba(205, 127, 50, 0.6);
  transform: scale(1.01);
  transition: all 0.3s ease-in-out;
}

/* Средний стиль для 4-го места */
.tournament-table tbody tr:nth-child(4) td {
  background: linear-gradient(90deg, #2a2a2a, #1a1a1a);
  color: #fff;
  font-weight: bold;
  border-left: 5px solid #444;
}

/* Средний стиль для 5-го места */
.tournament-table tbody tr:nth-child(5) td {
  background: linear-gradient(90deg, #2a2a2a, #1a1a1a);
  color: #fff;
  font-weight: bold;
  border-left: 5px solid #444;
}


/* Остальные стили для награды и модального окна */
.tournament-rewards {
  text-align: center;
  margin: 30px auto;
  max-width: 600px;
  background-color: #2a2a2a;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px dashed #444;
}

.tournament-rewards h3 {
  color: #00c6ff;
  font-size: 1.5em;
  margin-bottom: 10px;
}

.tournament-rewards ul {
  list-style: none;
  padding: 0;
}

.tournament-rewards li {
  margin: 10px 0;
  font-size: 1.1em;
  color: #e0e0e0;
}

.tournament-reward-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.5s ease forwards;
}

.tournament-reward-box {
  background: #222;
  border: 2px solid #00c6ff;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 0 30px #00c6ff, 0 0 10px #0072ff;
  animation: popupScale 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

.tournament-reward-box h2 {
  color: #00c6ff;
  font-size: 2.5em;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(0, 198, 255, 0.7);
}

.tournament-reward-box .reward-list {
  margin: 20px 0;
  font-size: 1.5em;
  color: #fff;
  font-weight: 500;
  animation: textGlow 1.5s infinite alternate;
}

.tournament-reward-box button {
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1.2em;
  color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 198, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tournament-reward-box button:hover {
  background: linear-gradient(90deg, #0072ff, #00c6ff);
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 198, 255, 0.6);
}

/* Анимации */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popupScale {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes textGlow {
  from { text-shadow: 0 0 5px #fff, 0 0 10px #00c6ff; }
  to { text-shadow: 0 0 10px #fff, 0 0 20px #00c6ff; }
}






/* Hacker-style for the entire card */
.hacker-card {
  background-color: #0d0d0d;
  border: 2px solid #00ff00;
  box-shadow: 0 0 10px #00ff00;
  position: relative;
  overflow: hidden;
  animation: border-glitch 1.5s infinite alternate;
}

/* Эффект шума и помех на фоне */
.hacker-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    rgba(0, 255, 0, 0.1) 1px,
    transparent 2px
  );
  opacity: 0.2;
  pointer-events: none;
}

/* Эффект сканирующей линии */
.hacker-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, #00ff00, transparent);
  animation: scanline 2s linear infinite;
}

/* Hacker-style text for the "HACKERS" paint */
.hacker-text {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.5em;
  color: #00ff00;
  text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00, 0 0 20px #00ff00;
  position: relative;
  overflow: hidden;
  animation: glitch-text 1s linear infinite;
  text-transform: uppercase;
}

/* Эффект помех (глюков) */
.hacker-text::before,
.hacker-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0d0d0d; /* Совпадает с цветом карточки */
  overflow: hidden;
  clip: rect(0, 900px, 0, 0);
}

.hacker-text::before {
  left: -2px;
  text-shadow: 1px 0 0 #ff00c6;
  animation: glitch-anim 2s infinite linear alternate-reverse;
}

.hacker-text::after {
  left: 2px;
  text-shadow: -1px 0 0 #00ffff;
  animation: glitch-anim2 3s infinite linear alternate-reverse;
}

/* Анимации для помех (глюков) */
@keyframes glitch-anim {
  0% { clip: rect(12px, 9999px, 8px, 0); }
  20% { clip: rect(38px, 9999px, 34px, 0); }
  40% { clip: rect(74px, 9999px, 70px, 0); }
  60% { clip: rect(25px, 9999px, 21px, 0); }
  80% { clip: rect(81px, 9999px, 77px, 0); }
  100% { clip: rect(51px, 9999px, 47px, 0); }
}

@keyframes glitch-anim2 {
  0% { clip: rect(37px, 9999px, 33px, 0); }
  20% { clip: rect(18px, 9999px, 14px, 0); }
  40% { clip: rect(91px, 9999px, 87px, 0); }
  60% { clip: rect(62px, 9999px, 58px, 0); }
  80% { clip: rect(44px, 9999px, 40px, 0); }
  100% { clip: rect(10px, 9999px, 6px, 0); }
}

/* Общая анимация мигания для текста */
@keyframes glitch-text {
  0%, 10% { opacity: 1; }
  12%, 14% { opacity: 0.1; }
  16% { opacity: 1; }
  18%, 20% { opacity: 0.1; }
  22%, 100% { opacity: 1; }
}

/* Анимация мигания рамки */
@keyframes border-glitch {
  0%, 100% { border-color: #00ff00; box-shadow: 0 0 10px #00ff00; }
  50% { border-color: #ff00c6; box-shadow: 0 0 15px #ff00c6; }
}

/* Анимация сканирующей линии */
@keyframes scanline {
  0% { top: 0; }
  100% { top: 100%; }
}