.wh-page { max-width: 1000px; }
.wh-intro { text-align: center; margin-top: 16px; }
.wh-intro .game-title { justify-content: center; font-size: clamp(1.8rem, 5vw, 2.5rem); margin: 8px 0; }
.wh-intro p { color: var(--ink-soft); font-weight: 600; }
.wh-eyebrow { text-transform: uppercase; font-size: .72rem; font-weight: 800; letter-spacing: .15em; color: #256a60; }
.wh-label { font-size: .8rem; font-weight: 700; color: var(--ink-soft); }
.wh-puzzle-id { display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; color: var(--ink-soft); font-size: .8rem; }
#wh-puzzle-id { color: var(--ink); font-family: monospace; font-weight: 700; overflow-wrap: anywhere; }
.wh-puzzle-id a { color: #256a60; font-weight: 700; text-underline-offset: 3px; }
#game-stage { gap: 20px; }
.wh-settings { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; flex-wrap: wrap; }
.wh-settings [role=group] { display: flex; gap: 8px; flex-wrap: wrap; }
.wh-settings [aria-pressed=true] { background: #c8eee4; box-shadow: inset 0 0 0 2px #256a60; }
.wh-stats { width: 100%; display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 14px 4px; }
.wh-stats > div { text-align: center; border-right: 1px solid var(--line); }
.wh-stats > div:last-child { border: 0; }
.wh-stats span { display: block; color: var(--ink-soft); font-size: .75rem; font-weight: 700; }
.wh-stats strong { display: block; font-size: clamp(1rem, 3vw, 1.6rem); margin-top: 3px; font-variant-numeric: tabular-nums; }
.wh-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(220px, 1fr); gap: 24px; width: 100%; align-items: start; }
.wh-play { min-width: 0; }
.wh-sidebar { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.wh-board-wrap { position: relative; }
.wh-board { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; padding: 14px; border-radius: 22px; background: #285d56; border: 3px solid var(--ink); touch-action: none; user-select: none; }
.wh-tile { position: relative; aspect-ratio: 1; border: 2px solid #d6d7be; border-bottom-width: 5px; border-radius: 12px; background: #fff9e9; color: #22314a; font-family: var(--font-display); font-size: clamp(1.35rem, 4vw, 2rem); font-weight: 800; cursor: pointer; padding: 0; touch-action: none; }
.wh-tile.is-selected { background: #ffe28b; border-color: #a67d24; transform: translateY(2px); }
.wh-tile.is-selected::after { content: attr(data-order); position: absolute; top: 2px; right: 5px; font: 700 .65rem var(--font-body); }
.wh-tile:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px #2862aa; z-index: 1; }
.wh-tile:disabled { cursor: default; }
.wh-cover { position: absolute; inset: 0; border: 3px solid var(--ink); border-radius: 22px; background: #e8f3ed; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px; text-align: center; z-index: 2; }
.wh-cover[hidden] { display: none; }
.wh-cover strong { font-size: 1.5rem; }
.wh-cover p { color: var(--ink-soft); }
.wh-current { text-align: center; margin: 16px 0 12px; }
.wh-current .wh-label { display: block; }
#wh-word { display: block; min-height: 38px; font-size: 1.5rem; font-weight: 800; letter-spacing: .08em; overflow-wrap: anywhere; }
.wh-selection-controls { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.wh-selection-controls button { min-height: 44px; }
.wh-status { font-size: .88rem; line-height: 1.5; min-height: 2.7em; text-align: center; color: var(--ink); margin: 14px 0; }
.wh-type { padding-top: 14px; border-top: 1px solid var(--line); }
.wh-type label { display: block; font-size: .8rem; font-weight: 700; margin-bottom: 6px; }
.wh-type > div { display: flex; gap: 8px; }
.wh-type input { min-width: 0; width: 100%; border: 2px solid #637489; border-radius: 10px; padding: 10px; font: inherit; text-transform: uppercase; background: var(--surface); color: var(--ink); }
.wh-round-controls { display: flex; justify-content: center; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.wh-notebook { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.wh-notebook-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wh-notebook h2 { font-size: 1.15rem; margin: 0; }
.wh-notebook h3 { font-size: 1rem; margin: 20px 0 8px; }
#wh-progress { white-space: nowrap; font-size: .75rem; color: #256a60; font-weight: 800; }
#wh-empty { color: var(--ink-soft); font-size: .9rem; line-height: 1.6; padding: 24px 0; }
.wh-word-list { list-style: none; display: flex; flex-wrap: wrap; align-content: start; gap: 7px; padding: 0; margin: 16px 0 0; }
.wh-word-list li { background: #e5f3e9; color: #234f40; padding: 5px 9px; border-radius: 8px; font-size: .82rem; font-weight: 700; }
.wh-word-list small { margin-left: 5px; opacity: .75; }
#wh-missed { max-height: 280px; overflow-y: auto; padding: 4px; }
#wh-missed li { padding: 0; background: transparent; }
.wh-word-list button { border: 1px solid #bfcac5; border-radius: 8px; padding: 8px; color: var(--ink); background: #f6f5ee; font: inherit; cursor: pointer; }
.wh-word-list button[aria-pressed=true] { background: #ffe28b; border-color: #a67d24; }
#wh-result-note { font-size: .88rem; line-height: 1.6; }
.wh-page button:disabled { opacity: .55; cursor: default; }
.wh-page .wh-tile:disabled { opacity: 1; }
@media(max-width: 650px) { .wh-layout { grid-template-columns: 1fr; gap: 20px; } .wh-play { width: 100%; max-width: 430px; margin: auto; } #game-stage { padding: 18px 12px 24px; } .game-toolbar > .wh-label { max-width: 140px; } .wh-notebook { padding: 16px; } }
@media(prefers-reduced-motion: reduce) { .wh-tile { transform: none; } }
