/* 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; }
#verbInput[data-result="correct"] { background: #e4ede1; }
#verbInput[data-result="wrong"] { background: #f5e6e3; box-shadow: inset 0 0 0 1px #b3392c; }
#feedbackBanner[data-result="wrong"] { background: #f5e6e3; }
#feedbackBanner[data-result="wrong"] #feedbackTitle { 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) {
  #te-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; }
  #te-navigation a { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

#verbTarget a { color: inherit; text-decoration: none; }
#verbTarget rt { font: 600 20px/28px "Noto Serif", serif; color: #873125; }
.hide-furigana #verbTarget rt { visibility: hidden; }
#verbInput { padding-right: 48px; }
#terminationsGuideSection { scroll-margin-top: 80px; }
@media (min-width: 640px) { #verbInput { padding-right: 150px; } }
