.arcadeGrid .tile strong{font-size:clamp(14px,4.36vw,21px);padding-inline:9px}
.arcadeGrid .tile strong svg{width:16px;flex:none}
.friends #side{width:46px}
.friends .intro,.match,.speller,.guesser,.outcome{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(8px,2.4dvh,20px);width:100%;text-align:center;min-height:0}
.friends .intro,.match,.speller,.guesser{flex:1}
.friends .intro>svg{width:clamp(160px,62%,280px);max-height:32dvh}
.intro button,.outcome button{font-size:19px;padding:12px 22px;min-width:210px}
#teams{display:flex;justify-content:space-evenly;align-items:center;width:100%;gap:8px}
.team{display:flex;align-items:center;justify-content:center;gap:5px;padding:4px 12px 4px 6px;border:2px solid #674776;border-radius:20px;background:#fffcf5}
.team.active{background:#ffda85;box-shadow:0 3px #452754}
.team b{font-size:23px}.team svg{height:36px;width:36px}
#squares{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(7px,2.7vw,14px);padding:12px 12px 16px;width:min(100%,54dvh,470px);background:#fabaca;border:3px solid #422856;box-shadow:0 5px #422856;border-radius:27px}
.square{aspect-ratio:1;padding:0;width:100%;border-radius:18px;position:relative}.square:disabled{opacity:1;cursor:default}
.square svg{position:absolute;inset:0;width:100%;height:100%}.square.winner{background:#ffe175}
.match .row{margin-top:10px}
#keyboard{display:grid;grid-template-columns:repeat(20,minmax(0,1fr));gap:clamp(6px,1.1dvh,11px) clamp(3px,1vw,7px);width:calc(100% + 6px);max-width:580px;flex:none;margin:0 -3px 5px}
#keyboard button{grid-column:span 2;padding:0;font-size:clamp(16px,4.9vw,25px);height:clamp(42px,6.5dvh,59px);min-height:0;min-width:0;border-radius:clamp(8px,2.7vw,14px)}
#keyboard #keyA{grid-column:2/span 2}
#keyboard #keyZ{grid-column:4/span 2}
#keyboard .backspace{grid-column:18/span 3;background:#ffd28a}
#keyboard .spacebar{grid-column:5/span 12;background:#e5d9ff;letter-spacing:.04em;font-size:clamp(16px,4.2vw,20px)}
#keyboard .spacebar:disabled{opacity:.6}
.guessKeys button:disabled{opacity:1;box-shadow:none}
.guessKeys .wrong{background:#e3dbe6;color:#85758b;text-decoration:line-through}
.guessKeys .right{background:#94e6cb}
.speller{gap:clamp(7px,1.6dvh,16px)}.speller>svg{width:min(46%,210px);max-height:19dvh;min-height:0;flex-shrink:1}
.speller>*:not(svg){flex-shrink:0}
#secret,#blanks{width:100%;font-weight:1000;min-height:clamp(50px,8dvh,78px);font-size:min(38px,calc((100vw - 54px) / var(--letters)),calc(570px / var(--letters)))}
#secret{background:#fffdf8;border:3px solid #4a3357;border-radius:17px;box-shadow:inset 0 4px #f0dfea;color:#642ab0;line-height:1.24;padding:8px 6px;align-content:center;word-spacing:.22em}
.entryWord{display:inline-block;position:relative;cursor:pointer;white-space:nowrap;min-height:1.2em;vertical-align:middle}
.entryWord.editing:after{content:"";position:absolute;left:100%;top:7%;height:86%;border-left:3px solid #9759d4}
.entryWord.misspelled{color:#a42250;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}
#feedback{font-size:clamp(14px,4vw,19px);line-height:1.15}.retryWord{color:#aa2250}
#drawing{display:flex;justify-content:center;width:100%;min-height:0;max-height:31dvh;flex:1}
#drawing svg{height:100%;max-width:100%;background:#b9e8ff;border:2px solid #4a3357;border-radius:25px}
#blanks{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:.6em 1em;padding:4px 0}
.wordGroup{display:inline-flex;gap:.14em;white-space:nowrap}
.slot{display:flex;justify-content:center;align-items:center;border-bottom:clamp(2px,.12em,4px) solid #472c59;width:.88em;height:1.24em;line-height:1}
.slot.hit{color:#6824b6;border-color:#25af91}
#tries{color:#5e397b;font-size:19px}
.guesser>*:not(#drawing){flex-shrink:0}
.outcome{flex:1}#answer{font-size:min(36px,calc((100vw - 46px) / var(--letters)),calc(560px / var(--letters)));color:#702697;line-height:1.2;width:100%}
@media(max-height:600px){.speller>svg{max-height:13dvh}.friends #feedback{font-size:13px}.friends .intro{gap:12px}#keyboard button{height:40px}.speller h2{font-size:21px}.team{padding:0 6px}.team svg{height:28px;width:28px}}
@media(max-width:355px){.arcadeGrid .tile strong{padding-inline:6px}.arcadeGrid .tile strong svg{width:13px}.home footer button{font-size:12px;padding:5px 9px}.home footer span{font-size:11px}.team{font-size:13px}}


@media(max-height:650px){.friends .speller,.friends .guesser{gap:7px}.speller>svg{max-height:11dvh}.speller h2{font-size:20px}.speller .row button{padding:7px 10px;font-size:15px}.speller #secret{padding:6px 4px}.friends .outcome{gap:10px}}
@media(max-height:500px){.speller>svg{display:none}#app.play.friends:has(#keyboard){height:auto;min-height:100dvh}.friends #drawing{height:90px;flex:none}}
