
:root {
  --practice-radius: 1.25rem;
  --practice-shadow: 0 1rem 2.75rem rgba(15, 23, 42, .10);
  --practice-soft-shadow: 0 .65rem 1.6rem rgba(15, 23, 42, .08);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(13, 110, 253, .14), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(111, 66, 193, .12), transparent 30rem),
    var(--bs-body-bg);
}

[data-bs-theme="dark"] body {
  background:
    radial-gradient(circle at top left, rgba(110, 168, 254, .18), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(214, 51, 132, .13), transparent 30rem),
    var(--bs-body-bg);
}

.app-shell {

}

.hero-card,
.story-card,
.question-card,
.score-card {
  border: 1px solid var(--bs-border-color-translucent);
  border-radius: var(--practice-radius);
  box-shadow: var(--practice-shadow);
  overflow: hidden;
}

.hero-card {
  background:
    linear-gradient(135deg, rgba(var(--bs-primary-rgb), .14), rgba(var(--bs-info-rgb), .09)),
    var(--bs-body-bg);
}

[data-bs-theme="dark"] .hero-card {
  background:
    linear-gradient(135deg, rgba(110, 168, 254, .18), rgba(13, 202, 240, .08)),
    rgba(255, 255, 255, .035);
}

.hero-icon {
  width: 3.25rem;
  height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  color: #fff;
  background: var(--bs-primary);
  box-shadow: 0 .6rem 1.3rem rgba(var(--bs-primary-rgb), .32);
}

.story-card {
  background: var(--bs-tertiary-bg);
}

.story-text {
  font-size: 1.03rem;
  line-height: 1.75;
}

.question-card {
  background: var(--bs-body-bg);
  box-shadow: var(--practice-soft-shadow);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.question-card:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--practice-shadow);
  border-color: rgba(var(--bs-primary-rgb), .45);
}

.question-slide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.question-number {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  background: var(--bs-primary);
  flex: 0 0 auto;
}

.question-counter-pill {
  border-radius: 999rem;
  padding: .45rem .8rem;
  font-weight: 800;
  background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color-translucent);
  color: var(--bs-secondary-color);
  white-space: nowrap;
}

.answer-input {
  border-width: 2px;
  border-radius: .95rem;
  min-height: 3.15rem;
  font-weight: 600;
}

.answer-input:focus {
  box-shadow:
    0 0 0 .2rem rgba(var(--bs-primary-rgb), .16),
    0 .5rem 1.1rem rgba(15, 23, 42, .08);
}

[data-bs-theme="light"] .answer-input::placeholder {
  color: rgba(var(--bs-body-color-rgb), .45);
  opacity: 1;
}

[data-bs-theme="dark"] .answer-input::placeholder {
  color: rgba(255, 255, 255, .45);
  opacity: 1;
}

.answer-action-row {
  row-gap: .85rem;
}

.answer-score-status {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999rem;
  padding: .55rem 1rem;
  background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color-translucent);
  font-weight: 700;
  white-space: nowrap;
}

.point-button-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
}

.point-button-group .btn {
  border-radius: 999rem !important;
  min-width: 3.2rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.check-button,
.slide-nav-button {
  border-radius: 999rem;
  font-weight: 700;
  min-height: 2.75rem;
  padding-inline: 1.35rem;
}

.model-answer-box {
  border-radius: 1rem;
  background: var(--bs-secondary-bg);
  border: 1px solid var(--bs-border-color-translucent);
}

.score-card {
  position: sticky;
  top: 1rem;
  background: var(--bs-body-bg);
}

.grade-display {
  font-size: clamp(2.7rem, 7vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: 1;
}

.grade-pill {
  border-radius: 999rem;
  padding: .45rem .75rem;
  font-weight: 800;
}

.progress {
  height: 1rem;
  border-radius: 999rem;
}

.progress-bar {
  border-radius: 999rem;
  font-weight: 800;
}

.stat-tile {
  border-radius: 1rem;
  background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color-translucent);
  padding: .95rem;
}

.small-muted {
  color: var(--bs-secondary-color);
}

.slide-progress-track {
  height: .75rem;
  border-radius: 999rem;
  background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color-translucent);
  overflow: hidden;
  margin-bottom: 2.4rem;
}

.slide-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 999rem;
  background: var(--bs-primary);
  transition: width .2s ease;
}

.slide-dots {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.slide-dot {
  width: .85rem;
  height: .85rem;
  border-radius: 999rem;
  border: 0;
  background: var(--bs-border-color);
  padding: 0;
  transition: transform .15s ease, background-color .15s ease;
}

.slide-dot:hover,
.slide-dot:focus {
  transform: scale(1.2);
  outline: none;
}

.slide-dot.active {
  background: var(--bs-primary);
}

.slide-dot.scored {
  background: var(--bs-success);
}

.slide-dot.active.scored {
  background: var(--bs-primary);
  box-shadow: 0 0 0 .18rem rgba(var(--bs-success-rgb), .25);
}

.btn {
  white-space: normal;
}

@media (max-width: 991.98px) {
  .score-card {
    position: static;
  }
}

@media (max-width: 575.98px) {
  .answer-action-row .btn,
  .answer-score-status,
  .point-button-group,
  .slide-nav-button {
    width: 100%;
  }

  .point-button-group .btn {
    flex: 1 1 0;
  }

  .slide-navigation {
    display: grid !important;
    grid-template-columns: 1fr;
  }
}
