/* Flat, tile-based 2D presentation: sharp sprites and a practical mobile HUD. */
:root{--bg:#171c1b;--panel:#292c28;--gold:#d7c17c}canvas{image-rendering:pixelated}#title-screen{background:radial-gradient(ellipse at 75% 40%,#45593c44,transparent 65%),#191e1d}.title-atmosphere{background:radial-gradient(ellipse at 80% 50%,#70825113,transparent 60%)}.title-copy h1 em{color:#d8c489}.title-copy h1{color:#ece7d7}.wordmark{color:#ddd2a7}.intro{color:#b0b49f}.title-chips{color:#8b9784}.title-art{background:#283f2a;border-color:#817e4f66;min-height:580px;border-radius:1px}.title-art:before{border-color:#e1d29b22}.title-art canvas{image-rendering:pixelated;mask-image:linear-gradient(0deg,transparent,#000 7%,#000 96%,transparent)}.class-card{background:linear-gradient(#343d31,#222b25);border-color:#677458;border-radius:2px;box-shadow:inset 0 0 0 2px #172019}.class-card.selected{background:radial-gradient(ellipse,#a2b36125,transparent),#37422d;border-color:#d6c27a;box-shadow:inset 0 0 0 2px #273020}.class-card canvas{width:92px;height:101px;image-rendering:pixelated;filter:none}.class-name{color:#e3d8ad}.class-card small{color:#a9b09b}.gold{background:linear-gradient(#c9bd82,#9a945f);border-color:#ded39b;color:#222a20;border-radius:2px}.begin-row input{background:#20281f;border-color:#727456}.save-note,.import-title{color:#899581}.landing-nav,.landing-footer{border-color:#89916722}.game-header{height:32px;background:#171c1bd9;border-bottom:1px solid #85856a66;box-shadow:0 1px 3px #0004;padding:0 13px}.game-header .wordmark{font-size:10px;color:#d6d0ae}.location-label{color:#cac9a4;font-size:8px}.header-actions .quiet{border-radius:2px}.game-layout,.stage{background:#365e2c}.stage:after{box-shadow:inset 0 0 100px #17362416}.vitals{left:auto;right:14px;top:45px;width:234px;padding:6px 8px;background:#14201cda;border:1px solid #bec28f;border-radius:2px;outline:1px solid #26372b;box-shadow:0 2px 4px #0006}.portrait{border-radius:1px;background:#303d2e;border-color:#909872;width:34px;height:40px;outline:0}.portrait canvas{width:32px;height:39px}.portrait>span{background:#333e2b;border-color:#aca772;border-radius:1px;left:8px;width:17px;height:14px;font-size:7px}.hero-identity{font-size:8px;color:#e9e7cf}.hero-identity>span{color:#b5bea5}.meter{border-radius:0;border-color:#7c8b75;background:#1e2c25}.meter.health i{background:linear-gradient(#df4341,#b22d36);box-shadow:none}.meter.focus i{background:linear-gradient(#557def,#3e5dd0)}.meter.focus{border-color:#8b9cba}.meter.xp>i{background:#d8cb6b}.minimap-box{right:auto;left:13px;top:45px;width:110px;border:1px solid #c3c08f;outline:1px solid #2d382b;border-radius:1px;background:#223a24}.minimap-box canvas{width:108px;height:81px}.minimap-box>span{background:#29372be8;border-color:#8a9170;color:#d4d7b9}.minimap-box:before{color:#efdf9a}.quick-slots{position:absolute;right:15px;top:123px;display:grid;grid-template-columns:repeat(3,34px);gap:4px;z-index:3}.quick-slot{position:relative;width:34px;height:34px;border:1px solid #a3a58066;border-radius:50%;background:#17251c99;padding:5px;display:grid;place-items:center;box-shadow:inset 0 0 0 2px #25402933}.quick-slot.filled{border-color:#b4b88d;background:#263529cc;cursor:pointer}.quick-slot:hover{border-color:#e4d294;background:#3f5036}.quick-slot img{width:23px;height:23px;image-rendering:pixelated}.quick-slot small{position:absolute;right:1px;bottom:0;font-size:7px;color:#f2e6ac;text-shadow:0 1px #000}.quick-slot:disabled{opacity:.6;cursor:default}.journal{background:linear-gradient(#343a2ff7,#222d23fa);border-color:#a8aa76;outline-color:#253222;top:245px;border-radius:2px;box-shadow:inset 0 0 0 2px #1e291b,0 8px 25px #0007}.journal h2{color:#dfd4a1}.journal-heading .eyebrow,.journal .chapter-label{color:#9da484}.journal-tabs{border-color:#6c785c}.journal-tabs button[aria-selected=true]{color:#e0d396;border-color:#d0c184}.quest-prose{color:#b6bca4!important}.quest-tip{background:#1f2c2199;border-color:#657553;color:#aab79c}.shard-list li{color:#b1bea0}.shard-list small{color:#8c9f83}.journal-divider,.journal-bottom{border-color:#586c4d}.inventory-item{background:#354331;border-color:#84936b;color:#d9ddb9}.inventory-item.equipped{background:#4b5135;border-color:#c1b781}.equipment-current h3{color:#dad2a1}.wallet{background:#202e22;border-color:#79835d}.journal.open{z-index:12}.action-bar{bottom:10px}.skills{background:#1c271ee0;border-color:#aaa66f;outline-color:#1d2d20;border-radius:2px;padding:5px;gap:4px;box-shadow:inset 0 0 0 1px #44583f,0 3px 8px #0007}.action{min-width:61px;width:61px;height:54px;border-radius:2px;background:linear-gradient(#3b4b35,#263322);border-color:#9ba67a;box-shadow:inset 0 0 0 1px #4d654177}.action.basic{background:linear-gradient(#535943,#2d3929);border-color:#c1b783}.action.potion{background:linear-gradient(#59433b,#342c25);border-color:#bd9682}.action small{color:#d2d9b4;font-size:5px}.action kbd{border:0;background:#1e281c99;color:#c0c9a2;border-radius:0;font-size:5px}.action .action-icon{filter:none;width:24px;height:24px}.action:hover{border-color:#e6d8a0;box-shadow:inset 0 0 0 1px #87946a}.action-bar .journal-open{background:#233526;border-color:#adac78;border-radius:2px;color:#d9d2a2}.resource-orb{display:none}.touch-controls .dpad{display:none}.joystick{pointer-events:auto;width:105px;height:105px;border-radius:50%;border:2px solid #cfdfc548;background:#19362540;box-shadow:inset 0 0 0 7px #28493622;display:grid;place-items:center;touch-action:none;user-select:none;position:relative}.joystick:before{content:'';position:absolute;inset:10px;border:1px solid #c6d6b522;border-radius:50%}.joystick>span{width:43px;height:43px;border-radius:50%;background:#abc8b344;border:1px solid #c8dcc377;box-shadow:0 1px 3px #152b2a33;pointer-events:none;will-change:transform}.touch-controls{bottom:100px;left:20px;right:20px;align-items:end}.zone-caption{font-size:16px;bottom:95px;left:18px;color:#d8d7af;opacity:.85}.zone-caption:before{content:'';margin:0}.zone-caption span{font-size:5px;color:#c9d0b2}.touch-controls #touch-attack{background:#2a422acc;border:2px solid #ddcc85;border-radius:5px;outline:1px solid #263b28;width:61px;height:61px;color:#efe2af;box-shadow:inset 0 0 0 2px #67854b44;font-size:25px}.touch-controls #touch-attack>span{font-size:5px;letter-spacing:.05em}#interact-hint{bottom:112px}#interact-hint button{background:#253b29e6;border:1px solid #c1bd85;color:#e1dfb5;border-radius:2px;box-shadow:0 2px 6px #0005}#interact-hint kbd{background:#1c2b1e;border-color:#89966f;color:#d6d6ac}#toast-region{top:140px}.toast{background:#273b2ae8;border-color:#b1b88777;color:#ece2aa;border-radius:2px;box-shadow:0 2px 5px #0004}#boss-health{top:46px}.meter.boss{border-color:#b68bb5}.meter.boss i{background:#b66487}dialog{background:linear-gradient(#364331,#233022);border:1px solid #c0b783;outline-color:#1e2b1e;border-radius:2px;box-shadow:inset 0 0 0 2px #49563a,0 20px 60px #0009}dialog h2{color:#e4d5a2}#dialog-content{color:#b7c3aa}.controls-list>div{background:#203021;border-color:#697d57}.map-large{border-color:#b6b77d}
@media(pointer:fine){.joystick{display:none}}
@media(max-width:1000px){.vitals{width:213px}.minimap-box{width:99px}.minimap-box canvas{width:97px;height:73px}.quick-slots{top:118px;grid-template-columns:repeat(3,31px);gap:4px}.quick-slot{width:31px;height:31px;padding:4px}.quick-slot img{width:21px;height:21px}.journal{top:232px}.action-bar .journal-open{left:calc(100% + 13px);bottom:10px}.action{min-width:59px;width:59px}.title-art{min-height:530px}.title-copy h1{font-size:clamp(35px,5vw,49px)}}
@media(max-width:750px){.title-copy h1{font-size:clamp(35px,10.5vw,46px)}.title-art{min-height:0;height:300px}.vitals{left:auto;right:10px;top:42px;width:191px;padding:5px;gap:5px}.portrait{width:30px;height:35px}.portrait canvas{width:28px;height:34px}.portrait>span{left:6px;font-size:6px;width:16px;height:13px}.hero-identity{font-size:7px;margin-bottom:3px}.hero-identity>span{font-size:5px}.meter.health{height:9px}.meter.health>span{font-size:5px;line-height:7px}.meter.focus{height:7px;margin-top:2px}.meter.focus>span{font-size:4px;line-height:5px}.meter.xp{height:3px;margin-top:3px}.minimap-box{left:10px;right:auto;top:42px;width:80px}.minimap-box canvas{width:78px;height:59px}.minimap-box>span{font-size:4px;padding:3px 5px}.quick-slots{right:11px;top:111px;grid-template-columns:repeat(3,29px);gap:3px}.quick-slot{width:29px;height:29px;padding:4px}.quick-slot img{width:20px;height:20px}.quick-slot small{font-size:6px}.journal{right:8px;top:130px;bottom:96px;max-height:calc(100% - 210px);width:min(300px,90%);z-index:12}.action-bar{bottom:max(8px,env(safe-area-inset-bottom));max-width:calc(100% - 25px)}.action{min-width:59px;width:59px;height:54px}.skills{padding:5px;gap:4px}.action .action-icon{width:23px;height:23px}.touch-controls{display:flex;bottom:100px;left:17px;right:17px;align-items:end}.joystick{display:grid;width:100px;height:100px}.joystick>span{width:40px;height:40px}.zone-caption{bottom:211px;left:15px;font-size:15px}.zone-caption span{font-size:4px}#interact-hint{bottom:210px;max-width:calc(100% - 35px)}#interact-hint button{font-size:8px;padding:8px 10px}#toast-region{top:133px;width:calc(100% - 34px);pointer-events:none;max-width:340px}.toast{font-size:10px}#boss-health{top:213px;width:60%}.touch-controls #touch-attack{width:58px;height:58px}.stage:after{box-shadow:none}.game-header{height:29px}.header-actions .quiet{font-size:12px}.action-bar .journal-open{display:none}}
@media(max-width:370px){.vitals{width:178px}.hero-identity>span{display:none}.action{min-width:55px;width:55px}.skills{gap:3px}.quick-slots{grid-template-columns:repeat(3,27px)}.quick-slot{width:27px;height:27px}.game-header .wordmark{font-size:8px}.location-label{font-size:7px}}
@media(max-height:500px){.quick-slots{top:112px;grid-template-columns:repeat(3,26px);gap:2px}.quick-slot{width:26px;height:26px}.quick-slot img{width:18px;height:18px}.joystick{width:79px;height:79px}.joystick>span{width:32px;height:32px}.touch-controls{bottom:84px}.action-bar{bottom:7px}.action{height:45px;min-width:55px;width:55px}.action .action-icon{width:20px;height:20px}.action small{font-size:4px}.zone-caption{display:none}.journal{top:123px;bottom:79px;max-height:calc(100% - 155px)}#interact-hint{bottom:96px}#boss-health{top:87px;width:35%}#toast-region{top:127px;width:40%}}
.game-header{background:none;border:0;box-shadow:none;height:30px;pointer-events:none}.game-header .wordmark,.game-header .header-actions{display:none}.game-header .location-label{position:absolute;left:50%;top:10px;transform:translateX(-50%);font-size:8px;text-shadow:0 1px 2px #000;color:#c1cba6}.game-toolbar{position:absolute;top:12px;left:12px;display:flex;gap:5px;z-index:5}.game-toolbar button{width:39px;height:39px;padding:8px;border:1px solid #8f8e7280;border-radius:4px;background:#272921de;box-shadow:inset 0 0 0 1px #545a3e22;cursor:pointer}.game-toolbar img{display:block;width:22px;height:22px}.game-toolbar button:hover{border-color:#e4d4a1;background:#424837}.vitals{top:12px}.minimap-box{top:67px}.quick-slots{top:97px}.task-tracker{position:absolute;left:13px;top:184px;z-index:4;display:grid;gap:5px;border:0;background:none;max-width:170px;padding:0;text-align:left;color:#b2d49d;text-shadow:0 1px 2px #051e12,1px 0 #142b18;font:9px/1.5 Arial,sans-serif;cursor:pointer}.task-tracker>b{font-size:7px;color:#d7e8a5}.task-tracker>span:last-child{font-size:8px;color:#c1d1a8}.journal{top:219px}.inventory-modal{width:min(800px,calc(100% - 28px));max-width:800px;padding:25px 25px 20px}.inventory-modal h2{font-size:24px;border-bottom:1px solid #696e5277;padding-bottom:16px;margin-bottom:20px}.inventory-modal>.eyebrow{display:none}.inventory-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:23px}.inventory-layout h3{font:10px Arial,sans-serif;color:#d2d1b1;text-align:center;margin:0 0 13px;letter-spacing:.08em}.equipment-grid-panel{border-right:1px solid #66715577;padding-right:23px}.equipment-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.gear-slot,.bag-slot{position:relative;min-width:0;aspect-ratio:1;background:#1f271e;border:1px solid #77795488;border-radius:3px;box-shadow:inset 0 0 0 1px #182019;padding:7px;display:grid;place-items:center}.gear-slot img,.bag-slot img{width:100%;height:100%;max-width:39px;max-height:39px;image-rendering:pixelated}.gear-slot small{font-size:6px;color:#7f8c72;text-transform:uppercase}.gear-slot:disabled,.bag-slot:disabled{opacity:.75;cursor:default}.gear-slot:enabled:hover,.bag-slot:enabled:hover{border-color:#e9dca2;background:#3f5034}.equipment-note{font:8px/1.8 Arial,sans-serif!important;color:#bebd92!important;text-align:center;margin-top:13px!important}.bag-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}.bag-slot small{position:absolute;right:3px;top:0;font:9px Arial,sans-serif;color:#e9da8d;text-shadow:0 1px #000}.bag-slot.equipped{border-color:#d2bd68;background:#3f472a}.bag-note{font:9px/1.7 Arial,sans-serif!important;color:#9aab8a!important;margin-top:13px!important}#dialog-content>p{white-space:pre-line}.controls-list p{grid-column:1/-1}.game-header .bag-toggle{display:none}
@media(min-aspect-ratio:4/3) and (min-width:600px){.action-bar{left:auto;right:139px;bottom:19px;transform:none;max-width:none}.skills{display:grid;grid-template-columns:repeat(2,57px);gap:5px;padding:5px;background:#20302399;border-color:#aab17a66}.action{min-width:57px;width:57px;height:52px}.touch-controls{display:flex;bottom:20px;left:22px;right:20px;align-items:end;pointer-events:none}.touch-controls #touch-attack{width:97px;height:97px;border-radius:13px;font-size:39px;margin-left:auto;pointer-events:auto}.touch-controls #touch-attack>span{font-size:7px;letter-spacing:.08em}.joystick{width:116px;height:116px;display:grid}.joystick>span{width:49px;height:49px}.zone-caption{left:25px;bottom:162px}.resource-orb,.action-bar .journal-open{display:none}#interact-hint{bottom:78px;left:48%}#boss-health{top:20px;width:35%}#toast-region{top:98px}.vitals{width:250px}.game-toolbar button{width:40px;height:40px}.quick-slots{right:20px;top:111px;grid-template-columns:repeat(3,34px);gap:5px}.quick-slot{width:34px;height:34px}.journal{top:218px}}
@media(pointer:fine) and (min-aspect-ratio:4/3){.joystick{display:none}}
@media(max-width:750px) and (max-aspect-ratio:4/3){.game-toolbar{top:10px;left:10px;display:grid;grid-template-columns:repeat(3,29px);gap:4px}.game-toolbar button{width:29px;height:29px;padding:5px;border-radius:3px}.game-toolbar img{width:18px;height:18px}.vitals{top:10px;right:10px;width:191px}.minimap-box{top:86px;left:10px}.task-tracker{left:11px;top:166px;width:139px;font-size:8px;gap:4px}.task-tracker>b{font-size:6px}.task-tracker>span:last-child{font-size:7px}.quick-slots{top:90px}.game-header .location-label{display:none}.inventory-modal{width:calc(100% - 20px);padding:22px 16px;max-width:none}.inventory-modal h2{font-size:23px}.inventory-layout{grid-template-columns:105px minmax(0,1fr);gap:12px}.equipment-grid-panel{padding-right:12px}.equipment-grid,.bag-grid{gap:3px}.bag-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.gear-slot,.bag-slot{padding:4px}.gear-slot small{font-size:4px}.inventory-layout h3{font-size:6px;margin-bottom:10px}.bag-slot small{font-size:7px;right:2px}.equipment-note{font-size:6px!important}.bag-note{font-size:7px!important}.gear-slot img,.bag-slot img{max-width:30px;max-height:30px}.journal{top:130px}#toast-region{top:230px}#boss-health{top:229px}}
@media(max-height:500px) and (min-aspect-ratio:4/3){.game-toolbar{top:8px;left:8px;gap:4px}.game-toolbar button{width:33px;height:33px;padding:6px}.game-toolbar img{width:20px;height:20px}.vitals{top:9px;right:10px;width:225px}.minimap-box{top:52px;left:10px;width:83px}.minimap-box canvas{width:81px;height:61px}.task-tracker{top:133px;left:11px;font-size:7px;max-width:140px}.task-tracker>b{font-size:6px}.task-tracker>span:last-child{font-size:6px}.quick-slots{right:13px;top:87px;grid-template-columns:repeat(3,27px);gap:4px}.quick-slot{width:27px;height:27px}.quick-slot img{width:19px;height:19px}.action-bar{bottom:12px;right:115px}.skills{grid-template-columns:repeat(2,48px);padding:4px;gap:4px}.action{min-width:48px;width:48px;height:45px}.touch-controls{bottom:15px;left:20px;right:13px}.touch-controls #touch-attack{width:83px;height:83px;font-size:34px}.joystick{width:98px;height:98px}.joystick>span{width:42px;height:42px}.journal{top:115px;bottom:90px;max-height:calc(100% - 150px)}#interact-hint{bottom:40px;left:45%}#toast-region{top:101px;width:40%}.inventory-modal{padding:18px 23px;width:min(720px,calc(100% - 28px));max-height:94dvh}.inventory-modal h2{font-size:21px;margin-bottom:13px;padding-bottom:11px}.inventory-layout{grid-template-columns:145px minmax(0,1fr);gap:18px}.equipment-grid-panel{padding-right:18px}.bag-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.inventory-layout h3{font-size:7px}.bag-note{font-size:7px!important}.bag-slot,.gear-slot{max-height:44px}.inventory-modal #dialog-actions{margin-top:13px}}

/* Direct world taps replace the analogue stick on touch screens. */
.dedicated-client .joystick{display:none!important;pointer-events:none!important}

/* Keep the level and resource values readable on compact mobile HUDs. */
.dedicated-client .vitals{min-width:250px;padding:8px 10px!important}
.dedicated-client .hero-identity{font-size:11px!important;line-height:1.2!important}
.dedicated-client .hero-identity>span{display:block!important;font-size:9px!important;color:#f0d37b!important;white-space:nowrap}
.dedicated-client .portrait>span{width:22px!important;height:17px!important;font-size:10px!important;line-height:17px!important}
.dedicated-client .meter.health{height:13px!important}
.dedicated-client .meter.focus{height:10px!important}
.dedicated-client .meter>span{font-size:8px!important;line-height:1!important}

/* Halmgaard interface pass: keep the classic brass frames and clear game zones. */
.dedicated-client #play{--hud-brass:#c9b879;--hud-ink:#101a13;--hud-panel:rgba(18,29,21,.94);--hud-soft:#354331}
.dedicated-client .game-toolbar{padding:4px;background:rgba(14,24,17,.78);border:1px solid #b7ad78;border-radius:3px;box-shadow:0 3px 12px #0008,inset 0 0 0 1px #53604466}
.dedicated-client .game-toolbar button{background:linear-gradient(#3c4938,#202d22);border-color:#9da176;box-shadow:inset 0 0 0 1px #d4c88722,0 1px 2px #0008}
.dedicated-client .game-toolbar button:focus-visible,.dedicated-client .game-toolbar button:hover{background:linear-gradient(#5a6447,#2d3c2a);border-color:#f0d98f;outline:2px solid #f0d98f66;outline-offset:1px}
.dedicated-client .vitals{background:linear-gradient(135deg,rgba(20,31,23,.97),rgba(11,20,15,.94));border-color:var(--hud-brass);box-shadow:0 3px 14px #0009,inset 0 0 0 1px #d9cb8b2b}
.dedicated-client .vitals:before{content:'ADVENTURER';position:absolute;left:9px;top:-9px;padding:1px 6px;background:#17251a;border:1px solid #91875d;color:#d4c785;font:7px Arial,sans-serif;letter-spacing:.14em}
.dedicated-client .hero-identity b{letter-spacing:.04em;color:#f1e8c5}
.dedicated-client .meter.health i{background:linear-gradient(90deg,#8c272f,#e15146 70%,#ef7b54)}
.dedicated-client .meter.focus i{background:linear-gradient(90deg,#314c9b,#5f82e5 70%,#8fa8ff)}
.dedicated-client .minimap-box{background:rgba(15,28,18,.96);border-color:var(--hud-brass);box-shadow:0 3px 12px #0009,inset 0 0 0 1px #d5c8882b}
.dedicated-client .minimap-box>span{background:#263625;color:#eee4bb;border-top:1px solid #7e805c}
.dedicated-client .quick-slots{padding:5px;background:rgba(14,24,17,.74);border:1px solid #9b9568;border-radius:3px;box-shadow:0 3px 12px #0008,inset 0 0 0 1px #46573c55}
.dedicated-client .quick-slot{background:#17281b;border-color:#6d7d59;border-radius:3px;box-shadow:inset 0 0 0 1px #cfc48222}
.dedicated-client .quick-slot.filled{background:linear-gradient(#43533b,#253722);border-color:#b9b478}
.dedicated-client .quick-slot.filled:focus-visible,.dedicated-client .quick-slot.filled:hover{border-color:#f1dc8d;outline:2px solid #f1dc8d55;outline-offset:1px}
.dedicated-client .action-bar{pointer-events:none}
.dedicated-client .action-bar .skills{pointer-events:auto;background:rgba(15,25,17,.94);border-color:#c1b574;box-shadow:0 4px 16px #0009,inset 0 0 0 1px #61714d}
.dedicated-client .action-bar .action{background:linear-gradient(#475741,#263523);border-color:#a9a875}
.dedicated-client .action-bar .action:focus-visible,.dedicated-client .action-bar .action:hover{border-color:#f1dc8d;outline:2px solid #f1dc8d55;outline-offset:1px}
.dedicated-client .world-chat-hud{background:linear-gradient(145deg,rgba(25,38,27,.98),rgba(11,21,15,.97));border-color:#c6b878;box-shadow:0 5px 18px #000b,inset 0 0 0 1px #5b684955}
.dedicated-client .world-chat-hud .world-chat-head{background:#263a28;border-bottom-color:#8c865b;color:#ebd58b}
.dedicated-client .world-chat-hud .world-chat-messages{background:rgba(6,13,9,.78);border-color:#647354}
.dedicated-client .world-chat-hud .world-chat-tabs button{background:#17261a;border-color:#6d7c59}
.dedicated-client .world-chat-hud .world-chat-tabs button.active{background:#b39b5e;color:#152017;border-color:#e1cf85}
.dedicated-client .world-chat-hud .world-chat-form button,.dedicated-client .world-chat-hud .world-chat-add-friend button{background:linear-gradient(#d6c27a,#9c8448);border-color:#f1df9b}
@media(max-width:750px){
  .dedicated-client .world-chat-hud{left:8px;bottom:88px;width:min(340px,calc(100% - 16px))}
  .dedicated-client .world-chat-hud .world-chat-messages{height:88px}
  .dedicated-client .action-bar{right:8px;left:auto;bottom:max(8px,env(safe-area-inset-bottom));max-width:none}
  .dedicated-client .action-bar .skills{gap:3px;padding:4px}
}
@media(max-height:500px) and (min-width:751px){
  .dedicated-client .world-chat-hud{bottom:70px;width:300px}
  .dedicated-client .action-bar{bottom:8px}
}

/* Halmgaard's HUD keeps the hotbar horizontal and gives the chat its full channel strip. */
.dedicated-client .world-stats{position:absolute;left:14px;top:174px;z-index:4;display:grid;gap:2px;color:#c9d8a8;font:10px/1.25 Arial,sans-serif;text-shadow:0 1px 2px #05160a;pointer-events:none}
.dedicated-client .world-stats span{white-space:nowrap}
.dedicated-client .world-chat-hud .world-chat-tabs{display:flex;flex-wrap:wrap;gap:3px}
.dedicated-client .world-chat-hud .world-chat-tabs button{min-width:0;flex:1 1 auto;padding:4px 7px;font-size:11px}
.dedicated-client .world-chat-hud .world-chat-message strong{color:#f0d36f}
@media(min-width:751px){
  .dedicated-client .action-bar{left:50%;right:auto;bottom:12px;transform:translateX(-50%);width:auto;max-width:none;padding:0;background:transparent;border:0;box-shadow:none}
  .dedicated-client .action-bar .skills{display:flex;grid-template-columns:none;gap:4px;padding:5px}
  .dedicated-client .action-bar .action{width:62px;min-width:62px;height:56px}
  .dedicated-client .world-chat-hud{width:min(520px,42vw)}
}
@media(max-width:750px){
  .dedicated-client .world-stats{left:10px;top:159px;font-size:8px}
  .dedicated-client .world-chat-hud .world-chat-tabs button{font-size:10px;padding:4px 6px}
  .dedicated-client .action-bar{left:50%;right:auto;transform:translateX(-50%);width:max-content;max-width:calc(100% - 130px);padding:0;background:transparent;border:0;box-shadow:none}
}

/* Halmgaard blue steel skin: the approved MMORPG client treatment. */
.dedicated-client #play{--hud-blue:#17243a;--hud-blue-2:#253652;--hud-border:#7186a6;--hud-text:#e9eef4;--hud-muted:#a8b5c8}
.dedicated-client .game-toolbar{background:rgba(18,30,49,.94);border:1px solid #6e84a5;border-radius:4px;box-shadow:0 3px 12px #000a,inset 0 0 0 1px #b9c8db18}
.dedicated-client .game-toolbar button{background:linear-gradient(#30435f,#17263d);border-color:#7890b2;border-radius:3px;box-shadow:inset 0 0 0 1px #d8e5f322,0 2px 3px #0009}
.dedicated-client .game-toolbar button:hover,.dedicated-client .game-toolbar button:focus-visible{background:linear-gradient(#4a6285,#253a59);border-color:#d5e3f4}
.dedicated-client .world-stats{color:#b9d1ef}
.dedicated-client .vitals{background:linear-gradient(145deg,rgba(22,34,54,.98),rgba(10,18,31,.98));border-color:#7890b2;box-shadow:0 3px 14px #000b,inset 0 0 0 1px #d7e5f322}
.dedicated-client .vitals:before{background:#17263d;border-color:#8299b8;color:#dbe7f5}
.dedicated-client .hero-identity b,.dedicated-client .hero-identity>span{color:#e8eef7!important}
.dedicated-client .meter{background:#0d1728;border-color:#667d9e}
.dedicated-client .meter.health i{background:linear-gradient(90deg,#a72f39,#e24a4e)}
.dedicated-client .meter.focus i{background:linear-gradient(90deg,#304fd0,#5274ec)}
.dedicated-client .meter.xp i{background:#d8b84d}
.dedicated-client .minimap-box{background:rgba(17,29,47,.98);border-color:#7890b2;box-shadow:0 3px 12px #000b,inset 0 0 0 1px #d7e5f322}
.dedicated-client .minimap-box>span{background:#223651;color:#e3ebf5;border-color:#6f83a2}
.dedicated-client .quick-slots{background:rgba(18,30,49,.9);border-color:#7187a5}
.dedicated-client .quick-slot{background:#17263d;border-color:#5c7394}
.dedicated-client .quick-slot.filled{background:linear-gradient(#314969,#1a2b45);border-color:#9ab0cf}
.dedicated-client .world-chat-hud{background:linear-gradient(145deg,rgba(28,39,57,.99),rgba(11,18,29,.99));border-color:#8195b2;box-shadow:0 5px 18px #000c,inset 0 0 0 1px #d7e5f322}
.dedicated-client .world-chat-hud .world-chat-head{background:#263b5a;border-bottom-color:#7890b2;color:#e5edf7}
.dedicated-client .world-chat-hud .world-chat-messages{background:rgba(7,13,23,.9);border-color:#526987}
.dedicated-client .world-chat-hud .world-chat-message{color:#dbe4ef}
.dedicated-client .world-chat-hud .world-chat-tabs button{background:#1b2c46;border-color:#637b9d;color:#d7e2f0}
.dedicated-client .world-chat-hud .world-chat-tabs button.active{background:#c8a94f;color:#17243a;border-color:#f0d77e}
.dedicated-client .world-chat-hud .world-chat-form input{background:#0d1728;border-color:#5d7392;color:#edf3f8}
.dedicated-client .world-chat-hud .world-chat-form button{background:linear-gradient(#d7bb5e,#a58434);color:#17243a;border-color:#f2d97c}
.dedicated-client .action-bar .skills{background:rgba(16,27,44,.97);border-color:#8198b7;box-shadow:0 4px 16px #000c,inset 0 0 0 1px #d7e5f322}
.dedicated-client .action-bar .action{background:linear-gradient(#304866,#172a45);border-color:#7891b2;color:#e8eef6}
.dedicated-client .action-bar .action.basic{background:linear-gradient(#405977,#1d304b);border-color:#c5d1df}
.dedicated-client .action-bar .action.potion{background:linear-gradient(#4a3d4d,#2b293d);border-color:#9c91ba}
.dedicated-client .action-bar .action:hover,.dedicated-client .action-bar .action:focus-visible{border-color:#f0d77e;outline-color:#f0d77e66}
@media(min-width:751px){.dedicated-client .world-chat-hud{width:min(520px,42vw);bottom:78px}.dedicated-client .action-bar{bottom:12px}}
@media(max-width:750px){.dedicated-client .world-chat-hud{bottom:88px}}

/* Exact Halmgaard HUD placement: compact chat and bottom-right world controls. */
.dedicated-client .world-stats{left:14px!important;top:67px!important;font-size:11px!important;line-height:1.35!important}
.dedicated-client .minimap-box{left:auto!important;right:14px!important;top:auto!important;bottom:12px!important;width:142px!important}
.dedicated-client .minimap-box canvas{width:140px!important;height:105px!important}
.dedicated-client .world-actions{position:absolute;right:164px;bottom:12px;display:flex;gap:6px;z-index:4}
.dedicated-client .world-actions button{width:58px;height:52px;background:linear-gradient(#263d61,#172945);border:1px solid #7891b2;color:#e6edf7;font:13px Georgia,serif;box-shadow:inset 0 0 0 1px #d7e5f322,0 3px 8px #0009}
.dedicated-client .world-actions button:first-child{font-size:24px}
.dedicated-client .world-actions button:hover,.dedicated-client .world-actions button:focus-visible{border-color:#f0d77e;outline:2px solid #f0d77e66}
@media(max-width:750px){.dedicated-client .world-stats{top:152px!important;font-size:8px!important}.dedicated-client .minimap-box{right:8px!important;bottom:8px!important;width:108px!important}.dedicated-client .minimap-box canvas{width:106px!important;height:79px!important}.dedicated-client .world-actions{right:124px;bottom:8px;gap:3px}.dedicated-client .world-actions button{width:37px;height:39px;font-size:9px}.dedicated-client .world-actions button:first-child{font-size:17px}}
.dedicated-client .action.empty-slot{width:42px!important;min-width:42px!important;height:48px!important;opacity:.72;background:linear-gradient(#18283f,#101d31)!important;border-color:#506987!important;color:#a7b8ce!important}
.dedicated-client .action.empty-slot .action-icon{display:none}
.dedicated-client .action.empty-slot small{font-size:10px;color:#8298b5}
@media(min-width:751px){.dedicated-client .action-bar{left:10px!important;right:auto!important;transform:none!important;bottom:8px!important}.dedicated-client .action-bar .skills{gap:3px!important;padding:4px!important}.dedicated-client .action-bar .action{width:50px!important;min-width:50px!important;height:52px!important}}
@media(max-width:750px){.dedicated-client .action.empty-slot{width:31px!important;min-width:31px!important;height:40px!important}.dedicated-client .action-bar{max-width:calc(100% - 130px)!important;overflow:hidden}.dedicated-client .action-bar .skills{overflow:hidden}}
/* Reference controls: chat is opened from the envelope/chat button, with no standalone attack pad. */
.dedicated-client #touch-attack{display:none!important}
.dedicated-client .touch-controls{display:none!important}
.dedicated-client .game-toolbar button{width:46px;height:46px;padding:9px;border-radius:3px}
.dedicated-client .game-toolbar img{width:25px;height:25px}
.dedicated-client .game-toolbar button:first-child img{display:none}
.dedicated-client .game-toolbar button:first-child:before{content:'▦';font:28px/1 Arial,sans-serif;color:#e6eef8}
.dedicated-client .game-toolbar button:nth-child(2) img{content:url('icons/journal.svg')}
.dedicated-client .game-toolbar button:nth-child(3) img{content:url('icons/bag.svg')}
.dedicated-client .game-toolbar button:nth-child(4) img{content:url('icons/stats.svg')}
.dedicated-client .game-toolbar button:nth-child(5) img{content:url('icons/map.svg')}
.dedicated-client .game-toolbar button:nth-child(6) img{content:url('icons/pause.svg')}
@media(max-width:750px){.dedicated-client .game-toolbar button{width:34px;height:34px;padding:6px}.dedicated-client .game-toolbar img{width:20px;height:20px}.dedicated-client .game-toolbar button:first-child:before{font-size:21px}}
.dedicated-client #toolbar-chat{display:none!important}
.dedicated-client .world-stats [data-stat="ping"]{color:#91e876}
.dedicated-client .world-stats [data-stat="fps"]{color:#f0db82}
.dedicated-client .world-stats [data-stat="task"]{color:#91e876}
/* Landscape mobile fit: keep every HUD element inside the short viewport. */
.dedicated-client .game-toolbar button,.dedicated-client .action,.dedicated-client .world-actions button,.dedicated-client .minimap-box{box-sizing:border-box}
@media (max-height:700px) and (orientation:landscape){
  .dedicated-client .game-toolbar{top:8px!important;left:8px!important;gap:3px!important;padding:3px!important}
  .dedicated-client .game-toolbar button{width:54px!important;height:54px!important;padding:7px!important}
  .dedicated-client .game-toolbar img{width:25px!important;height:25px!important}
  .dedicated-client .game-toolbar button:first-child:before{font-size:27px}
  .dedicated-client .world-stats{top:70px!important;left:12px!important;font-size:10px!important;line-height:1.2!important}
  .dedicated-client .vitals{top:8px!important;right:8px!important;width:286px!important;min-width:0!important;padding:6px 8px!important}
  .dedicated-client .quick-slots{top:112px!important;right:10px!important}
  .dedicated-client .minimap-box{right:8px!important;bottom:8px!important;width:145px!important}
  .dedicated-client .minimap-box canvas{width:143px!important;height:106px!important}
  .dedicated-client .world-actions{right:160px!important;bottom:8px!important;gap:3px!important}
  .dedicated-client .world-actions button{width:52px!important;height:48px!important}
  .dedicated-client .action-bar{left:6px!important;right:auto!important;bottom:5px!important;max-width:calc(100% - 360px)!important;overflow:hidden!important}
  .dedicated-client .action-bar .skills{gap:2px!important;padding:3px!important;overflow:hidden!important}
  .dedicated-client .action-bar .action{width:44px!important;min-width:44px!important;height:45px!important;padding:3px!important}
  .dedicated-client .action-bar .action .action-icon{width:20px!important;height:20px!important}
  .dedicated-client .action-bar .action small{font-size:4px!important}
  .dedicated-client .action.empty-slot{width:44px!important;min-width:44px!important;height:45px!important}
  .dedicated-client .world-chat-hud{bottom:55px!important;max-height:236px!important}
}
/* Replace the inherited parchment corner frame with clean Halmgaard steel tiles. */
.dedicated-client .game-toolbar button,
.dedicated-client .action,
.dedicated-client .skills,
.dedicated-client .world-actions button,
.dedicated-client .quick-slot{border-image:none!important;background-image:linear-gradient(145deg,#304a70,#172b49)!important;border-radius:2px!important;box-shadow:inset 0 0 0 1px #9fb3ce33,0 2px 5px #0009!important;text-shadow:none!important}
.dedicated-client .game-toolbar button{border:1px solid #87a1c1!important}
.dedicated-client .game-toolbar button:hover,.dedicated-client .game-toolbar button:focus-visible{background-image:linear-gradient(145deg,#466487,#233c60)!important;border-color:#e2d181!important}
.dedicated-client .action{border:1px solid #7794b8!important}
.dedicated-client .action.basic{background-image:linear-gradient(145deg,#405d7f,#1f3553)!important;border-color:#b9c9d9!important}
.dedicated-client .action.potion{background-image:linear-gradient(145deg,#57466a,#2b2b49)!important;border-color:#ac9bc4!important}
.dedicated-client .action.empty-slot{background-image:linear-gradient(145deg,#1d3454,#12233c)!important;border-color:#5b769b!important}
.dedicated-client .skills{border:1px solid #829bbb!important;outline:1px solid #0c1829!important}
.dedicated-client .world-actions button{border:1px solid #829bbb!important}
.dedicated-client .quick-slot{border:1px solid #6d87aa!important}

/* Halmgaard HUD: attacks are performed from the world and quick items live in the hotbar. */
.dedicated-client #attack-action,
.dedicated-client #quick-slots{
  display:none!important
}

/* Halmgaard control skin: compact, flat navy tiles with clean white symbols. */
.dedicated-client .camera-zoom,
.dedicated-client .hud-compass{
  display:none!important
}
.dedicated-client .game-toolbar{
  top:10px!important;
  left:10px!important;
  gap:4px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important
}
.dedicated-client .game-toolbar button{
  width:44px!important;
  height:44px!important;
  padding:9px!important;
  background:#172942!important;
  background-image:linear-gradient(145deg,#263b5b,#14243c)!important;
  border:1px solid #435a78!important;
  border-radius:3px!important;
  box-shadow:inset 0 0 0 1px #ffffff0b,0 2px 4px #0008!important
}
.dedicated-client .game-toolbar img{
  width:24px!important;
  height:24px!important;
  filter:brightness(1.35) saturate(.35)!important
}
.dedicated-client .game-toolbar button:first-child:before{
  content:''!important;
  display:block;
  width:22px;
  height:22px;
  background:
    linear-gradient(#f3f6fa,#f3f6fa) 1px 1px/7px 7px no-repeat,
    linear-gradient(#f3f6fa,#f3f6fa) 14px 1px/7px 7px no-repeat,
    linear-gradient(#f3f6fa,#f3f6fa) 1px 14px/7px 7px no-repeat,
    linear-gradient(#f3f6fa,#f3f6fa) 14px 14px/7px 7px no-repeat
}
.dedicated-client .world-stats{
  top:61px!important;
  left:11px!important;
  font-size:10px!important;
  line-height:1.28!important
}
.dedicated-client .action-bar{
  left:8px!important;
  right:auto!important;
  bottom:8px!important;
  transform:none!important;
  max-width:calc(100% - 360px)!important;
  overflow:hidden!important
}
.dedicated-client .action-bar .skills{
  display:flex!important;
  gap:2px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  outline:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:hidden!important
}
.dedicated-client .action-bar .action,
.dedicated-client .action.empty-slot{
  width:39px!important;
  min-width:39px!important;
  height:40px!important;
  padding:3px!important;
  background:#111f35!important;
  background-image:linear-gradient(145deg,#213653,#101d31)!important;
  border:1px solid #354c6b!important;
  border-radius:2px!important;
  box-shadow:inset 0 0 0 1px #ffffff09!important
}
.dedicated-client .action-bar .action .action-icon{
  width:20px!important;
  height:20px!important
}
.dedicated-client .action-bar .action small{
  font-size:4px!important
}
.dedicated-client .action-bar .action kbd{
  top:2px!important;
  left:2px!important;
  padding:1px 2px!important;
  background:transparent!important;
  color:#d8e2ef!important
}
.dedicated-client .world-actions{
  right:160px!important;
  bottom:8px!important;
  gap:4px!important
}
.dedicated-client .world-actions button{
  width:52px!important;
  height:52px!important;
  padding:0!important;
  background:#172942!important;
  background-image:linear-gradient(145deg,#263b5b,#14243c)!important;
  border:1px solid #435a78!important;
  border-radius:3px!important;
  color:#f2f5f8!important;
  font:15px/1 Arial,sans-serif!important;
  box-shadow:inset 0 0 0 1px #ffffff0b,0 2px 5px #0009!important
}
.dedicated-client .world-actions button:first-child{
  font-size:28px!important
}
.dedicated-client .world-actions button[data-action="chat"]{
  position:relative;
  color:transparent!important;
  font-size:0!important
}
.dedicated-client .world-actions button[data-action="chat"]:before{
  content:'';
  position:absolute;
  left:14px;
  top:13px;
  width:22px;
  height:17px;
  border:2px solid #f2f5f8;
  border-radius:3px
}
.dedicated-client .world-actions button[data-action="chat"]:after{
  content:'';
  position:absolute;
  left:17px;
  top:30px;
  width:7px;
  height:7px;
  border-left:2px solid #f2f5f8;
  border-bottom:2px solid #f2f5f8;
  transform:skewY(-38deg)
}
@media (max-height:700px) and (orientation:landscape){
  .dedicated-client .game-toolbar button{width:44px!important;height:44px!important;padding:9px!important}
  .dedicated-client .game-toolbar img{width:24px!important;height:24px!important}
  .dedicated-client .world-stats{top:61px!important;left:11px!important;font-size:10px!important}
  .dedicated-client .action-bar .action,
  .dedicated-client .action.empty-slot{width:39px!important;min-width:39px!important;height:40px!important}
  .dedicated-client .world-actions button{width:52px!important;height:52px!important}
}

/* Phone landscape keeps the same visual proportions as the Halmgaard reference. */
@media (orientation:landscape) and (pointer:coarse){
  .dedicated-client .game-toolbar{top:7px!important;left:max(7px,env(safe-area-inset-left))!important;gap:3px!important}
  .dedicated-client .game-toolbar button{width:36px!important;height:36px!important;padding:7px!important;background:#172942!important;background-image:none!important;border-color:#3d5270!important;box-shadow:inset 0 0 0 1px #ffffff0a,0 1px 3px #0008!important}
  .dedicated-client .game-toolbar img{width:20px!important;height:20px!important}
  .dedicated-client .game-toolbar button:first-child:before{width:20px!important;height:20px!important;background:linear-gradient(#f3f6fa,#f3f6fa) 1px 1px/6px 6px no-repeat,linear-gradient(#f3f6fa,#f3f6fa) 13px 1px/6px 6px no-repeat,linear-gradient(#f3f6fa,#f3f6fa) 1px 13px/6px 6px no-repeat,linear-gradient(#f3f6fa,#f3f6fa) 13px 13px/6px 6px no-repeat!important}
  .dedicated-client .world-stats{top:49px!important;left:max(8px,env(safe-area-inset-left))!important;font-size:8px!important;line-height:1.25!important}
  .dedicated-client .action-bar{left:max(6px,env(safe-area-inset-left))!important;bottom:max(6px,env(safe-area-inset-bottom))!important;max-width:calc(100% - 330px)!important}
  .dedicated-client .action-bar .action,.dedicated-client .action.empty-slot{width:34px!important;min-width:34px!important;height:36px!important;padding:2px!important;background:#111f35!important;background-image:none!important;border-color:#314966!important}
  .dedicated-client .action-bar .action .action-icon{width:18px!important;height:18px!important}
  .dedicated-client .minimap-box{right:max(7px,env(safe-area-inset-right))!important;bottom:max(7px,env(safe-area-inset-bottom))!important;width:clamp(108px,13vw,142px)!important;background:#172942!important;border-color:#435a78!important;outline:0!important;box-shadow:0 2px 5px #0009!important}
  .dedicated-client .minimap-box canvas{width:100%!important;height:auto!important}
  .dedicated-client .minimap-box>span{padding:4px 6px!important;background:#1c304d!important;border-color:#435a78!important;font:7px Arial,sans-serif!important}
  .dedicated-client .world-actions{right:calc(clamp(108px,13vw,142px) + max(12px,env(safe-area-inset-right)))!important;bottom:max(7px,env(safe-area-inset-bottom))!important;gap:3px!important}
  .dedicated-client .world-actions button{width:43px!important;height:43px!important;background:#172942!important;background-image:none!important;border-color:#3d5270!important;font-size:12px!important;box-shadow:inset 0 0 0 1px #ffffff0a,0 1px 3px #0008!important}
  .dedicated-client .world-actions button:first-child{font-size:23px!important}
  .dedicated-client .world-actions button[data-action="chat"]:before{left:11px!important;top:10px!important;width:18px!important;height:14px!important}
  .dedicated-client .world-actions button[data-action="chat"]:after{left:14px!important;top:24px!important;width:6px!important;height:6px!important}
  .dedicated-client .world-chat-hud{left:max(7px,env(safe-area-inset-left))!important;bottom:49px!important;width:min(520px,42vw)!important;height:226px!important;border-width:1px!important;font-family:Arial,sans-serif!important}
  .dedicated-client .world-chat-hud .world-chat-head{padding:5px 7px!important;font:10px Arial,sans-serif!important;letter-spacing:.08em!important}
  .dedicated-client .world-chat-hud .world-chat-body{padding:5px!important}
  .dedicated-client .world-chat-hud .world-chat-messages{height:112px!important;padding:4px 6px!important;font:10px/1.3 Arial,sans-serif!important}
  .dedicated-client .world-chat-hud .world-chat-message{margin-bottom:3px!important}
  .dedicated-client .world-chat-hud .world-chat-tabs{gap:2px!important;margin-top:4px!important}
  .dedicated-client .world-chat-hud .world-chat-tabs button{min-height:22px!important;padding:2px 5px!important;font:9px Arial,sans-serif!important}
  .dedicated-client .world-chat-hud .world-chat-form{gap:4px!important;margin-top:5px!important}
  .dedicated-client .world-chat-hud .world-chat-form input{height:28px!important;padding:4px 6px!important;font:14px Arial,sans-serif!important}
  .dedicated-client .world-chat-hud .world-chat-form button{min-width:48px!important;padding:3px 7px!important;font:10px Arial,sans-serif!important}
}

/* Final scale and transparency pass: keep the game visible beneath every HUD group. */
.dedicated-client .game-toolbar button{width:40px!important;height:40px!important;padding:8px!important;background:rgba(18,35,58,.78)!important;background-image:none!important}
.dedicated-client .game-toolbar img{width:22px!important;height:22px!important}
.dedicated-client .action-bar .action,.dedicated-client .action.empty-slot{width:35px!important;min-width:35px!important;height:38px!important;background:rgba(14,29,49,.76)!important;background-image:none!important}
.dedicated-client .world-actions{right:140px!important}
.dedicated-client .world-actions button{width:46px!important;height:46px!important;background:rgba(18,35,58,.78)!important;background-image:none!important}
.dedicated-client .minimap-box{width:126px!important;background:rgba(18,35,58,.72)!important}
.dedicated-client .minimap-box canvas{width:124px!important;height:93px!important;opacity:.84}
.dedicated-client .minimap-box>span{background:rgba(24,45,72,.78)!important}
.dedicated-client .world-chat-hud{width:min(470px,38vw)!important;height:230px!important;background:rgba(12,23,40,.84)!important;backdrop-filter:blur(2px)}
.dedicated-client .world-chat-hud .world-chat-head{background:rgba(35,58,91,.8)!important}
.dedicated-client .world-chat-hud .world-chat-messages{height:112px!important;background:rgba(5,12,23,.7)!important}
.dedicated-client .world-chat-hud .world-chat-tabs button{background:rgba(22,42,68,.78)!important}
.dedicated-client .world-chat-hud .world-chat-tabs button.active{background:rgba(216,181,75,.92)!important;color:#111b2c!important;border-color:#f1d779!important}
.dedicated-client .world-chat-hud .world-chat-form input{background:rgba(7,18,32,.78)!important}
.dedicated-client .world-chat-hud .world-chat-head{gap:4px!important;padding:3px 4px!important;min-height:31px!important}
.dedicated-client .world-chat-hud .world-chat-head .world-chat-tabs{flex:1!important;min-width:0!important;margin:0!important;overflow-x:auto!important;scrollbar-width:none}
.dedicated-client .world-chat-hud .world-chat-head .world-chat-tabs::-webkit-scrollbar{display:none}
.dedicated-client .world-chat-hud .world-chat-head .world-chat-tabs button{min-height:24px!important;padding:2px 7px!important;white-space:nowrap!important}
.dedicated-client .world-chat-window-actions{display:flex;flex:none;gap:2px}
.dedicated-client .world-chat-window-actions button{display:grid!important;place-items:center;width:25px!important;min-width:25px!important;height:25px!important;padding:0!important;background:rgba(15,28,48,.72)!important;border:1px solid #536c8d!important;color:#edf3fa!important;font:15px/1 Arial,sans-serif!important}
.dedicated-client .world-chat-window-actions button[hidden]{display:none!important}
.dedicated-client .world-chat-settings{position:absolute;top:34px;right:5px;z-index:3;display:flex;align-items:center;gap:8px;padding:7px;background:rgba(10,20,35,.96);border:1px solid #536c8d;color:#e4edf7;font:10px Arial,sans-serif}
.dedicated-client .world-chat-settings[hidden]{display:none}
.dedicated-client .world-chat-settings label{display:flex;align-items:center;gap:4px;white-space:nowrap}
.dedicated-client .world-chat-settings button{padding:4px 6px;background:#213856;border:1px solid #536c8d;color:#e4edf7;font:9px Arial,sans-serif}
.dedicated-client .world-chat-message time{color:#8394aa}
.dedicated-client .world-chat-form{position:relative}
.dedicated-client .world-chat-emoji{width:30px!important;min-width:30px!important;padding:0!important;background:rgba(17,34,57,.78)!important;border-color:#536c8d!important;color:#edf3fa!important;font:17px/1 Arial,sans-serif!important}
.dedicated-client .world-chat-emoji-picker{position:absolute;right:48px;bottom:31px;z-index:4;display:flex;gap:3px;padding:4px;background:rgba(9,19,33,.96);border:1px solid #536c8d}
.dedicated-client .world-chat-emoji-picker[hidden]{display:none}
.dedicated-client .world-chat-emoji-picker button{width:28px;min-width:28px;height:28px;padding:0;background:#1c304d;border:1px solid #536c8d;font:16px/1 Arial,sans-serif}
.dedicated-client .world-chat-hud{bottom:52px!important}
@media (orientation:landscape) and (pointer:coarse){
  .dedicated-client .game-toolbar button{width:32px!important;height:32px!important;padding:6px!important;background:rgba(18,35,58,.74)!important}
  .dedicated-client .game-toolbar img{width:18px!important;height:18px!important}
  .dedicated-client .game-toolbar button:first-child:before{width:18px!important;height:18px!important;background:linear-gradient(#f3f6fa,#f3f6fa) 1px 1px/5px 5px no-repeat,linear-gradient(#f3f6fa,#f3f6fa) 12px 1px/5px 5px no-repeat,linear-gradient(#f3f6fa,#f3f6fa) 1px 12px/5px 5px no-repeat,linear-gradient(#f3f6fa,#f3f6fa) 12px 12px/5px 5px no-repeat!important}
  .dedicated-client .world-stats{top:43px!important;font-size:7px!important}
  .dedicated-client .action-bar .action,.dedicated-client .action.empty-slot{width:30px!important;min-width:30px!important;height:32px!important;background:rgba(12,27,47,.72)!important}
  .dedicated-client .action-bar .action .action-icon{width:15px!important;height:15px!important}
  .dedicated-client .minimap-box{width:clamp(90px,11vw,118px)!important;background:rgba(18,35,58,.68)!important}
  .dedicated-client .minimap-box canvas{width:100%!important;height:auto!important;opacity:.8}
  .dedicated-client .world-actions{right:calc(clamp(90px,11vw,118px) + max(10px,env(safe-area-inset-right)))!important}
  .dedicated-client .world-actions button{width:38px!important;height:38px!important;background:rgba(18,35,58,.74)!important}
  .dedicated-client .world-actions button:first-child{font-size:20px!important}
  .dedicated-client .world-actions button[data-action="chat"]:before{left:9px!important;top:8px!important;width:16px!important;height:13px!important}
  .dedicated-client .world-actions button[data-action="chat"]:after{left:12px!important;top:21px!important;width:5px!important;height:5px!important}
  .dedicated-client .world-chat-hud{bottom:49px!important;width:min(450px,36vw)!important;height:198px!important;background:rgba(12,23,40,.78)!important}
  .dedicated-client .world-chat-hud .world-chat-head{padding:4px 6px!important;font-size:9px!important}
  .dedicated-client .world-chat-hud .world-chat-messages{height:92px!important;font-size:9px!important;background:rgba(5,12,23,.62)!important}
  .dedicated-client .world-chat-hud .world-chat-tabs button{min-height:20px!important;padding:2px 4px!important;font-size:8px!important;background:rgba(22,42,68,.72)!important}
  .dedicated-client .world-chat-hud .world-chat-form input{height:25px!important;font-size:12px!important;background:rgba(7,18,32,.7)!important}
  .dedicated-client .world-chat-hud .world-chat-form button{min-width:42px!important;font-size:9px!important}
  .dedicated-client .world-chat-hud .world-chat-head .world-chat-tabs button{min-height:21px!important;padding:2px 5px!important;font-size:8px!important}
  .dedicated-client .world-chat-window-actions button{width:22px!important;min-width:22px!important;height:22px!important;font-size:13px!important}
  .dedicated-client .world-chat-hud .world-chat-form .world-chat-emoji{width:26px!important;min-width:26px!important;font-size:14px!important}
  .dedicated-client .world-chat-hud .world-chat-form .world-chat-send{min-width:38px!important}
}

/* The mobile client magnifies fixed HUD panels. Counter-scale chat so it clears the hotbar. */
@media (orientation:landscape) and (pointer:coarse){
  .dedicated-client .world-chat-hud{
    left:max(8px,env(safe-area-inset-left))!important;
    bottom:max(58px,calc(env(safe-area-inset-bottom) + 50px))!important;
    transform:scale(.64)!important;
    transform-origin:left bottom!important;
  }
}

/* Shared Halmgaard blue treatment for every in-game interface. */
.dedicated-client dialog,.dedicated-client .journal-panel,.dedicated-client .quest-panel{
  background:linear-gradient(180deg,rgba(18,31,52,.96),rgba(7,15,28,.96))!important;
  border:1px solid #506b91!important;
  color:#e5edf7!important;
  box-shadow:inset 0 0 0 1px #9bb7dc22,0 8px 28px #000b!important;
}
.dedicated-client dialog header,.dedicated-client .dialog-heading{
  background:rgba(31,52,82,.86)!important;
  border-bottom-color:#506b91!important;
}
.dedicated-client dialog button,.dedicated-client dialog select,.dedicated-client dialog input{
  border-color:#506b91!important;
}
.dedicated-client dialog button.quiet{
  background:#172942!important;color:#eef4fb!important;
}
.slayer-modal{width:min(780px,88vw)!important;max-height:min(650px,84vh)!important}
.slayer-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;min-width:0}
.slayer-summary{display:flex;flex-wrap:wrap;gap:8px 18px;padding:9px 11px;background:#142640;border:1px solid #435f84;color:#cfdaea}
.slayer-summary strong{color:#f2d47e;letter-spacing:.08em}
.slayer-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;max-height:390px;overflow:auto;padding-right:4px}
.slayer-creature{display:flex!important;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:7px 9px!important;text-align:left;background:rgba(20,39,66,.82)!important;border:1px solid #3f5b80!important;color:#b8e4b4!important}
.slayer-creature small{color:#a9b7c9;font:11px/1.25 Arial,sans-serif;text-align:right}
.slayer-creature.active{outline:2px solid #e3c259;background:#1c3c38!important}
.slayer-creature:disabled{opacity:.42}
@media (orientation:landscape) and (pointer:coarse){
  .slayer-modal{width:min(720px,82vw)!important;max-height:78vh!important}
  .slayer-list{max-height:43vh}
  .slayer-creature{min-height:34px;padding:4px 6px!important;font-size:11px!important}
  .slayer-creature small{font-size:8px}
}

/* Return every overlay to Aldoria's dark sand and aged bronze palette. */
.dedicated-client dialog,
.dedicated-client #dialog,
.dedicated-client .journal,
.dedicated-client .quest-panel{
  background:linear-gradient(145deg,rgba(67,59,46,.97),rgba(35,31,25,.97) 72%)!important;
  border:1px solid #a48d62!important;
  outline:2px solid #211d17!important;
  color:#e3d7bb!important;
  box-shadow:inset 0 0 0 2px #71624755,0 12px 38px #000a!important;
}
.dedicated-client dialog header,.dedicated-client .dialog-heading{
  background:rgba(70,61,47,.9)!important;border-bottom-color:#8f7b58!important;
}
.dedicated-client dialog h2,.dedicated-client .journal h2{color:#efc36d!important}
.dedicated-client #dialog-content,.dedicated-client dialog>p{color:#d4c8ae!important}
.dedicated-client dialog button.quiet,.dedicated-client dialog select,.dedicated-client dialog input{
  background:#302b23!important;border-color:#887655!important;color:#e7dcc2!important;
}
.dedicated-client .slayer-summary{background:#322d24;border-color:#887655;color:#d4c8ae}
.dedicated-client .slayer-creature{background:rgba(52,47,38,.88)!important;border-color:#7e6c4d!important;color:#bad49f!important}
.dedicated-client .slayer-creature.active{background:#45402c!important;outline-color:#d4ae58}

/* Deep Roads: compact, sand-dark task ledger and an always-available safe exit. */
.slayer-floors{display:grid;gap:8px;max-height:440px;overflow:auto;padding-right:4px}
.slayer-floor{border:1px solid #746345;background:rgba(39,34,27,.84);box-shadow:inset 3px 0 0 var(--floor-colour)}
.slayer-floor>header{display:flex;justify-content:space-between;gap:12px;padding:7px 10px;border-bottom:1px solid #66583f;color:#ead9b4;letter-spacing:.05em}
.slayer-floor>header small{color:#b8aa8d;letter-spacing:0}
.slayer-floor .slayer-list{grid-template-columns:repeat(2,minmax(0,1fr));max-height:none;overflow:visible;padding:6px}
.slayer-floor.locked>header{opacity:.58}
#slayer-return{position:absolute;left:50%;top:max(12px,env(safe-area-inset-top));transform:translateX(-50%);z-index:12;padding:8px 13px;background:rgba(45,39,30,.9);border:1px solid #a48a5d;color:#f1dfba;box-shadow:inset 0 0 0 1px #ead6aa1f,0 3px 9px #0009;font:12px Georgia,serif;letter-spacing:.04em}
#slayer-return span{font-size:17px;vertical-align:-1px;margin-right:5px}
#slayer-return[hidden]{display:none!important}
#slayer-return{display:none!important}
.task-tracker[hidden]{display:none!important}
@media(max-width:750px){
  .slayer-floors{max-height:52vh}
  .slayer-floor .slayer-list{grid-template-columns:1fr}
  .slayer-floor>header{padding:5px 7px;font-size:11px}
  #slayer-return{top:max(6px,env(safe-area-inset-top));padding:5px 9px;font-size:9px}
}

/* The install guide belongs to the same game, including before the world loads. */
.dedicated-client .install-guide{
  background:radial-gradient(ellipse at 50% 0,#8e774b22,transparent 56%),linear-gradient(145deg,#302a21,#191712 78%)!important;
  border-color:#a48d62!important;outline-color:#4e422f!important;color:#e3d7bb!important;
  box-shadow:0 0 28px #c49a4d10,0 20px 70px #000b!important;
}
.dedicated-client .install-guide h2{color:#e9c26f!important}
.dedicated-client .install-guide>p,.dedicated-client .install-guide .install-save-note{color:#bfb39a!important}
.dedicated-client .install-guide li{background:#17140f80!important;border-color:#8d765244!important}
.dedicated-client .install-guide .install-primary{background:linear-gradient(#9c824b,#6f5b36)!important;border-color:#d0ad62!important;color:#fff1ca!important}
.dedicated-client .install-guide .install-secondary button{background:#27231c!important;border-color:#786849!important;color:#d7ccb4!important}

/* Cleaner journal: tighter hierarchy, visible objectives, and reliable scrolling. */
.dedicated-client .journal{padding:16px 17px 14px!important;overflow:hidden!important}
.dedicated-client .journal-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}
.dedicated-client .journal-tabs{margin:0 0 10px!important;border-bottom:1px solid #77674b!important}
.dedicated-client .journal-tabs button{padding:7px 10px!important;color:#c3b79f!important}
.dedicated-client .journal-tabs button[aria-selected=true]{color:#f0c66e!important;border-color:#d1ad62!important}
.dedicated-client #quest-panel,.dedicated-client #inventory-panel{max-height:calc(100% - 103px);overflow:auto;padding:2px 4px 12px 0}
.dedicated-client .journal .chapter-label{margin:4px 0 5px;color:#c6a65f!important;font-size:8px!important}
.dedicated-client .journal h2{margin:0 0 7px!important;font-size:22px!important;line-height:1.05}
.dedicated-client .journal .quest-prose{margin:0 0 10px;color:#c9bea7!important;font-size:11px!important;line-height:1.45}
.dedicated-client #quest-objective{padding:8px 9px;margin:0 0 8px;background:#29251e;border-left:3px solid #c9a75d;color:#eee1c3;font-size:10px;line-height:1.4}
.dedicated-client .shard-list{margin:7px 0!important}
.dedicated-client .quest-tip{padding:8px!important;background:#242019b8!important;border-color:#6f6147!important;color:#c9bea7!important}
.dedicated-client .journal-bottom{padding-top:8px!important;margin-top:8px!important;border-color:#6f6147!important}

/* A small thumb stick for mobile movement, kept above the hotbar. */
@media (orientation:landscape) and (pointer:coarse){
  .dedicated-client .touch-controls{display:flex!important;position:absolute!important;left:max(12px,env(safe-area-inset-left))!important;right:auto!important;bottom:max(57px,calc(env(safe-area-inset-bottom) + 51px))!important;width:78px!important;height:78px!important;z-index:10!important;pointer-events:none!important}
  .dedicated-client .joystick{display:grid!important;pointer-events:auto!important;width:72px!important;height:72px!important;border:1px solid #cdbb8a66!important;background:#312b2255!important;box-shadow:inset 0 0 0 6px #8e7a4b18,0 2px 7px #0006!important}
  .dedicated-client .joystick:before{inset:8px!important;border-color:#d8c59133!important}
  .dedicated-client .joystick>span{width:29px!important;height:29px!important;background:#bca87966!important;border-color:#e0cf9a88!important}
  .dedicated-client .dpad,.dedicated-client #touch-attack{display:none!important}
  .dedicated-client .journal{top:54px!important;right:max(9px,env(safe-area-inset-right))!important;bottom:auto!important;width:360px!important;height:390px!important;max-height:calc(100dvh - 66px)!important;transform:scale(.68)!important;transform-origin:top right!important}
  .dedicated-client:has(.world-chat-hud:not([hidden])) .touch-controls{display:none!important}
}

/* Remove the remaining navy skin from the in-world HUD. */
.dedicated-client .game-toolbar{background:rgba(43,38,30,.9)!important;border-color:#8d7957!important;box-shadow:0 3px 10px #0009,inset 0 0 0 1px #c7aa7040!important}
.dedicated-client .game-toolbar button{background:rgba(55,48,37,.86)!important;background-image:none!important;border-color:#9a835d!important;box-shadow:inset 0 0 0 1px #dac28b22,0 2px 4px #0008!important}
.dedicated-client .game-toolbar button:hover,.dedicated-client .game-toolbar button:focus-visible{background:#554936!important;border-color:#ddbd73!important}
.dedicated-client .vitals{background:linear-gradient(145deg,rgba(55,48,37,.96),rgba(28,25,20,.96))!important;border-color:#9a835d!important;box-shadow:0 3px 12px #000a,inset 0 0 0 1px #d8c08a2e!important}
.dedicated-client .vitals:before{background:#3b3429!important;border-color:#9a835d!important;color:#ddc68f!important}
.dedicated-client #quick-slots{background:rgba(43,38,30,.78)!important;border-color:#806e50!important}
.dedicated-client .quick-slot,.dedicated-client .quick-slot.filled{background:rgba(54,47,36,.82)!important;background-image:none!important;border-color:#8c7755!important}
.dedicated-client .action-bar .skills{background:rgba(38,34,27,.82)!important;border-color:#8f7a58!important;box-shadow:0 3px 10px #000a,inset 0 0 0 1px #c6aa7130!important}
.dedicated-client .action-bar .action,.dedicated-client .action.empty-slot{background:rgba(52,45,35,.8)!important;background-image:none!important;border-color:#897454!important;color:#eee1c4!important}
.dedicated-client .action-bar .action.basic{background:rgba(69,59,43,.86)!important}
.dedicated-client .action-bar .action.potion{background:rgba(72,48,40,.84)!important}
.dedicated-client .world-actions button{background:rgba(52,45,35,.84)!important;background-image:none!important;border-color:#927c59!important;color:#f0e4ca!important;box-shadow:inset 0 0 0 1px #d7bf8826,0 2px 6px #0009!important}
.dedicated-client .minimap-box{background:rgba(43,38,30,.8)!important;border-color:#927c59!important;box-shadow:0 2px 7px #0009,inset 0 0 0 1px #d7bf8826!important}
.dedicated-client .minimap-box>span{background:rgba(56,49,38,.88)!important;border-color:#8d7957!important;color:#e7d9bb!important}
.dedicated-client .task-tracker{box-sizing:border-box;padding:7px 9px!important;background:rgba(35,31,24,.78)!important;border:1px solid #927c59!important;box-shadow:0 2px 8px #0008,inset 0 0 0 1px #d7bf8826!important;text-shadow:0 1px 2px #000!important}
.dedicated-client .task-tracker>b{color:#ecd28f!important}
.dedicated-client .task-tracker>span:last-child{color:#e2d5b8!important}
.dedicated-client .world-chat-hud{background:rgba(43,38,30,.86)!important;border-color:#927c59!important;box-shadow:0 4px 15px #000b,inset 0 0 0 1px #d7bf8826!important}
.dedicated-client .world-chat-hud .world-chat-head{background:rgba(65,56,42,.9)!important;border-bottom-color:#927c59!important;color:#efd18b!important}
.dedicated-client .world-chat-hud .world-chat-messages{background:rgba(20,18,14,.72)!important;border-color:#786748!important;color:#e6dbc3!important}
.dedicated-client .world-chat-hud .world-chat-tabs button{background:rgba(48,42,32,.82)!important;border-color:#806d4e!important;color:#ded2b9!important}
.dedicated-client .world-chat-hud .world-chat-tabs button.active{background:#c5a454!important;border-color:#efd17a!important;color:#2a241b!important}
.dedicated-client .world-chat-hud .world-chat-form input,.dedicated-client .world-chat-window-actions button,.dedicated-client .world-chat-emoji{background:rgba(31,28,22,.82)!important;border-color:#806d4e!important;color:#eadfc8!important}

/* Keep level and skill notices out of the play area. */
.dedicated-client #toast-region{left:auto!important;right:14px!important;top:182px!important;transform:none!important;width:min(245px,28vw)!important;gap:4px!important;z-index:7!important}
.dedicated-client .toast.level{padding:6px 9px!important;text-align:left!important;background:rgba(49,43,33,.92)!important;border:1px solid #c5a45d!important;border-left-width:4px!important;color:#f0d58e!important;font:10px/1.3 Arial,sans-serif!important;box-shadow:0 2px 7px #0008!important}
@media (orientation:landscape) and (pointer:coarse){
  .dedicated-client #toast-region{right:max(9px,env(safe-area-inset-right))!important;top:150px!important;width:min(190px,24vw)!important}
  .dedicated-client .toast.level{padding:4px 6px!important;font-size:8px!important}
}

/* Bronze focus states replace the browser's remaining blue highlight. */
.dedicated-client :is(button,a,input,select):focus,
.dedicated-client :is(button,a,input,select):focus-visible{
  outline:2px solid #d1ad62!important;
  outline-offset:1px!important;
  box-shadow:0 0 0 1px #382f20,0 0 8px #d1ad6238!important;
}

/* One close-button design for dialogs, journal, install guide and chat. */
.dedicated-client :is(#dialog-close,#close-bag,#install-close,[data-chat-close]){
  position:relative!important;
  display:block!important;
  width:30px!important;min-width:30px!important;height:30px!important;min-height:30px!important;
  padding:0!important;
  border:2px solid #d1ad62!important;
  outline:1px solid #272118!important;
  border-radius:0!important;
  background:linear-gradient(#9b865f,#6f6045)!important;
  color:transparent!important;
  font-size:0!important;
  box-shadow:inset 0 0 0 2px #403727,0 2px 4px #0008!important;
}
.dedicated-client :is(#dialog-close,#close-bag,#install-close,[data-chat-close])::after{
  content:"";position:absolute;inset:6px;
  background:linear-gradient(45deg,transparent 39%,#17140f 40% 60%,transparent 61%),linear-gradient(-45deg,transparent 39%,#17140f 40% 60%,transparent 61%);
  filter:drop-shadow(1px 1px #c8b384);
}
.dedicated-client #close-bag{margin:0!important}
.dedicated-client #dialog-close,.dedicated-client #install-close{position:absolute!important}
.dedicated-client #install-close{right:12px!important;top:10px!important}
.dedicated-client [data-chat-close]{width:22px!important;min-width:22px!important;height:22px!important;min-height:22px!important;border-width:1px!important}
.dedicated-client [data-chat-close]::after{inset:4px}

/* Level notices are brief corner chips, never centre-screen banners. */
.dedicated-client #toast-region{width:160px!important;gap:2px!important}
.dedicated-client .toast.level{padding:3px 5px!important;border-left-width:3px!important;font-size:8px!important;line-height:1.2!important}
@media (orientation:landscape) and (pointer:coarse){
  .dedicated-client #toast-region{top:143px!important;width:126px!important}
  .dedicated-client .toast.level{padding:2px 4px!important;font-size:7px!important}
  .dedicated-client .task-tracker{
    left:max(10px,env(safe-area-inset-left))!important;
    top:91px!important;
    width:145px!important;
    max-width:145px!important;
    padding:5px 6px!important;
    background:rgba(35,31,24,.58)!important;
    backdrop-filter:blur(1px)!important;
  }
  .dedicated-client .client-playing .client-play-tools,
  .dedicated-client.client-playing .client-play-tools{
    top:42px!important;
    left:50%!important;
    right:auto!important;
    bottom:auto!important;
    transform:translateX(-50%) scale(.62)!important;
    transform-origin:top center!important;
    gap:6px!important;
  }
  .dedicated-client .client-play-tools button{
    height:29px!important;
    min-width:38px!important;
    padding:3px 7px!important;
    font-size:10px!important;
  }
  .dedicated-client .vitals{
    transform:scale(.72)!important;
    transform-origin:top right!important;
    right:max(8px,env(safe-area-inset-right))!important;
    top:8px!important;
  }
}
