[hidden] { display: none !important; }
#book-search, #live-url { width: min(100%, 46rem); }
.book-list, .suggestions { list-style: none; padding: 0; }
.book-entry { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; margin: .65rem 0; }
.book-entry h2, .book-entry p { margin: .2rem 0; }
.book-entry h2 { font-size: 1.15rem; }
.book-entry .actions { margin: 0; }
.suggestions { width: min(100%, 46rem); background: white; border: 1px solid #bbcce0; border-radius: .6rem; }
.suggestions button { border: 0; background: transparent; color: #153754; text-align: left; width: 100%; padding: .65rem; cursor: pointer; }
.suggestions button:hover, .suggestions button:focus-visible { background: #eaf2ff; }
.source-list li { margin-block: .5rem; }
.task-list > li { padding-block: .75rem; border-bottom: 1px solid #d9e2ec; }
.task-list p { margin: 0 0 .35rem; }
#live-frame { display: block; margin-top: 1rem; width: 100%; min-height: clamp(34rem, 75vh, 66rem); background: #f5f7fb; border: 1px solid #bacde2; border-radius: .65rem; }
.game { max-width: 58rem; }
.game-tools { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1.25rem; }
.game-tools select { width: auto; }
.game-grid { display: grid; width: min(100%, 31rem); border: 2px solid #243e60; background: #243e60; gap: 1px; }
.game-grid > * { min-width: 0; aspect-ratio: 1; display: grid; place-items: center; position: relative; }
.game-grid input, .game-grid button { color: #142942; background: white; padding: 0; border: 0; border-radius: 0; text-align: center; width: 100%; height: 100%; font-size: clamp(.84rem, 3vw, 1.2rem); font-weight: 650; min-width: 0; }
.game-grid input:focus, .game-grid button:focus-visible { z-index: 1; outline: 2px solid #155ecc; outline-offset: -2px; }
.game-grid input[readonly] { background: #e6edf6; }
.game-grid button[aria-pressed=true] { background: #b8d9ff; }
.game-grid button.found, .game-grid input.correct { background: #d8f3e4; }
.game-grid input.invalid { background: #fce0df; }
.game-grid .heavy-right { border-right: 2px solid #243e60; }
.game-grid .heavy-bottom { border-bottom: 2px solid #243e60; }
.game-grid .closed { background: #243e60; }
.game-grid .clue-number { position: absolute; top: 1px; left: 2px; z-index: 2; pointer-events: none; font-size: .59rem; color: #243e60; }
.word-list { display: flex; flex-wrap: wrap; gap: .5rem 1rem; padding-left: 1rem; }
.word-list .done { text-decoration: line-through; color: #285843; }
.quiz-options { display: grid; gap: .55rem; max-width: 33rem; }
.quiz-options button { text-align: left; }
.quiz-options .correct { background: #d8f3e4; color: #123c28; }
.quiz-options .invalid { background: #fce0df; color: #542522; }
.quiz-progress { max-width: 24rem; width: 100%; }
