205 lines
11 KiB
CSS
205 lines
11 KiB
CSS
|
|
:root {
|
||
|
|
--bg: #14110d;
|
||
|
|
--panel: #1e1913;
|
||
|
|
--panel-2: #272017;
|
||
|
|
--line: #3b3125;
|
||
|
|
--text: #ebe0c8;
|
||
|
|
--muted: #9a8c74;
|
||
|
|
--gold: #f6cf6a;
|
||
|
|
--hp: #2fae4e;
|
||
|
|
--hp-low: #c8372d;
|
||
|
|
--mana: #2f6fdb;
|
||
|
|
--rage: #c23b30;
|
||
|
|
--energy: #e3c33b;
|
||
|
|
--cast: #e8a93a;
|
||
|
|
--bad: #e2574c;
|
||
|
|
--good: #59c96b;
|
||
|
|
--q-poor: #9d9d9d;
|
||
|
|
--q-common: #f2f2f2;
|
||
|
|
--q-uncommon: #1eff00;
|
||
|
|
--q-rare: #3d9bff;
|
||
|
|
--q-epic: #b462f5;
|
||
|
|
--nav-h: 58px;
|
||
|
|
--bar-h: 0px;
|
||
|
|
color-scheme: dark;
|
||
|
|
}
|
||
|
|
|
||
|
|
* { box-sizing: border-box; }
|
||
|
|
html, body { margin: 0; background: var(--bg); color: var(--text); }
|
||
|
|
body {
|
||
|
|
font: 15px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
||
|
|
padding-bottom: calc(var(--nav-h) + var(--bar-h) + env(safe-area-inset-bottom) + 12px);
|
||
|
|
-webkit-tap-highlight-color: transparent;
|
||
|
|
}
|
||
|
|
button { font: inherit; color: inherit; }
|
||
|
|
h2 { font-size: 15px; margin: 0 0 8px; color: var(--gold); letter-spacing: .02em; }
|
||
|
|
h3 { font-size: 13px; margin: 10px 0 6px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
|
||
|
|
.muted { color: var(--muted); }
|
||
|
|
.small { font-size: 12px; }
|
||
|
|
.row { display: flex; align-items: center; gap: 8px; }
|
||
|
|
.grow { flex: 1; min-width: 0; }
|
||
|
|
.right { margin-left: auto; }
|
||
|
|
.wrap { flex-wrap: wrap; }
|
||
|
|
|
||
|
|
main { max-width: 760px; margin: 0 auto; padding: 8px 12px; }
|
||
|
|
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
|
||
|
|
|
||
|
|
.btn {
|
||
|
|
background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px;
|
||
|
|
cursor: pointer; touch-action: manipulation;
|
||
|
|
}
|
||
|
|
.btn:hover { border-color: #5a4a36; }
|
||
|
|
.btn.primary { background: #4a3714; border-color: #8a6a2a; color: var(--gold); }
|
||
|
|
.btn.danger { border-color: #6b2a24; color: #f19a90; }
|
||
|
|
.btn.small { padding: 4px 9px; font-size: 13px; }
|
||
|
|
.btn[disabled] { opacity: .45; cursor: default; }
|
||
|
|
.btn.on { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
|
||
|
|
|
||
|
|
.list { display: flex; flex-direction: column; gap: 6px; }
|
||
|
|
.item-row { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; background: var(--panel-2);
|
||
|
|
border: 1px solid transparent; cursor: pointer; }
|
||
|
|
.item-row.sel { border-color: var(--line); }
|
||
|
|
|
||
|
|
/* top bar */
|
||
|
|
#top { position: sticky; top: 0; z-index: 5; background: linear-gradient(#1b1610, #14110dee); border-bottom: 1px solid var(--line);
|
||
|
|
padding: 8px 12px calc(6px); backdrop-filter: blur(4px); }
|
||
|
|
#top .inner { max-width: 760px; margin: 0 auto; }
|
||
|
|
.who { font-weight: 700; }
|
||
|
|
.money { font-variant-numeric: tabular-nums; white-space: nowrap; }
|
||
|
|
.g { color: #ffd34d; } .s { color: #d6d6d6; } .c { color: #d0874a; }
|
||
|
|
.xpbar { height: 5px; border-radius: 3px; background: #2a2318; overflow: hidden; margin-top: 6px; }
|
||
|
|
.xpbar > i { display: block; height: 100%; background: linear-gradient(90deg, #8e4ec6, #b07ae8); }
|
||
|
|
.minibars { display: flex; gap: 6px; margin-top: 5px; }
|
||
|
|
.minibars .bar { flex: 1; }
|
||
|
|
|
||
|
|
/* bars */
|
||
|
|
.bar { position: relative; height: 16px; border-radius: 4px; background: #0d0b08; overflow: hidden; border: 1px solid #00000080; }
|
||
|
|
.bar > i { position: absolute; inset: 0 auto 0 0; background: var(--hp); transition: width .25s linear; }
|
||
|
|
.bar > span { position: relative; display: block; text-align: center; font-size: 11px; line-height: 14px; font-weight: 600;
|
||
|
|
text-shadow: 0 1px 2px #000; font-variant-numeric: tabular-nums; }
|
||
|
|
.bar.thin { height: 7px; }
|
||
|
|
.bar.thin > span { display: none; }
|
||
|
|
.bar.mana > i { background: var(--mana); }
|
||
|
|
.bar.rage > i { background: var(--rage); }
|
||
|
|
.bar.energy > i { background: var(--energy); }
|
||
|
|
.bar.low > i { background: var(--hp-low); }
|
||
|
|
.bar.cast > i { background: var(--cast); transition: none; }
|
||
|
|
.bar.cast.safe > i { background: #8b8b8b; }
|
||
|
|
.bar.road > i { background: #8a6a2a; transition: none; }
|
||
|
|
|
||
|
|
/* fight */
|
||
|
|
.fight-head { display: flex; align-items: baseline; gap: 8px; }
|
||
|
|
.side { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; }
|
||
|
|
.frame { position: relative; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 7px;
|
||
|
|
cursor: pointer; user-select: none; }
|
||
|
|
.frame.target { border-color: #e2c25a; box-shadow: 0 0 0 1px #e2c25a inset; }
|
||
|
|
.frame.ftarget { border-color: #59c96b; box-shadow: 0 0 0 1px #59c96b inset; }
|
||
|
|
.frame.dead { opacity: .4; }
|
||
|
|
.frame .name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||
|
|
.frame .lv { font-size: 11px; color: var(--muted); }
|
||
|
|
.frame .bar { margin-top: 4px; }
|
||
|
|
.frame .auras { display: flex; gap: 2px; flex-wrap: wrap; margin-top: 3px; min-height: 16px; font-size: 13px; }
|
||
|
|
.frame .auras .mine { filter: drop-shadow(0 0 2px #fff6); }
|
||
|
|
.frame .tag { font-size: 10px; padding: 0 5px; border-radius: 6px; background: #3a2c1a; color: var(--gold); margin-left: 4px; }
|
||
|
|
.frame .tag.boss { background: #4d1d1a; color: #ff9a8a; }
|
||
|
|
.frame .on-whom { font-size: 11px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||
|
|
.frame .on-whom b { color: #ff9a8a; font-weight: 600; }
|
||
|
|
.frame .on-whom b.ok { color: var(--muted); }
|
||
|
|
.frame .cc { position: absolute; right: 6px; top: 4px; font-size: 18px; }
|
||
|
|
.floats { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
|
||
|
|
.float { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); font-weight: 800; font-size: 14px;
|
||
|
|
text-shadow: 0 1px 2px #000, 0 0 4px #000; animation: rise 1.1s ease-out forwards; white-space: nowrap; }
|
||
|
|
.float.dmg { color: #ffffff; } .float.crit { color: #ffd34d; font-size: 18px; } .float.heal { color: #5cff7a; }
|
||
|
|
.float.taken { color: #ff6b5e; } .float.absorb { color: #9fd2ff; } .float.interrupt { color: #7fe3ff; }
|
||
|
|
.float.oom { color: #79a5ff; }
|
||
|
|
@keyframes rise { 0% { opacity: 0; transform: translate(-50%, 6px) scale(.9); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.08); }
|
||
|
|
100% { opacity: 0; transform: translate(-50%, -26px) scale(1); } }
|
||
|
|
.vs { text-align: center; color: var(--muted); font-size: 11px; margin: 6px 0; letter-spacing: .2em; }
|
||
|
|
.log { font-size: 12px; max-height: 140px; overflow-y: auto; display: flex; flex-direction: column-reverse; margin-top: 8px; }
|
||
|
|
.log div { padding: 1px 0; color: var(--muted); }
|
||
|
|
.log .yell { color: #ff6b5e; font-weight: 600; } .log .interrupt { color: #7fe3ff; } .log .death { color: #e2574c; }
|
||
|
|
.log .enemy { color: #e8a93a; } .log .cast { color: #c8bca4; } .log .loot { color: var(--q-uncommon); }
|
||
|
|
.log .level { color: var(--gold); font-weight: 600; } .log .quest { color: #f0d080; }
|
||
|
|
|
||
|
|
/* action bar */
|
||
|
|
#bar { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); z-index: 6;
|
||
|
|
background: linear-gradient(#14110d00, #14110d 18%); padding: 14px 10px 6px; display: none; }
|
||
|
|
#bar.show { display: block; }
|
||
|
|
#bar .inner { max-width: 760px; margin: 0 auto; }
|
||
|
|
.abilities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
|
||
|
|
.ab { position: relative; height: 74px; border-radius: 10px; background: #231c13; border: 1px solid #4a3c2a; display: flex;
|
||
|
|
flex-direction: column; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; touch-action: manipulation;
|
||
|
|
user-select: none; -webkit-user-select: none; }
|
||
|
|
.ab .icon { font-size: 26px; line-height: 1; }
|
||
|
|
.ab .label { font-size: 10.5px; margin-top: 3px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 94%; }
|
||
|
|
.ab .cdm { position: absolute; inset: 0; background: #000a; display: flex; align-items: center; justify-content: center;
|
||
|
|
font-weight: 800; font-size: 20px; text-shadow: 0 1px 2px #000; }
|
||
|
|
.ab .gcd { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--gold); }
|
||
|
|
.ab .mode { position: absolute; top: 3px; right: 3px; font-size: 9px; font-weight: 800; padding: 1px 5px; border-radius: 6px;
|
||
|
|
background: #3b3125; color: var(--muted); letter-spacing: .04em; }
|
||
|
|
.ab.manual { border-color: #b8913a; background: #2e2414; }
|
||
|
|
.ab.manual .mode { background: var(--gold); color: #1a1408; }
|
||
|
|
.ab.auto .icon { opacity: .75; }
|
||
|
|
.ab.nores .icon { filter: grayscale(1) brightness(.6); }
|
||
|
|
.ab.queued { box-shadow: 0 0 0 2px #fff inset; }
|
||
|
|
.ab.locked { opacity: .35; }
|
||
|
|
.ab:active { transform: scale(.97); }
|
||
|
|
.bar-hint { font-size: 11px; color: var(--muted); text-align: center; margin-top: 5px; }
|
||
|
|
.casting { margin-bottom: 6px; }
|
||
|
|
|
||
|
|
/* nav */
|
||
|
|
#nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 7; height: calc(var(--nav-h) + env(safe-area-inset-bottom));
|
||
|
|
padding-bottom: env(safe-area-inset-bottom); background: #100d0a; border-top: 1px solid var(--line); display: flex; }
|
||
|
|
#nav button { flex: 1; background: none; border: 0; color: var(--muted); font-size: 11px; display: flex; flex-direction: column;
|
||
|
|
align-items: center; justify-content: center; gap: 2px; cursor: pointer; position: relative; }
|
||
|
|
#nav button .i { font-size: 20px; }
|
||
|
|
#nav button.on { color: var(--gold); }
|
||
|
|
#nav .dot { position: absolute; top: 8px; right: calc(50% - 18px); width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
|
||
|
|
|
||
|
|
/* items */
|
||
|
|
.q-poor { color: var(--q-poor); } .q-common { color: var(--q-common); } .q-uncommon { color: var(--q-uncommon); }
|
||
|
|
.q-rare { color: var(--q-rare); } .q-epic { color: var(--q-epic); }
|
||
|
|
.tip { font-size: 12px; color: var(--muted); }
|
||
|
|
.stat-up { color: var(--good); } .stat-down { color: var(--bad); }
|
||
|
|
.slot { display: grid; grid-template-columns: 70px 1fr; gap: 8px; align-items: center; padding: 6px 8px; background: var(--panel-2);
|
||
|
|
border-radius: 8px; cursor: pointer; }
|
||
|
|
.slot .k { color: var(--muted); font-size: 12px; }
|
||
|
|
.statgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
|
||
|
|
.statgrid div { background: var(--panel-2); border-radius: 8px; padding: 6px 8px; }
|
||
|
|
.statgrid b { display: block; font-size: 16px; }
|
||
|
|
.statgrid span { font-size: 11px; color: var(--muted); }
|
||
|
|
|
||
|
|
/* quests */
|
||
|
|
.quest { padding: 8px; background: var(--panel-2); border-radius: 8px; }
|
||
|
|
.quest .obj { font-size: 13px; color: var(--muted); }
|
||
|
|
.quest .obj.done { color: var(--good); }
|
||
|
|
.quest.ready { border: 1px solid #8a6a2a; }
|
||
|
|
.qmark { color: #ffd34d; font-weight: 900; }
|
||
|
|
|
||
|
|
/* register */
|
||
|
|
.classes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
|
||
|
|
.cls { padding: 10px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); cursor: pointer; }
|
||
|
|
.cls.on { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
|
||
|
|
.cls .ic { font-size: 22px; }
|
||
|
|
.cls b { display: block; }
|
||
|
|
input, select, textarea { font: inherit; color: var(--text); background: #0f0c09; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
|
||
|
|
input:focus, textarea:focus { outline: 1px solid #8a6a2a; }
|
||
|
|
|
||
|
|
/* chat */
|
||
|
|
.chat { display: flex; flex-direction: column; gap: 4px; max-height: 50vh; overflow-y: auto; }
|
||
|
|
.chat .msg b { margin-right: 6px; }
|
||
|
|
|
||
|
|
#toast { position: fixed; left: 50%; top: 70px; transform: translateX(-50%); z-index: 20; background: #3a1d19; border: 1px solid #7a3328;
|
||
|
|
color: #ffd2cb; padding: 8px 14px; border-radius: 8px; display: none; max-width: 90vw; text-align: center; }
|
||
|
|
#toast.show { display: block; }
|
||
|
|
#toast.ok { background: #1d3a22; border-color: #2e7a3c; color: #d2ffd8; }
|
||
|
|
|
||
|
|
.devbar { font-size: 12px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
|
||
|
|
.devbar input, .devbar select { padding: 3px 6px; font-size: 12px; }
|
||
|
|
|
||
|
|
@media (max-width: 420px) {
|
||
|
|
.side { grid-template-columns: 1fr 1fr; }
|
||
|
|
.frame { padding: 5px 6px; }
|
||
|
|
.ab { height: 68px; }
|
||
|
|
}
|