:root{--bg: #0d0a14;--bg2: #141021;--panel: #171224;--panel2: #1f1830;--border: #3a2d55;--text: #f5e6c4;--dim: #9a8bbd;--gold: #d4a24c;--gold-bright: #ffd700;--gold-dim: #b8962e;--jade: #3ddc84;--jade-dark: #2c5f5d;--cinnabar: #e63946;--hp: #e5484d;--mp: #3e8ef7;--exp: #7bed6f;--accent: #a06bff;--font-title: "Playfair Display", "Be Vietnam Pro", serif;--font-body: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font-body);overflow:hidden;user-select:none;-webkit-user-select:none}input,textarea,[contenteditable=true]{user-select:text;-webkit-user-select:text}h1,h2,h3,.panel-header h2,.panel-header h3,.auth-logo h1,.dead-card h2{font-family:var(--font-title);letter-spacing:1px}button{background:var(--panel2);color:var(--text);border:1px solid var(--border);border-radius:6px;padding:6px 12px;cursor:pointer;font-size:14px}button:hover:not(:disabled){background:#2a2140;border-color:var(--accent)}button:disabled{opacity:.4;cursor:not-allowed}button.primary{background:#5b34a8;border-color:#7a4fd0}button.primary:hover:not(:disabled){background:#6d42c4}button.danger{background:#5c1f26;border-color:#a83a44}input,select{background:#0f0b18;color:var(--text);border:1px solid var(--border);border-radius:6px;padding:7px 10px;font-size:14px}.center-screen{height:100%;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 30%,#1c1533 0%,var(--bg) 70%)}.auth-box{background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:32px;width:360px;box-shadow:0 0 60px #a06bff26}.auth-box h1{margin:0 0 4px;text-align:center;color:var(--gold)}.auth-box .sub{text-align:center;color:var(--dim);margin-bottom:20px;font-size:13px}.auth-box input{width:100%;margin-bottom:12px}.auth-box button{width:100%;padding:10px}.tabs{display:flex;gap:8px;margin-bottom:16px}.tabs button{flex:1}.tabs button.active{background:#5b34a8;border-color:#7a4fd0}.error{color:#ff8a8a;font-size:13px;margin:8px 0;min-height:18px;text-align:center}.create-box{background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:28px;width:640px;max-height:92vh;overflow-y:auto}.create-box h1{margin-top:0;color:var(--gold);text-align:center}.path-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:12px 0}.path-card{border:1px solid var(--border);border-radius:8px;padding:10px;cursor:pointer;background:var(--panel2)}.path-card:hover{border-color:var(--accent)}.path-card.selected{border-color:var(--gold);background:#2c2144;box-shadow:0 0 12px #f5c54240}.path-card.subbed{border-color:var(--accent);background:#241b3a}.path-card h3{margin:0 0 4px;font-size:15px}.path-card p{margin:0;font-size:12px;color:var(--dim)}.section-label{color:var(--gold);font-weight:700;margin:16px 0 6px}.check-row{display:flex;flex-wrap:wrap;gap:10px}.check-row label{display:flex;align-items:center;gap:6px;font-size:14px;cursor:pointer}.game-wrap{display:flex;height:100%;width:100%}.game-main{flex:1;display:flex;flex-direction:column;min-width:0;width:100%}.game-topbar-v2{display:flex;align-items:center;gap:8px;padding:6px 10px;flex-wrap:wrap;width:100%;max-width:100%;box-sizing:border-box}.game-header-row{display:flex;gap:8px;align-items:flex-start}.game-menubar{display:flex;align-items:flex-start;gap:6px;padding:4px 10px;flex-wrap:wrap;width:100%;flex-shrink:0}.game-minimap-wrap{position:fixed;top:110px;right:10px;width:170px;z-index:500}.minimap{background:#141020d9;border:1px solid var(--border);border-radius:10px;padding:5px}.minimap-side-actions{position:fixed;top:110px;right:185px;display:flex;flex-direction:column;gap:6px;z-index:500}.minimap-side-actions button{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 6px;min-width:56px;font-size:18px;background:#141020d9;border:1px solid var(--border);border-radius:10px;cursor:pointer;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.minimap-side-actions .side-label{font-size:9px;color:var(--dim);line-height:1;max-width:52px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.minimap-head{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--gold);margin-bottom:3px}.minimap-head button{background:none;border:none;color:var(--dim);cursor:pointer;font-size:11px}.minimap canvas{width:100%;border-radius:6px;display:block}.minimap-actions{display:flex;gap:3px;margin-top:3px}.minimap-actions button{flex:1;min-width:0;padding:3px;font-size:12px;background:#ffffff0d;border:1px solid var(--border);border-radius:5px;cursor:pointer}@media(max-width:768px){.minimap-actions{display:flex;gap:4px}.minimap-actions button{flex:1;padding:6px 4px;font-size:14px;min-height:36px}.minimap-side-actions{top:64px;right:135px}.minimap-side-actions button{min-width:48px;padding:6px 4px;font-size:16px}}.minimap-show{width:40px;height:40px;font-size:18px;background:#141020d9;border:1px solid var(--border);border-radius:10px;cursor:pointer;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.player-menu{background:linear-gradient(165deg,#241a30,#161226);border:1px solid var(--border);border-radius:12px;padding:0;min-width:200px;box-shadow:0 8px 32px #0009}.player-menu-head{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid var(--border)}.player-menu-head b{color:var(--gold)}.player-menu-head span{color:var(--dim);font-size:12px}.player-menu-head button{margin-left:auto;background:none;border:none;color:var(--dim);cursor:pointer}.player-menu-items{display:flex;flex-direction:column;padding:6px;gap:2px}.player-menu-items button{text-align:left;padding:9px 12px;background:none;border:none;border-radius:8px;color:#fff;cursor:pointer;font-size:13px}.player-menu-items button:hover{background:#6a4a8a4d}.channel-wrap{position:relative;flex-shrink:0}.channel-picker{position:fixed;z-index:9000;min-width:180px;max-height:50vh;overflow-y:auto;background:linear-gradient(165deg,#241a30,#161226);border:1px solid var(--border);border-radius:12px;padding:6px;box-shadow:0 8px 32px #0009}.game-menubar .top-actions{flex:1;min-width:200px}.game-menubar::-webkit-scrollbar{width:4px}.game-menubar::-webkit-scrollbar-thumb{background:#fff3;border-radius:2px}.game-topbar-v2 .char-name,.game-topbar-v2 .stage-tag,.game-topbar-v2 .currency{text-shadow:0 1px 3px rgba(0,0,0,.9),0 0 8px rgba(0,0,0,.7)}.game-topbar-v2::-webkit-scrollbar{width:4px}.game-topbar-v2::-webkit-scrollbar-thumb{background:#fff3;border-radius:2px}.menu-toggle{background:#a78bfa26!important;border:1px solid rgba(167,139,250,.4)!important;color:#a78bfa!important;font-size:12px!important;padding:6px 10px!important;white-space:nowrap}.menu-toggle:hover{background:#a78bfa4d!important}.char-name{font-weight:700;color:var(--gold);white-space:nowrap}.stage-tag{color:var(--dim);font-size:13px;white-space:nowrap}.fly-tag{color:#9fd8ff;font-size:12px;white-space:nowrap;background:#508cdc26;border:1px solid rgba(159,216,255,.4);border-radius:10px;padding:1px 8px}.bars{display:flex;gap:10px;flex:1;min-width:280px}.bar{flex:1;min-width:90px}.bar .bar-label{font-size:12px;color:var(--dim);display:flex;justify-content:space-between}.bar .track{height:12px;background:#0a0712;border-radius:6px;overflow:hidden;border:1px solid var(--border)}.bar .fill{height:100%;transition:width .2s}.fill.hp{background:linear-gradient(90deg,#a02328,var(--hp))}.fill.mp{background:linear-gradient(90deg,#2456a0,var(--mp))}.fill.exp{background:linear-gradient(90deg,#3f9e35,var(--exp))}.currency{font-size:13px;white-space:nowrap}.currency .gold{color:var(--gold)}.currency .stone{color:#7de3f4}.canvas-zone{flex:1;position:relative;background:#060409;min-height:0;width:100vw!important;max-width:100vw!important;margin-left:calc(-50vw + 50%)!important;margin-right:calc(-50vw + 50%)!important}.canvas-zone canvas{position:absolute;inset:0;width:100%;height:100%;display:block;cursor:crosshair}.toast-stack-mini{position:absolute;bottom:70px;right:12px;display:flex;flex-direction:column-reverse;gap:6px;z-index:9999;pointer-events:none;max-width:320px;align-items:flex-end}.toast-stack-system{position:absolute;top:38%;left:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;gap:8px;z-index:9999;pointer-events:none;align-items:center;max-width:90%}.toast-mini{font-size:13px;padding:6px 14px}.toast-system{font-size:18px;padding:12px 28px;border-width:2px;box-shadow:0 4px 24px #0009;text-align:center}.toast{background:#140c20f2;border:1px solid var(--gold);color:var(--gold);padding:8px 18px;border-radius:8px;font-size:14px;pointer-events:none;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;animation:toast-in .25s ease-out}@keyframes toast-in{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.hotbar-zone{display:flex;gap:8px;align-items:center;justify-content:center;padding:8px;background:transparent;border-top:none;flex-wrap:wrap;position:absolute;bottom:0;left:0;right:0;margin:0 auto;z-index:50;min-height:60px;pointer-events:none}.canvas-zone>.hotbar-zone{position:fixed!important;bottom:0!important;left:50%!important;right:auto!important;transform:translate(-50%)!important;margin:0!important;z-index:50!important;display:flex!important;justify-content:center!important;visibility:visible!important;opacity:1!important;width:max-content!important;max-width:100vw!important}.hotbar-zone .hotbar,.hotbar-zone .pill-btns{pointer-events:auto}@media(pointer:coarse){.hotbar-zone{background:transparent;border-top:none;padding:6px}.pill-btns{position:absolute;right:8px;bottom:100%;margin-bottom:8px;flex-direction:column}.pill-btn{min-width:52px;height:52px;border-radius:10px;background:#140c20bf;border:1px solid var(--border);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.chatbox{bottom:120px!important;max-height:22vh!important;width:min(300px,calc(100% - 24px))!important;background:transparent!important;font-size:12px}.chat-tabs button{font-size:11px;padding:3px 4px}}.hotbar{display:flex;gap:6px}.slot{width:52px;height:52px;border:1px solid rgba(255,255,255,.35);border-radius:8px;background:#141023bf;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:11px;color:var(--dim);text-align:center;overflow:hidden;text-shadow:0 1px 3px rgba(0,0,0,.9);gap:1px}.slot.filled{border-color:var(--accent);color:var(--text)}.slot .skill-name{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.2;font-size:10px!important}.slot .key{position:absolute;top:2px;left:4px;font-size:10px;color:var(--dim)}.slot .cd{position:absolute;inset:0;background:#000000a6;display:flex;align-items:center;justify-content:center;font-size:16px;color:#fff}.slot .mpcost{position:absolute;bottom:2px;right:4px;font-size:10px;color:var(--mp)}.pill-btns{display:flex;gap:6px}.pill-btn{min-width:64px;height:52px;font-size:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative}.pill-btn .cd{position:absolute;inset:0;background:#000000a6;display:flex;align-items:center;justify-content:center;font-size:15px;color:#fff;border-radius:6px}.side-panel{width:min(680px,90vw);min-height:80vh;max-height:90vh;background:var(--panel);border:1px solid var(--border);border-radius:12px;display:flex;flex-direction:column;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:9000;box-shadow:0 8px 32px #0009}.side-panel .panel-head{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-bottom:1px solid var(--border);font-weight:700;color:var(--gold)}.side-panel .panel-body{flex:1;overflow-y:auto;padding:10px 12px}.stat-grid{display:grid;grid-template-columns:70px 1fr;gap:6px 12px;font-size:13px;align-items:center}.stat-grid .k{color:var(--dim)}.stat-grid .v{text-align:right;display:grid;grid-template-columns:1fr 52px 64px;align-items:center;gap:4px;min-height:28px}.stat-grid .v .val{text-align:right}.stat-grid .v .draft{text-align:center;font-size:11px;min-width:52px}.stat-grid .v .btns{display:flex;gap:4px;justify-content:flex-end;min-width:64px}.points-banner{display:flex;flex-direction:column;gap:6px;margin:10px 0 4px;padding:10px 12px;border:1px solid rgba(245,197,66,.5);border-radius:10px;background:linear-gradient(135deg,#f5c54224,#f5c5420a);font-size:13px;color:#f5c542;text-align:center}.points-banner .pb-stat{font-weight:500}.points-banner .pb-skill{padding:6px 10px;font-size:13px;border-radius:8px;border:1px solid #a78bfa;background:#a78bfa26;color:#c4b5fd;cursor:pointer;font-weight:600}.points-banner .pb-skill:hover{background:#a78bfa47}.skill-tabs{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:10px}.skill-tabs button{font-size:12px;padding:4px 8px}.skill-tabs button.active{background:#5b34a8}.tier-label{color:var(--gold);font-size:13px;margin:10px 0 4px;font-weight:700}.skill-row{display:flex;align-items:center;gap:8px;padding:6px;border:1px solid var(--border);border-radius:6px;margin-bottom:4px;background:var(--panel2);font-size:12px}.skill-row.locked{opacity:.45}.skill-row .dot{width:26px;height:26px;border-radius:50%;flex-shrink:0;border:2px solid #555}.skill-row .info{flex:1;min-width:0}.skill-row .nm{font-weight:700;font-size:13px}.skill-row .ds{color:var(--dim);font-size:12px;line-height:1.5;white-space:normal;word-wrap:break-word}.skill-row .lvl{color:var(--gold);font-size:12px;white-space:nowrap}.inv-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:6px}.inv-cell{aspect-ratio:1;border:1px solid var(--border);border-radius:6px;background:#0f0b18;font-size:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;position:relative;padding:2px;text-align:center;overflow:hidden}.inv-cell:hover{border-color:var(--accent)}.inv-cell.selected{border-color:var(--gold)}.inv-cell .qty{position:absolute;bottom:1px;right:3px;font-size:10px;color:var(--gold)}.inv-cell .enh{position:absolute;top:1px;right:3px;font-size:10px;color:#7de3f4}.equip-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:12px}.equip-cell{border:1px solid var(--border);border-radius:6px;background:#0f0b18;min-height:56px;font-size:11px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;padding:4px;text-align:center}.equip-cell .slot-name{color:var(--dim);font-size:10px}.item-actions{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.item-detail{font-size:13px;background:var(--panel2);border:1px solid var(--border);border-radius:8px;padding:10px;margin-top:8px}.item-detail h4{margin:0 0 6px}.shop-row{display:flex;align-items:center;gap:8px;padding:6px;border-bottom:1px solid var(--border);font-size:13px}.shop-row .info{flex:1}.shop-row .price{color:var(--gold);white-space:nowrap}.modal-overlay{position:fixed;inset:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:9000;padding:16px}.modal-box{background:#1e1428;border:1px solid #4a3568;border-radius:12px;padding:0;width:520px;max-width:96%;min-height:85vh;max-height:95vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 8px 32px #0009}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid #4a3568;font-size:16px;font-weight:700;color:var(--gold)}.modal-body>:only-child,.shop-detail>:only-child,.panel-body>:only-child{margin-left:auto;margin-right:auto}.modal-body{display:flex;flex-direction:column;align-items:center;padding:16px 18px;overflow-y:auto;flex:1}.auto-settings-modal{width:420px;max-width:92%;max-height:86%;overflow-y:auto;background:var(--panel);border:2px solid var(--accent);border-radius:12px;padding:20px;box-shadow:0 8px 32px #0009}.auto-settings-modal h4{margin:16px 0 8px;color:var(--gold);font-size:15px}.auto-settings-modal h4:first-child{margin-top:0}.setting-row{display:flex;align-items:center;gap:8px;padding:6px 0;font-size:14px;cursor:pointer}.setting-row input[type=checkbox]{width:18px;height:18px;cursor:pointer}.setting-row input[type=range]{flex:1;cursor:pointer}.quality-checkboxes{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}.quality-checkboxes label{display:flex;align-items:center;gap:4px;font-size:13px;cursor:pointer}.world-map-toolbar{display:flex;justify-content:space-between;align-items:center;padding:8px 4px}.world-map-stats{font-size:13px;color:var(--gold);font-weight:600}.world-map-controls{display:flex;gap:6px}.world-map-controls button{padding:6px 10px;background:#6a4a8a33;border:1px solid var(--border);border-radius:6px;cursor:pointer;font-size:14px}.world-map-controls button:hover{background:#6a4a8a66}.world-map-organic{position:relative;width:100%;aspect-ratio:4 / 3;border-radius:16px;overflow:hidden;border:1px solid rgba(106,74,138,.4);cursor:grab;touch-action:none;background:radial-gradient(ellipse at 20% 30%,rgba(60,40,90,.3) 0%,transparent 50%),radial-gradient(ellipse at 80% 70%,rgba(40,60,100,.3) 0%,transparent 50%),linear-gradient(135deg,#1a1230,#241a3a,#1a1230)}.world-map-organic:active{cursor:grabbing}.world-map-content{position:absolute;inset:-20%;transition:transform .1s ease-out}.world-map-bg{position:absolute;inset:0;background:radial-gradient(ellipse 70% 50% at 25% 25%,rgba(139,115,85,.3) 0%,transparent 70%),radial-gradient(ellipse 60% 45% at 75% 65%,rgba(101,135,101,.25) 0%,transparent 70%),radial-gradient(ellipse 50% 40% at 50% 85%,rgba(70,100,150,.22) 0%,transparent 70%),radial-gradient(ellipse 40% 30% at 85% 20%,rgba(150,80,60,.2) 0%,transparent 70%),linear-gradient(160deg,#2a2118,#3a2d20,#2d2a1e 60%,#1f1c16)}.world-map-bg:before{content:"";position:absolute;inset:0;background-image:repeating-linear-gradient(0deg,transparent 0 39px,rgba(255,255,255,.015) 39px 40px),repeating-linear-gradient(90deg,transparent 0 39px,rgba(255,255,255,.015) 39px 40px);pointer-events:none}.world-map-bg:after{content:"";position:absolute;inset:0;background-image:radial-gradient(1px 1px at 15% 25%,rgba(255,255,255,.4),transparent),radial-gradient(1px 1px at 35% 65%,rgba(255,255,255,.3),transparent),radial-gradient(1px 1px at 55% 15%,rgba(255,255,255,.35),transparent),radial-gradient(1px 1px at 75% 45%,rgba(255,255,255,.25),transparent),radial-gradient(1px 1px at 85% 80%,rgba(255,255,255,.3),transparent),radial-gradient(1.5px 1.5px at 25% 85%,rgba(255,215,150,.4),transparent),radial-gradient(1.5px 1.5px at 65% 30%,rgba(255,215,150,.3),transparent);pointer-events:none}.world-map-svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.map-dot{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;cursor:pointer;z-index:1;transition:transform .2s}.map-dot:hover{transform:translate(-50%,-50%) scale(1.2);z-index:2}.map-dot:before{content:"";width:14px;height:14px;border-radius:50%;background:var(--dot-color, #4488ff);border:2px solid rgba(255,255,255,.8);box-shadow:0 0 10px var(--dot-color, #4488ff),0 2px 6px #00000080}.map-dot.current:before{width:18px;height:18px;animation:pulse-dot 1.5s infinite}@keyframes pulse-dot{0%,to{box-shadow:0 0 10px #f44,0 2px 6px #00000080}50%{box-shadow:0 0 20px #f44,0 2px 6px #00000080}}.map-dot.selected:before{outline:2px solid #7de3f4;outline-offset:2px}.map-dot-icon{font-size:16px;margin-top:2px;filter:drop-shadow(0 1px 2px rgba(0,0,0,.6))}.map-dot-label{font-size:10px;color:#e8e0f0;text-shadow:0 1px 3px rgba(0,0,0,.9);margin-top:2px;white-space:nowrap;max-width:90px;overflow:hidden;text-overflow:ellipsis;font-weight:600}.map-dot-level{font-size:8px;color:#a090b8;text-shadow:0 1px 2px rgba(0,0,0,.9)}.map-dot.locked{cursor:pointer}.map-dot.locked .map-dot-label{color:#888}.map-legend{display:flex;gap:16px;justify-content:center;font-size:12px;color:var(--dim);padding:8px}.map-legend .dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:4px;vertical-align:middle}.map-connections{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}@keyframes bounce{0%,to{transform:translateY(0)}50%{transform:translateY(-4px)}}.map-detail{padding:16px;background:#140e22e6;border:1px solid var(--border);border-radius:8px}.map-detail h4{margin:0 0 8px;color:var(--gold)}.map-detail p{margin:4px 0;font-size:14px;color:var(--dim)}.locked-reason{color:#ff6b6b!important}.teleport-options{display:flex;flex-direction:column;gap:8px;margin-top:12px}.teleport-options button{padding:10px;border:1px solid var(--accent);background:#6a4a8a33;color:var(--text);border-radius:8px;cursor:pointer;font-size:14px}.teleport-options button:hover:not(:disabled){background:#6a4a8a66}.teleport-options button:disabled{opacity:.5;cursor:not-allowed}.skill-tree-2d{display:flex;flex-direction:column;gap:12px}.skill-tree-header{display:flex;justify-content:space-between;align-items:center}.skill-tree-header h4{margin:0;color:var(--gold)}.skill-tree-hint{font-size:12px;color:var(--dim);margin-bottom:4px}.skill-tree-canvas{position:relative;display:flex;flex-direction:column;gap:8px}.skill-links{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}.skill-tree-grid{display:flex;flex-direction:column;gap:8px}.skill-tier-row{display:flex;gap:8px;align-items:flex-start;position:relative;z-index:1}.skill-tier-label{min-width:60px;padding:8px;text-align:center;background:#6a4a8a33;border-radius:6px;font-size:12px;color:var(--dim)}.skill-tier-nodes{display:flex;gap:8px;flex-wrap:wrap;flex:1}.skill-node{min-width:60px;max-width:70px;padding:4px;background:#1e1630f2;border:1px solid var(--border);border-radius:8px;cursor:pointer;text-align:center;transition:all .2s;position:relative}.skill-node:hover{transform:translateY(-2px)}.skill-node.selected{border-color:#7de3f4;box-shadow:0 0 10px #7de3f44d}.skill-node.maxed{border-color:gold;background:#ffd7001a}.skill-node.learned{border-color:#4ade80}.skill-node.available{border-color:var(--accent)}.skill-node.locked{opacity:.5;border-color:#555}.skill-node-icon{font-size:20px}.skill-node-name{font-size:9px;font-weight:600;margin:2px 0;line-height:1.2}.skill-node-level{font-size:9px;color:var(--dim)}.skill-node-req{font-size:10px;color:#ff9a9a;margin-top:4px}.skill-upgrade-btn{position:absolute;top:-8px;right:-8px;width:28px;height:28px;border-radius:50%;background:var(--gold);color:#1a1a1a;font-size:18px;font-weight:700;border:2px solid #fff;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px #0006}.skill-upgrade-btn:hover:not(:disabled){transform:scale(1.1)}.skill-upgrade-btn:disabled{opacity:.4;cursor:not-allowed;background:#666}.skill-max-badge{position:absolute;top:-8px;right:-8px;background:gold;color:#1a1a1a;font-size:10px;font-weight:700;padding:2px 6px;border-radius:10px;border:1px solid #fff}.skill-detail{padding:12px;background:#140e22e6;border:1px solid var(--border);border-radius:8px}.skill-detail h5{margin:0 0 8px;color:var(--gold)}.skill-detail p{margin:4px 0;font-size:13px;color:var(--dim)}.skill-detail-info{display:flex;gap:12px;font-size:12px;margin:8px 0}.skill-req-info{color:#ff9a9a!important}.skill-detail-actions{display:flex;gap:8px;margin-top:8px}.skill-detail-actions button{padding:8px 12px;border:1px solid var(--accent);background:#6a4a8a33;color:var(--text);border-radius:6px;cursor:pointer}.skill-detail-actions button:hover:not(:disabled){background:#6a4a8a66}.skill-detail-actions button:disabled{opacity:.5;cursor:not-allowed}.maxed-label{color:gold;font-weight:600}.version-update-overlay{position:fixed;inset:0;background:#000000d9;display:flex;align-items:center;justify-content:center;z-index:9000}.version-update-modal{background:var(--panel);border:2px solid var(--gold);border-radius:12px;padding:32px;text-align:center;max-width:400px;width:calc(100% - 32px);box-shadow:0 0 40px #d4a24c4d}.version-update-modal h3{margin:0 0 12px;color:var(--gold);font-size:20px}.version-update-modal p{margin:8px 0;color:var(--text)}.version-update-btn{margin-top:16px;padding:12px 32px;font-size:16px;font-weight:700;background:var(--gold);color:#1a1a1a;border:none;border-radius:8px;cursor:pointer}.version-update-btn:hover{filter:brightness(1.1)}.version-update-hint{font-size:12px!important;color:var(--dim)!important;margin-top:12px!important}.modal{background:var(--panel);border:1px solid var(--gold);border-radius:12px;padding:24px;width:520px;max-width:94vw;max-height:88vh;overflow-y:auto}.modal h2{margin-top:0;color:var(--gold);text-align:center}.alloc-row{display:flex;align-items:center;gap:8px;margin-bottom:6px;font-size:14px}.alloc-row .nm{flex:1}.alloc-row button{padding:2px 10px}.zone-list{max-height:50vh;overflow-y:auto}.zone-row{display:flex;justify-content:space-between;padding:8px;border:1px solid var(--border);border-radius:6px;margin-bottom:4px;cursor:pointer;font-size:13px}.zone-row:hover{border-color:var(--accent)}.zone-row.current{border-color:var(--gold);background:#2c2144}.dead-overlay{position:absolute;inset:0;background:#1400008c;display:flex;align-items:center;justify-content:center;z-index:9000;flex-direction:column;gap:12px}.dead-overlay h2{color:#ff8a8a;margin:0}.loading-data{position:absolute;top:8px;left:50%;transform:translate(-50%);display:flex;align-items:center;gap:6px;color:var(--dim);font-size:12px;z-index:20;background:#06040999;padding:4px 12px;border-radius:12px;pointer-events:none}.top-actions{display:flex;gap:6px;flex-wrap:wrap}.top-actions button{font-size:12px;padding:5px 9px}.top-actions button.active{background:#5b34a8;border-color:#7a4fd0}.breakthrough-btn{border-color:var(--gold);color:var(--gold);animation:glow 1.6s infinite alternate}@keyframes glow{0%{box-shadow:0 0 4px #f5c5424d}to{box-shadow:0 0 14px #f5c542cc}}.hint{font-size:12px;color:var(--dim);text-align:center;padding:6px 12px;white-space:normal;line-height:1.5;max-width:100%}.chatbox{position:absolute;left:12px;bottom:90px;width:340px;max-height:260px;display:flex;flex-direction:column;background:#000000b3!important;border:1px solid rgba(255,255,255,.15);border-radius:8px;overflow:hidden;font-size:13px;z-index:60;text-shadow:0 1px 3px rgba(0,0,0,.9),0 0 8px rgba(0,0,0,.6)}.chatbox:not(.minimized){z-index:200}.chat-tabs{display:flex;gap:2px;padding:4px;background:transparent!important;border-bottom:1px solid rgba(255,255,255,.08)}.chat-tabs button{flex:1;font-size:12px;padding:4px 6px;min-height:40px;background:transparent;border:1px solid transparent;border-radius:4px;color:#b8a8d8;cursor:pointer}.chat-tabs button.active{background:#5b34a8;color:#fff;border-color:#7a4fd0}.chat-offline{font-size:12px;color:#888;align-self:center;padding:0 6px}.chat-list{flex:1;overflow-y:auto;padding:6px 8px;min-height:80px;max-height:160px;display:flex;flex-direction:column;gap:3px}.chat-empty{color:#9a8bbd;font-style:italic;text-align:center;padding:12px}.chat-msg{line-height:1.4;word-break:break-word}.chat-msg.system{text-align:center;padding:2px 0}.chat-system-text{color:#ff9d5c;font-weight:600}.chat-name{font-weight:600}.chat-time{color:#8a7a9a;font-size:12px}.chat-content{color:#e8e0f4}.chat-input-row{display:flex;gap:4px;padding:6px;border-top:1px solid rgba(255,255,255,.08)}.chat-input-row input{flex:1;background:#140e2480;border:1px solid #4a3568;border-radius:4px;color:#fff;padding:6px 8px;font-size:13px;min-height:40px}.chat-input-row input:focus{outline:none;border-color:#7a4fd0}.chat-input-row button{padding:8px 14px;min-height:40px;background:#5b34a8;border:1px solid #7a4fd0;border-radius:4px;color:#fff;cursor:pointer;font-size:13px}.chat-input-row button:disabled{opacity:.4;cursor:default}.chat-minimize-btn{background:#6a4a8a4d!important;border:1px solid var(--border)!important;border-radius:6px!important;padding:6px 10px!important;font-size:14px!important;cursor:pointer;flex-shrink:0}.chat-minimize-btn:hover{background:#6a4a8a80!important}@media(max-width:768px){.chatbox.minimized{width:33%!important;max-width:140px!important;left:8px!important;right:auto!important;bottom:8px!important}.chat-minibar{min-height:28px!important;max-height:28px!important;padding:4px 8px!important}.chat-minibar-text{font-size:11px!important}.chat-minibar-icon{font-size:12px!important}.chatbox:not(.minimized){position:fixed!important;inset:auto 8px 8px!important;width:auto!important;max-height:50vh!important;z-index:200!important}}.guild-panel{padding:4px}.guild-tabs{display:flex;gap:4px;margin-bottom:12px}.guild-tabs button{font-size:13px;padding:6px 12px}.guild-tabs button.active{background:#5b34a8;border-color:#7a4fd0}.guild-create input{display:block;width:100%;margin:6px 0;padding:8px;background:#140e24e6;border:1px solid #4a3568;border-radius:4px;color:#fff}.guild-row{display:flex;justify-content:space-between;align-items:center;padding:8px;border:1px solid #3a2a55;border-radius:6px;margin-bottom:6px}.guild-member{display:flex;justify-content:space-between;align-items:center;padding:6px 8px;border-bottom:1px solid #2a1e40}.guild-member-actions{display:flex;gap:4px}.guild-member-actions button{font-size:11px;padding:3px 8px}.guild-vault-item{display:flex;justify-content:space-between;align-items:center;padding:6px 8px;border-bottom:1px solid #2a1e40}.guild-actions{margin-top:12px;display:flex;gap:8px}.dim{color:#9a8bbd}.dim.small{font-size:12px}.panel-loading{padding:20px;text-align:center;color:#888}.tiendao-banner{position:absolute;top:12px;left:50%;transform:translate(-50%);display:flex;align-items:center;gap:8px;padding:10px 20px;background:linear-gradient(135deg,#3c1e5af2,#1e0f3cf2);border:1px solid #ff9d5c;border-radius:8px;box-shadow:0 0 20px #ff9d5c66;z-index:100;animation:tiendao-slide .5s ease-out;max-width:80%}.tiendao-icon{font-size:20px}.tiendao-text{color:#ffd9a8;font-size:15px;font-weight:600;text-shadow:0 0 8px rgba(255,157,92,.6)}@keyframes tiendao-slide{0%{transform:translate(-50%,-30px);opacity:0}to{transform:translate(-50%);opacity:1}}.tiendao-effect{position:absolute;inset:0;pointer-events:none;z-index:99;overflow:hidden}.light-pillar{position:absolute;left:50%;top:-10%;width:120px;height:120%;transform:translate(-50%);background:linear-gradient(to bottom,transparent,rgba(255,215,100,.7),rgba(255,157,92,.9),transparent);filter:blur(8px);animation:pillar-pulse 3s ease-out forwards}.light-flash{position:absolute;inset:0;background:radial-gradient(circle,rgba(255,230,150,.5),transparent 70%);animation:flash-fade 3s ease-out forwards}@keyframes pillar-pulse{0%{opacity:0;transform:translate(-50%) scaleY(.3)}20%{opacity:1;transform:translate(-50%) scaleY(1)}80%{opacity:.8}to{opacity:0;transform:translate(-50%) scaleY(1.2)}}@keyframes flash-fade{0%{opacity:0}15%{opacity:1}to{opacity:0}}.lightning-bolt{position:absolute;left:50%;top:5%;transform:translate(-50%);font-size:120px;animation:bolt-strike .5s ease-out 3;filter:drop-shadow(0 0 20px #ffea00)}.lightning-flash{position:absolute;inset:0;background:#fff;opacity:0;animation:lightning-flash .4s ease-out 3}.charred{position:absolute;left:50%;bottom:20%;transform:translate(-50%);font-size:48px;animation:charred-rise 3s ease-out forwards}@keyframes bolt-strike{0%{transform:translate(-50%) translateY(-100px);opacity:0}50%{opacity:1}to{transform:translate(-50%) translateY(0);opacity:.8}}@keyframes lightning-flash{0%{opacity:0}50%{opacity:.7}to{opacity:0}}@keyframes charred-rise{0%{opacity:0;transform:translate(-50%) translateY(20px)}30%{opacity:1}to{opacity:0;transform:translate(-50%) translateY(-30px)}}.duel-log{max-height:300px;overflow-y:auto;background:#0000004d;border-radius:6px;padding:8px;margin-top:8px;font-family:monospace}.duel-log .small{margin-bottom:2px}.rank-row{display:flex;align-items:center;gap:12px;padding:8px;border-bottom:1px solid #3a2a52}.rank-row:last-child{border-bottom:none}.touch-controls{display:none;position:absolute;inset:0;pointer-events:none;z-index:50}@media(pointer:coarse){.touch-controls{display:none}}.joystick{position:absolute;left:20px;bottom:20px;width:120px;height:120px;border-radius:50%;background:#ffffff14;border:2px solid rgba(255,255,255,.25);pointer-events:auto;touch-action:none}.joystick.active{background:#ffffff26;border-color:#ffc86499}.joystick-knob{position:absolute;left:50%;top:50%;width:48px;height:48px;margin:-24px 0 0 -24px;border-radius:50%;background:#ffc86480;border:2px solid rgba(255,220,150,.8)}.touch-skills{position:absolute;right:16px;bottom:20px;display:grid;grid-template-columns:repeat(4,52px);gap:8px;pointer-events:auto}.touch-btn{width:52px;height:52px;border-radius:12px;font-size:18px;font-weight:700;background:#28193cd9;border:1px solid #6a4a8a;color:#ffd9a8;touch-action:manipulation}.touch-btn:active{background:#50326ef2}.touch-btn.pill{font-size:22px}@media(max-width:768px){.panel-body,.panel,.side-panel .panel-body{-webkit-overflow-scrolling:touch!important;overscroll-behavior:contain;scrollbar-width:thin}.game-wrap{flex-direction:column}.side-panel{width:calc(100% - 16px)!important;max-width:none!important;max-height:92vh;top:auto!important;bottom:8px;left:8px!important;right:8px;transform:none!important;z-index:9000;border:1px solid #6a4a8a;border-radius:12px;background:#140c1efa}.side-panel .panel-body{-webkit-overflow-scrolling:touch;overscroll-behavior:contain}.canvas-zone{position:relative}.canvas-zone canvas{width:100%;height:100%;object-fit:fill;background:#0a0f0a}.game-topbar-v2{gap:4px}.game-topbar-v2 button{padding:8px 10px;font-size:13px;min-height:44px}.chatbox{width:calc(100% - 24px)!important;left:12px;right:12px;bottom:12px;max-height:40vh}.panel-overlay .panel{width:calc(100% - 16px)!important;max-width:none!important;margin:8px;max-height:90vh}.world-map-organic{aspect-ratio:3 / 4}.map-dot-label{font-size:8px;max-width:60px}.map-dot-icon{font-size:13px}.skill-tier-row{flex-direction:column}.skill-tier-label{min-width:auto;width:100%}.skill-tier-nodes{justify-content:center}.skill-node{min-width:100px;max-width:110px}.emoji-picker{grid-template-columns:repeat(8,1fr);max-width:calc(100vw - 32px)}.channel-picker{position:fixed;inset:auto 8px 80px;min-width:auto}.game-minimap-wrap{top:64px!important;right:8px!important;width:120px!important}.hotbar-zone{position:fixed!important;bottom:8px!important;left:0!important;right:0!important;margin:0 auto!important;justify-content:center!important;padding:6px!important;z-index:50!important}.chatbox{bottom:140px!important}.game-menubar{overflow-x:auto!important;flex-wrap:nowrap!important;scrollbar-width:none}.game-menubar::-webkit-scrollbar{display:none}.chatbox.minimized{bottom:86px!important}.minimap-wrap{width:120px!important;height:90px!important;top:70px!important;right:8px!important}.bottom-menu{flex-wrap:wrap!important;max-height:110px!important;overflow-y:auto!important}}.panel-overlay{position:fixed;inset:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:9000;padding:12px;overflow-y:auto}.panel{background:#1e1428;border:1px solid #4a3568;border-radius:12px;padding:20px;width:560px;max-width:100%;min-height:80vh;max-height:90vh;overflow-y:auto;overflow-x:hidden;margin:auto}.side-panel,.panel,.modal{overflow:hidden;word-wrap:break-word;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}.side-panel .panel-body,.panel-body,.modal-body{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch}.side-panel table,.panel table,.modal table{max-width:100%;display:block;overflow-x:auto}.side-panel .panel-body,.panel-body{min-height:150px;overflow-y:auto}.panel-section,.bag-section,.char-section,.stat-section{border:1px solid #4a3568;border-radius:10px;padding:12px;margin-bottom:12px;background:#0003}.panel-section>h3,.panel-section>h4,.bag-section>h3,.bag-section>h4{margin:0 0 10px;padding-bottom:8px;border-bottom:1px solid #3a2a50;color:var(--gold)}.panel-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.panel-header h2{margin:0;font-size:20px}.panel-tabs{display:flex;gap:8px;margin-bottom:12px;border-bottom:1px solid #4a3568;padding-bottom:8px}.panel-tabs button.active{background:#4a3568;color:#ffd9a8}.close{background:transparent;border:none;font-size:20px;cursor:pointer;color:#999;padding:4px 8px}.close:hover{color:#fff}.world-panel{padding:12px}.world-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.world-head h3{margin:0}.world-tabs{display:flex;gap:8px;margin-bottom:12px}.world-tabs button.active{background:#4a3568;color:#ffd9a8}.world-msg{padding:8px;border-radius:6px;margin-bottom:8px;background:#4a35684d}.world-plots{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}.plot{border:1px solid #4a3568;border-radius:8px;padding:12px;text-align:center;cursor:pointer;background:#0003}.plot:hover{border-color:#7a5a9a}.plot-idx{font-size:12px;color:#999;margin-bottom:4px}.world-recipes{display:flex;flex-direction:column;gap:8px}.recipe{border:1px solid #4a3568;border-radius:8px;padding:10px;background:#0003}.recipe-name{font-weight:700;margin-bottom:4px}.recipe-mats{font-size:13px;color:#aaa;margin-bottom:4px}.recipe-result{font-size:13px;color:#7bed9f}.world-decor{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.bonus{color:#7bed9f;font-size:13px}.party-panel{padding:12px}.member-list{display:flex;flex-direction:column;gap:8px;margin-bottom:12px}.rank-list{display:flex;flex-direction:column;gap:4px}.rank-pos{font-weight:700;color:#ffd94d;min-width:36px}.row{display:flex;align-items:center;gap:12px;padding:8px;border:1px solid #3a2a52;border-radius:6px}.badge{display:inline-block;padding:2px 8px;border-radius:10px;font-size:12px;background:#4a3568;color:#ffd9a8}.tabs{display:flex;gap:8px;margin-bottom:12px}.tabs button.active{background:#4a3568;color:#ffd9a8}.danger{background:#5a2a2a;border-color:#8a4a4a}.error{color:#ff8080}.hint{font-size:13px;color:#999;font-style:italic}.guild-deposit{display:flex;gap:8px;align-items:center;margin-bottom:12px;flex-wrap:wrap}.guild-deposit select,.guild-deposit input{padding:6px 10px;border-radius:6px;border:1px solid #4a3568;background:#2a1e3a;color:#fff}.chat-msg.pending{opacity:.6}.chat-pending{font-size:12px}.trade-card{border:1px solid #4a3568;border-radius:8px;padding:12px;margin-bottom:12px;background:#0003}.trade-card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.trade-sides{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:8px}.trade-offer-form{margin-bottom:8px}.trade-inv-list{display:flex;flex-direction:column;gap:4px;max-height:180px;overflow-y:auto;border:1px solid #3a2a52;border-radius:6px;padding:8px;margin-bottom:8px}.trade-inv-item{display:flex;align-items:center;gap:8px;cursor:pointer;padding:4px;border-radius:4px}.trade-inv-item:hover{background:#4a35684d}.trade-inv-item.selected{background:#4a356880}.trade-gold-row{display:flex;align-items:center;gap:8px}.trade-respond{border-top:1px solid #3a2a52;padding-top:8px;margin-top:8px}.trade-respond h5{margin:0 0 8px}.tiendao-more{margin-left:8px;font-size:12px;background:#ff9d5c4d;border-radius:10px;padding:2px 8px}.channel-picker{position:fixed;min-width:200px;max-height:50vh;overflow-y:auto;background:#140c1efa;border:1px solid #6a4a8a;border-radius:8px;padding:6px;z-index:9000;display:flex;flex-direction:column;gap:4px;box-shadow:0 4px 16px #00000080}.channel-picker button{text-align:left;padding:8px 10px;min-height:40px}.channel-picker button.active{background:#6a4a8a80;border-color:#ffd9a8}@media(pointer:coarse)and (orientation:landscape){.chatbox.minimized{width:200px!important;max-width:200px!important;inset:auto auto 8px 8px!important;position:absolute!important}.chatbox:not(.minimized){position:fixed!important;inset:auto 8px 8px!important;width:auto!important;max-height:50vh!important;z-index:200!important}}@media(max-width:768px)and (orientation:landscape){.chatbox:not(.minimized){max-height:45vh!important}.chatbox.minimized{inset:auto auto 8px 8px!important}.hotbar{max-width:70vw}.side-panel{max-height:85vh!important}}.chatbox.minimized{overflow:hidden}.chat-minibar{display:flex;align-items:center;gap:8px;padding:6px 10px;cursor:pointer;background:#140c1e8c;border:1px solid rgba(255,255,255,.08);border-radius:8px;min-height:32px;max-height:32px}.chat-minibar-icon{font-size:14px}.chat-minibar-text{flex:1;font-size:12px;color:var(--dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-minibar-expand{color:var(--dim);font-size:10px}.chat-minimize-btn{padding:6px 8px;background:none;border:none;color:var(--dim);cursor:pointer;font-size:14px}.emoji-picker{position:absolute;bottom:calc(100% + 4px);left:0;display:grid;grid-template-columns:repeat(6,1fr);gap:2px;background:#140c1efa;border:1px solid #6a4a8a;border-radius:8px;padding:8px;z-index:1000;box-shadow:0 4px 16px #00000080}.quest-panel{display:flex;flex-direction:column;gap:12px}.quest-create{display:flex;flex-direction:column;gap:8px;padding:12px;border:1px solid #6a4a8a;border-radius:8px;background:#28193c80}.quest-create .form-row{display:flex;gap:8px;flex-wrap:wrap}.quest-create .form-row label{display:flex;flex-direction:column;gap:4px;font-size:13px}.quest-create input,.quest-create select{padding:8px 10px;border-radius:6px;min-height:40px;background:#140c1ecc;border:1px solid #6a4a8a;color:#ffd9a8}.quest-list{display:flex;flex-direction:column;gap:10px}.quest-item{padding:12px;border:1px solid #4a3560;border-radius:8px;background:#1e122d99}.quest-title{font-weight:700;font-size:15px}.quest-type{font-size:12px;color:#c9a0ff;margin:2px 0}.quest-desc{font-size:13px;color:#b8a0d0;margin:4px 0}.quest-progress{display:flex;align-items:center;gap:8px;margin:8px 0}.progress-bar{flex:1;height:10px;border-radius:5px;background:#0006;overflow:hidden}.progress-bar .fill{height:100%;border-radius:5px;background:linear-gradient(90deg,#6a4a8a,#c9a0ff);transition:width .3s}.quest-reward{font-size:13px;color:#ffd9a8}.quest-actions{display:flex;gap:8px;margin-top:8px;align-items:center}.quest-actions .claimed{color:#7fd67f;font-size:13px}.promo-banner{position:absolute;top:8px;left:50%;transform:translate(-50%);display:flex;gap:8px;z-index:60;pointer-events:none}.promo-item{padding:4px 12px;border-radius:12px;font-size:13px;font-weight:700;background:#b47814e6;border:1px solid #ffd9a8;color:#fff;white-space:nowrap}.news-panel{display:flex;flex-direction:column;gap:12px}.news-panel .panel-header{display:flex;justify-content:space-between;align-items:center}.news-panel select{padding:8px 10px;border-radius:6px;min-height:40px;background:#140c1ecc;border:1px solid #6a4a8a;color:#ffd9a8}.news-list{display:flex;flex-direction:column;gap:8px}.news-item{padding:10px 12px;border:1px solid #4a3560;border-radius:8px;background:#1e122d99}.news-item.pinned{border-color:#ffd9a8}.news-title{font-weight:700;cursor:pointer;font-size:14px}.news-title:hover{color:#ffd9a8}.news-date{font-size:12px;color:#8a7590;margin-top:2px}.news-content{margin-top:8px;padding-top:8px;border-top:1px solid #4a3560;font-size:14px;line-height:1.6;white-space:pre-wrap}.world-visit-panel{display:flex;flex-direction:column;gap:12px}.world-owner{font-size:16px;padding:8px 0}.world-decor-view,.world-crops-view{display:flex;flex-wrap:wrap;gap:8px}.decor-item,.crop-item{padding:6px 10px;border-radius:6px;font-size:13px;background:#281937b3;border:1px solid #5a4560}.crop-item.ready{border-color:#7fd47f}.visitor-list{margin-top:12px}.visitor-items{display:flex;flex-direction:column;gap:6px;margin-top:8px}.visitor-item{padding:8px;border-radius:6px;background:#1e122d80;font-size:14px}.fashion-panel{display:flex;flex-direction:column;gap:12px}.fashion-slot h4{margin:8px 0}.fashion-items{display:flex;flex-direction:column;gap:8px}.fashion-item{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid #4a3560;border-radius:8px;background:#1e122d99}.fashion-item.equipped{border-color:#ffd9a8}.fashion-swatch{width:28px;height:28px;border-radius:50%;flex-shrink:0;border:2px solid rgba(255,255,255,.3)}.fashion-info{flex:1;display:flex;flex-direction:column;gap:2px;font-size:13px}.topup-panel{display:flex;flex-direction:column;gap:12px}.topup-packages{display:flex;flex-direction:column;gap:8px}.topup-package{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border:1px solid #4a3560;border-radius:8px;background:#1e122d99}.topup-price{font-weight:700;color:#ffd9a8;font-size:16px}.topup-orders{display:flex;flex-direction:column;gap:6px}.topup-order{display:flex;justify-content:space-between;padding:8px;border-radius:6px;background:#1e122d80;font-size:14px}.admin-topup{display:flex;flex-direction:column;gap:12px;max-width:600px}.config-row{display:flex;align-items:center;gap:10px;padding:8px 0}.config-row label{display:flex;align-items:center;gap:8px}.provider-select{display:flex;align-items:center;gap:8px;margin:8px 0}.provider-select button.active{background:#6a4a8a;color:#fff}@media(max-width:768px){.panel-overlay{align-items:flex-end!important;padding:0!important}.panel-overlay .panel{width:100%!important;max-width:100%!important;margin:0!important;border-radius:16px 16px 0 0!important;max-height:92vh!important;padding:14px!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch}.panel-header h2,.panel-header h3{font-size:17px!important}.panel-header button{min-width:40px;min-height:40px}.panel table,.admin-table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;font-size:13px}.panel th,.panel td,.admin-table th,.admin-table td{padding:6px 8px!important;white-space:nowrap}.panel button,.topup-package button,.fashion-item button{min-height:40px;padding:8px 14px!important;font-size:14px!important}.toolbar,.game-toolbar{overflow-x:auto;-webkit-overflow-scrolling:touch;flex-wrap:nowrap!important}.toolbar button,.game-toolbar button{flex-shrink:0;font-size:13px!important;padding:8px 10px!important}.admin-tabs,.tabs{overflow-x:auto;-webkit-overflow-scrolling:touch;flex-wrap:nowrap!important;gap:6px!important}.admin-tabs button,.tabs button{flex-shrink:0;font-size:13px!important;padding:8px 10px!important}.admin-panel,.panel{overflow-x:hidden!important;max-width:100vw!important}.admin-table-wrapper,.table-wrapper{overflow-x:auto!important;-webkit-overflow-scrolling:touch;max-width:100%!important}.admin-table,.panel table{min-width:600px}.config-row{flex-direction:column!important;align-items:flex-start!important;gap:6px!important}.promo-banner{flex-wrap:wrap!important;justify-content:center;max-width:95vw}.promo-item{font-size:11px!important;padding:3px 8px!important}.guild-member{flex-wrap:wrap;gap:6px}}.town-panel{max-width:520px}.safe-badge{background:#3fae5a26;border:1px solid #3fae5a;border-radius:8px;padding:8px 12px;margin-bottom:12px;font-size:13px;color:#7de3a8;text-align:center}.town-msg{background:#7de3f41a;border-radius:6px;padding:8px;margin:8px 0;font-size:13px;text-align:center}.gold-display{font-size:15px;font-weight:700;color:gold;margin-bottom:10px}.shop-item{display:flex;justify-content:space-between;align-items:center;padding:10px;border:1px solid #3a2f4a;border-radius:8px;margin-bottom:8px;gap:10px}.shop-item-info{flex:1}.shop-item-name{font-weight:700;font-size:14px}.shop-item-desc{font-size:12px;color:#aaa;margin:2px 0}.shop-item-price{font-size:13px;color:gold}.shop-item button{min-width:70px;min-height:36px;background:#4a3568;border:1px solid #6a4a8a;border-radius:6px;color:#fff;cursor:pointer}.shop-item button:hover:not(:disabled){background:#5a4278}.shop-item button:disabled{opacity:.5}.town-inn{text-align:center;padding:20px 10px}.town-inn p{margin:8px 0;color:#ccc}.rest-btn{margin-top:12px;padding:12px 32px;font-size:16px;background:#3fae5a;border:none;border-radius:8px;color:#fff;cursor:pointer;min-height:48px}.rest-btn:hover{background:#4fc06a}.menu-btn{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:72px;min-height:64px;background:transparent;border:none;color:#c9b8e8;cursor:pointer;transition:all .2s;flex-shrink:0;font-size:10px;text-align:center;line-height:1.3;padding:6px 4px;overflow:visible}.menu-btn .menu-label{white-space:normal!important;word-break:break-word!important;max-width:100%!important;overflow:visible!important;text-overflow:clip!important;display:block!important;line-height:1.3!important}.menu-btn:hover{background:#ffffff14;border-radius:8px}.menu-btn:hover{background:#4a3568f2;border-color:#7de3f4;color:#7de3f4;transform:translateY(-2px)}.menu-btn.active{background:#ffffff1f;border-radius:8px;color:gold}.menu-btn svg{pointer-events:none}.menu-label{display:block;font-size:10px;line-height:1.3;text-align:center;margin-top:2px;white-space:normal;overflow:visible;word-break:break-word;max-width:100%}.menu-btn:after{content:attr(data-tooltip);position:absolute;bottom:calc(100% + 8px);left:50%;transform:translate(-50%) translateY(4px);background:#0a0810f2;border:1px solid #4a3568;border-radius:6px;padding:6px 12px;font-size:13px;color:#fff;white-space:nowrap;opacity:0;pointer-events:none;transition:all .2s;z-index:1000}.menu-btn:hover:after{opacity:1;transform:translate(-50%) translateY(0)}.menu-badge{position:absolute;top:-6px;right:-6px;background:#f44;color:#fff;font-size:11px;font-weight:700;min-width:20px;height:20px;border-radius:10px;display:flex;align-items:center;justify-content:center;padding:0 5px}.top-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center;width:100%}:root{--gold-bright: #ffd700;--gold-dim: #b8962e;--jade: #4ade80;--jade-dark: #166534;--panel-bg: linear-gradient(165deg, #1e1830 0%, #161226 50%, #1a1428 100%);--panel-border: #4a3a6a;--header-bg: linear-gradient(180deg, #2a2044 0%, #1e1830 100%)}.panel,.side-panel{background:var(--panel-bg)!important;border:1px solid var(--panel-border)!important;border-radius:14px!important;box-shadow:0 8px 32px #00000080,inset 0 1px #ffd70014!important;overflow:hidden}.panel-header,.side-panel .panel-head{background:var(--header-bg)!important;border-bottom:1px solid var(--gold-dim)!important;padding:14px 18px!important;margin:0!important}.panel-header h2,.panel-header h3,.side-panel .panel-head h3{color:var(--gold-bright)!important;font-size:18px!important;font-weight:700!important;text-shadow:0 2px 8px rgba(255,215,0,.25)!important;margin:0!important;letter-spacing:.5px}.panel-body,.side-panel .panel-body{padding:14px 16px!important}.panel-tabs{display:flex!important;gap:6px!important;padding:10px 14px 0!important;border-bottom:1px solid var(--panel-border);margin-bottom:12px!important}.panel-tabs button{background:transparent!important;border:none!important;border-bottom:2px solid transparent!important;border-radius:0!important;color:var(--dim)!important;padding:10px 16px!important;font-size:14px!important;font-weight:600!important;transition:all .2s}.panel-tabs button:hover{color:var(--text)!important}.panel-tabs button.active{color:var(--gold-bright)!important;border-bottom-color:var(--gold-bright)!important;text-shadow:0 0 12px rgba(255,215,0,.4)}.btn-primary,.panel button.primary{background:linear-gradient(180deg,#f5c542,#d4a017)!important;border:1px solid #8a6a1a!important;color:#1a1206!important;font-weight:700!important;border-radius:8px!important;padding:10px 20px!important;box-shadow:0 2px 8px #d4a01759!important;transition:all .2s}.btn-primary:hover,.panel button.primary:hover{transform:translateY(-1px);box-shadow:0 4px 12px #d4a01780!important}.inv-grid,.item-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(64px,1fr))!important;gap:8px!important;padding:8px!important}.inv-slot,.item-slot{aspect-ratio:1;background:linear-gradient(165deg,#241d38,#1a1428)!important;border:2px solid #3a2d55!important;border-radius:10px!important;display:flex!important;align-items:center!important;justify-content:center!important;cursor:pointer;transition:all .2s;position:relative;overflow:hidden}.inv-slot:hover,.item-slot:hover{transform:scale(1.06);border-color:var(--gold-bright)!important;box-shadow:0 0 12px #ffd7004d;overflow:visible!important;z-index:50}.item-tooltip{position:absolute;bottom:calc(100% + 8px);left:50%;transform:translate(-50%);min-width:200px;max-width:260px;background:#140e20f7;border:1px solid rgba(212,175,55,.5);border-radius:10px;padding:10px 12px;z-index:100;pointer-events:none;box-shadow:0 8px 24px #0009;text-align:left}.item-tooltip .tt-name{font-weight:700;font-size:14px;margin-bottom:2px}.item-tooltip .tt-quality{font-size:11px;color:#9a8bbd;margin-bottom:6px}.item-tooltip .tt-stats{font-size:12px;color:#7bed9f;margin-bottom:6px;line-height:1.5}.item-tooltip .tt-desc{font-size:12px;color:#9a8bbd;font-style:italic;margin-bottom:6px;line-height:1.4}.item-tooltip .tt-sell{font-size:12px;color:#9a8bbd}.item-tooltip .tt-sell span{color:#f5c542;font-weight:700}.inv-slot .qty,.item-slot .qty{position:absolute;bottom:2px;right:6px;font-size:11px;font-weight:700;color:#fff;text-shadow:0 1px 3px #000}.inv-slot .bound-icon,.item-slot .bound-icon{position:absolute;top:2px;left:4px;font-size:12px;text-shadow:0 1px 3px #000;pointer-events:none}.info-card{background:#ffffff08;border:1px solid var(--panel-border);border-radius:10px;padding:12px 14px;margin-bottom:10px}.info-card .label{color:var(--dim);font-size:12px;margin-bottom:4px}.info-card .value{color:var(--text);font-size:15px;font-weight:600}.stat-bar{height:10px;background:#00000073;border-radius:6px;overflow:hidden;border:1px solid rgba(255,255,255,.08)}.stat-bar .fill{height:100%;border-radius:6px;transition:width .3s ease}.stat-bar.hp .fill{background:linear-gradient(90deg,#ff6b6b,#e5484d);box-shadow:0 0 8px #e5484d80}.stat-bar.mp .fill{background:linear-gradient(90deg,#60a5fa,#3e8ef7);box-shadow:0 0 8px #3e8ef780}.stat-bar.exp .fill{background:linear-gradient(90deg,#7bed6f,#4ade80);box-shadow:0 0 8px #4ade8080}.shop-item{background:#ffffff06!important;border:1px solid var(--panel-border)!important;border-radius:12px!important;padding:12px 14px!important;transition:all .2s}.shop-item:hover{border-color:var(--gold-dim)!important;background:#ffd7000a!important}.dead-overlay{position:absolute;inset:0;background:#0a050feb;display:flex;align-items:center;justify-content:center;z-index:9000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.dead-card{background:linear-gradient(165deg,#241a30,#161226);border:1px solid #5a3a6a;border-radius:18px;padding:36px 40px;max-width:480px;width:calc(100% - 40px);text-align:center;box-shadow:0 12px 48px #0009,0 0 40px #9650c826}.dead-icon{font-size:56px;margin-bottom:12px}.dead-card h2{color:#ff6b6b;font-size:24px;margin:0 0 10px;text-shadow:0 2px 12px rgba(255,80,80,.4)}.dead-desc{color:#9a8bbd;font-size:14px;margin-bottom:24px}.dead-options{display:flex;flex-direction:column;gap:12px}.dead-btn{display:flex;align-items:center;gap:14px;background:#ffffff0a;border:1px solid #4a3568;border-radius:12px;padding:16px 18px;cursor:pointer;transition:all .2s;text-align:left;width:100%}.dead-btn:hover:not(:disabled){transform:translateY(-2px);border-color:gold;box-shadow:0 4px 16px #ffd70033}.dead-btn:disabled{opacity:.45;cursor:not-allowed}.dead-btn-icon{font-size:32px;flex-shrink:0}.dead-btn-title{display:block;font-size:16px;font-weight:700;color:#fff;margin-bottom:4px}.dead-btn-desc{display:block;font-size:12px;color:#9a8bbd}.dead-btn.town .dead-btn-title{color:#7de3f4}.dead-btn.pill .dead-btn-title{color:gold}.auth-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 20% 10%,rgba(120,60,180,.18) 0%,transparent 50%),radial-gradient(ellipse at 80% 90%,rgba(60,120,200,.12) 0%,transparent 50%),radial-gradient(ellipse at 50% 50%,#1a1430,#0d0a18);position:relative;overflow:hidden;padding:20px}.auth-bg{position:absolute;inset:0;pointer-events:none}.auth-cloud{position:absolute;opacity:.35;animation:drift 14s ease-in-out infinite}.auth-cloud.c1{top:8%;left:6%}.auth-cloud.c2{bottom:12%;right:8%;animation-delay:-7s}.auth-lantern{position:absolute;animation:sway 5s ease-in-out infinite}.auth-lantern.l1{top:6%;right:12%}.auth-lantern.l2{bottom:8%;left:10%;animation-delay:-2.5s}@keyframes drift{0%,to{transform:translate(0) translateY(0)}50%{transform:translate(30px) translateY(-14px)}}@keyframes sway{0%,to{transform:rotate(-4deg)}50%{transform:rotate(4deg)}}.auth-container{position:relative;z-index:1;width:100%;max-width:420px}.auth-logo{text-align:center;margin-bottom:28px}.auth-logo h1{margin:12px 0 6px;font-size:34px;font-weight:800;letter-spacing:2px;background:linear-gradient(180deg,#ffe8a0,#f5c542 45%,#b8860b);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;text-shadow:0 4px 24px rgba(245,197,66,.25);white-space:nowrap}.auth-tagline{color:#9a8bbd;font-size:13px;letter-spacing:1px}.auth-box{background:linear-gradient(165deg,#241a30f5,#161226fa);border:1px solid #4a3a6a;border-radius:18px;padding:28px;box-shadow:0 16px 64px #0000008c,inset 0 1px #ffd7001a;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.auth-tabs{display:flex;gap:8px;margin-bottom:22px;background:#0000004d;border-radius:12px;padding:4px}.auth-tabs button{flex:1;background:transparent;border:none;border-radius:9px;padding:11px;font-size:15px;font-weight:600;color:#9a8bbd;cursor:pointer;transition:all .25s}.auth-tabs button.active{background:linear-gradient(180deg,#6a4fd0,#4a34a8);color:#fff;box-shadow:0 2px 12px #6a4fd073}.auth-field{margin-bottom:16px}.auth-field label{display:block;font-size:13px;font-weight:600;color:#c9b8e8;margin-bottom:7px;letter-spacing:.3px}.auth-input{width:100%;background:#0006!important;border:1px solid #4a3568!important;border-radius:10px!important;padding:13px 15px!important;font-size:15px!important;color:#fff!important;transition:all .2s;outline:none}.auth-input::placeholder{color:#6a5a8a}.auth-input:focus{border-color:#a06bff!important;box-shadow:0 0 0 3px #a06bff2e!important;background:#00000080!important}.auth-pw-wrap{position:relative}.auth-pw-wrap .auth-input{padding-right:48px!important}.auth-pw-toggle{position:absolute;right:6px;top:50%;transform:translateY(-50%);background:transparent!important;border:none!important;font-size:19px;cursor:pointer;padding:8px!important;opacity:.75;width:auto!important}.auth-pw-toggle:hover{opacity:1}.auth-error{background:#e5484d1f;border:1px solid rgba(229,72,77,.4);border-radius:10px;padding:10px 14px;color:#ff9a9a;font-size:13px;margin-bottom:16px;text-align:center}.auth-submit{width:100%;background:linear-gradient(180deg,#f5c542,#d4a017,#b8860b)!important;border:1px solid #8a6a1a!important;border-radius:12px!important;padding:14px!important;font-size:17px!important;font-weight:700!important;color:#1a1206!important;cursor:pointer;transition:all .2s;box-shadow:0 4px 20px #d4a01759!important;letter-spacing:.5px}.auth-submit:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 28px #d4a01780!important}.auth-submit:disabled{opacity:.6;cursor:wait}.auth-features{display:flex;justify-content:center;gap:16px;margin-top:20px;padding-top:18px;border-top:1px solid rgba(74,53,104,.5)}.auth-feature{font-size:12px;color:#9a8bbd}.auth-footer{text-align:center;margin-top:20px;font-size:12px;color:#8a7a9a}@media(max-width:480px){.auth-logo h1{font-size:27px}.auth-box{padding:22px 18px}.auth-features{flex-wrap:wrap;gap:8px}}:root{--q-pham: #e8e8e8;--q-linh: #3b82f6;--q-bao: #a855f7;--q-tien: #f97316;--q-thanh: #ef4444;--q-than: #ffd700;--q-hiem: #ff6b9d}.inv-slot,.item-slot{width:48px!important;height:48px!important;min-width:48px;min-height:48px;aspect-ratio:1;padding:6px!important}.inv-slot svg,.item-slot svg{width:32px;height:32px}.inv-grid,.item-grid{grid-template-columns:repeat(auto-fill,48px)!important;gap:8px!important;justify-content:start}.q-pham{border-color:var(--q-pham)!important}.q-hiem{border-color:var(--q-hiem)!important;box-shadow:0 0 8px #ff6b9d59!important}.q-linh{border-color:var(--q-linh)!important;box-shadow:0 0 8px #3b82f659!important}.q-bao{border-color:var(--q-bao)!important;box-shadow:0 0 8px #a855f766!important}.q-tien{border-color:var(--q-tien)!important;box-shadow:0 0 10px #f9731673!important}.q-thanh{border-color:var(--q-thanh)!important;box-shadow:0 0 12px #ef444480!important}.q-than{border-color:var(--q-than)!important;box-shadow:0 0 14px #ffd7008c!important}.panel-header,.side-panel .panel-head{position:relative;text-align:center}.panel-header:before,.panel-header:after{content:"☁";position:absolute;top:50%;transform:translateY(-50%);color:var(--gold-dim);font-size:18px;opacity:.6}.panel-header:before{left:16px}.panel-header:after{right:16px}.panel-header h2,.panel-header h3{display:inline-block;position:relative;padding-bottom:6px}.panel-header h2:after,.panel-header h3:after{content:"";position:absolute;bottom:0;left:20%;right:20%;height:2px;background:linear-gradient(90deg,transparent,var(--gold),transparent)}.empty-slot-hint{color:#9a8bbd59;font-size:20px;font-weight:300;-webkit-user-select:none;user-select:none}.empty-state{text-align:center;padding:40px 20px;color:var(--dim)}.empty-icon{font-size:48px;margin-bottom:12px;opacity:.6}.empty-hint{font-size:12px;margin-top:6px;opacity:.7}.more-menu-wrap{position:relative;flex-shrink:0}.more-menu{position:fixed;min-width:200px;max-height:70vh;overflow-y:auto;background:linear-gradient(165deg,#241a30,#161226);border:1px solid var(--border);border-radius:12px;padding:6px;z-index:9000;box-shadow:0 8px 32px #0009;display:flex;flex-direction:column;gap:2px}.more-menu button{width:100%;text-align:left;justify-content:flex-start;padding:9px 12px!important;font-size:13px!important;border-radius:8px!important}.npc-dialog-overlay{position:absolute;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:9000;padding:20px}.npc-dialog{background:linear-gradient(165deg,#2a2138,#1a1428);border:1px solid var(--gold);border-radius:16px;max-width:520px;width:100%;box-shadow:0 12px 48px #0009,0 0 24px #d4a24c33;overflow:hidden;animation:slideUp .25s ease-out}@keyframes slideUp{0%{transform:translateY(30px);opacity:0}to{transform:translateY(0);opacity:1}}.npc-dialog-header{background:linear-gradient(180deg,rgba(212,162,76,.15) 0%,transparent 100%);padding:14px 18px;border-bottom:1px solid rgba(212,162,76,.3);position:relative}.npc-dialog-name{font-family:var(--font-title);font-size:18px;font-weight:700;color:var(--gold-bright)}.npc-dialog-title{font-size:12px;color:var(--dim);margin-top:2px}.npc-dialog-close{position:absolute;top:10px;right:10px;background:transparent!important;border:none!important;color:var(--dim);font-size:18px;cursor:pointer;padding:6px!important}.npc-dialog-close:hover{color:#fff}.npc-dialog-body{padding:18px;cursor:pointer;min-height:80px}.npc-dialog-text{font-size:15px;line-height:1.6;color:var(--text);font-style:italic}.npc-dialog-hint{font-size:11px;color:var(--dim);margin-top:8px;text-align:right}.npc-dialog-actions{display:flex;gap:10px;padding:14px 18px;border-top:1px solid rgba(212,162,76,.2);flex-wrap:wrap}.npc-action-btn{flex:1;min-width:120px;padding:12px!important;border-radius:10px!important;font-size:14px!important;font-weight:600!important;cursor:pointer;transition:all .2s;border:1px solid var(--border)!important;background:#ffffff0d!important;color:var(--text)!important}.npc-action-btn:hover{transform:translateY(-2px)}.npc-action-btn.shop{border-color:#3b82f6!important}.npc-action-btn.forge{border-color:#e63946!important}.npc-action-btn.quest{border-color:#d4a24c!important}.npc-action-btn.inn{border-color:#3ddc84!important}.auto-on{background:linear-gradient(180deg,#3ddc84,#2a9a5c)!important;border-color:#3ddc84!important;color:#062a15!important;font-weight:700!important;animation:autoPulse 1.5s ease-in-out infinite}@keyframes autoPulse{0%,to{box-shadow:0 0 8px #3ddc8466}50%{box-shadow:0 0 20px #3ddc84cc}}.customize-grid{display:flex;flex-direction:column;gap:10px;margin-bottom:16px}.customize-row{display:flex;align-items:center;gap:10px}.customize-label{min-width:90px;font-size:13px;font-weight:600;color:var(--text)}.customize-opts{display:flex;gap:6px;flex-wrap:wrap;flex:1}.customize-opts button{padding:7px 12px!important;font-size:12px!important;border-radius:8px!important;border:1px solid var(--border)!important;background:#ffffff0a!important;color:var(--dim)!important;cursor:pointer;transition:all .2s}.customize-opts button.active{border-color:var(--gold)!important;background:#d4a24c26!important;color:var(--gold-bright)!important;font-weight:600}.char-preview{text-align:center;margin:16px 0}.preview-canvas{background:radial-gradient(ellipse at 50% 40%,#2a2138,#141021);border:1px solid var(--border);border-radius:12px}.char-select{max-width:800px;margin:40px auto;padding:24px;text-align:center}.char-select h2{color:var(--gold);margin-bottom:12px}.char-select-balance{font-size:16px;margin-bottom:20px;color:var(--dim)}.char-select-balance strong{color:gold}.char-slots{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:20px}.char-slot{border:1px solid var(--border);border-radius:12px;padding:20px;background:#140c1ecc}.char-slot.filled{border-color:var(--gold)}.char-slot-name{font-size:18px;font-weight:700;color:var(--gold);margin-bottom:8px}.char-slot-info{font-size:13px;color:var(--dim);margin-bottom:12px}.char-slot-empty{font-size:14px;color:var(--dim);margin-bottom:12px}.btn-unlock{padding:12px 24px;font-size:15px;background:linear-gradient(135deg,#6a4a8a,#4a3568);border:1px solid var(--gold);border-radius:8px;color:#fff;cursor:pointer;margin-bottom:16px}.btn-unlock:hover:not(:disabled){background:linear-gradient(135deg,#7a5a9a,#5a4578)}.btn-unlock:disabled{opacity:.5;cursor:default}.char-select-hint{font-size:13px;color:var(--dim);font-style:italic}.char-select-loading{text-align:center;padding:60px;font-size:16px;color:var(--dim)}.slot-pay-panel{border:1px solid var(--gold);border-radius:10px;padding:16px;margin-bottom:16px;background:#140c1e99;max-width:520px}.slot-pay-title{font-size:14px;margin-bottom:12px}.slot-pay-options{display:flex;flex-direction:column;gap:10px;margin-bottom:12px}.slot-pay-options button{padding:10px 16px;font-size:14px;border-radius:8px;cursor:pointer}.slot-pay-options button:disabled{opacity:.5;cursor:default}.btn-pay-momo{background:linear-gradient(135deg,#a50064,#7a004b);border:1px solid #d63384;color:#fff}.btn-pay-zalopay{background:linear-gradient(135deg,#0068ff,#004db3);border:1px solid #33a3ff;color:#fff}.slot-pay-hint{font-size:13px;color:var(--dim)}.slot-pay-pending{border:1px dashed var(--gold);border-radius:10px;padding:14px 16px;margin-bottom:16px;max-width:520px}.slot-pay-pending p{margin-bottom:10px}.bag-layout{display:flex;gap:16px;align-items:flex-start}.bag-char-panel{flex:0 0 320px;min-width:0}.bag-items-panel{flex:1;min-width:0}.char-equip-layout{display:flex;gap:8px;align-items:flex-start;justify-content:center}.equip-col{display:flex;flex-direction:column;gap:6px}.char-visual{display:flex;flex-direction:column;align-items:center;padding:8px;background:#1410234d;border:1px solid var(--border);border-radius:12px;min-width:140px}.bar{margin-bottom:4px}.bar .track{height:10px;background:#0a0712;border-radius:5px;overflow:hidden;border:1px solid var(--border)}.bar .fill{height:100%;border-radius:5px;transition:width .3s}.bar .fill.hp{background:linear-gradient(90deg,#f44,#f66)}.bar .fill.mp{background:linear-gradient(90deg,#48f,#6af)}@media(max-width:768px){.bag-layout{flex-direction:column}.bag-char-panel{flex:none;width:100%}.bag-items-panel{width:100%}}.game-main{position:relative!important;background:transparent!important}.game-wrap{background:#060409}.game-topbar-v2{position:absolute!important;top:0!important;left:0!important;right:0!important;z-index:100!important;background:transparent!important;background-image:none!important;border:none!important;box-shadow:none!important;pointer-events:none!important}.game-topbar-v2>*{pointer-events:auto!important}.game-menubar{position:absolute!important;top:64px!important;left:0!important;right:0!important;z-index:100!important;background:transparent!important;background-image:none!important;border:none!important;box-shadow:none!important;max-height:none!important;overflow-y:visible!important;overflow-x:hidden!important}.canvas-zone{flex:1!important;min-height:0!important;width:100%!important;align-self:stretch!important}.admin-float-btn{position:static!important}.game-topbar-v2{background:transparent!important;border:none!important;margin-bottom:4px!important;padding:6px 10px!important;overflow:visible!important;flex-wrap:wrap!important}.game-menubar{display:flex!important;flex-wrap:wrap!important;align-items:flex-start!important;gap:6px!important;padding:6px 10px!important;margin:0 0 4px!important;background:transparent!important;border:none!important;width:100%!important;max-width:calc(100vw - 200px)!important;box-sizing:border-box!important}.game-menubar .quick-actions{display:flex!important;gap:6px!important;align-items:flex-start!important;flex-wrap:wrap!important}.game-menubar .quick-actions .menu-btn,.game-menubar .quick-actions .menu-toggle{flex-direction:column!important;gap:2px!important;font-size:10px!important;text-align:center!important;line-height:1.2!important;width:64px!important;height:64px!important}@media(max-width:768px){.game-menubar{top:108px!important}.game-menubar .quick-actions{gap:4px!important;flex-wrap:nowrap!important;overflow-x:auto!important;scrollbar-width:none}.game-menubar .quick-actions::-webkit-scrollbar{display:none}.game-menubar .quick-actions .menu-btn,.game-menubar .quick-actions .menu-toggle{width:56px!important;height:56px!important;min-width:56px!important;flex-shrink:0!important;font-size:9px!important}}.game-menubar .top-actions{display:flex!important;flex-wrap:wrap!important;gap:6px!important;align-items:center!important;flex:1 1 auto!important;min-width:0!important}.game-menubar .top-actions button,.game-menubar .menu-toggle{flex-shrink:0!important;white-space:normal!important;background:transparent!important;background:none!important;border:none!important;box-shadow:none!important;color:#d4c5a0!important;text-shadow:0 1px 3px rgba(0,0,0,.9)!important;flex-direction:column!important;gap:4px!important;font-size:11px!important;text-align:center!important;line-height:1.3!important;min-width:64px!important;min-height:64px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:8px 6px!important;cursor:pointer!important}.game-menubar .top-actions button:hover,.game-menubar .menu-toggle:hover{background:radial-gradient(ellipse at center,rgba(212,175,55,.15) 0%,transparent 70%)!important;transform:translateY(-3px) scale(1.05)!important}.game-menubar .top-actions button svg,.game-menubar .menu-toggle svg{filter:drop-shadow(0 1px 2px rgba(0,0,0,.8)) drop-shadow(0 0 6px rgba(212,175,55,.3))!important;width:28px!important;height:28px!important}.game-menubar .top-actions button{color:#ffd54f!important}.game-menubar .top-actions button:hover{color:#fff!important;transform:translateY(-2px)}.game-hotbar{background:transparent!important;border-top:none!important}.stone-shop{padding:4px}.stone-shop-header{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;margin:-4px -4px 12px;background:linear-gradient(135deg,#1a0b2e,#2d1b4e,#1a0b2e);border-bottom:1px solid rgba(168,85,247,.3);border-radius:8px 8px 0 0}.stone-shop-title{font-size:18px;font-weight:700;background:linear-gradient(90deg,#a855f7,#3b82f6,#22d3ee);-webkit-background-clip:text;-webkit-text-fill-color:transparent;text-shadow:0 0 20px rgba(168,85,247,.5)}.stone-balance{font-size:14px;color:#e0e7ff;background:#3b82f626;padding:6px 12px;border-radius:20px;border:1px solid rgba(59,130,246,.3)}.stone-balance b{color:#60a5fa;font-size:16px}.stone-shop-filters{margin-bottom:12px}.stone-search{width:100%;padding:8px 12px;margin-bottom:8px;background:#1e1b4b99;border:1px solid rgba(168,85,247,.3);border-radius:8px;color:#e0e7ff;font-size:14px}.stone-search::placeholder{color:#6b7280}.stone-search:focus{outline:none;border-color:#a855f7;box-shadow:0 0 0 2px #a855f733}.quality-tabs{display:flex;gap:6px;flex-wrap:wrap}.quality-tabs button{padding:6px 14px;border-radius:16px;border:1px solid rgba(255,255,255,.15);background:#ffffff0d;color:#9ca3af;font-size:13px;cursor:pointer;transition:all .2s}.quality-tabs button:hover{background:#ffffff1a;transform:translateY(-1px)}.quality-tabs button.active{background:#a855f733;border-color:#a855f7;color:#fff;box-shadow:0 0 12px #a855f74d}.stone-shop-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(80px,1fr));gap:12px;max-height:60vh;overflow-y:auto;padding:8px 4px}.stone-shop-grid::-webkit-scrollbar{width:6px}.stone-shop-grid::-webkit-scrollbar-track{background:#ffffff0d;border-radius:3px}.stone-shop-grid::-webkit-scrollbar-thumb{background:#a855f766;border-radius:3px}.shop-icon-item{display:flex;flex-direction:column;align-items:center;padding:8px 4px;background:#ffffff08;border:1px solid rgba(255,255,255,.1);border-radius:8px;cursor:pointer;transition:all .2s;position:relative}.shop-icon-item:hover{background:#ffffff14;transform:translateY(-2px);box-shadow:0 4px 12px #0000004d}.shop-icon-item .icon{font-size:32px;margin-bottom:4px}.shop-icon-item .name{font-size:10px;text-align:center;line-height:1.2;max-height:24px;overflow:hidden;color:#e8e8e8}.shop-icon-item.q-pham{border-color:#e8e8e859}.shop-icon-item.q-hiem{border-color:#ff6b9d99;box-shadow:0 0 8px #ff6b9d4d}.shop-icon-item.q-hiem .name{color:#ffa4c0}.shop-icon-item.q-bao{border-color:#a855f7b3;box-shadow:0 0 10px #a855f766;background:linear-gradient(135deg,#a855f714,#ffffff08)}.shop-icon-item.q-bao .name{color:#d8b4fe}.shop-icon-item.q-tien{border-color:#f97316cc;box-shadow:0 0 12px #f9731680;background:linear-gradient(135deg,#f973161f,#ffffff08);animation:q-tien-glow 2s ease-in-out infinite}.shop-icon-item.q-tien .name{color:#fdba74;font-weight:700}@keyframes q-tien-glow{0%,to{box-shadow:0 0 12px #f9731680}50%{box-shadow:0 0 20px #f97316cc}}.shop-icon-item.q-thanh{border-color:#ef4444e6;box-shadow:0 0 14px #ef444499;background:linear-gradient(135deg,#ef444426,#ffffff08);animation:q-thanh-glow 1.8s ease-in-out infinite}.shop-icon-item.q-thanh .name{color:#fca5a5;font-weight:700}@keyframes q-thanh-glow{0%,to{box-shadow:0 0 14px #ef444499}50%{box-shadow:0 0 24px #ef4444e6}}.shop-icon-item.q-than{border:2px solid transparent;background:linear-gradient(#140a1ee6,#140a1ee6) padding-box,linear-gradient(45deg,gold,#ffec8b,#b8860b,gold) border-box;box-shadow:0 0 16px #ffd7008c;animation:q-than-glow 3s ease-in-out infinite}.shop-icon-item.q-than .name{font-weight:700;background:linear-gradient(45deg,gold,#ffec8b,#fff7cc,gold);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}@keyframes q-than-glow{0%,to{box-shadow:0 0 16px #ffd7008c}50%{box-shadow:0 0 24px #ffd700d9}}.shop-icon-item.q-linh{border:2px solid rgba(59,130,246,.9);background:radial-gradient(ellipse at center,rgba(59,130,246,.18),rgba(59,130,246,.06),transparent);box-shadow:0 0 20px #3b82f68c,0 0 40px #3b82f64d,inset 0 0 20px #3b82f61f;animation:q-linh-divine 2.5s ease-in-out infinite;position:relative;overflow:hidden}.shop-icon-item.q-linh:before{content:"";position:absolute;top:-50%;left:-50%;width:200%;height:200%;background:conic-gradient(from 0deg,transparent,rgba(147,197,253,.35),transparent 30%);animation:q-linh-spin 3s linear infinite;pointer-events:none}.shop-icon-item.q-linh .name{color:#93c5fd;font-weight:700;text-shadow:0 0 10px rgba(59,130,246,.8)}@keyframes q-linh-divine{0%,to{box-shadow:0 0 20px #3b82f68c,0 0 40px #3b82f64d}50%{box-shadow:0 0 30px #3b82f6d9,0 0 60px #3b82f680}}@keyframes q-linh-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes shop-spin{to{transform:rotate(360deg)}}@keyframes shop-spin-rev{0%{transform:rotate(360deg)}to{transform:rotate(0)}}.shop-icon-item.q-hiem,.shop-icon-item.q-bao,.shop-icon-item.q-tien,.shop-icon-item.q-thanh,.shop-icon-item.q-than{overflow:hidden}.shop-icon-item.q-hiem:before,.shop-icon-item.q-bao:before,.shop-icon-item.q-tien:before,.shop-icon-item.q-thanh:before,.shop-icon-item.q-than:before,.shop-icon-item.q-than:after,.shop-icon-item.q-linh:after{content:"";position:absolute;top:-50%;left:-50%;width:200%;height:200%;pointer-events:none}.shop-icon-item.q-hiem:before{background:conic-gradient(from 0deg,transparent,rgba(255,107,157,.35),transparent 40%);animation:shop-spin 6s linear infinite}.shop-icon-item.q-bao:before{background:conic-gradient(from 0deg,transparent,rgba(168,85,247,.45),transparent 45%);animation:shop-spin 5s linear infinite}.shop-icon-item.q-tien:before{background:conic-gradient(from 0deg,transparent,rgba(249,115,22,.5),transparent 50%);animation:shop-spin 4s linear infinite}.shop-icon-item.q-thanh:before{background:conic-gradient(from 0deg,transparent,rgba(239,68,68,.55),transparent 55%);animation:shop-spin 3.5s linear infinite}.shop-icon-item.q-than:before{background:conic-gradient(from 0deg,transparent,rgba(255,215,0,.6),transparent 55%);animation:shop-spin 3s linear infinite}.shop-icon-item.q-than:after{background:conic-gradient(from 180deg,transparent,rgba(255,236,139,.35),transparent 40%);animation:shop-spin-rev 3s linear infinite}.shop-icon-item.q-linh:before{background:conic-gradient(from 0deg,transparent,rgba(147,197,253,.65),transparent 60%);animation:shop-spin 2.5s linear infinite}.shop-icon-item.q-linh:after{background:conic-gradient(from 180deg,transparent,rgba(59,130,246,.4),transparent 45%);animation:shop-spin-rev 2.5s linear infinite}@media(prefers-reduced-motion:reduce){.shop-icon-item.q-hiem:before,.shop-icon-item.q-bao:before,.shop-icon-item.q-tien:before,.shop-icon-item.q-thanh:before,.shop-icon-item.q-than:before,.shop-icon-item.q-linh:before,.shop-icon-item.q-than:after,.shop-icon-item.q-linh:after{animation:none}}.shop-detail-overlay{position:fixed;inset:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:9000}.shop-detail{background:linear-gradient(165deg,#2a2138,#1a1428);border:1px solid var(--gold);border-radius:12px;padding:20px;max-width:400px;width:90%}.slot-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.slot-tabs button{padding:4px 10px;font-size:12px;background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:12px;color:#c9b8e8;cursor:pointer}.slot-tabs button.active{background:#a855f74d;border-color:#a855f7;color:#fff}.stone-shop-row{display:flex;align-items:center;gap:10px;padding:12px;background:linear-gradient(135deg,#1e1b4bcc,#312e8166);border:1px solid;border-radius:10px;transition:all .2s}.stone-shop-row:hover{transform:translate(4px);box-shadow:0 4px 16px #a855f733}.stone-shop-row .info{flex:1;min-width:0}.stone-shop-row input[type=number]{width:52px;padding:6px;background:#0000004d;border:1px solid rgba(168,85,247,.3);border-radius:6px;color:#fff;text-align:center}.stone-price{font-weight:700;color:#60a5fa;font-size:15px;white-space:nowrap;text-shadow:0 0 8px rgba(96,165,250,.5)}.stone-buy-btn{padding:8px 20px;background:linear-gradient(135deg,#7c3aed,#3b82f6);border:none;border-radius:8px;color:#fff;font-weight:700;cursor:pointer;transition:all .2s;box-shadow:0 2px 8px #7c3aed66}.stone-buy-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 16px #7c3aed99}.stone-buy-btn:disabled{opacity:.5;cursor:not-allowed}.stone-shop-note{margin-top:12px;padding:10px;text-align:center;font-size:12px;color:#a78bfa;background:#a855f71a;border-radius:8px;border:1px dashed rgba(168,85,247,.3)}.shop-tabs{display:flex;gap:8px;margin-bottom:12px;padding:4px;background:#0003;border-radius:10px}.shop-tab{flex:1;padding:10px;border:none;border-radius:8px;background:transparent;color:#9ca3af;font-size:14px;font-weight:700;cursor:pointer;transition:all .2s}.shop-tab.active-gold{background:linear-gradient(135deg,#b45309,#f59e0b);color:#fff;box-shadow:0 2px 8px #f59e0b66}.shop-tab.active-stone{background:linear-gradient(135deg,#7c3aed,#3b82f6);color:#fff;box-shadow:0 2px 8px #7c3aed66}@media(max-width:768px){.game-menubar{background:transparent!important;border:none!important;box-shadow:none!important;padding:2px 8px!important;min-height:0!important}.game-menubar:not(:has(.top-actions)) .menu-toggle,.game-menubar .menu-toggle{background:#140c1ed9!important;border:1px solid rgba(255,255,255,.15)!important;border-radius:8px!important;padding:6px 12px!important;font-size:14px!important;min-height:40px!important}.game-topbar-v2{background:transparent!important;padding:4px 8px!important}.canvas-zone{position:absolute!important;inset:0!important}.canvas-zone>canvas{width:100%!important;height:100%!important;object-fit:fill!important}.chatbox{bottom:90px!important;left:8px!important;right:auto!important;width:280px!important;max-width:calc(100vw - 16px)!important;z-index:60!important}.chatbox.minimized{bottom:90px!important;left:8px!important;width:auto!important;max-width:200px!important}.game-topbar-v2{padding-right:140px!important}.game-minimap-wrap{top:60px!important;right:8px!important;left:auto!important;width:120px!important;z-index:100!important}.game-menubar{z-index:150!important}.game-menubar .menu-toggle{position:relative!important;z-index:151!important}.game-menubar .top-actions .menu-btn,.game-menubar .top-actions button{width:100%!important;height:64px!important;min-height:64px!important;padding:6px 4px!important;font-size:11px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;text-align:center!important;line-height:1.2!important;background:transparent!important;border:none!important}.game-menubar .top-actions{position:fixed!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;width:90vw!important;max-width:400px!important;max-height:70vh!important;overflow-y:auto!important;background:#0f0a19f2!important;border:1px solid var(--border)!important;border-radius:12px!important;padding:16px!important;z-index:1000!important;display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:10px!important;box-shadow:0 8px 32px #0009!important}.game-menubar .top-actions .popup-close-btn{position:absolute!important;top:8px!important;right:12px!important;width:32px!important;height:32px!important;min-height:32px!important;font-size:18px!important;background:#ffffff1a!important;border:1px solid var(--border)!important;border-radius:50%!important;color:#fff!important;cursor:pointer!important;display:flex!important;align-items:center!important;justify-content:center!important;z-index:1001!important;grid-column:1 / -1!important;justify-self:end!important;margin-bottom:8px!important}.game-menubar .quick-actions{display:flex!important;gap:6px!important;align-items:center!important;width:auto!important;max-width:65vw!important;padding:4px 0!important}.game-menubar .quick-actions .menu-btn,.game-menubar .quick-actions .menu-toggle{flex:1!important;min-width:0!important;height:56px!important;flex-direction:column!important;gap:2px!important;font-size:10px!important;text-align:center!important}.game-menubar .quick-actions .menu-btn:nth-child(4){display:none!important}}.map-modal{max-width:700px!important;width:90vw!important}.map-tabs{display:flex;gap:8px}.map-tabs button{padding:8px 16px;background:transparent;border:1px solid var(--border);border-radius:8px;color:#c9b8e8;cursor:pointer;font-size:14px}.map-tabs button.active{background:#4a3568cc;border-color:gold;color:gold}.map-modal-body{padding:16px}.current-map-view h4{margin:0 0 12px;color:gold;text-align:center}.map-legend{display:flex;gap:16px;justify-content:center;margin-top:12px;font-size:13px;color:#c9b8e8}.map-legend i{font-style:normal;margin-right:4px}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track{background:linear-gradient(180deg,#1a1428,#0f0a1a);border-radius:5px;border:1px solid rgba(212,175,55,.2)}::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#d4af37,#8b6914,#d4af37);border-radius:5px;border:1px solid rgba(0,0,0,.3)}::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#f5d76e,#d4af37,#f5d76e);box-shadow:0 0 8px #d4af3780}.modal-box{background:linear-gradient(165deg,#1e1830eb,#12101ef2,#0f0c1af2),url(/assets/ui/popup-bg.webp) center/cover no-repeat!important;background-blend-mode:normal!important;border:2px solid transparent!important;border-image:linear-gradient(135deg,#d4af37,#8b6914,#d4af37) 1!important;border-radius:16px!important;box-shadow:0 0 0 1px #000c,0 20px 60px #000000b3,0 0 40px #d4af3726,inset 0 1px #ffffff0d!important;position:relative}.modal-box:before{content:"☯";position:absolute;top:-14px;left:50%;transform:translate(-50%);font-size:20px;background:#1e1830;padding:0 10px;color:#d4af37;text-shadow:0 0 10px rgba(212,175,55,.8);z-index:10}.modal-box .modal-head,.modal-box .tab-bar,.modal-box .map-tabs{position:relative;z-index:5}.modal-head{background:linear-gradient(180deg,rgba(212,175,55,.12) 0%,transparent 100%)!important;border-bottom:1px solid rgba(212,175,55,.3)!important;padding:14px 20px!important}.modal-head span,.modal-head h3,.modal-head h4{color:gold!important;text-shadow:0 0 12px rgba(212,175,55,.5),0 2px 4px rgba(0,0,0,.8)!important;font-weight:700!important;letter-spacing:1px!important}.panel-box,.shop-detail,.npc-dialog{background:radial-gradient(ellipse at top,rgba(74,53,104,.25) 0%,transparent 50%),linear-gradient(165deg,#1e1830,#12101e)!important;border:1px solid rgba(212,175,55,.4)!important;border-radius:12px!important;box-shadow:0 8px 32px #00000080,0 0 20px #d4af371a!important}button.primary,.shop-tab.active-gold,.shop-tab.active-stone{background:linear-gradient(135deg,#d4af37,#8b6914,#d4af37)!important;border:1px solid #f5d76e!important;color:#1a0f00!important;font-weight:700!important;text-shadow:0 1px 0 rgba(255,255,255,.3)!important;box-shadow:0 2px 8px #d4af3766,inset 0 1px #ffffff4d!important;border-radius:8px!important}button.primary:hover,.shop-tab.active-gold:hover,.shop-tab.active-stone:hover{box-shadow:0 2px 12px #d4af37b3,inset 0 1px #fff6!important;transform:translateY(-1px)}.section-label,.stone-shop-title{color:gold!important;text-shadow:0 0 8px rgba(212,175,55,.4)!important;font-weight:700!important;letter-spacing:.5px!important;border-bottom:1px solid rgba(212,175,55,.2)!important;padding-bottom:4px!important;margin-bottom:8px!important}input,select,textarea{background:#0006!important;border:1px solid rgba(212,175,55,.3)!important;border-radius:6px!important;color:#e8e0d0!important;padding:8px 12px!important}input:focus,select:focus,textarea:focus{border-color:#d4af37!important;box-shadow:0 0 8px #d4af374d!important;outline:none!important}.modal-overlay,.shop-detail-overlay,.npc-dialog-overlay{background:radial-gradient(ellipse at center,#0a0612b3,#05030ad9)!important;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.menu-btn{background:none!important;border:none!important;box-shadow:none!important;padding:8px 6px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;cursor:pointer;position:relative;transition:all .2s ease!important;min-width:64px!important}.menu-btn:hover{transform:translateY(-3px) scale(1.05)!important;background:radial-gradient(ellipse at center,rgba(212,175,55,.15) 0%,transparent 70%)!important}.menu-btn:active{transform:translateY(-1px) scale(1.02)!important}.menu-btn .menu-label{font-size:11px!important;color:#d4c5a0!important;text-shadow:0 1px 3px rgba(0,0,0,.9)!important;white-space:nowrap!important;margin-top:2px!important}.menu-btn:hover .menu-label{color:gold!important;text-shadow:0 0 8px rgba(212,175,55,.8),0 1px 3px rgba(0,0,0,.9)!important}.menu-btn.active{background:radial-gradient(ellipse at center,rgba(212,175,55,.25) 0%,transparent 70%)!important}.menu-btn.active .menu-label{color:gold!important;font-weight:700!important}.menu-btn span:first-child{filter:drop-shadow(0 2px 4px rgba(0,0,0,.6));transition:all .2s ease}.menu-btn:hover span:first-child{filter:drop-shadow(0 2px 8px rgba(212,175,55,.6));transform:scale(1.1)}.menu-badge{position:absolute!important;top:2px!important;right:8px!important;background:linear-gradient(135deg,#f44,#c00)!important;color:#fff!important;font-size:10px!important;font-weight:700!important;min-width:18px!important;height:18px!important;border-radius:9px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0 4px!important;box-shadow:0 2px 4px #00000080,0 0 8px #ff444480!important;border:1px solid rgba(255,255,255,.3)!important}.canvas-zone>.hotbar-zone{bottom:max(0px,env(safe-area-inset-bottom,0px))!important;padding-bottom:max(8px,env(safe-area-inset-bottom,0px))!important}.game-topbar-v2{padding-top:max(6px,env(safe-area-inset-top,0px))!important}@media(max-width:768px){.stone-shop-filters{margin-bottom:8px}.stone-search{font-size:16px!important;padding:10px 12px!important;min-height:44px}.quality-tabs,.slot-tabs{flex-wrap:nowrap!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding-bottom:4px}.quality-tabs::-webkit-scrollbar,.slot-tabs::-webkit-scrollbar{display:none}.quality-tabs button,.slot-tabs button{flex-shrink:0;min-height:40px;font-size:12px!important;padding:6px 12px!important}.stone-shop-header{padding:8px 12px!important;flex-wrap:wrap;gap:6px}.stone-shop-title{font-size:15px!important}.stone-balance{font-size:12px!important;padding:4px 10px!important}.shop-tabs{margin-bottom:8px!important}.shop-tab{min-height:40px;padding:8px!important}.stone-shop-grid{grid-template-columns:repeat(auto-fill,minmax(72px,1fr))!important;gap:8px!important;max-height:52vh!important}.trade-sides{grid-template-columns:1fr!important}.stat-grid{grid-template-columns:56px 1fr!important}.stat-grid .v{grid-template-columns:1fr 48px 56px!important}.chat-input-row input{font-size:16px!important}.promo-item{font-size:12px!important}}.quest-tracker{position:fixed;right:10px;top:300px;width:230px;z-index:490;background:#141020e0;border:1px solid var(--border);border-radius:10px;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);color:#fff}.quest-tracker-head{display:flex;justify-content:space-between;align-items:center;padding:6px 8px;font-size:12px;color:var(--gold);cursor:pointer}.quest-tracker-head button{background:none;border:none;color:var(--dim);cursor:pointer;font-size:12px}.quest-tracker-body{padding:0 8px 8px;max-height:40vh;overflow-y:auto;font-size:12px}.quest-current{border:1px solid var(--border);border-radius:8px;padding:8px;background:#ffd54f14}.quest-name{font-weight:700;color:#ffd54f;margin-bottom:4px}.quest-desc{color:var(--dim);line-height:1.4;margin-bottom:4px}.quest-target{color:#69f0ae;margin-bottom:6px}.quest-hint{color:var(--dim);font-style:italic}.quest-path-btn{width:100%;padding:7px;border-radius:6px;border:1px solid var(--border);background:#ffd54f26;color:#ffd54f;cursor:pointer;font-size:12px}.quest-path-btn.active{background:#ff525226;color:#ff8a80}.quest-done-wrap{margin-top:8px}.quest-done-toggle{background:none;border:none;color:var(--dim);cursor:pointer;font-size:12px;padding:2px 0}.quest-row{padding:3px 0}.quest-row.quest-done{opacity:.55}.quest-tracker-error,.quest-tracker-empty{color:var(--dim);padding:4px 0}.quest-tracker-error button{background:none;border:none;color:#ffd54f;cursor:pointer;text-decoration:underline}@media(max-width:768px){.quest-tracker{top:220px;right:8px;width:200px}}
