@font-face {
    font-family: "Nocturne";
    src: url("../images/NocturneSerif-Regular.ttf") format("truetype");
    font-style: normal;
    font-display: swap;
}

:root {
  --heat: 46, 160, 90;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
	--bg: url(../images/tileBg2.png) #05171b;
	--bgT: url(../images/tileBgT.png);
	--fg: #ecebf3;
	--mut: #acaab9;
	--card: #173f408e;
  --card2: #15282e;
	--line: #1c2528;
  --line2: #313f4180;
	--hi: #1d3b2e86;
  --sel: #3d3f3385;
  --text: #ffe8c4;
  --acc: #ffe8c4;
  --boxLine: #484e44;
  --thickShadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
  --glow: 0 0 2px #CAB99D,
        0 0 5px #CAB99D,
        0 0 10px #CAB99D,
        0 0 20px #CAB99D;
  --glowBox: drop-shadow(0 0 2px #e0c18fed);
  --minW: 800px;
  --vw: calc(max(100vw, var(--minW)) / 100);
}

.sizer {
    min-width: var(--minW);
}

* {
  scrollbar-color: #8a7f6c transparent;
  scrollbar-width: thin;
}

html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
}

body {
	font-family: "Nocturne", serif;
	margin: 0;
	color: var(--text);
  text-shadow: -1px -1px 0 #0000007a, 1px -1px 0 #0000007a, -1px 1px 0 #0000007a, 1px 1px 0 #0000007a;
	background-color: black;
	font-size: 16px;
	line-height: 120%;
}
@media (pointer: coarse) {
  body {
    height: 2000px;
  }
}

.tn>img {
    width: 38px;
    margin: -8px;
    margin-right: 0;
    margin-bottom: 0px;
}

h1 {
  font-size: 1.2em;
  line-height: 120%;
  font-weight: normal;
  margin: 0;
  margin-top: 0.6em;
  text-align: center;
}

.giftContainer th {
  border-top-width: 0;
}

.giftContainer th[colspan="2"] {
  border-bottom-width: 1px;
}

h2 {
  font-size: 16px;
	line-height: 120%;
  margin: 18px 0 6px;
}

small {
  white-space: pre-line;
  font-size: 90%;
  line-height: 120%;
}

p.m,
small {
  color: var(--mut);
}

p.m {
  margin: 0 0 10px;
  display: none;
}

.grid2 {
    width: calc(30.1 * var(--vw));
    display: inline-block;
    flex-shrink: 0;
    max-height: 100%;
    padding-right: 10px;
    box-sizing: border-box;
    padding-left: calc(1 * var(--vw));
}

.grid2>*:first-child {
    padding-bottom: 0;
}

.card {
  padding: 10px 8px;
}

.card.pc .row {
    position: relative;
    z-index: 2;
}

.card .bt {
    padding: calc(0.4 * var(--vw)) calc(0.8 * var(--vw));
}

select,
input {
  width: 100%;
  box-sizing: border-box;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
}
[hidden] {
  display: none !important;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border: 1px solid var(--line);
  padding: 4px 8px;
  text-align: center;
  white-space: nowrap;
}

.movText {
    color: #c1b197;
    font-size: 0.9em;
    display: inline-block;
    margin-right: 0.5em;
}

#gt {
    position: absolute;
    left: 7.85%;
    top: calc(22.6 * var(--vw));
    font-size: calc(1.25 * var(--vw));
    line-height: 150%;
    width: auto;
}

.spider-chart-container {
    position: absolute;
    left: 24.4%;
    top: calc(22.6 * var(--vw));
    width: 9.35%;
    aspect-ratio: 1 / 1;
    line-height: 0;
}

.l .lr {
  width: 2.4em;
  margin: 1px 2px;
}

td#g-total {
    position: absolute;
    top: calc(-2.8 * var(--vw));
    left: calc(8.9 * var(--vw));
}

div#abil {
    padding-bottom: 0;
}

summary::marker {
  margin-right: 4px;
}

#gt td:empty {
  display: none;
}

#gt td {
    padding: 0;
    border: 0 solid transparent;
    text-align: right;
    white-space: nowrap;
    border-right-width: calc(2.2 * var(--vw));
    border-bottom-width: calc(0.82 * var(--vw));
    box-sizing: content-box;
    width: calc(6.7 * var(--vw));
  cursor: pointer;
}

td.l {
  text-align: left;
}

td.pl {
    white-space: normal;
    max-width: calc(33vw);
}

td.d {
  color: var(--mut);
}
td.bb {
  background: var(--hi);
}
td select {
  padding: 3px;
  min-width: 80px;
}
.ok {
  color: var(--text);
}
.sk {
  padding: 10px;
}
.sk.nr {
  background: rgba(229, 72, 77, 0.16);
  border-color: #e5484d;
  color: #e5484d;
}
.sk.nr .rk {
  color: #e5484d;
}
.sh {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  justify-content: space-between;
}
.sh select {
  width: auto;
  min-width: 90px;
}
select.bb {
  background: var(--hi);
  color: var(--fg);
}

.sk ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sk li {
  display: flex;
  padding: 0.3em 0;
  border-top: 1px solid var(--line);
}

.dk img {
  filter: hue-rotate(220deg) contrast(1.5);
}

.dkI {
  filter: hue-rotate(235deg) contrast(1.4) saturate(1.8);
}

.sk li .rk {
    margin-right: 6px;
    margin-left: 2px;
}

.sk li .lrt .rk {
  margin-top: 0;
  margin-bottom: 0;
    vertical-align: middle;
}

.rk {
    flex: none;
    position: relative;
    box-sizing: border-box;
    border: 1px solid var(--text);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75em;
    color: var(--text);
    line-height: 2em;
    aspect-ratio: 1 / 1;
    height: 1.5em;
}

small .rk b {
  color: #ffe8c4;
}

.mountName {
  white-space: nowrap;
}

.rk:empty {
    visibility: hidden;
    width: 3px;
    border: 0;
}

.rk i {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 13px;
  height: 13px;
  color: var(--text);
  font-style: normal;
  font-size: 13px;
  line-height: 15px;
  text-align: center;
  font-weight: 700;
}

.ln .rk {
  width: 1.8em;
  height: 1.8em;
  font-size: 10px;
  margin: 0;
}

.si {
  height: 1.2em;
  width: 1.2em;
  vertical-align: middle;
}

.pl .si {
  margin-right: 6px;
}

.ln .si {
  height: 20px;
}

.chp {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 2px 8px 2px 0;
    vertical-align: middle;
}

.sw {
  position: relative;
  flex: none;
  display: inline-flex;
}

.bn {
    position: absolute;
    right: 0px;
    top: 0px;
    background: rgba(0, 0, 0, 0.67);
    color: var(--text);
    font-style: normal;
    font-size: 0.6vw;
    font-weight: 700;
    border-radius: 50%;
    z-index: 1;
    aspect-ratio: 1;
    border: 1px solid var(--text);
    width: 1.67em;
    line-height: 1.67em;
    text-align: center;
}

.li0 {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
}

.sk li {
  align-items: flex-start;
}

.sk li:first-child {
    border-top: 0;
}

.br {
  flex-basis: 100%;
  height: 0;
}

.ds {
  white-space: pre-line;
  margin-top: 4px;
}
summary {
  cursor: pointer;
}

.lrs .lr {
    vertical-align: middle;
}

.st {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 4px;
  color: var(--mut);
}
.st b {
  color: var(--fg);
}
.boon,
.bane {
  padding: 1px 8px;
  border-radius: 6px;
  background: #f1efe6;
}
.boon {
  color: #b8860b;
}
.bane {
  color: #1e3a8a;
}

.row {
    padding-left: 10px;
    font-size: max(13px, min(1em, calc(1.25 * var(--vw))));
    line-height: 120%;
}

.row:first-child {
    padding-left: 0;
    font-size: calc(2 * var(--vw));
    line-height: 120%;
    padding-top: calc(0.4 * var(--vw));
}

.row:first-child button {
    text-shadow: 0 0 2px #CAB99D, 0 0 5px #CAB99D, 0 0 10px #CAB99D, 0 0 20px #CAB99D;
}

.row small,
.ab small {
  white-space: pre-line;
    margin-top: 4px;
    display: inline-block;
}
.ab .st {
    margin-top: 0;
}

.ab {
  margin: 8px 0;
}
.pk {
  box-sizing: border-box;
  padding: 0.4vw 1vw;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
    background: transparent;
    border: 0;
    pointer-events: all;
}

#md {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 12px 12px;
  box-sizing: border-box;
}

.mountHeader .mi {
    margin: 0 !important;
}

.mb {
    background: #142324;
  background-image: url(../images/listCenter2.png);
  background-position: center center;
  width: 100%;
  max-height: 100%;
  background-size: 100%;
  /*border: 1px solid var(--line);
  border-radius: 12px;*/
  display: flex;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
}

.mb>* {
  z-index: 1;
  position: relative;
}

.mb:before {
  content: "";
  position: absolute;
  top: 0;
  width: 100%;
  height: 50%;
  left: 0;
  background-image: url(../images/listTop.png);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100%;
}

.mb:after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 50%;
  left: 0;
  background-image: url(../images/listBottom.png);
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 100%;
}

#mtl {
  padding-right: 10px;
}

input[type="search"] {
    max-width: 400px;
    min-width: 150px;
    margin-left: auto;
}

.mh {
    display: flex;
    gap: 4px;
    align-items: center;
    min-height: calc(3.3vw + 1px);
    flex-shrink: 0;
    padding-bottom: calc(0.4vw + 2px);
    padding-top: 0.48vw;
    box-sizing: border-box;
    padding-left: 1vw;
    padding-right: 1vw;
    background-image: url(../images/listTop.png);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100%;
    position: relative;
    margin-bottom: -2px;
    z-index: 2;
}

.mh input {
  flex: 1;
}
.mh .pk {
  width: auto;
}

.tg {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 6px;
}
.tg.w {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20em), 1fr));
}

.wrap {
    margin: auto;
    position: relative;
    line-height: 120%;
    flex-grow: 1;
    transform-origin: center top;
    top: 50%;
    transform: translate(0, -50%);
}

.tile {
  padding: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font-size: 16px;
  line-height: 120%;
}

.tg:not(.w) .tile {
  text-align: center;
  padding: 0;
}

.displayNone {
  display: none !important;
}

.tg:not(.w) .tile b {
    position: absolute;
    top: 5px;
    text-shadow: var(--thickShadow);
    width: 100%;
    left: 0;
}

.tile.sel {
  background: var(--sel);
}

.im {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    line-height: 120%;
    font-weight: 700;
    color: var(--mut);
    overflow: hidden;
    margin-top: 10px;
}
.im img,
.im video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.gh {
  margin: 14px 0 6px;
  font-weight: 700;
  color: var(--text);
}
.ln {
  font-size: 14px;
	line-height: 120%;
  margin-top: 3px;
  white-space: pre-line;
  color: var(--mut);
}

.tile > small {
  color: var(--mut);
}

.pc {
    display: flex;
    align-items: flex-start;
    position: absolute;
    left: 6.38%;
    margin: 0;
    padding: 0;
    top: calc(5.96 * var(--vw));
    width: 27.03%;
    height: calc(13.05 * var(--vw));
    overflow: hidden;
}

.pf {
  flex: 1;
  min-width: 0;
  position: relative;
  height: 100%;
    pointer-events: none;
}
.pt {
    flex: none;
    width: calc(12 * var(--vw));
    cursor: pointer;
    position: absolute;
    right: 0;
    bottom: 0;
    height: 97%;
}
.pt .im {
  margin: 0;
  height: 100%;
    border-radius: 0;
}

div#lt {
    flex-grow: 1;
    padding: 10px 8px;
    box-sizing: border-box;
    gap: 0.5em;
    padding-top: 0;
    max-height: 100%;
}

section {
    padding-left: 35%;
    padding-top: calc(8.7 * var(--vw));
    padding-right: 2.5%;
    padding-bottom: calc(2.2 * var(--vw));
    background: url(../images/background7.webp);
    background-repeat: no-repeat;
    background-size: 100%;
    position: relative;
    aspect-ratio: 1.85567;
    box-sizing: border-box;
}

.tn span:first-child {
    white-space: nowrap;
}

.ds a {
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.ds small {
    margin-top: 5px;
    display: inline-block;
}

.card>.ab:first-child {
    margin-top: 0.3em;
}

.tabContainer,
.gridcontainer {
    padding: 10px;
    scrollbar-gutter: stable;
    overflow: auto;
    padding-left: calc(1 * var(--vw));
    padding-right: calc(2 * var(--vw));
    position: relative;
    max-height: 100%;
    max-width: 100%;
    box-sizing: border-box;
    width: 100%;
}

.gridcontainer {
    padding: 0;
    display: flex;
}

.lineCover {
    content: '';
    background-image: url(../images/bgLineCover.png);
    background-size: 100%;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    position: absolute;
}

.mainWrapper {
    /*display: flex;*/
    height: 100%;
    width: 100%;
}

.mainWrapper th {
  text-align: left;
}
.mainWrapper th, 
.mainWrapper td {
  border-left: 0;
  border-right: 0;
}
.mainWrapper tr:first-of-type th,
.mainWrapper tr:first-of-type td {
  border-top-width: 0;
}
.mainWrapper tr:last-child th,
.mainWrapper tr:last-child td {
  border-bottom-width: 0;
}

/* class picker: allowed-skill icons on the name line, right aligned */
.tn {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
    margin-bottom: 8px;
}

.tn .al {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

.tn .chp {
  margin: 0 0 0 6px;
}

.sks {
    display: flex;
    flex-wrap: wrap;
    padding: calc(0.5 * var(--vw));
    position: absolute;
    bottom: 0;
}

.noVertPadding {
  padding-top: 0;
  padding-bottom: 0;
}

.ski {
  display: inline-flex;
}

.ski.off {
    filter: brightness(0.4);
}

.ski .si {
    height: calc(1.4 * var(--vw));
    width: calc(1.4 * var(--vw));
    padding-right: calc(0.5 * var(--vw));
    padding-top: calc(0.5 * var(--vw));
}

.gm {
  color: #F3CC4B;
}

#tip {
  position: fixed;
  z-index: 20;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.35;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

#tip hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 4px 0;
}

td.gm {
  position: relative;
}

td.gm::after {
    content: "";
    position: absolute;
    right: calc(-0.8 * var(--vw));
    top: calc(0.5 * var(--vw));
    width: 0;
    height: 0;
    border-left: calc(0.3 * var(--vw)) solid transparent;
    border-right: calc(0.3 * var(--vw)) solid transparent;
    transform: translateY(-50%);
}

td.gm.up::after {
  border-bottom: 7px solid currentColor;
}

td.gm.dn::after {
  border-top: 7px solid currentColor;
}

.mv {
    position: absolute;
    top: calc(19.8 * var(--vw));
    left: calc(28 * var(--vw));
    text-align: right;
    width: calc(5 * var(--vw));
    font-size: calc(1.25 * var(--vw));
    line-height: 150%;
}

.chp .bn {
    font-size: 10px;
    padding: 1px;
    border-width: 1px;
    right: -5px;
    top: -5px;
}

.cardButtons {
    position: absolute;
    display: flex;
    /*border: 2px solid var(--line);*/
    border-radius: 0;
    /*background: var(--bgT);*/
    padding: 0;
    width: 61%;
    top: calc(5.95 * var(--vw));
    z-index: 1;
    justify-content: center;
    left: 34.3%;
    pointer-events: none;
    line-height: calc(2.2 * var(--vw));
    height: calc(2.2 * var(--vw));
    box-sizing: border-box;
}

.cardButtons>.pk {
    pointer-events: all;
    flex-grow: 1;
    margin-left: 0;
    margin-right: 0;
    font-size: max(15px, calc(1 * var(--vw)));
    flex-basis: 1%;
    white-space: nowrap;
    border-radius: 0;
    background: none;
    /*border: 2px solid transparent;
    margin: -2px;*/
    border: 0;
    padding-top: 0;
    padding-bottom: 0;
    text-align: center;
    padding-left: 0.4em;
    padding-right: 0.4em;
}

.cardButtons>.pk.open {
  text-shadow: var(--glow);
  background: #43453a75;
}

.bt {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bgT);
  display: inline-block;
}

.sc {
  margin-top: 8px;
}

.bt::before,
.compareButtons>.pk::before {
  content: "";
  display: inline-block;
  margin-right: 8px;
  border-left: 7px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.bt.open::before {
  transform: rotate(90deg);
}

.wrapper {
    overflow: hidden;
    max-width: 100%;
    max-height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-width: var(--minW);
}

.ci {
    height: calc(1.2em + calc(0.8 * var(--vw)));
    width: calc(1.2em + calc(0.8 * var(--vw)));
    object-fit: contain;
    vertical-align: middle;
    margin: calc(-0.4 * var(--vw));
    margin-right: 4px;
}

.ci.mi {
    height: calc(1.2em + calc(0.4 * var(--vw)));
    width: calc(1.2em + calc(0.4 * var(--vw)));
    margin-left: calc(-0.2 * var(--vw));
    margin-right: calc(calc(0.2 * var(--vw)) + 4px);
}

/* compare views (characters, weapons, combat arts and magic) */
.bt.nb::before {
  content: none;
}

#cmp {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 12px 12px;
  box-sizing: border-box;
}

#cmc, #mc {
    overflow: auto;
    margin: 0 calc(1 * var(--vw));
    margin-bottom: calc(1 * var(--vw));
}

#mc>*:first-child {
  margin-top: 2px;
}

#cmc td, #cmc th {
  border-color: var(--line2);
  user-select: none;
}

.maxWidthColumn {
  width: calc(50 * var(--vw));
}

.maxWidthColumn details {
  display: inline-block;
  margin-right: 10px;
  padding: 0;
}

*[data-mt] {
  cursor: pointer;
}

#cmc .sk {
    padding: 0;
}

#cmc .sk li .rk {
  display: none;
}

.modalabilities .growthCol {
  display: none;
}

.abilityColumn {
    width: calc(25 * var(--vw));
}

#cmc li {
    border: 0;
    padding: 1px 0;
}

#cmc details {
  padding: 0;
}

small details summary {
  text-decoration: underline;
}

small details summary::marker {
  text-decoration: none;
}

#cmc small:not(:last-child) details:open {
    margin-bottom: 5px;
}

td.eff {
    padding: 0;
}

#cmc details:not(:first-of-type) {
    margin-top: 4px;
}

.eff,
.skill {
  text-align: left;
  white-space: nowrap !important;
}

img.ef {
    height: calc(8px + 1em);
    width: calc(8px + 1em);
    margin-top: 0.2em;
}

.nameField,
.art-name,
.classNameField {
  min-width: 11em;
}

#cmc th {
    border: 0;
    height: calc(1.5 * var(--vw));
    padding-bottom: calc(0.7 * var(--vw));
    position: relative;
    font-weight: normal;
    text-align: center;
    padding-left: 0;
    padding-right: 0;
}

#cmc tbody th {
  padding: 4px 8px;
}

#cmc tbody th:not(:empty):before {
    height: calc(100% - 2px);
    top: 1px;
}

#cmc th:not(:empty):before {
    content: "";
    position: absolute;
    left: 2px;
    width: calc(100% - 4px);
    height: calc(100% - calc(0.55 * var(--vw)) - 4px);
    border: 2px #39484F solid;
    background: #192D34;
    top: 2px;
    box-sizing: border-box;
    z-index: -1;
}

#cmn .pk,
input[type="search"],
.tile,
.classModal .rc {
    border: 2px #39484F solid;
    background: #192D34;
    border-radius: 0;
}

#cmn .pk.cn.on,
input[type="search"]:focus,
#cmn .pk:hover,
.compareButtons>.pk:hover,
.cardButtons>.pk:hover,
.tile.sel,
.classModal .rc.active {
    background: #3b453a;
    border-color: #60593e !important;
    outline: none;
}

#cmn .pk:hover select {
    background: #3b453a;
}

#cmc thead {
    position: sticky;
    top: 0;
    z-index: 5;
    background: url(../images/headerBG.png);
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: bottom;
    font-size: 16px;
    line-height: 120%;
}

#cmc th.class-skill {
    padding: 4px;
    vertical-align: top;
    padding-top: 8px;
}

#cmn {
    margin: 0 auto 0 0;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    width: 100%;
    padding-right: calc(calc(3.3 * var(--vw)) + 1px);
}

.sr {
  cursor: pointer;
}

.smallRequirements:not(:first-child) {
    margin-left: calc(0.3 * var(--vw));
}

.smallRequirements {
    transform: scale(0.8);
    display: inline-block;
    transform-origin: left;
}

.compareButtons {
    display: flex;
    position: absolute;
    width: 57%;
    top: calc(2.3 * var(--vw));
    z-index: 1;
    justify-content: center;
    left: 0;
    left: 21.5%;
    pointer-events: none;
}

.compareButtons>.pk {
    margin: 0;
    font-size: max(14px, calc(1 * var(--vw)));
    padding: 0 calc(0.4 * var(--vw));
    flex-grow: 1;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
    border: 0;
    border-radius: 0;
    background: none;
    text-shadow: var(--glow);
    line-height: calc(2.2 * var(--vw));
    margin-left: -1px;
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
    position: relative;
}

.compareButtons>.pk:last-child {
    border-right-color: transparent !important;
}
.compareButtons>.pk:first-child {
    border-left-color: transparent !important;
}

.compareButtons>.pk:hover {
    z-index: 1;
}

.compareButtons>.pk:not(:last-child) {
    border-right: 1px solid var(--boxLine);
}

.sr.asc::after,
.sr.desc::after {
  content: "";
  display: inline-block;
  margin-left: 5px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  vertical-align: middle;
  margin-right: -13px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 2px black);
}

.sr.asc::after {
  border-bottom: 6px solid currentColor;
}

.sr.desc::after {
  border-top: 6px solid currentColor;
}

.cn {
  width: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.cn.on {
  background: var(--sel);
  text-shadow: var(--glow);
}

td.cav {
  height: 48px;
  width: 48px;
  min-width: 48px;
  padding: 0;
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
}

.mi.off {
  filter: grayscale(1) brightness(0.5);
}

.tn .ci.mi {
    height: 1.2em;
    margin: 0;
    margin-left: 4px;
    margin-top: -1px;
}

a {
    color: inherit;
}

#cmc * {
    vertical-align: middle;
}

#cmc td:first-child {
  text-align: left;
}

.class-skillList>div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 82px;
}

.class-skillList {
    max-width: 107px;
}

#disclaimer {
  pointer-events: none;
  position: fixed;
  bottom: 0;
  left: 0;
  font-size: 12px;
  width: 100%;
  text-align: center;
  color: #747680;
}

#disclaimer a {
  pointer-events: all;
}

td.cav[data-ch],
td[data-cl] {
  cursor: pointer;
}

#btp,
#lgp {
  margin-top: 8px;
}

.rg th {
  white-space: nowrap;
}

.rg td {
  text-align: left;
}

.rc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 10px;
  cursor: pointer;
}

.rt {
    display: inline-block;
    height: 3em;
    width: 3em;
    background-size: 4.875em auto;
    background-position: -1em top;
    background-repeat: no-repeat;
    border-radius: 6px;
    flex: none;
}

.sg {
  width: auto;
}

.sg th,
.sg td {
  padding: 0;
  min-width: 26px;
  height: 26px;
  text-align: center;
  font-size: 11px;
}

.sgh {
  width: 28px;
  height: 36px;
  background-size: auto 50px;
  background-position: top;
  background-repeat: no-repeat;
  cursor: pointer;
}

.sgr {
  white-space: nowrap;
  text-align: left;
  padding: 0 6px;
  cursor: pointer;
}

.sgr .rt {
  width: 20px;
  height: 24px;
  vertical-align: middle;
  margin-right: 6px;
}

.sgx {
  background: var(--line);
}

a.lr {
    position: relative;
    width: 3em;
    aspect-ratio: 1 / 1;
    display: inline-block;
    vertical-align: middle;
}

a.lr {
    background-size: 180% auto;
    background-position: 45% top;
    background-repeat: no-repeat;
}

a.lr .rk {
    background: rgba(0, 0, 0, 0.67);
    position: absolute;
    right: -6px;
    top: 1px;
    margin: 0;
    z-index: 1;
}

.lic {
  height: 1.3em;
  width: auto;
}

#cmc td {
    white-space: normal;
    border-left: 0;
    border-right: 0;
}

#cmc tbody>tr:first-child td {
    border-top: 0;
}

#cmc tbody>tr:last-child td {
    border-bottom: 0;
}

button#cmx {
    --dim: calc(3.3 * var(--vw) + 1px);
    height: var(--dim);
    width: var(--dim);
    padding: 0;
    line-height: var(--dim);
    position: absolute;
    top: 0;
    right: 0;
    box-sizing: content-box;
    text-align: center;
}

#cmn:empty {
    display: none;
}

input[type="search"],
#cmn .pk {
    border-color: var(--boxLine);
    padding: 0.18vw 0.6vw;
    font-size: min(18px, max(14px, 1.1vw));
    line-height: 120%;
    white-space: nowrap;
    min-height: 1.8vw;
}

.rcCont small:last-child {
    display: block;
    max-width: 300px;
}

th.supportCh {
    background-size: 5em auto;
    background-position: -0.625em top;
    background-repeat: no-repeat;
    height: 2.5em;
    text-align: right;
    vertical-align: top;
    padding-top: 0.5em;
    width: 3.75em;
    text-shadow: var(--thickShadow);
}

*[data-ch] {
  cursor: pointer;
}

.supportCh a {
    margin-left: 3.5em;
    text-decoration: none;
}

.classModal {
    width: auto;
    margin: 0 auto;
}

.classModal td {
    white-space: normal;
}

.classModal td, .classModal th {
    border: 0;
    padding: 0;
}

.rcCont {
    position: relative;
    z-index: 0;
}

.tilemt>div:first-of-type {
    margin-top: 15px;
}

small b,
small details:open,
.ln b {
  color: #c3c2ca;
}

.classModal .rcCont {
    position: relative;
    z-index: 1;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 1;
    text-align: left;
    text-overflow: ellipsis;
}

.classModal .rc {
    display: flex;
    position: relative;
    padding-left: 0;
    margin-right: 8px;
    margin-bottom: 4px;
    line-height: 2em;
    gap: 4px;
    margin-left: 8px;
    padding-right: 8px;
}

.classModal .ci {
    margin: 0;
    height: 2em;
    width: 2em;
    line-height: 1px;
}

.classListMovement {
    transform: scale(0.55);
    position: absolute;
    left: 0;
    top: 0;
    transform-origin: top left;
    display: flex;
    flex-direction: column;
    height: calc(1.818 * 2em);
    justify-content: space-between;
}

.classListWeaponTypes {
    position: absolute;
    top: 0;
    right: 0;
    line-height: 1px;
    transform: scale(0.55);
    transform-origin: top right;
    max-height: calc(1.818 * 2em);
}

.rc[data-v="Commoner"] .classListWeaponTypes,
.rc[data-v="Noble"] .classListWeaponTypes {
  display: none;
}

.classListMovement .si {
    vertical-align: top;
}

.classListMovement>*[data-l="Infantry"] {
  display: none;
}

.classModal td, .classModal th {
  border: 0;
}

.classModal th {
    padding-top: 12px;
    padding-bottom: 2px;
}

#cmc .bn {
    font-size: 10px;
    right: -10px;
    top: -5px;
}

.mount-abilities {
    width: min(20vw, 300px);
}

.class-growth, .class-skill {
  padding: 2px;
  font-size: 16px;
}

.class-growth small:not(.tableSv) {
  display: block;
}

#cmc th.class-skill {
    padding: 6px;
    vertical-align: top;
    padding-right: 12px;
}

#cmc th.class-skill .sw {
    line-height: 1.25vw;
    vertical-align: baseline;
}

#cmc th.class-skill img {
    height: 1.25vw;
    margin-right: -6px;
}

.class-requirements {
    text-align: left;
}

.class-requirements>div:first-child {
    display: flex;
    justify-content: space-between;
    white-space: nowrap;
}

.class-requirements>small:first-of-type {
    display: block;
    margin-top: 5px;
}

td.characterName a {
    text-decoration: none;
    font-weight: bold;
}
td.characterName {
    text-align: left;
    white-space: nowrap !important;
    padding-top: 0;
    padding-bottom: 0;
}

.grid2 .sk {
    padding-left: 0;
}

.sv {
  display: none;
}

.weaponTrait {
    padding-left: 2px;
    padding-right: 2px;
}

.tableSv {
  display: none;
  overflow: hidden;
  text-overflow: ellipsis;
}

#sortBar {
  display: none;
  padding: 0 8px !important;
}

.sortToggle {
  flex-basis: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: inherit;
  background: transparent;
  border: 0;
  outline: none;
  color: inherit;
  padding: 2px 8px;
  cursor: pointer;
}

.sortArrow {
  transition: transform .15s;
}

#sortBar.open .sortArrow {
  transform: rotate(180deg);
}

#sortBar:not(.open) .sortChip {
  display: none;
}

.flex-break {
  flex-basis: 100%;
  height: 0;
}

.sortChip {
  font: inherit !important;
  background: transparent !important;
  outline: none !important;
  border: 0 !important;
  color: inherit !important;
  padding: 2px 7px !important;
  cursor: pointer !important;
  flex-basis: 1px !important;
  width: auto !important;
  min-width: auto !important;
  max-width: none !important;
  height: auto !important;
  min-height: auto !important;
  max-height: none !important;
}

.giftContainer small {
  font-weight: normal;
}

.sortChip::after {
  content: '';
  position: absolute;
}

.sortChip.asc::after {
  content: ' ▲';
}

.sortChip.desc::after {
  content: ' ▼';
  visibility: visible;
}

.art-skill {
  white-space: nowrap !important;
}

select.sortSel {
    background: none;
    border: 0;
    max-width:100%;
    font: inherit;
    background: #192D34;
    border-radius: 0;
    outline: none;
    padding: 2px;
}

#sortBar label {
    display: flex;
    white-space: nowrap;
    align-items: center;
    gap: 6px;
}

#cmc td:first-child b {
  white-space: normal;
}



@media screen and (max-width: 1250px) {
    .fv {
      display: none;
    }

    .sv {
      display: inline-block;
    }

    #disclaimer {
      display: none;
    }
}

@media screen and (max-width: 1250px) and (max-aspect-ratio: 200/100) {
    /* Move the entire page to the left so it fits on the screen even as the right side starts getting cut off*/
    .wrapper {
        transform: scale(1.08);
        transform-origin: left center;
    }

    .wrap {
        transform-origin: left top;
        left: calc(-5 * var(--vw) * var(--scale));
    }
}

@media screen and (max-width: 1250px) and (min-aspect-ratio: 200/100) {
    .wrapper {
        --wrapperScale: 1.08;
        transform: scale(var(--wrapperScale));
        --wrapperLeft: calc(16px * 6 / var(--wrapperScale));
        padding-left: calc(var(--wrapperLeft) + calc(50 * var(--vw)) * (var(--wrapperScale) - 1));
        margin-top: calc(-0.6 * var(--vw));
        transform-origin: center;
    }

    .wrap {
        /*left: calc((100vw / 100vh - (185 / 100)) * 16px * 3.5 * 1.083 / var(--scale));*/ /* Center the wrapper as we are aligning left*/
        transform-origin: left top;
    }

    .compareButtons {
        left: calc(-1 * var(--wrapperLeft) / var(--scale) + 7px);
        width: calc(var(--wrapperLeft) / var(--scale) + calc(2 * var(--vw) + 3.3vw) - 12px);
        flex-direction: column;
        height: 100%;
        gap: 8px;
        top: 0;
    }

    .compareButtons>.pk {
        font-size: calc(13px / var(--scale));
        border: 0 !important;
        background: #192D34;
        max-height: 2em;
        line-height: 2em;
        background: url(../images/buttonInactiveBG.png) !important;
        background-size: 100% 100% !important;
        text-shadow: none;
        filter: drop-shadow(0.1em 0.1em 0.1em rgba(0, 0, 0, 120));
    }

    .compareButtons>.pk:hover,
    .compareButtons>.pk:focus {
        text-shadow: var(--glow);
    }
}

@media screen and (max-width: 1100px) {
  #cmc thead {display:none}
  #sortBar:not(:empty) {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
  }

#cmc.modalgrowths .growthCol {
    min-height: 48px;
}

#cmc tr {
  display: grid;
  grid-template-columns: repeat(48, 1fr);
  align-items: center;
}

.collapseEmpty:empty {
  display: none;
}

#cmc thead>tr {
    padding-bottom: 0.7vw;
}

#cmc th:not(:empty):before {
    height: calc(100% - 0.55vw);
}

#cmc th {
  padding-bottom: 4px;
}

#cmc tr > * {
  grid-column: span 6;
  max-width: none !important;
  width: auto !important;
}

#cmc tr > *.characterName {
  overflow: hidden;
  text-overflow: ellipsis;
}

.weightedCol {
  display: none !important;
}

#cmc tr {
  border-bottom: 1px solid var(--line2);
}

.classModal tr {
    display: flex;
    flex-wrap: wrap;
}

.classModal td {
    flex-basis: max(33.3%, min(50%, 200px));
}
.classModal td:empty {
  display: none;
}

#cmc tr:last-child {
  border-bottom-width: 0;
}

#cmc tr > td {
  border-width: 0;
  box-sizing: border-box;
}
#cmc tr > td:empty {
  padding: 0;
}

#cmc thead {
  position: relative;
}

#cmc tr > .col1 {
  grid-column: span 3;
}

#cmc tr > .col1plus {
  grid-column: span 4;
}

#cmc tr > .cols5 {
  grid-column: span 5;
}

#cmc tr > .col2 {
  grid-column: span 6;
}

#cmc tr > .col3 {
  grid-column: span 9;
}

#cmc tr > .cols10 {
  grid-column: span 10;
}

#cmc tr > .cols11 {
  grid-column: span 11;
}

#cmc tr > .col4 {
  grid-column: span 12;
}

#cmc tr > .col5 {
  grid-column: span 15;
}

#cmc tr > .col6 {
  grid-column: span 18;
}

#cmc tr > .cols19 {
  grid-column: span 19;
}

#cmc tr > .cols20 {
  grid-column: span 20;
}

#cmc tr > .col7 {
  grid-column: span 21;
}

#cmc tr > .col8 {
  grid-column: span 24;
}

#cmc tr > .col9 {
  grid-column: span 27;
}

#cmc tr > .col10 {
  grid-column: span 30;
}

#cmc tr > .col42 {
  grid-column: span 42;
}

#cmc tr > .newRow {
  grid-column: 1 / 7;
}

#cmc tr > .colHalf {
  grid-column: span 12;
}

#cmc tr > .colRow {
  grid-column: span 24;
}

#cmc tr > .colThirdRow {
  grid-column: span 36;
}

#cmc tr > .newRow.colHalf {
  grid-column: 1 / 13;
}

#cmc tr > .colRowFull {
  grid-column: span 48;
}

#cmc tr > .newRow.colRow {
  grid-column: 1 / 25;
}

#cmc tr > .newRow.colThirdRow {
  grid-column: 1 / 37;
}

.tableSv .sv {
    display: inline-block;
}
#cmc tr .tableSv:not(.inline) {
  display: block;
}
#cmc tr .tableSv.inline {
  display: inline-block;
}

#cmc tr.halfRow {
    grid-template-columns: repeat(36, 1fr);
    width: 50%;
    display: inline-grid;
}

    #cmc.modalWg tr {
        grid-template-columns: repeat(84, 1fr);
    }

    #cmc tr > .class-growth {
        grid-column: span 4;
    }

    #cmc tr > .class-total {
        grid-column: span 5;
    }

    #cmc.modalWg.modalabilities .col8 {
        grid-column: span 28;
    }

    #cmc.modalWc tr,
    #cmc.modalWm tr {
        grid-template-columns: repeat(60, 1fr);
    }

    #cmc .class-requirements {
        grid-column: 46 / 61 !important;
        grid-row: 1 !important;
    }

    #cmc tr > .mount-abilities {
        grid-column: span 24;
    }

    #cmc .mount-location {
      grid-column: 37 / 61 !important;
      grid-row: 1 !important;
    }

    #cmc tr > .art-trait {
      grid-column: span 4;
      padding-left: 2px;
      padding-right: 2px;
    }
    #cmc tr > .art-name {
        grid-column: span 16;
    }

    #cmc tr > .art-skill {
      grid-column: span 6;
      padding-left: 2px;
      padding-right: 2px;
    }

    #cmc table {
      overflow: hidden;
    }
}

@media screen and (max-width: 1100px) and (min-width: 700px) {
    #cmc.modalWw tr > .combatArt {
        grid-column: span 36;
    }

    #cmc tr > .nameField {
      grid-column: span 14;
    }

    #cmc tr > .skill {
      grid-column: span 6;
      padding-left: 2px;
      padding-right: 2px;
    }

    #cmc tr > .weaponTrait {
      grid-column: span 4;
    }

    #cmc tr > .eff {
      grid-column: span 4 !important;
    }
}

@media screen and (max-width: 900px) {
    .gridcontainer {
        flex-direction: column;
    }

    .grid2 {
        width: auto;
    }

    #mainWrapper::before {
      content: '';
      background-image: url(../images/bgLineCover.png);
      background-size: 100%;
      width: 100%;
      height: 100%;
      left: 0;
      top: 0;
      position: absolute;
    }
}

@media screen and (max-width: 700px) {
    #cmc tr {
        grid-template-columns: repeat(36, 1fr);
    }

    #cmc tr > .colRow,
    #cmc tr > .colThirdRow,
    #cmc tr > .colRowFull {
      grid-column: span 36;
    }

    #cmc tr > .newRow.colHalf {
      grid-column: 1 / 19;
    }

    #cmc tr > .newRow.colRow,
    #cmc tr > .newRow.colThirdRow {
      grid-column: 1 / 37;
    }


    #cmc tr.halfRow {
        width: 100%;
    }

    
    #cmc.modalWg tr {
        grid-template-columns: repeat(42, 1fr);
    }

    #cmc.modalWg.modalabilities .col8 {
        grid-column: span 42;
    }

    #cmc.modalWc tr {
        grid-template-columns: repeat(30, 1fr);
    }

    #cmc.modalWm tr {
        grid-template-columns: repeat(27, 1fr);
    }

    #cmc.modalWm tr > .col3 {
        grid-column: span 7;
    }

    #cmc.modalWm tr > td.col3 {
        padding: 4px 2px;
    }

    #cmc.modalWm tr > .col5 {
        grid-column: span 10;
    }

    #cmc .mount-location {
        grid-column: span 14 !important;
        grid-row: auto !important;
    }

    #cmc tr > .mount-abilities {
        grid-column: span 13;
    }

    #cmc tr > .class-growth {
        grid-column: span 3;
    }

    #cmc tr > td.class-growth {
        grid-column: span 3;
        font-size: 12px;
        line-height: 100%;
    }

    #cmc tr > .class-mov {
        grid-column: span 4;
    }

    #cmc tr > td.class-mov {
        font-size: 14px;
        line-height: 120%;
    }

    #cmc .class-requirements {
        grid-column: span 15 !important;
        grid-row: auto !important;
    }

    #cmc tr > .class-skillList {
      grid-column: span 27;
  }

    #cmc tr > .blaze-name {
        grid-column: span 19;
    }

    #cmc tr > .blaze-effect {
        grid-column: span 36;
    }

    #cmc tr > .blaze-unlock {
        grid-column: span 21;
    }

    #cmc tr > .blaze-character {
        grid-column: 1 / 15 !important;
        grid-row: 4;
        text-align: right;
        padding: 0;
    }

    #cmc tr > .blaze-kind {
        grid-column: 23 / 37 !important;
        grid-row: 1 !important;
    }

    #cmc tr > .art-trait {
        grid-column: span 6;
    }

    #cmc tr > .art-name {
        grid-column: span 24;
    }
}

@media screen and (max-width: 700px) and (orientation: portrait) {
  .wrapper {
      transform: scale(1.22);
      transform-origin: left center;
  }

  section {
      padding-right: 13%;
  }
  
  .compareButtons {
        gap: 6px;
        transform: translateY(-87%);
        flex-wrap: wrap-reverse;
        left: 14%;
        width: 72%;
  }

  .compareButtons>.pk {
        font-size: calc(9px / var(--scale));
        border: 0 !important;
        background: url(../images/buttonInactiveBG.png) !important;
        background-size: 100% 100% !important;
        text-shadow: none;
        line-height: 180%;
        padding: 0;
        flex-grow: 0;
        aspect-ratio: 4.4 / 1;
        height: 1.7em;
        filter: drop-shadow(0.1em 0.1em 0.1em rgba(0, 0, 0, 120));
  }

    .compareButtons>.pk:hover,
    .compareButtons>.pk:focus {
        text-shadow: var(--glow);
    }

    .cardButtons {
        width: calc(61% - max(0px, var(--minW) - 100vw));
        justify-content: flex-start;
    }
}