/* Interaction and mobile support only; visual layout comes from the Stitch HTML. */
[hidden] { display: none !important; }
.material-symbols-outlined { vertical-align: middle; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #f0bf5c; outline-offset: 3px; }
input:disabled { opacity: 1; }
#input-resposta[data-result="correct"] { background: #e4ede1; }
#input-resposta[data-result="wrong"] { background: #f5e6e3; box-shadow: inset 0 0 0 1px #b3392c; }
#feedback-acerto[data-result="wrong"] { background: #f5e6e3; }
#feedback-acerto[data-result="wrong"] #feedback-title { color: #b3392c; }
#keyboard-help { margin: auto; width: min(480px, calc(100% - 32px)); padding: 24px; border-radius: 8px; background: #efe7d6; color: #1f2430; border: 1px solid #ded3be; }
#keyboard-help::backdrop { background: #171d34d9; }
.help-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 16px; }
.help-heading h2 { font: 500 20px 'Noto Serif', serif; }
.help-heading button { width: 32px; height: 32px; font-size: 24px; }
#keyboard-help p { font: 400 14px/1.8 Inter, sans-serif; }
@media (max-width: 1279px) {
  #counter-navigation[data-open] { position: absolute; top: 64px; left: 0; right: 0; display: flex; flex-direction: column; align-items: stretch; padding: 16px 20px; background: #171d34; border-bottom: 1px solid #f0bf5c33; max-height: calc(100dvh - 64px); overflow-y: auto; }
  #counter-navigation a { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

#secao-tabela { scroll-margin-top: 80px; }
#reference-dialog { margin: auto; width: min(900px, calc(100% - 32px)); max-height: 85dvh; overflow: auto; padding: 24px; border-radius: 8px; background: #efe7d6; color: #1f2430; }
#reference-dialog::backdrop { background: #171d34d9; }
#reference-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
#reference-content h3 { font-weight: 600; margin-bottom: 8px; }
#reference-content p { font-size: 13px; line-height: 1.8; }
@media (min-width: 640px) { #input-resposta { padding-right: 180px; } }
