/* LETHEON knowledge base. Sits on ../style.css: the same tokens, fonts, language hiding,
   .lang, .skip and .sr. Flat and quiet: rules, no boxes; gold only on the wordmark.
   Source: tools/kb/kb.css (tools/build_kb.py copies it to kb/ and adds the rarity colours). */

body.kb { font-size: 16px; }

/* Top bar: the same width, gutter and top padding as the main page's header, no rule,
   so the language switch stays in the same place when you go from the main page to the KB */
.kb-top {
  display: flex;
  align-items: center;
  gap: 8px 22px;
  max-width: 1600px;
  margin-inline: auto;
  padding: 16px var(--gutter) 0;
}
.kb-mark {
  font-family: var(--display);
  font-size: 21px;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-decoration: none;
  padding: 6px 0;
}
.kb-home {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  padding: 6px 0;
}
.kb-home:hover, .kb-home[aria-current] { color: var(--text); }
.kb-top .lang { margin-left: auto; }
.kb-find { margin-left: auto; }
.kb-find ~ .lang { margin-left: 0; }
.kb-top .social { margin-left: auto; }
.kb-find ~ .social { margin-left: 0; }
.kb-top .social + .lang { margin-left: -14px; }
/* Between 600 and about 680 px the row is short with the icons: the search narrows (not under 140 px) and the KB
   link wraps to two lines, instead of the page scrolling sideways */
.kb-find { flex: 0 1 210px; min-width: 140px; }
@media (max-width: 719px) { .kb-home { line-height: 1.25; } }
.kb-find input {
  width: 100%;
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid var(--hair);
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
}
.kb-find input::placeholder { color: var(--dim); }
.kb-find input:hover { border-color: rgba(233, 229, 220, 0.34); }

/* Layout: the page list on the left, the text at a readable width */
.kb-wrap {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 56px;
  max-width: 1600px;
  margin-inline: auto;
  padding: 40px var(--gutter) 0;
}
.kb-nav {
  position: sticky;
  top: 20px;
  align-self: start;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  font-size: 15px;
  scrollbar-width: thin;
}
.kb-nav ol { margin: 0; padding: 0; list-style: none; }
.kb-list a {
  display: block;
  padding: 5px 0 5px 13px;
  border-left: 1px solid var(--rule);
  color: var(--muted);
  text-decoration: none;
  line-height: 1.35;
}
.kb-list a:hover { color: var(--text); }
.kb-list .cur > a { color: var(--text); border-left-color: var(--text); }
.kb-toc { margin: 2px 0 8px; }
.kb-toc a { padding: 3px 0 3px 25px; font-size: 13.5px; color: var(--dim); }
.kb-pick { display: none; }

.kb-main { max-width: 860px; min-width: 0; }
.kb-main h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.15;
  letter-spacing: 0.02em;
}
.kb-intro {
  margin-top: 14px;
  max-width: 68ch;
  color: var(--muted);
  font-size: 17px;
  text-wrap: pretty;
}
.kb-main section { margin-top: 56px; scroll-margin-top: 16px; }
.kb-main h2 {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 10px;
}
.anchor {
  margin-left: 10px;
  padding: 0 4px;
  color: var(--dim);
  font-weight: 400;
  text-decoration: none;
  opacity: 0;
}
h2:hover .anchor, .anchor:focus-visible { opacity: 1; }
@media (hover: none) { .anchor { opacity: 0.45; } }
.kb-text { max-width: 68ch; text-wrap: pretty; }
.kb-note { margin-top: 8px; color: var(--muted); font-size: 15px; }
.kb-text a, .tnote a, .kb-more a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--hair);
}
.kb-text a:hover, .tnote a:hover, .kb-more a:hover { text-decoration-color: currentColor; }
.kb-more { margin-top: 10px; font-size: 15px; color: var(--muted); }
.kb-data { margin-top: 18px; }

/* Pictures (kb_copy.json "figures"): plain crops of game frames, straight on the page with no frame and no caption.
   A click opens the viewer (kb.js, the main page's .lb styles), where the alt is the caption. Two or four share the
   column in two; one keeps the size its width and height attributes give, never wider than the column. */
.kb-figs { display: grid; gap: 10px; margin-top: 18px; }
.kb-intro + .kb-figs { margin-top: 22px; }
.kb-figs.n2, .kb-figs.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kb-figs.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kb-fig { margin: 0; min-width: 0; }
.kb-shot {
  display: block;
  width: fit-content;
  max-width: 100%;
  border-radius: 3px;
  background: #0b0d12;
  overflow: hidden;
  line-height: 0;
  cursor: zoom-in;
}
.kb-shot img { display: block; max-width: 100%; height: auto; opacity: 0.94; }
.kb-shot:hover img { opacity: 1; }
.kb-figs:not(.n1) .kb-shot, .kb-figs:not(.n1) .kb-shot img { width: 100%; }
.lb.lb-one .lb-prev, .lb.lb-one .lb-next { display: none; }

.sub {
  margin: 26px 0 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

/* Tables: each in its own scroll box, so a long one never widens the page */
.tbl { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.tbl table {
  width: auto;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
.tbl th, .tbl td {
  padding: 8px 28px 8px 0;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--rule);
}
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.tbl thead th {
  font-size: 13px;
  font-weight: 500;
  color: var(--dim);
  border-bottom-color: var(--hair);
  vertical-align: bottom;
}
.tbl tbody th { font-weight: 400; }
.tbl .n { text-align: right; white-space: nowrap; }
.tnote { margin-top: 10px; max-width: 72ch; font-size: 13.5px; color: var(--dim); }
/* Two widths only: compact tables as wide as their content, wide ones the full text column */
.tbl table.full { width: 100%; }

/* A row the address points at (from the search): room above it, a rule on its left */
.tbl tr[id] { scroll-margin-top: 120px; }
.tbl tr:target > * { background: rgba(233, 229, 220, 0.08); }
.tbl tr:target > :first-child { box-shadow: inset 2px 0 0 var(--text); padding-left: 10px; }

/* Facts as a quiet two-column list */
.kv { margin: 0; max-width: 700px; font-size: 15px; }
.kv > div {
  display: grid;
  grid-template-columns: minmax(0, 16em) minmax(0, 1fr);
  align-items: baseline;
  gap: 18px;
  padding: 7px 0;
  border-bottom: 1px solid var(--rule);
}
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-variant-numeric: tabular-nums; }
.kv-ic > div { align-items: center; }
.kv + .tbl, .kv + .sub, .tbl + .kv, .tnote + .kv { margin-top: 18px; }

/* Names with their icons; the icons are pixel art, scaled by whole steps only */
.nm { display: inline-flex; align-items: center; gap: 10px; }
.nm > span { display: flex; flex-direction: column; }
.ic {
  flex: none;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.t-items .nm { min-width: 200px; }
.note { display: block; font-size: 13px; color: var(--dim); line-height: 1.4; margin-top: 2px; }
.mu { color: var(--dim); }
.rk { display: inline-block; min-width: 1ch; }
.rar { white-space: nowrap; }
.rar::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 7px 1px 0;
  vertical-align: middle;
  border-radius: 1px;
  background: var(--dim);
}
kbd {
  display: inline-block;
  min-width: 24px;
  padding: 0 6px;
  border: 1px solid var(--hair);
  border-radius: 3px;
  font: inherit;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
  color: var(--text);
  white-space: nowrap;
}

/* Game texts as the game shows them */
.gtip, .glines {
  margin: 10px 0;
  padding-left: 12px;
  border-left: 2px solid var(--hair);
  max-width: 68ch;
  color: var(--muted);
  font-size: 15px;
}
.gtip + .gtip { margin-top: -6px; }
.glines { list-style: none; }
.pays {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  max-width: 700px;
  gap: 8px 36px;
}
.pay { border-top: 1px solid var(--rule); padding: 10px 0 6px; font-size: 14.5px; }
.pay-case { font-size: 13px; color: var(--dim); }
.pay-total { margin-top: 2px; font-weight: 500; }
.pay .glines { margin: 4px 0 0; padding: 0; border: 0; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.nm.sm { font-size: 13.5px; gap: 6px; }
/* Hidden2 armour sets: the four pieces of a set in one row, each a link to its item row */
.set { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-bottom: 2px; }
.set a { display: inline-flex; border-radius: 4px; }
.set a:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }

/* Filters above a table */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 16px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--dim);
}
.filters label { display: flex; flex-direction: column; gap: 4px; }
.filters select {
  min-height: 38px;
  padding: 6px 8px;
  border: 1px solid var(--hair);
  border-radius: 4px;
  background-color: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
}
.filters select:hover { border-color: rgba(233, 229, 220, 0.34); }
.filters option { background: #0b0d12; color: var(--text); }
.filters .count { margin: 0 0 9px auto; }
.sw[hidden] { display: none; }

/* KB home */
.kb-home-main { max-width: 760px; margin: 0 auto; padding: 48px var(--gutter) 0; }
.kb-home-main h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.kb-search { margin-top: 26px; }
.kb-search input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--hair);
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
.kb-search input::placeholder { color: var(--dim); }
.kb-search input:hover { border-color: rgba(233, 229, 220, 0.34); }
.kb-res { margin: 6px 0 0; padding: 0; list-style: none; }
.kb-res:empty { display: none; }
.kb-res a { display: block; padding: 9px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.kb-res a:hover .t { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--hair); }
.kb-res .ctx { display: block; font-size: 13px; color: var(--dim); }
.kb-res .none { padding: 9px 0; color: var(--dim); font-size: 15px; }
.kb-pages { margin: 36px 0 0; padding: 0; list-style: none; }
.kb-pages li { border-top: 1px solid var(--rule); padding: 14px 0 15px; }
.kb-pages a { font-size: 19px; font-weight: 500; text-decoration: none; }
.kb-pages a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--hair); }
.kb-pages p { margin-top: 2px; color: var(--muted); font-size: 15px; }

/* Footer */
.kb-foot {
  max-width: 1600px;
  margin: 88px auto 0;
  padding: 22px var(--gutter) 40px;
  border-top: 1px solid var(--rule);
  font-size: 13.5px;
  color: var(--dim);
}

@media (prefers-reduced-motion: no-preference) {
  .kb-list a, .kb-home, .anchor { transition: color 0.15s, opacity 0.15s; }
}

/* Below 1180px (tablets, small laptops) the page list folds into one line at the top,
   so wide tables keep the full text column */
@media (max-width: 1179px) {
  .kb-wrap { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 12px; }
  .kb-nav { position: static; max-height: none; overflow: visible; }
  .kb-list { display: none; }
  .kb-pick { display: block; margin-bottom: 26px; border-bottom: 1px solid var(--rule); }
  .kb-pick summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    cursor: pointer;
    list-style: none;
    color: var(--muted);
  }
  .kb-pick summary::-webkit-details-marker { display: none; }
  .kb-pick summary::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-right: 4px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
  }
  .kb-pick[open] summary::after { transform: translateY(2px) rotate(225deg); }
  .kb-mlist { padding-bottom: 8px; }
  .kb-mlist a { display: block; padding: 8px 0; color: var(--muted); text-decoration: none; }
  .kb-mlist .cur > a { color: var(--text); }
  .kb-mlist .kb-toc { margin: 0 0 6px; border-left: 1px solid var(--rule); }
  .kb-mlist .kb-toc a { padding: 6px 0 6px 14px; font-size: 14.5px; color: var(--dim); }
  .kb-main section { margin-top: 44px; }
}
@media (max-width: 599px) {
  .kb-top { gap: 6px 12px; flex-wrap: wrap; }
  .kb-home { flex: 1 1 0; max-width: max-content; line-height: 1.25; } /* wraps to two lines before the icons and the menu leave the row */
  .kb-find { order: 3; flex: 1 1 100%; margin-left: 0; }
  .kb-find input { width: 100%; }
  .kb-find ~ .lang { margin-left: auto; }
  .kb-find ~ .social { margin-left: auto; }
  .kb-top .social + .lang { margin-left: -8px; }
  .kb-mark { font-size: 18px; }
  .kb-home { font-size: 14px; }
  .kv > div { grid-template-columns: minmax(0, 1fr); gap: 1px; }
  .kb-main h2 { font-size: 19px; }
  .kb-home-main { padding-top: 32px; }
  .filters label { flex: 1 1 40%; }
  .filters select { width: 100%; }
  .filters .count { flex-basis: 100%; margin: 0; }
  .kb-figs { gap: 8px; }
  .kb-figs.n2, .kb-figs.n3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 374px) {
  .kb-home { order: 2; flex-basis: 100%; max-width: none; padding: 2px 0 8px; } /* below 375 px the text link takes its own row */
}

/* The item table: one line per stat, so the numbers stay level with their names */
.tbl table.t-items { width: 100%; }
.t-items th, .t-items td { padding-right: 16px; }
.t-items tbody td { white-space: nowrap; }
.t-items tbody td, .t-items tbody th { vertical-align: top; }
.t-items tbody th .note { max-width: 26ch; }
/* A heading row for each slot; below 900px it repeats the column names, which scroll away there */
.t-items .grp > * {
  padding-top: 26px;
  border-bottom-color: var(--hair);
  font-size: 13px;
  font-weight: 500;
  color: var(--dim);
  vertical-align: bottom;
}
.t-items tbody:first-of-type .grp > * { padding-top: 12px; }
.t-items .grp > th { font-size: 15px; color: var(--muted); }
.ph-only, .filters label.ph-only { display: none; }
@media (max-width: 899px) {
  /* Here the table scrolls sideways and its header would scroll away: the slot rows carry the column names */
  .t-items thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .t-items tbody:first-of-type .grp > * { padding-top: 4px; }
}
@media (min-width: 900px) {
  /* The table fits here, so it needs no scroll box and its header can stay at the top of the screen */
  .tbl-items { overflow: visible; background: none; }
  .t-items thead th { position: sticky; top: 0; z-index: 2; background: var(--bg); }
  .t-items .grp td { color: transparent; }
  .t-items .grp td .rar::before { visibility: hidden; }
}

/* A short row of numbers by level that wraps instead of scrolling */
.lvls-h { font-size: 13px; color: var(--dim); margin-bottom: 6px; }
.lvls {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  max-width: 760px;
  margin: 0;
  border-top: 1px solid var(--rule);
  font-variant-numeric: tabular-nums;
}
.lvls > div { padding: 7px 0; border-bottom: 1px solid var(--rule); }
.lvls dt { font-size: 13px; color: var(--dim); }
.lvls dd { margin: 0; font-size: 15px; }

/* The key tables of one page share one width */
.tbl-keys { max-width: 600px; }
.tbl-keys table { width: 100%; }

/* Classes: the game's stat lines and the damage change stay one line each */
@media (min-width: 600px) {
  .t-classes td:nth-child(3), .t-classes td:nth-child(4) { white-space: nowrap; }
}

/* Skills: the key and its slot stay on one line; the three class tables share one grid */
.t-skills td:nth-child(2) { white-space: nowrap; }
@media (min-width: 600px) {
  .tbl table.t-skills { width: 100%; table-layout: fixed; }
  .t-skills thead th:nth-child(1) { width: 14em; }
  .t-skills thead th:nth-child(2) { width: 7em; }
  .t-skills thead th:nth-child(4) { width: 9em; }
  .t-skills tbody th { white-space: nowrap; }
  .t-skills td:nth-child(3) { white-space: normal; }
}
.t-skills td:last-child { white-space: normal; min-width: 8em; }
.t-skills td:last-child .note { text-align: right; }
@media (max-width: 599px) {
  /* The item name stays in view while the numbers scroll under it */
  .t-items tbody th, .t-items thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--bg);
  }
  .t-items .nm { min-width: 0; gap: 8px; }
  .tbl .t-items td { width: 1%; }  /* the numbers take what they need, the name the rest */
  /* Coffer tables: short names, rank numbers only, tighter columns, so the rows fit a phone */
  .t-cranks thead .mu { display: none; }
  .tbl .t-cranks th, .tbl .t-cranks td, .tbl .t-crar th, .tbl .t-crar td { padding-right: 10px; font-size: 13.5px; }
  .t-cranks .nm, .t-crar .nm { gap: 8px; }
  .t-items tbody th .note { max-width: none; }
  /* Phones: the rank goes under the name, and one rarity column shows at a time (kb.js sets data-r) */
  .ph-only { display: inline; }
  .ph-hide { display: none; }
  .filters label.ph-only { display: flex; }
  .t-items > * > tr > :nth-child(2) { display: none; }
  .t-items[data-r] > * > tr > :nth-child(n+4) { display: none; }
  .tbl th, .tbl td { padding-right: 16px; }
  .tbl .t-items th, .tbl .t-items td { padding-right: 12px; }
}
@media (max-width: 599px) {
  /* Text-heavy tables: each row becomes a short block, each cell with its column name */
  .tbl table.stack { min-width: 0; width: 100%; }
  .stack, .stack tbody, .stack tr, .stack th, .stack td { display: block; }
  .stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .stack tr { padding: 10px 0; border-bottom: 1px solid var(--rule); }
  .tbl .stack tr > * { padding: 2px 0; border: 0; text-align: left; white-space: normal; }
  .stack td[data-label]:not(.nl)::before { content: attr(data-label) ": "; color: var(--dim); }
  .stack tbody th { padding-bottom: 6px; font-weight: 500; }
  .stack td:empty { display: none; }
  .t-skills td:last-child { min-width: 0; }
  .t-skills td:last-child .note { text-align: left; }
}

/* A faint edge on the side a table can still scroll to (pure CSS, no script) */
.tbl {
  background:
    linear-gradient(to right, var(--bg) 40%, rgba(14, 15, 18, 0)) left / 28px 100% no-repeat local,
    linear-gradient(to left, var(--bg) 40%, rgba(14, 15, 18, 0)) right / 28px 100% no-repeat local,
    linear-gradient(to right, rgba(233, 229, 220, 0.12), rgba(233, 229, 220, 0)) left / 12px 100% no-repeat scroll,
    linear-gradient(to left, rgba(233, 229, 220, 0.12), rgba(233, 229, 220, 0)) right / 12px 100% no-repeat scroll;
}
.t-forge tbody > tr > *, .t-ring tbody > tr > *, .t-scrolls tbody > tr > *, .t-hit tbody th, .t-zone td { white-space: nowrap; }
@media (max-width: 599px) {
  .tbl .t-forge thead th, .tbl .t-ring thead th { white-space: normal; }
}
/* FORGE2: the word the game shows sits under a chance; on a phone row block it follows the chance */
.w { display: block; font-size: 13px; }
@media (max-width: 599px) {
  .stack .w { display: inline; margin-left: 6px; }
  /* The comparison tables keep their columns on a phone: headers wrap, the gaps are tighter */
  .tbl .t-words thead th, .tbl .t-scrolls thead th, .tbl .t-salvage thead th { white-space: normal; }
  .tbl .t-words tr > :not(:last-child), .tbl .t-scrolls tr > :not(:last-child),
  .tbl .t-salvage tr > :not(:last-child) { padding-right: 12px; }
  .t-scrolls .w { font-size: 12px; }
}

/* Monster tables: a heading row for each role (fast, melee, ranged, elite) */
.t-creeps .grp > th, .t-cbyring .grp > th {
  padding-top: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border-bottom-color: var(--hair);
}
.t-creeps tbody tr:first-child.grp > th, .t-cbyring tbody tr:first-child.grp > th { padding-top: 6px; }
.nw { white-space: nowrap; }
.t-mix td, .t-mix tbody th { vertical-align: top; }

/* Hidden2 ring families: the names link to their rows in the item table, quietly */
.t-ringfam a { text-decoration: none; color: inherit; }
.t-ringfam a:hover, .t-ringfam a:focus-visible { text-decoration: underline; }
@media (max-width: 599px) {
  /* Sets and ring families on a phone: the column name on its own line, the icons and the name under it */
  .t-sets td[data-label]::before, .t-ringfam td[data-label]::before { display: block; margin-bottom: 2px; }
  .tbl .t-sets tr > td, .tbl .t-ringfam tr > td { padding: 4px 0; }
}

/* v72: a gem tier with the game's colour as a swatch (build_kb.py adds .gem.gt<N> from kb.json gems.tiers) */
.gem { white-space: nowrap; }
.gem::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 7px 1px 0;
  vertical-align: middle;
  border-radius: 50%;
  background: var(--dim);
}
th .note { font-weight: 400; white-space: normal; }
.tbl-gtiers th, .tbl-gtiers td { padding-right: 20px; }
.setl a { color: inherit; text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 3px; }
.setl a:hover { text-decoration-color: currentColor; }

/* Generated by tools/build_kb.py from kb.json rarities: the game's own rarity colours. */
.rar.r0::before { background: #c8c8c8; }
.rar.r1::before { background: #4d9bff; }
.rar.r2::before { background: #b45cff; }
.rar.r3::before { background: #ffab2e; }
.rar.r4::before { background: #e8335a; }
.gem.gt1::before { background: #c8c8c8; }
.gem.gt2::before { background: #5fd068; }
.gem.gt3::before { background: #4d9bff; }
.gem.gt4::before { background: #b45cff; }
.gem.gt5::before { background: #ffab2e; }
.gem.gt6::before { background: #eb5046; }
.gem.gt7::before { background: #f4f8ff; }
@media (max-width: 599px) {
  .t-items[data-r="0"] > * > tr > :nth-child(4) { display: table-cell; }
  .t-items[data-r="1"] > * > tr > :nth-child(5) { display: table-cell; }
  .t-items[data-r="2"] > * > tr > :nth-child(6) { display: table-cell; }
  .t-items[data-r="3"] > * > tr > :nth-child(7) { display: table-cell; }
  .t-items[data-r="4"] > * > tr > :nth-child(8) { display: table-cell; }
}
