.word-guess,.word-search,.typing-game{gap:var(--space-sm);flex-direction:column;inline-size:100%;min-inline-size:0;margin-inline:auto;display:flex}.word-guess{max-inline-size:34rem}.word-search{max-inline-size:42rem}.typing-game{max-inline-size:44rem}.typing-game>.game-toolbar:has([data-slot=field]){grid-template-columns:repeat(2,minmax(0,1fr));justify-items:start;display:grid}.game-player .typing-game .game-toolbar [data-slot=field]{align-items:stretch;gap:var(--space-2xs);flex-direction:column;inline-size:100%;max-inline-size:none}.typing-game .game-toolbar [data-slot=select-trigger]{inline-size:100%}.word-support{gap:var(--space-2xs);max-inline-size:var(--reading-width);padding-block-start:var(--space-xs);display:grid}.word-help,.word-caption{font-size:var(--type-label);color:var(--muted-foreground);line-height:1.45}.word-caption{justify-content:space-between;gap:var(--space-sm);flex-wrap:wrap;display:flex}.word-guess-board{gap:var(--space-2xs);border-radius:var(--radius);flex-direction:column;inline-size:min(100%,18rem,max(12rem,83.3333dvh - 19.1667rem));margin-inline:auto;display:flex}.word-guess-row{gap:var(--space-2xs);grid-template-columns:repeat(5,minmax(0,1fr));display:grid}.word-guess-tile{aspect-ratio:1;border:1px solid var(--input);border-radius:var(--radius);background:var(--background);color:var(--foreground);font-size:var(--type-game-score);place-items:center;font-weight:650;transition:background-color .16s ease-out,border-color .16s ease-out;display:grid}.word-guess-tile[data-state=filled]{border-color:var(--foreground)}.word-keyboard{gap:var(--space-2xs);flex-direction:column;inline-size:min(100%,34rem);margin-inline:auto;display:flex}.word-keyboard-row{justify-content:center;gap:var(--space-2xs);display:flex}.word-keyboard .word-key{min-block-size:2.75rem;min-inline-size:0;max-inline-size:2.75rem;font-size:var(--type-label);flex:1 1 0;padding-inline:0}.word-keyboard .word-key-wide{max-inline-size:4.5rem;font-size:var(--type-label);flex:1.6 1 0}.word-guess-tile[data-state=correct],.word-key[data-state=correct]{background:var(--game-success);border-color:var(--game-success);color:var(--game-success-foreground)}.word-guess-tile[data-state=present],.word-key[data-state=present]{background:var(--game-warning);border-color:var(--game-warning);color:var(--game-warning-foreground)}.word-guess-tile[data-state=absent],.word-key[data-state=absent]{background:var(--muted-foreground);border-color:var(--muted-foreground);color:var(--background)}.word-guess-board:focus-visible,.word-search-cell:focus-visible{outline:2px solid var(--ring);outline-offset:3px;z-index:1}.word-search-layout{gap:var(--space-md);grid-template-columns:minmax(0,1fr);display:grid}.word-search-board{aspect-ratio:1;touch-action:none;-webkit-user-select:none;user-select:none;border-radius:var(--radius);background:var(--background);direction:ltr;inline-size:min(100%,28rem);margin-inline:auto;display:grid}.word-search-cell{aspect-ratio:1;border-radius:var(--radius);background:var(--background);min-inline-size:0;color:var(--foreground);cursor:pointer;border:0;place-items:center;font-size:.875rem;font-weight:600;display:grid}.word-search-cell:hover{background:var(--accent)}.word-search-cell:active{opacity:.8}.word-search-cell[data-found=true]{background:var(--game-success);color:var(--game-success-foreground)}.word-search-cell[data-selected=true]{background:var(--primary);color:var(--primary-foreground)}.word-search-cell:disabled{cursor:default}.word-list-heading{font-size:var(--type-body);margin-block-end:var(--space-xs);font-weight:600}.word-search-selection{align-items:center;gap:var(--space-xs);flex-wrap:wrap;display:flex}.word-search-selection .game-status{flex:12rem}.word-search-selection>button{min-block-size:2.75rem}.word-search-list{gap:var(--space-xs) var(--space-md);font-size:var(--type-label);flex-wrap:wrap;padding:0;list-style:none;display:flex}.word-search-list li{align-items:center;gap:var(--space-2xs);display:flex}.word-search-list svg{block-size:1rem;inline-size:1rem}.word-search-list [data-found=true]{color:var(--game-success-text);text-decoration:line-through}.typing-passage{max-block-size:10rem;padding:var(--space-sm) 0;color:var(--foreground);font-size:var(--type-title);white-space:pre-wrap;overflow-wrap:break-word;scroll-margin:var(--space-md);scrollbar-color:var(--muted-foreground) var(--background);scrollbar-width:auto;line-height:1.75;overflow-y:auto}.typing-input-field{gap:var(--space-xs)}.typing-secondary-stats .game-stats{justify-content:flex-start}.typing-secondary-stats .game-stats dd{font-size:var(--type-body)}.typing-passage [data-state=correct]{color:var(--game-success-text)}.typing-passage [data-state=wrong]{background:var(--destructive);color:var(--destructive-foreground);text-decoration:underline}.typing-passage [data-state=current]{background:var(--primary);color:var(--primary-foreground)}.typing-input{caret-color:var(--primary);resize:vertical;scrollbar-color:var(--muted-foreground) var(--background);min-block-size:5.5rem;max-block-size:10rem}.typing-input::selection,.typing-passage::selection{background:var(--primary);color:var(--primary-foreground)}@media (min-width:40rem){.typing-game>.game-toolbar:has([data-slot=field]){display:flex}.game-player .typing-game .game-toolbar [data-slot=field]{align-items:center;gap:var(--space-xs);flex-direction:row;inline-size:auto}.typing-game .game-toolbar [data-slot=select-trigger]{inline-size:auto}.word-search-layout{grid-template-columns:minmax(0,1fr) minmax(8rem,.35fr);align-items:start}.word-search-list{flex-direction:column}.word-search-cell{font-size:1rem}}@media (prefers-reduced-motion:reduce){.word-guess-tile{transition:none}}.word-guess-tile{position:relative}.word-guess-tile svg{block-size:.65rem;inline-size:.65rem;position:absolute;inset-block-end:.2rem;inset-inline-end:.2rem}.word-feedback-legend{justify-content:center;gap:var(--space-xs) var(--space-md);color:var(--muted-foreground);font-size:var(--type-game-label);flex-wrap:wrap;display:flex}.word-feedback-legend span{align-items:center;gap:var(--space-2xs);display:flex}.word-feedback-legend svg{block-size:.875rem;inline-size:.875rem}
