@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap";.how-to-play h2{margin:0}.htp-slideshow{display:flex;flex-direction:column;gap:.75rem}.htp-stage{position:relative;height:170px;overflow:hidden;background:var(--color-inset);border:1px solid var(--color-inset-border);border-radius:10px}.htp-caption{margin:0;text-align:center;font-size:.92rem;color:var(--color-text-secondary);min-height:1.4em}.htp-nav{display:flex;align-items:center;justify-content:center;gap:.75rem}.htp-arrow{background:transparent;border:1px solid var(--color-border);color:var(--color-text-secondary);width:32px;height:32px;border-radius:50%;font-size:1.1rem;cursor:pointer;display:grid;place-items:center;transition:background .12s,color .12s;padding:0;line-height:1}.htp-arrow:hover{background:var(--color-bg-secondary);color:var(--color-text)}.htp-dots{display:flex;gap:.4rem}.htp-dot{width:8px;height:8px;border-radius:50%;background:var(--color-border);border:none;padding:0;cursor:pointer;transition:background .2s,transform .2s}.htp-dot:hover{background:var(--color-text-secondary)}.htp-dot.active{background:var(--color-text);transform:scale(1.25)}.htp-tile{position:absolute;width:40px;height:40px;display:grid;place-items:center;font-size:1.1rem;font-weight:700;background:var(--color-tile-bg);color:var(--color-tile-text);border:2px solid var(--color-tile-border);border-radius:7px;box-shadow:0 2px 4px var(--color-tile-shadow)}.htp-tile-small{width:30px;height:30px;font-size:.85rem;border-radius:5px;border-width:1.5px}.htp-tile-facedown{background:repeating-linear-gradient(-45deg,var(--color-tile-reveal-stripe1) 0 7px,var(--color-tile-reveal-stripe2) 7px 14px);color:#fff9;border-color:var(--color-border);font-size:1rem}.htp-tile-claimed{border-color:var(--color-wordle-green);background:var(--color-wordle-green);color:#fff}.htp-tile-opponent{border-color:var(--color-tile-border);background:var(--color-tile-bg);color:var(--color-tile-text)}.htp-scene{position:absolute;top:0;right:0;bottom:0;left:0}.htp-label{position:absolute;font-size:.75rem;font-weight:600;color:var(--color-text-secondary);letter-spacing:.02em}.htp-word-group{position:absolute;display:flex;gap:3px}.htp-winner-badge{position:absolute;font-size:.7rem;font-weight:700;padding:.15rem .5rem;border-radius:999px;background:var(--color-winner-badge-bg);border:1px solid var(--color-winner-badge-border);color:var(--color-winner-badge-text);animation:htp-badge-pulse 2s ease-in-out infinite}.htp-bag-icon{position:absolute;width:44px;height:50px;border:2px solid var(--color-border);border-radius:6px 6px 10px 10px;background:var(--color-bg-secondary);display:flex;align-items:center;justify-content:center;font-size:1.2rem;font-weight:700;color:var(--color-text-secondary)}.htp-presteal-box{position:absolute;display:flex;align-items:center;gap:.35rem;padding:.35rem .65rem;background:var(--color-panel);border:1.5px solid var(--color-border);border-radius:8px;font-size:.72rem;font-weight:600;color:var(--color-text-secondary);white-space:nowrap}.htp-presteal-box .htp-keyword{color:var(--color-info);font-weight:700}@keyframes htp-flip{0%{transform:perspective(400px) rotateY(0) scale(.95)}45%{transform:perspective(400px) rotateY(90deg) scale(1.05)}to{transform:perspective(400px) rotateY(180deg) scale(.96)}}@keyframes htp-flip-to-revealed{0%,44%{background:repeating-linear-gradient(-45deg,var(--color-tile-reveal-stripe1) 0 7px,var(--color-tile-reveal-stripe2) 7px 14px);border-color:var(--color-border);color:#fff9}45%,to{background:var(--color-tile-bg);border-color:var(--color-tile-border);color:var(--color-tile-text)}}@keyframes htp-flip-show-letter{0%,44%{opacity:0}45%{opacity:1}to{opacity:1}}@keyframes htp-flip-hide-pattern{0%,44%{opacity:1}45%{opacity:0}to{opacity:0}}@keyframes htp-highlight{0%{border-color:var(--color-tile-border);background:var(--color-tile-bg);color:var(--color-tile-text)}to{border-color:var(--color-wordle-green);background:var(--color-wordle-green);color:#fff}}@keyframes htp-slide-down{0%{transform:translateY(0)}to{transform:translateY(50px)}}@keyframes htp-fade-out{0%{opacity:1}to{opacity:.35}}@keyframes htp-slide-down-claim{0%{transform:translateY(0) scale(1)}50%{transform:translateY(55px) scale(1.06);filter:brightness(1.1)}to{transform:translateY(55px) scale(1);filter:brightness(1)}}@keyframes htp-claim-burst{0%{transform:translateY(50px) scale(.95);filter:brightness(.9)}60%{transform:translateY(47px) scale(1.06);filter:brightness(1.12)}to{transform:translateY(50px) scale(1);filter:brightness(1)}}@keyframes htp-fly-to-word{0%{transform:translate(0) scale(1);opacity:1}to{transform:translate(var(--fly-x),var(--fly-y)) scale(.8);opacity:0}}@keyframes htp-shuffle-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.7)}}@keyframes htp-steal-appear{0%{opacity:0;transform:translateY(-15px) scale(.85)}60%{opacity:1;transform:translateY(3px) scale(1.06)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes htp-match-flash{0%{border-color:var(--color-border);box-shadow:0 0 0 0 transparent}50%{border-color:var(--color-info);box-shadow:0 0 8px 2px var(--color-info-bg)}to{border-color:var(--color-info);box-shadow:0 0 4px 1px var(--color-info-bg)}}@keyframes htp-badge-pulse{0%,to{transform:scale(1);opacity:1}50%{transform:scale(1.08);opacity:.85}}@media (max-width: 960px){.htp-stage{height:150px}}:root{color-scheme:light;--color-bg: #ffffff;--color-bg-secondary: #f7f7f8;--color-panel: #ffffff;--color-panel-border: #d3d6da;--color-panel-shadow: rgba(0, 0, 0, .06);--color-inset: #f0f0f1;--color-inset-border: #d3d6da;--color-text: #1a1a1b;--color-text-secondary: #787c7e;--color-text-on-accent: #ffffff;--color-border: #d3d6da;--color-border-light: #e5e7eb;--color-accent: #1a1a1b;--color-accent-hover: #3a3a3c;--color-green: #6aaa64;--color-green-bg: rgba(106, 170, 100, .15);--color-green-border: rgba(106, 170, 100, .5);--color-yellow: #c9b458;--color-yellow-bg: rgba(201, 180, 88, .15);--color-yellow-border: rgba(201, 180, 88, .5);--color-danger: #d32f2f;--color-danger-bg: rgba(211, 47, 47, .1);--color-danger-border: rgba(211, 47, 47, .4);--color-danger-text: #b71c1c;--color-info: #4a90d9;--color-info-bg: rgba(74, 144, 217, .12);--color-info-border: rgba(74, 144, 217, .45);--color-tile-bg: #ffffff;--color-tile-border: #878a8c;--color-tile-text: #1a1a1b;--color-tile-shadow: rgba(0, 0, 0, .08);--color-tile-reveal-bg: #878a8c;--color-tile-reveal-stripe1: #787c7e;--color-tile-reveal-stripe2: #6a6d70;--color-input-bg: #ffffff;--color-input-border: #d3d6da;--color-input-text: #1a1a1b;--color-button-primary-bg: #1a1a1b;--color-button-primary-text: #ffffff;--color-button-secondary-bg: transparent;--color-button-secondary-border: #787c7e;--color-button-secondary-text: #1a1a1b;--color-button-danger-bg: #d32f2f;--color-button-danger-text: #ffffff;--color-overlay: rgba(255, 255, 255, .8);--color-badge-bg: rgba(74, 144, 217, .12);--color-badge-border: rgba(74, 144, 217, .4);--color-badge-text: #4a90d9;--color-winner-badge-bg: rgba(201, 180, 88, .18);--color-winner-badge-border: rgba(201, 180, 88, .6);--color-winner-badge-text: #8a7a2e;--color-you-border: rgba(74, 144, 217, .5);--color-winner-bg: rgba(201, 180, 88, .1);--color-winner-border: rgba(201, 180, 88, .55);--color-progress-track: #e5e7eb;--color-progress-track-border: #d3d6da;--color-progress-fill: #6aaa64;--color-progress-fill-warning: #c9b458;--color-result-perfect-bg: rgba(106, 170, 100, .15);--color-result-perfect-border: rgba(106, 170, 100, .5);--color-result-perfect-text: #3d7a35;--color-result-amazing-bg: rgba(74, 144, 217, .12);--color-result-amazing-border: rgba(74, 144, 217, .45);--color-result-amazing-text: #2e6ca8;--color-result-great-bg: rgba(138, 82, 209, .12);--color-result-great-border: rgba(138, 82, 209, .45);--color-result-great-text: #6b3fa0;--color-result-good-bg: rgba(201, 180, 88, .15);--color-result-good-border: rgba(201, 180, 88, .5);--color-result-good-text: #8a7a2e;--color-result-ok-bg: rgba(120, 124, 126, .12);--color-result-ok-border: rgba(120, 124, 126, .4);--color-result-ok-text: #585a5c;--color-result-fail-bg: rgba(211, 47, 47, .1);--color-result-fail-border: rgba(211, 47, 47, .4);--color-result-fail-text: #b71c1c;--color-claim-glow: rgba(74, 144, 217, .3);--color-steal-glow: rgba(211, 47, 47, .35);--color-steal-sweep-highlight: rgba(211, 47, 47, .4);--color-steal-sweep-flash: rgba(255, 255, 255, .5);--color-difficulty-active-bg: #1a1a1b;--color-difficulty-active-text: #ffffff;--color-submitted-bg: rgba(74, 144, 217, .1);--color-submitted-border: rgba(74, 144, 217, .55);--color-wordle-green: #6aaa64}[data-theme=dark]{color-scheme:dark;--color-bg: #121213;--color-bg-secondary: #1a1a1b;--color-panel: #1a1a1b;--color-panel-border: #3a3a3c;--color-panel-shadow: rgba(0, 0, 0, .25);--color-inset: #121213;--color-inset-border: #3a3a3c;--color-text: #d7dadc;--color-text-secondary: #818384;--color-text-on-accent: #121213;--color-border: #3a3a3c;--color-border-light: #2c2c2e;--color-accent: #d7dadc;--color-accent-hover: #f0f0f1;--color-green: #538d4e;--color-green-bg: rgba(83, 141, 78, .2);--color-green-border: rgba(83, 141, 78, .55);--color-yellow: #b59f3b;--color-yellow-bg: rgba(181, 159, 59, .2);--color-yellow-border: rgba(181, 159, 59, .55);--color-danger: #e74c4c;--color-danger-bg: rgba(231, 76, 76, .15);--color-danger-border: rgba(231, 76, 76, .45);--color-danger-text: #fca5a5;--color-info: #6aade8;--color-info-bg: rgba(106, 173, 232, .15);--color-info-border: rgba(106, 173, 232, .45);--color-tile-bg: #121213;--color-tile-border: #3a3a3c;--color-tile-text: #d7dadc;--color-tile-shadow: rgba(0, 0, 0, .2);--color-tile-reveal-bg: #3a3a3c;--color-tile-reveal-stripe1: #4a4a4c;--color-tile-reveal-stripe2: #3a3a3c;--color-input-bg: #2c2c2e;--color-input-border: #3a3a3c;--color-input-text: #d7dadc;--color-button-primary-bg: #d7dadc;--color-button-primary-text: #121213;--color-button-secondary-bg: transparent;--color-button-secondary-border: #818384;--color-button-secondary-text: #d7dadc;--color-button-danger-bg: #e74c4c;--color-button-danger-text: #ffffff;--color-overlay: rgba(0, 0, 0, .75);--color-badge-bg: rgba(106, 173, 232, .15);--color-badge-border: rgba(106, 173, 232, .45);--color-badge-text: #6aade8;--color-winner-badge-bg: rgba(181, 159, 59, .22);--color-winner-badge-border: rgba(181, 159, 59, .65);--color-winner-badge-text: #e5d06c;--color-you-border: rgba(106, 173, 232, .5);--color-winner-bg: rgba(181, 159, 59, .12);--color-winner-border: rgba(181, 159, 59, .55);--color-progress-track: #2c2c2e;--color-progress-track-border: #3a3a3c;--color-progress-fill: #538d4e;--color-progress-fill-warning: #b59f3b;--color-result-perfect-bg: rgba(83, 141, 78, .2);--color-result-perfect-border: rgba(83, 141, 78, .55);--color-result-perfect-text: #7ec879;--color-result-amazing-bg: rgba(106, 173, 232, .15);--color-result-amazing-border: rgba(106, 173, 232, .45);--color-result-amazing-text: #8fc4f0;--color-result-great-bg: rgba(168, 85, 247, .18);--color-result-great-border: rgba(168, 85, 247, .5);--color-result-great-text: #c9a0f5;--color-result-good-bg: rgba(181, 159, 59, .2);--color-result-good-border: rgba(181, 159, 59, .55);--color-result-good-text: #e5d06c;--color-result-ok-bg: rgba(129, 131, 132, .18);--color-result-ok-border: rgba(129, 131, 132, .45);--color-result-ok-text: #a8aaab;--color-result-fail-bg: rgba(231, 76, 76, .15);--color-result-fail-border: rgba(231, 76, 76, .45);--color-result-fail-text: #fca5a5;--color-claim-glow: rgba(106, 173, 232, .35);--color-steal-glow: rgba(231, 76, 76, .4);--color-steal-sweep-highlight: rgba(231, 76, 76, .45);--color-steal-sweep-flash: rgba(255, 255, 255, .45);--color-difficulty-active-bg: #d7dadc;--color-difficulty-active-text: #121213;--color-submitted-bg: rgba(106, 173, 232, .12);--color-submitted-border: rgba(106, 173, 232, .55);--color-wordle-green: #6aaa64}*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,system-ui,sans-serif;background:var(--color-bg);color:var(--color-text);min-height:100vh}h1,h2,h3{font-family:Inter,Segoe UI,system-ui,sans-serif;font-weight:700;margin:0 0 .5rem}.page{padding:2rem 3vw 3rem;display:flex;flex-direction:column;gap:2rem}.page.has-game-log{padding-bottom:11rem}.name-gate{min-height:100vh;display:grid;place-items:center;padding:2rem}.name-card{width:min(520px,92vw);padding:2.5rem;background:var(--color-panel);border:1px solid var(--color-panel-border);border-radius:12px;box-shadow:0 2px 8px var(--color-panel-shadow);text-align:center;display:flex;flex-direction:column;gap:1rem}.name-input{font-size:2rem;padding:.9rem 1.1rem;text-align:center}.header{display:flex;justify-content:space-between;align-items:center;gap:1rem}.subtitle{color:var(--color-text-secondary);margin:0}.status{display:flex;flex-direction:column;align-items:flex-end;gap:.35rem;font-weight:600}.status-identity{display:flex;align-items:center;gap:.4rem}.status-connection{display:flex;align-items:center;gap:.5rem}.status-name{font-size:.95rem}.status-name-input{font-size:.9rem;padding:.2rem .4rem;border-radius:6px;border:1px solid var(--color-input-border);background:var(--color-input-bg);color:var(--color-input-text)}.status-button{border-radius:999px;padding:.2rem .6rem;border:none;font-size:.8rem;font-weight:600;background:var(--color-inset);color:var(--color-text)}.status-button.ghost{background:transparent;border:1px solid var(--color-border)}.status-button:disabled{opacity:.6;cursor:not-allowed}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:999px;border:none;background:var(--color-inset);color:var(--color-text);font-size:.85rem}.icon-button:hover{background:var(--color-border)}.dot{width:10px;height:10px;border-radius:999px;background:var(--color-danger);display:inline-block}.dot.online{background:var(--color-green)}.disconnect-banner{background:var(--color-yellow);color:var(--color-text-on-accent);text-align:center;font-weight:600;font-size:.9rem;max-height:0;opacity:0;overflow:hidden;padding:0 1rem;transition:max-height .3s ease,opacity .3s ease,padding .3s ease}.disconnect-banner.visible{max-height:3rem;padding:.5rem 1rem;opacity:1}.disconnect-banner .dot{width:8px;height:8px;vertical-align:middle;margin-right:.4rem;background:var(--color-text-on-accent);animation:disconnect-pulse 1.5s ease-in-out infinite}@keyframes disconnect-pulse{0%,to{opacity:.4}50%{opacity:1}}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.5rem}.lobby-grid{grid-template-columns:repeat(2,minmax(360px,1fr))}.lobby-grid .panel{min-height:20rem;padding:1.85rem}.panel{padding:1.5rem;background:var(--color-panel);border:1px solid var(--color-panel-border);border-radius:12px;box-shadow:0 2px 8px var(--color-panel-shadow);display:flex;flex-direction:column;gap:1rem}.panel-narrow{width:min(100%,720px);justify-self:center}.panel ul{padding-left:1.2rem;margin:0}.form-section-label{font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--color-text-secondary);border-bottom:1px solid var(--color-border-light);padding-bottom:.3rem;margin:0}:where(#root) label{display:flex;flex-direction:column;gap:.35rem;font-weight:600}label.row{flex-direction:row;align-items:center;justify-content:space-between}:where(#root) input{padding:.6rem .8rem;border-radius:8px;border:1px solid var(--color-input-border);background:var(--color-input-bg);color:var(--color-input-text);font-size:.95rem}:where(#root) textarea{padding:.6rem .8rem;border-radius:8px;border:1px solid var(--color-input-border);background:var(--color-input-bg);color:var(--color-input-text);font-size:.95rem;font-family:inherit;resize:vertical}:where(#root) button{padding:.6rem 1rem;border-radius:8px;border:none;background:var(--color-button-primary-bg);color:var(--color-button-primary-text);font-weight:700;cursor:pointer}:where(#root) button:disabled{opacity:.5;cursor:not-allowed}.button-row{display:flex;gap:.75rem;flex-wrap:wrap}.button-secondary{background:var(--color-button-secondary-bg);border:1px solid var(--color-button-secondary-border);color:var(--color-button-secondary-text)}.button-danger{background:var(--color-button-danger-bg);color:var(--color-button-danger-text);border:none}.button-danger:hover{filter:brightness(1.05)}.room-list{display:flex;flex-direction:column;gap:.75rem}.room-card{display:flex;justify-content:space-between;align-items:center;padding:.6rem .8rem;border-radius:8px;background:var(--color-inset)}.muted{color:var(--color-text-secondary);font-size:.9rem}.muted.compact{margin-block:.15em}.player-list{display:flex;flex-direction:column;gap:.5rem}.player{display:flex;justify-content:space-between;align-items:center;background:var(--color-inset);padding:.5rem .75rem;border-radius:8px}.player.you{border:1px solid var(--color-you-border)}.player.winner{border:1px solid var(--color-winner-border);background:var(--color-winner-bg)}.badge{margin-left:.5rem;font-size:.7rem;padding:.15rem .4rem;border-radius:999px;background:var(--color-badge-bg);border:1px solid var(--color-badge-border);color:var(--color-badge-text)}.winner-badge{background:var(--color-winner-badge-bg);border-color:var(--color-winner-badge-border);color:var(--color-winner-badge-text)}.game{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:1.5rem}.replay-panel{display:flex;flex-direction:column;gap:.9rem}.replay-controls{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.replay-step-label{font-weight:700;min-width:7.5rem}.replay-board-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:1rem}.replay-board,.replay-scoreboard{border-radius:8px;border:1px solid var(--color-border);background:var(--color-inset);padding:.9rem;display:flex;flex-direction:column;gap:.8rem}.replay-board-header{display:flex;justify-content:space-between;align-items:flex-start;gap:.75rem}.replay-pre-steal-panel{margin-top:.25rem}.replay-analysis-panel{border-radius:8px;border:1px solid var(--color-border);background:var(--color-inset);padding:.9rem;display:flex;flex-direction:column;gap:.75rem}.replay-analysis-header{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.replay-import-error{color:var(--color-danger-text);font-size:.9rem;line-height:1.35}.hidden-file-input{display:none}.practice{display:grid;grid-template-columns:minmax(0,1fr)}.practice-board{width:100%}.practice-header{display:flex;justify-content:space-between;align-items:center;gap:1rem}.practice-header-summary{display:flex;align-items:baseline;gap:.65rem;min-width:0}.practice-header-summary h2{margin:0}.practice-header-actions{display:flex;align-items:center;gap:.75rem}.practice-share-action{display:inline-flex;align-items:center}.practice-share-icon-button{width:32px;height:32px;font-size:1rem;line-height:1}.practice-exit-icon-button{width:32px;height:32px;font-size:1rem;line-height:1;background:var(--color-danger);color:#fff}.practice-exit-icon-button:hover{filter:brightness(1.05)}.practice-share-choice-overlay{padding:1rem}.practice-share-choice-modal.join-modal{width:min(420px,calc(100vw - 2rem));box-sizing:border-box;justify-self:center}.practice-share-choice-header{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.practice-share-choice-header h3{margin:0}.practice-share-choice-close{flex:none}.practice-share-choice-actions{display:flex;flex-direction:column;gap:.6rem}.practice-editor{width:min(100%,760px)}.practice-editor-fields{display:flex;flex-direction:column;gap:.85rem}.practice-editor-stats{margin:0}.practice-editor-error{color:var(--color-danger-text);font-size:.9rem;line-height:1.35}.practice-difficulty-control{display:flex;flex-direction:column;align-items:flex-start;gap:.55rem}.practice-difficulty-segmented{display:inline-flex;border:1px solid var(--color-border);border-radius:999px;overflow:hidden}.practice-difficulty-option{background:transparent;color:var(--color-text);border:none;border-right:1px solid var(--color-border);border-radius:0;min-width:2rem;padding:.35rem .6rem}.practice-difficulty-option:last-child{border-right:none}.practice-difficulty-option.active{background:var(--color-difficulty-active-bg);color:var(--color-difficulty-active-text)}.practice-existing-words{max-height:260px;overflow-y:auto}.practice-content{display:flex;flex-direction:column;gap:1rem}.practice-content.result-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);align-items:start;gap:1rem}.practice-puzzle-panel,.practice-result-panel{min-width:0;display:flex;flex-direction:column;gap:1rem}.practice-result{display:flex;flex-direction:column;gap:.9rem}.practice-next-puzzle-button{background:var(--color-green);color:#fff;border:1px solid var(--color-green-border)}.practice-next-puzzle-button:hover{filter:brightness(1.05)}.practice-result-summary{border-radius:8px;border:1px solid var(--color-border);background:var(--color-inset);padding:.85rem .95rem;display:flex;flex-direction:column;gap:.45rem}.practice-result-summary p{margin:0}.practice-result-challenge{margin-top:.35rem;padding-top:.55rem;border-top:1px solid var(--color-border);display:flex;flex-direction:column;gap:.35rem}.practice-result-challenge p{margin:0}.practice-result-challenge-outcome{display:inline-flex;align-items:center;border-radius:999px;padding:.18rem .62rem;border:1px solid transparent;font-size:.8rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.practice-result-challenge-outcome-win{background:var(--color-result-perfect-bg);border-color:var(--color-result-perfect-border);color:var(--color-result-perfect-text)}.practice-result-challenge-outcome-lose{background:var(--color-result-fail-bg);border-color:var(--color-result-fail-border);color:var(--color-result-fail-text)}.practice-result-challenge-outcome-tie{background:var(--color-result-ok-bg);border-color:var(--color-result-ok-border);color:var(--color-result-ok-text)}.practice-result-summary-header{display:flex;justify-content:space-between;align-items:center;gap:.65rem}.practice-result-badge{display:inline-flex;align-items:center;border-radius:999px;padding:.2rem .65rem;font-size:.78rem;font-weight:700;border:1px solid transparent;white-space:nowrap}.practice-result-badge-perfect{background:var(--color-result-perfect-bg);border-color:var(--color-result-perfect-border);color:var(--color-result-perfect-text)}.practice-result-badge-amazing{background:var(--color-result-amazing-bg);border-color:var(--color-result-amazing-border);color:var(--color-result-amazing-text)}.practice-result-badge-great{background:var(--color-result-great-bg);border-color:var(--color-result-great-border);color:var(--color-result-great-text)}.practice-result-badge-good{background:var(--color-result-good-bg);border-color:var(--color-result-good-border);color:var(--color-result-good-text)}.practice-result-badge-ok{background:var(--color-result-ok-bg);border-color:var(--color-result-ok-border);color:var(--color-result-ok-text)}.practice-result-badge-better-luck-next-time{background:var(--color-result-fail-bg);border-color:var(--color-result-fail-border);color:var(--color-result-fail-text)}.practice-options{display:flex;flex-direction:column;gap:.45rem;max-height:min(52dvh,460px);overflow-y:auto;overscroll-behavior:contain;padding-right:.2rem}.practice-option{display:flex;justify-content:space-between;align-items:center;gap:.75rem;border-radius:8px;background:var(--color-inset);border:1px solid var(--color-inset-border);padding:.55rem .7rem}.practice-option.submitted{border-color:var(--color-submitted-border);background:var(--color-submitted-bg)}.practice-option.replay-claimed{border-color:var(--color-wordle-green);background:var(--color-green-bg);box-shadow:inset 0 0 0 1px var(--color-wordle-green)}.practice-option-more{width:100%;background:transparent;color:var(--color-text);border:1px dashed var(--color-border);border-radius:8px;padding:.5rem .7rem;text-align:center;font-weight:600}.practice-submit-error{color:var(--color-danger-text);font-size:.9rem;line-height:1.35}.practice-puzzle-timer{border:1px solid var(--color-info-border);background:var(--color-info-bg);border-radius:8px;padding:.6rem .75rem .7rem;display:flex;flex-direction:column;gap:.45rem}.practice-puzzle-timer.warning{border-color:var(--color-yellow-border);background:var(--color-yellow-bg)}.practice-puzzle-timer-header{display:flex;justify-content:space-between;align-items:center;gap:.65rem;font-size:.9rem}.practice-puzzle-timer-track{height:8px;width:100%;border-radius:999px;overflow:hidden;border:1px solid var(--color-progress-track-border);background:var(--color-progress-track)}.practice-puzzle-timer-progress{height:100%;width:100%;background:var(--color-progress-fill);transition:width .2s linear}.practice-puzzle-timer.warning .practice-puzzle-timer-progress{background:var(--color-progress-fill-warning)}.game-board{min-height:60vh}.game-header{display:flex;justify-content:space-between;align-items:center;gap:1rem}.turn{display:flex;gap:.75rem;align-items:center}.timer{padding:.4rem .75rem;border-radius:999px;background:var(--color-green-bg);border:1px solid var(--color-green-border);width:fit-content}.bag-count-trigger{width:fit-content;cursor:pointer;-webkit-user-select:none;user-select:none;touch-action:manipulation}.bag-count-trigger:hover{color:var(--color-text)}.bag-count-trigger:focus-visible{outline:2px solid var(--color-info);outline-offset:2px;border-radius:4px}.tiles{display:flex;flex-wrap:wrap;gap:.75rem;min-height:140px}.tile{width:56px;height:56px;display:grid;place-items:center;font-size:1.5rem;font-weight:700;background:var(--color-tile-bg);color:var(--color-tile-text);border:2px solid var(--color-tile-border);border-radius:8px;box-shadow:0 2px 4px var(--color-tile-shadow)}.tile-selectable{cursor:pointer;-webkit-user-select:none;user-select:none;touch-action:manipulation;transition:transform .12s ease,box-shadow .12s ease}.tile-selectable:hover{transform:translateY(-2px);box-shadow:0 4px 8px var(--color-tile-shadow)}.tile-selectable:focus-visible{outline:2px solid var(--color-info);outline-offset:2px}.tile-reveal-card{font-size:1.5rem;font-weight:800;color:var(--color-text);background:repeating-linear-gradient(-45deg,var(--color-tile-reveal-stripe1) 0 7px,var(--color-tile-reveal-stripe2) 7px 14px);border:2px solid var(--color-border);box-shadow:0 2px 6px var(--color-tile-shadow);transform-style:preserve-3d;animation-name:tile-reveal-flip;animation-timing-function:ease-in-out;animation-fill-mode:both}@keyframes tile-reveal-flip{0%{transform:perspective(480px) rotateY(0) scale(.95);filter:brightness(.92)}45%{transform:perspective(480px) rotateY(90deg) scale(1.05);filter:brightness(1.12)}to{transform:perspective(480px) rotateY(180deg) scale(.96);filter:brightness(.96)}}.claim-box{padding-top:1rem;display:flex;flex-direction:column;gap:.75rem}.game .claim-box{padding-top:1.25rem;padding-bottom:.35rem;gap:.95rem}.claim-timer{height:8px;width:100%;background:var(--color-progress-track);border-radius:999px;overflow:hidden;border:1px solid var(--color-progress-track-border)}.claim-progress{height:100%;background:var(--color-progress-fill);transition:width .1s linear}.claim-timer.placeholder{visibility:hidden}.claim-input{display:flex;gap:.75rem}.claim-input input{flex:1}.game .claim-input input{min-height:3rem;padding:.75rem .95rem;font-size:1rem}.game .claim-input button{min-height:3rem;padding:.75rem 1.2rem;font-size:1rem}.claim-input input:disabled{opacity:.6;cursor:not-allowed}.target{display:flex;gap:.5rem;align-items:center}.scoreboard{max-height:80vh;overflow-y:auto;overflow-x:hidden}.scoreboard-header{display:flex;justify-content:space-between;align-items:center;gap:.75rem}.score{font-weight:700}.words{display:flex;flex-direction:column;gap:.75rem;overflow-x:hidden}.board-words{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));align-items:start}.pre-steal-panel{margin-top:.25rem;padding-top:.75rem;border-top:1px solid var(--color-border-light);display:flex;flex-direction:column;gap:.75rem}.pre-steal-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,230px);gap:.75rem;align-items:start}.pre-steal-entries-column,.pre-steal-precedence-column{display:flex;flex-direction:column;gap:.6rem}.pre-steal-precedence-column{border-left:1px solid var(--color-border-light);padding-left:.65rem}.pre-steal-precedence-list{margin:0;padding-left:1.15rem;display:flex;flex-direction:column;gap:.3rem}.pre-steal-precedence-list li{display:flex;align-items:center;gap:.4rem}.pre-steal-entry-form{display:grid;width:100%;max-width:100%;min-width:0;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr) auto;gap:.5rem;align-items:center}.pre-steal-entry-form>*{min-width:0}.pre-steal-entry-form input{width:100%}.pre-steal-trigger-input,.pre-steal-claim-input{justify-self:stretch}.pre-steal-entry{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.25rem 0}.pre-steal-entry.self{cursor:grab}.pre-steal-entry.self:active{cursor:grabbing}.pre-steal-entry button{padding:.3rem .55rem;border-radius:999px}.pre-steal-entry-text{font-weight:600;word-break:break-word}.pre-steal-panel .word-list{padding:0;border-radius:0;background:transparent}.word-list{padding:.75rem;border-radius:8px;background:var(--color-inset);display:flex;flex-direction:column;gap:.5rem}.board-words .word-list{padding:0;border-radius:0;background:transparent}.word-list-words{display:flex;flex-wrap:wrap;gap:.35rem;align-items:flex-start}.word-header{display:flex;justify-content:space-between;align-items:center;font-weight:600}.word-item{display:flex;align-items:center;padding:.25rem 0}.word-list-words .word-item{display:inline-flex;align-items:center;border-radius:8px;background:var(--color-panel);border:1px solid var(--color-inset-border);padding:.25rem}.word-item.word-item-claim{animation:word-claim-burst .52s cubic-bezier(.2,.9,.2,1)}.word-item.word-item-steal{animation:word-steal-impact .42s cubic-bezier(.16,.9,.28,1)}.word-item button{background:transparent;border:1px solid var(--color-border);color:var(--color-text);padding:.25rem .5rem;border-radius:999px}.word-tiles{display:flex;flex-wrap:wrap;gap:.35rem}.word-list-words .word-tiles{flex-wrap:nowrap;gap:.2rem}.word-tile{width:34px;height:34px;font-size:1rem;border-radius:6px;box-shadow:0 1px 3px var(--color-tile-shadow)}.word-list-words .word-tile{width:26px;height:26px;font-size:.85rem;border-radius:5px}.word-list-self .word-list-words .word-tile{border-color:var(--color-wordle-green);background:var(--color-wordle-green);color:#fff}.word-item.word-item-claim .word-tile{animation:word-claim-tile-pop .7s cubic-bezier(.18,.95,.22,1) both}.word-item.word-item-steal .word-tile{animation:word-steal-tile-slam .38s cubic-bezier(.2,.9,.26,1) both}.word-item.word-item-claim .word-tile:nth-child(1){animation-delay:0ms}.word-item.word-item-claim .word-tile:nth-child(2){animation-delay:40ms}.word-item.word-item-claim .word-tile:nth-child(3){animation-delay:80ms}.word-item.word-item-claim .word-tile:nth-child(4){animation-delay:.12s}.word-item.word-item-claim .word-tile:nth-child(5){animation-delay:.16s}.word-item.word-item-claim .word-tile:nth-child(6){animation-delay:.2s}.word-item.word-item-claim .word-tile:nth-child(7){animation-delay:.24s}.word-item.word-item-claim .word-tile:nth-child(8){animation-delay:.28s}.word-item.word-item-steal .word-tile:nth-child(1){animation-delay:0ms}.word-item.word-item-steal .word-tile:nth-child(2){animation-delay:40ms}.word-item.word-item-steal .word-tile:nth-child(3){animation-delay:80ms}.word-item.word-item-steal .word-tile:nth-child(4){animation-delay:.12s}.word-item.word-item-steal .word-tile:nth-child(5){animation-delay:.16s}.word-item.word-item-steal .word-tile:nth-child(6){animation-delay:.2s}.word-item.word-item-steal .word-tile:nth-child(7){animation-delay:.24s}.word-item.word-item-steal .word-tile:nth-child(8){animation-delay:.28s}@keyframes word-claim-burst{0%{transform:translateY(4px) scale(.98);filter:brightness(.9)}50%{transform:translateY(-2px) scale(1.02);filter:brightness(1.12)}to{transform:translateY(0) scale(1);filter:brightness(1)}}@keyframes word-claim-tile-pop{0%{transform:translateY(8px) scale(.85) rotate(-5deg);box-shadow:0 1px 4px var(--color-tile-shadow)}55%{transform:translateY(-3px) scale(1.12) rotate(2deg);box-shadow:0 6px 14px var(--color-claim-glow)}to{transform:translateY(0) scale(1) rotate(0);box-shadow:0 1px 3px var(--color-tile-shadow)}}@keyframes word-steal-impact{0%{transform:scale(1);border-color:var(--color-inset-border);box-shadow:0 0 #0000}35%{transform:scale(1.055);border-color:var(--color-danger);box-shadow:0 0 0 2px var(--color-danger-border)}65%{transform:scale(.992);border-color:var(--color-danger);box-shadow:0 0 0 1px var(--color-danger-border)}to{transform:scale(1);border-color:var(--color-inset-border);box-shadow:0 0 #0000}}@keyframes word-steal-tile-slam{0%{transform:translateY(-7px) scale(.94);filter:brightness(.92);box-shadow:0 0 0 var(--color-tile-shadow)}55%{transform:translateY(2px) scale(1.06);filter:brightness(1.15);box-shadow:0 4px 9px var(--color-steal-glow)}to{transform:translateY(0) scale(1);filter:brightness(1);box-shadow:0 1px 3px var(--color-tile-shadow)}}.join-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:var(--color-overlay);display:grid;place-items:center;padding:2rem;z-index:20}.join-modal{width:min(420px,92vw)}.settings-modal{width:min(460px,94vw)}.settings-section{display:flex;flex-direction:column;gap:.55rem}.settings-option{display:flex;align-items:flex-start;gap:.6rem;border-radius:8px;padding:.5rem .6rem;background:var(--color-inset);border:1px solid var(--color-inset-border)}.settings-option input{width:auto;margin-top:.2rem}.settings-option strong{display:block}.leave-confirm-modal{border-color:var(--color-danger-border)}.practice-start-modal{gap:1.1rem}.practice-start-difficulty-group{display:flex;flex-direction:column;gap:.55rem}.practice-start-difficulty-label{margin:0;font-size:.82rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--color-text-secondary)}.remaining-tiles-modal{width:min(520px,95vw);max-height:min(82vh,760px)}.remaining-tiles-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:.55rem;max-height:min(58vh,520px);overflow-y:auto;padding-right:.2rem}.remaining-tiles-item{display:flex;align-items:center;gap:.5rem;padding:.35rem .45rem;border-radius:8px;border:1px solid var(--color-border-light)}.remaining-tiles-item.empty{opacity:.55}.remaining-tiles-letter{width:40px;height:40px;font-size:1.15rem;box-shadow:0 1px 2px var(--color-tile-shadow)}.remaining-tiles-count{font-size:.98rem;font-weight:700;font-variant-numeric:tabular-nums}.practice-start-difficulty-picker{display:flex;justify-content:center}.practice-start-difficulty-picker .practice-difficulty-option{min-width:2.5rem;padding:.5rem .8rem;font-size:1rem}.practice-start-timer-toggle{display:flex;flex-direction:row;align-items:center;gap:.55rem;flex-wrap:nowrap;white-space:nowrap}.practice-start-timer-toggle input{width:auto}.practice-start-timer-seconds{display:flex;flex-direction:column;gap:.55rem}.practice-start-timer-input-row{display:flex;align-items:center;gap:.75rem}.practice-start-timer-input-row input[type=range]{flex:1}.practice-start-timer-input-row input[type=number]{width:6rem}.game-log{position:fixed;left:0;right:0;bottom:0;z-index:15;padding:.55rem .75rem .75rem;background:var(--color-bg);border-top:1px solid var(--color-border);border-radius:0;display:flex;flex-direction:row;gap:0;height:7.4rem}.game-log-controls{display:flex;flex-direction:column;gap:.3rem;flex:none;border-right:1px solid var(--color-border);padding-right:.6rem;margin-right:.6rem}.game-log-mode-button{background:transparent;border:1px solid var(--color-border);color:var(--color-text);border-radius:6px;padding:.3rem .6rem;font-size:.75rem;line-height:1.2;white-space:nowrap}.game-log-mode-label{display:inline-flex;align-items:center;gap:.35rem}.game-log-unread-dot{width:.42rem;height:.42rem;border-radius:999px;background:var(--color-danger);flex:none}.game-log-mode-button.active{background:var(--color-accent);color:var(--color-text-on-accent);border-color:var(--color-accent)}.game-log-body{display:flex;flex-direction:column;flex:1;min-width:0;gap:.45rem}.game-log-list{display:flex;flex-direction:column;gap:.45rem;position:relative;width:100%;flex:1;overflow-y:auto;overflow-x:hidden;padding-right:.35rem}.game-log-row,.chat-log-row{display:flex;gap:.7rem;align-items:flex-start;padding:.1rem 0}.game-log-row.error{color:var(--color-danger-text)}.game-log-time{flex:none;width:4.7rem;font-size:.75rem;line-height:1.5;color:var(--color-text-secondary);font-variant-numeric:tabular-nums}.game-log-text,.chat-log-message{line-height:1.35;font-size:.92rem}.chat-log-sender{font-weight:700}.game-log-empty{padding:.35rem .1rem}.chat-composer{display:flex;gap:.5rem;align-items:center}.chat-composer input{flex:1;min-width:0}.chat-composer input:disabled{opacity:.65;cursor:not-allowed}.chat-composer button{flex:none}@media (max-width: 960px){.page,.grid{gap:1rem}.panel{padding:1rem;gap:.8rem}.lobby-grid{grid-template-columns:1fr}.lobby-grid .panel{min-height:0;padding:1rem}.practice-start-overlay{padding:0}.practice-start-modal.join-modal{width:100vw;min-height:100dvh;border-radius:0;border-left:none;border-right:none}.practice-start-modal{justify-content:flex-start}.practice-start-difficulty-group{gap:.7rem}.practice-start-difficulty-label{font-size:.9rem}.practice-start-difficulty-picker{justify-content:flex-start}.practice-start-difficulty-picker .practice-difficulty-option{min-width:2.9rem;padding:.65rem .9rem;font-size:1.05rem}.page.has-game-log{padding-bottom:12rem}.game,.replay-board-layout{grid-template-columns:1fr}.replay-board-header,.replay-analysis-header{flex-direction:column;align-items:flex-start}.header{flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:.6rem}.header>div:first-child{min-width:0}.header h1{margin:0;font-size:clamp(1.35rem,5.8vw,1.8rem);line-height:1.1;white-space:nowrap}.status{gap:.2rem}.status-identity{max-width:46vw}.status-name{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status-connection{white-space:nowrap}.game-header{flex-direction:column;align-items:flex-start}.practice-header{flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:.6rem}.practice-header-summary{flex:1;min-width:0;align-items:center;gap:.45rem}.practice-header-summary h2{font-size:clamp(1.05rem,4.8vw,1.3rem);white-space:nowrap}.practice-header-actions{width:auto;max-width:58vw;flex-direction:row;align-items:center;flex-wrap:nowrap;gap:.45rem;overflow-x:auto}.practice-share-action{width:auto}.practice-header-actions>button,.practice-header-actions .practice-share-action>button{flex:none;white-space:nowrap}.practice-options{max-height:min(46dvh,360px)}.practice-puzzle-panel .button-row{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}.practice-puzzle-panel .button-row>button{width:100%}.practice-content.result-layout{grid-template-columns:1fr}.claim-input{flex-direction:column}.scoreboard-header{flex-direction:column;align-items:flex-start}.pre-steal-entry-form{grid-template-columns:1fr}.game-log{padding:.55rem 1rem .75rem}.chat-composer{flex-direction:column;align-items:stretch}}
