*{box-sizing:border-box}body{margin:0;background:#f5f6fa;color:#25283c;font-family:system-ui,-apple-system,"Malgun Gothic",sans-serif;font-size:16px}button,input{font:inherit}button{cursor:pointer;border:0}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #8b80df;outline-offset:3px}main{max-width:600px;margin:auto;padding:28px 24px 20px}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px}.brand{font-size:26px;font-weight:850;text-decoration:none;color:#292a3d;letter-spacing:-1.5px}.brand span{color:#7463bd}.brand small{display:block;font-size:12px;letter-spacing:2px;font-weight:500;color:#77798b;margin-top:4px}.icon{width:36px;height:36px;border:1px solid #dcdde6;border-radius:50%;background:transparent;color:#66677b;margin-left:8px;font-size:20px}nav{display:flex;border-radius:14px;background:#e9eaf1;padding:5px;max-width:330px;margin:auto}nav button{flex:1;border-radius:10px;padding:10px;background:none;color:#6c6e80;font-size:14px;font-weight:700}nav .selected{background:white;color:#6551ae;box-shadow:0 2px 6px #25283c0c}.intro{text-align:center;margin:30px 0 24px}.eyebrow{font-size:12px;letter-spacing:2px;color:#82779f;font-weight:700}h1{font-size:25px;letter-spacing:-1px;margin:12px 0}p{color:#797b8c;font-size:14px;line-height:1.7}.game-meta{max-width:354px;margin:0 auto 10px;display:flex;justify-content:space-between;font-size:12px;font-weight:700;color:#838596}#board{max-width:354px;margin:auto;display:grid;grid-template-columns:repeat(6,1fr);gap:7px}.tile{aspect-ratio:1;border:1.5px solid #dedfe9;border-radius:10px;background:#fff;display:grid;place-items:center;font-size:27px;font-weight:700}.tile.active{border-color:#afa2d5;background:#faf8ff}.tile.filled{border-color:#8973bd}.tile.correct,.key.correct,.correct{background:#749987!important;color:white;border-color:#749987}.tile.present,.key.present,.present{background:#c6a15d!important;color:white;border-color:#c6a15d}.tile.absent,.key.absent,.absent{background:#9296a6!important;color:white;border-color:#9296a6}#message{text-align:center;font-size:14px;min-height:42px;padding:15px 0 7px;color:#77649d}form{display:flex;gap:8px;margin:8px auto 0;max-width:410px}input{width:0;flex:1;border:1px solid #dedfe9;border-radius:10px;background:#fff;padding:12px;font-size:14px}form button,#actions button{background:#7761af;color:white;border-radius:10px;padding:12px 20px;font-weight:650}input:disabled,button:disabled{opacity:.5;cursor:default}#input-tip{font-size:12px;text-align:center;margin:7px 0 16px}#keyboard{display:flex;flex-direction:column;gap:6px}.keyrow{display:flex;gap:5px;justify-content:center}.key{min-width:0;flex:1;max-width:48px;height:43px;border-radius:7px;background:#e3e5ed;color:#42455b;font-size:17px;font-weight:650;box-shadow:0 2px 0 #d2d4df}.key.wide{max-width:76px;font-size:12px;flex:1.7}.legend{display:flex;justify-content:center;gap:14px;margin:25px 0;font-size:11px;color:#75788a}.legend span{display:flex;align-items:center;gap:5px}i{width:9px;height:9px;border-radius:3px;display:inline-block}footer{text-align:center;color:#9295a5;font-size:12px;line-height:1.9;border-top:1px solid #e4e5ed;padding-top:20px}footer span{font-size:11px}#actions{text-align:center;margin:12px 0 22px}#actions button{margin:4px}dialog{border:0;border-radius:20px;padding:30px;max-width:430px;width:calc(100% - 32px);color:#25283c;box-shadow:0 20px 100px #2223}dialog::backdrop{background:#25283c66;backdrop-filter:blur(4px)}dialog h2{font-size:24px}dialog p,dialog li{font-size:15px;line-height:1.9;color:#66697b}#close{float:right;background:transparent;font-size:28px;color:#777}.example{letter-spacing:10px;font-size:25px;color:#7761af}.statgrid{display:flex;justify-content:space-around;text-align:center}.statgrid strong{display:block;font-size:30px;color:#7761af}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(max-width:420px){main{padding:20px 15px}header{margin-bottom:22px}.intro{margin:23px 0 18px}h1{font-size:22px}.intro p{font-size:12px}.tile{font-size:24px}.legend{gap:8px;font-size:10px}.key{height:42px}#board{max-width:322px}}

.source-button{background:transparent;color:#6551ae;padding:8px;font-size:14px;text-decoration:underline;text-underline-offset:4px}dialog a{color:#6551ae}dialog h3{font-size:17px}.vowels{letter-spacing:3px;font-weight:700;color:#6551ae}dialog{max-height:85dvh;overflow:auto}

/* Compact game screen */
header{margin-bottom:24px}.brand{font-size:28px;letter-spacing:-1px}nav{max-width:240px;margin-bottom:22px}.game-meta{justify-content:flex-end;margin-bottom:8px}#message{min-height:30px;padding:7px 0 0}form{margin:4px auto 18px}#keyboard{margin-bottom:20px}#actions{margin-bottom:8px}.source-button{font-size:14px}dialog .source-button{padding:8px 0}main{padding-bottom:24px}@media(max-width:420px){header{margin-bottom:20px}nav{margin-bottom:18px}}

/* Direct board input */
#message{min-height:36px;padding-top:8px}#keyboard{margin-top:8px}.key.enter{background:#7761af;color:#fff;box-shadow:0 2px 0 #655199}.key.wide{font-size:12px;max-width:64px;flex:1.35}.key:active:not(:disabled){transform:translateY(1px);box-shadow:none}.key:disabled{cursor:default;opacity:.7}
