:root{--safe-top: env(safe-area-inset-top, 0px);--safe-right: env(safe-area-inset-right, 0px);--safe-bottom: env(safe-area-inset-bottom, 0px);--safe-left: env(safe-area-inset-left, 0px);--glass-bg: #fffbec;--glass-dark: rgba(15, 23, 42, .78);--glass-border: #77969b;--glass-shadow: 0 3px 0 #526d77, 0 6px 10px #173f5226;--ink: #0f172a;--ink-muted: #475569;--primary: #2563eb;--accent: #7c3aed;--gold: #f59e0b;--success: #10b981;--danger: #e11d48}*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}html,body{width:100%;height:100%;height:100dvh;overflow:hidden;overscroll-behavior:none;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:#dce9d5;color:var(--ink);user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}button{font-family:inherit;touch-action:manipulation}#canvas-container{position:fixed;top:0;right:0;bottom:0;left:0;width:100%;height:100%;touch-action:none}.hud-top,.adv-top{position:fixed;top:calc(10px + var(--safe-top));left:calc(12px + var(--safe-left));right:calc(12px + var(--safe-right));display:flex;align-items:center;justify-content:space-between;gap:8px;pointer-events:none;z-index:20}.school-hud .adv-top,.adventure-hud .adv-top{position:static;width:100%}.hud-pill{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:6px 12px;border-radius:16px;background:var(--glass-bg);backdrop-filter:blur(14px) saturate(140%);-webkit-backdrop-filter:blur(14px) saturate(140%);border:1.5px solid var(--glass-border);box-shadow:var(--glass-shadow);color:var(--ink);pointer-events:auto}.hud-context-pill{max-width:min(240px,46vw);padding:5px 12px 5px 9px}.hud-mode-dot{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:11px;background:linear-gradient(135deg,#e0f2fe,#dcfce7);font-size:17px;flex-shrink:0}.hud-context-text{display:flex;flex-direction:column;min-width:0}.hud-context-title{font-size:15px;font-weight:900;color:#0f172a;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hud-context-sub{display:flex;align-items:center;gap:6px;margin-top:2px}.hud-class-badge{display:inline-flex;align-items:center;font-size:10.5px;font-weight:800;padding:1px 6px;border-radius:999px;background:#fef3c7f2;color:#92400e;border:1px solid rgba(245,158,11,.35);white-space:nowrap}.hud-stars-badge{display:inline-flex;align-items:center;font-size:11px;font-weight:900;color:#b45309;white-space:nowrap}.hud-dock{display:inline-flex;align-items:center;gap:6px;padding:4px;border-radius:18px;background:var(--glass-bg);backdrop-filter:blur(14px) saturate(140%);-webkit-backdrop-filter:blur(14px) saturate(140%);border:1.5px solid var(--glass-border);box-shadow:var(--glass-shadow);pointer-events:auto}.dock-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;height:44px;padding:0 12px;border:none;border-radius:13px;background:#f1f5f9d9;color:#1e293b;font-size:12.5px;font-weight:800;cursor:pointer;transition:transform .12s ease,background .15s ease,box-shadow .15s ease;white-space:nowrap}.dock-btn:active{transform:scale(.93)}.dock-btn.dock-icon-only{width:44px;padding:0}.dock-btn.dock-primary{background:linear-gradient(155deg,#146f96,#14538a);color:#fff;box-shadow:0 4px 12px #2563eb47}.dock-btn.dock-accent{background:linear-gradient(155deg,#ffdf77,#ffb85e);color:#512b19;box-shadow:0 4px 12px #ea580c42}.dock-icon{font-size:21px;line-height:1}.dock-chip{font-size:10.5px;font-weight:900;padding:2px 6px;border-radius:999px;background:#0f172a3d;color:#fff}.quest-tracker{position:fixed;top:calc(68px + var(--safe-top));left:calc(12px + var(--safe-left));width:min(300px,calc(100vw - 24px - var(--safe-left) - var(--safe-right)));background:#fffaf0eb;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);color:#2f2217;border:1.5px solid rgba(180,136,86,.6);border-radius:16px;box-shadow:0 10px 26px #2a1d112e;z-index:19;pointer-events:auto;overflow:hidden;transition:transform .2s ease,opacity .2s ease}.quest-tracker.hidden{display:none}.quest-tracker.done{border-color:#6b9167;background:#eef8ecf0}.quest-tracker-toggle{width:100%;min-height:44px;padding:8px 12px;border:none;background:transparent;color:inherit;text-align:left;display:flex;flex-direction:column;gap:2px;cursor:pointer}.quest-tracker-top-row{display:flex;align-items:center;gap:6px;width:100%}.quest-tracker-badge{font-size:10.5px;font-weight:900;letter-spacing:.04em;text-transform:uppercase;color:#9a5b13}.quest-tracker.done .quest-tracker-badge{color:#166534}.quest-tracker-count{margin-left:auto;font-size:10.5px;font-weight:900;color:#fff;background:#9a6b3d;padding:2px 7px;border-radius:999px}.quest-tracker.done .quest-tracker-count{background:#15803d}.quest-tracker-chevron{font-size:12px;color:#78593a;transition:transform .2s ease}.quest-tracker:not(.is-compact) .quest-tracker-chevron{transform:rotate(180deg)}.quest-tracker-title{font-size:13px;font-weight:900;color:#2b1d12;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.quest-tracker.is-compact .quest-tracker-details{display:none}.quest-tracker-details{padding:7px 12px 10px;display:flex;flex-direction:column;gap:6px;border-top:1px dashed rgba(166,133,92,.35)}.quest-tracker-hint{font-size:12px;line-height:1.38;color:#5b4531}.quest-tracker-footer{display:flex;align-items:center;justify-content:space-between;gap:8px}.quest-tracker-reward{font-size:11px;font-weight:800;color:#8a5d1c}.quest-roadmap-chip{min-height:32px;padding:4px 10px;border-radius:999px;border:none;background:linear-gradient(135deg,#f59e0b,#d97706);color:#fff;font-size:11px;font-weight:900;cursor:pointer;flex-shrink:0}.hud-drawer-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a6b;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);z-index:48}.hud-drawer-backdrop.hidden{display:none}.hud-drawer{position:fixed;top:0;right:0;bottom:0;width:min(340px,88vw);background:linear-gradient(165deg,#fffdf8f7,#f1f6fff7);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-left:1.5px solid rgba(255,255,255,.9);box-shadow:-12px 0 40px #0f172a40;z-index:50;display:flex;flex-direction:column;padding:calc(14px + var(--safe-top)) calc(14px + var(--safe-right)) calc(16px + var(--safe-bottom)) 14px;overflow-y:auto;-webkit-overflow-scrolling:touch}.hud-drawer.hidden{display:none}.hud-drawer-header{display:flex;align-items:center;justify-content:space-between;padding-bottom:12px;border-bottom:1px solid rgba(148,163,184,.25)}.hud-drawer-title{font-size:17px;font-weight:900;color:#0f172a}.drawer-close-btn{width:44px;height:44px;border-radius:13px;border:1px solid rgba(148,163,184,.35);background:#ffffffe6;color:#334155;font-size:18px;font-weight:900;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.hud-drawer-body{display:flex;flex-direction:column;gap:16px;padding-top:14px}.drawer-section.hidden{display:none}.drawer-section-title{font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.05em;color:#64748b;margin-bottom:8px}.drawer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.cam-btn,.pill-btn{min-height:44px;padding:8px 10px;border-radius:12px;border:1.5px solid rgba(203,213,225,.75);background:#fff;color:#334155;font-size:12.5px;font-weight:800;cursor:pointer;transition:transform .12s ease,background .15s ease,border-color .15s ease}.cam-btn:active,.pill-btn:active{transform:scale(.96)}.cam-btn.active{background:#1e293b;color:#fff;border-color:#1e293b;box-shadow:0 4px 12px #0f172a38}.pill-btn.active{background:linear-gradient(135deg,#2563eb,#0ea5e9);color:#fff;border-color:transparent}.drawer-toggle-row{width:100%;min-height:46px;margin-top:8px;padding:10px 12px;border-radius:13px;border:1.5px solid rgba(203,213,225,.8);background:#fff;color:#1e293b;font-size:13px;font-weight:800;display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer}.drawer-toggle-pill{padding:3px 9px;border-radius:999px;font-size:11px;font-weight:900;background:#e2e8f0;color:#475569}.drawer-toggle-row.active{border-color:#38bdf8;background:#f0f9ff}.drawer-toggle-row.active .drawer-toggle-pill{background:#0ea5e9;color:#fff}.drawer-actions-footer{margin-top:auto;padding-top:8px;border-top:1px solid rgba(148,163,184,.25)}.drawer-action-btn{width:100%;min-height:48px;border-radius:14px;border:none;background:linear-gradient(135deg,#1e293b,#334155);color:#fff;font-size:14px;font-weight:800;cursor:pointer}.touch-controls{position:fixed;top:0;right:0;bottom:0;left:0;z-index:34;pointer-events:none;display:flex;align-items:flex-end;justify-content:space-between;padding:0 calc(16px + var(--safe-right)) calc(18px + var(--safe-bottom)) calc(16px + var(--safe-left));touch-action:none}.touch-controls.hidden{display:none}.touch-left-zone{display:flex;align-items:flex-end;pointer-events:none}.touch-stick-zone{width:144px;height:144px;display:flex;align-items:center;justify-content:center;pointer-events:auto;touch-action:none}.touch-stick-zone.hidden{display:none}.touch-stick-base{position:relative;width:124px;height:124px;border-radius:50%;background:radial-gradient(circle at center,#ffffff38,#0f172a5c);border:2px solid rgba(255,255,255,.52);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);box-shadow:0 10px 28px #0f172a42,inset 0 0 16px #ffffff29;display:flex;align-items:center;justify-content:center;transition:border-color .15s ease,background .15s ease}.touch-stick-base.active{border-color:#38bdf8f2;background:radial-gradient(circle at center,#38bdf83d,#0f172a70)}.touch-stick-arrows span{position:absolute;font-size:10px;color:#ffffff75;pointer-events:none}.touch-stick-arrows .sa-up{top:8px;left:50%;transform:translate(-50%)}.touch-stick-arrows .sa-down{bottom:8px;left:50%;transform:translate(-50%)}.touch-stick-arrows .sa-left{left:9px;top:50%;transform:translateY(-50%)}.touch-stick-arrows .sa-right{right:9px;top:50%;transform:translateY(-50%)}.touch-stick-knob{width:54px;height:54px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff,#dbeafe 70%,#93c5fd);border:2.5px solid rgba(255,255,255,.95);box-shadow:0 6px 16px #0f172a59;will-change:transform;pointer-events:none}.touch-dpad-25d{display:flex;align-items:center;width:162px;height:76px;border-radius:38px;background:#0f172a7a;border:2px solid rgba(255,255,255,.56);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:0 10px 28px #0f172a52;pointer-events:auto;touch-action:none;overflow:hidden}.touch-dpad-25d.hidden{display:none}.touch-dpad-half{flex:1;height:100%;display:flex;align-items:center;justify-content:center;font-size:26px;color:#ffffffe6;transition:background .08s ease,transform .08s ease;pointer-events:none}.touch-dpad-half.pressed{background:linear-gradient(135deg,#38bdf8d9,#2563ebd9);color:#fff;transform:scale(.95)}.touch-dpad-divider{width:2px;height:42px;background:#ffffff40;pointer-events:none}.touch-right-zone{position:relative;width:178px;height:166px;pointer-events:none;touch-action:none}.touch-action-btn{position:absolute;border-radius:50%;border:2.5px solid rgba(255,255,255,.82);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;pointer-events:auto;touch-action:none;cursor:pointer;box-shadow:0 8px 22px #0f172a57;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);transition:transform .08s ease,filter .1s ease,opacity .15s ease}.touch-action-btn.hidden{display:none}.touch-action-btn.pressed{transform:scale(.9);filter:brightness(1.16)}.touch-action-btn.is-locked{opacity:.34;filter:grayscale(.8)}.touch-btn-ico{font-size:24px;line-height:1}.touch-btn-lbl{font-size:9.5px;font-weight:900;letter-spacing:.02em;text-transform:uppercase;text-shadow:0 1px 3px rgba(0,0,0,.35)}.touch-jump{right:0;bottom:0;width:82px;height:82px;background:linear-gradient(145deg,#10b981eb,#059669eb)}.touch-jump .touch-btn-ico{font-size:28px}.touch-dash{right:92px;bottom:12px;width:62px;height:62px;background:linear-gradient(145deg,#0ea5e9eb,#2563ebeb)}.touch-pound{right:76px;bottom:84px;width:60px;height:60px;background:linear-gradient(145deg,#f97316eb,#e11d48eb)}.touch-interact{right:92px;bottom:16px;width:72px;height:72px;background:linear-gradient(145deg,#ec4899f0,#9333eaf0);animation:touchPulse 1.8s ease-in-out infinite}@keyframes touchPulse{0%,to{box-shadow:0 0 #ec48998c,0 8px 22px #0f172a57}50%{box-shadow:0 0 0 10px #ec489900,0 8px 22px #0f172a57}}.touch-swap{right:6px;bottom:94px;width:52px;height:52px;background:#0f172a9e}.touch-swap .touch-btn-ico{font-size:15px}.hud-bottom{position:fixed;bottom:calc(14px + var(--safe-bottom));left:50%;transform:translate(-50%);pointer-events:none;z-index:10}.hint-pill{display:flex;align-items:center;gap:8px;background:#ffffffd6;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:7px 14px;border-radius:999px;font-size:11px;font-weight:700;color:#475569;border:1px solid rgba(30,41,59,.08);box-shadow:0 4px 12px #0f172a0f;white-space:nowrap}body.touch-hud-active .desktop-only-hint,body.touch-hud-active .desktop-only-abilities,body.touch-hud-active .kbd-hint{display:none!important}.adventure-hud{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;display:flex;flex-direction:column;justify-content:space-between;padding:calc(10px + var(--safe-top)) calc(12px + var(--safe-right)) calc(14px + var(--safe-bottom)) calc(12px + var(--safe-left));z-index:30}.adventure-hud.hidden{display:none}.adv-header-wrap{display:flex;flex-direction:column;gap:8px}.adv-badge{font-size:13px;font-weight:900;max-width:min(320px,46vw);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.adv-sep{opacity:.45}.adv-wallet{font-size:13px;font-weight:900;white-space:nowrap}.adv-sub-strip{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;flex-wrap:wrap}.adv-tasks{display:flex;flex-wrap:wrap;gap:6px;pointer-events:none}.adv-task{background:#ffffffe0;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#0f172a;font-size:11.5px;font-weight:800;padding:5px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.85);box-shadow:0 4px 12px #0f172a1a}.adv-task.done{background:#dcfce7f0;color:#15803d;text-decoration:line-through}.adv-abilities{display:flex;flex-wrap:wrap;gap:6px;pointer-events:none}.adv-ability-pill{padding:5px 10px;border-radius:999px;font-size:11.5px;font-weight:800;background:#0f172ab8;color:#e2e8f0;border:1px solid rgba(148,163,184,.35);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.adv-ability-pill.unlocked{background:linear-gradient(135deg,#0ea5e9eb,#8b5cf6eb);color:#fff;border-color:#fef08abf}.adv-hint{align-self:center;background:#0f172ac7;color:#f8fafc;font-size:11.5px;font-weight:700;padding:7px 14px;border-radius:999px}.school-hud{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;display:flex;flex-direction:column;justify-content:space-between;padding:calc(10px + var(--safe-top)) calc(12px + var(--safe-right)) calc(14px + var(--safe-bottom)) calc(12px + var(--safe-left));z-index:30}.school-hud.hidden{display:none}.school-bottom-stack{display:flex;flex-direction:column;align-items:center;gap:10px}.npc-talk-prompt{pointer-events:auto;display:inline-flex;align-items:center;gap:8px;min-height:46px;background:#fffaf0f5;color:#3a2a1d;border:2px solid #a6855c;border-radius:999px;padding:9px 18px;font-size:13.5px;font-weight:800;cursor:pointer;box-shadow:0 8px 24px #2d1f1238}.npc-talk-prompt.hidden{display:none}.npc-talk-prompt kbd{background:#4e6951;color:#faf5eb;font-family:inherit;font-size:11px;font-weight:800;padding:2px 7px;border-radius:6px}body.touch-hud-active .npc-talk-prompt,body.touch-hud-active .campus-action-prompt{margin-bottom:12px}.npc-dialog{pointer-events:auto;width:min(560px,calc(100vw - 24px - var(--safe-left) - var(--safe-right)));background:#fffbf4fa;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);color:#2f2217;border:2px solid #a6855c;border-radius:22px;padding:14px 16px;box-shadow:0 18px 44px #2a1d1157;display:flex;flex-direction:column;gap:10px;z-index:42}.npc-dialog.hidden{display:none}.npc-dialog-header{display:flex;align-items:center;gap:11px}.npc-dialog-icon{font-size:26px;width:44px;height:44px;border-radius:13px;background:#f3e8d4;border:1px solid #d1b894;display:flex;align-items:center;justify-content:center;flex-shrink:0}.npc-dialog-meta{flex:1;min-width:0}.npc-dialog-name{font-size:16px;font-weight:900;color:#2d1f14}.npc-dialog-role{font-size:12px;font-weight:700;color:#6b533b}.npc-dialog-x{width:40px;height:40px;border-radius:12px;border:1px solid rgba(158,125,88,.35);background:#fffc;color:#5b4531;font-size:16px;font-weight:900;cursor:pointer}.npc-dialog-line{font-size:14.5px;line-height:1.48;color:#3a2b1e;background:#ffffffc7;border-radius:13px;padding:10px 13px;border:1px solid rgba(158,125,88,.22)}.npc-dialog-reward{font-size:13px;font-weight:800;color:#166534;background:#dcfce7e6;border:1px solid #86efac;border-radius:11px;padding:8px 12px}.npc-dialog-reward.hidden{display:none}.npc-dialog-actions{display:flex;flex-wrap:wrap;gap:8px}.npc-dialog-actions .sandbox-btn{flex:1 1 140px;min-height:46px;font-size:13.5px}.sandbox-prompt{position:fixed;left:50%;bottom:calc(96px + var(--safe-bottom));transform:translate(-50%);background:#1e1636eb;color:#f8fafc;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border:1.5px solid rgba(192,132,252,.55);box-shadow:0 14px 36px #581c876b;border-radius:18px;padding:14px 16px;width:min(360px,calc(100vw - 28px));text-align:center;pointer-events:auto;transition:opacity .22s ease,transform .22s ease;z-index:40}.sandbox-prompt.hidden{opacity:0;pointer-events:none;transform:translate(-50%,10px)}.sandbox-prompt-title{font-size:14px;font-weight:900;color:#e9d5ff;margin-bottom:5px}.sandbox-prompt-text{font-size:13px;line-height:1.4;color:#f1f5f9;margin-bottom:12px}.sandbox-prompt-actions{display:flex;justify-content:center;gap:8px}.sandbox-btn{min-height:44px;border:1px solid rgba(255,255,255,.22);background:#ffffff24;color:#f8fafc;font-size:13px;font-weight:800;padding:8px 14px;border-radius:12px;cursor:pointer;transition:transform .12s ease,background .15s ease}.sandbox-btn:active{transform:scale(.96)}.sandbox-btn.primary{background:linear-gradient(135deg,#2563eb,#0ea5e9);border-color:transparent;color:#fff}.sandbox-btn.quest{background:linear-gradient(135deg,#f59e0b,#ea580c);color:#fff;border:1px solid rgba(254,240,138,.85);box-shadow:0 6px 18px #ea580c59}.sandbox-btn.quest.hidden{display:none}.quest-toast{position:fixed;top:calc(70px + var(--safe-top));left:50%;transform:translate(-50%);max-width:min(440px,calc(100vw - 24px));background:#166534f5;color:#fbf7ee;border:2px solid #facc15;border-radius:999px;padding:10px 18px;font-size:13px;font-weight:900;box-shadow:0 12px 30px #0f172a57;z-index:70;pointer-events:none;text-align:center}.quest-toast.hidden{display:none}.campus-action-prompt{position:fixed;left:50%;bottom:calc(82px + var(--safe-bottom));transform:translate(-50%);z-index:28;display:inline-flex;align-items:center;gap:8px;min-height:46px;padding:10px 18px;border-radius:999px;border:2px solid rgba(255,224,240,.92);background:linear-gradient(135deg,#d83b8af0,#ec4899eb);color:#fff;font-size:13.5px;font-weight:800;cursor:pointer;box-shadow:0 10px 26px #d83b8a61}.campus-action-prompt.hidden{display:none}.campus-action-prompt kbd{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 6px;border-radius:7px;background:#ffffff3d;border:1px solid rgba(255,255,255,.55);font-family:inherit;font-size:12px;font-weight:900}.scene-transition{position:fixed;top:0;right:0;bottom:0;left:0;background:radial-gradient(circle at center,#0f172af0,#020617fc);display:flex;align-items:center;justify-content:center;opacity:0;pointer-events:none;transition:opacity .28s ease;z-index:100}.scene-transition.active{opacity:1;pointer-events:auto}.scene-transition-label{color:#f8fafc;font-size:17px;font-weight:800;padding:14px 24px;border-radius:16px;background:#ffffff14;border:1px solid rgba(255,255,255,.16);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);max-width:calc(100vw - 32px);text-align:center}.start-menu-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:90;display:flex;align-items:center;justify-content:center;padding:calc(14px + var(--safe-top)) calc(14px + var(--safe-right)) calc(14px + var(--safe-bottom)) calc(14px + var(--safe-left));background:radial-gradient(circle at 50% 35%,#fff9eb3d,#1e3a5f6b);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);opacity:1;transition:opacity .3s ease,visibility .3s ease}.start-menu-overlay.hidden{opacity:0;visibility:hidden;pointer-events:none}.start-menu-card{position:relative;width:min(468px,100%);max-height:calc(100dvh - 28px - var(--safe-top) - var(--safe-bottom));overflow-y:auto;-webkit-overflow-scrolling:touch;padding:24px 22px 18px;border-radius:28px;background:linear-gradient(165deg,#fffdf6e0,#f6fbffd6 55%,#fff6e8e0);backdrop-filter:blur(18px) saturate(140%);-webkit-backdrop-filter:blur(18px) saturate(140%);border:2px solid rgba(255,255,255,.82);box-shadow:0 24px 64px #0f172a47;color:#1e293b}.start-menu-sparkles{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;overflow:hidden;border-radius:28px}.start-menu-sparkles .sparkle{position:absolute;font-size:18px;opacity:.72;animation:menuFloat 4.2s ease-in-out infinite}.start-menu-sparkles .s1{top:16px;left:20px}.start-menu-sparkles .s2{top:20px;right:24px;animation-delay:.9s}.start-menu-sparkles .s3{bottom:48px;left:16px;font-size:15px;animation-delay:1.7s}.start-menu-sparkles .s4{bottom:50px;right:20px;font-size:15px;animation-delay:2.4s}@keyframes menuFloat{0%,to{transform:translateY(0) rotate(-4deg)}50%{transform:translateY(-6px) rotate(6deg)}}.start-menu-header{text-align:center;margin-bottom:16px}.start-menu-emblem{display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:26px;padding:5px 16px;border-radius:999px;background:#ffffffc7;border:1.5px solid rgba(255,255,255,.92);margin-bottom:8px;animation:menuFloat 3.6s ease-in-out infinite}.start-menu-eyebrow{font-size:10.5px;font-weight:800;letter-spacing:2px;color:#d97706}.start-menu-title{margin:0;font-size:32px;line-height:1.1;font-weight:900;background:linear-gradient(135deg,#1d4ed8,#7c3aed 48%,#ea580c);-webkit-background-clip:text;background-clip:text;color:transparent}.start-menu-subtitle{margin:5px 0 10px;font-size:13px;font-weight:500;color:#475569}.start-menu-class-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 14px;border-radius:999px;font-size:12px;font-weight:800;color:#1e293b;background:#ffffffd1;border:1.5px solid var(--class-accent, #e67e22)}.start-menu-body{display:flex;flex-direction:column;gap:10px}.start-menu-body.hidden{display:none}.start-menu-btn{display:flex;align-items:center;gap:14px;width:100%;min-height:56px;text-align:left;padding:12px 16px;border-radius:18px;border:2px solid rgba(255,255,255,.85);background:#ffffffc7;color:#1e293b;cursor:pointer;box-shadow:0 6px 18px #0f172a17;transition:transform .14s ease,box-shadow .14s ease}.start-menu-btn:active:not(:disabled){transform:scale(.98)}.start-menu-btn.btn-continue.is-primary{background:linear-gradient(135deg,#10b981,#059669);border-color:#a7f3d0e6;color:#fff}.start-menu-btn.btn-continue.is-disabled{opacity:.56;cursor:not-allowed}.start-menu-btn.btn-new.is-primary{background:linear-gradient(135deg,#f59e0b,#ea580c);border-color:#fef08aeb;color:#fff}.start-menu-btn.btn-new:not(.is-primary){background:linear-gradient(135deg,#fff7e6e6,#fef0d4e0);border-color:#fbbf248c}.start-menu-btn.btn-classes{background:linear-gradient(135deg,#e8f4ffe6,#e0eeffdb);border-color:#60a5fa8c}.start-menu-btn.btn-back{justify-content:center;min-height:48px}.start-btn-icon{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:13px;font-size:19px;flex-shrink:0;background:#ffffff52}.start-btn-text{display:flex;flex-direction:column;gap:2px}.start-btn-title{font-size:15.5px;font-weight:800}.start-btn-sub{font-size:12px;opacity:.85;font-weight:500}.start-menu-confirm{padding:12px 14px;border-radius:16px;background:#fff1f2f0;border:1.5px solid rgba(244,63,94,.45);color:#881337;font-size:12.5px}.start-menu-confirm.hidden{display:none}.start-confirm-actions{display:flex;gap:8px;margin-top:10px}.start-confirm-btn{flex:1;min-height:44px;border-radius:11px;border:1px solid rgba(15,23,42,.14);background:#fff;color:#334155;font-size:13px;font-weight:800;cursor:pointer}.start-confirm-btn.danger{background:linear-gradient(135deg,#f97316,#e11d48);border-color:transparent;color:#fff}.start-class-intro{text-align:center;font-size:13.5px;font-weight:700;color:#334155}.start-class-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.start-class-card{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:12px;border-radius:16px;border:2px solid rgba(255,255,255,.88);background:#ffffffc7;color:#1e293b;text-align:left;cursor:pointer}.start-class-card.selected{border-color:var(--class-accent, #3b82f6);background:#fff}.start-class-top{width:100%;display:flex;align-items:center;justify-content:space-between}.start-class-mascot{font-size:24px}.start-class-check{font-size:10.5px;font-weight:800;padding:2px 8px;border-radius:999px;background:#0f172a14}.start-class-card.selected .start-class-check{background:var(--class-accent, #3b82f6);color:#fff}.start-class-name{font-size:14px;font-weight:800}.start-class-desc{font-size:11.5px;line-height:1.35;color:#475569}.start-menu-footer{margin-top:14px;padding-top:10px;border-top:1px dashed rgba(100,116,139,.25);text-align:center;font-size:11px;font-weight:700;color:#64748b}.wardrobe-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:65;display:flex;align-items:center;justify-content:center;padding:calc(12px + var(--safe-top)) calc(12px + var(--safe-right)) calc(12px + var(--safe-bottom)) calc(12px + var(--safe-left));background:#0f172a9e;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.wardrobe-overlay.hidden{display:none}.wardrobe-modal{width:min(920px,100%);max-height:calc(100dvh - 24px - var(--safe-top) - var(--safe-bottom));display:flex;flex-direction:column;border-radius:24px;background:linear-gradient(160deg,#fffcf5fa,#f4f8fff7);border:2px solid rgba(255,255,255,.92);box-shadow:0 24px 60px #0f172a61;color:#1e293b;overflow:hidden}.wardrobe-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px 10px;border-bottom:1px solid rgba(148,163,184,.25)}.wardrobe-title{margin:0;font-size:18px;font-weight:900;color:#0f172a}.wardrobe-stats{margin-top:3px;font-size:12px;font-weight:700;color:#475569}.wardrobe-tabs{display:flex;gap:8px;padding:10px 14px;background:#f1f5f9d9;border-bottom:1px solid rgba(148,163,184,.2);overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}.wardrobe-tabs::-webkit-scrollbar{display:none}.wardrobe-tab{flex:0 0 auto;min-height:42px;padding:8px 14px;border-radius:13px;border:1px solid rgba(148,163,184,.35);background:#fff;color:#334155;font-weight:800;font-size:13px;cursor:pointer;white-space:nowrap}.wardrobe-tab.active{background:linear-gradient(135deg,#0ea5e9,#6366f1);color:#fff;border-color:transparent}.wardrobe-body{padding:14px 16px 20px;overflow-y:auto;-webkit-overflow-scrolling:touch;flex:1}.wardrobe-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:12px}.wardrobe-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:6px;padding:13px;border-radius:16px;border:2px solid rgba(203,213,225,.72);background:#fff;color:#1e293b}.wardrobe-card.clickable{cursor:pointer}.wardrobe-card.clickable:active{transform:scale(.97)}.wardrobe-card.equipped{border-color:#10b981;background:linear-gradient(160deg,#ecfdf5,#fff)}.wardrobe-card.locked{opacity:.68;background:#f1f5f9}.wardrobe-card-icon{font-size:28px;line-height:1}.wardrobe-card-title{font-size:13.5px;font-weight:900;color:#0f172a}.wardrobe-card-desc{font-size:11.5px;line-height:1.38;color:#475569;flex:1}.wardrobe-card-meta{font-size:11px;font-weight:700;color:#64748b}.wardrobe-card-badge{margin-top:4px;padding:4px 9px;border-radius:999px;font-size:11px;font-weight:800;background:#e2e8f0;color:#334155}.wardrobe-card-badge.ok{background:#10b981;color:#fff}.wardrobe-roadmap{display:flex;flex-direction:column;gap:12px}.roadmap-chapter{margin-top:6px;font-size:13.5px;font-weight:900;color:#1d4ed8}.roadmap-list{display:flex;flex-direction:column;gap:8px}.roadmap-row{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;background:#f8fafc;border:1px solid rgba(203,213,225,.72)}.roadmap-row.current{background:linear-gradient(135deg,#eff6ff,#fefce8);border-color:#3b82f6}.roadmap-row.done{background:#f0fdf4;border-color:#22c55e73}.roadmap-row.master{border-left:4px solid #f97316}.roadmap-num{min-width:52px;font-size:11.5px;font-weight:900;color:#334155}.roadmap-main{flex:1;min-width:0}.roadmap-title{font-size:13px;font-weight:800;color:#0f172a}.roadmap-sub{font-size:11.5px;color:#475569;margin-top:2px}.roadmap-replay-btn{min-height:38px;padding:6px 12px;border-radius:999px;border:none;background:#0ea5e9;color:#fff;font-size:12px;font-weight:800;cursor:pointer;flex-shrink:0}.hud-pill,.hud-dock,.quest-tracker,.adv-task,.touch-action-btn{-webkit-backdrop-filter:none;backdrop-filter:none}.quest-tracker{background:#fff7df}.dock-label,.adv-task{font-size:14px}.hud-class-badge{font-size:12px}.hud-stars-badge{font-size:13px;color:#834109}.adv-wallet{font-variant-numeric:tabular-nums}button:focus-visible{outline:3px solid #124c74;outline-offset:2px;box-shadow:0 0 0 3px #fff}.touch-jump{background:linear-gradient(155deg,#087855,#155648)}.touch-dash{background:linear-gradient(155deg,#126daa,#284a98)}.touch-pound{background:linear-gradient(155deg,#b94b1e,#962e49)}.touch-interact{background:linear-gradient(155deg,#ae3780,#713699)}.touch-btn-lbl{font-size:11px;letter-spacing:0;text-transform:none}@media(prefers-reduced-motion:no-preference){.dock-icon,.touch-btn-ico,.start-btn-icon{transition:transform .11s ease-out}.dock-btn:active .dock-icon,.touch-action-btn.pressed .touch-btn-ico,.start-menu-btn:active .start-btn-icon{transform:scale(1.12,.89)}.quest-toast:not(.hidden){animation:toast-arrive .16s ease-out}@keyframes toast-arrive{0%{opacity:0}to{opacity:1}}}@media(prefers-reduced-motion:reduce){.touch-interact{animation:none}}@media(max-width:720px){.dock-btn .dock-label{display:none}.dock-btn{padding:0 10px}.hud-context-pill{max-width:44vw}.adv-badge{max-width:42vw;font-size:12px}.adv-wallet{font-size:12px;padding:6px 9px}.wardrobe-overlay{align-items:flex-end;padding:calc(10px + var(--safe-top)) 0 0 0}.wardrobe-modal{border-radius:24px 24px 0 0;max-height:calc(92dvh - var(--safe-top));padding-bottom:var(--safe-bottom)}}@media(max-height:460px){.touch-stick-zone{width:124px;height:124px}.touch-stick-base{width:108px;height:108px}.touch-stick-knob{width:46px;height:46px}.touch-dpad-25d{width:146px;height:64px}.touch-right-zone{width:162px;height:146px}.touch-jump{width:72px;height:72px}.touch-dash{width:56px;height:56px;right:82px;bottom:8px}.touch-pound{width:54px;height:54px;right:68px;bottom:72px}.touch-interact{width:64px;height:64px;right:82px;bottom:10px}.touch-swap{width:46px;height:46px;bottom:82px}.quest-tracker{top:calc(60px + var(--safe-top));width:240px}.start-menu-card{padding:14px 18px}.start-menu-emblem{display:none}.start-menu-title{font-size:24px}}.library-modal{max-width:1020px;width:min(96vw,1020px);max-height:min(92dvh,840px)}.knowledge-gate-modal{max-width:680px;width:min(94vw,680px);max-height:min(90dvh,720px)}.learn-grade-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 18px 4px}.learn-grade-bar-label{font-size:12px;font-weight:800;color:#cbd5e1;text-transform:uppercase;letter-spacing:.04em}.learn-grade-pill{border:1px solid rgba(255,255,255,.22);background:#ffffff14;color:#f1f5f9;font-size:13px;font-weight:800;padding:6px 12px;border-radius:999px;cursor:pointer;transition:transform .12s ease,background .15s ease,border-color .15s ease}.learn-grade-pill.is-active{background:linear-gradient(135deg,#2563eb,#0ea5e9);border-color:#7dd3fc;color:#fff}.learn-grade-pill.is-current:not(.is-active){border-color:#fbbf24bf}.learn-promo-banner{margin:6px 18px 2px;padding:10px 14px;border-radius:14px;background:linear-gradient(135deg,#10b98140,#0ea5e938);border:1px solid rgba(52,211,153,.55);display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}.learn-promo-banner.hidden{display:none}.learn-promo-text{font-size:13px;font-weight:700;color:#ecfdf5;flex:1 1 280px}.learn-promo-btn{border:none;border-radius:12px;padding:9px 14px;font-size:13px;font-weight:900;background:linear-gradient(135deg,#10b981,#059669);color:#fff;cursor:pointer;box-shadow:0 4px 12px #10b98159}.learn-chip-row{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}.learn-chip{border:1px solid rgba(255,255,255,.18);background:#ffffff14;color:#e2e8f0;font-size:12px;font-weight:800;padding:6px 10px;border-radius:999px;cursor:pointer}.learn-chip.is-active{background:linear-gradient(135deg,#f59e0b,#ea580c);border-color:#fde68a;color:#fff}.learn-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:12px}.learn-select,.learn-search-input,.learn-text-input,.learn-gap-select{background:#0f172ab8;color:#f8fafc;border:1px solid rgba(255,255,255,.24);border-radius:10px;padding:8px 11px;font-size:13px;font-weight:700}.learn-search-input{flex:1 1 170px}.learn-toggle-btn,.learn-secondary-btn{border:1px solid rgba(255,255,255,.24);background:#ffffff1a;color:#f8fafc;font-size:13px;font-weight:800;padding:8px 13px;border-radius:11px;cursor:pointer}.learn-toggle-btn.is-active{background:#38bdf840;border-color:#38bdf8}.learn-primary-btn{border:none;background:linear-gradient(135deg,#2563eb,#0ea5e9);color:#fff;font-size:13px;font-weight:900;padding:9px 15px;border-radius:11px;cursor:pointer;box-shadow:0 4px 14px #2563eb59}.learn-primary-btn:disabled{opacity:.45;cursor:not-allowed}.learn-promote-cta,.learn-gate-open-btn{background:linear-gradient(135deg,#10b981,#059669);box-shadow:0 6px 18px #10b98166}.learn-split-layout{display:grid;grid-template-columns:minmax(220px,280px) minmax(0,1fr);gap:14px;align-items:start}.learn-list-col{display:flex;flex-direction:column;gap:6px;max-height:460px;overflow-y:auto;padding-right:4px}.learn-list-count,.learn-list-more,.learn-sub-note{font-size:12px;font-weight:700;color:#94a3b8}.learn-list-item{text-align:left;border:1px solid rgba(255,255,255,.14);background:#0f172a80;color:#f1f5f9;border-radius:11px;padding:8px 10px;cursor:pointer}.learn-list-item.is-selected{border-color:#38bdf8;background:#0ea5e938}.learn-list-item.is-done{border-color:#34d39973}.learn-list-item-top{display:flex;justify-content:space-between;gap:6px;font-size:12px;font-weight:800}.learn-list-item-sub{margin-top:3px;font-size:11.5px;color:#cbd5e1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.learn-stage-col{display:flex;flex-direction:column;gap:10px}.learn-widget-card{background:#0f172ab8;border:1px solid rgba(255,255,255,.16);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:12px}.learn-task-header{display:flex;flex-wrap:wrap;gap:6px}.learn-badge{font-size:11.5px;font-weight:800;padding:3px 9px;border-radius:999px;background:#ffffff1a;border:1px solid rgba(255,255,255,.2);color:#f8fafc}.learn-badge-diff{color:#fde047}.learn-task-prompt{font-size:16px;font-weight:800;line-height:1.4;color:#fff}.learn-question-box{background:#ffffff14;border-radius:12px;padding:12px 14px;font-size:15px;font-weight:700;line-height:1.45;color:#f8fafc}.learn-choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:9px}.learn-choice-btn{text-align:left;border:1px solid rgba(255,255,255,.22);background:#ffffff17;color:#f8fafc;border-radius:12px;padding:12px 14px;font-size:14px;font-weight:700;line-height:1.35;cursor:pointer;transition:transform .1s ease,background .15s ease,border-color .15s ease}.learn-choice-btn:hover{background:#38bdf833;border-color:#7dd3fc}.learn-choice-btn.is-correct,.learn-token-btn.is-correct{background:#10b98157;border-color:#34d399;color:#ecfdf5}.learn-choice-btn.is-wrong,.learn-token-btn.is-wrong{background:#ef444452;border-color:#f87171;color:#fef2f2}.learn-blackbox-flow{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px;margin-bottom:10px}.learn-blackbox-card{background:#ffffff1a;border:1px solid rgba(255,255,255,.22);border-radius:12px;padding:10px 14px;min-width:120px;text-align:center}.learn-blackbox-cap{font-size:11px;font-weight:800;text-transform:uppercase;color:#94a3b8}.learn-blackbox-val{font-size:16px;font-weight:900;color:#fff;margin-top:2px}.learn-blackbox-mid{font-size:13px;font-weight:900;color:#fde047;padding:8px 12px;border-radius:999px;background:#eab30833;border:1px solid rgba(250,204,21,.5)}.learn-token-row{display:flex;flex-wrap:wrap;gap:7px;padding:12px;border-radius:12px;background:#ffffff0f;margin-bottom:8px}.learn-token-btn{border:1px solid rgba(255,255,255,.24);background:#ffffff1c;color:#fff;border-radius:10px;padding:8px 11px;font-size:15px;font-weight:800;cursor:pointer}.learn-token-btn.is-selected{border-color:#fbbf24;background:#f59e0b52}.learn-stake-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0 10px}.learn-stake-label{font-size:12.5px;font-weight:800;color:#cbd5e1}.learn-stake-btn{border:1px solid rgba(255,255,255,.24);background:#ffffff14;color:#f8fafc;border-radius:999px;padding:5px 11px;font-size:12px;font-weight:800;cursor:pointer}.learn-stake-btn.is-active{background:linear-gradient(135deg,#f59e0b,#d97706);border-color:#fde68a}.learn-swipe-card{background:linear-gradient(135deg,#3b82f633,#a855f733);border:1px solid rgba(196,181,253,.45);border-radius:16px;padding:20px 16px;font-size:16px;font-weight:800;text-align:center;color:#fff;margin:8px 0}.learn-swipe-mini{min-height:20px;font-size:13px;font-weight:800;text-align:center;margin-bottom:8px}.learn-swipe-mini.is-ok{color:#6ee7b7}.learn-swipe-mini.is-err{color:#fca5a5}.learn-swipe-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.learn-swipe-btn{border:1px solid rgba(255,255,255,.26);border-radius:13px;padding:12px;font-size:14px;font-weight:900;color:#fff;cursor:pointer}.learn-swipe-left{background:#ef444447}.learn-swipe-right{background:#10b98147}.learn-seq-chosen,.learn-seq-pool{display:flex;flex-direction:column;gap:7px;padding:10px;border-radius:12px;background:#ffffff0f;margin-bottom:8px}.learn-seq-placeholder{font-size:13px;color:#94a3b8;font-style:italic}.learn-seq-chip{text-align:left;border:1px solid rgba(255,255,255,.22);background:#ffffff1c;color:#fff;border-radius:10px;padding:9px 12px;font-size:13.5px;font-weight:700;cursor:pointer}.learn-seq-chip.is-placed{background:#0ea5e942;border-color:#38bdf8}.learn-chameleon-text{font-size:16px;line-height:2;color:#f8fafc;background:#ffffff12;padding:14px;border-radius:12px;margin-bottom:10px}.learn-gap-select{margin:0 4px;vertical-align:middle}.learn-scenario-feedback{background:#38bdf82e;border:1px solid rgba(125,211,252,.45);border-radius:11px;padding:9px 12px;font-size:13px;font-weight:700;color:#e0f2fe;margin-bottom:10px}.learn-clues-list{margin:0 0 10px 20px;padding:0;display:flex;flex-direction:column;gap:6px;color:#f8fafc;font-size:14px;font-weight:700}.learn-clues-form{display:flex;gap:8px;margin-top:10px}.learn-clues-form .learn-text-input{flex:1}.learn-task-feedback{border-radius:12px;padding:11px 14px}.learn-task-feedback.hidden{display:none}.learn-task-feedback.is-correct{background:#10b9813d;border:1px solid #34d399;color:#ecfdf5}.learn-task-feedback.is-wrong{background:#f59e0b3d;border:1px solid #fbbf24;color:#fef3c7}.learn-feedback-title{font-size:14px;font-weight:900;margin-bottom:3px}.learn-feedback-text{font-size:13px;line-height:1.4}.learn-worksheet-host{background:#fff;color:#1e293b;border-radius:16px;padding:16px;box-shadow:0 8px 24px #0f172a59}.learn-exam-hero{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px;border-radius:16px;background:linear-gradient(135deg,#2563eb47,#8b5cf640);border:1px solid rgba(147,197,253,.45);margin-bottom:16px}.learn-exam-hero.is-passed{background:linear-gradient(135deg,#10b98147,#0ea5e93d);border-color:#34d39999}.learn-exam-hero-kicker{font-size:12px;font-weight:800;color:#bfdbfe}.learn-exam-hero-title{margin:4px 0;font-size:19px;font-weight:900;color:#fff}.learn-exam-hero-desc{margin:0;font-size:13px;color:#e2e8f0;max-width:560px}.learn-section{margin-top:14px}.learn-section-title{margin:0 0 10px;font-size:15px;font-weight:900;color:#f8fafc}.learn-cert-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}.learn-grade-cert-card{background:#0f172a9e;border:1px solid rgba(255,255,255,.16);border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:6px}.learn-grade-cert-card.is-passed{border-color:#34d39999;background:#064e3b52}.learn-grade-cert-card.is-current{box-shadow:0 0 0 2px #fbbf24a6}.learn-grade-cert-head{font-size:15px;font-weight:900;color:#fff}.learn-grade-cert-sub,.learn-grade-cert-status,.learn-locked-note{font-size:12px;color:#cbd5e1}.learn-current-pill{display:inline-block;align-self:flex-start;font-size:11.5px;font-weight:900;padding:4px 9px;border-radius:999px;background:#fbbf2440;color:#fde68a}.learn-subject-exam-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:10px}.learn-subj-exam-card{background:#0f172a9e;border:1px solid rgba(255,255,255,.16);border-top:4px solid #38bdf8;border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:8px}.learn-subj-exam-card.is-passed{background:#064e3b4d}.learn-subj-exam-name{font-size:14px;font-weight:900;color:#fff}.learn-subj-exam-meta{font-size:12px;color:#cbd5e1}.learn-exam-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.learn-exam-title{font-size:15px;font-weight:900;color:#fff}.learn-exam-progress{font-size:13px;font-weight:800;color:#93c5fd}.learn-progress-track{height:8px;border-radius:999px;background:#ffffff1f;overflow:hidden;margin-bottom:12px}.learn-progress-fill{height:100%;background:linear-gradient(90deg,#38bdf8,#34d399);transition:width .25s ease}.learn-exam-next-row,.learn-gate-actions,.learn-stage-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:10px}.learn-exam-next-row.hidden{display:none}.learn-gate-actions{padding:0 18px 16px}.learn-cert-card{text-align:center;background:#0f172ab8;border:2px solid rgba(52,211,153,.65);border-radius:20px;padding:24px 18px;display:flex;flex-direction:column;align-items:center;gap:10px}.learn-cert-card.is-retry{border-color:#fbbf24a6}.learn-cert-seal{font-size:46px}.learn-cert-title{margin:0;font-size:22px;font-weight:900;color:#fff}.learn-cert-sub{font-size:14px;font-weight:800;color:#cbd5e1}.learn-cert-score{font-size:16px;font-weight:900;color:#fde047}.learn-cert-reward{font-size:15px;font-weight:900;color:#6ee7b7;background:#10b98133;padding:6px 14px;border-radius:999px}.learn-cert-promo-note{max-width:520px;font-size:13.5px;line-height:1.45;color:#e0f2fe}.learn-cert-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:6px}.learn-loading,.learn-empty,.learn-error{padding:24px;text-align:center;font-size:14px;font-weight:800;color:#cbd5e1}.learn-error{color:#fca5a5}@media(max-width:760px){.learn-split-layout{grid-template-columns:1fr}.learn-list-col{max-height:180px}}.library-body,.knowledge-gate-body{background:#1e293b;color:#f1f5f9}.learn-grade-bar-label{color:#475569}.learn-grade-pill{background:#fff;border-color:#cbd5e1;color:#1e293b;min-height:40px;font-size:15px}.learn-promo-text{color:#064e3b}.learn-gate-actions{padding-top:10px;margin-top:0}.learn-gate-actions .learn-secondary-btn{background:#fff;border-color:#cbd5e1;color:#1e293b}.learn-prompt-row{display:flex;align-items:flex-start;gap:12px}.learn-prompt-row .learn-task-prompt{flex:1}.learn-task-prompt{font-size:20px}.learn-speak-btn{flex:0 0 auto;width:52px;height:52px;border-radius:50%;border:2px solid #fde68a;background:linear-gradient(135deg,#f59e0b,#ea580c);color:#fff;font-size:24px;line-height:1;cursor:pointer}.learn-speak-btn:active{transform:scale(.94)}.learn-question-box{font-size:18px}.learn-choice-btn{font-size:17px;min-height:56px}.learn-token-btn{font-size:18px;min-height:48px;padding:10px 14px}.learn-swipe-card{font-size:20px}.learn-swipe-btn{font-size:17px;min-height:56px}.learn-seq-chip{font-size:16px;min-height:48px}.learn-chameleon-text{font-size:18px;line-height:2.4}.learn-gap-select,.learn-text-input{font-size:17px;min-height:48px}.learn-stake-btn{font-size:15px;min-height:44px;padding:8px 14px}.learn-stake-label,.learn-sub-note,.learn-swipe-mini{font-size:15px}.learn-clue-item{font-size:17px}.learn-scenario-feedback{font-size:16px}.learn-feedback-title{font-size:18px}.learn-feedback-text{font-size:16px}.learn-widget-card .learn-primary-btn,.learn-stage-actions .learn-secondary-btn,.learn-gate-actions button,.learn-exam-next-row .learn-primary-btn{font-size:16px;min-height:48px;padding:10px 18px}.learn-simple-subjects{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.learn-simple-subject{border:2px solid rgba(255,255,255,.28);background:#ffffff1a;color:#f8fafc;font-size:16px;font-weight:800;min-height:48px;padding:8px 14px;border-radius:999px;cursor:pointer}.learn-simple-subject.is-active{background:linear-gradient(135deg,#f59e0b,#ea580c);border-color:#fde68a;color:#fff}.learn-simple-next-row{display:flex;justify-content:center;margin-top:14px}.learn-simple-next{font-size:20px;min-height:60px;padding:12px 40px;border-radius:999px}.learn-simple-next.is-ready{background:linear-gradient(135deg,#10b981,#059669);box-shadow:0 0 0 4px #34d39959}.learn-simple-more{display:block;margin:22px auto 0;border:0;background:none;color:#94a3b8;font-size:13px;font-weight:700;text-decoration:underline;cursor:pointer;min-height:44px}@media(max-width:760px){.learn-simple-subjects{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:4px}.learn-simple-subject{flex:0 0 auto}.learn-task-prompt{font-size:18px}}.learn-swipe-card{touch-action:pan-y;cursor:grab;user-select:none;-webkit-user-select:none;transition:transform .15s ease,box-shadow .15s ease}.learn-swipe-card.is-dragging{transition:none;cursor:grabbing}.learn-swipe-card.is-left{box-shadow:-8px 0 #f87171}.learn-swipe-card.is-right{box-shadow:8px 0 #34d399}.npc-dialog-mute{margin-left:auto;margin-right:6px}.npc-dialog-mute[aria-pressed=true]{opacity:.6}.intro-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;pointer-events:none}.intro-overlay.hidden{display:none}.intro-fade{position:absolute;top:0;right:0;bottom:0;left:0;background:#0b1020;opacity:0}.intro-fade.run{animation:intro-fade-in .7s ease-out}@keyframes intro-fade-in{0%{opacity:1}to{opacity:0}}.intro-caption{position:absolute;left:50%;bottom:max(28px,env(safe-area-inset-bottom));transform:translate(-50%);width:min(880px,calc(100% - 32px));padding:16px 22px;border-radius:18px;background:#0f172ad1;color:#fff;font-size:clamp(16px,2.4vw,24px);line-height:1.45;text-align:center;box-shadow:0 10px 30px #00000059}.intro-caption:empty{display:none}.intro-skip{position:absolute;top:max(16px,env(safe-area-inset-top));right:16px;min-height:48px;padding:10px 18px;border:0;border-radius:999px;background:#ffffffeb;color:#1e293b;font:inherit;font-weight:700;font-size:16px;cursor:pointer;pointer-events:auto}
