/* Realm site. Dark only. Layout after circinus.sh; art, frames and fonts from the realm's game
   files, served by the site under /art and /fonts. Without game data the page falls back to plain
   borders and Georgia, and still reads. */

@font-face { font-family: "Exocet"; src: url(/fonts/exocet.otf) format("opentype"); font-display: swap; }
@font-face { font-family: "Formal"; src: url(/fonts/formal.ttf) format("truetype"); font-display: swap; }

:root {
  --bg: #0b0a08; --dir: #100e0b; --panel: #16130f; --raised: #211b14; --well: #070605;
  --ink: #ece4d2; --ink2: #c2b59c; --ink3: #93876f;
  --rule: #2a241b; --rule2: #463b29;
  --gold: #c7b377; --goldhi: #e8d7a6; --golddim: #7d6a3f;
  --bad: #e8604f; --ok: #8fbf6a; --warn: #ffa31a;
  --q-unique: #c7b377; --q-set: #3fd43f; --q-magic: #8484ff; --q-rare: #ffff6e; --q-crafted: #ffa31a; --q-white: #ece4d2; --q-grey: #8f8f8f;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: #e4d3a2; text-decoration: underline; text-decoration-color: var(--golddim); text-underline-offset: 3px; }
a:hover { color: #fff3cf; text-decoration-color: #e4d3a2; }
:focus-visible { outline: 2px solid var(--goldhi); outline-offset: 2px; }
.d2 { font-family: "Exocet", Georgia, serif; letter-spacing: .02em; }
.hi { color: var(--goldhi); font-weight: 400; }
.bad { color: var(--bad); }

.site {
  display: flex; flex-wrap: wrap; align-items: stretch; min-height: 100vh;
  font-family: "Formal", Georgia, serif; font-size: 16px; line-height: 1.5;
  background: linear-gradient(rgba(11, 10, 8, .93), rgba(11, 10, 8, .93)), url(/art/panel/texture.png) var(--bg);
  background-size: auto, 240px 240px;
}

/* directory */
.dir {
  flex: 1 1 266px; max-width: 266px; min-width: 240px; padding: 20px 16px 24px;
  background: linear-gradient(rgba(16, 14, 11, .9), rgba(16, 14, 11, .9)), url(/art/panel/texture.png) var(--dir);
  border-style: solid; border-width: 0 7px 0 0; border-color: var(--rule2);
  border-image: url(/art/panel/dialog.png) 8 stretch;
}
.dir-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dir .menu { display: none; }
.brand { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.brand b { font-family: "Exocet", Georgia, serif; font-weight: 400; font-size: 23px; color: var(--goldhi); letter-spacing: .03em; line-height: 1.1; }
.brand span { font-family: "Exocet", Georgia, serif; font-size: 11.5px; color: var(--ink3); letter-spacing: .06em; }
.search, .field {
  display: flex; align-items: center; background: var(--well);
  border: 3px solid var(--rule2); border-image: url(/art/panel/field.png) 3 stretch;
}
.search { margin: 16px 0 4px; }
.field { max-width: 100%; }
.search input, .field input, .field select {
  border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 14.5px; padding: 6px 8px; width: 100%; min-width: 0;
}
.field select option { background: var(--well); }
.search input::placeholder, .field input::placeholder { color: var(--ink3); }
.search input:focus, .field input:focus, .field select:focus { outline: none; }
.search:focus-within, .field:focus-within { outline: 2px solid var(--golddim); }
.kbd { font-family: "Exocet", Georgia, serif; font-size: 11px; color: var(--ink3); border: 1px solid var(--rule2); padding: 0 6px; margin-right: 6px; }
.dir h2 { font-family: "Exocet", Georgia, serif; font-weight: 400; font-size: 12.5px; letter-spacing: .06em; color: var(--ink3); margin: 0; padding: 16px 0 6px; border-bottom: 1px solid var(--rule); }
.dir ul { list-style: none; margin: 0; padding: 0; }
.dir li a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink2); font-size: 15.5px; padding: 6px 8px; border-bottom: 1px solid var(--rule); }
.dir li a:hover { color: var(--ink); background: var(--panel); }
.dir li a.on { color: var(--goldhi); background: var(--raised); }
.dir li a .n { font-family: "Exocet", Georgia, serif; font-size: 12px; color: var(--ink3); }
.act { display: block; text-align: center; text-decoration: none; font-family: "Exocet", Georgia, serif; font-size: 14.5px; letter-spacing: .04em; padding: 9px 10px; margin-top: 16px; border: 1.5px solid transparent; }
.act.primary { background: var(--gold); color: #140f08; border-color: var(--goldhi); }
.act.primary:hover { color: #140f08; background: var(--goldhi); }
.act.secondary { border-color: var(--rule2); color: var(--ink); margin-top: 8px; }
.who { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 18px; font-size: 14px; color: var(--ink3); }
.linkish { border: 0; background: none; padding: 0; font: inherit; color: #e4d3a2; text-decoration: underline; text-decoration-color: var(--golddim); text-underline-offset: 3px; cursor: pointer; text-align: left; }

/* document */
.doc { flex: 999 1 560px; min-width: 0; }
.docin { max-width: 1090px; padding: 26px 34px 70px; }
.docin.docin-wide { max-width: 1200px; }
.crumb { font-family: "Exocet", Georgia, serif; font-size: 12.5px; letter-spacing: .04em; color: var(--ink3); margin-bottom: 12px; }
.crumb a { color: var(--ink3); }
h1, h2, h3 { margin: 0; font-weight: 400; font-family: "Exocet", Georgia, serif; color: var(--goldhi); letter-spacing: .02em; }
h1 { font-size: 30px; line-height: 1.15; }
h2 { font-size: 21px; line-height: 1.25; }
h2.sub-h { font-size: 17px; margin-top: 18px; color: var(--ink2); }
.blk { display: grid; grid-template-columns: minmax(0, 62ch) 246px; gap: 34px; padding: 22px 0 24px; border-bottom: 1px solid var(--rule); align-items: start; }
.blk .body > * + * { margin-top: 12px; }
.blk p, .lede { color: var(--ink2); font-size: 16.5px; margin: 0; }
.lede { max-width: 62ch; margin-top: 8px; }
.lead h1 + .lede { margin-top: 6px; }
.note { font-size: 14px; color: var(--ink3); margin: 0; }
.note.warn { color: var(--warn); margin-top: 10px; }
.notice { font-size: 15px; padding: 8px 12px; border: 1px solid var(--rule2); background: var(--panel); margin: 0; }
.notice.ok { border-color: #3d5a2c; color: #cfe6bf; }
.notice.bad { border-color: #6e2a20; color: #f3c3ba; }
.gut { font-size: 14px; color: var(--ink3); box-shadow: inset 1px 0 0 var(--rule); padding: 4px 2px 10px 18px; }
.gut:empty { box-shadow: none; }
.gut p { margin: 0; font-size: 14px; color: var(--ink3); }
.gut .big { display: block; font-family: "Exocet", Georgia, serif; color: var(--goldhi); font-size: 26px; line-height: 1.1; }
.gut .cap { display: block; margin: 0 0 8px; font-family: "Exocet", Georgia, serif; font-size: 12px; letter-spacing: .05em; }
.gut .cap ~ .cap { margin-top: 16px; }
.gut .row { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.gut .row b { font-family: "Exocet", Georgia, serif; font-weight: 400; color: var(--ink); font-size: 14px; text-align: right; }
.wide { padding: 22px 0 24px; border-bottom: 1px solid var(--rule); }
.wide.lead { border-bottom: 0; padding-bottom: 6px; }
.slug { font-family: "Exocet", Georgia, serif; font-size: 12.5px; letter-spacing: .05em; color: var(--ink3); margin-bottom: 10px; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.slug a { color: var(--ink2); }
.btns { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.find { margin-top: 10px; }
.nowrap { white-space: nowrap; }

/* tables */
.scroll { overflow-x: auto; }
table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15.5px; }
table.compact { min-width: 420px; }
th { text-align: left; font-family: "Exocet", Georgia, serif; font-weight: 400; font-size: 12.5px; letter-spacing: .04em; color: var(--ink3); padding: 0 10px 7px; border-bottom: 1px solid var(--rule2); white-space: nowrap; }
td { padding: 7px 10px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
th.r, td.r { text-align: right; }
tbody tr:hover { background: rgba(199, 179, 119, .06); }
td.rank { font-family: "Exocet", Georgia, serif; font-size: 12.5px; color: var(--ink3); width: 30px; }
td.v { font-family: "Exocet", Georgia, serif; font-size: 15px; color: var(--ink); }
td.sub { font-family: "Exocet", Georgia, serif; font-size: 12.5px; color: var(--ink3); }
td.nm a { color: var(--ink); text-decoration: none; }
td.nm a:hover { text-decoration: underline; }
td form { margin: 0; }
.xp { display: inline-block; width: 96px; height: 6px; background: var(--rule); vertical-align: middle; margin-right: 9px; border: 1px solid #000; }
.xp i { display: block; height: 100%; background: var(--gold); }
.tag { font-family: "Exocet", Georgia, serif; font-size: 12px; letter-spacing: .03em; white-space: nowrap; color: var(--ink3); }
.tag.bad { color: var(--bad); } .tag.warn { color: var(--warn); } .tag.ok { color: var(--ok); }
.chip { display: inline-block; font-family: "Exocet", Georgia, serif; font-size: 12px; padding: 1px 7px; border: 1px solid var(--rule2); margin: 2px 4px 2px 0; color: var(--ink2); }
.chip.warn { color: var(--warn); border-color: var(--warn); }
.skill { width: 28px; height: 28px; vertical-align: middle; margin-right: 10px; border: 1px solid #000; }

/* filters (links styled as buttons) */
.filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 4px 0 14px; align-items: center; }
.filters .lbl { font-family: "Exocet", Georgia, serif; font-size: 12.5px; color: var(--ink3); margin-right: 4px; }
.filters a { border: 1px solid var(--rule2); color: var(--ink2); font-family: "Exocet", Georgia, serif; font-size: 13px; letter-spacing: .03em; padding: 5px 12px; text-decoration: none; }
.filters a:hover { color: var(--ink); border-color: var(--golddim); }
.filters a.on { background: var(--gold); color: #140f08; border-color: var(--gold); }
.filters .sep { width: 14px; }

/* buttons, frames, fields */
.btn { display: inline-block; font-family: "Exocet", Georgia, serif; font-size: 14px; letter-spacing: .04em; padding: 8px 16px; border: 1.5px solid var(--goldhi); background: var(--gold); color: #140f08; cursor: pointer; text-decoration: none; line-height: 1.4; }
.btn:hover { background: var(--goldhi); color: #140f08; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule2); }
.btn.ghost:hover { border-color: var(--golddim); color: var(--goldhi); }
.btn.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn.small { font-size: 12.5px; padding: 4px 10px; }
.framed { border: 8px solid var(--rule2); border-image: url(/art/panel/dialog.png) 8 fill round; padding: 14px 18px; background: var(--panel); }
.framed p + p { margin-top: 10px; }
.steps .n { color: var(--goldhi); }
.ticket { margin-top: 16px; max-width: 460px; }
.ticket .note { margin-top: 6px; }
label.lab, .lab { display: block; font-family: "Exocet", Georgia, serif; font-size: 12.5px; letter-spacing: .04em; color: var(--ink3); margin: 12px 0 5px; }
.lab.inline { display: inline; margin: 0 6px 0 0; }
.code { font-family: "Exocet", Georgia, serif; font-size: 30px; letter-spacing: .12em; color: var(--goldhi); }
.pending { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.pending .pair { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

/* feed */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.feed .when { font-family: "Exocet", Georgia, serif; font-size: 12px; color: var(--ink3); min-width: 42px; }
.feed .art { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; flex: none; }
.feed .art img { max-width: 34px; max-height: 34px; }
.feed .what { color: var(--ink2); font-size: 15.5px; }
.feed .what b { font-weight: 400; color: var(--ink); }

.q-unique { color: var(--q-unique); } .q-set { color: var(--q-set); } .q-magic { color: var(--q-magic); } .q-rare { color: var(--q-rare); }
.q-crafted { color: var(--q-crafted); } .q-white { color: var(--q-white); } .q-grey { color: var(--q-grey); }

/* armory */
.armory { display: grid; grid-template-columns: minmax(0, auto) minmax(200px, 246px); gap: 30px; align-items: start; }
.armory-main { container-type: inline-size; min-width: 0; }
.armory .gut { padding-top: 44px; }
.view { position: relative; display: flex; gap: 6px; align-items: flex-start; }
.panel {
  position: relative; flex: none; container-type: inline-size;
  width: min(calc(var(--w) * 1.2px), calc((100cqw - 6px) * var(--w) / var(--tw, 698)));
  aspect-ratio: var(--w) / var(--h);
  background: var(--well);
}
.panel img.bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; }
.lp { display: none; }
.view[data-tab="stash"] .lp.stash, .view[data-tab="cube"] .lp.cube, .view[data-tab="charms"] .lp.charms { display: block; }
.view[data-tab="inventory"] .lp:first-child { display: block; }
.phead { position: absolute; font-family: "Exocet", Georgia, serif; font-size: 3.4cqw; letter-spacing: .03em; color: var(--ink); text-align: center; white-space: nowrap; overflow: hidden; pointer-events: none; }
.phead.gold { color: var(--gold); }
.it { position: absolute; padding: 0; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; overflow: visible; }
.it img { display: block; height: auto; max-width: none; pointer-events: none; }
.it.on, .it:hover, .it:focus-visible { background: rgba(42, 128, 52, .42); outline: none; }
/* An item whose graphic isn't in the realm's game files: a cell tinted in its quality colour. */
.it.noart { outline: 1px solid currentColor; outline-offset: -3px; }
.it.noart::before { content: ""; position: absolute; inset: 3px; background: currentColor; opacity: .16; }
.it.swap { display: none; }
.view.swapped .it.swap { display: flex; }
.view.swapped .inv .it[data-loc="main"] { display: none; }
.tabs { display: flex; margin: 0 0 8px; border: 1px solid var(--rule2); width: max-content; max-width: 100%; }
.tabs a { color: var(--ink3); font-family: "Exocet", Georgia, serif; font-size: 13px; letter-spacing: .04em; padding: 6px 14px; text-decoration: none; }
.tabs a + a { border-left: 1px solid var(--rule2); }
.tabs a.on { background: var(--raised); color: var(--goldhi); }
.tabs a.ph { display: none; }
.armory-main > .note { margin-top: 10px; }
.tip {
  position: absolute; z-index: 5; background: rgba(0, 0, 0, .86); padding: 10px 16px 12px;
  font-family: "Exocet", Georgia, serif; font-size: 14px; line-height: 1.38; text-align: center; letter-spacing: .02em;
  width: max-content; max-width: 330px; pointer-events: none; outline: 1px solid rgba(199, 179, 119, .25);
}
.tip .l { color: var(--q-magic); }
.tip .w { color: var(--ink); }
.tip .r { color: var(--bad); }
.tip .p { color: #c77fe6; }
.tip .n { font-size: 15.5px; }
.merc { display: flex; flex-wrap: wrap; gap: 4px; }
.merc .it { position: relative; width: 58px; height: 58px; background: var(--well); border: 1px solid var(--rule2); }
.merc .it img { max-width: 52px; max-height: 52px; }
details.all summary { cursor: pointer; list-style: none; font-family: "Exocet", Georgia, serif; font-size: 12.5px; letter-spacing: .05em; color: var(--ink3); }
details.all summary:hover { color: var(--ink2); }
details.all[open] summary { margin-bottom: 10px; }
details.all summary::-webkit-details-marker { display: none; }
details.all summary::before { content: "▸ "; }
details.all[open] summary::before { content: "▾ "; }

/* admin */
.svc .state { font-family: "Exocet", Georgia, serif; font-size: 13px; }
.dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; vertical-align: middle; background: var(--ok); border: 1px solid #000; }
.dot.bad { background: var(--bad); } .dot.warn { background: var(--warn); }
.logs { max-height: 360px; overflow: auto; background: var(--well); border: 1px solid var(--rule2); padding: 10px 12px; font-size: 12.5px; line-height: 1.45; color: var(--ink2); white-space: pre-wrap; margin: 14px 0 0; }
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); display: flex; align-items: flex-start; justify-content: center; padding: 18vh 16px 0; z-index: 10; }
.modal[hidden] { display: none; }
.popup {
  width: 410px; max-width: 100%; min-height: 245px; background: url(/art/panel/popup.png) center / 100% 100% no-repeat, var(--panel);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 22px 34px; text-align: center;
}
.popup h3 { font-size: 19px; }
.popup p { margin: 0; color: var(--ink2); font-size: 15px; }
.popup .btns { justify-content: center; }

/* holy grail */
.grail { list-style: none; margin: 8px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 8px; }
.grail li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 10px 6px 9px; background: var(--well); border: 1px solid var(--rule); }
.grail li.got { border-color: var(--rule2); background: var(--panel); }
.grail .gart { height: 92px; display: flex; align-items: center; justify-content: center; }
.grail .gart img { max-height: 88px; max-width: 64px; }
.grail li.miss .gart img { filter: grayscale(1) brightness(.55); opacity: .55; }
.grail .gart.eth img { opacity: .62; }
.grail li.miss .gart.eth img { opacity: .35; }
.grail .runes { font-family: "Exocet", Georgia, serif; font-size: 13px; color: var(--q-crafted); letter-spacing: .04em; }
.grail li.miss .runes { color: var(--ink3); }
.grail .gname { font-family: "Exocet", Georgia, serif; font-size: 13px; line-height: 1.25; color: var(--ink3); }
.grail .gsub { font-size: 12.5px; line-height: 1.3; color: var(--ink3); }
.grail-group { font-size: 15px; margin: 14px 0 4px; color: var(--q-set); }

/* hall of honor */
.hall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.hall li a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 12px; text-decoration: none; color: var(--ink2); border: 8px solid var(--rule2); border-image: url(/art/panel/dialog.png) 8 fill round; background: var(--panel); min-height: 100%; }
.hall li a:hover { color: var(--ink); }
.hall-gear { display: flex; gap: 8px; align-items: flex-end; height: 72px; margin-bottom: 6px; }
.hall-gear:empty { display: none; }
.hall-gear img { max-height: 70px; max-width: 46px; }
.hall-name { font-family: "Exocet", Georgia, serif; font-size: 18px; color: var(--goldhi); letter-spacing: .02em; }
.hall-sub { font-size: 14.5px; }
.hall-when { font-family: "Exocet", Georgia, serif; font-size: 12px; color: var(--ink3); margin-top: 4px; }
.recap { margin-top: 14px; }
.recap p { color: var(--ink); font-size: 16px; }
/* season reset progress */
.job-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.job-steps li { display: grid; grid-template-columns: 74px 1fr; column-gap: 10px; align-items: baseline; font-size: 15px; }
.job-steps li .sub { grid-column: 2; color: var(--ink3); font-size: 14px; }
.job-steps li.now b { color: var(--ink3); }

/* admin tabs and plugins */
.admin-tabs { margin-bottom: 6px; }
table.plugins code, .lead code, .upload code, td code { font-family: "Exocet", Georgia, serif; font-size: 13px; letter-spacing: .02em; color: var(--ink); }
.mono { font-family: Consolas, "DejaVu Sans Mono", monospace; letter-spacing: 0; }
.ord { display: inline-flex; gap: 2px; margin-right: 8px; vertical-align: middle; }
.ord .btn { padding: 0 6px; line-height: 1.3; }
.check { display: inline-flex; gap: 6px; align-items: center; font-family: "Exocet", Georgia, serif; font-size: 12.5px; color: var(--ink2); white-space: nowrap; cursor: pointer; }
.check input { accent-color: var(--gold); }
tr.history > td { background: var(--well); }
.warn-box { border-color: #6b4a12; color: #f1d4a0; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.warn-box p { margin: 0; color: inherit; font-size: 15px; }
.editor { width: min(760px, 100%); max-height: 80vh; display: flex; flex-direction: column; gap: 10px; }
.editor textarea { width: 100%; min-height: 50vh; background: var(--well); color: var(--ink); border: 1px solid var(--rule2); font: 13px/1.45 Consolas, "DejaVu Sans Mono", monospace; padding: 10px; resize: vertical; }
.upload input[type=file] { padding: 5px 8px; font-size: 13.5px; }

/* narrower screens */
@media (max-width: 1180px) {
  .armory { grid-template-columns: minmax(0, 1fr); }
  .armory .gut { padding-top: 14px; box-shadow: inset 0 1px 0 var(--rule); padding-left: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); column-gap: 24px; }
  .armory .gut .cap, .armory .gut .merc, .armory .gut p { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .blk { grid-template-columns: 1fr; gap: 14px; }
  .gut { box-shadow: inset 0 1px 0 var(--rule); padding: 14px 0 0; }
  .docin { padding: 20px 16px 48px; }
  .dir { max-width: none; flex-basis: 100%; border-width: 0 0 7px 0; padding: 14px 16px; }
  .dir .menu { display: inline-block; }
  .dir-body { display: none; }
  .dir.open .dir-body { display: block; }
  .brand b { font-size: 20px; }
  h1 { font-size: 27px; }
  table { font-size: 14.5px; }
  .tabs a.ph { display: block; }
  .view { display: block; }
  .panel { width: min(calc(var(--w) * 1.2px), 100cqw); }
  .view .inv { display: none; }
  .view[data-tab="inventory"] .inv { display: block; }
  .view[data-tab="inventory"] .lp:first-child { display: none; }
  .tip { position: static; max-width: none; width: auto; margin-top: 10px; }
}
