/* The calculator pages: what you put in on the left, what comes out on the right, both in client windows.
   The answer that matters is big and gold; supporting numbers are plain; things that do not apply are dim. */
.calc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 18px; align-items: start; }
.calc.wide { grid-template-columns: minmax(0, 1fr); }
.fld { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 7px 0; border-top: 1px solid #1b1c1f; }
.fld:first-of-type { border-top: 0; }
.fld > span { font: 700 12px/1.3 var(--game); color: #c9ccd3; text-shadow: 1px 1px 0 #000; }
.fld > span small { display: block; margin-top: 2px; font: 400 12px/1.35 var(--body); color: var(--dim); text-shadow: none; }
.fld input[type=number], .fld input[type=text], .fld select, textarea.paste { padding: 6px 8px; border: 1px solid #000; background: #17181b; color: var(--gold2);
  font: 700 14px/1.2 var(--game); box-shadow: inset 1px 1px 0 #0a0a0b, inset -1px -1px 0 #55585f; outline: none; }
.fld input[type=number] { width: 112px; text-align: right; }
.fld select { max-width: 220px; color: var(--text); font-size: 12.5px; }
.fld input:focus, .fld select:focus, textarea.paste:focus { box-shadow: inset 0 0 0 1px var(--gold); }
.fld input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--gold); }
.fld input[type=range] { width: 100%; grid-column: 1 / -1; accent-color: var(--gold); }
.vocpick { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 8px; }
.vocpick button { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 3px 10px 3px 6px; border: 1px solid #000; background: linear-gradient(#4a4d54, #303237);
  color: #cfd2d8; font: 700 11.5px/1 var(--game); text-shadow: 1px 1px 0 #000; cursor: pointer; box-shadow: inset 1px 1px 0 #7b7e86, inset -1px -1px 0 #1c1d20; }
.vocpick button img { height: 28px; image-rendering: pixelated; }
.vocpick button.cur { background: linear-gradient(#f0c565, #b98a2c); color: #1a1407; text-shadow: 0 1px 0 rgba(255,255,255,.35); box-shadow: inset 1px 1px 0 #ffe7a8, inset -1px -1px 0 #6b4e14; }
.out { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 7px 0; border-top: 1px solid #1b1c1f; }
.out:first-child { border-top: 0; }
.out span { color: var(--muted); font-size: 13.5px; }
.out b { font: 700 14px/1.2 var(--game); color: var(--text); text-align: right; text-shadow: 1px 1px 0 #000; }
.out.big b { font: 400 30px/1 var(--title); color: var(--gold); text-shadow: 0 2px 0 #000; }
.out.big span { color: var(--text); font-weight: 600; }
.out.dim span, .out.dim b { color: var(--dim); }
.out.good b { color: var(--on); } .out.warn b { color: var(--warn); }
.say { margin: 12px 0 0; }
.how { margin: 16px 0 0; color: var(--dim); font-size: 12.5px; line-height: 1.55; }
.how b { color: var(--muted); font-weight: 600; }
textarea.paste { width: 100%; min-height: 220px; resize: vertical; color: var(--text); font: 12px/1.45 var(--game); }
table.tt { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tt th { text-align: left; padding: 6px 8px; font: 700 11px/1.2 var(--game); color: #a9adb7; background: #222428; border: 1px solid #000; }
table.tt td { padding: 6px 8px; border: 1px solid #000; background: #1e2023; }
table.tt td.n, table.tt th.n { text-align: right; font-family: var(--game); }
table.tt tr.sum td { background: #2c2616; color: var(--gold2); font-weight: 700; }
.pay { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; margin-bottom: 2px; background: #222428; border: 1px solid #000; box-shadow: inset 1px 1px 0 #3d4046; }
.pay code { flex: 1 1 260px; color: var(--look); font: 700 12.5px/1.3 var(--game); text-shadow: 1px 1px 0 #000; user-select: all; }
.pay .btn { min-height: 26px; padding: 4px 10px; font-size: 11px; }

/* the supplies planner: items in slots, a count each, and the weight bar */
.sup { display: grid; grid-template-columns: 38px minmax(0, 1fr) 96px; gap: 4px 10px; align-items: center; padding: 6px 0; border-top: 1px solid #1b1c1f; }
.sup b { display: block; font: 700 12px/1.25 var(--game); color: #c9ccd3; text-shadow: 1px 1px 0 #000; }
.sup small { color: var(--dim); font-size: 12px; }
.sup input[type=number] { width: 96px; padding: 5px 7px; border: 1px solid #000; background: #17181b; color: var(--gold2); font: 700 13px/1.2 var(--game); text-align: right;
  box-shadow: inset 1px 1px 0 #0a0a0b, inset -1px -1px 0 #55585f; }
.sup input[type=range] { grid-column: 2 / -1; width: 100%; accent-color: var(--gold); }
.sup.zero b { color: var(--dim); } .sup.zero .slot img { filter: grayscale(.8) brightness(.7); }
.grp { margin: 14px 0 4px; font: 700 11px/1 var(--game); color: var(--gold); text-shadow: 1px 1px 0 #000; }
.capbar { position: relative; height: 16px; margin: 10px 0 4px; border: 1px solid #000; background: #17181b; box-shadow: inset 1px 1px 0 #0a0a0b; }
.capbar i { display: block; height: 100%; background: linear-gradient(#f0c565, #b98a2c); }
.capbar.over i { background: linear-gradient(#ff7b6b, #b3261e); }
.pickrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pickrow select { flex: 1 1 200px; min-width: 0; padding: 6px 8px; border: 1px solid #000; background: #17181b; color: var(--text); font: 12.5px/1.2 var(--game); }

/* the list of tools */
.tgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tcard { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; color: var(--text);
  background: #2b2d31; border: 1px solid #000; box-shadow: inset 1px 1px 0 #6c6f76, inset -1px -1px 0 #0b0c0e; }
.tcard:hover { text-decoration: none; box-shadow: inset 1px 1px 0 var(--gold), inset -1px -1px 0 #6b4e14; }
.tcard b { display: block; font: 400 20px/1.1 var(--title); color: var(--gold); text-shadow: 0 2px 0 #000; }
.tcard span.d { display: block; margin-top: 2px; color: #a9adb7; font-size: 12.5px; line-height: 1.35; }
.tcard.soon { background: #222428; box-shadow: inset 1px 1px 0 #3d4046; }
.tcard.soon b { color: #8b8f99; } .tcard.soon .slot img { filter: grayscale(.8) brightness(.75); }
.tcard .chip { margin-top: 6px; }

@media (max-width: 900px) { .calc { grid-template-columns: minmax(0, 1fr); } .tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tgrid { grid-template-columns: minmax(0, 1fr); } .fld input[type=number] { width: 96px; } }

.out b { overflow-wrap: anywhere; min-width: 0; }

/* ---- what to cast. An element or spell the creature is weak to is green and bright; normal is plain; resisted is dim;
   immune is dim and struck through; a spell above your level is faded with a dashed "level N" tag. */
.find { position: relative; margin-top: 8px; }
.find input { width: 100%; padding: 8px 10px; border: 1px solid #000; background: #17181b; color: var(--gold2); font: 700 14px/1.2 var(--game);
  box-shadow: inset 1px 1px 0 #0a0a0b, inset -1px -1px 0 #55585f; outline: none; }
.find input:focus { box-shadow: inset 0 0 0 1px var(--gold); }
.find .hits { max-height: 320px; overflow-y: auto; margin-top: 4px; border: 1px solid #000; background: #1b1c1f; }
.find .hits:empty { display: none; }
.find .hit { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; min-height: 44px; padding: 3px 8px; border: 0; border-bottom: 1px solid #000;
  background: none; color: var(--text); text-align: left; cursor: pointer; font: 700 12px/1.3 var(--game); }
.find .hit:hover { background: #2c2616; color: var(--gold2); }
.find .hit img { max-width: 38px; max-height: 38px; image-rendering: pixelated; justify-self: center; }
.find .hit small { color: var(--muted); font-weight: 600; }
.cre { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: center; margin: 12px 0 2px; padding: 10px; background: #222428; border: 1px solid #000; box-shadow: inset 1px 1px 0 #3d4046; }
.cre .pic { display: grid; place-items: center; width: 84px; height: 84px; background: #17181b; border: 1px solid #000; box-shadow: inset 1px 1px 0 #0a0a0b, inset -1px -1px 0 #55585f; }
.cre .pic img { max-width: 76px; max-height: 76px; image-rendering: pixelated; }
.cre b { display: block; font: 400 26px/1.05 var(--title); color: var(--gold); text-shadow: 0 2px 0 #000; overflow-wrap: anywhere; }
.cre span { display: block; margin-top: 4px; color: var(--muted); font: 600 12.5px/1.4 var(--game); }
.cre .boss { color: var(--yell); font-style: normal; }
.els { margin: 2px 0 12px; }
.elr { display: grid; grid-template-columns: 20px 74px minmax(0, 1fr) 52px 64px; gap: 10px; align-items: center; padding: 5px 0; border-top: 1px solid #1b1c1f; }
.elr:first-child { border-top: 0; }
.elr img { width: 18px; height: 18px; }
.elr b { font: 700 12.5px/1.2 var(--game); color: #c9ccd3; text-shadow: 1px 1px 0 #000; }
.elr .bar { position: relative; height: 12px; border: 1px solid #000; background: #17181b; }
.elr .bar i { display: block; height: 100%; background: linear-gradient(#8a8e98, #5b5f68); }
.elr .bar::after { content: ""; position: absolute; top: -3px; bottom: -3px; left: 66.667%; width: 1px; background: #a9adb7; }
.elr em { font: 700 13px/1 var(--game); font-style: normal; text-align: right; color: var(--text); }
.elr small { font: 700 10.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.elr.weak b, .elr.weak em { color: var(--on); } .elr.weak .bar i { background: linear-gradient(#5fe39a, #1f8f52); } .elr.weak small { color: var(--on); }
.elr.resists b, .elr.resists em { color: var(--muted); } .elr.resists .bar i { background: #3d4046; }
.elr.immune b { color: var(--dim); text-decoration: line-through; } .elr.immune em { color: var(--dim); } .elr.immune img { filter: grayscale(1) brightness(.6); }
.elr.immune .bar { background: repeating-linear-gradient(135deg, #17181b 0 5px, #26282c 5px 10px); }
.sph { margin: 16px 0 6px; font: 700 10.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sp { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto 62px; gap: 4px 12px; align-items: center; padding: 6px 8px 6px 6px; margin-bottom: 2px;
  background: #222428; border: 1px solid #000; border-left: 3px solid #3d4046; box-shadow: inset 1px 1px 0 #3d4046; }
.sp .ic { display: grid; place-items: center; width: 38px; height: 38px; background: #17181b; border: 1px solid #000; }
.sp .ic img { max-width: 32px; max-height: 32px; image-rendering: pixelated; } .sp .ic img.gem { width: 20px; height: 20px; }
.sp b { display: block; font: 700 13px/1.3 var(--game); color: #c9ccd3; text-shadow: 1px 1px 0 #000; }
.sp .w { border: 0; padding: 4px 0; min-height: 24px; background: none; cursor: pointer; font: 700 12px/1.3 var(--game); color: var(--say); text-shadow: 1px 1px 0 #000; text-align: left; }
.sp .w:hover { color: #fff; }
.sp .m { color: var(--muted); font: 600 11.5px/1.4 var(--game); text-align: right; white-space: nowrap; }
.sp .h { text-align: right; font: 400 24px/1 var(--title); color: var(--text); text-shadow: 0 2px 0 #000; }
.sp .h small { display: block; margin-top: 2px; font: 700 10px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); text-shadow: none; }
.sp .tag { display: inline-block; margin-left: 6px; padding: 1px 5px; border: 1px dashed #55585f; color: var(--muted); font: 600 10.5px/1.3 var(--body); font-style: normal; vertical-align: 1px; text-shadow: none; text-decoration: none; }
.sp.weak { border-left-color: var(--on); } .sp.weak b { color: var(--gold2); } .sp.weak .h, .sp.weak .h small { color: var(--on); }
.sp.resists b, .sp.resists .h { color: var(--muted); }
.sp.immune { background: #1c1d20; } .sp.immune b { color: var(--dim); text-decoration: line-through; } .sp.immune .h, .sp.immune .w { color: var(--dim); } .sp.immune .ic img { filter: grayscale(1) brightness(.6); }
.sp.locked { opacity: .55; border-left-style: dashed; }
@media (max-width: 560px) { .sp { grid-template-columns: 38px minmax(0, 1fr) 56px; } .sp .m { grid-column: 2 / -1; grid-row: 2; text-align: left; white-space: normal; }
  .elr { grid-template-columns: 20px 62px minmax(0, 1fr) 46px; } .elr small { grid-column: 2 / -1; } .cre { grid-template-columns: 64px minmax(0, 1fr); } .cre .pic { width: 64px; height: 64px; } .cre .pic img { max-width: 58px; max-height: 58px; } }

/* loot filter */
.tks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; }
.tk { display: flex; align-items: center; gap: 8px; min-height: 34px; cursor: pointer; font: 700 12px/1.3 var(--game); color: #c9ccd3; text-shadow: 1px 1px 0 #000; }
.tk input { flex: none; width: 18px; height: 18px; accent-color: var(--gold); }
.tk input:not(:checked) + span { color: var(--dim); }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chips .none { color: var(--dim); font-size: 12.5px; line-height: 1.5; }
.chipx { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 3px 8px 3px 10px; border: 1px solid #000; background: #2c2616; color: var(--gold2); cursor: pointer; font: 700 12px/1.2 var(--game); text-shadow: 1px 1px 0 #000; box-shadow: inset 1px 1px 0 #55481f; }
.chipx i { font-style: normal; color: var(--muted); } .chipx:hover i { color: #fff; }
.how code { color: var(--muted); font: 12px/1.4 var(--game); overflow-wrap: anywhere; }
.lnk { border: 0; padding: 0 0 0 8px; background: none; cursor: pointer; color: var(--say); font: 600 12px/1.2 var(--body); text-decoration: underline; }
.lt { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto 84px; gap: 4px 12px; align-items: center; padding: 5px 6px; margin-bottom: 2px; background: #222428; border: 1px solid #000; border-left: 3px solid var(--on); box-shadow: inset 1px 1px 0 #3d4046; }
.lt .ic { display: grid; place-items: center; width: 38px; height: 38px; background: #17181b; border: 1px solid #000; }
.lt .ic img { max-width: 32px; max-height: 32px; image-rendering: pixelated; }
.lt b { display: block; font: 700 13px/1.3 var(--game); color: var(--gold2); text-shadow: 1px 1px 0 #000; overflow-wrap: anywhere; }
.lt .m { display: block; color: var(--muted); font: 600 11.5px/1.4 var(--game); }
.lt .y { font: 700 10px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--on); text-align: right; }
.lt .btn { min-height: 32px; padding: 4px 8px; font-size: 11.5px; }
.lt.skip { background: #1c1d20; border-left-color: #3d4046; } .lt.skip b { color: var(--dim); text-decoration: line-through; } .lt.skip .y { color: var(--dim); } .lt.skip .ic img { filter: grayscale(1) brightness(.6); }
.lt.mine { border-left-style: dashed; border-left-color: var(--gold); } .lt.mine .y { color: var(--gold); }
.btn.more { display: block; width: 100%; margin-top: 6px; }
@media (max-width: 560px) { .tks { grid-template-columns: minmax(0, 1fr); } .lt { grid-template-columns: 38px minmax(0, 1fr) 76px; } .lt .y { grid-column: 2; grid-row: 2; text-align: left; } .lt .btn { grid-column: 3; grid-row: 1 / 3; } }

/* a window's "!" and the explanation it opens */
.win > .bar .i { margin-left: auto; width: 20px; height: 20px; padding: 0; border: 1px solid #000; background: linear-gradient(#e6b84a, #a87a1c); color: #1a1408; cursor: pointer;
  font: 700 13px/1 var(--game); box-shadow: inset 1px 1px 0 #ffe08a, inset -1px -1px 0 #6b4e14; position: relative; }
.win > .bar .i::after { content: ""; position: absolute; inset: -9px; }
.win > .bar .i:hover, .win > .bar .i.on { background: linear-gradient(#ffe08a, #d6a02c); }
.win > .bar .i:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.win > .bar .i + .x { margin-left: 0; }
.info { margin: 0 0 14px; padding: 10px 12px 8px; background: #1b1a15; border: 1px solid #000; box-shadow: inset 1px 1px 0 #6b4e14, inset -1px -1px 0 #2c2616; }
.info[hidden] { display: none; }
.info .sph { margin-top: 0; }
.lg { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 5px 12px; }
.lg li { display: contents; }
.lg b { font: 700 12px/1.45 var(--game); color: var(--gold2); text-shadow: 1px 1px 0 #000; }
.lg span { font: 400 13px/1.45 var(--body); color: #b4b8c2; }
@media (max-width: 560px) { .lg { grid-template-columns: minmax(0, 1fr); gap: 0; } .lg b { margin-top: 6px; } }

/* What to cast: the spell's own icon, its element in the corner */
.sp { grid-template-columns: 40px minmax(0, 1fr) auto 62px; }
.sp .ic { position: relative; width: 40px; height: 40px; }
.sp .ic img.sico { width: 38px; height: 38px; max-width: none; max-height: none; image-rendering: auto; }
.sp .ic img.gem.cor { position: absolute; right: -5px; bottom: -5px; width: 17px; height: 17px; padding: 1px; background: #17181b; border: 1px solid #000; border-radius: 50%; }
.out b img.si { width: 26px; height: 26px; margin-right: 8px; vertical-align: -5px; border: 1px solid #000; }
@media (max-width: 560px) { .sp { grid-template-columns: 40px minmax(0, 1fr) 56px; } }

/* the hotkey card maker: one column, the card as wide as the page */
.calc.one { grid-template-columns: minmax(0, 1fr); }
.hk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 28px; }
.hk .sph:first-child { margin-top: 0; }
.hk .fld input[type=text] { width: 100%; min-width: 0; text-align: left; }
#card { display: block; width: 100%; height: auto; cursor: pointer; border: 1px solid #000; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.hkedit { margin: 12px 0 0; padding: 10px 12px; background: #1b1a15; border: 1px solid #000; box-shadow: inset 1px 1px 0 #6b4e14, inset -1px -1px 0 #2c2616; }
.hkedit .sph { margin-top: 0; } .hkedit .sph b { color: var(--gold2); font-size: 14px; }
@media (max-width: 760px) { .hk { grid-template-columns: minmax(0, 1fr); } }

/* the boss tracker: a world, then every rare boss as a card. Each state has its own look: quiet is the bright one. */
.bhead { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 4px 20px; align-items: center; }
.bhead select { width: 100%; padding: 8px 10px; border: 1px solid #000; background: #17181b; color: var(--text); font: 700 13px/1.2 var(--game); } .bhead .find { margin-top: 0; }
.btabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.btab { min-height: 30px; padding: 4px 11px; border: 1px solid #000; background: linear-gradient(#45484e, #2c2e32); color: #b9bcc4; cursor: pointer; font: 700 11.5px/1.2 var(--game);
  box-shadow: inset 1px 1px 0 #6c6f76, inset -1px -1px 0 #1f2023; text-shadow: 1px 1px 0 #000; }
.btab em { font-style: normal; color: #8d94a3; margin-left: 4px; }
.btab.cur { background: linear-gradient(#f0c565, #b98a2c); color: #1a1407; text-shadow: none; } .btab.cur em { color: #4a3508; }
.btab.quiet:not(.cur) { color: var(--gold2); } .btab.killed_yesterday:not(.cur), .btab.unseen:not(.cur) { color: #8b8f99; }
.bgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bcard { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 10px; background: #26282c; border: 1px solid #000; box-shadow: inset 1px 1px 0 #55585f, inset -1px -1px 0 #131416; }
.bcard .slot { display: grid; place-items: center; width: 72px; height: 72px; background: #17181b; border: 1px solid #000; box-shadow: inset 1px 1px 0 #0a0a0b, 1px 1px 0 #4a4d54; overflow: hidden; }
.bcard .slot img { max-width: 68px; max-height: 68px; image-rendering: pixelated; } .bcard .slot i { width: 22px; height: 22px; border: 2px dashed #3d4046; border-radius: 50%; }
.bcard b { display: block; font: 400 19px/1.1 var(--title); color: var(--gold); text-shadow: 0 2px 0 #000; overflow-wrap: anywhere; }
.bcard span { display: block; }
.bcard .st { display: inline-block; margin: 5px 0 4px; padding: 2px 7px; border: 1px solid #000; font: 700 10.5px/1.3 var(--body); letter-spacing: .08em; text-transform: uppercase; }
.bcard .wh { font: 700 12px/1.35 var(--game); color: #d6d8dd; text-shadow: 1px 1px 0 #000; }
.bcard .nums { margin-top: 3px; font-size: 12px; color: var(--muted); } .bcard .nums em { font-style: normal; font-weight: 700; color: var(--text); }
.bcard .fc { margin-top: 3px; font-size: 12px; line-height: 1.35; color: #a9adb7; } .bcard .fc .ch { font-style: normal; font-weight: 700; color: var(--gold2); }
.bcard.due { box-shadow: inset 1px 1px 0 var(--gold), inset -1px -1px 0 #6b4e14; background: #2b2a24; } .bcard.due .st { background: linear-gradient(#f0c565, #b98a2c); color: #1a1407; border: 1px solid #000; }
.bcard .loc { margin-top: 4px; font-size: 12px; line-height: 1.35; color: var(--dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bcard .ln { margin-top: 5px; font-size: 12px; color: var(--dim); }
.bcard.quiet { box-shadow: inset 1px 1px 0 var(--gold), inset -1px -1px 0 #6b4e14; background: #2b2a24; } .bcard.quiet .st { background: linear-gradient(#f0c565, #b98a2c); color: #1a1407; }
.bcard.seen_this_week .st { background: #33363d; color: #d0d3da; box-shadow: inset 1px 1px 0 #5d6068; }
.bcard.killed_yesterday { background: #222428; } .bcard.killed_yesterday b { color: #9a8a62; } .bcard.killed_yesterday .slot img { filter: grayscale(.7) brightness(.7); }
.bcard.killed_yesterday .st { background: #1b1c1f; color: #8b8f99; } .bcard.killed_yesterday .st::before { content: "\2713  "; }
.bcard.unseen b { color: #c9b98a; }
.bcard.unseen .st { background: none; border: 1px dashed #8a6c2a; color: var(--gold2); }
@media (max-width: 1000px) { .bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .bgrid, .bhead { grid-template-columns: minmax(0, 1fr); } .bhead .find { margin-top: 6px; } }
/* the data API's page */
pre.api { margin: 8px 0 4px; padding: 10px 12px; overflow-x: auto; background: #141518; border: 1px solid #000; box-shadow: inset 1px 1px 0 #0a0a0b, 1px 1px 0 #4a4d54; font: 12.5px/1.5 Consolas, "Courier New", monospace; color: #cfd3da; }
.apil { margin: 4px 0 0; } .apil dt { margin-top: 10px; font: 700 13px/1.3 Consolas, "Courier New", monospace; } .apil dd { margin: 2px 0 0; color: #a9adb7; font-size: 13px; line-height: 1.45; }
.how code, .apil code { padding: 1px 4px; background: #17181b; border: 1px solid #000; font: 12px/1.3 Consolas, "Courier New", monospace; color: var(--gold2); }

/* the game worlds page: all worlds together (a number, a line, bars by location), then every world in a table */
.wtop { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 8px 28px; }
.big b { display: block; font: 400 46px/1 var(--title); color: var(--gold); text-shadow: 0 3px 0 #000; } .big span { display: block; margin-top: 4px; font: 700 12px/1.3 var(--game); color: #c9ccd3; text-shadow: 1px 1px 0 #000; }
.rec { margin-top: 8px; font-size: 12.5px; color: var(--muted); } .rec b { color: var(--text); }
.hb { display: grid; grid-template-columns: 104px minmax(0, 1fr) 54px 36px; gap: 8px; align-items: center; padding: 4px 0; font-size: 12.5px; color: #c9ccd3; }
.hb i { display: block; height: 10px; background: #17181b; border: 1px solid #000; } .hb i b { display: block; height: 100%; background: linear-gradient(#f0c565, #b98a2c); }
.hb em { font-style: normal; font-weight: 700; text-align: right; color: var(--text); } .hb small { text-align: right; color: var(--dim); font-size: 12px; }
.chart { position: relative; padding: 8px; background: #141518; border: 1px solid #000; box-shadow: inset 1px 1px 0 #0a0a0b, 1px 1px 0 #4a4d54; }
.chart svg { display: block; width: 100%; height: auto; cursor: crosshair; }
.chart .g { stroke: #2b2e34; stroke-width: 1; } .chart .g.d { stroke-dasharray: 2 4; }
.chart text { fill: #8d94a3; font: 11px var(--body); }
.chart .l { fill: none; stroke: #e2b04a; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; } .chart .a { fill: rgba(226, 176, 74, .12); stroke: none; }
.chart .c { stroke: #8d94a3; stroke-width: 1; } .chart .p { fill: #f4d48a; stroke: #141518; stroke-width: 2; }
.chart .tip { position: absolute; top: 10px; width: 140px; padding: 6px 8px; pointer-events: none; background: #26282c; border: 1px solid #000; box-shadow: inset 1px 1px 0 #55585f; font-size: 12px; line-height: 1.4; color: #c9ccd3; }
.chart .tip b { color: var(--gold2); font-size: 14px; }
.bhead .btabs .gap { flex: 0 0 10px; }
.wlist { overflow-x: auto; }
.wt { width: 100%; border-collapse: collapse; font-size: 13px; }
.wt th { padding: 0; text-align: left; border-bottom: 1px solid #000; box-shadow: 0 1px 0 #3a3d43; font: 700 10.5px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.wt th button { width: 100%; padding: 7px 8px; border: 0; background: none; text-align: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; }
.wt th.cur, .wt th button:hover { color: var(--gold2); } .wt th.n, .wt td.n { text-align: right; } .wt th:not(:has(button)) { padding: 7px 8px; }
.wt td { padding: 6px 8px; border-bottom: 1px solid #1b1c1f; color: #c9ccd3; white-space: nowrap; }
.wt tbody tr[data-w] { cursor: pointer; } .wt tbody tr[data-w]:hover td { background: #2f3136; } .wt tr.open td { background: #2b2a24; box-shadow: inset 0 1px 0 #6b4e14, inset 0 -1px 0 #6b4e14; }
.wt td b { font: 700 13px/1.2 var(--game); color: var(--text); text-shadow: 1px 1px 0 #000; } .wt td.n { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.wt .bar { display: inline-block; width: 70px; height: 8px; margin-right: 8px; vertical-align: middle; background: #17181b; border: 1px solid #000; } .wt .bar i { display: block; height: 100%; background: linear-gradient(#f0c565, #b98a2c); }
.wt .wsp { display: block; width: 96px; height: 22px; } .wt .wsp path { fill: none; stroke: #c9a24a; stroke-width: 1.5; } .wt .none { color: var(--dim); font-size: 12px; }
.wt tr.off td { color: var(--dim); } .wt tr.off td b { color: #8b8f99; } .wt .st { font-style: normal; padding: 1px 5px; border: 1px solid #000; background: var(--bad); color: #fff; font-size: 10.5px; }
.wt .ln a { font-size: 12px; }
.wone { margin: 0 0 12px; padding: 10px 12px; background: #1b1a15; border: 1px solid #000; box-shadow: inset 1px 1px 0 #6b4e14, inset -1px -1px 0 #2c2616; }
.wone .sph { margin-top: 0; } .wone .sph small { margin-left: 8px; font: 400 12px var(--body); letter-spacing: 0; text-transform: none; color: var(--muted); } .wone .days { margin-top: 10px; }
@media (max-width: 900px) { .wtop { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .wt .h { display: none; } .wt .bar { width: 44px; } .big b { font-size: 38px; } }

/* the character page */
.cfind { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; } .cfind .find { margin-top: 0; }
.crecent { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; font-size: 12.5px; } .crecent:empty { display: none; }
.crecent .k { font: 700 10.5px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.crecent a, .cothers .oc a { padding: 3px 8px; background: #24262b; border: 1px solid #000; box-shadow: inset 1px 1px 0 #4a4d54, inset -1px -1px 0 #121316; font: 700 12px/1.3 var(--game); color: var(--gold2); }
.crecent a:hover, .cothers .oc a:hover { text-decoration: none; box-shadow: inset 1px 1px 0 var(--gold), inset -1px -1px 0 #6b4e14; color: #fff; }
.chead { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center; }
.chead .slot { display: grid; place-items: center; width: 76px; height: 76px; background: #17181b; border: 1px solid #000; box-shadow: inset 1px 1px 0 #0a0a0b, 1px 1px 0 #4a4d54; }
.chead .slot img { max-width: 64px; max-height: 64px; image-rendering: pixelated; } .chead .slot i { width: 22px; height: 22px; border: 2px dashed #3d4046; border-radius: 50%; }
.chead .nm { display: block; font: 400 34px/1.05 var(--title); color: var(--gold); text-shadow: 0 3px 0 #000; overflow-wrap: anywhere; }
.chead .ln1 { display: block; margin-top: 4px; font: 700 13px/1.3 var(--game); color: #d6d8dd; text-shadow: 1px 1px 0 #000; } .chead .ln1 em { font-style: normal; color: var(--gold2); }
.chead .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.chead .tags i { padding: 2px 7px; border: 1px solid #000; background: #33363d; box-shadow: inset 1px 1px 0 #5d6068; font: 700 10.5px/1.3 var(--body); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: #d0d3da; }
.chead .tags i.pr { background: linear-gradient(#f0c565, #b98a2c); color: #1a1407; box-shadow: none; } .chead .tags i.fr { background: #1b1c1f; color: #8b8f99; box-shadow: none; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 22px; margin-top: 14px; } .facts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts .f { display: grid; gap: 1px; padding: 7px 0; border-top: 1px solid #1b1c1f; } .facts .f span { font: 700 10.5px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts .f b { font: 700 13px/1.35 var(--game); color: var(--text); text-shadow: 1px 1px 0 #000; overflow-wrap: anywhere; } .facts .f small { margin-left: 6px; font: 400 12px var(--body); color: var(--dim); text-shadow: none; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.trio div { padding: 9px 10px; background: #17181b; border: 1px solid #000; box-shadow: inset 1px 1px 0 #0a0a0b, 1px 1px 0 #4a4d54; text-align: center; }
.trio b { display: block; font: 400 26px/1.1 var(--title); color: var(--gold); text-shadow: 0 2px 0 #000; } .trio span { font-size: 12px; color: var(--muted); }
.cothers { display: flex; flex-wrap: wrap; gap: 8px 10px; } .cothers .oc { display: grid; gap: 3px; justify-items: start; } .cothers .oc small { font-size: 12px; color: var(--dim); }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .chead .nm { font-size: 27px; } }
@media (max-width: 480px) { .facts, .facts.two { grid-template-columns: minmax(0, 1fr); } .cfind { grid-template-columns: minmax(0, 1fr); } }

/* the highscores page: a world and a ranking, the list, and the day's gains beside it */
.hsel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.hsel select { width: 100%; padding: 8px 10px; border: 1px solid #000; background: #17181b; color: var(--text); font: 700 13px/1.2 var(--game); }
.hgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 14px 24px; align-items: start; }
.hpages { margin-top: 12px; align-items: center; } .hpages .k { font: 700 10.5px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.btab.pg { min-height: 26px; padding: 3px 7px; font-size: 11px; font-variant-numeric: tabular-nums; }
.wt td a b { color: var(--gold2); } .wt td.up { color: var(--on); }
.hb.gn { grid-template-columns: minmax(0, 1fr) 70px 70px 54px; } .hb.gn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hb.gn span b { font: 700 12px/1.3 var(--game); color: var(--gold2); }
@media (max-width: 900px) { .hgrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .hsel { grid-template-columns: minmax(0, 1fr); } .hb.gn { grid-template-columns: minmax(0, 1fr) 40px 64px 48px; } }

/* the boss tracker's Discord reports */
.alist { display: grid; gap: 6px; margin-bottom: 12px; }
.arow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; padding: 8px 10px; background: #26282c; border: 1px solid #000; box-shadow: inset 1px 1px 0 #55585f, inset -1px -1px 0 #131416; }
.arow b { font: 400 19px/1.1 var(--title); color: var(--gold); text-shadow: 0 2px 0 #000; } .arow span { display: block; font-size: 12.5px; color: #a9adb7; }
.arow .acts { display: flex; gap: 6px; } .arow .btn { min-height: 28px; padding: 4px 10px; font-size: 11.5px; }
.arow.dead { box-shadow: inset 0 0 0 1px var(--bad); } .arow.dead em { font-style: normal; color: var(--bad); font-weight: 700; }
.aform { max-width: 640px; } .aform input[type=url], .aform input[type=text] { width: 100%; margin: 2px 0 8px; padding: 8px 10px; border: 1px solid #000; background: #17181b; color: var(--gold2); font: 13px/1.2 var(--game); }
.aform input:focus { box-shadow: inset 0 0 0 1px var(--gold); outline: 0; }
@media (max-width: 560px) { .arow { grid-template-columns: minmax(0, 1fr); } }

/* the embed page: a picture, and the code that shows it elsewhere */
.ecard { margin-top: 12px; } .ecard img { display: block; max-width: 100%; height: auto; margin-bottom: 10px; border: 1px solid #000; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.ecode { display: grid; grid-template-columns: 124px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 4px 0; }
.ecode span { font: 700 10.5px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ecode input { width: 100%; min-width: 0; padding: 6px 8px; border: 1px solid #000; background: #17181b; color: #cfd3da; font: 12px/1.3 Consolas, "Courier New", monospace; }
.ecode .btn { min-height: 28px; padding: 4px 10px; font-size: 11.5px; } .ebadges { margin: 0 0 10px; } .ebadges img { vertical-align: middle; margin-right: 6px; }
@media (max-width: 560px) { .ecode { grid-template-columns: minmax(0, 1fr) auto; } .ecode span { grid-column: 1 / -1; } }
.tinkn { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-top: 14px; } .tinkn[hidden] { display: none; }
.tinkn div { padding: 9px 10px; background: #17181b; border: 1px solid #000; box-shadow: inset 1px 1px 0 #2c2e33; }
.tinkn b { display: block; color: var(--gold2); font: 700 19px/1.2 var(--game); } .tinkn span { color: var(--dim); font-size: 11.5px; }

/* the streamer kit: the stage its overlay is shown on (a game-like backdrop, so see-through parts read) */
.kstage { overflow: auto; border: 1px solid var(--line); border-radius: 6px; background: #0e1014 url(/art/grass.png); padding: 14px; }
.kstage iframe { border: 0; display: block; background: transparent; color-scheme: normal; }
.hsel input { width: 100%; padding: 8px 10px; border: 1px solid #000; background: #17181b; color: var(--text); font: 700 13px/1.2 var(--game); }
#fields.hsel { display: flex; flex-wrap: wrap; margin-top: 10px; }
#fields.hsel select { width: auto; }
/* the guild page */
.gbar { display: grid; grid-template-columns: 22px 92px minmax(0, 1fr) 44px; gap: 8px; align-items: center; padding: 3px 0; font-size: 12.5px; }
.gbar img, .gbar s { width: 22px; height: 22px; object-fit: contain; image-rendering: pixelated; } .gbar span { color: #c9ccd3; } .gbar em { font-style: normal; font-weight: 700; text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.gbar i { display: block; height: 9px; background: #17181b; border: 1px solid #000; } .gbar i b { display: block; height: 100%; background: linear-gradient(#e2b04a, #a9791f); }
.ghours { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 2px; align-items: end; height: 120px; padding-top: 4px; }
.ghours i { display: block; min-height: 2px; background: linear-gradient(#e2b04a, #a9791f); border: 1px solid #000; } .ghours i.no { background: #17181b; } .ghours i.pk { background: linear-gradient(#ffe08a, #e2b04a); }
.ghoursx { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 2px; margin-top: 3px; font-size: 10px; color: var(--muted); text-align: center; }
.gtop { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; padding: 3px 0; font-size: 13px; color: #c9ccd3; } .gtop i { font-style: normal; color: var(--muted); text-align: right; } .gtop em { font-style: normal; font-weight: 700; color: var(--gold2); }
.gon { color: #8fd18a; font-weight: 700; font-size: 12px; }
.gev { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 6px; padding: 3px 0; font-size: 13px; color: #c9ccd3; } .gev i { font-style: normal; text-align: center; color: var(--muted); } .gev small { color: var(--dim); }
.gev.in i { color: #8fd18a; } .gev.up i { color: var(--gold2); } .gev.out i { color: var(--muted); } .gev.out span { color: #9a9ea8; } .gev.down i { color: #e0655a; } .gev b { color: var(--text); }
#news .sph small, #stats .sph small { margin-left: 8px; font: 400 12px var(--body); letter-spacing: 0; text-transform: none; color: var(--muted); } #news .sph:first-child { margin-top: 0; }
.pvp { display: inline-block; padding: 1px 5px; margin-right: 4px; border: 1px solid #000; background: #3a2c5e; color: #d9c8ff; font: 700 10px/1.3 var(--game); }
