557 lines
31 KiB
CSS
557 lines
31 KiB
CSS
:root {
|
|
--bg: #14161d;
|
|
--side: #1a1d26;
|
|
--panel: #212532;
|
|
--panel-2: #292e3d;
|
|
--line: #353b4d;
|
|
--text: #e7e9f0;
|
|
--muted: #98a1b4;
|
|
--gold: #e0b04a;
|
|
--xp: #4fa3e0;
|
|
--good: #5cbf6a;
|
|
--bad: #e2645c;
|
|
--warn: #e3a043;
|
|
--favour: #b98ce8;
|
|
--radius: 10px;
|
|
color-scheme: dark;
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
html, body { margin: 0; height: 100%; overscroll-behavior-x: none; }
|
|
body {
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
|
}
|
|
button, input, textarea, select { font: inherit; color: inherit; }
|
|
button { cursor: pointer; touch-action: manipulation; }
|
|
a { color: var(--xp); }
|
|
|
|
#app { display: flex; min-height: 100vh; }
|
|
|
|
/* --- sidebar ---------------------------------------------------------- */
|
|
|
|
#side {
|
|
width: 260px;
|
|
flex: none;
|
|
background: var(--side);
|
|
border-right: 1px solid var(--line);
|
|
height: 100vh;
|
|
position: sticky;
|
|
top: 0;
|
|
overflow-y: auto;
|
|
padding-bottom: 24px;
|
|
}
|
|
.brand {
|
|
display: flex; align-items: center; gap: 10px;
|
|
padding: 16px 18px 12px;
|
|
font-weight: 700; font-size: 19px; letter-spacing: .02em;
|
|
}
|
|
.brand img { width: 28px; height: 28px; }
|
|
.brand small {
|
|
font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
|
|
color: var(--bg); background: var(--gold); border-radius: 4px; padding: 1px 6px;
|
|
}
|
|
.me {
|
|
margin: 0 12px 8px; padding: 10px 12px;
|
|
background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
|
|
}
|
|
.me .who { font-weight: 600; }
|
|
.me .cls { color: var(--muted); font-size: 13px; }
|
|
.purse { display: flex; gap: 14px; margin-top: 6px; font-size: 14px; }
|
|
.gold { color: var(--gold); }
|
|
.favour { color: var(--favour); }
|
|
|
|
.navhead {
|
|
padding: 14px 18px 4px;
|
|
font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
|
|
color: var(--muted);
|
|
}
|
|
.nav {
|
|
display: flex; align-items: center; gap: 10px; width: 100%;
|
|
padding: 7px 18px; border: 0; background: none; text-align: left;
|
|
border-left: 3px solid transparent;
|
|
}
|
|
.nav:hover { background: var(--panel); }
|
|
.nav.on { background: var(--panel-2); border-left-color: var(--gold); }
|
|
.nav .ic { width: 22px; text-align: center; font-size: 17px; }
|
|
.nav .label { flex: 1; }
|
|
.nav .meta { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
|
|
.nav .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 6px var(--good); }
|
|
.nav .alert { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
|
|
|
|
.devbar {
|
|
margin: 18px 12px 0; padding: 10px 12px; border: 1px dashed var(--warn); border-radius: var(--radius);
|
|
font-size: 13px; color: var(--muted);
|
|
}
|
|
.devbar b { color: var(--warn); }
|
|
.devbar form { display: flex; gap: 6px; margin: 6px 0; }
|
|
.devbar input { width: 100%; }
|
|
.devbar .row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
|
|
|
|
/* --- top bar ---------------------------------------------------------- */
|
|
|
|
#body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
|
|
#top {
|
|
position: sticky; top: 0; z-index: 5;
|
|
display: flex; align-items: center; gap: 12px;
|
|
padding: 10px 24px; min-height: 56px;
|
|
background: rgba(20, 22, 29, .92); backdrop-filter: blur(6px);
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
#top h1 { font-size: 18px; margin: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.menu-btn { display: none; background: none; border: 0; font-size: 22px; padding: 0 4px; }
|
|
.chip {
|
|
display: inline-flex; align-items: center; gap: 8px;
|
|
padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line);
|
|
background: var(--panel); font-size: 13.5px; white-space: nowrap;
|
|
}
|
|
.chip.threat { border-color: rgba(226, 100, 92, .5); }
|
|
.chip.alarm { color: var(--bad); animation: alarm 1.2s ease-in-out infinite; }
|
|
@keyframes alarm { 50% { background: rgba(226, 100, 92, .25); border-color: var(--bad); } }
|
|
.chip .mini { width: 70px; }
|
|
|
|
main { padding: 24px; max-width: 1200px; width: 100%; }
|
|
.loading { color: var(--muted); }
|
|
|
|
/* --- panels ----------------------------------------------------------- */
|
|
|
|
.panel {
|
|
background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
|
|
padding: 16px 18px; margin-bottom: 18px;
|
|
}
|
|
.panel > h2, .section-title {
|
|
font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
|
|
color: var(--muted); margin: 0 0 12px;
|
|
}
|
|
.section-title { margin: 26px 0 12px; }
|
|
.muted { color: var(--muted); }
|
|
.small { font-size: 13px; }
|
|
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }
|
|
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); }
|
|
.cols { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
|
|
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-bottom: 18px; }
|
|
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
|
|
.stat .k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
|
|
.stat .v { font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; }
|
|
.stat .v small { font-size: 13px; color: var(--muted); font-weight: 400; }
|
|
.stat .note { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
|
|
.stat .bad, .note .bad { color: var(--bad); }
|
|
.note .warn { color: var(--warn); }
|
|
|
|
.bar { height: 8px; background: var(--bg); border-radius: 99px; overflow: hidden; }
|
|
.bar > span { display: block; height: 100%; background: var(--good); border-radius: 99px; width: 0; }
|
|
.bar.xp > span { background: var(--xp); }
|
|
.bar.gold > span { background: var(--gold); }
|
|
.bar.thick { height: 12px; }
|
|
.boost-bar { position: relative; margin-top: 8px; }
|
|
.boost-bar > span { position: relative; z-index: 1; }
|
|
.boost-bar > span.boost { position: absolute; left: 0; top: 0; z-index: 0;
|
|
background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--gold) 45%, transparent) 0 6px, color-mix(in srgb, var(--gold) 20%, transparent) 6px 12px); }
|
|
|
|
.btn {
|
|
border: 1px solid var(--line); background: var(--panel-2); border-radius: 8px;
|
|
padding: 7px 14px; font-weight: 600; font-size: 14px;
|
|
}
|
|
.btn:hover:not(:disabled) { border-color: var(--muted); }
|
|
.btn:disabled { opacity: .45; cursor: not-allowed; }
|
|
.btn.primary { background: #2f6b3a; border-color: #3f8a4c; }
|
|
.btn.danger { background: #6b2f2f; border-color: #8a3f3f; }
|
|
.btn.gold { background: #6b5320; border-color: #8f6f2a; }
|
|
.btn.sm { padding: 3px 9px; font-size: 13px; }
|
|
.btns { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
|
|
|
|
input[type=text], input[type=number], textarea {
|
|
background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px;
|
|
}
|
|
textarea { width: 100%; resize: vertical; min-height: 60px; }
|
|
|
|
.tag {
|
|
display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 99px;
|
|
background: var(--panel-2); color: var(--muted); border: 1px solid var(--line);
|
|
}
|
|
.tag.good { color: var(--good); border-color: rgba(92, 191, 106, .4); }
|
|
.tag.bad { color: var(--bad); border-color: rgba(226, 100, 92, .4); }
|
|
.tag.warn { color: var(--warn); border-color: rgba(227, 160, 67, .4); }
|
|
.tag.gold { color: var(--gold); border-color: rgba(224, 176, 74, .4); }
|
|
|
|
/* --- skill page ------------------------------------------------------- */
|
|
|
|
.skill-head { display: flex; gap: 16px; align-items: center; }
|
|
.skill-head .big { font-size: 42px; width: 64px; height: 64px; display: grid; place-items: center;
|
|
background: var(--panel-2); border-radius: 14px; flex: none; }
|
|
.skill-head .info { flex: 1; min-width: 0; }
|
|
.skill-head h2 { margin: 0; font-size: 22px; text-transform: none; letter-spacing: 0; color: var(--text); }
|
|
.skill-head .lv { font-variant-numeric: tabular-nums; color: var(--muted); margin: 2px 0 8px; }
|
|
|
|
.action {
|
|
background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
|
|
padding: 14px; display: flex; flex-direction: column; gap: 10px;
|
|
}
|
|
.action.active { border-color: var(--good); box-shadow: 0 0 0 1px var(--good) inset; }
|
|
.action.locked { opacity: .55; }
|
|
.action .top { display: flex; gap: 12px; align-items: center; }
|
|
.action .ico { font-size: 30px; width: 46px; height: 46px; display: grid; place-items: center;
|
|
background: var(--panel-2); border-radius: 10px; flex: none; }
|
|
.action .name { font-weight: 650; }
|
|
.action .sub { font-size: 13px; color: var(--muted); }
|
|
.io { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; }
|
|
.io .arrow { color: var(--muted); }
|
|
.item-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; background: var(--panel-2); }
|
|
.item-chip.short { color: var(--bad); }
|
|
.action .why { font-size: 13px; color: var(--warn); }
|
|
.grid-head { grid-column: 1 / -1; margin: 10px 0 -4px; }
|
|
.tool-panel { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
|
|
.hp-line { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
|
|
.bar.hp > span { background: var(--bad); }
|
|
.warn { color: var(--warn); }
|
|
select { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; margin-left: 6px; }
|
|
.action .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; }
|
|
|
|
/* --- bank ------------------------------------------------------------- */
|
|
|
|
.bank-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 18px; align-items: start; }
|
|
.slots { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
|
|
.slot {
|
|
aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2);
|
|
display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative;
|
|
font-size: 30px; padding: 0;
|
|
}
|
|
.slot.empty { background: transparent; border-style: dashed; cursor: default; }
|
|
.slot.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
|
|
.slot .qty { position: absolute; left: 6px; top: 4px; font-size: 12px; font-weight: 700; }
|
|
.slot .qty.full { color: var(--warn); }
|
|
.slot .nm { font-size: 10.5px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px; }
|
|
.item-panel h3 { margin: 0; font-size: 18px; }
|
|
.item-panel .ico { font-size: 40px; }
|
|
.item-panel .row { margin-top: 12px; }
|
|
.item-panel .row .k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
|
|
|
|
/* --- city ------------------------------------------------------------- */
|
|
|
|
.building .lv { font-variant-numeric: tabular-nums; }
|
|
.building.damaged { border-color: rgba(226, 100, 92, .6); }
|
|
.cost { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
.fund { display: flex; flex-direction: column; gap: 6px; }
|
|
.fight .fighters { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; }
|
|
.fight .vs { font-size: 22px; }
|
|
.fight.waiting .foe-side .foe-head, .fight.waiting .traits { opacity: .45; }
|
|
.fighter { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
|
|
.fighter-name { display: flex; justify-content: space-between; gap: 8px; }
|
|
.fighter-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.fighter-name span { white-space: nowrap; }
|
|
@media (max-width: 500px) { .fight .fighters { gap: 8px; } .fighter-name { flex-direction: column; gap: 0; } }
|
|
.fight .bar.hp { height: 12px; }
|
|
.fight .bar.hp.you > span { background: var(--good); }
|
|
.fight .bar.hp.foe > span { background: var(--bad); }
|
|
.fight .bar.swing { height: 4px; }
|
|
.fight .bar.swing > span { background: var(--gold); transition: none; }
|
|
.fight-log { list-style: none; margin: 12px 0 0; padding: 0; font-size: 13px; display: flex; flex-direction: column; gap: 2px; min-height: 7.5em; }
|
|
.fight-log .good { color: var(--good); }
|
|
.fight-log .bad { color: var(--bad); }
|
|
.fund-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
|
|
.fittings { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
|
|
.fitting-row { display: flex; align-items: center; gap: 8px; }
|
|
.fit-ico { flex: none; display: grid; place-items: center; }
|
|
.fit-ico .gi { width: 22px; height: 22px; }
|
|
.fitting-text { flex: 1; min-width: 0; }
|
|
.fitting-row .btns { flex: none; display: flex; gap: 6px; }
|
|
.cost .item-chip .have { color: var(--muted); }
|
|
.banner {
|
|
display: flex; gap: 14px; align-items: center; padding: 12px 16px; margin-bottom: 18px;
|
|
border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel-2);
|
|
}
|
|
.banner.bad { border-color: rgba(226, 100, 92, .6); background: rgba(226, 100, 92, .08); }
|
|
.banner .grow { flex: 1; }
|
|
.stock { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
|
|
.threat-card { border-color: rgba(226, 100, 92, .5); }
|
|
.threat-card .headline { font-size: 18px; font-weight: 650; margin: 2px 0 6px; }
|
|
.pips { display: inline-flex; gap: 4px; vertical-align: middle; }
|
|
.pips i { width: 10px; height: 10px; border-radius: 2px; background: var(--line); }
|
|
.pips i.on { background: var(--xp); }
|
|
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 14px; }
|
|
.kv .k { color: var(--muted); }
|
|
.vs { display: flex; gap: 12px; align-items: center; margin: 12px 0 4px; }
|
|
.vs .side { flex: 1; text-align: center; padding: 10px; border-radius: 8px; background: var(--panel-2); }
|
|
.vs .side b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
|
|
.req { display: grid; grid-template-columns: 26px 1fr auto; gap: 4px 10px; align-items: center; margin-bottom: 10px; }
|
|
.req .bar { grid-column: 2 / 4; }
|
|
table.parts { width: 100%; border-collapse: collapse; font-size: 14px; }
|
|
table.parts td { padding: 4px 0; border-bottom: 1px solid var(--line); }
|
|
table.parts td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
|
|
.report { border-left: 3px solid var(--line); padding: 4px 0 4px 12px; margin-bottom: 14px; }
|
|
.report.win { border-left-color: var(--good); }
|
|
.report.loss { border-left-color: var(--bad); }
|
|
.report p { margin: 2px 0; font-size: 14px; }
|
|
|
|
/* --- board, ledger, roster ------------------------------------------- */
|
|
|
|
.msgs { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow-y: auto; margin-bottom: 12px; }
|
|
.msg .who { font-weight: 600; }
|
|
.msg .when { color: var(--muted); font-size: 12px; margin-left: 6px; }
|
|
.msg .text { white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
.ledger { list-style: none; margin: 0; padding: 0; max-height: 70vh; overflow-y: auto; }
|
|
.ledger li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
|
|
.ledger .when { color: var(--muted); font-size: 12px; display: block; }
|
|
.person .top { display: flex; gap: 12px; align-items: center; }
|
|
.person .ico { font-size: 30px; }
|
|
.levels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; font-size: 13px; margin-top: 12px; }
|
|
.levels .lvl { display: flex; align-items: center; gap: 7px; padding: 4px 0; border-bottom: 1px solid var(--line); }
|
|
.levels .lvl .ico { width: 18px; text-align: center; flex: none; font-size: 14px; line-height: 1; }
|
|
.levels .lvl .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.levels .lvl b { font-variant-numeric: tabular-nums; font-weight: 650; }
|
|
.levels .lvl.low { color: var(--muted); }
|
|
.levels .lvl.low b { font-weight: 400; }
|
|
|
|
/* --- character sheet -------------------------------------------------- */
|
|
|
|
.sheet-head { display: flex; gap: 16px; align-items: center; }
|
|
.sheet-head .big { font-size: 44px; width: 72px; height: 72px; display: grid; place-items: center; background: var(--panel-2); border-radius: 16px; flex: none; }
|
|
.sheet-head h2 { margin: 0; font-size: 24px; letter-spacing: 0; text-transform: none; color: var(--text); }
|
|
.grow { flex: 1; min-width: 0; }
|
|
.sheet-gear { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); }
|
|
.sheet-slot { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-height: 64px; }
|
|
.sheet-slot.empty { background: transparent; border-style: dashed; }
|
|
.sheet-slot .k { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
|
|
.sheet-item { display: flex; align-items: center; gap: 8px; }
|
|
.sheet-item .ico { font-size: 24px; }
|
|
.sheet-item > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
|
|
.sheet-skills { display: flex; flex-direction: column; gap: 4px; }
|
|
.sheet-skill { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; border: 0; background: none; text-align: left; width: 100%; }
|
|
button.sheet-skill:hover { background: var(--panel-2); }
|
|
.sheet-skill .ico { font-size: 20px; width: 26px; text-align: center; }
|
|
.sheet-skill .row1 { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
|
|
.sheet-skill .row1 b { flex: 1; font-weight: 600; }
|
|
.sheet-skill .marks { font-size: 14px; }
|
|
.sheet-skill .lv { font-variant-numeric: tabular-nums; font-weight: 650; min-width: 22px; text-align: right; }
|
|
.sheet-skill .grow { display: flex; flex-direction: column; }
|
|
.sheet-skill .bar { display: block; height: 5px; }
|
|
.favour { color: var(--favour); }
|
|
|
|
/* --- register --------------------------------------------------------- */
|
|
|
|
.welcome { max-width: 760px; }
|
|
.welcome h2 { font-size: 26px; margin: 0 0 6px; }
|
|
.classes { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); margin: 16px 0; }
|
|
.class-card {
|
|
text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
|
|
padding: 14px; display: flex; gap: 12px;
|
|
}
|
|
.class-card.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
|
|
.class-card .ico { font-size: 32px; }
|
|
.class-card p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
|
|
|
|
/* --- toasts and modal ------------------------------------------------- */
|
|
|
|
#toasts { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: flex-end; max-width: calc(100vw - 32px); gap: 8px; z-index: 30; }
|
|
.toast {
|
|
background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px;
|
|
font-size: 14px; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); animation: rise .2s ease-out;
|
|
}
|
|
.toast.bad { border-color: var(--bad); }
|
|
.toast.good { border-color: var(--good); }
|
|
.toast.level { border-color: var(--gold); }
|
|
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }
|
|
#modal { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .6); display: grid; place-items: center; padding: 16px; }
|
|
#modal[hidden] { display: none; }
|
|
.modal-box { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; max-width: 460px; width: 100%; max-height: 85vh; overflow-y: auto; }
|
|
.modal-box h2 { margin: 0 0 10px; }
|
|
.modal-box ul { padding-left: 18px; }
|
|
|
|
/* --- small screens ---------------------------------------------------- */
|
|
|
|
#scrim { display: none; }
|
|
@media (max-width: 900px) {
|
|
/* A drawer pinned to the screen edges (not 100vh, which iOS sizes for the
|
|
largest viewport) that keeps its scrolling to itself. */
|
|
#side {
|
|
position: fixed; left: 0; top: 0; bottom: 0; height: auto; z-index: 20;
|
|
width: min(280px, 85vw);
|
|
transform: translateX(-100%); transition: transform .2s;
|
|
overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
|
|
padding-top: env(safe-area-inset-top);
|
|
padding-bottom: calc(24px + env(safe-area-inset-bottom));
|
|
}
|
|
#app.open #side { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .5); }
|
|
#app.open #scrim, #app.dragging #scrim { display: block; position: fixed; inset: 0; z-index: 15; background: rgba(0, 0, 0, .5); }
|
|
html.menu-open, html.menu-open body { overflow: hidden; }
|
|
.menu-btn { display: block; }
|
|
#top { padding: 8px max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left)); flex-wrap: wrap; gap: 8px; }
|
|
#top h1 { flex: 1 1 auto; }
|
|
main { padding: 16px max(16px, env(safe-area-inset-right)) calc(32px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
|
|
.cols, .bank-wrap { grid-template-columns: 1fr; }
|
|
.chip { max-width: 100%; }
|
|
.chip.act .label { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
|
|
html.menu-open #toasts { display: none; }
|
|
.stats { grid-template-columns: repeat(2, 1fr); }
|
|
.skill-head { flex-wrap: wrap; }
|
|
.skill-head .info { flex-basis: 60%; }
|
|
.slots { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
|
|
/* iOS zooms into any input under 16px when it's focused. */
|
|
input[type=text], input[type=number], textarea, select { font-size: 16px; }
|
|
}
|
|
@media (pointer: coarse) {
|
|
.nav { padding: 11px 18px; }
|
|
.btn.sm { padding: 6px 11px; }
|
|
}
|
|
.linkish { background: none; border: 0; padding: 0; color: var(--xp); text-decoration: underline; font: inherit; }
|
|
.favour-option { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
|
|
.favour-option:first-of-type { border-top: 0; }
|
|
.favour-option .ico { font-size: 24px; width: 30px; text-align: center; }
|
|
.favour-option .grow { display: flex; flex-direction: column; }
|
|
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
|
|
.tab { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 5px 14px; font-weight: 600; font-size: 14px; }
|
|
.tab.on { background: var(--gold); border-color: var(--gold); color: var(--bg); }
|
|
.tab.dim:not(.on) { opacity: .5; }
|
|
.makes { color: var(--muted); }
|
|
.prayers { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
|
|
.prayer { display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); }
|
|
.prayer .ico { font-size: 22px; width: 28px; text-align: center; }
|
|
.prayer .grow { display: flex; flex-direction: column; }
|
|
.prayer.on { border-color: var(--favour); box-shadow: 0 0 0 1px var(--favour) inset; background: rgba(185, 140, 232, .12); }
|
|
.prayer.locked { opacity: .45; cursor: not-allowed; }
|
|
.prayer-points { font-size: 15px; }
|
|
.site-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
|
|
.site-head .btns { margin-left: auto; }
|
|
.happenings { display: flex; flex-direction: column; gap: 8px; }
|
|
.happening { display: flex; align-items: flex-start; gap: 12px; padding: 8px 10px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
|
|
.happening.bad { border-color: rgba(226, 100, 92, .4); }
|
|
.happening .ico { font-size: 22px; width: 28px; text-align: center; flex: none; }
|
|
.happening .grow { display: flex; flex-direction: column; gap: 4px; }
|
|
.happening > .btn, .happening > .small { align-self: center; }
|
|
.skill-happenings { flex-direction: column; align-items: flex-start; gap: 4px; }
|
|
.msg-delete { background: none; border: 0; color: var(--muted); padding: 0 4px; margin-left: 4px; font-size: 12px; }
|
|
.msg-delete:hover { color: var(--bad); }
|
|
.gi { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; flex: none; }
|
|
.item-chip .gi { width: 1.25em; height: 1.25em; vertical-align: -0.3em; }
|
|
.slot .gi { width: 34px; height: 34px; }
|
|
.action .ico .gi, .skill-head .big .gi, .sheet-head .big .gi { width: 70%; height: 70%; }
|
|
.nav .ic .gi { width: 20px; height: 20px; vertical-align: middle; }
|
|
.credit { margin: 14px 18px 0; font-size: 11.5px; color: var(--muted); }
|
|
.credit a { color: var(--muted); }
|
|
.btn.working { color: var(--good); border-color: rgba(92, 191, 106, .5); background: rgba(92, 191, 106, .1); cursor: default; }
|
|
.banner-ico { font-size: 22px; display: flex; }
|
|
|
|
/* Raid replay */
|
|
.battle-side { display: grid; gap: 6px; margin: 12px 0; }
|
|
.battle-side .bar.hp.you > span { background: var(--good); }
|
|
.battle-side .bar > span { transition: width .8s ease-out; }
|
|
.modal-box .battle-log { min-height: 96px; margin: 14px 0 10px; padding-left: 0; }
|
|
.battle-result { font-weight: 700; font-size: 17px; margin: 6px 0 8px; }
|
|
.battle-result.win { color: var(--good); }
|
|
.battle-result.loss { color: var(--bad); }
|
|
|
|
/* Damage types and encounter rosters */
|
|
.dmg { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; vertical-align: -4px; }
|
|
.dmg .gi { width: 13px; height: 13px; }
|
|
.dmg.vuln { background: rgba(95, 174, 90, .22); box-shadow: inset 0 0 0 1px rgba(95, 174, 90, .6); }
|
|
.dmg.resist { background: rgba(226, 100, 92, .2); box-shadow: inset 0 0 0 1px rgba(226, 100, 92, .55); }
|
|
.variants { display: grid; gap: 3px; margin: 2px 0 4px; font-size: 13px; }
|
|
.variant { display: grid; grid-template-columns: auto 1fr auto auto; gap: 6px; align-items: center; }
|
|
.variant.good .v-name { color: var(--good); }
|
|
.variant.bad .v-name { color: var(--bad); }
|
|
.v-attack, .v-res { display: inline-flex; gap: 2px; }
|
|
.v-hp { font-size: 12px; }
|
|
.fighter-name .v-res { margin-left: 6px; }
|
|
|
|
/* Gear stats: left, middle and right columns */
|
|
.stat-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 4px 10px; align-items: center; margin: 4px 0 2px;
|
|
padding: 6px 10px; border-radius: 8px; background: var(--bg); font-size: 13px; }
|
|
.stat-grid > :nth-child(3n + 1) { justify-self: start; }
|
|
.stat-grid > :nth-child(3n + 2) { justify-self: center; }
|
|
.stat-grid > :nth-child(3n) { justify-self: end; }
|
|
.stat-grid .gstat { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
|
|
.stat-grid .gi { width: 16px; height: 16px; }
|
|
.stat-grid .gstat.short { color: var(--warn); }
|
|
.stat-grid .gstat.trade { color: var(--gold); }
|
|
.stat-grid .gstat.muted { font-weight: 500; }
|
|
.hands { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #d6b48a;
|
|
border: 1px solid rgba(214, 180, 138, .5); border-radius: 4px; padding: 0 4px; }
|
|
|
|
/* Paper doll: a compact slot grid on a warrior's outline, details beside it */
|
|
.doll-wrap { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
|
|
.doll { position: relative; display: grid; grid-template-columns: repeat(3, 52px); gap: 8px; padding: 6px; }
|
|
.doll-figure { position: absolute; inset: -4px; display: grid; place-items: center; opacity: .09; pointer-events: none; }
|
|
.doll-figure .gi { width: 100%; height: 100%; }
|
|
.doll-slot { position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 10px; display: grid; place-items: center;
|
|
background: var(--panel-2); border: 1px solid var(--line); padding: 0; cursor: pointer; color: inherit; }
|
|
.doll-slot .gi { width: 34px; height: 34px; }
|
|
.doll-slot.empty .gi { width: 26px; height: 26px; opacity: .35; }
|
|
.doll-slot.future { background: transparent; border-style: dashed; opacity: .45; cursor: default; }
|
|
.doll-slot.future .gi { opacity: .3; }
|
|
.doll-slot.ghost > .gi { opacity: .3; }
|
|
.doll-slot.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
|
|
.doll-slot .hands { position: absolute; top: 2px; right: 2px; font-size: 9px; padding: 0 3px; }
|
|
.doll-slot.small { width: 40px; height: 40px; cursor: default; }
|
|
.doll-slot.small .gi { width: 26px; height: 26px; }
|
|
.doll-side { min-width: 0; }
|
|
.worn-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
|
|
.worn-head > span:nth-child(2) { display: grid; }
|
|
.worn-head .ico .gi { width: 22px; height: 22px; }
|
|
.worn-head .btn { margin-left: auto; }
|
|
.tool-slots { display: flex; flex-wrap: wrap; gap: 8px; }
|
|
@media (max-width: 520px) { .doll-wrap { grid-template-columns: 1fr; justify-items: center; } .doll-side { width: 100%; } }
|
|
|
|
/* Swapping gear from the doll */
|
|
.swap-head { margin-top: 2px; }
|
|
.swap-grid { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
.doll-slot.swap { width: 44px; height: 44px; }
|
|
.doll-slot.swap .gi { width: 28px; height: 28px; }
|
|
.doll-slot.swap:hover:not(:disabled) { border-color: var(--gold); }
|
|
.doll-slot.swap:disabled { opacity: .4; cursor: not-allowed; }
|
|
.doll-slot.swap.off { border-style: dashed; background: transparent; }
|
|
.doll-slot.swap.off .gi { width: 18px; height: 18px; }
|
|
.swap-type { position: absolute; bottom: -4px; right: -4px; }
|
|
.swap-type .dmg { width: 16px; height: 16px; background: var(--panel); border-radius: 4px; }
|
|
.swap-qty { position: absolute; top: 1px; left: 3px; font-size: 10px; font-weight: 700; color: var(--muted); }
|
|
.doll-slot.swap .swap-type .gi { width: 11px; height: 11px; }
|
|
.doll-slot.swap .hands { top: 1px; right: 1px; font-size: 8px; padding: 0 2px; }
|
|
|
|
/* The combat frame: you on the left, the enemy on the right */
|
|
.combat-frame { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
|
|
.you-side, .foe-side { display: grid; gap: 14px; align-content: start; min-width: 0; }
|
|
.foe-head { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
|
|
.foe-ico { width: 56px; height: 56px; border-radius: 12px; background: var(--panel-2); display: grid; place-items: center; }
|
|
.foe-ico .gi { width: 40px; height: 40px; }
|
|
.foe-idle { padding: 18px 0; }
|
|
.traits { display: grid; gap: 6px; }
|
|
.trait { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
|
|
.trait > .muted { width: 84px; }
|
|
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; padding: 2px 9px 2px 3px; border-radius: 99px;
|
|
background: var(--panel-2); border: 1px solid var(--line); }
|
|
.pill.vuln { border-color: rgba(95, 174, 90, .6); }
|
|
.pill.resist { border-color: rgba(226, 100, 92, .55); }
|
|
.pill.yours { box-shadow: 0 0 0 2px var(--gold); }
|
|
.combat-frame .fight-log { margin: 0; }
|
|
.prayer-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
|
|
.prayer-bar .pp { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; margin-right: 4px; }
|
|
.pray-btn { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; padding: 0; cursor: pointer;
|
|
background: var(--panel-2); border: 1px solid var(--line); color: inherit; opacity: .55; }
|
|
.pray-btn .gi { width: 22px; height: 22px; }
|
|
.pray-btn.on { opacity: 1; border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
|
|
@media (max-width: 900px) {
|
|
.combat-frame { display: flex; flex-direction: column; gap: 16px; }
|
|
.you-side { display: contents; }
|
|
.you-side > .fighter { order: 1; } .foe-side { order: 2; } .prayer-bar { order: 3; } .you-side > .doll-wrap { order: 4; }
|
|
}
|
|
.bar.mini.foe > span { background: var(--bad); }
|
|
.pill { padding: 3px 10px 3px 3px; }
|
|
.pill .dmg { border-radius: 50%; }
|
|
|
|
/* The doll's side: slot details on top, combat stats pinned to the bottom */
|
|
.doll-wrap { align-items: stretch; }
|
|
.doll-side { display: flex; flex-direction: column; gap: 12px; }
|
|
.doll-slot-info { display: grid; gap: 10px; }
|
|
.doll-col { display: grid; gap: 10px; align-content: start; }
|
|
.combat-stats { margin: 0; padding: 6px 8px; gap: 4px 6px; }
|
|
.combat-stats .gstat { gap: 4px; font-size: 12px; }
|
|
.combat-stats .gi { width: 14px; height: 14px; }
|
|
.slot-type { position: absolute; bottom: -4px; left: -4px; }
|
|
.slot-type .dmg { width: 16px; height: 16px; background: var(--panel); border-radius: 4px; }
|
|
.doll-slot .slot-type .gi { width: 11px; height: 11px; }
|
|
.doll { align-self: start; }
|
|
.doll-slot.swap { flex: none; }
|
|
.doll-slot.starving { border-color: rgba(226, 100, 92, .7); background: rgba(226, 100, 92, .12); }
|
|
.doll-slot.starving .gi { opacity: .9; }
|
|
@media (max-width: 520px) { .doll-col { justify-items: center; } }
|