@import"https://fonts.googleapis.com/css2?family=Nunito:wght@600;700;800;900&display=swap";:root{font-family:Nunito,ui-rounded,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#172033;background:#f5f7ff;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-optical-sizing:auto;font-weight:700;--ink: #172033;--muted: #718096;--indigo: #4f46e5;--safe-top: env(safe-area-inset-top, 0px);--safe-bottom: env(safe-area-inset-bottom, 0px)}*,*:before,*:after{box-sizing:border-box}html{min-width:320px;min-height:100%;-webkit-text-size-adjust:100%}body{min-width:320px;min-height:100vh;margin:0}button,input{font:inherit}button{-webkit-tap-highlight-color:transparent;touch-action:manipulation;cursor:pointer}button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #818cf8;outline-offset:3px}.page-shell{min-height:100vh;padding:calc(24px + var(--safe-top)) 18px calc(24px + var(--safe-bottom));background:radial-gradient(ellipse at 10% 0%,#e7eaff 0,transparent 36%),#f5f7ff}.page-wrap{width:min(100%,920px);margin:0 auto}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 4px 18px}.topbar h1{margin:0;color:var(--ink);font-size:clamp(25px,4vw,32px);font-weight:900;line-height:1.12;letter-spacing:-.035em}.eyebrow{margin:0 0 3px;color:#ea580c;font-size:12px;font-weight:900;letter-spacing:.16em}.subtitle{margin:5px 0 0;color:#64748b;font-size:14px;font-weight:700}.game-card{position:relative;min-height:610px;overflow:hidden;padding:26px;border:1px solid rgba(15,23,42,.06);border-radius:28px;background:#fff;box-shadow:0 24px 70px #4f46e52e}.rainbow-bar{position:absolute;inset:0 0 auto;height:8px;background:linear-gradient(90deg,#f87171,#fbbf24,#4ade80,#38bdf8,#8b5cf6)}.game-content{display:flex;min-height:560px;flex-direction:column;gap:14px}.game-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px}.progress-area{display:flex;min-width:0;flex:1;align-items:center;gap:13px}.initial-badge{display:grid;width:50px;height:50px;flex:0 0 auto;place-items:center;border-radius:17px;background:#4f46e5;color:#fff;font-size:22px;font-weight:900;box-shadow:0 5px 12px #4f46e544}.progress-copy{min-width:0;flex:1}.progress-label{display:flex;justify-content:space-between;gap:12px;margin-bottom:7px;color:#475569;font-size:13px}.progress-label span{color:#94a3b8}.progress-track{height:11px;overflow:hidden;border-radius:999px;background:#f1f5f9}.progress-fill{height:100%;border-radius:inherit;background:linear-gradient(90deg,#fbbf24,#ec4899);transition:width .35s ease}.speed-controls{display:flex;flex:0 0 auto;gap:4px;padding:5px;border:1px solid #e2e8f0;border-radius:999px;background:#f1f5f9}.speed-button{min-height:42px;padding:8px 14px;border-radius:999px;background:transparent;color:#64748b;font-size:13px;font-weight:900}.speed-button.selected{background:#4f46e5;color:#fff;box-shadow:0 3px 9px #4f46e544}.speed-caption{margin:-8px 0 0;color:#64748b;text-align:right;font-size:12px}.speed-caption b{color:#4f46e5}.alphabet-panel{padding:13px 14px 10px;border:1px solid #eef2ff;border-radius:18px;background:#f8fafc}.panel-caption{margin:0 0 9px;color:#94a3b8;text-align:center;font-size:11px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}.alphabet-list{display:flex;flex-wrap:wrap;justify-content:center;gap:7px}.alphabet-button{width:39px;height:39px;border:1px solid #e2e8f0;border-radius:50%;background:#fff;color:#64748b;font-size:13px;font-weight:900;transition:transform .14s ease,background .14s ease}.alphabet-button:hover{transform:translateY(-1px);background:#fef3c7}.alphabet-button.current{transform:scale(1.08);border-color:#4f46e5;background:#4f46e5;color:#fff;box-shadow:0 0 0 4px #e0e7ff}.alphabet-button.learned:not(.current){border-color:#bbf7d0;background:#dcfce7;color:#047857}.current-label{margin:8px 0 0;color:#4f46e5;text-align:center;font-size:12px;font-weight:900}.word-stage{position:relative;display:flex;min-height:290px;flex:1;flex-direction:column;align-items:center;justify-content:center;padding:22px 12px 16px;text-align:center;transition:opacity .18s ease}.word-stage.fading{opacity:.88}.decoration{position:absolute;opacity:.65;pointer-events:none}.decoration-left{top:9px;left:10px;font-size:23px}.decoration-right{top:15px;right:14px;font-size:22px}.decoration-bottom{bottom:12px;left:26px;font-size:22px}.hero-emoji{font-size:clamp(110px,22vw,190px);line-height:1.08;filter:drop-shadow(0 14px 13px rgba(0,0,0,.14));-webkit-user-select:none;user-select:none}.spelling-row{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:13px}.spelling-tile{display:grid;width:clamp(39px,7vw,62px);height:clamp(54px,9vw,78px);place-items:center;border:1px solid #e2e8f0;border-bottom-width:5px;border-radius:17px;background:#fff;box-shadow:0 4px 8px #0f172a0d;font-size:clamp(34px,7vw,62px);font-weight:900;line-height:1;transition:transform .15s ease,background .15s ease}.spelling-tile.active{transform:translateY(-5px) scale(1.08);border-color:#4338ca;background:#4f46e5;color:#fff!important;box-shadow:0 9px 20px #4f46e544}.meaning-chip{display:inline-flex;max-width:100%;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;margin-top:18px;padding:11px 20px;border:2px solid #bbf7d0;border-radius:999px;background:linear-gradient(90deg,#ecfdf5,#f0f9ff);color:#047857;font-size:clamp(18px,3vw,26px);font-weight:900;line-height:1.25;box-shadow:0 4px 12px #10b98112}.meaning-chip i{color:#94a3b8;font-style:normal}.meaning-hidden{margin:16px 0 0;padding:8px 14px;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:13px}.button{display:inline-flex;min-height:46px;align-items:center;justify-content:center;gap:8px;border:0;border-radius:15px;padding:11px 15px;font-size:14px;font-weight:900;transition:transform .13s ease,filter .13s ease,box-shadow .13s ease}.button:hover{filter:brightness(1.035)}.button:active{transform:scale(.97)}.button:disabled{cursor:not-allowed;opacity:.58}.button-light{background:#fff;color:#4338ca;box-shadow:0 3px 12px #33415518}.button-neutral{background:#f1f5f9;color:#334155}.button-amber{background:#fbbf24;color:#451a03;box-shadow:0 5px 14px #f59e0b33}.button-blue{background:#0ea5e9;color:#fff;box-shadow:0 5px 14px #0284c733}.button-green{background:#10b981;color:#fff;box-shadow:0 5px 14px #05966933}.button-red{background:#f43f5e;color:#fff}.button-indigo{background:#4f46e5;color:#fff;box-shadow:0 5px 14px #4f46e533}.meaning-button{margin-top:13px;border-radius:999px;padding:10px 17px}.meaning-on{background:#10b981;color:#fff}.meaning-off{background:#1e293b;color:#fff}.button-state{padding:2px 8px;border-radius:999px;background:#ffffff40;font-size:11px}.teacher-tip{max-width:620px;margin:8px 0 0;color:#94a3b8;font-size:11px;font-weight:700}.live-status{min-height:23px;margin:11px 0 0;color:#475569;font-size:14px;font-weight:800}.speaking-indicator{margin:0;color:#ec4899;font-size:11px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}.controls-area{margin-top:auto;padding-top:16px;border-top:1px solid #f1f5f9}.primary-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.autoplay-button{width:100%;margin-top:13px;min-height:52px;font-size:16px}.auto-hint{margin:9px 0 0;color:#94a3b8;text-align:center;font-size:11px}.audio-panel{margin-top:11px;border-top:1px dashed #e2e8f0;padding-top:10px;color:#64748b;font-size:12px}.audio-panel summary{width:fit-content;cursor:pointer;color:#4f46e5;font-weight:900}.audio-panel-content{padding:9px 3px 0}.audio-panel-content p{margin:5px 0}.audio-warning{color:#b91c1c;font-weight:900}.test-audio{min-height:40px;margin:7px 0;border:1px solid #e0e7ff}.audio-note{color:#94a3b8;font-size:11px;line-height:1.5}.footer-hint{margin:14px 6px 0;color:#94a3b8;text-align:center;font-size:12px}.empty-state{display:grid;min-height:540px;place-content:center;justify-items:center;text-align:center}.empty-state h2{margin:0;font-weight:900}.empty-state p{color:var(--muted)}.empty-state .button{margin-top:7px}.editor-card{min-height:500px}.editor-list{display:flex;max-height:min(62vh,660px);flex-direction:column;gap:10px;overflow:auto;padding:0 4px 3px 0;overscroll-behavior:contain}.word-edit-card{padding:11px;border:1px solid #eef2f7;border-radius:18px;background:#f8fafc}.word-edit-main{display:flex;align-items:center;gap:9px}.row-number{display:grid;width:41px;height:42px;flex:0 0 auto;place-items:center;border-radius:13px;background:#fff;color:#4f46e5;font-size:13px;font-weight:900}.emoji-input{width:56px;height:43px;flex:0 0 auto;border:1px solid #e2e8f0;border-radius:12px;background:#fff;text-align:center;font-size:22px}.word-input,.meaning-input{min-width:0;height:43px;flex:1;border:1px solid #dbe2ec;border-radius:12px;background:#fff;padding:0 12px;outline:none}.word-input{color:#172033;font-size:16px;font-weight:900}.meaning-input{border-color:#bbf7d0;color:#047857;font-weight:800}.word-input:focus,.meaning-input:focus,.emoji-input:focus{border-color:#818cf8;box-shadow:0 0 0 3px #e0e7ff}.delete-button{display:grid;width:43px;height:43px;flex:0 0 auto;place-items:center;border-radius:12px;background:#fff;font-size:18px}.meaning-edit-row{display:flex;align-items:center;gap:10px;margin:9px 0 0 50px}.meaning-edit-row label{flex:0 0 auto;color:#059669;font-size:13px;font-weight:900}.editor-actions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin-top:15px}.editor-actions .button{padding-inline:9px;font-size:12px}.save-note{margin:12px 0 0;color:#94a3b8;text-align:center;font-size:11px}.empty-editor{padding:35px 10px;color:#b45309;text-align:center}.sr-only,.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;clip-path:inset(50%)!important}@media(max-width:700px){.page-shell{padding:calc(13px + var(--safe-top)) 10px calc(17px + var(--safe-bottom))}.topbar{align-items:flex-start;gap:10px;margin:0 3px 13px}.topbar h1{font-size:clamp(22px,6vw,29px)}.subtitle{max-width:50ch;font-size:12px}.topbar>.button{min-height:42px;padding:9px 11px;font-size:12px}.game-card{min-height:auto;padding:17px 13px;border-radius:22px}.game-content{min-height:0;gap:12px}.game-toolbar{align-items:flex-start;flex-direction:column;gap:10px}.progress-area,.speed-controls{width:100%}.speed-button{flex:1}.speed-caption{margin-top:-5px}.alphabet-panel{padding:11px 8px 9px}.alphabet-list{gap:6px}.alphabet-button{width:36px;height:36px}.word-stage{min-height:270px;padding:21px 4px 12px}.hero-emoji{font-size:clamp(108px,35vw,165px)}.spelling-row{gap:6px;margin-top:10px}.spelling-tile{width:clamp(35px,10vw,49px);height:clamp(49px,14vw,62px);border-radius:14px;font-size:clamp(31px,9vw,43px)}.meaning-chip{padding:9px 13px;font-size:clamp(16px,4.7vw,22px)}.primary-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.primary-controls .button{min-height:50px;padding:10px 7px}.autoplay-button{min-height:52px}.audio-panel{margin-top:6px}.footer-hint{font-size:11px}.editor-list{max-height:60vh}.editor-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-actions .save-button{grid-column:1 / -1}.meaning-edit-row{margin-left:0}}@media(max-width:390px){.page-shell{padding-inline:7px}.game-card{padding-inline:10px}.initial-badge{width:44px;height:44px}.alphabet-button{width:33px;height:33px}.word-edit-main{gap:6px}.row-number{width:32px}.emoji-input{width:47px}.delete-button{width:36px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}
