/* ===== IQ-тест — стили в текущем неоновом дизайне ===== */
.iq-wrap { max-width: 760px; margin: 0 auto; }

.iq-card {
  background: var(--bg-card);
  border: 2px solid var(--neon-cyan);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 0 24px rgba(0, 245, 255, 0.18);
}

/* Интро */
.iq-intro-lead { color: var(--text-secondary); font-size: 1rem; line-height: 1.6; margin-bottom: 1.2rem; }
.iq-rules { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: 0.6rem; }
.iq-rules li {
  display: flex; align-items: center; gap: 0.7rem;
  color: var(--text-primary); font-family: var(--font-body); font-size: 0.95rem;
}
.iq-rules li i { color: var(--neon-cyan); width: 20px; text-align: center; }

/* Кнопки */
.iq-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; justify-content: center;
  padding: 0.85rem 2rem; cursor: pointer; border: none; border-radius: 8px;
  font-family: var(--font-main); font-weight: 700; font-size: 0.9rem; text-transform: uppercase;
  letter-spacing: 0.04em; color: #06121a;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}
.iq-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 0 22px rgba(0, 245, 255, 0.55); }
.iq-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.iq-btn.ghost { background: transparent; border: 2px solid var(--neon-cyan); color: var(--text-primary); }

/* Прогресс */
.iq-progress { height: 8px; background: rgba(255, 255, 255, 0.08); border-radius: 999px; overflow: hidden; margin-bottom: 0.8rem; }
.iq-progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink)); transition: width 0.3s ease; }
.iq-qnum { font-family: var(--font-main); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--neon-cyan); text-transform: uppercase; margin-bottom: 0.8rem; }
.iq-question { font-family: var(--font-body); font-weight: 600; font-size: 1.25rem; line-height: 1.5; color: var(--text-primary); white-space: pre-line; margin-bottom: 1rem; }

/* Варианты ответов */
.iq-options { display: grid; gap: 0.7rem; margin-bottom: 1.5rem; }
.iq-option {
  display: flex; align-items: center; gap: 0.9rem; width: 100%; text-align: left;
  padding: 0.9rem 1.1rem; cursor: pointer; border-radius: 10px;
  background: rgba(255, 255, 255, 0.03); border: 2px solid rgba(0, 245, 255, 0.25);
  color: var(--text-primary); font-family: var(--font-body); font-size: 1rem;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.iq-option:hover { border-color: var(--neon-cyan); background: rgba(0, 245, 255, 0.08); transform: translateX(2px); }
.iq-option.selected { border-color: var(--neon-pink); background: rgba(255, 0, 110, 0.14); box-shadow: 0 0 14px rgba(255, 0, 110, 0.3); }
.iq-opt-letter {
  flex: 0 0 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(0, 245, 255, 0.15); color: var(--neon-cyan);
  font-family: var(--font-main); font-weight: 700; font-size: 0.85rem; text-transform: uppercase;
}
.iq-option.selected .iq-opt-letter { background: var(--neon-pink); color: #fff; }

/* Тест-панель — контекст позиционирования для таймера */
#iqTest { position: relative; padding-bottom: 4.5rem; }

/* Таймер — в правом нижнем углу рабочей области теста */
.iq-timer {
  position: absolute; right: 18px; bottom: 18px; z-index: 5;
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.55rem 1rem; border-radius: 999px;
  background: var(--bg-card); border: 2px solid var(--neon-cyan); color: var(--neon-cyan);
  font-family: var(--font-main); font-weight: 700; font-size: 0.95rem;
  box-shadow: 0 0 18px rgba(0, 245, 255, 0.3);
}
.iq-timer.danger { border-color: var(--neon-pink); color: var(--neon-pink); box-shadow: 0 0 22px rgba(255, 0, 110, 0.5); animation: iqPulse 1s infinite; }
@keyframes iqPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* Результат */
.iq-result-head { font-family: var(--font-main); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); }
.iq-iq {
  font-family: var(--font-main); font-weight: 900; font-size: 3.2rem; line-height: 1.1; margin: 0.4rem 0;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.iq-level { font-family: var(--font-body); font-weight: 600; font-size: 1.2rem; color: var(--text-primary); margin-bottom: 1.4rem; }
.iq-stats { display: grid; gap: 0.6rem; margin-bottom: 1.6rem; }
.iq-stat { display: flex; justify-content: space-between; align-items: center; padding: 0.7rem 1rem; border-radius: 8px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(0, 245, 255, 0.2); }
.iq-stat span { color: var(--text-secondary); font-size: 0.9rem; }
.iq-stat b { color: var(--neon-cyan); font-family: var(--font-main); font-size: 1rem; }
.iq-result-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* Заглушка «Скоро» для не-русских языков */
.iq-soon { text-align: center; }
.iq-soon-badge { display: inline-block; padding: 0.4rem 1.2rem; border-radius: 999px; background: var(--neon-yellow); color: #2a2400; font-family: var(--font-main); font-weight: 700; letter-spacing: 0.06em; margin-bottom: 1rem; }
.iq-soon p { color: var(--text-secondary); font-size: 1.05rem; }

/* ===== Иллюстрации к вопросам 2, 8, 20 (адаптировано под тёмную тему) ===== */
.iq-image-container {
  display: flex; justify-content: center; align-items: center; gap: 20px;
  background: rgba(0, 245, 255, 0.05); padding: 20px; border-radius: 10px;
  margin: 0 auto 1.2rem; max-width: 500px; border: 1px solid rgba(0, 245, 255, 0.25);
}
.shape { width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: bold; color: var(--text-primary); }
.shape.arrow { width: auto; color: var(--neon-cyan); font-size: 28px; }
.shape.question { border: 2px dashed var(--neon-pink); border-radius: 4px; color: var(--neon-pink); }
.shape.line { height: 3px; background: var(--text-primary); }
.shape.triangle { width: 0; height: 0; border-left: 30px solid transparent; border-right: 30px solid transparent; border-bottom: 52px solid var(--text-primary); }
.shape.square { background: var(--text-primary); }

.iq-clock { position: relative; width: 120px; height: 120px; border: 4px solid var(--neon-cyan); border-radius: 50%; background: rgba(255, 255, 255, 0.04); }
.clock-line { position: absolute; background: rgba(255, 255, 255, 0.25); }
.clock-line.horizontal { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.clock-line.vertical { left: 50%; top: 0; height: 100%; width: 2px; transform: translateX(-50%); }
.clock-arrow { position: absolute; bottom: 50%; left: 50%; width: 4px; height: 45px; background: var(--neon-pink); transform-origin: bottom center; transform: translateX(-50%); border-radius: 2px; }

.cube-net { position: relative; width: 160px; height: 120px; }
.net-square { position: absolute; width: 38px; height: 38px; border: 2px solid var(--neon-cyan); background: rgba(255, 255, 255, 0.04); display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 16px; color: var(--text-primary); }
.pos-1 { left: 0; top: 40px; }
.pos-2 { left: 40px; top: 40px; }
.pos-3 { left: 80px; top: 40px; }
.pos-4 { left: 120px; top: 40px; }
.pos-5 { left: 40px; top: 0; }
.pos-6 { left: 40px; top: 80px; }

@media (max-width: 600px) {
  .iq-card { padding: 1.3rem; }
  .iq-iq { font-size: 2.4rem; }
  .iq-question { font-size: 1.1rem; }
}
