guildhall/static/styles.css

801 lines
46 KiB
CSS
Raw Normal View History

: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; }
#top { flex-wrap: wrap; }
.tracked { flex-basis: 100%; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
padding-top: 8px; border-top: 1px solid var(--line); font-size: 13.5px; }
.tracked-name { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0;
font-weight: 650; cursor: pointer; }
.tracked-name .gi { width: 1.4em; height: 1.4em; }
.tracked.ready .tracked-name { color: var(--good); }
.tracked .pin { margin-left: auto; }
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; }
.pin { background: none; border: 0; padding: 0 4px; font-size: 16px; cursor: pointer; vertical-align: middle;
filter: grayscale(1); opacity: .35; }
.pin:hover { opacity: .7; }
.pin.on { filter: none; opacity: 1; }
.action .top .pin { margin-left: auto; align-self: flex-start; font-size: 14px; }
.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); }
.fighter.ally { opacity: 0.85; }
.fighter.ally .bar.hp { height: 6px; }
.fight-log .ally { color: var(--muted); }
.fighting-here { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.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, or below it once
they don't fit beside it (the side keeps its min-content width, so it wraps instead of clipping) */
.doll-wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: start; }
.doll-col { flex: none; }
.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 { flex: 1 1 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; }
.tool-grid { display: grid; grid-auto-flow: column; grid-template-rows: auto auto; justify-content: start; gap: 8px; margin-top: 12px; }
@media (max-width: 520px) { .doll-wrap { justify-content: center; } .doll-side { flex-basis: 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); }
/* Fixed at 7 lines (newest first) so the frame doesn't grow and shrink with the log; older lines drop off the bottom */
.combat-frame .fight-log { margin: 0; line-height: 1.35; height: calc(7 * 1.35em + 12px); min-height: 0; overflow: hidden; }
.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; } .ability-bar { order: 3; } .prayer-bar { order: 3; } .you-side > .doll-wrap { order: 4; }
}
.bar.mini.foe > span { background: var(--bad); }
/* Packs, casts and abilities */
.pack { display: grid; gap: 12px; }
.fighter.out { opacity: .4; }
.fighter[hidden] { display: none; }
.traits-inline { display: inline-flex; gap: 2px; margin-left: 6px; vertical-align: middle; }
.traits-inline .v-res { display: inline-flex; gap: 2px; margin-left: 4px; }
.traits-inline .dmg .gi { width: 13px; height: 13px; }
.traits-inline .yours .dmg { box-shadow: 0 0 0 1.5px var(--gold); border-radius: 50%; }
/* The cast row always holds its space, so bars don't jump as casts come and go */
.cast { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; height: 18px; color: var(--gold); white-space: nowrap; overflow: hidden; }
.cast:empty { visibility: hidden; }
.cast .bar { height: 4px; }
.cast .bar > span { background: var(--gold); transition: none; }
.foe-unit .cast { color: var(--bad); }
.foe-unit .cast .bar > span { background: var(--bad); }
.ability-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ab { position: relative; width: 42px; height: 52px; display: grid; grid-template-rows: 42px 10px; gap: 0; }
.ab-press { position: relative; width: 42px; height: 42px; border-radius: 9px; display: grid; place-items: center; padding: 0;
font-size: 20px; color: inherit; background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; cursor: pointer; }
.ab.auto .ab-press { cursor: default; }
.ab.manual .ab-press { border-color: var(--gold); }
.ab.queued .ab-press { box-shadow: 0 0 0 2px var(--good); }
.ab-mode { justify-self: center; margin-top: -6px; z-index: 1; font-size: 8.5px; font-weight: 800; letter-spacing: .04em; line-height: 1;
padding: 2px 4px; border-radius: 5px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; }
.ab.manual .ab-mode { color: #1a1408; background: var(--gold); border-color: var(--gold); }
.ab.potion { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 9px; background: var(--panel-2);
border: 1px solid var(--line); align-self: start; }
.fighter.aimable { cursor: pointer; border-radius: 8px; }
.fighter.aimed { outline: 2px solid var(--gold); outline-offset: 4px; }
.ab-lv .gi { width: 10px; height: 10px; }
.ab.boosted .ab-press::after { content: "✦"; position: absolute; top: 1px; right: 3px; font-size: 10px; color: var(--gold); }
.unique-text { color: var(--gold); margin-top: 4px; }
/* Damage on the bars: what was just lost trails behind, the last hit or heal by the HP */
.fight .bar.hp { position: relative; }
.fight .bar.hp > .lag { position: absolute; inset: 0 auto 0 0; background: rgba(255, 236, 200, .55); transition: width .25s ease-out; }
.fight .bar.hp > span:not(.lag) { position: relative; }
.hitnum { font-weight: 700; margin-right: 6px; font-variant-numeric: tabular-nums; }
.hitnum.bad { color: var(--bad); }
.hitnum.good { color: var(--good); }
.hitnum.crit { font-size: 1.15em; }
.cast.stopped { color: var(--muted); }
.cast.stopped s { text-decoration-thickness: 2px; }
.eat-below { display: flex; flex-wrap: wrap; gap: 4px; }
.eat-below .btn.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.ab.locked { opacity: .35; filter: grayscale(1); }
.ab.fired .ab-press { box-shadow: 0 0 0 2px var(--gold); }
.ab.spent { opacity: .35; }
.ab .gi { width: 26px; height: 26px; }
.fight-log .gi, .cast .gi, [data-u-status] .gi { width: 15px; height: 15px; vertical-align: -3px; }
.ab-cd { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: rgba(0, 0, 0, .55); pointer-events: none; }
.ab-lv { position: absolute; bottom: 0; right: 2px; font-size: 10px; font-weight: 700; color: var(--muted); filter: none; }
.ab-gap { width: 6px; }
.fight-log .warn { color: var(--gold); }
.run-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.run-head .btn { margin-left: auto; }
.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; } }
/* A skill's potion and tool, side by side */
.gear-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 14px; margin-bottom: 14px; }
.gear-row .panel { margin: 0; }
.gear-card { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; }
.gear-card > .doll-slot { cursor: default; flex: none; }
.gear-text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.gear-card .swap-grid { margin-left: auto; }
/* Happenings that touch this skill */
.happening-banner { margin-bottom: 14px; align-items: center; }
.happening-banner .banner-ico { font-size: 30px; }
.happening-banner b { font-size: 15px; }
.banner.good { border-color: rgba(95, 174, 90, .55); background: rgba(95, 174, 90, .08); }
.happening-banner { flex-wrap: wrap; }
.happening-banner .grow { min-width: min(260px, 70%); }
.happening-banner > .btn { margin-left: auto; }
/* Work orders */
.badge { background: var(--gold); color: var(--bg); border-radius: 99px; font-size: 11px; font-weight: 800; padding: 1px 7px; }
.order .top { align-items: flex-start; }
.ro-req { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 13px; }
.ro-req.bad { color: var(--bad); }
.ro-req .gi { width: 16px; height: 16px; }
.ro-slots { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0; }
.ro-slot { display: grid; justify-items: center; gap: 3px; font-size: 11px; }
.ro-slot .doll-slot { width: 46px; height: 46px; }
.ro-slot .doll-slot .gi { width: 30px; height: 30px; }
.ro-slot.filled .doll-slot { border-color: rgba(95, 174, 90, .7); background: rgba(95, 174, 90, .1); }
.doll-slot.empty-req { border-style: dashed; background: transparent; }
.ro-slot.paid .doll-slot { cursor: default; opacity: .55; }
.doll-slot.empty-req .gi { opacity: .45; }
.tick { position: absolute; bottom: -5px; right: -5px; background: var(--good); color: var(--bg); border-radius: 50%; width: 15px; height: 15px;
font-size: 10px; display: grid; place-items: center; font-weight: 900; }
.ro-have { font-weight: 700; }
.ro-have.good { color: var(--good); } .ro-have.bad { color: var(--bad); }
.ro-reward { font-weight: 700; }
.order .foot { gap: 8px; }
.ro-slots.big .doll-slot { width: 56px; height: 56px; } .ro-slots.big .doll-slot .gi { width: 36px; height: 36px; }
.compose-grid { display: grid; grid-template-columns: 1fr 1.3fr .8fr; gap: 26px; align-items: start; }
.compose select { width: 100%; }
.ro-pick { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.ro-pick .doll-slot { cursor: default; }
.ro-pick > .doll-slot .gi { width: 34px; height: 34px; } .ro-pick .small .gi { width: 14px; height: 14px; }
.stepper { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.stepper input { width: 90px; }
.reward-input { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.reward-input input { width: 110px; }
@media (max-width: 900px) { .compose-grid { grid-template-columns: 1fr; gap: 14px; } }
.compose .why { color: var(--warn); font-weight: 600; font-size: 13px; }
.picker { display: grid; gap: 10px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.pick-skills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pick-skill { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; }
.pick-skill .gi { width: 24px; height: 24px; }
.pick-skill.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.pick-skills input { margin-left: auto; width: 160px; }
.tabs.sm { margin: 0; gap: 4px; }
.tabs.sm .tab { padding: 3px 10px; font-size: 13px; }
.pick-grid { gap: 9px; }
.doll-slot.pick.nobody > .gi { opacity: .35; }
.pick-lvl { position: absolute; bottom: -5px; right: -5px; font-size: 10px; font-weight: 700; line-height: 1; padding: 2px 4px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); }
.doll-slot.pick.on .pick-lvl { border-color: var(--gold); }
.doll-slot.pick.on .pick-lvl { color: var(--gold); }
.pick-name, .ro-name { display: none; }
/* No hover, no tooltips: name every pickable item and reagent. */
@media (hover: none) {
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.doll-slot.pick { width: auto; height: auto; min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 5px 8px; text-align: left; }
.doll-slot.pick > .gi { flex: none; }
.pick-name { display: block; flex: 1; min-width: 0; font-size: 13px; line-height: 1.25; }
.pick-name .muted { display: block; font-size: 11px; }
.doll-slot.pick .pick-lvl { left: 26px; right: auto; bottom: 3px; }
.doll-slot.pick.nobody .pick-name { opacity: .55; }
.ro-name { display: block; max-width: 72px; font-size: 10.5px; line-height: 1.2; text-align: center; color: var(--muted); }
}
/* --- fires ------------------------------------------------------------ */
.nav .fdot, .pip, .logbtn .swatch {
width: 9px; height: 12px; flex: none; border-radius: 50% 50% 45% 45% / 65% 65% 35% 35%;
background: var(--c); box-shadow: 0 0 7px var(--c);
}
.fire-pips { gap: 5px; }
.pip { display: inline-block; background: var(--line); box-shadow: none; }
.pip.lit { background: radial-gradient(circle at 50% 75%, #fff 0 18%, var(--c) 55%); box-shadow: 0 0 8px var(--c); }
.pip.low { animation: fire-low 1.1s ease-in-out infinite; }
@keyframes fire-low { 50% { opacity: .35; } }
.item-chip.paid { color: var(--muted); }
.item-chip s { color: var(--muted); }
.tag.flame { color: var(--c); border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.fire-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fire-tools .logs { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.logbtn {
display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px;
border: 1px solid var(--line); background: var(--panel-2); font-size: 13.5px; font-variant-numeric: tabular-nums;
}
.logbtn .swatch { width: 8px; height: 11px; }
.logbtn .gi { width: 1.25em; height: 1.25em; }
.logbtn.on { border-color: var(--c); box-shadow: 0 0 0 1px var(--c) inset; }
.logbtn:disabled { opacity: .35; cursor: not-allowed; }
.fire-tools .tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; padding: 3px 9px; }
.fire-tools .tag .gi { width: 1.2em; height: 1.2em; }
.fire-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); }
.fire-card {
background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
display: flex; flex-direction: column; transition: border-color .4s, box-shadow .4s;
}
.fire-card.lit { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); box-shadow: 0 10px 40px -18px var(--c); }
.fire-card.active { border-color: var(--good); box-shadow: 0 0 0 1px var(--good) inset, 0 10px 40px -18px var(--c); }
.fire-stage {
position: relative; height: 130px;
background: radial-gradient(120% 90% at 50% 100%, color-mix(in srgb, var(--c) 22%, #0e0f14) 0%, #0e0f14 70%);
}
.fire-card.out .fire-stage { background: radial-gradient(120% 90% at 50% 100%, #1b1c22 0%, #0e0f14 70%); }
.fire-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.fire-state {
position: absolute; top: 8px; right: 8px; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 99px;
background: rgba(14, 15, 20, .75); border: 1px solid var(--line);
}
.fire-state.low { color: var(--warn); border-color: rgba(227, 160, 67, .5); }
.fire-state.out { color: var(--muted); }
.fire-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.fire-head { display: flex; align-items: center; gap: 8px; }
.fire-head .gi { width: 22px; height: 22px; flex: none; }
.fire-head b { flex: 1; }
.fuel { height: 10px; background: var(--bg); border-radius: 99px; overflow: hidden; display: flex; }
.fuel i { display: block; height: 100%; background: var(--c); }
.fire-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fire-line b { color: var(--text); font-weight: 600; }
.fire-line .gi { width: 1.2em; height: 1.2em; vertical-align: -0.25em; }
.fire-body .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; }
.fire-body .why { font-size: 13px; color: var(--warn); }
.fire-band {
position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
padding: 10px 16px; margin-bottom: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel);
}
.fire-band > .gi { width: 26px; height: 26px; flex: none; }
.fire-band.lit { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); }
.fire-band.lit::before {
content: ""; position: absolute; inset: 0; pointer-events: none;
background: radial-gradient(60% 140% at 0% 50%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%);
animation: fire-flicker 2.6s ease-in-out infinite;
}
.fire-band > * { position: relative; }
@keyframes fire-flicker { 0%, 100% { opacity: .95; } 30% { opacity: .7; } 55% { opacity: 1; } 75% { opacity: .8; } }
@media (prefers-reduced-motion: reduce) {
.pip.low, .fire-band.lit::before { animation: none; }
}
/* --- gold: banners, the caravan, monuments ----------------------------- */
.crest { vertical-align: middle; flex: none; }
.title { color: var(--gold); font-size: 13px; }
.wares { display: flex; flex-direction: column; gap: 8px; }
.ware { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--panel-2); border-radius: 8px; }
.ware > .gi { width: 28px; height: 28px; flex: none; }
.ware .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ware select { margin-top: 4px; max-width: 220px; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch { display: inline-block; width: 28px; height: 28px; border-radius: 6px; border: 2px solid var(--line); padding: 0; flex: none; }
button.swatch { width: 36px; height: 36px; }
.swatch.on { border-color: var(--text); }
.look-preview { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.favour-option .bar { margin-top: 4px; }