.quiz-card {
    margin: 0.5rem 0 3rem;
    padding: clamp(1.25rem, 4vw, 2.5rem);
    border: 1px solid #dce8eb;
    border-radius: 1rem;
    background: linear-gradient(145deg, #ffffff 0%, #f5fbfc 100%);
    box-shadow: 0 1rem 2.5rem rgba(16, 65, 77, 0.1);
}

.quiz-masthead {
    overflow: hidden;
    background-image: none;
}

.quiz-banner-image {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
    object-position: center;
}

.quiz-masthead:before {
    z-index: 1;
}

.quiz-masthead .container {
    z-index: 2;
}

.quiz-intro {
    margin-bottom: 1.75rem;
}

.quiz-eyebrow {
    display: inline-block;
    margin-bottom: 0.5rem;
    color: #0085a1;
    font-family: "Open Sans", sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.quiz-intro h2,
.quiz-result h3 {
    margin-bottom: 0.75rem;
    color: #173c48;
}

.quiz-intro p,
.quiz-result p {
    margin-bottom: 0;
    color: #536a70;
}

.quiz-home-link {
    color: #2d4286;
    font-weight: 700;
}

.quiz-title-furina {
    color: #2d4286;
}

.quiz-progress {
    height: 0.65rem;
    overflow: hidden;
    border-radius: 1rem;
    background: #dce8eb;
}

.quiz-progress-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0085a1, #43b7bd);
    transition: width 250ms ease;
}

.quiz-progress-labels {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 0.55rem 0 1.75rem;
    color: #61777c;
    font-family: "Open Sans", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
}

.quiz-question {
    margin-bottom: 1.25rem;
    color: #173c48;
    font-size: clamp(1.3rem, 3vw, 1.65rem);
    line-height: 1.4;
}

.quiz-answers {
    display: grid;
    gap: 0.75rem;
}

.quiz-answer {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #c9dadd;
    border-radius: 0.65rem;
    background: #fff;
    color: #263d43;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.quiz-answer:hover:not(:disabled),
.quiz-answer:focus-visible {
    transform: translateY(-1px);
    border-color: #0085a1;
    outline: 3px solid rgba(0, 133, 161, 0.15);
}

.quiz-answer:disabled {
    cursor: default;
}

.quiz-answer.is-correct {
    border-color: #198754;
    background: #e9f7ef;
    color: #146c43;
}

.quiz-answer.is-incorrect {
    border-color: #dc3545;
    background: #fff0f1;
    color: #a52834;
}

.quiz-feedback {
    min-height: 1.5rem;
    margin: 1rem 0 0.75rem;
    font-weight: 700;
}

.quiz-feedback.is-correct {
    color: #146c43;
}

.quiz-feedback.is-incorrect {
    color: #a52834;
}

.quiz-next {
    min-width: 9rem;
}

.quiz-next:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.quiz-result {
    padding: 1rem 0 0.25rem;
    text-align: center;
}

.quiz-result p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

@media (prefers-reduced-motion: reduce) {
    .quiz-progress-fill,
    .quiz-answer {
        transition: none;
    }
}

@media (max-width: 575.98px) {
    #mainNav .navbar-brand {
        max-width: calc(100vw - 160px);
        white-space: normal;
        font-size: 0.9rem;
        line-height: 1.2;
    }
}

/* Botão de tocar/pausar a música de fundo */
.botao-musica {
  position: fixed;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 1030;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 2rem;
  background-color: #2d4286;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 0.35rem 0.8rem rgba(45, 66, 134, 0.35);
  cursor: pointer;
}

.botao-musica:hover,
.botao-musica:focus-visible {
  background-color: #1f2f63;
}