:root { --gold:#d9b45a; --ink:#e8dfc8; --bg:#1b1713; --panel:rgba(30,24,18,.92); --edge:#6b5530; --red:#a33; --green:#3a8a3a; --blue:#3a6ac8; }
* { box-sizing: border-box; }
html, body { margin:0; height:100%; overflow:hidden; background:#10100e; color:var(--ink); font-family: Georgia, 'Times New Roman', serif; user-select:none; }
#view { position:fixed; inset:0; width:100%; height:100%; display:block; }
.hidden { display:none !important; }
.screen { position:fixed; inset:0; pointer-events:none; }
.panel { background:var(--panel); border:1px solid var(--edge); box-shadow:0 0 0 2px #000, 0 8px 30px rgba(0,0,0,.6); padding:18px 22px; pointer-events:auto; border-radius:3px; }
.panel.center { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:340px; }
.panel.left { position:absolute; left:24px; top:24px; bottom:24px; width:300px; overflow:auto; }
.panel.right { position:absolute; right:24px; top:24px; bottom:24px; width:420px; overflow:auto; }
.panel.bottom { position:absolute; left:50%; bottom:24px; transform:translateX(-50%); display:flex; gap:14px; align-items:center; }
h1 { margin:0; color:var(--gold); letter-spacing:3px; text-align:center; font-size:34px; text-shadow:0 2px 0 #000; }
h2 { margin:0 0 10px; color:var(--gold); font-size:20px; }
.sub { text-align:center; color:#a89c7c; margin-bottom:14px; font-style:italic; }
label { display:block; margin:8px 0; font-size:14px; color:#cdbf9a; }
input, select { width:100%; background:#0f0c09; border:1px solid var(--edge); color:var(--ink); padding:7px 9px; font:inherit; margin-top:3px; border-radius:2px; user-select:text; }
button { background:#2a2118; color:var(--ink); border:1px solid var(--edge); padding:7px 14px; font:inherit; cursor:pointer; border-radius:2px; }
button:hover { background:#3a2e20; } button:disabled { opacity:.4; cursor:default; }
button.primary { background:#5a3d14; border-color:var(--gold); color:#fff1c8; } button.primary:hover { background:#7a5220; }
button.danger { background:#4a1c1c; border-color:#a44; } button.link { background:none; border:none; color:#a89c7c; text-decoration:underline; margin-top:8px; padding:0; }
.row { display:flex; gap:10px; margin-top:12px; } .msg { min-height:20px; margin-top:8px; color:#e07a5a; font-size:14px; } .hint { color:#8d8266; font-size:12px; margin-top:10px; }
.label { margin:12px 0 4px; font-size:13px; color:#cdbf9a; text-transform:uppercase; letter-spacing:1px; }
.chips { display:flex; flex-wrap:wrap; gap:6px; } .chip { padding:5px 10px; border:1px solid var(--edge); background:#201912; cursor:pointer; border-radius:2px; font-size:14px; }
.chip.sel { background:#5a3d14; border-color:var(--gold); color:#fff1c8; } .chip.off { opacity:.3; cursor:not-allowed; } .lore { margin-top:10px; font-size:13px; color:#a89c7c; font-style:italic; min-height:40px; }
.charRow { display:flex; align-items:center; gap:10px; padding:8px; border:1px solid transparent; cursor:pointer; border-radius:2px; } .charRow:hover { background:#2a2118; } .charRow.sel { border-color:var(--gold); background:#2f2417; }
.swatch { width:30px; height:30px; border-radius:50%; border:2px solid #000; flex:none; } .cn { font-size:16px; } .cs { font-size:12px; color:#a89c7c; }
/* HUD */
#hud { position:fixed; inset:0; pointer-events:none; font-size:14px; } #hud > * { pointer-events:auto; } #hud #floaters, #hud #prompt:not(.tap), #hud #zoneName, #hud #death, #hud #castBar { pointer-events:none; }
.frame { position:absolute; width:230px; background:var(--panel); border:1px solid var(--edge); padding:6px 8px; border-radius:3px; } #playerFrame { left:16px; top:16px; } #targetFrame { left:260px; top:16px; }
#tName { white-space:nowrap; overflow:hidden; } .nm { font-size:14px; margin-bottom:3px; color:var(--gold); } .bar { position:relative; height:16px; background:#000; border:1px solid #000; margin-top:3px; } .bar i { display:block; height:100%; width:50%; background:#3a8a3a; } .bar.xp { height:9px; } .bar.xp i { background:#7a4cc8; }
.bar span { position:absolute; inset:0; text-align:center; font-size:11px; line-height:16px; text-shadow:0 0 3px #000; } .bar.xp span { line-height:9px; font-size:8px; } #targetFrame .bar.hp i { background:#a33; }
.buffs { display:flex; gap:3px; margin-top:4px; flex-wrap:wrap; } .buffs b { font-size:10px; padding:1px 4px; background:#24331f; border:1px solid #4a6a3a; border-radius:2px; font-weight:normal; }
#minimap { position:absolute; right:16px; top:16px; border:2px solid var(--edge); border-radius:50%; background:rgba(0,0,0,.4); } #zoneName { position:absolute; right:16px; top:176px; width:150px; text-align:center; color:var(--gold); text-shadow:0 1px 2px #000; font-size:13px; }
#hotbar { position:absolute; left:50%; bottom:14px; transform:translateX(-50%); display:flex; gap:4px; } .slot { position:relative; width:54px; height:54px; background:rgba(20,16,12,.92); border:1px solid var(--edge); border-radius:3px; cursor:pointer; font-size:10px; text-align:center; overflow:hidden; }
.slot .k { position:absolute; left:3px; top:1px; font-size:11px; color:var(--gold); } .slot .sn { position:absolute; left:2px; right:2px; bottom:12px; line-height:11px; } .slot .cdv { position:absolute; left:0; right:0; top:0; background:rgba(0,0,0,.65); } .slot .ct { position:absolute; inset:0; line-height:54px; font-size:16px; text-shadow:0 0 3px #000; }
.slot.empty { opacity:.45; } .slot.active { border-color:var(--gold); }
#castBar { position:absolute; left:50%; bottom:86px; transform:translateX(-50%); width:260px; height:18px; background:#000; border:1px solid var(--edge); } #castFill { display:block; height:100%; background:#c89a2a; width:0; } #castText { position:absolute; inset:0; text-align:center; font-size:12px; line-height:18px; }
#log { position:absolute; left:16px; bottom:42px; width:340px; height:150px; overflow-y:auto; overflow-x:hidden; background:rgba(0,0,0,.35); padding:6px 8px; font-size:12px; line-height:15px; border-radius:3px; display:flex; flex-direction:column; pointer-events:auto; scrollbar-width:thin; }
#log > :first-child { margin-top:auto; }   /* short logs sit at the bottom, long ones scroll */
#log:hover { background:rgba(0,0,0,.5); }
#log div.dealt { color:#e8e0b0; } #log div.taken { color:#e07a5a; } #log div.loot { color:#e5c75a; } #log div.levelup { color:#7ae07a; font-weight:bold; } #log div.heal { color:#7ad0e0; } #log div.warn { color:#c8a060; } #log div.system { color:#9ab8e8; }
#prompt { position:absolute; left:50%; top:62%; transform:translateX(-50%); background:rgba(0,0,0,.6); padding:6px 14px; border-radius:3px; color:var(--gold); }
#death { position:absolute; inset:0; background:rgba(60,0,0,.35); display:flex; align-items:center; justify-content:center; text-align:center; font-size:46px; color:#e8c0c0; text-shadow:0 3px 6px #000; }
#goldBox { position:absolute; right:68px; bottom:14px; color:var(--gold); background:rgba(0,0,0,.5); padding:3px 9px; border-radius:3px; }
.fl { position:absolute; font-weight:bold; font-size:18px; text-shadow:0 0 3px #000, 0 0 3px #000; transform:translate(-50%,-50%); white-space:nowrap; } .fl.lvl { color:#ffe680; font-size:28px; letter-spacing:1px; text-shadow:0 0 8px #ffb000, 0 0 3px #000; } .fl.dmg { color:#fff2b0; } .fl.hurt { color:#ff6a5a; } .fl.heal { color:#7affb0; } .fl.xp { color:#c89aff; font-size:15px; } .fl.lvl { color:#7aff7a; font-size:28px; }
.win { position:absolute; background:var(--panel); border:1px solid var(--edge); border-radius:3px; padding:10px 12px; width:340px; max-height:70vh; overflow:auto; box-shadow:0 0 0 2px #000; } #winBags { left:50%; top:90px; margin-left:-360px; } #winSkills { left:50%; top:90px; margin-left:10px; } #winDialog { left:50%; top:90px; margin-left:-170px; width:400px; } #winHelp { left:50%; top:90px; margin-left:-200px; width:400px; }
.wt { color:var(--gold); font-size:16px; margin-bottom:8px; display:flex; justify-content:space-between; } .wt a { cursor:pointer; color:#a89c7c; }
.item, .sk { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:5px 6px; border-bottom:1px solid #2b2318; cursor:pointer; } .item:hover, .sk:hover { background:#2a2118; } .item small, .sk small { color:#a89c7c; display:block; } .price { color:var(--gold); white-space:nowrap; }
.eqrow { color:#cdbf9a; font-size:13px; margin-bottom:4px; } ul { padding-left:18px; margin:6px 0; line-height:1.5; }
.slotbtns button { padding:1px 6px; font-size:11px; margin-left:2px; }

.tone{width:26px;height:26px;border-radius:50%;border:2px solid #3a3026;cursor:pointer;display:inline-block;margin:2px}.tone.sel{border-color:#d9b45a;box-shadow:0 0 6px #d9b45a}

.bar.mp i{background:#3a6ad8}.bar.sp i{background:#c8a02a}.bar.mp,.bar.sp{height:12px}.bar.mp span,.bar.sp span{line-height:12px;font-size:9px}.stance{font-size:11px;color:#e8d890;min-height:14px}.statrow{display:flex;justify-content:space-between;align-items:center;padding:3px 0}.statrow button{margin-left:6px}

#winStats{left:20px;top:60px}#winEquip{left:380px;top:60px}#winBags{left:740px;top:60px;margin-left:0}#winSkills{left:20px;top:420px;margin-left:0;max-height:300px}#winFocus{left:380px;top:420px;max-height:300px}#winDialog{left:50%;top:90px;margin-left:-170px}.wt{cursor:move;user-select:none}

#buffBar{position:absolute;left:16px;top:118px;display:flex;gap:4px;flex-wrap:wrap;max-width:300px;pointer-events:auto}
#buffBar .buff{position:relative;width:34px;height:34px;border:1px solid var(--edge);background:#000}
#buffBar .buff img{width:100%;height:100%;display:block}
#buffBar .buff .bt{position:absolute;right:1px;bottom:0;font-size:10px;color:#fff;text-shadow:0 0 3px #000,0 0 3px #000}
.slot .ic{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.9}
.slot .k{z-index:2;text-shadow:0 0 3px #000} .slot .ct,.slot .cdv{z-index:2}
.slot.queued{outline:2px solid #6cf;box-shadow:0 0 8px #6cf}
.sk .pic{width:36px;height:36px;margin-right:8px;float:left}
#statBox .statrow button{margin-left:4px;min-width:26px}
.panel.right{max-height:calc(100vh - 48px);overflow-y:auto}
#statBox .statrow{padding:2px 0}
#hotbar{bottom:58px !important} #castBar{bottom:130px !important}

#buffBar{left:50%!important;top:8px!important;transform:translateX(-50%);max-width:70vw;justify-content:center;min-height:0}
#buffBar .buff{width:40px;height:40px}
.slot .qn{position:absolute;right:3px;top:1px;z-index:3;font-size:12px;font-weight:bold;color:#9df;text-shadow:0 0 3px #000}

.sk .rk{font-size:11px;color:var(--gold);margin-left:6px}
.sk small div{margin-top:2px}
.sk .rankup{min-width:60px}

#partyFrame { position:absolute; left:16px; top:150px; width:200px; } #partyFrame .pm { background:var(--panel); border:1px solid var(--edge); padding:4px 8px; margin-bottom:4px; border-radius:3px; } #partyFrame .pm.far { opacity:.55; } #partyFrame .nm { font-size:12px; } #partyFrame .bar { position:relative; height:10px; background:#300; } #partyFrame .bar i { display:block; height:100%; background:#3c3; } #partyFrame .bar span { position:absolute; inset:0; font-size:9px; text-align:center; line-height:10px; }
#invBox { position:absolute; left:50%; top:30%; transform:translateX(-50%); background:rgba(0,0,0,.8); border:1px solid var(--edge); padding:10px 16px; border-radius:3px; color:var(--gold); text-align:center; } #invBox button { margin:6px 4px 0; }
#winGroup { left:300px; top:90px; width:340px; } #winGroup label { cursor:pointer; }

#chatIn { position:absolute; left:16px; bottom:14px; width:340px; box-sizing:border-box; height:24px; background:rgba(0,0,0,.55); border:1px solid var(--edge); color:#fff; font-size:12px; padding:2px 6px; border-radius:3px; pointer-events:auto; }
#log div.chat-say { color:#ffffff; } #log div.chat-yell { color:#ff9a5a; } #log div.chat-group { color:#6fd0ff; } #log div.chat-whisper { color:#e08aff; }

#tName .pips.ico { font-size:15px; letter-spacing:0; line-height:14px; color:#ddd; }
#tName .pips { font-size:10px; letter-spacing:2px; line-height:10px; }

#partyFrame .pm { cursor:pointer; }

#eqList.doll { display:grid; grid-template-columns: repeat(3, 66px) 18px 66px; grid-auto-rows: 66px; gap:6px; justify-content:center; padding:8px 0; background:radial-gradient(ellipse at 38% 50%, rgba(80,70,50,.35), transparent 70%); }
.dslot { position:relative; border:2px dashed #5a4e34; border-radius:6px; background:rgba(0,0,0,.35); display:flex; flex-direction:column; align-items:center; justify-content:center; cursor:default; overflow:hidden; }
.dslot.off { opacity:.5; } .dslot.full { border-style:solid; cursor:pointer; box-shadow:0 0 8px rgba(232,200,96,.45), inset 0 0 6px rgba(255,255,255,.25); } .dslot.covered { box-shadow:inset 0 0 6px rgba(255,255,255,.2); cursor:pointer; }
.dslot .dl { position:absolute; bottom:2px; font-size:9px; color:#8a7c5a; } .dslot .dn { position:absolute; bottom:1px; left:2px; right:2px; font-size:9px; line-height:10px; text-align:center; color:#fff; text-shadow:0 0 3px #000, 0 0 3px #000; max-height:20px; overflow:hidden; }
.dslot.full:hover { border-color:#fff; } #winEquip { width:380px; }

.hbnav{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;margin-left:4px}.hbnav button{background:rgba(20,16,12,.92);color:#d9b45a;border:1px solid var(--edge);border-radius:3px;width:22px;height:20px;font-size:10px;cursor:pointer;padding:0}.hbnav span{color:#d9b45a;font-size:13px;font-weight:bold}.otherbars{font-size:10px;color:#9a8c6a;align-self:center}
#hotbar .slot{width:48px;height:48px}
#buffBar .buff.debuff{border-color:#c0392b;box-shadow:0 0 4px #c0392b inset}
#buffTip{display:none;position:fixed;z-index:50;pointer-events:none;min-width:130px;max-width:230px;background:rgba(14,11,8,.96);border:1px solid var(--edge);border-radius:3px;padding:5px 8px;font-size:12px;color:#e8dcc0}#buffTip b{color:#e8c860;display:block;margin-bottom:2px}#buffTip div:last-child{color:#9a8c6a;margin-top:2px}

.goldSlot { margin:6px 0; padding:4px 10px; border:1px solid #8a7a3a; border-radius:6px; background:rgba(0,0,0,.35); color:var(--gold); font-size:13px; } .goldSlot b { color:#f2d56a; }

#winMap { left:50%; top:40px; margin-left:-250px; width:480px; } #mapCv { display:block; background:#2c3a22; border:1px solid var(--edge); border-radius:3px; }
#winMap { max-height:92vh; top:20px; }

#winSkills .mini { float:right; margin:-2px 8px 0 0; padding:1px 8px; font-size:11px; } #winSkills.compact { width:auto; max-width:330px; } #skillList.grid { display:flex; flex-wrap:wrap; gap:6px; }
.skIcon { width:46px; height:46px; border:1px solid #6a5a3a; border-radius:4px; background:#1a1710 center/cover no-repeat; cursor:pointer; } .skIcon:hover { border-color:#e8c860; } .skIcon img { width:100%; height:100%; display:block; }
#skTip { position:fixed; z-index:99; pointer-events:none; max-width:300px; background:rgba(10,8,4,.95); border:1px solid #8a7a3a; border-radius:4px; padding:6px 9px; color:#e8dcc0; font-size:12px; white-space:pre-line; } .sk .pic { cursor:pointer; }
#winSkills.compact > .hint { display:none; }

.popbox { position:absolute; background:rgba(0,0,0,.82); border:1px solid var(--edge); padding:8px 12px; border-radius:3px; color:var(--gold); z-index:40; } .popbox.hidden, .popwin.hidden { display:none; }
#summBox, #tradeReq { left:50%; top:24%; transform:translateX(-50%); text-align:center; } #tradeReq { top:34%; } .petframe { left:230px; top:100px; width:200px; } .petframe .pnm { font-size:12px; margin-bottom:3px; } .pbtns { display:flex; gap:4px; margin-top:6px; flex-wrap:wrap; } .pbtns button { flex:1; font-size:11px; }
.popwin { position:absolute; z-index:45; } .trcols { display:flex; gap:12px; } .trcols > div { flex:1; min-height:90px; } .trbag { margin-top:8px; max-height:160px; overflow:auto; } .popwin .item.sel { outline:1px solid var(--gold); }
.traits { display:flex; flex-wrap:wrap; gap:5px; margin-bottom:6px; } .chip.trait { font-size:12px; padding:3px 7px; } .chip.trait small { color:#d8b878; margin-left:4px; }
.chip.trait.unmet { border-color:#b03a2a; opacity:.55; } .chip.trait.poor { opacity:.5; } .chip.trait.sel small { color:#fff1c8; }

#gInvBox { position:absolute; left:50%; top:22%; transform:translateX(-50%); background:rgba(0,0,0,.85); border:1px solid var(--edge); padding:10px 16px; border-radius:3px; color:var(--gold); text-align:center; z-index:30; }
#winGuild { width:430px; max-height:80vh; overflow:auto; } #guildBody .gr { display:flex; align-items:center; gap:6px; padding:3px 0; border-bottom:1px solid #2a2218; } #guildBody .gr .gn { flex:1; } #guildBody .gr small { color:#a89a78; }
#guildBody .on { color:#7dffa0; } #guildBody .off { color:#6a6050; } #guildBody button { padding:1px 7px; } #guildBody .sec { margin-top:10px; color:var(--gold); font-variant:small-caps; letter-spacing:1px; } #guildBody select, #guildBody input[type=text], #guildBody input[type=number] { background:#120e08; color:#e8dcc0; border:1px solid var(--edge); padding:2px 4px; }
.mag { color: #6ab4ff; font-weight: 600; }

#winTrack { left:300px; top:90px; width:330px; } #winTrack .trow { display:flex; justify-content:space-between; gap:8px; padding:3px 6px; cursor:pointer; border:1px solid transparent; border-radius:2px; } #winTrack .trow:hover { background:rgba(255,255,255,.06); } #winTrack .trow.sel { border-color:var(--edge); background:rgba(255,255,255,.1); } #winTrack .trow small { opacity:.75; }
#trkBar { position:absolute; left:50%; bottom:156px; transform:translateX(-50%); width:260px; height:18px; background:#000; border:1px solid var(--edge); pointer-events:none; } #trkFill { display:block; height:100%; background:#e08a2a; width:0; } #trkText { position:absolute; inset:0; text-align:center; font-size:12px; line-height:18px; color:#fff; text-shadow:0 0 3px #000; }
#stunBar { position:absolute; left:50%; top:30%; transform:translateX(-50%); font:bold 26px Georgia; color:#ffd24a; text-shadow:0 0 6px #000, 0 0 12px #a60; pointer-events:none; }
#log div.chat-guild { color:#7fe08a; } #log div.chat-nation { color:#f0d060; } #log div.chat-trade { color:#e8a860; } #log div.chat-class { color:#d0a0ff; }

#worldMap { position:fixed; inset:0; z-index:60; background:#241820; display:flex; flex-direction:column; } #worldMap.hidden { display:none; }
#wmBar { height:44px; box-sizing:border-box; display:flex; align-items:center; gap:14px; padding:0 14px; background:#1b1713; border-bottom:2px solid var(--edge); color:var(--ink); font-family:Georgia,serif; } #wmBar b { color:var(--gold); font-size:18px; } #wmBar input[type=number] { width:48px; display:inline-block; margin:0; padding:3px 5px; } #wmBar input[type=checkbox] { width:auto; margin:0 4px 0 0; } #wmBar .hint { margin:0 0 0 auto; opacity:.75; } #wmClose { cursor:pointer; color:var(--gold); border:1px solid var(--edge); padding:3px 10px; border-radius:2px; }
#wmCv { display:block; cursor:grab; } #wmTip { position:fixed; max-width:320px; background:rgba(24,16,22,.96); border:1px solid var(--gold); color:#f1e6c8; padding:9px 12px; font:15px/1.45 Georgia,serif; border-radius:3px; pointer-events:none; z-index:70; box-shadow:0 4px 18px #000a; } #wmTip b { color:var(--gold); font-size:15px; } #wmTip .lv { color:#9fd0ff; margin:2px 0 5px; } #wmTip.hidden { display:none; }

#log, #chatIn { z-index:65; }   /* the chat stays above the full-screen world map so dev commands can be typed with it open */
#gps { position:absolute; right:16px; top:238px; width:150px; text-align:center; color:#cfe6ff; text-shadow:0 1px 2px #000; font-size:12px; font-family:Consolas,monospace; pointer-events:none; }
#wmFilters { position:absolute; top:46px; left:300px; z-index:5; background:rgba(24,16,22,.96); border:1px solid var(--gold); color:#f1e6c8; padding:10px 14px; font:14px/1.9 Georgia,serif; border-radius:3px; box-shadow:0 4px 18px #000a; } #wmFilters.hidden { display:none; } #wmFilters label { display:block; cursor:pointer; } #wmFilters .rk label { display:inline-block; margin-right:6px; } #wmFilters input { width:auto; margin:0 5px 0 0; }

/* the forum is a window, not a modal: the backdrop lets clicks through so other menus (character creation, game windows) stay usable; Dock moves it left/right/centre */
#forum { position:fixed; inset:0; z-index:200; pointer-events:none; display:flex; justify-content:flex-start; align-items:flex-start; padding:3vh 12px; user-select:text; } #forum.dr { justify-content:flex-end; } #forum.dc { justify-content:center; background:rgba(0,0,0,.6); pointer-events:auto; }
#forum .fwrap { pointer-events:auto; width:min(900px,100%); max-height:94vh; display:flex; flex-direction:column; background:var(--panel); border:1px solid var(--edge); box-shadow:0 0 0 2px #000,0 8px 30px rgba(0,0,0,.6); border-radius:3px; padding:12px 16px; }
#forum .fhead { display:flex; gap:8px; align-items:center; margin-bottom:8px; } #forum .fhead b { color:var(--gold); font-size:20px; margin-right:10px; } #forum .fsp { flex:1; }
#fTabs button.on { background:#5a3d14; border-color:var(--gold); color:#fff1c8; }
#forum .ffil { display:flex; gap:14px; align-items:center; margin-bottom:8px; flex-wrap:wrap; } #forum .ffil label { margin:0; display:flex; gap:6px; align-items:center; } #forum .ffil select { width:auto; margin:0; }
#fBody { overflow:auto; flex:1; min-height:200px; }
.fp { display:flex; gap:10px; align-items:center; padding:7px 8px; border-bottom:1px solid #3a2e20; cursor:pointer; } .fp:hover { background:#2a2118; }
.fv { min-width:46px; text-align:center; border:1px solid var(--edge); border-radius:3px; padding:3px 4px; background:#17130e; } .fv.on { border-color:var(--gold); color:var(--gold); } .fv b { display:block; font-size:16px; }
.fm { flex:1; min-width:0; } .fm .tt { color:#f0e4c0; } .fm .sb { font-size:12px; color:#a89c7c; }
.st { display:inline-block; font-size:11px; padding:1px 7px; border-radius:9px; border:1px solid #6b5530; margin-right:6px; } .st.open { color:#cdbf9a; } .st.approved { color:#e8d070; border-color:#a89030; } .st.investigating { color:#7ac8f0; border-color:#3a7aa8; } .st.planned { color:#b090f0; border-color:#7a5ab8; } .st.fixed { color:#80e080; border-color:#3a8a3a; } .st.declined, .st.duplicate { color:#a08080; border-color:#7a4a4a; }
.fadm { color:#e8c060; font-size:11px; margin-left:4px; }
#fBody .pb { white-space:pre-wrap; background:#17130e; border:1px solid #3a2e20; padding:10px; margin:8px 0; } #fBody .ctx { font:12px monospace; background:#0f0c09; border:1px solid #3a2e20; padding:8px; margin:8px 0; white-space:pre-wrap; max-height:220px; overflow:auto; }
#fBody .cm { border-left:3px solid #3a2e20; padding:4px 10px; margin:6px 0; } #fBody textarea { width:100%; min-height:110px; background:#0f0c09; border:1px solid var(--edge); color:var(--ink); padding:7px 9px; font:inherit; resize:vertical; user-select:text; }
#fBody .row2 { display:flex; gap:8px; align-items:center; margin:8px 0; flex-wrap:wrap; } #fBody .err { color:#e88; margin:6px 0; } #fBody .ok { color:#8ad88a; margin:6px 0; }
#devHint.hidden { display:none; }

.rec { color: #e6be3c; font-weight: bold; cursor: help; }

#winLoot { left:50%; top:30%; width:300px; }
#lootGrid { display:grid; grid-template-columns:repeat(5,52px); gap:6px; margin:8px 0; }
.lootIt { width:52px; height:52px; border:2px solid #8a7a4a; border-radius:4px; display:flex; align-items:center; justify-content:center; cursor:pointer; position:relative; font-size:11px; color:#fff; text-shadow:0 0 3px #000; text-align:center; line-height:1.05; overflow:hidden; }
.lootIt:hover { border-color:#e8c860; } .lootIt.mag { border-color:#6aa8ff; } .lootIt.purse { background:radial-gradient(circle at 35% 30%,#f5d76e,#8a6a1a); }
.lootBtns { text-align:right; } .lootBtns button { padding:3px 10px; } #lootTitle.steal { color:#ff9a6a; }

/* UI size (toolbar A-/A+): scales the panels and bars but not the 3D view or the floating combat text */
:root { --ui: 1; }
.win, #toolbar, #log, #chatIn, #playerFrame, #targetFrame, #partyFrame, #hotbar, #buffBar, #goldBox, #gps, #castBar, #winDialog { zoom: var(--ui); }

/* new-player tips */
#tipBox { position:absolute; left:50%; top:70px; transform:translateX(-50%); width:min(460px, 86vw); background:rgba(24,18,12,.94); border:1px solid var(--gold); border-radius:4px; padding:10px 14px; box-shadow:0 0 0 2px #000, 0 4px 18px rgba(0,0,0,.6); z-index:60; zoom: var(--ui); }
#tipBox.hidden { display:none; } #tipBox .tt { color:var(--gold); font-weight:bold; margin-bottom:4px; } #tipBox .tb { line-height:1.4; } #tipBox .ta { margin-top:8px; display:flex; gap:8px; justify-content:flex-end; } #tipBox button { cursor:pointer; }

/* server announcements (shutdown countdown): bold text across the top, no box, see-through, and clicks pass straight through to the game */
#announce { position:fixed; left:0; right:0; top:8px; z-index:9999; text-align:center; pointer-events:none; user-select:none; font:800 24px/1.25 system-ui, sans-serif; letter-spacing:.3px; color:#fff1c8; opacity:.72; text-shadow:0 1px 4px rgba(0,0,0,.9), 0 0 10px rgba(0,0,0,.6); padding:0 12px; }
#announce:empty { display:none; }
#announce.urgent { color:#ffb0a0; }
@media (max-width:640px) { #announce { font-size:17px; } }

#winWhois { left:340px; top:70px; width:360px; } #whoisBody .wrow { display:flex; gap:6px; } #whoisBody .wrow input { flex:1; } #whoisBody .wres { margin:8px 0; line-height:1.5; } #whoisBody .wres b { color:var(--gold); } #whoisBody .tag { display:inline-block; padding:0 6px; margin-right:4px; border:1px solid #6a5a3a; border-radius:8px; color:#e8d49a; font-size:12px; }
#whoisBody .wpl { color:#a89a78; font-size:12px; margin-top:6px; } #whoisBody .wadm { margin-top:10px; border-top:1px solid #3a2f20; padding-top:6px; } #whoisBody .wadm .ar { display:flex; gap:6px; font-size:12px; padding:2px 0; border-bottom:1px solid #2a2218; } #whoisBody .wadm .ar span:first-child { flex:1; } #whoisBody .wadm .ar .on { color:#7ad87a; }

/* nation (left) and guild (right) flags in the target frame */
.tflag { display:inline-block; width:18px; height:21px; vertical-align:-5px; margin:0 3px; }
/* a request of yours was approved / implemented / declined: a toast near the top, click to open the forum */
#noteBox { position:fixed; left:50%; top:46px; transform:translateX(-50%); z-index:9000; max-width:min(520px, 88vw); padding:8px 14px; background:rgba(24,18,12,.94); border:1px solid #b89a4a; border-radius:3px; color:#f2e6c4; cursor:pointer; line-height:1.4; box-shadow:0 0 0 2px #000; }
#noteBox.hidden { display:none; } #noteBox small { display:block; color:#a89a78; margin-top:2px; }

#forum.dl .fwrap, #forum.dr .fwrap { width:min(520px,100%); }

/* ---- phones and tablets ----
   The menu button replaces the toolbar on small screens; in landscape (short screens) everything else shrinks and moves to the edges so the world stays visible. */
#hud { inset: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }   /* clear of notches and rounded corners */
/* the gear menu: a gear button bottom right opens a panel with a top level and one sub-menu per category (Esc toggles it) */
#btnMenu { display:block; position:absolute; right:16px; bottom:10px; width:46px; height:40px; font-size:24px; line-height:1; background:rgba(20,16,12,.92); color:var(--gold); border:1px solid var(--edge); border-radius:4px; z-index:71; cursor:pointer; } #btnMenu.on { border-color:var(--gold); background:rgba(60,44,20,.96); }
#toolbar { display:none; position:absolute; right:16px; bottom:56px; width:230px; padding:6px; background:rgba(14,11,8,.96); border:1px solid var(--edge); border-radius:4px; z-index:70; max-height:calc(100vh - 70px); overflow-y:auto; box-shadow:0 0 0 2px #000; }
#toolbar.open { display:block; } #toolbar .mtop, #toolbar .msub { display:flex; flex-direction:column; gap:4px; } #toolbar .hidden { display:none; }
#toolbar button { width:100%; text-align:left; min-height:32px; padding:4px 10px; } #toolbar .mcat { display:flex; justify-content:space-between; } #toolbar .mback { color:var(--gold); } #toolbar #btnLeave { margin-top:6px; }
#toolbar .mtitle { color:var(--gold); font-weight:bold; padding:2px 4px 4px; border-bottom:1px solid #3a2f20; margin-bottom:2px; } #toolbar .mtitle small { color:#8a7c5a; font-weight:normal; }
@media (max-width:700px), (max-height:520px) {
  #btnMenu { right:8px; bottom:8px; } #toolbar { right:8px; bottom:56px; width:min(260px, calc(100vw - 16px)); } #toolbar button { min-height:38px; }
  #goldBox { right:62px; bottom:12px; padding:2px 8px; font-size:12px; }
  #hud #hotbar { bottom:8px !important; } #hud #hotbar .slot { width:min(48px, calc((100vw - 140px) / 10)); height:min(48px, calc((100vw - 140px) / 10)); } #hud #hotbar .slot .ct { line-height:normal; }
  #hud #castBar { bottom:64px !important; width:min(260px, 60vw); }
  #hud .win, #winDialog { left:8px !important; top:8px !important; margin-left:0 !important; width:min(420px, calc(100vw - 16px)) !important; max-height:calc(100vh - 16px); }
  #tipBox { top:48px; font-size:12px; padding:8px 10px; } #tipBox .ta button { min-height:30px; }
  .win a[data-close] { display:inline-block; min-width:30px; text-align:center; padding:2px 6px; }
}
/* portrait phone: the hotbar becomes two rows of five big slots, with the chat input and log stacked above it */
@media (max-width:700px) and (orientation:portrait) {
  #hud #hotbar { display:grid; grid-template-columns:repeat(5, calc((100vw - 140px) / 5)) auto; gap:4px; left:8px; transform:none; bottom:8px !important; align-items:center; }
  #hud #hotbar .slot { width:calc((100vw - 140px) / 5); height:calc((100vw - 140px) / 5); } #hud #hotbar .hbnav { grid-column:6; grid-row:1 / span 2; }
  #chatIn { left:8px; right:8px; width:auto; bottom:calc(8px + 2 * (100vw - 140px) / 5 + 12px); } #log { left:8px; right:8px; width:auto; bottom:calc(8px + 2 * (100vw - 140px) / 5 + 42px); height:84px; }
  #hud #castBar { bottom:calc(8px + 2 * (100vw - 140px) / 5 + 160px) !important; }
  #hud .win, #winDialog { top:56px !important; max-height:calc(100vh - 150px); }
  #playerFrame { width:200px; left:8px; top:8px; } #targetFrame { left:8px; top:128px; width:200px; } #minimap { right:8px; top:8px; width:110px; height:110px; } #zoneName { right:8px; top:122px; width:110px; font-size:11px; } #gps { display:none; }
}
/* landscape phone */
@media (max-height:520px) and (orientation:landscape) {
  .frame { width:172px; padding:3px 6px; } #playerFrame { left:8px; top:8px; } #targetFrame { left:188px; top:8px; width:150px; } .nm { font-size:12px; margin-bottom:1px; }
  .bar { height:12px; margin-top:2px; } .bar span { font-size:9px; line-height:12px; } .bar.xp { height:6px; } #playerFrame small, #playerFrame .hint { display:none; }
  #minimap { right:8px; top:8px; width:92px; height:92px; } #zoneName { right:8px; top:104px; width:92px; font-size:10px; } #gps { display:none; }
  #partyFrame { left:8px; top:104px; width:150px; } #partyFrame .pm { padding:2px 6px; margin-bottom:2px; } #buffBar { top:4px !important; } #buffBar .buff { width:30px !important; height:30px !important; }
  #log { left:8px; bottom:40px; width:min(176px, 22vw); height:76px; font-size:11px; line-height:13px; padding:3px 6px; background:rgba(0,0,0,.28); }
  #chatIn { left:8px; bottom:8px; width:min(176px, 22vw); height:24px; }
  #hud #hotbar { left:50%; align-items:center; } #hud #hotbar .slot { width:38px; height:38px; } .slot .k { font-size:9px; } #hud #hotbar .hbnav { flex-direction:row; margin-left:2px; } .hbnav button { padding:0 4px; }
  #prompt { top:55%; font-size:12px; padding:3px 10px; } #death { font-size:30px; } #tipBox { width:min(440px, 56vw); top:42px; }
  #hud .win, #winDialog { width:min(440px, 60vw) !important; max-height:calc(100vh - 16px); }
}
@media (pointer:coarse) { #hud button, .win button { min-height:30px; } }
/* game controller pointer and Start menu */
#padCur { position:fixed; z-index:9500; width:18px; height:18px; margin:-3px 0 0 -3px; pointer-events:none; border:2px solid #fff; border-radius:50%; background:rgba(217,180,90,.55); box-shadow:0 0 6px #000; }
#padMenu { position:fixed; z-index:9400; left:50%; top:50%; transform:translate(-50%,-50%); max-height:80vh; overflow:auto; min-width:240px; padding:8px; background:rgba(24,18,12,.96); border:1px solid #b89a4a; border-radius:6px; color:#e8dcc0; }
#padMenu.hidden, #padCur.hidden { display:none; } #padMenu .pmt { font-weight:bold; margin-bottom:6px; } #padMenu small { color:#a89a78; font-weight:normal; }
#padMenu .pmi { padding:5px 10px; border-radius:3px; } #padMenu .pmi.sel { background:#6b5524; color:#fff; }
/* narrow screens (#30): the forum header wraps so "Close" is never pushed off the right edge; the window fits the viewport and scrolls */
@media (max-width:700px) {
  #forum { padding:8px; } #forum .fwrap { padding:8px 10px; max-height:calc(100vh - 16px); overflow-y:auto; }
  #forum .fhead { flex-wrap:wrap; gap:6px; } #forum .fhead b { font-size:17px; margin-right:4px; } #forum .fsp { display:none; }
  #forum .fhead button { padding:4px 8px; min-height:34px; } #forum #fClose { margin-left:auto; }
}

#drawBtn { display:none; position:absolute; right:6px; bottom:4px; width:34px; height:34px; font-size:18px; line-height:1; padding:0; border-radius:4px; background:#2a2018; color:#e8d890; border:1px solid var(--edge); } body.touchmode #drawBtn { display:block; } #drawBtn.on { background:#7a2a1a; color:#fff; } /* touch mode: tap to draw or sheathe */

#winPatch { width:520px; max-width:92vw; max-height:72vh; overflow:auto; } #winPatch h4 { margin:10px 0 4px; color:#e8c860; } #winPatch h4 small { color:#a89a78; font-weight:normal; } #winPatch ul { margin:2px 0 6px; padding-left:20px; } #winPatch li { margin:3px 0; } #winPatch .rmBox { border:1px solid #6b5530; background:#1d1a12; padding:4px 10px 6px; margin-bottom:8px; }
/* settings: volume sliders */
.vols { margin-top: 10px; padding-top: 8px; border-top: 1px solid #5a4a2a; text-align: left }
.vols .vtitle { color: #e8c860; font-weight: bold; margin-bottom: 4px }
.vols label { display: flex; align-items: center; gap: 8px; margin: 4px 0; font-size: 13px }
.vols input[type=range] { flex: 1; min-width: 90px }
