* { box-sizing: border-box; }
:root { color-scheme: light; font-family: Arial, sans-serif; color: #000; background: #fff; }
body { margin: 0; }
button, input, textarea { font: inherit; color: #000; background: #fff; }
button { cursor: pointer; border: 1px solid #000; padding: 8px 12px; }
button:hover { text-decoration: underline; }
a { color: #000; }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid #000; outline-offset: 3px; }
header, main, footer { max-width: 960px; margin: 0 auto; padding: 20px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { text-decoration: none; font-weight: bold; }
.mark, .edition, .mystery, .tiny, .daily .pill, .empty-icon, .empty-squares, .footer-brand { display: none; }
main { padding-top: 12px; }
.daily { font-size: 14px; text-align: center; }
h1 { font-size: 32px; margin: 16px 0; }
h2 { font-size: 20px; margin: 16px 0; }
h3 { font-size: 16px; }
p { line-height: 1.5; }
.intro { margin: 0 0 24px; }
.demo { font-size: 14px; margin: 16px 0 24px; }
.demo span { margin-left: 8px; }
label { display: block; margin-bottom: 8px; }
.search-wrap { display: flex; align-items: center; gap: 12px; }
.search-wrap > span:first-child { display: none; }
input { border: 1px solid #000; padding: 10px; width: 100%; min-width: 0; }
#remaining { white-space: nowrap; font-size: 14px; }
#suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.board-header { margin-top: 28px; }
.board-header h2 span { font-size: 14px; font-weight: normal; margin-left: 8px; }
.legend { font-size: 14px; line-height: 1.5; }
#empty { padding: 12px 0; }
#empty p { margin-top: 8px; }
#board { overflow-x: auto; margin-top: 16px; }
table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 14px; }
th, td { padding: 12px 8px; border: 1px solid #000; text-align: left; }
td small { display: block; font-size: 12px; margin-top: 6px; }
.exact { font-weight: bold; }
#result { border-top: 1px solid #000; margin-top: 24px; padding-top: 8px; }
#status { font-size: 14px; }
.bottom { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #000; margin-top: 28px; padding-top: 16px; font-size: 14px; }
.bottom strong { font-weight: normal; }
footer { font-size: 14px; }
textarea { display: block; width: 100%; min-height: 160px; margin-top: 16px; border: 1px solid #000; }
dialog { color: #000; background: #fff; border: 1px solid #000; padding: 24px; max-width: 500px; width: calc(100% - 32px); }
dialog::backdrop { background: #fff; }
#close-help { float: right; }
dialog h2 { clear: both; padding-top: 16px; }
[hidden] { display: none !important; }
@media (max-width: 600px) {
 header, main, footer { padding: 16px; }
 header { font-size: 14px; }
 h1 { font-size: 28px; }
 .demo span { display: block; margin: 6px 0 0; }
 .bottom { flex-direction: column; gap: 8px; }
}

.bottom { justify-content: center; text-align: center; }

h1, .intro, .board-header, #empty, #result, #status { text-align: center; }
th, td { text-align: center; }

header { justify-content: flex-end; }

.help-link { text-align: center; margin: 0 0 24px; }
