.overlay {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;

  display: flex;
  align-items: start;
  justify-content: center;

  width: 100%;
  height: 100%;
  padding-top: 10px;
  padding-bottom: 10px;

  background-color: var(--bg);
}

.overlay-body {
  overflow-y: auto;

  width: 350px;
  height: 100%;
  padding: 0 6px;
}

#info-body {
  font-size: 16px;
  line-height: 1.45;
}

.info-section {
  margin-top: 12px;
  padding-bottom: 12px;

  border-bottom: 1px solid var(--line);
}

.info-section .guess-container {
  min-height: 40px;
  margin: 6px 0;
}

#stat-body {
  position: relative;

  display: flex;
  align-items: center;
  flex-direction: column;

  font-weight: 600;
  letter-spacing: 1px;

  background-color: var(--bg);
}

#statistics-title {
  margin-top: 8px;
  margin-bottom: 20px;
}

#statistics {
  display: flex;
  justify-content: space-evenly;

  width: 100%;
  margin-bottom: 32px;
}

.statistic {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.stat {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: 0;
}

.descriptor {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;

  color: var(--muted);
}

.graph {
  display: flex;
  flex-direction: column;

  width: 100%;
  margin-top: 16px;
  margin-bottom: 16px;
}

.graph-label {
  width: 14px;
  margin-right: 6px;
}

.graphElem {
  font-size: 14px;

  display: flex;
  align-items: center;
  -webkit-justify-content: flex-end;
  justify-content: end;

  padding-right: 6px;

  color: white;
  border-radius: 4px;
  background-color: var(--red);
}

.graph-row {
  display: flex;
  align-items: center;

  height: 24px;
  margin-bottom: 12px;
}

#archive-body {
  display: flex;
  flex-direction: column;
}

#archive-intro {
  font-size: 14px;

  margin: 8px 0 12px;

  color: var(--muted);
}

.archive-entry {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;

  margin-bottom: 8px;
  padding: 8px;

  text-decoration: none;

  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--surface);
}

.archive-entry:hover {
  border-color: var(--red);
}

.archive-current {
  border-color: var(--red);
  box-shadow: inset 3px 0 0 var(--red);
}

.archive-image {
  flex-shrink: 0;

  width: 44px;
  height: 44px;

  border-radius: 6px;
  object-fit: contain;
}

.archive-details {
  overflow: hidden;
  flex: 1;
}

.archive-title {
  font-size: 13px;

  color: var(--muted);
}

.archive-name {
  font-size: 15px;
  font-weight: 600;

  overflow: hidden;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.archive-status {
  font-size: 12px;
  font-weight: 600;

  flex-shrink: 0;

  padding: 4px 8px;

  color: var(--muted);
  border-radius: 20px;
  background-color: var(--field);
}

.archive-status.status-won {
  color: white;
  background-color: var(--win);
}

.archive-status.status-lost {
  color: white;
  background-color: var(--far);
}

#archive-more {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;

  flex-shrink: 0;

  margin: 4px 0 16px;
  padding: 10px;

  cursor: pointer;

  color: var(--red);
  border: 1.5px solid var(--red);
  border-radius: 32px;
  background-color: transparent;
}

#archive-more:hover {
  color: white;
  background-color: var(--red);
}
