@font-face{font-family:Literata;src:url('./literata-latin.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap}
:root{color-scheme:light;--forest:#123726;--ink:#163b29;--paper:#f4e9cf;--gold:#b88c38;--correct:#315d29;--present:#966e16;--absent:#464641;--tile:clamp(38px,min(6.55svh,12.7vw),56px)}
*{box-sizing:border-box}body{margin:0;background:#123726 url('./library-cloth.webp') repeat;color:var(--paper);font-family:Literata,Georgia,serif;min-height:100svh}button,a,textarea{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;touch-action:manipulation}button:disabled{cursor:default}button:focus-visible,a:focus-visible,textarea:focus-visible{outline:3px solid #e1ba60;outline-offset:3px}button[hidden],[hidden]{display:none!important}
.game{width:min(100%,490px);min-height:100svh;margin:auto;padding:10px 12px max(12px,env(safe-area-inset-bottom));border-left:1px solid #9c7a37;border-right:1px solid #9c7a37;display:flex;flex-direction:column;gap:8px}.masthead{text-align:center}.topline{display:flex;align-items:center;justify-content:space-between;gap:8px}.brand{font-size:9px;letter-spacing:.16em;text-decoration:none;color:#f1dfb0;white-space:nowrap}.small-button{border:1px solid #b89854;border-radius:6px;background:#efe3c8 url('./ivory-paper.webp') center/400px;color:var(--ink);padding:7px 12px;min-height:36px;font-size:13px;font-weight:600}.title-frame{display:flex;align-items:center;justify-content:center;gap:5px;min-height:55px;margin-top:1px}.title-frame h1{font-size:clamp(29px,8.3vw,41px);font-weight:600;letter-spacing:-.055em;line-height:1.2;margin:0;white-space:nowrap;color:#f1e5c9}.botanical{object-fit:contain;pointer-events:none}.title-sprig{width:27px;height:42px}.mirrored{transform:scaleX(-1)}.subtitle{margin:0 0 2px;font-size:11px;font-style:italic;color:#e3d2a9}.modes{display:grid;grid-template-columns:1fr 1fr;gap:4px;background:#092619;border:1px solid #93743b;padding:3px;border-radius:7px}.modes button{border:0;background:transparent;color:#e7d9bb;min-height:35px;border-radius:4px;font-size:13px}.modes button[aria-pressed=true]{background:#ecdfc1 url('./ivory-paper.webp') center/400px;color:var(--ink);box-shadow:0 1px 4px #071a12;font-weight:650}
.page{background:#f2e7ce url('./ivory-paper.webp') center/500px;color:var(--ink);border:2px solid #b28d45;outline:1px solid #d7bd80;outline-offset:2px;border-radius:13px 5px 13px 5px;box-shadow:0 4px 11px #061e1880;padding:10px 12px 7px}.edition{display:flex;justify-content:space-between;gap:8px;font-size:9px;color:#4f543d;padding-bottom:9px;white-space:nowrap}.board{display:grid;grid-template-rows:repeat(6,var(--tile));gap:5px;width:max-content;margin:auto}.guess-row{display:grid;grid-template-columns:repeat(5,var(--tile));gap:5px}.tile{border:1px solid #b6a582;border-radius:4px;display:flex;align-items:center;justify-content:center;position:relative;font-size:calc(var(--tile)*.58);line-height:1;font-weight:600;color:var(--ink);background:#fcf5e514}.active-row .tile{border:2px solid #315a3d}.tile.filled{background:#fff9eb80}.tile.correct,.key.correct,.legend-word.correct{background:var(--correct);color:#fff9e9;border-color:#244b23}.tile.present,.key.present,.legend-word.present{background:var(--present);color:#fff9e9;border-color:#805d14}.tile.absent,.key.absent,.legend-word.absent{background:var(--absent);color:#fff9e9;border-color:#33352e}.tile.correct,.key.correct,.legend-word.correct{text-decoration:underline;text-underline-offset:.17em;text-decoration-thickness:2px}.tile.present,.key.present,.legend-word.present{text-decoration:underline dotted;text-underline-offset:.17em;text-decoration-thickness:2px}.paper-footer{display:flex;align-items:center;justify-content:space-between;gap:4px;min-height:36px;margin-top:4px}.paper-footer p{font-size:11px;font-style:italic;text-align:center;margin:0}.corner-sprig{width:35px;height:32px}
.notice-area{min-height:24px;text-align:center;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px}.notice-area p{margin:0;font-family:Georgia,serif;font-size:12px;line-height:1.35;color:#f4e8cc}.storage-note{padding:5px 8px;border:1px solid #af995b;border-radius:4px}.keyboard{display:grid;gap:6px;margin-top:auto;user-select:none;-webkit-user-select:none}.key-row{display:flex;justify-content:center;gap:4px}.key{min-width:0;flex:1;height:51px;max-width:44px;border:1px solid #c9b588;background:#f1e6cd url('./ivory-paper.webp') center/400px;color:var(--ink);border-radius:6px;box-shadow:0 2px 2px #051b13aa;font-size:22px;font-weight:550;padding:0;line-height:1.2}.key-row:nth-child(2){padding-inline:4.8%}.wide-key{flex:1.6;max-width:66px;font-size:12px;letter-spacing:-.02em}.key:active{transform:translateY(1px);box-shadow:none}.key:disabled{opacity:1}.actions{display:flex;justify-content:center;gap:6px;flex-wrap:wrap}.actions:empty{display:none}.practice-note{font-size:10px;line-height:1.35;text-align:center;margin:0;color:#e2d5b9}
dialog{width:min(calc(100% - 28px),450px);max-height:calc(100svh - 34px);border:2px solid #ab8846;border-radius:10px;background:#f3e8cf url('./ivory-paper.webp') center/500px;color:var(--ink);padding:20px;box-shadow:0 10px 50px #0008;line-height:1.55;overflow:auto}dialog::backdrop{background:#061c14bf}dialog form{display:flex;justify-content:flex-end;margin:-8px -8px 0 0}.close-button{font-family:Georgia,serif;border:1px solid #9c8249;border-radius:4px;background:#f9f0da;color:var(--ink);min-height:38px;padding:6px 12px}dialog h2{font-size:25px;line-height:1.2;margin:8px 0 14px}dialog h3{font-size:22px;line-height:1.3;margin:20px 0 4px}dialog p{font-size:14px}dialog a{color:#205231;font-size:14px;text-underline-offset:3px}.legend p{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:12px}.legend-word{display:inline-flex;align-items:center;justify-content:center;width:36px;height:38px;border-radius:4px;font-size:22px}.fine-print{font-size:12px!important;color:#53604a}.eyebrow{text-transform:uppercase;letter-spacing:.1em;font-size:10px!important}.answer{font-size:34px!important;letter-spacing:.18em;font-weight:700;margin:15px 0 3px}.answer+p{margin-top:0}blockquote{border-left:2px solid #a58b4c;margin:18px 0;padding:0 0 0 14px;font-size:18px;font-style:italic}#copy-text{width:100%;font:15px/1.5 monospace;border:1px solid #9b8656;border-radius:5px;background:#fff9e9;color:var(--ink);padding:10px;resize:vertical}
@media(min-width:600px){.game{margin:18px auto;min-height:calc(100svh - 36px);border:1px solid #9c7a37;border-radius:6px;padding:14px 20px}.brand{font-size:11px}.title-frame h1{font-size:42px}.subtitle{font-size:12px}.edition{font-size:10px}.key{height:54px}.paper-footer p{font-size:12px}}
@media(max-height:740px){:root{--tile:clamp(36px,min(6svh,11.5vw),46px)}.game{gap:6px;padding-top:6px}.title-frame{min-height:43px}.title-frame h1{font-size:29px}.subtitle{font-size:10px}.modes button{min-height:31px}.page{padding-top:7px}.edition{padding-bottom:6px}.paper-footer{min-height:28px}.corner-sprig{height:24px}.key{height:45px;font-size:20px}.wide-key{font-size:12px}.notice-area{min-height:21px}.small-button{min-height:32px;padding-top:5px;padding-bottom:5px}}
/* The paired gilt sprigs are a single real image, framing a paper bookplate. */
body{background-size:500px 500px}.title-frame{position:relative;min-height:74px;margin:5px 0 4px;border:1px solid #bd9c54;border-radius:7px;background:#f2e7ce url('./ivory-paper.webp') center/500px;overflow:hidden}.title-frame h1{position:relative;z-index:1;color:var(--ink);font-size:clamp(28px,8.1vw,39px);letter-spacing:-.06em}.title-ornament{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:.88}.paper-footer{position:relative;overflow:hidden}.paper-footer p{position:relative;z-index:1;margin:auto}.footer-ornament{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:.7}
@media(max-height:740px){.title-frame{min-height:57px}.title-frame h1{font-size:28px}.paper-footer{min-height:29px}}
.title-frame{flex-direction:column;gap:0;padding:4px 6px 7px;min-height:80px}.title-frame h1{position:static;line-height:1.16}.ornament-strip{width:260px;height:32px;position:relative;overflow:hidden;flex:none}.title-ornament{position:absolute;inset:auto;left:0;top:-26px;width:260px;height:auto;max-width:none;object-fit:contain;opacity:1}.paper-footer{border-top:1px solid #c9b687;padding-top:4px}
@media(max-height:740px){.title-frame{min-height:68px;padding-block:2px 5px}.ornament-strip{height:26px}.title-ornament{width:225px;left:17px;top:-23px}.title-frame h1{font-size:27px}}
/* Keep the paper in normal flow so its six rows set its height. The shared
   navigation adds a promo below an auto-height game; size containment would
   collapse this panel and let the board overlap the keyboard. */
.game{height:auto;min-height:0;gap:6px}.masthead,.modes,.notice-area,.keyboard,.actions,.practice-note{flex:none}.page{flex:none;min-height:auto;display:flex;flex-direction:column;justify-content:space-between}.edition,.paper-footer,.board{flex:none}.board{--tile:min(56px,12.7vw)}.notice-area{min-height:28px;gap:3px}.notice-area #message{height:28px;line-height:14px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-width:100%}.keyboard{margin-top:0}.actions:has(>button:not([hidden])){min-height:36px}.actions:not(:has(>button:not([hidden]))){display:none}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(min-width:600px){.game{height:auto;min-height:0}}
@media(max-height:720px){.game{gap:4px;padding:6px 9px max(6px,env(safe-area-inset-bottom))}.topline{min-height:26px}.brand{font-size:8px;letter-spacing:.12em}.topline .small-button{min-height:26px;font-size:11px;padding:2px 9px}.title-frame{min-height:0;padding:2px 5px 4px;margin:3px 0}.title-frame h1{font-size:26px;line-height:1.08}.ornament-strip{height:17px}.title-ornament{width:180px;left:40px;top:-20px}.subtitle{display:none}.modes{padding:2px}.modes button{min-height:29px;font-size:12px}.page{padding:4px 8px 3px;border-radius:8px 4px}.edition{font-size:8px;line-height:12px;padding-bottom:3px}.board{--tile:min(46px,12.7vw);gap:4px}.guess-row{gap:4px}.paper-footer{min-height:20px;margin-top:3px;padding-top:3px}.paper-footer p{font-size:10px;line-height:13px}.notice-area{min-height:28px}.keyboard{gap:4px}.key{height:42px;font-size:19px}.wide-key{font-size:11px}.practice-note{font-size:9px;line-height:12px}.actions{gap:4px}.actions .small-button{font-size:11px;min-height:30px;padding:4px 8px}.actions:has(>button:not([hidden])){min-height:30px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
