:root{font-family:PingFang SC,Microsoft YaHei,system-ui,sans-serif;color:#25382e;background:#f8f9f6;font-synthesis:none;--green: #287553;--line: #dfe5dd;--orange: #b97839}*{box-sizing:border-box}body{margin:0}button,a,textarea{-webkit-tap-highlight-color:transparent}button,textarea{font:inherit}button{cursor:pointer;color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #89b59e;outline-offset:4px}a{color:inherit;text-decoration:none}.app{max-width:1200px;margin:auto;padding:0 48px}header{height:88px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;font-size:21px;font-weight:650}.brand b{background:var(--green);color:#fff;width:34px;height:34px;display:grid;place-items:center;border-radius:5px;font-size:21px}.brand small{font-size:12px;font-weight:400;color:#748077;margin-left:12px}.demo-label{font-size:11px;border:1px solid var(--line);padding:5px 9px;color:#758177;border-radius:4px}.simulation-label{border-color:#9fc6aa;background:#edf5ed;color:var(--green)}.lobby{display:grid;grid-template-columns:minmax(0,.82fr) minmax(520px,1.18fr);gap:64px;align-items:start;padding-top:54px}.eyebrow{font-size:12px;letter-spacing:2px;color:var(--green)}h1{font-size:62px;line-height:1.22;letter-spacing:-2px;font-weight:600;margin:25px 0}.intro p{color:#6c786f;font-size:16px;line-height:1.9;text-wrap:pretty}.setup{background:#fff;padding:30px;border:1px solid var(--line);border-radius:8px}.room-builder{position:relative;overflow-x:clip;padding:0 28px 26px;border:0;border-radius:12px;background:#fffdf8;box-shadow:0 3px 8px #263a2f14,0 18px 42px #263a2f12;animation:room-builder-enter .28s cubic-bezier(.16,1,.3,1) both}.room-builder:before{content:"";position:absolute;inset:0 0 auto;height:4px;background:var(--green)}.room-builder-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:26px 0 19px;border-bottom:1px solid var(--line)}.room-builder-header h2{font-size:24px;font-weight:650;line-height:1.35}.room-builder-header p{margin:5px 0 0;color:#667269;font-size:13px;line-height:1.6}.room-privacy{display:inline-flex;align-items:center;flex:none;min-height:40px;color:#4c5c51;font-size:12px}.section-heading{display:flex;align-items:center;justify-content:space-between}.section-heading span{font-size:11px;color:#748077}h2{font-size:18px;margin:0}.muted{color:#748077;font-size:12px}.keyboard-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0 16px}.keyboard-option{position:relative;min-width:0;min-height:82px;background:#f7f7f1;border:1px solid var(--line);border-radius:8px;padding:12px 13px;display:flex;align-items:center;gap:12px;text-align:left;touch-action:manipulation;transition:transform .12s ease-out,background-color .16s ease-out,border-color .16s ease-out,box-shadow .16s ease-out}.keyboard-option.selected{border-color:var(--green);background:#e9f3eb;box-shadow:inset 0 0 0 1px var(--green)}.keyboard-option.orange.selected{border-color:var(--orange);background:#f9eee1;box-shadow:inset 0 0 0 1px var(--orange)}.keyboard-option:active{transform:scale(.97)}.keyboard-option-copy{display:grid;min-width:0;gap:2px}.keyboard-option-copy strong{font-size:15px;line-height:1.4}.keyboard-option-copy small{color:#657168;font-size:11px;line-height:1.4}.keyboard-option-copy b{margin-top:3px;color:#78827b;font-size:10px;font-weight:500}.keyboard-option.selected .keyboard-option-copy b{color:var(--green)}.keyboard-option.orange.selected .keyboard-option-copy b{color:#94591f}.match-settings{display:grid;gap:0;margin-bottom:13px;border-top:1px solid var(--line)}.match-settings [role=group]{display:grid;grid-template-columns:88px minmax(0,1fr);align-items:center;gap:14px;min-height:56px;border-bottom:1px solid var(--line);color:#35483c;font-size:13px}.match-settings [role=group]>div{display:flex;gap:5px}.match-settings button{flex:1;min-height:40px;padding:7px 6px;border:1px solid transparent;border-radius:6px;background:#eef0eb;color:#46564b;font-size:12px;font-variant-numeric:tabular-nums;touch-action:manipulation;transition:transform .12s ease-out,box-shadow .16s ease-out}.match-settings button[aria-pressed=true]{background:var(--green);color:#fff;box-shadow:inset 0 0 0 1px #1d5b3f}.match-settings button:active{transform:scale(.96)}.system-keyboard-option{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:58px;margin:0 0 14px;padding:8px 0;border:1px solid var(--line);border-width:1px 0;color:#435448;cursor:pointer;touch-action:manipulation}.system-keyboard-option input{order:2;position:relative;flex:none;width:44px;height:24px;margin:0;appearance:none;border:1px solid #aab4ad;border-radius:999px;background:#dfe3de;cursor:pointer;transition:background-color .16s ease-out,border-color .16s ease-out}.system-keyboard-option input:after{content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #18281f40;transition:transform .16s cubic-bezier(.16,1,.3,1)}.system-keyboard-option input:checked{border-color:var(--green);background:var(--green)}.system-keyboard-option input:checked:after{transform:translate(20px)}.system-keyboard-option span{display:flex;flex-direction:column;gap:2px}.system-keyboard-option small{color:#657168;font-size:11px;line-height:1.5}.keyboard-picture{height:49px;width:49px;display:grid;grid-template-columns:repeat(3,1fr);gap:3px;margin-bottom:4px}.keyboard-picture i{background:#86ae96;border-radius:2px}.keyboard-picture.full{width:76px;grid-template-columns:repeat(5,1fr)}.keyboard-picture.full i{background:#c9ac8d}.room-summary{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:58px;margin-bottom:14px;padding:10px 14px;border-radius:8px;background:#edf2ea;color:#637067;font-size:11px}.room-summary>span:first-child{display:grid;gap:2px}.room-summary strong{color:#34483b;font-size:12px}.room-summary small{color:var(--green);font-size:14px;font-weight:650;line-height:1.45;font-variant-numeric:tabular-nums}.primary{display:flex;justify-content:space-between;align-items:center;width:100%;border:0;border-radius:4px;background:var(--green);color:#fff;padding:16px 20px;font-size:14px;touch-action:manipulation;transition:transform .12s ease-out,background-color .16s ease-out,box-shadow .16s ease-out}.room-builder .primary{justify-content:center;min-height:52px;font-size:15px;font-weight:650;white-space:nowrap;box-shadow:0 4px #1d5b3f}.room-builder .primary:active{transform:translateY(2px) scale(.99);box-shadow:0 2px #1d5b3f}.demo-note{font-size:11px;color:#68746b;text-align:center;margin:13px 0 2px;line-height:1.5}.simulation-link{display:flex;min-height:40px;align-items:center;justify-content:center;color:#57665c;font-size:12px;text-decoration:underline;text-underline-offset:4px;text-decoration-color:#a8b2aa;touch-action:manipulation;transition:transform .12s ease-out,color .16s ease-out}.simulation-link:active{transform:scale(.97)}.lobby-footer{grid-column:1/-1;border-top:1px solid var(--line);display:flex;justify-content:space-between;color:#748077;font-size:11px;padding:24px 0}@keyframes room-builder-enter{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@media(hover:hover){.keyboard-option:hover{border-color:#9aaba0;background:#f0f2ed}.keyboard-option.selected:hover{border-color:var(--green);background:#e3efe6}.keyboard-option.orange.selected:hover{border-color:var(--orange);background:#f6e8d8}.match-settings button:hover{background:#e2e7e1}.match-settings button[aria-pressed=true]:hover,.primary:hover{background:#205f44}.simulation-link:hover{color:var(--green)}}.match-bar{height:70px;display:flex;align-items:center;gap:24px;font-size:12px}.clock{margin-left:auto;display:flex;align-items:center;gap:12px}.live-standing{display:flex;align-items:baseline;gap:8px;font-variant-numeric:tabular-nums}.live-standing strong{color:var(--console-yellow);font-size:17px}.live-standing span{color:#d9ceff;font-size:11px}.live-standing.urgent{padding:3px 8px;border-radius:6px;color:#fff;background:#e96858}.live-standing.urgent strong,.live-standing.urgent span{color:#fff}.rank-notice{position:fixed;z-index:9;top:82px;left:50%;padding:8px 16px;border:3px solid #29147f;border-radius:8px;color:#071a52;background:var(--console-yellow);box-shadow:0 4px #29147f;font-size:14px;font-weight:900;pointer-events:none;transform:translate(-50%)}.clock>span{color:#748077;font-size:11px}.clock strong{font-family:monospace;font-size:26px;font-weight:500;font-variant-numeric:tabular-nums}.urgent{color:#c45e48}.text-button{background:transparent;border:0;color:#6c786f;font-size:12px;padding:10px}.arena{height:calc(var(--viewport-height, 100dvh) - 180px);min-height:570px;display:grid;grid-template-rows:minmax(0,2fr) minmax(0,8fr);border:1px solid var(--line);border-radius:6px;overflow:hidden;background:#fff;margin-bottom:22px}.reference{display:flex;flex-direction:column;justify-content:center;padding:14px 32px;background:#f0f3ed;border-bottom:1px solid var(--line);overflow:hidden}.reference-text{font-size:21px;line-height:1.7;letter-spacing:3px;max-height:72px;overflow:hidden}.current-char{color:var(--green);font-weight:800}.writing{padding:22px 32px 0;display:flex;flex-direction:column;min-width:0;min-height:0}.writing-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.writing-toolbar h2{font-size:13px;font-weight:500}.key-label{font-size:10px;color:var(--green);background:#edf5ed;padding:4px 7px;margin-left:8px;border-radius:3px}.key-label.orange{color:#a36932;background:linen}.legend{font-size:10px;color:#748077;display:flex;align-items:center;gap:6px}.legend i{display:inline-block;width:8px;height:8px;border-radius:2px;background:#b6d8bd}.legend i:last-child{background:#edb7ad;margin-left:8px}.grid-area{flex:1;min-height:85px;overflow-y:auto;padding:3px 3px 12px}.character-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(38px,1fr));gap:7px}.cell{aspect-ratio:1;background:#fafbf8;border:1px solid #e1e6df;border-radius:4px;font-size:20px;position:relative;padding:0;display:grid;place-items:center}.cell.correct{background:#e7f3e6;color:#337746;border-color:#cee2cd}.cell.wrong{background:#fff0ec;color:#bd5147;border-color:#e6b5a9;text-decoration:underline;text-underline-offset:5px}.cell.active{border:2px solid var(--green);background:#fff}.cell span{display:inline-block}.caret{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:22px;width:2px;background:var(--green);animation:blink 1.1s steps(2,start) infinite}.pop{animation:pop .18s ease-out}.writing>label{font-size:10px;color:#6c786f;margin:9px 0 6px}textarea{resize:none;width:100%;min-height:46px;max-height:66px;border:1px solid var(--line);border-radius:4px;padding:10px 12px;font-size:16px;color:#314b3a;background:#fcfdfb}textarea::placeholder{font-size:12px;color:#748077}.input-help{font-size:10px;color:#748077;margin:7px 0 10px;min-height:14px}.race-progress{padding:0 0 12px}.race-progress>div{display:flex;justify-content:space-between;font-size:11px;align-items:center}.race-progress small{color:#748077;margin-left:6px}.race-progress strong{font-weight:500;color:var(--green)}progress{display:block;appearance:none;border:0;width:100%;height:4px;margin:7px 0 13px;border-radius:2px;overflow:hidden;background:#f0f3ed}progress::-webkit-progress-bar{background:#f0f3ed}progress::-webkit-progress-value{background:#74a884;transition:width .2s}progress::-moz-progress-bar{background:#74a884}.opponent{color:#748077}.race-progress progress:last-child{margin-bottom:0}.stats{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);padding:16px 0;gap:12px}.stats>span{display:flex;flex-direction:column;font-size:10px;color:#748077;gap:5px}.stats strong{font-size:21px;color:#445647;font-weight:500;font-variant-numeric:tabular-nums}.stats small{font-size:10px;font-weight:400;color:#748077}.countdown{display:flex;height:100%;min-height:160px;flex-direction:column;align-items:center;justify-content:center;color:#748077;font-size:12px}.countdown strong{font-size:70px;line-height:1.3;color:var(--green);animation:pop .25s ease-out}.countdown p{font-size:10px}.modal-backdrop{position:fixed;inset:0;background:#243a2e66;display:grid;place-items:center;padding:24px}.results{width:100%;max-width:420px;max-height:calc(100dvh - 48px);overflow-y:auto;padding:32px;background:#fff;border-radius:8px}.results h1{font-size:30px;letter-spacing:-1px;margin:18px 0}.results .eyebrow{font-size:10px}.result-numbers{display:flex;gap:45px;padding:28px 0}.result-numbers>div{display:flex;flex-direction:column;font-size:11px;color:#748077;gap:8px}.result-numbers strong{font-size:40px;font-weight:500;color:var(--green)}.result-numbers small{font-size:14px;color:#748077}dl{font-size:12px;margin:0 0 28px}dl>div{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--line)}dt{color:#748077}@keyframes pop{0%{transform:translateY(4px) scale(.85);opacity:.3}to{transform:translateY(0) scale(1);opacity:1}}@keyframes blink{to{opacity:0}}@media(min-width:900px){.arena{max-width:850px;margin-left:auto;margin-right:auto}.match-bar{max-width:850px;margin:auto}.character-grid{grid-template-columns:repeat(15,1fr)}}@media(max-width:860px){.lobby{grid-template-columns:1fr}}@media(max-width:700px){.app{padding:0 18px}header{height:64px}.brand{font-size:18px;gap:8px}.brand small{display:none}.brand b{width:29px;height:29px;font-size:18px}.lobby{grid-template-columns:1fr;gap:24px;padding-top:28px}.intro .eyebrow,.intro p{display:none}.intro h1{font-size:40px;line-height:1.16;margin:0}.setup{padding:23px}.room-builder{padding:0 18px 20px}.room-builder-header{gap:12px;padding:22px 0 15px}.room-builder-header h2{font-size:20px}.room-builder-header p{max-width:28ch;font-size:12px}.room-privacy{min-height:32px;font-size:11px}.keyboard-options{gap:8px;margin:14px 0 12px}.keyboard-option{min-height:76px;gap:8px;padding:10px}.keyboard-picture{width:40px;height:40px;margin-bottom:0}.keyboard-picture.full{width:58px}.keyboard-option-copy strong{font-size:14px}.keyboard-option-copy small{display:none}.match-settings [role=group]{grid-template-columns:72px minmax(0,1fr);gap:10px;min-height:52px}.match-settings button{min-height:40px;padding-inline:3px;font-size:11px}.match-settings button:not([aria-pressed=true]){background:#eef0eb;color:#46564b}.match-settings button[aria-pressed=true]{background:var(--green);color:#fff}.system-keyboard-option{min-height:54px}.system-keyboard-option small{max-width:25ch;font-size:10px}.room-summary{gap:8px;padding-inline:12px}.room-summary small{font-size:13px}.room-summary>span:last-child{font-size:10px;white-space:nowrap}.room-builder .primary{min-height:50px}.lobby-footer{flex-direction:column;gap:10px;font-size:10px}.match-bar{height:58px;gap:8px;font-size:10px}.clock{gap:6px}.clock>span{font-size:9px}.clock strong{font-size:23px}.arena{height:calc(var(--viewport-height, 100dvh) - 134px);min-height:460px;margin-bottom:12px}.reference{padding:10px 16px}.reference-text{font-size:17px;line-height:1.65;letter-spacing:2px;max-height:56px}.writing{padding:14px 14px 0}.writing-toolbar{margin-bottom:9px}.character-grid{grid-template-columns:repeat(7,1fr);gap:6px}.cell{font-size:19px}.race-progress{padding-bottom:4px}.stats{padding:11px 0}.stats strong{font-size:19px}.input-help{margin-bottom:8px}.writing-toolbar h2{font-size:12px}.writing>label{font-size:9px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}button:disabled{opacity:.5;cursor:not-allowed}.connection-error{color:#9c4228;background:#fff2ec;padding:12px;font-size:14px}.connection-error a{color:inherit}.waiting{max-width:620px;margin:48px auto}.waiting h1{font-size:36px;margin:20px 0 32px}.waiting label{font-size:13px;color:#68736e}.share-link{display:flex;gap:8px;margin:8px 0 24px}.share-link input{flex:1;min-width:0;border:1px solid #dce4df;background:#f6f8f6;padding:12px;font:inherit}.share-link button{white-space:nowrap}.players{display:grid;gap:12px;margin-bottom:16px}.players>div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;padding:18px;background:#f4f7f4}.players span{color:#68736e;font-size:13px}.input-mode-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 14px}.input-mode-options button{min-height:52px;padding:8px;border:1px solid var(--line);border-radius:4px;background:#f7f9f7;color:#435448}.input-mode-options button[aria-pressed=true]{border-color:var(--green);background:#edf5ed;color:var(--green)}.typing-hint{display:flex;align-items:center;justify-content:flex-end;font-size:10px;color:#748077;margin:0}.native-input{position:absolute;z-index:2;pointer-events:none}.native-input textarea{width:100%;height:100%;min-height:0;max-height:none;overflow:hidden;padding:0;border:0;color:transparent;background:transparent;caret-color:transparent;font-size:16px;line-height:1;white-space:nowrap;-webkit-text-fill-color:transparent;pointer-events:none}.native-composition{position:absolute;z-index:1;left:calc(50% + var(--composition-shift, 0px));top:50%;max-width:136px;overflow:hidden;padding:2px 4px;border-radius:3px;color:#071a52;background:var(--console-yellow);font-size:14px;font-weight:900;line-height:20px;white-space:nowrap;transform:translate(-50%,-50%)}.vrime-keyboard{flex-shrink:0;border-top:1px solid var(--line);padding-top:4px;--key-color: var(--green)}.vrime-keyboard.orange{--key-color: var(--orange)}.vrime-keyboard fieldset{border:0;padding:0;margin:0;min-width:0}.vrime-keyboard button{min-width:0;border:1px solid var(--line);border-radius:4px;background:#f5f7f3;padding:4px;touch-action:manipulation;-webkit-user-select:none;user-select:none}.vrime-keyboard button:active{background:var(--key-color);color:#fff;transform:translateY(1px)}.preedit{min-height:22px;font-size:12px;color:var(--key-color);overflow-x:auto;white-space:nowrap}.candidate-bar{display:flex;gap:4px;height:42px;margin-bottom:5px}.candidate-bar>button{width:28px;flex-shrink:0}.candidates{display:flex;flex:1;min-width:0;overflow-x:auto;gap:4px}.candidates button{flex-shrink:0;min-width:38px;font-size:17px;background:#fff}.candidates small{display:block;font-size:9px;color:#748077}.t9-layout,.qwerty-layout{background:#eef0f2;border-radius:5px;padding:3px}.t9-layout button,.qwerty-layout button{height:42px;border:0;background:transparent;font-size:20px;color:#59616a}.t9-layout svg,.qwerty-layout svg{width:27px;height:25px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}.t9-layout .space-key svg,.qwerty-layout .space-key svg{width:44px}.t9-layout{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:4px}.t9-layout button{height:56px;font-size:clamp(16px,4.5vw,20px);background:#fff}.t9-layout svg{max-width:100%}.t9-sidebar{height:236px;overflow-x:hidden;overflow-y:auto}.t9-punctuation{display:grid;grid-template-rows:repeat(4,56px);gap:4px}.t9-pinyin-options{display:flex;flex-direction:column;gap:4px}.t9-pinyin-options button{flex:0 0 56px;overflow:hidden;padding-inline:2px;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.t9-pinyin-options button[aria-pressed=true]{color:#fff;background:var(--key-color)}.t9-keys{grid-column:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(4,56px);gap:4px}.t9-layout .backspace-key{align-self:start}.t9-layout .number-mode-key{font-size:17px}.qwerty-layout{--qwerty-key-height: 64px}.qwerty-keys{display:grid;gap:0}.letter-row{display:flex;height:var(--qwerty-key-height);justify-content:center}.qwerty-layout button{height:var(--qwerty-key-height);background:#fff;border-radius:0}.letter-row>button{flex:0 0 10%;padding:0;font-size:24px}.letter-row .shift-key,.letter-row .backspace-key{flex-basis:15%}.shift-key[aria-pressed=true]{color:var(--key-color)}.shift-key[aria-pressed=true] svg{fill:currentColor}.qwerty-bottom{display:grid;height:var(--qwerty-key-height);grid-template-columns:1fr 1fr 3fr 1fr 1fr;margin-top:0}.with-keyboard .writing{padding-top:10px}.with-keyboard .grid-area{min-height:42px}.with-keyboard .race-progress{display:grid;grid-template-columns:1fr 1fr;column-gap:16px;padding-bottom:2px}.with-keyboard .race-progress.many-opponents{display:block}.with-keyboard .race-progress>div{grid-row:1}.with-keyboard .race-progress progress{margin:4px 0}.with-keyboard .stats{padding:5px 0}.with-keyboard .stats>span{flex-direction:row;align-items:baseline;gap:5px}.with-keyboard .stats strong{font-size:15px}.with-keyboard .input-help{margin:3px 0}.with-system-input .grid-area{min-height:74px}.keyboard-test{max-width:560px;margin:24px auto;padding:20px;border:1px solid var(--line);border-radius:6px;background:#fff}.test-heading,.test-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px}.test-heading h1{font-size:24px;letter-spacing:0;margin:0 0 12px}.test-layouts{display:flex;gap:8px}.test-layouts button{flex:1;padding:10px;font:inherit;background:#f5f7f3;border:1px solid var(--line);border-radius:4px}.test-layouts button[aria-pressed=true]{background:#edf5ed;border-color:var(--green);color:var(--green)}.test-output{height:clamp(100px,25dvh,240px);overflow-y:auto;padding:3px}.test-output .character-grid{grid-template-columns:repeat(7,minmax(0,1fr))}.test-toolbar{color:#748077;font-size:12px}.test-status{min-height:16px;margin:0 0 8px;color:#748077;font-size:11px}@media(max-width:700px){.keyboard-test-app{padding:0 12px}.keyboard-test-app header{height:48px}.keyboard-test{margin:12px auto;padding:12px}}@media(max-width:700px){.with-keyboard header{height:46px}.with-keyboard .match-bar{height:42px}.with-keyboard .arena{height:calc(var(--viewport-height, 100dvh) - 100px);min-height:550px}.with-keyboard .arena:has(.t9-layout){min-height:690px}.with-keyboard .arena:has(.qwerty-layout){min-height:724px}.with-keyboard .writing{padding:8px 8px 0}.with-keyboard .stats{font-size:9px}.with-system-input header{height:46px}.with-system-input .match-bar{height:42px}.with-system-input .arena{height:calc(var(--viewport-height, 100dvh) - 100px);min-height:550px}.with-system-input .writing{padding:8px 8px 0}}.app.game-ui{--console-blue: #0876e8;--console-blue-dark: #052b72;--console-blue-edge: #003f9f;--console-green: #0fbd64;--console-green-dark: #076b3d;--console-yellow: #ffdc19;--console-yellow-dark: #9f7000;--console-purple: #744ce4;position:relative;max-width:none;min-height:var(--viewport-height, 100dvh);padding:0 28px 24px;overflow:hidden;color:#fff;background-color:#066ddd;background-image:linear-gradient(rgba(145,216,255,.22) 2px,transparent 2px),linear-gradient(90deg,rgba(145,216,255,.22) 2px,transparent 2px);background-size:112px 112px}.creating-room header{position:relative;z-index:1;justify-content:center;width:min(1080px,100%);height:112px;margin:auto;border:0}.creating-room .brand{color:#fff;font-size:66px;font-weight:900;line-height:1;letter-spacing:2px;text-shadow:-3px -3px 0 var(--console-blue-dark),3px -3px 0 var(--console-blue-dark),-3px 3px 0 var(--console-blue-dark),3px 3px 0 var(--console-blue-dark),0 8px 0 #06358f}.creating-room .brand b,.creating-room .brand small,.creating-room .demo-label,.creating-room .intro,.creating-room .lobby-footer{display:none}.creating-room .lobby{position:relative;z-index:1;display:block;width:min(990px,100%);margin:auto;padding:16px 0 20px}.creating-room .room-builder{width:100%;padding:28px 26px 22px;overflow:visible;border:6px solid var(--console-blue-edge);border-radius:32px;color:#fff;background:var(--console-blue);box-shadow:0 10px #002c78,inset 0 0 0 4px #31adff,inset 0 -10px #00318a47,0 18px 24px #001d5852}.creating-room .room-builder:before{display:none}.creating-room .room-builder-header{width:min(650px,82%);min-height:78px;margin:-72px auto 24px;padding:8px 20px;align-items:center;justify-content:center;border:5px solid #29147f;border-radius:14px;background:var(--console-purple);box-shadow:0 8px #29147f,inset 0 3px #ffffff40}.creating-room .room-builder-header h2{color:#fff;font-size:38px;font-weight:900;line-height:1.15;text-align:center;letter-spacing:1px;text-shadow:-2px -2px 0 #0a205f,2px -2px 0 #0a205f,-2px 2px 0 #0a205f,2px 2px 0 #0a205f,0 4px 0 #0a205f}.creating-room .room-builder-header p,.creating-room .room-privacy{display:none}.creating-room .keyboard-setting,.creating-room .match-settings [role=group]{display:grid;grid-template-columns:260px minmax(0,1fr);align-items:stretch;gap:16px;min-height:64px;color:#fff}.creating-room .keyboard-setting{margin-bottom:11px}.creating-room .keyboard-setting>strong,.creating-room .match-settings [role=group]>strong{display:flex;align-items:center;padding:10px 24px;border:3px solid #001e59;border-radius:10px;color:#fff;background:var(--console-blue-dark);box-shadow:0 4px #001b51,inset 0 2px #ffffff14;font-size:23px;font-weight:850;line-height:1.2}.creating-room .keyboard-options,.creating-room .match-settings [role=group]>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}.creating-room .keyboard-option,.creating-room .match-settings button{position:relative;min-height:60px;padding:8px 12px;justify-content:center;border:3px solid var(--console-green-dark);border-radius:10px;color:#fff;background:var(--console-green);box-shadow:0 5px 0 var(--console-green-dark),inset 0 3px #ffffff40;font-size:21px;font-weight:850;text-align:center;text-shadow:0 2px 0 rgba(0,57,31,.65);transition:transform .1s ease-out,box-shadow .1s ease-out}.creating-room .keyboard-picture,.creating-room .keyboard-option-copy small,.creating-room .keyboard-option-copy b{display:none}.creating-room .keyboard-option-copy strong{font-size:24px;font-weight:900;line-height:1.1}.creating-room .keyboard-option.selected,.creating-room .keyboard-option.orange.selected,.creating-room .match-settings button[aria-pressed=true]{border-color:var(--console-yellow-dark);color:#071a52;background:var(--console-yellow);box-shadow:0 5px 0 var(--console-yellow-dark),inset 0 3px #ffffff73;text-shadow:none}.creating-room .keyboard-option.selected:after,.creating-room .match-settings button[aria-pressed=true]:after{content:"";position:absolute;z-index:2;bottom:-13px;left:50%;width:14px;height:14px;border:solid #071a52;border-width:0 4px 4px 0;background:#fff;transform:translate(-50%) rotate(45deg)}.creating-room .keyboard-option:active,.creating-room .match-settings button:active{transform:translateY(3px) scale(.99);box-shadow:0 2px 0 var(--console-green-dark)}.creating-room .keyboard-option.selected:active,.creating-room .match-settings button[aria-pressed=true]:active{box-shadow:0 2px 0 var(--console-yellow-dark)}.creating-room .match-settings{display:grid;gap:11px;margin:0 0 12px;border:0}.creating-room .match-settings [role=group]{border:0}.creating-room .match-settings [role=group]>div{grid-template-columns:repeat(3,minmax(0,1fr))}.creating-room .system-keyboard-option{min-height:64px;margin:0 0 12px;padding:8px 18px 8px 24px;border:3px solid #001e59;border-radius:10px;color:#fff;background:var(--console-blue-dark);box-shadow:0 4px #001b51,inset 0 2px #ffffff14}.creating-room .system-keyboard-option strong{font-size:21px;font-weight:850}.creating-room .system-keyboard-option small{color:#a8d8ff;font-size:11px}.creating-room .system-keyboard-option input{width:62px;height:34px;border:3px solid #001e59;background:#324c78;box-shadow:inset 0 2px #ffffff29,0 3px #001b51}.creating-room .system-keyboard-option input:after{top:3px;left:3px;width:22px;height:22px;box-shadow:0 2px #a9b8c6}.creating-room .system-keyboard-option input:checked{border-color:#034a2b;background:var(--console-green)}.creating-room .system-keyboard-option input:checked:after{transform:translate(28px)}.creating-room .room-summary{min-height:64px;margin:0 0 14px;padding:10px 22px;border:3px solid #001e59;border-radius:10px;color:#b8dcff;background:var(--console-blue-dark);box-shadow:0 4px #001b51,inset 0 2px #ffffff14;font-size:13px}.creating-room .room-summary>span:first-child{display:flex;align-items:baseline;gap:14px}.creating-room .room-summary strong{color:#fff;font-size:15px}.creating-room .room-summary small{color:var(--console-yellow);font-size:18px;font-weight:850}.creating-room .primary{min-height:72px;padding:10px 24px;border:4px solid #735100;border-radius:12px;color:#071a52;background:var(--console-yellow);box-shadow:0 8px 0 var(--console-yellow-dark),inset 0 4px #ffffff7a;font-size:30px;font-weight:900;letter-spacing:1px;text-shadow:0 2px 0 white}.creating-room .room-builder .primary:active{transform:translateY(5px) scale(.99);box-shadow:0 3px 0 var(--console-yellow-dark)}.creating-room .demo-note{margin:14px 0 0;color:#d8edff;font-size:12px}.creating-room .simulation-link{min-height:34px;color:#fff;font-size:12px;text-decoration-color:#8ccfff}.creating-room button:focus-visible,.creating-room a:focus-visible,.creating-room input:focus-visible{outline-color:#fff;outline-offset:3px}@media(hover:hover){.creating-room .keyboard-option:hover,.creating-room .match-settings button:hover{border-color:#034d2e;background:#0aa856}.creating-room .keyboard-option.selected:hover,.creating-room .keyboard-option.orange.selected:hover,.creating-room .match-settings button[aria-pressed=true]:hover{border-color:#735100;background:#ffd30d}.creating-room .primary:hover{background:#ffe33b}}@media(max-width:700px){.app.creating-room{min-height:var(--viewport-height, 100dvh);padding:0 10px 14px;background-size:72px 72px}.creating-room header{height:78px}.creating-room .brand{font-size:43px;text-shadow:-2px -2px 0 var(--console-blue-dark),2px -2px 0 var(--console-blue-dark),-2px 2px 0 var(--console-blue-dark),2px 2px 0 var(--console-blue-dark),0 5px 0 #06358f}.creating-room .lobby{display:block;width:100%;padding:20px 0 10px}.creating-room .room-builder{padding:16px 10px 12px;border-width:4px;border-radius:19px;box-shadow:0 6px #002c78,inset 0 0 0 2px #31adff,inset 0 -6px #00318a47,0 10px 16px #001d5847}.creating-room .room-builder-header{width:88%;min-height:52px;margin:-54px auto 14px;padding:6px 10px;border-width:3px;border-radius:9px;box-shadow:0 5px #29147f,inset 0 2px #ffffff40}.creating-room .room-builder-header h2{font-size:27px;line-height:1.05;letter-spacing:0;text-shadow:-1px -1px 0 #0a205f,1px -1px 0 #0a205f,-1px 1px 0 #0a205f,1px 1px 0 #0a205f,0 3px 0 #0a205f}.creating-room .keyboard-setting,.creating-room .match-settings [role=group]{display:block;min-height:0}.creating-room .keyboard-setting,.creating-room .match-settings [role=group]{margin-bottom:7px}.creating-room .keyboard-setting>strong,.creating-room .match-settings [role=group]>strong{min-height:34px;margin-bottom:6px;padding:5px 14px;border-width:2px;border-radius:7px;box-shadow:0 3px #001b51;font-size:17px}.creating-room .keyboard-options,.creating-room .match-settings [role=group]>div{gap:7px}.creating-room .keyboard-option,.creating-room .match-settings button{min-height:40px;padding:5px 4px;border-width:2px;border-radius:7px;box-shadow:0 3px 0 var(--console-green-dark),inset 0 2px #ffffff40;font-size:17px}.creating-room .keyboard-option-copy strong{font-size:18px}.creating-room .keyboard-option.selected,.creating-room .keyboard-option.orange.selected,.creating-room .match-settings button[aria-pressed=true]{box-shadow:0 3px 0 var(--console-yellow-dark),inset 0 2px #ffffff73}.creating-room .keyboard-option.selected:after,.creating-room .match-settings button[aria-pressed=true]:after{bottom:-8px;width:9px;height:9px;border-width:0 3px 3px 0}.creating-room .match-settings{gap:0;margin-bottom:7px}.creating-room .system-keyboard-option{min-height:47px;margin-bottom:7px;padding:5px 10px 5px 14px;border-width:2px;border-radius:7px;box-shadow:0 3px #001b51}.creating-room .system-keyboard-option strong{font-size:16px}.creating-room .system-keyboard-option small{display:none}.creating-room .system-keyboard-option input{width:52px;height:29px;border-width:2px}.creating-room .system-keyboard-option input:after{top:3px;left:3px;width:19px;height:19px}.creating-room .system-keyboard-option input:checked:after{transform:translate(23px)}.creating-room .room-summary{min-height:48px;margin-bottom:8px;padding:6px 12px;border-width:2px;border-radius:7px;box-shadow:0 3px #001b51}.creating-room .room-summary>span:first-child{display:grid;gap:0}.creating-room .room-summary strong{font-size:11px}.creating-room .room-summary small{font-size:14px}.creating-room .room-summary>span:last-child{color:#b8dcff;font-size:10px}.creating-room .primary{min-height:55px;padding:8px 12px;border-width:3px;border-radius:8px;box-shadow:0 5px 0 var(--console-yellow-dark),inset 0 3px #ffffff7a;font-size:23px}.creating-room .demo-note{margin-top:8px;font-size:10px;line-height:1.35}.creating-room .simulation-link{min-height:26px;font-size:11px}}.game-ui:not(.creating-room) header{position:relative;z-index:2;justify-content:center;width:min(1160px,100%);height:78px;margin:auto;border:0}.game-ui:not(.creating-room) .brand{color:#fff;font-size:42px;font-weight:900;line-height:1;letter-spacing:1px;text-shadow:-2px -2px 0 var(--console-blue-dark),2px -2px 0 var(--console-blue-dark),-2px 2px 0 var(--console-blue-dark),2px 2px 0 var(--console-blue-dark),0 5px 0 #06358f}.game-ui:not(.creating-room) .brand b,.game-ui:not(.creating-room) .brand small,.game-ui:not(.creating-room) .demo-label{display:none}.game-ui .connection-error{position:relative;z-index:4;max-width:920px;margin:0 auto 12px;border:3px solid #7c281f;border-radius:8px;color:#fff;background:#e96858;box-shadow:0 4px #7c281f;font-weight:700}.game-ui:not(.creating-room) .primary{min-height:60px;justify-content:center;border:3px solid #735100;border-radius:10px;color:#071a52;background:var(--console-yellow);box-shadow:0 6px 0 var(--console-yellow-dark),inset 0 3px #ffffff73;font-size:22px;font-weight:900;text-shadow:0 2px 0 white;transition:transform .1s ease-out,box-shadow .1s ease-out}.game-ui:not(.creating-room) .primary:active{transform:translateY(4px) scale(.99);box-shadow:0 2px 0 var(--console-yellow-dark)}.home-menu,.room-directory{overflow-x:hidden;overflow-y:auto}.menu-screen,.directory-screen{width:min(920px,100%);margin:auto;padding:70px 0 40px}.console-panel{position:relative;padding:86px 34px 34px;border:6px solid var(--console-blue-edge);border-radius:28px;background:var(--console-blue);box-shadow:0 10px #002c78,inset 0 0 0 4px #31adff,0 18px 24px #001d5852}.console-title{width:min(560px,82%);min-height:76px;margin:-132px auto 28px;padding:8px 20px;border:5px solid #29147f;border-radius:14px;background:var(--console-purple);box-shadow:0 7px #29147f,inset 0 3px #ffffff40;text-align:center}.console-title span{display:block;color:#fff;font-size:11px;font-weight:800;letter-spacing:2px}.console-title h1{margin:2px 0 0;color:#fff;font-size:38px;font-weight:900;line-height:1.1;letter-spacing:1px;text-shadow:-2px -2px 0 #0a205f,2px -2px 0 #0a205f,-2px 2px 0 #0a205f,2px 2px 0 #0a205f,0 4px 0 #0a205f}.menu-actions{display:grid;gap:20px}.console-action{display:flex;min-height:92px;padding:15px 24px;align-items:center;justify-content:center;text-align:center;border:4px solid;border-radius:13px;color:#fff;box-shadow:0 8px,inset 0 4px #ffffff59;touch-action:manipulation;transition:transform .1s ease-out,box-shadow .1s ease-out,background-color .12s ease-out}.console-action strong{font-size:30px;font-weight:900;text-shadow:0 3px 0 rgba(0,32,90,.45)}.console-action.yellow{border-color:#735100;color:#071a52;background:var(--console-yellow);box-shadow:0 8px 0 var(--console-yellow-dark),inset 0 4px #ffffff7a}.console-action.yellow strong{text-shadow:0 2px 0 white}.console-action.green{border-color:var(--console-green-dark);color:#071a52;background:var(--console-green);box-shadow:0 8px 0 var(--console-green-dark),inset 0 4px #ffffff47}.console-action.green strong{text-shadow:0 2px 0 rgba(255,255,255,.5)}.console-action:active{transform:translateY(5px) scale(.99);box-shadow:0 3px 0 var(--console-blue-dark)}.home-menu a:focus-visible,.room-directory a:focus-visible,.room-directory button:focus-visible{outline-color:#fff}.directory-screen{width:min(1080px,100%)}.directory-toolbar{display:flex;min-height:48px;margin-bottom:18px;padding:8px 14px;align-items:center;justify-content:space-between;gap:12px;border:3px solid #001e59;border-radius:9px;color:#b8dcff;background:var(--console-blue-dark);box-shadow:0 4px #001b51;font-size:12px}.directory-toolbar a{min-height:40px;display:inline-flex;align-items:center;color:#fff;font-weight:800}.directory-error{margin:0 0 16px;padding:12px 14px;border:3px solid #7c281f;border-radius:8px;color:#fff;background:#e96858;box-shadow:0 4px #7c281f;font-weight:750}.room-list{display:grid;gap:13px}.room-card{display:grid;grid-template-columns:150px minmax(0,1fr) 160px;min-width:0;min-height:82px;padding:12px;align-items:center;gap:14px;border:3px solid #001e59;border-radius:11px;background:var(--console-blue-dark);box-shadow:0 5px #001b51,inset 0 2px #ffffff14}.room-card-code{display:grid;gap:2px}.room-card-code span{color:#9dceff;font-size:10px;font-weight:750}.room-card-code strong{color:#fff;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:24px;letter-spacing:2px}.room-card-meta{display:flex;min-width:0;align-items:center;gap:10px;flex-wrap:wrap;color:#d8edff;font-size:13px}.room-card-meta>span:not(.phase-badge){padding:5px 8px;border-radius:5px;background:#083b88;white-space:nowrap}.phase-badge{padding:5px 9px;border:2px solid #076b3d;border-radius:5px;color:#071a52;background:var(--console-green);font-weight:850;white-space:nowrap}.phase-badge.phase-countdown{border-color:#735100;color:#071a52;background:var(--console-yellow)}.phase-badge.phase-playing{border-color:#8e2f23;background:#e96858}.phase-badge.phase-results{border-color:#3b268d;color:#fff;background:var(--console-purple)}.room-card button,.empty-directory a{min-height:48px;padding:8px 14px;border:3px solid var(--console-green-dark);border-radius:8px;color:#071a52;background:var(--console-green);box-shadow:0 5px 0 var(--console-green-dark),inset 0 3px #ffffff40;font-weight:850;touch-action:manipulation;transition:transform .1s ease-out,box-shadow .1s ease-out,background-color .12s ease-out}.room-card button:active,.empty-directory a:active{transform:translateY(3px);box-shadow:0 2px 0 var(--console-green-dark)}.room-card button:disabled{border-color:#385178;color:#9db6d6;background:#48648f;box-shadow:0 4px #20395f;opacity:1}.empty-directory{display:grid;min-height:230px;padding:30px;place-items:center;align-content:center;gap:10px;border:3px solid #001e59;border-radius:12px;background:var(--console-blue-dark);box-shadow:0 5px #001b51;text-align:center}.empty-directory strong{font-size:25px;font-weight:900}.empty-directory span{color:#b8dcff;font-size:13px}.empty-directory a{display:inline-flex;margin-top:8px;align-items:center;justify-content:center}@media(hover:hover){.console-action.yellow:hover{background:#ffe33b}.console-action.green:hover,.room-card button:not(:disabled):hover,.empty-directory a:hover{background:#0aa856}}@media(max-width:700px){.app.home-menu,.app.room-directory{padding:0 10px 16px}.menu-screen,.directory-screen{padding:52px 0 20px}.console-panel{padding:60px 10px 16px;border-width:4px;border-radius:19px;box-shadow:0 6px #002c78,inset 0 0 0 2px #31adff,0 10px 16px #001d5847}.console-title{width:88%;min-height:55px;margin:-92px auto 18px;padding:7px 10px;border-width:3px;border-radius:9px;box-shadow:0 5px #29147f}.console-title span{font-size:9px}.console-title h1{font-size:27px;text-shadow:-1px -1px 0 #0a205f,1px -1px 0 #0a205f,-1px 1px 0 #0a205f,1px 1px 0 #0a205f,0 3px 0 #0a205f}.menu-actions{gap:13px}.console-action{min-height:76px;padding:10px 14px;border-width:3px;border-radius:9px;box-shadow:0 6px}.console-action strong{font-size:23px}.directory-toolbar{margin-bottom:12px;padding:5px 9px;border-width:2px;font-size:10px}.room-list{gap:10px}.room-card{grid-template-columns:minmax(0,1fr) 116px;min-height:0;padding:10px;gap:9px;border-width:2px;border-radius:8px}.room-card-code strong{font-size:20px}.room-card-meta{grid-column:1 / -1;grid-row:2;gap:6px;font-size:11px}.room-card button{grid-column:2;grid-row:1;min-height:44px;padding:6px 8px;border-width:2px;font-size:12px}.phase-badge,.room-card-meta>span:not(.phase-badge){padding:4px 6px}.empty-directory{min-height:210px;padding:20px 12px}}.joining-room .lobby{display:grid;grid-template-columns:1fr;place-items:center;width:min(920px,100%);margin:auto;padding:70px 0 40px}.joining-room .intro,.joining-room .lobby-footer{display:none}.joining-room .setup{width:min(780px,100%);padding:86px 34px 30px;border:6px solid var(--console-blue-edge);border-radius:28px;color:#fff;background:var(--console-blue);box-shadow:0 10px #002c78,inset 0 0 0 4px #31adff,0 18px 24px #001d5852}.joining-room .section-heading{width:min(560px,82%);min-height:76px;margin:-132px auto 28px;padding:10px 20px;justify-content:center;border:5px solid #29147f;border-radius:14px;background:var(--console-purple);box-shadow:0 7px #29147f,inset 0 3px #ffffff40}.joining-room .section-heading h2{color:#fff;font-size:36px;font-weight:900;text-shadow:-2px -2px 0 #0a205f,2px -2px 0 #0a205f,-2px 2px 0 #0a205f,2px 2px 0 #0a205f,0 4px 0 #0a205f}.joining-room .section-heading span{display:none}.joining-room .setup>.muted{margin:0 0 16px;color:#d7ecff;font-size:16px;text-align:center}.join-room-code{margin:0 0 18px;padding:20px;border:3px solid #001e59;border-radius:10px;color:#fff;background:var(--console-blue-dark);box-shadow:0 4px #001b51;font-size:28px;font-weight:900;letter-spacing:3px;text-align:center}.joining-room .demo-note{color:#d7ecff;font-size:13px}.waiting-room .waiting.setup{width:min(980px,100%);max-width:none;margin:56px auto 40px;padding:66px 28px 26px;border:6px solid var(--console-blue-edge);border-radius:28px;color:#fff;background:var(--console-blue);box-shadow:0 10px #002c78,inset 0 0 0 4px #31adff,0 18px 24px #001d5852}.waiting-room .waiting>.eyebrow{display:none}.waiting-room .waiting h1{width:min(600px,78%);min-height:74px;margin:-112px auto 26px;padding:10px 18px;border:5px solid #29147f;border-radius:14px;color:#fff;background:var(--console-purple);box-shadow:0 7px #29147f,inset 0 3px #ffffff40;font-size:36px;font-weight:900;line-height:1.25;text-align:center;text-shadow:-2px -2px 0 #0a205f,2px -2px 0 #0a205f,-2px 2px 0 #0a205f,2px 2px 0 #0a205f,0 4px 0 #0a205f}.waiting-room .waiting>label{display:block;margin-bottom:8px;color:#fff;font-size:15px;font-weight:800}.waiting-room .share-link{margin:0 0 18px;padding:10px;border:3px solid #001e59;border-radius:10px;background:var(--console-blue-dark);box-shadow:0 4px #001b51}.waiting-room .share-link input{min-height:44px;border:2px solid #3daaff;border-radius:7px;color:#071a52;background:#fff;font-weight:750}.waiting-room .share-link .text-button,.waiting-room .waiting>.text-button{min-height:44px;border:2px solid var(--console-green-dark);border-radius:7px;color:#fff;background:var(--console-green);box-shadow:0 3px 0 var(--console-green-dark);font-weight:800}.waiting-room .players{gap:9px;margin-bottom:14px}.waiting-room .players>div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;min-height:58px;padding:12px 16px;border:3px solid #001e59;border-radius:9px;color:#fff;background:var(--console-blue-dark);box-shadow:0 3px #001b51}.waiting-room .players strong{min-width:0;font-size:15px;overflow-wrap:anywhere}.waiting-room .players span{color:#b9ddff;font-size:13px;font-weight:700}.waiting-room .players>.ready{border-color:var(--console-green-dark);background:var(--console-green);box-shadow:0 3px 0 var(--console-green-dark),inset 0 2px #fff3}.waiting-room .players>.ready span{color:#e0ffed}.waiting-room .players>.not-ready{border-color:#29147f;background:var(--console-purple);box-shadow:0 3px #29147f,inset 0 2px #ffffff29}.waiting-room .players>.not-ready span{color:#e3dcff}.waiting-room .input-mode-options{gap:9px;margin:14px 0}.waiting-room .input-mode-options button{position:relative;min-height:58px;border:3px solid var(--console-green-dark);border-radius:8px;color:#fff;background:var(--console-green);box-shadow:0 4px 0 var(--console-green-dark);font-weight:850}.waiting-room .input-mode-options button[aria-pressed=true]{border-color:var(--console-yellow-dark);color:#071a52;background:var(--console-yellow);box-shadow:0 4px 0 var(--console-yellow-dark)}.waiting-room .input-mode-options button[aria-pressed=true]:after{content:"已选";margin-left:8px;font-size:10px}.waiting-room .waiting>.muted,.waiting-room .waiting>p[role=status],.waiting-room .waiting>p[aria-live=polite]{color:#d7ecff;font-size:13px}.waiting-room .waiting>.primary{margin-top:10px}.match-room,.results-room{padding-inline:24px}.match-room .match-bar,.results-room .match-bar{width:min(1160px,100%);max-width:none;height:58px;margin:0 auto 10px;padding:8px 14px 8px 20px;border:3px solid #29147f;border-radius:10px;color:#fff;background:var(--console-purple);box-shadow:0 5px #29147f;font-size:16px;font-weight:850}.match-room .clock>span,.results-room .clock>span{color:#d9ceff}.match-room .clock strong,.results-room .clock strong{color:var(--console-yellow);font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:30px;font-weight:900}.match-room .match-bar .text-button,.results-room .match-bar .text-button{min-height:38px;border:2px solid var(--console-green-dark);border-radius:7px;color:#fff;background:var(--console-green);font-weight:800}.match-room .clock.urgent,.results-room .clock.urgent{padding:3px 8px;border-radius:6px;color:#fff;background:#e96858}.match-room .arena,.results-room .arena{width:min(1160px,100%);max-width:none;height:calc(var(--viewport-height, 100dvh) - 160px);min-height:690px;margin:0 auto 20px;border:5px solid var(--console-blue-edge);border-radius:20px;color:#fff;background:var(--console-blue);box-shadow:0 8px #002c78,inset 0 0 0 3px #31adff}.game-ui .reference{position:relative;padding:12px 24px;border-bottom:4px solid var(--console-blue-edge);color:#fff;background:var(--console-blue-dark)}.game-ui .reference-text{color:#fff;font-size:22px;font-weight:800}.game-ui .current-char{color:var(--console-yellow);font-weight:900}.game-ui .reference-char{position:relative;display:inline-flex;width:34px;height:34px;align-items:center;justify-content:center;vertical-align:middle;margin:0;padding:1px;border:2px solid #255799;border-radius:5px;color:inherit;background:#ffffff1f;font:inherit;line-height:1.2;letter-spacing:0;touch-action:manipulation}.game-ui .reference-char.correct{border-color:#087c48;color:#fff;background:var(--console-green);box-shadow:inset 0 -3px #079d53,0 2px #065c36}.game-ui .reference-char.wrong{border-color:#8f2f27;color:#fff;background:#d94f43;box-shadow:0 2px #8f2f27}.game-ui .reference-char.wrong small{position:absolute;right:-2px;bottom:-5px;padding:0 2px;color:#ffd2ce;background:#8f2f27;font-size:9px;font-weight:900;line-height:12px;text-decoration:underline;text-underline-offset:2px}.game-ui .reference-char.current-char{border-color:#735100;color:#071a52;background:var(--console-yellow);box-shadow:0 2px 0 var(--console-yellow-dark)}.game-ui .system-input-tools{display:flex;align-items:center;justify-content:space-between;width:min(314px,100%);margin-inline:auto;color:#b8dcff;font-size:10px;font-weight:750;line-height:14px}.game-ui .system-input-tools .text-button{min-height:24px;padding:2px 4px;color:#b8dcff;font-size:10px;text-decoration:underline}.game-ui .writing{padding:14px 22px 0;background:#0b70d7}.game-ui .writing-toolbar{margin-bottom:10px}.game-ui .writing-toolbar h2,.game-ui .legend,.game-ui .typing-hint,.game-ui .input-help{color:#fff;font-weight:750}.game-ui .key-label,.game-ui .key-label.orange{color:#071a52;background:var(--console-yellow);font-weight:850}.game-ui .legend i:first-child{background:var(--console-green)}.game-ui .legend i:last-child{background:#f07165}.game-ui .character-grid{gap:6px}.game-ui .cell{border:2px solid #1675ca;border-radius:6px;color:#071a52;background:#e7f5ff;box-shadow:0 3px #0756a2;font-weight:850}.game-ui .cell.correct{border-color:#06703e;color:#052f20;background:#31d978;box-shadow:inset 0 -4px #079d53,0 3px #065c36;font-weight:900}.game-ui .cell.wrong{border-color:#8f2f27;color:#661b16;background:#f07165;box-shadow:0 3px #8f2f27;font-weight:900;text-decoration-thickness:3px}.game-ui .cell.active{border:3px solid #735100;color:#071a52;background:var(--console-yellow);box-shadow:0 3px 0 var(--console-yellow-dark)}.game-ui .caret{width:3px;background:#071a52}.game-ui .typing-hint .text-button,.game-ui .writing [role=status] .text-button{min-height:36px;border:2px solid var(--console-green-dark);border-radius:6px;color:#fff;background:var(--console-green)}.game-ui .vrime-keyboard{border-top:3px solid var(--console-blue-edge)}.game-ui .candidates small{color:#d7ecff}.game-ui .preedit{color:var(--console-yellow);font-weight:800}.game-ui .candidate-bar>button,.game-ui .candidates button{border:2px solid #0756a2;color:#071a52;background:#e7f5ff}.game-ui .t9-layout,.game-ui .qwerty-layout{padding:5px;border:3px solid var(--console-blue-edge);border-radius:10px;background:#0a63c4}.game-ui .t9-layout button,.game-ui .qwerty-layout button{border:2px solid #0756a2;border-radius:6px;color:#071a52;background:#eff8ff;box-shadow:0 3px #06498e;font-weight:800}.game-ui .t9-layout button:active,.game-ui .qwerty-layout button:active{border-color:var(--console-yellow-dark);color:#071a52;background:var(--console-yellow);box-shadow:0 1px 0 var(--console-yellow-dark)}.game-ui .qwerty-layout button{box-shadow:inset 0 -3px #06498e}.game-ui .qwerty-layout button:active{box-shadow:inset 0 -1px 0 var(--console-yellow-dark)}.game-ui .t9-pinyin-options button[aria-pressed=true]{border-color:var(--console-yellow-dark);color:#071a52;background:var(--console-yellow);box-shadow:0 3px 0 var(--console-yellow-dark)}.game-ui .race-progress{padding:8px 10px 6px;border:3px solid #001e59;border-radius:9px;color:#fff;background:var(--console-blue-dark)}.game-ui .race-progress>div,.game-ui .opponent,.game-ui .race-progress small,.game-ui .race-progress strong{color:#fff;font-weight:750}.game-ui progress,.game-ui progress::-webkit-progress-bar{height:7px;background:#031a48}.game-ui progress::-webkit-progress-value{background:var(--console-green)}.game-ui progress::-moz-progress-bar{background:var(--console-green)}.game-ui .opponent+progress::-webkit-progress-value{background:var(--console-yellow)}.game-ui .opponent+progress::-moz-progress-bar{background:var(--console-yellow)}.game-ui .stats{border-top:3px solid var(--console-blue-edge)}.game-ui .stats>span,.game-ui .stats strong,.game-ui .stats small{color:#fff;font-weight:750}.game-ui .stats strong{color:var(--console-yellow)}.game-ui.with-system-input .reference{justify-content:flex-start;gap:10px;min-height:0;padding:18px 24px}.game-ui.with-system-input .reference-text{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));justify-content:center;gap:6px;width:100%;max-width:314px;max-height:none;margin-inline:auto;font-size:18px;line-height:1;letter-spacing:0;flex-shrink:0}.game-ui.with-system-input .reference-char{width:100%}.game-ui.with-system-input .writing{flex:none;padding-top:8px}.game-ui.with-system-input .race-progress{display:grid;grid-template-columns:1fr 1fr;column-gap:12px;padding-bottom:3px}.game-ui.with-system-input .race-progress.many-opponents{display:block}.game-ui.with-system-input .race-progress>div{grid-row:1}.game-ui.with-system-input .race-progress progress{margin:4px 0}.game-ui.with-system-input .stats{padding:6px 0}.game-ui.with-system-input .stats>span{flex-direction:row;align-items:baseline;gap:4px}.game-ui.with-system-input .stats strong{font-size:16px}.game-ui .countdown{color:#fff;font-weight:800}.game-ui .countdown strong{color:var(--console-yellow);text-shadow:0 5px 0 var(--console-yellow-dark)}.results-room .modal-backdrop{z-index:10;padding:24px;background:#00184dc7}.results-room .results{width:min(900px,100%);max-width:none;padding:28px;border:6px solid var(--console-blue-edge);border-radius:24px;color:#fff;background:var(--console-blue);box-shadow:0 9px #002c78,inset 0 0 0 3px #31adff}.results-room .results>.eyebrow{display:none}.results-room .results h1{width:min(600px,82%);min-height:72px;margin:0 auto 22px;padding:10px 18px;border:5px solid #29147f;border-radius:13px;color:var(--console-yellow);background:var(--console-purple);box-shadow:0 7px #29147f;font-size:36px;font-weight:900;line-height:1.25;text-align:center;text-shadow:-2px -2px 0 #0a205f,2px -2px 0 #0a205f,-2px 2px 0 #0a205f,2px 2px 0 #0a205f,0 4px 0 #0a205f}.results-room .results>.muted{color:#d7ecff;font-size:12px;text-align:center}.results-room .result-gap{margin:0 auto 12px;color:#fff;font-size:18px;font-weight:900;text-align:center}.room-record{display:flex;flex-wrap:wrap;gap:7px;margin:16px 0 4px}.room-record>*{padding:6px 9px;border:2px solid #001e59;border-radius:6px;color:#fff;background:var(--console-blue-dark);font-size:11px}.room-record>strong{color:var(--console-yellow)}.rematch-status{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0 0 18px}.rematch-status>div{display:flex;justify-content:space-between;gap:8px;padding:8px 10px;border:2px solid #255799;border-radius:7px;background:var(--console-blue-dark);font-size:11px}.rematch-status strong{color:var(--console-yellow);text-align:right}.results-room .result-numbers{gap:14px;padding:18px 0 14px}.results-room .result-numbers>div{flex:1;min-height:118px;justify-content:center;align-items:center;border:3px solid #735100;border-radius:10px;color:#071a52;background:var(--console-yellow);box-shadow:0 5px 0 var(--console-yellow-dark);font-size:14px;font-weight:850}.results-room .result-numbers>div:nth-child(2){border-color:var(--console-green-dark);background:var(--console-green);box-shadow:0 5px 0 var(--console-green-dark)}.results-room .result-numbers strong,.results-room .result-numbers small{color:#071a52;font-weight:900}.results-room .results dl{padding:8px 14px;border:3px solid #001e59;border-radius:9px;background:var(--console-blue-dark)}.results-room .results dl>div{gap:18px;border-bottom-color:#255799}.results-room .results dt{color:#b9ddff}.results-room .results dd{margin:0;color:#fff;font-weight:800;text-align:right}.result-actions{display:grid;grid-template-columns:1.2fr 1fr;gap:14px}.result-home{min-height:60px;border:3px solid var(--console-green-dark);border-radius:10px;color:#fff;background:var(--console-green);box-shadow:0 6px 0 var(--console-green-dark),inset 0 3px #ffffff40;font-size:20px;font-weight:900}.result-home:active{transform:translateY(4px) scale(.99);box-shadow:0 2px 0 var(--console-green-dark)}@media(hover:hover){.game-ui:not(.creating-room) .primary:hover{background:#ffe33b}.waiting-room .share-link .text-button:hover,.waiting-room .waiting>.text-button:hover,.match-room .match-bar .text-button:hover,.results-room .match-bar .text-button:hover,.result-home:hover{background:#0aa856}}@media(max-width:700px){.app.game-ui:not(.creating-room){padding-inline:8px}.game-ui:not(.creating-room) header{height:54px}.game-ui:not(.creating-room) .brand{font-size:31px;text-shadow:-1px -1px 0 var(--console-blue-dark),1px -1px 0 var(--console-blue-dark),-1px 1px 0 var(--console-blue-dark),1px 1px 0 var(--console-blue-dark),0 3px 0 #06358f}.joining-room .lobby{padding:56px 0 20px}.joining-room .setup{padding:62px 14px 18px;border-width:4px;border-radius:18px;box-shadow:0 6px #002c78,inset 0 0 0 2px #31adff}.joining-room .section-heading{min-height:54px;margin:-96px auto 18px;border-width:3px;border-radius:9px;box-shadow:0 4px #29147f}.joining-room .section-heading h2{font-size:26px}.joining-room .setup>.muted{font-size:13px}.join-room-code{padding:16px 10px;font-size:22px}.waiting-room .waiting.setup{margin:48px auto 20px;padding:52px 12px 16px;border-width:4px;border-radius:18px;box-shadow:0 6px #002c78,inset 0 0 0 2px #31adff}.waiting-room .waiting h1{min-height:52px;margin:-84px auto 16px;padding:7px 10px;border-width:3px;border-radius:9px;box-shadow:0 4px #29147f;font-size:25px}.waiting-room .share-link{margin-bottom:12px;padding:7px;border-width:2px}.waiting-room .share-link input{min-width:0;font-size:11px}.waiting-room .players>div{grid-template-columns:minmax(0,1fr);gap:3px;min-height:50px;padding:8px 10px;border-width:2px}.waiting-room .players strong,.waiting-room .players span{font-size:11px}.waiting-room .input-mode-options button{min-height:52px;border-width:2px;font-size:12px}.waiting-room .waiting>.muted,.waiting-room .waiting>p[role=status],.waiting-room .waiting>p[aria-live=polite]{font-size:11px}.match-room,.results-room{padding-inline:8px}.match-room .match-bar,.results-room .match-bar{height:48px;margin-bottom:7px;padding:5px 7px 5px 10px;border-width:2px;font-size:11px}.match-room .match-bar>span:first-child,.results-room .match-bar>span:first-child{display:none}.live-standing{gap:4px}.live-standing strong{font-size:12px}.live-standing span{font-size:9px}.live-standing.urgent{padding:2px 4px}.rank-notice{top:60px;font-size:12px}.match-room .clock,.results-room .clock{gap:4px}.match-room .clock>span,.results-room .clock>span{display:none}.match-room .clock strong,.results-room .clock strong{font-size:22px}.match-room .match-bar .text-button,.results-room .match-bar .text-button{min-height:36px;padding:5px 8px;font-size:10px}.match-room .arena,.results-room .arena{width:100%;height:calc(var(--viewport-height, 100dvh) - 109px);min-height:735px;border-width:3px;border-radius:13px;box-shadow:0 5px #002c78,inset 0 0 0 2px #31adff}.game-ui.match-room.with-keyboard .arena{min-height:735px}.game-ui.match-room.with-system-input .arena{grid-template-rows:minmax(0,1fr) auto;height:calc(var(--viewport-height, 100dvh) - 100px);min-height:0}.game-ui.match-room.with-system-input{height:var(--viewport-height, 100dvh);min-height:0;padding-bottom:0;overflow:hidden}.game-ui.match-room.with-system-input .reference{gap:6px;padding:8px 12px}.game-ui .reference{padding:8px 12px;border-bottom-width:3px}.game-ui .reference-text{font-size:16px;line-height:1.55;letter-spacing:2px;max-height:52px}.game-ui.with-system-input .reference-text{gap:4px;max-height:none}.game-ui .writing{padding:8px 7px 0}.game-ui .writing-toolbar{margin-bottom:7px}.game-ui .character-grid{gap:5px}.game-ui .cell{border-width:1px;font-size:18px;box-shadow:0 2px #0756a2}.game-ui .cell.correct{box-shadow:inset 0 -3px #079d53,0 2px #065c36}.game-ui .cell.wrong{box-shadow:0 2px #8f2f27}.game-ui .cell.active{border-width:2px;box-shadow:0 2px 0 var(--console-yellow-dark)}.game-ui .race-progress{padding:6px 7px 4px;border-width:2px}.game-ui .t9-layout,.game-ui .qwerty-layout{padding:3px;border-width:2px}.game-ui .t9-layout button{box-shadow:0 2px #06498e}.game-ui .qwerty-layout button{box-shadow:inset 0 -2px #06498e}.results-room .modal-backdrop{padding:12px}.results-room .results{padding:14px;border-width:4px;border-radius:17px}.results-room .results h1{min-height:54px;margin:0 auto 16px;padding:8px;border-width:3px;font-size:24px}.results-room .result-gap{font-size:14px}.room-record{margin-top:12px}.room-record>*{padding:4px 6px;font-size:9px}.rematch-status{grid-template-columns:1fr;margin-bottom:12px}.results-room .result-numbers{gap:8px;padding:12px 0}.results-room .result-numbers>div{min-height:90px;border-width:2px}.results-room .result-numbers strong{font-size:30px}.results-room .results dl{margin-bottom:18px;padding:5px 8px;border-width:2px;font-size:10px}.results-room .results dl>div{padding:7px 0}.result-actions{gap:8px}.game-ui:not(.creating-room) .result-actions .primary,.result-home{min-height:52px;border-width:2px;font-size:16px}}
