#wrap {
  margin-top: 96px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 96px);
}

.hero {
  flex: 0 0 180px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
}

.mode-select {
  position: relative;
  display: flex;
  flex: 1;
  width: 100%;
  overflow: hidden;
}

.game-mode-card {
  position: relative;
  flex: 1;
  overflow: hidden;
  cursor: pointer;
  transition: 0.45s;
}

.game-mode-card:hover {
  flex: 1.15;
}

.content {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;

  transform: translate(-50%, -50%);

  text-align: center;
  color: var(--text);

  z-index: 2;
  transition: 0.35s;
}

.game-mode-card:hover .content {
  transform: translate(-50%, -53%);
}

.overlay {
  position: absolute;
  inset: 0;

  border-radius: 8px;

  transition: 0.35s;
}

.game-mode-card:hover .overlay {
  background: rgba(0, 0, 0, 0.05);
}

.divider {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;

  z-index: 20;

  background: var(--accent);
  color: var(--background);

  padding: 18px 12px;
  border-radius: 18px;

  font-weight: bold;
  letter-spacing: 2px;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);

  transition: 0.45s;
}

.mode-select:has(.game-mode-card:first-child:hover) .divider {
  left: 53.5%;
}

.mode-select:has(.game-mode-card:last-child:hover) .divider {
  left: 46.5%;
}

@media (max-width: 600px) {
  #wrap {
    margin-top: 112px;
  }
}