*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050816;
  color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.background-gradient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(96, 165, 250, 0.4), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(236, 72, 153, 0.4), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(16, 185, 129, 0.35), transparent 55%);
  filter: blur(40px);
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

.app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.app-header {
  text-align: center;
  margin-bottom: 20px;
}

.app-header h1 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  letter-spacing: 0.04em;
}

.subtitle {
  margin-top: 8px;
  font-size: 0.95rem;
  color: #9ca3af;
}

.card {
  background: rgba(15, 23, 42, 0.92);
  border-radius: 20px;
  padding: 20px 18px 18px;
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.85),
    0 0 0 1px rgba(148, 163, 184, 0.12);
  backdrop-filter: blur(18px);
}

@media (min-width: 640px) {
  .card {
    padding: 24px 26px 22px;
  }
}

.hidden {
  display: none;
}

.progress {
  width: 100%;
  height: 6px;
  background: rgba(30, 64, 175, 0.2);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8, #6366f1, #ec4899);
  background-size: 200% 100%;
  border-radius: inherit;
  transition: width 0.25s ease-out;
  animation: progressGlow 3s linear infinite;
}

@keyframes progressGlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.question-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #9ca3af;
}

.question-index {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  font-size: 0.8rem;
}

.question-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.question-text {
  font-size: 1.05rem;
  margin-bottom: 14px;
  line-height: 1.5;
}

.question-note {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 14px;
}

.options {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.option {
  position: relative;
}

.option-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 14px;
  padding: 10px 11px;
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.2);
  transition:
    border-color 0.18s ease-out,
    background-color 0.18s ease-out,
    transform 0.08s ease-out,
    box-shadow 0.18s ease-out;
}

.option-label:hover {
  border-color: rgba(129, 140, 248, 0.9);
  background: rgba(30, 64, 175, 0.45);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.65);
  transform: translateY(-1px);
}

.option-indicator {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(148, 163, 184, 0.7);
  margin-top: 2px;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.18s ease-out, background-color 0.18s ease-out;
}

.option-indicator::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background: linear-gradient(135deg, #38bdf8, #6366f1, #ec4899);
  opacity: 0;
  transform: scale(0.4);
  transition:
    opacity 0.18s ease-out,
    transform 0.18s ease-out;
}

.option-text-main {
  font-size: 0.98rem;
}

.option-text-sub {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 2px;
}

.option-input:checked + .option-label {
  border-color: rgba(129, 140, 248, 1);
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.24), transparent 65%),
  radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.22), transparent 60%),
  rgba(15, 23, 42, 0.96);
  box-shadow:
    0 0 0 1px rgba(129, 140, 248, 0.8),
    0 12px 28px rgba(15, 23, 42, 0.9);
}

.option-input:checked + .option-label .option-indicator {
  border-color: transparent;
  background: rgba(15, 23, 42, 0.9);
}

.option-input:checked + .option-label .option-indicator::after {
  opacity: 1;
  transform: scale(1);
}

.controls {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.btn {
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: none;
  cursor: pointer;
  transition:
    background 0.16s ease-out,
    color 0.16s ease-out,
    box-shadow 0.16s ease-out,
    transform 0.08s ease-out,
    opacity 0.12s ease-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn:disabled {
  opacity: 0.4;
  cursor: default;
  box-shadow: none;
  transform: none;
}

.btn:not(.btn-ghost):not(.btn-outline) {
  background: #2563eb;
  color: #e5e7eb;
  border: 1px solid #1d4ed8;
  box-shadow: none;
}

.btn:not(.btn-ghost):not(.btn-outline):hover:not(:disabled) {
  background: #1d4ed8;
}

.btn-ghost {
  background: transparent;
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.9);
}

.btn-outline {
  background: transparent;
  color: #e5e7eb;
  border: 1px solid rgba(129, 140, 248, 0.7);
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.96);
  box-shadow: none;
}

.result-card {
  margin-top: 16px;
  text-align: center;
}

.result-card h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.result-score {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.result-score span {
  font-weight: 700;
  font-size: 1.35rem;
  background: linear-gradient(135deg, #38bdf8, #6366f1, #ec4899);
  -webkit-background-clip: text;
  color: transparent;
}

.result-text {
  font-size: 0.98rem;
  color: #e5e7eb;
  margin-bottom: 6px;
}

.accent {
  color: #a5b4fc;
  font-weight: 600;
}

.result-subtext {
  font-size: 0.88rem;
  color: #9ca3af;
  margin-bottom: 12px;
}

.app-footer {
  text-align: center;
  margin-top: 14px;
  font-size: 0.78rem;
  color: #6b7280;
}

@media (max-width: 480px) {
  body {
    padding: 12px;
  }

  .controls {
    flex-direction: column-reverse;
  }

  .btn {
    width: 100%;
  }
}


