:root{color-scheme:dark;font-family:system-ui,-apple-system,Segoe UI,Roboto,Noto Sans TC,sans-serif}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body,#root{margin:0;padding:0;width:100%;height:100%;overflow:hidden;background:#090d16;color:#f8fafc;user-select:none;-webkit-user-select:none}.app-root,.battle-viewport,.canvas-host{position:relative;width:100%;height:100%;touch-action:none}.lobby-screen{width:100%;height:100%;overflow-y:auto;padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));display:flex;justify-content:center;align-items:flex-start;background:radial-gradient(circle at top,#1e293b,#090d16 68%)}.lobby-card{width:100%;max-width:780px;background:#0f172ae6;border:1px solid rgba(148,163,184,.22);border-radius:16px;padding:20px;display:flex;flex-direction:column;gap:16px}.lobby-header h1{margin:6px 0 4px;font-size:1.35rem}.lobby-header p{margin:0;color:#94a3b8;font-size:.9rem}.lv-warning-banner{padding:10px 12px;border-radius:10px;background:#ef444429;border:1px solid rgba(248,113,113,.5);color:#fecaca;font-size:.85rem}.mock-pill{display:inline-block;font-size:.72rem;font-weight:700;padding:2px 8px;border-radius:999px;background:#f59e0b33;color:#fbbf24;border:1px solid rgba(251,191,36,.4)}.section-title{display:block;font-size:.85rem;color:#cbd5e1;margin-bottom:8px;font-weight:600}.boss-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}.boss-card{text-align:left;padding:12px;border-radius:12px;background:#1e293bb3;border:2px solid transparent;color:#f8fafc;cursor:pointer;display:flex;flex-direction:column;gap:4px}.boss-card.active{border-color:var(--accent, #38bdf8);background:#1e293b}.boss-card span{font-size:.78rem;color:#94a3b8}.boss-card small{font-size:.75rem;color:#cbd5e1}.tier-row{display:flex;gap:8px;flex-wrap:wrap}.tier-btn{min-width:48px;min-height:44px;border-radius:10px;border:1px solid rgba(148,163,184,.3);background:#1e293b;color:#e2e8f0;font-weight:700;cursor:pointer}.tier-btn.active{background:#38bdf8;color:#090d16;border-color:#7dd3fc}.skill-select-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px}.skill-select-row select{width:100%;min-height:42px;border-radius:8px;background:#1e293b;color:#f8fafc;border:1px solid rgba(148,163,184,.3);padding:6px 10px}.start-btn{flex:1;min-height:48px;border:none;border-radius:12px;background:linear-gradient(135deg,#0284c7,#6366f1);color:#fff;font-size:1rem;font-weight:700;cursor:pointer}.lobby-footer-actions{display:flex;gap:10px;align-items:stretch}.skill-unlocked-tag{color:#4ade80!important;font-weight:600}.skill-locked-tag{color:#fbbf24!important}.hud-layer{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;display:flex;flex-direction:column;justify-content:space-between;padding:max(8px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}.camera-drag-zone{position:absolute;top:56px;right:0;bottom:0;left:42%;pointer-events:auto}.hud-top{position:relative;z-index:5;display:flex;align-items:center;gap:10px;pointer-events:auto}.hud-icon-btn{min-width:44px;min-height:44px;padding:0 10px;border-radius:10px;border:1px solid rgba(148,163,184,.35);background:#0f172ac7;color:#f8fafc;font-weight:600;cursor:pointer}.hp-panel{flex:1;max-width:280px;background:#0f172ab8;padding:6px 10px;border-radius:10px;border:1px solid rgba(148,163,184,.25)}.hp-label{display:flex;justify-content:space-between;font-size:.75rem;margin-bottom:4px;white-space:nowrap;gap:6px}.tier-badge{display:inline-block;padding:0 5px;border-radius:4px;background:#f59e0b;color:#090d16;margin-right:4px}.hp-track{height:9px;border-radius:999px;background:#1e293be6;overflow:hidden}.hp-fill{height:100%;transition:width .1s linear}.player-fill{background:linear-gradient(90deg,#0ea5e9,#34d399)}.boss-fill{background:linear-gradient(90deg,#e11d48,#f97316)}.hud-top-actions{margin-left:auto;display:flex;align-items:center;gap:6px}.fps-badge{font-size:.72rem;color:#94a3b8;background:#0f172ab8;padding:4px 8px;border-radius:8px}.hud-alerts{position:relative;z-index:5;display:flex;flex-direction:column;align-items:center;gap:6px}.boss-warning-pill{padding:5px 14px;border-radius:999px;background:#ea580ce6;color:#fff;font-weight:700;font-size:.85rem}.toast-pill{padding:5px 12px;border-radius:999px;background:#0f172adb;border:1px solid rgba(148,163,184,.35);font-size:.82rem}.hud-bottom{position:relative;z-index:5;display:flex;justify-content:space-between;align-items:flex-end;padding-bottom:4px}.joystick-zone{width:132px;height:132px;display:flex;align-items:center;justify-content:center;pointer-events:auto;touch-action:none}.joystick-base{width:104px;height:104px;border-radius:50%;background:#0f172a8c;border:2px solid rgba(148,163,184,.45);display:flex;align-items:center;justify-content:center}.joystick-knob{width:44px;height:44px;border-radius:50%;background:#38bdf8d9;border:2px solid #e0f2fe}.action-buttons{display:flex;align-items:flex-end;gap:12px;pointer-events:auto}.skill-btn{position:relative;width:68px;height:68px;border-radius:50%;border:2px solid rgba(255,255,255,.45);background:#0f172ad9;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;cursor:pointer;touch-action:none;padding:4px}.skill-btn.dodge{width:58px;height:58px;border-color:#34d399}.skill-btn.attack{width:72px;height:72px;border-color:#f59e0b;background:#78350fb8}.skill-btn.skill-a{border-color:#38bdf8}.skill-btn.skill-b{border-color:#a855f7}.skill-btn.cooling{opacity:.72}.cd-overlay{position:absolute;left:0;right:0;bottom:0;background:#020617b8;pointer-events:none}.skill-name{position:relative;z-index:1;font-size:.72rem;font-weight:700;line-height:1.1}.skill-sub{position:relative;z-index:1;font-size:.68rem;color:#cbd5e1;margin-top:2px}.modal-backdrop,.portrait-guard{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;background:#020617c7;display:flex;align-items:center;justify-content:center;padding:16px;pointer-events:auto}.modal-card,.portrait-box{width:100%;max-width:380px;background:#0f172a;border:1px solid rgba(148,163,184,.3);border-radius:16px;padding:20px;text-align:center}.modal-sub{color:#94a3b8;font-size:.85rem}.modal-actions{display:flex;flex-direction:column;gap:10px;margin-top:16px}.btn-primary,.btn-secondary,.btn-danger{min-height:44px;border-radius:10px;border:none;font-weight:700;cursor:pointer}.btn-primary{background:#0ea5e9;color:#fff}.btn-secondary{background:#334155;color:#f8fafc}.btn-danger{background:#dc2626;color:#fff}.result-badge{display:inline-block;padding:4px 12px;border-radius:999px;font-weight:800;font-size:.8rem;margin-bottom:8px}.result-badge.win{background:#22c55e33;color:#4ade80}.result-badge.lose{background:#ef444433;color:#f87171}.reward-box{background:#1e293bb3;border-radius:10px;padding:10px;font-size:.85rem;text-align:left}.reward-box p{margin:4px 0}.mock-note{color:#fbbf24;font-size:.75rem}.rotate-icon{font-size:2.2rem;margin-bottom:6px}.damage-popup-layer{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;overflow:hidden;z-index:4}.damage-popup{position:absolute;transform:translate(-50%,-50%);font-weight:800;font-size:1rem;text-shadow:0 2px 6px rgba(0,0,0,.9);white-space:nowrap}.damage-popup.big{font-size:1.3rem}.guide-card{max-width:560px;text-align:left;max-height:90vh;overflow-y:auto}.guide-card h2,.guide-card .modal-sub{text-align:center}.guide-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin-top:12px}.guide-item{background:#1e293bbf;border:1px solid rgba(56,189,248,.3);border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:4px;font-size:.82rem}.guide-item strong{color:#7dd3fc}.guide-item span{color:#cbd5e1;line-height:1.4}.guide-tip{margin:10px 0 0;font-size:.8rem;color:#fde68a;text-align:center}.guide-backdrop-dim{position:fixed;top:0;right:0;bottom:0;left:0;background:#020617d1;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:30;pointer-events:auto}.guide-layer-top{z-index:35!important}.hud-dimmed{opacity:.15!important;filter:grayscale(85%) brightness(.4)!important;pointer-events:none!important;transition:opacity .2s,filter .2s}.hud-spotlight{position:relative;z-index:40!important;border-radius:18px;box-shadow:0 0 0 4px #fbbf24,0 0 32px #fbbf24f2!important;pointer-events:none}.skill-btn.hud-spotlight{border-radius:50%}.hud-coachmark{position:fixed;left:50%;top:44%;transform:translate(-50%,-50%);width:min(92vw,430px);z-index:45;background:linear-gradient(160deg,#181408f7,#0a0e1cfa);border:2px solid #fbbf24;border-radius:16px;padding:16px 18px;box-shadow:0 0 34px #fbbf2473;color:#fef3c7;pointer-events:auto}.coachmark-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.coachmark-pill{font-size:.75rem;font-weight:800;color:#fde68a;border:1px solid rgba(251,191,36,.55);background:#fbbf2429;padding:3px 10px;border-radius:999px}.coachmark-skip{background:transparent;color:#cbd5e1;border:1px solid rgba(148,163,184,.4);border-radius:8px;padding:4px 10px;font-size:.78rem;cursor:pointer}.hud-coachmark h3{margin:0 0 6px;color:#fbbf24;font-size:1.08rem}.hud-coachmark p{margin:0 0 14px;color:#e2e8f0;font-size:.9rem;line-height:1.55}.coachmark-actions{display:flex;justify-content:space-between;align-items:center;gap:8px}.coachmark-btn-gold{background:linear-gradient(90deg,#f59e0b,#fbbf24);color:#0f172a;border:0;border-radius:10px;padding:8px 16px;font-weight:800;font-size:.88rem;cursor:pointer}.coachmark-btn-ghost{background:transparent;color:#fde68a;border:1px solid rgba(251,191,36,.5);border-radius:10px;padding:7px 14px;font-weight:700;font-size:.85rem;cursor:pointer}
