@font-face {
    font-family: "Nocturne";
    src: url('../images/NocturneSerif-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

: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/tileBg3.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: 15px;
	line-height: 130%;
}
@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: 130%;
  font-weight: normal;
  margin: 0;
  margin-left: 1em;
  margin-bottom: 4px;
}

.idForge { width: 100%; font-size: 14px; }
.idForge th, .idForge td { padding: 2px 6px; border-color: var(--line2); }
.idForge td.idUp { color: #9fe0a0; }
.idForge tr.idCur { background: var(--sel); }
.idForge .l { text-align: left; white-space: normal; }

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

p.m,
small,
.idText {
  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.20 * var(--vw));
    font-size: calc(1.25 * var(--vw));
    line-height: 180%;
    width: auto;
}

#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.46 * var(--vw));
    box-sizing: content-box;
    width: calc(6.7 * var(--vw));
    cursor: pointer;
}
.spider-chart-container {
    position: absolute;
    left: 24.4%;
    top: calc(22.6 * var(--vw));
    width: 9.35%;
    aspect-ratio: 1 / 1;
    line-height: 0;
}

.lrs .lr {
  width: 2.4em;
}

.recruitContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 10px;
}

.recruitContainer>span {
    flex-basis: 17em;
    max-width: calc(33% - 5px);
    margin: 0;
}

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

div#abil {
    padding-bottom: 0;
}

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

#gt td:empty {
  display: none;
}

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 {
  margin: 12px 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;
}

.searchIcon {
    display: flex;
    margin-left: auto;
}

.searchIcon svg {
    width: 1em;
    margin-right: 0.5em;
}

.sk li {
  display: flex;
  border-top: 1px solid var(--line);
}

.sk li summary {
  padding: 0.3em 0;
}

.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: 1.5em;
    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;
}

.skill>*,
.art-skill>*,
.requirementsWrapper>*,
.smallRequirements>* {
  vertical-align: text-bottom;
}

#cmn .pk.tabIc { display: inline-flex; align-items: center; gap: 4px; }
#cmn .pk.tabIc .si { height: 1.2em; width: 1.2em; margin: 0; object-fit: contain; }

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

.pl .si,
.giftContainer .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;
}

summary {
  line-height: 130%;
  cursor: pointer;
}

small summary {
  line-height: 130%;
}

.lrs .lr {
    margin: 1px 2px;
    vertical-align: middle;
}

.st {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  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%;
}

.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;
  min-height: 50%;
}

.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;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 122.879 119.799' fill='%23757575'%3E%3Cpath d='M49.988,0h0.016v0.007C63.803,0.011,76.298,5.608,85.34,14.652c9.027,9.031,14.619,21.515,14.628,35.303h0.007v0.033v0.04 h-0.007c-0.005,5.557-0.917,10.905-2.594,15.892c-0.281,0.837-0.575,1.641-0.877,2.409v0.007c-1.446,3.66-3.315,7.12-5.547,10.307 l29.082,26.139l0.018,0.016l0.157,0.146l0.011,0.011c1.642,1.563,2.536,3.656,2.649,5.78c0.11,2.1-0.543,4.248-1.979,5.971 l-0.011,0.016l-0.175,0.203l-0.035,0.035l-0.146,0.16l-0.016,0.021c-1.565,1.642-3.654,2.534-5.78,2.646 c-2.097,0.111-4.247-0.54-5.971-1.978l-0.015-0.011l-0.204-0.175l-0.029-0.024L78.761,90.865c-0.88,0.62-1.778,1.209-2.687,1.765 c-1.233,0.755-2.51,1.466-3.813,2.115c-6.699,3.342-14.269,5.222-22.272,5.222v0.007h-0.016v-0.007 c-13.799-0.004-26.296-5.601-35.338-14.645C5.605,76.291,0.016,63.805,0.007,50.021H0v-0.033v-0.016h0.007 c0.004-13.799,5.601-26.296,14.645-35.338C23.683,5.608,36.167,0.016,49.955,0.007V0H49.988L49.988,0z M50.004,11.21v0.007h-0.016 h-0.033V11.21c-10.686,0.007-20.372,4.35-27.384,11.359C15.56,29.578,11.213,39.274,11.21,49.973h0.007v0.016v0.033H11.21 c0.007,10.686,4.347,20.367,11.359,27.381c7.009,7.012,16.705,11.359,27.403,11.361v-0.007h0.016h0.033v0.007 c10.686-0.007,20.368-4.348,27.382-11.359c7.011-7.009,11.358-16.702,11.36-27.4h-0.006v-0.016v-0.033h0.006 c-0.006-10.686-4.35-20.372-11.358-27.384C70.396,15.56,60.703,11.213,50.004,11.21L50.004,11.21z'/%3E%3C/svg%3E");
    background-size: 1em;
    background-position: 0.2em center;
    background-repeat: no-repeat;
    padding-left: 1.4em !important;
}

.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;
}

.mountSelectionGrowth {
    width: calc(100% + 8px);
    margin: 0px -4px;
}

.mountSelectionGrowth tr {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
}

.mountSelectionGrowth td {
  border: 0;
  color: var(--text);
}

.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%, 25em), 1fr));
}

.wrap {
    margin: auto;
    position: relative;
    line-height: 130%;
    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: 130%;
}

.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: 130%;
    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: 130%;
  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;
}

#cmc small:has(> details) + br { display: none; }

summary .si { margin-right: 4px; }

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/background8.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;
    padding-left: calc(1 * var(--vw));
    padding-right: calc(1 * var(--vw));
    padding-top: 0;
    position: relative;
    max-height: 100%;
    max-width: 100%;
    box-sizing: border-box;
    width: 100%;
}

.tabContainer,
.gridcontainer>* {
    overflow: auto;
    scrollbar-gutter: stable;
}

.tabContainer>*:first-child {
  padding-top: 0;
  margin-top: 12px;
}

.tabContainer p {
  padding-left: 8px;
  padding-right: 8px;
}

.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.7 * 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;
    text-decoration: none;
}

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

.rcPath .rt {
    width: 4em;
    height: 4em;
    background-position: top center;
    background-size: 6em auto;
    cursor: auto;
}

.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;
}

.skillContainer {
  float: left;
  vertical-align: middle;
}

.skillContainer>* {
    vertical-align: text-bottom;
}

summary>.si,
summary>.sw {
  float: left;
}

.modalTitle {
    display: flex;
    align-items: center;
    margin: 0 0.5em;
    font-size: min(18px, max(14px, 1.1vw));
    pointer-events: none;
}

.skillContainer .si {
  margin-right: 0;
}

#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;
}

#cmc details:not(:first-child) {
  padding-top: 2px;
}

details {
  width: 100%;
}

details summary {
  width: 100%;
}

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-color: #192D34;
    top: 2px;
    box-sizing: border-box;
    z-index: -1;
}

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

.pk.cn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

#cmn .pk:hover select {
    background-color: #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: 130%;
}

#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 - 1vw);
}

.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(13.5px, calc(1.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;
}

a:hover {
  text-shadow: var(--glow);
}

#cmc .si {
    vertical-align: text-bottom;
}

#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: 130%;
    white-space: nowrap;
    min-height: 1.8vw;
    text-decoration: none;
}

.rcCont small:last-child {
    display: block;
}

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

div.supportCh {
  width: 15em;
}

*[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;
}

.gsSearch {
    pointer-events: all;
    left: 4%;
    top: calc(var(--vw) * 2);
    position: absolute;
    z-index: 5;
    width: 14%;
}
.gsSearch input { max-width: none; min-width: 0; width: 100%; }

#gsr { position: absolute; top: 100%; left: 0; width: min(440px, 90vw); max-height: min(70vh, 520px); margin-top: 4px; overflow: auto; z-index: 20; background: #142324; border: 2px solid var(--boxLine); box-shadow: 0 6px 18px rgba(0,0,0,.6); text-align: left; text-shadow: none; }

#gsr .gsClasses { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; width: auto; }

#gsr .gsClasses .rc { margin: 0; flex: 1 1 160px; }

#gsr .gsChars { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); padding: 6px; }

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

#cmn .mxToggle::before {
  content: "";
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-right: 6px;
  border: 2px solid var(--boxLine);
  background: #0b1416;
  vertical-align: middle;
}

#cmn .mxToggle.on::before {
  border-color: #60593e;
  background: #0b1416 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3' fill='none' stroke='%23ffe8c4' stroke-width='2'/%3E%3C/svg%3E") center / 90% no-repeat;
}

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

.combatArt {
    min-width: 12em;
}

.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;
}

.rcAllP {
  margin: 12px 0 0; 
    font-size: 16px;
    line-height: 140%;}

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

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

.giftContainer h1:not(:first-child) {
  margin-top: 12px;
}

.giftList>* {
    min-width: 14em;
}

.sv {
  display: none;
}

.dottedUnder {
  text-decoration: underline dotted;
}

.rcPath b a {
    padding-top: 3px;
    padding-bottom: 3px;
}

.rcPath { display: flex; margin: 0 0 8px; }

a.itemLink {
  text-decoration: underline dotted;
  text-underline-offset: 2px;
  cursor: pointer;
}

a.itemLink:hover {
  color: var(--text);
}

.idNote + .idNote {
  margin-top: 8px;
}

.weaponTrait {
    padding-left: 2px;
    padding-right: 2px;
    white-space: nowrap !important;
}

.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;
}





/* ---------- world map popup (map.js) ---------- */
a.loc { text-decoration: underline dotted; text-underline-offset: 2px; cursor: pointer; }
#lmp { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 15; display: flex; justify-content: center; padding: calc(env(safe-area-inset-top, 0px) + 12px) 12px 12px; box-sizing: border-box; }
#lmp .mb { height: 100%; }
#lmn { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; width: 100%; padding-right: calc(3.3 * var(--vw) + 1px - 1vw);}
#lmn .pk, #lmf .pk { border: 2px solid var(--boxLine); background-color: #192D34; border-radius: 0; padding: 0.18vw 0.6vw; font-size: min(18px, max(14px, 1.1vw)); line-height: 130%; white-space: nowrap; text-decoration: none; }
#lmn .pk.on, #lmn .pk:hover, #lmf .pk.on, #lmf .pk:hover, #lmd .pk:hover { background-color: #3b453a; border-color: #60593e; }
#lmn .pk.lmOff { opacity: .45; }
#lmx { --dim: calc(3.3 * var(--vw) + 1px); position: absolute; top: 0; right: 0; height: var(--dim); width: var(--dim); padding: 0; text-align: center; 
    font-size: max(16px, calc(1.2 * var(--vw) + 1px));}
#lmf { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 4px calc(1 * var(--vw)); font-size: 13px; 
display: none;} /*Disabled */
#lmf .lmGroup { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; }
#lmf .pk { font-size: 13px; padding: 1px 6px 1px 2px; display: inline-flex; align-items: center; gap: 3px; }
#lmf .pk:not(.on) { opacity: .45; background-color: transparent; }
#lmf .pk img { height: 18px; }
#lmb { flex: 1; min-height: 0; display: flex; gap: 8px; margin: 0 calc(1 * var(--vw)) calc(1 * var(--vw)); padding-top: 4px; }
#lmv { flex: 1; min-width: 0; position: relative; overflow: hidden; background: #0b1416; border: 2px solid var(--boxLine); touch-action: none; cursor: grab; user-select: none; }
#lmv.drag { cursor: grabbing; }
#lmw { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
#lmk { position: absolute; inset: 0; }
.lmm { position: absolute; width: var(--pin, 26px);
  height: var(--pin, 26px); padding: 0; border: 0; background: none; transform: translate(-50%, -50%); cursor: pointer;
  background: center / contain no-repeat;
  /*filter: drop-shadow(0 1px 2px #000);*/
}
.lmm:hover { z-index: 2; transform: translate(-50%, -50%) scale(1.25); }
.lmm.on { z-index: 3; width: calc(var(--pin, 26px) * 1.45);
  height: calc(var(--pin, 26px) * 1.45); border-radius: 50%; box-shadow: 0 0 0 3px #ffe8c4, 0 0 14px 4px #e0c18f; background-color: rgba(0,0,0,.45); }

.lmm.lmmBig {
  width: calc(var(--pin, 26px) * 1.35);
  height: calc(var(--pin, 26px) * 1.35);
}

.lmm.lmmBig.on {
  width: calc(var(--pin, 26px) * 1.35 * 1.45);
  height: calc(var(--pin, 26px) * 1.35 * 1.45);
}

a.loc, a.lmItem, a.itemLink, .giftBtn { white-space: nowrap; }

.lmm.p-base {
  width: calc(var(--pin, 26px) * 1.65);
  height: calc(var(--pin, 26px) * 1.65);
}

.lmm.p-base.on {
  width: calc(var(--pin, 26px) * 1.65 * 1.45);
  height: calc(var(--pin, 26px) * 1.65 * 1.45);
}

.lmm.lmmMid {
  width: calc(var(--pin, 26px) * 1.2);
  height: calc(var(--pin, 26px) * 1.2);
}

.lmm.lmmMid.on {
  width: calc(var(--pin, 26px) * 1.2 * 1.45);
  height: calc(var(--pin, 26px) * 1.2 * 1.45);
}
#lmz { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 4px; z-index: 4; }
#lmz .pk { width: 32px; height: 32px; padding: 0; text-align: center; font-size: 18px; border: 2px solid var(--boxLine); background-color: #192D34; }
#lmd { width: max(30vw, 320px); flex: none; overflow: auto; padding: 4px 8px; box-sizing: border-box; font-size: 15px; }
#lmd h2 { margin: 4px 0; }
.lmMeta { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--mut); }
.lmCat { display: inline-flex; align-items: center; gap: 3px; }
.lmCat img { height: 18px; }
.lmDesc, .lmHint { color: var(--mut); margin: 8px 0; }
.lmSec { margin: 10px 0; }
.lmSec ul { list-style: none; margin: 2px 0 0; padding: 0; }
.lmSec li { padding: 2px 0; border-top: 1px solid var(--line2); display: flex; align-items: center; gap: 4px; }
.lmCols { display: flex; gap: 10px; }
.lmCols > .lmSec { flex: 1; margin: 0; }
.lmIc { height: 20px; width: 20px; object-fit: contain; }
#lmd .pk { border: 2px solid var(--boxLine); background-color: #192D34; padding: 0 6px; margin: 2px 0; display: inline-block; text-decoration: none; }
@media screen and (max-width: 800px) {
  #lmb { flex-direction: column; }
  #lmd { width: auto; max-height: 40%; }
  #lmf { flex-wrap: nowrap; overflow-x: auto; }
  #lmf .lmGroup { flex-wrap: nowrap; }
}

.acqInline {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
}

.acqInline .acqLoc {
  white-space: nowrap;
}

.lmShopGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 6px 10px;
}

.lmShopGrid > .lmSec {
  margin: 0;
}

.srcK {
  color: var(--mut);
  font-size: 0.9em;
  white-space: nowrap;
}

.locIc {
  height: 1.2em;
  width: 1.2em;
  object-fit: contain;
  vertical-align: text-bottom !important;
  margin-right: 2px;
}

.lmPing {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid #ffe8c4;
  box-shadow: 0 0 10px #e0c18f;
  transform: translate(-50%, -50%);
  animation: lmPing 1.2s ease-out 3 both;
  pointer-events: none;
}

.lmPing2 {
  animation-delay: 0.4s;
}

@keyframes lmPing {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(3.4); opacity: 0; }
}

#lmk.finding .lmm:not(.hit):not(.on) {
  opacity: 0.3;
}

.lmm.hit {
  z-index: 2;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #ffe8c4;
  background-color: rgba(0, 0, 0, 0.35);
}

.lmSearch {
  position: relative;
  margin-left: auto;
  flex: 1;
  max-width: 400px;
  min-width: 150px;
}

.lmSearch input[type="search"] {
  max-width: none;
  width: 100%;
}

#lmr {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 20;
  max-height: min(60vh, 420px);
  overflow: auto;
  background: #142324;
  border: 2px solid var(--boxLine);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

.lmRes {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 15px;
}

.lmRes.act,
.lmRes:hover {
  background: #3b453a;
}

.lmRes .lmResName {
  flex: 1;
}

.lmRes .lmIc,
.lmRes .locIc {
  height: 20px;
  width: 20px;
}

.lmNone {
  color: var(--mut);
  cursor: default;
}
.lmm.off { opacity: 0; }
.lmm.off.on {
  opacity: 1;
  filter: grayscale(1);
  box-shadow: 0 0 0 2px #9a9a9a, 0 0 10px 3px rgba(160, 160, 160, 0.6);
  outline: 2px dashed #ffe8c4;
  outline-offset: 3px;
  background-color: rgba(0, 0, 0, 0.45);
}

.lmFind {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 6px 8px;
  margin: 4px 0 8px;
  border: 2px solid var(--boxLine);
  background: #192D34;
}

.lmFind .pk {
  margin-left: auto;
  border: 0;
  padding: 0 4px;
}

.lmLink,
.lmBack {
  text-decoration: none;
}

.lmLink:hover,
.lmBack:hover {
  text-shadow: var(--glow);
}

.lmOffTab {
  opacity: 0.5;
}

#lmd mark {
  background: #60593e;
  color: inherit;
  padding: 0 2px;
}

summary a.loc {
  display: inline-block;
}

.lmFindText {
  margin: 2px 0 0;
}

.lmScroll {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

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

.scrollSources .si {
  margin-right: 2px;
}

#lma {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}

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

#md,
#cmp,
#lmp,
#idp {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

#idp .mb {
  width: min(560px, 100%);
  min-height: 0;
  max-height: min(90vh, 100%);
}

#idp .mh {
  padding-right: calc(3.3 * var(--vw) + 6px);
  background: url(../images/divider.png);
  background-repeat: no-repeat;
  background-size: calc(100% - 2vw);
  background-position: bottom;
  margin-bottom: 0;
}

#idp .mb:before {
  background-image: url(../images/listBottom.png);
  transform: scaleY(-1);
  background-position: bottom center;
}

.idHead {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 18px;
}

.idHead .si,
.idHead .ci {
  height: 28px;
  width: 28px;
  margin: 0;
  object-fit: contain;
}

.idHead small {
  color: var(--mut);
  font-size: 13px;
}

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

#idc {
  overflow: auto;
  padding: 6px calc(1.2 * var(--vw)) calc(1.2 * var(--vw));
  font-size: 15px;
}

.idStats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 4px 0 8px;
}

.idStats span {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  padding: 3px 6px;
  border: 2px solid #39484F;
  background: #192D34;
}

.idStats small {
  color: var(--mut);
  font-size: 11px;
}

.idReq {
  margin: 4px 0;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.idReq small {
  color: var(--mut);
  margin-right: 4px;
}

.idText {
  margin: 6px 0;
  white-space: normal;
}

.idSec {
  margin: 10px 0 0;
}

.idSec h3 {
  font-size: 14px;
  font-weight: normal;
  color: var(--mut);
  margin: 0 0 4px;
  border-bottom: 1px solid var(--line2);
}

.idArea {
  font-family: monospace;
  line-height: 1.1;
  margin: 4px 0;
}

.idChip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 2px 10px 2px 0;
}

a.lmItem {
  text-decoration: none;
}

a.lmItem:hover {
  text-shadow: var(--glow);
  text-decoration: underline dotted;
}

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

    .sv {
      display: inline-block;
    }

    #disclaimer {
      display: none;
    }
}

@media screen and (max-width: 1000px) and (max-aspect-ratio: 210 / 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.06);
        transform-origin: left center;
    }

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

    .gsSearch {
        left: 5%;
    }
}

@media screen and (max-width: 1000px) and (min-aspect-ratio: 210 / 100) {
    .wrapper {
        --wrapperScale: 1.15;
        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(-1.2 * var(--vw));
        transform-origin: center;
    }

    section {
      padding-right: 4%;
    }

    .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;
    }

    .gsSearch {
        left: -10%;
        top: calc(var(--vw) * 5.8);
    }

    .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: 90%;
        gap: 8px;
        top: calc(var(--vw) * 5);
    }

    .compareButtons::before {
      content: '';
      min-height: 30px;
      flex-shrink: 0;
    }
    .compareButtons::after {
      content: '';
      flex: 1 1 0;           /* Can grow, and can shrink all the way to 0 if space is needed */
      max-height: 30px;
    }

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

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

@media screen and (max-width: 1100px) {


#cmc .itemDesc { display: none; }

.pathSfx { display: none; }

.mh {
        background: url(../images/divider.png);
        background-repeat: no-repeat;
        background-size: calc(100% - 2vw);
        background-position: bottom;
        margin-bottom: 0;
}

  #cmn .pk.tabIc .tabT { display: none; }
  #cmn .pk.tabIc { padding-left: 4px; padding-right: 4px; }

  .mb:before {
    background-image: url(../images/listBottom.png);
    transform: scaleY(-1);
    background-position: bottom center;
  }

  #cmc thead {display:none}
  #sortBar:not(:empty) {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
  }

#cmp.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;
}

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

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

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

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

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

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

    #cmp.modalWc tr,
    #cmp.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) {
    #cmp 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 (min-width: 900px) {
  .grid2,
  #lt {
    scrollbar-gutter: stable;
    overflow: auto;
  }
}*/

@media screen and (max-width: 900px) {
    #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) {
    .recruitContainer>span {
        max-width: none;
        flex-basis: max(15em, 50% - 5px);
        width: auto;
    }
  
    #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%;
    }

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

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

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

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

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

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

    #cmp.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: 130%;
    }

    #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;
  }

  #mainWrapper::before {
    display: none;
  }

  section {
      padding-right: 14.8%;
  }

  .cardButtons {
      width: calc(61% - max(0px, var(--minW) - 100vw));
      justify-content: flex-start;
  }
}
  
@media screen and (max-width: 550px) and (orientation: portrait) and (max-aspect-ratio: 3 / 5) {
  .gsSearch {
      left: 6%;
  }

  .wrapper {
      transform: scale(1.45);
  }

  .wrap {
      left: calc(-5.5 * var(--vw) * var(--scale));
      top: 53%;
  }

  .tabContainer {
    margin-left: calc(30 * var(--vw));
    width: calc(100% - 30 * var(--vw));
  }

  .grid2 {
    margin-top: calc(var(--vw) * 30);
  }
  .grid2>*:first-child {
    padding-top: 0;
  }

  section {
      background-image: url(../images/background-4-3.webp);
      padding-right: 26%;
      padding-top: calc(6.7 * var(--vw));
      aspect-ratio: 1 / 1;
      padding-left: 5%;
  }

  .cardButtons {
      left: 21%;
      top: calc(2.2 * var(--vw));
      width: 53%;
  }

  .cardButtons>.pk {
    height: 1.5em;
    line-height: 1.5em;
  }

  #lt>.sk:first-child {
    margin-top: 6px;
  }

  .compareButtons {
    gap: 8px;
    transform: translateY(-87%);
    flex-wrap: wrap-reverse;
    left: 6%;
    width: 68%;
    top: calc(-0.8 * var(--vw));
  }

  .compareButtons>.pk {
    font-size: 16px;
    border: 0 !important;
    background: url(../images/buttonInactiveBG5.png) !important;
    background-size: 100% 100% !important;
    text-shadow: none;
    line-height: 1.7em;
    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));
    padding-left: 1.7em;
    text-align: left;
  }

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

@media screen and (max-width: 500px) {
  .recruitContainer>span {
        flex-basis: 100%;
  }
}