/* Wordle: собственная область стилей, форма полностью доступна без скрипта. */
.wl { max-width: 780px; margin: 0 auto; overflow-wrap: anywhere }
.wl *, .wl *::before, .wl *::after { box-sizing: border-box }
.wl fieldset { min-inline-size: 0; margin: 24px 0; padding: 16px; border: 1px solid var(--frame-soft, #8c877b) }
.wl legend { padding: 0 8px; font-weight: 700 }
.wl-mode > label { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer }
.wl-mode input { flex: 0 0 20px; width: 20px; min-height: 20px; height: 20px; padding: 0; accent-color: #111 }
.wl-mode p, .wl-small { font-size: 14px; line-height: 1.55; color: var(--fg-2, #3d3a35); margin-top: 10px }
.wl-guide { margin: 12px 0 20px }
.wl-guide > summary { cursor: pointer; min-height: 44px; padding: 8px 0; font-size: 15px; font-weight: 700 }
.wl-guide p { font-size: 15px }
.wl-legend { list-style: none; padding: 0; margin: 12px 0 }
.wl-legend li { margin: 8px 0; font-size: 15px }
.wl-key { display: inline-block; min-width: 58px; padding: 2px 8px; text-align: center; border: 1px solid currentColor }
.wl [data-mark="g"] .wl-letter, .wl-key[data-mark="g"] { background: #276341; color: #fff }
.wl [data-mark="y"] .wl-letter, .wl-key[data-mark="y"] { background: #f2cf66; color: #111 }
.wl [data-mark="b"] .wl-letter, .wl-key[data-mark="b"] { background: #555; color: #fff }
.wl-attempt { border-top: 1px solid var(--frame-soft, #8c877b) }
.wl-attempt:last-child { border-bottom: 1px solid var(--frame-soft, #8c877b) }
.wl-attempt summary { cursor: pointer; padding: 14px 4px; min-height: 48px; font-weight: 700 }
.wl-summary { padding-left: 12px; font-weight: 400; font-size: 14px; overflow-wrap: anywhere }
.wl-attempt-body { padding: 0 4px 20px }
.wl-word-label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px }
.wl-word { display: block; width: 100%; max-width: 340px; min-width: 0; min-height: 48px; font-size: 20px; font-family: var(--f-cell, monospace); letter-spacing: .12em }
.wl-hint { min-height: 0; font-size: 14px; color: #9e0c24; margin: 6px 0 12px }
.wl-hint:empty { margin: 0 0 12px }
.wl-marks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px }
.wl-cell { min-width: 0 }
.wl-cell label { display: block; cursor: pointer }
.wl-position { display: block; font-size: 13px; margin-bottom: 4px }
.wl-letter { display: grid; place-items: center; height: 48px; width: 100%; border: 2px solid var(--frame, #111); background: #fff; color: #111; font: 700 25px/1 var(--f-cell, monospace) }
.wl-cell select { display: block; width: 100%; min-width: 0; min-height: 44px; margin-top: 6px; border: 1px solid var(--frame, #111); border-radius: 0; padding: 8px 4px; font: inherit; font-size: 16px; background: #fff; color: #111 }
.wl :focus-visible { outline: 3px solid #1f4fbf; outline-offset: 2px }
.wl-sr { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap }
.wl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 20px }
.wl-actions button { white-space: normal; line-height: 1.35; padding: 12px 16px; max-width: 100% }
.wl-actions a, .wl-pages a { display: inline-flex; align-items: center; min-height: 44px }
.wl-results { border-top: 3px double var(--frame, #111); margin-top: 28px; scroll-margin-top: 16px }
.wl-error, .wl-notice { padding: 14px; border: 2px solid var(--frame, #111); background: var(--note-bg, #fbf3d5) }
.wl-words { list-style: none; padding: 0; margin: 16px 0 }
.wl-words li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 18px; border-bottom: 1px solid var(--rule, #d3cec2); padding: 10px 0 }
.wl-words li > span { min-width: 0 }
.wl-words small { font-size: 13px; color: var(--fg-2, #3d3a35) }
.wl-spelling { font-family: var(--f-cell, monospace); letter-spacing: .1em }
.wl-pages { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 16px 0 }
.wl-about { border-top: 1px solid var(--rule, #d3cec2); margin-top: 32px }
@media (max-width: 600px) {
  .wl fieldset { padding: 12px }
  .wl-marks { grid-template-columns: minmax(0, 1fr); gap: 8px }
  .wl-cell { display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: end; gap: 12px }
  .wl-cell select { height: 48px; margin: 0; padding: 8px }
  .wl-position { margin-bottom: 2px }
  .wl-summary { padding-left: 6px }
}
@media (forced-colors: active) {
  .wl-letter, .wl-key, .wl-cell select { border-color: CanvasText }
}
