/* Фон страницы */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: system-ui, sans-serif;
  background-color: #1e1e1e;
  color: #f1f1f1;
  display: flex;
  flex-direction: column;
}

/* Главный layout */
.main-wrapper {
  display: flex;
  flex: 1;
}

.side-menu {
  width: 240px;
  background-color: #252525;
  border-right: 1px solid #444;
  padding: 25px 20px;
  box-sizing: border-box;
  flex-shrink: 0;
  
  display: flex;
  flex-direction: column;
  justify-content: space-between;  
}

.menu-footer {
  font-size: 8px;
  padding: 15px 10px;
  color: #777;
  text-align: center;
}
.menu-footer a {
  color: #888;
  text-decoration: none;
}

.menu-footer a:hover {
  text-decoration: underline;
}

.menu-link.active {
  font-weight: bold;
  color: #00cc88;
}

.side-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-menu li {
  margin-bottom: 16px;
}


/* Контент */
.main-content {
  flex-grow: 1;
  padding: 40px;
  background-color: #2a2a2a;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Шапка */
.site-header {
  width: 100%;
  background-color: #2a2a2a;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  border-bottom: 1px solid #444;
  box-sizing: border-box;
}

/* Блок CPS контейнера */
.cps-container {
  width: 100%;
  max-width: 600px;
  background-color: #333;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

/* Заголовки */
.cps-container h1,
.cps-container h2,
.cps-container h3 {
  color: #ffffff;
  margin-bottom: 15px;
}

/* Кнопка старт */
#cps-start {
  padding: 12px 24px;
  font-size: 16px;
  background-color: #444;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}
#cps-start:hover {
  background-color: #555;
}
#cps-start:active {
  transform: scale(0.98);
}

/* Зона кликов */
#cps-click-zone {
  width: 500px;
  height: 200px;
  background-color: #3a3a3a;
  border-radius: 8px;
  margin: 20px 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}
#cps-click-zone:active {
  background-color: #444;
}

#cps-click-zone.disabled {
  opacity: 0.3;
  transition: opacity 0.3s;
}

/* Статистика */
.cps-stats {
  display: flex;
  gap: 30px;
  font-size: 16px;
  margin-bottom: 20px;
}
/* Таймер */
#cps-timer {
  font-size: 20px;
  color: #aaa;
  margin-top: 10px;
}

/* Результат */
#cps-result h2 {
  color: #00cc88;
  margin-bottom: 10px;
}
#cps-result.shake {
  animation: shake 0.4s;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%  { transform: translateX(-5px); }
  50%  { transform: translateX(5px); }
  75%  { transform: translateX(-3px); }
}

/* SEO-блок */
/* Описание */
.cps-description {
  max-width: 700px;
  color: #bbb;
  text-align: center;
  margin-top: 30px;
  font-size: 15px;
  line-height: 1.6;
}

/* Скрытый блок */
.hidden {
  display: none;
}

/* Обновление стиля меню */
.side-menu a {
  color: #aaa;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.side-menu a:hover {
  background-color: #333;
  color: #fff;
}

.side-menu .active a {
  background-color: #333;
  font-weight: bold;
  color: #00cc88;
}

.side-menu i {
  font-size: 16px;
}

.site-footer {
  background-color: #1a1a1a;
  padding: 10px 20px;
  text-align: center;
  font-size: 13px;
  color: #888;
  border-top: 1px solid #333;
}
.site-footer .footer-line a {
  color: #bbb;
  margin: 0 4px;
  text-decoration: none;
}
.site-footer .footer-line a:hover {
  text-decoration: underline;
}
.site-footer .footer-line a.active {
  font-weight: bold;
  color: #fff;
}


/* Обёртка всей игры */
.cps-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
}

/* Верх (заголовок + старт) */
.cps-top {
  text-align: center;
  margin-bottom: 20px;
}

.cps-settings {
  margin-top: 10px;
}
.cps-settings select,
.cps-settings button {
  margin-left: 8px;
  padding: 8px 12px;
  background-color: #444;
  color: #fff;
  border: none;
  border-radius: 6px;
}
.cps-settings button:hover {
  background-color: #555;
}

/* Анимации кликов */
#clicks-fx {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.cps-fx {
  position: absolute;
  font-size: 20px;
  color: #00cc88;
  animation: flyUp 0.6s ease-out forwards;
}
@keyframes flyUp {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-30px); }
}

#cps-time-buttons button {
  background: #333;
  color: white;
  border: none;
  padding: 6px 12px;
  margin: 0 4px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

#cps-time-buttons button:hover {
  background: #444;
}

#cps-time-buttons button.active {
  background: #0f0;
  color: #000;
  font-weight: bold;
}
#cps-time-buttons {
  display: flex;
  gap: 8px;
  margin-top: 5px;
  justify-content: center;
}

#cps-time-buttons .time-btn {
  background: #333;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s;
}

#cps-time-buttons .time-btn:hover {
  background: #444;
}

#cps-time-buttons .time-btn.active {
  background: #00cc44;
  color: #000;
}


.cps-click-instruction {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  color: #ccc;
  pointer-events: none;
  opacity: 0.8;
  text-align: center;
}