.band {
  position: relative;
  padding: var(--sp-5) var(--page-gutter);
}

.band + .band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(560px, 60%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line-strong), transparent);
  transform: translateX(-50%);
}

.band-inner {
  display: grid;
  gap: var(--sp-3);
}

.how-grid {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--sp-4) clamp(40px, 7vw, 112px);
}

.how-phone {
  position: sticky;
  top: calc(var(--head-h, 64px) + 24px);
}

.how-phone .phone-screen {
  height: min(calc(100svh - 220px), 680px);
}

.how-text {
  display: grid;
  gap: var(--sp-4);
}

.difficulty,
.modes,
.ranking {
  background: linear-gradient(104deg, transparent 38%, var(--beam) 46%, transparent 58%) no-repeat;
}

.ranking {
  padding-block: var(--sp-4);
}

.modes-first,
.ranking-first {
  color: var(--ivory);
  font-family: var(--font-head);
  font-size: var(--fs-h3);
  font-weight: 800;
}

.how-steps {
  display: grid;
  gap: var(--sp-3);
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.how-steps li {
  position: relative;
  padding-left: 64px;
  counter-increment: step;
}

.how-steps li::before {
  content: counter(step, upper-roman);
  position: absolute;
  left: 0;
  top: 2px;
  width: 44px;
  color: var(--gold);
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.how-steps li::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 40px;
  bottom: calc(var(--sp-3) * -1 + 6px);
  width: 1px;
  background: linear-gradient(var(--gold-line-strong), transparent);
}

.how-steps li:last-child::after {
  display: none;
}

.how-step-title {
  font-family: var(--font-head);
  font-size: var(--fs-h3);
  font-weight: 800;
  line-height: 1.5;
}

.how-steps p {
  color: var(--ivory-mid);
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
  margin: var(--sp-2) 0 0;
  padding: 0;
  list-style: none;
}

.mode {
  position: relative;
  padding: var(--sp-2) var(--sp-4);
}

.mode > section {
  display: grid;
  align-content: start;
  gap: var(--sp-2);
}

.mode + .mode {
  box-shadow: inset 1px 0 0 var(--gold-line);
}

.mode + .mode::before {
  content: "";
  position: absolute;
  top: calc(var(--sp-2) + 9px);
  left: -6px;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  background: var(--night);
  transform: rotate(45deg);
}

.mode-step {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  color: var(--gold);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.mode .mode-step {
  color: var(--gold);
}

.mode-step-number {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border: 1px solid var(--gold-line-strong);
  border-radius: 50%;
  color: var(--ivory);
  font-family: var(--font-en);
  font-size: var(--fs-sm);
  line-height: 1;
}

.closing {
  padding-top: var(--sp-4);
}

.mode-heading {
  display: grid;
  font-family: var(--font-head);
  font-size: var(--fs-h3);
  font-weight: 800;
}

.mode-heading-sub {
  color: var(--gold);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.mode p {
  color: var(--ivory-mid);
}

.mode .mode-sub {
  color: var(--ivory-sub);
  font-size: var(--fs-sm);
}

.ranking-points {
  display: grid;
  gap: var(--sp-2);
  max-width: 46em;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  color: var(--ivory-mid);
}

.ranking-points li {
  position: relative;
  padding-left: 28px;
}

.ranking-points li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.75em;
  width: 9px;
  height: 9px;
  background: var(--diamond) center / contain no-repeat;
}

.stages {
  background: radial-gradient(60% 50% at 50% 45%, rgba(122, 20, 40, 0.22), transparent 75%);
}

.closing-inner {
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) clamp(24px, 4vw, 64px);
  border-top: 1px solid var(--gold-line-strong);
  border-bottom: 1px solid var(--gold-line-strong);
  background: radial-gradient(80% 120% at 15% 50%, var(--crimson-glow), transparent 70%), var(--velvet-glass);
}

.closing-chibi {
  width: 180px;
  height: auto;
}

.closing-qr {
  width: 200px;
  height: 200px;
}

.closing-text {
  display: grid;
  gap: var(--sp-2);
}

.site-foot {
  padding: var(--sp-3) var(--page-gutter);
  border-top: 1px solid var(--gold-line);
  color: var(--ivory-sub);
  font-family: var(--font-head);
  font-weight: 800;
  text-align: center;
}

@media (max-width: 900px) {
  .how-grid,
  .mode-grid,
  .closing-inner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .how-phone {
    position: static;
  }

  .how-phone .phone-screen {
    height: min(70svh, 560px);
  }

  .mode-grid {
    justify-items: stretch;
  }

  .mode + .mode {
    box-shadow: inset 0 1px 0 var(--gold-line);
    padding-top: var(--sp-3);
  }

  .mode + .mode::before {
    top: -6px;
    left: calc(50% - 6px);
    transform: rotate(135deg);
  }

  .closing-text {
    text-align: center;
  }
}

.site-foot {
  display: grid;
  justify-items: center;
  gap: var(--sp-1);
}

.site-foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 var(--sp-3);
  padding: 0;
  list-style: none;
}

.site-foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ivory-mid);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-underline-offset: 3px;
  transition: color 160ms ease;
}

.site-foot-links a:hover {
  color: var(--gold-bright);
}

.site-foot-copy {
  color: var(--ivory-sub);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
}
