html{--PBColor:#f0f3f0;--FColor:#002209;--BColor:#dbe7da;--PColor:#077d00;--HColor:#bacfad;--EColor:#f00;}html.theme-green-light{--PBColor:#dfe3df;--FColor:#002209;--BColor:#d2e3d0;--PColor:#077d00;--HColor:#bacfad;--EColor:#f00;}html.theme-blue-light{--PBColor:#e6e9eb;--FColor:#081c33;--BColor:#d8e1eb;--PColor:#0069cc;--HColor:#b0d7ff;--EColor:#f00;}html.theme-orange-light{--PBColor:#edeae7;--FColor:#2b1808;--BColor:#f5e9dd;--PColor:#ff7600;--HColor:#ffe2bc;--EColor:#f00;}html.theme-purple-light{--PBColor:#edeaef;--FColor:#200f2b;--BColor:#e6deeb;--PColor:#872fc2;--HColor:#e8cfff;--EColor:#f00;}html.theme-blue-dark{--PBColor:#0b1420;--FColor:#e6edf7;--BColor:#32445c;--PColor:#72b3ff;--HColor:#1f4470;--EColor:#f00;}html.theme-green-dark{--PBColor:#0c170e;--FColor:#e2f3e4;--BColor:#224128;--PColor:#29c034;--HColor:#076516;--EColor:#f00;}html.theme-orange-dark{--PBColor:#100a05;--FColor:#f8e9dc;--BColor:#503724;--PColor:#f82;--HColor:#a75616;--EColor:#f00;}html.theme-purple-dark{--PBColor:#140e1b;--FColor:#efe6f7;--BColor:#3b2b50;--PColor:#b26bff;--HColor:#765c99;--EColor:#f00;}.theme-btn-group{display:flex;gap:12px;margin:1px 0;user-select:none;position:absolute;top:2rem;right:0;flex-direction:column;z-index:30;border-radius:6px;background-color:var(--BColor);padding:1rem;box-shadow:0 0 4px;}.theme-btn-group .theme-btn{width:20px;height:20px;border-radius:8px;cursor:pointer;border:2px solid transparent;}.theme-btn-group .theme-btn.active{border-color:#fff!important;box-shadow:0 0 0 2px var(--color-secondary);}#btnTheme.active{box-shadow:0 0 4px 3px var(--HColor) inset;}button{padding:6px 12px;border:0;margin:0 .5em;border-radius:4px;cursor:pointer;font-size:14px;user-select:none;color:var(--FColor);background-color:var(--BColor);box-shadow:0 0 3px var(--FColor);}button:hover{background-color:var(--HColor);}.panel{position:fixed;width:100%;height:100%;top:0;left:0;right:0;margin:auto;z-index:1001;overflow:auto;color:var(--FColor);background-color:var(--PBColor);display:flex;flex-direction:column;}input,textarea,select,option{color:var(--FColor);background-color:rgba(255,255,255,.3);font-size:1.1rem;font-family:revert;}.close-btn{width:32px;height:32px;font-size:24px;line-height:1;color:#333;background:transparent;border:0;cursor:pointer;padding:0;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:all .2s ease;}.close-btn:hover{background-color:#eee;color:#000;}.close-btn:active{background-color:#ddd;}#panelGame{position:fixed;top:0;left:0;z-index:1001;width:100vw;height:100vh;overflow:hidden;background-color:var(--PBColor);background:url(gamebg.jpg) center/cover no-repeat;}#panelGame #battleCanvas{position:absolute;inset:0;}#panelGame .ui-layer{position:absolute;inset:0;pointer-events:none;}#panelGame .ui-layer>*{pointer-events:auto;}#panelGame .hp-bar{position:absolute;top:2rem;left:3rem;width:240px;}#panelGame .hp-bar>p{color:#ffe309;font-size:1rem;text-shadow:1px 1px 1px #000;position:absolute;text-align:center;display:block;width:100%;margin-top:3px;user-select:none;}#panelGame .hp-bar>div{height:26px;background:rgba(68,68,68,.3);overflow:hidden;border-radius:15px;}#panelGame .hp-bar>ul>li{display:flex;justify-content:space-between;padding:.5rem 1rem;background-color:rgba(0,0,0,.1);margin:.2rem;border-radius:5px;}#panelGame .hp-bar span{display:block;height:100%;background:#42b946;transition:width .2s;border-radius:10px;}#panelGame .hp-bar-enemy{left:auto;right:3rem;}#panelGame .hp-bar-enemy span{background:#e64545;}#panelGame .question-area{position:absolute;left:0;right:0;bottom:25%;margin:auto;overflow:hidden;width:400px;border:1px solid #808080;border-radius:20px;background-color:#f1ea0c;box-shadow:0 1px 0 3px var(--HColor);}#panelGame .question-area .question-text{color:#000;font-size:1.4rem;padding:.8rem 1rem;}#panelGame .question-area .question-input{color:#000;font-size:1.6rem;text-align:center;padding:.3rem;background-color:#fff3b6;border-radius:15px;line-height:3rem;}#panelGame .question-area #gameInput{display:inline-block;width:100%;border:0;color:#000;outline-style:none;padding:.5rem 1rem;}#panelGame .question-area .text-wrap{text-align:left;padding:.5rem 1rem;font-size:1.6rem;}#panelGame .question-area .text-wrap .text-layer-base{opacity:.3;}#panelGame .btn-exit{right:3rem;bottom:3rem;position:absolute;}#panelGame .btn-start{width:220px;height:80px;font-size:2rem;font-weight:bold;margin:3rem auto;bottom:20%;left:calc(50% - 110px);position:absolute;}#panelGame .game-level{position:absolute;top:2rem;left:0;right:0;width:76%;margin:auto;color:#000;font-size:1.2rem;padding:.2rem;display:flex;flex-direction:column;align-items:center;}#panelGame .game-level>div{display:flex;flex-direction:column;}#panelGame .game-level>div>select{height:2rem;margin:1rem auto;padding:.3rem;}#panelGame .game-level>div>div{max-height:450px;overflow:auto;}#panelGame .game-level>div table{background-color:rgba(0,0,0,.1);padding:.5rem;border-radius:5px;}#panelGame .game-level>div table th{padding:.5rem 1rem;}#panelGame .game-level>div table td{padding:.5rem 1rem;}#panelGame .gameresult{position:absolute;inset:0;background:rgba(0,0,0,.1);display:flex;align-items:center;justify-content:center;z-index:40;}#panelGame .gameresult>div{background:rgba(255,255,255,.7);padding:32px 48px;border-radius:12px;text-align:center;color:#857000;}#panelGame .gameresult>div>h2{margin:1rem;}#panelGame .gameresult>div>p{padding:.5rem;}#panelGame .gameresult>div>button{margin-top:16px;padding:8px 20px;}*{box-sizing:border-box;margin:0;padding:0;}body{font-family:system-ui,sans-serif;background-color:var(--PBColor);padding:20px;max-width:1200px;min-width:960px;margin:0 auto;overflow:hidden;color:var(--FColor);}.virtual-keyboard{position:relative;padding:8px;border-radius:8px;margin:1rem auto;display:flex;justify-content:center;}#keyboardMount{padding:4px;border-radius:5px;box-shadow:0 0 5px 0 var(--FColor);}#keyboardMount .keyboard-row{display:flex;gap:5px;margin:5px;}#keyboardMount .key{display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:5px;font-size:.8rem;cursor:pointer;box-shadow:0 0 4px 0 var(--FColor);user-select:none;-webkit-user-select:none;transition:transform .08s ease,background .08s ease;}#keyboardMount .key.home-key{background-color:var(--BColor);}#keyboardMount .key.target-active{background-color:var(--HColor);}#keyboardMount .key .shift-mark{font-size:11px;line-height:1;margin:.3em;}#keyboardMount .key .main-mark{line-height:1.2;margin:.3em;}#keyboardMount .key.key-press{transform:translateY(1px) scale(.95);background-color:var(--HColor);}#keyboardMount .key.shift-active{background-color:rgba(var(--primary-rgb),.45);}#fingerBox{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:10;}#fingerBox .hand-container{position:absolute;transform-origin:center top;transition:transform .25s ease-out;pointer-events:none;}#fingerBox .hand-svg{width:260px;height:190px;}#fingerBox .finger path{stroke:var(--EColor);stroke-width:1.5px;fill:none;transition:all .18s ease;stroke-linecap:round;stroke-linejoin:round;}#fingerBox .finger-active path{stroke:var(--PColor);stroke-width:1.5px!important;transform:translateY(-3px);}#panelSetting>p{padding:1em .2em;display:flex;justify-content:space-between;border-bottom:1px solid var(--HColor);}#panelSetting>div{padding:.5em;height:300px;display:flex;flex-direction:row;gap:2em;align-items:stretch;flex-grow:1;}#panelSetting>div>div{flex-grow:1;height:100%;width:50%;overflow:auto;}#panelSetting>div>div>div{display:flex;justify-content:space-between;align-items:center;padding:.5rem;}#panelSetting>div>div>div>div{flex-grow:1;}#panelSetting>div>div>div>input{width:25%;padding:.5rem;height:2.6rem;border:1px solid var(--HColor);flex-grow:1;flex-shrink:1;}#panelSetting>div>div label{font-size:1.5rem;margin:.5rem;display:inline-block;cursor:inherit;color:var(--PColor);}#panelSetting>div>div p{margin:.5rem;}#panelSetting ul>li{margin:.5rem;padding:.5rem;box-shadow:0 0 3px;border-radius:5px;}#panelSetting ul>li:hover,#panelSetting ul>li.current{background-color:var(--BColor);}#divLocal li{position:relative;}#divLocal li>.close-btn{display:none;position:absolute;right:0;top:0;color:#f00;border-radius:5px;}#divLocal li:hover>.close-btn{display:flex;}#panelCustoms>p{padding:1em .2em;display:flex;justify-content:space-between;border-bottom:1px solid var(--HColor);}#panelCustoms>div{padding:.5em;display:flex;flex-direction:row;gap:2em;}#panelCustoms>div>div{width:30%;}#panelCustoms>div>div:first-child{width:70%;}#panelCustoms>div>div>*{display:block;width:100%;line-height:1.5em;padding:.1rem .5rem;}#panelCustoms>div>div>:not(label){border:1px solid var(--HColor);font-family:fangsong,monospace,cursive;}#panelCustoms>div>div>label{padding:.2rem;}#panelCustoms>ul{padding:.5em;list-style:none;flex-grow:1;flex-shrink:1;overflow:auto;}#panelCustoms>ul>li{cursor:pointer;margin:.4em 0;padding:.5em;border-radius:5px;user-select:none;box-shadow:0 0 6px var(--HColor);}#panelCustoms>ul>li:hover,#panelCustoms>ul>li.active{background-color:var(--HColor);}#panelCustoms>ul>li label{font-weight:700;line-height:2;}#panelCustoms>ul>li p{line-height:1.6;}#panelCustoms>ul>li p>*{margin-right:2em;}option{color:#000;}#panelLessons>p{padding:1em .2em;display:flex;justify-content:space-between;background-color:var(--PBColor);z-index:1;border-bottom:1px solid var(--HColor);}#panelLessons>p>span{flex-grow:1;text-align:center;font-size:1.2rem;line-height:2rem;}#panelLessons>div{display:flex;flex-wrap:wrap;width:100%;height:100%;overflow:hidden;user-select:none;}#panelLessons ul{padding:.2rem;cursor:pointer;min-width:280px;overflow:auto;list-style:none;}#panelLessons ul>li{margin:.5rem;padding:.5rem;box-shadow:0 0 3px;border-radius:5px;}#panelLessons ul>li:hover,#panelLessons ul>li.current{background-color:var(--BColor);}#divModules{flex-grow:1;height:100%;width:25%;display:flex;flex-direction:column;}#divModules label{font-size:1.5rem;margin:.5rem;display:inline-block;cursor:inherit;color:var(--PColor);}#divModules p{margin:.5rem;}#divModules ul{flex-grow:1;overflow:auto;height:300px;}#divLessons{flex-grow:2;width:25%;display:flex;flex-direction:column;height:100%;}#divLessons>p{padding:1rem;line-height:1.5rem;}#divLessons>p>b{color:var(--EColor);}#divLessons li p{padding:.2rem;}#divLessons li sub{margin:0 1rem 0 -.2rem;font-weight:100;vertical-align:baseline;}#divLessons li label{cursor:inherit;}#ydapp{min-width:1000px;}#ydapp>#ydbody{padding:1rem;overflow:hidden;}#ydhead .icon_chat:before{left:1px;top:4px;}body{padding:0;max-width:none;}@media screen and (min-width:1200px){.panel{padding:0 10%;}#ydapp>#ydbody{padding:1rem 10%;}}.page-header{display:flex;align-items:center;justify-content:space-between;height:52px;border-bottom:1px solid var(--HColor);margin-bottom:12px;}.page-header .header-right{position:relative;}.page-header .header-left h1{font-size:1.2rem;font-weight:600;color:var(--FColor);}.page-header .header-mid{flex-grow:1;text-align:center;}.condition{padding:.5em 0;display:flex;justify-content:space-between;}.condition b{margin:0 .2em;}.status-bar{display:flex;gap:32px;padding:.5em 0;border-radius:6px;margin-bottom:16px;font-size:.9rem;align-items:center;}.status-bar strong{color:var(--PColor);font-size:1rem;margin-left:4px;}#normalTextWrap{border-radius:8px;padding:1.5em;min-height:54px;line-height:2.2;max-height:260px;margin-bottom:20px;overflow:auto;flex-grow:1;background-color:var(--BColor);box-shadow:0 0 4px var(--FColor);position:relative;}#normalTextWrap>p{position:absolute;left:24px;font-size:1.7em;bottom:12px;width:90%;background:var(--BColor);}#pairExerciseWrap{border-radius:5px;padding:1.5em;max-height:260px;user-select:none;background-color:var(--BColor);box-shadow:0 0 4px var(--FColor);display:flex;flex-direction:row;position:relative;}#pairExerciseWrap>p{position:absolute;left:24px;font-size:1.7em;bottom:33px;width:90%;background:var(--BColor);}#pairExerciseWrap>div{flex-grow:2;max-width:70%;}#pairExerciseWrap .pair-question-box{font-size:22px;margin-bottom:20px;}#pairExerciseWrap .pair-label{color:var(--PColor);}#pairExerciseWrap .pair-show{font-size:1.8rem;margin-top:8px;min-height:40px;}#pairExerciseWrap .pair-input-box{font-size:20px;min-height:44px;}#pairExerciseWrap .text-layer-base{display:inline-block;opacity:.2;}#pairExerciseWrap .text-wrap .text-layer-base,#pairExerciseWrap .text-wrap .text-layer-input{font-size:2rem;margin:.2rem 0;}#pairErrList{flex-grow:1!important;overflow:auto;}#pairErrList>label{font-size:1rem;font-weight:bold;padding:0 .5rem;}#pairErrList>ul{list-style:none;}#pairErrList>ul>li{margin:.3rem;border:1px solid var(--HColor);}#pairErrList>ul>li>p{margin:.4rem;font-size:.8rem;}.text-wrap{position:relative;font-family:Consolas,Menlo,monospace;font-size:22px;line-height:1.5;user-select:none;}.text-wrap .text-layer-base,.text-wrap .text-layer-input{top:0;left:0;word-break:break-all;font-family:fangsong,monospace,cursive;}.text-wrap .text-layer-base{opacity:.5;}.text-wrap .text-layer-input{pointer-events:none;position:absolute;}.text-wrap .text-layer-input span.correct{color:var(--PColor);}.text-wrap .text-layer-input span.error{color:var(--EColor);}.text-wrap .single-line-mode .text-layer-base,.text-wrap .single-line-mode .text-layer-input{white-space:nowrap;}.cursor{display:inline-block;width:2px;height:1.1em;background-color:var(--PColor);vertical-align:sub;animation:blink 1s infinite;}@keyframes blink{0%,49%{opacity:1;}50%,100%{opacity:0;}}