/* Qworld PC inspired HUD. World rendering and controls keep their existing IDs. */
:root{--hud-blue:#27b9d8;--hud-gold:#dec18a;--hud-shadow:#062b3e}
body{font-family:Arial,sans-serif}
#game-shell{height:100dvh}
.topbar{position:absolute;top:226px;right:12px;height:auto;padding:0;background:none;border:0;z-index:3}
.topbar .brand,.topbar .zone-title{display:none}
.topbar nav{gap:5px}
.topbar nav button{width:29px;height:29px;border-radius:50%;border:2px solid #e3c990;background:radial-gradient(circle at 40% 25%,#60d6e5,#11738f 55%,#084761);box-shadow:0 0 0 2px #12526a,inset 0 0 3px #fff;font-size:18px;color:#fff0c6}
.topbar #gm-button{width:29px;font-size:10px}
.player-hud{top:16px;left:14px;width:342px;height:126px;padding:0;gap:8px;border:0;border-radius:0;background:none;box-shadow:none;filter:drop-shadow(0 2px 2px #001723)}
.portrait{width:96px;height:112px;flex-shrink:0;border:3px solid #ecd293;border-radius:48% 48% 45% 45%;background:radial-gradient(ellipse at 40% 20%,#294957,#082c3f);box-shadow:0 0 0 4px #1a7e9e,0 0 0 7px #4ed6e7,inset 0 0 8px #000;overflow:visible}
.portrait:before,.portrait:after{content:'';position:absolute;pointer-events:none;width:27px;height:13px;border:3px solid #6cdae6;border-top-color:#f7e4ad;border-radius:70% 15%;background:#147b98;z-index:-1}
.portrait:before{left:-10px;top:-6px;transform:rotate(-30deg)}.portrait:after{right:-10px;bottom:-2px;transform:rotate(25deg)}
.portrait canvas{width:90px;height:106px;border-radius:46%;display:block}
.portrait>span{left:auto;right:-16px;top:-8px;bottom:auto;width:34px;height:27px;border-radius:14px;background:linear-gradient(#237f9a,#074253);font-size:15px;color:white;box-shadow:0 0 0 2px #258db1}
.vitals{padding-top:1px}
.name-line{position:relative;display:block;height:25px;margin:0;padding-left:7px;font-size:16px;line-height:23px;text-shadow:1px 1px 3px #000}
.name-line span{position:absolute;top:91px;left:4px;font-size:13px;color:#fff0ce}
.meter{height:21px;margin-top:4px;border:2px solid #e5c994;border-radius:4px 5px 12px 12px;background:#15384b;box-shadow:0 0 0 2px #1682a1,inset 0 1px 4px #000;overflow:hidden;transform:skewX(-8deg)}
.meter>span{font-size:12px;line-height:17px;font-weight:bold;transform:skewX(8deg)}
.hp>div{background:linear-gradient(#ff5754 0%,#e61a23 35%,#aa0311 85%,#ff7272)}
.mp>div{background:linear-gradient(#72f0ff,#08b1cf 45%,#00758d 85%,#8febfa)}
.xp{height:10px;margin-top:5px;border:1px solid #b8a36f;box-shadow:0 0 0 2px #176c86}.xp>div{background:linear-gradient(#fff1a6,#e1bd4f)}
.quest-tracker{top:184px;left:16px;right:auto;width:284px;padding:0 12px 14px;border:0;border-left:2px solid #5eb1c5;border-radius:4px;background:linear-gradient(90deg,#143c4a9e,#142e3e36,transparent);box-shadow:none;text-shadow:1px 1px 2px #000}
.quest-tracker .panel-label{height:29px;margin:0 -12px 8px;padding:6px 12px;border-top:1px solid #cfb57d;border-bottom:1px solid #2685a6;background:linear-gradient(90deg,#075671e8,#2386a9a8,transparent);font:bold 14px Arial;letter-spacing:0;color:#ffd47c}
.quest-tracker h2{font:16px Arial;color:#ffcf58;margin:8px 0;line-height:1.5}.quest-tracker p{font:14px/1.6 Arial;color:#eaffdb;margin-bottom:10px}.quest-tracker button{padding:4px 10px;border-color:#76a5a0;border-radius:2px;background:#0b485768;color:#fbe4a0}
.mini-map{top:15px;right:18px;width:190px;height:190px;padding:7px;border:3px solid #f3d89c;border-radius:50%;background:linear-gradient(140deg,#71dce5,#0c7799 35%,#04344d 65%,#49c5db);box-shadow:0 0 0 3px #137592,0 0 0 6px #41bcd1,inset 0 0 7px #fff,0 3px 12px #001c3c}
.mini-map canvas{width:170px;height:170px;border:2px solid #e2d8a3;border-radius:50%;background:#7b8b3b}
.mini-map>span{position:absolute;left:13px;right:13px;top:-13px;margin:0;padding:3px 0;border:1px solid #97d8de;border-radius:8px;background:linear-gradient(#1a8ba4,#064964);font-size:13px;font-weight:bold;color:white;text-shadow:1px 1px 2px #003144}
.mini-map small{position:absolute;bottom:-12px;left:39px;right:39px;background:#06526a;border:2px solid #dcc48a;border-radius:14px;font-size:12px;color:#ffedaf;padding:2px;margin:0}.mini-map kbd{display:none}
.target-hud{top:28px;border:2px solid #dac18c;border-radius:10px;background:linear-gradient(#0b6881d9,#073b50d9);box-shadow:0 0 0 2px #29a5c5;padding:8px;width:218px}
.bottom-controls{display:contents}
.quick-actions{position:absolute;left:50%;bottom:27px;transform:translateX(-50%);display:flex;gap:4px;padding:5px;border:2px solid #69a5b0;border-radius:5px;background:linear-gradient(#0b536ec9,#092e429c);box-shadow:0 0 0 1px #d8c292,inset 0 0 6px #071d2b}
.quick-actions button{width:58px;height:58px;border:2px solid #82a9ad;border-radius:2px;background:linear-gradient(#16394c99,#264643aa);box-shadow:inset 0 0 0 2px #102b40;gap:0;padding:0;overflow:hidden}
.quick-actions button>span{font-size:27px;margin:0;color:#f4e29d}.quick-actions button>span:has(.source-icon){width:42px;height:42px;margin:0}.quick-actions button>kbd{left:auto;right:3px;top:auto;bottom:2px;border:0;background:#001a2c8a;color:#fff7d7;font-size:10px;padding:1px 2px;z-index:2}
.quick-actions button small{position:absolute;inset:auto 0 0;font-size:8px;line-height:12px;background:#001826c2;color:#f5e9bf;text-align:left;padding-left:2px;white-space:nowrap;overflow:hidden;max-width:none;opacity:0;transition:opacity .15s}.quick-actions button:hover small,.quick-actions button:focus-visible small{opacity:1}.quick-actions button:hover{border-color:#ffebad;box-shadow:inset 0 0 9px #5cc5e5}
.menu-actions{position:absolute;right:12px;bottom:26px;display:flex;gap:4px;padding:4px 8px;border:0;border-bottom:4px solid #45c0d9;border-radius:30px 10px 14px 14px;background:linear-gradient(transparent,#107795b8);box-shadow:0 2px 0 #e9ce8e}
.menu-actions button,.menu-actions #shop-button{width:46px;height:56px;border:0;border-radius:4px;background:transparent;font-size:9px;color:#fff1c7;text-shadow:0 1px 2px #000}
.menu-actions button>span,.menu-actions #shop-button span{display:block;font-size:25px;line-height:31px;color:#ffcf68;text-shadow:1px 2px #603812,0 0 4px #f8e3a2}.menu-actions kbd{display:none}.menu-actions button:hover{background:#189bb26b}.menu-actions button.selected{background:#d6ac4599;box-shadow:inset 0 0 0 1px #f3e0aa}
.event-log{display:block;bottom:27px;left:10px;width:300px;height:154px;padding:33px 10px 10px;border:1px solid #92aaa071;border-radius:2px;background:linear-gradient(90deg,#102b2a78,#263d2e30);font-size:13px;overflow:hidden;pointer-events:none}
.event-log:before{content:'NHẬT KÝ  ·  THÔNG BÁO';position:absolute;top:0;left:0;right:0;padding:6px 10px;background:linear-gradient(90deg,#096381ba,transparent);border-bottom:1px solid #88c3c15c;color:#ffe191;font-size:11px}.event-log div div{line-height:1.7;color:#e3ffb1}.event-log div div:first-child{color:#f4e9cc}
.auto-status{bottom:102px;padding:3px 10px;background:#073b4c9c;border:1px solid #75c1cf;border-radius:4px;color:#deedf0;font-size:11px}.auto-status.active{background:#6c651ccc;color:#ffef95}
.interact-prompt{bottom:133px;border-color:#e8d097;background:#0b4860de}
footer{position:absolute;bottom:0;left:0;width:100%;height:17px;padding:0 12px;border:2px solid #a5cfbd;border-top-color:#e7d28b;background:linear-gradient(#0c536e,#073147);z-index:2;font-size:9px;border-radius:8px;overflow:hidden}
footer>span{display:none}footer>span:last-child{display:block;position:absolute;right:10px;font-size:8px;opacity:.8}
#pc-xp-progress{position:absolute;inset:0 auto 0 0;width:0;background:linear-gradient(#7febf8,#129dcb,#005579);transition:width .2s;pointer-events:none}
#pc-xp-text{position:absolute;left:50%;transform:translateX(-50%);color:#fff7de;text-shadow:0 1px 2px #00111c;font-size:11px;line-height:13px}
dialog{top:158px;right:20px;max-height:calc(100dvh - 270px);border:2px solid #d6c094;border-radius:6px;background:#113446f5;box-shadow:0 0 0 3px #2393ac,0 8px 30px #0008}
.dialog-top{background:linear-gradient(#167f9d,#0a4b65);border-bottom:1px solid #c1c693}.dialog-top h2{color:#ffdf93}.dialog-top button{border-radius:50%;background:#0c5267;border-color:#d6ba81;color:#ffdf9a}
#update-button{top:145px}
@media(max-width:1100px) and (min-width:701px){.event-log{width:230px;font-size:11px}.menu-actions{right:8px;bottom:120px;display:grid;grid-template-columns:repeat(2,44px);border-radius:8px;background:#064a659c}.menu-actions button,.menu-actions #shop-button{width:44px;height:49px}.target-hud{left:50%;top:28px;transform:translateX(-50%)}.quest-tracker{width:244px}}
@media(max-width:700px){.player-hud{left:10px;top:12px;width:227px;height:90px;gap:6px}.portrait{width:64px;height:77px;border-width:2px;box-shadow:0 0 0 3px #1a7e9e,0 0 0 5px #4ed6e7}.portrait canvas{width:60px;height:73px}.portrait>span{right:-10px;width:25px;height:22px;font-size:11px}.name-line{height:19px;line-height:17px;font-size:12px;padding-left:4px}.name-line span{top:68px;font-size:10px}.meter{height:17px;margin-top:3px}.meter>span{font-size:9px;line-height:13px}.xp{height:6px}.mini-map{width:110px;height:110px;right:10px;top:17px;padding:4px;border-width:2px;box-shadow:0 0 0 2px #137592,0 0 0 4px #41bcd1}.mini-map canvas{width:98px;height:98px}.mini-map>span{font-size:10px;left:0;right:0;top:-13px}.mini-map small{left:10px;right:10px;font-size:9px;bottom:-12px}.topbar{top:140px;right:7px}.topbar nav{gap:3px}.topbar nav button,.topbar #gm-button{width:23px;height:23px;font-size:12px}.topbar #gm-button{font-size:8px}.quest-tracker{top:120px;left:10px;right:auto;width:180px;padding:0 8px 8px;max-height:168px;overflow:auto}.quest-tracker .panel-label{font-size:10px;height:24px;margin:0 -8px 6px;padding:5px 8px}.quest-tracker h2{font-size:12px;margin:4px 0}.quest-tracker p{font-size:10px;margin-bottom:6px}.quest-tracker button{font-size:10px;padding:3px 6px}.target-hud{top:175px;left:auto;right:8px;transform:none;width:140px;font-size:10px}.bottom-controls{display:contents}.quick-actions{bottom:66px;left:50%;width:auto;display:flex;gap:3px;padding:4px}.quick-actions button{width:44px;height:46px}.quick-actions button>span:has(.source-icon){width:32px;height:32px}.quick-actions button>span{font-size:24px}.quick-actions button>kbd{font-size:8px}.menu-actions{bottom:22px;left:50%;right:auto;transform:translateX(-50%);display:flex;width:auto;gap:1px;padding:1px 5px}.menu-actions button,.menu-actions #shop-button{width:42px;height:35px;font-size:8px}.menu-actions button>span,.menu-actions #shop-button span{display:block;font-size:15px;line-height:17px}.touch-pad{bottom:128px;left:10px}.touch-pad button{width:34px;height:34px;border-color:#cbb881;background:#086179a8}.auto-status{bottom:122px;font-size:9px}.interact-prompt{bottom:214px;font-size:10px}.event-log{display:none}footer{height:15px}footer>span:last-child{display:none}dialog{top:185px;right:10px;width:calc(100vw - 20px);max-height:calc(100dvh - 335px)}dialog.inventory-window{top:185px;max-height:calc(100dvh - 335px)}#update-button{top:100px;font-size:11px;padding:6px 10px}}
@media(max-height:560px) and (min-width:701px){.player-hud{transform:scale(.8);transform-origin:top left}.quest-tracker{top:132px;max-height:160px;overflow:auto}.mini-map{transform:scale(.75);transform-origin:top right}.topbar{top:163px}.event-log{height:96px;width:220px;font-size:10px}.menu-actions{bottom:27px;display:flex}.quick-actions{left:48%}.menu-actions button,.menu-actions #shop-button{width:35px;height:48px;font-size:8px}dialog{top:110px;max-height:calc(100dvh - 215px)}}
