.puzzle-navigation{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:20px auto}.puzzle-navigation a{display:flex;align-items:center;justify-content:center;min-width:0;min-height:48px;box-sizing:border-box;text-align:center;line-height:1.3;padding:10px 8px;border:1px solid var(--line);border-radius:7px;text-decoration:none;font-weight:700}.puzzle-navigation [aria-current]{background:var(--green);color:white}
/* Tool-specific layout only; card, headings, results and dialogs are shared. */
.unscrambler-card{align-items:start}
.unscrambler-input{min-width:0;margin:0;background:#fafbf5;border:1px solid #d6dfd1;border-radius:8px;padding:10px 12px}
.unscrambler-input>label{font-size:12px;color:#264437}
.unscrambler-input input[type=text]{min-height:42px;padding:8px;margin-top:5px;text-transform:uppercase;border:1px solid #cfd8c9;border-radius:6px;background:#fffef9;color:#264437;font-weight:700}
.unscrambler-options{display:flex;align-items:center;gap:10px;margin:16px 0}
.unscrambler-options input{width:20px;height:20px;margin:0;flex-shrink:0}
.unscrambler-actions{display:grid;gap:8px;margin-top:12px}
.unscrambler-actions button{min-height:44px;border:1px solid #b9c7b4;border-radius:7px;font-size:12px;font-weight:700;padding:7px;color:#264437;background:#f2f5e9}
.unscrambler-actions #submit{justify-content:center;border-color:var(--green);background:var(--green);color:white;padding:8px}
.unscrambler-actions #submit:hover{background:#173f2e}
.unscramble-words{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,var(--word-width,7em)),1fr));gap:7px}
.unscramble-words button{overflow-wrap:anywhere;min-width:0}
#matches h3{margin:20px 0 10px}
#more{margin-top:10px;width:100%;min-height:44px;border:1px solid #b9c7b4;border-radius:7px;background:#fffef9;color:#264437;font-weight:700;font-size:12px;padding:9px}
@media(max-width:760px){.unscrambler-input>label{font-size:15px}.unscrambler-input input[type=text]{font-size:16px}.unscrambler-actions button{font-size:13px;min-height:46px;padding:6px 3px}.unscrambler-actions #submit{font-size:14px;min-height:44px}.unscrambler-intro{display:none}}
/* Match the Wordle helper's help controls. */
.unscrambler-input .helper-guides{margin-top:12px}

/* Semantic headings preserve the shared visual hierarchy. */
.hero .hero-tagline{font-size:clamp(42px,5vw,61px)}
.hero .hero-tagline em{color:var(--green)}
.unscrambler-card .wordle-helper-heading h1{margin:0;font-family:Georgia,'Times New Roman',serif;font-size:24px;font-weight:400;letter-spacing:-.8px;line-height:1.15}
@media(max-width:760px){.hero .hero-tagline{font-size:36px;line-height:1.05;margin:10px 0}}
.unscrambler-filters{display:grid;grid-template-columns:1fr 1fr;gap:10px}.unscrambler-filters label{min-width:0;font-size:12px}.unscrambler-filters select{width:100%;min-height:42px;margin-top:5px;padding:8px;border:1px solid #cfd8c9;border-radius:6px;background:var(--white);color:var(--ink);font:inherit}#clear-filters{min-height:44px;border:1px solid #b9c7b4;border-radius:7px;background:#f2f5e9;color:#264437;font-weight:700;font-size:12px;padding:7px}@media(max-width:760px){.unscrambler-filters{grid-template-columns:1fr}.unscrambler-filters label{font-size:15px}}

/* Keep the pangram label visually separate from the copyable word. */
.word .pangram-badge{display:block;width:fit-content;margin:6px auto 0;padding:3px 7px;border:1px solid #d9bd72;border-radius:999px;background:#fff4d4;color:#624b13;font:700 10px/1.3 Arial,sans-serif;letter-spacing:0;text-transform:none}

/* Shared primary action treatment for revealing Bee answers. */
.result-box #reveal{display:block;width:100%;min-height:44px;margin-top:12px;padding:8px;border:1px solid var(--green);border-radius:7px;background:var(--green);color:#fff;font:700 12px Arial,sans-serif;cursor:pointer}
.result-box #reveal:hover{background:#173f2e;border-color:#173f2e}
.result-box #reveal[hidden]{display:none}
@media(max-width:760px){.result-box #reveal{font-size:14px}}
/* Quiet shortcut, visible only after the helper heading leaves the screen. */
.back-to-helper{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:20;width:auto;min-height:44px;padding:10px 14px;border:1px solid #b9c7b4;border-radius:24px;background:#fffef9;color:var(--green);box-shadow:0 2px 8px #243d3220;font:700 12px Arial,sans-serif;cursor:pointer}
.back-to-helper:hover{background:#f2f5e9}.back-to-helper[hidden]{display:none}
.wordle-helper-heading{scroll-margin-top:20px}

.puzzle-navigation{scroll-margin-top:20px}

.tool-card{scroll-margin-top:20px}
