/* === Настрой часы — стили игры (time3.html) === */

.question-text {
  font-size: 1.4rem;
  font-weight: 900;
  text-align: center;
  margin: 10px 0 8px;
  line-height: 1.3;
  color: var(--accent1);
  background: var(--glass-bg);
  border: 2px solid var(--help-border);
  border-radius: 14px;
  padding: 12px 16px;
}

.clock-container {
  display: flex;
  justify-content: center;
  margin: 12px 0;
  touch-action: none;
}

#interactiveClock {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  cursor: grab;
  touch-action: none;
}

#interactiveClock:active {
  cursor: grabbing;
}

.clock-container.shake {
  animation: shake 0.4s ease;
}

/* Stats block — как в numbers1 */
.glass-header {
  display: flex;
  justify-content: center;
  margin: 8px 0;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 1.7rem;
  color: #888;
  font-weight: 700;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--stats-bg1), var(--stats-bg2));
  border-radius: 16px;
  border: 2px solid var(--stats-border);
  transition: all .3s;
}

.stats:hover {
  transform: scale(1.03);
  border-color: var(--stats-hover-border);
}

.stats span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stats b {
  color: #333;
  font-size: 1.1rem;
  transition: all .3s;
}

.stats.bump b {
  animation: statBump .4s ease-out;
}

@keyframes statBump {
  0% { transform: scale(1); }
  40% { transform: scale(1.5); color: var(--stats-bump-color); }
  100% { transform: scale(1); }
}

.check-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 8px auto;
}

.check-btn {
  margin: 0;
}

.hint-btn {
  display: none;
  margin: 0;
  padding: 8px 18px;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  background: #e8e8e8;
  color: #999;
  opacity: 0.7;
}
.hint-btn:hover {
  opacity: 0.9;
  background: #ddd;
}

.hint-overlay {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background: rgba(var(--white-shadow),.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s;
  z-index: 10;
}

.hint-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.hint-dialog {
  background: var(--glass-bg);
  border: 2px solid var(--help-border);
  border-radius: 20px;
  padding: 24px 28px;
  max-width: 320px;
  text-align: center;
}

.hint-dialog p {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent1);
  margin: 0 0 16px;
  line-height: 1.5;
}

.hint-giveup {
  opacity: 0.5;
}
.hint-giveup:hover {
  opacity: 0.8 !important;
}

.next-task-btn {
  display: none;
}

@media (max-width: 480px) {
  #interactiveClock {
    width: 180px;
    height: 180px;
  }
  .stats { font-size: 1rem; gap: 12px; }
}

@media (min-width: 481px) and (max-width: 768px) {
  #interactiveClock {
    width: 200px;
    height: 200px;
  }
}

@media (min-width: 769px) {
  #interactiveClock {
    width: 260px;
    height: 260px;
  }
}
