@import"https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&display=swap";*{margin:0;padding:0;box-sizing:border-box}body{font-family:Noto Sans SC,-apple-system,BlinkMacSystemFont,sans-serif;background:linear-gradient(135deg,#0f0c29,#302b63,#24243e);color:#fff;min-height:100vh;display:flex;justify-content:center;align-items:center}#app{width:100%;max-width:480px;min-height:100vh;position:relative}.screen{width:100%;min-height:100vh;display:flex;flex-direction:column;transition:opacity .3s ease}.screen.hidden{display:none}.start-container{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2rem;text-align:center}.user-badge{font-size:1rem;font-weight:600;color:#fffc;background:#ffffff14;border:1px solid rgba(255,255,255,.12);border-radius:2rem;padding:.4rem 1.2rem;margin-bottom:1.2rem;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;gap:.4rem}.user-badge:hover{background:#ffffff24;border-color:#ffffff40}.rename-input{background:transparent;border:none;border-bottom:2px solid rgba(245,87,108,.6);color:#fff;font-size:.95rem;font-weight:600;font-family:inherit;outline:none;padding:.15rem .3rem;width:120px;text-align:center}.rename-confirm{background:none;border:none;color:#43e97b;font-size:1.1rem;cursor:pointer;padding:0}.user-stats-mini{display:flex;gap:1.5rem;margin-bottom:1.5rem}.usm-item{display:flex;flex-direction:column;align-items:center}.usm-val{font-size:1rem;font-weight:700;color:#fda085}.usm-lbl{font-size:.65rem;color:#ffffff59;text-transform:uppercase;letter-spacing:.05em;margin-top:.1rem}.title{font-size:2.8rem;font-weight:900;background:linear-gradient(135deg,#f093fb,#f5576c,#fda085);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;margin-bottom:.5rem;text-shadow:none}.subtitle{font-size:1.1rem;color:#fff9;margin-bottom:2.5rem}.difficulty-select{margin-bottom:2rem}.diff-label{font-size:.9rem;color:#ffffff80;margin-bottom:.8rem}.diff-group{display:flex;gap:.6rem}.diff-btn{padding:.6rem 1.4rem;border:2px solid rgba(255,255,255,.2);border-radius:2rem;background:transparent;color:#ffffffb3;font-size:.95rem;font-family:inherit;cursor:pointer;transition:all .3s ease}.diff-btn:hover{border-color:#ffffff80;color:#fff}.diff-btn.active{background:linear-gradient(135deg,#f093fb,#f5576c);border-color:transparent;color:#fff;font-weight:700;box-shadow:0 4px 15px #f5576c66}.btn-primary{padding:1rem 3.5rem;border:none;border-radius:3rem;background:linear-gradient(135deg,#f093fb,#f5576c,#fda085);color:#fff;font-size:1.2rem;font-weight:700;font-family:inherit;cursor:pointer;transition:all .3s ease;box-shadow:0 8px 30px #f5576c59;letter-spacing:.05em}.btn-primary:hover{transform:translateY(-2px);box-shadow:0 12px 40px #f5576c80}.btn-primary:active{transform:translateY(0)}.best-record{margin-top:1.5rem;font-size:.85rem;color:#fff6}.best-record span{color:#f5576c;font-weight:700}.review-count{color:#fda085;animation:pulse 2s infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.home-links{margin-top:1rem}.btn-link{padding:.5rem 1.2rem;border:1px solid rgba(255,255,255,.15);border-radius:2rem;background:transparent;color:#ffffff80;font-size:.85rem;font-family:inherit;cursor:pointer;transition:all .3s ease}.btn-link:hover{border-color:#ffffff59;color:#fffc}.game-header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.2rem;background:#ffffff0d;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.btn-icon{width:40px;height:40px;border:none;border-radius:50%;background:#ffffff1a;color:#ffffffb3;font-size:1.3rem;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;justify-content:center}.btn-icon:hover{background:#fff3;color:#fff}.score-bar{display:flex;gap:1rem}.score-item{display:flex;flex-direction:column;align-items:center;min-width:48px}.score-label{font-size:.65rem;color:#fff6;text-transform:uppercase;letter-spacing:.05em}.score-num{font-size:1rem;font-weight:700;color:#fda085}.timer-container{display:flex;align-items:center;gap:.6rem;padding:.5rem 1.2rem}.timer-bar-bg{flex:1;height:6px;background:#ffffff1a;border-radius:3px;overflow:hidden}.timer-bar-fill{height:100%;background:linear-gradient(90deg,#43e97b,#38f9d7);border-radius:3px;transition:width 1s linear}.timer-bar-fill.danger{background:linear-gradient(90deg,#f5576c,#f093fb)}.time-text{font-size:.8rem;color:#ffffff80;min-width:28px;text-align:right}.game-area{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1rem 1.2rem;position:relative}.review-tag{position:absolute;top:0rem;left:50%;transform:translate(-50%);padding:.2rem 1rem;border-radius:1rem;background:linear-gradient(135deg,#fda085,#f5576c);color:#fff;font-size:.75rem;font-weight:700;opacity:0;transition:opacity .3s ease;pointer-events:none}.review-tag.visible{opacity:1;animation:popIn .3s ease}.char-card{background:#ffffff14;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.1);border-radius:1.5rem;padding:1.5rem 3rem 1.2rem;margin-bottom:1rem;text-align:center;box-shadow:0 8px 32px #0003;min-width:200px}.char-icon{font-size:3rem;line-height:1.2;margin-bottom:.3rem;filter:drop-shadow(0 2px 6px rgba(255,255,255,.15));animation:floatIcon 3s ease-in-out infinite}@keyframes floatIcon{0%,to{transform:translateY(0)}50%{transform:translateY(-4px)}}.char-display{font-size:6rem;font-weight:900;line-height:1.2;color:#fff;text-shadow:0 2px 10px rgba(255,255,255,.2)}.pinyin-question{font-size:1.5rem;color:#ffffff4d;margin-top:.5rem}.feedback{height:2.5rem;font-size:1.1rem;font-weight:700;display:flex;align-items:center;justify-content:center;transition:all .3s ease}.feedback.correct{color:#43e97b;animation:popIn .3s ease}.feedback.wrong{color:#f5576c;animation:shake .5s ease}.options-grid{display:grid;grid-template-columns:1fr 1fr;gap:.8rem;width:100%;max-width:360px;margin-top:.5rem}.option-btn{padding:1rem;border:2px solid rgba(255,255,255,.15);border-radius:1rem;background:#ffffff0d;color:#fff;font-size:1.1rem;font-weight:500;font-family:inherit;cursor:pointer;transition:all .2s ease}.option-btn:hover:not(:disabled){background:#ffffff1f;border-color:#ffffff4d;transform:scale(1.03)}.option-btn:active:not(:disabled){transform:scale(.97)}.option-btn:disabled{cursor:default;opacity:.6}.option-btn.correct{background:#43e97b33;border-color:#43e97b;color:#43e97b;font-weight:700;animation:popIn .3s ease}.option-btn.wrong{background:#f5576c33;border-color:#f5576c;color:#f5576c;font-weight:700;animation:shake .5s ease}.hint-text{margin-top:.8rem;font-size:.75rem;color:#ffffff40}.footer-bar{padding:.8rem 1.2rem 1.5rem}.footer-buttons{display:flex;gap:.8rem}.btn-secondary{flex:1;padding:.7rem;border:1px solid rgba(255,255,255,.15);border-radius:2rem;background:#ffffff0d;color:#fff9;font-size:.9rem;font-family:inherit;cursor:pointer;transition:all .3s ease}.btn-secondary:hover{background:#ffffff1a;color:#fff}@keyframes popIn{0%{transform:scale(.8);opacity:0}70%{transform:scale(1.05)}to{transform:scale(1);opacity:1}}@keyframes shake{0%,to{transform:translate(0)}20%{transform:translate(-8px)}40%{transform:translate(8px)}60%{transform:translate(-5px)}80%{transform:translate(5px)}}.history-header{display:flex;align-items:center;padding:1rem 1.2rem;background:#ffffff0d;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);gap:.8rem}.history-title{font-size:1.1rem;font-weight:700;color:#fff}.history-summary{padding:1rem 1.2rem}.summary-grid{display:flex;justify-content:space-around;background:#ffffff0f;border-radius:1rem;padding:1rem}.summary-item{display:flex;flex-direction:column;align-items:center}.summary-num{font-size:1.4rem;font-weight:700;color:#fda085}.summary-label{font-size:.7rem;color:#fff6;margin-top:.2rem}.history-list{flex:1;overflow-y:auto;padding:0 1.2rem 1.5rem}.empty-history{text-align:center;color:#ffffff4d;padding:3rem 1rem;font-size:.95rem}.history-item{background:#ffffff0d;border:1px solid rgba(255,255,255,.08);border-radius:.8rem;padding:.8rem 1rem;margin-bottom:.6rem}.history-item-header{display:flex;align-items:center;gap:.6rem;margin-bottom:.4rem}.history-index{font-size:.75rem;color:#ffffff59;font-weight:700}.history-time{font-size:.8rem;color:#ffffff80;flex:1}.history-diff{font-size:.7rem;padding:.15rem .6rem;border-radius:1rem;font-weight:600}.tag-easy{background:#43e97b26;color:#43e97b}.tag-medium{background:#fda08526;color:#fda085}.tag-hard{background:#f5576c26;color:#f5576c}.history-item-stats{display:flex;gap:1rem;font-size:.78rem;color:#ffffff73}.history-item-stats strong{color:#ffffffb3}.history-wrong{margin-top:.35rem;font-size:.72rem;color:#f5576c80;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media (max-width: 400px){.title{font-size:2.2rem}.char-display{font-size:4.5rem}.options-grid{gap:.5rem}.option-btn{padding:.8rem;font-size:1rem}.user-stats-mini{gap:1rem}.summary-num{font-size:1.1rem}}
