/* Approved theme-color exception for the shared word-help panel. */
.ll-theme .ll-word-memory__toggle,
.ll-theme .ll-word-memory__submit {
    background: #c63e00;
    border-color: #c63e00;
    color: #fff;
}
.ll-theme .ll-word-memory__toggle:is(:hover, :focus),
.ll-theme .ll-word-memory__submit:is(:hover, :focus) {
    background: #c63e00;
    border-color: #c63e00;
    color: #fff;
}
.ll-theme .ll-word-memory__panel,
.ll-theme .ll-word-memory__choice,
.ll-theme .ll-word-memory__suggestion { border-color: #c63e00; }
.ll-theme .ll-word-memory__choice:is(:hover, :focus),
.ll-theme .ll-word-memory__suggestion:is(:hover, :focus) { background: #fff7ed; border-color: #c63e00; }
@media (max-width: 767px) {
    .ll-theme:has(.sbo-game-shell) .ll-word-memory { top: auto; bottom: env(safe-area-inset-bottom, 0px); right: 8px; transform: none; }
    .ll-theme:has(.sbo-game-shell) .ll-word-memory__toggle { writing-mode: horizontal-tb; min-height: 44px; min-width: 44px; padding: 10px 16px; border: 1px solid #c63e00; border-radius: 10px 10px 0 0; }
    .ll-theme:has(.sbo-game-shell) .ll-word-memory__panel { top: auto; bottom: calc(100% + 8px); right: 0; width: min(320px, calc(100vw - 16px)); max-height: calc(100dvh - 80px - env(safe-area-inset-bottom, 0px)); transform: none; }
}
