*{box-sizing:border-box;margin:0;padding:0;user-select:none;-webkit-user-select:none}body,html{width:100%;height:100%;overflow:hidden;background-color:#0f1611;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;color:#e5e7eb}#world{position:absolute;top:0;left:0;width:100vw;height:100vh;z-index:1}#world canvas{display:block;width:100vw!important;height:100vh!important;image-rendering:-moz-crisp-edges;image-rendering:-webkit-optimize-contrast;image-rendering:crisp-edges;image-rendering:pixelated}#root{position:absolute;top:0;left:0;width:100vw;height:100vh;z-index:2;pointer-events:none}.game-overlay{position:relative;width:100%;height:100%;pointer-events:none}.game-overlay>*{pointer-events:auto}.sound-toggle-btn{position:absolute;top:14px;right:14px;z-index:100;background:#141a16d9;border:1px solid #4a5c4d;border-radius:8px;padding:8px 12px;font-size:18px;cursor:pointer;color:#e5e7eb;transition:all .2s ease}.sound-toggle-btn:hover{background:#233026f2;border-color:#d4af37;transform:scale(1.05)}.modal-container{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#040302d1;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:50;padding:16px;overflow-y:auto;box-sizing:border-box}.panel{position:relative;background:#140d09;border:24px solid transparent;border-image-source:var(--mir-ui-frame, url(/mafa-survivor-game/assets/mir/ui/mir2_frame_9slice.png));border-image-slice:24 fill;border-image-width:24px;border-image-repeat:repeat;border-radius:0;box-shadow:0 16px 48px #000000f2,0 0 24px #000c,inset 0 0 16px #000000b3;padding:14px 18px 22px;max-width:680px;width:100%;max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);overflow-y:auto;box-sizing:border-box;margin:auto;color:#e6dfd5}.gold-panel{background:#140d09}.mir2-stone-modal-panel{border-image-source:var(--mir-ui-stone, url(/mafa-survivor-game/assets/mir/ui/mir2_stone_9slice.png));background:#12100d}.mir2-close-btn{position:absolute;top:6px;right:6px;width:32px;height:30px;background-image:var(--mir-ui-close, url(/mafa-survivor-game/assets/mir/ui/btn_close.png));background-repeat:no-repeat;background-position:center;background-size:contain;border:none;cursor:pointer;z-index:60;transition:filter .1s ease;outline:none}.mir2-close-btn:hover{filter:brightness(1.2)}.mir2-close-btn:active{background-image:var(--mir-ui-close-down, url(/mafa-survivor-game/assets/mir/ui/btn_close_down.png));transform:translate(1px,1px)}.mir2-header-crest{display:block;width:127px;height:41px;margin:-24px auto 6px;background-image:var(--mir-ui-crest, url(/mafa-survivor-game/assets/mir/ui/mainbar_title.png));background-repeat:no-repeat;background-position:center;background-size:contain;filter:drop-shadow(0 4px 6px rgba(0,0,0,.85));pointer-events:none}.mir2-divider{height:2px;background:linear-gradient(90deg,transparent,#8b6f47 20%,#ffd700 50%,#8b6f47 80%,transparent);margin:8px 0 14px;border:none}.mir2-sunken-box{background:#0a0705eb;border:1px solid #3d2f22;box-shadow:inset 2px 2px 8px #000000f2,inset -1px -1px 2px #b8974a26;padding:12px 14px;margin-bottom:14px;box-sizing:border-box}.panel h1,.panel h2,.panel h3,.main-title,.upgrade-header h2,.shop-header h2,.talent-header h2,.result-header h1{font-family:SimSun,STSong,Songti SC,Kaiti,serif;font-weight:900;color:#f7df94;letter-spacing:1.5px;text-shadow:1px 1px 0 #000,-1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,0 2px 4px rgba(0,0,0,.9),0 0 10px rgba(246,213,130,.35)}.panel::-webkit-scrollbar,.modal-container::-webkit-scrollbar,.sandbox-panel::-webkit-scrollbar,.shop-panel::-webkit-scrollbar,.mir2-equip-modal-panel::-webkit-scrollbar,.compendium-modal::-webkit-scrollbar,.guide-content::-webkit-scrollbar,.compendium-content::-webkit-scrollbar,.talents-grid::-webkit-scrollbar{width:6px;height:6px}.panel::-webkit-scrollbar-track,.modal-container::-webkit-scrollbar-track,.sandbox-panel::-webkit-scrollbar-track,.shop-panel::-webkit-scrollbar-track,.mir2-equip-modal-panel::-webkit-scrollbar-track,.compendium-modal::-webkit-scrollbar-track,.guide-content::-webkit-scrollbar-track,.compendium-content::-webkit-scrollbar-track,.talents-grid::-webkit-scrollbar-track{background:#0a0705eb;border-radius:0}.panel::-webkit-scrollbar-thumb,.modal-container::-webkit-scrollbar-thumb,.sandbox-panel::-webkit-scrollbar-thumb,.shop-panel::-webkit-scrollbar-thumb,.mir2-equip-modal-panel::-webkit-scrollbar-thumb,.compendium-modal::-webkit-scrollbar-thumb,.guide-content::-webkit-scrollbar-thumb,.compendium-content::-webkit-scrollbar-thumb,.talents-grid::-webkit-scrollbar-thumb{background:#5a4225;border-radius:0;border:1px solid #8b6838}.panel::-webkit-scrollbar-thumb:hover,.modal-container::-webkit-scrollbar-thumb:hover,.sandbox-panel::-webkit-scrollbar-thumb:hover,.shop-panel::-webkit-scrollbar-thumb:hover,.mir2-equip-modal-panel::-webkit-scrollbar-thumb:hover,.compendium-modal::-webkit-scrollbar-thumb:hover,.guide-content::-webkit-scrollbar-thumb:hover,.compendium-content::-webkit-scrollbar-thumb:hover,.talents-grid::-webkit-scrollbar-thumb:hover{background:#a88243}.lobby-panel{text-align:center}.title-header .badge-legend{display:inline-block;background:#3a2e15;border:1px solid #b8974a;color:#f6e05e;font-size:12px;font-weight:600;padding:4px 10px;border-radius:4px;margin-bottom:8px;letter-spacing:.5px}.main-title{font-size:32px;font-weight:900;color:#f7df94;text-shadow:0 2px 8px rgba(0,0,0,.8),0 0 12px rgba(212,175,55,.4);letter-spacing:2px;margin-bottom:4px}.subtitle{font-size:14px;color:#94a3b8;margin-bottom:20px}.hero-card{display:flex;align-items:center;background:#0a0705f0;border:1px solid #3d2f22;border-radius:0;box-shadow:inset 2px 2px 8px #000000f2,inset -1px -1px 2px #b8974a26;padding:14px 16px;margin-bottom:16px;text-align:left}.hero-avatar{text-align:center;padding-right:18px;border-right:1px solid #3d2f22}.wizard-icon{font-size:44px}.hero-role{font-size:13px;font-weight:700;color:#facc15;margin-top:4px}.hero-stats{padding-left:18px;flex:1}.hero-stat-row{display:flex;justify-content:space-between;font-size:13px;color:#cbd5e1;margin-bottom:6px}.hero-desc{font-size:12px;color:#a89a8c;line-height:1.4;margin-top:8px}.mode-select-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:16px}.mode-btn{background:linear-gradient(180deg,#382e25,#261f18,#18120d);border:2px solid #5a4837;border-top-color:#8c7358;border-left-color:#8c7358;border-bottom-color:#0d0a07;border-right-color:#0d0a07;border-radius:0;padding:14px 12px;cursor:pointer;color:#f8fafc;text-align:center;transition:all .15s ease;box-shadow:0 4px 10px #000000b3}.mode-btn:hover{background:linear-gradient(180deg,#4d3f33,#362c23);border-color:gold;border-top-color:#fff2b8;border-left-color:#fff2b8;transform:translateY(-1px);box-shadow:0 6px 16px #d4af374d}.mode-btn:active{transform:translate(1px,1px);border-top-color:#0d0a07;border-left-color:#0d0a07;border-bottom-color:#8c7358;border-right-color:#8c7358}.btn-title{font-size:16px;font-weight:700;color:#fef08a;margin-bottom:4px}.btn-desc{font-size:12px;color:#94a3b8}.lobby-footer{margin-top:14px;border-top:1px solid #27352a;padding-top:14px}.text-btn{background:none;border:none;color:#60a5fa;font-size:13px;cursor:pointer;padding:4px 8px;text-decoration:underline}.controls-hint{font-size:12px;color:#64748b;margin-top:8px}.history-drawer{margin-top:16px;background:#0a0705f0;border:1px solid #3d2f22;border-radius:0;box-shadow:inset 1px 1px 6px #000000f2;padding:12px;max-height:180px;overflow-y:auto;text-align:left}.history-drawer h3{font-size:14px;margin-bottom:8px;color:#e2e8f0}.history-item{display:flex;justify-content:space-between;font-size:12px;padding:6px 8px;border-bottom:1px solid #1c261e}.history-item.won{color:#86efac}.history-item.lost{color:#fca5a5}.hud-container{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:space-between;padding:12px 16px;pointer-events:none}.hud-container>*{pointer-events:auto}.mir2-mainbar-container{position:fixed;bottom:0;left:50%;transform:translate(-50%);width:800px;height:133px;z-index:100;pointer-events:auto;user-select:none;-webkit-user-select:none}@media(max-width:820px){.mir2-mainbar-container{transform:translate(-50%) scale(calc(100vw / 820));transform-origin:bottom center}}.mir2-mainbar-frame{position:relative;width:800px;height:133px;background-repeat:no-repeat;background-position:center bottom;background-size:800px 133px;image-rendering:pixelated;image-rendering:-moz-crisp-edges;image-rendering:crisp-edges}.mir2-blood-orb-socket{position:absolute;left:33px;top:7px;width:72px;height:88px;cursor:pointer}.mir2-orb-half{position:absolute;top:0;width:36px;height:88px;overflow:hidden}.mir2-orb-half.hp-half{left:0}.mir2-orb-half.mp-half{left:36px}.mir2-orb-fill{position:absolute;bottom:0;left:0;width:36px;background-repeat:no-repeat;background-position:bottom left;background-size:36px 88px;transition:height .2s ease-out;image-rendering:pixelated}.mir2-orb-text{position:absolute;left:0;top:50%;width:100%;transform:translateY(-50%);display:flex;justify-content:center;align-items:center;gap:2px;font-size:11px;font-weight:800;font-family:monospace,sans-serif;color:#fef08a;text-shadow:0 1px 3px #000,0 0 4px #000,1px 1px 0 #000;pointer-events:none;z-index:10}.mir2-hero-badge{position:absolute;left:8px;bottom:4px;width:162px;height:20px;display:flex;justify-content:center;align-items:center;gap:6px;font-size:11px;color:#fde047;font-weight:700;white-space:nowrap;text-shadow:0 1px 2px #000;z-index:6}.mir2-mainbar-center-bg{position:absolute;left:178px;bottom:0;width:456px;height:131px;background-color:#0c0906;background-repeat:no-repeat;background-position:left bottom;background-size:456px 131px;image-rendering:pixelated;image-rendering:-moz-crisp-edges;image-rendering:crisp-edges;z-index:1}.mir2-center-console{position:absolute;left:178px;bottom:0;width:456px;height:131px;z-index:5;pointer-events:none}.mir2-quick-belt{position:absolute;left:12px;top:6px;width:280px;height:48px;background-repeat:no-repeat;background-size:280px 48px;image-rendering:pixelated;pointer-events:auto}.mir2-quick-slot{position:absolute;width:36px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;transition:transform .1s ease}.mir2-quick-slot:hover{filter:brightness(1.2)}.mir2-quick-slot .icon-box{width:30px;height:30px;display:flex;align-items:center;justify-content:center}.mir2-quick-slot.empty-slot{opacity:.25}.mir2-quick-slot .slot-key{position:absolute;top:1px;left:2px;font-size:9px;font-weight:800;color:#94a3b8;text-shadow:0 1px 2px #000;z-index:6}.mir2-quick-slot .slot-rank{position:absolute;bottom:1px;right:2px;font-size:9px;font-weight:800;color:#fbbf24;text-shadow:0 1px 2px #000;z-index:6}.mir2-cd-sweep{position:absolute;bottom:0;left:0;width:100%;background:#000000b8;border-top:1px solid #f59e0b;z-index:5;pointer-events:none}.mir2-telemetry-chat{position:absolute;left:12px;top:58px;width:340px;height:48px;display:flex;flex-direction:column;justify-content:center;gap:3px;padding:2px 4px;box-sizing:border-box;font-size:11px;font-family:PingFang SC,SimSun,Microsoft YaHei,monospace,sans-serif;color:#e2e8f0;text-shadow:0 1px 2px #000,1px 1px 0 #000;pointer-events:auto}.mir2-chat-line{display:flex;align-items:center;gap:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.3}.mir2-chat-tag{color:#caa156;font-weight:700}.mir2-chat-highlight{color:#fde047;font-weight:700}.mir2-chat-timer{color:#f87171;font-weight:700}.mir2-chat-stat strong{color:#4ade80}.mir2-chat-gold strong{color:#facc15}.mir2-exp-track{position:absolute;left:7px;top:112px;width:344px;height:9px;background:#000000bf;overflow:hidden;pointer-events:auto;cursor:help}.mir2-exp-fill{height:100%;background:linear-gradient(90deg,#15803d,#84cc16,#eab308);transition:width .2s ease-out}.mir2-exp-text{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:8px;font-weight:700;color:#fff;text-shadow:0 1px 2px #000,1px 1px 0 #000;pointer-events:none;line-height:9px}.mir2-actions-cluster{position:absolute;left:634px;top:0;width:166px;height:133px;z-index:5;pointer-events:auto}.mir2-console-btn{position:absolute;background:transparent;border:1px solid transparent;cursor:pointer;border-radius:2px;transition:background .15s ease,border-color .15s ease,box-shadow .15s ease}.mir2-console-btn:hover{background:#facc1538;border-color:#facc15bf;box-shadow:0 0 6px #facc1580}.mir2-console-btn:active{background:#facc1566}.mir2-console-btn.btn-bag{left:48px;top:33px;width:27px;height:27px}.mir2-console-btn.btn-equip{left:77px;top:31px;width:26px;height:31px}.mir2-console-btn.btn-skill{left:105px;top:33px;width:27px;height:27px}.mir2-console-btn.btn-opt{left:72px;top:72px;width:26px;height:24px}.slot-empty-icon{font-size:16px;color:#64748b}.upgrade-panel{max-width:760px;max-height:90vh;max-height:90dvh;overflow-y:auto;box-sizing:border-box;margin:auto;text-align:center}.upgrade-header h2{font-size:24px;color:#fef08a;margin-bottom:6px}.upgrade-header p{font-size:13px;color:#94a3b8;margin-bottom:20px}.choices-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.choice-card{position:relative;background:linear-gradient(180deg,#18120d,#100b08);border:2px solid #5a462c;border-top-color:#8c7358;border-left-color:#8c7358;border-bottom-color:#0d0a07;border-right-color:#0d0a07;border-radius:0;padding:18px 14px;display:flex;flex-direction:column;justify-content:space-between;cursor:pointer;transition:all .2s ease;min-height:220px;text-align:left;box-shadow:0 4px 12px #000c,inset 0 0 10px #0009}.choice-card:hover{border-color:#caa156;border-top-color:gold;border-left-color:gold;transform:translateY(-3px);background:linear-gradient(180deg,#261c14,#16100b);box-shadow:0 8px 24px #000000e6,0 0 16px #d4af3759}.card-key-tag{position:absolute;top:8px;right:8px;background:#382714;border:1px solid #b8974a;color:gold;font-size:11px;font-weight:700;padding:2px 6px;border-radius:0;font-family:SimSun,serif}.card-type-tag{display:inline-block;font-size:11px;font-weight:700;padding:3px 6px;border-radius:0;margin-bottom:8px;width:fit-content}.card-type-tag.skill{background:#1e3a5f;color:#7dd3fc;border:1px solid #0284c7}.card-type-tag.stat{background:#3b2a1a;color:#fed7aa;border:1px solid #c2410c}.card-type-tag.evolution{background:linear-gradient(90deg,#b45309,#d97706);color:#fffbeb;border:1px solid #facc15;box-shadow:0 0 8px #facc1580;text-shadow:0 1px 2px rgba(0,0,0,.8);letter-spacing:.5px}.choice-card.choice-card-evolution{background:radial-gradient(circle at 50% 0%,#3e2608,#1c1308);border:2px solid #eab308;box-shadow:0 0 20px #eab30859,inset 0 0 15px #eab30826;animation:pulse-evo-glow 2.5s infinite alternate ease-in-out}@keyframes pulse-evo-glow{0%{box-shadow:0 0 15px #eab3084d,inset 0 0 10px #eab3081a}to{box-shadow:0 0 30px #eab308a6,0 0 50px #f973164d,inset 0 0 20px #eab30840}}.choice-card.choice-card-evolution:hover{border-color:#fef08a;background:radial-gradient(circle at 50% 0%,#52340b,#261a0b);transform:translateY(-6px) scale(1.02)}.choice-card.choice-card-evolution .card-title{color:#fde047;text-shadow:0 0 8px rgba(250,204,21,.5)}.choice-card.choice-card-evolution .card-select-btn{background:linear-gradient(180deg,#ca8a04,#854d0e);border-color:#fde047;color:#fffbeb;text-shadow:0 1px 3px rgba(0,0,0,.9);box-shadow:0 2px 8px #00000080}.choice-card.choice-card-evolution:hover .card-select-btn{background:linear-gradient(180deg,#facc15,#ca8a04);color:#1c1308;border-color:#fef08a}.card-title{font-size:16px;font-weight:800;color:#f8fafc;margin-bottom:10px}.card-desc{font-size:13px;color:#cbd5e1;line-height:1.45;flex:1}.card-select-btn{margin-top:14px;background:linear-gradient(180deg,#382e25,#261f18,#18120d);border:2px solid #5a4837;border-top-color:#8c7358;border-left-color:#8c7358;border-bottom-color:#0d0a07;border-right-color:#0d0a07;border-radius:0;padding:8px;color:#fef08a;font-family:SimSun,serif;font-weight:700;cursor:pointer;width:100%;transition:all .15s ease}.choice-card:hover .card-select-btn{background:linear-gradient(180deg,#7c5d35,#523c21,#382714);color:#fff;border-color:#caa156;border-top-color:#ffe090;border-left-color:#ffe090}.shop-panel{max-width:820px;max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);overflow-y:auto;box-sizing:border-box;margin:auto}.shop-header{display:flex;justify-content:space-between;align-items:center;border-bottom:none;padding-bottom:4px;margin-bottom:12px}.shop-header h2{font-size:20px;color:#fef08a}.shop-gold-info{display:flex;gap:16px;font-size:13px;color:#cbd5e1}.shop-offers-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}.offer-card{background:linear-gradient(180deg,#18120d,#100b08);border:1.5px solid #4a3a2a;border-radius:0;padding:12px;display:flex;flex-direction:column;justify-content:space-between;min-height:170px;box-shadow:0 4px 10px #000000b3,inset 0 0 8px #0009}.offer-card.locked{border-color:gold;box-shadow:0 0 12px #ffd70059}.offer-card.sold{opacity:.45}.offer-header{display:flex;justify-content:space-between;font-size:13px;font-weight:700;margin-bottom:4px}.item-tier.tier-1{color:#f8fafc}.item-tier.tier-2{color:#38bdf8}.item-tier.tier-3{color:#c084fc}.item-tier.tier-4{color:#f59e0b}.item-price{color:#facc15}.item-type-tag{font-size:11px;color:#94a3b8;margin-bottom:6px}.item-desc{font-size:11px;color:#cbd5e1;line-height:1.35;flex:1}.offer-actions{display:flex;gap:6px;margin-top:10px}.buy-btn{flex:1;background:linear-gradient(180deg,#7c5d35,#523c21,#382714);color:#fff4d0;border:1px solid #caa156;border-top-color:#ffe090;border-left-color:#ffe090;border-bottom-color:#1a1006;border-right-color:#1a1006;border-radius:0;font-family:SimSun,serif;font-weight:700;font-size:12px;padding:6px;cursor:pointer;text-shadow:1px 1px 0 #000}.buy-btn:hover{background:linear-gradient(180deg,#967040,#684d2a,#47321a);color:#fff}.buy-btn:disabled{background:#2b221a;color:#64748b;border-color:#423528;cursor:not-allowed}.lock-btn{background:linear-gradient(180deg,#382e25,#261f18,#18120d);border:1px solid #5a4837;border-radius:0;color:#cbd5e1;font-size:11px;padding:6px;cursor:pointer}.lock-btn.active{border-color:#facc15;color:#facc15}.equipment-strip{background:#0a0705f0;border:1px solid #3d2f22;border-radius:0;box-shadow:inset 1px 1px 6px #000000f2;padding:12px;margin-bottom:16px}.equipment-strip h4{font-size:13px;color:#f7df94;font-family:SimSun,serif;margin-bottom:8px}.equip-slots-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:6px}.equip-slot-box{background:#120d09e6;border:1px solid #4a3825;border-radius:0;padding:6px 4px;text-align:center;min-height:60px;display:flex;flex-direction:column;justify-content:space-between}.equip-slot-box.has-item{border-color:#caa156;background:#231911f2}.slot-title{font-size:10px;color:#94a3b8}.slot-item-info .item-name{display:block;font-size:11px;font-weight:700;color:#fef08a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sell-btn{background:linear-gradient(180deg,#5c1818,#380a0a);border:1px solid #a83232;color:#fca5a5;font-size:9px;border-radius:0;padding:2px 4px;cursor:pointer;margin-top:2px}.slot-empty-text{font-size:11px;color:#475569}.shop-footer{display:flex;justify-content:space-between;align-items:center}.reroll-btn{background:#29382c;border:1px solid #4a614e;border-radius:6px;color:#f8fafc;padding:10px 16px;font-size:13px;font-weight:700;cursor:pointer}.reroll-btn:disabled{opacity:.4;cursor:not-allowed}.next-wave-btn{padding:10px 24px;font-size:15px}.primary-btn,.next-wave-btn{background:linear-gradient(180deg,#7c5d35,#523c21,#382714);border:2px solid #caa156;border-top-color:#ffe090;border-left-color:#ffe090;border-bottom-color:#1a1006;border-right-color:#1a1006;border-radius:0;color:#fff4d0;font-family:SimSun,STSong,Songti SC,serif;font-weight:700;cursor:pointer;box-shadow:0 4px 10px #000c,inset 0 1px 1px #ffffff4d;text-shadow:1px 1px 0 #000;transition:all .15s ease;padding:10px 20px}.primary-btn:hover,.next-wave-btn:hover{background:linear-gradient(180deg,#967040,#684d2a,#47321a);color:#fff;border-color:gold;border-top-color:#fff2b8;border-left-color:#fff2b8;box-shadow:0 4px 14px #d4af3773}.primary-btn:active,.next-wave-btn:active{transform:translate(1px,1px);border-top-color:#1a1006;border-left-color:#1a1006;border-bottom-color:#ffe090;border-right-color:#ffe090}.secondary-btn{background:linear-gradient(180deg,#382e25,#261f18,#18120d);border:2px solid #5a4837;border-top-color:#8c7358;border-left-color:#8c7358;border-bottom-color:#0d0a07;border-right-color:#0d0a07;border-radius:0;color:#d8c8b6;font-family:SimSun,STSong,Songti SC,serif;font-weight:700;cursor:pointer;box-shadow:0 3px 8px #000000b3;text-shadow:1px 1px 0 #000;transition:all .15s ease;padding:10px 16px}.secondary-btn:hover{background:linear-gradient(180deg,#4d3f33,#362c23);color:#f6d582;border-color:#b8974a;border-top-color:#deb970;border-left-color:#deb970}.secondary-btn:active{transform:translate(1px,1px);border-top-color:#0d0a07;border-left-color:#0d0a07;border-bottom-color:#8c7358;border-right-color:#8c7358}.danger-btn{background:linear-gradient(180deg,#6b2121,#451010,#280a0a);border:2px solid #a83232;border-top-color:#f87171;border-left-color:#f87171;border-bottom-color:#150505;border-right-color:#150505;border-radius:0;color:#fee2e2;font-family:SimSun,STSong,Songti SC,serif;font-weight:700;cursor:pointer;box-shadow:0 3px 8px #000c;text-shadow:1px 1px 0 #000;transition:all .15s ease;padding:10px 16px}.danger-btn:hover{background:linear-gradient(180deg,#852a2a,#571616);color:#fff;border-color:#ef4444}.danger-btn:active{transform:translate(1px,1px);border-top-color:#150505;border-left-color:#150505;border-bottom-color:#f87171;border-right-color:#f87171}.pause-panel{text-align:center}.pause-panel h2{font-size:24px;color:#fef08a;margin-bottom:8px}.pause-stats-summary{background:#0a0705f0;border:1px solid #3d2f22;border-radius:0;box-shadow:inset 2px 2px 8px #000000f2,inset -1px -1px 2px #b8974a26;padding:14px 16px;margin-bottom:16px;text-align:left;line-height:1.8;font-size:14px;color:#e6dfd5}.pause-actions{display:flex;flex-direction:column;gap:10px}.pause-actions button{padding:10px 14px;font-size:14px}.result-panel{max-width:720px}.result-header{text-align:center;border-bottom:none;padding-bottom:4px;margin-bottom:12px}.result-header h1{font-size:26px;color:#fef08a;margin-bottom:6px}.result-panel.defeat .result-header h1{color:#f87171}.result-subtitle{font-size:13px;color:#a89a8c}.result-stats-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-bottom:16px}.stat-card{background:#0a0705eb;border:1px solid #3d2f22;border-radius:0;box-shadow:inset 1px 1px 4px #000000e6;padding:10px 6px;text-align:center}.stat-card .label{display:block;font-size:11px;color:#94a3b8;margin-bottom:4px}.stat-card .val{font-size:17px;font-weight:800;color:#f8fafc}.damage-breakdown-card{background:#0a0705eb;border:1px solid #3d2f22;border-radius:0;box-shadow:inset 1px 1px 6px #000000e6;padding:12px 14px;margin-bottom:16px}.damage-breakdown-card h3{font-size:14px;color:#f7df94;margin-bottom:10px}.dmg-bar-row{margin-bottom:8px}.dmg-bar-info{display:flex;justify-content:space-between;font-size:12px;color:#e2e8f0;margin-bottom:4px}.bar-fill.dmg-fireball{background:#f97316}.bar-fill.dmg-lightning{background:#38bdf8}.bar-fill.dmg-firewall{background:#ef4444}.bar-fill.dmg-shield{background:#facc15}.build-summary{font-size:13px;color:#cbd5e1;margin-bottom:16px;display:flex;align-items:center;flex-wrap:wrap;gap:8px}.skill-pill{background:linear-gradient(180deg,#2b221a,#1c1510);border:1px solid #8b6838;color:#ffe6a0;font-size:11px;font-weight:700;padding:3px 8px;border-radius:0;font-family:SimSun,serif}.result-actions{display:flex;gap:14px}.result-actions button{flex:1;padding:12px;font-size:15px}.crystal-badge{display:inline-block;background:#1e1b4b;border:1px solid #6366f1;color:#c7d2fe;font-size:12px;font-weight:700;padding:4px 12px;border-radius:12px;margin-top:6px}.class-selector-tabs{display:flex;gap:8px;margin-bottom:16px}.class-tab{flex:1;background:linear-gradient(180deg,#2b221a,#1c1510);border:1px solid #4a3a2a;border-radius:0;padding:10px 8px;cursor:pointer;color:#a89a8c;display:flex;align-items:center;justify-content:center;gap:8px;font-family:SimSun,serif;transition:all .15s ease}.class-tab:hover{background:linear-gradient(180deg,#3d3024,#291f17);color:#f6d582;border-color:#8b6838}.class-tab.active{background:linear-gradient(180deg,#5c4528,#3a2b18,#261b0e);border:1px solid #caa156;color:#ffe6a0;text-shadow:1px 1px 0 #000;box-shadow:0 0 10px #d4af374d}.class-tab-icon{font-size:20px}.class-tab-name{font-size:15px;font-weight:800}.chapter-selector{display:flex;align-items:center;gap:8px;margin-bottom:14px;background:#0a0705f0;border:1px solid #3d2f22;border-radius:0;box-shadow:inset 1px 1px 4px #000000e6;padding:8px 12px}.chapter-label{font-size:12px;color:#94a3b8;white-space:nowrap}.chap-btn{flex:1;background:linear-gradient(180deg,#382e25,#261f18,#18120d);border:1px solid #5a4837;border-radius:0;padding:6px 4px;color:#cbd5e1;font-size:12px;font-family:SimSun,serif;cursor:pointer;transition:all .15s ease}.chap-btn:hover{background:linear-gradient(180deg,#4d3f33,#362c23);color:#f6d582}.chap-btn.active{border-color:#caa156;background:linear-gradient(180deg,#5c4528,#3a2b18);color:#ffe6a0;box-shadow:0 0 8px #d4af3740}.chap-boss{font-size:10px;color:#fca5a5;margin-left:4px}.selected-chapter-preview{display:flex;align-items:center;justify-content:center;gap:8px;background:#0a0705f0;border:1px solid #3d2f22;border-radius:0;padding:6px 12px;font-size:12px;margin-top:-6px;margin-bottom:14px;color:#cbd5e1}.chap-theme-badge{color:#caa156;font-weight:700;white-space:nowrap}.chap-desc-snippet{color:#94a3b8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lobby-actions-row{display:flex;justify-content:center;gap:16px;margin-bottom:8px}.crystal-shrine-btn{background:linear-gradient(180deg,#4a3420,#2e1e12);border:2px solid #b8974a;border-top-color:gold;border-left-color:gold;border-bottom-color:#120a05;border-right-color:#120a05;color:#ffe6a0;border-radius:0;padding:6px 14px;font-size:12px;font-family:SimSun,serif;font-weight:700;cursor:pointer;transition:all .15s ease;box-shadow:0 2px 6px #000000b3}.crystal-shrine-btn:hover{background:linear-gradient(180deg,#61442a,#3d2818);color:#fff;border-color:gold}.talent-panel{max-width:720px;max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);overflow-y:auto;box-sizing:border-box;margin:auto}.talent-header{text-align:center;border-bottom:none;padding-bottom:4px;margin-bottom:12px}.talent-header h2{font-size:22px;color:#fef08a;margin-bottom:4px}.talent-header p{font-size:12px;color:#a89a8c;margin-bottom:6px}.crystal-balance{font-size:14px;color:#a5b4fc}.talents-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:18px}.talent-card{background:linear-gradient(180deg,#18120d,#100b08);border:1.5px solid #4a3a2a;border-radius:0;padding:12px;display:flex;flex-direction:column;justify-content:space-between;min-height:120px;box-shadow:0 4px 10px #000000b3,inset 0 0 8px #0009;transition:all .15s ease}.talent-card:hover{border-color:#caa156;background:linear-gradient(180deg,#241a12,#140e0a);box-shadow:0 6px 14px #d4af3740}.talent-card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.talent-name{font-size:14px;font-weight:800;color:#f7df94;font-family:SimSun,serif}.talent-level{font-size:11px;font-weight:700;color:#facc15}.talent-desc{font-size:12px;color:#cbd5e1;line-height:1.4;flex:1}.talent-card-footer{margin-top:8px}.upgrade-talent-btn{width:100%;background:linear-gradient(180deg,#7c5d35,#523c21,#382714);border:1px solid #caa156;border-top-color:#ffe090;border-left-color:#ffe090;border-bottom-color:#1a1006;border-right-color:#1a1006;color:#fff4d0;border-radius:0;padding:6px;font-size:11px;font-family:SimSun,serif;font-weight:700;cursor:pointer;text-shadow:1px 1px 0 #000;transition:all .15s ease}.upgrade-talent-btn:hover{background:linear-gradient(180deg,#967040,#684d2a,#47321a);color:#fff}.upgrade-talent-btn:disabled{background:#251d16;border-color:#3d2f22;color:#64748b;cursor:not-allowed}.max-tag{display:block;text-align:center;font-size:11px;font-weight:700;color:#4ade80;padding:4px 0}.talent-actions{display:flex;justify-content:space-between;gap:12px}.talent-actions button{padding:10px 18px}.crystal-highlight .val{color:#818cf8}.seed-input-row{display:flex;align-items:center;gap:10px;background:#141d16;border:1px solid #28372b;border-radius:8px;padding:8px 12px;margin-bottom:16px}.seed-label{font-size:12px;color:#94a3b8;white-space:nowrap}.seed-input{flex:1;background:#0f1611;border:1px solid #334436;border-radius:6px;padding:6px 10px;color:#fef08a;font-size:13px;font-family:monospace;outline:none}.seed-input:focus{border-color:#facc15}.seed-replay-row{display:flex;justify-content:space-between;align-items:center;background:#141c15;border:1px solid #28372b;border-radius:6px;padding:8px 12px;margin-bottom:16px;font-size:12px;color:#cbd5e1}.seed-replay-row code{color:#facc15;font-weight:700;margin-left:4px}.copy-seed-btn{background:#253328;border:1px solid #485f4c;border-radius:4px;color:#e2e8f0;font-size:11px;padding:4px 8px;cursor:pointer;transition:all .2s ease}.copy-seed-btn:hover{border-color:#facc15;color:#facc15}@media(max-width:768px){.talents-grid,.choices-grid{grid-template-columns:1fr}.shop-offers-grid{grid-template-columns:1fr 1fr}.equip-slots-grid{grid-template-columns:repeat(4,1fr)}.result-stats-grid{grid-template-columns:repeat(3,1fr)}}.art{display:inline-block;background-repeat:no-repeat;image-rendering:pixelated;flex-shrink:0}.art-empty{font-family:Georgia,serif;color:#9b8958;font-size:18px}.icon-box{height:48px;width:48px;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0}.icon-box>svg{display:block;width:100%;height:100%;max-width:48px;max-height:48px;image-rendering:pixelated;overflow:hidden}.skill-slot .icon-box{width:32px;height:32px}.upgrade-card .icon-box{margin:6px auto 10px;height:48px;width:48px}.shop-card .icon-box{margin:6px auto;height:44px;width:44px}.equipment-slot .icon-box{height:30px;width:30px}.pause-attributes-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:12px;background:#111812;padding:10px;border-radius:6px;border:1px solid #233025}.pause-attr-item{font-size:12px;color:#94a3b8;display:flex;justify-content:space-between}.pause-attr-item strong{color:#fef08a}.pause-equipped-section{margin:16px 0;text-align:left}.pause-equipped-section h4,.pause-passives-section h4{font-size:14px;color:#d4af37;margin-bottom:8px}.passives-list{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.passive-badge{display:inline-flex;align-items:center;gap:6px;background:#18221a;border:1px solid #2e3e31;padding:4px 8px;border-radius:4px;font-size:12px;color:#cbd5e1}.passive-badge .icon-box{width:24px;height:24px}.chap-btn.locked-chap{opacity:.75;border-color:#4b5563;border-style:dashed}.chap-lock-tag{font-size:11px;color:#fbbf24;margin-left:4px}.unlock-panel{max-width:520px;width:90%;text-align:center}.unlock-theme-box{font-size:14px;color:gold;font-family:SimSun,serif;font-weight:700;margin:6px 0 12px}.unlock-description{font-size:13px;color:#cbd5e1;line-height:1.6;margin-bottom:16px}.unlock-cost-box{background:#0a0705f0;border:1px solid #3d2f22;border-radius:0;box-shadow:inset 1px 1px 6px #000000f2;padding:12px;margin-bottom:20px;font-size:13px;color:#94a3b8}.cost-row{margin-top:6px;color:#f8fafc}.cost-row strong{color:#facc15}.sound-toggle-pause-btn{background:#241a10;border-color:#caa156;color:#caa156}.compendium-modal{z-index:60}.compendium-panel{max-width:940px;max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);display:flex;flex-direction:column;padding:16px 22px}.compendium-header{display:flex;justify-content:space-between;align-items:center;border-bottom:none;padding-bottom:2px;margin-bottom:8px}.compendium-title-row{display:flex;align-items:center;gap:12px}.compendium-title-row h2{font-size:22px;color:#facc15;margin:0;text-shadow:0 2px 4px rgba(0,0,0,.8)}.compendium-subtitle{font-size:13px;color:#a89a8c}.compendium-nav{display:flex;gap:8px;margin-bottom:12px}.compendium-tab-btn{flex:1;background:linear-gradient(180deg,#2b221a,#1c1510);border:1px solid #4a3a2a;color:#a89a8c;padding:8px 14px;font-size:14px;font-family:SimSun,serif;font-weight:700;border-radius:0;cursor:pointer;transition:all .15s ease}.compendium-tab-btn:hover{background:linear-gradient(180deg,#3d3024,#291f17);color:#f6d582;border-color:#8b6838}.compendium-tab-btn.active{background:linear-gradient(180deg,#5c4528,#3a2b18,#261b0e);border:1px solid #caa156;color:#ffe6a0;box-shadow:0 0 10px #d4af374d}.compendium-subnav-row{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:14px;background:#0a0705f0;padding:8px 12px;border-radius:0;border:1px solid #3d2f22;box-shadow:inset 1px 1px 4px #000000e6}.compendium-filters{display:flex;gap:6px;flex-wrap:wrap}.comp-filter-btn{background:linear-gradient(180deg,#382e25,#261f18,#18120d);border:1px solid #5a4837;color:#d8c8b6;font-size:12px;font-family:SimSun,serif;padding:4px 10px;border-radius:0;cursor:pointer;transition:all .15s}.comp-filter-btn:hover{color:gold;border-color:#8c7358}.comp-filter-btn.active{background:linear-gradient(180deg,#5c4528,#3a2b18);border-color:#caa156;color:#ffe6a0;font-weight:700}.compendium-progress-info{font-size:12px;color:#cbd5e1}.compendium-progress-info strong{color:#facc15}.compendium-content-scroll{flex:1;overflow-y:auto;padding-right:6px;margin-bottom:12px}.compendium-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}.compendium-card{background:linear-gradient(180deg,#18120d,#100b08);border:1.5px solid #4a3a2a;border-radius:0;padding:12px;display:flex;flex-direction:column;gap:8px;transition:all .2s;box-shadow:0 4px 10px #000000b3,inset 0 0 8px #0009}.compendium-card:hover{border-color:#71717a;transform:translateY(-2px);box-shadow:0 4px 12px #0006}.compendium-card.unlocked{background:#1a1e1b;border-color:#4d7c0f}.compendium-card.unlocked:hover{border-color:#84cc16}.compendium-card.locked{opacity:.6;background:#141416;border-color:#27272a}.comp-card-top{display:flex;align-items:center;gap:10px}.comp-card-icon{width:44px;height:44px;background:#09090b;border:1px solid #3f3f46;border-radius:6px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.comp-card-info{flex:1;min-width:0}.comp-card-name-row{display:flex;align-items:center;justify-content:space-between;gap:6px}.comp-card-name{font-size:15px;font-weight:700;color:#f1f5f9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.comp-card-status{font-size:11px;padding:2px 6px;border-radius:3px;font-weight:600;white-space:nowrap}.comp-status-unlocked{background:#14532d;color:#86efac;border:1px solid #16a34a}.comp-status-locked{background:#27272a;color:#71717a;border:1px solid #3f3f46}.comp-card-tags{display:flex;gap:6px;margin-top:4px;flex-wrap:wrap}.comp-tag{font-size:10px;padding:1px 5px;border-radius:3px;background:#27272a;color:#a1a1aa}.comp-tag.wizard{background:#1e3a5f;color:#93c5fd}.comp-tag.taoist{background:#14532d;color:#86efac}.comp-tag.warrior{background:#581c87;color:#d8b4fe}.comp-tag.tier-1{background:#27272a;color:#cbd5e1}.comp-tag.tier-2{background:#1e3a8a;color:#93c5fd}.comp-tag.tier-3{background:#581c87;color:#c084fc}.comp-tag.tier-4{background:#78350f;color:#fde047}.comp-card-desc{font-size:12px;color:#94a3b8;line-height:1.45;margin:0}.comp-card-branches{background:#09090b;border:1px solid #27272a;border-radius:4px;padding:6px 8px;display:flex;flex-direction:column;gap:4px}.comp-branch-title{font-size:11px;color:#e2e8f0;font-weight:600}.comp-branch-item{font-size:11px;color:#a1a1aa;line-height:1.35}.comp-branch-item strong{color:#facc15}.comp-card-stats{display:flex;flex-wrap:wrap;gap:6px;background:#0f172a;border:1px solid #1e293b;border-radius:4px;padding:4px 8px;font-size:11px;color:#38bdf8}.comp-special-badge{font-size:11px;color:#facc15;background:#451a03;border:1px solid #b45309;border-radius:4px;padding:3px 6px;font-weight:600}.comp-btn-lobby{background:#3b2812;border:1px solid #b45309;color:#fde047;font-weight:600;padding:6px 14px;border-radius:4px;cursor:pointer;transition:all .2s}.comp-btn-lobby:hover{background:#54391a;border-color:#f59e0b}.guide-modal{z-index:60}.guide-panel{max-width:860px;max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);display:flex;flex-direction:column;padding:16px 22px}.guide-header{display:flex;justify-content:space-between;align-items:center;border-bottom:none;padding-bottom:2px;margin-bottom:8px}.guide-title-row{display:flex;align-items:center;gap:12px}.guide-title-row h2{font-size:22px;color:#facc15;margin:0;text-shadow:0 2px 4px rgba(0,0,0,.8)}.guide-subtitle{font-size:13px;color:#a89a8c}.guide-nav{display:flex;gap:8px;margin-bottom:12px}.guide-tab-btn{flex:1;background:linear-gradient(180deg,#2b221a,#1c1510);border:1px solid #4a3a2a;color:#a89a8c;padding:8px 12px;font-size:14px;font-family:SimSun,serif;font-weight:700;border-radius:0;cursor:pointer;transition:all .15s ease}.guide-tab-btn:hover{background:linear-gradient(180deg,#3d3024,#291f17);color:#f6d582;border-color:#8b6838}.guide-tab-btn.active{background:linear-gradient(180deg,#5c4528,#3a2b18,#261b0e);border:1px solid #caa156;color:#ffe6a0;box-shadow:0 0 10px #d4af374d}.guide-content-scroll{flex:1;overflow-y:auto;padding-right:8px;color:#e6dfd5;line-height:1.6;font-size:14px}.guide-section{display:flex;flex-direction:column;gap:14px}.guide-card{background:linear-gradient(180deg,#18120d,#100b08);border:1.5px solid #4a3a2a;border-radius:0;padding:16px;box-shadow:0 4px 10px #000000b3,inset 0 0 8px #0009}.guide-card h3{color:#f7df94;font-family:SimSun,serif;font-size:16px;margin:0 0 8px;display:flex;align-items:center;gap:8px}.guide-card p{color:#cbd5e1;margin:0 0 8px;font-size:13px;line-height:1.6}.guide-key-table{width:100%;border-collapse:collapse;font-size:13px;margin-top:6px}.guide-key-table th{background:#0a0705f0;color:gold;font-family:SimSun,serif;padding:8px 12px;text-align:left;border:1px solid #4a3a2a}.guide-key-table td{padding:8px 12px;border:1px solid #3d2f22;color:#e6dfd5}.key-badge{display:inline-block;background:#2b221a;border:1px solid #8b6838;color:gold;font-family:SimSun,serif;font-family:monospace;font-size:12px;font-weight:700;padding:2px 7px;border-radius:4px;box-shadow:0 2px #3f3f46}.guide-save-box{background:#111413;border:1px solid #3b2812;border-radius:8px;padding:14px;display:flex;flex-direction:column;gap:10px}.guide-save-actions{display:flex;gap:10px;flex-wrap:wrap}.guide-textarea{width:100%;min-height:80px;background:#09090b;border:1px solid #3f3f46;border-radius:6px;color:#e2e8f0;font-family:monospace;font-size:12px;padding:8px;resize:vertical}.guide-msg-success{color:#86efac;font-size:13px;font-weight:600}.guide-msg-error{color:#f87171;font-size:13px;font-weight:600}.guide-btn-lobby{background:#1c1917;border:1px solid #57534e;color:#d6d3d1;font-weight:600;padding:6px 14px;border-radius:4px;cursor:pointer;transition:all .2s}.guide-btn-lobby:hover{background:#292524;border-color:#a8a29e;color:#fafaf9}.active-run-banner{background:#2a1c0d;border:2px solid #eab308;border-radius:8px;padding:12px 16px;margin-bottom:16px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;box-shadow:0 4px 16px #eab30833}.active-run-info{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:#fef08a;font-size:14px}.banner-tag{color:#facc15;font-weight:700}.banner-detail{font-size:12px;color:#94a3b8}.active-run-actions{display:flex;gap:8px}.resume-run-btn{padding:6px 14px;font-size:13px}.abandon-run-btn{padding:6px 12px;font-size:13px;background:#27272a}.abandon-run-btn.confirming,.danger-btn.confirming{border-color:#f87171;color:#fca5a5}.sandbox-modal{z-index:70}.sandbox-panel{max-width:680px;max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);overflow-y:auto;box-sizing:border-box;margin:auto;padding:16px 20px 24px}.sandbox-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;border-bottom:none;padding-bottom:2px}.sandbox-header h2{font-size:20px;color:#f7df94;font-family:SimSun,serif;margin:0}.sandbox-desc{font-size:12px;color:#a89a8c;background:#0a0705f0;border:1px solid #3d2f22;border-radius:0;box-shadow:inset 1px 1px 4px #000000e6;padding:8px 12px;margin-bottom:16px;line-height:1.5}.sandbox-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px;margin-bottom:16px}.sandbox-btn{background:linear-gradient(180deg,#382e25,#261f18,#18120d);border:2px solid #5a4837;border-top-color:#8c7358;border-left-color:#8c7358;border-bottom-color:#0d0a07;border-right-color:#0d0a07;color:#d8c8b6;font-family:SimSun,serif;padding:9px;font-size:13px;border-radius:0;cursor:pointer;transition:all .15s ease;text-align:center;font-weight:700;box-shadow:0 3px 6px #000000b3}.sandbox-btn:hover{background:linear-gradient(180deg,#4d3f33,#362c23);border-color:gold;color:#fff}.sandbox-btn:active{transform:translate(1px,1px);border-top-color:#0d0a07;border-left-color:#0d0a07;border-bottom-color:#8c7358;border-right-color:#8c7358}.sandbox-btn.active{background:linear-gradient(180deg,#5c4528,#3a2b18);border-color:#caa156;color:#ffe6a0;box-shadow:0 0 10px #d4af374d}.speed-buttons-row{display:flex;gap:8px;align-items:center;background:#0a0705f0;border:1px solid #3d2f22;padding:8px 12px;border-radius:0;box-shadow:inset 1px 1px 4px #000000e6}.speed-btn{background:linear-gradient(180deg,#382e25,#261f18);border:1px solid #5a4837;color:#d8c8b6;padding:4px 10px;font-size:12px;font-family:SimSun,serif;border-radius:0;cursor:pointer}.speed-btn.active{background:#0284c7;color:#fff;border-color:#38bdf8;font-weight:700}.audio-volume-controls{display:flex;flex-direction:column;gap:8px;background:#111417;border:1px solid #2d3748;border-radius:6px;padding:10px 14px;margin-bottom:14px}.volume-slider-row{display:flex;align-items:center;gap:12px;font-size:13px;color:#cbd5e1}.slider-label{min-width:80px;color:#94a3b8}.volume-slider{flex:1;accent-color:#eab308;cursor:pointer}.volume-val{min-width:40px;text-align:right;font-variant-numeric:tabular-nums;color:#facc15;font-weight:600}.asset-loading-overlay{position:fixed;inset:0;z-index:1000;background:radial-gradient(circle at center,#18221c,#0c110e);display:flex;align-items:center;justify-content:center;padding:20px;font-family:inherit}.asset-loading-box{width:100%;max-width:580px;background:#121613f5;border:2px solid #854d0e;box-shadow:0 0 30px #eab30833,inset 0 0 15px #000c;border-radius:8px;padding:28px 24px;text-align:center;position:relative}.asset-loading-title{font-size:24px;color:#facc15;letter-spacing:2px;font-weight:700;margin:0 0 8px;text-shadow:0 2px 8px rgba(0,0,0,.8)}.asset-loading-subtitle{font-size:13px;color:#94a3b8;margin:0 0 20px;line-height:1.5}.asset-progress-track{width:100%;height:22px;background:#090d0b;border:1px solid #713f12;border-radius:4px;overflow:hidden;position:relative;margin-bottom:12px;box-shadow:inset 0 2px 4px #000000e6}.asset-progress-fill{height:100%;background:linear-gradient(90deg,#ca8a04,#eab308,#fef08a);transition:width .18s cubic-bezier(.4,0,.2,1);position:relative;box-shadow:0 0 12px #eab30899}.asset-progress-percent{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;color:#fff;text-shadow:0 1px 3px #000000;pointer-events:none}.asset-loading-status{font-size:13px;color:#e2e8f0;margin-bottom:14px;min-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.asset-loading-meta{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#64748b;border-top:1px solid #1e293b;padding-top:10px}.asset-cache-badge{display:inline-flex;align-items:center;gap:6px;color:#22c55e;font-weight:600}.asset-retry-btn{background:#b91c1c;color:#fff;border:1px solid #ef4444;padding:6px 16px;border-radius:4px;cursor:pointer;font-size:12px;font-weight:600}.hud-debug-pill{position:fixed;top:75px;left:16px;z-index:1000;pointer-events:auto;background:#0f172aeb;border:1px solid #38bdf8;color:#38bdf8;padding:6px 14px;font-size:13px;font-weight:700;border-radius:20px;cursor:pointer;box-shadow:0 4px 12px #0009;transition:all .2s ease;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.hud-debug-pill:hover{background:#0284c7;color:#fff;box-shadow:0 0 12px #38bdf899;transform:translateY(-1px)}.lobby-debug-bar{display:flex;align-items:center;justify-content:space-between;background:#0f172ab3;border:1px solid #1e293b;border-radius:6px;padding:6px 12px;margin-bottom:12px;font-size:13px;color:#94a3b8}.mode-btn.debug-mode-btn{border-color:#0284c7;background:linear-gradient(180deg,#075985,#0c4a6e);color:#e0f2fe}.mode-btn.debug-mode-btn:hover{background:linear-gradient(180deg,#0284c7,#0369a1);box-shadow:0 0 16px #0284c780}.debug-tabs{display:flex;gap:6px;border-bottom:1px solid #1e293b;margin-bottom:14px;padding-bottom:8px;overflow-x:auto}.debug-tab-btn{background:#0f172a;border:1px solid #334155;color:#94a3b8;padding:5px 12px;font-size:12px;border-radius:4px;cursor:pointer;white-space:nowrap}.debug-tab-btn.active{background:#0284c7;border-color:#38bdf8;color:#fff;font-weight:700}.debug-section-label{font-size:12px;color:#38bdf8;font-weight:700;margin:12px 0 6px;letter-spacing:.5px}.debug-chip-group{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}.debug-chip{background:#1e293b;border:1px solid #475569;color:#e2e8f0;padding:6px 10px;font-size:12px;border-radius:4px;cursor:pointer;transition:all .15s}.debug-chip:hover{background:#334155;border-color:#38bdf8;color:#38bdf8}.debug-chip.active{background:#0369a1;border-color:#38bdf8;color:#fff;font-weight:700}.debug-skill-list{display:flex;flex-direction:column;gap:6px;max-height:240px;overflow-y:auto;padding-right:4px;margin-bottom:12px}.debug-skill-row{display:flex;align-items:center;justify-content:space-between;background:#0f172a;border:1px solid #1e293b;border-radius:4px;padding:6px 10px;font-size:12px}.debug-skill-info{display:flex;align-items:center;gap:8px;color:#f1f5f9}.debug-skill-btns{display:flex;gap:6px}.debug-mini-btn{background:#1e293b;border:1px solid #334155;color:#94a3b8;padding:3px 8px;font-size:11px;border-radius:3px;cursor:pointer}.debug-mini-btn:hover{background:#0284c7;color:#fff;border-color:#38bdf8}.hud-equip-pill{position:fixed;top:118px;left:16px;z-index:1000;pointer-events:auto;background:#1c140af0;border:1px solid #d97706;color:#fde047;padding:6px 14px;font-size:13px;font-weight:700;border-radius:20px;cursor:pointer;box-shadow:0 4px 12px #0009;transition:all .2s ease;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.hud-equip-pill:hover{background:#b45309;color:#fff;box-shadow:0 0 12px #f59e0b99;transform:translateY(-1px)}.mir2-equip-modal-panel{max-width:780px!important;width:95%;max-height:calc(100vh - 40px)!important;max-height:calc(100dvh - 40px)!important;overflow-y:auto!important;box-sizing:border-box!important;margin:auto;border-radius:0!important}@media(max-height:750px){.panel{padding:14px 18px}.main-title{font-size:24px;margin-bottom:2px}.subtitle{margin-bottom:12px}.mir2-char-panel{gap:10px}.doll-center-preview{height:190px!important}}.mir2-char-panel{display:flex;gap:16px;align-items:stretch}@media(max-width:680px){.mir2-char-panel{flex-direction:column}}.mir2-char-doll-col{background:#0c120e;border:1px solid #3d2b14;border-radius:6px;padding:12px;display:flex;flex-direction:column;align-items:center;gap:8px;min-width:280px;flex-shrink:0}.doll-slot-row.doll-top{display:flex;justify-content:center}.doll-middle-row{display:flex;align-items:center;justify-content:space-between;width:100%;gap:10px}.doll-col-left,.doll-col-right{display:flex;flex-direction:column;gap:8px}.doll-center-preview{width:120px;height:236px;background:radial-gradient(circle,#253327,#0c120e 75%);border:1px solid #2d3b2e;border-radius:4px;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;overflow:hidden}.doll-avatar-figure{width:64px;height:96px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#0006;border:1px dashed #524229;border-radius:4px}.doll-avatar-name{font-size:13px;font-weight:700;color:#fde047;margin-top:6px}.doll-avatar-lvl{font-size:11px;color:#94a3b8}.mir2-slot-box{width:54px;height:54px;background:#171f19;border:1px solid #45351e;border-radius:4px;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;cursor:pointer;transition:all .15s ease;-webkit-user-select:none;user-select:none}.mir2-slot-box:hover{border-color:#d97706;background:#233027;transform:scale(1.04)}.mir2-slot-box.selected{border-color:#facc15;box-shadow:0 0 10px #facc1580;background:#2b3b2f}.mir2-slot-watermark{position:absolute;top:2px;left:4px;font-size:9px;color:#64748b;pointer-events:none}.mir2-slot-item{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.mir2-slot-placeholder{width:28px;height:28px;border:1px dashed #334436;border-radius:2px}.mir2-char-stats-col{flex:1;display:flex;flex-direction:column;gap:10px}.char-stats-card{background:#0f1611;border:1px solid #3d2b14;border-radius:6px;padding:10px 14px;display:grid;grid-template-columns:repeat(2,1fr);gap:6px 12px}.char-stats-title{grid-column:span 2;font-size:13px;font-weight:700;color:#facc15;border-bottom:1px solid #2d2417;padding-bottom:4px;margin-bottom:2px}.char-stat-row{display:flex;justify-content:space-between;font-size:12px;color:#cbd5e1}.char-stat-row strong{font-weight:700}.char-item-inspect-card{background:#141c16;border:1px solid #543c1c;border-radius:6px;padding:12px;min-height:100px;display:flex;flex-direction:column;justify-content:center}.inspect-item-header{display:flex;align-items:center;gap:10px;margin-bottom:8px}.inspect-item-name{font-size:14px;font-weight:700;color:#fef08a}.inspect-item-name.tier-1{color:#f1f5f9}.inspect-item-name.tier-2{color:#60a5fa}.inspect-item-name.tier-3{color:#c084fc}.inspect-item-name.tier-4{color:#f59e0b}.inspect-item-sub{font-size:11px;color:#94a3b8}.inspect-item-desc{font-size:12px;color:#e2e8f0;line-height:1.5;background:#0c120e;padding:8px 10px;border-radius:4px;border:1px solid #28372a}.inspect-sell-btn{margin-top:10px;background:#7f1d1d;border:1px solid #ef4444;color:#fef2f2;padding:6px 12px;font-size:12px;font-weight:700;border-radius:4px;cursor:pointer;transition:all .15s ease}.inspect-sell-btn:hover{background:#991b1b;border-color:#f87171}.inspect-empty-prompt{text-align:center;color:#64748b;font-size:12px;padding:16px 0}.replace-skills-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:14px}@media(max-width:680px){.replace-skills-grid{grid-template-columns:1fr}}.replace-skill-card{background:linear-gradient(180deg,#18120d,#100b08);border:1.5px solid #4a3a2a;border-radius:0;padding:12px;display:flex;flex-direction:column;justify-content:space-between;gap:8px;box-shadow:0 4px 10px #000000b3,inset 0 0 8px #0009}.replace-skill-header{display:flex;align-items:center;gap:8px}.replace-skill-title{font-size:14px;font-weight:700;font-family:SimSun,serif;color:#fef08a}.replace-skill-lvl{font-size:11px;color:#94a3b8}.replace-skill-desc{font-size:11px;color:#cbd5e1;line-height:1.4;margin:0;flex:1}.replace-confirm-btn{background:linear-gradient(180deg,#7c5d35,#523c21,#382714);border:1px solid #caa156;border-top-color:#ffe090;border-left-color:#ffe090;border-bottom-color:#1a1006;border-right-color:#1a1006;color:#fff4d0;padding:6px 10px;font-size:12px;font-family:SimSun,serif;font-weight:700;border-radius:0;cursor:pointer;text-shadow:1px 1px 0 #000;transition:all .15s ease}.replace-confirm-btn:hover{background:linear-gradient(180deg,#967040,#684d2a,#47321a);color:#fff;border-color:gold}.luck-9-glow-badge{color:#fde047;font-weight:800;text-shadow:0 0 8px rgba(250,204,21,.8),0 0 16px rgba(234,179,8,.5);animation:luck9Pulse 1.8s ease-in-out infinite alternate;letter-spacing:.5px}@keyframes luck9Pulse{0%{text-shadow:0 0 6px rgba(250,204,21,.7);color:#fef08a}to{text-shadow:0 0 14px rgba(250,204,21,1),0 0 22px rgba(245,158,11,.8);color:#fff}}.char-sets-card{background:#151a14;border:1px solid #365314;border-radius:6px;padding:8px 10px;margin-top:8px}.char-sets-title{font-size:11px;font-weight:700;color:#a3e635;margin-bottom:6px;border-bottom:1px solid #273e0f;padding-bottom:3px}.char-set-badge{display:flex;flex-direction:column;gap:2px;margin-bottom:5px}.char-set-name{font-size:11px;font-weight:700;color:#facc15}.char-set-desc{font-size:11px;color:#86efac;line-height:1.3}.inspect-superior-badge{display:inline-block;margin-left:6px;background:linear-gradient(135deg,#7e22ce,#a855f7);color:#fdf4ff;font-size:10px;font-weight:800;padding:1px 5px;border-radius:3px;border:1px solid #d8b4fe;box-shadow:0 0 6px #a855f799;vertical-align:middle}.inspect-luck-tag{font-size:12px;font-weight:700;color:#facc15;margin-top:4px}.inspect-affixes-list{display:flex;flex-direction:column;gap:2px;margin-top:4px;padding:4px 6px;background:#7e22ce26;border:1px solid #6b21a8;border-radius:4px}.inspect-affix-row{font-size:11px;font-weight:700;color:#c084fc}.inspect-set-tag{font-size:11px;color:#a3e635;margin-top:4px;font-weight:600}.offer-superior-badge{margin-left:4px;background:#7e22ce;border:1px solid #c084fc;color:#f3e8ff;font-size:9px;font-weight:800;padding:0 4px;border-radius:3px}.item-luck-pill{margin-left:6px;background:#713f12;border:1px solid #eab308;color:#fef08a;font-size:10px;font-weight:700;padding:0 5px;border-radius:3px}.offer-affix-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}.offer-affix-pill{background:#2e1065;border:1px solid #7c3aed;color:#ddd6fe;font-size:10px;font-weight:700;padding:1px 5px;border-radius:3px}.shop-luck-badge{display:inline-block;margin-left:6px;font-size:11px;color:#fde047}.shop-luck-badge.max{color:#fef08a;font-weight:800;text-shadow:0 0 8px rgba(250,204,21,.9)}
