@import url("./modes-v1.css");
:root{--violet:#211643;--panel:#2b1e52;--border:#7861a0;--gold:#ffd878;--mint:#c7ffbb;--dim:#e0d1f2;color-scheme:dark}
body{background:radial-gradient(ellipse at 50% 4%,#50407d 0,transparent 620px),#1c1434;color:#fff9e9;padding-bottom:env(safe-area-inset-bottom)}
.lg-top{padding:.6rem clamp(1rem,5vw,3rem);border-color:#604f84;display:flex;align-items:center;justify-content:space-between;margin:auto;max-width:720px;font-weight:650;letter-spacing:0}
.lg-brand{display:flex;align-items:center;gap:.6rem;text-decoration:none;font-weight:850;font-size:1.12rem}.lg-logo{background:var(--gold);color:#211643;font-size:1.14rem;font-weight:900;border-radius:.44rem;display:grid;place-items:center;width:2rem;height:2rem;box-shadow:0 3px 0 #9d7834}.lg-site-back{font-size:.86rem;color:var(--dim);padding:.5rem}
main{max-width:550px;padding:1rem clamp(.75rem,4vw,1.5rem) 2.5rem}.lg-intro{margin:.15rem 0 .85rem}.lg-intro p{color:var(--dim);margin:.32rem 0}.lg-eyebrow{color:var(--mint);font-size:.76rem;font-weight:800;letter-spacing:.17em}h1{font-size:clamp(2.65rem,10vw,4rem);margin:.25rem 0;line-height:.97;text-shadow:0 4px 0 #312445}
.lg-modes a{background:#2c2050;flex:1 1 4rem;min-height:40px;border-color:#826cac;max-width:7.8rem;padding:.2rem .3rem}.lg-modes a[aria-current=page]{box-shadow:inset 0 -3px #be8c3c}
.lg-level{display:flex;justify-content:center;margin:.72rem 0 .55rem;color:var(--dim);font-size:.94rem}.lg-level select{min-height:40px;font:inherit;font-weight:700;background:#37275b;color:#fff9e9;border:1px solid #8e79b2;border-radius:.5rem;padding:.38rem .7rem;margin-inline-start:.45rem}
.lg-play{border:1px solid #7862a0;box-shadow:0 6px 0 #15102b;background:linear-gradient(165deg,#372862,#251a45 72%);border-radius:1.15rem;padding:.65rem clamp(.35rem,2vw,.95rem) .8rem}.lg-play .grid{width:min(92%, calc(var(--lg-cols) * 46px));grid-auto-rows:min(10vw,46px);margin:.2rem auto .66rem;gap:4px}.lg-play .tile{aspect-ratio:auto;line-height:.9;border-color:#8b73ac;background:#291f4a;text-shadow:none}.lg-play .tile.exact{background:#c7ffbb;color:#163b22;border-color:#c7ffbb}.lg-play .tile.near{background:#ffd878;color:#4b2900;border-color:#ffd878}.lg-play .tile.miss{background:#6a567d;color:#fff}
#message{min-height:1.85em;font-size:.91rem;color:#f0e7fc;margin:.55rem .25rem .12rem}#guess{background:#fef7e5;color:#22173c}#check{box-shadow:0 3px 0 #a37732}#restart{color:#fff9e9;background:transparent;border:1px solid #a590c3;border-radius:.55rem;margin-top:.15rem}#lg-keyboard{margin:.25rem auto .55rem;gap:5px}.lg-key-row button{min-height:39px;background:#594477;color:#fff9e9;box-shadow:0 2px 0 #261940}.lg-key-row button.exact{background:#c7ffbb;color:#163b22}.lg-key-row button.near{background:#ffd878;color:#4b2900}
details{background:#2b2148;border:1px solid #6c588e}details a{color:#ffd878}.lg-play button:focus-visible,.lg-level select:focus-visible{outline:3px solid var(--mint);outline-offset:2px}
@media(max-width:340px){.lg-play .grid{width:min(94%,calc(var(--lg-cols)*42px));grid-auto-rows:min(10vw,42px);gap:3px}.lg-modes{gap:.22rem}.lg-modes a{min-width:0;font-size:.9rem;flex:1}.lg-top{padding-inline:.8rem}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important}}

.lg-rules-key{list-style:none;padding:0;margin:.55rem 0 1rem}.lg-rules-key li{display:grid;grid-template-columns:2.25rem minmax(0,1fr);gap:.65rem;align-items:start;margin:.65rem 0}.lg-rule-swatch{min-height:2rem;min-width:2rem;padding:.2rem .35rem;border-radius:.45rem;display:inline-grid;place-items:center;font-weight:900}.lg-rule-swatch.miss{background:#675375;color:#fff9e9}.lg-double{border:1px solid #846daa;border-radius:.65rem;background:#382a53;padding:.6rem .75rem}.lg-double h2{margin:.1rem 0 .35rem}.lg-double p{margin:.45rem 0}.lg-example{display:flex;gap:.28rem;flex-wrap:wrap;margin:.45rem 0}.lg-example .lg-rule-swatch{min-width:2.5rem}
