:root {
  --lv-blue: #0d6efd;
  --lv-sky: #e8f6ff;
  --lv-sky-strong: #bfe9ff;
  --lv-deep: #153e75;
  --lv-soft: #f6fbff;
  --lv-green: #20b26b;
  --lv-yellow: #ffd85a;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #1b2b45;
  background:
    radial-gradient(circle at 15% 10%, rgba(112, 207, 255, 0.35), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(226, 247, 255, 0.9), transparent 35%),
    linear-gradient(135deg, #ffffff 0%, #edf9ff 45%, #dff4ff 100%);
  overflow-x: hidden;
}

.page-shell {
  position: relative;
}

.ambient {
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
  filter: blur(2px);
  opacity: 0.5;
  animation: float 7s ease-in-out infinite;
}

.ambient-1 {
  width: 190px;
  height: 190px;
  background: rgba(13, 110, 253, 0.13);
  left: -60px;
  top: 16%;
}

.ambient-2 {
  width: 140px;
  height: 140px;
  background: rgba(44, 202, 255, 0.18);
  right: 7%;
  bottom: 14%;
  animation-delay: 1.3s;
}

.ambient-3 {
  width: 90px;
  height: 90px;
  background: rgba(255, 255, 255, 0.85);
  right: 22%;
  top: 8%;
  animation-delay: 2.2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-18px) scale(1.04); }
}

.hero-card,
.result-card,
.question-card,
.navigation-card,
.side-panel {
  position: relative;
  z-index: 1;
}

.hero-card,
.result-card {
  width: min(920px, 100%);
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 28px 90px rgba(13, 74, 137, 0.16);
  backdrop-filter: blur(12px);
  transform: translateY(0);
  animation: riseIn 650ms ease both;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  color: var(--lv-deep);
  background: var(--lv-sky);
  border: 1px solid rgba(13, 110, 253, 0.14);
  font-size: clamp(1.35rem, 3vw, 2.6rem);
  letter-spacing: 0.12em;
  font-weight: 800;
}

.logo-orbit {
  width: clamp(180px, 28vw, 280px);
  height: clamp(180px, 28vw, 280px);
  border-radius: 50%;
  padding: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffffff, #e8f7ff);
  box-shadow: inset 0 0 0 10px rgba(220, 245, 255, 0.85), 0 18px 40px rgba(13, 110, 253, 0.18);
  animation: pulseRing 3.2s ease-in-out infinite;
}

@keyframes pulseRing {
  0%, 100% { transform: scale(1); box-shadow: inset 0 0 0 10px rgba(220, 245, 255, 0.85), 0 18px 40px rgba(13, 110, 253, 0.18); }
  50% { transform: scale(1.025); box-shadow: inset 0 0 0 14px rgba(220, 245, 255, 0.95), 0 22px 52px rgba(13, 110, 253, 0.24); }
}

.hero-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.company-title {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--lv-deep);
}

.instruction-text {
  max-width: 720px;
  color: #44556d;
}

.start-btn,
.btn-primary {
  border: none;
  background: linear-gradient(135deg, #1b8cff, #0d6efd);
  box-shadow: 0 12px 28px rgba(13, 110, 253, 0.28);
}

.start-btn:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(13, 110, 253, 0.34);
}

.feature-pill {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #f1faff;
  border: 1px solid rgba(13, 110, 253, 0.12);
  font-weight: 700;
  color: var(--lv-deep);
}

.quiz-wrapper {
  position: relative;
  z-index: 1;
}

.quiz-title {
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--lv-deep);
  font-size: clamp(1.75rem, 4vw, 3rem);
}

.quiz-subtitle {
  color: #52657d;
}

.question-card {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.95);
  min-height: 470px;
  animation: cardFade 280ms ease both;
}

@keyframes cardFade {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.question-number {
  font-weight: 800;
  color: var(--lv-blue);
}

.level-badge {
  color: var(--lv-deep);
  background: #e9f7ff;
  border: 1px solid #cceeff;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.question-text {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.4;
  color: #152b4c;
}

.option-list {
  display: grid;
  gap: 0.9rem;
}

.option-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: #f8fcff;
  border: 1px solid rgba(13, 110, 253, 0.12);
  cursor: pointer;
  transition: 180ms ease;
  font-weight: 600;
}

.option-item:hover {
  transform: translateX(4px);
  border-color: rgba(13, 110, 253, 0.35);
  background: #eff9ff;
}

.option-item:has(input:checked) {
  border-color: rgba(32, 178, 107, 0.55);
  background: #ecfff6;
  box-shadow: 0 12px 26px rgba(32, 178, 107, 0.12);
}

.navigation-card,
.side-panel {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(13, 110, 253, 0.12);
  box-shadow: 0 16px 42px rgba(13, 74, 137, 0.12);
}

.side-panel {
  top: 1rem;
  padding: 1rem;
}

.timer-box {
  border-radius: 22px;
  background: linear-gradient(135deg, #e8f7ff, #ffffff);
  border: 1px solid rgba(13, 110, 253, 0.13);
  padding: 1rem;
}

.timer-label {
  color: #52657d;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.timer-value {
  color: var(--lv-deep);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  font-variant-numeric: tabular-nums;
}

.timer-danger {
  color: #d63333;
  animation: timerPulse 800ms ease-in-out infinite;
}

@keyframes timerPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.custom-accordion .accordion-item,
.custom-accordion .accordion-button {
  border-radius: 18px !important;
}

.custom-accordion .accordion-button {
  font-weight: 800;
  color: var(--lv-deep);
  background: #f3fbff;
}

.custom-accordion .accordion-button:not(.collapsed) {
  background: #e7f6ff;
  color: var(--lv-blue);
  box-shadow: none;
}

.question-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.45rem;
}

.question-nav {
  border: 1px solid rgba(13, 110, 253, 0.18);
  background: #ffffff;
  color: #37516f;
  font-weight: 800;
}

.question-nav.active-question {
  outline: 3px solid rgba(13, 110, 253, 0.18);
  transform: translateY(-1px);
}

.question-nav.status-opened {
  background: var(--lv-yellow);
  border-color: #f1c93f;
  color: #533f00;
}

.question-nav.status-answered {
  background: var(--lv-green);
  border-color: var(--lv-green);
  color: #ffffff;
}

.legend {
  display: grid;
  gap: 0.4rem;
  font-size: 0.86rem;
  color: #5b6c80;
}

.legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 0.45rem;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.12);
  vertical-align: middle;
}

.legend-dot.untouched { background: #ffffff; }
.legend-dot.opened { background: var(--lv-yellow); }
.legend-dot.answered { background: var(--lv-green); }

.rules-text {
  color: #53667f;
  font-size: 0.95rem;
  line-height: 1.65;
}

.secure-page,
.secure-page * {
  -webkit-user-select: none;
  user-select: none;
}

.security-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  backdrop-filter: blur(12px);
  background: rgba(232, 246, 255, 0.78);
}

.security-box {
  width: min(420px, 92vw);
  padding: 2rem;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(13, 110, 253, 0.14);
  box-shadow: 0 24px 70px rgba(13, 74, 137, 0.18);
  text-align: center;
  color: var(--lv-deep);
}

.security-box span {
  display: block;
  color: #5d7087;
  margin-top: 0.5rem;
}

.result-card {
  max-width: 700px;
}

.result-icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #20b26b, #38d88b);
  font-size: 3rem;
  font-weight: 900;
  box-shadow: 0 18px 40px rgba(32, 178, 107, 0.25);
  animation: pop 700ms cubic-bezier(.2,1.3,.4,1) both;
}

@keyframes pop {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.result-label {
  color: #52657d;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
}

.result-level {
  color: var(--lv-deep);
  font-weight: 900;
  font-size: clamp(2.4rem, 7vw, 5.2rem);
}

.confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 991.98px) {
  .side-panel {
    position: static !important;
  }

  .question-card {
    min-height: auto;
  }
}

@media (max-width: 575.98px) {
  .question-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .navigation-card {
    flex-wrap: wrap;
  }

  .navigation-card .btn {
    flex: 1 1 120px;
  }
}
