:root { --wf-green: #3f7a2e; --wf-yellow: #d6ad2b; --wf-yellow-ink: #2b2410; --wf-gray: #63676e; --wf-key: #e9efe9; }
body.portal { line-height: 1.6; }
.wf-shell { max-width: 860px; margin: 0 auto; padding: 24px 16px 56px; }
.wf-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wf-intro h1 { margin-bottom: 12px; }
.wf-intro .lead { margin-bottom: 16px; font-size: 17px; }
.wf-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0; }

.wf-tool { margin: 22px 0 36px; padding: 16px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.wf-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.wf-chip { min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); color: var(--text); font-size: 14px; font-weight: 700; cursor: pointer; touch-action: manipulation; }
.wf-chip:hover { border-color: var(--accent); }
.wf-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.wf-chip-quiet { background: transparent; color: var(--muted); }

.wf-label { margin: 0 0 8px; color: var(--text); font-size: 13px; font-weight: 750; }
.wf-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 64px)); justify-content: center; gap: 8px; margin-bottom: 10px; }
.wf-slot { aspect-ratio: 1; border: 2px dashed #b9c8be; border-radius: 10px; background: var(--bg); color: var(--muted); font-size: 15px; font-weight: 700; cursor: pointer; touch-action: manipulation; }
.wf-slot[data-filled="true"] { border: 2px solid var(--wf-green); background: var(--wf-green); color: #fff; font-size: 28px; font-weight: 850; }
.wf-slot[aria-pressed="true"] { border-style: solid; border-color: var(--accent); box-shadow: 0 0 0 3px #b8e0d4; }
.wf-hint { min-height: 3em; margin: 0 0 10px; font-size: 14px; text-align: center; }

.wf-keyboard { display: grid; gap: 6px; }
.wf-key-row { display: flex; justify-content: center; gap: 5px; }
.wf-key { position: relative; flex: 0 1 42px; min-width: 0; height: 50px; padding: 0; border: 0; border-radius: 7px; background: var(--wf-key); color: var(--text); font-size: 17px; font-weight: 800; cursor: pointer; touch-action: manipulation; }
.wf-key-wide { flex-basis: 64px; font-size: 19px; }
.wf-key[data-state="gray"] { background: var(--wf-gray); color: #fff; text-decoration: line-through; }
.wf-key[data-state="yellow"] { background: var(--wf-yellow); color: var(--wf-yellow-ink); }
.wf-key[data-green="true"][data-state="none"] { background: var(--wf-green); color: #fff; }
/* Non-color cues: a green corner for green letters, a dot for yellow. */
.wf-key[data-green="true"]::before { content: ""; position: absolute; top: 4px; left: 4px; width: 8px; height: 8px; border-radius: 2px; background: var(--wf-green); box-shadow: 0 0 0 1.5px #fff; }
.wf-key[data-state="yellow"]::after { content: ""; position: absolute; right: 5px; bottom: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--wf-yellow-ink); }
.wf-keyboard[data-picking="true"] .wf-key:not(.wf-key-wide) { outline: 1px solid var(--accent); }

.wf-yellows { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.wf-yellow-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.wf-yellow-letter { min-width: 72px; font-weight: 800; }
.wf-notat { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font-weight: 750; cursor: pointer; }
.wf-notat[aria-pressed="true"] { background: var(--wf-yellow); border-color: var(--wf-yellow); color: var(--wf-yellow-ink); text-decoration: line-through; }
.wf-notat:disabled { opacity: .35; cursor: default; }
.wf-copies { min-height: 40px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); color: var(--text); font-size: 13px; font-weight: 700; cursor: pointer; }

.wf-results { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); scroll-margin-top: 12px; }
.wf-count { margin: 0 0 10px; font-size: 20px; letter-spacing: -.01em; }
.wf-best { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 12px; padding: 12px 14px; border-radius: 12px; background: #e2f0e9; color: var(--text); }
.wf-best span { font-size: 13px; font-weight: 750; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.wf-best strong { font-size: 28px; letter-spacing: .12em; }
.wf-words { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.wf-words li { padding: 6px 0; border-radius: 6px; background: var(--bg); text-align: center; font-weight: 700; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.wf-note { margin: 8px 0 0; font-size: 13px; }

.wf-article h2 { margin: 30px 0 12px; font-size: 24px; }
.wf-article li { margin-bottom: 8px; color: var(--muted); }
.wf-article li strong { color: var(--text); }
.wf-faq details { padding: 12px 0; border-bottom: 1px solid var(--line); }
.wf-faq summary { color: var(--text); font-weight: 750; cursor: pointer; }
.wf-faq details p { margin: 8px 0 0; }
.wf-cta { margin-top: 32px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.wf-cta h2 { margin-top: 0; }
.wf-footer { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

@media (max-width: 380px) {
  .wf-key-row { gap: 4px; }
  .wf-key { height: 46px; font-size: 15px; }
  .wf-key-wide { flex-basis: 48px; }
}
@media (min-width: 640px) {
  .wf-shell { padding: 36px 24px 64px; }
  .wf-tool { padding: 22px; }
  .wf-key { flex-basis: 48px; height: 56px; }
}
