@font-face{font-family:Literata;src:url(../word-conservatory/literata-latin.woff2) format('woff2');font-display:swap}*{box-sizing:border-box}html{background:#071c2b;color:#f8f3ed}body{margin:0;font-family:Literata,Georgia,serif}a{color:inherit;text-underline-offset:3px}button{font:inherit;cursor:pointer;touch-action:manipulation;border:1px solid #b7b0ce;background:#f4f0f7;color:#14233b;min-height:44px;border-radius:11px;padding:8px 12px;-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible{outline:3px solid #e9c578;outline-offset:3px}button[hidden]{display:none}.app{max-width:560px;margin:auto;padding:12px 16px 24px;min-height:100dvh;background:#0b2534}.topbar{display:flex;align-items:center;justify-content:space-between;gap:5px;font:11px system-ui,sans-serif}.topbar span{font-size:9px;letter-spacing:.12em}.topbar button{border:0;background:none;color:#fff4ee;padding:3px;min-width:44px;text-decoration:underline}.topbar a{font-size:11px}h1{text-align:center;font-weight:500;font-size:clamp(32px,8.6vw,45px);line-height:1.05;letter-spacing:-.045em;margin:7px 0}.tagline{text-align:center;font-size:12px;font-style:italic;margin:0 0 12px;color:#e0d9ee}.hero{width:calc(100% + 32px);max-width:none;height:133px;object-fit:cover;display:block;margin:0 -16px 12px}.modebar{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-bottom:12px}.tabs{display:flex;border:1px solid #b5adcc;border-radius:12px;overflow:hidden}.tabs button{border:0;background:#173245;color:#f1edf6;border-radius:0;min-height:42px;padding:8px 16px;font-size:13px}.tabs button[aria-pressed=true]{background:#d5c6e9;color:#142139;font-weight:700}#edition{font:11px system-ui,sans-serif;color:#ded8e9;text-align:right}.garden-title{display:flex;align-items:center;justify-content:space-between;gap:7px}.garden-title h2{margin:0;font-size:18px;font-weight:500}.garden-title strong{font:12px system-ui,sans-serif;color:#e0d5f1;white-space:nowrap}.instructions{font-size:13px;text-align:center;margin:8px 0 11px;font-style:italic;line-height:1.5}.instructions span{font:10px system-ui,sans-serif;letter-spacing:.02em;color:#d2cedc}.grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:2px;border:4px solid #bfbac9;border-radius:14px;padding:3px;background:#d7d4de;box-shadow:0 6px 18px #0004}.grid button{border:0;aspect-ratio:1;min-height:0;min-width:0;display:grid;place-items:center;font-weight:600;font-size:clamp(17px,5.2vw,25px);padding:0;border-radius:5px;background:#faf7f2;color:#15213b;position:relative;line-height:1}.grid button.found{background:#d0b8e8;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}.grid button.selected{outline:3px dashed #1b2f49;outline-offset:-4px;background:#f0dca6}.grid button:focus-visible{outline:3px solid #8b4529;outline-offset:-4px;z-index:1}.words{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:13px}.word{border:1px solid #c3b6da;border-radius:11px;background:#20394b;color:#f7f2fa;padding:9px 2px;min-height:35px;text-align:center;font:600 10px system-ui,sans-serif;overflow-wrap:anywhere}.word.found{background:#d0b8e8;color:#172039;text-decoration:line-through}.word small{display:block;font-size:8px;line-height:1.2;text-decoration:none;margin-top:3px}.actions{display:flex;gap:7px;justify-content:center;flex-wrap:wrap}.actions button{font-size:12px;flex:1;padding:8px 7px}.actions .primary{background:#d3b9e9;border-color:#ddd2ec;font-weight:700}.actions #new-practice{flex-basis:100%;margin-top:1px}#message{font:12px/1.5 system-ui,sans-serif;min-height:36px;margin:10px 0;text-align:center;color:#ede5f3}#message.complete{color:#efdba7;font-weight:700}#save-notice{font:11px/1.5 system-ui,sans-serif;color:#f3d8a8;margin:10px 0 0}#new-daily{width:100%;margin-bottom:10px;font-size:12px;background:#eadba8}dialog{max-width:min(480px,calc(100vw - 32px));max-height:85dvh;border:1px solid #bfb2d2;border-radius:18px;padding:24px;background:#f7f2ec;color:#15283b;font:14px/1.6 system-ui,sans-serif}dialog::backdrop{background:#061420bb}dialog h2{font:500 27px Literata,Georgia,serif;margin:0 0 16px}dialog button{width:100%;background:#d3b9e9}@media(max-width:360px){.app{padding-inline:12px}.hero{width:calc(100% + 24px);margin-inline:-12px;height:115px}.topbar span{font-size:8px}.grid{gap:2px;padding:2px;border-width:3px}.instructions{font-size:12px}.words{gap:5px}.word{font-size:9px}.garden-title h2{font-size:16px}}@media(max-height:760px){.hero{height:100px}h1{font-size:31px}.tagline{margin-bottom:8px}.instructions{margin-block:6px}.words{margin-top:9px;gap:5px}.word{padding-block:6px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* Short phone layouts prioritize the full letter grid and tap controls. */
.topbar button{min-height:34px}h1{font-size:32px}.tagline{margin-bottom:8px}.hero{height:78px}.modebar{margin-bottom:6px}.garden-title h2{font-size:17px}.instructions{font-size:12px;line-height:1.3;margin:4px 0 7px}.instructions span{font-size:9px}.grid{max-width:344px;margin-inline:auto}.words{max-width:360px;margin:9px auto 0;gap:5px}.word{padding:5px 2px;min-height:28px}#message{font-size:11px;min-height:28px;margin:6px 0}.actions button{min-height:42px}
@media(max-height:760px){.app{padding-top:8px;padding-bottom:10px}.topbar button{min-height:30px}h1{font-size:28px;margin:5px 0}.tagline{display:none}.hero{height:44px;margin-top:7px;margin-bottom:7px}.tabs button{min-height:38px;padding:6px 14px}.modebar{margin-bottom:6px}.garden-title h2{font-size:15px}.garden-title strong{font-size:10px}.instructions{font-size:11px;line-height:1.25;margin:4px 0 6px}.instructions span{font-size:8px}.grid{max-width:300px;border-width:3px;padding:2px;gap:2px}.grid button{font-size:18px}.words{max-width:320px;margin-top:7px;gap:4px}.word{padding:5px 1px;min-height:25px;font-size:9px}.word small{font-size:7px;margin-top:1px}#message{min-height:24px;font-size:10px;margin:4px 0}.actions button{min-height:38px;font-size:11px}#save-notice{margin-top:5px}}
@media(max-height:600px){.hero{display:none}h1{font-size:26px;margin:4px 0 7px}.topbar button{min-height:28px}.tabs button{min-height:34px;padding:5px 12px}.garden-title h2{font-size:14px}.grid{max-width:256px}.grid button{font-size:16px}.words{max-width:288px;margin-top:6px}.word{min-height:24px;padding:4px 1px}.instructions{margin:3px 0 5px}.actions button{min-height:36px;font-size:10px}#message{min-height:22px;margin:3px 0}#save-notice:empty{margin:0}}
.actions button{min-width:0}.actions #new-practice{flex-basis:0;margin-top:0}
@media(max-height:760px){.hero{height:36px}.instructions{margin-bottom:4px}}@media(min-height:601px) and (max-height:760px){.grid{max-width:280px}}.app{background:#0b2534 url(midnight-frame.webp) center/100% 100% no-repeat}.app header{background:#0b2534eb}