.game-page{--g-bg:#fffdf5;--g-card:#ffffff;--g-chip:#fff6d6;--g-line:#f0dfa6;--g-text:#3a2a1a;--g-dim:#7a654b;--g-brand:#d97706;--study-blue:#d97706;--g-brand-soft:#fff2b8;--g-ok:#22c55e;--g-err:#ef4444;min-height:100vh;display:flex;flex-direction:column;background:var(--g-bg);color:var(--g-text);font-size:15px}.game-page *{box-sizing:border-box}.game-head{position:sticky;top:0;z-index:20;justify-content:space-between;gap:14px;height:58px;padding:0 20px;background:var(--g-card);border-bottom:1px solid var(--g-line)}.game-brand,.game-head{display:flex;align-items:center}.game-brand{gap:12px;min-width:0}.game-back-btn{width:30px;height:30px;flex:0 0 auto;border:0;border-radius:50%;background:#ffd426;color:#3a2a1a;display:grid;place-items:center;font-size:14px;cursor:pointer}.game-back-btn:hover{background:#ffdc47}.game-brand-text{min-width:0}.game-title{margin:0;color:#3a2a1a;font-size:16px;font-weight:800}.game-sub,.game-title{display:block;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.game-sub{margin:2px 0 0;color:#7c8291;font-size:12px}.game-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto;margin-left:auto}.game-action{display:inline-flex;align-items:center;gap:5px;height:30px;padding:0 10px;border:0;border-radius:6px;background:#f1f2f5;color:#393939;font-size:13px;line-height:1;white-space:nowrap;cursor:pointer;transition:background .15s,color .15s}.game-action .anticon{color:#d97706;font-size:14px}.game-action:hover{background:#e7e9ef;color:#111}.game-action:disabled{opacity:.45;cursor:not-allowed}.game-icon-btn{display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:6px;background:transparent;color:#d97706;font-size:17px;cursor:pointer}.game-icon-btn:hover{background:#f1f2f5}.game-switchbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:10px 20px}.game-chip{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 11px;border:0;border-radius:6px;background:#f1f2f5;color:#2c303a;font-size:13px;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.game-chip .anticon{color:#555;font-size:15px}.game-chip-switch{cursor:pointer}.game-chip-select{height:34px;padding:0 10px;border:0;border-radius:6px;background:#f1f2f5;color:#2c303a;font-size:13px;cursor:pointer}.game-readmode-bar{gap:2px;padding:2px;border-radius:7px;background:#f1f2f5}.game-readmode-bar,.game-readmode-btn{display:inline-flex;align-items:center}.game-readmode-btn{gap:4px;height:30px;padding:0 10px;border:1px solid transparent;border-radius:5px;background:transparent;color:#555b68;font-size:12.5px;cursor:pointer;white-space:nowrap}.game-readmode-btn:hover{color:#222}.game-readmode-btn.is-active{border-color:#4f6bff;background:#eef2ff;color:#d97706;font-weight:500}.game-main{flex:1 1 auto;min-height:0;justify-content:safe center;padding:12px 24px 0;overflow-y:auto}.game-content,.game-main{display:flex;flex-direction:column;align-items:center;width:100%}.game-content{max-width:1060px;text-align:center}.game-save-error{align-self:stretch;margin-bottom:12px;padding:8px 14px;border-radius:8px;background:#fff1f0;color:#cf1322;font-size:14px;text-align:center}.game-prompt{margin:0 0 34px;color:#333;font-size:40px;font-weight:400;line-height:1.5}.game-words{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:center;gap:10px 14px}.game-word-slot{display:flex;flex-direction:column;align-items:center;gap:16px}.game-word-line{min-height:86px;padding:0 4px;border-bottom:3px solid #888;color:var(--g-brand);font-size:70px;font-weight:600;line-height:1.14;white-space:pre}.game-word-line.is-current{border-bottom-color:var(--g-brand)}.game-word-line.is-done{border-bottom-color:var(--g-ok);color:#202124}.game-word-line .typed{color:#202124}.game-word-line .rest{color:transparent}.game-word-phonetic{color:var(--g-brand);font-size:20px;line-height:1.2;white-space:nowrap}.game-phonetic-row{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 12px;margin-bottom:8px;color:var(--g-brand);font-size:20px}.game-big-word{padding:0 6px 2px;border-bottom:3px solid var(--g-brand);color:#111;font-size:70px;font-weight:600;line-height:1.15}.game-sentence{margin:24px 0 0;color:#333;font-size:40px;line-height:1.5}.game-mic{margin:22px auto 0}.game-mic-label{margin-top:8px;color:#666;font-size:15px}.game-typing-words{display:block;max-width:100%;color:#b8bcc4;font-size:70px;font-weight:600;line-height:1.2;white-space:pre-wrap;word-break:break-word}.game-typing-words .char{display:inline}.game-typing-words .char.is-done{color:#111}.game-typing-words .char.is-cursor{color:#111;border-bottom:3px solid var(--g-brand)}.game-keyboard{width:min(900px,100%);margin:22px auto 0;padding:10px 10px 12px;border-radius:12px;background:#ececee;display:flex;flex-direction:column;gap:5px}.game-kb-row{display:flex;justify-content:center;gap:5px}.game-kb-key{width:48px;color:#111;font-size:15px;font-weight:500;box-shadow:0 1px 0 rgba(0,0,0,.08)}.game-kb-key,.game-kb-space{height:36px;border:0;border-radius:6px;background:#f7f7f8;cursor:pointer}.game-kb-space{width:280px}.game-feedback{margin-top:16px;font-size:18px}.game-feedback.ok{color:var(--g-ok)}.game-feedback.err{color:var(--g-err)}.game-explanation{max-width:820px;margin-top:16px;padding:12px 16px;border-radius:8px;background:#f3f4f6;color:#555;font-size:14px;line-height:1.7;text-align:left}.game-input{width:min(720px,100%);margin-top:22px;padding:12px 18px;border:2px solid #dfe3ea;border-radius:10px;background:#fff;color:#111;font-size:22px;text-align:center;outline:none}.game-input:focus{border-color:var(--g-brand)}.game-input.is-correct{border-color:var(--g-ok)}.game-input.is-wrong{border-color:var(--g-err)}.game-flashcard{width:min(520px,100%);min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:28px;border-radius:16px;background:#fff;box-shadow:0 10px 30px rgba(20,24,40,.08);cursor:pointer}.game-flashcard-actions{display:flex;gap:12px;width:min(520px,100%);margin-top:18px}.game-token-row{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:14px}.game-token{padding:8px 14px;border:1px solid #e2e5ec;border-radius:8px;background:#fff;color:#333;font-size:16px;cursor:pointer}.game-token:hover{border-color:var(--g-brand);color:var(--g-brand)}.game-token-picked{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;min-height:30px;margin-top:12px;color:#666;font-size:17px}.game-reveal{display:flex;flex-direction:column;align-items:center;gap:6px;margin-top:18px}.game-botbar{flex:0 0 auto;width:min(100%,960px);margin:0 auto;padding:0 16px 14px;background:transparent}.game-progress{height:5px;margin-bottom:10px;border-radius:99px;background:#e5e7ec;overflow:hidden}.game-progress i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#8b80ff,#5c7cfa);transition:width .25s}.game-botbox{display:flex;align-items:center;justify-content:center;gap:6px;width:fit-content;max-width:100%;margin:0 auto;padding:6px 8px;border-radius:10px;background:#f2f3f5;overflow-x:auto}.game-key{display:inline-flex;align-items:center;gap:5px;height:32px;padding:0 10px;border:0;border-radius:6px;background:#e4e6eb;color:#555;font-size:13px;white-space:nowrap;cursor:pointer}.game-key:hover{background:#dcdfe6}.game-key:disabled{opacity:.45;cursor:not-allowed}.game-key kbd{padding:0;border:0;background:transparent;color:#1f2430;font-family:inherit;font-size:13px;font-weight:700}.game-key span{color:#5f6672}.game-key.is-nav,.game-key.is-nav span{color:#1f2430;font-weight:600}.game-key.is-primary,.game-key.is-primary kbd,.game-key.is-primary span{color:#1f2430}.game-overlay{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:20px;background:rgba(40,44,52,.42);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.game-dialog{width:min(560px,100%);max-height:86vh;overflow:auto;border-radius:16px;background:rgba(255,255,255,.96);box-shadow:0 24px 70px rgba(20,24,40,.22)}.game-dialog-head{display:flex;align-items:center;justify-content:space-between;padding:22px 28px 8px}.game-dialog-title{margin:0;color:#333;font-size:22px;font-weight:600}.game-dialog-close{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:50%;background:#f1f2f5;color:#777;font-size:16px;cursor:pointer}.game-dialog-body{padding:8px 28px 12px}.game-dialog-actions{display:flex;gap:12px;padding:16px 28px 26px}.game-dialog-btn{flex:1 1;height:48px;border:1px solid #d9dce3;border-radius:10px;background:#fff;color:#555;font-size:17px;cursor:pointer}.game-dialog-btn.primary{border:2px solid #e0a800;background:#ffd426;color:#3a2a1a;font-weight:800}.game-dialog-btn:disabled{opacity:.6;cursor:not-allowed}.game-dialog-scroll{max-height:60vh;overflow:auto}.game-pause-copy{padding:6px 8px 2px;text-align:center}.game-pause-copy p{margin:6px 0;color:#666;font-size:16px}.game-list-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px}.game-list-item{padding:8px 10px;border:1px solid #e6e8ee;border-radius:8px;background:#fff;color:#555;font-size:13px;text-align:left;cursor:pointer}.game-list-item.is-current,.game-list-item:hover{border-color:var(--g-brand)}.game-list-item.is-current{background:var(--g-brand-soft);color:var(--g-brand)}@media (max-width:900px){.game-head{height:60px;padding:0 14px}.game-title{font-size:17px}.game-sub{font-size:12px}.game-actions{display:none}.game-switchbar{padding:10px 14px;gap:8px}.game-chip{height:34px;font-size:13px;padding:0 10px}.game-main{padding:8px 14px 0}.game-botbar{padding:0 14px 12px}.game-prompt,.game-sentence{font-size:24px}.game-big-word,.game-typing-words,.game-word-line{font-size:40px}.game-word-line{min-height:52px}.game-mic{--orb-size:104px;--core-size:62px;--icon-size:26px}.game-kb-key{width:34px;height:32px;font-size:14px}.game-kb-space{width:160px;height:32px}.game-botbox{justify-content:flex-start}.game-key{height:38px;padding:0 8px}.game-key,.game-key kbd{font-size:13px}}.word-card-study{width:min(520px,100%);min-height:260px;margin:0 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:28px;border-radius:16px;background:#fff;box-shadow:0 10px 30px rgba(20,24,40,.08);cursor:pointer}.game-settings-overlay{background:rgba(15,23,42,.36);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.game-settings-dialog.game-settings-glass{width:min(680px,94vw);max-height:82vh;display:flex;flex-direction:column;overflow:hidden;border-radius:22px;border:1px solid rgba(255,255,255,.32);background:linear-gradient(180deg,rgba(114,114,146,.78),rgba(72,74,96,.84) 18%,rgba(62,66,84,.88));box-shadow:0 28px 80px rgba(15,23,42,.42),inset 0 1px 0 rgba(255,255,255,.35);-webkit-backdrop-filter:blur(26px) saturate(140%);backdrop-filter:blur(26px) saturate(140%);color:rgba(255,255,255,.94)}.game-settings-glass .game-settings-head{padding:20px 26px 14px;border-bottom:1px solid rgba(255,255,255,.14)}.game-settings-glass .game-dialog-title{color:#fff;font-size:18px;font-weight:500}.game-settings-glass .game-dialog-close{width:30px;height:30px;background:rgba(255,255,255,.24);color:rgba(255,255,255,.92);font-size:13px}.game-settings-glass .game-dialog-close:hover{background:rgba(255,255,255,.36)}.game-settings-tabs{display:flex;gap:6px;padding:6px 26px 0;border-bottom:1px solid rgba(255,255,255,.16);overflow-x:auto}.game-settings-tabs button{padding:10px 10px 12px;border:0;border-bottom:2px solid transparent;background:transparent;color:rgba(255,255,255,.78);font-size:14px;white-space:nowrap;cursor:pointer;transition:color .15s,border-color .15s}.game-settings-tabs button:hover{color:#fff}.game-settings-tabs button.is-active{border-bottom-color:#63b3ff;color:#63b3ff;font-weight:600}.game-settings-body{flex:1 1 auto;min-height:260px;max-height:62vh;overflow-y:auto;padding:18px 26px 26px}.game-settings-empty{margin:28px 0;text-align:center;color:rgba(255,255,255,.7);font-size:14px}.game-settings-sections{display:flex;flex-direction:column;gap:16px}.game-settings-section{padding:18px 20px 20px;border:1px solid rgba(255,255,255,.28);border-radius:14px;background:rgba(255,255,255,.05)}.game-settings-section-title{margin:0 0 16px;display:flex;align-items:center;gap:8px;color:#fff;font-size:15px;font-weight:600}.game-settings-section-title:before{content:"";width:3px;height:15px;border-radius:999px;background:linear-gradient(180deg,#56c2ff,#6558f5)}.game-settings-list{display:flex;flex-direction:column;gap:18px}.game-settings-item{display:flex;flex-direction:column;gap:10px}.game-settings-item-head{display:flex;align-items:center;gap:8px}.game-settings-label{color:rgba(255,255,255,.94);font-size:14px;line-height:1.45}.game-settings-hint{margin-left:6px;color:rgba(255,255,255,.62);font-size:12.5px;font-style:normal}.game-settings-preview{display:inline-grid;place-items:center;width:24px;height:24px;border:0;border-radius:50%;background:transparent;color:rgba(255,255,255,.84);font-size:14px;cursor:pointer}.game-settings-preview:hover{background:rgba(255,255,255,.16);color:#fff}.game-settings-control{width:100%;display:flex;align-items:center}.game-switch{position:relative;width:46px;height:24px;padding:2px;border:0;border-radius:999px;background:rgba(255,255,255,.28);cursor:pointer;transition:background .2s ease}.game-switch.is-on{background:linear-gradient(90deg,#3ea8ff,#6050f8)}.game-switch-thumb{display:block;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(15,23,42,.24);transition:transform .2s ease}.game-switch.is-on .game-switch-thumb{transform:translateX(22px)}.game-settings-input,.game-settings-select{width:100%;height:40px;padding:0 14px;border:1px solid rgba(255,255,255,.24);border-radius:8px;background:#fff;color:#262933;font-size:14px}.game-settings-range{width:100%;display:flex;align-items:center;gap:14px}.game-settings-range input[type=range]{flex:1 1 auto;height:6px;appearance:none;border-radius:999px;background:linear-gradient(90deg,#5271ff 0,#5271ff var(--range-pct,50%),rgba(255,255,255,.86) var(--range-pct,50%),rgba(255,255,255,.86) 100%);outline:none;cursor:pointer}.game-settings-range input[type=range]::-webkit-slider-thumb{appearance:none;width:18px;height:18px;border:2px solid #5271ff;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(15,23,42,.24)}.game-settings-range-val{min-width:38px;text-align:right;color:#8ab4ff;font-size:14px;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.game-settings-shortcuts{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.game-settings-shortcuts kbd{padding:4px 10px;border:1px solid rgba(255,255,255,.3);border-radius:6px;background:rgba(255,255,255,.14);color:#fff;font-size:13px;font-family:inherit}.game-settings-recording{color:#8ab4ff;font-size:13px}.game-settings-mini-btn{padding:4px 12px;border:1px solid rgba(255,255,255,.34);border-radius:6px;background:rgba(255,255,255,.12);color:#fff;font-size:12.5px;cursor:pointer}.game-settings-mini-btn:hover{background:rgba(255,255,255,.24)}.game-settings-color{width:100%;display:flex;align-items:center;gap:10px}.game-settings-color input[type=color]{width:40px;height:40px;padding:2px;border:1px solid rgba(255,255,255,.3);border-radius:8px;background:transparent;cursor:pointer}.game-settings-warn{margin:10px 0 0;color:#ff9c9c;font-size:13px}.game-settings-status{margin:12px 0 0;text-align:right;color:rgba(167,243,208,.92);font-size:12.5px}@media (max-width:640px){.game-botbar{padding:0 10px max(10px,env(safe-area-inset-bottom))}.game-progress{margin-bottom:8px}.game-botbox{gap:2px;padding:5px;overflow-x:hidden}.game-key{height:34px;flex:0 1 auto;justify-content:center;min-width:0;gap:3px;padding:0 7px;font-size:12.5px}.game-key kbd{display:none}.game-key.is-nav{flex:0 0 auto;padding:0 6px}.game-key.is-nav span{font-size:12.5px}.game-head{height:54px;padding:0 12px;gap:8px}.game-title{font-size:15px}.game-sub{font-size:11px}.game-switchbar{padding:8px 12px;gap:6px}.game-chip{height:30px;font-size:12px;padding:0 8px}.game-big-word,.game-typing-words,.game-word-line{font-size:32px}.game-prompt,.game-sentence{font-size:20px}.game-kb-key{width:28px;height:28px;font-size:12px}.game-kb-space{width:120px;height:28px}}@media (max-height:620px){.game-head{height:48px}.game-switchbar{padding:6px 12px}.game-main{padding-top:4px}.game-mic{--orb-size:86px;--core-size:52px;--icon-size:22px;margin-top:10px}}