

@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cinzel-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cinzel-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {

  --bg: #111213;
  --surface: #161719;
  --surface-2: #1c1d20;
  --surface-3: #232428;

  --border: #26282b;
  --border-strong: #34363a;

  --ink: #e4e2dd;
  --ink-2: #c2c0ba;
  --ink-3: #9d9b95;

  --accent: #c8a55f;
  --accent-dim: #7d6a45;
  --link: #d2b67c;

  --good: #8fb07a;
  --bad: #cf7a6c;
  --info: #8aaec4;

  --radius: 4px;

  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  --rar-uncommon: #e8e14a;
  --rar-rare: #d07fe0;
  --rar-incomparable: #00ffff;
  --rar-legendary: #ffa500;

  --tip-bg: #080c13;
  --tip-bg-mid: #0e1522;
  --tip-bg-low: #162137;
  --tip-border: #959595;

  --tip-name: #c3b585;
  --tip-stat: #666666;
  --tip-desc: #cccc7f;
  --tip-damage: #c31c1f;
  --tip-cost: #00e500;
  --tip-pip: #c3e81f;
  --tip-time: #009900;
  --tip-trait: #c1c1c1;
  --tip-resist: #c3b51f;
  --tip-mods: #00e500;
  --tip-mods-harm: #ff0000;
  --prose-amt: #cccc7f;
  --tip-disenchant: #C0A8FF;

  --tt-flavour: #c3b51f;
  --tt-class: #2ab51f;
  --tt-rank: #009900;
  --tt-value: #99ff00;
  --tt-earned: #ff00ff;
  --tt-name: #c3b585;
  --tt-require: #ff0000;

  --tcell: 108px;

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  height: 100dvh;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

::selection {
  background: rgba(200, 165, 95, .28);
}

.results,
.detail {
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.app {
  display: grid;
  grid-template-columns: 300px 1fr;
  flex: 1;
  min-height: 0;
}

@media (max-width: 900px) {
  .app {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .sidebar {
    max-height: 60dvh;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .app.reading .sidebar {
    max-height: 34dvh;
  }

  .app.reading .prefs,
  .app.reading .filters,
  .app.reading .sitefoot {
    display: none;
  }

  .detail {
    padding: 18px 16px 48px;
  }

  .head h2 {
    font-size: 20px;
  }

  table.t {
    font-size: 12.5px;
  }
}

.sidebar {
  border-right: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.brand {
  padding: 16px 16px 12px;
}

.brand .brandname {
  margin: 0;
  font: 600 15px/1.25 var(--sans);
  letter-spacing: .01em;
  color: var(--ink);
}

#landing h1 {
  margin: 0 0 6px;
  font: 600 22px/1.25 var(--sans);
  color: var(--ink);
}

.brand .sub {
  color: var(--ink-3);
  font-size: 11.5px;
  line-height: 1.45;
  margin-top: 8px;
}

.controls {
  padding: 0 16px 12px;
  border-bottom: 1px solid var(--border);
}

.search {
  width: 100%;
  padding: 8px 10px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font: 14px var(--sans);
}

.search::placeholder {
  color: var(--ink-3);
}

.search:focus {
  outline: none;
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px rgba(200, 165, 95, .12);
}

.filters {
  display: flex;
  gap: 2px 12px;
  margin-top: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.filters button {
  background: none;
  color: var(--ink-3);
  border: 0;
  border-radius: 0;
  padding: 2px 0;
  font: 12.5px var(--sans);
  cursor: pointer;
}

.filters button:hover {
  color: var(--ink);
}

.filters button.on {
  color: var(--ink);
}

.filters button:not(.on) {
  color: #7c7a75;
  text-decoration: line-through;
  text-decoration-color: #a09d97;
  text-decoration-thickness: 1px;
}

.filters select {
  flex-basis: 100%;
  margin-top: 8px;
  background: var(--bg);
  color: var(--ink-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 5px 8px;
  font: 12.5px var(--sans);
  cursor: pointer;
}

.filters select:hover {
  color: var(--ink);
  border-color: var(--border-strong);
}

.count {
  color: var(--ink-3);
  font-size: 11.5px;
  margin-top: 8px;
}

.results {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding: 4px 0;
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 5px 16px 5px 14px;
  cursor: pointer;
  border-left: 2px solid transparent;
  color: inherit;
}

.row:hover {
  background: var(--surface-2);
  color: inherit;
  text-decoration: none;
}

.row.sel {
  background: var(--surface-3);
  border-left-color: var(--accent);
}

.row.cur {
  background: var(--surface-2);
  border-left-color: var(--accent-dim);
}

.resgroup {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  padding: 12px 16px 4px;
  margin-top: 4px;
}

.row img {
  width: 26px;
  height: 26px;
  border-radius: 3px;
  background: var(--surface-3);
  flex: none;
}

.row .nm {
  font-size: 13px;
  line-height: 1.3;
}

.row .mt {
  font-size: 11px;
  color: var(--ink-3);
}

.row .txt {
  min-width: 0;
}

.row .nm,
.row .mt {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sitefoot {
  flex: none;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 9px 16px 11px;
  border-top: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--ink-3);
}

.sitefoot a {
  color: var(--ink-3);
}

.sitefoot a:hover {
  color: var(--ink);
}

.detail {
  overflow-y: auto;
  padding: 28px 40px 64px;
  min-width: 0;
}

.detail > * {
  max-width: 1040px;
}

.empty {
  color: var(--ink-2);
  max-width: 620px;
  margin-top: 24px;
}

.empty h2 {
  margin: 0 0 12px;
  font: 600 22px/1.3 var(--sans);
  color: var(--ink);
}

.empty p {
  margin: 0 0 10px;
}

.head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 4px;
}

.head img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.head h2 {
  margin: 0;
  font: 600 24px/1.2 var(--sans);
  letter-spacing: -.005em;
  color: var(--ink);
}

.head .id {
  font: 11.5px var(--mono);
  color: var(--ink-3);
  margin-top: 3px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 0;
  margin: 8px 0 20px;
  font-size: 12.5px;
}

.tag {
  color: var(--ink-3);
  white-space: nowrap;
}

.tag + .tag::before {
  content: "\00b7";
  color: var(--border-strong);
  padding: 0 8px;
}

.tag.harm {
  color: var(--bad);
}

.tag.help {
  color: var(--good);
}

.tag.kind {
  color: var(--ink-2);
}

.desc {
  font: 14.5px/1.65 var(--sans);
  color: var(--ink-2);
  margin: 0 0 22px;
  max-width: 68ch;
}

.head + .desc {
  margin-top: 16px;
}

h3.sec {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin: 32px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 0;
}

.stat {
  padding: 0 24px 0 0;
  margin-right: 24px;
  border-right: 1px solid var(--border);
  min-width: 0;
}

.stat:last-child {
  border-right: 0;
}

.stat .k {
  font-size: 11.5px;
  color: var(--ink-3);
}

.stat .v {
  font: 500 17px var(--sans);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  margin-top: 1px;
}

.stat.wide {
  flex-basis: 100%;
  border-right: 0;
  padding-right: 0;
  margin-right: 0;
}

.stat.wide .v {
  font: 400 13.5px var(--sans);
  line-height: 1.6;
  color: var(--ink-2);
}

table.t {
  border-collapse: collapse;
  width: 100%;
  max-width: 900px;
  font-size: 13px;
}

table.t th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-3);
  border-bottom: 1px solid var(--border-strong);
  padding: 6px 12px 6px 0;
}

table.t td {
  padding: 7px 12px 7px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

table.t tbody tr:hover {
  background: rgba(255, 255, 255, .02);
}

table.t td.num {
  font-variant-numeric: tabular-nums;
}

ul.links {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.links li {
  padding: 4px 0;
  display: flex;
  gap: 9px;
  align-items: center;
}

ul.links img {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  background: var(--surface-2);
}

ul.links .via {
  color: var(--ink-3);
  font-size: 11.5px;
  margin-left: 8px;
}

ul.links.plain li {
  padding-left: 0;
}

ul.links.plain .summon {
  color: var(--tip-name);
}

a.more {
  font-size: 12px;
  color: var(--ink-2);
  white-space: nowrap;
}

a.more:hover {
  color: var(--accent);
}

a.trc {
  color: #c4a6d6;
}

a.ess {
  color: #93b580;
}

.band {
  font: 11.5px var(--mono);
  color: var(--ink-2);
  border-bottom: 1px dotted var(--border-strong);
}

.chart {
  margin: 6px 0 4px;
}

.chart svg {
  display: block;
  overflow: visible;
}

.chart .grid {
  stroke: var(--border);
  stroke-width: 1;
}

.chart .axis {
  stroke: var(--border-strong);
  stroke-width: 1;
}

.chart .line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.75;
  stroke-linejoin: round;
}

.chart .lbl {
  fill: var(--ink-3);
  font: 10.5px var(--sans);
}

.chart .cross {
  stroke: var(--ink-3);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}

.chart .dot {
  fill: var(--accent);
  stroke: var(--bg);
  stroke-width: 2;
}

.chart .tip {
  fill: var(--ink);
  font: 11.5px var(--sans);
}

details.raw {
  margin-top: 10px;
}

details.raw summary {
  cursor: pointer;
  color: var(--ink-2);
  font-size: 12.5px;
  padding: 5px 0;
}

details.raw summary:hover {
  color: var(--ink);
}

pre.raw {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  overflow-x: auto;
  font: 11.5px/1.55 var(--mono);
  color: var(--ink-2);
  max-height: 620px;
}

code.pn {
  font: 11.5px var(--mono);
  color: var(--info);
}

.muted {
  color: var(--ink-3);
}

.navlinks {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.brand .navlink {
  font-size: 12.5px;
  color: var(--ink-2);
}

.brand .navlink:hover {
  color: var(--ink);
  text-decoration: none;
}

.stats:has(> a.classcard) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0 24px;
  max-width: 760px;
}

a.classcard {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  min-width: 190px;
  color: var(--ink);
  text-decoration: none;
}

a.classcard:hover {
  text-decoration: none;
}

a.classcard:hover .cn {
  color: var(--accent);
}

a.classcard img {
  width: 30px;
  height: 30px;
  border-radius: 3px;
  background: var(--surface-3);
}

a.classcard .cn {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

a.classcard .mt {
  font-size: 11.5px;
  color: var(--ink-3);
}

.branch {
  margin: 0 0 18px;
}

.branch .bn {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.branch .muted {
  font-size: 12.5px;
  margin-bottom: 6px;
  max-width: 70ch;
}

table.t img.inline {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  vertical-align: -5px;
  margin-right: 8px;
  background: var(--surface-2);
}

.tip .tipeffwho {
  font-size: 11.5px;
  color: var(--tip-time);
}

.tip .tipeff.harm .tipeffwho {
  color: var(--tip-mods-harm);
}

.tip .tipeff .dispel {
  text-decoration: none;
  display: block;
}

.tip .tipeff .tipstat.heal {
  color: var(--tip-cost);
}

a.eff {
  color: var(--info);
}

.idtag {
  margin-left: 4px;
  font: 10px var(--mono);
  color: var(--ink-3);
}

.propgroup {
  margin: 0 0 14px;
}

.propgrouphead {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
  font-size: 12.5px;
  font-weight: 600;
}

.propgrouphead img.inline {
  width: 16px;
  height: 16px;
}

.propgrouphead .via {
  margin-left: 4px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ink-3);
}

.propgroup .proprun {
  margin-left: 22px;
}

.propgroup ul.links {
  margin-left: 22px;
}

table.t td .via {
  margin-left: 8px;
}

.setbonus {
  margin: 8px 0 0 14px;
  padding-left: 12px;
  border-left: 1px solid var(--border-strong);
}

.setbonus .sbh {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: 2px;
}

td.rar-uncommon {
  color: var(--rar-uncommon);
}

td.rar-rare {
  color: var(--rar-rare);
}

td.rar-incomparable {
  color: var(--rar-incomparable);
}

td.rar-legendary {
  color: var(--rar-legendary);
}

td[class^="rar-"] {
  font-weight: 600;
}

.tag.rar-uncommon {
  color: var(--rar-uncommon);
}

.tag.rar-rare {
  color: var(--rar-rare);
}

.tag.rar-incomparable {
  color: var(--rar-incomparable);
}

.tag.rar-legendary {
  color: var(--rar-legendary);
}

ul.links li.twoline {
  align-items: flex-start;
}

.trline {
  font-size: 11.5px;
  margin-top: 1px;
}

.tag.slot {
  color: var(--ink-2);
}

.gambit {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  margin: 1px 0;
}

.gambit .gl {
  font-size: 12px;
  color: var(--tip-cost);
  margin-right: 3px;
}

.gambit .gstep {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
  border: 1px solid #5a5a5a;
  border-radius: 2px;
}

.gambit .gstep:hover {
  border-color: var(--accent);
}

.gambit .gstep img {
  width: 18px;
  height: 18px;
  display: block;
}

.tip.harm .tipstat,
.tipeff.harm .tipstat,
.tip.harm .tipeffdesc,
.tipeff.harm .tipeffdesc {
  color: var(--tip-mods-harm);
}

.tipeff .tipeffdesc {
  color: var(--tip-mods);
}

.tipeff .tipeffflavour {
  font-size: 12px;
  color: var(--tip-desc);
}

.tipeff.heal .tipstat,
.tipeff.heal .tipeffdesc,
.tipeff.heal .tl {
  color: var(--tip-cost);
}

.tipeff.heal .tipstat .tv,
.tip .tl.vital.heal,
.tip .tl.vital.heal .tv {
  color: var(--tip-cost);
}

.tipeff.harm .tipstat .tv,
.tip .tl.vital.harm,
.tip .tl.vital.harm .tv {
  color: var(--tip-mods-harm);
}

.tip {
  max-width: 260px;
  background: linear-gradient(
    180deg,
    var(--tip-bg) 0%,
    var(--tip-bg-mid) 45%,
    var(--tip-bg-low) 100%
  );
  border: 1px solid var(--tip-border);
  border-radius: 2px;
  padding: 7px 9px 9px;
  font-family: var(--sans);
  line-height: 1.30;
}

.tiphead {
  display: flex;
  gap: 8px;
  align-items: center;
}

.tiphead img {
  width: 32px;
  height: 32px;
  border-radius: 2px;
  flex: none;
}

.tipname {
  font: 400 18px/1.2 "Cinzel", var(--serif);
  color: var(--tip-name);
}

.tipsub {
  font-size: 11px;
  color: var(--tip-stat);
  margin-top: 1px;
}

.tipbody,
.tipdesc,
.tipeff {
  margin-top: 5px;
  padding-top: 4px;
}

.tip .tl {
  font-size: 12px;
  color: var(--tip-stat);
}

.tip .tl.time,
.tip .tl.time .tv,
.tip .tl.time .tk {
  color: var(--tip-time);
}

.tip .tl.pip,
.tip .tl.pip .tv,
.tip .tl.pip .tk {
  color: var(--tip-pip);
}

.tip .tl.tipresist {
  color: var(--tip-resist);
}

.tip .tl.tiprow0 {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.tip .tl.tiprow0 .tipright {
  text-align: right;
}

.tip .tk {
  color: var(--tip-stat);
  margin-right: 4px;
}

.tip .tv {
  color: var(--tip-stat);
}

.tip .tipbody.cost .tl,
.tip .tipbody.cost .tv,
.tip .tipbody.cost .tk {
  color: var(--tip-cost);
}

.tip .tl.cdgap {
  margin-top: 1.45em;
}

.tip .tipbody.cost .tl.pip,
.tip .tipbody.cost .tl.pip .tv,
.tip .tipbody.cost .tl.pip .tk {
  color: var(--tip-pip);
}

.tip .tipbody.cost .tl.time,
.tip .tipbody.cost .tl.time .tv,
.tip .tipbody.cost .tl.time .tk {
  color: var(--tip-time);
}

.tip .tipbody.dmg .tl,
.tip .tipbody.dmg .tv {
  color: var(--tip-damage);
}

.tip code.dmg {
  font: 12px var(--mono);
  color: var(--tip-damage);
  background: #16181c;
  border-radius: 2px;
  padding: 0 4px;
}

.tipdesc {
  font-size: 12px;
  color: var(--tip-desc);
}

.tip .gambit {
  margin: 7px 0 0;
}

.tip .gambit .gl {
  color: var(--tip-cost);
}

.tip a.tipefflink {
  color: inherit;
  text-decoration: none;
  display: block;
}

.tip a.tipefflink:hover {
  text-decoration: underline;
}

.tipeffdesc {
  font-size: 12px;
  color: var(--tip-desc);
  margin: 1px 0 3px;
}

.tipstat {
  font-size: 12px;
  color: var(--tip-mods);
}

.tipdur {
  font-size: 12px;
  color: var(--tip-time);
  margin-top: 2px;
}

.tipresist {
  font-size: 12px;
  color: var(--tip-resist);
}

.tipctl {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tipctl input {
  width: 64px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 3px 7px;
  font: 12.5px var(--sans);
  font-variant-numeric: tabular-nums;
}

.tipnote {
  max-width: 560px;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 8px;
}

.tipnote strong {
  color: var(--ink);
  font-weight: 600;
}

.setstat {
  color: var(--tip-mods);
}

.small {
  font-size: 11px;
}

.does {
  line-height: 1.6;
  max-width: 74ch;
}

.does .amt {
  color: var(--prose-amt);
  font-variant-numeric: tabular-nums;
}

.does .scaled {
  color: var(--ink-3);
  font-style: italic;
}

.does .summon {
  color: var(--tip-name);
}

:focus-visible {
  outline: 2px solid var(--accent-dim);
  outline-offset: 2px;
  border-radius: 2px;
}

.row:focus-visible {
  outline-offset: -2px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.prefs {
  margin-top: 10px;
}

.prefs > summary {
  cursor: pointer;
  color: var(--ink-2);
  font-size: 12.5px;
  padding: 3px 0;
}

.prefs > summary:hover {
  color: var(--ink);
}

#prefs {
  padding: 6px 0 2px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pf > span {
  font-size: 12px;
  color: var(--ink-3);
}

.pf input,
.pf select {
  width: 116px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 3px 7px;
  font: 12.5px var(--sans);
}

.pfgear {
  margin-top: 2px;
}

.pfgear > summary {
  cursor: pointer;
  font-size: 11.5px;
  color: var(--ink-3);
  padding: 2px 0;
}

.pfgear .pf {
  margin-top: 5px;
}

.pfnote {
  font-size: 11px;
  line-height: 1.5;
  margin: 4px 0 2px;
}

.resolved {
  color: var(--ink);
  font: 600 12.5px var(--sans);
  font-variant-numeric: tabular-nums;
}

.ttree {
  display: grid;
  gap: 7px;
  margin: 8px 0 4px;
  justify-content: start;
  align-items: stretch;
}

a.tcell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 7px 5px;
  text-align: center;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink-2);
  min-width: 0;
  min-height: 92px;
  justify-content: flex-start;
}

a.tcell:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  text-decoration: none;
  color: var(--ink);
}

a.tcell img {
  width: 32px;
  height: 32px;
  border-radius: 3px;
  background: var(--surface-3);
  flex: none;
}

a.tcell .tn {
  font-size: 11px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  hyphens: auto;
}

a.tcell .tg {
  font-size: 10.5px;
  color: var(--ink-3);
  margin-top: auto;
}

@media (max-width: 720px) {
  :root {
    --tcell: 88px;
  }

  .ttree {
    gap: 5px;
  }

  a.tcell {
    min-height: 84px;
    padding: 6px 4px;
  }

  a.tcell img {
    width: 28px;
    height: 28px;
  }
}

#banner {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding: 6px 16px;
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
  flex: none;
}

#banner a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

#banner a:hover {
  color: var(--ink);
}

a.pn {
  font: 12px var(--mono);
  color: var(--info);
}

a.pn:hover {
  color: var(--accent);
}

.plabel {
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 1px;
}

.proprun {
  line-height: 1.9;
  max-width: 80ch;
}

.tip.trait {
  max-width: 300px;
}

.tip.trait .tipname {
  color: var(--tt-name);
}

.tip.trait .tipdesc {
  color: var(--tt-flavour);
}

.tip.trait .tiprank .rl {
  color: var(--tt-rank);
}

.tip.trait .tipstat {
  color: var(--tt-value);
}

.tipearned {
  margin-top: 6px;
  font-size: 12px;
  color: var(--tt-earned);
}

.tipearned a {
  color: var(--tt-earned);
}

.tipearned a:hover {
  color: #ff7bff;
}

.tipwho {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  margin-top: 4px;
}

.tipwho .tipclass {
  color: var(--tt-class);
}

.tipwho .tiprankmax {
  color: var(--tip-stat);
}

.tiprank {
  border-top: 1px solid #2a2823;
  margin-top: 7px;
  padding-top: 6px;
}

.tiprank .rl {
  font-size: 12px;
  color: var(--tip-name);
  margin-bottom: 1px;
}

.tipcost {
  font-size: 12px;
  color: var(--tip-resist);
  margin-top: 6px;
}

.specskills {
  font-size: 12px;
  margin: 2px 0 6px;
}

.specskills .sk {
  color: var(--tt-earned);
  margin-right: 6px;
}

.tipmust {
  border-top: 1px solid #2a2823;
  margin-top: 7px;
  padding-top: 6px;
  font-size: 12px;
  color: var(--tt-require);
}

.tipmust a {
  color: var(--tt-require);
}

.tipmust a:hover {
  color: #ff7070;
}

.tipmust .mi {
  padding-left: 8px;
}

.combowhy {
  margin-top: 2px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-2);
}

.combowhy .comboflag b {
  color: var(--ink);
  font-weight: 600;
}

.combowhy .muted {
  color: var(--ink-3);
}

a.stacklink .stackcount {
  color: var(--ink-3);
  font-size: 11.5px;
}

.stackmembers {
  margin-top: 3px;
  font-size: 12px;
}

a.stacklink:hover .stackcount {
  color: var(--accent);
}

.stat .v .via {
  margin-left: 8px;
}

.tip .tl.pip .pipicon {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
  margin-right: 5px;
  image-rendering: -webkit-optimize-contrast;
}

.tip .tl.pip .pipicon.pipafter {
  margin-right: 0;
  margin-left: 5px;
}

#hovertip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  pointer-events: none;
  max-height: calc(100vh - 16px);
  overflow: hidden;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .55));
}

#hovertip[hidden] { display: none; }

#hovertip.cut {
  -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 88%, transparent 100%);
}

.tipeff .tipstat .tv,
.tip .tl.vital .tv {
  color: inherit;
}

.tip .tipeffwho.expiry {
  color: var(--tip-mods-harm);
}

.tip .tipefflink.harm .tipstat,
.tip .tipefflink.harm .tipstat .tv {
  color: var(--tip-mods-harm);
}

.tip .tipeffwho.react {
  font-size: 12px;
  color: var(--tip-mods);
}

.tip .tl.vital {
  color: var(--tip-mods);
}

.tip .tipeffwho.aura,
.tip .tipeff.inaura .tipeffwho {
  font-size: 12px;
}

.tip .tipeff.onuse .tipeffwho {
  color: var(--tip-mods);
}

.tip .tipeff.onuse .tipeffwho.onusehead {
  color: var(--tip-time);
}

.tip { font-size: 15px; }
.tip .tipname { font-size: 19px; }
.tip .tipsub { font-size: 12px; }
.tip .tipeffwho { font-size: 12.5px; }
.tip .tl,
.tip code.dmg,
.tip .tipdesc,
.tip .tipeffdesc,
.tip .tipstat,
.tip .tipdur,
.tip .tipresist,
.tip .tipeffflavour,
.tip .gambit .gl,
.tip .tipearned,
.tip .tipwho,
.tip .tiprank .rl,
.tip .tipcost,
.tip .tipmust,
.tip .tipeffwho.react,
.tip .tipeffwho.aura,
.tip .tipeff.inaura .tipeffwho { font-size: 13px; }

.tip .tipeff .tipeffwho.harm {
  color: var(--tip-mods-harm);
}

body.legalpage {
  display: block;
  height: auto;
  overflow-y: auto;
}

.legal {
  max-width: 680px;
  margin: 0 auto;
  padding: 36px 20px 80px;
  color: var(--ink-2);
  line-height: 1.65;
}

.legal h1 {
  margin: 18px 0 2px;
  font: 600 26px/1.25 var(--sans);
  color: var(--ink);
}

.legal h2 {
  margin: 32px 0 8px;
  font: 600 16px/1.3 var(--sans);
  color: var(--ink);
}

.legal p,
.legal ul {
  margin: 0 0 12px;
}

.legal ul {
  padding-left: 20px;
}

.legal li {
  margin-bottom: 6px;
}

.legal strong {
  color: var(--ink);
  font-weight: 600;
}

.legalback {
  font-size: 13px;
}

.tip.item .tipname { color: #ffffff; }
.tip.item .tipname.rar-uncommon { color: var(--rar-uncommon); }
.tip.item .tipname.rar-rare { color: var(--rar-rare); }
.tip.item .tipname.rar-incomparable { color: var(--rar-incomparable); }
.tip.item .tipname.rar-legendary { color: var(--rar-legendary); }

.tip.item .tl,
.tip.item .tl .tv,
.tip.item .tl .tk {
  color: #ffffff;
}

.tip.item .tl.idim,
.tip.item .tl.idim .tv,
.tip.item .tl.isocket,
.tip.item .tl.isocket .tv {
  color: #999999;
}

.tip.item .tl.idps,
.tip.item .tl.idps .tv {
  color: #eeee99;
}

.tip.item .istats .tipstat {
  color: var(--tip-mods);
}

.tip.item .tl.time,
.tip.item .tl.time .tk,
.tip.item .tl.time .tv {
  color: var(--tip-time);
}

.tip .tipeff.gated .tipstat,
.tip .tipeff.gated .tipeffdesc,
.tip .tipeff.gated .tl,
.tip .tipeff.gated .tipefflink {
  color: var(--tt-earned);
}

.tip .tipeff.gated .tipstat .tv,
.tip .tipeff.gated .tl .tv,
.tip .tipeff.gated .tl .tk {
  color: var(--tt-earned);
}

.tip .tipeff.gated .tipdur,
.tip .tipeff.gated .tipdur .tv {
  color: var(--tip-pip);
}

.tip .tipeff.gated > .tipeffwho {
  color: var(--tip-time);
}

.tip .tipbody.cost .tipeff.gated {
  margin-top: 6px;
}

.tip.item .tl.iarmour,
.tip.item .tl.iarmour .tv {
  color: var(--tip-desc);
}

.tip.item .tl.ireq,
.tip.item .tl.ireq .tv,
.tip.item .tl.ireq .tk {
  color: var(--tip-mods-harm);
}

.tip.item .worthrun {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.tip.item .coin {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.tip.item .coin img {
  height: 20px;
  width: auto;
  display: block;
}

.socketicon {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 30px;
  flex: none;
  vertical-align: -9px;
  margin-right: 6px;
}

.socketicon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.tip.item .tl.isocket {
  display: flex;
  align-items: center;
  min-height: 30px;
}

.iconstack {
  position: relative;
  display: inline-block;
  flex: none;
  overflow: hidden;
}

.iconstack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;

  background: none;
  border-radius: 0;
}

.head .iconstack {
  width: 48px;
  height: 48px;
}

.tiphead .iconstack {
  width: 32px;
  height: 32px;
  border-radius: 2px;
}

.tip.item .tl.idishead,
.tip.item .tl.idishead .tv {
  color: var(--tip-disenchant);
}

.tip.item .tl.idis {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
}

.tip.item .tl.idis .iconstack {
  width: 32px;
  height: 32px;
}

.tip.item .tl.idis .tipname {
  font-size: 15px;
  line-height: 1.15;
}

.row .iconstack {
  width: 26px;
  height: 26px;
}

.tip.item .tipset {
  margin-top: 6px;
}

.tip.item .tipsetname {
  font-size: 12px;
  color: var(--tip-name);
}

.tip.item .tipsetcap {
  color: var(--tip-stat);
  margin-left: 5px;
}

.tip.item .tipsetpiece {
  font-size: 12px;
  color: var(--tip-stat);
  padding-left: 9px;
}

.tip.item .tipsetpiece.own {
  color: var(--tip-desc);
}

.tip.item .tipsetcount {
  margin-top: 5px;
}

.tip.item .tipset .setstat {
  padding-left: 9px;
}

.tip.item .tipset .tipeff {
  padding-left: 9px;
}
