/* Layout: full-bleed pixel world on canvas; Dota-like HUD docked bottom, agent journal docked right, slim top bar. Single dark look by choice. */
:root{
  color-scheme:dark;
  --bg:#130d09; --panel:#241a11; --panel2:#33251a; --line:#644930; --line2:#8d6847;
  --ink:#ecdfc2; --dim:#a8946f; --ember:#ff7a2a; --ember2:#ffc24a; --gold:#ffd24a;
  --hp:#4fd06a; --mana:#3b8cff; --xp:#b07cff; --bad:#ff5a5a; --good:#6ee58c;
  --t1:#e6e9f0; --t2:#6ee58c; --t3:#4aa3ff; --t4:#ff5a5a; --t5:#ffd24a; --t6:#c77dff; --t7:#ff7ad9;
  --f-display:"Pixelify Sans","Inter",system-ui,sans-serif;   /* large titles only */
  --f-ui:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;   /* numbers, labels, buttons */
  --f-body:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
html,body{height:100%}
body{background:var(--bg);color:var(--ink);font:13px/1.35 var(--f-body);overflow:hidden;font-variant-numeric:tabular-nums;-webkit-user-select:none;user-select:none}
#app{position:relative;height:100%;overflow:hidden}
#game{position:absolute;inset:0;width:100%;height:100%;display:block;image-rendering:pixelated;cursor:crosshair;touch-action:none}
button{font:inherit;color:inherit;cursor:pointer}
button:focus-visible,input:focus-visible{outline:2px solid var(--ember2);outline-offset:1px}
.px{font-family:var(--f-display);letter-spacing:.02em}
.panel{background:linear-gradient(180deg,var(--panel2),var(--panel));border:1px solid var(--line);box-shadow:0 0 0 1px #000,inset 0 1px 0 #ffffff12}
.btn{background:var(--panel2);border:1px solid var(--line2);padding:5px 9px;font-family:var(--f-ui);font-weight:600;font-size:13px;line-height:1.1;white-space:nowrap}
.btn:hover{background:#4b3624;border-color:var(--ember2)}
.btn.on{background:#3a2412;border-color:var(--ember);color:var(--ember2)}
.btn.hot{background:linear-gradient(180deg,#ff8a3a,#c9480f);border-color:#ffd9a0;color:#1a0b02;font-weight:700}
.btn:disabled{opacity:.45;cursor:not-allowed}

/* top bar */
#top{position:absolute;left:0;right:0;top:0;display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:6px 16px;background:linear-gradient(180deg,#130d09f2,#130d0900);pointer-events:none}
#top>*{pointer-events:auto}
.logo{font:700 22px/1 var(--f-display);color:var(--ember2);text-shadow:2px 2px 0 #7a2600;letter-spacing:.08em}
.logo small{font-size:11px;color:var(--dim);text-shadow:none;letter-spacing:.04em;margin-left:6px}
#zones{display:flex;gap:2px}
#zones .btn{font-size:12px;padding:4px 7px}
#zones .btn small{color:var(--dim);margin-left:4px}
.grow{flex:1 1 0;min-width:0}
#gold{font:700 16px/1 var(--f-ui);color:var(--gold);padding:5px 9px;display:flex;gap:6px;align-items:center}
.coin{width:10px;height:10px;background:var(--gold);box-shadow:inset -2px -2px 0 #b8860b,0 0 0 1px #5a3d00;display:inline-block}
#search{width:150px;background:#110c08;border:1px solid var(--line);color:var(--ink);padding:5px 7px;font:12px var(--f-body);user-select:text;-webkit-user-select:text}
.seg{display:flex}
.seg .btn{padding:5px 7px;border-left-width:0}
.seg .btn:first-child{border-left-width:1px}

/* agent journal */
#side{position:absolute;right:16px;top:54px;width:300px;max-height:calc(100% - 260px);display:flex;flex-direction:column;overflow:hidden}
#side h3{margin:0;padding:6px 9px;font:600 14px/1.1 var(--f-ui);color:var(--ember2);border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:8px}
#intent{padding:7px 9px;border-bottom:1px solid var(--line);background:#1d150d}
#intent b{display:block;font:600 14px/1.2 var(--f-ui)}
#intent span{color:var(--dim);font-size:12px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-height:15px}   /* 11 October: one line, so the panel does not jump when the reason changes */
#tabs{display:flex;border-bottom:1px solid var(--line)}
#tabs button{flex:1;background:none;border:0;border-bottom:2px solid transparent;padding:5px 4px;font:12px var(--f-ui);color:var(--dim)}
#tabs button.on{color:var(--ink);border-bottom-color:var(--ember)}
#log,#tale,#campstats{overflow:auto;padding:6px 9px;font-size:12px;min-height:60px}
#log p,#tale p,.offl p{margin:0 0 4px;color:var(--dim)}
.offl .r{color:var(--bad)}.offl .v{color:var(--xp)}
#mood{border-bottom:1px solid var(--line)}#mood .btn{flex:1;font-size:12px;padding:5px 4px;border-top:0;border-bottom:0}#mood .btn:first-child{border-left:0}#mood .btn:last-child{border-right:0}
#log p b{color:var(--ink);font-weight:500}
#side .g{color:var(--gold)} #side .r{color:var(--bad)} #side .v{color:var(--xp)} #side .o{color:var(--ember2)}
#campstats table{width:100%;border-collapse:collapse}
#campstats th{font-weight:400;color:var(--dim);text-align:right;padding:2px 3px;font-size:11px}
#campstats td{text-align:right;padding:2px 3px;border-top:1px solid #433121}
#campstats th:first-child,#campstats td:first-child{text-align:left}
#campstats tr.best td{color:var(--ember2)}

/* target frame */
#target{position:absolute;left:50%;top:50px;transform:translateX(-50%);padding:5px 10px;min-width:200px;text-align:center}
#target b{font:600 14px var(--f-ui)}
.bar{height:10px;background:#0e0a06;border:1px solid #000;position:relative;overflow:hidden}
.bar i{position:absolute;left:0;top:0;bottom:0;display:block}
.bar span{position:absolute;inset:0;text-align:center;font:600 10px/10px var(--f-ui);text-shadow:1px 1px 0 #000}

/* HUD */
#hud{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:stretch;gap:0;padding-bottom:env(safe-area-inset-bottom,0px)}
#hud>#mid{flex:1 1 auto}
#portrait{cursor:pointer}
#hud>div{padding:8px}
#mm{width:176px;height:116px;display:block;image-rendering:pixelated;border:1px solid #000;cursor:pointer}
#hero{display:flex;gap:8px;align-items:stretch;border-left:0}
#portrait{width:84px;height:84px;image-rendering:pixelated;border:1px solid var(--ember);background:#000;display:block}
#hname{font:700 15px/1.1 var(--f-ui);color:var(--ember2)}
#hsub{color:var(--dim);font-size:11px;margin-bottom:4px}
.attr{display:flex;gap:8px;font:600 12px var(--f-ui)}
.attr span::before{content:"";display:inline-block;width:8px;height:8px;margin-right:3px}
.attr .s::before{background:#e04848}.attr .a::before{background:#49c964}.attr .i::before{background:#3b8cff}
.stats{color:var(--dim);font-size:11px;margin-top:3px;display:grid;grid-template-columns:repeat(2,max-content);gap:0 10px;white-space:nowrap}
.stats b{color:var(--ink);font-weight:500}
#mid{display:flex;flex-direction:column;gap:5px;min-width:300px;border-left:0}
#mid .bar{height:14px}
#mid .bar span{font-size:11px;line-height:14px}
#hpbar i{background:linear-gradient(180deg,#6ee58c,#1f8a3b)}
#mpbar i{background:linear-gradient(180deg,#63a8ff,#1b4fb8)}
#xpbar{height:8px!important}#xpbar i{background:var(--xp)}#xpbar span{line-height:8px!important;font-size:9px!important}
#abil{display:flex;gap:6px;justify-content:center}
.ab{position:relative;width:52px;height:52px;border:1px solid var(--line2);background:#110c08;padding:0}
.ab canvas{width:100%;height:100%;display:block;image-rendering:pixelated}
.ab .cd{position:absolute;left:0;right:0;bottom:0;background:#000000c8}
.ab .n{position:absolute;inset:0;display:grid;place-items:center;font:700 18px var(--f-ui);text-shadow:2px 2px 0 #000}
.ab .lv{position:absolute;right:1px;bottom:0;font:600 10px var(--f-ui);color:var(--gold);text-shadow:1px 1px 0 #000}
.ab .pc{position:absolute;left:2px;top:0;font:700 11px var(--f-ui);color:#fff;text-shadow:1px 1px 0 #000}
.ab.lock canvas{filter:grayscale(1) brightness(.35)}
.ab.act{border-color:var(--ember2);box-shadow:0 0 10px var(--ember)}
.ab.pas{border-style:dashed}
#right{display:flex;flex-direction:column;gap:6px;border-left:0}
#items{display:grid;grid-template-columns:repeat(3,40px);gap:4px}
.it{width:40px;height:40px;border:1px solid var(--line);background:#110c08;position:relative;padding:0}
.it canvas{width:100%;height:100%;display:block;image-rendering:pixelated}
.it .e{position:absolute;right:1px;top:0;font:600 10px var(--f-ui);color:var(--gold);text-shadow:1px 1px 0 #000}
.it.empty canvas{opacity:.22}
#cmds{display:grid;grid-template-columns:1fr 1fr;gap:3px}
#cmds .btn{font-size:12px;padding:4px 5px}
#cmds .wide{grid-column:1/-1}
#abil .ab.acast{outline:2px dashed #ffd24a;outline-offset:-4px;animation:acastP 1.6s linear infinite}@keyframes acastP{50%{outline-color:#ff8a2a}}   /* 13 Oct (owner): a spell on auto-cast */

/* modals */
.veil{position:absolute;inset:0;background:#0e0a06cc;display:grid;place-items:center;padding:16px;z-index:5}
.modal{width:min(760px,100%);max-height:100%;overflow:auto;padding:14px}
.modal h2{margin:0 0 4px;font:700 20px var(--f-display);color:var(--ember2);display:flex;justify-content:space-between;gap:10px;align-items:center}
.modal p{color:var(--dim);margin:0 0 10px;max-width:65ch}
#shopgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px}
.slot{border:1px solid var(--line);padding:8px;background:#1d150d;display:flex;flex-direction:column;gap:5px}
.slot h4{margin:0;font:600 13px var(--f-ui);display:flex;justify-content:space-between}
.slot .cur{display:flex;gap:8px;align-items:center;min-height:42px}
.slot .cur canvas{width:40px;height:40px;image-rendering:pixelated;border:1px solid var(--line);flex:none}
.slot .row{display:flex;gap:4px;flex-wrap:wrap}
.slot small{color:var(--dim)}
.tier1{color:var(--t1)}.tier2{color:var(--t2)}.tier3{color:var(--t3)}.tier4{color:var(--t4)}.tier5{color:var(--t5)}.tier6{color:var(--t6)}
/* 12 Oct: tier 7, the donated one: purple and gold running through the name */
.tier7{color:var(--t7);background:linear-gradient(90deg,#c77dff,#ffd24a,#ff7ad9,#7fd4ff,#c77dff);background-size:300% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;animation:t7shine 3s linear infinite}
@keyframes t7shine{to{background-position:300% 0}}
.mults{display:flex;gap:4px;flex-wrap:wrap;margin:8px 0 12px}
#gate{position:absolute;left:50%;bottom:150px;transform:translateX(-50%);padding:12px 16px;text-align:center;max-width:calc(100% - 32px);z-index:3}
#gate b{font:700 16px var(--f-ui);color:var(--ember2);display:block;margin-bottom:4px}
#gate p{margin:0 0 8px;color:var(--dim)}
/* sleep mode: the world is not drawn, the hero keeps playing; what it earned meanwhile is on the screen */
#sleep{position:fixed;inset:0;z-index:30;background:radial-gradient(circle at 50% 47%,#11261a 0,#07100b 46%,#020403 100%);color:#e9e2cf;font-family:var(--f-ui);overflow:hidden;cursor:default}
#sleep[hidden]{display:none}
#slL{position:absolute;left:28px;top:26px;display:flex;flex-direction:column;gap:14px;font-size:21px;font-weight:500}
#slL div{display:flex;align-items:center;gap:14px;white-space:nowrap}
#slL i{flex:none;width:34px;height:34px;display:grid;place-items:center;font:800 11px var(--f-ui);font-style:normal;color:#0b140e;background:#bfae84;clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%)}
#slL i.g{background:var(--gold)}#slL i.s{background:#9a6cff;color:#fff;font-size:17px}#slL i.x{background:#7fe08a}
#slL small{font-size:14px;color:#9aa58f;font-weight:400}
#slC{position:absolute;left:50%;top:0;bottom:0;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;pointer-events:none;width:min(520px,60vw)}
#slClock{font:500 clamp(34px,6vh,62px)/1 var(--f-ui);color:#e8d9b0;letter-spacing:1px}
#slHint{font-size:14px;color:#9aa58f;text-align:center}
#slWake{pointer-events:auto;width:min(44vh,400px);height:min(44vh,400px);padding:0;border:0;background:none;border-radius:50%;cursor:pointer;position:relative;margin:6px 0}
#slWake::before{content:"";position:absolute;inset:-10px;border-radius:50%;border:2px solid #5fd27a55;box-shadow:0 0 40px #3fbf6a55,inset 0 0 40px #3fbf6a33;animation:slPulse 3.2s ease-in-out infinite}
#slWake img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block;-webkit-mask-image:radial-gradient(circle,#000 62%,transparent 72%);mask-image:radial-gradient(circle,#000 62%,transparent 72%)}
#slWake:hover::before,#slWake:focus-visible::before{border-color:#8dffa6;box-shadow:0 0 60px #5fe58a99,inset 0 0 40px #3fbf6a55}
#slWake:focus-visible{outline:none}
@keyframes slPulse{50%{transform:scale(1.035);opacity:.65}}
@media (prefers-reduced-motion:reduce){#slWake::before{animation:none}}
#slAuto{font:500 26px var(--f-ui);color:#e8d9b0;border-bottom:1px solid #6b6248;padding:0 60px 10px}
#slR{position:absolute;right:28px;top:26px;bottom:150px;width:min(400px,32vw);display:flex;flex-direction:column;gap:22px;align-items:stretch}
#slMain{display:flex;flex-direction:column;gap:10px;text-align:right}
.slq{border-bottom:1px solid #6b624866;padding-bottom:8px}
.slq b{display:block;font:600 17px var(--f-ui);color:#f0e3bb;background:linear-gradient(270deg,#4a3d1d99,transparent);padding:4px 8px}
.slq.side b{background:linear-gradient(270deg,#1d4a2a99,transparent)}
.slq span{display:block;font-size:15px;color:#e9e2cf;padding:3px 8px 0}
.slq em{font-style:normal;color:var(--gold)}
#slDropT{font:600 14px var(--f-ui);color:#9aa58f;text-align:right;text-transform:uppercase;letter-spacing:1px}
#slDrop{display:flex;flex-direction:column;gap:5px;overflow:hidden;min-height:0}
#slDrop div{display:flex;gap:9px;align-items:center;justify-content:flex-end;font-size:15px;white-space:nowrap}
#slDrop canvas,#slDrop u{flex:none;width:30px;height:30px;image-rendering:pixelated;border:1px solid #6b6248;background:#0a140e;text-decoration:none;display:grid;place-items:center;font:700 11px var(--f-ui)}
#slDrop s{text-decoration:none;color:#9aa58f}
#slB{position:absolute;left:330px;right:28px;bottom:22px;display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;align-items:flex-end;max-height:118px;overflow:hidden}
#slB .slq{flex:0 1 250px;min-width:190px;text-align:right;border:1px solid #6b624855;border-bottom-color:#6b6248;background:#0a140ecc;padding:0 0 6px}
#slB .slq b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#slB .slq span{font-size:13px}
#slB .slq.done{opacity:.5}
#slMe{position:absolute;left:28px;bottom:22px;display:flex;gap:14px;align-items:flex-end}
#slLvl{font:800 52px/0.9 var(--f-ui);color:#f0e3bb}
#slBars{width:230px;display:flex;flex-direction:column;gap:4px}
#slBars div{height:17px;background:#1a1410;border:1px solid #3a3226;position:relative;font:600 12px/15px var(--f-ui);text-align:center;color:#fff}
#slBars div i{position:absolute;left:0;top:0;bottom:0;background:#a3222c}#slBars div+div i{background:#1f7f93}
#slBars div span{position:relative}
@media (max-width:900px),(max-height:560px){
  #sleep{overflow:auto;display:flex;flex-direction:column;align-items:center;gap:14px;padding:16px}
  #slL,#slC,#slR,#slB,#slMe{position:static;transform:none;width:100%;max-width:520px;bottom:auto;max-height:none}
  #slC{order:-1}#slL{font-size:17px;gap:8px}#slWake{width:min(60vw,260px);height:min(60vw,260px)}#slB{justify-content:center}#slMain,#slB .slq,#slDropT{text-align:left}#slDrop div{justify-content:flex-start}
}
/* HUD, second layout: the level with health and mana in the style of the sleep screen */
#vit{display:flex;gap:12px;align-items:center;border-left:0}
#hlvl{font:800 52px/.9 var(--f-ui);color:#f0e3bb;text-shadow:2px 2px 0 #000;min-width:60px;text-align:center}
#vbars{width:230px;display:flex;flex-direction:column;gap:4px}
#vbars .bar{height:19px;background:#1a1410;border:1px solid #3a3226}
#vbars .bar span{font:600 12px/17px var(--f-ui);color:#fff}
#hpbar i{background:#a3222c}#mpbar i{background:#1f7f93}
#vbars #xpbar{height:9px!important}
@media (min-width:901px){
  #hud{right:auto;max-width:100%}
  #hud>#mid{flex:0 0 auto;min-width:0;justify-content:center}
  #portrait{width:150px;height:120px;object-fit:cover;object-position:50% 35%}
  #hero>div{min-width:124px}
}
/* narrower windows: the same order, smaller pieces, so nothing is cut off; as a last resort the bar wraps */
@media (min-width:901px){#hud{flex-wrap:wrap}}
@media (min-width:901px) and (max-width:1500px){#vbars{width:170px}#portrait{width:120px;height:110px}}
@media (min-width:901px) and (max-width:1300px){#hero .stats{display:none}#vbars{width:150px}#hlvl{font-size:44px;min-width:50px}#right #cmds .btn{font-size:10px;padding:4px 2px}#hud>div{padding:8px 6px}}
@media (min-width:901px) and (max-width:1120px){#hudmm{display:none}#vbars{width:120px}#portrait{width:96px;height:96px}#hero>div{min-width:100px}}
@media (max-width:900px){#vit{flex:1 1 100%;justify-content:center;padding:4px 8px!important}#hlvl{font-size:34px;min-width:40px}#vbars{flex:1;width:auto;max-width:340px}#vbars .bar{height:16px}#vbars .bar span{line-height:14px}}
/* the button that sends the hero to sleep: a diamond with a charging battery, on the left edge of the screen */
#sleepBtn{position:absolute;left:24px;top:calc(50% - 96px);width:46px;height:46px;padding:0;background:#141009e6;border:2px solid #bfae84;transform:rotate(45deg);display:grid;place-items:center;z-index:2;box-shadow:0 0 0 1px #000,0 0 14px #000a}
#sleepBtn svg{transform:rotate(-45deg);width:28px;height:28px;display:block}
#sleepBtn:hover,#sleepBtn:focus-visible{border-color:#ffe9a8;background:#2a2110;outline:none}
#hud[hidden]~#sleepBtn{display:none}
@media (max-width:900px){#sleepBtn{left:auto;right:22px;top:150px;width:38px;height:38px}#sleepBtn svg{width:23px;height:23px}}
/* companions screen: the whole window, cards on the right, what the chosen one gives on the left, the card itself in a halo in the middle */
.cscr{position:absolute;inset:0;z-index:5;display:grid;grid-template-rows:auto auto 1fr;background:radial-gradient(ellipse at 50% 40%,#2c2438 0,#17131d 40%,#0a0908 100%);color:#e9e2cf;font-family:var(--f-ui);overflow:hidden}
.cscr button{font-family:var(--f-ui);color:inherit;background:none;border:0;padding:0}
.ctop{display:flex;align-items:center;gap:18px;padding:10px 22px;background:linear-gradient(180deg,#000c,#0000)}
.ctop .bk{font:300 34px/1 var(--f-ui);color:#c9b888;width:40px}.ctop .bk:hover{color:#fff}
.ctop h2{margin:0;font:500 24px var(--f-ui);color:#d8c9a0;letter-spacing:.02em}
.ckinds{display:flex;gap:4px;margin-left:10px}.ckinds button{padding:6px 14px;font:500 15px var(--f-ui);color:#8d8266;border:1px solid #3a3222;background:#0c0a07}.ckinds button.on{color:#f3e2ad;border-color:#bfa55a;background:#2a2212}
.ctop .gd{margin-left:auto;font:500 17px var(--f-ui);color:#e9e2cf;display:flex;gap:6px;align-items:center}
.ctabs{display:flex;gap:6px;padding:0 22px;border-bottom:1px solid #2a2418;background:#0008}
.ctabs button{padding:12px 26px;font:500 17px var(--f-ui);color:#8d8266;border-bottom:3px solid transparent}.ctabs button.on{color:#e8c86a;border-bottom-color:#c9a544;background:linear-gradient(0deg,#3a2c0f88,#0000)}
.cbody{display:grid;grid-template-columns:320px 1fr 372px;min-height:0}
.cleft{padding:16px 10px 16px 22px;overflow:auto;display:flex;flex-direction:column;gap:6px}
.cgrade{font:500 16px var(--f-ui);display:flex;gap:8px;align-items:center}.cgrade i{width:13px;height:13px;border-radius:50%;background:currentColor;box-shadow:0 0 6px currentColor;display:inline-block}
.cname{font:500 30px/1.1 var(--f-ui);color:#e8c98a}
.cpow{font:600 24px var(--f-ui);color:#e8c98a;margin:6px 0 2px}.cpow small{font:400 13px var(--f-ui);color:#8d8266;margin-left:8px}
.cst{font-size:16px}.cst div{display:flex;justify-content:space-between;gap:10px;padding:2px 0 2px 14px}.cst b{font-weight:500;color:#fff}.cst .h{padding-left:0;color:#8d8266;font-size:13px;text-transform:uppercase;letter-spacing:.08em;margin-top:10px}
.cnote{font-size:13px;color:#9a8f72;line-height:1.4}
.cact{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.cscr .cbtn{padding:10px 14px;font:600 15px var(--f-ui);color:#f3e2ad;border:1px solid #bfa55a;background:linear-gradient(180deg,#5a4517,#2e230b);text-align:center}
.cscr .cbtn:hover:not(:disabled){background:linear-gradient(180deg,#7a5e1f,#3e300f)}.cscr .cbtn:disabled{color:#6a6250;border-color:#3a3222;background:#14110b}
.cmid{position:relative;display:grid;place-items:center;min-height:0;overflow:hidden}
.cmid::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:
  repeating-linear-gradient(90deg,#0000 0 54px,#ffffff06 54px 58px,#0000 58px 96px,#ffffff04 96px 99px),
  radial-gradient(ellipse 60% 55% at 50% 18%,#6a5a8a40 0,#0000 70%),
  linear-gradient(180deg,#0000 55%,#0a0807 100%)}   /* columns of pale light, a glow above, the dark floor below: the hall where the companion stands */
#cmpStage{position:absolute;inset:0;width:100%;height:100%;display:block;z-index:1}
.cbar{z-index:2;position:absolute;left:0;right:0;bottom:0;display:flex;justify-content:flex-end;gap:10px;padding:14px 22px;background:linear-gradient(0deg,#000c,#0000)}
.cbar .cbtn{min-width:190px;padding:12px 22px;font-size:16px}
.cpbar{height:7px;margin:4px 0 6px;background:#1a1610;border:1px solid #3a3222;box-shadow:inset 0 1px 0 #000}.cpbar u{display:block;height:100%;background:linear-gradient(90deg,#8a6a1c,#f0c860);box-shadow:0 0 8px var(--gc)}
@keyframes cspin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.chalo::after{animation:none}}
.cmid .cempty{position:relative;max-width:420px;text-align:center;font-size:16px;color:#9a8f72;line-height:1.5}
.cright{padding:14px 18px 14px 6px;overflow:auto;display:grid;grid-template-columns:repeat(3,1fr);gap:9px;align-content:start}
.cscr .card{position:relative;height:0;padding:0 0 132%;border:1px solid var(--gc);background:linear-gradient(180deg,color-mix(in srgb,var(--gc) 34%,#0c0c0c),color-mix(in srgb,var(--gc) 10%,#060606));overflow:hidden;font:600 12px var(--f-ui);color:#e9e2cf}
.cscr .card.in{box-shadow:inset 0 0 0 2px #e8c86a}.cscr .card.dim{opacity:.3}.cscr .card.up{box-shadow:0 0 0 2px #f3e2ad,0 0 22px var(--gc);z-index:1}
.cscr .card canvas{position:absolute;inset:0;width:100%;height:100%;image-rendering:pixelated;display:block}
.cscr .card.sel{outline:2px solid #f3e2ad;outline-offset:2px;box-shadow:0 0 14px var(--gc)}
.cscr .card i{position:absolute;font-style:normal;text-shadow:1px 1px 0 #000}
.cscr .card .e{left:4px;top:3px;width:17px;height:17px;display:grid;place-items:center;border:1px solid #bfa55a;background:#000a;color:#f3e2ad;font-size:11px}
.cscr .card .ck{left:4px;top:3px;color:#ff5a5a;font-size:15px}.cscr .card .e+.ck{left:24px}
.cscr .card .n{right:5px;bottom:3px;font-size:15px;color:#fff;font-weight:700}
.cscr .card .p{right:4px;top:4px;display:flex;flex-direction:column;gap:2px}.cscr .card .p u{width:7px;height:7px;border-radius:50%;background:var(--gc);box-shadow:0 0 4px var(--gc);display:block}
.cscr .card .nm{left:0;right:0;top:auto;bottom:0;padding:9px 20px 3px 4px;text-align:left;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:linear-gradient(0deg,#000c,#0000)}
/* 14 Oct night: the craft result marks a burned four (grey, a red label) and a lucky one (gold label) */
.cscr .card.burn{border-color:#5a2a22;filter:none}.cscr .card.burn canvas{filter:grayscale(1) brightness(.45)}.cscr .card .bn{left:0;right:0;top:38%;padding:3px 0;text-align:center;font-size:12px;font-weight:800;letter-spacing:.3px;color:#ff6a5a;background:#000c;transform:rotate(-8deg)}.cscr .card .bn.up{color:#ffe08a;background:#2a1d06d8;transform:none;top:6px;font-size:10.5px}
.cresP p.cresB{margin:-8px 0 14px;color:#ff9a8a;font-size:13.5px}
.cmerge{position:relative;display:flex;flex-direction:column;align-items:center;gap:14px}
.cring{position:relative;width:min(50vh,430px);aspect-ratio:1}
.cring svg{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:#4a4130;stroke-width:.6}.cring svg line{stroke:#4a4130;stroke-width:.7}.cring svg line.on{stroke:#f3e2ad;stroke-width:1;filter:drop-shadow(0 0 2px #ffe9a8)}
.cring b{position:absolute;left:50%;top:21%;transform:translateX(-50%);font:600 15px var(--f-ui);white-space:nowrap}
.cscr .cslot{position:absolute;top:74%;width:17%;aspect-ratio:1;transform:translate(-50%,-50%) rotate(45deg);border:2px solid #4a4130;background:#0c0a07;overflow:hidden}
.cscr .cslot.f{border-color:#f3e2ad;box-shadow:0 0 14px #ffe9a8aa;background:radial-gradient(circle,color-mix(in srgb,var(--gc) 45%,#0c0c0c),#0c0a07)}
.cscr .cslot canvas{width:141%;height:141%;margin:-20.5%;transform:rotate(-45deg);image-rendering:pixelated;display:block}
.ccount{font:500 19px var(--f-ui);color:#d8c9a0;border-bottom:1px solid #4a4130;padding:0 26px 6px}.ccount b{color:#fff}.ccount small{color:#8d8266;font-size:13px}
.cscr .cbtn.hot{background:linear-gradient(180deg,#a8701c,#5a3a0c);border-color:#e8b85a}.cscr .cbtn.hot:hover:not(:disabled){background:linear-gradient(180deg,#c88a2a,#6e4810)}
.cres{position:absolute;inset:0;z-index:3;background:#000b;display:grid;place-items:center;padding:16px}
.cresP{width:min(860px,100%);max-height:100%;overflow:auto;padding:26px 28px 22px;text-align:center;background:linear-gradient(180deg,#1c1a15,#0e0d0a);border-top:2px solid #c9a544;border-bottom:2px solid #c9a544;box-shadow:0 0 60px #000}
.cresI{width:44px;height:44px;margin:4px auto 18px;display:grid;place-items:center;font-size:24px;color:#e8c86a;background:#14110d;border:2px solid #c9a544;transform:rotate(45deg)}.cresI{line-height:1}
.cresP h3{margin:0 0 4px;font:500 26px var(--f-ui);color:#f0e3bb}.cresP p{margin:0 0 16px;color:#b9ae90;font-size:15px}
.cresG{display:grid;grid-template-columns:repeat(auto-fill,minmax(78px,1fr));gap:9px;margin-bottom:18px}
.cgr{display:flex;gap:6px}.cgr button{padding:7px 12px;border:1px solid #3a3222;background:#0c0a07;font:600 14px var(--f-ui)}.cgr button.on{border-color:currentColor;background:#1f1a10}
.cpity div{display:flex;justify-content:space-between;font-size:14px;margin-top:8px}.cpity s{display:block;height:6px;background:#1a1610;border:1px solid #3a3222;text-decoration:none}.cpity s u{display:block;height:100%;background:#a3222c}
@media (max-width:980px){.cbody{grid-template-columns:1fr;overflow:auto}.cleft,.cright{overflow:visible}.cmid{min-height:400px;order:-1}.cbar{justify-content:center}.cbar .cbtn{flex:1;min-width:0}.cright{padding:10px 16px;grid-template-columns:repeat(4,1fr)}.cleft{padding:12px 16px}.ctop{gap:10px;padding:8px 12px;flex-wrap:wrap}.ctabs button{padding:10px 14px;font-size:15px}}
#compBtn{position:absolute;left:24px;top:calc(50% - 26px);width:46px;height:46px;padding:0;background:#141009e6;border:2px solid #bfae84;transform:rotate(45deg);display:grid;place-items:center;z-index:2;box-shadow:0 0 0 1px #000,0 0 14px #000a}
#compBtn svg{transform:rotate(-45deg);width:26px;height:26px;display:block}
#compBtn:hover,#compBtn:focus-visible{border-color:#ffe9a8;background:#2a2110;outline:none}
#hud[hidden]~#compBtn{display:none}
#devPanel{position:absolute;left:16px;top:78px;display:flex;flex-direction:row;align-items:center;gap:4px;padding:6px;background:#141009e6;border:1px solid #bfae84;box-shadow:0 0 0 1px #000,0 0 12px #000a;z-index:3;font:600 12px var(--f-ui);color:#f0e3bb}
#devPanel[hidden],#hud[hidden]~#devPanel{display:none}
#devPanel b{font-size:10px;letter-spacing:1px;color:#bfae84;padding:0 4px}
#devPanel button{font:600 12px var(--f-ui);color:#f0e3bb;background:#2a2116;border:1px solid #6b5d3e;padding:4px 8px;cursor:pointer}
#devPanel button.on{background:#bfae84;color:#141009}
#devPanel i{font-style:normal;font-size:11px;color:#bfae84;padding:0 2px}

@media (max-width:900px){#compBtn{left:auto;right:22px;top:206px;width:38px;height:38px}#compBtn svg{width:22px;height:22px}}
/* the gates of Bane in the dungeon window: three dark banners with the name and a timer */
.rifts{display:flex;flex-direction:column;gap:6px;margin:6px 0}
.rift{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-top:1px solid #39332d;border-bottom:1px solid #39332d;background:linear-gradient(90deg,#0b0806 0,color-mix(in srgb,var(--rc) 14%,#0f0c08) 60%,color-mix(in srgb,var(--rc) 30%,#130f0b) 100%);opacity:.72}
.rift.open{opacity:1;border-color:var(--rc);box-shadow:inset 0 0 30px color-mix(in srgb,var(--rc) 22%,transparent)}
.rift b{display:block;font:500 21px var(--f-ui);color:#e8dcc0}.rift .rt{display:block;font:500 17px var(--f-ui);color:var(--rc);margin:3px 0}.rift small{color:var(--dim);font-size:12px}
.rleft{color:var(--ink);margin:4px 0}.rleft b{font:500 19px var(--f-ui);color:#ffd24a}
#riftHud{position:absolute;left:50%;top:132px;transform:translateX(-50%);padding:5px 14px;background:#130f0be6;border:1px solid #bfae84;color:#ffd24a;font:500 17px var(--f-ui);z-index:2;pointer-events:none}
.dia{position:absolute;left:24px;width:46px;height:46px;padding:0;background:#141009e6;border:2px solid #bfae84;transform:rotate(45deg);display:grid;place-items:center;z-index:2;box-shadow:0 0 0 1px #000,0 0 14px #000a}
.dia svg{transform:rotate(-45deg);width:26px;height:26px;display:block}.dia:hover,.dia:focus-visible{border-color:#ffe9a8;background:#2a2110;outline:none}#hud[hidden]~.dia{display:none}
#clanBtn,#mktBtn{left:94px}#clanBtn{top:calc(50% - 61px)}#mktBtn{top:calc(50% + 9px)}   /* a second column, half a step down: the diamonds make a lattice */
@media (max-width:900px){.dia{left:auto;right:22px;width:38px;height:38px}.dia svg{width:22px;height:22px}#clanBtn,#mktBtn{left:auto;right:70px}#clanBtn{top:178px}#mktBtn{top:234px}}
.mtabs{display:flex;gap:4px;margin:8px 0 4px;flex-wrap:wrap}.mtabs .btn.on{border-color:var(--ember);color:var(--ember2)}.mtabs.sub .btn{font-size:12px;padding:3px 8px}
.mksell{display:flex;gap:4px;align-items:center}.mksell input{width:84px}
.clform{display:flex;gap:4px;margin:6px 0;flex-wrap:wrap}.clform input{flex:1;min-width:110px}
.mksell input,.clform input{background:#110c09;border:1px solid var(--line,#514030);color:var(--ink);padding:5px 8px;font:inherit}
#dunBtn{position:absolute;left:24px;top:calc(50% + 44px);width:46px;height:46px;padding:0;background:#141009e6;border:2px solid #bfae84;transform:rotate(45deg);display:grid;place-items:center;z-index:2;box-shadow:0 0 0 1px #000,0 0 14px #000a}
#dunBtn svg{transform:rotate(-45deg);width:26px;height:26px;display:block}
#dunBtn:hover,#dunBtn:focus-visible{border-color:#ffe9a8;background:#2a2110;outline:none}
#hud[hidden]~#dunBtn,#hud[hidden]~#riftHud,#hud[hidden]~#bigHud{display:none}
/* 17 Oct: the big dungeons — the run over the screen */
#bigHud{position:absolute;left:50%;top:132px;transform:translateX(-50%);padding:5px 14px 6px;background:#130f0be6;border:1px solid #bfae84;color:var(--ink);font:500 15px var(--f-ui);z-index:2;pointer-events:none;text-align:center;white-space:nowrap}
#bigHud .bigN{color:var(--bh,#ffd24a);font-size:17px}
#bigHud .bigN small{color:var(--dim);font-size:14px;margin-left:6px}
#bigHud .bigM{color:#ffd24a;letter-spacing:2px}
#bigHud b.o{color:#ffb02e}#bigHud b.r{color:#ff6a4a}#bigHud b.g{color:var(--good)}
@media (max-width:700px){#bigHud{top:96px;font-size:13px;padding:4px 10px}#bigHud .bigN{font-size:14px}}
@media (max-width:900px){#dunBtn{left:auto;right:22px;top:262px;width:38px;height:38px}#dunBtn svg{width:22px;height:22px}}
.rift:not(.open) b{color:#8fa0b8}.rift:not(.open) .rt{color:#8fa0b8}
#toast{position:absolute;left:50%;top:96px;transform:translateX(-50%);padding:6px 12px;font:600 14px var(--f-ui);pointer-events:none;transition:opacity .3s;z-index:6}
#watch{position:absolute;left:16px;top:54px;padding:6px 9px;font-size:12px;max-width:260px}
#watch b{font:600 14px var(--f-ui);display:block}
#watch span{color:var(--dim)}
#sideBtn{display:none}

#side h3 .btn{font-size:11px;padding:4px 6px}
#evChip{font-size:12px;padding:4px 7px}
@media (max-width:1100px){#zones{display:none}#search{width:110px}}
@media (max-width:900px){
  #mm{display:none}#hudmm{display:none}
  #side{left:16px;right:16px;width:auto;top:auto;bottom:230px;max-height:40%}
  #side.closed{display:none}
  #sideBtn{display:inline-block}
  #hud{flex-wrap:wrap;justify-content:center}
  #hud>div{border-left:1px solid var(--line)}
  #mid{min-width:0;flex:1 1 220px}
  #hero .stats{display:none}#hsub{font-size:11px;white-space:normal;line-height:1.2}   /* the sub line stays on the phone: it carries the power (0.13.6) */
  #portrait{width:52px;height:52px}
  .ab{width:48px;height:48px}
  /* one-hand play (0.13.6): the command buttons are thumb-sized, four in a row, the whole width */
  #cmds{grid-template-columns:repeat(4,1fr);gap:4px;flex:1 1 100%}#cmds .btn{min-height:44px;font-size:14px;padding:6px 3px;white-space:normal;line-height:1.1}
  .modal .btn,#menu .btn{min-height:40px}#chatIn{font-size:16px}   /* 16px: iOS does not zoom the page when the chat field gets focus */
  #right{flex-direction:row;flex:1 1 100%;justify-content:center;flex-wrap:wrap}
  #items{grid-template-columns:repeat(6,34px)}.it{width:34px;height:34px}
  #search,.logo small,#evChip{display:none}
  #gate{bottom:250px}
}
@media (prefers-reduced-motion:reduce){#toast{transition:none}}
/* ---------- v2 additions ---------- */
#side{max-height:calc(100% - 290px)}
#quests{overflow:auto;padding:6px 9px;font-size:12px;min-height:60px}
#quests h5{margin:8px 0 3px;font:600 13px var(--f-ui);color:var(--ember2)}
#quests h5:first-child{margin-top:0}
#quests .lore{color:var(--dim);font-style:italic;margin:0 0 6px}
.q{border:1px solid var(--line);background:#1d150d;padding:5px 7px;margin-bottom:4px}
.q b{display:block;font:600 13px var(--f-ui)}
.q span{color:var(--dim)}
.q .bar{height:6px;margin-top:4px}.q .bar i{background:var(--gold)}
.q.done{opacity:.5}
.sig{display:flex;gap:4px;flex-wrap:wrap}
.sig i{font-style:normal;border:1px solid var(--line);padding:2px 5px;color:var(--dim);font-size:11px}
.sig i.on{border-color:var(--t4);color:var(--t4)}
#cmds{grid-template-columns:1fr 1fr 1fr 1fr}
#cmds .btn{font-size:11px;padding:4px 4px}
#chat{position:absolute;left:16px;bottom:176px;display:flex;flex-direction:column;gap:4px;width:340px;max-width:calc(100% - 32px);pointer-events:none}
#chatRow,#emoQuick,#emoPick{pointer-events:auto}
#chatRow,#emoQuick{display:flex;gap:4px}
#chatLog{display:flex;flex-direction:column;max-height:168px;overflow:hidden;padding:4px 6px;font:13px/1.35 var(--f-body);border:1px solid transparent;scrollbar-width:thin;scrollbar-gutter:stable}
#chatLog:empty{display:none}
#chatLog .cl{flex:none;color:var(--ink);text-shadow:0 1px 2px #000,0 0 3px #000;overflow-wrap:anywhere;user-select:text;-webkit-user-select:text}   /* 13 Oct (owner): the chat lines no longer fade away */
#chatLog .cl:first-child{margin-top:auto}
#chatLog .cl time{color:var(--dim);font-size:11px;margin-right:4px}
#chatLog .cl b{font-weight:600;color:#8fd8ff}#chatLog .cl.me b{color:var(--ember2)}#chatLog .cl.bot b{color:var(--dim)}#chatLog .cl.bot{color:#b8c2d6}#chatLog .cl.w,#chatLog .cl.w b{color:var(--xp)}#chatLog .cl.sys{color:var(--good)}
#chatLog canvas{width:20px;height:20px;vertical-align:-5px;border:1px solid var(--line2);image-rendering:pixelated}#chatLog .cl.big canvas{width:44px;height:44px;vertical-align:middle}#chatLog .cl.big .ej{font-size:26px;line-height:1.1;vertical-align:middle}
@keyframes clFade{to{opacity:0}}
#chat:hover #chatLog,#chat:focus-within #chatLog,#chat.open #chatLog{pointer-events:auto;overflow-y:auto;background:#110c08d8;border-color:var(--line)}
#chat:hover .cl,#chat:focus-within .cl,#chat.open .cl{animation:none;opacity:1}
#emoQuick .btn{padding:2px 0;flex:1;font-size:17px;line-height:1.25}#emoQuick #emoBtn{flex:none;padding:1px 3px;display:flex;align-items:center;gap:3px;font-size:11px}#emoQuick #emoBtn canvas{width:24px;height:24px;image-rendering:pixelated;display:block}#emoQuick #emoBtn.on{border-color:var(--ember)}
#emoPick{display:grid;grid-template-columns:repeat(6,1fr);gap:4px;padding:6px}#emoPick button{padding:0;border:1px solid var(--line2);background:#110c08;cursor:pointer;display:block;line-height:0}#emoPick button:hover{border-color:var(--ember)}#emoPick canvas{width:100%;aspect-ratio:1;image-rendering:pixelated;display:block}
#chatSend{padding:5px 8px}
#chatIn{flex:1;min-width:0;background:#110c08e0;border:1px solid var(--line);color:var(--ink);padding:5px 7px;font:12px var(--f-body);user-select:text;-webkit-user-select:text}
#online{padding:5px 8px;font:600 12px var(--f-ui);color:var(--good)}
#ctx{position:absolute;padding:6px;display:flex;flex-direction:column;gap:3px;z-index:4;min-width:170px}
#ctx b{font:600 13px var(--f-ui);padding:0 2px 3px}
#ctx small{color:var(--dim);padding:0 2px 3px}
#ctx{width:236px;max-width:calc(100% - 16px)}
#ctx .bar{height:14px;margin:0 0 3px}#ctx .bar span{font-size:11px;line-height:14px}
#ctx .crow{display:flex;justify-content:space-between;gap:10px;padding:0 2px;font-size:12px}#ctx .crow span{color:var(--dim)}#ctx .crow b{font:500 12px var(--f-body);padding:0;text-align:right}
#ctx .lore{font-style:italic;line-height:1.3;padding-top:3px}#ctx .btn{white-space:normal}
#buffs{display:flex;gap:3px;min-height:18px;align-items:center;justify-content:center;font:600 10px var(--f-ui)}
#buffs span{padding:0 4px;border:1px solid var(--line);background:#110c08}
#inv{display:flex;gap:6px;font:600 11px var(--f-ui);color:var(--dim);justify-content:center}
#inv b{color:var(--ink)}
.arts{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:6px}
.art{border:1px solid var(--line);background:#1d150d;padding:5px;display:flex;flex-direction:column;align-items:center;gap:3px;text-align:center;position:relative;min-width:0}
.art canvas{width:40px;height:40px;image-rendering:pixelated}
.art span{font-size:11px;line-height:1.15}
.art i{position:absolute;right:3px;top:1px;font:600 11px var(--f-ui);font-style:normal;color:var(--gold)}
.art.miss{opacity:.55}
.col{border:1px solid var(--line);padding:8px;margin-bottom:8px;background:#22180f}
.col.done{border-color:var(--good);box-shadow:inset 0 0 0 1px #6ee58c44}
.col h4{margin:0 0 6px;font:600 14px var(--f-ui);display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}
.col h4 b{color:var(--good);font-weight:600}
#tip{position:absolute;z-index:8;padding:9px 11px;width:280px;max-width:calc(100% - 16px);font-size:12.5px;line-height:1.4;color:var(--dim);pointer-events:none}
#lvlbox{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:54px;border:1px solid var(--line);background:#110c08;padding:2px 6px}
#lvlbox small{font:600 10px var(--f-ui);color:var(--dim);letter-spacing:.08em;text-transform:uppercase}
#lvlbox b{font:800 38px/1 var(--f-ui);color:var(--gold);text-shadow:2px 2px 0 #5a3d00}
@media (max-width:900px){#lvlbox b{font-size:26px}#lvlbox{min-width:40px}}
#lfgBar{position:absolute;left:50%;top:104px;transform:translateX(-50%);padding:6px 8px 6px 12px;font:600 14px var(--f-ui);color:var(--gold);display:flex;gap:10px;align-items:center;max-width:calc(100% - 32px);z-index:2}
#lfgBar .btn{padding:2px 8px}
/* main menu */
#menu{position:absolute;inset:0;z-index:7;overflow:auto;padding-block:18px;padding-inline:16px;
  background:radial-gradient(ellipse 70% 55% at 50% 38%,#1a0d0ae8 0%,#130d09f4 55%,#0b0805fa 100%)}
#menuFx{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;image-rendering:pixelated}
/* main menu view */
#menu[data-v=main] .wrap,#menu[data-v=new] #mainv{display:none}
#mainv{position:relative;max-width:1320px;margin:0 auto;min-height:calc(100dvh - 36px);display:grid;grid-template-columns:minmax(300px,480px) minmax(0,1fr) minmax(0,400px);gap:20px;align-items:stretch}
#mainv::before{content:"";position:absolute;inset:-18px -16px;pointer-events:none;background:radial-gradient(ellipse 34% 42% at 46% 78%,#ff7a2a2b,#ff7a2a00 70%),linear-gradient(180deg,#0b080500 55%,#0b0805e0 100%)}
#mainv>*{position:relative}
.mvL{display:flex;flex-direction:column;gap:14px;padding-top:10px}
.mvL .sub{max-width:34ch}
#mvNav,#mvNav2{display:flex;flex-direction:column;gap:7px;margin-top:14px}
.mvNavs{display:flex;gap:12px;align-items:flex-start}.mvNavs>nav{flex:1 1 0;min-width:0}#mvNav2{padding-top:0}#mvNav2 .mvb{font-size:17px}   /* the second column: the hero's own places, shown when there is a hero */
.mvb{display:block;width:100%;text-align:left;padding:12px 16px 12px 15px;font:600 20px/1.1 var(--f-display);letter-spacing:.03em;color:#d8c8a6;
  background:linear-gradient(180deg,#1d1622,#110e0b);border:1px solid #3d2c2e;border-left:4px solid #6a2a18;box-shadow:0 0 0 1px #000,inset 0 1px 0 #ffffff10;transition:border-color .12s,color .12s,padding-left .12s}
.mvb:hover,.mvb.on{color:#fff6dc;border-color:#8a5a3a;border-left-color:var(--ember);padding-left:21px;background:linear-gradient(90deg,#5a1a0e,#1d1622 72%)}
.mvb.prime{padding-block:15px;font-size:27px;font-weight:700;color:#fff2d8;background:linear-gradient(180deg,#c23a1a,#6c1608);border-color:#ffb37a;border-left-color:#ffd24a;text-shadow:2px 2px 0 #3a0a02;margin-bottom:8px}
.mvb.prime:hover{background:linear-gradient(180deg,#e0501f,#84200c)}
.mvb.prime small{display:block;margin-top:5px;font:600 14px var(--f-ui);color:#ffd9a0;text-shadow:none;letter-spacing:.02em}
.mvb:focus-visible{outline:2px solid var(--ember2);outline-offset:2px}
#netLine{margin:auto 0 6px;font:600 13px var(--f-ui)}
.mvStage{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding-bottom:26px;min-width:0}
#mvCv{width:min(100%,720px,calc((100dvh - 190px)*1.2));height:auto;aspect-ratio:180/150;image-rendering:pixelated;display:block}
.mvPlate{text-align:center;margin-top:-4px}
.mvPlate b{display:block;font:700 40px/1 var(--f-display);color:#fff;text-shadow:3px 3px 0 #000;overflow-wrap:anywhere}
.mvPlate b::before,.mvPlate b::after{content:"";display:inline-block;width:9px;height:9px;background:var(--ember);transform:rotate(45deg);margin:0 16px 7px;box-shadow:0 0 0 2px #000}
.mvPlate span{display:block;margin-top:8px;font:600 16px var(--f-ui);color:var(--dim)}
#mvSide{align-self:start;margin-top:10px;padding:14px;max-height:calc(100dvh - 60px);overflow:auto}
#mvSide h3{margin:0 0 10px;font:700 20px var(--f-display);color:var(--ember2);display:flex;justify-content:space-between;align-items:center}
#mvSide h4{margin:14px 0 5px;font:600 14px var(--f-ui);color:var(--ink)}
#mvSide [data-g]:first-child h4{margin-top:0}
#mvSide .seg{flex-wrap:wrap}#mvSide .seg .btn{flex:1 1 auto;padding:8px 10px;font-size:14px;border-left-width:1px;margin:0 -1px -1px 0}
#mvSide p{margin:0 0 8px;color:var(--dim);font-size:13.5px;line-height:1.5;max-width:60ch}
#mLore p:first-of-type,#mHow p:first-of-type{color:var(--ink)}
#mvSetBox p{margin-top:7px;font-size:12.5px}
.nvT{font:700 30px/1 var(--f-display);color:#ffcf6a;text-shadow:0 3px 0 #b8480f}
@media (max-width:1000px){#mainv{grid-template-columns:1fr;min-height:0;gap:10px}.mvStage{order:-1;padding-bottom:6px}#mvCv{width:min(100%,360px)}.mvPlate b{font-size:28px}.mvL{padding-top:0}#mvSide{max-height:none}#netLine{margin-top:6px}}
#menu .wrap{position:relative;max-width:1240px;margin:0 auto;display:flex;flex-direction:column;gap:14px}
#menu header{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
#menu .big{font:700 84px/0.82 var(--f-display);letter-spacing:.12em;color:#ffcf6a;
  text-shadow:0 4px 0 #b8480f,0 8px 0 #6a2204,0 0 34px #ff7a2a88;padding-bottom:10px}
#menu .sub{color:var(--ink);max-width:46ch;font-size:15px;line-height:1.4}
#menu .sub small{display:block;color:var(--ember2);font:600 13px var(--f-ui);letter-spacing:.14em;text-transform:uppercase;margin-bottom:3px}
#menu .hbtn{display:flex;gap:6px;align-items:center}
#backBtn kbd{font:600 11px var(--f-ui);border:1px solid #1a0b02;padding:0 4px;margin-left:6px;opacity:.8}
#menu .cols{display:grid;grid-template-columns:minmax(0,300px) minmax(0,1fr) minmax(0,330px);gap:14px;align-items:start}
#menu h3.cap{margin:0 0 8px;font:600 13px var(--f-ui);letter-spacing:.14em;text-transform:uppercase;color:var(--dim)}
#roster{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.card{position:relative;border:1px solid var(--line);background:linear-gradient(180deg,#332519,#1d140d);padding:6px 4px 5px;display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0;transition:transform .12s,border-color .12s}
.card:hover{border-color:var(--line2);transform:translateY(-2px)}
.card.on{border-color:var(--ember);background:linear-gradient(180deg,#3a1a0e,#160b08);box-shadow:0 0 0 1px var(--ember),0 0 22px #ff7a2a66}
.card canvas{width:64px;height:64px;image-rendering:pixelated}
.card b{font:700 12px/1.1 var(--f-ui);text-align:center;overflow-wrap:anywhere}
.card i{font-style:normal;font:600 9px var(--f-ui);color:var(--dim);letter-spacing:.06em;text-transform:uppercase;text-align:center}
#show{padding:0;overflow:hidden;position:relative}
#showTop{position:relative;display:flex;gap:10px;align-items:flex-end;padding:14px 16px 0;min-height:230px}
#showCv{width:230px;height:230px;image-rendering:pixelated;flex:none;margin-bottom:-4px}
#showInfo{min-width:0;padding-bottom:16px;flex:1}
#showName{font:700 40px/0.95 var(--f-display);color:#fff;text-shadow:3px 3px 0 #000;overflow-wrap:anywhere}
#showSub{font:600 15px var(--f-ui);margin:4px 0 8px}
#showRole{display:inline-block;font:600 11px var(--f-ui);letter-spacing:.1em;text-transform:uppercase;border:1px solid var(--line2);padding:2px 7px;color:var(--ink);margin-bottom:10px}
.abar{display:grid;grid-template-columns:86px 1fr 26px;gap:8px;align-items:center;font:600 12px var(--f-ui);color:var(--dim);margin-bottom:4px}
.abar .bar{height:9px}.abar b{color:var(--ink);text-align:right}
#showAb{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--line);border-top:1px solid var(--line)}
.sab{display:flex;gap:9px;align-items:flex-start;padding:9px 11px;background:#20160e}
.sab canvas{width:40px;height:40px;image-rendering:pixelated;border:1px solid var(--line2);flex:none}
.sab b{display:block;font:700 13px/1.15 var(--f-ui);color:var(--ink)}
.sab b small{color:var(--gold);font-size:11px;margin-right:5px}
.sab span{font-size:12px;color:var(--dim);line-height:1.3;display:block}
.sab em{font-style:normal;font-size:11px;color:var(--mana)}
#mside{display:flex;flex-direction:column;gap:10px}
#mside .panel,#mInfo .panel{padding:12px}
#mside label{display:block;font:600 11px var(--f-ui);letter-spacing:.1em;text-transform:uppercase;color:var(--dim);margin:9px 0 3px}
#mside label:first-child{margin-top:0}
#mside p{margin:4px 0 0;color:var(--dim);font-size:12px}
#mside input{width:100%;box-sizing:border-box;background:#110c08;border:1px solid var(--line);color:var(--ink);padding:8px 9px;font:14px var(--f-body);user-select:text;-webkit-user-select:text}
#holdSeg .btn,#skinSeg .btn,#lvlSeg .btn{flex:1 1 30%;font-size:12px;padding:5px 3px;border-left-width:1px;margin:-1px 0 0 -1px}
#playBtn,#contBtn{width:100%;font-size:19px;padding:12px 14px;white-space:normal}
#playBtn.second{font-size:13px;padding:7px;margin-top:6px;background:var(--panel2);color:var(--dim);border-color:var(--line);font-weight:400}
#mInfo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#mInfo h3{margin:0 0 8px;font:700 16px var(--f-ui);color:var(--ember2)}
#mInfo p{margin:0 0 7px;color:var(--dim);font-size:13px;line-height:1.45;max-width:65ch}
#mInfo p:first-of-type{color:var(--ink)}
#wmap{width:100%;height:auto;image-rendering:pixelated;border:1px solid #000;display:block;cursor:pointer}
.svc{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px}
.svc .slot b{font:600 13px var(--f-ui)}
.plist{display:flex;flex-direction:column;gap:3px;margin:8px 0}
.plist div{display:flex;justify-content:space-between;gap:8px;border:1px solid var(--line);padding:4px 7px;background:#1d150d}
@media (max-width:1100px){#menu .cols{grid-template-columns:minmax(0,1fr) minmax(0,330px)}#menu .cols>.rosterCol{grid-column:1/-1}#roster{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media (max-width:900px){#menu .cols{grid-template-columns:1fr}#menu .big{font-size:56px}#roster{grid-template-columns:repeat(4,minmax(0,1fr))}#showTop{flex-direction:column;align-items:center;min-height:0}#showCv{width:170px;height:170px}#showInfo{width:100%}#showName{font-size:30px}#showAb{grid-template-columns:1fr}#mInfo{grid-template-columns:1fr}#chat{bottom:auto;top:92px;width:auto;right:16px;flex-direction:column-reverse}#chatLog{max-height:92px}#cmds{grid-template-columns:1fr 1fr 1fr 1fr}#side{max-height:32%;bottom:330px}#inv{flex-wrap:wrap}#target{top:128px}}

/* the forge: recipe on the left, materials on the right; one column on a phone */
.forge3{display:grid;grid-template-columns:1.2fr 1fr;gap:14px}@media(max-width:760px){.forge3{grid-template-columns:1fr}}
.forge3 h4{color:var(--ember2);font-weight:500}

/* the forge: three panes. Categories, the recipes of the category, the result with its materials */
.modal.wide{width:min(1120px,100%)}
.fgWallet{display:flex;gap:14px;font-weight:600}
.fg{display:grid;grid-template-columns:150px minmax(0,1fr) minmax(0,1.25fr);gap:12px;margin-top:8px;min-height:420px}
.fgNav{display:flex;flex-direction:column;gap:2px;border-right:1px solid var(--line);padding-right:8px}
.fgC{background:none;border:0;border-left:3px solid transparent;color:var(--dim);text-align:left;padding:9px 10px;font:600 14px var(--f-ui);cursor:pointer}
.fgC:hover{color:var(--ink)}.fgC.on{color:var(--gold);border-left-color:var(--ember);background:linear-gradient(90deg,#3a1a0e66,transparent)}
.fgList{display:flex;flex-direction:column;gap:4px;max-height:560px;overflow:auto}
.fgR{display:flex;gap:10px;align-items:center;background:#1d150d;border:1px solid var(--line);padding:8px;text-align:left;cursor:pointer;color:var(--ink);font:14px var(--f-ui)}
.fgR:hover{border-color:var(--line2)}.fgR.on{border-color:var(--ember);background:linear-gradient(90deg,#3a1a0e,#1d150d 70%)}
.fgR div,.fgCard div{display:flex;flex-direction:column;min-width:0}.fgR small{color:var(--dim);font-size:12px}
.fgIc{width:32px;height:32px;image-rendering:pixelated;flex:0 0 32px;border:1px solid var(--line);background:#1d150d}
.fgBig{width:96px;height:96px;image-rendering:pixelated;border:2px solid var(--line2);background:radial-gradient(circle,#413224,#1d150d);box-shadow:0 0 24px #ff7a2a33}
.fgTop{display:flex;gap:14px;align-items:center;padding:12px;border:1px solid var(--line);background:linear-gradient(180deg,#33251a,#241a11)}
.fgPv{display:flex;flex-direction:column;gap:4px}.fgPv b{font:700 22px var(--f-display);letter-spacing:.02em}.fgPv span{color:var(--dim);font-size:13px}
.fgCards{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.fgCard{display:flex;gap:8px;align-items:center;border:1px solid var(--line);background:#1d150d;padding:6px 8px}.fgCard b{font-weight:600;font-size:13px}.fgCard span{font-size:13px}
.fgQty{display:flex;gap:4px;align-items:center;margin-top:12px;justify-content:center}.fgQty input{width:70px;text-align:center;background:#1d150d;border:1px solid var(--line);color:var(--ink);padding:6px;font:600 15px var(--f-ui)}
.fgCost{text-align:center;margin-top:10px;font:600 16px var(--f-ui)}
.fgAct{display:flex;gap:8px;margin-top:10px}.fgAct .btn{flex:1;padding:12px;font-size:15px}
.fgRes{margin-top:10px;border:1px solid var(--line2);background:#241a11;padding:8px 10px;font-size:13px;display:flex;flex-direction:column;gap:3px}
.fgNote{color:var(--dim);font-size:12px;margin:8px 0 0}
@media(max-width:860px){.fg{grid-template-columns:1fr}.fgNav{flex-direction:row;flex-wrap:wrap;border-right:0;border-bottom:1px solid var(--line);padding:0 0 6px}.fgC{border-left:0;border-bottom:2px solid transparent}.fgC.on{border-bottom-color:var(--ember)}.fgList{max-height:220px}}

/* global cooldown: a light sweep over the buttons that cannot be pressed yet, and a flash when they can */
.ab .cd.g{background:#6fc8ff4d;transition:height .1s linear}
.ab.rdy{animation:abrdy .38s ease-out}
@keyframes abrdy{0%{box-shadow:0 0 0 0 #bfeaff;filter:brightness(1.9)}100%{box-shadow:0 0 14px 4px #bfeaff00;filter:none}}

/* wallet sign-in: a greyed button means "sign in with the wallet first" (LIVE server), the wallet button itself is a smaller line under Continue */
.mvb.dim,#playBtn.dim{opacity:.38}#mvWallet{font-size:17px}#mvWallet small{display:block;font:500 12px/1.2 var(--f-text,inherit);opacity:.75;margin-top:2px}

/* the pool by tier on the main menu: the bank waiting for the heroes of each tier, and how many are there (a lure for the empty ones) */
#mvPool{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin-top:2px}#mvPool>div{background:rgba(10,8,20,.55);border:1px solid #3a2f4a;border-radius:6px;padding:6px 8px;text-align:center}
#mvPool b{display:block;font:700 15px/1.1 var(--f-display);color:#ffd27a}#mvPool i{display:block;font-style:normal;font-size:11px;color:#c9a4ff;margin-top:2px}#mvPool small{display:block;font-size:10px;color:#9a8ea8}
#mvPool>div.hot{border-color:#ff9a3a;box-shadow:0 0 10px rgba(255,120,40,.35)}#mvPool h5{grid-column:1/-1;margin:0;font:600 11px/1.2 var(--f-text,inherit);letter-spacing:.08em;text-transform:uppercase;color:#9a8ea8}
/* ---------- friends and the mail (15-friends-mail.js) ---------- */
.frcols{display:flex;gap:12px;align-items:flex-start}.frleft{flex:0 0 240px;min-width:0}.frright{flex:1;min-width:0}
.plist.frl div{cursor:pointer}.plist.frl div:hover{border-color:var(--line2)}.plist.frl div.sel{border-color:var(--ember);background:#1a0f0c}
.frhead{display:flex;gap:12px;align-items:center}.frhead canvas{width:56px;height:56px;image-rendering:pixelated;border:1px solid var(--line);background:#110c09}
.frits{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}.frit{display:flex;gap:6px;align-items:center;border:1px solid var(--line);padding:4px 6px;background:#1d150d;min-width:0}
.frit canvas{width:24px;height:24px;image-rendering:pixelated;flex:none}.frit span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.frcst div{display:flex;justify-content:space-between;gap:8px;padding:2px 0;border-bottom:1px solid var(--line)}
.mailn{display:inline-block;font:700 10px/1 var(--f-ui);color:#1a0a04;background:var(--ember2);border-radius:8px;padding:2px 6px;vertical-align:middle;margin-left:4px;font-style:normal;text-transform:uppercase}
.mailgift{display:flex;justify-content:space-between;align-items:center;gap:10px;border:1px solid var(--ember);background:linear-gradient(90deg,#3a1a0e,#1d1622 72%);padding:8px 10px;margin:6px 0 10px}.mailgift.took{border-color:var(--line);background:#1d150d}.mailgift small{color:var(--dim)}
.plist.maill div{cursor:pointer;display:block}.plist.maill div.unread{border-color:var(--ember)}.plist.maill div.open{background:#291e14}.mailtx{white-space:pre-wrap;color:var(--ink);margin-top:6px;font-weight:400}
@media (max-width:720px){.frcols{flex-direction:column}.frleft{flex:none;width:100%}.frits{grid-template-columns:1fr 1fr}}
.frc{display:inline-block;min-width:30px;text-align:right;font-style:normal}

/* lines (0.12.0): copies of the world to pick from on the menu; the chosen one glows, a full one is dim */
#mvLines{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px;align-items:center}#mvLines h5{flex:0 0 100%;margin:0;font:600 11px/1.2 var(--f-text,inherit);letter-spacing:.08em;text-transform:uppercase;color:#9a8ea8}
#mvLines button{background:rgba(10,8,20,.55);border:1px solid #3a2f4a;border-radius:6px;padding:5px 9px;color:#d8c8a6;font:600 13px/1.1 var(--f-display);cursor:pointer;letter-spacing:.02em}
#mvLines button i{display:block;font-style:normal;font:500 10px/1.2 var(--f-text,inherit);color:#9a8ea8;margin-top:2px}#mvLines button:hover{border-color:#8a5a3a;color:#fff6dc}
#mvLines button.on{border-color:var(--ember);color:#ffd27a;box-shadow:0 0 8px rgba(255,120,40,.3)}#mvLines button.full{opacity:.5}#mvLines button.full i{color:#ff9a7a}#mvLines button.down{opacity:.35}

/* ===== 0.17.1: the chapter tracker (top right) and cutscenes on the engine ===== */
#loreTrk{position:absolute;right:16px;top:54px;width:300px;padding:0;overflow:hidden;cursor:pointer;z-index:2;border-color:#bfae84;box-shadow:0 0 0 1px #000,0 4px 14px #000a}
#loreTrk:hover{border-color:var(--ember2)}
#loreTrk .th{display:flex;align-items:baseline;gap:8px;padding:6px 10px;background:linear-gradient(90deg,#4a3010,#22180c 75%,#141009);border-bottom:1px solid #bfae84}
#loreTrk .th span{font:600 12px var(--f-ui);color:#d9c89a;flex:none}
#loreTrk .th b{font:700 15px/1.15 var(--f-ui);color:#ffe9a8;text-shadow:1px 1px 0 #000}
#loreTrk .tg{display:flex;align-items:flex-start;gap:8px;padding:7px 10px 3px;font:600 13.5px/1.3 var(--f-ui);color:var(--ink)}
#loreTrk .tg i{flex:none;width:16px;height:16px;margin-top:1px;display:grid;place-items:center;font:800 11px var(--f-ui);font-style:normal;color:#1a1208;background:var(--gold);transform:rotate(45deg)}
#loreTrk .tg i b{display:block;transform:rotate(-45deg);font:800 11px/1 var(--f-ui);color:#1a1208}#loreTrk .tg span{flex:1;min-width:0}
#loreTrk .tg em{font-style:normal;color:var(--gold);flex:none;font-weight:700}
#loreTrk .tg em.ok{color:var(--good)}
#loreTrk .tbar{height:4px;margin:3px 10px 2px 34px;background:#0006;border:1px solid #0008}
#loreTrk .tbar i{display:block;height:100%;background:linear-gradient(90deg,var(--ember),var(--gold));transition:width .4s}
#loreTrk .tw{padding:3px 10px 8px 34px;font-size:12px;line-height:1.35;color:var(--dim)}
#loreTrk .tw b{color:#c9b37a;font-weight:600}
#loreTrk .tc{margin:0 8px 8px;padding:4px 8px;font:600 11.5px var(--f-ui);color:#ffcf8a;background:#3a241280;border:1px solid #7a4a1a}
#loreTrk .tc.off{color:#fff;background:#7a2a10;border-color:var(--ember)}
@media (max-width:700px){#loreTrk{width:calc(100% - 32px);max-width:340px}#loreTrk .tw{display:none}}

#chDone{position:absolute;left:50%;top:120px;transform:translateX(-50%);padding:10px 22px;text-align:center;z-index:6;pointer-events:none;opacity:0;border-color:var(--gold);box-shadow:0 0 0 1px #000,0 0 26px #ffb84a55}
#chDone.on{animation:chDone 5s ease forwards}
#chDone small{display:block;font:600 11px var(--f-ui);letter-spacing:.25em;text-transform:uppercase;color:var(--ember2)}
#chDone b{display:block;font:700 22px var(--f-display);color:#ffe9a8;text-shadow:2px 2px 0 #7a2600;margin:2px 0}
#chDone span{font-size:13px;color:var(--dim)}
@keyframes chDone{0%{opacity:0;transform:translate(-50%,-12px)}8%{opacity:1;transform:translate(-50%,0)}85%{opacity:1}100%{opacity:0}}

#cut{position:absolute;inset:0;z-index:9;cursor:pointer;-webkit-user-select:none;user-select:none}
#cut .lbx{position:absolute;left:0;right:0;height:0;background:#000;transition:height .55s ease}
#cut .lbx.t{top:0}#cut .lbx.b{bottom:0}
#cut.on .lbx.t{height:11vh}#cut.on .lbx.b{height:max(150px,20vh)}
#cutFade{position:absolute;inset:0;background:#000;opacity:0;transition:opacity .35s;pointer-events:none}
#cutFade.on{opacity:1}
#cutTitle{position:absolute;left:0;right:0;top:30%;text-align:center;opacity:0;transition:opacity .7s;pointer-events:none}
#cutTitle.on{opacity:1}
#cutTitle small{display:block;font:600 14px var(--f-ui);letter-spacing:.35em;text-transform:uppercase;color:var(--ember2);text-shadow:1px 1px 0 #000}
#cutTitle b{display:block;font:700 clamp(30px,6vw,56px)/1.1 var(--f-display);color:#fff6dc;text-shadow:3px 3px 0 #7a2600,0 0 30px #000}
#cutSub{position:absolute;left:50%;bottom:max(16px,3vh);transform:translateX(-50%);width:min(860px,calc(100% - 32px));display:flex;gap:14px;align-items:flex-start;opacity:0;transition:opacity .3s}
#cutSub.on{opacity:1}
#cutSub canvas{width:72px;height:72px;image-rendering:pixelated;border:1px solid var(--ember);flex:none;background:#100d0b}
#cutSub canvas[hidden]{display:none}
#cutSub>div{min-width:0;flex:1}
#cutSub b{font:700 16px var(--f-ui)}
#cutSub p{margin:4px 0 0;font:16.5px/1.45 var(--f-body);color:#f2e9d4;min-height:3em}
#cutSub small{display:block;margin-top:4px;font-size:13px;color:var(--dim)}
#cutSub small a{color:var(--mana)}
#cutSub.wN p{font-style:italic;color:#e6dcc4}
#cutSub.wG{border-left:3px solid var(--good);padding-left:12px}
#cutSub.wG p{font-weight:700;color:#fff;min-height:0}
#cutSub.wG small{color:#d9c89a}
#cutHint{position:absolute;right:16px;bottom:6px;font-size:11px;color:#7d7462;pointer-events:none}
#cutSkip{position:absolute;right:16px;top:12px}
#cutVid{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000}
#cutVid[hidden]{display:none}
@media (max-width:700px){#cutSub canvas{width:48px;height:48px}#cutSub p{font-size:15px}#cutHint{display:none}}
#app.cutting #hud,#app.cutting #side,#app.cutting #top,#app.cutting #chat,#app.cutting #loreTrk,#app.cutting #sleepBtn,#app.cutting #dunBtn,#app.cutting #compBtn,#app.cutting .dia,#app.cutting #riftHud,#app.cutting #bigHud,#app.cutting #watch,#app.cutting #target,#app.cutting #lfgBar,#app.cutting #toast,#app.cutting #chDone,#app.cutting #gate,#app.cutting #bag,#app.cutting #devPanel{opacity:0!important;pointer-events:none!important;transition:opacity .4s}

/* ===== 0.18.1: donation offers (22-offers-ui.js) ===== */
#offChip{position:absolute;right:324px;top:54px;z-index:2;display:flex;align-items:center;gap:8px;padding:5px 10px 5px 8px;cursor:pointer;border-color:var(--gold);background:linear-gradient(90deg,#3a2608,#1a1208);box-shadow:0 0 0 1px #000,0 0 14px #ffb02e66;animation:ofGlow 1.6s ease-in-out infinite alternate}
#offChip.all{animation:none;box-shadow:0 0 0 1px #000;border-color:#8a7a52;opacity:.75}
#offChip i{font-style:normal;font-size:18px;color:var(--gold);text-shadow:0 0 8px #ffb02e}
#offChip span{display:flex;flex-direction:column;line-height:1.05}#offChip small{font:600 10px var(--f-ui);color:#d9c89a;text-transform:uppercase;letter-spacing:.06em}#offChip b{font:700 14px var(--f-ui);color:#fff}
@keyframes ofGlow{from{box-shadow:0 0 0 1px #000,0 0 6px #ffb02e44}to{box-shadow:0 0 0 1px #000,0 0 18px #ffb02ecc}}
@media (max-width:700px){#offChip{right:auto;left:16px}}
.modal:has(.ofWrap){width:min(760px,96vw);max-width:none;padding:0;border-color:var(--gold);background:#110e0b;box-shadow:0 0 0 1px #000,0 0 40px #ffb02e55}
.ofWrap{padding:18px 20px 16px;background:radial-gradient(ellipse at 20% 0%,#4a2c0a 0%,#160f0a 45%,#110e0b 100%)}
.ofHead{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:14px}
.ofKicker{font:700 12px var(--f-ui);letter-spacing:.14em;text-transform:uppercase;color:var(--ember2)}
.ofTitle{font:700 30px/1.05 var(--f-display);color:#ffe9a8;text-shadow:2px 2px 0 #5a2a00,0 0 18px #ffb02e55;margin:4px 0 6px}
.ofSub{font:500 13px var(--f-ui);color:#d9c89a;margin:0}
.ofTimer{flex:none;text-align:center;padding:8px 14px;border:1px solid var(--gold);background:#1a1208}.ofTimer small{display:block;font:600 10px var(--f-ui);color:#d9c89a;text-transform:uppercase;letter-spacing:.08em}.ofTimer b{font:700 22px var(--f-ui);color:#fff}
.ofGrid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.ofCard{position:relative;display:flex;flex-direction:column;gap:6px;padding:28px 10px 10px;border:1px solid #bfae84;background:linear-gradient(180deg,#1d1626,#13100c);min-height:200px}
.ofCard:hover{border-color:var(--gold)}
.ofCard.got{opacity:.6}.ofCard.off{opacity:.45;border-style:dashed}
.ofTag{position:absolute;top:-1px;left:-1px;padding:3px 8px;font:800 11px var(--f-ui);text-transform:uppercase;letter-spacing:.04em;color:#1a1208;background:var(--gold);clip-path:polygon(0 0,100% 0,92% 100%,0 100%)}
.ofIco{font-size:34px;line-height:1;text-align:center;filter:drop-shadow(0 0 6px #ffb02e88)}
.ofCard b{font:700 15px var(--f-ui);color:#ffe9a8;text-align:center}.ofCard p{font:500 12px/1.3 var(--f-ui);color:var(--dim);margin:0;flex:1}
.ofKinds{display:flex;gap:3px}.ofKinds button{flex:1;padding:3px 0;font:600 11px var(--f-ui);color:var(--dim);background:#0f0c09;border:1px solid #4e4238;cursor:pointer}.ofKinds button.on{color:#1a1208;background:var(--gold);border-color:var(--gold)}
.ofPrice{display:flex;align-items:baseline;justify-content:center;gap:8px}.ofPrice s{color:var(--dim);font:500 12px var(--f-ui)}.ofPrice em{font:800 18px var(--f-ui);font-style:normal;color:var(--gold)}
.ofCard .btn{width:100%}
.ofFoot{display:flex;justify-content:space-between;align-items:center;margin-top:14px}
@media (max-width:700px){.ofGrid{grid-template-columns:1fr 1fr}.ofTitle{font-size:24px}}

/* ---------- 11 Oct: the Journal (J) and the Ranking (L): a bronze pixel frame, dark leather, gold headings (tools/ui-art/gen.py) ---------- */
.modal:has(.jrn){padding:0;border:0;background:none;box-shadow:none;width:min(900px,100%);overflow:visible}
.modal.wide:has(.jrn){width:min(1000px,100%)}
.jrn{--jink:#ecdfc2;--jdim:#a8946f;--jgold:#ffd24a;--jline:#3a2a16;--jpanel:#15100b;
  border:28px solid transparent;border-image:url(../assets/img/ui-frame.png) 16 fill round;border-image-width:28px;image-rendering:pixelated;
  background:url(../assets/img/ui-fill.png) #1a130e;background-clip:padding-box;color:var(--jink);font-family:var(--f-ui);max-height:calc(100vh - 32px);display:flex;flex-direction:column;box-shadow:0 0 0 2px #000,0 18px 60px #000c}
.jrn *{image-rendering:auto}
.jrn .jic{display:inline-block;width:32px;height:32px;background:url(../assets/img/ui-icons.png) no-repeat;background-size:512px 32px;image-rendering:pixelated;flex:none;vertical-align:middle}
.jhead{display:flex;align-items:center;gap:12px;padding:6px 10px 8px;border-bottom:2px solid var(--jline);background:linear-gradient(180deg,#00000055,#0000)}
.jhead b{font:700 26px/1 var(--f-display);color:var(--jgold);letter-spacing:.03em;text-shadow:2px 2px 0 #000}
.jhead small{display:block;color:var(--jdim);font-size:12px;margin-top:3px}
.jhead .jkeys{margin-left:auto;color:#6b5a40;font-size:11px}
.jhead .jx{background:#2a1a0c;border-color:#7a4a1e;color:var(--jgold);padding:3px 9px;font-weight:800}
.jbody{display:flex;min-height:0;flex:1}
.jnav{display:flex;flex-direction:column;gap:2px;padding:10px 6px 10px 8px;border-right:2px solid var(--jline);min-width:172px;background:#00000033}
.jtab{display:flex;align-items:center;gap:8px;background:none;border:1px solid transparent;padding:6px 8px;color:var(--jdim);font:600 13px var(--f-ui);text-align:left;position:relative}
.jtab .jic{width:24px;height:24px;background-size:384px 24px}
.jtab:hover{color:var(--jink);background:#ffffff0a}
.jtab.on{color:var(--jgold);background:linear-gradient(90deg,#3a2412,#1a120c);border-color:#7a4a1e;box-shadow:inset 0 0 0 1px #000}
.jtab em{margin-left:auto;font:700 10px var(--f-ui);background:var(--jgold);color:#1a0b02;padding:1px 5px;font-style:normal;border-radius:2px}
.jpage{flex:1;overflow:auto;padding:12px 14px 14px;min-width:0;scrollbar-color:#5a3a1e #0000}
.jh{display:flex;align-items:center;gap:8px;margin:0 0 10px;font:700 20px/1 var(--f-display);color:var(--jgold);text-shadow:1px 1px 0 #000;padding-bottom:6px;background:url(../assets/img/ui-rule.png) repeat-x left bottom;image-rendering:pixelated}
.jh .jic{width:24px;height:24px;background-size:384px 24px}
.jh small{margin-left:auto;font:600 12px var(--f-ui);color:var(--jdim)}
.jq{border:1px solid var(--jline);background:linear-gradient(180deg,#1d150e,#120d09);padding:8px 10px;margin-bottom:6px;box-shadow:inset 0 1px 0 #ffffff0d,0 1px 0 #000}
.jq .jqt{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
.jq .jqt b{font:600 14px var(--f-ui);color:var(--jink)}
.jq .jqt em{font:700 13px var(--f-ui);color:var(--jgold);font-style:normal;white-space:nowrap}
.jq>span{display:block;color:var(--jdim);font-size:12px;margin-top:2px}
.jq.done{opacity:.5}.jq.done .jqt b{text-decoration:line-through}
.jq.cur{border-color:#8a5a22;background:linear-gradient(180deg,#2a1c10,#160f0a);box-shadow:inset 0 0 0 1px #000,0 0 18px #ffb02e22}
.jbar{height:8px;margin-top:6px;background:#000;border:1px solid #3a2a16;position:relative}
.jbar i{display:block;height:100%;background:linear-gradient(180deg,#ffe28a,#d99a1e);box-shadow:inset 0 -2px 0 #0003}
.jgoal{display:flex;gap:8px;align-items:center;margin-top:8px;font-size:13px;color:var(--jink)}
.jgoal .jic{width:20px;height:20px;background-size:320px 20px}
.jgoal.boss{color:var(--jgold)}
.jwhy{margin-top:6px;color:var(--jdim);font-size:12px;font-style:italic}
.jrow{display:flex;gap:6px;margin-top:10px;flex-wrap:wrap}
.jrn .btn{background:#241810;border-color:#6a4220;color:var(--jink)}.jrn .btn:hover{background:#3a2412;border-color:var(--jgold)}
.jrn .btn.hot{background:linear-gradient(180deg,#ffd24a,#c9780f);border-color:#ffe9a0;color:#1a0b02}
.jlist{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:4px;margin-top:10px}
.jch{display:grid;grid-template-columns:22px 1fr;column-gap:8px;align-items:center;padding:5px 8px;border:1px solid #2a1e12;background:#0f0a07;color:var(--jdim)}
.jch i{font:700 12px var(--f-ui);font-style:normal;color:#6b5a40;text-align:center;border:1px solid #3a2a16;padding:1px 0}
.jch b{font:600 12px var(--f-ui);color:#cdbf9f}.jch small{grid-column:2;font-size:11px}
.jch.done i{color:var(--good);border-color:#2a4a2a}.jch.cur{border-color:#8a5a22;background:#1d150e}.jch.cur i{color:var(--jgold);border-color:#8a5a22}.jch.cur b{color:var(--jgold)}
.jch.locked{opacity:.55}
.jdim{color:var(--jdim);font-size:12px;margin:0 0 8px}
.jlore{color:#cdbf9f;font-style:italic;font-size:12px;margin:0 0 10px;border-left:3px solid #5a3a1e;padding-left:8px}
.jchest{display:flex;gap:8px;align-items:center;margin-top:10px;padding:8px 10px;border:1px dashed #6a4220;color:var(--jdim);font-size:12px}
.jchest .jic{width:24px;height:24px;background-size:384px 24px}
.jseals{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px}
.jseal{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 6px;border:1px solid var(--jline);background:#0f0a07;text-align:center;opacity:.55}
.jseal.on{opacity:1;border-color:#8a5a22;box-shadow:0 0 14px #ff5a5a22}.jseal b{font:600 12px var(--f-ui);color:var(--jink)}.jseal small{font-size:11px;color:var(--jdim)}
/* the ranking rows */
.jme{margin:0 0 8px;color:var(--jdim);font-size:12px}.jme b{color:var(--jgold);font-size:14px}
.jranks{display:flex;flex-direction:column;gap:3px}
.jrank{display:grid;grid-template-columns:32px 1fr auto;align-items:center;gap:10px;padding:6px 10px;border:1px solid var(--jline);background:linear-gradient(180deg,#1a130d,#110c08)}
.jrank .jpos{font:700 14px var(--f-display);color:var(--jdim);text-align:center;font-style:normal}
.jrank .jpos .jic{width:20px;height:20px;background-size:320px 20px}
.jrank .jname{font:600 14px var(--f-ui);color:var(--jink);display:flex;flex-direction:column}.jrank .jname small{font-weight:500;font-size:11px;color:var(--jdim)}
.jrank .jname u.on{display:inline-block;width:7px;height:7px;background:var(--good);border-radius:50%;margin-right:6px;box-shadow:0 0 6px var(--good)}
.jrank .jval{font:700 16px var(--f-ui);color:var(--jgold);text-align:right}.jrank .jval small{display:block;font:500 10px var(--f-ui);color:var(--jdim)}
.jrank.gold{border-color:#b8860b;background:linear-gradient(90deg,#3a2a0a,#161008)}.jrank.silver{border-color:#8a8f9a}.jrank.bronze{border-color:#8a5a2a}
.jrank.me{border-color:var(--ember);box-shadow:0 0 12px #ff7a2a33}.jrank.me .jname{color:var(--ember2)}
/* the Quests tab of the side panel in the same leather */
#quests{background:url(../assets/img/ui-fill.png) #1a130e;color:#ecdfc2;border-top:2px solid #7a4a1e;box-shadow:inset 0 0 0 1px #000}
#quests h5{color:#ffd24a;font:700 15px/1 var(--f-display);text-shadow:1px 1px 0 #000;padding-bottom:4px;background:url(../assets/img/ui-rule.png) repeat-x left bottom;image-rendering:pixelated}
#quests .q{border:1px solid #3a2a16;background:linear-gradient(180deg,#1d150e,#120d09);box-shadow:inset 0 1px 0 #ffffff0d}
#quests .q b{color:#ecdfc2}#quests .q span{color:#a8946f}#quests .q .bar{background:#000;border:1px solid #3a2a16;height:7px}#quests .q .bar i{background:linear-gradient(180deg,#ffe28a,#d99a1e)}
#quests .lore{color:#a8946f}
#quests .jopen{display:block;width:100%;margin:0 0 8px;background:linear-gradient(180deg,#3a2412,#1a120c);border:1px solid #7a4a1e;color:#ffd24a;font:700 13px var(--f-ui);padding:6px}
@media (max-width:700px){.jbody{flex-direction:column}.jnav{flex-direction:row;flex-wrap:wrap;border-right:0;border-bottom:2px solid var(--jline);min-width:0}.jtab span{display:none}.jtab{padding:6px}}

/* ---------- 11 Oct: the UI kit — every window, the HUD, buttons, tabs and fields in the Journal look.
   Pixel 9-slices from tools/ui-art/kit.py (sources art/ui/kit-*.aseprite, PNGs 2x in assets/img/kit-*.png). ---------- */
:root{--leather:url(../assets/img/ui-fill.png) #1a130e}
*{scrollbar-width:thin;scrollbar-color:#6a4220 #0000}
.panel{border:6px solid transparent;border-image:url(../assets/img/kit-panel.png) 8 fill / 8px round;background:var(--leather);background-clip:padding-box;box-shadow:0 4px 14px #0008;image-rendering:pixelated}
.panel *{image-rendering:auto}.panel canvas{image-rendering:pixelated}
#hud>.panel{border-image-outset:0}
/* buttons */
.btn{border:5px solid transparent;border-image:url(../assets/img/kit-btn.png) 6 fill / 6px;background:none;padding:2px 6px;color:var(--ink);image-rendering:pixelated;text-shadow:1px 1px 0 #000}
.btn:hover{border-image-source:url(../assets/img/kit-btn-hov.png);background:none;color:#fff6dc}
.btn.on,.mtabs .btn.on{border-image-source:url(../assets/img/kit-btn-on.png);background:none;color:var(--gold)}
.btn.hot{border-image-source:url(../assets/img/kit-btn-hot.png);background:none;color:#1a0b02;text-shadow:none}
.btn.hot:hover{filter:brightness(1.08)}
.btn:active:not(:disabled){transform:translateY(1px)}
.btn:disabled{filter:grayscale(.6)}
.seg .btn,.seg .btn:first-child{border-left-width:5px}
#mood .btn{border-width:5px}
/* fields */
input[type=text],input[type=number],input:not([type]),#search,.mksell input,.clform input,#chatIn{border:5px solid transparent;border-image:url(../assets/img/kit-field.png) 6 fill / 6px;background:none;color:var(--ink);padding:2px 5px;image-rendering:pixelated}
input::placeholder{color:#7a6a4e}
/* windows: the same bronze frame and leather as the Journal */
.modal.panel:not(:has(.jrn)):not(:has(.ofWrap)){border:28px solid transparent;border-image:url(../assets/img/ui-frame.png) 16 fill round;border-image-width:28px;background:var(--leather);background-clip:padding-box;padding:6px 10px 10px;box-shadow:0 0 0 2px #000,0 18px 60px #000c;max-height:calc(100vh - 32px)}
.modal h2{font:700 24px/1.1 var(--f-display);color:var(--gold);text-shadow:2px 2px 0 #000;padding-bottom:8px;margin-bottom:8px;background:url(../assets/img/kit-tabline.png) repeat-x left bottom/32px 6px;image-rendering:pixelated}
.modal h2 .btn{font:600 13px var(--f-ui);text-shadow:1px 1px 0 #000}
.modal h3{color:var(--gold);font-family:var(--f-display);font-weight:700;letter-spacing:.02em}
.veil{background:#0a0604cc}
/* rows and boxes inside windows */
.slot,.col,.mkrow,.clrow,.q,.rift{border:6px solid transparent;border-image:url(../assets/img/kit-box.png) 6 fill / 6px;background:none}
.col.done{border-image-source:url(../assets/img/kit-box-done.png);box-shadow:none}
.col h4{font:700 15px var(--f-display);color:#f0e3bb;letter-spacing:.02em}
.art{border:6px solid transparent;border-image:url(../assets/img/kit-slot.png) 8 fill / 8px;background:none;padding:3px}
.art:not(.miss){border-image-source:url(../assets/img/kit-slot-on.png)}
.art.miss canvas{filter:grayscale(1) brightness(.6)}
/* tabs of the agent panel */
#tabs{border-bottom:0;background:url(../assets/img/kit-tabline.png) repeat-x left bottom/32px 6px;padding-bottom:4px}
#tabs button{border-bottom:0;font-weight:600}
#tabs button.on{color:var(--gold);background:linear-gradient(0deg,#ffd24a22,#0000)}
#side h3{font-family:var(--f-display);font-size:16px;color:var(--gold);text-shadow:1px 1px 0 #000;border-bottom:0;background:url(../assets/img/kit-tabline.png) repeat-x left bottom/32px 6px;padding-bottom:9px}
#intent{background:#0000004d;border-bottom:0}
#mood{border-bottom:0}
/* the bag: leather and bronze, rarity cells in pixel slots */
body #bag{border:6px solid transparent;border-image:url(../assets/img/kit-panel.png) 8 fill / 8px round;background:var(--leather);background-clip:padding-box;image-rendering:pixelated}
body #bag *{image-rendering:auto}#bag canvas{image-rendering:pixelated}
body #bag .bgHead,body #bag .bgFoot,body #bag .bgTabs,body #bag .bgSel{background:#0000004d;border-color:#3a2a16}
body #bag .bgHead b{color:var(--gold);font-size:17px;text-shadow:1px 1px 0 #000}
body #bag .bc{border:5px solid transparent;border-image:url(../assets/img/kit-slot.png) 8 fill / 8px;background:radial-gradient(110% 80% at 50% 115%,color-mix(in srgb,var(--c) 45%,transparent),transparent 70%);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--c) 55%,transparent)}
body #bag .bc.e{border-image-source:url(../assets/img/kit-slot.png);background:none;box-shadow:none;opacity:.75}
body #bag .bc:not(.e):hover,body #bag .bc.sel{border-image-source:url(../assets/img/kit-slot-on.png)}
body #bag .bc canvas{inset:10%;width:80%;height:80%}
body #bag .bgX{border:5px solid transparent;border-image:url(../assets/img/kit-btn.png) 6 fill / 6px;background:none;width:30px;height:30px}
body #bag .bgFoot .btn{background:none;border-color:transparent}
body #bag .bgTabs button.on{border:5px solid transparent;border-image:url(../assets/img/kit-btn-on.png) 6 fill / 6px;background:none}
/* the top bar chips */
#top{gap:5px;padding:5px 12px}
#top .panel{border-width:4px;padding:2px 6px}#top .btn{border-width:4px;padding:1px 5px;font-size:12px}
#zones .btn{padding:1px 5px}#search{border-width:4px;width:140px}
#gold{border-image-source:url(../assets/img/kit-panel-gold.png)}
/* slots of the HUD and boxes of the lists */
.it,.ab{border:5px solid transparent;border-image:url(../assets/img/kit-slot.png) 8 fill / 8px;background:none;image-rendering:pixelated}
.it:not(.empty):hover,.ab:hover{border-image-source:url(../assets/img/kit-slot-on.png)}
.plist div,.fgR,.fgCard,.frit,.fgTop,.fgRes,.card,.sab{border:6px solid transparent;border-image:url(../assets/img/kit-box.png) 6 fill / 6px;background:none}
.fgR.on,.card.on{border-image-source:url(../assets/img/kit-btn-on.png)}
#lvlbox,#buffs span{border:5px solid transparent;border-image:url(../assets/img/kit-field.png) 6 fill / 6px;background:none}
/* the HUD keeps its old size: thinner pixel frames, the padding gives back what the frame takes */
#hud>.panel{border-width:4px;border-image-width:8px;padding:5px}
#cmds{gap:3px}#cmds .btn{border-width:3px;border-image-width:6px;padding:2px}
#hud .it{border-width:3px;border-image-width:8px}
#hud .ab{border-width:3px;border-image-width:8px}
#hud #hero .btn{border-width:4px;padding:1px 6px}
@media (min-width:901px) and (max-width:1300px){#hud>.panel{padding:5px 4px}#hud #right #cmds .btn{padding:1px 2px}}
#side{border-width:4px;border-image-width:8px}
#chat .btn,#emoPick button{border-width:3px;border-image-width:6px}

/* ---------- 11 Oct: the bottom HUD in the Dota manner — one dark metal-and-stone dock in the middle (portrait with a stats column,
   the spells over wide health and mana troughs, the 3x2 gear grid), the minimap and the commands as separate blocks.
   Pixel art: tools/ui-art/hud.py, sources art/ui/hud-*.aseprite, PNGs 2x in assets/img/hud-*.png. ---------- */
#hud{left:0;right:0;display:flex;align-items:flex-end;justify-content:space-between;gap:8px;padding:0 8px 6px;pointer-events:none;flex-wrap:nowrap}
#hud>*{pointer-events:auto}
#hud>.panel,#hud>#dock{padding:0}
#hudmm,#hud>#right{border:6px solid transparent;border-image:url(../assets/img/hud-block.png) 8 fill / 8px;background:url(../assets/img/hud-stone.png) #1b1e23;background-size:64px;background-clip:padding-box;box-shadow:0 6px 18px #000a;image-rendering:pixelated}
#hudmm{padding:4px!important}
#hud>#right{padding:6px!important;align-self:flex-end}
#dock{display:flex;align-items:stretch;margin:0 auto;border:14px solid transparent;border-image:url(../assets/img/hud-dock.png) 16 fill / 16px;
  background:url(../assets/img/hud-stone.png) #1b1e23;background-size:64px;background-clip:padding-box;image-rendering:pixelated;box-shadow:0 8px 24px #000c,0 0 0 1px #000}
#dock *{image-rendering:auto}#dock canvas{image-rendering:pixelated}
#dock>*+*{border-left:12px solid transparent;border-image:url(../assets/img/hud-divider.png) 0 0 0 12 / 0 0 0 12px repeat;padding-left:8px;margin-left:4px}
/* the hero: the name over a framed portrait with the round level badge, the stats in a column beside it */
#dock #hero{display:grid;grid-template-columns:auto auto;grid-template-rows:auto 1fr;column-gap:8px;align-items:start;border:0;padding:0 2px 0 0;background:none;box-shadow:none}
#dock #hname{grid-column:1/-1;font:700 13px/1 var(--f-display);letter-spacing:.12em;text-transform:uppercase;color:#e9d9a8;text-shadow:1px 1px 0 #000;margin:0 0 5px 34px}
#dock #pframe{position:relative;border:6px solid transparent;border-image:url(../assets/img/hud-pframe.png) 12 fill / 12px;image-rendering:pixelated;line-height:0}
#dock #portrait{width:116px;height:108px;border:0;background:#000;object-fit:cover}
#dock #hlvl{position:absolute;left:-14px;bottom:-14px;width:34px;height:34px;display:grid;place-items:center;min-width:0;
  background:url(../assets/img/hud-badge.png) center/30px 30px no-repeat;image-rendering:pixelated;font:800 15px/1 var(--f-ui);color:#ffd27a;text-shadow:1px 1px 0 #000}
#dock #hcol{display:flex;flex-direction:column;gap:4px;min-width:118px}
#dock .stats{display:flex;flex-direction:column;gap:1px;margin:0;font-size:11px;color:#9aa2aa}
#dock .stats span{display:flex;justify-content:space-between;gap:10px}
#dock .stats b{color:#e8edf2;font-weight:600}
#dock .stats #hPow b{color:var(--gold)}
#dock #hStatBtn,#dock #hCosBtn{margin-top:3px!important;border-width:3px;border-image:url(../assets/img/hud-btn.png) 6 fill / 6px;padding:1px 6px!important;font-size:11px}
#dock #hStatBtn:hover,#dock #hCosBtn:hover{border-image-source:url(../assets/img/hud-btn-hov.png)}
#dock .attr{gap:8px;font-size:11px;color:#c9d0d6}
#dock #hsub{display:none}
/* the spells and the troughs */
#dock #mid{display:flex;flex-direction:column;justify-content:flex-end;gap:5px;min-width:0;border-top:0;border-bottom:0;border-right:0;background:none;box-shadow:none;padding-top:0;padding-bottom:0}
#dock #buffs{min-height:16px}
#dock #buffs span{border-width:3px}
#dock #abil{gap:6px}
#hud .ab{width:56px;height:56px;border:5px solid transparent;border-image:url(../assets/img/hud-slot.png) 10 fill / 10px;background:none}
#hud .ab:hover{border-image-source:url(../assets/img/hud-slot-on.png);filter:brightness(1.1)}
#hud .ab.act{border-image-source:url(../assets/img/hud-slot-on.png);box-shadow:0 0 12px #ffb02e88}
#hud .ab.lock{border-image-source:url(../assets/img/hud-slot-cd.png)}
#hud .ab .lv{right:3px;bottom:1px}
#dock #vbars{width:auto;min-width:330px;gap:3px}
#dock #vbars .bar{height:20px;border:4px solid transparent;border-image:url(../assets/img/hud-trough.png) 6 fill / 6px;background:none;image-rendering:pixelated}
#dock #vbars .bar i{background:url(../assets/img/hud-hp.png) 0 0/100% 100%;image-rendering:pixelated}
#dock #vbars #mpbar i{background-image:url(../assets/img/hud-mp.png)}
#dock #vbars #xpbar{height:12px!important;border-width:3px}
#dock #vbars #xpbar i{background-image:url(../assets/img/hud-xp.png)}
#dock #vbars .bar span{font:700 12px/12px var(--f-ui);color:#fff;text-shadow:1px 1px 0 #000,0 0 3px #000}
#dock #vbars #xpbar span{font-size:9px!important;line-height:6px!important}
#dock #inv{justify-content:center;font-size:11px;color:#8d96a0}
/* the gear: a 3x2 grid of deep slots */
#dock #items{display:grid;grid-template-columns:repeat(3,48px);grid-auto-rows:48px;gap:4px;align-content:center}
#hud .it{width:48px;height:48px;border:5px solid transparent;border-image:url(../assets/img/hud-slot.png) 10 fill / 10px;background:none}
#hud .it:not(.empty):hover{border-image-source:url(../assets/img/hud-slot-on.png)}
#hud .it .e{right:3px;top:1px}
/* the commands: metal buttons, gold when on */
#hud #cmds{grid-template-columns:1fr 1fr;gap:3px}
#hud #cmds .btn{border-width:4px;border-image:url(../assets/img/hud-btn.png) 6 fill / 6px;padding:3px 6px;color:#d8dee4;font-size:12px}
#hud #cmds .btn:hover{border-image-source:url(../assets/img/hud-btn-hov.png);color:#fff}
#hud #cmds .btn.on{border-image-source:url(../assets/img/hud-btn-on.png);color:#ffd27a}
/* narrower windows: drop the stats column, then the minimap (the old rules) */
@media (min-width:901px) and (max-width:1500px){#dock #vbars{min-width:260px}#dock #portrait{width:96px;height:92px}}
@media (min-width:901px) and (max-width:1300px){#dock .stats span:not(#hPow){display:none}#dock #hcol{min-width:90px}#dock #vbars{min-width:220px}#hud .ab{width:50px;height:50px}#dock #items{grid-template-columns:repeat(3,42px);grid-auto-rows:42px}#hud .it{width:42px;height:42px}}
@media (max-width:900px){
  #hud{flex-wrap:wrap;justify-content:center;padding:0 4px 4px}
  #dock{flex-wrap:wrap;justify-content:center;width:100%;border-width:10px}
  #dock>*+*{border-left:0;padding-left:0;margin-left:0}
  #dock #hero{grid-template-columns:auto 1fr}#dock #hcol{display:none}#dock #portrait{width:52px;height:52px}#dock #hname{margin-left:0}
  #dock #hsub{display:block;grid-column:2;grid-row:2;align-self:center;font-size:11px;color:#9aa2aa}
  #dock #mid{flex:1 1 220px}#dock #vbars{min-width:0}
  #dock #items{grid-template-columns:repeat(6,34px);grid-auto-rows:34px;flex:1 1 100%;justify-content:center;margin-top:4px}#hud .it{width:34px;height:34px;border-width:4px}
  #hud>#right{flex:1 1 100%}
}
#dock #vbars .bar{height:26px}#dock #vbars .bar span{line-height:18px;font-size:13px}
#dock #vbars #xpbar{height:14px!important}#dock #vbars #xpbar span{line-height:8px!important}
@media (max-width:900px){
  #hud #cmds{grid-template-columns:repeat(4,1fr);gap:3px}#hud #cmds .btn{min-height:40px;font-size:13px;padding:3px 2px}
  #hud .ab{width:46px;height:46px;border-width:4px}#dock #abil{gap:4px}
  #dock #vbars .bar{height:20px}#dock #vbars .bar span{line-height:12px;font-size:11px}#dock #vbars #xpbar{height:12px!important}
  #dock #mid{gap:3px}#dock #buffs{min-height:0}
  #dock #hname{margin-bottom:2px}#dock #pframe{border-width:4px}#dock #hlvl{width:26px;height:26px;background-size:24px;left:-8px;bottom:-8px;font-size:12px}
}
@media (min-width:901px){#chat{bottom:244px}}

/* ---------- 11 Oct, the owner: one solid bar, no gaps — the minimap, the dock and the commands joined edge to edge;
   the hero keeps only the level and the power (and the Stats button); the spells big as in Dota, bigger gear, a bigger minimap ---------- */
@media (min-width:901px){
  #hud{gap:0;padding:0;align-items:stretch;justify-content:stretch}
  #hudmm,#hud>#right{box-shadow:none}
  #hudmm{border-width:14px;border-image:url(../assets/img/hud-dock.png) 16 fill / 16px;border-right-width:0;border-image-width:16px 0 16px 16px;padding:0!important;display:flex;align-items:center}
  #mm{width:318px;height:210px;border:2px solid #000;box-shadow:0 0 0 1px #4b525b}
  #dock{flex:1 1 auto;margin:0;justify-content:center;box-shadow:none;border-left-width:14px;border-right-width:14px}
  #dock>#mid{margin-left:auto}#dock>#items{margin-right:auto}
  #hud>#right{border-width:14px;border-image:url(../assets/img/hud-dock.png) 16 fill / 16px;border-left-width:0;border-image-width:16px 16px 16px 0;padding:0 2px 0 4px!important;display:flex;align-items:center;align-self:stretch}
  #hud{box-shadow:0 -6px 24px #000a}
}
/* the hero: name, portrait with the level badge, the power and the Stats button */
#dock #hero{grid-template-columns:auto;grid-template-rows:auto auto auto;justify-items:center;row-gap:6px}
#dock #hname{margin:0;text-align:center}
#dock #hcol{min-width:0;align-items:center;gap:4px}
#dock .stats{flex-direction:row;flex-wrap:wrap;justify-content:center;gap:4px}
#dock .stats span:not(#hPow){display:none}
#dock .stats #hPow{font:600 13px var(--f-ui);gap:6px}
#dock #hStatBtn,#dock #hCosBtn{margin-top:0!important}
#dock .attr{display:none}
#dock #portrait{width:128px;height:118px}
/* the spells big, the gear bigger */
#hud .ab{width:80px;height:80px;border-width:6px;border-image-width:12px}
#hud .ab .n{font-size:26px}#hud .ab .lv{font-size:12px;right:5px;bottom:3px}
#dock #abil{gap:6px}
#dock #vbars{min-width:0}
#dock #items{grid-template-columns:repeat(3,62px);grid-auto-rows:62px;gap:5px}
#hud .it{width:62px;height:62px;border-width:6px;border-image-width:12px}
#hud .it .e{font-size:12px;right:5px;top:3px}
/* narrower windows: smaller pieces, then no minimap */
@media (min-width:901px) and (max-width:1700px){#mm{width:254px;height:168px}#hud .ab{width:68px;height:68px}#dock #items{grid-template-columns:repeat(3,54px);grid-auto-rows:54px}#hud .it{width:54px;height:54px}}
@media (min-width:901px) and (max-width:1450px){#mm{width:200px;height:132px}#hud .ab{width:58px;height:58px}#dock #portrait{width:100px;height:96px}#dock #items{grid-template-columns:repeat(3,46px);grid-auto-rows:46px}#hud .it{width:46px;height:46px;border-width:5px}}
@media (min-width:901px) and (max-width:1200px){#hudmm{display:none}#dock{border-left-width:14px}#hud .ab{width:52px;height:52px;border-width:5px;border-image-width:10px}}
@media (min-width:901px) and (max-width:1300px){#dock .stats span:not(#hPow){display:none}}
@media (min-width:901px){#chat{bottom:262px}}
@media (min-width:901px){
  #dock>#mid{flex:1 1 auto;margin-left:4px;align-items:center}#dock>#items{margin-right:0}
  #dock #vbars{width:100%;max-width:560px}#dock #abil{justify-content:center}
}
/* 11 Oct, the owner: the spells and the troughs from edge to edge of the middle part; the minimap fills its block */
@media (min-width:901px){
  #dock>#mid{align-items:stretch}
  #dock #abil{justify-content:space-between;gap:8px;width:100%}
  #hud #abil .ab{flex:1 1 0;width:auto;height:auto;aspect-ratio:1;max-width:110px;max-height:110px}
  #dock #vbars{max-width:none;width:100%}
  #hudmm{align-items:stretch}
  #mm{width:auto!important;height:auto!important;align-self:stretch;aspect-ratio:176/116;max-width:340px}
}
/* 11 Oct, the owner: the spells and the troughs from edge to edge of the middle part; the gear fills its whole square; the minimap fills its block */
@media (min-width:901px){
  #dock>#mid{align-items:stretch}
  #dock #abil{justify-content:space-between;gap:8px;width:100%}
  #hud #abil .ab{flex:1 1 0;width:auto;height:auto;aspect-ratio:1;max-width:110px;max-height:110px}
  #dock #vbars{max-width:none;width:100%}
  #dock>#items{align-self:stretch;grid-template-rows:1fr 1fr;grid-auto-rows:auto;grid-template-columns:repeat(3,auto);gap:5px;align-content:stretch}
  #dock #items .it{width:auto;height:100%;aspect-ratio:1}
  #hudmm{align-items:stretch}
  #mm{width:auto!important;height:auto!important;align-self:stretch;aspect-ratio:176/116;max-width:340px}
}
@media (min-width:901px){
  #mm{aspect-ratio:auto;max-width:none;align-self:center;width:376px!important;height:248px!important}
  #chat{bottom:292px}#side{max-height:calc(100% - 350px)}
}
@media (min-width:901px) and (max-width:1700px){#mm{width:330px!important;height:218px!important}}
@media (min-width:901px) and (max-width:1450px){#mm{width:300px!important;height:198px!important}#dock #items .it{max-height:88px}}
/* 11 Oct, the owner: no empty space around the spells — the middle is as wide as the spells and sits right after the hero,
   the gear follows; the free space goes to the right, before the commands; the bar is as tall as the 3x2 gear */
@media (min-width:901px){
  #dock{justify-content:flex-start}
  #dock>#mid{flex:0 0 auto;margin-left:4px;align-items:stretch}
  #dock #abil{justify-content:flex-start;gap:8px;width:auto}
  #hud #abil .ab{flex:none;width:80px;height:80px;aspect-ratio:auto;max-width:none;max-height:none}
  #dock #vbars{width:auto}
  #dock>#items{margin-right:auto}
  #mm{width:300px!important;height:198px!important}
}
@media (min-width:901px) and (max-width:1450px){#hud #abil .ab{width:62px;height:62px}#mm{width:260px!important;height:172px!important}}
@media (min-width:901px) and (max-width:1200px){#hud #abil .ab{width:54px;height:54px}}
/* 11 Oct, the owner: no empty space around the spells — the middle is as wide as the spells and sits right after the hero,
   the gear follows; the free space goes to the right, before the commands; the bar is as tall as the 3x2 gear */
@media (min-width:901px){
  #dock{justify-content:flex-start}
  #dock>#mid{flex:0 0 auto;margin-left:4px;align-items:stretch}
  #dock #abil{justify-content:flex-start;gap:8px;width:auto}
  #hud #abil .ab{flex:none;width:80px;height:80px;aspect-ratio:auto;max-width:none;max-height:none}
  #dock #vbars{width:auto}
  #dock>#items{margin-right:auto}
  #mm{width:300px!important;height:198px!important}
}
@media (min-width:901px) and (max-width:1450px){#hud #abil .ab{width:62px;height:62px}#mm{width:260px!important;height:172px!important}}
@media (min-width:901px) and (max-width:1200px){#hud #abil .ab{width:54px;height:54px}}
@media (min-width:901px) and (max-width:1450px){#dock #items .it{max-height:74px}#dock>#items{align-content:center}}

/* ---------- 11 Oct, the owner: the bar 40% lower (~148 px instead of 247); the diamonds from the left edge sit in its free space ---------- */
#hudBtns{display:flex;align-items:center;justify-content:center;gap:16px;flex:1 1 auto;padding:0 12px}
#hudBtns>button{position:static!important;left:auto!important;right:auto!important;top:auto!important;margin:0;width:42px!important;height:42px!important;flex:none;
  padding:0;background:#141009e6;border:2px solid #bfae84;transform:rotate(45deg);display:grid;place-items:center;box-shadow:0 0 0 1px #000,0 0 10px #000a}
#hudBtns>button svg{transform:rotate(-45deg);width:24px!important;height:24px!important;display:block}
#hudBtns>button:hover,#hudBtns>button:focus-visible{border-color:#ffe9a8;background:#2a2110;outline:none}
#dock>#hudBtns{border-left:0;margin-left:0;padding-left:12px}
@media (min-width:901px){
  #dock>#items{margin-right:0}
  #dock{border-width:10px;border-image-width:12px}
  #hudmm{border-width:10px;border-image-width:12px 0 12px 12px}#hud>#right{border-width:10px;border-image-width:12px 12px 12px 0}
  #mm{width:194px!important;height:128px!important}
  /* hero: the portrait with the level badge, the name, power and Stats beside it */
  #dock #hero{grid-template-columns:auto auto;grid-template-rows:auto auto auto;column-gap:8px;row-gap:3px;align-items:center;justify-items:start}
  #dock #pframe{grid-row:1/4;grid-column:1;border-width:4px;border-image-width:8px}
  #dock #portrait{width:92px!important;height:92px!important}
  #dock #hname{grid-column:2;grid-row:1;margin:0;font-size:12px;text-align:left}
  #dock #hcol{grid-column:2;grid-row:2/4;align-items:flex-start}
  #dock #hlvl{width:26px;height:26px;background-size:24px;left:-8px;bottom:-8px;font-size:12px}
  /* the middle: spells 56, troughs 18/18/10, the buffs float over the bar */
  #dock>#mid{position:relative;gap:3px}
  #dock #buffs{position:absolute;left:0;right:0;top:-34px;min-height:0;pointer-events:none}
  #hud #abil .ab{width:56px;height:56px;border-width:5px;border-image-width:10px}
  #hud #abil .ab .n{font-size:20px}#hud #abil .ab .lv{font-size:10px;right:4px;bottom:2px}
  #dock #abil{gap:6px}
  #dock #vbars{gap:2px}
  #dock #vbars .bar{height:18px;border-width:3px;border-image-width:6px}#dock #vbars .bar span{line-height:12px;font-size:11px}
  #dock #vbars #xpbar{height:11px!important;border-width:2px}#dock #vbars #xpbar span{line-height:7px!important;font-size:8px!important}
  #dock #inv{font-size:10px;line-height:1}
  /* the gear: 3x2 filling the height */
  #dock #items{gap:3px}
  #dock #items .it{border-width:4px;border-image-width:8px}
  #hud .it .e{font-size:10px;right:3px;top:1px}
  /* the commands: three columns so they fit the lower bar */
  #hud #cmds{grid-template-columns:repeat(3,1fr);gap:2px}
  #hud #cmds .btn{border-width:3px;border-image-width:6px;padding:2px 5px;font-size:11px}
  #chat{bottom:168px}#side{max-height:calc(100% - 230px)}
}
@media (min-width:901px) and (max-width:1450px){#hud #abil .ab{width:50px;height:50px}#mm{width:180px!important;height:119px!important}#dock #items .it{max-height:none}#hudBtns{gap:12px}#hudBtns>button{width:36px!important;height:36px!important}}
@media (min-width:901px) and (max-width:1200px){#hud #abil .ab{width:44px;height:44px}#hudBtns{gap:8px;padding:0 6px}#hudBtns>button{width:30px!important;height:30px!important}#hudBtns>button svg{width:18px!important;height:18px!important}}
@media (max-width:900px){#hudBtns{flex:1 1 100%;order:9;padding:10px 0 4px;gap:18px}#hudBtns>button{width:34px!important;height:34px!important}}
@media (min-width:901px){
  #dock #hcol{min-width:0}
  #hudBtns{display:grid;grid-template-columns:repeat(6,30px);grid-template-rows:60px 60px;gap:0;flex:0 0 auto;margin:0 auto;padding:0 18px;align-content:center;justify-items:center;align-items:center}
  #hudBtns>button{width:40px!important;height:40px!important}
  #hudBtns>#sleepBtn{grid-area:1/1/2/3}#hudBtns>#compBtn{grid-area:1/3/2/5}#hudBtns>#dunBtn{grid-area:1/5/2/7}#hudBtns>#clanBtn{grid-area:2/2/3/4}#hudBtns>#mktBtn{grid-area:2/4/3/6}
  #hud #cmds{grid-template-columns:1fr 1fr}
}
@media (min-width:901px) and (max-width:1450px){#hudBtns{grid-template-columns:repeat(6,26px);grid-template-rows:56px 56px;padding:0 12px}#hudBtns>button{width:36px!important;height:36px!important}}
@media (min-width:901px) and (max-width:1200px){#hudBtns{grid-template-columns:repeat(6,22px);grid-template-rows:50px 50px;padding:0 8px}#hudBtns>button{width:30px!important;height:30px!important}}
@media (min-width:901px) and (max-width:1450px){
  #dock #portrait{width:76px!important;height:76px!important}#dock #hname{font-size:11px;letter-spacing:.06em}#dock .stats #hPow{font-size:12px}
  #hud #abil .ab{width:46px;height:46px;border-width:4px;border-image-width:8px}#hud #abil .ab .n{font-size:16px}#dock #abil{gap:5px}
  #hudBtns{grid-template-columns:repeat(6,24px);grid-template-rows:54px 54px;padding:0 12px}#hudBtns>button{width:34px!important;height:34px!important}#hudBtns>button svg{width:20px!important;height:20px!important}
}
@media (min-width:901px){#dock #hero{grid-template-columns:max-content max-content;justify-content:start}#dock #pframe{width:fit-content;justify-self:start}}
#dock #hero>div{min-width:0}
@media (min-width:901px) and (max-width:1450px){#hudBtns{grid-template-columns:repeat(6,22px);grid-template-rows:50px 50px;padding:0 10px}#hudBtns>button{width:30px!important;height:30px!important}#hudBtns>button svg{width:18px!important;height:18px!important}#dock #hStatBtn,#dock #hCosBtn{padding:1px 4px!important}#dock #hero{column-gap:6px}}
/* 11 Oct, the owner: the portrait almost the whole height of the bar; the name on its side at the top, the power and Stats at the bottom */
@media (min-width:901px){
  #dock #hero{grid-template-columns:max-content max-content;grid-template-rows:auto 1fr auto;align-items:stretch;row-gap:0;column-gap:10px;height:100%}
  #dock #pframe{grid-row:1/4;grid-column:1;align-self:center}
  #dock #portrait{width:127px!important;height:127px!important}
  #dock #hname{grid-column:2;grid-row:1;align-self:start;font-size:14px;margin-top:2px}
  #dock #hcol{grid-column:2;grid-row:3;align-self:end;align-items:stretch;gap:5px;margin-bottom:2px}
  #dock .stats{justify-content:flex-start}
  #dock .stats #hPow{font-size:14px}
  #dock #hStatBtn,#dock #hCosBtn{width:100%}
  #dock #hlvl{width:30px;height:30px;background-size:28px;left:-8px;bottom:-8px;font-size:13px}
}
@media (min-width:901px) and (max-width:1450px){#dock #portrait{width:117px!important;height:117px!important}#dock #hname{font-size:12px}#dock .stats #hPow{font-size:12px}}
@media (min-width:901px) and (max-width:1450px){
  #dock #hero{grid-template-columns:max-content 104px;column-gap:8px}
  #dock #hname{font-size:11px;letter-spacing:.04em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:104px}
  #dock #portrait{width:112px!important;height:112px!important}
  #hudBtns{grid-template-columns:repeat(6,20px);padding:0 8px}
}
@media (min-width:901px) and (max-width:1200px){#dock #portrait{width:100px!important;height:100px!important}#dock #hero{grid-template-columns:max-content 92px}#dock #hname{max-width:92px}#hudBtns{grid-template-columns:repeat(6,17px);grid-template-rows:44px 44px}#hudBtns>button{width:26px!important;height:26px!important}#hudBtns>button svg{width:16px!important;height:16px!important}}
/* 11 Oct, the owner: the name on top, the portrait, the power and Stats in one line under it; no side column, the spells right after;
   the minimap 25% bigger and taller than the bar again */
@media (min-width:901px){
  #hud{align-items:flex-end}
  #hud>#dock,#hud>#right{align-self:stretch}
  #hudmm{align-self:flex-end;border-top-width:10px;border-image-width:12px 0 12px 12px}
  #mm{width:243px!important;height:160px!important}
  #dock{align-self:flex-end}
  #dock #hero{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:3px;height:auto;padding-right:0}
  #dock #hname{margin:0;font-size:12px;letter-spacing:.08em;max-width:none;text-align:center;white-space:nowrap}
  #dock #pframe{align-self:center}
  #dock #portrait{width:96px!important;height:96px!important}
  #dock #hcol{flex-direction:row;align-items:center;gap:6px;margin:0}
  #dock .stats #hPow{font-size:12px;white-space:nowrap}
  #dock #hStatBtn,#dock #hCosBtn{width:auto;font-size:11px;padding:0 5px!important;white-space:nowrap}
  #dock #hlvl{width:26px;height:26px;background-size:24px;left:-7px;bottom:-7px;font-size:12px}
  #dock>#mid{margin-left:0}
}
@media (min-width:901px) and (max-width:1450px){#mm{width:225px!important;height:148px!important}#dock #portrait{width:96px!important;height:96px!important}#dock #hero{grid-template-columns:none}#dock #hname{max-width:150px;font-size:11px}}
@media (min-width:901px) and (max-width:1200px){#dock #portrait{width:92px!important;height:92px!important}#dock #hname{max-width:140px}}
@media (min-width:901px){#dock #portrait{width:88px!important;height:88px!important}#dock #hero{gap:2px}#dock #hname{line-height:12px}#dock #hStatBtn,#dock #hCosBtn{line-height:14px}}
@media (min-width:901px){#dock .stats{flex-wrap:nowrap;align-items:center;gap:6px}#dock #hStatBtn,#dock #hCosBtn{flex-basis:auto!important;margin-top:0!important}}
@media (min-width:901px){#hud>#dock,#hud>#right{align-self:flex-end;height:160px;box-sizing:border-box}}
@media (min-width:901px) and (max-width:1450px){#mm{width:231px!important;height:152px!important}}

/* ---------- 11 Oct, the owner: the agent panel sits in the free space of the bar; the four tabs pop up over the bar ---------- */
@media (min-width:901px){
  #dock>#hudBtns{margin:0}
  #dock>#side{position:relative;inset:auto!important;top:auto!important;right:auto;width:auto;flex:1 1 300px;min-width:280px;max-width:380px;max-height:none!important;overflow:visible;
    display:flex;flex-direction:column;justify-content:space-between;gap:2px;margin-left:4px;padding:0 0 0 8px;
    border:0;border-left:12px solid transparent;border-image:url(../assets/img/hud-divider.png) 0 0 0 12 / 0 0 0 12px repeat;background:none;box-shadow:none;visibility:visible!important}
  #dock #side h3{padding:0 0 5px;font-size:14px;background-size:32px 4px}
  #dock #side h3 .btn{font-size:11px;padding:0 5px;border-width:3px;border-image-width:6px}
  #dock #intent{padding:2px 0;background:none}
  #dock #intent b{font-size:13px}#dock #intent span{font-size:11px}
  #dock #mood .btn{padding:1px 4px;font-size:11px;border-width:3px;border-image-width:6px}
  #dock #tabs{padding-bottom:2px;background-size:32px 4px}
  #dock #tabs button{padding:2px 4px;font-size:12px}
  /* the open tab: a panel over the bar, as wide as the agent block */
  #dock #side>#log,#dock #side>#tale,#dock #side>#quests,#dock #side>#campstats{position:absolute;left:-12px;right:-14px;bottom:calc(100% + 10px);max-height:min(60vh,520px);overflow:auto;z-index:6;
    padding:8px 10px;border:8px solid transparent;border-image:url(../assets/img/kit-panel.png) 8 fill / 8px;background:var(--leather);background-clip:padding-box;box-shadow:0 -6px 24px #000c;image-rendering:auto}
  body.bagOpen #dock #side{visibility:visible}
}
@media (max-width:900px){#dock>#side{position:static;flex:1 1 100%;width:auto;max-height:none!important;top:auto!important;border-width:0;background:none;box-shadow:none;margin-top:6px}#dock>#side.closed{display:none}}
@media (min-width:901px){
  #dock>#side{flex:1 1 260px;min-width:230px}
  #hudBtns{grid-template-columns:repeat(6,22px);grid-template-rows:60px 60px;padding:0 6px}
  #hudBtns>button{width:36px!important;height:36px!important}
  #dock>*+*{margin-left:2px;padding-left:6px}
  #dock #mood .btn{min-width:0;flex:1 1 0;overflow:hidden;text-overflow:ellipsis}
}
@media (min-width:901px) and (max-width:1700px){#hud #abil .ab{width:50px;height:50px}#dock #items .it{max-height:62px}#dock>#items{align-content:center}}
@media (min-width:901px) and (max-width:1450px){#hudmm{display:none!important}#dock{border-left-width:10px}#hud #abil .ab{width:46px;height:46px}#dock #items .it{max-height:56px}}
@media (min-width:901px){#dock #mood .btn{border-width:3px!important;padding:1px 4px;line-height:14px}}
@media (min-width:901px) and (max-width:1250px){
  #hud #abil .ab{width:40px;height:40px;border-width:3px;border-image-width:6px}#hud #abil .ab .n{font-size:14px}#dock #abil{gap:4px}
  #dock #items .it{max-height:46px}#dock #portrait{width:76px!important;height:76px!important}
  #dock>#side{min-width:200px}#dock #side h3 .btn{font-size:10px;padding:0 3px}#dock #side h3{font-size:12px}
  #hudBtns{grid-template-columns:repeat(6,17px);grid-template-rows:50px 50px;padding:0 4px}#hudBtns>button{width:28px!important;height:28px!important}#hudBtns>button svg{width:16px!important;height:16px!important}
  #hud #cmds .btn{font-size:10px;padding:1px 3px}
}

@media (min-width:901px) and (max-width:1250px){#dock>#side{min-width:180px;flex-basis:200px}#dock #side h3{flex-wrap:wrap;gap:2px}#dock #side h3>span:last-child{flex-wrap:wrap}#hud #cmds .btn{font-size:10px;padding:1px 2px}}
@media (min-width:901px) and (max-width:1250px){#hud #abil .ab{width:36px;height:36px}#dock #items .it{max-height:40px}#dock>#side{min-width:0;flex:1 1 160px}#dock #intent span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#dock #vbars .bar span{font-size:10px}}
/* 12 Oct, the owner: room between the parts of the bar; the gear has a fixed size (the diamonds no longer run over it);
   the mood buttons and the other rows of the agent block keep their height */
@media (min-width:901px){
  #dock>*+*{margin-left:10px;padding-left:16px}
  #dock>#side{padding-left:16px}
  #dock>#items{grid-template-columns:repeat(3,62px);grid-template-rows:62px 62px;grid-auto-rows:62px;align-content:center}
  #dock #items .it{width:62px;height:62px;max-height:none;aspect-ratio:auto}
  #dock>#side>*{flex:none}
  #dock #mood .btn{min-height:20px}
  #hudBtns{padding:0 4px}
}
@media (min-width:901px) and (max-width:1450px){#dock>*+*{margin-left:6px;padding-left:12px}#dock>#items{grid-template-columns:repeat(3,54px);grid-template-rows:54px 54px}#dock #items .it{width:54px;height:54px}}
@media (min-width:901px) and (max-width:1250px){#dock>*+*{margin-left:4px;padding-left:10px}#dock>#items{grid-template-columns:repeat(3,44px);grid-template-rows:44px 44px}#dock #items .it{width:44px;height:44px}}
@media (min-width:901px){
  #dock>#side{min-width:0;flex:1 1 250px;max-width:400px}
  #dock #side h3{flex-wrap:wrap;row-gap:3px}
  #dock #side h3>span:last-child{flex-wrap:wrap;gap:3px!important}
  #dock #side h3 .btn{font-size:10px;padding:0 4px}
  #dock #intent span,#dock #intent b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #dock #mood .btn{font-size:10px}
  #dock #tabs button{font-size:11px;padding:2px 2px}
}
@media (min-width:901px) and (max-width:1250px){#dock>*+*{margin-left:2px;padding-left:8px}#dock>#side{padding-left:8px}#dock #mood .btn{font-size:9px;padding:0 2px}#dock #tabs button{font-size:10px;padding:2px 1px}#dock #side h3 .btn{font-size:9px;padding:0 2px}#dock #side h3{font-size:11px}}
/* 12 Oct, the owner: the four tabs on top of the agent block, their panel drops up from them */
@media (min-width:901px){
  #dock>#side{justify-content:flex-start;gap:4px}
  #dock #side>#tabs{order:-1;padding:0 0 3px;background:url(../assets/img/kit-tabline.png) repeat-x left bottom/32px 4px}
  #dock #side>#tabs button{padding:1px 4px 3px;font-size:12px;font-weight:700}
  #dock #side>#tabs button.on{color:var(--gold);background:linear-gradient(0deg,#ffd24a33,#0000)}
  #dock #side h3{background:none;padding-bottom:0}
  #dock #side>#log,#dock #side>#tale,#dock #side>#quests,#dock #side>#campstats{bottom:calc(100% + 10px)}
}
@media (min-width:901px) and (max-width:1250px){#hudBtns{grid-template-columns:repeat(6,15px);grid-template-rows:48px 48px}#hudBtns>button{width:25px!important;height:25px!important}#dock #side>#tabs button{font-size:10px;padding:1px 1px 3px}}
@media (min-width:901px) and (max-width:1250px){#hud>#right{padding:0 1px 0 2px!important}#hud #cmds{gap:1px}}

/* 12 Oct: the Cosmetic button beside Stats (44-cosmetics.js), a gold letter so it reads as the shop of looks */
#dock #hCosBtn{color:#ffd24a}#dock #hCosBtn[hidden]{display:none}

/* ---------- 12 Oct: PHONE (landscape up to 500 px high, or portrait up to 500 px wide) — at least 75% of the screen is the world.
   Overrides both the desktop (min-width:901) and the narrow (max-width:900) rules above, so it stays the last block of the file.
   Landscape: the bottom bar is one row ~66 px. Portrait: two rows ~130 px, the commands sit over the right part of the second row. ---------- */
@media (orientation:landscape) and (max-height:500px),(orientation:portrait) and (max-width:500px){
  /* top row: compact buttons on the right, no logo, the full-screen button as an icon */
  #top{flex-wrap:nowrap!important;overflow:hidden;gap:3px!important;padding:3px max(6px,env(safe-area-inset-right)) 0 max(6px,env(safe-area-inset-left))!important;min-height:0!important;height:auto!important}
  #top>*{flex:none!important;white-space:nowrap!important;align-self:center!important}#top>.grow{flex:1 1 auto!important}
  #top .btn,#top .panel{padding:1px 5px!important;font-size:10px!important;min-height:0!important;height:20px!important;line-height:16px!important;border-width:2px!important;border-image-width:4px!important;box-sizing:border-box}
  #top .logo,#zones,#search,#evChip,#speed{display:none!important}
  #top #fsBtn{font-size:0!important;gap:0!important}#top #fsBtn svg{width:12px!important;height:12px!important}
  #top #gold{font-size:11px!important;gap:3px!important}#gold .coin{width:9px;height:9px}
  /* the quest tracker: only the goal line, small, top right under the buttons */
  #loreTrk{width:min(200px,48vw)!important;max-width:none!important;top:26px!important;right:max(6px,env(safe-area-inset-right))!important;transform:none!important}
  #loreTrk .th,#loreTrk .tw{display:none!important}
  #loreTrk .tg span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #loreTrk .tg{padding:3px 6px 1px!important;align-items:center!important;font-size:10.5px!important;line-height:1.2!important;gap:6px!important}
  #loreTrk .tg i{width:11px!important;height:11px!important}#loreTrk .tg i b{font-size:8px!important}
  #loreTrk .tbar{height:3px!important;margin:2px 6px 3px 23px!important}
  #loreTrk .tc{margin:0 6px 4px!important;padding:2px 6px!important;font-size:10px!important}
  #target #ttrick{display:none!important}
  #target{width:220px!important;min-width:0!important;padding:4px 8px!important;top:26px!important;left:max(6px,env(safe-area-inset-left))!important;right:auto!important;transform:scale(.7)!important;transform-origin:left top}
  #watch{top:26px!important;transform:scale(.8);transform-origin:left top}
  /* chat: just the field, narrow, bottom left above the bar */
  #chat{top:auto!important;left:max(6px,env(safe-area-inset-left))!important;right:auto!important;width:130px!important;transition:width .15s;flex-direction:column!important;gap:2px!important}
  #chat:focus-within{width:min(280px,70vw)!important}
  #chatLog{max-height:44px!important;font-size:11px}#emoQuick,#voiceBtn{display:none!important}
  #chatIn{font-size:16px;padding:0 6px!important;height:26px;transform:scale(.7);transform-origin:left center;width:143%!important;margin:-4px -43% -4px 0!important}
  #chat:not(:focus-within) #chatSend{display:none!important}
  #chat .btn{min-height:0!important;padding:0 6px!important;height:20px;font-size:11px}

  /* the bar */
  #hud{flex-wrap:nowrap!important;align-items:stretch!important;justify-content:stretch!important;gap:0!important;padding:0!important;
    padding-left:env(safe-area-inset-left)!important;padding-right:env(safe-area-inset-right)!important;box-shadow:none!important}
  #hudmm,#mm,#dock #inv,#dock #hname,#dock #hcol,#dock #hsub{display:none!important}
  #hud>#right,#hud>#dock{height:auto!important;align-self:stretch!important;box-shadow:none!important}
  #dock{flex:1 1 auto!important;width:auto!important;min-width:0;margin:0!important;justify-content:flex-start!important;align-items:center!important;
    border-width:5px!important;border-image-width:7px!important;padding:0 2px!important}
  #dock>*+*{border-left-width:6px!important;border-image-width:0 0 0 6px!important;padding-left:3px!important;margin-left:2px!important}
  #dock #hero{display:block!important;flex:none}
  #dock #pframe{border-width:2px!important;border-image-width:4px!important}
  #dock #portrait{width:40px!important;height:40px!important}
  #dock #hlvl{width:18px!important;height:18px!important;background-size:16px!important;left:-5px!important;bottom:-5px!important;font-size:9px!important}
  #dock>#mid{flex:1 1 auto!important;min-width:0;position:relative;gap:1px!important;margin-left:2px!important;align-items:stretch!important;justify-content:center!important}
  #dock #buffs{position:absolute!important;left:0;right:0;top:-26px;min-height:0!important;pointer-events:none;transform:scale(.8);transform-origin:left bottom}
  #dock #abil{gap:2px!important;width:auto!important;justify-content:flex-start!important;flex-wrap:nowrap}
  #hud #abil .ab{flex:none!important;width:28px!important;height:28px!important;aspect-ratio:auto!important;max-width:none!important;max-height:none!important;border-width:3px!important;border-image-width:5px!important}
  #hud #abil .ab .n{font-size:12px!important}#hud #abil .ab .lv{font-size:7px!important;right:1px!important;bottom:0!important}
  #dock #vbars{min-width:0!important;width:100%!important;max-width:none!important;gap:1px!important}
  #dock #vbars .bar{height:9px!important;border-width:1px!important;border-image-width:3px!important}
  #dock #vbars .bar span{font-size:7px!important;line-height:7px!important}
  #dock #vbars #xpbar{height:3px!important;border-width:1px!important}#dock #vbars #xpbar span{display:none}
  #dock>#items{display:grid!important;grid-template-columns:repeat(3,24px)!important;grid-template-rows:24px 24px!important;grid-auto-rows:24px!important;gap:2px!important;align-self:center!important;flex:none}
  #hud #items .it{width:24px!important;height:24px!important;max-height:none!important;aspect-ratio:auto!important;border-width:3px!important;border-image-width:5px!important}
  #hud .it .e{font-size:7px!important;right:1px!important;top:0!important}
  #hudBtns{display:grid!important;grid-template-columns:repeat(6,12px)!important;grid-template-rows:25px 25px!important;gap:0!important;padding:0 4px!important;margin:0!important;flex:none!important;order:0!important;align-items:center;justify-items:center}
  #hudBtns>button{width:18px!important;height:18px!important;border-width:1px!important}
  #hudBtns>button svg{width:12px!important;height:12px!important}
  #hudBtns>#sleepBtn{grid-area:1/1/2/3}#hudBtns>#compBtn{grid-area:1/3/2/5}#hudBtns>#dunBtn{grid-area:1/5/2/7}#hudBtns>#clanBtn{grid-area:2/2/3/4}#hudBtns>#mktBtn{grid-area:2/4/3/6}
  /* the agent panel (Journal button) opens above the bar */
  #side.closed{display:none!important}#sideBtn{display:inline-block!important}
  #dock>#side{position:absolute!important;left:6px!important;right:auto!important;top:auto!important;bottom:calc(100% + 4px)!important;width:min(340px,calc(100vw - 12px))!important;max-height:calc(100vh - 200px)!important;
    overflow:auto!important;margin:0!important;flex:none!important;min-width:0!important;max-width:none!important;border-width:4px!important;background:#141009f2!important;z-index:7}
  #dock #side>#log,#dock #side>#tale,#dock #side>#quests,#dock #side>#campstats{position:static!important;max-height:none!important}
  /* the commands */
  #hud>#right{flex:0 0 auto!important;border-width:5px!important;border-image-width:7px!important;padding:0 2px!important;display:flex;align-items:center}
  #hud #cmds{display:grid!important;gap:2px!important;flex:none!important;width:auto!important}
  #hud #cmds .btn{min-height:0!important;font-size:9px!important;line-height:1!important;padding:0 4px!important;border-width:2px!important;border-image-width:4px!important;white-space:nowrap!important}
}
/* landscape: everything in one row 66 px high; the commands 5 + 4 */
@media (orientation:landscape) and (max-height:500px){
  #chat{bottom:64px!important}
  #hud #cmds{grid-template-columns:repeat(5,auto)!important}
  #hud #cmds .btn{height:23px}
}
/* portrait: two rows — hero + spells + bars on top; gear, diamonds and (over the right part) the commands below */
@media (orientation:portrait) and (max-width:500px){
  #chat{bottom:124px!important}
  #hud{display:grid!important;grid-template-columns:1fr!important}
  #hud>#dock{grid-area:1/1;display:grid!important;grid-template-columns:auto auto 1fr;grid-template-rows:auto auto;row-gap:3px;align-items:center!important;padding-bottom:2px!important}
  #dock>*+*{border-left:0!important;padding-left:0!important;margin-left:0!important}
  #dock>#hero{grid-area:1/1}
  #dock>#mid{grid-area:1/2/2/4;margin-left:6px!important}
  #dock>#items{grid-area:2/1}
  #dock>#hudBtns{grid-area:2/2}
  #hud>#right{grid-area:1/1;justify-self:end;align-self:end!important;z-index:1;border-width:0!important;background:none!important;padding:0 7px 7px 0!important;border-image:none!important}
  #hud #cmds{grid-template-columns:repeat(3,auto)!important}
  #hud #cmds .btn{height:18px;min-width:66px}
}

/* ===== donation (13 Oct evening): the gold gem button in the top bar and the window with everything one can pay for ===== */
#donBtn{position:relative;display:flex;align-items:center;gap:6px;padding:4px 10px 4px 6px;color:#fff3c4;font-weight:700;border-color:#ffd24a;background:linear-gradient(180deg,#5a3c0c,#2b1a06);overflow:hidden;animation:dnGlow 1.4s ease-in-out infinite alternate;text-shadow:0 1px 0 #000}
#donBtn:hover{background:linear-gradient(180deg,#7a520f,#3a2408);color:#fff}
#donBtn::after{content:'';position:absolute;top:-40%;left:-60%;width:40%;height:180%;background:linear-gradient(100deg,#fff0 0%,#fff8 50%,#fff0 100%);transform:skewX(-20deg);animation:dnShine 2.6s ease-in-out infinite}
#donBtn .dnGem{width:16px;height:16px;flex:none;background:linear-gradient(135deg,#fff7b0 0%,#ffd24a 35%,#e08a00 70%,#7a3f00 100%);clip-path:polygon(50% 0,100% 40%,78% 100%,22% 100%,0 40%);filter:drop-shadow(0 0 4px #ffd24a);animation:dnPulse 1.2s ease-in-out infinite alternate}
@keyframes dnGlow{from{box-shadow:0 0 0 1px #000,0 0 5px #ffb02e66}to{box-shadow:0 0 0 1px #000,0 0 16px #ffd24acc,0 0 30px #ffb02e55}}
@keyframes dnShine{0%{left:-60%}45%{left:130%}100%{left:130%}}
@keyframes dnPulse{from{transform:scale(.9);filter:drop-shadow(0 0 2px #ffd24a) brightness(.95)}to{transform:scale(1.15);filter:drop-shadow(0 0 7px #fff0a0) brightness(1.25)}}
.dnWrap h2{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap}
.dnBig{margin:8px 0 4px;padding:10px 12px;border:2px solid var(--gold);background:linear-gradient(90deg,#3a2608,#1a1208 60%,#3a2608);color:#ffe28a;font:800 15px/1.3 var(--f-ui);letter-spacing:.04em;text-align:center;text-shadow:0 1px 0 #000;box-shadow:0 0 0 1px #000,0 0 14px #ffb02e55}
.dnNow{color:var(--dim);margin:4px 0 8px}
.dnH{margin:10px 0 2px}.dnH small{color:var(--dim);font-weight:400}
.dnP{color:var(--dim);margin:0 0 8px;line-height:1.35}
.dnGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px}
.dnCard{display:flex;flex-direction:column;gap:6px;align-items:center;padding:10px 8px;background:#1d150d;border:2px solid var(--line);text-align:center}
.dnCard .btn{width:100%;white-space:normal}.dnCard small{color:var(--dim)}
.dnIco{width:64px;height:64px;display:flex;align-items:center;justify-content:center;background:#0e0b07;border:1px solid #3a2a12;box-shadow:0 0 10px #ffd24a33}
.dnIco canvas{image-rendering:pixelated;width:64px;height:64px}
.dnRows{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.dnRow{display:flex;align-items:center;gap:10px;padding:8px 10px;background:#1d150d;border:2px solid var(--line)}
.dnRow i{font-style:normal;font-size:20px;flex:none;width:28px;text-align:center;color:var(--gold)}
.dnRow span{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3}.dnRow small{color:var(--dim)}
.dnRow .btn{flex:none}.dnOff{border-color:var(--gold);animation:ofGlow 1.6s ease-in-out infinite alternate}
.dnFoot{display:flex;justify-content:flex-end;margin-top:10px}
@media (max-width:700px){#donBtn span{display:none}#donBtn{padding:4px 7px}.dnBig{font-size:12px}}

/* 14 Oct night (owner): the $100 000 hero in the tier picker, coming soon */
#holdSeg .btn.soon{opacity:.8;border-style:dashed;border-color:#c9a544;color:#e8d8a8;cursor:not-allowed;background:repeating-linear-gradient(135deg,#1a140c 0 8px,#130f09 8px 16px)}#holdSeg .btn.soon b{color:#ffd24a;font-weight:800;text-transform:uppercase;font-size:.85em;letter-spacing:.5px}

/* 14 Oct night (D3 acts): the name of the area the hero walks into (63-acts-ui.js) */
#areaBan{position:absolute;left:50%;top:118px;transform:translateX(-50%) translateY(-6px);display:flex;flex-direction:column;align-items:center;gap:3px;pointer-events:none;z-index:6;opacity:0;transition:opacity .6s ease,transform .6s ease;text-align:center;min-width:280px;padding:4px 18px}
#areaBan.on{opacity:1;transform:translateX(-50%)}
#areaBan b{font:700 26px/1.1 var(--f-ui);letter-spacing:1.5px;text-transform:uppercase;color:#f3e2ad;text-shadow:0 2px 0 #000,0 0 18px #000,0 0 30px #c9a54466}
#areaBan small{font:600 13px/1.2 var(--f-ui);color:#d8c8a0;letter-spacing:.6px;text-shadow:0 1px 0 #000,0 0 10px #000}
#areaBan em{font:700 12px/1.2 var(--f-ui);font-style:normal;color:#8fe0ff;letter-spacing:.8px;text-transform:uppercase;text-shadow:0 1px 0 #000,0 0 10px #000}
#areaBan i{display:block;width:240px;height:2px;background:linear-gradient(90deg,#c9a54400,#c9a544,#c9a54400)}
@media (prefers-reduced-motion:reduce){#areaBan{transition:none}}
@media (max-width:700px){#areaBan{top:84px}#areaBan b{font-size:19px}#areaBan i{width:170px}}
#modals .actTabs{display:flex;flex-wrap:wrap;gap:4px;margin:-2px 0 8px}#modals .actTabs .btn{padding:4px 8px;font-size:12px}#modals .actTabs .btn.on{border-color:var(--gold);color:var(--gold);box-shadow:inset 0 0 0 1px #ffd24a55}
/* 14 Oct night: a memory stone read (63-acts-ui.js) and the Chronicle window */
#poiPop{position:absolute;left:50%;bottom:150px;transform:translateX(-50%) translateY(8px);width:min(560px,92vw);padding:14px 18px 12px;background:linear-gradient(180deg,#2a2218f2,#1a140ef2);border:1px solid #c9a544;box-shadow:0 0 0 1px #000,0 10px 40px #000c;z-index:7;opacity:0;pointer-events:none;transition:opacity .5s,transform .5s;cursor:pointer}
#poiPop.on{opacity:1;transform:translateX(-50%);pointer-events:auto}
#poiPop small{display:block;font:600 11px var(--f-ui);letter-spacing:.8px;text-transform:uppercase;color:#7fffd8}#poiPop b{display:block;font:700 18px var(--f-ui);color:#f3e2ad;margin:2px 0 6px}
#poiPop p{margin:0 0 8px;font:italic 14px/1.45 var(--f-body);color:#e8dcc0}#poiPop em{font:600 11.5px var(--f-ui);font-style:normal;color:#c9a544}
.chrBody h3{margin:4px 0 6px;color:var(--ember2)}.chrBody .chrLeg{font-style:italic;line-height:1.5;color:#e0d2b2;margin:0 0 10px}.chrBody .chrSum{margin:0 0 10px;color:var(--dim)}.chrBody .chrSum b{color:var(--gold)}
.chrA{border:1px solid var(--line);background:#120d08b0;padding:8px 10px;margin:0 0 6px}.chrA h4{margin:0 0 4px;display:flex;justify-content:space-between;gap:8px;font:700 14px var(--f-ui);color:#f3e2ad}.chrA h4 small{color:var(--dim);font-weight:600}
.chrA p{margin:0 0 4px;line-height:1.45}.chrA.off h4 span{color:#9a8e78}.chrA.off>p{color:#857a66;font-style:italic}
.chrP{border-left:3px solid #7fffd8;padding:4px 8px;margin-top:6px;background:#0c1412a0}.chrP b{color:#9fffe4;font:700 12.5px var(--f-ui)}.chrP p{font-style:italic;color:#d8e8e0;margin:3px 0 0}.chrP.off{border-left-color:#4e4a40;background:none}.chrP.off b{color:#857a66}.chrP.off p{color:#857a66}
@media (max-width:700px){#poiPop{bottom:120px}}
/* 14 Oct night: the bounties of the act under the act map */
.actBty{margin:8px 0 2px;display:grid;gap:4px}.actBty .btyH{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline}.actBty .btyH b{color:var(--gold);font:700 13px var(--f-ui)}.actBty .btyH small{color:var(--dim)}
.actBty .bty{display:grid;grid-template-columns:1fr 120px 52px;gap:8px;align-items:center;padding:3px 8px;border:1px solid var(--line);background:#120d08b0;font-size:12.5px}
.actBty .bty i{height:6px;background:linear-gradient(90deg,#ffd24a var(--p),#2a2218 var(--p));border:1px solid #000}.actBty .bty em{font-style:normal;text-align:right;color:var(--dim)}.actBty .bty.ok span{color:#9fe0a0}.actBty .bty.ok i{background:#6ee58c}
@media (max-width:700px){.actBty .bty{grid-template-columns:1fr 60px 44px}}
/* 14 Oct (owner): the craft hints that come with the letter about the first four (10-companions-screen.js CMP.tut) and the letter's «Look» */
.cscr .cnote.ctut{color:var(--gold);border-left:3px solid var(--gold);padding:6px 0 6px 10px;font-size:14px;background:#2a1f0c99}
.cscr .cbtn.ctutOn{box-shadow:0 0 0 2px #ffd24a,0 0 18px #ffd24acc;animation:ctutP 1.1s ease-in-out infinite}
@keyframes ctutP{50%{box-shadow:0 0 0 2px #ffd24a,0 0 4px #ffd24a66}}
.plist.maill .mailAct{display:inline-block;margin-top:8px;padding:6px 16px}
/* 14 Oct (owner): the scrolls of experience and drop in the donation window (62-donate-ui.js) */
.dnScr{display:flex;flex-direction:column;gap:8px;margin:4px 0 12px}
.dnSc{display:flex;align-items:center;gap:12px;border:1px solid #4a3a1e;background:linear-gradient(90deg,#241a10,#17121c);padding:8px 10px}
.dnSc canvas{width:48px;height:48px;image-rendering:pixelated;flex:none}
.dnSc>span:first-of-type{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.dnSc small{color:var(--dim);font-size:12px}
.dnScB{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.dnScB .btn{padding:6px 10px;white-space:nowrap}
@media (max-width:700px){.dnSc{flex-wrap:wrap}.dnScB{justify-content:flex-start}}
/* 14 Oct (owner): a quest of the journal is pressed: the hero goes to do it (30-journal.js, 57-quest-focus.js) */
.jq.jqf{cursor:pointer;position:relative;transition:border-color .12s,background .12s}
.jq.jqf:hover{border-color:#a8742c;background:linear-gradient(180deg,#2a1d10,#160f0a)}
.jq.jqf:hover .jqt b{color:#fff1c8}
.jqfHint{margin:-2px 0 8px;font-size:12px}.jqfHint b{color:var(--jgold);font-weight:700}
.jq.qfOn{border-color:#d9a43a;background:linear-gradient(180deg,#33240f,#1a120a);box-shadow:inset 0 0 0 1px #000,0 0 14px #ffc24a40}
.qfTag{font:700 11px var(--f-ui);font-style:normal;color:#1a1208;background:var(--jgold);padding:1px 6px;border-radius:2px;white-space:nowrap;margin-left:auto;animation:qfP 1.6s ease-in-out infinite}
@keyframes qfP{0%,100%{opacity:1}50%{opacity:.6}}
.btn.jturn{padding:1px 8px;font-size:12px;line-height:1.4;font-weight:700;vertical-align:baseline;margin:1px 0}   /* the kit's golden button (btn hot) */
.btn.jturn:hover{filter:brightness(1.15)}
/* 14 Oct (owner: only real players): the tasks that need other players — a steel-blue tag, they hold nothing back */
.grpTag{font:700 11px var(--f-ui);font-style:normal;color:#cfe3ff;background:#26405e;border:1px solid #3d628c;padding:0 6px;border-radius:2px;white-space:nowrap;margin-left:auto;margin-right:6px}
.jq.grp{border-left:3px solid #3d628c}
.jch.grp i{border-style:dashed}
.jch.cur.grp{border-color:#3d628c;background:#121a24}.jch.cur.grp i{color:#9cc4ff;border-color:#3d628c}

/* ---------- 18 Oct (owner): the chat's channels (71-chat.js). Three colours, the way MMO players already read them: the shared chat in the
   usual ink, the clan green, whispers pink. Tabs over the log (All / Clan / DM) with a count of what came, a channel button left of the field ---------- */
#chat{--ch-all:#8fd8ff;--ch-cl:#6fe08a;--ch-wh:#ff8ad8}
#chatLog::before{content:'';flex:1 1 auto}   /* the lines sit at the bottom also when a tab hides the first ones */
#chatLog .cl:first-child{margin-top:0}
#chatTabs{display:flex;gap:3px;align-self:flex-start;pointer-events:auto;opacity:.8;transition:opacity .15s}
#chatTabs[hidden]{display:none}
#chat:hover #chatTabs,#chat:focus-within #chatTabs,#chat.open #chatTabs{opacity:1}
#chatTabs button{position:relative;background:#110c08d0;border:1px solid var(--line);color:var(--dim);font:700 10px/1 var(--f-ui);letter-spacing:.06em;text-transform:uppercase;padding:5px 10px 4px;box-shadow:inset 0 -2px 0 transparent;transition:color .12s,box-shadow .12s,background .12s}
#chatTabs button:hover{color:var(--ink);background:#241a11e8}
#chatTabs button.on{color:var(--ink);background:#241a11f0;border-color:var(--line2)}
#chatTabs button[data-tab=all].on{box-shadow:inset 0 -2px 0 var(--ember2)}
#chatTabs button[data-tab=cl].on{box-shadow:inset 0 -2px 0 var(--ch-cl);color:var(--ch-cl)}
#chatTabs button[data-tab=wh].on{box-shadow:inset 0 -2px 0 var(--ch-wh);color:var(--ch-wh)}
#chatTabs i{position:absolute;top:-7px;right:-6px;min-width:16px;height:16px;padding:0 4px;border-radius:8px;font:800 10px/16px var(--f-ui);font-style:normal;letter-spacing:0;text-align:center;color:#1a0d06;background:var(--ember2);box-shadow:0 0 0 2px #110c08}
#chatTabs i:empty{display:none}
#chatTabs [data-tab=all] i{min-width:8px;width:8px;height:8px;padding:0;top:-3px;right:-3px;font-size:0}   /* the shared chat: only a dot */
#chatTabs [data-tab=cl] i{background:var(--ch-cl);color:#062311}
#chatTabs [data-tab=wh] i{background:var(--ch-wh);color:#2a0620}
#chatTabs button.ping{animation:chPing .9s ease-out 2}
@keyframes chPing{0%{box-shadow:0 0 0 0 #ff8ad8b0}100%{box-shadow:0 0 0 9px #ff8ad800}}
#chatLog[data-tab=cl] .cl:not(.ch-cl),#chatLog[data-tab=wh] .cl:not(.ch-wh){display:none}
#chatLog[data-tab=cl] .chtag,#chatLog[data-tab=wh] .chtag{display:none}
#chatLog .cl.ch-cl{color:#d2f7da;border-left:2px solid var(--ch-cl);padding-left:6px;margin-left:-2px}
#chatLog .cl.ch-cl b{color:var(--ch-cl)}
#chatLog .cl.ch-cl.sys{color:#9fdcae;font-style:italic}
#chatLog .cl.ch-wh,#chatLog .cl.w.ch-wh{color:#ffd6f2;border-left:2px solid var(--ch-wh);padding-left:6px;margin-left:-2px}
#chatLog .cl.ch-wh b,#chatLog .cl.w.ch-wh b{color:var(--ch-wh)}
#chatLog .cl.ch-cl.me b{color:var(--ember2)}
#chatLog .chtag{display:inline-block;font:800 9px/1 var(--f-ui);letter-spacing:.07em;text-transform:uppercase;padding:2px 4px 1px;margin-right:5px;vertical-align:1px;border-radius:3px;background:#0009;text-shadow:none}
#chatLog .ch-cl .chtag{color:var(--ch-cl);box-shadow:inset 0 0 0 1px #6fe08a70}
#chatLog .ch-wh .chtag{color:var(--ch-wh);box-shadow:inset 0 0 0 1px #ff8ad870}
#chatLog b[data-n]{cursor:pointer;border-radius:2px}
#chatLog b[data-n]:hover{text-decoration:underline;text-underline-offset:2px}
#chatCh{flex:none;max-width:112px;overflow:hidden;text-overflow:ellipsis;padding:4px 7px;font-size:11px;color:var(--chc,var(--ink))}
#chatCh[hidden]{display:none}
#chatRow{--chc:var(--ink)}
#chatRow.ch-cl{--chc:var(--ch-cl)}
#chatRow.ch-wh{--chc:var(--ch-wh)}
#chatRow.ch-cl #chatIn,#chatRow.ch-wh #chatIn{color:var(--chc);caret-color:var(--chc)}
#chatRow.ch-cl #chatIn::placeholder{color:#6fe08a99}
#chatRow.ch-wh #chatIn::placeholder{color:#ff8ad899}
#chatChMenu{pointer-events:auto;align-self:flex-start;display:flex;flex-direction:column;gap:1px;padding:4px;min-width:170px;max-width:240px}
#chatChMenu[hidden]{display:none}
#chatChMenu button{display:flex;align-items:center;gap:7px;background:none;border:0;text-align:left;padding:6px 8px;font:600 12px var(--f-ui);color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#chatChMenu button:hover{background:#ffffff12}
#chatChMenu button.on{background:#ffffff0d;color:var(--ember2)}
#chatChMenu small{color:var(--dim);padding:3px 8px 1px;font:700 9px var(--f-ui);letter-spacing:.07em;text-transform:uppercase}
#chatChMenu button small{padding:0;text-transform:none;letter-spacing:0;font-size:11px}
#chatChMenu .sep{height:1px;background:var(--line);margin:3px 2px}
#chatChMenu .dot{flex:none;width:8px;height:8px;border-radius:50%;background:var(--ch-all)}
#chatChMenu .dot.cl{background:var(--ch-cl)}#chatChMenu .dot.wh{background:var(--ch-wh)}
/* the menu on another hero: the buttons two to a row */
#ctx .cbtns{display:grid;grid-template-columns:1fr 1fr;gap:3px;margin-top:4px}
#ctx .cbtns .btn{padding:5px 6px;font-size:12px;white-space:normal;line-height:1.15}
#ctx .cbtns .wide{grid-column:1/-1}
#ctx .cbtns .bad{color:var(--bad);border-color:var(--bad)}
#ctx .cbtns .warn{color:#ffb36b}
#ctx .cbtns .dim{color:var(--dim)}
/* the ignore list under the friends */
.igbox{margin-top:14px;padding-top:10px;border-top:1px solid var(--line)}
.igbox h3{margin:0 0 4px}.igbox h3 small{color:var(--dim);font:500 12px var(--f-ui);margin-left:6px}
.igbox p{margin:0 0 6px;color:var(--dim)}
.iglist{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:4px}
.iglist>div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 4px 4px 8px;background:#110c0880;border:1px solid var(--line)}
.iglist .btn{padding:3px 8px;font-size:11px}
@media (orientation:landscape) and (max-height:500px),(orientation:portrait) and (max-width:500px){
  #chatTabs{display:none!important}
  #chat:focus-within #chatTabs:not([hidden]){display:flex!important}
  #chatTabs button{padding:3px 7px 2px;font-size:9px}
  #chat:not(:focus-within) #chatCh{display:none!important}
}
