body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding: 20px;
  background: #f5f7fa;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  min-height: 100vh;
  margin: 0;
}

.container {
  max-width: 600px; /* Вернули для меньшего размера на ПК */
  width: 100%;
  background: #ffffff;
  padding: 30px 25px 40px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#progress-bar-container {
  width: 100%;
  height: 14px;
  background: #e0e0e0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 10px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

#progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
  border-radius: 14px;
  transition: width 0.35s ease-in-out;
  box-shadow: 0 0 8px #4facfe;
}

#timer {
  font-weight: 600;
  font-size: 18px;
  color: #333;
  text-align: center;
  font-family: 'Courier New', Courier, monospace;
  user-select: none;
  letter-spacing: 1.5px;
}

.question-img {
  max-width: 100%;
  display: block;
  margin-bottom: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgb(0 0 0 / 0.1);
}

.answers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Фиксированная сетка 2x2 для всех экранов */
  grid-template-rows: auto auto;
  gap: 18px;
  margin-top: 10px;
}

.label-option {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #ddd;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-sizing: border-box;
  background-color: #fafafa;
  box-shadow: 0 2px 5px rgb(0 0 0 / 0.05);
  user-select: none;
}

.label-option:hover {
  border-color: #4facfe;
  box-shadow: 0 0 15px #4facfe;
  background-color: #e6f4ff;
}

.label-option.selected {
  background-color: #cce5ff;
  border-color: #339af0;
}

.answer-img {
  max-width: 100%;
  border-radius: 10px;
  pointer-events: none;
  user-select: none;
  box-shadow: 0 4px 8px rgb(0 0 0 / 0.12);
}

.controls {
  display: flex;
  justify-content: space-between;
}

button {
  padding: 12px 26px;
  background-color: #4facfe;
  border: none;
  color: white;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(79, 172, 254, 0.6);
  transition: background-color 0.3s ease;
  user-select: none;
}

button:disabled {
  background-color: #ccc;
  cursor: default;
  box-shadow: none;
}

button:hover:not(:disabled) {
  background-color: #00a6ff;
  box-shadow: 0 6px 15px rgba(0, 166, 255, 0.8);
}

.hidden {
  display: none;
}

@media (max-width: 480px) {
  .container {
    padding: 20px 15px 30px;
  }

  #timer {
    font-size: 16px;
  }

  .label-option {
    padding: 8px;
  }

  button {
    padding: 10px 20px;
    font-size: 14px;
  }
}