*{margin:0;padding:0;box-sizing:border-box}:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;line-height:1.5;font-weight:400;color-scheme:light;color:#333;background-color:#fff;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{margin:0;min-width:320px;height:100vh;overflow:hidden}#root{height:100vh;overflow:hidden;position:relative}button{font-family:inherit}.selector-dropdown{appearance:none;-moz-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='currentColor' d='M6 9L1 4h10z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 8px center;background-size:12px}.selector-dropdown{appearance:none;-moz-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='currentColor' d='M6 9L1 4h10z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 8px center;background-size:12px}.language-selector{display:flex;flex-direction:column;gap:4px;position:relative;z-index:101}.selector-label{font-size:12px;color:var(--text-secondary);font-weight:500;text-transform:uppercase;letter-spacing:.5px;transition:var(--transition)}.selector-dropdown{padding:8px 28px 8px 10px;border:1px solid var(--border-color);border-radius:4px;background:var(--bg-primary);font-size:14px;font-weight:500;color:var(--text-primary);cursor:pointer;transition:var(--transition);font-family:inherit;min-width:140px;touch-action:manipulation;-webkit-tap-highlight-color:transparent;position:relative;z-index:1000;width:100%}.selector-dropdown{appearance:none;-moz-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='currentColor' d='M6 9L1 4h10z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 8px center;background-size:12px}.selector-dropdown:hover{border-color:var(--text-primary)}.selector-dropdown:focus{outline:none;border-color:var(--text-primary);z-index:1001;position:relative}.selector-dropdown:active{z-index:1001;position:relative}.selector-dropdown:focus-visible{z-index:1001;position:relative}@supports (-webkit-appearance: menulist-button){.selector-dropdown{-webkit-appearance:menulist-button;padding-right:8px;background-image:none}}.selector-dropdown option{padding:8px;background:var(--bg-primary);color:var(--text-primary)}@media(max-width:480px){.selector-label{font-size:12px}.selector-dropdown{padding:8px 10px;font-size:15px;min-height:40px}}.reference-language-button-container{position:relative;z-index:1000}.reference-language-button{display:flex;align-items:center;justify-content:center;gap:6px;padding:8px;min-width:44px;height:44px;background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:4px;color:var(--text-primary);cursor:pointer;transition:var(--transition);font-family:inherit}.reference-language-button:hover{background:var(--border-color)}.reference-language-button:focus{outline:none;border-color:var(--text-primary)}.button-icon,.button-flag{font-size:18px;line-height:1}.reference-language-dropdown{position:absolute;top:calc(100% + 4px);right:0;background:var(--bg-primary);border:1px solid var(--border-color);border-radius:4px;min-width:160px;overflow:hidden;z-index:1001;animation:slideDown .15s ease-out;transition:var(--transition);will-change:transform,opacity}@keyframes slideDown{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.dropdown-item{display:flex;align-items:center;gap:8px;width:100%;padding:10px 12px;background:var(--bg-primary);border:none;text-align:left;font-size:13px;font-weight:500;color:var(--text-primary);cursor:pointer;transition:var(--transition);font-family:inherit}.dropdown-item:hover{background:var(--bg-secondary)}.dropdown-item.selected{background:var(--bg-secondary);color:var(--text-primary);font-weight:600}.item-flag{font-size:16px;line-height:1}.item-name{flex:1}@media(max-width:480px){.reference-language-button{padding:6px;min-width:40px;height:40px}.button-icon,.button-flag{font-size:16px}.reference-language-dropdown{min-width:140px}.dropdown-item{padding:12px;font-size:12px}}.hg-theme-default{background-color:#ececec;border-radius:5px;box-sizing:border-box;font-family:HelveticaNeue-Light,Helvetica Neue Light,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;overflow:hidden;padding:5px;touch-action:manipulation;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.hg-theme-default .hg-button span,.hg-theme-default .hg-button span svg{pointer-events:none}.hg-theme-default button.hg-button{border-width:0;font-size:inherit}.hg-theme-default .hg-button{display:inline-block;flex-grow:1}.hg-theme-default .hg-row{display:flex}.hg-theme-default .hg-row:not(:last-child){margin-bottom:5px}.hg-theme-default .hg-row .hg-button-container,.hg-theme-default .hg-row .hg-button:not(:last-child){margin-right:5px}.hg-theme-default .hg-row>div:last-child{margin-right:0}.hg-theme-default .hg-row .hg-button-container{display:flex}.hg-theme-default .hg-button{align-items:center;background:#fff;border-bottom:1px solid #b5b5b5;border-radius:5px;box-shadow:0 0 3px -1px #0000004d;box-sizing:border-box;cursor:pointer;display:flex;height:40px;justify-content:center;padding:5px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.hg-theme-default .hg-button.hg-standardBtn{width:20px}.hg-theme-default .hg-button.hg-activeButton{background:#efefef}.hg-theme-default.hg-layout-numeric .hg-button{align-items:center;display:flex;height:60px;justify-content:center;width:33.3%}.hg-theme-default .hg-button.hg-button-numpadadd,.hg-theme-default .hg-button.hg-button-numpadenter{height:85px}.hg-theme-default .hg-button.hg-button-numpad0{width:105px}.hg-theme-default .hg-button.hg-button-com{max-width:85px}.hg-theme-default .hg-button.hg-standardBtn.hg-button-at{max-width:45px}.hg-theme-default .hg-button.hg-selectedButton{background:#05194687;color:#fff}.hg-theme-default .hg-button.hg-standardBtn[data-skbtn=".com"]{max-width:82px}.hg-theme-default .hg-button.hg-standardBtn[data-skbtn="@"]{max-width:60px}.hg-candidate-box{background:#ececec;border-bottom:2px solid #b5b5b5;border-radius:5px;display:inline-flex;margin-top:-10px;position:absolute;transform:translateY(-100%);-webkit-user-select:none;-moz-user-select:none;user-select:none}ul.hg-candidate-box-list{display:flex;flex:1;list-style:none;margin:0;padding:0}li.hg-candidate-box-list-item{align-items:center;display:flex;height:40px;justify-content:center;width:40px}li.hg-candidate-box-list-item:hover{background:#00000008;cursor:pointer}li.hg-candidate-box-list-item:active{background:#0000001a}.hg-candidate-box-prev:before{content:"◄"}.hg-candidate-box-next:before{content:"►"}.hg-candidate-box-next,.hg-candidate-box-prev{align-items:center;color:#969696;cursor:pointer;display:flex;padding:0 10px}.hg-candidate-box-next{border-bottom-right-radius:5px;border-top-right-radius:5px}.hg-candidate-box-prev{border-bottom-left-radius:5px;border-top-left-radius:5px}.hg-candidate-box-btn-active{color:#444}.virtual-keyboard{display:flex;justify-content:center;padding:8px 0;background:transparent;border-radius:4px;margin:8px 0;flex:1;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch}.virtual-keyboard .hg-theme-default{background:transparent;font-family:inherit}.virtual-keyboard .hg-theme-default .hg-button{background:var(--bg-primary);border:1px solid var(--border-color);border-radius:4px;color:var(--text-primary);font-size:15px;font-weight:500;min-width:36px;height:40px;transition:var(--transition);display:flex;align-items:center;justify-content:center;white-space:pre-line;line-height:1.2;padding:4px}.virtual-keyboard .hg-theme-default .hg-button:hover{background:var(--bg-secondary)}.virtual-keyboard .hg-theme-default .hg-button:active{background:var(--accent-color-light)}.virtual-keyboard .hg-theme-default .hg-button.hg-key-next{background:var(--text-primary);color:var(--bg-primary);position:relative}.virtual-keyboard .hg-theme-default .hg-button.hg-key-next:after{content:"";position:absolute;top:2px;right:2px;width:6px;height:6px;background:var(--accent-color);border-radius:50%}.virtual-keyboard .hg-theme-default .hg-button.hg-key-pressed{background:var(--accent-color-light);border-color:var(--accent-color)}.virtual-keyboard .hg-theme-default .hg-button[data-skbtn="{space}"]{min-width:200px}.virtual-keyboard .hg-theme-default .hg-button.hg-key-space-active{background:var(--bg-primary);color:var(--text-primary);border-color:var(--border-color);font-weight:500}.virtual-keyboard .hg-theme-default .hg-button{position:relative}.virtual-keyboard .hg-theme-default .hg-button[data-qwerty]:before{content:attr(data-qwerty);position:absolute;top:3px;left:4px;font-size:8px;color:#999;opacity:.7;font-weight:400;line-height:1;pointer-events:none;z-index:1}.virtual-keyboard .hg-theme-default .hg-row{display:flex;gap:3px;justify-content:center;margin-bottom:4px}@media(max-width:768px){.virtual-keyboard .hg-theme-default .hg-button{min-width:30px;height:36px;font-size:14px}.virtual-keyboard .hg-theme-default .hg-button span{font-size:12px}.virtual-keyboard .hg-theme-default .hg-button[data-skbtn="{space}"]{min-width:150px}.virtual-keyboard .hg-theme-default .hg-button[data-qwerty]:before{font-size:7px;top:2px;left:3px}}@media(max-width:480px){.virtual-keyboard .hg-theme-default .hg-button{min-width:28px;height:32px;font-size:13px}.virtual-keyboard .hg-theme-default .hg-button span{font-size:11px}.virtual-keyboard .hg-theme-default .hg-button[data-skbtn="{space}"]{min-width:120px}.virtual-keyboard .hg-theme-default .hg-button[data-qwerty]:before{font-size:7px;top:2px;left:3px}}@media(max-width:360px){.virtual-keyboard .hg-theme-default .hg-button{min-width:24px;height:28px;font-size:12px}.virtual-keyboard .hg-theme-default .hg-button span{font-size:10px}.virtual-keyboard .hg-theme-default .hg-button[data-skbtn="{space}"]{min-width:100px}}.word-display{text-align:center;padding:8px;flex-shrink:0;display:flex;flex-direction:column;justify-content:center;align-items:center}.word-text-container{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:8px}.word-text{font-size:32px;font-weight:600;color:var(--text-primary);line-height:1.3;letter-spacing:.05em;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:2px;transition:var(--transition)}.btn-speaker{flex-shrink:0;padding:6px 10px;font-size:16px;min-height:auto;min-width:auto}.character{display:inline-block;transition:all .3s ease;color:var(--text-secondary);position:relative}.character-complete{color:var(--text-primary);font-weight:600}.character-current{color:var(--text-primary);font-weight:700;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}.word-translation{font-size:12px;color:var(--text-secondary);margin-bottom:8px;font-style:italic;transition:var(--transition)}.word-input-display{font-size:20px;color:var(--text-secondary);font-family:Courier New,monospace;display:flex;align-items:center;justify-content:center;gap:2px;min-height:24px;transition:var(--transition)}.cursor{animation:blink 1s infinite;color:var(--text-primary);font-weight:700}@keyframes blink{0%,50%{opacity:1}51%,to{opacity:0}}.keystroke-hint{display:block;font-size:10px;color:var(--text-secondary);margin-top:2px;font-weight:400;transition:var(--transition)}.keystroke{display:inline-block;margin:0 1px;padding:1px 3px;background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:3px;transition:var(--transition)}.keystroke-typed{background:var(--text-primary);color:var(--bg-primary)}@media(max-width:768px){.word-display{padding:6px}.word-text{font-size:28px;margin-bottom:6px}.word-translation{font-size:11px;margin-bottom:6px}.word-input-display{font-size:18px;min-height:22px}}@media(max-width:480px){.word-display{padding:4px}.word-text{font-size:28px;margin-bottom:4px;line-height:1.2}.character-current{text-decoration-thickness:1.5px;text-underline-offset:3px}.word-translation{font-size:12px;margin-bottom:4px}.word-input-display{font-size:18px;min-height:22px}.keystroke-hint{font-size:10px}}@media(max-width:360px){.word-text{font-size:20px}.word-input-display{font-size:14px}}.pinyin-candidate-selector{margin:8px 0;padding:8px;background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:4px;transition:var(--transition)}.pinyin-input-display{font-size:14px;font-family:Courier New,monospace;color:var(--text-primary);margin-bottom:8px;padding:4px 8px;background:var(--bg-primary);border:1px solid var(--border-color);border-radius:4px;text-align:center;transition:var(--transition)}.candidate-list{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}.candidate-item{display:flex;align-items:center;gap:6px;padding:6px 10px;background:var(--bg-primary);border:1px solid var(--border-color);border-radius:4px;cursor:pointer;transition:var(--transition);font-family:inherit;min-width:50px}.candidate-item:hover{background:var(--bg-secondary);border-color:var(--text-primary)}.candidate-item:active{transform:scale(.95)}.candidate-item.candidate-correct{border-color:var(--text-primary);border-width:2px}.candidate-number{font-size:10px;color:var(--text-secondary);font-weight:500}.candidate-char{font-size:16px;color:var(--text-primary);font-weight:500}@media(max-width:480px){.pinyin-candidate-selector{padding:6px;margin:6px 0}.pinyin-input-display{font-size:12px;padding:3px 6px}.candidate-list{gap:4px}.candidate-item{padding:5px 8px;min-width:45px}.candidate-char{font-size:14px}}.typing-practice{width:100%;height:100%;display:flex;flex-direction:column;min-height:0}.practice-header{margin-bottom:8px;flex-shrink:0}.stats-bar{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:16px;margin-bottom:6px;position:relative}.stats-bar .item-counter{grid-column:1;margin-right:0}.stats-group{grid-column:2;display:flex;justify-content:center;align-items:center;gap:16px;flex-wrap:wrap}.stats-bar .btn-reset{grid-column:3;justify-self:end;padding:6px 12px;font-size:14px;min-height:auto}@media(max-width:768px){.stats-bar{grid-template-columns:1fr;gap:8px}}.stat-item{display:flex;flex-direction:column;align-items:center;gap:2px}.stat-label{font-size:12px;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.5px;transition:var(--transition)}.stat-value{font-size:20px;font-weight:600;color:var(--text-primary);transition:var(--transition)}.progress-bar-container{width:100%;height:4px;background:var(--border-color);border-radius:2px;overflow:hidden;transition:var(--transition)}.progress-bar{height:100%;background:var(--text-primary);transition:width .3s ease;border-radius:2px}.practice-controls{display:flex;justify-content:center;gap:8px;margin-top:8px;flex-wrap:wrap;flex-shrink:0}.hidden-input{position:absolute;opacity:0;pointer-events:none;width:0;height:0}.btn{padding:6px 12px;border:none;border-radius:6px;font-size:12px;font-weight:500;cursor:pointer;transition:all .2s ease;font-family:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.btn-primary{background:var(--text-primary);color:var(--bg-primary);border:1px solid var(--text-primary);transition:var(--transition)}.btn-primary:hover:not(:disabled){opacity:.8;transform:translateY(-1px)}.btn-primary:active:not(:disabled){transform:translateY(0);opacity:.9}.btn-secondary{background:var(--bg-secondary);color:var(--text-primary);border:1px solid var(--border-color)}.btn-secondary:hover:not(:disabled){background:var(--border-color)}.btn-secondary:active:not(:disabled){opacity:.8}.btn-icon{background:var(--bg-secondary);color:var(--text-primary);border:1px solid var(--border-color);font-size:16px;padding:6px 10px}.btn-icon:hover:not(:disabled){background:var(--border-color)}.btn-icon:active:not(:disabled){opacity:.8}.btn:disabled{opacity:.5;cursor:not-allowed}@media(max-width:768px){.practice-header{margin-bottom:6px}.stats-bar{gap:12px;margin-bottom:4px}.stat-value{font-size:18px}.stat-label{font-size:11px}.practice-controls{gap:6px;margin-top:6px}.btn{padding:8px 14px;font-size:11px;min-height:36px}.btn-icon{font-size:14px;padding:8px 12px;min-height:36px}}@media(max-width:480px){.practice-header{margin-bottom:4px}.stats-bar{gap:8px;margin-bottom:4px}.stat-value{font-size:18px}.stat-label{font-size:12px}.progress-bar-container{height:3px}.practice-controls{gap:4px;margin-top:4px}.btn{padding:8px 12px;font-size:13px;min-height:40px;min-width:60px}.btn-icon{font-size:16px;padding:8px 10px;min-height:40px;min-width:40px}}@media(max-width:360px){.stats-bar{gap:6px}.stat-value{font-size:14px}.btn{padding:6px 10px;font-size:10px;min-height:36px}}.theme-toggle{background:transparent;border:1px solid currentColor;border-radius:50%;width:36px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:18px;transition:all .2s ease;padding:0;flex-shrink:0}.theme-toggle:hover{opacity:.7}.theme-toggle:active{transform:scale(.95)}.dark-theme .theme-toggle{color:#fff;border-color:#fff}.dark-theme .theme-toggle:hover{background:#ffffff1a}.light-theme .theme-toggle{color:#000;border-color:#000}.light-theme .theme-toggle:hover{background:#0000000d}@media(max-width:480px){.theme-toggle{width:32px;height:32px;font-size:16px}}:root{--transition: all .2s ease}:root,[data-theme=light]{--bg-primary: #ffffff;--bg-secondary: #f5f5f5;--text-primary: #000000;--text-secondary: #666666;--border-color: #e0e0e0;--shadow: rgba(0, 0, 0, .1);--accent-color: #4a90e2;--accent-color-light: #e6f4ff}[data-theme=dark]{--bg-primary: #000000;--bg-secondary: #1a1a1a;--text-primary: #ffffff;--text-secondary: #cccccc;--border-color: #333333;--shadow: rgba(255, 255, 255, .1);--accent-color: #66aaff;--accent-color-light: #3a4a5a}body{background-color:var(--bg-primary);color:var(--text-primary);transition:var(--transition)}.app{min-height:100vh;max-height:100vh;overflow:hidden;background-color:var(--bg-primary);padding:8px 4px;display:flex;flex-direction:column;position:relative;transition:var(--transition)}.app-header{text-align:center;color:var(--text-primary);margin-bottom:8px;flex-shrink:0;position:relative;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;padding:8px}.header-left{display:flex;align-items:center}.header-center{display:flex;flex-direction:column;align-items:center;gap:4px}.header-right{display:flex;align-items:center;justify-content:flex-end}.brand-name{font-size:1.75rem;font-weight:700;letter-spacing:-.02em;margin:0;color:var(--text-primary);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif}.hero-line{font-size:.75rem;font-weight:400;margin:0;color:var(--text-secondary);letter-spacing:.02em;text-transform:uppercase}.app-controls{max-width:900px;width:100%;margin:0 auto 8px;background-color:var(--bg-secondary);border:1px solid var(--border-color);border-radius:4px;padding:8px;display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;justify-content:center;flex-shrink:0;overflow:visible;position:relative;z-index:999;isolation:isolate;transition:var(--transition)}.practice-container{max-width:900px;width:100%;margin:0 auto;background-color:var(--bg-secondary);border:1px solid var(--border-color);border-radius:4px;padding:12px 8px;position:relative;flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden;transition:var(--transition)}.item-counter{background-color:var(--bg-primary);border:1px solid var(--border-color);padding:6px 10px;border-radius:4px;font-size:14px;font-weight:500;color:var(--text-secondary);transition:var(--transition);margin-right:auto}.no-items{max-width:600px;margin:100px auto;background-color:var(--bg-secondary);border:1px solid var(--border-color);border-radius:8px;padding:40px;text-align:center;transition:var(--transition)}.no-items p{font-size:18px;color:var(--text-secondary);margin:10px 0}@media(max-width:768px){.app{padding:6px}.app-header{grid-template-columns:auto 1fr auto;gap:8px;padding:6px}.brand-name{font-size:1.4rem}.hero-line{font-size:.7rem}.app-controls{padding:8px;flex-direction:column;align-items:stretch;gap:8px}.app-controls>*{width:100%}.selector-dropdown{width:100%}.practice-container{padding:8px 4px}.item-counter{margin-right:auto;font-size:13px;padding:5px 8px}}@media(max-width:480px){.app{padding:4px}.app-header{margin-bottom:4px;grid-template-columns:auto 1fr auto;gap:6px;padding:4px}.brand-name{font-size:1.4rem;line-height:1.2}.hero-line{font-size:.75rem}.app-controls{padding:6px;margin-bottom:4px}.practice-container{padding:6px 4px}.item-counter{font-size:14px;padding:4px 8px}}@media(max-width:360px){.brand-name{font-size:1rem}.hero-line{font-size:.6rem}}
