body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: #fffaf1;
  background:
    radial-gradient(circle at top left, rgba(243, 201, 100, .16), transparent 24%),
    radial-gradient(circle at bottom right, rgba(185, 28, 28, .22), transparent 28%),
    #0d0b09;
}

a {
  color: inherit;
  text-decoration: none;
}

* {
  box-sizing: border-box;
}

.quiz-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.quiz-shell {
  width: min(760px, 100%);
}

.quiz-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin-bottom: 14px;
  padding: 0 14px;
  border: 1px solid rgba(243, 201, 100, .26);
  border-radius: 999px;
  color: #fffaf1;
  background: rgba(255, 250, 241, .07);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
  font-weight: 800;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.quiz-back:hover {
  transform: translateY(-1px);
  border-color: rgba(243, 201, 100, .48);
  background: rgba(243, 201, 100, .12);
}

.quiz-back span {
  font-size: 18px;
  line-height: 1;
}

.quiz-card {
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid rgba(255, 250, 241, .12);
  border-radius: 22px;
  background: rgba(255, 250, 241, .05);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .26);
  backdrop-filter: blur(10px);
}

.quiz-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  font-weight: 800;
}

.quiz-progress {
  color: #f3c964;
}

.quiz-score {
  color: rgba(255, 250, 241, .7);
}

.quiz-title {
  margin: 0 0 10px;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.08;
}

.quiz-subtitle {
  margin: 0 0 22px;
  color: rgba(255, 250, 241, .74);
}

.quiz-options {
  display: grid;
  gap: 12px;
}

.quiz-option {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(255, 250, 241, .12);
  border-radius: 14px;
  color: #fffaf1;
  background: rgba(255, 255, 255, .05);
  text-align: left;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.quiz-option:hover {
  transform: translateY(-1px);
  border-color: rgba(243, 201, 100, .4);
  background: rgba(255, 255, 255, .08);
}

.quiz-option:disabled {
  opacity: 1;
  cursor: default;
}

.quiz-option.is-correct {
  border-color: rgba(31, 175, 98, .78);
  background: rgba(31, 175, 98, .22);
}

.quiz-option.is-wrong {
  border-color: rgba(185, 28, 28, .82);
  background: rgba(185, 28, 28, .24);
}

.quiz-feedback {
  min-height: 68px;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  font-weight: 700;
  background: rgba(255, 255, 255, .05);
}

.quiz-feedback.is-correct {
  color: #dff9ea;
  border: 1px solid rgba(31, 175, 98, .42);
  background: rgba(31, 175, 98, .18);
}

.quiz-feedback.is-wrong {
  color: #ffe3e3;
  border: 1px solid rgba(185, 28, 28, .44);
  background: rgba(185, 28, 28, .22);
}

.quiz-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.quiz-hint {
  color: rgba(255, 250, 241, .66);
  font-size: 14px;
}

.quiz-button,
.quiz-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  color: #140d05;
  background: linear-gradient(135deg, #f3c964, #c99a38);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.quiz-button[hidden] {
  display: none;
}

.quiz-secondary {
  color: #fffaf1;
  background: rgba(255, 255, 255, .08);
}

.result-score {
  color: #f3c964;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.register-shell {
  width: min(920px, 100%);
}

.register-card {
  text-align: left;
}

.register-form {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field span,
.form-field .control-label {
  margin: 0;
  color: rgba(255, 250, 241, .88);
  font-size: 14px;
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 250, 241, .14);
  border-radius: 12px;
  color: #fffaf1;
  background: rgba(255, 255, 255, .06);
  font: inherit;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 250, 241, .44);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(243, 201, 100, .42);
  border-color: rgba(243, 201, 100, .44);
}

.form-field textarea {
  resize: vertical;
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: rgba(185, 28, 28, .82);
}

.form-field .help-block {
  margin: 0;
  color: #ffe3e3;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .quiz-actions,
  .result-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .quiz-button,
  .quiz-link {
    width: 100%;
  }
}
