:root{--bg:#e5e9ee;--card:#f5f6f8;--ink:#263243;--muted:#647080;--blue:#4b6587;--pale:#dfe6ef;--line:#cbd3df;--shadow:0 5px 22px #233c6410;color-scheme:light}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;-webkit-font-smoothing:antialiased}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;min-height:48px;border:0;border-radius:10px;padding:12px 20px;background:var(--blue);color:#f5f6f8;font-weight:700;transition:background .15s,box-shadow .15s,transform .15s;touch-action:manipulation}button:hover:not(:disabled){filter:brightness(.96);box-shadow:0 3px 10px #0866ff16}button:active:not(:disabled){transform:translateY(1px)}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #4b6587;outline-offset:4px}.quiet{background:transparent;color:var(--muted);font-size:13px}.secondary{background:var(--pale);border:1px solid #cbd7e7;color:#3d5575}
header{background:#f5f6f8;max-width:none;margin:0;padding:19px max(24px,calc((100vw - 1180px)/2));display:flex;align-items:center;gap:25px;border-bottom:1px solid var(--line);box-shadow:0 2px 10px #1d355708}.logo{display:flex;align-items:center;gap:11px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:25px;letter-spacing:-1.1px;font-weight:700;color:var(--blue);text-decoration:none;white-space:nowrap}.logo-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;color:#f5f6f8;background:var(--blue);font-size:22px;letter-spacing:-2px;box-shadow:0 3px 9px #0866ff30}.tag{font-size:10px;letter-spacing:1.5px;color:#7b879a;padding-left:22px;border-left:1px solid var(--line)}header>.quiet{margin-left:auto;background:#e5e9ee;border-radius:30px;padding:8px 16px;min-height:40px;color:#536176}main{max-width:1180px;margin:auto;padding:64px 32px}.eyebrow{color:#3d5575;letter-spacing:1.5px;text-transform:none;font-size:11px;font-weight:700}h1,h2,h3{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}h1{font-size:clamp(46px,6.4vw,76px);line-height:1.07;letter-spacing:-3.5px;margin:22px 0}h1 em{font-style:normal;color:var(--blue)}p{color:var(--muted);line-height:1.7}.hero{display:grid;grid-template-columns:1.1fr 1fr;gap:70px;align-items:center;padding:28px 0}.hero>.demo{position:relative}.hero .eyebrow{display:inline-block;background:#dbe3ee;border:1px solid #cbd6e4;border-radius:30px;padding:9px 13px}.intro{max-width:420px;font-size:17px;line-height:1.75}.modes{display:flex;gap:10px;margin-top:28px;flex-wrap:wrap}.modes>button:first-child{box-shadow:0 6px 16px #0866ff28}.subtle{font-size:12px;margin-top:18px}.demo{background:var(--card);border:1px solid #ccd4df;border-radius:24px;padding:30px;transform:rotate(2deg);box-shadow:0 18px 55px #2d5d9d15,0 3px 8px #2d5d9d07}.demohead,.row,.boardhead{display:flex;justify-content:space-between;align-items:center}.demohead{font-size:10px;letter-spacing:1.5px;color:var(--muted);margin-bottom:26px}.demohead span:last-child{border-radius:20px;background:var(--pale);padding:7px 10px;color:var(--blue);font-weight:700}.letters{display:flex;gap:7px}.tile{display:grid;place-items:center;width:49px;height:58px;border:1px solid #d6e0ed;background:#edf0f4;border-radius:9px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:25px;font-weight:600;color:#38465e;box-shadow:0 3px 0 #e4e9f1}.demo .row{margin:18px 0;gap:12px}.demo .row:nth-of-type(2) .tile:nth-child(2),.demo .row:nth-of-type(4) .tile:nth-child(3){background:#dbe4f0;color:#4b6587;border-color:#b9c9dd}.score{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:var(--pale);color:var(--blue);font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-weight:600;font-size:22px}.demofoot{border-top:1px solid var(--line);padding-top:18px;margin-top:26px;font-size:12px;color:var(--muted);line-height:1.6}.features{margin-top:60px;display:grid;grid-template-columns:repeat(3,1fr);gap:16px;color:#58677d;font-size:13px}.features>span{display:flex;align-items:center;padding:21px 20px;background:#f5f6f8;border:1px solid #e1e7ef;border-radius:14px;box-shadow:var(--shadow)}.features b{display:grid;place-items:center;background:var(--pale);border-radius:10px;min-width:35px;height:35px;color:var(--blue);margin-right:13px;font-size:12px}
.setup{max-width:500px;margin:0 auto;text-align:center;background:var(--card);border:1px solid var(--line);border-radius:22px;padding:35px 30px;box-shadow:var(--shadow)}.setup h1{font-size:48px;letter-spacing:-2px}.secret,input.guess{width:100%;background:#edf0f4;border:1px solid #ced8e5;border-radius:10px;color:var(--ink);text-align:center;padding:16px;font-size:26px;letter-spacing:10px;text-transform:uppercase;outline:none}input::placeholder{color:#7d899b}input:focus{border-color:var(--blue);box-shadow:0 0 0 3px #0866ff12}input[type=checkbox]{accent-color:var(--blue)}.setup form{margin-top:28px}.setup form>button{width:100%;margin-top:16px}.error{color:#b94040;min-height:24px;font-size:13px}.screen-icon{font-size:40px;margin-bottom:20px;color:var(--blue)}.gamebar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:24px}.gamebar h2{font-size:32px;letter-spacing:-1px;margin:8px 0}.boards{display:grid;grid-template-columns:1fr 1fr;gap:22px}.board{background:var(--card);border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:var(--shadow)}.board.active{border-color:#8da6c5;box-shadow:0 0 0 2px #0866ff0d,0 8px 25px #0866ff0c}.boardhead{padding:20px 24px;border-bottom:1px solid var(--line);background:#eef1f5}.board.active .boardhead{background:#e4eaf2}.boardhead h3{margin:0;font-size:20px}.pill{font-size:10px;color:#56677e;background:#e9edf3;padding:7px 11px;border-radius:30px;letter-spacing:1px;font-weight:700}.board.active .pill{background:var(--blue);color:#f5f6f8}.boardbody{padding:24px}.alphabet{display:flex;flex-wrap:wrap;gap:6px;min-height:68px}.alpha{font-size:12px;display:grid;place-items:center;color:#48576b;background:#edf1f6;border-radius:6px}.alpha.out{visibility:hidden}button.alpha{padding:0;min-height:40px;width:32px;height:40px;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}button.alpha.confirmed{background:var(--blue);color:#f5f6f8;box-shadow:inset 0 -3px 0 #3d5575}button.alpha:disabled{opacity:1}button.alpha:not(:disabled):active{transform:scale(.94)}.alpha.scratched{position:relative;background:#eee5e6;color:#a08e8e}.alpha.scratched:after{content:'';position:absolute;width:30px;height:2px;transform:rotate(-48deg);background:#c24e59}.label{font-size:10px;font-weight:600;color:#68758a;letter-spacing:1.3px;margin:0 0 12px}.history{min-height:165px;max-height:360px;overflow:auto;margin:22px 0}.history .row{padding:10px 0;border-bottom:1px solid #e8edf4}.history .word{font-size:23px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;letter-spacing:0;display:flex;gap:3px}.history .score{width:34px;height:34px;font-size:18px}.letter{display:inline-grid;place-items:center;position:relative;padding:0;width:36px;min-height:44px;border-radius:6px;background:#e9edf2;color:#3c4d64;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:24px;font-weight:500}.letter.scratched{color:#a69696;background:#eee6e7}.letter.scratched:after{content:'';position:absolute;width:31px;height:2px;transform:rotate(-48deg);background:#c24e59}.letter:disabled{opacity:1}.letter.confirmed{background:#d7e2ef;color:#3d5575;box-shadow:inset 0 -2px 0 #a3b7d0}.empty{border:1px dashed #d4ddea;border-radius:10px;padding:30px 12px;text-align:center;font-size:13px;color:var(--muted);background:#edf0f4}.guessform{display:flex;gap:10px}.guessform input.guess{min-width:0;font-size:19px;letter-spacing:5px;padding:12px}.guessform button{padding:12px 17px}.waiting{font-size:13px;color:var(--muted);min-height:49px;display:flex;align-items:center}.notice{padding:22px 24px;background:#dce6f0;border:1px solid #adbfd4;border-radius:14px;margin-bottom:24px}.notice h2{margin:0 0 8px;color:#3d5575}.notice p{margin:0}.privacy{padding:28px;border-radius:16px;background:#e7ecf3;border:1px solid #dce7f7;margin-top:25px}.privacy button{width:100%;margin-top:24px}dialog{background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:20px;max-width:540px;padding:30px;max-height:90dvh;box-shadow:0 20px 100px #20375230}dialog::backdrop{background:#13284970;backdrop-filter:blur(3px)}dialog h2{font-size:32px}dialog li{margin-bottom:15px;line-height:1.5;color:var(--muted)}dialog p{font-size:13px}.close{float:right}.footnote{text-align:center;font-size:12px;margin:24px auto 0;max-width:650px}.roomstrip{background:#f5f6f8;border:1px solid var(--line);border-radius:12px;padding:9px 16px;display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:12px;color:var(--muted);margin-bottom:24px;box-shadow:var(--shadow)}.roomstrip b{color:var(--blue);letter-spacing:2px}.roomstrip #connection{font-size:11px;color:#397856}#joinRoom button{width:100%;margin-top:12px}#onlineSecret button{width:100%;margin-top:18px}
.word-workspace{margin-top:22px;padding:18px 14px;background:#e0e6ee;border:1px solid #c9d4e3;border-radius:12px}.word-slots{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.word-slot{height:56px;min-width:0;padding:0;border:1px dashed #bccce2;color:#94a3b9;background:#f5f6f8;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:27px}.word-slot.filled{background:#4b6587;color:#f5f6f8;border:1px solid #3d5575;box-shadow:0 3px 0 #364c69}.word-slot.selected{outline:2px solid #3d5575;outline-offset:3px}.workspace-tools{display:flex;align-items:center;gap:4px;flex-wrap:wrap;margin-top:12px}.workspace-tools button{padding:8px 10px;min-height:44px;font-size:12px}.workspace-tools .secondary{background:#f5f6f8;border-color:#c9dbf5}.workspace-hint{font-size:11px;line-height:1.6;margin-bottom:0}.word-workspace .label{font-size:9px;letter-spacing:1px}
@media(max-width:700px){header{padding:16px 18px;gap:10px}.logo{font-size:21px;gap:9px;letter-spacing:-.9px}.logo-icon{width:32px;height:32px;font-size:19px}.tag{display:none}header>.quiet{font-size:12px;padding:8px 12px}main{padding:30px 16px}.hero{grid-template-columns:1fr;gap:36px;padding:8px 3px}.hero h1{font-size:56px;letter-spacing:-2.7px}.intro{font-size:16px}.demo{transform:rotate(0deg);max-width:460px;padding:24px;width:100%;justify-self:center}.features{margin-top:32px;grid-template-columns:1fr;gap:10px}.features>span{padding:13px 16px}.boards{grid-template-columns:1fr}.gamebar h2{font-size:25px}.boardbody{padding:18px}.boardhead{padding:18px}.history{min-height:100px;max-height:245px}.setup{padding:28px 20px}.setup h1{font-size:40px}.privacy{padding:22px}.modes button{flex:1;white-space:nowrap}.modes button:last-child{flex-basis:100%;background:#f5f6f8;color:#56677e;border:1px solid var(--line)}.tile{width:43px;height:51px}.demo .score{width:38px;height:38px}.roomstrip{padding:10px 12px}}
@media(prefers-reduced-motion:reduce){button{transition:none}}

header{padding-top:calc(16px + env(safe-area-inset-top))}body{padding-bottom:env(safe-area-inset-bottom)}.header-actions{display:flex;align-items:center;gap:8px;margin-left:auto}.header-actions .quiet{background:#dce2eb;color:#445874;min-height:40px;padding:9px 13px;border-radius:20px}.header-actions #install{background:#4b6587;color:#f5f6f8}.rules-icon{display:none}.network-banner{background:#d7e1ed;border-bottom:1px solid #c5d1e1;padding:9px 18px;text-align:center;font-size:12px;color:#3d5575}.network-banner[hidden]{display:none}.install-icon{display:block;width:72px;height:72px;border-radius:17px;margin:10px 0 20px}.install-dialog{width:min(480px,calc(100vw - 32px))}.install-dialog h2{clear:both;font-size:28px;margin:0 0 14px}.install-dialog ol{padding-left:22px}.install-dialog li{margin-bottom:12px;font-size:15px}.install-dialog a{color:#3d5575}.install-dialog .install-note{padding:12px 14px;background:#e6ebf2;border-radius:10px}.install-dialog .install-note p{margin:0;font-size:12px}.header-actions #install[hidden]{display:none}@media(max-width:700px){header{gap:6px}.header-actions{gap:6px}.header-actions .quiet{padding:8px 11px;font-size:12px}.header-actions #rules{width:36px;min-height:36px;padding:8px}.rules-label{display:none}.rules-icon{display:inline}.logo{font-size:19px;gap:7px;letter-spacing:-.8px}.logo-icon{width:31px;height:31px}.hero h1{font-size:52px}.header-actions #install{min-height:36px}}@media(display-mode:standalone){#install{display:none}.tag{display:none}main{padding-top:28px}}
/* Clear state colors without brightening the whole page. */
:root{--bg:#d5dde6;--card:#f5f7fa;--ink:#17283d;--muted:#46576d;--blue:#344f73;--line:#aab8ca}
.board{border-color:#aab8ca}.boardhead{background:#dbe3ed}.board.active{border-color:#344f73;box-shadow:0 0 0 2px #344f7322}.board.active .boardhead{background:#c8d6e8}.label{color:#43556d}.letter{background:#e1e7ef;color:#1b2e48;font-weight:700;border:1px solid #c4cedc}.letter.confirmed,button.alpha.confirmed{background:#17613f;color:#fff;border:1px solid #0c4028;box-shadow:inset 0 -3px 0 #0c4028;font-weight:800}.letter.confirmed:before,button.alpha.confirmed:before{content:'';position:absolute;top:2px;right:2px;width:4px;height:4px;background:#c4f1d1;border-radius:50%}button.alpha{position:relative;color:#243b57;border:1px solid #b9c6d6;background:#e0e7f0}.letter.scratched,.alpha.scratched{background:#f0dede;color:#6f3940;border-color:#c79b9f}.letter.scratched:after,.alpha.scratched:after{background:#8f1f31;height:2px;width:90%}.word-slot.filled{background:#17613f;border-color:#0c4028;box-shadow:0 3px 0 #0c4028;color:#fff}.word-slot.selected{outline-color:#17283d}.score{background:#d8e3f1;color:#213b5e;font-weight:800}.guess-list{display:grid;grid-template-columns:repeat(var(--history-cols,1),minmax(0,1fr));gap:3px 10px;align-content:start}.history .row{min-width:0;padding:3px 0;gap:6px;min-height:var(--guess-height,44px);height:var(--guess-height,44px)}.history .word{min-width:0;flex:1;gap:2px}.history .letter{width:min(36px,calc((100% - 8px)/5));min-height:0;height:calc(var(--guess-height,44px) - 4px);font-size:var(--guess-font,22px);border-radius:4px}.history .score{flex-shrink:0;width:var(--score-size,30px);height:var(--score-size,30px);font-size:var(--score-font,16px)}.history .letter.scratched:after{width:90%}.history .empty{grid-column:1/-1}.history{min-height:0}.history>.label{position:sticky;top:0;background:var(--card);z-index:1;padding-bottom:5px}.letter:focus-visible,.alpha:focus-visible{outline:2px solid #17283d;outline-offset:2px}
@media(max-width:700px){
 body.playing{height:var(--screen-height,100dvh);min-height:0;overflow:hidden;display:flex;flex-direction:column;padding-bottom:env(safe-area-inset-bottom)}
 body.playing header{padding:calc(7px + env(safe-area-inset-top)) 10px 7px;flex-shrink:0;gap:6px}
 body.playing .logo{font-size:17px}.playing .logo-icon{width:27px;height:27px;font-size:17px}.playing .header-actions .quiet{min-height:30px;padding:6px 10px}.playing .header-actions #rules{width:30px;min-height:30px}.playing #install{display:none}
 body.playing main{width:100%;flex:1;min-height:0;max-width:none;margin:0;padding:7px 7px 5px;display:flex;flex-direction:column;gap:7px}
 .playing .network-banner{font-size:10px;line-height:1.25;padding:5px 10px;flex-shrink:0}
 .playing .gamebar{margin:0;gap:6px;min-height:36px;flex-shrink:0}.playing .gamebar .eyebrow{font-size:8px;letter-spacing:.7px}.playing .gamebar h2{font-size:18px;margin:3px 0;letter-spacing:-.5px}.playing .gamebar>button{min-height:30px;padding:6px 10px;font-size:11px}
 .playing .roomstrip{margin:0;min-height:29px;padding:3px 7px;gap:3px;font-size:9px;flex-shrink:0;border-radius:7px;box-shadow:none}.playing .roomstrip b{letter-spacing:1px}.playing #copyRoom{min-height:25px;padding:4px 6px;font-size:10px;margin-left:auto}.playing #connection{font-size:8px;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
 .playing .boards{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px;flex:1;min-height:0}
 .playing .board{min-width:0;min-height:0;display:flex;flex-direction:column;border-radius:10px}
 .playing .boardhead{padding:7px 6px;min-height:34px;gap:3px;flex-shrink:0}.playing .boardhead h3{font-size:13px;white-space:nowrap}.playing .pill{font-size:7px;padding:4px 5px;letter-spacing:.2px}
 .playing .boardbody{padding:7px 6px;display:flex;flex-direction:column;min-height:0;flex:1;gap:6px}
 .playing .boardbody>.label{font-size:8px;letter-spacing:.4px;margin:0;line-height:1.2}
 .playing .alphabet{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;min-height:0;flex-shrink:0}
 .playing button.alpha{width:100%;height:25px;min-height:25px;font-size:11px;border-radius:4px}
 .playing .word-workspace{margin:1px 0 0;padding:7px 5px;border-radius:7px;flex-shrink:0}.playing .word-workspace .label{font-size:7px;letter-spacing:.25px;margin-bottom:6px;line-height:1.3}
 .playing .word-slots{gap:3px}.playing .word-slot{height:31px;min-height:31px;font-size:17px;border-radius:5px}.playing .word-slot.selected{outline-offset:1px}
 .playing .workspace-tools{margin-top:6px;gap:2px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.playing .workspace-tools button{min-height:26px;padding:3px 2px;font-size:8px;line-height:1.1;white-space:normal;border-radius:4px}.playing .workspace-hint{display:none}
 .playing .history{flex:1;min-height:45px;max-height:none;overflow:hidden;margin:1px 0 0;display:flex;flex-direction:column}
 .playing .history>.label{flex-shrink:0;font-size:8px;letter-spacing:.3px;margin:0 0 3px;padding-bottom:3px;position:static;line-height:1.3}.playing .guess-list{flex:1;min-height:0;overflow:auto;gap:2px 5px;overscroll-behavior:contain;scrollbar-width:thin}
 .playing .history .row{border-color:#bec9d8}.playing .history .letter{border-radius:3px;box-shadow:none}.playing .history .word{gap:1px}.playing .history .score{border-radius:5px}
 .playing .empty{padding:12px 4px;font-size:10px;line-height:1.4}
 .playing .guessform{gap:3px;flex-shrink:0}.playing .guessform input.guess{font-size:16px;min-height:33px;height:33px;letter-spacing:1px;padding:5px 2px;border-radius:5px}.playing .guessform button{font-size:10px;min-height:33px;padding:5px 6px;border-radius:5px}
 .playing .waiting{min-height:33px;font-size:10px;line-height:1.3;flex-shrink:0}.playing .error{font-size:9px;line-height:1.3;min-height:0;margin:0;flex-shrink:0}.playing .error:empty{display:none}
 .playing .footnote{display:none}.playing .notice{padding:8px 10px;margin:0;flex-shrink:0}.playing .notice h2{font-size:17px;margin:0 0 3px}.playing .notice p{font-size:10px;line-height:1.4}
 .playing.keyboard-open .boardbody>.label,.playing.keyboard-open .alphabet,.playing.keyboard-open .word-workspace{display:none}
 .playing.keyboard-open .gamebar{min-height:26px}.playing.keyboard-open .gamebar .eyebrow{display:none}.playing.keyboard-open .history{min-height:35px}
}
@media(max-width:700px) and (max-height:650px){.playing button.alpha{height:20px;min-height:20px;font-size:10px}.playing .boardbody{gap:4px}.playing .word-workspace{padding:5px}.playing .word-slot{height:26px;min-height:26px;font-size:15px}.playing .workspace-tools button{min-height:22px;font-size:7px}.playing .boardhead{min-height:28px;padding:5px}.playing .word-workspace .label{font-size:6px}}
@media(max-width:700px){body:not(.playing) main:has(>.hero){padding:18px 16px}.hero{gap:18px;padding:0}.hero h1{font-size:42px;line-height:1.04;letter-spacing:-2px;margin:13px 0}.hero .eyebrow{font-size:9px;padding:7px 10px}.hero .intro{font-size:14px;line-height:1.5;margin:12px 0;max-width:none}.hero .modes{margin-top:16px;gap:7px}.hero .modes button{min-height:40px;padding:9px 11px;font-size:12px}.hero .subtle{font-size:10px;margin:11px 0 0}.hero .demo{padding:16px;max-width:340px;border-radius:14px}.demohead{font-size:8px;margin-bottom:10px}.demohead span:last-child{padding:4px 7px}.demo .row{margin:10px 0}.demo .tile{width:38px;height:36px;font-size:20px;border-radius:5px}.demo .score{width:29px;height:29px;font-size:17px}.demofoot{font-size:10px;margin-top:12px;padding-top:10px}.features{display:none}}
@media(max-width:700px) and (max-height:700px){.hero .demo{display:none}.hero{padding:20px 4px}.hero h1{font-size:46px;margin:20px 0}.hero .intro{font-size:15px}.hero .modes{margin-top:24px}}
.alphabet-toolbar{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:8px}.alphabet-toolbar .label{margin:0;font-size:9px}.alphabet-modes{display:flex;gap:2px;background:#d5deea;border-radius:7px;padding:2px}.alphabet-modes button{min-height:28px;font-size:11px;padding:5px 10px;border-radius:5px;background:transparent;color:#344f73}.alphabet-modes button.chosen{background:#344f73;color:#fff}.composer{flex-shrink:0;border-top:1px solid #b6c5d7;padding-top:10px}.composer>.label{font-size:9px;margin-bottom:7px}.draft-slots{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.draft-slot{background:#e2e9f2;color:#788aa3;border:1px solid #9aadc6;border-radius:6px;height:42px;min-height:42px;padding:0;font-size:23px;font-weight:700}.draft-slot.entered{background:#fff;color:#17283d}.draft-slot.cursor{border:2px solid #344f73;box-shadow:0 0 0 2px #344f731a}.composer-tools{display:flex;align-items:center;gap:5px;margin-top:7px}.composer-tools button{min-height:35px;padding:6px 12px;font-size:12px}.composer-tools button:last-child{margin-left:auto}.composer-tools button:first-child{font-size:20px;padding:2px 12px}
@media(max-width:700px){.playing .alphabet-toolbar{margin:0;min-height:24px;flex-shrink:0;gap:2px}.playing .alphabet-toolbar>.label{font-size:7px;letter-spacing:.1px}.playing .alphabet-modes{padding:1px;border-radius:4px;gap:1px}.playing .alphabet-modes button{min-height:23px;padding:3px 5px;font-size:8px;border-radius:3px}.playing .composer{padding-top:5px}.playing .composer>.label{font-size:7px;letter-spacing:.1px;margin:0 0 4px}.playing .draft-slots{gap:3px}.playing .draft-slot{height:28px;min-height:28px;font-size:17px;border-radius:4px}.playing .composer-tools{margin-top:4px;gap:2px}.playing .composer-tools button{min-height:27px;padding:4px 6px;font-size:9px;border-radius:4px}.playing .composer-tools button:first-child{font-size:17px;padding:1px 6px}}
/* One player's information, with the room to use it. */
.boards{grid-template-columns:minmax(0,1fr);width:100%;max-width:720px;margin-inline:auto}.gamebar,.notice,.roomstrip{width:100%;max-width:720px;margin-inline:auto}.boardhead h3{font-size:20px}.alphabet{display:grid;grid-template-columns:repeat(13,minmax(0,1fr));gap:6px}button.alpha{width:100%;min-height:40px;height:40px;font-size:14px}.history{min-height:140px}.composer-tools button:last-child{min-width:110px}
@media(max-width:700px){.playing .boards{grid-template-columns:minmax(0,1fr)}.playing .boardhead{padding:7px 10px}.playing .boardhead h3{font-size:16px}.playing .pill{font-size:8px;padding:4px 8px}.playing .boardbody{padding:8px 10px;gap:7px}.playing .alphabet-toolbar{min-height:27px}.playing .alphabet-toolbar>.label{font-size:9px;letter-spacing:.4px}.playing .alphabet-modes button{min-height:27px;font-size:11px;padding:4px 12px}.playing .alphabet{grid-template-columns:repeat(9,minmax(0,1fr));gap:4px}.playing button.alpha{height:31px;min-height:31px;font-size:13px}.playing .word-workspace{padding:8px}.playing .word-workspace .label{font-size:8px;letter-spacing:.5px;margin-bottom:6px}.playing .word-slot{height:32px;min-height:32px;font-size:21px}.playing .workspace-tools{display:flex;gap:5px;margin-top:6px}.playing .workspace-tools button{min-height:27px;font-size:10px;padding:4px 9px}.playing .workspace-tools button:first-child{margin-right:auto}.playing .history>.label{font-size:9px;letter-spacing:.6px}.playing .history{min-height:40px}.playing .composer>.label{font-size:8px;letter-spacing:.5px}.playing .draft-slot{height:33px;min-height:33px;font-size:21px}.playing .composer-tools{gap:5px}.playing .composer-tools button{min-height:31px;font-size:11px;padding:5px 12px}.playing .composer-tools button:first-child{font-size:21px;padding:1px 12px}.playing .waiting{min-height:24px;font-size:12px}.playing .error{font-size:11px}.playing .gamebar,.playing .roomstrip,.playing .notice{margin-inline:auto}}
@media(max-width:700px) and (max-height:650px){.playing .alphabet{gap:3px}.playing button.alpha{height:25px;min-height:25px;font-size:12px}.playing .boardbody{gap:5px;padding:6px 8px}.playing .word-workspace{padding:6px}.playing .word-slot{height:27px;min-height:27px;font-size:18px}.playing .workspace-tools button{min-height:24px;font-size:9px}.playing .alphabet-modes button{min-height:24px}.playing .draft-slot{height:28px;min-height:28px;font-size:19px}.playing .composer-tools button{min-height:27px}}
.alphabet-dock{margin-top:14px;padding-top:12px;border-top:1px solid #aab8ca;background:var(--card)}.alphabet-dock .alphabet-toolbar{margin-bottom:8px}.modes>button:nth-child(-n+2){background:var(--blue);color:#fff;border:1px solid var(--blue);box-shadow:0 5px 14px #344f7322}.modes>button:nth-child(-n+2):hover{background:#29415f}.modes>button:nth-child(-n+2):focus-visible{outline-color:#17283d}
@media(max-width:700px){.playing .alphabet-dock{flex-shrink:0;margin-top:0;padding-top:6px;border-top:1px solid #9dacc1;background:var(--card)}.playing .alphabet-dock .alphabet-toolbar{margin-bottom:6px}.playing .alphabet-dock .alphabet{margin:0}.playing .boardbody{padding-bottom:6px}.playing .word-workspace{margin-top:0}.playing .history{margin-top:2px}.playing .composer{padding-top:5px}.playing .alphabet-dock .alpha{touch-action:manipulation}}
button.is-touched,a.is-touched{outline:2px solid #172f52;outline-offset:2px;filter:brightness(.88);transform:scale(.95)}.touch-ripple{position:fixed;width:32px;height:32px;margin:-16px 0 0 -16px;border:2px solid #486b9c;background:#4871a72b;border-radius:50%;pointer-events:none;z-index:10000;animation:touch-ring .36s ease-out forwards}.key-preview{position:fixed;display:grid;place-items:center;width:48px;height:49px;margin-left:-24px;background:#213b5e;color:#fff;border:1px solid #142b49;border-radius:12px;font-size:30px;font-weight:800;box-shadow:0 5px 14px #13284938;pointer-events:none;z-index:10001;animation:key-appear .1s ease-out}.key-preview:after{content:'';position:absolute;bottom:-5px;width:10px;height:10px;background:#213b5e;transform:rotate(45deg);border-radius:2px}.key-preview.leaving{opacity:0;transition:opacity .1s}.draft-slot.just-entered{animation:slot-enter .24s ease-out}@keyframes touch-ring{from{opacity:.85;transform:scale(.65)}to{opacity:0;transform:scale(1.8)}}@keyframes key-appear{from{opacity:.5;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes slot-enter{0%{transform:scale(.92);background:#c2d7f2;box-shadow:0 0 0 3px #456d9c55}60%{transform:scale(1.04)}100%{transform:scale(1);background:#fff;box-shadow:none}}@media(prefers-reduced-motion:reduce){.touch-ripple{animation:none;opacity:.4}.key-preview{animation:none}.draft-slot.just-entered{animation:none;outline:2px solid #344f73}button.is-touched,a.is-touched{transform:none}}
/* Larger type, with ruled-out letters still available for strategic guesses. */
body{font-size:17px}.subtle{font-size:14px}.quiet{font-size:15px}.label{font-size:12px}.eyebrow{font-size:12px}.demohead{font-size:11px}.demofoot{font-size:14px}.footnote{font-size:14px}.pill{font-size:12px}.error{font-size:14px}.waiting{font-size:15px}.alphabet-toolbar .label{font-size:12px}.alphabet-modes button{font-size:14px;min-height:32px}.composer>.label{font-size:12px}.workspace-hint{font-size:13px}.word-workspace .label{font-size:11px}.workspace-tools button{font-size:13px}.composer-tools button{font-size:14px}.alpha.out{visibility:visible}.alphabet button.alpha{font-size:19px}.alpha.scratched{color:#772b38;background:#ecd5d8}.alpha.scratched:after{background:#9d2137;height:2px}dialog p{font-size:15px}.roomstrip{font-size:14px}
@media(max-width:700px){.playing .logo{font-size:19px}.playing .gamebar h2{font-size:22px}.playing .gamebar .eyebrow{font-size:10px}.playing .gamebar>button{font-size:13px;min-height:33px}.playing .boardhead h3{font-size:18px}.playing .pill{font-size:10px}.playing .alphabet-toolbar>.label{font-size:11px}.playing .alphabet-modes button{font-size:13px;min-height:30px}.playing .alphabet button.alpha{font-size:19px;height:36px;min-height:36px;font-weight:750}.playing .word-workspace .label,.playing .composer>.label{font-size:11px;letter-spacing:.1px}.playing .word-slot{font-size:24px;height:36px;min-height:36px}.playing .workspace-tools button{font-size:12px;min-height:30px}.playing .history>.label{font-size:11px;letter-spacing:.2px}.playing .draft-slot{font-size:24px;height:36px;min-height:36px}.playing .composer-tools button{font-size:13px;min-height:33px}.playing .composer-tools button:first-child{font-size:23px}.playing .waiting{font-size:14px}.playing .error{font-size:12px}.playing .roomstrip{font-size:11px}.playing #copyRoom{font-size:12px}.playing #connection{font-size:10px}.hero .intro{font-size:16px}.hero .modes button{font-size:14px}.hero .subtle{font-size:12px}.hero .eyebrow{font-size:11px}.playing .notice p{font-size:12px}.playing .notice h2{font-size:20px}.playing .empty{font-size:13px}.header-actions .quiet{font-size:14px}.install-dialog .install-note p{font-size:14px}}
@media(max-width:700px) and (max-height:650px){.playing .gamebar h2{font-size:20px}.playing .alphabet button.alpha{font-size:17px;height:29px;min-height:29px}.playing .word-slot,.playing .draft-slot{font-size:22px;height:29px;min-height:29px}.playing .workspace-tools button{font-size:11px;min-height:26px}.playing .composer-tools button{font-size:12px;min-height:28px}.playing .word-workspace .label,.playing .composer>.label{font-size:10px}.playing .alphabet-modes button{font-size:12px;min-height:26px}}
/* Familiar QWERTY rows and an unmistakable keyboard mode. */
.alphabet.ios-keyboard{display:flex;flex-direction:column;gap:8px;min-height:0;padding:10px 0 2px}.keyboard-row{display:flex;gap:6px;width:100%;justify-content:center}.keyboard-row.middle-row{width:90%;align-self:center}.keyboard-row>.alpha{flex:1;min-width:0;width:0;border-radius:6px;border:0;box-shadow:0 2px 0 #8493a5;background:#fdfefe;color:#17283d;min-height:43px;height:43px;font-size:21px;font-weight:500;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.keyboard-row>.alpha.confirmed{background:#17613f;color:#fff;box-shadow:0 2px 0 #0b3a25}.keyboard-row>.alpha.scratched{background:#e9d1d5;color:#782a38;box-shadow:0 2px 0 #b5848d}.keyboard-spacer{flex:1.5;min-width:0}.keyboard-backspace{flex:1.5;min-width:0;min-height:43px;height:43px;padding:0;border-radius:6px;background:#aab9cd;color:#17283d;font-size:27px;box-shadow:0 2px 0 #8193ac}.keyboard-actions{display:flex;align-items:center;gap:12px;padding-top:4px}.keyboard-clear{background:#c1ccdb;color:#213b5e;min-height:39px;font-size:14px;padding:7px 15px}.keyboard-count{color:#3e536e;font-weight:650;font-size:14px;margin-left:auto}.keyboard-enter{background:#344f73;color:#fff;min-height:39px;padding:8px 24px;font-size:17px;min-width:120px;box-shadow:0 2px 0 #1e3452}.keyboard-enter:disabled{opacity:.5}.alphabet-dock{background:#d6dee9;border-radius:12px;padding:12px 10px 8px;border:1px solid #a5b4c9}.alphabet-dock .alphabet-toolbar{display:flex;flex-direction:column;align-items:stretch;gap:7px;margin:0}.alphabet-dock .alphabet-modes{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;background:#bbc8d9;border-radius:9px}.alphabet-dock .alphabet-modes button{min-height:38px;padding:7px 12px;font-size:15px;font-weight:750;background:transparent;color:#273e5d;box-shadow:none}.alphabet-dock .alphabet-modes button.chosen{background:#344f73;color:#fff;box-shadow:0 2px 4px #17283d30}.alphabet-dock .alphabet-modes button.mark-chosen{background:#17613f;color:#fff}.keyboard-mode-hint{font-size:12px;font-weight:600;line-height:1.3;margin:0;color:#304967;text-align:center}.hold-pending{animation:hold-key .45s linear forwards}.key-preview{font-size:27px;white-space:nowrap}@keyframes hold-key{0%,50%{outline:0 solid #17613f}100%{outline:3px solid #17613f;outline-offset:2px}}
@media(max-width:700px){.playing .alphabet-dock{background:#d6dee9;border:1px solid #a5b4c9;border-radius:9px;padding:7px 6px 5px}.playing .alphabet.ios-keyboard{display:flex;flex-direction:column;gap:7px;padding:7px 0 1px}.playing .keyboard-row{gap:5px}.playing .alphabet.ios-keyboard .alpha{width:0;flex:1;min-height:38px;height:38px;font-size:20px;border-radius:5px}.playing .keyboard-backspace{min-height:38px;height:38px;font-size:25px;border-radius:5px}.playing .alphabet-dock .alphabet-toolbar{gap:5px;margin:0;min-height:0}.playing .alphabet-dock .alphabet-modes{padding:3px;gap:3px}.playing .alphabet-dock .alphabet-modes button{min-height:32px;font-size:14px;padding:6px 8px}.playing .keyboard-mode-hint{font-size:11px}.playing .keyboard-actions{padding-top:3px;gap:9px}.playing .keyboard-clear{font-size:13px;min-height:33px;padding:6px 13px}.playing .keyboard-enter{font-size:16px;min-height:34px;padding:6px 22px;min-width:115px}.playing .keyboard-count{font-size:13px}.playing .composer{padding-top:4px}.playing .composer>.label{margin-bottom:4px}}
@media(max-width:700px) and (max-height:650px){.playing .alphabet.ios-keyboard{gap:5px;padding-top:5px}.playing .keyboard-row{gap:4px}.playing .alphabet.ios-keyboard .alpha{min-height:31px;height:31px;font-size:18px}.playing .keyboard-backspace{min-height:31px;height:31px;font-size:23px}.playing .alphabet-dock .alphabet-modes button{min-height:28px;font-size:13px}.playing .keyboard-mode-hint{font-size:10px}.playing .keyboard-enter,.playing .keyboard-clear{min-height:29px}.playing .alphabet-dock{padding:5px}.playing .keyboard-actions{padding-top:1px}}
@media(prefers-reduced-motion:reduce){.hold-pending{animation:none;outline:2px solid #17613f;outline-offset:1px}}
.difficulty-setup{max-width:550px}.difficulty-setup h1{font-size:43px}.difficulty-options{display:flex;flex-direction:column;gap:12px;margin:25px 0 16px}.difficulty-options>button{display:flex;align-items:center;text-align:left;gap:15px;background:#e2e9f2;color:#172f52;border:1px solid #b3c2d7;padding:17px 15px;border-radius:12px;min-height:83px}.difficulty-options>button>span:nth-child(2){flex:1}.difficulty-options strong{display:block;font-size:19px}.difficulty-options small{display:block;font-weight:400;font-size:13px;line-height:1.5;color:#465b76;margin-top:4px}.difficulty-badge{display:grid;place-items:center;min-width:39px;height:39px;border-radius:10px;background:#344f73;color:#fff;font-size:17px}.difficulty-options>button:nth-child(2) .difficulty-badge{background:#3b5c6a}.difficulty-options>button:nth-child(3) .difficulty-badge{background:#17613f}.difficulty-options>button:hover{border-color:#344f73;background:#d6e2f1}.difficulty-options>button:focus-visible{outline:3px solid #344f73;outline-offset:3px}
@media(max-width:700px){.difficulty-setup{padding:24px 18px}.difficulty-setup h1{font-size:36px;margin:16px 0}.difficulty-setup>p{font-size:15px}.difficulty-options{margin-top:20px;gap:10px}.difficulty-options>button{gap:11px;padding:14px 12px;min-height:78px}.difficulty-options strong{font-size:18px}.difficulty-options small{font-size:12px}.difficulty-badge{min-width:35px;height:35px}}
/* The lobby and player record use the same quiet, high-contrast palette. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.lobby-page{max-width:1000px;margin:auto}.lobby-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.lobby-heading h1{margin:13px 0;font-size:60px;letter-spacing:-3px}.lobby-heading p{margin:0;font-size:17px;color:#46566b}.lobby-player{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:26px 0;padding:16px 20px;background:#d5dfeb;border:1px solid #a8b8cd;border-radius:16px;color:#213b5e}.lobby-player>.secondary{margin-left:auto}.lobby-identity{display:flex;align-items:center;gap:12px}.lobby-identity b{font-size:19px}.lobby-identity small{display:block;color:#40526b;font-size:14px;margin-top:4px}.player-avatar{width:44px;height:44px;min-width:44px;border-radius:13px;display:inline-grid;place-items:center;color:#fff;font-weight:800;font-size:17px;letter-spacing:-.5px}.color-0{background:#344f73}.color-1{background:#315f4c}.color-2{background:#655174}.color-3{background:#835746}.color-4{background:#426976}.color-5{background:#765169}.player-avatar.large{width:66px;height:66px;min-width:66px;border-radius:20px;font-size:25px}.lobby-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:22px;align-items:start}.lobby-card{background:#f5f6f8;border:1px solid #b6c2d2;border-radius:20px;padding:26px;box-shadow:0 5px 18px #233c6409}.lobby-card h2{font-size:26px;letter-spacing:-.7px;margin:0 0 8px}.lobby-card p{font-size:15px;color:#4b5b70;line-height:1.6}.game-visibility{border:0;padding:0;margin:22px 0;display:grid;gap:10px}.game-visibility label{display:flex;align-items:center;gap:12px;padding:15px;border:1px solid #b6c4d6;background:#e8edf4;border-radius:12px;cursor:pointer}.game-visibility label:has(input:checked){border:2px solid #344f73;padding:14px;background:#dce5f0}.game-visibility input{accent-color:#344f73;width:19px;height:19px;flex-shrink:0}.game-visibility strong{display:block;font-size:16px}.game-visibility small{display:block;font-size:13px;color:#4b5b70;line-height:1.5;margin-top:4px}.create-game-card>#createRoom{width:100%;font-size:17px;background:#344f73}.join-code{border-top:1px solid #c1cbd9;margin-top:23px;padding-top:20px}.join-code>label{display:block;margin-bottom:10px;color:#344963;font-size:15px;font-weight:650}.join-code>div{display:flex;gap:8px}.join-code input{min-width:0;flex:1;letter-spacing:2px;text-transform:uppercase}.join-code button{padding-inline:16px;white-space:nowrap}.profile-input{width:100%;padding:13px 12px;min-height:48px;font-size:17px;border:1px solid #a8b8cd;border-radius:9px;background:#fff;color:#1c304b}.lobby-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.lobby-section-title h2{margin:0}.lobby-section-title button{min-height:40px;padding:7px;font-size:14px}.live-indicator{color:#3a5c4d;font-size:12px;display:flex;gap:6px;align-items:center;margin:13px 0 20px}.live-indicator>span{width:6px;height:6px;border-radius:100%;background:#31694d}.lobby-game{display:flex;align-items:center;gap:11px;padding:17px 0;border-top:1px solid #c8d1dd}.lobby-game>div{min-width:0;flex:1}.lobby-game b{font-size:17px;overflow-wrap:anywhere}.lobby-game>div>span{display:block;font-size:12px;color:#526279;line-height:1.5;margin-top:4px}.lobby-game button{padding-inline:14px;font-size:15px;background:#344f73;color:#fff}.lobby-empty{text-align:center;padding:24px 4px}.lobby-empty h3{font-size:20px;letter-spacing:-.4px}.empty-table{display:inline-flex;align-items:center;justify-content:center;gap:4px;background:#dce4ef;border:1px solid #abbcd2;color:#344f73;border-radius:16px;width:100px;height:68px;font-size:29px;font-weight:750;transform:rotate(-5deg)}.empty-table>span{display:grid;place-items:center;border:1px dashed #7a8fa9;border-radius:7px;width:31px;height:38px;font-size:24px;transform:rotate(10deg)}.lobby-footer{text-align:center;font-size:13px;margin-top:28px}.profile-dialog{width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:28px;color:#24364f;border-radius:20px;background:#f2f5f8;border:1px solid #a9b9cc;overflow-y:auto;overscroll-behavior:contain}.profile-dialog .close{display:block;margin-left:auto}.profile-dialog h2{font-size:30px;letter-spacing:-1px;margin:15px 0}.profile-dialog h3{font-size:18px;margin-top:24px}.profile-dialog p{font-size:14px;color:#455970;line-height:1.6}.profile-dialog form label{display:block;font-size:14px;font-weight:650;margin:10px 0}.profile-dialog form>button{margin-top:14px;width:100%}.profile-heading{display:flex;gap:16px;align-items:center;margin:16px 0 24px}.profile-heading h2{margin:6px 0;overflow-wrap:anywhere}.profile-id{font-size:11px;letter-spacing:1px;color:#52667f}.profile-stats{display:grid;grid-template-columns:repeat(4,1fr);border-radius:13px;overflow:hidden;border:1px solid #b4c2d3;background:#e3eaf3}.profile-stats>div{text-align:center;padding:17px 4px;border-right:1px solid #b4c2d3}.profile-stats>div:last-child{border:0}.profile-stats b{display:block;font-size:29px;letter-spacing:-1px;color:#243e60}.profile-stats span{display:block;font-size:11px;margin-top:7px;color:#3d536f}.profile-stats .karma-stat{background:#d8e7df}.karma-stat b{color:#24553c}.profile-dialog .stat-caption{font-size:12px;text-align:center;margin:11px 0 21px}.karma-explainer{background:#e1e9e5;border:1px solid #b2c8bb;border-radius:12px;padding:16px;font-size:15px;color:#2e5041}.karma-explainer p{font-size:12px;margin:7px 0 0;color:#3b584b}.profile-dialog details{border-top:1px solid #bdc9d7;padding:16px 0;font-size:14px}.profile-dialog summary{cursor:pointer;font-weight:650;padding:5px 0}.recovery-key{font-family:ui-monospace,monospace;font-size:14px;overflow-wrap:anywhere;resize:vertical;margin:12px 0;min-height:100px;text-transform:none}.avatar-colors{display:flex;gap:10px;margin:16px 0}.avatar-colors .color-option{display:flex;width:38px;height:38px;border-radius:50%;position:relative;margin:0;align-items:center;justify-content:center;color:#fff;cursor:pointer}.color-option input{position:absolute;inset:0;opacity:0;cursor:pointer}.color-option span[aria-hidden]{visibility:hidden}.color-option:has(input:checked){outline:3px solid #243e60;outline-offset:3px}.color-option:has(input:checked) span[aria-hidden]{visibility:visible}.color-option:has(input:focus-visible){outline:3px solid #243e60;outline-offset:3px}.recent-matches{margin:12px 0 24px}.match-row{display:flex;gap:12px;align-items:center;padding:11px 0;border-bottom:1px solid #c8d2df;font-size:15px}.match-row small{display:block;font-size:12px;color:#52667f;margin-top:4px}.result-chip{display:grid;place-items:center;width:35px;height:35px;min-width:35px;border-radius:8px;font-size:15px;font-weight:800}.result-chip.win{background:#d2e5d9;color:#24523a}.result-chip.loss{background:#e8dce0;color:#713b49}.active-games{display:grid;gap:8px}.active-games button{display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;font-size:14px}.active-games small{display:block;font-weight:400;font-size:11px;margin-top:5px}.result-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.result-actions>span{font-size:12px;color:#3e536c}.result-actions button{font-size:13px;padding:7px 12px;min-height:37px}#profile-status{overflow-wrap:anywhere}#profile-status:empty{display:none}
@media(max-width:700px){body:not(.playing) main:has(>.lobby-page){padding:24px 16px}.lobby-heading h1{font-size:44px;letter-spacing:-2px;margin:10px 0}.lobby-heading .eyebrow{font-size:9px;letter-spacing:1px}.lobby-heading p{font-size:15px}.lobby-heading>button{font-size:13px;padding:7px;min-height:38px}.lobby-player{padding:13px;gap:10px;margin:20px 0}.lobby-player>.secondary{font-size:13px;padding:10px;min-height:42px}.lobby-identity{gap:9px}.lobby-identity b{font-size:17px}.lobby-identity small{font-size:11px}.lobby-player .player-avatar{width:36px;height:36px;min-width:36px;font-size:14px;border-radius:11px}.lobby-grid{grid-template-columns:minmax(0,1fr);gap:16px}.lobby-card{padding:21px;border-radius:17px}.lobby-card h2{font-size:24px}.lobby-card p{font-size:14px}.lobby-heading>div{min-width:0}.profile-dialog{padding:20px}.profile-stats b{font-size:26px}.profile-stats span{font-size:10px}.profile-heading{gap:12px}.profile-heading h2{font-size:26px}.profile-heading .eyebrow{font-size:9px}.playing .notice .result-actions{gap:5px}.playing .notice .result-actions span{font-size:10px}.playing .notice .result-actions button{font-size:11px;min-height:29px;padding:5px 8px}.header-actions{gap:3px}header .header-actions .quiet{font-size:12px;min-height:36px;padding:6px 8px}header #profile-button{max-width:76px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}header .tag{display:none}}
@media(max-width:370px){header .logo{font-size:14px;gap:6px}header .logo-icon{width:28px;height:28px;font-size:20px}header .header-actions .quiet{font-size:11px;padding:5px 6px}header #profile-button{max-width:60px}.lobby-card{padding:17px}.lobby-identity small{font-size:10px}}
.room-chat-button{background:#344f73;color:#fff;min-height:36px;padding:7px 13px;font-size:14px;display:flex;align-items:center;gap:7px;white-space:nowrap}.chat-unread{display:inline-grid;place-items:center;min-width:21px;height:21px;padding:0 5px;background:#fff;color:#243e60;border-radius:20px;font-size:12px;font-weight:800}.chat-unread[hidden]{display:none}.room-chat-button.has-unread{background:#205a40;box-shadow:0 0 0 2px #abc8b8}.chat-dialog{width:min(480px,calc(100vw - 24px));height:min(620px,80dvh);max-height:calc(100dvh - 24px);padding:0;border:1px solid #a7b7cb;border-radius:18px;background:#eef2f6;color:#233850;overflow:hidden}.chat-dialog[open]{display:flex;flex-direction:column}.chat-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 20px;border-bottom:1px solid #b7c5d6;background:#e0e7f0;flex-shrink:0}.chat-heading h2{font-size:22px;letter-spacing:-.5px;margin:0}.chat-heading p{font-size:12px;line-height:1.4;margin:5px 0 0;color:#405570}.chat-heading button{padding:7px 10px;min-height:38px}.chat-messages{overflow-y:auto;flex:1;min-height:60px;padding:18px;display:flex;flex-direction:column;gap:14px;overscroll-behavior:contain}.chat-message{max-width:87%;align-self:flex-start}.chat-message.mine{align-self:flex-end}.chat-message p{margin:0;background:#fff;border:1px solid #b9c7d8;padding:11px 13px;border-radius:3px 14px 14px;font-size:16px;line-height:1.45;color:#253b57;overflow-wrap:anywhere;white-space:pre-wrap}.chat-message.mine p{background:#344f73;border-color:#344f73;color:#fff;border-radius:14px 3px 14px 14px}.chat-message-meta{display:flex;gap:14px;justify-content:space-between;font-size:11px;color:#52667f;padding:0 3px 5px}.chat-message-meta time{white-space:nowrap;font-size:10px}.chat-empty{text-align:center;margin:auto;color:#435a76;padding:12px}.chat-empty h3{font-size:20px}.chat-empty p{font-size:14px;line-height:1.6}.chat-form{display:flex;gap:8px;flex-shrink:0;padding:12px 14px 8px;border-top:1px solid #b9c7d8;background:#e0e7f0}.chat-form input{min-width:0;flex:1;border:1px solid #a3b5cc;border-radius:10px;padding:11px;font-size:16px;background:#fff;color:#243e60;min-height:45px}.chat-form button{background:#344f73;color:#fff;padding:10px 15px;font-size:15px;min-height:45px}.chat-caption{font-size:10px;text-align:center;margin:0;padding:0 12px 12px;background:#e0e7f0;line-height:1.4;color:#475e7b;flex-shrink:0}.chat-status{font-size:12px;color:#8c3b39;line-height:1.4;padding:0 15px;margin:0 0 8px;flex-shrink:0}.chat-status:empty{display:none}.chat-toast{position:fixed;z-index:100;top:calc(env(safe-area-inset-top,0px) + 70px);left:50%;transform:translateX(-50%);width:min(400px,calc(100vw - 24px));background:#253e5c;color:#fff;display:flex;border:1px solid #7790ae;border-radius:13px;box-shadow:0 6px 25px #192f4b44;padding:5px}.chat-toast[hidden]{display:none}.chat-toast>#chat-toast-open{flex:1;min-width:0;text-align:left;background:transparent;display:flex;flex-direction:column;gap:4px;padding:10px 12px}.chat-toast-label{font-size:12px;color:#d1e3f5}.chat-toast #chat-toast-text{font-size:15px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-toast small{color:#c8d9ea;font-size:11px;font-weight:400}.chat-toast>#chat-toast-dismiss{align-self:flex-start;color:#fff;min-height:35px;padding:7px 10px}.chat-dialog::backdrop{background:#13263d88}
@media(max-width:700px){.playing .roomstrip{flex-wrap:wrap;gap:5px}.playing .roomstrip>span:first-child{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.playing .roomstrip #copyRoom{padding:5px 7px;font-size:10px;min-height:28px}.playing .roomstrip #connection{font-size:9px}.playing .roomstrip .room-chat-button{font-size:12px;padding:5px 9px;min-height:30px}.playing .chat-unread{height:18px;min-width:18px;font-size:10px}.chat-dialog{height:min(580px,78dvh)}.chat-heading{padding:14px}.chat-heading h2{font-size:20px}.chat-messages{padding:14px}.chat-form{padding:10px 10px 8px}.chat-caption{padding-bottom:max(10px,env(safe-area-inset-bottom))}.chat-toast{top:calc(env(safe-area-inset-top,0px) + 52px)}}
.home-guide{max-width:900px;margin:80px auto 30px;border-top:1px solid #b8c5d6;padding-top:50px}.home-guide h2{font-size:34px;letter-spacing:-1px;color:#263c58;line-height:1.2}.home-guide h3{font-size:22px;color:#2e4665;margin-top:30px}.home-guide p,.home-guide li{font-size:16px;line-height:1.8;color:#465970}.home-guide li{margin:9px 0}.home-guide-grid{display:grid;grid-template-columns:1fr 1fr;gap:35px}.guide-links{display:flex;flex-wrap:wrap;gap:14px;margin:30px 0}.guide-links a,.guide-cta{display:inline-block;padding:13px 18px;border:1px solid #acbdd2;border-radius:10px;background:#dfe7f1;color:#243e60;font-size:15px;font-weight:700;text-decoration:none}.home-guide details{border-top:1px solid #bdc9d8;padding:17px 0}.home-guide summary{cursor:pointer;color:#2a4260;font-weight:650;line-height:1.5}.site-footer{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:30px 0;color:#52667f;font-size:13px;border-top:1px solid #bdc9d8;max-width:1000px;margin:30px auto}.site-footer nav{display:flex;gap:20px}.site-footer a,.guide-page a{color:#284c79;text-underline-offset:4px}.guide-page{max-width:820px;padding-top:36px}.breadcrumbs{font-size:13px;margin:0 0 44px;color:#52667f}.guide-page h1{font-size:54px;letter-spacing:-2px}.guide-page h2{font-size:26px;margin-top:40px;letter-spacing:-.7px;line-height:1.3}.guide-page p{font-size:17px;line-height:1.85;color:#40546d}.guide-page .guide-lead{font-size:20px;color:#344f73}.guide-example{padding:22px;background:#dce5f0;border:1px solid #aabbd0;border-radius:14px;margin:22px 0}.guide-example b{font-size:17px;color:#243e60}.guide-example p{font-size:15px;margin-bottom:24px}.guide-example p:last-child{margin-bottom:0}.guide-page .guide-cta{background:#344f73;color:#fff;margin:20px 0}.guide-play-link{margin-left:auto;color:#284c79;font-weight:700;text-decoration:none;font-size:15px}body>.site-footer{padding:25px 30px}a:focus-visible{outline:3px solid #344f73;outline-offset:4px}
@media(max-width:700px){.home-guide{margin-top:36px;padding-top:30px}.home-guide .eyebrow{font-size:10px}.home-guide h2{font-size:28px}.home-guide h3{font-size:21px;margin-top:25px}.home-guide p,.home-guide li{font-size:15px;line-height:1.8}.home-guide-grid{grid-template-columns:1fr;gap:0}.home-guide details{font-size:15px}.guide-links{gap:10px}.guide-links a{font-size:14px;padding:12px}.site-footer{font-size:12px;line-height:1.6;margin-bottom:0}.site-footer nav{gap:15px}.guide-page{padding:25px 20px}.guide-page h1{font-size:40px;line-height:1.1;letter-spacing:-1.5px}.guide-page h2{font-size:23px;margin-top:32px}.guide-page p{font-size:16px;line-height:1.8}.guide-page .guide-lead{font-size:18px}.breadcrumbs{font-size:11px;margin-bottom:30px}.guide-page .eyebrow{font-size:10px}.guide-example{padding:16px}.guide-example b{font-size:15px}.guide-play-link{font-size:14px}}
.chat-dialog{position:fixed;left:0;right:0;top:calc(var(--screen-height,100dvh)/2);bottom:auto;margin:0 auto;transform:translateY(-50%);max-height:calc(var(--screen-height,100dvh) - 24px)}
.daily-setup #start-daily{width:100%;font-size:17px;margin:18px 0 6px;background:#344f73}.daily-rules{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:22px 0}.daily-rules span{font-size:12px;background:#dfe7f1;color:#2c486a;padding:8px 10px;border-radius:20px}.daily-mini-stats{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid #b5c4d7;border-radius:12px;background:#e2e9f2;padding:15px 5px;margin:20px 0}.daily-mini-stats span{font-size:11px;color:#455b77}.daily-mini-stats b{display:block;font-size:26px;color:#2a4465;margin-bottom:5px}.daily-strip{display:flex;flex-direction:column;align-items:flex-start;gap:4px}.daily-strip span:last-child{font-size:11px;color:#50657e}.share-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:12px}.share-actions button{min-height:36px;font-size:13px;padding:7px 12px}.share-actions #share-status{font-size:12px;color:#8c3b39}.shared-result{max-width:600px;text-align:center;padding:45px 22px}.shared-result h1{font-size:46px;letter-spacing:-2px}.share-grid{font-size:25px;line-height:1.6;text-align:left;display:inline-block;max-width:100%;overflow:auto;background:#e0e8f2;padding:22px;border-radius:14px;border:1px solid #abbdd4}.shared-result p{font-size:15px;line-height:1.7}.shared-result .guide-cta{background:#344f73;color:#fff}.inline-plus{min-height:30px;padding:3px 6px;font-size:inherit;text-decoration:underline;color:#284c79}.pricing-page{max-width:1000px;margin:auto}.pricing-page>h1{font-size:58px;letter-spacing:-3px}.pricing-page>p{max-width:650px;font-size:17px}.pricing-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin:30px 0}.price-card{padding:30px;background:#f5f6f8;border:1px solid #aebed3;border-radius:20px;position:relative}.price-card h2{font-size:25px;letter-spacing:-.6px;line-height:1.3}.price{font-size:44px;color:#2a4465;font-weight:750}.price-card ul{padding-left:22px;color:#40546f;line-height:1.8;font-size:15px}.price-card li{margin:9px 0}.price-card>button{width:100%;margin-top:15px}.plus-price{border:2px solid #344f73;background:#e4ebf4}.founding-label{font-size:10px;letter-spacing:1.5px;background:#344f73;color:#fff;border-radius:20px;padding:7px 11px;font-weight:700}.plan-choice{display:grid;gap:10px;margin:23px 0}.plan-choice label{display:flex;gap:10px;align-items:center;background:#f5f7fa;border:1px solid #a5b7ce;border-radius:10px;padding:13px;cursor:pointer}.plan-choice input{accent-color:#344f73;width:18px;height:18px}.plan-choice label:has(input:checked){outline:2px solid #344f73;background:#d4e0ef}.plan-choice b{font-size:21px;color:#243e60}.plan-choice small{display:block;color:#4b607d;font-size:12px;margin-top:6px}.price-card .billing-caption{font-size:11px;color:#4a5e77;line-height:1.7}.beta-notice{max-width:none;margin:25px 0}.beta-notice p{font-size:14px}.account-panel,.friends-panel{border-top:1px solid #bac7d8;margin-top:22px;padding-top:5px}.account-panel label,.friends-panel label{display:block;font-size:14px;margin:12px 0;font-weight:650}.account-panel form>button,.friends-panel form>button{width:100%;margin-top:13px}.account-verification{background:#dfe8e2;padding:9px 12px;border-radius:9px;font-size:12px}.account-consent{font-size:var(--type-small,15px)!important;font-weight:400!important;line-height:1.7;display:block!important}.account-consent input{vertical-align:middle;min-width:16px;min-height:16px;margin-right:5px}.account-consent a{color:#284c79}.friend-row{display:flex;align-items:center;gap:9px;margin:10px 0;padding:10px 0;border-bottom:1px solid #c5cfdd;flex-wrap:wrap}.friend-row b{flex:1;min-width:60px;overflow-wrap:anywhere;font-size:14px}.friend-row button{min-height:35px;font-size:12px;padding:7px 10px}.friend-invite{width:100%;margin:7px 0;font-size:14px;text-align:left}.theme-choice{display:flex!important;align-items:center;gap:12px}.theme-choice select{padding:9px 12px;border:1px solid #9eafc7;border-radius:8px;font-size:15px;background:#fff;color:#263f60}.chat-safety{display:flex;gap:6px;justify-content:center;background:#e0e7f0;padding:2px 10px 8px;flex-shrink:0}.chat-safety button{font-size:11px;min-height:28px;padding:4px 9px;color:#3a506d}.table-scroll{max-width:100%;overflow:auto}table{border-collapse:collapse;font-size:13px;background:#f5f7fa;width:100%}th,td{padding:12px 10px;border:1px solid #b6c4d7;text-align:left;white-space:nowrap}th{background:#dbe5f0}.admin-page h1{font-size:46px}.admin-page .report-detail{display:block;margin:8px 0}#owner-report{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;font-size:12px}html[data-theme="forest"]{--bg:#e0e8e2;--card:#f1f5f1;--blue:#315f4c;--pale:#d5e4db;--line:#b9cabc}html[data-theme="ink"]{--bg:#dde1e8;--card:#f0f2f6;--blue:#354260;--pale:#d9dfeb;--line:#b3bdd0}
@media(max-width:700px){.pricing-page>h1{font-size:43px;letter-spacing:-2px}.pricing-page>p{font-size:15px}.pricing-grid{grid-template-columns:1fr;gap:16px}.price-card{padding:23px}.price-card h2{font-size:24px}.daily-setup{padding:25px 18px}.daily-setup h1{font-size:39px;letter-spacing:-2px}.daily-setup>p{font-size:15px}.daily-rules{gap:6px}.daily-rules span{font-size:11px}.daily-strip{align-items:flex-start!important}.playing .daily-strip span:last-child{font-size:9px;white-space:normal}.playing .daily-strip>span:first-child{font-size:10px}.playing .share-actions{margin-top:6px;gap:5px}.playing .share-actions button{font-size:10px;min-height:29px;padding:5px 8px}.playing .share-actions #share-status{font-size:10px}.shared-result h1{font-size:37px}.share-grid{font-size:22px;padding:17px}.hero .modes{display:grid;grid-template-columns:1fr 1fr}.hero .modes button{font-size:13px;min-height:43px}.hero .modes button:first-child{grid-column:1/-1}.hero .modes button:last-child{grid-column:1/-1}.hero .subtle{font-size:11px}}

/* Pocket: system type, a compact single board, and a quiet slate palette. */
:root{--bg:#edf1f5;--card:#fff;--ink:#203044;--muted:#536171;--blue:#334e73;--pale:#e1e7ee;--line:#c5cfdb;--shadow:0 4px 16px #233c640a}
body,h1,h2,h3,.logo,.tile,.score,.letter,.word-slot,button.alpha{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
header{background:var(--card);border-color:var(--line);box-shadow:none}
.hero .demo{transform:none;background:var(--card);box-shadow:var(--shadow)}
.boards,.gamebar,.roomstrip,.notice{max-width:520px}
.board,.board.active{background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:none}
.boardhead{display:none}
.boardbody{padding:18px}
.word-workspace{background:var(--card);border:1px solid var(--line);padding:12px;border-radius:10px;margin-top:0}
.word-slot{background:transparent;border:0;border-bottom:2px solid var(--line);border-radius:0;color:#778492;box-shadow:none;font-weight:750}
.word-slot.filled{background:transparent;color:#245d43;border:0;border-bottom:2px solid #245d43;box-shadow:none}
.word-slot.selected{outline:2px solid var(--blue);outline-offset:2px}
.history .letter{background:transparent;border-color:transparent;border-radius:4px;font-weight:750}
.letter.confirmed,.keyboard-row>.alpha.confirmed{background:#245d43;color:#fff;border-color:#245d43;box-shadow:none}
.history .score{background:var(--pale);color:var(--ink);border-radius:6px}
.draft-slot,.draft-slot.entered{background:var(--card);border-color:var(--line);color:var(--ink);border-radius:7px}
.draft-slot.cursor{border-color:var(--blue)}
.alphabet-dock{background:var(--card);border:0;border-top:1px solid var(--line);border-radius:0;padding:12px 0 0}
.alphabet-dock .alphabet-modes{background:transparent;padding:0;gap:6px}
.alphabet-dock .alphabet-modes button{background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:7px;box-shadow:none}
.alphabet-dock .alphabet-modes button.chosen{background:var(--blue);color:#fff;border-color:var(--blue);box-shadow:none}
.alphabet-dock .alphabet-modes button.mark-chosen{background:#245d43;color:#fff;border-color:#245d43}
.keyboard-mode-hint{color:var(--muted)}
.keyboard-row>.alpha{background:var(--pale);color:var(--ink);box-shadow:0 1px 0 #bdc8d5;font-weight:650}
.keyboard-backspace,.keyboard-clear{background:var(--pale);color:var(--ink);box-shadow:none}
.keyboard-enter{background:var(--blue);color:#fff;box-shadow:none}
/* A bold X is distinct from a highlight and does not disable the key. */
.draft-slot.confirmed{color:#245d43;border-color:#245d43}
.history .letter.scratched,.alphabet.ios-keyboard .alpha.scratched,.draft-slot.scratched{position:relative;background:#e8e9ed;color:#626c79;border-color:#c4c8d0;box-shadow:none;text-decoration:none;isolation:isolate}
.history .letter.scratched::before,.history .letter.scratched::after,.alphabet.ios-keyboard .alpha.scratched::before,.alphabet.ios-keyboard .alpha.scratched::after,.draft-slot.scratched::before,.draft-slot.scratched::after{content:'';position:absolute;pointer-events:none;left:10%;right:auto;top:50%;width:80%;height:3px;border-radius:3px;background:#a1263a;box-shadow:0 0 0 .6px #fff;z-index:1;transform:translateY(-50%) rotate(48deg)}
.history .letter.scratched::before,.alphabet.ios-keyboard .alpha.scratched::before,.draft-slot.scratched::before{transform:translateY(-50%) rotate(-48deg)}
@media(max-width:700px){
 .playing .boards,.playing .gamebar,.playing .roomstrip,.playing .notice{max-width:520px}
 .playing .boardbody{padding:10px 10px 7px;gap:7px}
 .playing .boardhead{display:none}
 .playing .word-workspace{background:var(--card);padding:9px 10px;border-color:var(--line);border-radius:10px}
 .playing .word-slot{height:35px;min-height:35px;font-size:25px}
 .playing .word-workspace .label,.playing .composer>.label,.playing .history>.label{font-size:11px;letter-spacing:.1px;color:var(--muted)}
 .playing .workspace-tools button{min-height:28px;font-size:11px;padding:4px 8px}
 .playing .workspace-tools .secondary{background:var(--pale);border-color:transparent}
 .playing .history{min-height:45px}
 .playing .composer{border-top:0;padding-top:0}
 .playing .draft-slot{height:40px;min-height:40px;font-size:27px}
 .playing .alphabet-dock{background:var(--card);border:0;border-top:1px solid var(--line);border-radius:0;padding:8px 0 0}
 .playing .alphabet-dock .alphabet-modes{padding:0;gap:6px}
 .playing .alphabet-dock .alphabet-modes button{min-height:35px;font-size:14px;padding:7px 5px}
 .playing .alphabet.ios-keyboard{gap:6px;padding-top:8px}
 .playing .alphabet.ios-keyboard .alpha{height:40px;min-height:40px;font-size:21px}
 .playing .keyboard-backspace{height:40px;min-height:40px}
 .playing .keyboard-enter,.playing .keyboard-clear{min-height:36px}
}
@media(max-width:700px) and (max-height:650px){
 .playing .boardbody{padding:7px 8px 5px;gap:5px}
 .playing .word-workspace{padding:6px 8px}
 .playing .word-slot{height:28px;min-height:28px;font-size:22px}
 .playing .draft-slot{height:32px;min-height:32px;font-size:23px}
 .playing .workspace-tools button{min-height:24px;font-size:10px}
 .playing .alphabet-dock{padding-top:6px}
 .playing .alphabet-dock .alphabet-modes button{min-height:28px;font-size:13px;padding:4px}
 .playing .alphabet.ios-keyboard{gap:5px;padding-top:5px}
 .playing .alphabet.ios-keyboard .alpha,.playing .keyboard-backspace{height:32px;min-height:32px}
 .playing .alphabet.ios-keyboard .alpha{font-size:19px}
 .playing .keyboard-enter,.playing .keyboard-clear{min-height:29px}
}
/* The same Pocket surfaces and controls on every page and dialog. */
:root{--pocket-radius:14px}
body{background:var(--bg);color:var(--ink)}
button,input,textarea,select{font-family:inherit}
h1,h2,h3,h4,.logo{color:var(--ink)}
p,.subtle,.footnote,.intro{color:var(--muted)}
.logo-icon,.header-actions #install{background:var(--blue);color:#fff;box-shadow:none}
.header-actions .quiet{background:var(--pale);color:var(--ink)}
.secondary{background:var(--pale);border-color:var(--line);color:var(--ink)}
.quiet{color:var(--muted)}
.modes>button:nth-child(-n+3){background:var(--blue);border-color:var(--blue);color:#fff;box-shadow:none}
.hero .eyebrow,.demohead span:last-child{background:var(--pale);border-color:var(--line);color:var(--blue)}
.demo,.setup,.lobby-card,.lobby-player,.price-card,.profile-dialog,.privacy,dialog{background:var(--card);color:var(--ink);border-color:var(--line);border-radius:var(--pocket-radius);box-shadow:var(--shadow)}
.tile{background:var(--pale);border-color:var(--line);color:var(--ink);box-shadow:none}
.hero .demo .tile{background:var(--pale);color:var(--ink);border-color:var(--line)}
.demo .row:nth-of-type(2) .tile:nth-child(2),.demo .row:nth-of-type(4) .tile:nth-child(3){background:#245d43;color:#fff;border-color:#245d43}
.score{background:var(--pale);color:var(--ink);border-radius:7px}
.demohead,.demofoot,.tag{color:var(--muted);border-color:var(--line)}
.features>span{background:var(--card);border-color:var(--line);box-shadow:none}
.features b{background:var(--pale);color:var(--blue)}
.secret,.profile-input,.guessform input.guess,.chat-form input,.theme-choice select{background:var(--card);color:var(--ink);border-color:var(--line)}
.notice,.network-banner,.install-dialog .install-note{background:var(--pale);color:var(--ink);border-color:var(--line);border-radius:10px}
.notice h2,.notice p{color:var(--ink)}
.roomstrip{background:var(--card);color:var(--muted);border-color:var(--line);box-shadow:none}
.roomstrip b,.guide-page a,.site-footer a,.guide-play-link,.account-consent a{color:var(--blue)}
.lobby-heading h1,.lobby-card h2,.lobby-identity b,.lobby-game b,.profile-dialog h2,.profile-dialog h3{color:var(--ink)}
.lobby-card p,.lobby-heading p,.lobby-identity small,.lobby-player>span,.lobby-game>div>span,.profile-dialog p,.profile-id{color:var(--muted)}
.game-visibility label,.plan-choice label{background:var(--card);border-color:var(--line);border-radius:9px}
.game-visibility label:has(input:checked),.plan-choice label:has(input:checked){background:var(--pale);border-color:var(--blue);outline-color:var(--blue)}
.game-visibility strong,.plan-choice b{color:var(--ink)}
.game-visibility small,.plan-choice small{color:var(--muted)}
.lobby-game,.match-row,.friend-row,.profile-dialog details,.account-panel,.friends-panel{border-color:var(--line)}
.empty-table{background:var(--pale);color:var(--blue);border-color:var(--line);box-shadow:none}
.profile-stats,.daily-mini-stats{background:var(--pale);border-color:var(--line);border-radius:10px}
.profile-stats>div{border-color:var(--line)}
.profile-stats b,.daily-mini-stats b{color:var(--ink)}
.profile-stats span,.daily-mini-stats span{color:var(--muted)}
.chat-dialog{background:var(--card);color:var(--ink);border-color:var(--line);border-radius:var(--pocket-radius)}
.chat-heading,.chat-form,.chat-caption,.chat-safety{background:var(--pale);border-color:var(--line);color:var(--muted)}
.chat-heading h2{color:var(--ink)}
.chat-heading p,.chat-message-meta,.chat-empty p{color:var(--muted)}
.chat-message p{background:var(--card);border-color:var(--line);color:var(--ink)}
.chat-message.mine p,.chat-form button,.room-chat-button,.lobby-game button{background:var(--blue);border-color:var(--blue);color:#fff}
.chat-safety button{color:var(--ink)}
.home-guide,.home-guide details,.site-footer{border-color:var(--line)}
.home-guide h2,.home-guide h3,.guide-page h1,.guide-page h2{color:var(--ink)}
.home-guide p,.home-guide li,.guide-page p,.guide-page li,.breadcrumbs,.site-footer{color:var(--muted)}
.guide-page details{border-top:1px solid var(--line);padding:17px 0}
.guide-page summary{font-size:17px;font-weight:700;cursor:pointer;color:var(--ink)}
.guide-page li{line-height:1.7;margin:9px 0;font-size:16px}
.guide-links a,.guide-example,.share-grid{background:var(--pale);border-color:var(--line);color:var(--ink);border-radius:10px}
.guide-example b{color:var(--ink)}
.guide-page .guide-cta,.shared-result .guide-cta{background:var(--blue);color:#fff;border-color:var(--blue);border-radius:9px}
.plus-price{background:var(--card);border-color:var(--blue)}
.price,.price-card h2{color:var(--ink)}
.price-card ul,.price-card .billing-caption{color:var(--muted)}
.founding-label{background:var(--blue);color:#fff}
.daily-rules span{background:var(--pale);color:var(--ink)}
.daily-setup #start-daily{background:var(--blue);color:#fff}
.daily-strip span:last-child{color:var(--muted)}
table{background:var(--card);color:var(--ink)}
th{background:var(--pale)}
th,td{border-color:var(--line)}
.shared-result .share-grid{background:var(--pale)}
@media(max-width:700px){.hero .modes button{font-size:14px}.playing .roomstrip{border-radius:7px}.profile-dialog,.lobby-card,.price-card{border-radius:var(--pocket-radius)}}
/* Readable red letters with one light strike; green is reserved for highlights. */
.history .letter.scratched,.alphabet.ios-keyboard .alpha.scratched,.draft-slot.scratched{background:#f8ebed;color:#a1283c;border-color:#e3bdc5;font-weight:700}
.history .letter.scratched::before,.alphabet.ios-keyboard .alpha.scratched::before,.draft-slot.scratched::before{content:none}
.history .letter.scratched::after,.alphabet.ios-keyboard .alpha.scratched::after,.draft-slot.scratched::after{left:15%;width:70%;height:1.5px;top:50%;transform:translateY(-50%) rotate(-32deg);background:#b94b5d;opacity:.65;box-shadow:none}
.history .letter.winning-letter,.history .letter.winning-letter.confirmed{background:#245d43;color:#fff;border:1px solid #194831;font-weight:800;box-shadow:none}
.history .letter.winning-letter::before,.history .letter.winning-letter::after{content:none}
.win-popup{width:min(420px,calc(100vw - 28px));max-height:calc(var(--screen-height,100dvh) - 28px);padding:26px 24px;border:1px solid var(--line);border-radius:20px;background:var(--card);color:var(--ink);overflow:auto;text-align:center;box-shadow:0 20px 70px #17283d30}
.win-popup::backdrop{background:#17283d88;backdrop-filter:blur(3px)}
.win-close{display:block;margin:-12px -10px 0 auto;min-width:38px;min-height:38px;padding:6px;color:var(--muted)}
.win-medal{display:grid;place-items:center;width:56px;height:56px;margin:-15px auto 14px;background:#e0eee5;color:#245d43;border-radius:50%;font-size:35px}
.win-popup .win-kicker{font-size:12px;margin:0 0 7px;color:var(--muted)}
.win-popup h2{font-size:36px;letter-spacing:-1.2px;margin:0 0 8px;color:#245d43}
.win-popup .win-message{font-size:15px;margin:0 0 20px;line-height:1.5;color:var(--muted)}
.win-popup .win-word-label{font-size:11px;margin:0 0 8px;font-weight:650;color:var(--muted)}
.win-word{display:flex;gap:6px;justify-content:center;margin-bottom:22px}
.win-word span{display:grid;place-items:center;background:#245d43;color:#fff;border:1px solid #194831;border-radius:7px;font-size:27px;font-weight:800;width:43px;height:48px}
.win-stats{display:grid;grid-template-columns:1fr;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--bg)}
.win-stats>div{padding:17px 8px}.win-stats>div+div{border-left:1px solid var(--line)}
.win-stats b{display:block;color:var(--ink);font-size:29px;font-variant-numeric:tabular-nums;font-weight:750;line-height:1.2}
.win-stats span{display:block;font-size:12px;color:var(--muted);margin-top:7px}
.win-popup .win-score-note{font-size:11px;line-height:1.5;margin:11px 0 20px;color:var(--muted)}
.win-share,.win-board{width:100%;min-height:45px;font-size:16px;margin:0 0 9px}
.win-share{background:var(--blue);color:#fff}.win-popup #win-share-status{font-size:12px;line-height:1.5;margin:4px 0 0;color:var(--muted)}
.win-popup #win-share-status:empty{display:none}
@media(max-height:650px){.win-popup{padding:18px 20px}.win-medal{width:42px;height:42px;font-size:28px;margin-bottom:8px}.win-popup h2{font-size:30px}.win-popup .win-message{margin-bottom:12px}.win-word{margin-bottom:13px}.win-word span{height:40px;width:37px;font-size:24px}.win-stats>div{padding:11px 6px}.win-popup .win-score-note{margin:9px 0 13px}.win-share,.win-board{min-height:39px;font-size:14px}}

.guess-list,.playing .guess-list{column-gap:var(--history-gap,20px)}
.home-invite{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:48px;margin-top:16px;font-size:16px;font-weight:700;border:2px solid var(--blue);border-radius:12px}
.home-invite svg{width:20px;height:20px;flex:none}
.invite-status{font-size:14px;color:var(--muted);margin:8px 0 0;overflow-wrap:anywhere}.invite-status:empty{display:none}

.resume-game{display:block;width:100%;margin:0 0 16px;padding:15px 18px;text-align:left;background:var(--blue);color:#fff;border:2px solid var(--blue);border-radius:12px;font-size:19px;font-weight:750}.resume-game small{display:block;margin-top:5px;font-size:13px;font-weight:500;opacity:.9}#resume-status:empty{display:none}

.home-invite-card{padding:15px;background:var(--card);border:1px solid var(--line);border-radius:12px;color:var(--ink)}.home-invite-card strong{display:block;font-size:16px;margin-bottom:10px}.home-invite-card input{box-sizing:border-box;width:100%;min-width:0;padding:11px 10px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--ink);font-size:16px}.home-invite-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.home-invite-actions button{flex:1;min-height:42px;padding:9px 10px;font-size:14px;white-space:nowrap}.home-invite-card p{font-size:13px;margin:10px 0 0;line-height:1.4}

.joining-status{margin:15px 0;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--bg);text-align:left}.joining-status p{display:flex;align-items:center;gap:8px;margin:0 0 10px;font-size:14px;line-height:1.4;color:var(--ink)}.joining-dot{width:8px;height:8px;border-radius:50%;background:#245d43;flex:none}.joining-dot.pending{animation:joining-pulse 1.6s ease-in-out infinite}.joining-status progress{appearance:none;display:block;width:100%;height:6px;border:0;border-radius:4px;background:var(--line);overflow:hidden;accent-color:#245d43}.joining-status progress::-webkit-progress-bar{background:var(--line);border-radius:4px}.joining-status progress::-webkit-progress-value{background:#245d43;border-radius:4px;transition:width .3s ease}.joining-status progress::-moz-progress-bar{background:#245d43}.joining-status ol{display:flex;justify-content:space-between;gap:5px;padding:0;margin:8px 0 0;list-style:none;font-size:11px;color:var(--muted)}.joining-status li.done{font-weight:700;color:#245d43}@keyframes joining-pulse{50%{opacity:.4}}@media(prefers-reduced-motion:reduce){.joining-dot.pending{animation:none}.joining-status progress::-webkit-progress-value{transition:none}}

/* Polar Blue: the selected rounded candy style, applied across the site. */
@font-face{font-family:'Nunito Sans';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/nunito-sans-400.ttf') format('truetype')}
@font-face{font-family:'Nunito Sans';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/nunito-sans-700.ttf') format('truetype')}
:root{--bg:#dbedf8;--card:#f9fdff;--ink:#24445e;--muted:#506c83;--blue:#357497;--pale:#bfdbec;--line:#aecbdc;--shadow:0 5px 18px #24445e0d;--pocket-radius:18px;--confirmed:#2e7059;--eliminated:#a14353}
body,h1,h2,h3,h4,.logo,.tile,.score,.letter,.word-slot,.draft-slot,button.alpha,button,input,select,textarea{font-family:'Nunito Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
body{position:relative;isolation:isolate}
body::before{content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(circle at 100% 16%,#bfdbec88 0 105px,transparent 106px),radial-gradient(circle at 0% 84%,#aecbdc55 0 125px,transparent 126px)}
button{border-radius:14px}
button:not(.quiet):not(.letter):not(.alpha):not(.word-slot):not(.draft-slot){box-shadow:0 3px 0 #24445e16}
button:focus-visible,a:focus-visible{outline-color:var(--blue)}
.logo{color:var(--blue);font-weight:700;letter-spacing:-.6px}
.hero h1{letter-spacing:-2px}.hero .modes button{border-radius:14px}
.board,.board.active,.demo,.lobby-card,.price-card,.setup,.profile-dialog,.home-invite-card{border-radius:18px;background:var(--card);border-color:var(--line)}
.boardhead,.board.active .boardhead{background:var(--pale)}
.word-slot,.playing .word-slot{background:var(--bg);border:1px solid var(--line);border-radius:9px;color:var(--muted);box-shadow:none}
.history .letter{background:var(--bg);border:1px solid var(--line);border-radius:7px;color:var(--ink)}
.draft-slot,.draft-slot.entered{background:var(--bg);color:var(--ink);border-color:var(--line);border-radius:9px}
.draft-slot.cursor{border-color:var(--blue);box-shadow:0 0 0 1px var(--blue)}
.keyboard-row>.alpha,.alphabet.ios-keyboard .alpha{background:var(--pale);border:1px solid var(--line);color:var(--ink);border-radius:7px;box-shadow:0 2px 0 #24445e14;font-weight:700}
.alphabet-dock .alphabet-modes button,.playing .alphabet-dock .alphabet-modes button{background:var(--pale);color:var(--blue);border-color:transparent;border-radius:12px;box-shadow:0 3px 0 #24445e14}
.alphabet-dock .alphabet-modes button.chosen,.playing .alphabet-dock .alphabet-modes button.chosen{background:var(--blue);color:#fff;border-color:var(--blue)}
.alphabet-dock .alphabet-modes button.mark-chosen,.playing .alphabet-dock .alphabet-modes button.mark-chosen{background:var(--confirmed);color:#fff;border-color:var(--confirmed)}
.keyboard-backspace,.keyboard-clear{background:var(--pale);color:var(--ink);border-color:var(--line);border-radius:9px}
.keyboard-enter{background:var(--blue);color:#fff;border-radius:12px}
.history .letter.confirmed,.history .letter.winning-letter,.history .letter.winning-letter.confirmed,.alphabet.ios-keyboard .alpha.confirmed,.draft-slot.confirmed,.word-slot.filled{background:var(--confirmed);color:#fff;border:1px solid #285a48;box-shadow:none;font-weight:700}
.history .letter.scratched,.alphabet.ios-keyboard .alpha.scratched,.draft-slot.scratched{background:#f1dbe2;color:var(--eliminated);border-color:#dfbbc7;box-shadow:none}
.history .letter.scratched::after,.alphabet.ios-keyboard .alpha.scratched::after,.draft-slot.scratched::after{background:var(--eliminated);height:1.5px;opacity:.65}
.history .score,.score{background:var(--bg);color:var(--blue);border-radius:9px}
.win-medal{background:#dceDE4;color:var(--confirmed)}.win-popup h2{color:var(--confirmed)}.win-word span{background:var(--confirmed);border-color:#285a48}

/* Itim is reserved for gameplay; site navigation and reading text use Nunito. */
@font-face{font-family:'Itim';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/itim-400.ttf') format('truetype')}
.boards .history .letter,.boards .history .letter.confirmed,.boards .history .letter.winning-letter.confirmed,.boards .word-slot,.boards .word-slot.filled,.boards .draft-slot,.boards .draft-slot.confirmed,.boards .alphabet.ios-keyboard .alpha,.boards .alphabet.ios-keyboard .alpha.confirmed,.boards .alphabet.ios-keyboard .alpha.scratched,.boards .score,.boards .keyboard-count,.gamebar h2,.win-word span{font-family:'Itim','Nunito Sans',sans-serif;font-weight:400;font-synthesis:none;text-transform:uppercase}
.gamebar>div{min-width:0}.gamebar h2{overflow-wrap:anywhere;letter-spacing:0}

/* Retain the established single-column mobile menu and wrapping header. */
@media(max-width:700px){
 body:not(.playing) header{gap:8px;flex-wrap:wrap}
 body:not(.playing) .header-actions{gap:6px;margin-left:auto}
 body:not(.playing) .hero .modes{grid-template-columns:1fr}
 body:not(.playing) .hero .modes button{grid-column:auto}
 .profile-dialog,.chat-dialog{max-width:calc(100vw - 24px);box-sizing:border-box}
}

/* Softer Polar Blue buttons with stronger text contrast. */
:root{--ink:#142b40;--muted:#344f65;--blue:#407d9f}
.hero .modes>button,.hero .modes>button:last-child,.hero .modes>button.secondary{background:var(--blue);color:#fff;border:1px solid var(--blue)}
.hero .modes>button:hover:not(:disabled){background:var(--blue);filter:brightness(.96)}
button:not(.secondary):not(.quiet):not(.alpha):not(.letter):not(.word-slot):not(.draft-slot):not(.keyboard-clear):not(.keyboard-backspace),.logo-icon,.guide-cta,.board.active .pill{color:#fff}
.secondary,.quiet{color:var(--ink)}
.hero .intro,.home-guide p,.home-guide li,.guide-page p,.guide-page li,.site-footer,.breadcrumbs,.subtle,.label,.footnote,.keyboard-mode-hint,.workspace-hint,.billing-caption,.chat-caption{color:var(--muted)}
input::placeholder,textarea::placeholder{color:#496277;opacity:1}
.hero h1 em,.logo,.eyebrow,.home-guide summary,.demohead,.demofoot,.features,.home-guide h2,.home-guide h3,.guide-page h2{color:var(--ink)}
.history .letter.confirmed,.history .letter.winning-letter.confirmed,.alphabet.ios-keyboard .alpha.confirmed,.draft-slot.confirmed,.word-slot.filled,.win-word span{color:#fff}
.alphabet-dock .alphabet-modes button.chosen,.playing .alphabet-dock .alphabet-modes button.chosen,.keyboard-enter{color:#fff}
.memorial-footer{text-align:center;color:var(--muted);font:13px/1.5 'Nunito Sans',sans-serif;padding:18px 16px 22px;margin:0 auto;max-width:100%;letter-spacing:.15px}
.memorial-footer small,body:not(.playing) .memorial-footer small{font-size:13px}
body.playing>.memorial-footer{flex:none;width:100%;padding:2px 6px 4px;margin:0;line-height:16px;font-size:11px}
body.playing>.memorial-footer small{font-size:11px}
.score-share-dialog{width:min(440px,calc(100vw - 24px));padding:24px;overflow:auto}
.score-share-dialog h2{font-size:28px;margin:5px 0 12px}.score-share-dialog p{font-size:17px;line-height:1.5}
.score-share-preview{font:15px/1.5 'Nunito Sans',sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--bg);color:var(--ink);border-radius:12px;padding:14px;max-height:240px;overflow:auto}
.score-share-links{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}
.score-share-links a,.score-share-controls button{display:flex;align-items:center;justify-content:center;min-height:48px;padding:12px;border-radius:12px;font-size:17px;font-weight:700;text-decoration:none}
.score-share-links a{background:var(--pale);color:var(--ink);border:1px solid var(--line)}
.score-share-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px}.score-share-dialog .close{min-height:44px;font-size:16px}
.create-game-card>#createRoom,.lobby-game button{background:var(--blue);color:#fff}
.streak-awards{margin:16px 0;text-align:left}.streak-badges{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.streak-badge{display:flex;align-items:center;flex-direction:column;gap:3px;padding:12px 4px;border:1px dashed var(--line);border-radius:12px;background:var(--bg);color:var(--muted);font-size:13px}.streak-badge b{font-size:25px;line-height:1.1}.streak-badge small{font-size:var(--type-small,15px)}.streak-badge.earned{border:1px solid var(--blue);background:var(--blue);color:#fff}.streak-awards p,body:not(.playing) .streak-awards p{font-size:16px;line-height:1.5;margin:10px 0}.daily-setup .streak-awards{margin:20px 0}
.site-footer a,.guide-page a:not(.guide-cta),.guide-play-link,.account-consent a,.home-guide a:not(.guide-cta),.inline-plus,.roomstrip b{color:var(--ink)}
/* A full-width code field above its Join action on every screen size. */
.join-code>div{display:flex;flex-direction:column;gap:10px;align-items:stretch}
.join-code>div>.profile-input{width:100%;flex:none;min-width:0}
.join-code>div>button{width:100%;margin-top:0}

/* Three-tile TWG brand mark. */
img.logo-icon{display:block;object-fit:contain;flex:none;padding:0;border-radius:9px;width:44px;height:44px}
@media(max-width:700px){img.logo-icon{width:38px;height:38px}}
body.playing img.logo-icon{width:32px;height:32px}

/* Usability refinements preserve Polar Blue and the established layout. */
.demo .row .tile,.hero .demo .row .tile{background:var(--pale);color:var(--ink);border-color:var(--line)}
.alphabet-dock .alphabet-modes button,.playing .alphabet-dock .alphabet-modes button,.features b,.demohead span:last-child{color:var(--ink)}
.alphabet-dock .alphabet-modes button.chosen,.playing .alphabet-dock .alphabet-modes button.chosen{color:#fff}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
summary{cursor:pointer}summary::marker{color:var(--ink)}
.skip-link{position:absolute;top:8px;left:12px;z-index:1000;padding:10px 16px;background:var(--card);color:var(--ink);border:2px solid var(--ink);border-radius:10px;transform:translateY(-180%)}
.skip-link:focus{transform:none}
.daily-setup #start-daily{width:100%;margin:14px 0 0;min-height:52px}
.daily-setup .daily-start-note{font-size:15px;margin:7px 0 20px}
.daily-award-details{text-align:left;margin:18px 0;padding:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.daily-award-details summary{font-weight:700;color:var(--ink)}
.game-tips{margin:8px 0;font-size:14px;text-align:left}.game-tips summary{min-height:32px;display:list-item;line-height:32px}.game-tips p{font-size:14px;line-height:1.5;margin:8px 0}
.daily-challenge-target{max-width:520px}.daily-challenge-target .notice{padding:8px 12px;margin:0;font-size:14px;line-height:1.4}
@media(max-width:700px){
 .playing .header-actions .quiet,.playing .header-actions #rules{min-height:40px;min-width:40px}
 .playing .gamebar>button,.playing #copyRoom,.playing .room-chat-button{min-height:40px}
 .playing .workspace-tools button{min-height:32px}
 .playing .alphabet-dock .alphabet-modes button,.playing .keyboard-enter,.playing .keyboard-clear{min-height:40px}
 body.playing:has(.notice),body.playing:has(.game-tips[open]){height:auto;min-height:var(--screen-height,100dvh);overflow:auto}
 body.playing:has(.notice) main,body.playing:has(.game-tips[open]) main{flex:1 0 auto}
 body.playing:has(.notice) .history{min-height:140px;max-height:40dvh}
 .playing .share-actions{flex-wrap:wrap}.playing .share-actions button{min-height:44px;font-size:15px;padding:9px 12px}
 .playing .footnote{display:block;flex-shrink:0}
}
@media(max-width:700px) and (max-height:760px){
 body.playing{height:auto;min-height:var(--screen-height,100dvh);overflow:auto}
 body.playing main{flex:1 0 auto}.playing .boards{flex:1 0 auto}
 .playing .history{min-height:120px;max-height:32dvh}.playing .guess-list{min-height:96px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(forced-colors:active){button,a,input,textarea,select,summary{forced-color-adjust:auto}.confirmed{outline:2px solid Highlight}.scratched{text-decoration:line-through}}

.secret,.profile-input,.chat-form input,.theme-choice select{border-color:var(--muted)}
.home-rules{margin:20px 0;padding:14px 0;border-block:1px solid var(--line)}
.home-rules summary{font-weight:700;color:var(--ink)}

.header-actions #profile-button{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:700px){.header-actions #profile-button{max-width:110px}.playing .header-actions #profile-button{max-width:90px}}

.friend-challenge #home-invite{margin-top:20px}
.friend-challenge .join-code{text-align:left}
.friend-challenge .join-code .subtle{font-size:15px;margin:10px 0 0}
.friend-challenge #friend-roomcode{text-transform:uppercase;letter-spacing:1px}
.friend-challenge #friend-join-error:empty{display:none}

.other-ways{margin:30px 0 0;padding:16px 0;border-block:1px solid var(--line)}
.other-ways summary{color:var(--ink);font-size:18px;font-weight:700;min-height:44px;line-height:44px}
.other-ways-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0 4px}
.other-ways-options button{text-align:left;min-height:64px;white-space:normal}
.other-ways-options small{display:block;color:var(--muted);font-size:15px;font-weight:400;margin-top:5px}
@media(max-width:700px){.other-ways-options{grid-template-columns:1fr}}

/* Related help and secondary game modes share the same lower-page section. */
.home-help-grid{display:grid;grid-template-columns:1fr;gap:24px;margin-top:20px;align-items:start}
.home-help-grid>section{min-width:0}
.home-help-grid .home-rules,.home-help-grid .other-ways{margin:0;padding:17px 0;border:0;border-top:1px solid var(--line)}
.home-help-grid summary{font-size:18px;line-height:1.5;min-height:32px}
.home-help-grid .guide-links{display:grid;gap:10px;margin:18px 0 0}
.home-help-grid .other-ways-options{grid-template-columns:1fr}
@media(max-width:700px){.home-help-grid{grid-template-columns:1fr;gap:12px}}

/* More Information uses the same disclosure rows as Frequently Asked Questions. */
.more-info-actions{display:block}
.home-help-grid .more-info-actions details{margin:0;padding:17px 0;border:0;border-top:1px solid var(--line)}
.home-help-grid .more-info-actions .guide-links{display:block;margin:0}
.home-help-grid summary,.home-help-grid .more-info-actions a.info-action{display:list-item;list-style-position:inside;list-style-type:disclosure-closed;color:var(--ink);font:650 18px/1.5 'Nunito Sans',sans-serif;min-height:32px;text-align:left;cursor:pointer;touch-action:manipulation}
.home-help-grid details[open]>summary{list-style-type:disclosure-open}
.home-help-grid .more-info-actions a.info-action{padding:17px 0;margin:0;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none;text-decoration:none}
.home-help-grid .more-info-actions a.info-action:hover{text-decoration:underline}
.more-info-actions .info-panel{padding:14px 0 0;border:0;background:transparent}
.more-info-actions .info-panel>ol{margin:0;padding-left:23px}
.more-info-actions .info-panel>p:last-child{margin-bottom:0}
.more-info-actions .other-ways-options{margin:0;gap:10px}

/* Shared responsive typography: one size per heading level across the site. */
:root{
 --type-h1:clamp(2rem,calc(1.5rem + 2vw),2.75rem);
 --type-h2:clamp(1.5rem,calc(1.25rem + 1vw),1.75rem);
 --type-h3:clamp(1.125rem,calc(1.05rem + .4vw),1.25rem);
 --type-body:clamp(1.0625rem,calc(1rem + .25vw),1.125rem);
 --type-control:var(--type-body);
 --type-lead:clamp(1.125rem,calc(1.05rem + .3vw),1.25rem);
 --type-small:.9375rem;
 --type-label:.875rem;
}
body{font-size:var(--type-body);line-height:1.6}
body:not(.playing) p,body:not(.playing) li{font-size:var(--type-body);line-height:1.6}
body:not(.playing) h1,body:not(.playing) :is(.hero,.setup,.lobby-heading,.pricing-page,.guide-page,.shared-result,.admin-page) h1{
 font-size:var(--type-h1);font-weight:700;line-height:1.15;letter-spacing:-.025em;text-wrap:balance;overflow-wrap:anywhere
}
body:not(.playing) h2,body.playing dialog h2,body .profile-dialog h2,body .profile-heading h2,body .chat-heading h2,body .win-popup h2,body .score-share-dialog h2,body .install-dialog h2,body.playing .notice h2{
 font-size:var(--type-h2);font-weight:700;line-height:1.25;letter-spacing:-.015em;text-wrap:balance;overflow-wrap:anywhere
}
body:not(.playing) h3,body.playing dialog h3{font-size:var(--type-h3);font-weight:700;line-height:1.3;letter-spacing:-.01em;text-wrap:balance}
body:not(.playing) .intro,body:not(.playing) .guide-lead{font-size:var(--type-lead);line-height:1.6}
body:not(.playing) button,body:not(.playing) .guide-cta{font-size:var(--type-control);line-height:1.4;min-height:48px}
body:not(.playing) .hero .modes button,body:not(.playing) .home-invite{font-size:var(--type-control);min-height:56px}
body:not(.playing) input:not([type=checkbox]):not([type=radio]),body:not(.playing) textarea,body:not(.playing) select{font-size:var(--type-body);line-height:1.5;min-height:48px}
body:not(.playing) label,body:not(.playing) summary,body .home-help-grid summary,body .home-help-grid .more-info-actions a.info-action{font-size:var(--type-control);font-weight:700;line-height:1.5}
body:not(.playing) .eyebrow,body:not(.playing) .breadcrumbs{font-size:var(--type-label);line-height:1.5}
body:not(.playing) .subtle,body:not(.playing) small,body:not(.playing) .billing-caption,body:not(.playing) .chat-caption,body:not(.playing) .site-footer,
body:not(.playing) .daily-start-note,body:not(.playing) .friend-challenge .join-code .subtle,body .other-ways-options small{font-size:var(--type-small);line-height:1.55}
body .profile-dialog p,body .profile-dialog li,body .chat-dialog p,body .win-popup .win-message,body .score-share-dialog p{font-size:var(--type-body);line-height:1.6}
body dialog button,body dialog input,body dialog textarea,body dialog select,body .profile-dialog .profile-input,body dialog label,body dialog summary{font-size:var(--type-control);line-height:1.5}
body .profile-dialog .stat-caption,body .profile-id,body .profile-dialog small,body .profile-dialog .subtle,body .chat-dialog .chat-caption,body .win-popup .win-score-note,body .win-popup .win-word-label,body .win-popup .win-kicker,body .win-popup #win-share-status,body .win-stats span,body .profile-stats span,body .daily-mini-stats span{font-size:var(--type-small);line-height:1.5}
body .profile-stats b,body .daily-mini-stats b,body .win-stats b{font-size:var(--type-h2);line-height:1.2;letter-spacing:0}
body .streak-awards p,body .home-invite-card p,body .joining-status p{font-size:var(--type-body);line-height:1.55}
body .home-invite-card strong{font-size:var(--type-control)}
body .joining-status ol,body .joining-status li{font-size:var(--type-label);line-height:1.5}
body .guide-links a,body .guide-play-link{font-size:var(--type-control);line-height:1.5}
body .price{font-size:clamp(2rem,calc(1.5rem + 2vw),2.5rem);line-height:1.2}
body .plan-choice b{font-size:var(--type-h3);line-height:1.3}
/* Board lettering remains Itim; supporting text follows a compact readable scale. */
body.playing .gamebar h2{font-size:var(--type-h2);line-height:1.2;letter-spacing:0}
body.playing .error,body.playing .notice p,body .game-tips,body .game-tips p{font-size:var(--type-small);line-height:1.5}
body.playing .roomstrip{font-size:var(--type-label);line-height:1.4}
body.playing #connection,body.playing .daily-strip>span:first-child,body.playing .daily-strip span:last-child{font-size:13px;line-height:1.4}
body.playing .label,body.playing .word-workspace .label,body.playing .composer>.label,body.playing .history>.label,body.playing .keyboard-mode-hint,body.playing .workspace-hint{font-size:13px;line-height:1.35}
body.playing .gamebar .eyebrow{font-size:12px;line-height:1.4}
body.playing .workspace-tools button{font-size:13px;line-height:1.3}
body.playing .alphabet-dock .alphabet-modes button,body.playing .share-actions button{font-size:15px;line-height:1.4}
@media(max-width:700px){
 body:not(.playing) .logo{font-size:20px}
 body:not(.playing) .header-actions button{font-size:16px;line-height:1.3;min-height:44px;padding:10px 12px}
}

body.playing dialog :is(button,input,textarea,select,label,summary){font-size:var(--type-control);line-height:1.5}
body:not(.playing) dialog button,body.playing dialog button{min-height:44px}
body .chat-heading p,body.playing .notice .result-actions>span{font-size:var(--type-small);line-height:1.5}
body.playing .notice .result-actions button{font-size:15px;line-height:1.4;min-height:44px}

/* Keep the example neutral: shared-letter counts never reveal letter positions. */
.hero .demo .row .tile:nth-child(n){background:var(--pale);color:var(--ink);border-color:var(--line)}

.home-other-ways{margin-top:16px}
.other-play-links{display:flex;flex-wrap:wrap;gap:8px 22px}
body:not(.playing) .other-play-links button{display:inline-flex;align-items:center;min-height:44px;padding:4px 0;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--ink);font-size:var(--type-small);text-decoration:underline;text-underline-offset:4px}

/* Keep the mobile keyboard at the viewport floor; give the saved height to guesses. */
@media(max-width:700px){
 body.playing:not(:has(.notice)){height:var(--screen-height,100dvh);min-height:0;overflow:hidden}
 body.playing:not(:has(.notice)) main{flex:1 1 0;min-height:0;padding-bottom:0}
 body.playing:not(:has(.notice)) .boards{flex:1 1 0;min-height:0}
 body.playing:not(:has(.notice)) .board{border-bottom:0;border-bottom-left-radius:0;border-bottom-right-radius:0}
 body.playing:not(:has(.notice)) .boardbody{min-height:0;padding-bottom:0;gap:5px}
 body.playing:not(:has(.notice)) .history{flex:1 1 0;min-height:0;max-height:none}
 body.playing:not(:has(.notice)) .guess-list{min-height:0}
 body.playing:not(:has(.notice)) .game-tips,body.playing:not(:has(.notice))>.memorial-footer{display:none}
 .playing .alphabet-dock{margin-top:0;padding-top:5px;padding-bottom:0;flex-shrink:0}
 .playing .alphabet-dock .alphabet-toolbar{margin-bottom:3px;min-height:32px}
 .playing .alphabet-dock .alphabet-modes button{min-height:32px;padding:4px 8px;font-size:14px}
 .playing .alphabet-dock .keyboard-mode-hint{display:none}
 .playing .alphabet.ios-keyboard{gap:4px;padding:3px 0 0}
 .playing .alphabet.ios-keyboard .alpha,.playing .keyboard-backspace{height:36px;min-height:36px;font-size:20px}
 .playing .keyboard-actions{margin-top:0;gap:5px}
 .playing .keyboard-enter,.playing .keyboard-clear{min-height:34px;padding:5px 10px}
}
@media(max-width:700px) and (max-height:650px){
 .playing .alphabet.ios-keyboard .alpha,.playing .keyboard-backspace{height:32px;min-height:32px;font-size:19px}
 .playing .alphabet-dock .alphabet-modes button{min-height:30px}
 .playing .alphabet-dock .alphabet-toolbar{min-height:30px}
 .playing .keyboard-enter,.playing .keyboard-clear{min-height:32px}
}

/* Manual mark history stays beside the keyboard, without adding another row. */
.alphabet-toolbar{flex-wrap:wrap}.mark-actions{display:flex;gap:5px;margin-left:auto}.mark-actions button{font-size:13px;min-height:32px;padding:5px 8px;white-space:nowrap}
@media(max-width:700px){.playing .alphabet-dock .alphabet-toolbar{display:flex;flex-direction:row;flex-wrap:wrap;gap:4px}.playing .mark-actions{gap:3px}.playing .mark-actions button{font-size:12px;min-height:30px;padding:4px 6px}.playing .alphabet-dock .alphabet-modes{gap:3px}.playing .alphabet-dock .alphabet-modes button{font-size:13px;padding-inline:6px}}

/* Plus membership has one consistent public badge and a subtle profile treatment. */
.plus-badge{display:inline-flex;align-items:center;gap:3px;vertical-align:middle;margin-left:6px;padding:3px 7px;border:1px solid #a7c8bc;border-radius:999px;background:#e8f3ec;color:#245d43;font:700 11px/1.15 'Nunito Sans',sans-serif;white-space:nowrap;letter-spacing:.15px}
.plus-badge>span{color:#8c651d}.player-avatar.plus-avatar{position:relative;border:2px solid #ab853b;box-shadow:0 0 0 3px #dfebdf;overflow:visible}.avatar-plus{position:absolute;right:-6px;bottom:-4px;width:18px;height:18px;display:grid;place-items:center;border-radius:50%;background:#f7ecd4;color:#765417;border:1px solid #b79753;font:700 13px/1 sans-serif}
.profile-heading.plus-profile{padding:14px;border:1px solid #c8d8cb;border-radius:16px;background:linear-gradient(120deg,#f4f8f0,#edf5fa)}.profile-heading h2{display:flex;align-items:center;gap:3px;flex-wrap:wrap}.profile-heading .plus-badge{font-size:12px}.plus-account-panel{border-top:2px solid #c6d9c9}.plus-active-note,.member-link{color:#245d43;font-weight:700}.header-actions .plus-profile-button{border:1px solid #b79753;background:#f5efdf;color:#294939}.roomstrip .plus-badge{font-size:10px;padding:2px 5px}

/* Calm Continue Playing cards and clear computer level labels. */
body .profile-dialog .active-games .resume-game,body #resume-game{background:var(--card);color:var(--ink);border:1px solid var(--line);box-shadow:none}
body .profile-dialog .active-games .resume-game:hover,body #resume-game:hover{background:var(--pale);border-color:var(--blue)}
body .profile-dialog .active-games .resume-game small,body #resume-game small{color:var(--muted);opacity:1}
body .profile-dialog .active-games .resume-game>span:last-child{color:var(--blue);font-weight:700}
body .difficulty-options>button{background:#f7fbfe;color:#17364d;border:1px solid #b1c6d6;box-shadow:none}
body .difficulty-options>button strong{color:#17364d}
body .difficulty-options>button small{color:#3d586b;opacity:1}
body .difficulty-options>button:hover,body .difficulty-options>button:focus-visible{background:#e5f0f7;border-color:#315f80;outline-color:#315f80}
body .difficulty-options .difficulty-badge{background:#244e6b;color:#fff;border:1px solid #244e6b}
.account-setup-reminder{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:16px 0;padding:13px 15px;background:var(--pale);border:1px solid var(--line);border-radius:12px;text-align:left;color:var(--ink)}
.account-setup-reminder strong{font-size:15px}.account-setup-reminder small{display:block;margin-top:4px;color:var(--muted)}.account-setup-reminder p{margin:5px 0 0;font-size:14px}.account-setup-reminder button{flex-shrink:0}
#account-setup-reminder{max-width:720px;margin-inline:auto}.choose-player-id{margin:16px 0 20px}.choose-player-id label{display:block;font-weight:700}
@media(max-width:420px){.account-setup-reminder{flex-wrap:wrap}.account-setup-reminder button{width:100%}}

.computer-result-medal{background:var(--pale);color:var(--blue);box-shadow:none}

/* Keep member names neutral and readable; the badge carries the Plus accent. */
body .header-actions .plus-profile-button{background:#eaf1f6;border-color:#b4c7d5;color:#17364d}
body .profile-heading.plus-profile h2{color:#17364d}
body .profile-heading.plus-profile .profile-id{color:#405d73}

.player-avatar{position:relative;isolation:isolate}
.player-avatar>img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit;z-index:1}
.player-avatar .avatar-plus{z-index:2}
.avatar-editor{margin:16px 0}.avatar-editor summary{font-weight:700;color:var(--ink)}.avatar-editor label{display:block;margin:12px 0 6px;font-weight:700}.avatar-editor input[type=file]{width:100%;padding:10px}
.avatar-preview{display:block;width:128px;height:128px;object-fit:cover;border-radius:18px;margin:14px 0;border:1px solid var(--line)}
#avatar-status{font-size:14px;color:var(--muted)}

.karma-explainer summary{font-weight:700;cursor:pointer;color:var(--ink);padding:8px 0}.karma-explainer p{margin:8px 0 0}

.notification-toggle{display:flex;align-items:center;gap:10px;font-weight:700;margin:12px 0}.notification-toggle input{width:20px;height:20px;accent-color:var(--blue);flex-shrink:0}

.signup-reminders{border:1px solid var(--line,#cbd5e1);border-radius:12px;margin:18px 0;padding:12px;text-align:left}.signup-reminders legend{font-weight:700;padding:0 5px}.signup-reminders .notification-toggle{margin:10px 0}.notification-setup{max-width:420px;width:calc(100% - 32px);padding:24px;border:0;border-radius:18px}.notification-setup::backdrop{background:#15283d80}

.edit-avatar{padding:0!important;min-height:0!important;border:0!important;background:transparent!important;border-radius:20px;box-shadow:none!important;flex-shrink:0}.edit-avatar:hover{transform:none;outline:2px solid #516e8b;outline-offset:4px}.avatar-choices{border:0;padding:0;margin:18px 0}.avatar-choices legend{font-size:14px;font-weight:700;margin-bottom:10px}.avatar-choice-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.avatar-choice{display:grid;place-items:center;background:#e2eaf1;color:#24364f;border:1px solid #b3c3d2;border-radius:14px;min-height:58px;padding:10px;font-size:30px}.avatar-choice.selected{border:2px solid #344f73;background:#cddde9}.avatar-symbol{font-size:27px;line-height:1}.large .avatar-symbol{font-size:40px}.avatar-editor[open]{background:#e8eff5;border:1px solid #c0cdda;border-radius:14px;padding:14px}

.guided-practice-link{display:block;width:100%;text-align:center;margin:4px auto 0;padding:10px 0;font-size:14px;text-decoration:underline;text-underline-offset:4px;color:#294968}.guided-practice-entry{display:block;width:100%;text-align:center;margin:18px 0}.guided-practice-entry small{display:block;font-size:13px;font-weight:400;line-height:1.5;margin-top:5px}.practice-tip{position:fixed;z-index:1100;right:max(16px,env(safe-area-inset-right));top:max(84px,env(safe-area-inset-top));width:min(350px,calc(100vw - 32px));max-height:calc(100dvh - 110px);overflow:auto;padding:18px;background:#f6f9fc;color:#1d344e;border:2px solid #597a9c;border-radius:16px;box-shadow:0 12px 42px #142c4a40}.practice-tip.tip-at-bottom{top:auto;bottom:max(18px,env(safe-area-inset-bottom))}.practice-tip-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;font-weight:700;color:#49617b}.practice-tip-heading button{font-size:12px;min-height:32px;padding:4px 6px;color:#294968}.practice-tip h2{font-size:22px;letter-spacing:-.6px;margin:8px 0}.practice-tip p{font-size:14px;line-height:1.55;margin:8px 0 14px}.practice-tip-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.practice-tip-actions button{font-size:14px;min-height:40px;padding:9px 13px}.practice-tip-actions small{font-size:11px;color:#49617b}.tour-highlight{outline:3px solid #427aab!important;outline-offset:3px;box-shadow:0 0 0 7px #b6d7ed80;position:relative;z-index:2;border-radius:8px}@media(max-width:600px){.practice-tip{padding:13px;right:12px;width:calc(100vw - 24px);max-height:45dvh;top:72px}.practice-tip h2{font-size:20px}.practice-tip p{font-size:13px;margin-bottom:10px}.practice-tip-heading{font-size:10px}.practice-tip-actions button{min-height:36px;padding:7px 11px}}

.computer-review-dialog{width:min(700px,calc(100vw - 24px));max-height:calc(100dvh - 28px);overflow:auto;border:1px solid #adc1d3;border-radius:18px;background:#f3f7fa;color:#203951;padding:22px}.computer-review-dialog::backdrop{background:#10243899}.review-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.review-heading h2{font-size:28px;margin:7px 0;letter-spacing:-.7px}.review-secrets{font-size:14px;line-height:1.6}.review-controls{display:flex;gap:8px;justify-content:space-between;margin:18px 0 10px}.review-controls button{font-size:14px;min-height:42px;padding:9px 12px}.review-position{display:block;font-size:12px;color:#465f75}.review-range{width:100%;accent-color:#345f82;margin:10px 0 16px;min-height:28px}.review-boards{display:grid;grid-template-columns:1fr 1fr;gap:16px}.review-boards section{background:#e5edf3;border:1px solid #bbccda;border-radius:12px;padding:12px}.review-boards h3{font-size:15px;margin:0 0 12px}.review-row{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #c3d2de;padding:9px 5px;font-size:17px}.review-word{letter-spacing:3px;font-weight:750}.review-current{background:#cce1ed;border-radius:7px;outline:2px solid #487594}.review-row b{display:grid;place-items:center;background:#f7fbfd;width:29px;height:29px;border-radius:7px}.review-explanation{background:#fff;border:1px solid #c0d0dd;border-radius:12px;padding:15px;margin-top:16px}.review-explanation h3{font-size:17px;margin:0 0 8px}.review-explanation p{font-size:14px;line-height:1.6;margin:8px 0}.review-explanation summary{cursor:pointer;font-size:14px;font-weight:700}@media(max-width:500px){.computer-review-dialog{padding:16px}.review-boards{gap:8px}.review-boards section{padding:10px 7px}.review-word{font-size:15px;letter-spacing:2px}.review-controls button{font-size:12px;padding:8px}.review-heading h2{font-size:25px}}

.completed-score{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0 16px}.completed-score>div{display:flex;flex-direction:column;gap:4px;background:#edf5fa;border:1px solid #a6c2d5;border-radius:12px;padding:12px 14px;color:#203c53}.completed-score>div>span{font-size:12px;font-weight:700}.completed-score strong{font-size:28px;line-height:1.15}.completed-score strong small{font-size:14px;font-weight:600}.completed-score>div>small{font-size:11px;color:#405c70}.completed-score-note{font-weight:700}.playing .notice .completed-score{margin:8px 0 10px}.playing .notice .completed-score>div{padding:8px 11px}.playing .notice .completed-score strong{font-size:25px}@media(max-width:600px){.completed-score{gap:8px}.completed-score strong{font-size:26px}.completed-score strong small{font-size:12px}}

.membership-summary{margin:14px 0 22px;padding:16px;border:1px solid #bccbd7;border-radius:14px;background:#eaf1f6}.profile-dialog .membership-summary h3{margin:0 0 10px}.membership-summary p{margin:9px 0}.membership-summary .theme-choice{margin-bottom:0}

.skill-badge{display:inline-flex;align-items:center;gap:4px;vertical-align:middle;font:700 10px/1.3 Nunito Sans,sans-serif;letter-spacing:0;padding:4px 7px;margin-left:7px;border-radius:20px;background:#e6edf2;color:#39536a;border:1px solid #b3c5d4;white-space:nowrap}.skill-skilled{background:#dcece4;color:#285743;border-color:#a4c9b7}.skill-expert{background:#e5e0f1;color:#514174;border-color:#c0b1d8}.skill-elite{background:#f1e6c9;color:#68501a;border-color:#cfb975}.avatar-skill{position:absolute;left:-6px;bottom:-4px;z-index:3;display:grid;place-items:center;width:20px;height:20px;line-height:1;border:1px solid #8ca6ba;border-radius:6px;background:#edf4f8;color:#29475e;font-size:11px;font-weight:800}.avatar-skill.skill-skilled{background:#dcece4;color:#285743}.avatar-skill.skill-expert{background:#e5e0f1;color:#514174}.avatar-skill.skill-elite{background:#f1e6c9;color:#68501a}.profile-heading .skill-badge{font-size:11px}.profile-dialog .skill-help{padding:7px 0 14px;margin-top:-10px}.skill-help summary{font-size:12px}.profile-dialog .skill-help p{font-size:12px}

.clue-explanation{max-width:440px;width:calc(100% - 32px);max-height:80dvh;overflow:auto;box-sizing:border-box}.clue-explanation ol{padding-left:1.5em;line-height:1.6}.clue-explanation li{margin:14px 0}.clue-conclusion{font-weight:800;padding:14px;border-radius:12px;background:var(--pale);color:var(--ink)}
.learning-tools{display:flex;align-items:center;gap:6px 12px;flex-wrap:wrap;margin:4px 0 9px}.learning-tools .quiet{font-size:12px;padding:5px 0;min-height:28px;text-decoration:underline;text-underline-offset:3px}.learning-tap-help{font-size:11px;color:var(--muted)}.mark-conflict{font-size:12px!important;padding:6px 10px!important;border:1px solid #c8a16b;background:#fff2d9;color:#66451b;border-radius:9px}.hint-nudge{font-size:17px;line-height:1.7}.clue-explanation #hint-reasoning{display:block;margin:16px 0}.game-lesson{background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin:14px 0;text-align:left;font-size:14px;line-height:1.6}.game-lesson summary{font-weight:800;cursor:pointer}.game-lesson ol{padding-left:20px}.game-lesson li{margin:8px 0}.game-lesson .clue-conclusion{padding:10px}.head-to-head{display:block;font-size:12px;font-weight:600;margin-top:5px}.rivalries{margin:18px 0}.rivalries summary{font-weight:800;cursor:pointer}.rivalry-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.rivalry-row>div{min-width:0;overflow-wrap:anywhere}.rivalry-row small,.rivalry-score,.friend-record{display:block;font-size:12px;color:var(--muted);margin-top:4px}.rivalry-row button{flex-shrink:0;font-size:12px;padding:8px 10px}.friend-record{font-weight:600}
body.playing .learning-tools .mark-conflict{color:#66451b!important;background:#fff2d9!important;border-color:#c8a16b!important}

/* Preserve readable guess history when mobile room controls exceed the viewport. */
@media(max-width:700px){
 body.playing:not(:has(.notice)){height:auto;min-height:var(--screen-height,100dvh);overflow:auto}
 body.playing:not(:has(.notice)) main{flex:1 0 auto}
 body.playing:not(:has(.notice)) .boards{flex:1 0 auto}
 body.playing:not(:has(.notice)) .history{flex:1 0 156px;min-height:156px;max-height:32dvh;overflow:auto}
 body.playing:not(:has(.notice)) .guess-list{min-height:120px}
}

.mode-short{display:none}
@media(max-width:700px){
 .playing .alphabet-toolbar .mode-full{display:none}
 .playing .alphabet-toolbar .mode-short{display:inline}
 .playing .alphabet-dock .alphabet-toolbar{flex-wrap:nowrap;gap:4px;margin-bottom:3px}
 .playing .alphabet-toolbar .alphabet-modes{flex:1;min-width:0;padding:0;gap:4px}
 body.playing .alphabet-dock .alphabet-modes button{flex:1;min-height:36px;padding:4px 6px;font-size:13px;white-space:nowrap}
 .playing .alphabet-toolbar .mark-actions{flex:none;margin-left:0;gap:2px}
 .playing .mark-actions button{min-height:36px;padding:4px 5px}
 .playing .composer{padding-top:3px}
 body.playing .composer>.label{margin:0 0 3px}
 .playing .composer-tools:empty,.playing #err:empty{display:none}
 .playing .alphabet-dock{padding-top:3px}
 .playing .keyboard-actions{padding-top:0;margin-bottom:0}
}

.replay-tip{margin-top:14px;padding:12px 14px;border-left:3px solid var(--blue,#237db5);border-radius:8px;background:var(--panel,#eaf4fb)}.replay-tip h3{margin:0 0 6px}.replay-tip p{margin:0}

/* Keep finished games focused on the result; board tools belong to play. */
body.playing:has(.finished-board) .gamebar h2,body.playing:has(.finished-board) .game-tips,
.finished-board .word-workspace,.finished-board .learning-tools,.finished-board .alphabet-dock,.finished-board .waiting,.finished-board .boardhead{display:none}
.finished-board{margin-top:18px}.finished-board>summary{cursor:pointer;font-weight:700;padding:12px 0}.finished-board .boards{margin-top:8px}.finished-board .history{min-height:100px!important;max-height:40dvh}
.result-main-actions{display:grid;gap:10px;margin:22px 0 12px}.result-main-actions button{width:100%;margin:0}.result-short-score{font-size:22px;font-weight:700;margin:12px 0 8px}.result-word{margin:8px 0;color:var(--muted,#496475)}
.win-popup #win-title{margin:10px 26px 0}.win-popup #win-share-status:empty{display:none}

/* Approved Polar Blue refinements: retain the game layout and letter styling. */
body.playing .word-workspace{border:0;background:transparent;padding:0;border-radius:0}
body.playing .board{box-shadow:0 3px 12px #142b4008}
body.playing .history{margin-top:14px;margin-bottom:14px}
body.playing .history .empty{background:color-mix(in srgb,var(--bg) 45%,var(--card));border-color:color-mix(in srgb,var(--line) 50%,var(--card))}
body.playing .gamebar h2{font-family:'Nunito Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-weight:700;text-transform:none;letter-spacing:0}
body.playing .label,body.playing .word-workspace .label,body.playing .composer>.label,body.playing .history>.label{font-weight:700;letter-spacing:.2px}
body.playing .gamebar .eyebrow{letter-spacing:0}
body.playing .workspace-hint{font-size:13px;line-height:1.5}
body.playing .alphabet-dock{margin-top:8px;padding-top:8px}
body.playing .alphabet-toolbar{gap:2px}
body.playing .alphabet-toolbar .mode-full{display:none}
body.playing .alphabet-toolbar .mode-short{display:inline}
body.playing .keyboard-mode-hint{margin:0;font-size:11px}
body.playing .mark-actions button{font-weight:400}
body.playing .boards .alphabet.ios-keyboard button.alpha{box-shadow:0 1px 0 color-mix(in srgb,var(--line) 85%,var(--blue))}
body .win-popup #win-title{font-size:34px;font-weight:700;line-height:1.15;margin:10px 22px 0}
body .win-popup .result-short-score{font-size:26px;font-weight:700;line-height:1.25;margin:14px 0 8px}
body .win-popup .result-main-actions{gap:8px;margin:18px 0 6px}
body .win-popup #win-share{background:transparent;font-weight:400;text-decoration:underline;text-underline-offset:3px;box-shadow:none}
@media(max-width:700px){
 body.playing .alphabet-dock{margin-top:6px;padding-top:3px}
 body.playing .alphabet-dock .alphabet-toolbar{gap:2px}
 body .win-popup #win-title{font-size:32px}
 body .win-popup .result-short-score{font-size:25px}
}

/* Mobile spacing pass: save surrounding space, preserve letter/key sizes. */
@media(max-width:700px){
 body.playing main{padding-top:6px;padding-inline:8px}
 body.playing .gamebar{margin-bottom:8px;gap:8px}
 body.playing .gamebar h2{margin:3px 0 0}
 body.playing .gamebar .eyebrow{line-height:1.25}
 body.playing .boardbody{padding:8px 9px 0;gap:4px}
 body.playing .word-workspace>.label{margin:0 0 5px}
 body.playing .workspace-tools{margin-top:4px;gap:3px}
 body.playing .workspace-hint{margin:4px 0 0;font-size:12px;line-height:1.35}
 body.playing .learning-tools{margin:1px 0 3px;gap:4px 8px}
 body.playing .history{margin-top:6px;margin-bottom:6px}
 body.playing .history>.label{margin-bottom:6px}
 body.playing .history .empty{padding:16px 10px}
 body.playing .composer{padding-top:0}
 body.playing .composer>.label{margin:0 0 3px}
 body.playing #err:empty,body.playing .composer-tools:empty{display:none}
 body.playing .alphabet-dock{margin-top:2px;padding-top:3px}
 body.playing .alphabet-dock .alphabet-toolbar{margin-bottom:2px}
 body.playing .keyboard-actions{padding-top:0;margin-top:0}
 body.playing .roomstrip{gap:5px;margin-bottom:6px;padding-block:6px}
}
@media(max-width:700px){
 body:has(.hero) header{padding-block:10px;gap:8px}
 body:not(.playing) main:has(.hero){padding:18px 16px 24px}
 body:not(.playing) .hero{padding:0;gap:22px}
 body:not(.playing) .hero .eyebrow{padding:6px 10px}
 body:not(.playing) .hero h1{margin:12px 0}
 body:not(.playing) .hero .intro{margin:0;line-height:1.5}
 body:not(.playing) .hero .modes{margin-top:16px;gap:8px}
 body:not(.playing) .hero .modes button{min-height:48px;padding:10px 14px}
 body:not(.playing) .hero .guided-practice-link{margin:0;padding:6px 0;min-height:44px}
 body:not(.playing) .hero .subtle{margin-top:10px;margin-bottom:0;line-height:1.5}
 body:not(.playing) .hero .demo{padding:18px;transform:none}
 body:not(.playing) .hero .demohead{margin-bottom:12px}
 body:not(.playing) .hero .demo .row{margin:10px 0}
 body:not(.playing) .hero .demo .tile{height:44px;box-shadow:none}
 body:not(.playing) .hero .demofoot{padding-top:12px;margin-top:14px;line-height:1.5}
 body:not(.playing) .features{margin-top:22px;gap:8px}
 body:not(.playing) .features>span{padding:12px 14px}
 body:not(.playing) .home-guide{margin-top:24px;padding-top:20px;margin-bottom:16px}
 body:not(.playing) .home-guide h2{margin:10px 0 12px}
 body:not(.playing) .home-guide h3{margin-top:18px;margin-bottom:8px}
 body:not(.playing) .home-guide p{margin:8px 0;line-height:1.55}
 body:not(.playing) .home-guide details{padding:12px 0}
 body:not(.playing) .home-guide summary{min-height:44px;display:flex;align-items:center;gap:8px}
 body:not(.playing) .home-guide summary::before{content:'▸';font-size:12px}
 body:not(.playing) .home-guide details[open]>summary::before{content:'▾'}
 body:not(.playing) .home-guide summary{list-style:none}
 body:not(.playing) .home-guide summary::-webkit-details-marker{display:none}
 body:not(.playing) .site-footer{margin-top:20px;padding-block:18px;gap:12px}
}
@media(max-width:700px){
 body:not(.playing) .site-footer nav{flex-wrap:wrap;gap:8px 14px;min-width:0}
 body:not(.playing) .site-footer nav a{display:inline-flex;align-items:center;min-height:44px}
}

.inline-plus[hidden],.hero .subtle:has(#free-daily-intro[hidden]):has(.inline-plus[hidden]){display:none}

/* Membership belongs to the existing Home menu, not a separate content row. */
.header-actions #header-membership{font-size:14px;min-height:44px;white-space:normal;line-height:1.2}
.header-actions #header-membership[hidden],body:not(:has(.hero)) .header-actions #header-membership{display:none}
@media(max-width:700px){
 body:has(.hero) .header-actions:has(#header-membership:not([hidden])){width:100%;display:flex;gap:5px}
 body:has(.hero) .header-actions #header-membership{flex:1;min-width:94px;padding:6px 8px;font-size:13px;max-width:160px}
 body:has(.hero) .header-actions:has(#header-membership:not([hidden])) #profile-button{max-width:80px;font-size:13px;padding:8px 10px}
 body:has(.hero) .header-actions:has(#header-membership:not([hidden])) #install{font-size:13px;padding:8px 10px}
 body:has(.hero) .header-actions:has(#header-membership:not([hidden])) #rules{min-width:40px;padding:8px 10px}
}

.home-tagline-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.home-corner-membership{display:none}
@media(max-width:700px){
 body:has(.hero) .header-actions #header-membership{display:none}
 body:has(.hero) .header-actions:has(#header-membership:not([hidden])){width:auto;margin-left:auto;gap:5px}
 body:not(.playing) .hero{gap:10px}
 body:not(.playing) .home-tagline-row{align-items:center;gap:8px}
 body:not(.playing) .home-tagline-row .eyebrow{min-width:0;font-size:11px;letter-spacing:.55px;padding:6px 8px;white-space:nowrap}
 body:not(.playing) .home-corner-membership:not([hidden]){display:block;flex:0 0 102px;min-height:40px;padding:3px 0;font-size:12px;line-height:1.25;text-align:right;text-decoration:underline;text-underline-offset:3px;color:var(--ink);background:transparent;box-shadow:none}
 body:not(.playing) .home-corner-membership[hidden]{display:none}
 body:not(.playing) .hero .guided-practice-link{padding-bottom:2px}
}
@media(min-width:360px) and (max-width:700px){
 body:has(.hero) header{padding:8px 10px;gap:6px;flex-wrap:nowrap}
 body:has(.hero) header .logo{font-size:17px;letter-spacing:-.6px;gap:6px}
 body:has(.hero) header .logo-icon{width:28px;height:28px;min-width:28px}
 body:has(.hero) .header-actions{display:flex;gap:4px;margin-left:auto;flex-shrink:0}
 body:not(.playing):has(.hero) .header-actions button{font-size:12px;min-height:44px;padding:6px 8px}
 body:has(.hero) .header-actions #profile-button{max-width:64px}
 body:has(.hero) .header-actions #rules{min-width:32px;padding-inline:8px}
}

/* Stronger Home hierarchy, with a larger headline and membership link. */
body:not(.playing) .hero h1{font-size:clamp(44px,4.5vw,60px);font-weight:700;line-height:1.08}
body:not(.playing) .hero .demohead,body:not(.playing) .features>span,body:not(.playing) .home-guide summary,body:not(.playing) .hero .guided-practice-link{font-weight:700}
body:not(.playing) .hero .demohead{letter-spacing:.7px}
@media(max-width:700px){
 body:not(.playing) .hero h1{font-size:clamp(35px,9.8vw,40px);line-height:1.08;letter-spacing:-1px}
 body:not(.playing) .home-corner-membership:not([hidden]){flex-basis:112px;font-size:14px;font-weight:700;line-height:1.2}
 body:not(.playing) .home-tagline-row .eyebrow{letter-spacing:.15px;font-weight:700}
 body:not(.playing) .hero .demohead{font-size:12px}
 body:not(.playing) .home-guide h2,body:not(.playing) .home-guide h3{font-weight:700}
}
@media(max-width:350px){
 body:not(.playing) .home-tagline-row .eyebrow{font-size:10px;padding-inline:5px;letter-spacing:0}
 body:not(.playing) .home-tagline-row{gap:5px}
 body:not(.playing) .home-corner-membership:not([hidden]){flex-basis:104px;font-size:13px}
}

/* Make the tagline readable without spending extra vertical space. */
@media(max-width:700px){
 body:not(.playing) .home-tagline-row .eyebrow{font-size:14px;letter-spacing:0;line-height:1.15;white-space:normal;text-wrap:balance;padding:6px 8px}
 body:not(.playing) .hero h1{margin-top:10px;margin-bottom:10px}
 body:not(.playing) .hero{gap:8px}
}
@media(max-width:350px){
 body:not(.playing) .home-tagline-row .eyebrow{font-size:13px;padding-inline:5px}
}

.account-access{border:1px solid var(--line,#b4cbdc);border-radius:16px;padding:18px;margin:16px 0}.account-access details{margin:12px 0}.account-access summary{font-weight:700;cursor:pointer}.account-access form{margin-top:12px}.account-access h2,.account-access h3{margin-top:0}#signup-email-fields[hidden],#signup-phone-fields[hidden]{display:none}
