*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}html,body{width:100%;height:100%;overflow:hidden;background:#87ceeb;font-family:Segoe UI,Apple SD Gothic Neo,Malgun Gothic,sans-serif;touch-action:none}#game-container{position:fixed;top:0;right:0;bottom:0;left:0;width:100%;height:100%}#game-container canvas{display:block;width:100%;height:100%;touch-action:none}.hidden{display:none!important}#crosshair{position:fixed;left:50%;top:50%;width:22px;height:22px;transform:translate(-50%,-50%);pointer-events:none;z-index:15}#crosshair:before,#crosshair:after{content:"";position:absolute;background:rgba(255,255,255,.92);box-shadow:0 0 3px #000000d9}#crosshair:before{left:50%;top:2px;width:2px;height:18px;transform:translate(-50%)}#crosshair:after{top:50%;left:2px;height:2px;width:18px;transform:translateY(-50%)}#top-hud{position:fixed;top:max(10px,env(safe-area-inset-top));left:12px;right:12px;display:flex;justify-content:space-between;align-items:flex-start;gap:8px;pointer-events:none;z-index:20}.hud-left,.hud-right{display:flex;flex-wrap:wrap;align-items:center;gap:8px;pointer-events:auto}.stat-pill,.mission-pill{background:rgba(20,26,36,.72);color:#fff;border:2px solid rgba(255,255,255,.22);border-radius:999px;padding:6px 12px;font-size:14px;font-weight:700;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);box-shadow:0 4px 12px #00000038}.stars-pill{color:#ffe269;font-size:15px}.coins-pill{color:#fde68a;background:rgba(161,98,7,.82);border-color:#fde0478c}.hud-btn.phone-connect-btn{background:rgba(14,165,233,.86);border-color:#bae6fdb3}.hud-btn.armory-btn{background:linear-gradient(135deg,#ea580c,#d97706);border-color:#fef08a}.hud-btn.curriculum-btn{background:rgba(124,58,237,.86);border-color:#ddd6fe99}.hud-btn.mode-toggle-btn{background:rgba(30,41,59,.84);border-color:#94a3b88c}.hud-btn.mode-toggle-btn.speaking-on{background:linear-gradient(135deg,#e11d48,#f43f5e);border-color:#fecdd3;box-shadow:0 0 14px #f43f5e8c}.btn-magic{background:linear-gradient(135deg,#a855f7,#ec4899);border-color:#fef08a;box-shadow:0 0 18px #a855f7b3}#legendary-banner{position:fixed;top:22%;left:50%;transform:translate(-50%);display:flex;align-items:center;gap:14px;padding:14px 24px;border-radius:22px;background:linear-gradient(135deg,#1e1b4b,#4c1d95);color:#fff;border:4px solid #facc15;box-shadow:0 0 36px #facc15a6,0 14px 34px #00000073;z-index:35;max-width:min(92vw,540px);pointer-events:none;animation:legendaryPop .35s cubic-bezier(.22,1,.36,1)}@keyframes legendaryPop{0%{opacity:0;transform:translate(-50%,-24px) scale(.8)}to{opacity:1;transform:translate(-50%) scale(1)}}.legendary-icon{font-size:40px;flex-shrink:0}.legendary-title{font-size:clamp(18px,3vw,24px);font-weight:900;color:#fde047}.legendary-sub{font-size:13px;font-weight:700;color:#e0e7ff;margin-top:2px}#magic-bar{position:fixed;bottom:max(84px,calc(env(safe-area-inset-bottom) + 78px));left:50%;transform:translate(-50%);background:rgba(88,28,135,.85);color:#fef08a;border:2px solid #facc15;border-radius:999px;padding:5px 14px;font-size:12px;font-weight:800;z-index:20;pointer-events:none;white-space:nowrap;box-shadow:0 4px 12px #00000059}.armory-card{width:min(96vw,760px);border-color:#f59e0b}.armory-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px;max-height:62vh;overflow-y:auto;padding-right:4px;margin-top:10px}.weapon-card{display:flex;flex-direction:column;gap:6px;padding:13px;border-radius:16px;border:2px solid #e2e8f0;background:#f8fafc}.weapon-card.unlocked{border-color:#fbbf24;background:#fffbeb}.weapon-card.equipped{border-color:#7c3aed;background:linear-gradient(135deg,#f5f3ff,#fef9c3);box-shadow:0 6px 18px #7c3aed33}.weapon-card.locked{opacity:.72;background:#f1f5f9}.weapon-top{display:flex;align-items:center;justify-content:space-between}.weapon-icon{font-size:28px}.weapon-tier-badge{font-size:11px;font-weight:900;padding:3px 8px;border-radius:999px;background:#e2e8f0;color:#334155}.weapon-card.unlocked .weapon-tier-badge{background:#f59e0b;color:#fff}.weapon-name-ko{font-size:15px;font-weight:900;color:#0f172a}.weapon-name-en{font-size:12px;font-weight:700;color:#475569}.weapon-stats{font-size:12px;font-weight:800;color:#b45309}.weapon-skill{font-size:11px;font-weight:800;color:#6d28d9;background:#ede9fe;padding:4px 7px;border-radius:8px}.weapon-equip-btn{margin-top:auto;border:none;border-radius:10px;padding:8px 10px;font-size:12px;font-weight:900;cursor:pointer;color:#fff;background:#2563eb}.weapon-card.equipped .weapon-equip-btn{background:#7c3aed}.weapon-card.locked .weapon-equip-btn{background:#94a3b8;cursor:not-allowed}.hero-pill{background:rgba(37,99,235,.85);border-color:#bfdbfea6;cursor:pointer}.hero-pill:hover{background:rgba(59,130,246,.95)}.stage-pill{background:rgba(217,119,6,.88);border-color:#fef08ab8;cursor:pointer}.stage-pill:hover{background:rgba(245,158,11,.96)}.unit-pill{background:rgba(124,58,237,.86);border-color:#ddd6fead;cursor:pointer}.unit-pill:hover{background:rgba(139,92,246,.96)}.curriculum-btn{background:rgba(124,58,237,.86);border-color:#ddd6fe99}.mission-pill{background:rgba(34,96,56,.84);border-color:#99f5b280;max-width:320px}.hud-btn{background:rgba(20,26,36,.78);color:#fff;border:2px solid rgba(255,255,255,.28);border-radius:12px;padding:7px 11px;font-size:13px;font-weight:700;cursor:pointer;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);transition:transform .1s ease,background .15s ease}.hud-btn:hover{background:rgba(45,58,78,.9)}.hud-btn:active{transform:scale(.95)}.hud-btn.active{background:#2f9e44;border-color:#96f2a7}#speech-banner{position:fixed;top:max(62px,calc(env(safe-area-inset-top) + 54px));left:50%;transform:translate(-50%);display:flex;align-items:center;gap:12px;background:rgba(255,255,255,.95);color:#1c2430;border:3px solid #3b82f6;border-radius:20px;padding:10px 18px 10px 12px;box-shadow:0 10px 26px #00000047;z-index:25;max-width:min(92vw,520px);animation:bannerPop .25s cubic-bezier(.22,1,.36,1)}@keyframes bannerPop{0%{opacity:0;transform:translate(-50%,-14px) scale(.92)}to{opacity:1;transform:translate(-50%) scale(1)}}.replay-btn{flex-shrink:0;width:44px;height:44px;border-radius:50%;border:none;background:#3b82f6;color:#fff;font-size:22px;cursor:pointer;display:grid;place-items:center;box-shadow:0 4px 10px #3b82f666}.replay-btn:active{transform:scale(.92)}.speech-text-wrap{display:flex;flex-direction:column;gap:2px}.speech-en{font-size:clamp(18px,2.8vw,24px);font-weight:900;color:#14366b;letter-spacing:.2px}.speech-ko{font-size:13px;font-weight:600;color:#5b6779}.speech-visual-badge{flex-shrink:0;width:48px;height:48px;border-radius:14px;background:linear-gradient(135deg,#fef9c3,#dbeafe);border:2px solid #93c5fd;display:grid;place-items:center;font-size:28px;animation:badgeBounce .7s ease-in-out infinite alternate}@keyframes badgeBounce{0%{transform:translateY(0) scale(1)}to{transform:translateY(-4px) scale(1.08)}}.eng-key-hl{background:#fef08a;color:#9a3412;padding:0 5px;border-radius:6px}.scene-stage{width:100%;height:126px;border-radius:18px;overflow:hidden;border:3px solid #93c5fd;background:#e0f2fe;margin-bottom:12px;box-shadow:inset 0 0 12px #00000014}.scene-svg{width:100%;height:100%;display:block}.anim-hop{animation:sHop .9s ease-in-out infinite}.anim-bounce{animation:sBounce .8s cubic-bezier(.34,1.56,.64,1) infinite alternate}.anim-float{animation:sFloat 1.6s ease-in-out infinite alternate}.anim-pulse{animation:sPulse 1.1s ease-in-out infinite alternate}.anim-wave{animation:sWave .6s ease-in-out infinite alternate}.anim-wag{animation:sWag .35s ease-in-out infinite alternate}.anim-shake{animation:sShake .45s ease-in-out infinite}.anim-peek{animation:sPeek 1.5s ease-in-out infinite alternate}.anim-slash{animation:sSlash .75s ease-in-out infinite alternate}.anim-drop-block{animation:sDrop 1.3s ease-in-out infinite}.anim-slide-right{animation:sSlideRight 1.6s ease-in-out infinite}.anim-rain{animation:sRain .9s linear infinite}@keyframes sHop{0%,to{transform:translateY(0)}50%{transform:translateY(-9px)}}@keyframes sBounce{0%{transform:translateY(2px) scale(.95)}to{transform:translateY(-8px) scale(1.08)}}@keyframes sFloat{0%{transform:translateY(0)}to{transform:translateY(-7px)}}@keyframes sPulse{0%{transform:scale(.94);opacity:.9}to{transform:scale(1.08);opacity:1}}@keyframes sWave{0%{transform:rotate(-18deg)}to{transform:rotate(24deg)}}@keyframes sWag{0%{transform:rotate(-22deg)}to{transform:rotate(22deg)}}@keyframes sShake{0%,to{transform:translate(0)}25%{transform:translate(-4px)}75%{transform:translate(4px)}}@keyframes sPeek{0%{transform:translate(0)}to{transform:translate(18px)}}@keyframes sSlash{0%{transform:rotate(-28deg)}to{transform:rotate(48deg)}}@keyframes sDrop{0%{transform:translateY(-28px);opacity:.2}65%,to{transform:translateY(0);opacity:1}}@keyframes sSlideRight{0%{transform:translate(0);opacity:.4}70%{transform:translate(74px);opacity:1}to{transform:translate(74px);opacity:0}}@keyframes sRain{0%{transform:translateY(-10px);opacity:.2}50%{opacity:1}to{transform:translateY(26px);opacity:.2}}#interact-hint{position:fixed;top:57%;left:50%;transform:translate(-50%);background:rgba(17,24,39,.9);color:#fef08a;border:2px solid #facc15;border-radius:999px;padding:9px 18px;font-size:14px;font-weight:800;z-index:24;pointer-events:auto;cursor:pointer;white-space:nowrap;max-width:92vw;overflow:hidden;text-overflow:ellipsis;box-shadow:0 6px 18px #0006;transition:transform .1s ease,background .15s ease}#interact-hint:active{transform:translate(-50%) scale(.95);background:rgba(30,58,138,.95)}#minimap-wrap{position:fixed;right:14px;top:max(62px,calc(env(safe-area-inset-top) + 56px));background:rgba(15,23,42,.8);border:3px solid rgba(255,255,255,.55);border-radius:16px;padding:5px;display:flex;flex-direction:column;align-items:center;gap:3px;z-index:19;box-shadow:0 8px 20px #00000059;pointer-events:none}#minimap-canvas{width:112px;height:112px;border-radius:10px;image-rendering:pixelated;display:block}.minimap-label{font-size:10px;font-weight:800;color:#e2e8f0;letter-spacing:.2px}@media (max-width: 768px){#minimap-wrap{top:max(56px,calc(env(safe-area-inset-top) + 50px));right:8px;padding:3px}#minimap-canvas{width:76px;height:76px}.minimap-label{font-size:8px}}#hotbar{position:fixed;bottom:max(12px,env(safe-area-inset-bottom));left:50%;transform:translate(-50%);display:flex;gap:6px;background:rgba(20,26,36,.78);padding:7px;border-radius:16px;border:2px solid rgba(255,255,255,.22);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);z-index:22}.hotbar-slot{position:relative;width:58px;height:58px;border-radius:12px;border:2px solid rgba(255,255,255,.2);background:rgba(255,255,255,.08);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;transition:transform .1s ease,border-color .15s ease,background .15s ease}.hotbar-slot.selected{border-color:#facc15;background:rgba(250,204,21,.25);transform:translateY(-4px) scale(1.06);box-shadow:0 6px 14px #00000059}.hotbar-key{position:absolute;top:3px;left:5px;font-size:10px;color:#ffffffbf;font-weight:700}.hotbar-icon{font-size:24px;line-height:1}.hotbar-label{font-size:10px;font-weight:700;margin-top:2px;color:#e2e8f0}.hotbar-count{position:absolute;top:3px;right:5px;font-size:11px;font-weight:900;color:#fde047;text-shadow:0 1px 2px #000}#touch-controls{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:21}#joystick-zone{position:fixed;left:max(18px,env(safe-area-inset-left));bottom:max(92px,calc(env(safe-area-inset-bottom) + 84px));width:136px;height:136px;pointer-events:auto;display:grid;place-items:center}#joystick-base{width:124px;height:124px;border-radius:50%;background:rgba(15,23,42,.42);border:3px solid rgba(255,255,255,.45);display:grid;place-items:center;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}#joystick-knob{width:56px;height:56px;border-radius:50%;background:rgba(255,255,255,.85);box-shadow:0 4px 12px #00000059;transform:translate(0);transition:transform .04s linear}#touch-actions{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(92px,calc(env(safe-area-inset-bottom) + 84px));display:flex;flex-direction:column;align-items:flex-end;gap:12px;pointer-events:auto}.touch-action-row{display:flex;gap:12px}.touch-btn{width:74px;height:74px;border-radius:50%;border:3px solid rgba(255,255,255,.72);color:#fff;font-size:24px;font-weight:800;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;box-shadow:0 6px 16px #00000052;cursor:pointer}.touch-btn span{font-size:10px;font-weight:800}.touch-btn:active{transform:scale(.92)}.btn-jump{background:rgba(59,130,246,.84)}.btn-break{background:rgba(239,68,68,.86)}.btn-place{background:rgba(34,197,94,.86)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(12,18,30,.72);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);display:grid;place-items:center;padding:16px;z-index:40}.start-card,.choice-card,.wordbook-card{width:min(94vw,560px);max-height:90vh;overflow-y:auto;background:#ffffff;color:#1e293b;border-radius:26px;padding:24px;box-shadow:0 24px 60px #00000073;border:4px solid #38bdf8}.start-card{text-align:center}.title-badge{display:inline-block;background:#e0f2fe;color:#0369a1;font-weight:900;font-size:12px;letter-spacing:.8px;padding:6px 12px;border-radius:999px;margin-bottom:10px}.start-card h1{font-size:clamp(28px,5vw,38px);font-weight:900;color:#0f172a;margin-bottom:8px}.subtitle{color:#475569;font-size:15px;line-height:1.5;margin-bottom:14px}.name-input-box{background:#f0f9ff;border:2px solid #bae6fd;border-radius:18px;padding:12px 14px;margin-bottom:16px;text-align:left}.name-label{display:block;font-size:13px;font-weight:800;color:#0369a1;margin-bottom:8px}#hero-name-input{width:100%;padding:12px 14px;border-radius:12px;border:2px solid #7dd3fc;background:#ffffff;font-size:18px;font-weight:800;color:#0f172a;outline:none;user-select:text;-webkit-user-select:text}#hero-name-input:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb2e}.name-preview-hint{margin-top:6px;font-size:12px;font-weight:700;color:#0284c7;min-height:16px}.primary-big-btn{width:100%;padding:16px 20px;border:none;border-radius:18px;background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;font-size:20px;font-weight:900;cursor:pointer;box-shadow:0 8px 20px #16a34a66;transition:transform .12s ease,filter .15s ease}.primary-big-btn:hover{filter:brightness(1.06)}.primary-big-btn:active{transform:scale(.97)}.small-btn{padding:12px 16px;font-size:16px;margin-top:14px}.controls-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px;margin-top:18px;text-align:left}.ctrl-box{background:#f8fafc;border:2px solid #e2e8f0;border-radius:16px;padding:12px 14px;font-size:13px}.ctrl-box strong{display:block;margin-bottom:6px;color:#0f172a;font-size:14px}.ctrl-box ul{list-style:none;display:flex;flex-direction:column;gap:4px;color:#334155}kbd{display:inline-block;padding:1px 6px;border-radius:6px;background:#e2e8f0;border-bottom:2px solid #cbd5e1;font-family:inherit;font-weight:800;font-size:12px}.choice-card{border-color:#facc15}.choice-header{display:flex;align-items:center;gap:12px;margin-bottom:14px}.choice-avatar{width:56px;height:56px;border-radius:18px;background:#fef9c3;border:2px solid #facc15;display:grid;place-items:center;font-size:32px;flex-shrink:0}.choice-speaker{font-size:17px;font-weight:900;color:#0f172a}.choice-listen-row{margin-top:4px}.listen-pill-btn{border:none;background:#3b82f6;color:#fff;font-weight:800;font-size:13px;padding:6px 12px;border-radius:999px;cursor:pointer}.close-x-btn{margin-left:auto;width:38px;height:38px;border-radius:50%;border:2px solid #e2e8f0;background:#f1f5f9;font-size:18px;font-weight:900;color:#475569;cursor:pointer}.choice-prompt-box{background:#eff6ff;border:2px solid #bfdbfe;border-radius:18px;padding:16px;text-align:center;margin-bottom:14px}.choice-prompt-en{font-size:clamp(20px,3.6vw,26px);font-weight:900;color:#1e3a8a;line-height:1.3}.choice-prompt-ko{font-size:14px;font-weight:600;color:#475569;margin-top:5px}.choice-feedback{padding:12px 14px;border-radius:14px;font-size:15px;font-weight:800;text-align:center;margin-bottom:14px}.choice-feedback.success{background:#dcfce7;color:#166534;border:2px solid #4ade80}.choice-feedback.retry{background:#fef3c7;color:#92400e;border:2px solid #fbbf24}.choice-buttons{display:grid;grid-template-columns:1fr;gap:10px}.choice-option-btn{display:flex;align-items:center;gap:14px;width:100%;padding:14px 16px;border-radius:18px;border:3px solid #cbd5e1;background:#ffffff;text-align:left;cursor:pointer;transition:transform .1s ease,border-color .15s ease,background .15s ease}.choice-option-btn:hover{border-color:#3b82f6;background:#f8fafc}.choice-option-btn:active{transform:scale(.98)}.choice-option-btn.correct-picked{border-color:#22c55e;background:#dcfce7}.choice-option-btn.wrong-picked{border-color:#f59e0b;background:#fef3c7}.choice-opt-icon{font-size:32px;min-width:44px;text-align:center}.choice-opt-en{font-size:19px;font-weight:900;color:#0f172a}.choice-opt-ko{font-size:13px;font-weight:600;color:#64748b;margin-top:2px}.choice-opt-main{flex:1}.choice-mini-speak{flex-shrink:0;width:40px;height:40px;border-radius:50%;border:2px solid #bfdbfe;background:#eff6ff;font-size:18px;cursor:pointer;display:grid;place-items:center}.choice-mini-speak:hover{background:#dbeafe}.listening-masked{color:#2563eb;font-style:italic;font-size:15px!important}.curriculum-card{width:min(96vw,760px);border-color:#8b5cf6}.curriculum-summary{font-size:13px;font-weight:700;color:#6d28d9;margin-top:2px}.listening-level-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px;background:#f5f3ff;border:2px solid #ddd6fe;border-radius:14px;padding:8px 12px;margin-bottom:12px}.ll-label{font-size:13px;font-weight:800;color:#4c1d95;margin-right:4px}.ll-btn{border:2px solid #c4b5fd;background:#ffffff;color:#4c1d95;font-size:12px;font-weight:800;padding:5px 10px;border-radius:999px;cursor:pointer}.ll-btn.active{background:#7c3aed;border-color:#7c3aed;color:#fff}.part-tabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}.part-tab{border:2px solid #e2e8f0;background:#f8fafc;color:#334155;font-size:12px;font-weight:800;padding:6px 10px;border-radius:10px;cursor:pointer}.part-tab.active{background:#2563eb;border-color:#2563eb;color:#fff}.curriculum-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:10px;max-height:56vh;overflow-y:auto;padding-right:4px}.unit-card{display:flex;flex-direction:column;gap:8px;padding:13px 14px;border-radius:16px;border:2px solid #e2e8f0;background:#f8fafc}.unit-card.active-unit{border-color:#7c3aed;background:#f5f3ff;box-shadow:0 4px 14px #7c3aed29}.unit-card.cleared-unit{border-color:#22c55e;background:#f0fdf4}.unit-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.unit-badge{font-size:12px;font-weight:900;padding:3px 9px;border-radius:999px;background:#e0e7ff;color:#3730a3}.unit-card.active-unit .unit-badge{background:#7c3aed;color:#fff}.unit-card.cleared-unit .unit-badge{background:#16a34a;color:#fff}.unit-stars{font-size:13px;font-weight:800}.unit-title-ko{font-size:15px;font-weight:900;color:#0f172a}.unit-pattern{font-size:13px;font-weight:800;color:#1d4ed8;background:#eff6ff;padding:6px 9px;border-radius:10px}.unit-tip{font-size:12px;color:#475569;line-height:1.45}.unit-sentences{display:flex;flex-direction:column;gap:4px}.unit-sample-btn{border:1px solid #cbd5e1;background:#ffffff;color:#1e293b;font-size:12px;font-weight:700;padding:5px 8px;border-radius:8px;text-align:left;cursor:pointer}.unit-sample-btn:hover{border-color:#3b82f6;background:#eff6ff}.unit-select-btn{margin-top:auto;border:none;border-radius:10px;padding:9px 12px;font-size:13px;font-weight:900;color:#fff;background:#2563eb;cursor:pointer}.unit-card.active-unit .unit-select-btn{background:#7c3aed}.unit-select-btn:hover{filter:brightness(1.06)}.stage-info-banner{background:linear-gradient(135deg,#fffbeb,#fef3c7);border:2px solid #f59e0b;border-radius:14px;padding:10px 14px;margin-bottom:10px;font-size:13px;color:#78350f;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px}.cefr-tag{display:inline-block;font-size:11px;font-weight:800;padding:2px 7px;border-radius:6px;background:#dbeafe;color:#1e40af;margin-right:4px}.school-tag{display:inline-block;font-size:11px;font-weight:800;padding:2px 7px;border-radius:6px;background:#fce7f3;color:#9d174d}.craft-card{border-color:#f97316}.craft-avatar{background:#ffedd5;border-color:#fb923c}.craft-instruction{background:#fff7ed;border:2px solid #fed7aa;border-radius:16px;padding:14px;text-align:center;margin-bottom:14px}.craft-prompt-ko{font-size:20px;font-weight:900;color:#9a3412}.craft-sub-hint{font-size:13px;font-weight:600;color:#7c2d12;margin-top:4px}.craft-slots{min-height:64px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;padding:12px;border-radius:16px;background:#f1f5f9;border:3px dashed #94a3b8;margin-bottom:14px}.craft-slot-empty{color:#94a3b8;font-size:14px;font-weight:700}.craft-chunk-btn{padding:11px 16px;border-radius:14px;border:3px solid #3b82f6;background:#eff6ff;color:#1e3a8a;font-size:17px;font-weight:900;cursor:pointer;box-shadow:0 4px #2563eb;transition:transform .08s ease,opacity .15s ease}.craft-chunk-btn:active{transform:translateY(2px)}.craft-chunk-btn.placed{background:#fef08a;border-color:#eab308;color:#713f12;box-shadow:0 3px #ca8a04}.craft-chunk-btn.used{opacity:.28;pointer-events:none}.craft-pool{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-bottom:14px}.craft-actions{display:flex;justify-content:center}.craft-reset-btn{background:#475569;color:#fff}.diary-box{background:#fefce8;border:2px solid #fde047;border-radius:16px;padding:12px 14px;margin-bottom:12px;display:flex;flex-direction:column;gap:8px}.diary-text{font-size:14px;font-weight:800;color:#713f12;line-height:1.5}.follow-pill-btn{background:#16a34a;margin-left:6px}.shop-card{border-color:#10b981}.shop-avatar{background:#d1fae5;border-color:#10b981}.shop-coin-badge{display:inline-block;font-size:13px;font-weight:800;color:#854d0e;background:#fef9c3;border:2px solid #facc15;padding:3px 10px;border-radius:999px}.shop-price-pill{margin-left:auto;flex-shrink:0;background:#fef3c7;color:#92400e;border:2px solid #f59e0b;font-size:13px;font-weight:900;padding:6px 11px;border-radius:999px}.phone-card{width:min(95vw,680px);border-color:#0ea5e9}.qr-section{display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:center;background:#f0f9ff;border:2px solid #bae6fd;border-radius:18px;padding:16px;margin-bottom:14px}.qr-box{width:196px;height:196px;background:#ffffff;border:3px solid #0284c7;border-radius:14px;display:grid;place-items:center;padding:6px}.qr-box svg{width:100%;height:100%}.qr-badge{display:inline-block;background:#0284c7;color:#fff;font-size:12px;font-weight:800;padding:4px 10px;border-radius:999px;margin-bottom:6px}.lan-url-text{font-size:20px;font-weight:900;color:#0c4a6e;word-break:break-all;margin-bottom:8px;user-select:text;-webkit-user-select:text}.qr-desc{font-size:13px;line-height:1.5;color:#334155;margin-bottom:10px}.firewall-tip{background:#fffbeb;border:1px solid #fcd34d;border-radius:10px;padding:8px 10px;font-size:11px;line-height:1.45;color:#78350f}.firewall-tip code,.web-deploy-tip code{background:#e2e8f0;padding:2px 5px;border-radius:5px;font-size:11px;word-break:break-all;user-select:text;-webkit-user-select:text}.web-deploy-tip{background:#f8fafc;border:2px solid #cbd5e1;border-radius:14px;padding:12px 14px;font-size:13px;line-height:1.55;color:#334155}.help-btn-row{display:flex;flex-direction:column;gap:8px;margin-top:12px}.reset-world-btn{background:#dc2626;border-color:#fca5a5;padding:10px 14px}@media (max-width: 768px){.qr-section{grid-template-columns:1fr;justify-items:center}.phone-connect-btn,.hearts-pill{font-size:11px}.phone-connect-btn{display:none}.stat-pill{padding:4px 8px;font-size:12px}.hud-btn{padding:5px 8px;font-size:11px}#hotbar{gap:4px;padding:5px}.hotbar-slot{width:42px;height:46px;border-radius:9px}.hotbar-icon{font-size:18px}.hotbar-label{font-size:8px}.hotbar-key{display:none}}.wordbook-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.wordbook-desc{font-size:13px;color:#475569;margin-bottom:14px;line-height:1.5}.wordbook-list{display:flex;flex-direction:column;gap:8px;max-height:55vh;overflow-y:auto;padding-right:4px}.wordbook-item{display:flex;align-items:center;gap:12px;padding:11px 14px;border-radius:14px;background:#f8fafc;border:2px solid #e2e8f0;cursor:pointer;text-align:left}.wordbook-item:hover{border-color:#38bdf8;background:#f0f9ff}.wb-icon{font-size:24px}.wb-en{font-size:16px;font-weight:800;color:#0f172a}.wb-ko{font-size:12px;color:#64748b}.wb-count{margin-left:auto;background:#e0f2fe;color:#0369a1;font-size:12px;font-weight:800;padding:4px 9px;border-radius:999px;white-space:nowrap}.help-content{display:flex;flex-direction:column;gap:10px;font-size:14px;line-height:1.55;color:#334155}@media (max-width: 640px){.mission-pill{display:none}.hotbar-slot{width:48px;height:50px}.hotbar-icon{font-size:20px}.hotbar-label{font-size:9px}.hud-btn{padding:6px 8px;font-size:12px}}.mode-selector-box{margin-bottom:14px;text-align:left}.mode-selector-label{font-size:13px;font-weight:800;color:#334155;margin-bottom:8px}.mode-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.mode-card{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;padding:12px 10px;border-radius:16px;border:3px solid #cbd5e1;background:#f8fafc;color:#1e293b;cursor:pointer;transition:transform .12s ease,border-color .15s ease,background .15s ease,box-shadow .15s ease}.mode-card:hover{border-color:#60a5fa;background:#f0f9ff}.mode-card:active{transform:scale(.97)}.mode-card.selected[data-mode=normal]{border-color:#2563eb;background:linear-gradient(135deg,#eff6ff,#dbeafe);box-shadow:0 6px 16px #2563eb38}.mode-card.selected[data-mode=speaking]{border-color:#e11d48;background:linear-gradient(135deg,#fff1f2,#ffe4e6);box-shadow:0 6px 18px #e11d4842}.mode-card-badge{position:absolute;top:-9px;right:10px;background:linear-gradient(135deg,#e11d48,#f97316);color:#fff;font-size:10px;font-weight:900;padding:2px 8px;border-radius:999px;box-shadow:0 2px 6px #e11d4859}.mode-card-icon{font-size:28px;line-height:1.1}.mode-card-title{font-size:15px;font-weight:900;color:#0f172a}.mode-card-desc{font-size:11px;font-weight:600;color:#475569;line-height:1.38}.speaking-compat-hint{margin-top:8px;padding:8px 11px;border-radius:12px;font-size:12px;font-weight:700;line-height:1.45}.speaking-compat-hint.ok{background:#dcfce7;color:#166534;border:2px solid #86efac}.speaking-compat-hint.warn{background:#fef3c7;color:#92400e;border:2px solid #fcd34d}.primary-big-btn.speaking-start{background:linear-gradient(135deg,#e11d48,#f97316);box-shadow:0 8px 20px #e11d486b}.speaking-panel{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 14px;margin-bottom:12px;border-radius:18px;background:linear-gradient(135deg,#fff1f2,#fef2f2);border:3px solid #fda4af}.speaking-panel.listening{border-color:#e11d48;background:linear-gradient(135deg,#ffe4e6,#fff1f2);box-shadow:0 0 0 4px #f43f5e29}.speaking-top-row{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;flex-wrap:wrap}.mic-big-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 20px;border-radius:999px;border:none;background:linear-gradient(135deg,#e11d48,#f97316);color:#fff;font-size:16px;font-weight:900;cursor:pointer;box-shadow:0 6px 16px #e11d485c;transition:transform .12s ease,filter .15s ease}.mic-big-btn:hover{filter:brightness(1.06)}.mic-big-btn:active{transform:scale(.96)}.mic-big-btn.listening{background:linear-gradient(135deg,#dc2626,#be123c);animation:micPulse 1.15s ease-in-out infinite}.mic-icon{font-size:20px}@keyframes micPulse{0%,to{box-shadow:0 0 #e11d488c}50%{box-shadow:0 0 0 12px #e11d4800}}.voice-wave{display:flex;align-items:center;gap:4px;height:26px;opacity:.3}.voice-wave span{display:block;width:5px;height:8px;border-radius:999px;background:#e11d48;transition:height .15s ease}.voice-wave.active{opacity:1}.voice-wave.active span{animation:waveBounce .7s ease-in-out infinite}.voice-wave.active span:nth-child(2){animation-delay:.12s}.voice-wave.active span:nth-child(3){animation-delay:.24s}.voice-wave.active span:nth-child(4){animation-delay:.36s}.voice-wave.active span:nth-child(5){animation-delay:.48s}@keyframes waveBounce{0%,to{height:7px}50%{height:24px}}.spoken-transcript-box{width:100%;padding:9px 12px;border-radius:12px;background:#ffffff;border:2px dashed #fda4af;color:#1e293b;font-size:14px;font-weight:800;text-align:center;min-height:38px;line-height:1.4}.spoken-transcript-box.heard{border-style:solid;border-color:#fb7185;color:#9f1239}.spoken-transcript-box.matched{border-style:solid;border-color:#22c55e;background:#f0fdf4;color:#166534}.speaking-sub-tip{font-size:12px;font-weight:700;color:#881337;text-align:center}.speaking-fallback-btn{border:2px solid #cbd5e1;background:#ffffff;color:#475569;font-size:12px;font-weight:800;padding:6px 12px;border-radius:999px;cursor:pointer}.speaking-fallback-btn:hover{border-color:#94a3b8;background:#f8fafc}.choice-option-btn.speaking-target-card{border-color:#f43f5e;background:#fff1f2;box-shadow:0 4px 14px #f43f5e29}.choice-option-btn.speaking-ref-card{border-style:dashed;border-color:#fda4af}.choice-option-btn.speaking-ref-card:hover{border-style:solid;border-color:#f43f5e;background:#fff1f2}.speak-say-tag{display:inline-block;margin-left:6px;padding:2px 7px;border-radius:999px;background:#ffe4e6;color:#be123c;font-size:11px;font-weight:900;vertical-align:middle}.craft-chunk-btn.speak-chunk{background:#fff1f2;border:2px solid #fda4af;color:#9f1239;cursor:pointer}.craft-chunk-btn.speak-chunk.hit{background:#22c55e;border-color:#15803d;color:#fff;transform:scale(1.05)}@media (max-width: 480px){.mode-cards{grid-template-columns:1fr}}
