.how-page {
  padding-bottom: 50px;
}

.how-heading {
  position: relative;
  width: fit-content;
  max-width: calc(100% - 48px);
  margin: 8px auto 24px;
  padding: 10px 22px;
  border: 3px solid var(--ink);
  background: #fff;
  box-shadow: 6px 6px 0 var(--ink);
  transform: rotate(0.5deg);
}

.how-heading h1 {
  margin: 0;
  font: 26px 'Archivo Black';
  text-align: center;
}

.how-info {
  position: absolute;
  left: -38px;
  top: -27px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: #489ff8;
  box-shadow: 4px 4px 0 var(--ink);
  font: 30px 'Archivo Black';
  text-transform: lowercase;
}

.how-shell {
  padding: 20px;
  border: 3px solid var(--ink);
  border-radius: 20px;
  background: #fff;
  box-shadow: 7px 7px 0 var(--ink);
}

.how-objective,
.how-score,
.how-ending {
  border: 3px solid var(--ink);
  padding: 16px;
  box-shadow: 5px 5px 0 var(--ink);
}

.how-objective {
  margin-bottom: 28px;
  background: #ffed87;
  transform: rotate(-0.6deg);
}

.how-objective h3,
.how-score h3,
.how-ending h3 {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 7px;
  border: 2px solid #7c7480;
  background: #fff;
}

.how-objective p,
.how-ending p {
  margin: 0;
  font-weight: 800;
  line-height: 1.45;
}

.how-section-title {
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--ink);
  font-size: 22px;
}

.how-steps {
  display: grid;
  gap: 24px;
}

.how-step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: start;
}

.how-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: #43dc82;
  box-shadow: 3px 3px 0 var(--ink);
  font: 22px 'Archivo Black';
}

.how-step h3 {
  margin: 4px 0 8px;
  font-size: 17px;
}

.how-step p {
  margin: 0;
  line-height: 1.48;
}

.how-step mark {
  border: 1px solid #817988;
  border-radius: 4px;
  padding: 1px 4px;
  font-weight: 900;
}

.role-citizen {
  color: #0e813d;
  background: #dff9e7;
}

.role-impostor {
  color: #bd2942;
  background: #ffd7dd;
}

.role-tip {
  background: #dff3ff;
}

.how-score {
  margin-top: 28px;
  background: #ead8ff;
  transform: rotate(0.7deg);
}

.how-score ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 24px;
  line-height: 1.45;
}

.how-score strong {
  display: inline-block;
  padding: 1px 5px;
  border: 2px solid #817988;
  background: #fff;
}

.how-ending {
  margin-top: 24px;
  background: #dff3ff;
  transform: rotate(-0.4deg);
}

@media (max-width: 390px) {
  .how-shell {
    padding: 14px;
  }

  .how-heading h1 {
    font-size: 21px;
  }

  .how-info {
    left: -28px;
    width: 50px;
    height: 50px;
  }

  .how-step {
    grid-template-columns: 44px 1fr;
    gap: 9px;
  }

  .how-number {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}
