:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

.btn-main {
  background: #0b2545;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: .75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn-main:active { transform: scale(0.97); }

.btn-sub {
  background: #e6f0ff;
  color: #0b2545;
  border: none;
  border-radius: 10px;
  padding: .75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn-sub:active { transform: scale(0.97); }

@media (hover: hover) and (pointer: fine) {
  .btn-main:hover { background: #13315c; }
  .btn-sub:hover  { background: #cfe2ff; }
}

.q-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 3px 14px rgba(11,37,69,.09);
  margin-bottom: 1rem;
  animation: cardIn 280ms var(--ease-out) both;
}

.choice {
  background: #fff;
  border: 2px solid #dce8f5;
  border-radius: 12px;
  padding: .85rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  text-align: left;
  width: 100%;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 120ms var(--ease-out), background 120ms var(--ease-out), transform 160ms var(--ease-out);
  opacity: 0;
  transform: translateY(6px);
  animation: choiceIn 250ms var(--ease-out) both;
}
.choice:active { transform: scale(0.98); }
.choice.sel { border-color: #0b2545; background: #e6f0ff; }
.choice.ok  { border-color: #198754 !important; background: #d1e7dd !important; }
.choice.no  { border-color: #dc3545 !important; background: #f8d7da !important; }

@media (hover: hover) and (pointer: fine) {
  .choice:not(.ok):not(.no):hover { border-color: #0b2545; background: #f5f9ff; }
}

.badge {
  min-width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e6f0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .82rem;
  color: #0b2545;
  flex-shrink: 0;
  margin-top: .05rem;
  transition: background 120ms var(--ease-out);
}

.feedback-box {
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  font-size: .97rem;
  line-height: 1.4;
  animation: feedbackIn 220ms var(--ease-out) both;
}

.result-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 20px rgba(11,37,69,.1);
  animation: cardIn 300ms var(--ease-out) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: scale(0.97) translateY(6px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes choiceIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes feedbackIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .q-card, .choice, .feedback-box, .result-card {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .choice, .btn-main, .btn-sub { transition: none; }
}
