html,body{color:#e8e4f0;background:#14121c;height:100%;margin:0;font-family:system-ui,Segoe UI,sans-serif;overflow:hidden}#game{touch-action:none;cursor:crosshair;outline:none;width:100%;height:100%;display:block}body:not(.in-game) .game-only{display:none!important}#menu{background:radial-gradient(#14121c59,#0a0810d9);justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0;overflow-y:auto}#menu[hidden]{display:none}#menu:has(.creation){background:linear-gradient(90deg,#0a0810d9 0%,#0a081066 45%,#0000 70%);justify-content:flex-start;align-items:flex-start}.panel{background:#100d18eb;border:1px solid #c9a6ff40;border-radius:12px;flex-direction:column;gap:12px;width:min(380px,100%);padding:22px 24px;display:flex;box-shadow:0 10px 40px #00000080}.panel.wide{width:min(720px,100%)}.panel.creation{width:min(420px,100%)}.panel .maren{background:#ffd97014;border-left:3px solid #ffd970;border-radius:4px;margin:0;padding:8px 10px;font-size:13px;line-height:1.4}.panel .maren b{color:#ffd970}.panel h1{color:#c9a6ff;margin:0 0 4px;font-size:20px}.panel label,.panel .field{flex-direction:column;gap:4px;font-size:13px;display:flex}.panel [hidden]{display:none!important}.panel .label{font-size:13px}.panel small,.panel .note{opacity:.7;margin:0;font-size:12px}.panel input{color:inherit;font:inherit;background:#00000059;border:1px solid #fff3;border-radius:6px;padding:8px 10px}.panel input:focus{outline-offset:1px;outline:2px solid #c9a6ff99}.panel button{color:inherit;font:inherit;cursor:pointer;background:#ffffff0f;border:1px solid #fff3;border-radius:6px;padding:8px 14px}.panel button:hover:not(:disabled){background:#ffffff1f}.panel button:disabled{opacity:.4;cursor:default}.panel button.primary{background:#7b4fd6;border-color:#9a74ec;font-weight:700}.panel button.primary:hover:not(:disabled){background:#8d62e6}.panel button.danger{color:#ff9a8e;border-color:#ff7a6b80}.panel button.link{opacity:.75;background:0 0;border:none;align-self:center;text-decoration:underline}.panel .status{min-height:1.2em;margin:0;font-size:13px}.panel .error{color:#ff7a6b}.tabs{gap:6px;display:flex}.tabs .tab{flex:1}.tabs .tab.active,.chip.active{background:#7b4fd673;border-color:#9a74ec}.chips{flex-wrap:wrap;gap:6px;display:flex}.panel .chip{padding:5px 10px;font-size:13px}.row{align-items:center;gap:8px;display:flex}.panel>.row:last-child{justify-content:space-between}.slots{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;display:grid}.slot{background:#ffffff0a;border:1px solid #ffffff1f;border-radius:10px;flex-direction:column;gap:6px;padding:14px;display:flex}.slot strong{font-size:16px}.slot span{opacity:.75;font-size:12px}.slot.empty{border-style:dashed;align-items:flex-start}.points{color:#ffe08a;margin:0;font-weight:700}.attrs{flex-direction:column;gap:6px;display:flex}.attr{justify-content:space-between;align-items:center;gap:8px;display:flex}.attr>div:first-child{flex-direction:column;display:flex}.attr-value{text-align:center;min-width:52px;font-weight:700}.panel .step{width:30px;padding:4px 0}#hud{pointer-events:none;-webkit-user-select:none;user-select:none;background:#0a0810b3;border-radius:8px;max-width:340px;padding:10px 14px;font-size:13px;line-height:1.5;position:fixed;top:12px;left:12px}#hud-title{color:#c9a6ff;font-size:15px;font-weight:700}#hud-status[data-state=error]{color:#ff7a6b}#hud-controls{opacity:.7;margin-top:6px;font-size:12px}#hud-leave{color:inherit;font:inherit;cursor:pointer;pointer-events:auto;background:#ffffff0f;border:1px solid #fff3;border-radius:6px;margin-top:8px;padding:4px 10px;font-size:12px}#hud-map{color:#ffe9a8;font-weight:700}#vitals{pointer-events:none;-webkit-user-select:none;user-select:none;flex-direction:column;align-items:center;gap:5px;display:flex;position:fixed;bottom:14px;left:50%;transform:translate(-50%)}#downed-banner{pointer-events:auto;background:#781414e0;border-radius:6px;align-items:center;gap:10px;padding:6px 14px;font-weight:700;display:flex}#downed-banner[hidden],#downed-giveup[hidden]{display:none}#downed-giveup{color:inherit;font:inherit;cursor:pointer;background:#0000004d;border:1px solid #ffffff59;border-radius:6px;padding:3px 10px;font-size:12px}#levels{text-shadow:0 1px 2px #000;grid-template-columns:auto 1fr auto 1fr;align-items:center;gap:4px 6px;width:300px;font-size:11px;font-weight:700;display:grid}.xp{pointer-events:auto;background:#0a0810cc;border-radius:3px;height:5px;overflow:hidden}.xp>div{background:#b48cff;width:0;height:100%;transition:width .25s ease-out}.xp.class>div{background:#ffd970}.bar{background:#0a0810cc;border:1px solid #ffffff26;border-radius:9px;width:300px;height:18px;position:relative;overflow:hidden}#mana-bar{height:12px}.bar-fill{width:100%;height:100%;transition:width .12s ease-out}#hp-fill{background:linear-gradient(#e0524a,#a92f2a)}#mana-fill{background:linear-gradient(#5a8fff,#2f4fb0)}.bar-text{text-shadow:0 1px 2px #000;justify-content:center;align-items:center;font-size:11px;font-weight:700;display:flex;position:absolute;inset:0}#hotbar{pointer-events:auto;gap:4px;margin-top:2px;display:flex}.hotbar-gap{width:8px}.hotbar-slot{width:42px;height:42px;color:inherit;font:inherit;cursor:pointer;background:#0a0810d1;border:1px solid #fff3;border-radius:8px;padding:0;position:relative;overflow:hidden}.hotbar-slot.primary{border-color:#ffb347}.hotbar-slot.empty{opacity:.55}.hotbar-slot.no-mana .hotbar-icon{filter:grayscale()brightness(.6)}.hotbar-icon{font-size:20px;line-height:42px}.hotbar-key{opacity:.8;font-size:10px;font-weight:700;position:absolute;top:1px;left:4px}.hotbar-cd{pointer-events:none;background:#000000a6;height:0;position:absolute;bottom:0;left:0;right:0}#boss-bar{pointer-events:none;text-shadow:0 1px 2px #000;flex-direction:column;align-items:center;gap:4px;width:min(460px,100vw - 420px);min-width:260px;display:flex;position:fixed;top:12px;left:50%;transform:translate(-50%)}#boss-bar[hidden]{display:none}#boss-name{color:#ff9ee0;font-weight:800}.boss-track{background:#0a0810d9;border:1px solid #ff9ee066;border-radius:6px;width:100%;height:12px;overflow:hidden}#boss-fill{background:linear-gradient(#d0508f,#8a2a5e);width:100%;height:100%;transition:width .15s ease-out}#boss-note{color:#ffe08a;min-height:1em;font-size:12px;font-weight:700}#objective{color:#c8ffd4;pointer-events:none;background:#0a0810d1;border:1px solid #7dff9a66;border-radius:8px;padding:6px 14px;font-weight:700;position:fixed;top:64px;left:50%;transform:translate(-50%)}#objective[hidden]{display:none}#prompt{color:#ffe9a8;pointer-events:none;background:#0a0810d9;border:1px solid #ffd97080;border-radius:8px;padding:6px 14px;font-weight:700;position:fixed;bottom:196px;left:50%;transform:translate(-50%)}#toast{opacity:0;pointer-events:none;background:#0a0810e0;border-radius:8px;padding:8px 16px;font-weight:700;transition:opacity .2s;position:fixed;top:18%;left:50%;transform:translate(-50%)}#toast.visible{opacity:1}#travel{color:#c9a6ff;background:#0a0810eb;justify-content:center;align-items:center;font-size:20px;font-weight:700;display:flex;position:fixed;inset:0}#travel[hidden],#prompt[hidden],#dialog[hidden]{display:none}#dialog{background:#100d18f2;border:1px solid #ffd97066;border-radius:12px;gap:14px;width:min(620px,100vw - 24px);padding:16px 18px;display:flex;position:fixed;bottom:196px;left:50%;transform:translate(-50%);box-shadow:0 10px 40px #00000080}#dialog .portrait{text-shadow:0 1px 3px #000;border:2px solid #ffd970;border-radius:50%;flex:none;justify-content:center;align-items:center;width:64px;height:64px;font-size:28px;font-weight:800;display:flex}.dialog-body{flex-direction:column;flex:1;gap:6px;display:flex}.dialog-body p{margin:0;line-height:1.45}.dialog-name{color:#ffd970;font-weight:800}.dialog-name small{opacity:.75;color:#e8e4f0;margin-left:8px;font-weight:500}.dialog-options{flex-direction:column;gap:4px;margin-top:4px;display:flex}.dialog-options button{text-align:left;color:inherit;font:inherit;cursor:pointer;background:#ffffff0d;border:1px solid #ffffff26;border-radius:6px;padding:6px 10px}.dialog-options button:hover{background:#ffffff1f}.dialog-options .key{color:#ffd970;width:18px;margin-right:6px;font-weight:800;display:inline-block}#dialog>.close,.window header .close{color:inherit;cursor:pointer;opacity:.7;background:0 0;border:none;align-self:flex-start;font-size:20px;line-height:1}#windows{pointer-events:none;flex-direction:row-reverse;align-items:flex-start;gap:10px;display:flex;position:fixed;top:12px;bottom:180px;right:12px}.window{box-sizing:border-box;scrollbar-gutter:stable;pointer-events:auto;background:#100d18f0;border:1px solid #c9a6ff40;border-radius:10px;flex-direction:column;gap:10px;max-height:100%;padding:12px 14px;font-size:13px;display:flex;overflow-y:auto;box-shadow:0 10px 40px #00000080}.window[hidden]{display:none}.window header{justify-content:space-between;align-items:center;display:flex}.window h2{color:#c9a6ff;margin:0;font-size:16px}.window .note,.window .muted{opacity:.65;margin:0;font-size:12px}.window button{color:inherit;font:inherit;cursor:pointer;background:#ffffff0f;border:1px solid #fff3;border-radius:6px;padding:5px 12px}.window button:hover{background:#ffffff1f}.inv-body{gap:12px;display:flex}.equip-grid{grid-template-columns:repeat(2,48px);align-content:start;gap:6px;display:grid}.bag-grid{grid-template-columns:repeat(6,40px);align-content:start;gap:4px;display:grid}.storage-grid{grid-template-columns:repeat(6,40px);gap:4px;display:grid}.cell{box-sizing:border-box;cursor:pointer;-webkit-user-select:none;user-select:none;background:#ffffff0f;border:1px solid #ffffff24;border-radius:6px;justify-content:center;align-items:center;width:40px;height:40px;display:flex;position:relative}.equip-grid .cell{width:48px;height:48px}.cell.empty{cursor:default;background:#ffffff05}.cell.selected{border-color:#ffd970;box-shadow:inset 0 0 0 1px #ffd970}.cell-icon{font-size:22px}.cell-qty{text-shadow:0 1px 2px #000;font-size:11px;font-weight:800;position:absolute;bottom:1px;right:3px}.cell-label{text-align:center;opacity:.6;pointer-events:none;font-size:9px;position:absolute;bottom:1px;left:0;right:0}.cell:not(.empty) .cell-label{display:none}.details{background:#ffffff0a;border-radius:8px;flex-direction:column;gap:4px;min-height:92px;padding:8px 10px;display:flex}.details p{margin:0}.details small{opacity:.7}.details.muted{justify-content:center}.window .check{align-items:center;gap:6px;font-size:12px;display:flex}.skills{width:400px}.window .points{color:#ffe08a;margin:0;font-weight:700}.status{width:340px}.status .attrs{flex-direction:column;gap:6px;display:flex}.status .attr{justify-content:space-between;align-items:center;gap:8px;display:flex}.status .attr>div:first-child{flex-direction:column;display:flex}.status .attr small{opacity:.65;font-size:11px}.window .step,.window .learn{width:28px;padding:3px 0}.levels-box{justify-content:space-between;gap:10px;display:flex}.levels-box>div{flex-direction:column;display:flex}.levels-box small{opacity:.7}.derived{background:#ffffff0a;border-radius:8px;grid-template-columns:1fr 1fr;gap:3px 12px;padding:8px 10px;font-size:12px;display:grid}.derived>div{justify-content:space-between;display:flex}.inventory{width:420px}.storage{width:300px}.skill-list{flex-direction:column;gap:8px;display:flex}.skill-row{background:#ffffff0a;border-radius:8px;flex-wrap:wrap;gap:10px;padding:8px 10px;display:flex}.skill-icon{text-align:center;width:36px;font-size:26px}.skill-info{flex-direction:column;flex:1;gap:2px;min-width:200px;display:flex}.skill-info p{margin:2px 0 0}.skill-info small{opacity:.7}.skill-info .requires{color:#ffb3a8;opacity:.85}.skill-slots{justify-content:flex-end;gap:4px;width:100%;display:flex}.window .skill-slots button{width:28px;padding:3px 0;font-size:12px}.window .skill-slots button.active{background:#7b4fd68c;border-color:#9a74ec}.chat-bubble{color:#1a1424;overflow-wrap:anywhere;pointer-events:none;background:#ffffffeb;border-radius:10px;max-width:220px;padding:5px 9px;font-size:12px;line-height:1.3;position:absolute;transform:translate(-50%,-100%)}#dodge-pips{gap:6px;display:flex}.dodge-pip{background:#0a0810cc;border:1px solid #ffffff26;border-radius:4px;width:34px;height:8px;position:relative;overflow:hidden}.dodge-pip>div{background:#6fd3ff;height:100%}#chat{flex-direction:column;gap:4px;width:min(420px,50vw - 195px);min-width:200px;font-size:13px;display:flex;position:fixed;bottom:12px;left:12px}#chat-log{pointer-events:none;flex-direction:column;gap:2px;max-height:180px;display:flex;overflow:hidden}.chat-line{text-shadow:0 1px 1px #000;overflow-wrap:anywhere;background:#0a08108c;border-radius:4px;padding:2px 8px}.chat-line.system{color:#c9a6ff}.chat-line.error{color:#ff7a6b}.chat-line.whisper,.chat-line.whisper b{color:#ff9ee0}.chat-line.clickable{pointer-events:auto;cursor:pointer}.chat-line b{color:#ffe08a}#chat-input{color:inherit;font:inherit;background:#0a0810d9;border:1px solid #c9a6ff80;border-radius:6px;outline:none;padding:6px 8px}#fx-layer{pointer-events:none;position:fixed;inset:0;overflow:hidden}.float-text{text-shadow:0 0 3px #000,0 1px 2px #000;white-space:nowrap;will-change:transform, opacity;font-size:18px;font-weight:800;position:absolute;transform:translate(-50%,-50%)}.float-text.monster{color:#fff3c4}.float-text.player{color:#ff6b5e}.float-text.evade{color:#6fd3ff;font-size:15px}.float-text.heal{color:#7dff9a}.float-text.crit{color:#ffb347;font-size:22px}.float-text.immune{color:#b9b2c8;font-size:15px}.float-text.exp{color:#d9c2ff;font-size:14px}.float-text.level{color:#ffd970;letter-spacing:1px;font-size:26px}@media (width<=600px){#hud{max-width:calc(100vw - 48px)}.bar{width:200px}#hotbar{display:none}#vitals{inset:12px 12px auto auto;transform:none}}.cell.rarity{border-color:var(--rarity);box-shadow:0 0 6px -1px var(--rarity) inset}.cell-refine{color:#ffd970;text-shadow:0 1px 2px #000;font-size:10px;font-weight:800;position:absolute;top:1px;left:3px}.window .gold{color:#ffd84a;font-weight:700}.item-details{flex-direction:column;gap:3px;display:flex}.item-details p{opacity:.7;margin:4px 0 0;font-style:italic}.item-details .item-stats{font-weight:700}.item-details .affix{color:#8fc7ff}.item-details .affix.core{color:#d9a6ff}.item-details .sockets{color:#d9a6ff;opacity:.85}.window .bad,.item-details .bad{color:#ff7a6b;opacity:1}.window .warn{color:#ffc86b}.item-details .bound{color:#ffb36b}.details .row{flex-wrap:wrap;gap:6px;margin-top:6px;display:flex}.window button.sell{color:#ffd84a;border-color:#ffd84a80}.window button:disabled{opacity:.4;cursor:default}.window button.primary{background:#c9a6ff2e;border-color:#c9a6ff99}.shop,.board{width:360px}.smith{width:480px}.smith-body{grid-template-columns:190px 1fr;gap:10px;display:grid}.smith .shop-list .shop-row{flex-direction:column;align-items:flex-start;gap:0}.smith .shop-list .shop-row .item-label{max-width:100%}.shop-list{flex-direction:column;gap:3px;display:flex}.shop-row{cursor:pointer;background:#ffffff0a;border-radius:6px;align-items:center;gap:6px;padding:4px 6px;display:flex}.shop-row:hover{background:#ffffff17}.shop-row.selected{outline:1px solid #ffd970}.shop-row .item-label{flex:1;min-width:0}.shop-row .price{color:#ffd84a;white-space:nowrap;font-weight:700}.shop-row button{padding:3px 8px}.item-label{text-overflow:ellipsis;white-space:nowrap;align-items:center;gap:5px;display:inline-flex;overflow:hidden}.item-icon{font-size:16px}.smith-block{border-top:1px solid #ffffff1a;flex-direction:column;gap:4px;margin-top:8px;padding-top:8px;display:flex}.smith-block button{align-self:flex-start}.smith-result{margin-top:8px;font-weight:700}.smith-result.good{color:#7dff9a}.smith-result.bad{color:#ff7a6b}.loot-label{white-space:nowrap;text-shadow:0 1px 1px #000;background:#0a0810b3;border-radius:4px;padding:1px 6px;font-size:12px;font-weight:700;position:absolute;transform:translate(-50%,-100%)}.loot-label[hidden]{display:none}.float-text.loot{color:#e8e2d0;font-size:14px}.float-text.loot.gold{color:#ffd84a}.float-text.loot.magic{color:#6fa8ff}.float-text.loot.rare{color:#ffd84a}.float-text.loot.epic{color:#c77dff}#potions{text-shadow:0 1px 2px #000;gap:10px;font-size:12px;font-weight:700;display:flex}#potions .empty{opacity:.4}#potions kbd{font:inherit;border:1px solid #ffffff59;border-radius:3px;padding:0 4px;font-size:10px}.chat-line b.clickable{pointer-events:auto;cursor:pointer}.chat-line.party,.chat-line.party b{color:#7dd8ff}.chat-menu{z-index:5;background:#100d18f5;border:1px solid #c9a6ff4d;border-radius:8px;flex-direction:column;gap:2px;padding:6px;display:flex;position:absolute}.chat-menu[hidden]{display:none}.chat-menu strong{color:#ffe08a;padding:0 6px 2px}.chat-menu button{color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:none;border-radius:5px;padding:4px 10px}.chat-menu button:hover{background:#ffffff1a}#party-frame{background:#0a0810b3;border-radius:8px;flex-direction:column;gap:5px;width:190px;padding:8px;font-size:12px;display:flex;position:fixed;top:260px;left:12px}#party-frame[hidden]{display:none}.pf-title{color:#7dd8ff;font-weight:700}.pf-row{flex-direction:column;gap:2px;display:flex}.pf-row.off{opacity:.5}.pf-row.downed .pf-name{color:#ff7a6b}.pf-head{align-items:baseline;gap:5px;display:flex}.pf-name{font-weight:700}.pf-row.me .pf-name{color:#ffe08a}.pf-kick{color:#ff7a6b;cursor:pointer;background:0 0;border:none;margin-left:auto;font-size:14px;line-height:1}.pf-bar{background:#ffffff1f;border-radius:3px;height:6px;overflow:hidden}.pf-fill{background:#4fd36b;width:100%;height:100%;transition:width .15s}.pf-where{opacity:.65}.pf-leave{color:inherit;font:inherit;cursor:pointer;background:#ffffff0f;border:1px solid #fff3;border-radius:5px;align-self:flex-start;margin-top:2px;padding:2px 8px;font-size:11px}#party-ask{text-align:center;background:#100d18f5;border:1px solid #7dd8ff80;border-radius:10px;padding:10px 14px;position:fixed;top:110px;left:50%;transform:translate(-50%);box-shadow:0 10px 30px #00000080}#party-ask[hidden]{display:none}#party-ask p{margin:0 0 8px}#party-ask .row{justify-content:center;gap:8px;display:flex}#party-ask button{color:inherit;font:inherit;cursor:pointer;background:#ffffff14;border:1px solid #ffffff40;border-radius:6px;padding:5px 14px}#party-ask button.primary{background:#7dd8ff33;border-color:#7dd8ffb3}.board-list{flex-direction:column;gap:6px;display:flex}.board-row{background:#ffffff0d;border-radius:6px;align-items:center;gap:8px;padding:6px 8px;display:flex}.board-row>div{flex:1;min-width:0}.board-row p{overflow-wrap:anywhere;margin:2px 0 0}.board-post{flex-wrap:wrap;gap:6px;display:flex}.board-post input{color:inherit;font:inherit;background:#0000004d;border:1px solid #fff3;border-radius:6px;flex:100%;padding:5px 8px}
