@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap";/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.start{inset-inline-start:var(--spacing)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}}:root{--font-sans:"Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;--glass-bg:#ffffff14;--glass-border:#ffffff26;--accent:#fbbf24;--bg-deep:#0f0b2e}*,:before,:after{box-sizing:border-box;margin:0;padding:0}body{font-family:var(--font-sans);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:var(--bg-deep);color:#fff;background-image:radial-gradient(circle at 10% 10%,#6366f166,#0000 50%),radial-gradient(circle at 90% 15%,#a855f759,#0000 50%),radial-gradient(circle at 85% 85%,#ec48994d,#0000 50%),radial-gradient(circle at 5% 90%,#3b82f64d,#0000 50%);background-attachment:fixed;min-height:100vh;overflow-x:hidden}.app-container{justify-content:center;align-items:center;min-height:100vh;padding:1rem;display:flex}.game-card{border-radius:2.5rem;flex-direction:column;width:100%;max-width:860px;min-height:600px;padding:2.5rem;display:flex;position:relative;overflow:hidden}.glass-panel{background:var(--glass-bg);-webkit-backdrop-filter:blur(30px)saturate(1.5);border:1px solid var(--glass-border);box-shadow:0 25px 60px -12px #0009,inset 0 1px #ffffff1a}.character-text-gradient{-webkit-text-fill-color:transparent;filter:drop-shadow(0 8px 24px #0000004d);background:linear-gradient(#fff,#ffffffa6);-webkit-background-clip:text;background-clip:text}.custom-scrollbar::-webkit-scrollbar{width:5px}.custom-scrollbar::-webkit-scrollbar-track{background:#ffffff08;border-radius:10px}.custom-scrollbar::-webkit-scrollbar-thumb{background:#ffffff26;border-radius:10px}.custom-scrollbar::-webkit-scrollbar-thumb:hover{background:#ffffff40}.screen-start{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:2rem;display:flex}.start-icon{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#ffffff14;border:1px solid #ffffff26;border-radius:1.5rem;justify-content:center;align-items:center;width:5rem;height:5rem;display:flex;box-shadow:0 12px 40px #0000004d}.start-text{flex-direction:column;gap:.75rem;display:flex}.start-title{letter-spacing:.1em;font-size:2rem;font-weight:900;line-height:1.2}.title-highlight{-webkit-text-fill-color:transparent;background:linear-gradient(135deg,#fbbf24,#f59e0b,#ef4444);-webkit-background-clip:text;background-clip:text;margin-left:.25rem}.start-description{color:#fff9;max-width:24rem;margin:0 auto;font-size:1rem;line-height:1.6}.start-play-btn{color:var(--bg-deep);cursor:pointer;font-size:1.25rem;font-weight:900;font-family:var(--font-sans);letter-spacing:.05em;background:linear-gradient(135deg,#fbbf24,#f59e0b);border:none;border-radius:1.5rem;justify-content:center;align-items:center;gap:.75rem;padding:1.25rem 3rem;transition:all .25s;display:flex;box-shadow:0 8px 30px #fbbf244d}.start-play-btn:hover{transform:translateY(-3px)scale(1.03);box-shadow:0 12px 40px #fbbf2473}.start-play-btn:active{transform:scale(.97)}.screen-playing{flex-direction:column;flex:1;display:flex}.playing-header{justify-content:space-between;align-items:center;margin-bottom:1rem;display:flex}.header-title{letter-spacing:.08em;opacity:.9;align-items:center;gap:.5rem;font-size:1.1rem;font-weight:800;display:flex}.header-stats{gap:1.5rem;display:flex}.stat{text-align:center}.stat-label{text-transform:uppercase;letter-spacing:.15em;opacity:.5;margin-bottom:.15rem;font-size:.6rem;font-weight:700;display:block}.stat-value{font-variant-numeric:tabular-nums;font-size:1.15rem;font-weight:800}.streak-value[data-streak=true]{color:#fbbf24;align-items:center;gap:.15rem;display:flex}.streak-icon{color:#fbbf24;width:.9rem;height:.9rem;animation:.6s ease-in-out infinite alternate pulse-glow}.timer-bar-container{background:#ffffff14;border-radius:99px;height:6px;margin-bottom:1rem;position:relative;overflow:hidden}.timer-bar-fill{border-radius:99px;height:100%;transition:background-color .3s}.timer-text{opacity:.6;font-variant-numeric:tabular-nums;align-items:center;gap:.25rem;font-size:.7rem;font-weight:700;display:flex;position:absolute;top:-1.5rem;right:0}.timer-text[data-urgent=true]{color:#ef4444;opacity:1;animation:.5s ease-in-out infinite alternate pulse-glow}.character-area{flex-direction:column;flex:1;justify-content:center;align-items:center;gap:1rem;padding:1rem 0;display:flex}.character-display{justify-content:center;align-items:center;display:flex;position:relative}.character-text{font-size:clamp(6rem,18vw,10rem);font-weight:900;line-height:1}.streak-glow{pointer-events:none;background:radial-gradient(circle,#fbbf2433,#0000 70%);border-radius:50%;animation:1s ease-in-out infinite alternate pulse-glow;position:absolute;top:-30px;right:-30px;bottom:-30px;left:-30px}.feedback-icon{position:absolute;top:-.5rem;right:-.5rem}.icon-feedback{width:3rem;height:3rem}.icon-feedback.correct{color:#4ade80;filter:drop-shadow(0 0 12px #4ade8080)}.icon-feedback.incorrect{color:#f87171;filter:drop-shadow(0 0 12px #f8717180)}.hint-area{text-align:center;min-height:2rem}.hint-correction{color:#f87171e6;font-size:.9rem;font-weight:600}.hint-correction strong{color:#4ade80;font-size:1.1rem}.hint-correct{color:#4ade80e6;font-size:.9rem;font-weight:600}.hint-toggle{color:#fff6;cursor:pointer;font-size:.8rem;font-family:var(--font-sans);background:0 0;border:none;border-radius:1rem;padding:.25rem .75rem;transition:all .2s}.hint-toggle:hover{color:#ffffffb3;background:#ffffff0d}.choices-grid{grid-template-columns:repeat(2,1fr);gap:1rem;width:100%;max-width:500px;margin:0 auto;display:grid}.choice-btn{color:#fff;cursor:pointer;font-family:var(--font-sans);background:#ffffff0f;border:2px solid #ffffff26;border-radius:1.5rem;flex-direction:column;align-items:center;gap:.35rem;padding:1.5rem 1rem;transition:all .2s;display:flex;position:relative}.choice-btn:hover:not(:disabled){background:#ffffff1f;border-color:#ffffff59;transform:translateY(-2px);box-shadow:0 8px 24px #0003}.choice-btn:active:not(:disabled){transform:scale(.96)}.choice-btn:disabled{cursor:default}.choice-letter{text-transform:uppercase;letter-spacing:.2em;opacity:.4;font-size:.6rem;font-weight:700}.choice-pinyin{font-size:2rem;font-weight:800}.choice-correct{color:#4ade80;background:#4ade8026;border-color:#4ade80}.choice-incorrect{color:#f87171;background:#f8717126;border-color:#f87171}.choice-dim{opacity:.25;background:#ffffff05;border-color:#ffffff0d}.playing-footer{margin-top:1.5rem}.progress-track{background:#ffffff14;border-radius:99px;height:5px;overflow:hidden}.progress-fill{background:linear-gradient(90deg,#fbbf24,#f97316);border-radius:99px;height:100%}.screen-finished{flex-direction:column;flex:1;gap:1.5rem;display:flex;overflow-y:auto}.finish-header{text-align:center;flex-direction:column;align-items:center;gap:.75rem;padding:1rem 0;display:flex}.trophy-ring{background:#fbbf241f;border:2px solid #fbbf2440;border-radius:50%;justify-content:center;align-items:center;width:5rem;height:5rem;display:flex}.trophy-icon{color:#fbbf24;filter:drop-shadow(0 0 12px #fbbf2466);width:2.5rem;height:2.5rem}.finish-title{letter-spacing:.1em;font-size:1.8rem;font-weight:900}.score-display{align-items:baseline;gap:.25rem;display:flex}.score-number{-webkit-text-fill-color:transparent;background:linear-gradient(#fff 30%,#ffffff80);-webkit-background-clip:text;background-clip:text;font-size:4.5rem;font-weight:900;line-height:1}.score-unit{color:#ffffff59;text-transform:uppercase;font-size:1.2rem;font-weight:700}.grade-info{flex-direction:column;align-items:center;gap:.25rem;display:flex}.grade-label{font-size:1.3rem;font-weight:800}.grade-message{color:#ffffff80;font-size:.85rem}.finish-stats{justify-content:center;gap:1.5rem;margin-top:.25rem;display:flex}.finish-stat{color:#ffffffb3;align-items:center;gap:.35rem;font-size:.85rem;font-weight:600;display:flex}.review-section{background:#ffffff0a;border:1px solid #ffffff0f;border-radius:1.5rem;max-height:260px;padding:1.5rem;overflow-y:auto}.review-section::-webkit-scrollbar{width:4px}.review-section::-webkit-scrollbar-track{background:0 0}.review-section::-webkit-scrollbar-thumb{background:#ffffff1f;border-radius:10px}.review-title{letter-spacing:.12em;text-transform:uppercase;color:#ffffffb3;align-items:center;gap:.5rem;margin-bottom:1rem;font-size:.75rem;font-weight:700;display:flex}.review-list{flex-direction:column;gap:.5rem;display:flex}.review-item{cursor:pointer;background:#ffffff08;border:1px solid #ffffff0a;border-radius:1rem;align-items:center;gap:.75rem;padding:.75rem 1rem;transition:background .2s;display:flex}.review-item:hover{background:#ffffff12}.review-char{min-width:2rem;font-size:1.5rem;font-weight:900}.review-hint{color:#ffffff59;flex:1;font-size:.75rem}.review-pinyin{align-items:center;gap:.35rem;display:flex}.pinyin-wrong{color:#f8717199;font-size:.8rem;font-weight:600;text-decoration:line-through}.pinyin-right{color:#4ade80;font-size:1rem;font-weight:800}.review-speak-icon{opacity:.25;width:.9rem;height:.9rem;transition:opacity .2s}.review-item:hover .review-speak-icon{opacity:.7}.replay-btn{width:100%;color:var(--bg-deep);cursor:pointer;font-size:1.15rem;font-weight:900;font-family:var(--font-sans);background:#fff;border:none;border-radius:1.25rem;justify-content:center;align-items:center;gap:.75rem;padding:1.25rem;transition:all .2s;display:flex;box-shadow:0 8px 30px #0000004d}.replay-btn:hover{transform:scale(1.02);box-shadow:0 12px 40px #0006}.replay-btn:active{transform:scale(.97)}.icon-xs{width:.75rem;height:.75rem}.icon-sm{width:1rem;height:1rem}.icon-md{width:1.25rem;height:1.25rem}.icon-lg{color:#fff;width:2.5rem;height:2.5rem}@keyframes pulse-glow{0%{opacity:.6}to{opacity:1}}@media(max-width:640px){.game-card{border-radius:0;min-height:100dvh;padding:1.25rem}.app-container{padding:0}.start-title{font-size:1.5rem}.start-description{font-size:.85rem}.character-text{font-size:6rem}.choices-grid{gap:.6rem}.choice-btn{border-radius:1rem;padding:1rem}.choice-pinyin{font-size:1.5rem}.header-stats{gap:.75rem}.stat-value{font-size:1rem}.score-number{font-size:3.5rem}.finish-title{font-size:1.4rem}.review-section{max-height:200px;padding:1rem}.review-char{font-size:1.2rem}}@media(max-width:380px){.game-card{padding:1rem}.character-text{font-size:5rem}.choices-grid{max-width:100%}}
