/* In-world bronze HUD. Artwork remains the decoded client sprites and terrain. */
:root{--console-height:286px;--bronze:#8e7650;--ink:#171410}html,body.hud-layout{margin:0;width:100%;height:100%;overflow:hidden;background:#101610}.hud-layout{font-family:'Noto Serif TC',serif;color:#d9c99d}.hud-layout button{touch-action:manipulation}.hud-layout .viewport{position:fixed;inset:0;width:100%;height:100dvh;min-height:0;max-height:none;border:0;border-radius:0;background:#152218}.hud-layout #game{width:100%;height:100%;display:block;touch-action:none}.hud-layout .map-vignette{background:radial-gradient(ellipse at center,transparent 40%,#0508056b 100%);pointer-events:none}.hero-hud{position:fixed;top:max(12px,env(safe-area-inset-top));left:16px;z-index:4;display:flex;gap:10px;align-items:center;filter:drop-shadow(0 3px 4px #000)}.hero-portrait{height:82px;width:61px;border:2px ridge #9d8860;border-radius:7px;background:linear-gradient(140deg,#2c2b22,#101510);position:relative;padding:2px}.hero-portrait img{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}.hero-portrait>span{position:absolute;bottom:-2px;left:0;right:0;background:#14120dcc;color:#ebd577;font:12px Georgia;padding:2px}.hero-readout{background:linear-gradient(90deg,#171910c9,transparent);padding:8px 22px 8px 0}.hero-name{background:none;border:0;padding:0;color:#efe3ba;font-size:15px;text-shadow:1px 2px 2px #000}.combat-readout{display:flex;gap:13px;font:12px Georgia;margin-top:9px;color:#c4bba3}.combat-readout b{color:#ece19a;margin-left:4px}.gold-readout{color:#cdb65e}.hud-version{color:#a5ae91;font-size:9px;margin-top:8px;letter-spacing:1px}.region-plaque{position:fixed;right:20px;top:max(12px,env(safe-area-inset-top));width:160px;z-index:4;text-align:center;padding:8px 10px;border:3px ridge #8c7652;border-radius:10px;background:linear-gradient(#393329ed,#201e18e6);box-shadow:0 3px 10px #0008}.region-plaque strong{display:block;color:#e3d5af;font-size:19px;text-shadow:2px 2px #100}.region-plaque span{display:block;font:12px Georgia;color:#c2b580;margin-top:3px}.hud-layout .map-corner{position:fixed;top:90px;right:20px;bottom:auto;width:158px;height:158px;border:4px ridge #8d7952;border-radius:50%;overflow:hidden;background:#152216b8;box-shadow:0 3px 12px #0008;z-index:3}.hud-layout .map-corner canvas{width:100%;height:100%;display:block;image-rendering:pixelated;opacity:.88}.hud-layout .map-corner>span{display:none}.hud-layout .location-tag,.hud-layout #mobileHud,.hud-layout .map-help{display:none}.quest-orb{position:fixed;top:263px;right:38px;width:52px;height:52px;z-index:4;border:3px ridge #937a51;border-radius:50%;background:radial-gradient(circle,#574831,#181711);color:#e9d5a3;font:23px Georgia;box-shadow:0 3px 8px #0008}.quest-orb small{display:block;font-size:9px}.hud-layout .effect-strip{position:fixed;top:108px;left:18px;right:205px;z-index:3}.hud-layout .effect-chip{border:1px solid #a38c51;background:#242a17ce;color:#e4dcb5;font-size:10px}.hud-layout .effect-empty{background:#191e16b0;color:#9caa88;font-size:9px}.hud-layout .target-card{position:fixed;left:50%;right:auto;top:34px;transform:translateX(-50%);width:176px;z-index:4;background:#211b13d9;border:2px ridge #927d54}.hud-layout .world-toast{position:fixed;top:156px;left:50%;width:max-content;max-width:70vw;transform:translateX(-50%);z-index:5;background:#221d13ed;border:1px solid #ad965e;color:#f0e3bc}.hud-layout #loading{position:absolute;inset:0;display:grid;place-items:center;background:#10170ff0;font-size:14px;letter-spacing:2px;z-index:9}
.game-console{position:fixed;z-index:6;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,1040px);height:calc(var(--console-height) + env(safe-area-inset-bottom));display:grid;grid-template-rows:23px 75px minmax(0,1fr)43px 6px;gap:4px;padding:8px 12px calc(6px + env(safe-area-inset-bottom));border:3px ridge #806a48;border-bottom:0;border-radius:10px 10px 0 0;background:repeating-linear-gradient(90deg,#241e1855 0 2px,#17161155 2px 6px),linear-gradient(#29251eed,#151510f5);box-shadow:0 -4px 22px #0008}.vital-bars{display:grid;grid-template-columns:1fr 1fr;gap:7px}.vital{position:relative;border:2px ridge #a28b57;border-radius:5px;overflow:hidden;box-shadow:inset 0 1px 5px #0007;background:#160e0d}.vital i{display:block;height:100%;width:100%;transition:width .15s}.vital-hp i{background:linear-gradient(#f34b42,#be251c 45%,#74110d)}.vital-mp i{background:linear-gradient(#5d94ed,#2457b3 45%,#102c6d)}.vital span{position:absolute;inset:0;display:grid;place-items:center;font:12px Georgia;color:#f4e7cb;text-shadow:1px 1px 2px #000}.hotbar{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;max-width:600px;width:100%;justify-self:center}.hotkey{position:relative;min-width:0;border:3px ridge #8b744d;background:radial-gradient(ellipse,#444637,#1e231c 65%,#0b0d09);border-radius:7px;box-shadow:inset 0 0 8px #000,0 2px 4px #0007;padding:3px;overflow:hidden}.hotkey:active{filter:brightness(1.4);transform:translateY(1px)}.hotkey img{width:42px;height:44px;max-width:85%;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 0 6px #e6cd6e77)}.hotkey kbd{position:absolute;top:1px;left:2px;border:1px solid #9a8050;border-radius:3px;background:#17150fe8;font:10px Georgia;color:#e6d6ad;padding:1px 4px;z-index:1}.hotkey b{position:absolute;left:0;bottom:2px;right:0;text-align:center;font-size:11px;font-weight:500;color:#f0dfb1;text-shadow:1px 2px 2px #000}.hotkey small{position:absolute;bottom:17px;right:3px;color:#f4dc78;font:10px Georgia;text-shadow:1px 2px 2px #000}.hotkey .slot-symbol{display:block;color:#d5bd82;font-size:46px;line-height:48px;text-shadow:0 0 8px #ac853c}.heal-key img{filter:hue-rotate(85deg) drop-shadow(0 0 7px #9eb977)}.battle-journal{display:flex;flex-direction:column;min-height:0;padding:0 4px}.log-tabs{display:flex;align-items:center;gap:4px;min-height:21px;border-bottom:1px solid #5b5339}.log-tabs button{border:1px solid #66583e;border-radius:3px 3px 0 0;background:#2f2a20;color:#aeaa8b;font-size:10px;padding:2px 13px}.log-tabs button.selected{background:#4c4828;color:#f0d996;border-color:#a59054}.log-tabs #activity{margin-left:auto;color:#a1a986;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:180px}.log-tabs #clearLog,.log-tabs #toggleLog{padding:2px 7px;font-size:9px}.hud-layout #log{height:auto;max-height:none;min-height:0;flex:1;overflow:auto;margin:0;padding:2px 5px;scrollbar-width:thin;scrollbar-color:#5d593f #171a13}.hud-layout #log p{margin:1px 0;font-size:10px;line-height:1.45;color:#d5cc9f}.hud-layout #log time{font:8px Georgia;color:#979c7e;margin-right:7px}.hud-layout #log .reward{color:#e5c977}.hud-layout #log .danger{color:#dba182}#logSearch{height:21px;min-height:21px;width:100%;padding:1px 9px;border:1px solid #655f43;background:#d1c8a5cf;box-shadow:inset 0 2px 5px #281c1577;color:#29291c;font:10px 'Noto Sans TC',sans-serif}#logSearch::placeholder{color:#62644e}.hud-nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));border-top:2px ridge #76603f;background:linear-gradient(#32291fe8,#1c1915);padding-top:3px}.hud-nav .nav,.system-menu>summary{border:0;background:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;color:#d2c7a5;font-size:9px;line-height:1.15;padding:0;cursor:pointer}.hud-nav .nav>span,.system-menu>summary>span{position:relative;display:block;font:23px Georgia;color:#9ba7b2;text-shadow:0 1px 3px #000}.hud-nav .nav.active{color:#f1d58d}.hud-nav .nav.active>span{color:#d5b56c}.hud-nav #bagCount{position:absolute;top:-2px;left:16px;min-width:15px;background:#5c3c28;color:#f7de91;border:1px solid #a1844e;border-radius:6px;font:8px Georgia;padding:1px}.system-menu{position:relative}.system-menu>summary{height:100%;list-style:none}.system-menu>div{position:absolute;bottom:50px;right:0;width:140px;padding:7px;border:3px ridge #8a764c;border-radius:5px;background:#25271aee;box-shadow:0 3px 18px #000b;display:grid;gap:4px}.system-menu button{padding:9px;border:1px solid #625f40;background:#333722;color:#e1d5ad;font-size:11px}.experience-track{position:relative;height:6px;background:#070b07;overflow:visible}.experience-track i{display:block;height:100%;width:0;background:linear-gradient(#f5dc6a,#ae791b);box-shadow:0 0 4px #f5ce55}.experience-track span{position:absolute;right:4px;top:-1px;font:8px Georgia;color:#ddd4ad}.direction-pad{position:fixed;left:24px;bottom:calc(var(--console-height) + 30px);width:126px;height:126px;border:4px ridge #746340;border-radius:50%;background:radial-gradient(circle,#7b735a40,#222a1d80 55%,#151d13ac);display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);padding:8px;z-index:4;box-shadow:inset 0 0 12px #0009,0 3px 12px #0006;touch-action:none}.direction-pad button{border:0;background:none;color:#c6bb8c;font-size:20px;padding:0;touch-action:none;user-select:none}.direction-pad button:active,.direction-pad button[data-held=true]{background:#c7b37a55;border-radius:50%;color:#fff0bd}.direction-pad>span{display:grid;place-items:center;color:#938a62;font:23px Georgia}.touch-combat{position:fixed;right:24px;bottom:calc(var(--console-height) + 28px);display:flex;gap:12px;align-items:flex-end;z-index:4}.touch-combat button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:66px;height:66px;border:4px ridge #8c7751;border-radius:50%;background:radial-gradient(circle,#484430aa,#141a14e8);box-shadow:0 3px 9px #0009;color:#e1cea0;font:27px Georgia}.touch-combat #touchAttack{width:92px;height:92px;font-size:37px}.touch-combat small{font:11px 'Noto Serif TC',serif}.hud-layout.log-collapsed{--console-height:208px}.log-collapsed #log,.log-collapsed #logSearch{display:none}.hud-layout dialog{z-index:20;border:3px ridge #8c7950;background:linear-gradient(135deg,#2b3024f5,#151e16fa);box-shadow:0 12px 70px #000c}.hud-layout .dialog-close{color:#d9cda8}.hud-layout #panelNotice{color:#f0e0b5}.hud-layout #panel{max-height:calc(100dvh - 32px)}
@media(max-width:760px){:root{--console-height:274px}.hero-hud{left:9px;top:max(9px,env(safe-area-inset-top));gap:7px}.hero-portrait{width:45px;height:63px}.hero-portrait>span{font-size:10px}.hero-name{font-size:11px}.hero-readout{padding:5px 7px 5px 0}.combat-readout{gap:8px;font-size:10px;margin-top:7px}.combat-readout b{margin-left:2px}.hud-version{font-size:7px;letter-spacing:0}.region-plaque{width:120px;right:10px;top:max(9px,env(safe-area-inset-top));padding:6px 4px}.region-plaque strong{font-size:15px}.region-plaque span{font-size:10px}.hud-layout .map-corner{top:76px;right:10px;width:112px;height:112px}.quest-orb{right:19px;top:199px;width:43px;height:43px;font-size:18px}.quest-orb small{font-size:8px}.hud-layout .effect-strip{top:82px;left:9px;right:134px;gap:4px}.hud-layout .effect-chip{font-size:8px;padding:4px}.hud-layout .effect-empty{font-size:7px}.hud-layout .target-card{top:125px;left:12px;transform:none;width:150px;padding:7px}.hud-layout .world-toast{top:249px;font-size:11px;max-width:85vw}.game-console{width:100%;padding:6px 7px calc(5px + env(safe-area-inset-bottom));grid-template-rows:21px 66px minmax(0,1fr)41px 5px;gap:4px;border-width:2px;border-radius:7px 7px 0 0}.hotbar{gap:4px}.hotkey{border-width:2px;border-radius:5px}.hotkey kbd{font-size:9px;padding:0 3px}.hotkey img{height:39px;width:34px}.hotkey b{font-size:10px}.hotkey small{font-size:9px;bottom:15px;right:1px}.hotkey .slot-symbol{font-size:38px;line-height:40px}.vital span{font-size:11px}.log-tabs button{padding:2px 10px}.log-tabs #activity{max-width:86px;font-size:8px}.hud-layout #log p{font-size:9px}.hud-nav .nav,.system-menu>summary{font-size:8px}.hud-nav .nav>span,.system-menu>summary>span{font-size:22px}.direction-pad{left:12px;bottom:calc(var(--console-height) + 20px);width:104px;height:104px;padding:6px;border-width:3px}.direction-pad button{font-size:18px}.touch-combat{right:12px;bottom:calc(var(--console-height) + 20px);gap:7px}.touch-combat #touchAttack{width:73px;height:73px;font-size:30px}.touch-combat button{width:53px;height:53px;font-size:23px;border-width:3px}.touch-combat small{font-size:10px}.hud-layout.log-collapsed{--console-height:188px}}
@media(max-height:580px){:root{--console-height:192px}.game-console{grid-template-rows:18px 52px minmax(0,1fr)33px 4px;padding-top:4px;gap:2px}.hotkey img{height:29px;width:30px}.hotkey b{font-size:9px}.hotkey .slot-symbol{font-size:30px;line-height:30px}.hotkey small{font-size:8px}.hotkey kbd{font-size:8px}.hud-nav .nav>span,.system-menu>summary>span{font-size:18px}.hero-portrait{height:54px;width:40px}.hero-name{font-size:11px}.hud-version{display:none}.region-plaque{width:120px;padding:4px}.region-plaque strong{font-size:14px}.hud-layout .map-corner{width:90px;height:90px;top:67px}.quest-orb{top:165px;right:20px;width:38px;height:38px}.direction-pad{width:92px;height:92px;bottom:calc(var(--console-height) + 14px)}.touch-combat{bottom:calc(var(--console-height) + 14px)}.touch-combat #touchAttack{width:65px;height:65px}.battle-journal #logSearch{display:none}.hud-layout.log-collapsed{--console-height:161px}.hud-layout .effect-strip{top:74px}.hud-layout .target-card{top:104px}}

.hud-nav .nav>span{border:0;padding:0;margin:0;background:none}.hud-layout #log p[hidden]{display:none!important}.hud-layout #legacyState[hidden]{display:none!important}

.hud-layout .direction-pad{display:none}@media(max-width:760px),(pointer:coarse){.hud-layout .direction-pad{display:grid}}

.island-atlas{position:relative;width:min(100%,512px);margin:16px auto;border:2px solid #a68c54;background:#16232b;aspect-ratio:1}.island-atlas>img{width:100%;height:100%;image-rendering:pixelated;display:block}.island-crop{position:absolute;border:2px solid #edc765;background:#e8bb4b22;box-sizing:border-box}.island-npc,.island-player{position:absolute;width:4px;height:4px;background:#f4d985;transform:translate(-50%,-50%);border-radius:50%}.island-player{width:9px;height:9px;background:#fc6454;box-shadow:0 0 0 2px #2e1414}.island-list{max-height:230px;overflow:auto}.island-list p{display:grid;grid-template-columns:1fr auto;gap:4px;padding:9px;border-bottom:1px solid #8b754133}.island-list small{grid-column:1/-1}.island-list [hidden]{display:none!important}#islandSearch{width:100%;padding:12px}.region-plaque{cursor:pointer;color:inherit}
