#hwbw-hearing-quiz {
  /* subtract optional header and fixed progress bar so padding doesn't push content past the viewport */
  min-height: calc(100vh - 200px - 8px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  /* keep a comfortable bottom padding but include the progress bar height */
  padding-bottom: calc(16px * 4 + 8px);
}

/* full-bleed app shell */
html, body, #page {
  height: 100%;
  margin: 0;
  padding: 0;
}

body.hwbw-hearing-quiz-app {
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* slide container: centered column with comfortable padding */
.hqb-slide {
  margin: 0 auto;
  box-sizing: border-box;
  min-height: 50vh;
}
.hqb-slide h2 {
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
}

/* progress: prefer Bootstrap .progress if available; lightweight fallback provided */
.hqb-progress {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: transparent;
  z-index: 60;
}
.hqb-progress .hqb-progress__bar {
  height: 100%;
  background: rgba(220, 53, 69, 0.95);
  width: 0%;
  transition: width 300ms ease;
}

/* controls: rely on Bootstrap .btn and utilities; provide small layout helper */
.hqb-controls {
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  margin-top: 1rem;
  align-items: center;
}

/* audio control: minimal layout; Bootstrap forms will style inputs if present */
.hqb-audio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.hqb-audio audio {
  display: none;
}

.hqb-audio .label {
  color: #666;
  font-size: 0.9rem;
}

/* Audio controls */
.hqb-audio {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

/* Mobile first: large touch targets */
@media (max-width: 480px) {
  .hqb-controls {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: white;
    border-top: 1px solid #eee;
  }
}