:root {
  color-scheme: dark;
}

.encode-sans-<uniquifier> {
  font-family: "Encode Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}
body {
  font-family: "Encode Sans", sans-serif;
  font-weight: 900;
  color: light-dark(black,#F7EEDD);
  background: light-dark(#f7f3ee, #0c0c0c);
  margin: 0;
  padding: 2rem;
}

.title {
  text-align: center;
  font-size: 23px;
  font-weight: bold;
  margin-bottom: 2rem;
}

.help {
  text-align: center;
  text-decoration: underline;
  cursor: pointer;
}

.grid {
  display: grid;
  grid-template-rows: repeat(16, 60px);
  gap: 0px;
}

.row {
  display: grid;
  grid-template-columns: repeat(14, 160px);
  gap: 0px;
}

.cell {
  display: block;
  background-color: light-dark(#faf5ed, #121111);
  background-size: cover;
  background-position: top left;
  background-repeat: no-repeat;
  text-shadow: 0px 0px 8px black;
  outline: 1px solid #5c5a57;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  padding: 8px;
  color: white;
  font-size: 21px;
  text-align: center;
  text-decoration: none;

  line-height: 0;
  text-wrap: nowrap;
}

.dungeon {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
}

.cell:hover .dungeon {
  background-color: #0f232c !important;
}

.dungeon-name {
  z-index: 1;
}

.tooltip {
  font-family: sans-serif;
  font-weight: normal;
  position: fixed;
  z-index: 2;
  background: #0f232cfa;
  padding: 10px;
  border-radius: 5px;
  font-size: 18px;
  pointer-events: none;
  width: 360px;
  min-width: 280px;
}

.tooltip h3 {
  margin: 4px;
  margin-left: 0;
}

.hm-tool {
  font-weight: bold;
  color: #dd524c;
  margin: 4px;
  margin-left: 0;
}

.hm {
  position: absolute;
  top: 0px;
  left: 0px;
  font-size: 12px;
  text-shadow: none;
  line-height: normal;
  background-color: rgba(255, 0, 0, 0.3);
  outline: 1px solid black;
  padding: 2px;
}

.top {
  display: flex;
}

.power, .complexity {
  display: flex;
  justify-content: space-around;
}
.complexity {
  align-items: flex-end;
}
.power h5, .complexity h5 {
  font-size: 64px;
  text-align: center;
  margin: 8px;
}
.complexity {
  writing-mode: tb-rl;
  transform: rotate(-180deg);
}
